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
3b8392816faef4bfe0de6dec1ebe091f07381e23
146
asm
Assembly
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver0/chip/ys_chip6.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver0/chip/ys_chip6.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver0/chip/ys_chip6.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: ys_chip6.asm Type: file Size: 42891 Last-Modified: '2016-05-13T04:50:33Z' SHA-1: 3E967CE655D20BCD5489FC23DDF5805BA17A6CC5 Description: null
20.857143
47
0.815068
8905eef9b05dcf4ca9b2aff9d4df7425e58e8518
28,011
asm
Assembly
software/obsolete/new-rom/font_terminus.asm
Noah1989/micro-21
f574c3dd089ee93737c8babc6f5eddf85e66987e
[ "MIT" ]
1
2019-05-17T14:43:17.000Z
2019-05-17T14:43:17.000Z
software/obsolete/new-rom/font_terminus.asm
Noah1989/loopmicro
4d9a49b0aeee1d58aa712c7509cbb46d32477e16
[ "MIT" ]
null
null
null
software/obsolete/new-rom/font_terminus.asm
Noah1989/loopmicro
4d9a49b0aeee1d58aa712c7509cbb46d32477e16
[ "MIT" ]
null
null
null
public font_terminus section charmap font_terminus: ; $00 char0 defb $00, $00, $EE, $C6 defb $00, $C6, $C6, $C6 defb $00, $C6, $C6, $EE defb $00, $00, $00, $00 ; $01 smileface defb $00, $00, $7C, $82 defb $AA, $82, $82, $BA defb $92, $82, $82, $7C defb $00, $00, $00, $00 ; $02 invsmileface defb $00, $00, $7C, $FE defb $D6, $FE, $FE, $C6 defb $EE, $FE, $FE, $7C defb $00, $00, $00, $00 ; $03 heart defb $00, $00, $00, $00 defb $6C, $FE, $FE, $FE defb $FE, $7C, $38, $10 defb $00, $00, $00, $00 ; $04 diamond defb $00, $00, $00, $00 defb $18, $3C, $7E, $FF defb $7E, $3C, $18, $00 defb $00, $00, $00, $00 ; $05 club defb $00, $00, $18, $3C defb $3C, $18, $5A, $FF defb $FF, $5A, $18, $3C defb $00, $00, $00, $00 ; $06 spade defb $00, $00, $18, $18 defb $3C, $7E, $FF, $FF defb $7E, $18, $18, $3C defb $00, $00, $00, $00 ; $07 bullet defb $00, $00, $00, $00 defb $00, $00, $18, $3C defb $3C, $18, $00, $00 defb $00, $00, $00, $00 ; $08 invbullet defb $FF, $FF, $FF, $FF defb $FF, $FF, $E7, $C3 defb $C3, $E7, $FF, $FF defb $FF, $FF, $FF, $FF ; $09 circle defb $00, $00, $00, $00 defb $00, $3C, $66, $42 defb $42, $66, $3C, $00 defb $00, $00, $00, $00 ; $0a invcircle defb $FF, $FF, $FF, $FF defb $FF, $C3, $99, $BD defb $BD, $99, $C3, $FF defb $FF, $FF, $FF, $FF ; $0b male defb $00, $00, $3E, $0E defb $1A, $32, $78, $CC defb $CC, $CC, $CC, $78 defb $00, $00, $00, $00 ; $0c female defb $00, $00, $3C, $66 defb $66, $66, $66, $3C defb $18, $7E, $18, $18 defb $00, $00, $00, $00 ; $0d musicalnote defb $00, $00, $7E, $66 defb $7E, $60, $60, $60 defb $60, $60, $E0, $C0 defb $00, $00, $00, $00 ; $0e musicalnotedbl defb $00, $00, $7E, $66 defb $7E, $66, $66, $66 defb $66, $66, $6E, $EC defb $C0, $00, $00, $00 ; $0f sun defb $00, $00, $00, $18 defb $DB, $7E, $3C, $E7 defb $3C, $7E, $DB, $18 defb $00, $00, $00, $00 ; $10 triagrt defb $00, $00, $00, $00 defb $C0, $F0, $FC, $FF defb $FF, $FC, $F0, $C0 defb $00, $00, $00, $00 ; $11 triaglf defb $00, $00, $00, $00 defb $03, $0F, $3F, $FF defb $FF, $3F, $0F, $03 defb $00, $00, $00, $00 ; $12 arrowupdn defb $00, $00, $18, $3C defb $7E, $18, $18, $18 defb $18, $7E, $3C, $18 defb $00, $00, $00, $00 ; $13 exclamdbl defb $00, $00, $66, $66 defb $66, $66, $66, $66 defb $66, $00, $66, $66 defb $00, $00, $00, $00 ; $14 paragraph defb $00, $00, $7E, $D6 defb $D6, $D6, $D6, $76 defb $16, $16, $16, $16 defb $00, $00, $00, $00 ; $15 section defb $00, $3C, $66, $60 defb $38, $6C, $66, $66 defb $36, $1C, $06, $66 defb $3C, $00, $00, $00 ; $16 filledrect defb $00, $00, $00, $00 defb $00, $00, $00, $00 defb $FE, $FE, $FE, $FE defb $00, $00, $00, $00 ; $17 arrowupdnbse defb $00, $00, $18, $3C defb $7E, $18, $18, $18 defb $7E, $3C, $18, $7E defb $00, $00, $00, $00 ; $18 arrowup defb $00, $00, $18, $3C defb $7E, $18, $18, $18 defb $18, $18, $18, $18 defb $00, $00, $00, $00 ; $19 arrowdown defb $00, $00, $18, $18 defb $18, $18, $18, $18 defb $18, $7E, $3C, $18 defb $00, $00, $00, $00 ; $1a arrowright defb $00, $00, $00, $00 defb $00, $08, $0C, $FE defb $FE, $0C, $08, $00 defb $00, $00, $00, $00 ; $1b arrowleft defb $00, $00, $00, $00 defb $00, $20, $60, $FE defb $FE, $60, $20, $00 defb $00, $00, $00, $00 ; $1c orthogonal defb $00, $00, $00, $00 defb $C0, $C0, $C0, $C0 defb $C0, $FE, $00, $00 defb $00, $00, $00, $00 ; $1d arrowboth defb $00, $00, $00, $00 defb $00, $24, $66, $FF defb $FF, $66, $24, $00 defb $00, $00, $00, $00 ; $1e triagup defb $00, $00, $00, $00 defb $18, $18, $3C, $3C defb $7E, $7E, $FF, $FF defb $00, $00, $00, $00 ; $1f triagdn defb $00, $00, $00, $00 defb $FF, $FF, $7E, $7E defb $3C, $3C, $18, $18 defb $00, $00, $00, $00 ; $20 space defb $00, $00, $00, $00 defb $00, $00, $00, $00 defb $00, $00, $00, $00 defb $00, $00, $00, $00 ; $21 exclam defb $00, $00, $18, $18 defb $18, $18, $18, $18 defb $18, $00, $18, $18 defb $00, $00, $00, $00 ; $22 quotedbl defb $00, $66, $66, $66 defb $00, $00, $00, $00 defb $00, $00, $00, $00 defb $00, $00, $00, $00 ; $23 numbersign defb $00, $00, $6C, $6C defb $6C, $FE, $6C, $6C defb $FE, $6C, $6C, $6C defb $00, $00, $00, $00 ; $24 dollar defb $00, $10, $10, $7C defb $D6, $D0, $D0, $7C defb $16, $16, $D6, $7C defb $10, $10, $00, $00 ; $25 percent defb $00, $00, $66, $D6 defb $6C, $0C, $18, $18 defb $30, $36, $6B, $66 defb $00, $00, $00, $00 ; $26 ampersand defb $00, $00, $38, $6C defb $6C, $38, $76, $DC defb $CC, $CC, $DC, $76 defb $00, $00, $00, $00 ; $27 quotesingle defb $00, $18, $18, $18 defb $00, $00, $00, $00 defb $00, $00, $00, $00 defb $00, $00, $00, $00 ; $28 parenleft defb $00, $00, $0C, $18 defb $30, $30, $30, $30 defb $30, $30, $18, $0C defb $00, $00, $00, $00 ; $29 parenright defb $00, $00, $30, $18 defb $0C, $0C, $0C, $0C defb $0C, $0C, $18, $30 defb $00, $00, $00, $00 ; $2a asterisk defb $00, $00, $00, $00 defb $00, $6C, $38, $FE defb $38, $6C, $00, $00 defb $00, $00, $00, $00 ; $2b plus defb $00, $00, $00, $00 defb $00, $18, $18, $7E defb $18, $18, $00, $00 defb $00, $00, $00, $00 ; $2c comma defb $00, $00, $00, $00 defb $00, $00, $00, $00 defb $00, $00, $18, $18 defb $30, $00, $00, $00 ; $2d hyphen defb $00, $00, $00, $00 defb $00, $00, $00, $FE defb $00, $00, $00, $00 defb $00, $00, $00, $00 ; $2e period defb $00, $00, $00, $00 defb $00, $00, $00, $00 defb $00, $00, $18, $18 defb $00, $00, $00, $00 ; $2f slash defb $00, $00, $06, $06 defb $0C, $0C, $18, $18 defb $30, $30, $60, $60 defb $00, $00, $00, $00 ; $30 zero defb $00, $00, $7C, $C6 defb $C6, $CE, $DE, $F6 defb $E6, $C6, $C6, $7C defb $00, $00, $00, $00 ; $31 one defb $00, $00, $18, $38 defb $78, $18, $18, $18 defb $18, $18, $18, $7E defb $00, $00, $00, $00 ; $32 two defb $00, $00, $7C, $C6 defb $C6, $06, $0C, $18 defb $30, $60, $C0, $FE defb $00, $00, $00, $00 ; $33 three defb $00, $00, $7C, $C6 defb $C6, $06, $3C, $06 defb $06, $C6, $C6, $7C defb $00, $00, $00, $00 ; $34 four defb $00, $00, $06, $0E defb $1E, $36, $66, $C6 defb $FE, $06, $06, $06 defb $00, $00, $00, $00 ; $35 five defb $00, $00, $FE, $C0 defb $C0, $C0, $FC, $06 defb $06, $06, $C6, $7C defb $00, $00, $00, $00 ; $36 six defb $00, $00, $3C, $60 defb $C0, $C0, $FC, $C6 defb $C6, $C6, $C6, $7C defb $00, $00, $00, $00 ; $37 seven defb $00, $00, $FE, $06 defb $06, $0C, $0C, $18 defb $18, $30, $30, $30 defb $00, $00, $00, $00 ; $38 eight defb $00, $00, $7C, $C6 defb $C6, $C6, $7C, $C6 defb $C6, $C6, $C6, $7C defb $00, $00, $00, $00 ; $39 nine defb $00, $00, $7C, $C6 defb $C6, $C6, $C6, $7E defb $06, $06, $0C, $78 defb $00, $00, $00, $00 ; $3a colon defb $00, $00, $00, $00 defb $00, $18, $18, $00 defb $00, $00, $18, $18 defb $00, $00, $00, $00 ; $3b semicolon defb $00, $00, $00, $00 defb $00, $18, $18, $00 defb $00, $00, $18, $18 defb $30, $00, $00, $00 ; $3c less defb $00, $00, $00, $06 defb $0C, $18, $30, $60 defb $30, $18, $0C, $06 defb $00, $00, $00, $00 ; $3d equal defb $00, $00, $00, $00 defb $00, $FE, $00, $00 defb $FE, $00, $00, $00 defb $00, $00, $00, $00 ; $3e greater defb $00, $00, $00, $60 defb $30, $18, $0C, $06 defb $0C, $18, $30, $60 defb $00, $00, $00, $00 ; $3f question defb $00, $00, $7C, $C6 defb $C6, $C6, $0C, $18 defb $18, $00, $18, $18 defb $00, $00, $00, $00 ; $40 at defb $00, $00, $7C, $C6 defb $CE, $D6, $D6, $D6 defb $D6, $CE, $C0, $7E defb $00, $00, $00, $00 ; $41 A defb $00, $00, $7C, $C6 defb $C6, $C6, $C6, $FE defb $C6, $C6, $C6, $C6 defb $00, $00, $00, $00 ; $42 B defb $00, $00, $FC, $C6 defb $C6, $C6, $FC, $C6 defb $C6, $C6, $C6, $FC defb $00, $00, $00, $00 ; $43 C defb $00, $00, $7C, $C6 defb $C6, $C0, $C0, $C0 defb $C0, $C6, $C6, $7C defb $00, $00, $00, $00 ; $44 D defb $00, $00, $F8, $CC defb $C6, $C6, $C6, $C6 defb $C6, $C6, $CC, $F8 defb $00, $00, $00, $00 ; $45 E defb $00, $00, $FE, $C0 defb $C0, $C0, $F8, $C0 defb $C0, $C0, $C0, $FE defb $00, $00, $00, $00 ; $46 F defb $00, $00, $FE, $C0 defb $C0, $C0, $F8, $C0 defb $C0, $C0, $C0, $C0 defb $00, $00, $00, $00 ; $47 G defb $00, $00, $7C, $C6 defb $C6, $C0, $C0, $DE defb $C6, $C6, $C6, $7C defb $00, $00, $00, $00 ; $48 H defb $00, $00, $C6, $C6 defb $C6, $C6, $FE, $C6 defb $C6, $C6, $C6, $C6 defb $00, $00, $00, $00 ; $49 I defb $00, $00, $3C, $18 defb $18, $18, $18, $18 defb $18, $18, $18, $3C defb $00, $00, $00, $00 ; $4a J defb $00, $00, $1E, $0C defb $0C, $0C, $0C, $0C defb $0C, $CC, $CC, $78 defb $00, $00, $00, $00 ; $4b K defb $00, $00, $C6, $C6 defb $CC, $D8, $F0, $F0 defb $D8, $CC, $C6, $C6 defb $00, $00, $00, $00 ; $4c L defb $00, $00, $C0, $C0 defb $C0, $C0, $C0, $C0 defb $C0, $C0, $C0, $FE defb $00, $00, $00, $00 ; $4d M defb $00, $00, $82, $C6 defb $EE, $FE, $D6, $C6 defb $C6, $C6, $C6, $C6 defb $00, $00, $00, $00 ; $4e N defb $00, $00, $C6, $C6 defb $C6, $E6, $F6, $DE defb $CE, $C6, $C6, $C6 defb $00, $00, $00, $00 ; $4f O defb $00, $00, $7C, $C6 defb $C6, $C6, $C6, $C6 defb $C6, $C6, $C6, $7C defb $00, $00, $00, $00 ; $50 P defb $00, $00, $FC, $C6 defb $C6, $C6, $C6, $FC defb $C0, $C0, $C0, $C0 defb $00, $00, $00, $00 ; $51 Q defb $00, $00, $7C, $C6 defb $C6, $C6, $C6, $C6 defb $C6, $C6, $DE, $7C defb $06, $00, $00, $00 ; $52 R defb $00, $00, $FC, $C6 defb $C6, $C6, $C6, $FC defb $F0, $D8, $CC, $C6 defb $00, $00, $00, $00 ; $53 S defb $00, $00, $7C, $C6 defb $C0, $C0, $7C, $06 defb $06, $C6, $C6, $7C defb $00, $00, $00, $00 ; $54 T defb $00, $00, $FF, $18 defb $18, $18, $18, $18 defb $18, $18, $18, $18 defb $00, $00, $00, $00 ; $55 U defb $00, $00, $C6, $C6 defb $C6, $C6, $C6, $C6 defb $C6, $C6, $C6, $7C defb $00, $00, $00, $00 ; $56 V defb $00, $00, $C6, $C6 defb $C6, $C6, $C6, $6C defb $6C, $6C, $38, $38 defb $00, $00, $00, $00 ; $57 W defb $00, $00, $C6, $C6 defb $C6, $C6, $C6, $D6 defb $FE, $EE, $C6, $82 defb $00, $00, $00, $00 ; $58 X defb $00, $00, $C6, $C6 defb $6C, $6C, $38, $38 defb $6C, $6C, $C6, $C6 defb $00, $00, $00, $00 ; $59 Y defb $00, $00, $C3, $C3 defb $66, $66, $3C, $18 defb $18, $18, $18, $18 defb $00, $00, $00, $00 ; $5a Z defb $00, $00, $FE, $06 defb $06, $0C, $18, $30 defb $60, $C0, $C0, $FE defb $00, $00, $00, $00 ; $5b bracketleft defb $00, $00, $3C, $30 defb $30, $30, $30, $30 defb $30, $30, $30, $3C defb $00, $00, $00, $00 ; $5c backslash defb $00, $00, $60, $60 defb $30, $30, $18, $18 defb $0C, $0C, $06, $06 defb $00, $00, $00, $00 ; $5d bracketright defb $00, $00, $3C, $0C defb $0C, $0C, $0C, $0C defb $0C, $0C, $0C, $3C defb $00, $00, $00, $00 ; $5e asciicircum defb $00, $18, $3C, $66 defb $00, $00, $00, $00 defb $00, $00, $00, $00 defb $00, $00, $00, $00 ; $5f underscore defb $00, $00, $00, $00 defb $00, $00, $00, $00 defb $00, $00, $00, $00 defb $00, $FE, $00, $00 ; $60 grave defb $30, $18, $00, $00 defb $00, $00, $00, $00 defb $00, $00, $00, $00 defb $00, $00, $00, $00 ; $61 a defb $00, $00, $00, $00 defb $00, $7C, $06, $7E defb $C6, $C6, $C6, $7E defb $00, $00, $00, $00 ; $62 b defb $00, $00, $C0, $C0 defb $C0, $FC, $C6, $C6 defb $C6, $C6, $C6, $FC defb $00, $00, $00, $00 ; $63 c defb $00, $00, $00, $00 defb $00, $7C, $C6, $C0 defb $C0, $C0, $C6, $7C defb $00, $00, $00, $00 ; $64 d defb $00, $00, $06, $06 defb $06, $7E, $C6, $C6 defb $C6, $C6, $C6, $7E defb $00, $00, $00, $00 ; $65 e defb $00, $00, $00, $00 defb $00, $7C, $C6, $C6 defb $FE, $C0, $C0, $7C defb $00, $00, $00, $00 ; $66 f defb $00, $00, $1E, $30 defb $30, $FC, $30, $30 defb $30, $30, $30, $30 defb $00, $00, $00, $00 ; $67 g defb $00, $00, $00, $00 defb $00, $7E, $C6, $C6 defb $C6, $C6, $C6, $7E defb $06, $06, $7C, $00 ; $68 h defb $00, $00, $C0, $C0 defb $C0, $FC, $C6, $C6 defb $C6, $C6, $C6, $C6 defb $00, $00, $00, $00 ; $69 i defb $00, $00, $18, $18 defb $00, $38, $18, $18 defb $18, $18, $18, $3C defb $00, $00, $00, $00 ; $6a j defb $00, $00, $06, $06 defb $00, $0E, $06, $06 defb $06, $06, $06, $06 defb $66, $66, $3C, $00 ; $6b k defb $00, $00, $C0, $C0 defb $C0, $C6, $CC, $D8 defb $F0, $D8, $CC, $C6 defb $00, $00, $00, $00 ; $6c l defb $00, $00, $70, $30 defb $30, $30, $30, $30 defb $30, $30, $30, $1C defb $00, $00, $00, $00 ; $6d m defb $00, $00, $00, $00 defb $00, $FC, $D6, $D6 defb $D6, $D6, $D6, $D6 defb $00, $00, $00, $00 ; $6e n defb $00, $00, $00, $00 defb $00, $FC, $C6, $C6 defb $C6, $C6, $C6, $C6 defb $00, $00, $00, $00 ; $6f o defb $00, $00, $00, $00 defb $00, $7C, $C6, $C6 defb $C6, $C6, $C6, $7C defb $00, $00, $00, $00 ; $70 p defb $00, $00, $00, $00 defb $00, $FC, $C6, $C6 defb $C6, $C6, $C6, $FC defb $C0, $C0, $C0, $00 ; $71 q defb $00, $00, $00, $00 defb $00, $7E, $C6, $C6 defb $C6, $C6, $C6, $7E defb $06, $06, $06, $00 ; $72 r defb $00, $00, $00, $00 defb $00, $DE, $F0, $E0 defb $C0, $C0, $C0, $C0 defb $00, $00, $00, $00 ; $73 s defb $00, $00, $00, $00 defb $00, $7E, $C0, $C0 defb $7C, $06, $06, $FC defb $00, $00, $00, $00 ; $74 t defb $00, $00, $30, $30 defb $30, $FC, $30, $30 defb $30, $30, $30, $1E defb $00, $00, $00, $00 ; $75 u defb $00, $00, $00, $00 defb $00, $C6, $C6, $C6 defb $C6, $C6, $C6, $7E defb $00, $00, $00, $00 ; $76 v defb $00, $00, $00, $00 defb $00, $C6, $C6, $C6 defb $6C, $6C, $38, $38 defb $00, $00, $00, $00 ; $77 w defb $00, $00, $00, $00 defb $00, $C6, $C6, $D6 defb $D6, $D6, $D6, $7C defb $00, $00, $00, $00 ; $78 x defb $00, $00, $00, $00 defb $00, $C6, $C6, $6C defb $38, $6C, $C6, $C6 defb $00, $00, $00, $00 ; $79 y defb $00, $00, $00, $00 defb $00, $C6, $C6, $C6 defb $C6, $C6, $C6, $7E defb $06, $06, $7C, $00 ; $7a z defb $00, $00, $00, $00 defb $00, $FE, $0C, $18 defb $30, $60, $C0, $FE defb $00, $00, $00, $00 ; $7b braceleft defb $00, $00, $1C, $30 defb $30, $30, $60, $30 defb $30, $30, $30, $1C defb $00, $00, $00, $00 ; $7c bar defb $00, $00, $18, $18 defb $18, $18, $18, $18 defb $18, $18, $18, $18 defb $00, $00, $00, $00 ; $7d braceright defb $00, $00, $70, $18 defb $18, $18, $0C, $18 defb $18, $18, $18, $70 defb $00, $00, $00, $00 ; $7e asciitilde defb $00, $00, $00, $00 defb $00, $00, $73, $DB defb $CE, $00, $00, $00 defb $00, $00, $00, $00 ; $7f house defb $00, $00, $00, $00 defb $10, $38, $6C, $C6 defb $C6, $C6, $C6, $FE defb $00, $00, $00, $00 ; $80 Ccedilla defb $00, $00, $7C, $C6 defb $C6, $C0, $C0, $C0 defb $C0, $C6, $C6, $7C defb $30, $30, $60, $00 ; $81 udieresis defb $00, $00, $6C, $6C defb $00, $C6, $C6, $C6 defb $C6, $C6, $C6, $7E defb $00, $00, $00, $00 ; $82 eacute defb $00, $00, $18, $30 defb $00, $7C, $C6, $C6 defb $FE, $C0, $C0, $7C defb $00, $00, $00, $00 ; $83 acircumflex defb $00, $00, $38, $6C defb $00, $7C, $06, $7E defb $C6, $C6, $C6, $7E defb $00, $00, $00, $00 ; $84 adieresis defb $00, $00, $6C, $6C defb $00, $7C, $06, $7E defb $C6, $C6, $C6, $7E defb $00, $00, $00, $00 ; $85 agrave defb $00, $00, $30, $18 defb $00, $7C, $06, $7E defb $C6, $C6, $C6, $7E defb $00, $00, $00, $00 ; $86 aring defb $00, $00, $38, $6C defb $38, $7C, $06, $7E defb $C6, $C6, $C6, $7E defb $00, $00, $00, $00 ; $87 ccedilla defb $00, $00, $00, $00 defb $00, $7C, $C6, $C0 defb $C0, $C0, $C6, $7C defb $30, $30, $60, $00 ; $88 ecircumflex defb $00, $00, $38, $6C defb $00, $7C, $C6, $C6 defb $FE, $C0, $C0, $7C defb $00, $00, $00, $00 ; $89 edieresis defb $00, $00, $6C, $6C defb $00, $7C, $C6, $C6 defb $FE, $C0, $C0, $7C defb $00, $00, $00, $00 ; $8a egrave defb $00, $00, $30, $18 defb $00, $7C, $C6, $C6 defb $FE, $C0, $C0, $7C defb $00, $00, $00, $00 ; $8b idieresis defb $00, $00, $6C, $6C defb $00, $38, $18, $18 defb $18, $18, $18, $3C defb $00, $00, $00, $00 ; $8c icircumflex defb $00, $00, $38, $6C defb $00, $38, $18, $18 defb $18, $18, $18, $3C defb $00, $00, $00, $00 ; $8d igrave defb $00, $00, $30, $18 defb $00, $38, $18, $18 defb $18, $18, $18, $3C defb $00, $00, $00, $00 ; $8e Adieresis defb $6C, $6C, $00, $7C defb $C6, $C6, $C6, $FE defb $C6, $C6, $C6, $C6 defb $00, $00, $00, $00 ; $8f Aring defb $38, $6C, $38, $7C defb $C6, $C6, $C6, $FE defb $C6, $C6, $C6, $C6 defb $00, $00, $00, $00 ; $90 Eacute defb $18, $30, $00, $FE defb $C0, $C0, $C0, $F8 defb $C0, $C0, $C0, $FE defb $00, $00, $00, $00 ; $91 ae defb $00, $00, $00, $00 defb $00, $6C, $16, $16 defb $7E, $D0, $D0, $6C defb $00, $00, $00, $00 ; $92 AE defb $00, $00, $7E, $D8 defb $D8, $D8, $FE, $D8 defb $D8, $D8, $D8, $DE defb $00, $00, $00, $00 ; $93 ocircumflex defb $00, $00, $38, $6C defb $00, $7C, $C6, $C6 defb $C6, $C6, $C6, $7C defb $00, $00, $00, $00 ; $94 odieresis defb $00, $00, $6C, $6C defb $00, $7C, $C6, $C6 defb $C6, $C6, $C6, $7C defb $00, $00, $00, $00 ; $95 ograve defb $00, $00, $30, $18 defb $00, $7C, $C6, $C6 defb $C6, $C6, $C6, $7C defb $00, $00, $00, $00 ; $96 ucircumflex defb $00, $00, $38, $6C defb $00, $C6, $C6, $C6 defb $C6, $C6, $C6, $7E defb $00, $00, $00, $00 ; $97 ugrave defb $00, $00, $30, $18 defb $00, $C6, $C6, $C6 defb $C6, $C6, $C6, $7E defb $00, $00, $00, $00 ; $98 ydieresis defb $00, $00, $6C, $6C defb $00, $C6, $C6, $C6 defb $C6, $C6, $C6, $7E defb $06, $06, $7C, $00 ; $99 Odieresis defb $6C, $6C, $00, $7C defb $C6, $C6, $C6, $C6 defb $C6, $C6, $C6, $7C defb $00, $00, $00, $00 ; $9a Udieresis defb $6C, $6C, $00, $C6 defb $C6, $C6, $C6, $C6 defb $C6, $C6, $C6, $7C defb $00, $00, $00, $00 ; $9b cent defb $00, $00, $00, $10 defb $10, $7C, $D6, $D0 defb $D0, $D0, $D6, $7C defb $10, $10, $00, $00 ; $9c sterling defb $00, $00, $38, $6C defb $60, $60, $F8, $60 defb $60, $60, $66, $FE defb $00, $00, $00, $00 ; $9d yen defb $00, $00, $C3, $C3 defb $66, $3C, $18, $7E defb $18, $7E, $18, $18 defb $00, $00, $00, $00 ; $9e peseta defb $00, $00, $F8, $CC defb $CC, $CC, $FA, $C6 defb $CF, $C6, $C6, $C3 defb $00, $00, $00, $00 ; $9f florin defb $00, $00, $0E, $1B defb $18, $18, $7E, $18 defb $18, $18, $18, $18 defb $18, $D8, $70, $00 ; $a0 aacute defb $00, $00, $18, $30 defb $00, $7C, $06, $7E defb $C6, $C6, $C6, $7E defb $00, $00, $00, $00 ; $a1 iacute defb $00, $00, $0C, $18 defb $00, $38, $18, $18 defb $18, $18, $18, $3C defb $00, $00, $00, $00 ; $a2 oacute defb $00, $00, $18, $30 defb $00, $7C, $C6, $C6 defb $C6, $C6, $C6, $7C defb $00, $00, $00, $00 ; $a3 uacute defb $00, $00, $18, $30 defb $00, $C6, $C6, $C6 defb $C6, $C6, $C6, $7E defb $00, $00, $00, $00 ; $a4 ntilde defb $00, $00, $76, $DC defb $00, $FC, $C6, $C6 defb $C6, $C6, $C6, $C6 defb $00, $00, $00, $00 ; $a5 Ntilde defb $76, $DC, $00, $C6 defb $C6, $E6, $F6, $DE defb $CE, $C6, $C6, $C6 defb $00, $00, $00, $00 ; $a6 ordfeminine defb $00, $3C, $06, $3E defb $66, $3E, $00, $7E defb $00, $00, $00, $00 defb $00, $00, $00, $00 ; $a7 ordmasculine defb $00, $3C, $66, $66 defb $66, $3C, $00, $7E defb $00, $00, $00, $00 defb $00, $00, $00, $00 ; $a8 questiondown defb $00, $00, $30, $30 defb $00, $30, $30, $60 defb $C6, $C6, $C6, $7C defb $00, $00, $00, $00 ; $a9 revlogicalnot defb $00, $00, $00, $00 defb $00, $FE, $C0, $C0 defb $C0, $00, $00, $00 defb $00, $00, $00, $00 ; $aa logicalnot defb $00, $00, $00, $00 defb $00, $FE, $06, $06 defb $06, $00, $00, $00 defb $00, $00, $00, $00 ; $ab onehalf defb $00, $60, $E0, $62 defb $66, $6C, $18, $30 defb $60, $DC, $B6, $0C defb $18, $3E, $00, $00 ; $ac onequarter defb $00, $60, $E0, $62 defb $66, $6C, $18, $30 defb $66, $CE, $9A, $3E defb $06, $06, $00, $00 ; $ad exclamdown defb $00, $00, $18, $18 defb $00, $18, $18, $18 defb $18, $18, $18, $18 defb $00, $00, $00, $00 ; $ae guillemotleft defb $00, $00, $00, $00 defb $00, $1B, $36, $6C defb $D8, $6C, $36, $1B defb $00, $00, $00, $00 ; $af guillemotright defb $00, $00, $00, $00 defb $00, $D8, $6C, $36 defb $1B, $36, $6C, $D8 defb $00, $00, $00, $00 ; $b0 ltshade defb $88, $22, $88, $22 defb $88, $22, $88, $22 defb $88, $22, $88, $22 defb $88, $22, $88, $22 ; $b1 shade defb $AA, $55, $AA, $55 defb $AA, $55, $AA, $55 defb $AA, $55, $AA, $55 defb $AA, $55, $AA, $55 ; $b2 dkshade defb $EE, $BB, $EE, $BB defb $EE, $BB, $EE, $BB defb $EE, $BB, $EE, $BB defb $EE, $BB, $EE, $BB ; $b3 SF110000 defb $18, $18, $18, $18 defb $18, $18, $18, $18 defb $18, $18, $18, $18 defb $18, $18, $18, $18 ; $b4 SF090000 defb $18, $18, $18, $18 defb $18, $18, $18, $F8 defb $F8, $18, $18, $18 defb $18, $18, $18, $18 ; $b5 SF190000 defb $18, $18, $18, $18 defb $18, $F8, $F8, $18 defb $F8, $F8, $18, $18 defb $18, $18, $18, $18 ; $b6 SF200000 defb $6C, $6C, $6C, $6C defb $6C, $6C, $6C, $EC defb $EC, $6C, $6C, $6C defb $6C, $6C, $6C, $6C ; $b7 SF210000 defb $00, $00, $00, $00 defb $00, $00, $00, $FC defb $FC, $6C, $6C, $6C defb $6C, $6C, $6C, $6C ; $b8 SF220000 defb $00, $00, $00, $00 defb $00, $F8, $F8, $18 defb $F8, $F8, $18, $18 defb $18, $18, $18, $18 ; $b9 SF230000 defb $6C, $6C, $6C, $6C defb $6C, $EC, $EC, $0C defb $EC, $EC, $6C, $6C defb $6C, $6C, $6C, $6C ; $ba SF240000 defb $6C, $6C, $6C, $6C defb $6C, $6C, $6C, $6C defb $6C, $6C, $6C, $6C defb $6C, $6C, $6C, $6C ; $bb SF250000 defb $00, $00, $00, $00 defb $00, $FC, $FC, $0C defb $EC, $EC, $6C, $6C defb $6C, $6C, $6C, $6C ; $bc SF260000 defb $6C, $6C, $6C, $6C defb $6C, $EC, $EC, $0C defb $FC, $FC, $00, $00 defb $00, $00, $00, $00 ; $bd SF270000 defb $6C, $6C, $6C, $6C defb $6C, $6C, $6C, $FC defb $FC, $00, $00, $00 defb $00, $00, $00, $00 ; $be SF280000 defb $18, $18, $18, $18 defb $18, $F8, $F8, $18 defb $F8, $F8, $00, $00 defb $00, $00, $00, $00 ; $bf SF030000 defb $00, $00, $00, $00 defb $00, $00, $00, $F8 defb $F8, $18, $18, $18 defb $18, $18, $18, $18 ; $c0 SF020000 defb $18, $18, $18, $18 defb $18, $18, $18, $1F defb $1F, $00, $00, $00 defb $00, $00, $00, $00 ; $c1 SF070000 defb $18, $18, $18, $18 defb $18, $18, $18, $FF defb $FF, $00, $00, $00 defb $00, $00, $00, $00 ; $c2 SF060000 defb $00, $00, $00, $00 defb $00, $00, $00, $FF defb $FF, $18, $18, $18 defb $18, $18, $18, $18 ; $c3 SF080000 defb $18, $18, $18, $18 defb $18, $18, $18, $1F defb $1F, $18, $18, $18 defb $18, $18, $18, $18 ; $c4 SF100000 defb $00, $00, $00, $00 defb $00, $00, $00, $FF defb $FF, $00, $00, $00 defb $00, $00, $00, $00 ; $c5 SF050000 defb $18, $18, $18, $18 defb $18, $18, $18, $FF defb $FF, $18, $18, $18 defb $18, $18, $18, $18 ; $c6 SF360000 defb $18, $18, $18, $18 defb $18, $1F, $1F, $18 defb $1F, $1F, $18, $18 defb $18, $18, $18, $18 ; $c7 SF370000 defb $6C, $6C, $6C, $6C defb $6C, $6C, $6C, $6F defb $6F, $6C, $6C, $6C defb $6C, $6C, $6C, $6C ; $c8 SF380000 defb $6C, $6C, $6C, $6C defb $6C, $6F, $6F, $60 defb $7F, $7F, $00, $00 defb $00, $00, $00, $00 ; $c9 SF390000 defb $00, $00, $00, $00 defb $00, $7F, $7F, $60 defb $6F, $6F, $6C, $6C defb $6C, $6C, $6C, $6C ; $ca SF400000 defb $6C, $6C, $6C, $6C defb $6C, $EF, $EF, $00 defb $FF, $FF, $00, $00 defb $00, $00, $00, $00 ; $cb SF410000 defb $00, $00, $00, $00 defb $00, $FF, $FF, $00 defb $EF, $EF, $6C, $6C defb $6C, $6C, $6C, $6C ; $cc SF420000 defb $6C, $6C, $6C, $6C defb $6C, $6F, $6F, $60 defb $6F, $6F, $6C, $6C defb $6C, $6C, $6C, $6C ; $cd SF430000 defb $00, $00, $00, $00 defb $00, $FF, $FF, $00 defb $FF, $FF, $00, $00 defb $00, $00, $00, $00 ; $ce SF440000 defb $6C, $6C, $6C, $6C defb $6C, $EF, $EF, $00 defb $EF, $EF, $6C, $6C defb $6C, $6C, $6C, $6C ; $cf SF450000 defb $18, $18, $18, $18 defb $18, $FF, $FF, $00 defb $FF, $FF, $00, $00 defb $00, $00, $00, $00 ; $d0 SF460000 defb $6C, $6C, $6C, $6C defb $6C, $6C, $6C, $FF defb $FF, $00, $00, $00 defb $00, $00, $00, $00 ; $d1 SF470000 defb $00, $00, $00, $00 defb $00, $FF, $FF, $00 defb $FF, $FF, $18, $18 defb $18, $18, $18, $18 ; $d2 SF480000 defb $00, $00, $00, $00 defb $00, $00, $00, $FF defb $FF, $6C, $6C, $6C defb $6C, $6C, $6C, $6C ; $d3 SF490000 defb $6C, $6C, $6C, $6C defb $6C, $6C, $6C, $7F defb $7F, $00, $00, $00 defb $00, $00, $00, $00 ; $d4 SF500000 defb $18, $18, $18, $18 defb $18, $1F, $1F, $18 defb $1F, $1F, $00, $00 defb $00, $00, $00, $00 ; $d5 SF510000 defb $00, $00, $00, $00 defb $00, $1F, $1F, $18 defb $1F, $1F, $18, $18 defb $18, $18, $18, $18 ; $d6 SF520000 defb $00, $00, $00, $00 defb $00, $00, $00, $7F defb $7F, $6C, $6C, $6C defb $6C, $6C, $6C, $6C ; $d7 SF530000 defb $6C, $6C, $6C, $6C defb $6C, $6C, $6C, $FF defb $FF, $6C, $6C, $6C defb $6C, $6C, $6C, $6C ; $d8 SF540000 defb $18, $18, $18, $18 defb $18, $FF, $FF, $18 defb $FF, $FF, $18, $18 defb $18, $18, $18, $18 ; $d9 SF040000 defb $18, $18, $18, $18 defb $18, $18, $18, $F8 defb $F8, $00, $00, $00 defb $00, $00, $00, $00 ; $da SF010000 defb $00, $00, $00, $00 defb $00, $00, $00, $1F defb $1F, $18, $18, $18 defb $18, $18, $18, $18 ; $db block defb $FF, $FF, $FF, $FF defb $FF, $FF, $FF, $FF defb $FF, $FF, $FF, $FF defb $FF, $FF, $FF, $FF ; $dc dnblock defb $00, $00, $00, $00 defb $00, $00, $00, $00 defb $FF, $FF, $FF, $FF defb $FF, $FF, $FF, $FF ; $dd lfblock defb $F0, $F0, $F0, $F0 defb $F0, $F0, $F0, $F0 defb $F0, $F0, $F0, $F0 defb $F0, $F0, $F0, $F0 ; $de rtblock defb $0F, $0F, $0F, $0F defb $0F, $0F, $0F, $0F defb $0F, $0F, $0F, $0F defb $0F, $0F, $0F, $0F ; $df upblock defb $FF, $FF, $FF, $FF defb $FF, $FF, $FF, $FF defb $00, $00, $00, $00 defb $00, $00, $00, $00 ; $e0 alpha defb $00, $00, $00, $00 defb $00, $7A, $CE, $CC defb $CC, $CC, $CE, $7A defb $00, $00, $00, $00 ; $e1 germandbls defb $00, $00, $78, $CC defb $CC, $C8, $FC, $C6 defb $C6, $C6, $E6, $DC defb $00, $00, $00, $00 ; $e2 Gamma defb $00, $00, $FE, $C0 defb $C0, $C0, $C0, $C0 defb $C0, $C0, $C0, $C0 defb $00, $00, $00, $00 ; $e3 pi defb $00, $00, $00, $00 defb $00, $FE, $C6, $C6 defb $C6, $C6, $C6, $C6 defb $00, $00, $00, $00 ; $e4 Sigma defb $00, $00, $FE, $C0 defb $60, $30, $18, $18 defb $30, $60, $C0, $FE defb $00, $00, $00, $00 ; $e5 sigma defb $00, $00, $00, $00 defb $00, $3F, $66, $66 defb $66, $66, $66, $3C defb $00, $00, $00, $00 ; $e6 mu defb $00, $00, $00, $00 defb $00, $C6, $C6, $C6 defb $C6, $C6, $CE, $F6 defb $C0, $C0, $C0, $00 ; $e7 tau defb $00, $00, $00, $00 defb $00, $FF, $18, $18 defb $18, $18, $18, $0E defb $00, $00, $00, $00 ; $e8 Phi defb $00, $00, $10, $7C defb $D6, $D6, $D6, $D6 defb $D6, $D6, $7C, $10 defb $00, $00, $00, $00 ; $e9 Theta defb $00, $00, $7C, $C6 defb $C6, $C6, $D6, $D6 defb $C6, $C6, $C6, $7C defb $00, $00, $00, $00 ; $ea Omega defb $00, $00, $7C, $C6 defb $C6, $C6, $C6, $C6 defb $C6, $6C, $6C, $EE defb $00, $00, $00, $00 ; $eb delta defb $00, $00, $7E, $30 defb $18, $7C, $C6, $C6 defb $C6, $C6, $C6, $7C defb $00, $00, $00, $00 ; $ec infinity defb $00, $00, $00, $00 defb $00, $7C, $D6, $D6 defb $D6, $7C, $00, $00 defb $00, $00, $00, $00 ; $ed phi defb $00, $00, $00, $00 defb $00, $4C, $D6, $D6 defb $D6, $D6, $D6, $7C defb $10, $10, $10, $00 ; $ee epsilon defb $00, $00, $00, $00 defb $00, $7C, $C6, $C0 defb $78, $C0, $C6, $7C defb $00, $00, $00, $00 ; $ef intersection defb $00, $00, $00, $00 defb $7C, $C6, $C6, $C6 defb $C6, $C6, $C6, $C6 defb $00, $00, $00, $00 ; $f0 equivalence defb $00, $00, $00, $00 defb $FE, $00, $00, $FE defb $00, $00, $FE, $00 defb $00, $00, $00, $00 ; $f1 plusminus defb $00, $00, $00, $00 defb $00, $18, $18, $7E defb $18, $18, $00, $7E defb $00, $00, $00, $00 ; $f2 greaterequal defb $00, $00, $00, $30 defb $18, $0C, $06, $0C defb $18, $30, $00, $7E defb $00, $00, $00, $00 ; $f3 lessequal defb $00, $00, $00, $0C defb $18, $30, $60, $30 defb $18, $0C, $00, $7E defb $00, $00, $00, $00 ; $f4 integraltp defb $00, $00, $0E, $1B defb $1B, $18, $18, $18 defb $18, $18, $18, $18 defb $18, $18, $18, $18 ; $f5 integralbt defb $18, $18, $18, $18 defb $18, $18, $18, $18 defb $18, $D8, $D8, $70 defb $00, $00, $00, $00 ; $f6 divide defb $00, $00, $00, $00 defb $18, $18, $00, $7E defb $00, $18, $18, $00 defb $00, $00, $00, $00 ; $f7 approxequal defb $00, $00, $00, $00 defb $00, $76, $DC, $00 defb $76, $DC, $00, $00 defb $00, $00, $00, $00 ; $f8 degree defb $00, $38, $6C, $6C defb $38, $00, $00, $00 defb $00, $00, $00, $00 defb $00, $00, $00, $00 ; $f9 bulletoperator defb $00, $00, $00, $00 defb $00, $00, $38, $38 defb $38, $00, $00, $00 defb $00, $00, $00, $00 ; $fa periodcentered defb $00, $00, $00, $00 defb $00, $00, $00, $18 defb $18, $00, $00, $00 defb $00, $00, $00, $00 ; $fb radical defb $00, $0E, $0C, $0C defb $0C, $0C, $CC, $CC defb $CC, $6C, $3C, $1C defb $00, $00, $00, $00 ; $fc nsuperior defb $00, $00, $78, $6C defb $6C, $6C, $6C, $00 defb $00, $00, $00, $00 defb $00, $00, $00, $00 ; $fd twosuperior defb $00, $38, $6C, $0C defb $18, $30, $7C, $00 defb $00, $00, $00, $00 defb $00, $00, $00, $00 ; $fe filledbox defb $00, $00, $00, $00 defb $00, $7C, $7C, $7C defb $7C, $7C, $7C, $00 defb $00, $00, $00, $00 ; $ff nbspace defb $00, $00, $00, $00 defb $00, $00, $00, $00 defb $00, $00, $00, $00 defb $00, $00, $00, $00
21.798444
23
0.515369
6faec3ef35f00749cbbc537400f33f99bd45f4b4
341
asm
Assembly
programs/oeis/161/A161474.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/161/A161474.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/161/A161474.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A161474: Triple factorials n!!!: a(n) = n*a(n-3). ; 1,1,1,3,4,5,18,28,40,162,280,440,1944,3640,6160,29160,58240,104720,524880,1106560,2094400,11022480,24344320,48171200,264539520,608608000,1252451200,7142567040,17041024000,36321084800,214277011200,528271744000,1162274713600 sub $0,1 mov $1,1 lpb $0 add $0,1 mul $1,$0 sub $0,4 lpe
31
224
0.739003
29bab36fddb526913d81ac7c55934d970945c39c
2,048
asm
Assembly
codigo/capitulo 31/ifelse.asm
Nabucodonosor-editorial/ensamblador-x86
d6d1498e67fdc58278cef9e45cdb5c423ade552f
[ "MIT" ]
2
2020-03-19T19:10:21.000Z
2021-04-10T16:01:21.000Z
codigo/capitulo 31/ifelse.asm
Nabucodonosor-editorial/ensamblador-x86
d6d1498e67fdc58278cef9e45cdb5c423ade552f
[ "MIT" ]
null
null
null
codigo/capitulo 31/ifelse.asm
Nabucodonosor-editorial/ensamblador-x86
d6d1498e67fdc58278cef9e45cdb5c423ade552f
[ "MIT" ]
null
null
null
segment .data textoebx db 0xA,0xD,"El valor de ebx es: " lentextoebx equ $- textoebx saltodelinea db 0xA,0xD lensaltodelinea equ $- saltodelinea segment .bss valorebx resb 1 section .text global _start _start: mov al, 5 ; guardamos el valor cinco en pantalla add al, 48 ; el cual estableceremos como el valor mov [valorebx], al ; inicial del registro ebx mov eax, 4 mov ebx, 1 mov ecx, textoebx mov edx, lentextoebx int 0x80 mov eax, 4 mov ebx, 1 mov ecx, valorebx mov edx, 1 int 0x80 mov eax, 4 mov ebx, 1 mov ecx, saltodelinea mov edx, lensaltodelinea int 0x80 mov ebx,[valorebx]; recuperamos el valor almacenado en la memoria mov eax, 0 ; establecemos el valor de eax a cinco cmp eax, 5 ; compara el valor de eax con cinco jne noigual ; si la bandera cero almacena un cero, eso significa ; que ambos numeros NO son iguales (eax!=5) y se realiza ; un salto a la etiqueta noigual, de lo contrario (eax==5) ; no se realiza ningún salto y se ejecutan las siguientes mov ebx, 1; lineas donde se iguala el valor de ebx con 1 (ebx = 1) mov eax, ebx add eax, 48 mov [valorebx], eax mov eax, 4 mov ebx, 1 mov ecx, textoebx mov edx, lentextoebx int 0x80 mov eax, 4 mov ebx, 1 mov ecx, valorebx mov edx, 1 int 0x80 mov eax, 4 mov ebx, 1 mov ecx, saltodelinea mov edx, lensaltodelinea int 0x80 jmp salir ; se realiza un salto incondicional a la etiqueta ; salir, de no realizarse se ejecutarian las lineas ; siguientes en donde se iguala el valor de ebx con ; cero noigual: mov ebx, 0; se iguala el valor de ebx con cero (ebx=0) mov eax, ebx add eax, 48 mov [valorebx], eax mov eax, 4 mov ebx, 1 mov ecx, textoebx mov edx, lentextoebx int 0x80 mov eax, 4 mov ebx, 1 mov ecx, valorebx mov edx, 1 int 0x80 mov eax, 4 mov ebx, 1 mov ecx, saltodelinea mov edx, lensaltodelinea int 0x80 salir: mov eax, 1 mov ebx, 0 int 0x80
20.48
70
0.660156
659d23735f5eacbba181d55405a80d5b5a62e5d9
457
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccixp_slong2ds.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccixp_slong2ds.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccixp_slong2ds.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; float __slong2fs (signed long sl) SECTION code_clib SECTION code_fp_math48 PUBLIC cm48_sdccixp_slong2ds EXTERN am48_double32, cm48_sdccixp_m482d cm48_sdccixp_slong2ds: ; signed long to double ; ; enter : stack = signed long sl, ret ; ; exit : dehl = sdcc_float(sl) ; ; uses : af, bc, de, hl, bc', de', hl' pop af pop hl pop de push de push hl push af call am48_double32 jp cm48_sdccixp_m482d
14.28125
42
0.656455
fe5695eca8dfee2e4e8d889b5bc17ff0b022bff2
66
asm
Assembly
VirtualMachine/Win32/UnitTests/Conditionals/test23_islte_Boolean.asm
ObjectPascalInterpreter/BookPart_3
95150d4d02f7e13e5b1ebb58c249073a384f2a0a
[ "Apache-2.0" ]
8
2021-11-07T22:45:25.000Z
2022-03-12T21:38:53.000Z
VirtualMachine/Win32/UnitTests/Conditionals/test23_islte_Boolean.asm
Irwin1985/BookPart_2
4e8c2e47cd09b77c6e5bd3455ddfe7492adf26bf
[ "Apache-2.0" ]
4
2021-09-23T02:13:55.000Z
2021-12-07T06:08:17.000Z
VirtualMachine/Win32/UnitTests/Conditionals/test23_islte_Boolean.asm
Irwin1985/BookPart_2
4e8c2e47cd09b77c6e5bd3455ddfe7492adf26bf
[ "Apache-2.0" ]
4
2021-11-24T17:24:56.000Z
2021-12-21T04:56:58.000Z
# Test23 - Islte Test pushi 2 pushi 3 isLte halt
9.428571
21
0.545455
030e67351ef9bc69af5f5a1a6898d7e8e9494999
1,859
asm
Assembly
programs/oeis/077/A077898.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/077/A077898.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/077/A077898.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A077898: Expansion of (1 - x)^(-1)/(1 + x - 2*x^2). ; 1,0,3,-2,9,-12,31,-54,117,-224,459,-906,1825,-3636,7287,-14558,29133,-58248,116515,-233010,466041,-932060,1864143,-3728262,7456549,-14913072,29826171,-59652314,119304657,-238609284,477218599,-954437166,1908874365,-3817748696,7635497427,-15270994818,30541989673,-61083979308,122167958655,-244335917270,488671834581,-977343669120,1954687338283,-3909374676522,7818749353089,-15637498706132,31274997412311,-62549994824574,125099989649197,-250199979298344,500399958596739,-1000799917193426,2001599834386905,-4003199668773756,8006399337547567,-16012798675095078,32025597350190213,-64051194700380368,128102389400760795,-256204778801521530,512409557603043121,-1024819115206086180,2049638230412172423,-4099276460824344782,8198552921648689629,-16397105843297379192,32794211686594758451,-65588423373189516834,131176846746379033737,-262353693492758067404,524707386985516134879,-1049414773971032269686,2098829547942064539445,-4197659095884129078816,8395318191768258157707,-16790636383536516315338,33581272767073032630753,-67162545534146065261428,134325091068292130522935,-268650182136584261045790,537300364273168522091661,-1074600728546337044183240,2149201457092674088366563,-4298402914185348176733042,8596805828370696353466169,-17193611656741392706932252,34387223313482785413864591,-68774446626965570827729094,137548893253931141655458277,-275097786507862283310916464,550195573015724566621833019,-1100391146031449133243665946,2200782292062898266487331985,-4401564584125796532974663876,8803129168251593065949327847,-17606258336503186131898655598,35212516673006372263797311293,-70425033346012744527594622488,140850066692025489055189245075,-281700133384050978110378490050 add $0,2 mov $2,-2 mov $3,2 lpb $0 sub $0,1 mov $1,$2 add $3,$2 mul $3,$2 add $4,$3 lpe sub $2,$4 mul $1,$2 sub $1,4 div $1,8 mov $0,$1
97.842105
1,657
0.863367
08e48945cfbd493dd1935cdbb86f36dd744844cc
1,010
asm
Assembly
stage23/protos/stivale2_rt.asm
carverh/qloader2
e4bcbc356ec0550159955749b88321ad2e57411b
[ "BSD-2-Clause" ]
1
2021-07-03T23:36:53.000Z
2021-07-03T23:36:53.000Z
stage23/protos/stivale2_rt.asm
0xqoob/limine
c940a411cbfe44cf99f62d81e009568ea2ca0aa9
[ "BSD-2-Clause" ]
null
null
null
stage23/protos/stivale2_rt.asm
0xqoob/limine
c940a411cbfe44cf99f62d81e009568ea2ca0aa9
[ "BSD-2-Clause" ]
null
null
null
section .bss user_stack: resq 1 user_cs: resq 1 user_ds: resq 1 user_es: resq 1 user_ss: resq 1 term_buf: resb 1024 section .text extern term_write bits 64 global stivale2_term_write_entry stivale2_term_write_entry: push rbx push rbp push r12 push r13 push r14 push r15 mov [user_stack], rsp mov rsp, 0x7c00 mov word [user_cs], cs mov word [user_ds], ds mov word [user_es], es mov word [user_ss], ss push rsi mov rcx, rsi mov rsi, rdi mov edi, term_buf rep movsb pop rsi push 0x18 push .mode32 retfq bits 32 .mode32: mov eax, 0x20 mov ds, ax mov es, ax mov ss, ax push esi push term_buf call term_write add esp, 8 push dword [user_cs] push .mode64 retfd bits 64 .mode64: mov ds, word [user_ds] mov es, word [user_es] mov ss, word [user_ss] mov rsp, [user_stack] pop r15 pop r14 pop r13 pop r12 pop rbp pop rbx ret
13.648649
32
0.610891
6a8d269d21af7174abf87ed0766c12bb0a7c1ff8
22,340
asm
Assembly
engine/battle_anims/anim_commands.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
1
2021-07-05T23:48:37.000Z
2021-07-05T23:48:37.000Z
engine/battle_anims/anim_commands.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
1
2020-12-16T01:11:20.000Z
2020-12-16T22:53:56.000Z
engine/battle_anims/anim_commands.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
1
2021-07-05T23:33:22.000Z
2021-07-05T23:33:22.000Z
; Battle animation command interpreter. PlayBattleAnim: ldh a, [rSVBK] push af ld a, BANK(wActiveAnimObjects) ldh [rSVBK], a call _PlayBattleAnim pop af ldh [rSVBK], a ret _PlayBattleAnim: ld c, 6 .wait call BattleAnimDelayFrame dec c jr nz, .wait call BattleAnimAssignPals call BattleAnimRequestPals call BattleAnimDelayFrame ld c, 1 ldh a, [rKEY1] bit 7, a jr nz, .asm_cc0ff ld c, 3 .asm_cc0ff ld hl, hVBlank ld a, [hl] push af ld [hl], c call BattleAnimRunScript pop af ldh [hVBlank], a ld a, $1 ldh [hBGMapMode], a call BattleAnimDelayFrame call BattleAnimDelayFrame call BattleAnimDelayFrame call WaitSFX ret BattleAnimRunScript: ld a, [wFXAnimID + 1] add a, a jr c, .play_anyway farcall CheckBattleScene jr c, .disabled call BattleAnimClearHud call RunBattleAnimScript call BattleAnimAssignPals call BattleAnimRequestPals xor a ldh [hSCX], a ldh [hSCY], a call BattleAnimDelayFrame call BattleAnimRestoreHuds .disabled ld a, [wNumHits] and a jr z, .done ld l, a ld h, 0 ld de, ANIM_MISS add hl, de ld a, l ld [wFXAnimID], a ld a, h ld [wFXAnimID + 1], a .play_anyway call WaitSFX call PlayHitSound call RunBattleAnimScript .done call BattleAnim_RevertPals ret RunBattleAnimScript: call ClearBattleAnims .playframe call RunBattleAnimCommand call _ExecuteBGEffects call BattleAnim_UpdateOAM_All call PushLYOverrides call BattleAnimRequestPals ; Speed up Rollout's animation. ld a, [wFXAnimID + 1] if HIGH(ROLLOUT) cp HIGH(ROLLOUT) else or a endc jr nz, .not_rollout ld a, [wFXAnimID] cp LOW(ROLLOUT) jr nz, .not_rollout ld a, ANIM_BG_2E ld b, NUM_BG_EFFECTS ld de, BG_EFFECT_STRUCT_LENGTH ld hl, wBGEffect1Function .find cp [hl] jr z, .done add hl, de dec b jr nz, .find .not_rollout call BattleAnimDelayFrame .done ld a, [wBattleAnimFlags] bit BATTLEANIM_STOP_F, a jr z, .playframe call BattleAnim_ClearOAM ret BattleAnimClearHud: call BattleAnimDelayFrame call WaitTop call ClearActorHud ld a, $1 ldh [hBGMapMode], a call BattleAnimDelayFrame call BattleAnimDelayFrame call BattleAnimDelayFrame call WaitTop ret BattleAnimRestoreHuds: call BattleAnimDelayFrame call WaitTop ldh a, [rSVBK] push af ld a, BANK(wCurBattleMon) ; aka BANK(wTempMon) and BANK(wPartyMon1) and several others ldh [rSVBK], a ld hl, UpdateBattleHuds ld a, BANK(UpdatePlayerHUD) rst FarCall ; Why not "call UpdateBattleHuds"? pop af ldh [rSVBK], a ld a, $1 ldh [hBGMapMode], a call BattleAnimDelayFrame call BattleAnimDelayFrame call BattleAnimDelayFrame call WaitTop ret BattleAnimRequestPals: ldh a, [hCGB] and a ret z ldh a, [rBGP] ld b, a ld a, [wBGP] cp b call nz, BattleAnim_SetBGPals ldh a, [rOBP0] ld b, a ld a, [wOBP0] cp b call nz, BattleAnim_SetOBPals ret BattleAnimDelayFrame: ; Like DelayFrame but wastes battery life. ld a, 1 ld [wVBlankOccurred], a .wait ld a, [wVBlankOccurred] and a jr nz, .wait ret ClearActorHud: ldh a, [hBattleTurn] and a jr z, .player hlcoord 1, 0 lb bc, 4, 10 call ClearBox ret .player hlcoord 9, 7 lb bc, 5, 11 call ClearBox ret Unreferenced_Functioncc220: xor a ldh [hBGMapMode], a ld a, LOW(vBGMap0 tile $28) ldh [hBGMapAddress], a ld a, HIGH(vBGMap0 tile $28) ldh [hBGMapAddress + 1], a call WaitBGMap2 ld a, $60 ldh [hWY], a xor a ; LOW(vBGMap0) ldh [hBGMapAddress], a ld a, HIGH(vBGMap0) ldh [hBGMapAddress + 1], a call BattleAnimDelayFrame ret BattleAnim_ClearOAM: ld a, [wBattleAnimFlags] bit BATTLEANIM_KEEPSPRITES_F, a jr z, .delete ; Instead of deleting the sprites, make them all use palette 0 (monochrome) ld hl, wVirtualOAMSprite00Attributes ld c, NUM_SPRITE_OAM_STRUCTS .loop ld a, [hl] and $ff ^ (PALETTE_MASK | VRAM_BANK_1) ld [hli], a rept SPRITEOAMSTRUCT_LENGTH + -1 inc hl endr dec c jr nz, .loop ret .delete ld hl, wVirtualOAM ld c, wVirtualOAMEnd - wVirtualOAM xor a .loop2 ld [hli], a dec c jr nz, .loop2 ret RunBattleAnimCommand: call .CheckTimer ret nc call .RunScript ret .CheckTimer: ld a, [wBattleAnimDelay] and a jr z, .done dec a ld [wBattleAnimDelay], a and a ret .done scf ret .RunScript: .loop call GetBattleAnimByte cp anim_ret_command jr nz, .not_done_with_anim ; Return from a subroutine. ld hl, wBattleAnimFlags bit BATTLEANIM_IN_SUBROUTINE_F, [hl] jr nz, .do_anim set BATTLEANIM_STOP_F, [hl] ret .not_done_with_anim cp anim_obj_command jr nc, .do_anim ld [wBattleAnimDelay], a ret .do_anim call .DoCommand jr .loop .DoCommand: ; Execute battle animation command in [wBattleAnimByte]. ld a, [wBattleAnimByte] sub anim_obj_command ld e, a ld d, 0 ld hl, BattleAnimCommands add hl, de add hl, de ld a, [hli] ld h, [hl] ld l, a jp hl BattleAnimCommands:: ; entries correspond to macros/scripts/battle_anims.asm enumeration dw BattleAnimCmd_Obj dw BattleAnimCmd_1GFX dw BattleAnimCmd_2GFX dw BattleAnimCmd_3GFX dw BattleAnimCmd_4GFX dw BattleAnimCmd_5GFX dw BattleAnimCmd_IncObj dw BattleAnimCmd_SetObj dw BattleAnimCmd_IncBGEffect dw BattleAnimCmd_BattlerGFX_1Row dw BattleAnimCmd_BattlerGFX_2Row dw BattleAnimCmd_CheckPokeball dw BattleAnimCmd_Transform dw BattleAnimCmd_RaiseSub dw BattleAnimCmd_DropSub dw BattleAnimCmd_ResetObp0 dw BattleAnimCmd_Sound dw BattleAnimCmd_Cry dw BattleAnimCmd_MinimizeOpp dw BattleAnimCmd_OAMOn dw BattleAnimCmd_OAMOff dw BattleAnimCmd_ClearObjs dw BattleAnimCmd_BeatUp dw BattleAnimCmd_E7 dw BattleAnimCmd_UpdateActorPic dw BattleAnimCmd_Minimize dw BattleAnimCmd_EA ; dummy dw BattleAnimCmd_EB ; dummy dw BattleAnimCmd_EC ; dummy dw BattleAnimCmd_ED ; dummy dw BattleAnimCmd_IfParamAnd dw BattleAnimCmd_JumpUntil dw BattleAnimCmd_BGEffect dw BattleAnimCmd_BGP dw BattleAnimCmd_OBP0 dw BattleAnimCmd_OBP1 dw BattleAnimCmd_KeepSprites dw BattleAnimCmd_F5 dw BattleAnimCmd_F6 dw BattleAnimCmd_F7 dw BattleAnimCmd_IfParamEqual dw BattleAnimCmd_SetVar dw BattleAnimCmd_IncVar dw BattleAnimCmd_IfVarEqual dw BattleAnimCmd_Jump dw BattleAnimCmd_Loop dw BattleAnimCmd_Call dw BattleAnimCmd_Ret BattleAnimCmd_EA: BattleAnimCmd_EB: BattleAnimCmd_EC: BattleAnimCmd_ED: ret BattleAnimCmd_Ret: ld hl, wBattleAnimFlags res BATTLEANIM_IN_SUBROUTINE_F, [hl] ld hl, wBattleAnimParent ld e, [hl] inc hl ld d, [hl] ld hl, wBattleAnimAddress ld [hl], e inc hl ld [hl], d ret BattleAnimCmd_Call: call GetBattleAnimByte ld e, a call GetBattleAnimByte ld d, a push de ld hl, wBattleAnimAddress ld e, [hl] inc hl ld d, [hl] ld hl, wBattleAnimParent ld [hl], e inc hl ld [hl], d pop de ld hl, wBattleAnimAddress ld [hl], e inc hl ld [hl], d ld hl, wBattleAnimFlags set BATTLEANIM_IN_SUBROUTINE_F, [hl] ret BattleAnimCmd_Jump: call GetBattleAnimByte ld e, a call GetBattleAnimByte ld d, a ld hl, wBattleAnimAddress ld [hl], e inc hl ld [hl], d ret BattleAnimCmd_Loop: call GetBattleAnimByte ld hl, wBattleAnimFlags bit BATTLEANIM_IN_LOOP_F, [hl] jr nz, .continue_loop and a jr z, .perpetual dec a set BATTLEANIM_IN_LOOP_F, [hl] ld [wBattleAnimLoops], a .continue_loop ld hl, wBattleAnimLoops ld a, [hl] and a jr z, .return_from_loop dec [hl] .perpetual call GetBattleAnimByte ld e, a call GetBattleAnimByte ld d, a ld hl, wBattleAnimAddress ld [hl], e inc hl ld [hl], d ret .return_from_loop ld hl, wBattleAnimFlags res BATTLEANIM_IN_LOOP_F, [hl] ld hl, wBattleAnimAddress ld e, [hl] inc hl ld d, [hl] inc de inc de ld [hl], d dec hl ld [hl], e ret BattleAnimCmd_JumpUntil: ld hl, wBattleAnimParam ld a, [hl] and a jr z, .dont_jump dec [hl] call GetBattleAnimByte ld e, a call GetBattleAnimByte ld d, a ld hl, wBattleAnimAddress ld [hl], e inc hl ld [hl], d ret .dont_jump ld hl, wBattleAnimAddress ld e, [hl] inc hl ld d, [hl] inc de inc de ld [hl], d dec hl ld [hl], e ret BattleAnimCmd_SetVar: call GetBattleAnimByte ld [wBattleAnimVar], a ret BattleAnimCmd_IncVar: ld hl, wBattleAnimVar inc [hl] ret BattleAnimCmd_IfVarEqual: call GetBattleAnimByte ld hl, wBattleAnimVar cp [hl] jr z, .jump ld hl, wBattleAnimAddress ld e, [hl] inc hl ld d, [hl] inc de inc de ld [hl], d dec hl ld [hl], e ret .jump call GetBattleAnimByte ld e, a call GetBattleAnimByte ld d, a ld hl, wBattleAnimAddress ld [hl], e inc hl ld [hl], d ret BattleAnimCmd_IfParamEqual: call GetBattleAnimByte ld hl, wBattleAnimParam cp [hl] jr z, .jump ld hl, wBattleAnimAddress ld e, [hl] inc hl ld d, [hl] inc de inc de ld [hl], d dec hl ld [hl], e ret .jump call GetBattleAnimByte ld e, a call GetBattleAnimByte ld d, a ld hl, wBattleAnimAddress ld [hl], e inc hl ld [hl], d ret BattleAnimCmd_IfParamAnd: call GetBattleAnimByte ld e, a ld a, [wBattleAnimParam] and e jr nz, .jump ld hl, wBattleAnimAddress ld e, [hl] inc hl ld d, [hl] inc de inc de ld [hl], d dec hl ld [hl], e ret .jump call GetBattleAnimByte ld e, a call GetBattleAnimByte ld d, a ld hl, wBattleAnimAddress ld [hl], e inc hl ld [hl], d ret BattleAnimCmd_Obj: ; index, x, y, param call GetBattleAnimByte ld [wBattleObjectTempID], a call GetBattleAnimByte ld [wBattleObjectTempXCoord], a call GetBattleAnimByte ld [wBattleObjectTempYCoord], a call GetBattleAnimByte ld [wBattleObjectTempParam], a call QueueBattleAnimation ret BattleAnimCmd_BGEffect: call GetBattleAnimByte ld [wBattleAnimTemp0], a call GetBattleAnimByte ld [wBattleAnimTemp1], a call GetBattleAnimByte ld [wBattleAnimTemp2], a call GetBattleAnimByte ld [wBattleAnimTemp3], a call _QueueBGEffect ret BattleAnimCmd_BGP: call GetBattleAnimByte ld [wBGP], a ret BattleAnimCmd_OBP0: call GetBattleAnimByte ld [wOBP0], a ret BattleAnimCmd_OBP1: call GetBattleAnimByte ld [wOBP1], a ret BattleAnimCmd_ResetObp0: ldh a, [hSGB] and a ld a, $e0 jr z, .not_sgb ld a, $f0 .not_sgb ld [wOBP0], a ret BattleAnimCmd_ClearObjs: ld hl, wActiveAnimObjects ld a, NUM_ANIM_OBJECTS * BATTLEANIMSTRUCT_LENGTH .loop ld [hl], 0 inc hl dec a jr nz, .loop ret BattleAnimCmd_1GFX: BattleAnimCmd_2GFX: BattleAnimCmd_3GFX: BattleAnimCmd_4GFX: BattleAnimCmd_5GFX: ld a, [wBattleAnimByte] and $f ld c, a ld hl, wBattleAnimTileDict xor a ld [wBattleAnimTemp0], a .loop ld a, [wBattleAnimTemp0] cp (vTiles1 - vTiles0) / LEN_2BPP_TILE - BATTLEANIM_BASE_TILE ret nc call GetBattleAnimByte ld [hli], a ld a, [wBattleAnimTemp0] ld [hli], a push bc push hl ld l, a ld h, $0 rept 4 add hl, hl endr ld de, vTiles0 tile BATTLEANIM_BASE_TILE add hl, de ld a, [wBattleAnimByte] call LoadBattleAnimGFX ld a, [wBattleAnimTemp0] add c ld [wBattleAnimTemp0], a pop hl pop bc dec c jr nz, .loop ret BattleAnimCmd_IncObj: call GetBattleAnimByte ld e, NUM_ANIM_OBJECTS ld bc, wActiveAnimObjects .loop ld hl, BATTLEANIMSTRUCT_INDEX add hl, bc ld d, [hl] ld a, [wBattleAnimByte] cp d jr z, .found ld hl, BATTLEANIMSTRUCT_LENGTH add hl, bc ld c, l ld b, h dec e jr nz, .loop ret .found ld hl, BATTLEANIMSTRUCT_ANON_JT_INDEX add hl, bc inc [hl] ret BattleAnimCmd_IncBGEffect: call GetBattleAnimByte ld e, NUM_BG_EFFECTS ld bc, wBGEffect1Function .loop ld hl, $0 add hl, bc ld d, [hl] ld a, [wBattleAnimByte] cp d jr z, .found ld hl, 4 add hl, bc ld c, l ld b, h dec e jr nz, .loop ret .found ld hl, BG_EFFECT_STRUCT_JT_INDEX add hl, bc inc [hl] ret BattleAnimCmd_SetObj: call GetBattleAnimByte ld e, NUM_ANIM_OBJECTS ld bc, wActiveAnimObjects .loop ld hl, BATTLEANIMSTRUCT_INDEX add hl, bc ld d, [hl] ld a, [wBattleAnimByte] cp d jr z, .found ld hl, BATTLEANIMSTRUCT_LENGTH add hl, bc ld c, l ld b, h dec e jr nz, .loop ret .found call GetBattleAnimByte ld hl, BATTLEANIMSTRUCT_ANON_JT_INDEX add hl, bc ld [hl], a ret BattleAnimCmd_BattlerGFX_1Row: ld hl, wBattleAnimTileDict .loop ld a, [hl] and a jr z, .okay inc hl inc hl jr .loop .okay ld a, ANIM_GFX_PLAYERHEAD ld [hli], a ld a, ($80 - 6 - 7) - BATTLEANIM_BASE_TILE ld [hli], a ld a, ANIM_GFX_ENEMYFEET ld [hli], a ld a, ($80 - 6) - BATTLEANIM_BASE_TILE ld [hl], a ld hl, vTiles0 tile ($80 - 6 - 7) ld de, vTiles2 tile $06 ; Enemy feet start tile ld a, 7 tiles ; Enemy pic height ld [wBattleAnimTemp0], a ld a, 7 ; Copy 7x1 tiles call .LoadFeet ld de, vTiles2 tile $31 ; Player head start tile ld a, 6 tiles ; Player pic height ld [wBattleAnimTemp0], a ld a, 6 ; Copy 6x1 tiles call .LoadFeet ret .LoadFeet: push af push hl push de lb bc, BANK(@), 1 call Request2bpp pop de ld a, [wBattleAnimTemp0] ld l, a ld h, 0 add hl, de ld e, l ld d, h pop hl ld bc, 1 tiles add hl, bc pop af dec a jr nz, .LoadFeet ret BattleAnimCmd_BattlerGFX_2Row: ld hl, wBattleAnimTileDict .loop ld a, [hl] and a jr z, .okay inc hl inc hl jr .loop .okay ld a, ANIM_GFX_PLAYERHEAD ld [hli], a ld a, ($80 - 6 * 2 - 7 * 2) - BATTLEANIM_BASE_TILE ld [hli], a ld a, ANIM_GFX_ENEMYFEET ld [hli], a ld a, ($80 - 6 * 2) - BATTLEANIM_BASE_TILE ld [hl], a ld hl, vTiles0 tile ($80 - 6 * 2 - 7 * 2) ld de, vTiles2 tile $05 ; Enemy feet start tile ld a, 7 tiles ; Enemy pic height ld [wBattleAnimTemp0], a ld a, 7 ; Copy 7x2 tiles call .LoadHead ld de, vTiles2 tile $31 ; Player head start tile ld a, 6 tiles ; Player pic height ld [wBattleAnimTemp0], a ld a, 6 ; Copy 6x2 tiles call .LoadHead ret .LoadHead: push af push hl push de lb bc, BANK(@), 2 call Request2bpp pop de ld a, [wBattleAnimTemp0] ld l, a ld h, 0 add hl, de ld e, l ld d, h pop hl ld bc, 2 tiles add hl, bc pop af dec a jr nz, .LoadHead ret BattleAnimCmd_CheckPokeball: callfar GetPokeBallWobble ld a, c ld [wBattleAnimVar], a ret BattleAnimCmd_E7: ret BattleAnimCmd_Transform: ldh a, [rSVBK] push af ld a, BANK(wCurPartySpecies) ldh [rSVBK], a ld a, [wCurPartySpecies] ; CurPartySpecies push af ldh a, [hBattleTurn] and a jr z, .player ld a, [wTempBattleMonSpecies] ; TempBattleMonSpecies ld [wCurPartySpecies], a ; CurPartySpecies ld hl, wBattleMonDVs ; BattleMonDVs predef GetUnownLetter ld de, vTiles0 tile $00 predef GetMonFrontpic jr .done .player ld a, [wTempEnemyMonSpecies] ; TempEnemyMonSpecies ld [wCurPartySpecies], a ; CurPartySpecies ld hl, wEnemyMonDVs ; EnemyMonDVs predef GetUnownLetter ld de, vTiles0 tile $00 predef GetMonBackpic .done pop af ld [wCurPartySpecies], a ; CurPartySpecies pop af ldh [rSVBK], a ret BattleAnimCmd_UpdateActorPic: ld de, vTiles0 tile $00 ldh a, [hBattleTurn] and a jr z, .player ld hl, vTiles2 tile $00 ld b, 0 ld c, 7 * 7 call Request2bpp ret .player ld hl, vTiles2 tile $31 ld b, 0 ld c, 6 * 6 call Request2bpp ret BattleAnimCmd_RaiseSub: ldh a, [rSVBK] push af ld a, 1 ; unnecessary bankswitch? ldh [rSVBK], a xor a ; sScratch call GetSRAMBank GetSubstitutePic: ; used only for BANK(GetSubstitutePic) ld hl, sScratch ld bc, (7 * 7) tiles .loop xor a ld [hli], a dec bc ld a, c or b jr nz, .loop ldh a, [hBattleTurn] and a jr z, .player ld hl, MonsterSpriteGFX + 0 tiles ld de, sScratch + (2 * 7 + 5) tiles call .CopyTile ld hl, MonsterSpriteGFX + 1 tiles ld de, sScratch + (3 * 7 + 5) tiles call .CopyTile ld hl, MonsterSpriteGFX + 2 tiles ld de, sScratch + (2 * 7 + 6) tiles call .CopyTile ld hl, MonsterSpriteGFX + 3 tiles ld de, sScratch + (3 * 7 + 6) tiles call .CopyTile ld hl, vTiles2 tile $00 ld de, sScratch lb bc, BANK(GetSubstitutePic), 7 * 7 call Request2bpp jr .done .player ld hl, MonsterSpriteGFX + 4 tiles ld de, sScratch + (2 * 6 + 4) tiles call .CopyTile ld hl, MonsterSpriteGFX + 5 tiles ld de, sScratch + (3 * 6 + 4) tiles call .CopyTile ld hl, MonsterSpriteGFX + 6 tiles ld de, sScratch + (2 * 6 + 5) tiles call .CopyTile ld hl, MonsterSpriteGFX + 7 tiles ld de, sScratch + (3 * 6 + 5) tiles call .CopyTile ld hl, vTiles2 tile $31 ld de, sScratch lb bc, BANK(GetSubstitutePic), 6 * 6 call Request2bpp .done call CloseSRAM pop af ldh [rSVBK], a ret .CopyTile: ld bc, 1 tiles ld a, BANK(MonsterSpriteGFX) call FarCopyBytes ret BattleAnimCmd_MinimizeOpp: ldh a, [rSVBK] push af ld a, 1 ; unnecessary bankswitch? ldh [rSVBK], a xor a ; sScratch call GetSRAMBank call GetMinimizePic call Request2bpp call CloseSRAM pop af ldh [rSVBK], a ret GetMinimizePic: ld hl, sScratch ld bc, (7 * 7) tiles .loop xor a ld [hli], a dec bc ld a, c or b jr nz, .loop ldh a, [hBattleTurn] and a jr z, .player ld de, sScratch + $1a tiles call CopyMinimizePic ld hl, vTiles2 tile $00 ld de, sScratch lb bc, BANK(GetMinimizePic), 7 * 7 ret .player ld de, sScratch + $160 call CopyMinimizePic ld hl, vTiles2 tile $31 ld de, sScratch lb bc, BANK(GetMinimizePic), 6 * 6 ret CopyMinimizePic: ld hl, MinimizePic ld bc, $10 ld a, BANK(MinimizePic) call FarCopyBytes ret MinimizePic: INCBIN "gfx/battle/minimize.2bpp" BattleAnimCmd_Minimize: ldh a, [rSVBK] push af ld a, 1 ; unnecessary bankswitch? ldh [rSVBK], a xor a ; sScratch call GetSRAMBank call GetMinimizePic ld hl, vTiles0 tile $00 call Request2bpp call CloseSRAM pop af ldh [rSVBK], a ret BattleAnimCmd_DropSub: ldh a, [rSVBK] push af ld a, BANK(wCurPartySpecies) ldh [rSVBK], a ld a, [wCurPartySpecies] ; CurPartySpecies push af ldh a, [hBattleTurn] and a jr z, .player callfar DropEnemySub jr .done .player callfar DropPlayerSub .done pop af ld [wCurPartySpecies], a ; CurPartySpecies pop af ldh [rSVBK], a ret BattleAnimCmd_BeatUp: ldh a, [rSVBK] push af ld a, BANK(wCurPartySpecies) ldh [rSVBK], a ld a, [wCurPartySpecies] ; CurPartySpecies push af ld a, [wBattleAnimParam] ld [wCurPartySpecies], a ; CurPartySpecies ldh a, [hBattleTurn] and a jr z, .player ld hl, wBattleMonDVs predef GetUnownLetter ld de, vTiles2 tile $00 predef GetMonFrontpic jr .done .player ld hl, wEnemyMonDVs predef GetUnownLetter ld de, vTiles2 tile $31 predef GetMonBackpic .done pop af ld [wCurPartySpecies], a ; CurPartySpecies ld b, SCGB_BATTLE_COLORS call GetSGBLayout pop af ldh [rSVBK], a ret BattleAnimCmd_OAMOn: xor a ldh [hOAMUpdate], a ret BattleAnimCmd_OAMOff: ld a, $1 ldh [hOAMUpdate], a ret BattleAnimCmd_KeepSprites: ld hl, wBattleAnimFlags set BATTLEANIM_KEEPSPRITES_F, [hl] ret BattleAnimCmd_F5: ret BattleAnimCmd_F6: ret BattleAnimCmd_F7: ret BattleAnimCmd_Sound: call GetBattleAnimByte ld e, a srl a srl a ld [wSFXDuration], a call .GetCryTrack maskbits NUM_NOISE_CHANS ld [wCryTracks], a ; CryTracks ld e, a ld d, 0 ld hl, .GetPanning add hl, de ld a, [hl] ld [wStereoPanningMask], a call GetBattleAnimByte ld e, a ld d, 0 callfar PlayStereoSFX ret .GetPanning: db $f0, $0f, $f0, $0f .GetCryTrack: ldh a, [hBattleTurn] and a jr nz, .enemy ld a, e ret .enemy ld a, e xor 1 ret BattleAnimCmd_Cry: call GetBattleAnimByte maskbits NUM_NOISE_CHANS ld e, a ld d, 0 ld hl, .CryData rept 4 add hl, de endr ldh a, [rSVBK] push af ld a, BANK(wEnemyMon) ; wBattleMon is in WRAM0, but EnemyMon is in WRAMX ldh [rSVBK], a ldh a, [hBattleTurn] and a jr nz, .enemy ld a, $f0 ld [wCryTracks], a ld a, [wBattleMonSpecies] jr .done_cry_tracks .enemy ld a, $0f ld [wCryTracks], a ld a, [wEnemyMonSpecies] .done_cry_tracks push hl call LoadCry pop hl jr c, .done ld a, [hli] ld c, a ld a, [hli] ld b, a push hl ld hl, wCryPitch ld a, [hli] ld h, [hl] ld l, a add hl, bc ld a, l ld [wCryPitch], a ld a, h ld [wCryPitch + 1], a pop hl ld a, [hli] ld c, a ld b, [hl] ld hl, wCryLength ; CryLength ld a, [hli] ld h, [hl] ld l, a add hl, bc ld a, l ld [wCryLength], a ; CryLength ld a, h ld [wCryLength + 1], a ld a, 1 ld [wStereoPanningMask], a callfar _PlayCry .done pop af ldh [rSVBK], a ret .CryData: ; +pitch, +length dw $0000, $00c0 dw $0000, $0040 dw $0000, $0000 dw $0000, $0000 PlayHitSound: ld a, [wNumHits] cp $1 jr z, .okay cp $4 ret nz .okay ld a, [wTypeModifier] and $7f ret z cp EFFECTIVE ld de, SFX_DAMAGE jr z, .play ld de, SFX_SUPER_EFFECTIVE jr nc, .play ld de, SFX_NOT_VERY_EFFECTIVE .play call PlaySFX ret BattleAnimAssignPals: ldh a, [hCGB] and a jr nz, .cgb ldh a, [hSGB] and a ld a, %11100000 jr z, .sgb ld a, %11110000 .sgb ld [wOBP0], a ld a, %11100100 ld [wBGP], a ld [wOBP1], a ret .cgb ld a, %11100100 ld [wBGP], a ld [wOBP0], a ld [wOBP1], a call DmgToCgbBGPals lb de, %11100100, %11100100 call DmgToCgbObjPals ret ClearBattleAnims:: ; Clear animation block ld hl, wLYOverrides ld bc, wBattleAnimEnd - wLYOverrides .loop ld [hl], $0 inc hl dec bc ld a, c or b jr nz, .loop ld hl, wFXAnimID ld e, [hl] inc hl ld d, [hl] ld hl, BattleAnimations add hl, de add hl, de call GetBattleAnimPointer call BattleAnimAssignPals call BattleAnimDelayFrame ret BattleAnim_RevertPals: call WaitTop ld a, %11100100 ld [wBGP], a ld [wOBP0], a ld [wOBP1], a call DmgToCgbBGPals lb de, %11100100, %11100100 call DmgToCgbObjPals xor a ldh [hSCX], a ldh [hSCY], a call BattleAnimDelayFrame ld a, $1 ldh [hBGMapMode], a ret BattleAnim_SetBGPals: ldh [rBGP], a ldh a, [hCGB] and a ret z ldh a, [rSVBK] push af ld a, BANK(wBGPals1) ldh [rSVBK], a ld hl, wBGPals2 ld de, wBGPals1 ldh a, [rBGP] ld b, a ld c, 7 call CopyPals ld hl, wOBPals2 ld de, wOBPals1 ldh a, [rBGP] ld b, a ld c, 2 call CopyPals pop af ldh [rSVBK], a ld a, $1 ldh [hCGBPalUpdate], a ret BattleAnim_SetOBPals: ldh [rOBP0], a ldh a, [hCGB] and a ret z ldh a, [rSVBK] push af ld a, BANK(wOBPals1) ldh [rSVBK], a ld hl, wOBPals2 palette PAL_BATTLE_OB_GRAY ld de, wOBPals1 palette PAL_BATTLE_OB_GRAY ldh a, [rOBP0] ld b, a ld c, 2 call CopyPals pop af ldh [rSVBK], a ld a, $1 ldh [hCGBPalUpdate], a ret BattleAnim_UpdateOAM_All: ld a, 0 ld [wBattleAnimOAMPointerLo], a ld hl, wActiveAnimObjects ld e, NUM_ANIM_OBJECTS .loop ld a, [hl] and a jr z, .next ld c, l ld b, h push hl push de call DoBattleAnimFrame call BattleAnimOAMUpdate pop de pop hl jr c, .done .next ld bc, BATTLEANIMSTRUCT_LENGTH add hl, bc dec e jr nz, .loop ld a, [wBattleAnimOAMPointerLo] ld l, a ld h, HIGH(wVirtualOAM) .loop2 ld a, l cp LOW(wVirtualOAMEnd) jr nc, .done xor a ld [hli], a jr .loop2 .done ret
15.156038
87
0.712399
034dd620ed072e3c1a21929a7ec49a150cf3d469
20,196
asm
Assembly
WRK-V1.2/PUBLIC/INTERNAL/SDKTOOLS/masm/asmhelp.asm
intj-t/openvmsft
0d17fbce8607ab2b880be976c2e86d8cfc3e83bb
[ "Intel" ]
null
null
null
WRK-V1.2/PUBLIC/INTERNAL/SDKTOOLS/masm/asmhelp.asm
intj-t/openvmsft
0d17fbce8607ab2b880be976c2e86d8cfc3e83bb
[ "Intel" ]
null
null
null
WRK-V1.2/PUBLIC/INTERNAL/SDKTOOLS/masm/asmhelp.asm
intj-t/openvmsft
0d17fbce8607ab2b880be976c2e86d8cfc3e83bb
[ "Intel" ]
null
null
null
title asmhelp - assembler helpers page ,132 ;-------------------------------------------------------------------- ; ; asmhelp fast assembly language helpers for masm ; ; (C)Copyright 1985 Microsoft Corp. ; ; Revision history ; ; 04/02/85 Greg Whitten ; initial version ; scanatom speedups ; ;-------------------------------------------------------------------- ifndef MSDOS ifndef CPDOS .286 endif endif .model medium,c if1 alignCode macro align 4 endm .xlist include mixed.inc .list .lall endif cLang = 1 CASEL = 1 SYMMAX = 31 TSYMSIZE = 451 ; from asmsym.c LEGAL1ST = 08h ; legal 1st token character mask TOKLEGAL = 10h ; legal token character mask .code A_TEXT extrn Pascal ERRORC:near extrn Pascal CREFNEW:far extrn Pascal CREFOUT:far extrn Pascal OFFSETASCII:far extrn Pascal listline:far extrn Pascal crefline:far extrn Pascal tryOneFile:far extrn _ffree:far ifndef MSDOS extrn read:proc extrn write:proc extrn lseek:proc extrn free:proc endif ifdef CPDOS extrn Pascal DosRead:far extrn Pascal DosChgFilePtr:far extrn Pascal DosWrite:far endif .data extrn _asmctype_:byte extrn _asmcupper_:byte extrn _asmTokenMap_:byte extrn caseflag:byte extrn fCrefline:byte extrn fNeedList:byte extrn objing:byte extrn srceof:byte extrn crefing:byte extrn emitrecordtype:byte extrn linebp:word extrn linelength:byte extrn linebuffer:byte extrn linessrc:word extrn listconsole:byte extrn begatom:word extrn endatom:word extrn errorlineno:word extrn errorcode:word extrn oOMFCur:dword extrn handler:byte extrn lbufp:word extrn pass2:byte extrn save:byte extrn svname:word extrn obj:word extrn pFCBCur:word extrn naim:word extrn objerr:word extrn objectascii:word extrn iProcCur:word extrn symptr:dword extrn lsting:byte extrn lbuf:byte ifdef BCBOPT extrn hash:word extrn lcname:word extrn svhash:word extrn svlcname:word extrn fNoCompact:byte endif @CurSeg ends assume ds:nothing extrn tsym:dword assume ds:@data .data? mapstr db 10 dup(?) ; use this if /Ml ifdef M8086OPT qlcname db SYMMAX+1 dup(?) dw 1 dup(?) ;hash for name db 1 dup(?) ;cb for name qname db SYMMAX+1 dup(?) qsvlcname db SYMMAX+1 dup(?) dw 1 dup(?) ;hash for name db 1 dup(?) ;cb for name qsvname db SYMMAX+1 dup(?) endif ifdef M8086OPT public qlcname, qname, qsvlcname, qsvname endif .data fEatBlanks db 1 ; flag for common getatom & getatomend cbLeft dw 0 ; count of bytes left in lbuf rarea dw 0 ; area for DosRead/Write to tell how much it read .code A_TEXT ifdef M8086OPT ;*** getatom () ( hash = scanatom() ) nulToken: mov lbufp,si ; update buffer pointer mov [di+SYMMAX+4],bh pop di pop si retn getatomComm: hProc <getatom near>, <uses si di> mov ax,ds mov es,ax mov di,lbufp mov ax,0920H ; load tab|space into AX or cx,0FFFFH ; large count to CX alignCode skipbeg: repe scasb ; look for space xchg al,ah dec di repe scasb ; then tab dec di cmp byte ptr [di],ah je skipbeg ; repeat if still space xor ax,ax xor bx,bx mov si,di mov di,lcname mov bl,[si] test byte ptr _asmctype_[bx],LEGAL1ST jz nulToken xor dx,dx ; initial hash value mov cx,SYMMAX mov begatom,si ; start of atom cmp bl,'.' ;special case for token starting jne notDot ;with . inc si dec cx mov al,bl mov dx,ax stosb mov [di+SYMMAX+3],al notDot: mov bx,offset _asmTokenMap_ ; character translation table cmp caseflag,CASEL je short tokloop ; Mu or Mx - use MAP version alignCode Mtokloop: rept 3 lodsb ; al = get next character stosb ; *lcname++ = cc xlat mov [di+SYMMAX+3],al ; *naim++ = cc add dx,ax ; swapped hash += MAP(cc) dec cx or al,al jz short tokdone jcxz skiptok endm lodsb stosb xlat mov [di+SYMMAX+3],al add dx,ax or al,al loopnz Mtokloop jz tokdone jmp skiptok tokloop: rept 3 lodsb ; al = get next character stosb ; *lcname++ = cc mov [di+SYMMAX+3],al ; *naim++ = cc xlat add dx,ax ; swapped hash += MAP(cc) dec cx or al,al jz short tokdone0 jcxz skiptok endm lodsb stosb mov [di+SYMMAX+3],al xlat add dx,ax or al,al loopnz tokloop jz tokdone0 jmp short skiptok tokdone0: mov [di+SYMMAX+3],al ; terminate tokdone: mov [di-1],al dec si mov endatom,si jmp short skipend skiptok: dec cx skipnext: lodsb ; eat extra characters in token xlat or al,al jnz skipnext ; skip token mov endatom,si mov [di],al inc di mov [di+SYMMAX+3],al ; terminate dec si skipend: ; skip for getatom only mov bx,cx mov di,si cmp fEatBlanks,0 jz noEatSemie mov ax,0920H ; load tab|space into AX or cx,0FFFFH ; large count to CX alignCode skipend1: repe scasb ; look for space xchg al,ah dec di repe scasb ; then tab dec di cmp byte ptr [di],ah je skipend1 ; repeat if still space skipend2: ; skip trailing white space mov lbufp,di ; update buffer pointer xor ax,ax mov al,SYMMAX-1 ; compute token length sub al,bl mov bx,naim mov byte ptr [bx-1],al ; save prefixed cb mov word ptr [bx-3],dx ; save prefixed hash hRet noEatSemie: mov fEatBlanks,1 jmp skipend2 hEndp ;*** getatomend () ; get an token without skiping trailing spaces hProc <getatomend near> mov fEatBlanks,0 jmp getatomComm hEndp endif ;M8086OPT ifdef M8086OPT ;*** inset (value, setptr) hProc <inset near>, <uses si di>, value:byte, setptr:word mov ax,ds mov es,ax cld mov al,value mov di,setptr mov cl,[di] inc di xor ch,ch ; cx = set length repne scasb ; scan for al in es:di je insetT ; yes - return TRUE xor ax,ax ; return FALSE insetexit: hRet insetT: mov ax,1 ; return TRUE jmp short insetexit hEndp endif ;M8086OPT ;*** strffcmp (far1, far2) hProc <strffcmp far>, <uses si di>, far1:dword, far2:dword cld les di,far2 lds si,far1 mov bx,di ; save start of string cmpsb ; fast 1st char check jnz ffne dec si xor ax,ax ; search for 0 terminator mov cx,-1 repne scasb neg cx ; cx = byte count for compare mov di,bx repz cmpsb ffne: mov al,[si-1] sub al,es:[di-1] ; ax = 0 if equal cbw push ss pop ds hRet hEndp ;*** strnfcmp (near1, far2) hProc <strnfcmp near>, <uses di si>, near1:word, far2:dword cld mov si,near1 les di,far2 mov bx,di ; save start of string cmpsb ; fast check on 1st character jnz nfne dec si xor ax,ax ; search for 0 terminator mov cx,-1 repne scasb neg cx ; cx = byte count for compare mov di,bx repz cmpsb nfne: mov al,[si-1] sub al,es:[di-1] ; ax = 0 if equal hRet hEndp ifdef M8086OPT ;*** switchname () hProc <switchname near> alignCode mov ax,naim ;; (naim) <--> (svname) xchg ax,svname mov naim,ax mov ax,lcname ;; (lcname) <--> (svlcname) xchg ax,svlcname mov lcname,ax hRet hEndP endif ;M8086OPT ifdef M8086OPT ;*** I/O routines: readmore, getline, ebuffer, etc. objfile struc ofh dw ? ifdef MSDOS pos dd ? buf dd ? else pos dw ? buf dw ? endif ;MSDOS cnt dw ? siz dw ? oname dw ? objfile ends endif ;M8086OPT ifdef M8086OPT ;*** ebuffer - write out object buffer ; ; ebuffer (rectype, bufpos, buffer) ebyte macro dec [bx].cnt jge short $+5 call edump ; dump buffer stosb add ah,al endm hProc <ebuffer near>, <uses si di>, rectype:byte, bufpos:word, buffer:word mov si,buffer mov cx,bufpos sub cx,si ; cx = buffer count jz ebufdone cmp objing,0 je ebufdone ; return if no object file mov ax,cx add ax,4 add word ptr oOMFCur,ax ; oOMFCur += cbBuffer + 3 adc word ptr oOMFCur.2,0 ifndef MSDOS mov ax,ds mov es,ax endif cld xor ax,ax ; ah = 0 (initial checksum) mov al,rectype mov bx,OFFSET obj ; bx = obj file data structure pointer ifdef MSDOS les di,[bx].pos ; es:di = output buffer position else mov di,[bx].pos ; di = output buffer position endif ebyte ; output record type inc cx ; + 1 for record length mov al,cl ebyte mov al,ch ebyte ; output record length dec cx ; - 1 for buffer loop alignCode ebufloop: ; output buffer lodsb ebyte loop ebufloop mov al,ah ; output checksum neg al ebyte ifdef MSDOS mov word ptr [bx].pos,di ; reset buffer position else mov [bx].pos,di ; reset buffer position endif ebufdone: mov emitrecordtype,0 hRet hEndp ; edump ; ; Save: ; bx = obj file descriptor pointer ; ax = (checksum,outputbyte) ; cx = possible count ; si = emit buffer position edump: push ax push cx push bx ; save src file descriptor pointer ifdef MSDOS push ds mov cx,[bx].siz mov ax,[bx].ofh lds dx,[bx].buf mov bh,40h xchg ax,bx ifdef CPDOS push bx ; file handle push ds ; buffer (selector) push dx ; buffer (offset) push cx ; # bytes to read mov ax,@data push ax ; reply area (selector) mov ax,offset rarea push ax ; reply area (offset) call DosWrite else int 21h endif pop ds ifdef CPDOS or ax,ax mov ax,rarea jnz writerr else jc writerr endif pop bx push bx cmp ax,[bx].siz je writeok writerr: mov objerr,-1 writeok: else push [bx].siz push [bx].buf push [bx].ofh call write ; write (ofh,buf,siz) add sp,6 pop bx ; need to get bx back. push bx ; write trashes it. -Hans cmp ax,[bx].siz je writeok mov objerr,-1 writeok: mov ax,ds mov es,ax cld ; in case endif pop bx mov ax,[bx].siz dec ax mov [bx].cnt,ax ; reset buffer position ifdef MSDOS mov di,word ptr [bx].buf ; di = start of buffer else mov di,[bx].buf ; di = start of buffer endif pop cx pop ax ret endif ;M8086OPT hProc <fMemcpy near>, <uses si di>, pDest:dword, pSource:dword, cb:word mov cx,cb jcxz fM1 mov dx,ds lds si,pSource les di,pDest shr cx,1 rep movsw jnc fM01 movsb fM01: mov ds,Dx fM1: hRet hEndp ifdef M8086OPT ; Native code version of symsrch as in asmsym.c hProc <symsrch near>, <uses si di> mov si,naim xor Dx,Dx cmp byte ptr[si-1],dl jne sy001 jmp sy99 sy001: mov Ax,word ptr[si-3] mov Cx,TSYMSIZE div Cx mov Bx,Dx ;index into hash table shl Bx,1 shl Bx,1 mov Ax,SEG tsym mov Es,Ax les di,dword ptr es:[Bx].tsym mov Ax,es or Ax,Ax ;if segment 0 jne sy002 jmp sy991 sy002: mov Ax,word ptr[si-3] mov Dx,si xor Cx,Cx jmp short syLook alignCode syNext: les di,es:[di] ; next symbol mov Bx,es or Bx,Bx ; continue if segment not 0 jnz sylook jmp sy99 syLook: mov bx,es:[di].12 ; pointer to name cmp Ax,es:[Bx] ; check hash values jne syNext xchg Bx,di mov cl,[si-1] ; lenght to cl inc Cx inc di inc di ; skip hash repz cmpsb ; check actual strings mov di,Bx ; restore pointers mov si,Dx jnz syNext syFound: cmp byte ptr es:[bx].1bH,12 ; if (p->symkind == CLABEL) jne @F @@: mov cx,iProcCur jcxz noNest push ax cmp byte ptr es:[bx].1bH,2 ; if (p->symkind == CLABEL) jne sy1 mov Ax,word ptr es:[bx].22h ; if (p->iProc) sy01: or ax,ax jz noNest0 cmp cx,Ax ; if (p->iProc != iProcCur) je noNest0 pop ax xor cx,cx jmp syNext sy1: cmp byte ptr es:[bx].1bH,6 ; if (p->symkind == EQU) jne noNest0 mov Ax,word ptr es:[bx].1eh ; AX = p->csassume jmp sy01 noNest0: pop ax noNest: mov word ptr symptr,Bx mov word ptr symptr+2,es mov Ax,1 cmp crefing,al je syCref hRet ;Return true syCref: push Ax ;call crefing routines call crefnew call crefout mov al,1 jmp short sy991 sy99: xor Ax,Ax sy991: hRet hEndp endif ;M8086OPT ifdef M8086OPT ;int PASCAL iskey (table) hProc <iskey near>, <uses si di>, table:dword hLocal l1:word, l2:word cld mov si,naim cmp caseflag,1 ;if (caseflag == CASEL) { jne noComputeHash xor Dx,Dx ;nhash = 0; ;|*** for (uc = mapstr, lc = str; *lc; ) push ds pop es mov di,OFFSET mapstr xor bh,bh mov ah,bh alignCode $F791: lodsb or al,al jz $L2001 mov bl,al mov al,BYTE PTR _asmcupper_[bx] stosb add Dx,Ax jmp short $F791 $L2001: ;|*** *uc = 0; stosb ;0 terminate string ;|*** uc = mapstr; mov si,OFFSET mapstr mov Cx,di sub Cx,si ;cb of string into Cx mov Ax,Dx ;hash to Ax jmp SHORT storeNhash ;Ax has computed hash noComputeHash: xor cx,cx mov cl,[si-1] inc Cx ;include NULL mov ax,[si-3] storeNhash: mov l1,ax ;nhash mov l2,Cx ;cb ;|*** for (p = table->kttable[nhash % table->ktsize]; p; p = p->knext) les bx,table mov di,es:[bx] ;es now contains symbol table segment cwd idiv WORD PTR es:[bx+2] shl dx,1 add di,dx mov Bx,si ;save uc name alignCode isLook: cmp word ptr es:[di],0 je isNotFound mov di,es:[di] ;|*** if ((nhash == p->khash) && (!strcmp (p->kname,uc))) mov Ax,l1 ;nhash cmp es:[di+4],Ax jne isLook ; do an inline string compare mov Dx,di ; save p mov Cx,l2 ;cB mov di,WORD PTR es:[di+2] ;Es:di = p->kname repe cmpsb ; compare while equal jcxz isFound mov di,Dx ;restore registers mov si,Bx jmp isLook ;|*** return (p->ktoken); isFound: mov di,Dx mov Ax,es:[di+6] jmp SHORT isReturn isNotFound: alignCode mov ax,-1 isReturn: hRet hEndp endif ;M8086OPT ifdef M8086OPT hProc <skipblanks near> mov bx,lbufp dec bx alignCode ik1: ; skip leading white space inc bx mov al,[Bx] cmp al,' ' je ik1 cmp al,9 je ik1 mov lbufp,bx hRet hEndp endif MC struc ;structure for macro call, see asm86.h for full comments pTSHead dd ? pTSCur dd ? flags db ? iLocal db ? cbParms dw ? locBase dw ? countMC dw ? pParmNames dw ? pParmAct dw ? svcondlevel db ? svlastcond db ? svelseflag db ? db ? rgPV dw ? MC ends ifdef M8086OPT leOverflow2: pop ax leOverflow: push ss pop ds xor Ax,Ax stosb ; terminate line mov ax, 100 ; E_LTL push AX ; print error message call ERRORC jmp leFin2 ; fast version to expand macro bodies / coded in C in asmirp.c hProc <lineExpand near>, <uses si di>, pMC:word, pMacroLine:dword assume es:@data ifdef BCBOPT mov fNoCompact, 0 endif mov cbLeft, 511 ; LBUFMAX (asm86.h) - 4 les si,pMacroLine ; get pointer to macro prototype mov bx,pMC mov dl,[bx].iLocal ; dl: local base index mov dh,080H ; dh: local base with high bit set add dh,dl lea bp,[bx].rgPV ; bp: pointer to actual arg array mov di,offset lbuf ; si: pointer to new line push ds mov Ax,Es mov ds,Ax ; set seg regs for ds:si & es:di pop es xor ah,ah xor ch,ch ; set loop invariate le1: lodsb ; fetch next prefix test al,080H ; check for parm jnz leParmFound mov cl,al jcxz leFinished sub es:[cbLeft],ax jc leOverflow repz movsb ; move non parameter entry jmp le1 leParmFound: ; argment found mov bl,al ; compute index shl bx,1 shl bx,1 and bx,01FFH ; remove shifted high bit add Bx,Bp push ds push es pop ds ; save current ds and set to near cmp al,dh ; determine parm type jae leLocalFound mov Bx,word ptr[Bx] ; fetch pointer to actual xchg Bx,si ; save pMacroLine lodsb mov cl,al jcxz leNullArg sub cbLeft,ax jnc le2 jmp leOverflow2 le2: repz movsb ; move parameter entry leNullArg: mov si,Bx ; restore saved pMacroLine pop ds xor ah, ah jmp le1 leLocalFound: cmp word ptr[Bx],0 ; check to see if the local jz leBuildLocal ; is defined leLocalMove: xchg Bx,si ; save pMacroLine sub cbLeft,6 jnc le3 jmp leOverflow2 le3: mov Ax,'??' ; store leading ?? stosw movsw ; and then remaining xxxx movsw jmp leNullArg leBuildLocal: push Dx ; call runtime helper to generate name push Bx push Es xor ah,ah sub al,dh mov Bx,Sp ; fetch pMC mov Bx,[Bx+8+4+4] add Ax,[Bx].locBase xor Bx,BX push Bx ; offsetAscii((long) .. ) push Ax call offsetAscii pop Es pop Bx pop Dx mov Ax,objectascii ; copy 4 byte local name to cach mov [Bx],AX mov Ax,objectascii+2 mov [Bx].2,AX jmp leLocalMove leFinished: mov ax,es ; restore ds mov ds,ax leFin2: mov linebp,di ; set linebp mov si,offset lbuf mov lbufp,si ; lbufp= lbuf sub di,si mov cx, di mov linelength, al ; linelength = linbp - lbuf cmp fNeedList,0 ;for listing copy to list buffer je @F mov di,offset linebuffer shr cx,1 rep movsw rcl cx,1 rep movsb @@: .8086 hRet ifndef MSDOS .286 endif hEndp endif ;M8086OPT ifdef M8086OPT ;*** expandTM - expand text macro in naim in lbuf/lbufp ;* ;* expandTM (equtext); ;* ;* Entry equtext = replacement string ;* naim = text macro ;* begatom = first character in lbuf to replace ;* endatom = first character in lbuf after string to replace ;* Exit lbuf = new line to be parsed ;* Returns ;* Calls ;* Note Shifts characters from lbufp to make substitution of TM. ;* Inserts replacement string at begatom ;*/ hProc <expandTM near>, <uses si di>, equtext:word hLocal cbEndatom:word, cbNaim:word, cbText:word, fShifted:byte cld ; String instructions go forward mov ax, ds ; Set es to @data mov es, ax ; xor ax, ax ; Will stop scanning when [di] == [al] == 0 mov fshifted, 0 ; Haven't shifted line yet mov cx, linebp ; Calculate cbEndatom == strlen(endatom) sub cx, endatom ; but use (linebp - endatom + 1) as method inc cx ; mov cbEndatom, cx ; Store result in cbEndatom mov cx, endatom ; Calculate cbNaim == strlen(naim) sub cx, begatom ; but use (endatom - begatom) as method mov cbNaim, cx ; Store result in cbNaim mov di, equtext ; Calculate cbText == strlen(equtext) mov cx, -1 ; repne scasb ; not cx ; [cx] == length of equtext dec cx ; don't count NULL mov cbText, cx ; Store result in cbText cmp cbNaim, cx ; Q: Is replacement longer than name? jl shiftline ; Y: Must shift endatom string to the right copytext: mov di, begatom ; Copy replacement text into lbuf mov si, equtext ; mov cx, cbText ; Number of bytes to copy shr cx, 1 ; rep movsw ; jnc etm2 ; movsb ; etm2: cmp fShifted, 0 ; Q: Have already shifted line right? jne etmEnd ; Y: Done mov si, endatom ; Q: Is cbNaim == cbText? cmp di, si ; je etmEnd ; Y: Done mov cx, cbEndatom ; N: Must shift endatom string left shr cx, 1 ; rep movsw ; jnc etm3 ; movsb ; etm3: mov linebp, di ; jmp etmEnd ; Done shiftline: ; Shift string at endatom to right mov cx, cbEndatom ; Number of bytes to move mov si, linebp ; [si] = end of string in lbuf mov di, si ; add di, cbText ; sub di, cbNaim ; di == si + amount to shift string right mov linebp, di ; mov dx, di ; check if line too long sub dx, OFFSET lbuf ; cmp dx, 512 ; LBUFMAX (asm86.h) jge eltl ; line too long std ; String instructions go backwards rep movsb ; Shift line inc fShifted ; cld ; String instructions go forward again jmp copytext ; eltl: mov ax,100 ; Error E_LTL Line too long push ax ; call ERRORC ; mov di, begatom mov byte ptr [di], 0 ; Truncate line etmEnd: mov ax, begatom ; Reset lbufp to point to start of next mov lbufp, ax ; token hRet hEndp endif ;M8086OPT ifdef MSDOS ifdef M8086OPT ;*** farwrite - write with far buffer ; farwrite(ofh,buf,count); hProc <farwrite far>, handle:word, buffer:dword, count:word mov ax,handle mov cx,count push ds lds dx,buffer mov bh,40h ; write xchg ax,bx ifdef CPDOS push bx ; file handle push ds ; buffer (selector) push dx ; buffer (offset) push cx ; # bytes to read mov ax,@data push ax ; reply area (selector) mov ax,offset rarea push ax ; reply area (offset) call DosWrite else int 21h endif pop ds ifdef CPDOS or ax,ax mov ax, word ptr rarea jnz fwriterr else jc fwriterr endif cmp ax,count je fwriteok fwriterr: mov objerr,-1 fwriteok: hRet hEndp endif ;M8086OPT endif ;*** farAvail () ifdef MSDOS ifndef CPDOS hProc <farAvail far> or Bx,0FFFFH ;request max memory from dos mov ah,48H ;paragraphs left in Bx int 21H mov ah,48H ;then allocate it int 21H jnc noMem xor Bx,Bx noMem: mov Ax,16 cwd mul Bx ;return paragraphs * 16 hRet hEndp endif endif end
16.300242
75
0.659883
84bed178a86288e1fe059da608d4f9a9084d91ca
1,507
asm
Assembly
programs/oeis/060/A060022.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/060/A060022.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/060/A060022.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A060022: Expansion of (1-x-x^N)/((1-x)(1-x^2)(1-x^3)...(1-x^N)) for N = 3. ; 1,0,1,0,0,-1,-1,-3,-3,-5,-6,-8,-9,-12,-13,-16,-18,-21,-23,-27,-29,-33,-36,-40,-43,-48,-51,-56,-60,-65,-69,-75,-79,-85,-90,-96,-101,-108,-113,-120,-126,-133,-139,-147,-153,-161,-168,-176,-183,-192,-199,-208,-216,-225,-233,-243,-251,-261,-270,-280,-289,-300,-309,-320,-330,-341,-351,-363,-373,-385,-396,-408,-419,-432,-443,-456,-468,-481,-493,-507,-519,-533,-546,-560,-573,-588,-601,-616,-630,-645,-659,-675,-689,-705,-720,-736,-751,-768,-783,-800,-816,-833,-849,-867,-883,-901,-918,-936,-953,-972,-989,-1008,-1026,-1045,-1063,-1083,-1101,-1121,-1140,-1160,-1179,-1200,-1219,-1240,-1260,-1281,-1301,-1323,-1343,-1365,-1386,-1408,-1429,-1452,-1473,-1496,-1518,-1541,-1563,-1587,-1609,-1633,-1656,-1680,-1703,-1728,-1751,-1776,-1800,-1825,-1849,-1875,-1899,-1925,-1950,-1976,-2001,-2028,-2053,-2080,-2106,-2133,-2159,-2187,-2213,-2241,-2268,-2296,-2323,-2352,-2379,-2408,-2436,-2465,-2493,-2523,-2551,-2581,-2610,-2640,-2669,-2700,-2729,-2760,-2790,-2821,-2851,-2883,-2913,-2945,-2976,-3008,-3039,-3072,-3103,-3136,-3168,-3201,-3233,-3267,-3299,-3333,-3366,-3400,-3433,-3468,-3501,-3536,-3570,-3605,-3639,-3675,-3709,-3745,-3780,-3816,-3851,-3888,-3923,-3960,-3996,-4033,-4069,-4107,-4143,-4181,-4218,-4256,-4293,-4332,-4369,-4408,-4446,-4485,-4523,-4563,-4601,-4641,-4680,-4720,-4759,-4800,-4839,-4880,-4920,-4961,-5001,-5043,-5083,-5125 add $0,2 mov $2,$0 bin $0,2 div $2,2 add $0,$2 mov $1,$2 lpb $0,1 sub $0,6 sub $1,1 lpe
107.642857
1,336
0.614466
fca59c813a8e461b55dffe239ad423c7eb612ec0
3,748
asm
Assembly
src/tiles.asm
drwuro/teleporter64
aba1ab46fb190441b1dc553c8336267646f8a76d
[ "Unlicense" ]
3
2020-07-01T08:14:52.000Z
2021-04-19T21:30:34.000Z
src/tiles.asm
drwuro/teleporter64
aba1ab46fb190441b1dc553c8336267646f8a76d
[ "Unlicense" ]
null
null
null
src/tiles.asm
drwuro/teleporter64
aba1ab46fb190441b1dc553c8336267646f8a76d
[ "Unlicense" ]
null
null
null
!byte %........ !byte %#####.## !byte %#####.## !byte %#####.## !byte %........ !byte %##.##### !byte %##.##### !byte %##.##### !byte %.#####.. !byte %....#... !byte %...#.... !byte %..#..... !byte %....#... !byte %...#.... !byte %..#..... !byte %.#####.. !byte %.#####.. !byte %...#.... !byte %..#..... !byte %....#... !byte %...#.... !byte %..#..... !byte %....#... !byte %.#####.. !byte %.#####.. !byte %..#..... !byte %....#... !byte %...#.... !byte %..#..... !byte %....#... !byte %...#.... !byte %.#####.. !byte %.#....#. !byte %.#....#. !byte %.#....#. !byte %.#....#. !byte %.#....#. !byte %.#....#. !byte %.#....#. !byte %.#....#. !byte %........ !byte %######## !byte %........ !byte %........ !byte %........ !byte %........ !byte %######## !byte %........ !byte %........ !byte %...##### !byte %..#..... !byte %.#...... !byte %.#...... !byte %.#...... !byte %.#.....# !byte %.#....#. !byte %........ !byte %#####... !byte %.....#.. !byte %......#. !byte %......#. !byte %......#. !byte %#.....#. !byte %.#....#. !byte %.#....#. !byte %.#.....# !byte %.#...... !byte %.#...... !byte %.#...... !byte %..#..... !byte %...##### !byte %........ !byte %.#....#. !byte %#.....#. !byte %......#. !byte %......#. !byte %......#. !byte %.....#.. !byte %#####... !byte %........ !byte %.######. !byte %.#....#. !byte %.#....#. !byte %.######. !byte %...##... !byte %.######. !byte %#....#.# !byte %######## !byte %........ !byte %...#.... !byte %..#..... !byte %.#####.. !byte %..#..... !byte %...#.... !byte %........ !byte %........ !byte %........ !byte %...#.... !byte %....#... !byte %.#####.. !byte %....#... !byte %...#.... !byte %........ !byte %........ !byte %........ !byte %...#.... !byte %..###... !byte %.#.#.#.. !byte %...#.... !byte %...#.... !byte %........ !byte %........ !byte %........ !byte %...#.... !byte %...#.... !byte %.#.#.#.. !byte %..###... !byte %...#.... !byte %........ !byte %........ ;-- the following tiles will be converted into sprites ;-- at runtime (see sprites.asm for explanation) !byte %...##... !byte %...##... !byte %...#.... !byte %..####.. !byte %.#.##.#. !byte %...##... !byte %..#..#.. !byte %.#....#. !byte %...##... !byte %...##... !byte %...#.... !byte %..####.. !byte %..####.. !byte %...##... !byte %...#.#.. !byte %..#..#.. !byte %...##... !byte %...##... !byte %...#.... !byte %...##... !byte %...##... !byte %...##... !byte %...##... !byte %...###.. !byte %...##... !byte %...##... !byte %...#.... !byte %..####.. !byte %..####.. !byte %...##... !byte %..#.#... !byte %..#..#.. !byte %........ !byte %...#.... !byte %..#..#.. !byte %....#... !byte %...#.... !byte %..#..#.. !byte %....#... !byte %........ !byte %........ !byte %..#..#.. !byte %....#... !byte %...#.... !byte %..#..#.. !byte %....#... !byte %...#.... !byte %........ !byte %........ !byte %....#... !byte %...#.... !byte %..#..#.. !byte %....#... !byte %...#.... !byte %..#..#.. !byte %........
18.463054
58
0.208911
19a5f72d631ba6ef49a58b405130e7ebb0634e02
1,985
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_zr_/i9-9900K_12_0xca.log_36_1596.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_zr_/i9-9900K_12_0xca.log_36_1596.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_zr_/i9-9900K_12_0xca.log_36_1596.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 %r15 push %r8 push %r9 push %rbp push %rbx push %rdx // Store mov $0x7e80e900000002fb, %rbp nop nop nop nop dec %rbx movl $0x51525354, (%rbp) sub $45081, %rbp // Load lea addresses_RW+0x1c37b, %r9 nop nop cmp $27088, %rdx mov (%r9), %bx sub %r8, %r8 // Store lea addresses_PSE+0x1fb7b, %r9 cmp %rbp, %rbp mov $0x5152535455565758, %r11 movq %r11, (%r9) nop nop cmp %r9, %r9 // Store lea addresses_PSE+0x1a07b, %rbp nop sub $6829, %r11 mov $0x5152535455565758, %r8 movq %r8, %xmm1 vmovntdq %ymm1, (%rbp) and %r15, %r15 // Store lea addresses_WC+0x47e3, %rbx cmp $20338, %rbp movb $0x51, (%rbx) nop nop xor %r9, %r9 // Faulty Load mov $0x7c2a1c000000007b, %rbx add %rdx, %rdx mov (%rbx), %rbp lea oracles, %r8 and $0xff, %rbp shlq $12, %rbp mov (%r8,%rbp,1), %rbp pop %rdx pop %rbx pop %rbp pop %r9 pop %r8 pop %r15 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': 4, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 3}} {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_RW', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': True, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': True, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 3}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 8, 'NT': True, 'type': 'addresses_NC', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'00': 6, '58': 30} 58 58 58 00 58 58 58 58 00 58 58 58 58 00 58 58 00 58 58 58 58 58 58 58 58 00 00 58 58 58 58 58 58 58 58 58 */
21.813187
122
0.630227
95c72cc3c763395fd72d474304812c00f407e272
1,320
asm
Assembly
programs/oeis/217/A217400.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/217/A217400.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/217/A217400.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A217400: Numbers starting with 7. ; 7,70,71,72,73,74,75,76,77,78,79,700,701,702,703,704,705,706,707,708,709,710,711,712,713,714,715,716,717,718,719,720,721,722,723,724,725,726,727,728,729,730,731,732,733,734,735,736,737,738,739,740,741,742,743,744,745,746,747,748,749,750,751,752,753,754,755,756,757,758,759,760,761,762,763,764,765,766,767,768,769,770,771,772,773,774,775,776,777,778,779,780,781,782,783,784,785,786,787,788,789,790,791,792,793,794,795,796,797,798,799,7000,7001,7002,7003,7004,7005,7006,7007,7008,7009,7010,7011,7012,7013,7014,7015,7016,7017,7018,7019,7020,7021,7022,7023,7024,7025,7026,7027,7028,7029,7030,7031,7032,7033,7034,7035,7036,7037,7038,7039,7040,7041,7042,7043,7044,7045,7046,7047,7048,7049,7050,7051,7052,7053,7054,7055,7056,7057,7058,7059,7060,7061,7062,7063,7064,7065,7066,7067,7068,7069,7070,7071,7072,7073,7074,7075,7076,7077,7078,7079,7080,7081,7082,7083,7084,7085,7086,7087,7088,7089,7090,7091,7092,7093,7094,7095,7096,7097,7098,7099,7100,7101,7102,7103,7104,7105,7106,7107,7108,7109,7110,7111,7112,7113,7114,7115,7116,7117,7118,7119,7120,7121,7122,7123,7124,7125,7126,7127,7128,7129,7130,7131,7132,7133,7134,7135,7136,7137,7138 mov $3,$0 lpb $0 sub $0,1 div $0,10 add $1,2 mov $2,$1 sub $2,3 mov $1,$2 mul $1,10 add $1,72 lpe cal $0,142 add $1,$0 add $1,6 add $1,$3
69.473684
1,128
0.743182
6c91c524fcb1cb07a77cc611bbd2c05b246f366a
305
asm
Assembly
programs/oeis/047/A047236.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/047/A047236.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/047/A047236.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A047236: Numbers that are congruent to {1, 2, 4} mod 6. ; 1,2,4,7,8,10,13,14,16,19,20,22,25,26,28,31,32,34,37,38,40,43,44,46,49,50,52,55,56,58,61,62,64,67,68,70,73,74,76,79,80,82,85,86,88,91,92,94,97,98,100,103,104,106,109,110,112,115,116,118,121,122,124 mul $0,4 mov $1,$0 gcd $1,3 add $1,$0 div $1,2
33.888889
198
0.64918
71d264aaf2d617881ccc8b70c67f92335507690d
601
asm
Assembly
oeis/036/A036090.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/036/A036090.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/036/A036090.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A036090: Centered cube numbers: (n+1)^12 + n^12. ; 1,4097,535537,17308657,260917841,2420922961,16018069537,82560763937,351149013217,1282429536481,4138428376721,12054528824977,32214185570737,79991997497777,186440250265921,411221314601281,864097213940417,1739453618655937,3370146300492337,6309314919066161,11451827511386641,20210830142435857,34769627063069537,58434971868076897,96124992211447201,155033601437072801,245523591958681297,382312900386211537,586033048294681457,885255783205469041,1319103783788549761,1940584288395396737,2820811019559831937 sub $2,$0 add $0,1 pow $0,12 pow $2,12 add $0,$2
66.777778
499
0.873544
39d812220c62059b91c130fbe14a0cb631b0decb
490
asm
Assembly
src/VMTranslator/fixtures/StackArithmetic/Unary/unary.asm
tuzmusic/HackManager
5c47e5541cb7372315355d9799f04fc0235a549d
[ "MIT" ]
1
2021-05-17T19:50:24.000Z
2021-05-17T19:50:24.000Z
src/VMTranslator/fixtures/StackArithmetic/Unary/unary.asm
tuzmusic/HackManager
5c47e5541cb7372315355d9799f04fc0235a549d
[ "MIT" ]
null
null
null
src/VMTranslator/fixtures/StackArithmetic/Unary/unary.asm
tuzmusic/HackManager
5c47e5541cb7372315355d9799f04fc0235a549d
[ "MIT" ]
null
null
null
// push constant 5 @5 D=A // store the current address as a value @SP // PUSH TEMP VALUE TO TOP OF STACK A=M // move to top of stack M=D // write value of D to current location @SP // increment stack pointer M=M+1 // neg @SP // (pop...back to X) M=M-1 A=M // PREPARE X (prep X "into" M – but don't pop just yet!) M=-M // perform unary operation: neg @SP // increment stack pointer M=M+1
28.823529
68
0.522449
5aea2f352b99b75c2d3611548fe3e4c343b83923
4,266
asm
Assembly
scroll.asm
Kristopher38/C64-platformer
ab930d5d1a2d5619a792b6ed7c5967aa7198f4e5
[ "MIT" ]
null
null
null
scroll.asm
Kristopher38/C64-platformer
ab930d5d1a2d5619a792b6ed7c5967aa7198f4e5
[ "MIT" ]
null
null
null
scroll.asm
Kristopher38/C64-platformer
ab930d5d1a2d5619a792b6ed7c5967aa7198f4e5
[ "MIT" ]
null
null
null
!cpu 6502 *= $0400 !src "fire.asm" *= $0800 !byte $00, $0b, $08, $01, $00, $9e, $34, $30, $39, $36 *= $1000 scrbuf1 = $0400 scrbuf2 = $0800 main: jsr initScreen sei ; set interrupt disable flag ldy #$7f ; $7f = %01111111 sty $dc0d ; Turn off CIAs Timer interrupts sty $dd0d ; Turn off CIAs Timer interrupts lda $dc0d ; cancel all CIA-IRQs in queue/unprocessed lda $dd0d ; cancel all CIA-IRQs in queue/unprocessed lda #$01 ; Set Interrupt Request Mask... sta $d01a ; ...we want IRQ by Rasterbeam lda #<irq ; point IRQ Vector to our custom irq routine ldx #>irq sta $314 ; store in $314/$315 stx $315 lda #$00 ; trigger first interrupt at row zero sta $d012 lda $d011 ; Bit#0 of $d011 is basically... and #$7f ; ...the 9th Bit for $d012 sta $d011 ; we need to make sure it is set to zero cli ; clear interrupt disable flag jmp * ; infinite loop initScreen: lda #$00 sta $d020 sta $d021 rts ;============================================================ ; custom interrupt routine ;============================================================ .xscroll !fill 1, $08 irq: dec $d019 ; acknowledge IRQ ;lda #$0a ;sta $d020 ; change frame color for assesing how much time interrupt took jsr decxscroll lda .xscroll beq .shiftOneChar ; we cycled through values 7 to 0 so we need to shift the whole screen one char position cmp #$07 beq .swapBuf ; if xscroll is 7 we shifted all chars by one position one irq before ; so we need to change the displayed buffer jmp .exit .swapBuf jsr swapBuffers jmp .exit .shiftOneChar lda #$08 sta .xscroll jsr shiftScreen ; and shift entire screen by one character .exit ;lda #$05 ;sta $d020 ; reset frame color for assesing how much time irq took jmp $ea81 ; return to kernel interrupt routine decxscroll: dec .xscroll lda $d016 ; if not, we load a register that holds x scroll offset and #$f8 ; mask off appropriate values (4 most significant bits) clc adc .xscroll ; add our scroll value sta $d016 ; and store it back rts !zone swapBuffers swapBuffers: lda currentCycle bne .secondCycle lda $d018 and #!$20 ; turn off bit for buffer at $0400 ora #$10 ; turn on bit for buffer at $0800 sta $d018 jmp .exit .secondCycle lda $d018 and #!$10 ; turn off bit for buffer at $0800 ora #$20 ; turn on bit for buffer at $0400 sta $d018 .exit: rts !zone shiftScreen currentCycle !fill 1, $00 ; 0 or 1, depends on current front and backbuffer shiftScreen: lda currentCycle bne .secondCycle ; call appropriate subroutine for shifting screen to an appropriate framebuffer jsr shiftToBuf2 lda #$01 sta currentCycle ; change current cycle to opposite jmp .exit .secondCycle lda #$00 sta currentCycle ; change current cycle to opposite jsr shiftToBuf1 .exit rts shiftToBuf2: ldx #$00 .loop ; copy characters from scrbuf1 to scrbuf2 offset one character to the left ; disregard characters that would wrap around from the right for now lda scrbuf1 + $001, x sta scrbuf2 + $000, x lda scrbuf1 + $101, x sta scrbuf2 + $100, x lda scrbuf1 + $201, x sta scrbuf2 + $200, x lda scrbuf1 + $2e9, x sta scrbuf2 + $2e8, x inx bne .loop ; correctly copy characters that should wrap around, from the left edge to the the right edge !for i, 0, 24 { lda scrbuf1 + i * 40 sta scrbuf2 - 1 + (i + 1) * 40 } rts !zone shiftToBuf1 shiftToBuf1: ldx #$00 .loop ; same as above but copies from scrbuf2 to scrbuf1 lda scrbuf2 + $001, x sta scrbuf1 + $000, x lda scrbuf2 + $101, x sta scrbuf1 + $100, x lda scrbuf2 + $201, x sta scrbuf1 + $200, x lda scrbuf2 + $2e9, x sta scrbuf1 + $2e8, x inx bne .loop !for i, 0, 24 { lda scrbuf2 + i * 40 sta scrbuf1 - 1 + (i + 1) * 40 } rts !zone delay delay: ldx $00 .loop !for i, 0, 5 { nop } inx bne .loop rts
23.43956
110
0.593061
9c7035f61d65c5c85963cd4652093ce343614131
1,678
asm
Assembly
programs/oeis/207/A207025.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/207/A207025.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/207/A207025.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A207025: Number of 2 X n 0..1 arrays avoiding 0 0 0 and 0 1 1 horizontally and 0 0 1 and 1 0 1 vertically. ; 4,16,36,81,169,324,625,1156,2116,3844,6889,12321,21904,38809,68644,121104,213444,375769,660969,1162084,2042041,3587236,6300100,11062276,19421649,34093921,59845696,105042001,184362084,323568144,567868900,996601761,1748996041,3069381604,5386532449,9452895076,16588924804,29111866884,51088204729,89654132929,157332809104,276100855209,484524582084,850283163664,1492145313156,2618535639721,4595213886025,8064043755076,14151417614569,24834016423876,43580673652356,76478767905796,134210904313249,235523748449089,413315405625600,725318026929441,1272844475886916,2233686435419664,3919846560907684,6878851346423281,12071542811348329,21184081160340484,37175471283879889,65238404785937604,114485420199591364,200907907892440324,352568801689651849,618715117432998369,1085769343382574096,1905392374086721081,3343730526284220900,5867838027243029776,10297337909413757764,18070568327307893881,31711636784948921641,55650043168568087716,97659017901438299289,171379629448325501284,300750284202288492100,527779956908700936196,926189259131014544241,1625348845645135775649,2852288389186544417344,5005417192016062632561,8783894840698822269604,15414660878843807443984,27050844109370056545124,47470922181078914104129,83305661132272461715849,146191244193685053779364,256547749437301227741889,450209915814679735132324,790063326387716951231236,1386464486400669934349316,2433075562231766180667225,4269749964455167570224001,7492888853085316963443984,13149103303955284256863561,23075067719291085380172676,40493920987726333259397136 seq $0,167385 ; a(n)= sum_{i=7..n+6} A000931(i). add $0,1 pow $0,2
239.714286
1,500
0.902265
2d028c6e92479324045a892016657fba353d5b58
418
asm
Assembly
Engine Hacks/Skill System/Teq Skills/FE8-Capture/FE8-Capture/Old Capture (Obsolete)/Put Item In Slot3.asm
sme23/MekkahRestrictedHackComp1
1cc9d2fec557424f358b6bfa21f9f3bb6faf2978
[ "CC0-1.0" ]
null
null
null
Engine Hacks/Skill System/Teq Skills/FE8-Capture/FE8-Capture/Old Capture (Obsolete)/Put Item In Slot3.asm
sme23/MekkahRestrictedHackComp1
1cc9d2fec557424f358b6bfa21f9f3bb6faf2978
[ "CC0-1.0" ]
null
null
null
Engine Hacks/Skill System/Teq Skills/FE8-Capture/FE8-Capture/Old Capture (Obsolete)/Put Item In Slot3.asm
sme23/MekkahRestrictedHackComp1
1cc9d2fec557424f358b6bfa21f9f3bb6faf2978
[ "CC0-1.0" ]
null
null
null
.thumb .org 0x0 push {r14} ldr r0,MemorySlot ldr r2,[r0,#0x14] @slot 5, the counter mov r1,#0x0 cmp r2,#0x4 bgt NotZero @if we've iterated through the the inventory slots, finish add r2,#0x1 str r2,[r0,#0x14] ldr r1,[r0,#0x10] ldrh r2,[r1] add r1,#0x2 ldrh r3,[r1] cmp r3,#0x0 bne NotZero mov r1,#0x0 NotZero: str r1,[r0,#0x10] str r2,[r0,#0xC] pop {r0} bx r0 .align MemorySlot: .long 0x030004B8
14.928571
74
0.665072
ec76875eb248b6ac7765415fdbce9068db119c25
6,239
asm
Assembly
Lab 7/lab7p2.asm
AndrewDichabeng/Computer-Systems-Foundations
b98854118963c09d03f39a7f33354b17f503a540
[ "MIT" ]
null
null
null
Lab 7/lab7p2.asm
AndrewDichabeng/Computer-Systems-Foundations
b98854118963c09d03f39a7f33354b17f503a540
[ "MIT" ]
null
null
null
Lab 7/lab7p2.asm
AndrewDichabeng/Computer-Systems-Foundations
b98854118963c09d03f39a7f33354b17f503a540
[ "MIT" ]
null
null
null
; Lab3b Part I - Subroutine to prompt the user to enter a key ; get a character from the keyboard ; and check if the user presses 'y' ; Constant definitions DISPLAY .EQU 04E9h ; address of Libra display ; -------------------------------------------------------- ; Insert subroutines printStr and newLine from Lab 5 here ; -------------------------------------------------------- printStr: ; Save registers modified by this subroutine push AX ; FIXED push SI ; FIXED push DX ; FIXED mov DX, DISPLAY LoopPS: mov AL, [SI] ; Load the next char to be printed - USING INPUT PARAMETER SI cmp AL, '$' ; Compare the char to '$' je quitPS ; If it is equal, then quit subroutine and return to calling code out DX,AL ; If it is not equal to '$', then print it inc SI ; Point to the next char to be printed jmp LoopPS ; Jump back to the top of the loop quitPS: ; Restore registers pop DX ; FIXED pop SI ; FIXED pop AX ; FIXED RET s_CR .EQU 0Dh ; ASCII value for Carriage return s_LF .EQU 0Ah ; ASCII value for NewLine newLine: ; Save registers modified by this subroutine push AX ; FIXED push DX ; FIXED mov DX, DISPLAY ; Initialize the output port number in DX mov AL, s_LF ; Load line feed (LF) into AL out DX,AL ; print the char mov AL, s_CR ; Load carriage return (CR) into AL out DX,AL ; print the char ; Restore registers pop DX ; FIXED pop AX ; FIXED RET ; -------------------------------------------------------- ; End of subroutines printStr and newLine from Lab 5 here ; -------------------------------------------------------- ; --------------------------------------------------------------- ; getChar: waits for a keypress and returns pressed key in AL ; Input parameters: ; none. ; Output parameters: ; AL: ASCII Value of key pressed by user ; --------------------------------------------------------------- ; Constants used by this subroutine KBSTATUS .EQU 0064h ; FIXED port number of keyboard STATUS reg KBBUFFER .EQU 0060h ; FIXED port number of keyboard BUFFER reg getChar: push DX ; save reg used GCWait: mov DX, KBSTATUS ; load addr of keybrd STATUS in AL,DX ; Read contents of keyboard STATUS register cmp AL,0 ; key pressed? je GCWait ; no, go back and check again for keypress mov DX, KBBUFFER ; load port number of kbrd BUFFER register in AL,DX ; get key into AL from BUFFER GCDone: pop DX ; restore regs ret Message1: .DB 'Please enter an Even number. $' HappyMessage: .DB 'You have entered an even number! Yuppii! $' ; Message to be printed on screen AnotherMessage: .DB 'Sorry not even. $' ; Message to be printed on screen QuitChoice: .DB 'Would you like to quit? (y/n) $' ; --------------------------------------------------------------- ; Main function: Asks the user whether they want to quit or not. ; Repeats until user presses 'y' ; Uses printStr, newline, and getChar subroutines. ; --------------------------------------------------------------- main: mov SI, Message1 ; Move starting address of Message1 to SI call printStr ; Call prtstr to print Message1 call newLine ; Print a new line call getChar ; call Getchar to get value from keyboard mov DX, DISPLAY out Dx, AL ; Echo the character back to the display call newLine mov AH, AL mov CL, 2 div CL cmp AH, 0 je HappyMsg SadMessage: mov SI, AnotherMessage call printStr call newLine mov SI, QuitChoice call printStr call newLine call getChar call newLine cmp AL, 'y' ; compare input character with 'y' jne main je Quit HappyMsg: mov SI, HappyMessage call printStr call newLine mov SI, QuitChoice call printStr call newLine call getChar call newLine cmp AL, 'y' ; compare input character with 'y' jne main je Quit ; If user did not press 'y', then re-prompt (start over) Quit: HLT .END main ; Entry point of program is main()
42.442177
129
0.384837
728946c17cdac83146801435a03191631e333231
27,515
asm
Assembly
final/final_v5.asm
Ping6666/Assembly-Language-Projects
81a55e004815485c246fd209c45f2bf85bcce79f
[ "MIT" ]
4
2021-04-12T05:08:12.000Z
2021-09-23T06:56:28.000Z
final/final_v5.asm
Ping6666/Assembly-Language-Projects
81a55e004815485c246fd209c45f2bf85bcce79f
[ "MIT" ]
null
null
null
final/final_v5.asm
Ping6666/Assembly-Language-Projects
81a55e004815485c246fd209c45f2bf85bcce79f
[ "MIT" ]
null
null
null
INCLUDE Irvine32.inc main EQU start@0 WallWidth = 106 WallHeight = 30 ; Game "Window" Setup: ; maxX EQU 106 ; maxY EQU 30 ; Macros: mGotoxy MACRO X:REQ, Y:REQ push edx mov dh, Y mov dl, X call Gotoxy pop edx ENDM mWrite MACRO text:REQ LOCAL string .data string BYTE text, 0 .code push edx mov edx, OFFSET string call WriteString pop edx ENDM mRead MACRO char:REQ push ecx push edx L0_mRead: mGotoxy 54, 24 mWrite " " mGotoxy 54, 24 mov edx, OFFSET char mov ecx, SIZEOF char call ReadString ; read in some thing cmp eax, 0 je L0_mRead ; read until it is valid cmp eax, 13 jg L0_mRead ; read until it is valid pop edx pop ecx ENDM mWriteString MACRO buffer:REQ push edx mov edx, OFFSET buffer call WriteString ; print out something pop edx ENDM .data choice BYTE 0 endchoice BYTE 0 speed DWORD 0 batLength DWORD 0 ; 18, 14, 10 ; bat location offset on the window batLength1 DWORD 0 ; 9, 7, 5 ; bat real width batLength2 DWORD 0 ; 4, 3, 2 ; bat half width the offset between ball score SDWORD 4 DUP(?) deltascore DWORD 0 Nameofplayer BYTE 4 DUP(13 DUP(?)) TmpName BYTE 13 DUP(?) TmpName1 BYTE " " outputHandle DWORD 0 bytesWritten DWORD 0 count DWORD 0 xyPosition COORD <0,0> cellsWritten DWORD ? Plate BYTE 16 DUP(' ') whiteball BYTE '.' Horwall BYTE WallWidth DUP('=') Verwall BYTE '=', (WallWidth - 2) DUP(' '), '=' Botwall BYTE WallWidth DUP('=') Titlewall BYTE 2 DUP(' ') attributes0 WORD WallWidth DUP(0F1h) attributes1 WORD 0F1h,(WallWidth-2) DUP(00h), 0F1h attributes2 WORD WallWidth DUP(0F1h) attributes3 WORD 4 DUP(00h), 4 DUP(033h) attributes4 WORD 4 DUP(033h), 4 DUP(00h) attributes5 WORD (LENGTHOF Plate) DUP(055h) attributes6 WORD 1 DUP(00Fh) ; main proc variable need to reset everytime when call the game VK_LEFT EQU 25h VK_RIGHT EQU 27h windowWidth WORD ? windowHeight WORD ? boxBat BYTE "▬▬" boxBall BYTE "•" boxWall1 BYTE "■" boxWall2 BYTE "□" boxSpace BYTE " " titleStr BYTE "Brick Break",0 inputStr BYTE ? State BYTE 1800 DUP(?) ; 0 is Space, 1 is •, 2 is ▬, 3 is ■ or □ win BYTE 0 ; 0 continue 1 lose 2 win inputHandle DWORD 0 consoleInfo CONSOLE_SCREEN_BUFFER_INFO <> notUsed DWORD ? lpReserved DWORD 0 ballxyPosition COORD <?, ?> batxyPosition COORD <?, ?> wallxyPosition COORD <?, ?> ballxDir SWORD 2 ;x : -2 is left 2 is right ballyDir SWORD -1 ;y : -1 is up 1 is down PreSet PROTO, bWidth:PTR WORD, bHeight:PTR WORD, bState:PTR BYTE FillTheWindows PROTO, bWidth:WORD, bHeight:WORD, bState:PTR BYTE .code main PROC call StartGame ; the main just do calling StartGame proc ret main ENDP Game PROC INVOKE SetConsoleTitle, ADDR titleStr ; set the title of the console INVOKE GetStdHandle, STD_OUTPUT_HANDLE ; Get the console output handle mov outputHandle, eax ; save console output handle INVOKE GetStdHandle, STD_INPUT_HANDLE ; Get the console input handle mov inputHandle, eax ; save console input handle ; get the console screen buffer info and set it in var consoleInfo INVOKE GetConsoleScreenBufferInfo, outputHandle, ADDR consoleInfo call Clrscr mov win, 0 mov score, 0 mov ballxyPosition.X, 60 mov ballxyPosition.Y, 28 mov eax, 60 mov ebx, batLength1 dec ebx sub eax, ebx mov batxyPosition.X, ax ; may have bug mov batxyPosition.Y, 29 mov ballxDir, 2 mov ballyDir, -1 ; preset width & height & all the state of the printable position INVOKE PreSet, OFFSET windowWidth, OFFSET windowHeight, OFFSET State ; fill the console window by the state INVOKE FillTheWindows, windowWidth, windowHeight, OFFSET State L0: mov eax, 50 ; sleep, to allow OS to time slice call ReadKey ; look for keyboard input jz L1 ; no key pressed yet cmp dx, VK_LEFT jne L0_5 ; movzx eax, al ; call WriteDec ; call WaitMsg ; loop to solve the bat movement problem mov ecx, 2 L0_1: dec ecx cmp batxyPosition.X, 0 jle L0_1_1 jmp L0_1_2 L0_1_1: mov ecx, -1 jmp L0_1_3 L0_1_2: push ecx sub batxyPosition.X, 2 mov esi, OFFSET State add esi, 1740 ; 1740 = 29 * 60 movsx eax, batxyPosition.X xor edx, edx mov ebx, 2 div ebx add esi, eax mov BYTE PTR [esi], 2 ; set the bat INVOKE WriteConsoleOutputCharacter, outputHandle, ; output handle ADDR boxBat, ; pointer to the character to be written LENGTHOF boxBat, ; size of buffer batxyPosition, ; coordinates of first char ADDR count ; output count mov eax, batLength add batxyPosition.X, ax ; may have bug add esi, batLength1 mov BYTE PTR [esi], 0 ; remove the bat add batxyPosition.X, 2 INVOKE WriteConsoleOutputCharacter, outputHandle, ; output handle ADDR boxSpace, ; pointer to the character to be written LENGTHOF boxSpace, ; size of buffer batxyPosition, ; coordinates of first char ADDR count ; output count sub batxyPosition.X, 2 INVOKE WriteConsoleOutputCharacter, outputHandle, ; output handle ADDR boxSpace, ; pointer to the character to be written LENGTHOF boxSpace, ; size of buffer batxyPosition, ; coordinates of first char ADDR count ; output count sub batxyPosition.X, 2 mov eax, batLength sub eax, 2 sub batxyPosition.X, ax ; may have bug pop ecx L0_1_3: cmp ecx, 0 jge L0_1 L0_5: cmp dx, VK_RIGHT jne L1 ; movzx eax, al ; call WriteDec ; call WaitMsg mov ecx, 2 L0_6: dec ecx mov ax, windowWidth mov ebx, batLength ; bat's width sub ax, bx ; may have bug sub ax, 1 ; make sur no to overflow cmp batxyPosition.X, ax jge L0_6_1 jmp L0_6_2 L0_6_1: mov ecx, -1 jmp L0_6_3 L0_6_2: push ecx mov esi, OFFSET State add esi, 1740 ; 1740 = 29 * 60 movsx eax, batxyPosition.X xor edx, edx mov ebx, 2 div ebx add esi, eax mov BYTE PTR [esi], 0 ; remove the bat INVOKE WriteConsoleOutputCharacter, outputHandle, ; output handle ADDR boxSpace, ; pointer to the character to be written LENGTHOF boxSpace, ; size of buffer batxyPosition, ; coordinates of first char ADDR count ; output count mov eax, batLength add batxyPosition.X, ax ; may have bug add esi, batLength1 mov BYTE PTR [esi], 2 ; set the bat INVOKE WriteConsoleOutputCharacter, outputHandle, ; output handle ADDR boxBat, ; pointer to the character to be written LENGTHOF boxBat, ; size of buffer batxyPosition, ; coordinates of first char ADDR count ; output count mov eax, batLength sub eax, 2 sub batxyPosition.X, ax ; may have bug pop ecx L0_6_3: cmp ecx, 0 jge L0_6 L1: ; remove the ball INVOKE WriteConsoleOutputCharacter, outputHandle, ; output handle ADDR boxSpace, ; pointer to the character to be written LENGTHOF boxSpace, ; size of buffer ballxyPosition, ; coordinates of first char ADDR count ; output count ; test for right line mov ax, windowWidth sub ax, 2 ; the printable charactor is place in 2 space mov bx, ballxyPosition.X add bx, ballxDir cmp bx, ax jle L2_1 mov ax, ballxDir mov bx, -1 mul bx mov ballxDir, ax jmp L2 L2_1: ; test for left line cmp bx, 0 jge L2 mov ax, ballxDir mov bx, -1 mul bx mov ballxDir, ax L2: ; test for bottom line mov ax, windowHeight sub ax, 1 mov bx, ballxyPosition.Y add bx, ballyDir cmp bx, ax jle L3_1 mov win, 1 ; set state to lose ; mov ax, ballyDir ; mov bx, -1 ; mul bx ; mov ballyDir, ax jmp L6 L3_1: ; test for top line cmp bx, 0 jge L3and4 mov ax, ballyDir mov bx, -1 mul bx mov ballyDir, ax L3and4: ; check left or right mov esi, OFFSET State movsx eax, ballxyPosition.X movsx edx, ballxDir add eax, edx xor edx, edx mov ebx, 2 div ebx add esi, eax movsx eax, ballxyPosition.Y movsx ebx, windowWidth mul ebx xor edx, edx mov ebx, 2 div ebx add esi, eax movsx eax, BYTE PTR [esi] ; take out the state of the place next to the ball cmp eax, 3 je L3 ; check up or down mov esi, OFFSET State movsx eax, ballxyPosition.X xor edx, edx mov ebx, 2 div ebx add esi, eax movsx eax, ballxyPosition.Y movsx edx, ballyDir add eax, edx movsx ebx, windowWidth mul ebx xor edx, edx mov ebx, 2 div ebx add esi, eax movsx eax, BYTE PTR [esi] ; take out the state of the place next to the ball cmp eax, 3 je L3 ; check the horizontal and vertical direction's wall mov esi, OFFSET State movsx eax, ballxyPosition.X movsx edx, ballxDir add eax, edx xor edx, edx mov ebx, 2 div ebx add esi, eax movsx eax, ballxyPosition.Y movsx edx, ballyDir add eax, edx movsx ebx, windowWidth mul ebx xor edx, edx mov ebx, 2 div ebx add esi, eax movsx eax, BYTE PTR [esi] ; take out the state of the place next to the ball cmp eax, 3 jne L3 mov BYTE PTR [esi], 0 ; calculate the wall's place mov ax, ballxyPosition.X add ax, ballxDir mov wallxyPosition.X, ax mov bx, ballxyPosition.Y add bx, ballyDir mov wallxyPosition.Y, bx ; remove the wall INVOKE WriteConsoleOutputCharacter, outputHandle, ; output handle ADDR boxSpace, ; pointer to the character to be written LENGTHOF boxSpace, ; size of buffer wallxyPosition, ; coordinates of first char ADDR count ; output count cmp ballxDir, 0 jg L3and4_1 ; on the left dec esi mov BYTE PTR [esi], 0 jmp L3and4_2 L3and4_1: ; on the right inc esi mov BYTE PTR [esi], 0 L3and4_2: ; calculate the next wall's place mov ax, ballxyPosition.X add ax, ballxDir add ax, ballxDir ; do second time mov wallxyPosition.X, ax mov bx, ballxyPosition.Y add bx, ballyDir mov wallxyPosition.Y, bx ; remove the wall INVOKE WriteConsoleOutputCharacter, outputHandle, ; output handle ADDR boxSpace, ; pointer to the character to be written LENGTHOF boxSpace, ; size of buffer wallxyPosition, ; coordinates of first char ADDR count ; output count mov eax, deltascore add score, eax mov ax, ballxDir mov bx, -1 mul bx mov ballxDir, ax mov ax, ballyDir mov bx, -1 mul bx mov ballyDir, ax L3: ; check the horizontal direction's wall mov esi, OFFSET State movsx eax, ballxyPosition.X movsx edx, ballxDir add eax, edx xor edx, edx mov ebx, 2 div ebx add esi, eax movsx eax, ballxyPosition.Y movsx ebx, windowWidth mul ebx xor edx, edx mov ebx, 2 div ebx add esi, eax movsx eax, BYTE PTR [esi] ; take out the state of the place next to the ball cmp eax, 3 jne L4_1 mov BYTE PTR [esi], 0 ; calculate the wall's place mov ax, ballxyPosition.X add ax, ballxDir mov wallxyPosition.X, ax mov bx, ballxyPosition.Y mov wallxyPosition.Y, bx ; remove the wall INVOKE WriteConsoleOutputCharacter, outputHandle, ; output handle ADDR boxSpace, ; pointer to the character to be written LENGTHOF boxSpace, ; size of buffer wallxyPosition, ; coordinates of first char ADDR count ; output count cmp ballxDir, 0 jg L3_2 ; on the left dec esi mov BYTE PTR [esi], 0 jmp L3_3 L3_2: ; on the right inc esi mov BYTE PTR [esi], 0 L3_3: ; calculate the next wall's place mov ax, ballxyPosition.X add ax, ballxDir add ax, ballxDir ; do second time mov wallxyPosition.X, ax mov bx, ballxyPosition.Y mov wallxyPosition.Y, bx ; remove the wall INVOKE WriteConsoleOutputCharacter, outputHandle, ; output handle ADDR boxSpace, ; pointer to the character to be written LENGTHOF boxSpace, ; size of buffer wallxyPosition, ; coordinates of first char ADDR count ; output count mov eax, deltascore add score, eax mov ax, ballxDir mov bx, -1 mul bx mov ballxDir, ax L4_1: ; check the vertical direction's wall mov esi, OFFSET State movsx eax, ballxyPosition.X xor edx, edx mov ebx, 2 div ebx add esi, eax movsx eax, ballxyPosition.Y movsx edx, ballyDir add eax, edx movsx ebx, windowWidth mul ebx xor edx, edx mov ebx, 2 div ebx add esi, eax movsx eax, BYTE PTR [esi] ; take out the state of the place next to the ball cmp eax, 3 jne L4 mov BYTE PTR [esi], 0 ; calculate the wall's place mov ax, ballxyPosition.X mov wallxyPosition.X, ax mov bx, ballxyPosition.Y add bx, ballyDir mov wallxyPosition.Y, bx ; remove the wall INVOKE WriteConsoleOutputCharacter, outputHandle, ; output handle ADDR boxSpace, ; pointer to the character to be written LENGTHOF boxSpace, ; size of buffer wallxyPosition, ; coordinates of first char ADDR count ; output count ; calculate the another wall's place mov edi, OFFSET State mov eax, esi sub eax, edi xor edx, edx ; mov eax, esi mov ebx, 2 div ebx cmp edx, 0 ; check which type of wall je L4_2 dec esi mov BYTE PTR [esi], 0 ; remain 1 the place now is on the right mov ax, ballxyPosition.X sub ax, 2 mov wallxyPosition.X, ax mov bx, ballxyPosition.Y add bx, ballyDir mov wallxyPosition.Y, bx ; remove the wall INVOKE WriteConsoleOutputCharacter, outputHandle, ; output handle ADDR boxSpace, ; pointer to the character to be written LENGTHOF boxSpace, ; size of buffer wallxyPosition, ; coordinates of first char ADDR count ; output count jmp L4_3 L4_2: inc esi mov BYTE PTR [esi], 0 ; remain 0 the place now is on the left mov ax, ballxyPosition.X add ax, 2 mov wallxyPosition.X, ax mov bx, ballxyPosition.Y add bx, ballyDir mov wallxyPosition.Y, bx ; remove the wall INVOKE WriteConsoleOutputCharacter, outputHandle, ; output handle ADDR boxSpace, ; pointer to the character to be written LENGTHOF boxSpace, ; size of buffer wallxyPosition, ; coordinates of first char ADDR count ; output count L4_3: mov eax, deltascore add score, eax mov ax, ballyDir mov bx, -1 mul bx mov ballyDir, ax L4: ; check the bat mov esi, OFFSET State movsx eax, ballxyPosition.X xor edx, edx mov ebx, 2 div ebx add esi, eax movsx eax, ballxyPosition.Y movsx edx, ballyDir ; check the ball's direction cmp edx, 1 jne L5 add eax, edx movsx ebx, windowWidth mul ebx xor edx, edx mov ebx, 2 div ebx add esi, eax movsx eax, BYTE PTR [esi] ; take out the state of the place next to the ball cmp eax, 2 jne L5 mov ax, ballyDir mov bx, -1 mul bx mov ballyDir, ax L5: ; set the ball's next place mov ax, ballxyPosition.X add ax, ballxDir mov ballxyPosition.X, ax mov bx, ballxyPosition.Y add bx, ballyDir mov ballxyPosition.Y, bx ; print out the ball INVOKE WriteConsoleOutputCharacter, outputHandle, ; output handle ADDR boxBall, ; pointer to the character to be written LENGTHOF boxBall, ; size of buffer ballxyPosition, ; coordinates of first char ADDR count ; output count ; check things before loop INVOKE Sleep, speed ; set the time to wait arround 45-150 mov eax, 300 mov ebx, deltascore mul ebx cmp score, eax ; changing to random therefore it become weird jl L6 mov win, 2 L6: cmp win, 0 ; check win or lose or continue je L0 mGotoxy 45, 23 call WaitMsg ret Game ENDP PreSet PROC, bWidth:PTR WORD, bHeight:PTR WORD, bState:PTR BYTE ; get the window width mov ax, consoleInfo.srWindow.Right mov dx, consoleInfo.srWindow.Left sub ax, dx inc ax mov esi, bWidth mov WORD PTR [esi], ax ; get the window height mov bx, consoleInfo.srWindow.Bottom mov dx, consoleInfo.srWindow.Top sub bx, dx inc bx mov edi, bHeight mov WORD PTR [edi], bx ; set wall mov edi, bWidth movsx eax, WORD PTR [edi] mov ebx, 10 mul ebx xor edx, edx mov ecx, 4 div ecx mov ecx, eax mov esi, bState call Randomize L01: call Random32 ; make the brick random cmp eax, 0C0000000h ja L01_1 ; 3/4 have brick 1/4 doesn't have brick mov BYTE PTR [esi], 3 inc esi mov BYTE PTR [esi], 3 inc esi jmp L01_2 L01_1: mov BYTE PTR [esi], 0 inc esi mov BYTE PTR [esi], 0 inc esi L01_2: loop L01 ; set space mov edi, bWidth movsx eax, WORD PTR [edi] xor edx, edx mov ebx, 20 mul ebx mov ecx, 2 div ecx mov ecx, eax L02: mov BYTE PTR [esi], 0 inc esi loop L02 mov esi, bState add esi, 1710 ; 1710 = 28 * 60 + 30 mov BYTE PTR [esi], 1 mov eax, 60 sub eax, batLength2 add esi, eax mov ecx, batLength1 L03: mov BYTE PTR [esi], 2 ; set the bat inc esi loop L03 ret PreSet ENDP FillTheWindows PROC, bWidth:WORD, bHeight:WORD, bState:PTR BYTE movsx eax, bWidth movsx ebx, bHeight mul ebx xor edx, edx mov ecx, 2 div ecx mov ecx, eax ; set the total loop time mov esi, bState ; point to the first place L1: push ecx ; save ecx to stack ; take out the state of the printable position movsx eax, BYTE PTR [esi] cmp eax, 0 ; if it is space jne L2 ; print Space INVOKE WriteConsole, outputHandle, ; output handle ADDR boxSpace, ; pointer to buffer LENGTHOF boxSpace, ; size of buffer ADDR count, ; output count lpReserved ; (not used) jmp L5 L2: cmp eax, 1 ; if it is ball jne L3 ; print Ball INVOKE WriteConsole, outputHandle, ; output handle ADDR boxBall, ; pointer to buffer LENGTHOF boxBall, ; size of buffer ADDR count, ; output count lpReserved ; (not used) jmp L5 L3: cmp eax, 2 ; if it is bat jne L4 ; print Bat INVOKE WriteConsole, outputHandle, ; output handle ADDR boxBat, ; pointer to buffer LENGTHOF boxBat, ; size of buffer ADDR count, ; output count lpReserved ; (not used) jmp L5 L4: cmp eax, 3 ; if it is wall jne L5 mov edi, bState mov eax, esi sub eax, edi xor edx, edx ; mov eax, esi mov ebx, 4 div ebx cmp edx, 2 ; check which type of wall jl L6 ; print Wall1 INVOKE WriteConsole, outputHandle, ; output handle ADDR boxWall1, ; pointer to buffer LENGTHOF boxWall1, ; size of buffer ADDR count, ; output count lpReserved ; (not used) jmp L5 L6: ; print Wall2 INVOKE WriteConsole, outputHandle, ; output handle ADDR boxWall2, ; pointer to buffer LENGTHOF boxWall2, ; size of buffer ADDR count, ; output count lpReserved ; (not used) L5: pop ecx ; pop back ecx inc esi ; point to next printable position dec ecx ; set loop time jnz L1 ; jump (loop too far so do jump) ret FillTheWindows ENDP Walloutput PROC ; Walls to screen INVOKE GetStdHandle, STD_OUTPUT_HANDLE ; get the console ouput handle mov outputHandle, eax ; save console handle call Clrscr ; output first line INVOKE WriteConsoleOutputAttribute, outputHandle, ; output handle ADDR attributes0, ; write attributes WallWidth, ; number of cells xyPosition, ; first coordinates ADDR cellsWritten ; numbers of written INVOKE WriteConsoleOutputCharacter, outputHandle, ; console output handle ADDR Horwall, ; pointer to the top box line WallWidth, ; size of box line xyPosition, ; first coordinate ADDR count inc xyPosition.Y mov ecx, (WallHeight-2) ; number of lines in body L1: push ecx ; save counter INVOKE WriteConsoleOutputAttribute, outputHandle, ADDR attributes1, WallWidth, xyPosition, ADDR cellsWritten INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR Verwall, WallWidth, xyPosition, ADDR count inc xyPosition.Y ; next line pop ecx ; restore counter loop L1 INVOKE WriteConsoleOutputAttribute, outputHandle, ADDR attributes2, WallWidth, xyPosition, ADDR cellsWritten ; draw bottom of the box INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR Botwall, ; pointer to the bottom of the box WallWidth, xyPosition, ADDR count sub xyPosition.Y, (WallHeight - 1) ; let xyPosition back to <0,1> ret Walloutput ENDP TitleScreen PROC ; this part use many INVOKE to fill the window with pictures call ClrScr call Walloutput mov xyPosition.X, 1 mov xyPosition.Y, 2 mov ecx, 13 L1: push ecx INVOKE WriteConsoleOutputAttribute, outputHandle, ADDR attributes3, 8, xyPosition, ADDR cellsWritten INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR Titlewall, 8, xyPosition, ADDR count add xyPosition.X, 8 pop ecx loop L1 inc xyPosition.Y sub xyPosition.X, 104 mov ecx, 13 L2: push ecx INVOKE WriteConsoleOutputAttribute, outputHandle, ADDR attributes4, 8, xyPosition, ADDR cellsWritten INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR Titlewall, 8, xyPosition, ADDR count add xyPosition.X, 8 pop ecx loop L2 inc xyPosition.Y sub xyPosition.X, 104 mov ecx, 13 L3: push ecx INVOKE WriteConsoleOutputAttribute, outputHandle, ADDR attributes3, 8, xyPosition, ADDR cellsWritten INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR Titlewall, 8, xyPosition, ADDR count add xyPosition.X, 8 pop ecx loop L3 mGotoxy 21, 6 mWrite " ___ _ ____ __ " mGotoxy 21, 7 mWrite " |___/ _ __ ___ __ _ | |__ / __\ | | ___ _ __ ___" mGotoxy 21, 8 mWrite " | \ | '_/ / -_) / _` | | / / | |__ | | | _ | | '. | / -_)" mGotoxy 21, 9 mWrite " |___/ |_| \___| \__,_| |_\_\ \____/ |__| |___| |_||_| \___|" sub xyPosition.X, 104 mov xyPosition.Y, 12 mov ecx, 13 L4: push ecx INVOKE WriteConsoleOutputAttribute, outputHandle, ADDR attributes4, 8, xyPosition, ADDR cellsWritten INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR Titlewall, 8, xyPosition, ADDR count add xyPosition.X, 8 pop ecx loop L4 sub xyPosition.X, 104 inc xyPosition.Y mov ecx, 13 L5: push ecx INVOKE WriteConsoleOutputAttribute, outputHandle, ADDR attributes3, 8, xyPosition, ADDR cellsWritten INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR Titlewall, 8, xyPosition, ADDR count add xyPosition.X, 8 pop ecx loop L5 sub xyPosition.X, 104 inc xyPosition.Y mov ecx, 13 L6: push ecx INVOKE WriteConsoleOutputAttribute, outputHandle, ADDR attributes4, 8, xyPosition, ADDR cellsWritten INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR Titlewall, 8, xyPosition, ADDR count add xyPosition.X, 8 pop ecx loop L6 mov xyPosition.X, 75 mov xyPosition.Y, 28 INVOKE WriteConsoleOutputAttribute, outputHandle, ADDR attributes5, LENGTHOF Plate, xyPosition, ADDR cellsWritten INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR Plate, LENGTHOF Plate, xyPosition, ADDR count mov xyPosition.X, 25 mov xyPosition.Y, 20 INVOKE WriteConsoleOutputAttribute, outputHandle, ADDR attributes6, LENGTHOF whiteball, xyPosition, ADDR cellsWritten INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR whiteball, LENGTHOF whiteball, xyPosition, ADDR count mov xyPosition.X, 1 mov xyPosition.Y, 0 mGotoxy 40, 25 call WaitMsg mGotoxy 0, 0 ret TitleScreen ENDP Menu PROC L0: ; show the start menu call ClrScr call Walloutput mGotoxy 46, 5 mWrite "~ Menu Menu ~" mGotoxy 46, 12 mWrite "~ Difficulty ~" mGotoxy 40, 14 mWrite "1.Easy" mGotoxy 48, 14 mWrite "2.Normal" mGotoxy 58, 14 mWrite "3.Hard" mGotoxy 44, 16 mWrite "Your Selection: " call ReadChar mov choice, al ;get difficult choice call WriteChar cmp choice, '1' jne L1 mov speed, 100 mov batLength, 18 ; 18 = 9 * 2 mov batLength1, 9 mov batLength2, 4 mov deltascore, 1 jmp L3 L1: cmp choice, '2' jne L2 mov speed, 70 mov batLength, 14 ; 14 = 7 * 2 mov batLength1, 7 mov batLength2, 3 mov deltascore, 3 jmp L3 L2: cmp choice, '3' jne L3_5 mov speed, 50 mov batLength, 10 ; 10 = 5 * 2 mov batLength1, 5 mov batLength2, 2 mov deltascore, 5 jmp L3 L3_5: jmp L0 L3: INVOKE sleep, speed ; set the sleep time mGotoxy 43, 24 mWrite "Your Name: " mRead Nameofplayer ; read the input mGotoxy 0, 0 call ClrScr ret Menu ENDP Gameover PROC L0: call ClrScr call Walloutput ; print ou top of the window mGotoxy 46, 5 cmp win, 2 je L1 jmp L2 L1: mWrite "!~~~! Win !~~~!" jmp L3 L2: mWrite "!! Game Over !!" L3: ; print out the scorebroad mGotoxy 30, 8 mWrite "Your Name" mGotoxy 30, 9 mWritestring Nameofplayer mGotoxy 65, 8 mWrite "Your Score" mGotoxy 65, 9 mov eax, score call Writeint cld mov ecx, 13 mov esi, OFFSET TmpName1 mov edi, OFFSET TmpName rep movsb mov eax, score cmp eax, score[12] ; the third num jle L4 mov score[12], eax cld mov ecx, 13 mov esi, OFFSET Nameofplayer mov edi, OFFSET Nameofplayer[39] rep movsb cmp eax, score[8] ; the second num jle L4 mov ebx, score[8] mov score[8], eax mov score[12], ebx cld mov ecx, 13 mov esi, OFFSET Nameofplayer[26] mov edi, OFFSET TmpName rep movsb cld mov ecx, 13 mov esi, OFFSET Nameofplayer mov edi, OFFSET Nameofplayer[26] rep movsb cld mov ecx, 13 mov esi, OFFSET TmpName mov edi, OFFSET Nameofplayer[39] rep movsb cld mov ecx, 13 mov esi, OFFSET TmpName1 mov edi, OFFSET TmpName rep movsb cmp eax, score[4] ; the first num jle L4 mov ebx, score[4] mov score[4], eax mov score[8], ebx cld mov ecx, 13 mov esi, OFFSET Nameofplayer[13] mov edi, OFFSET TmpName rep movsb cld mov ecx, 13 mov esi, OFFSET Nameofplayer mov edi, OFFSET Nameofplayer[13] rep movsb cld mov ecx, 13 mov esi, OFFSET TmpName mov edi, OFFSET Nameofplayer[26] rep movsb cld mov ecx, 13 mov esi, OFFSET TmpName1 mov edi, OFFSET TmpName rep movsb L4: ; print out middle of the window mGotoxy 48, 13 mWrite "ScoreBoard" mGotoxy 33, 14 mWrite "Name" mGotoxy 68, 14 mWrite "Score" ; doing swap of the score cmp score[4], 0 jle L4_1 mGotoxy 33, 15 mWritestring Nameofplayer[13] mGotoxy 68, 15 mov eax, score[4] call Writeint L4_1: ; doing swap of the score cmp score[8], 0 jle L4_2 mGotoxy 33, 16 mWritestring Nameofplayer[26] mGotoxy 68, 16 mov eax, score[8] call Writeint L4_2: ; doing swap of the score cmp score[12], 0 jle L4_3 mGotoxy 33, 17 mWritestring Nameofplayer[39] mGotoxy 68, 17 mov eax, score[12] call Writeint L4_3: ; print out the buttom window mGotoxy 45, 22 mWrite "(1) Back to Menu!" mGotoxy 45, 24 mWrite "(2) Exit..." mGotoxy 45, 26 mWrite "Your choose: " call ReadChar mov endchoice, al ; get input whether need to play again call WriteChar cmp endchoice, '1' je L5 cmp endchoice, '2' jne L0 call Clrscr exit L5: ret Gameover ENDP StartGame PROC call TitleScreen ; show the start picture X1: call Menu ; show the menu call Game ; get into the game call clrscr ; clear the output on window call Gameover ; determine whether the game is over jmp X1 ; if not loop ret StartGame ENDP END main
22.646091
79
0.670434
1d31636746ddd3abc562a2dcea86a9ea1d5a5ce5
1,149
asm
Assembly
programs/oeis/230/A230865.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/230/A230865.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/230/A230865.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A230865: a(n) = n + (sum of digits in base-5 representation of n). ; 0,2,4,6,8,6,8,10,12,14,12,14,16,18,20,18,20,22,24,26,24,26,28,30,32,26,28,30,32,34,32,34,36,38,40,38,40,42,44,46,44,46,48,50,52,50,52,54,56,58,52,54,56,58,60,58,60,62,64,66,64,66,68,70,72,70,72,74,76,78,76,78,80,82,84,78,80,82,84,86,84,86,88,90,92,90,92,94,96,98,96,98,100,102,104,102,104,106,108,110,104,106,108,110,112,110,112,114,116,118,116,118,120,122,124,122,124,126,128,130,128,130,132,134,136,126,128,130,132,134,132,134,136,138,140,138,140,142,144,146,144,146,148,150,152,150,152,154,156,158,152,154,156,158,160,158,160,162,164,166,164,166,168,170,172,170,172,174,176,178,176,178,180,182,184,178,180,182,184,186,184,186,188,190,192,190,192,194,196,198,196,198,200,202,204,202,204,206,208,210,204,206,208,210,212,210,212,214,216,218,216,218,220,222,224,222,224,226,228,230,228,230,232,234,236,230,232,234,236,238,236,238,240,242,244,242,244,246,248,250,248,250,252,254,256,254,256,258,260,262 mov $1,$0 mov $2,$0 mov $4,$0 lpb $2 lpb $4 mov $3,$1 add $1,$0 sub $4,$4 lpe sub $1,$3 div $3,5 sub $1,$3 mov $2,4 sub $2,$1 sub $2,1 lpe mul $1,2
54.714286
902
0.6745
afb67a49a32a21a81010b882826c6565f84769ad
1,870
asm
Assembly
programs/oeis/010/A010975.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/010/A010975.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/010/A010975.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A010975: a(n) = binomial(n,22). ; 1,23,276,2300,14950,80730,376740,1560780,5852925,20160075,64512240,193536720,548354040,1476337800,3796297200,9364199760,22239974430,51021117810,113380261800,244662670200,513791607420,1052049481860,2104098963720,4116715363800,7890371113950,14833897694226,27385657281648,49699896548176,88749815264600,156077261327400,270533919634160,462525733568080,780512175396135,1300853625660225,2142582442263900,3489348548829780,5621728217559090,8964377427999630,14154280149473100,22138745874816900,34315056105966195,52728013040874885,80347448443237920,121455445321173600,182183167981760400,271250494550621040,400978991944396320,588671286046028640,858478958817125100,1243918491347262900,1791242627540058576,2563935525694593648,3648677478873075576,5163222847461899400,7266758081613043600,10173461314258261040,14170178259145435020,19639369867938409940,27088786024742634400,37189689288205989600,50825908693881519120,69156564288396165360,93695990326214159520,126415225043304818400,169870458651940849725,227365075426443906555,303153433901925208740,402696352496587217580,532980466539600729150,702916267465270526850,923832808668641263860,1210090862058924472380,1579840847688040283385,2055957267539230505775,2667187806537380115600,3449562896455011616176,4448120577007778136648,5719012170438571889976,7332066885177656269200,9373908296239788394800,11951733077705730203370,15197882802514693962310,19275363554408880147320,24384496062806414644200,30770911698303332765300,38735147667275960069260,48644138930997717296280,60944955672169553853960,76181194590211942317450,95012501118129501092550,118237779169227823581840,146822736770579605107120,181932521650500815024040,224970322471049394922200,277622951134486487350800,341914581923525463368880,420270006947666715390915,515588977595591125067205,631333441953785051102700,771629762387959506903300 add $0,22 bin $0,22
311.666667
1,814
0.933155
673dbe4d7e63cab3a083d4fa6d0d42ce17d351a8
1,012
asm
Assembly
libsrc/rex/graphics/DsDisplayCircle.asm
andydansby/z88dk-mk2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
1
2020-09-15T08:35:49.000Z
2020-09-15T08:35:49.000Z
libsrc/rex/graphics/DsDisplayCircle.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
libsrc/rex/graphics/DsDisplayCircle.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
; ; written by Waleed Hasan ; ; $Id: DsDisplayCircle.asm,v 1.2 2003/03/13 15:02:07 dom Exp $ ; XLIB DsDisplayCircle LIB set4pix LIB setpixsave .DsDisplayCircle pop bc ;ret addr pop hl ;r ld d,l ; b=r pop hl ;yc ld e,l ; e=yc pop hl ;xc push bc push bc push bc push bc ld b,l ld c,e ; ASM Circle draw ; ASM - entry point ; i/p : B=xc, C=yc, D=r, H=0 ; uses : AF,BC,HL,DE .circle ; x=0; h=0 alrady! ld l,d ; y=r; srl d ; a=r>>1 .loop push de call set4pix ld a,b add a,l ld d,a ld a,c add a,h ld e,a call setpixsave ;PIX(xc+y,yc+x) ld a,b sub l ld d,a call setpixsave ;PIX(xc-y,yc+x) ld a,c sub h ld e,a call setpixsave ;PIX(xc-y,yc-x) ld a,b add a,l ld d,a call setpixsave ;PIX(xc+y,yc-x) inc h ;x++; pop de ld a,d sub h ld d,a ;a-=x; bit 7,d jr z, NextLoop ;if(a>=0) ;{ add a,l ld d,a ;a+=y dec l ;y--; ;} .NextLoop ;this test should go up! ld a,h ;for(;x<=y;) sub l jr c,loop jr z,loop ret
11.905882
62
0.561265
62395a690931eee5a0fb845bef4421d280deb90f
360
asm
Assembly
programs/oeis/051/A051879.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/051/A051879.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/051/A051879.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A051879: Partial sums of A051798. ; 1,14,69,224,574,1260,2478,4488,7623,12298,19019,28392,41132,58072,80172,108528,144381,189126,244321,311696,393162,490820,606970,744120,904995,1092546,1309959,1560664 mov $1,1 lpb $0 mov $2,1 mul $2,$0 cal $2,51798 ; a(n) = (n+1)*(n+2)*(n+3)*(9n+4)/24. sub $0,1 add $1,$2 lpe mul $1,2 sub $1,2 div $1,2 add $1,1
22.5
167
0.663889
8d33e123ac81a4213a8fc3600de649c6487e8c35
488
asm
Assembly
data/baseStats/ditto.asm
etdv-thevoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
1
2022-01-09T05:28:52.000Z
2022-01-09T05:28:52.000Z
data/baseStats/ditto.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
data/baseStats/ditto.asm
ETDV-TheVoid/pokemon-rgb-enhanced
5b244c1cf46aab98b9c820d1b7888814eb7fa53f
[ "MIT" ]
null
null
null
db DITTO ; pokedex id db 48 ; base hp db 48 ; base attack db 48 ; base defense db 48 ; base speed db 48 ; base special db NORMAL ; species type 1 db NORMAL ; species type 2 db 35 ; catch rate db 61 ; base exp yield INCBIN "pic/gsmon/ditto.pic",0,1 ; 55, sprite dimensions dw DittoPicFront dw DittoPicBack ; attacks known at lvl 0 db TRANSFORM db 0 db 0 db 0 db 0 ; growth rate ; learnset tmlearn 0 tmlearn 0 tmlearn 0 tmlearn 0 tmlearn 0 tmlearn 0 tmlearn 0 db BANK(DittoPicFront)
16.827586
56
0.731557
c4274f0e4bf403e030f8ed844b49e6b323eb68c9
37
asm
Assembly
tests/cross-assemblers/kickass/init.asm
shazz/shazzam
bd9801f1be5a8b58d0b2f20a937d3a446a0c5f5a
[ "MIT" ]
null
null
null
tests/cross-assemblers/kickass/init.asm
shazz/shazzam
bd9801f1be5a8b58d0b2f20a937d3a446a0c5f5a
[ "MIT" ]
null
null
null
tests/cross-assemblers/kickass/init.asm
shazz/shazzam
bd9801f1be5a8b58d0b2f20a937d3a446a0c5f5a
[ "MIT" ]
null
null
null
.segment InitSegment nop nop nop
7.4
21
0.72973
7b9cbc1d0806a5f6a27b675dc4276ecaef247de8
271
asm
Assembly
libsrc/_DEVELOPMENT/alloc/malloc/c/sccz80/heap_alloc_unlocked_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/alloc/malloc/c/sccz80/heap_alloc_unlocked_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/alloc/malloc/c/sccz80/heap_alloc_unlocked_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void *heap_alloc_unlocked(void *heap, size_t size) SECTION code_clib SECTION code_alloc_malloc PUBLIC heap_alloc_unlocked_callee EXTERN asm_heap_alloc_unlocked heap_alloc_unlocked_callee: pop af pop hl pop de push af jp asm_heap_alloc_unlocked
14.263158
52
0.789668
c2ee0c3e7f72b72fa278d8cc91198269a7096955
25
asm
Assembly
tests/include_recursive/recursive4.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
414
2016-10-14T22:39:20.000Z
2022-03-30T07:52:44.000Z
tests/include_recursive/recursive4.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
100
2018-03-22T16:12:24.000Z
2022-03-26T09:19:23.000Z
tests/include_recursive/recursive4.asm
NullMember/customasm
6e34d6432583a41278e6b3596f1817ae82149531
[ "Apache-2.0" ]
47
2017-06-29T15:12:13.000Z
2022-03-10T04:50:51.000Z
#include "recursive2.asm"
25
25
0.8
b109330a36118df68a7954027228235d14be2c83
117
asm
Assembly
examples/newinst.asm
Benderx2/FVM
520ba257509069d0afeb8771b1b254681e4becfb
[ "BSD-2-Clause" ]
2
2017-07-20T00:37:43.000Z
2017-09-24T14:33:12.000Z
examples/newinst.asm
Benderx2/FVM
520ba257509069d0afeb8771b1b254681e4becfb
[ "BSD-2-Clause" ]
null
null
null
examples/newinst.asm
Benderx2/FVM
520ba257509069d0afeb8771b1b254681e4becfb
[ "BSD-2-Clause" ]
null
null
null
include 'a32.inc' _start: LOAD_R0 0 PUSH R0 POPF VM_DEBUG VM_EXIT _end_start: _data: _end_data: _bss: _end_bss:
9
17
0.752137
1f9622a5307c2524daa1c3110ae8c23252e2df85
563
asm
Assembly
programs/oeis/265/A265528.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/265/A265528.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/265/A265528.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A265528: Largest base-2 palindrome m <= 2n, written in base 2. ; 0,1,11,101,111,1001,1001,1001,1111,10001,10001,10101,10101,10101,11011,11011,11111,100001,100001,100001,100001,100001,100001,101101,101101,101101,110011,110011,110011,110011,110011,110011,111111,1000001,1000001,1000001,1000001,1001001,1001001,1001001,1001001,1001001,1001001 mul $0,2 seq $0,206913 ; Greatest binary palindrome <= n; the binary palindrome floor function. seq $0,7088 ; The binary numbers (or binary words, or binary vectors, or binary expansion of n): numbers written in base 2.
80.428571
276
0.786856
397cdb33775cd6c7aaddb47d52dda259d67d78c4
7,543
asm
Assembly
src/gamemode.asm
cout/sm_practice_hack
248c691848b7fb8293525816a1f883817e0b94de
[ "Unlicense" ]
null
null
null
src/gamemode.asm
cout/sm_practice_hack
248c691848b7fb8293525816a1f883817e0b94de
[ "Unlicense" ]
null
null
null
src/gamemode.asm
cout/sm_practice_hack
248c691848b7fb8293525816a1f883817e0b94de
[ "Unlicense" ]
null
null
null
; $82:8963 AD 98 09 LDA $0998 [$7E:0998] ; $82:8966 29 FF 00 AND #$00FF org $828963 ; gamemode_shortcuts will either CLC or SEC ; to control if normal gameplay will happen on this frame JSL gamemode_start : BCS end_of_normal_gameplay org $82896E end_of_normal_gameplay: if !FEATURE_SD2SNES org $82E526 JSL gamemode_door_transition : NOP endif org $85F800 print pc, " gamemode start" gamemode_start: { PHB PHK : PLB JSR gamemode_shortcuts %ai16() PHP ; don't load presets if we're in credits LDA !GAMEMODE : CMP #$0027 : BEQ ++ LDA !ram_custom_preset : BNE + LDA !ram_load_preset : BEQ ++ + JSL preset_load ++ LDA !GAMEMODE : AND #$00FF PLP PLB RTL } gamemode_shortcuts: { LDA !IH_CONTROLLER_PRI_NEW : BNE + ; No shortcuts configured, CLC so we won't skip normal gameplay CLC : RTS if !FEATURE_SD2SNES + LDA !IH_CONTROLLER_PRI : CMP !sram_ctrl_save_state : BNE + AND !IH_CONTROLLER_PRI_NEW : BEQ + JMP .save_state + LDA !IH_CONTROLLER_PRI : CMP !sram_ctrl_load_state : BNE + AND !IH_CONTROLLER_PRI_NEW : BEQ + JMP .load_state endif + LDA !IH_CONTROLLER_PRI : AND !sram_ctrl_load_last_preset : CMP !sram_ctrl_load_last_preset : BNE + AND !IH_CONTROLLER_PRI_NEW : BEQ + JMP .load_last_preset + LDA !IH_CONTROLLER_PRI : AND !sram_ctrl_random_preset : CMP !sram_ctrl_random_preset : BNE + AND !IH_CONTROLLER_PRI_NEW : BEQ + JMP .random_preset + LDA !IH_CONTROLLER_PRI : AND !sram_ctrl_save_custom_preset : CMP !sram_ctrl_save_custom_preset : BNE + AND !IH_CONTROLLER_PRI_NEW : BEQ + JMP .save_custom_preset + LDA !IH_CONTROLLER_PRI : AND !sram_ctrl_load_custom_preset : CMP !sram_ctrl_load_custom_preset : BNE + AND !IH_CONTROLLER_PRI_NEW : BEQ + JMP .load_custom_preset ; Check if any less common shortcuts are configured + LDA !ram_game_mode_extras : BNE + JMP .check_menu + LDA !IH_CONTROLLER_PRI : AND !sram_ctrl_inc_custom_preset : CMP !sram_ctrl_inc_custom_preset : BNE + AND !IH_CONTROLLER_PRI_NEW : BEQ + JMP .next_preset_slot + LDA !IH_CONTROLLER_PRI : AND !sram_ctrl_dec_custom_preset : CMP !sram_ctrl_dec_custom_preset : BNE + AND !IH_CONTROLLER_PRI_NEW : BEQ + JMP .prev_preset_slot + LDA !IH_CONTROLLER_PRI : AND !sram_ctrl_kill_enemies : CMP !sram_ctrl_kill_enemies : BNE + AND !IH_CONTROLLER_PRI_NEW : BEQ + JMP .kill_enemies + LDA !IH_CONTROLLER_PRI : AND !sram_ctrl_reset_segment_timer : CMP !sram_ctrl_reset_segment_timer : BNE + AND !IH_CONTROLLER_PRI_NEW : BEQ + JMP .reset_segment_timer + LDA !IH_CONTROLLER_PRI : AND !sram_ctrl_reset_segment_later : CMP !sram_ctrl_reset_segment_later : BNE + AND !IH_CONTROLLER_PRI_NEW : BEQ + JMP .reset_segment_later + LDA !IH_CONTROLLER_PRI : AND !sram_ctrl_full_equipment : CMP !sram_ctrl_full_equipment : BNE + AND !IH_CONTROLLER_PRI_NEW : BEQ + JMP .full_equipment + LDA !IH_CONTROLLER_PRI : AND !sram_ctrl_toggle_tileviewer : CMP !sram_ctrl_toggle_tileviewer : BNE + AND !IH_CONTROLLER_PRI_NEW : BEQ + JMP .toggle_tileviewer + LDA !IH_CONTROLLER_PRI : AND !sram_ctrl_update_timers : CMP !sram_ctrl_update_timers : BNE + AND !IH_CONTROLLER_PRI_NEW : BEQ + JMP .update_timers .check_menu + LDA !IH_CONTROLLER_PRI : AND !sram_ctrl_menu : CMP !sram_ctrl_menu : BNE + AND !IH_CONTROLLER_PRI_NEW : BEQ + JMP .menu ; No shortcuts matched, CLC so we won't skip normal gameplay + CLC : RTS if !FEATURE_SD2SNES ; This if statement is to prevent an assembler error from an unknown method. The one on the call to this ; prevents the button combo from being intercepted by the non-sd2snes rom .save_state JSL save_state ; SEC to skip normal gameplay for one frame after saving state SEC : RTS .load_state JSL load_state ; SEC to skip normal gameplay for one frame after loading state SEC : RTS endif .kill_enemies JSL kill_enemies ; CLC to continue normal gameplay after killing enemies CLC : RTS .load_last_preset LDA !sram_last_preset : BEQ + : STA !ram_load_preset ; SEC to skip normal gameplay for one frame after loading preset SEC : RTS ; Choose a random preset if zero + JMP .random_preset .reset_segment_timer LDA #$0000 : STA !ram_seg_rt_frames STA !ram_seg_rt_seconds : STA !ram_seg_rt_minutes ; CLC to continue normal gameplay after resetting segment timer CLC : RTS .reset_segment_later LDA #$7FFF : STA !ram_reset_segment_later ; CLC to continue normal gameplay after setting segement timer reset CLC : RTS .full_equipment LDA $7E09C4 : STA $7E09C2 ; health LDA $7E09C8 : STA $7E09C6 ; missiles LDA $7E09CC : STA $7E09CA ; supers LDA $7E09D0 : STA $7E09CE ; pbs LDA $7E09D4 : STA $7E09D6 ; reserves ; CLC to continue normal gameplay after equipment refill CLC : RTS .toggle_tileviewer LDA !ram_oob_watch_active : BEQ .turnOnTileViewer LDA #$0000 : STA !ram_oob_watch_active : STA !ram_sprite_features_active ; CLC to continue normal gameplay after disabling OOB Tile Viewer CLC : RTS .turnOnTileViewer LDA #$0001 : STA !ram_oob_watch_active : STA !ram_sprite_features_active JSL upload_sprite_oob_tiles ; CLC to continue normal gameplay after enabling OOB Tile Viewer CLC : RTS .random_preset JSL LoadRandomPreset ; SEC to skip normal gameplay for one frame after loading preset SEC : RTS .save_custom_preset ; check gamestate first LDA $0998 : CMP #$0008 : BEQ .save_safe CMP #$000C : BMI .not_safe CMP #$0013 : BPL .not_safe .save_safe JSL custom_preset_save ; CLC to continue normal gameplay after saving preset LDA #!SOUND_MENU_JSR : JSL !SFX_LIB1 CLC : RTS .load_custom_preset ; check if slot is populated first LDA !sram_custom_preset_slot ASL : XBA : TAX LDA $703000,X : CMP #$5AFE : BEQ .load_safe .not_safe LDA #!SOUND_MENU_FAIL : JSL !SFX_LIB1 ; CLC to continue normal gameplay after failing to save or load preset CLC : RTS .load_safe STA !ram_custom_preset JSL preset_load ; SEC to skip normal gameplay for one frame after loading preset SEC : RTS .next_preset_slot LDA !sram_custom_preset_slot : CMP #$0027 ; total slots minus one BNE + : LDA #$FFFF + INC : STA !sram_custom_preset_slot ASL : TAX : LDA.l NumberGFXTable,X : STA $7EC67C ; CLC to continue normal gameplay after incrementing preset slot CLC : RTS .prev_preset_slot LDA !sram_custom_preset_slot : BNE + LDA #$0028 ; total slots + DEC : STA !sram_custom_preset_slot ASL : TAX : LDA.l NumberGFXTable,X : STA $7EC67C ; CLC to continue normal gameplay after decrementing preset slot CLC : RTS .update_timers JSL ih_update_hud_early ; CLC to continue normal gameplay after updating HUD timers CLC : RTS .menu ; Set IRQ vector LDA $AB : PHA LDA #$0004 : STA $AB ; Enter MainMenu JSL cm_start ; Restore IRQ vector PLA : STA $AB ; SEC to skip normal gameplay for one frame after handling the menu SEC : RTS } if !FEATURE_SD2SNES gamemode_door_transition: { .checkloadstate LDA !IH_CONTROLLER_PRI : BEQ .checktransition CMP !sram_ctrl_load_state : BNE .checktransition PHB : PHK : PLB JML load_state .checktransition LDA $0931 : BPL .checkloadstate RTL } endif print pc, " gamemode end" warnpc $85FD00
28.464151
108
0.708471
d37b7dbca153ddf8018e7f4f4a88c1a59441dcee
1,758
asm
Assembly
Library/BorlandRTL/h_lursh.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/BorlandRTL/h_lursh.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/BorlandRTL/h_lursh.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
; $Id: h_lursh.asm,v 1.1 97/04/07 12:03:59 newdeal Exp $ ;[]-----------------------------------------------------------------[] ;| H_LURSH.ASM -- long shift right | ;[]-----------------------------------------------------------------[] ; ; C/C++ Run Time Library - Version 5.0 ; ; Copyright (c) 1987, 1992 by Borland International ; All Rights Reserved. ; INCLUDE rules.asi _TEXT segment public byte 'CODE' assume cs:_TEXT public LXURSH@ public F_LXURSH@ public N_LXURSH@ N_LXURSH@ proc near pop bx ;fix up far return push cs push bx .fall_thru N_LXURSH@ endp LXURSH@ proc far .fall_thru LXURSH@ endp F_LXURSH@ proc far cmp cl,16 jae lsh@small mov bx,dx ; save the high bits shr ax,cl ; now shift each half shr dx,cl ; ; We now have a hole in AX where the lower bits of ; DX should have been shifted. So we must take our ; copy of DX and do a reverse shift to get the proper ; bits to be or'ed into AX. ; neg cl add cl,16 shl bx,cl or ax,bx ret lsh@small: sub cl,16 ; for shifts more than 15, do this ; short sequence. xchg ax,dx xor dx,dx ; We have now done a shift by 16. shr ax,cl ; Now shift the remainder. ret F_LXURSH@ endp _TEXT ends
29.3
76
0.4124
5985420e767322c0da99029aaa4cf7f96e3d6557
300
asm
Assembly
programs/oeis/063/A063116.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/063/A063116.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/063/A063116.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A063116: Dimension of the space of weight 2n cusp forms for Gamma_0( 48 ). ; 3,18,34,50,66,82,98,114,130,146,162,178,194,210,226,242,258,274,290,306,322,338,354,370,386,402,418,434,450,466,482,498,514,530,546,562,578,594,610,626,642,658,674,690,706,722,738,754,770,786 mul $0,16 trn $0,1 add $0,3
42.857143
193
0.716667
75c8858538af3a3e945a5e8b1fd58a852d584e65
15,168
asm
Assembly
malban/Release/VRelease/Release.History/VRelease_2017_04_23/highscore.asm
mikepea/vectrex-playground
0de7d2d6db0914d915f4334402f747ab3bcdc7e6
[ "0BSD" ]
5
2018-01-14T10:03:50.000Z
2020-01-17T13:53:49.000Z
malban/Release/VRelease/Release.History/VRelease_2017_04_23/highscore.asm
mikepea/vectrex-playground
0de7d2d6db0914d915f4334402f747ab3bcdc7e6
[ "0BSD" ]
null
null
null
malban/Release/VRelease/Release.History/VRelease_2017_04_23/highscore.asm
mikepea/vectrex-playground
0de7d2d6db0914d915f4334402f747ab3bcdc7e6
[ "0BSD" ]
null
null
null
; this file is part of Release, written by Malban in 2017 ; HIGH_SCORE_ZERO_POS = $7090 X_STEP_LETTERS = 20 ; ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; display_highscore clr demo_mode lda #MAX_OBJECTS -23 jsr init_objects_a ; jsr init_objects jsr spawnStarfield ldd #PC_SCORE std NEXT_OBJECT,u jsr spawnStarfield ldd #PC_SCORE std NEXT_OBJECT,u jsr spawnStarfield ldd #PC_SCORE std NEXT_OBJECT,u jsr spawnStarfield ldd #PC_SCORE std NEXT_OBJECT,u jsr spawnStarfield ldd #PC_SCORE std NEXT_OBJECT,u INIT_MUSIC highscoreMusic display_highscore_intern jsr PLY_PLAY jsr Wait_Recal ldx RecalCounter ; recal counter, about 21 Minutes befor roll over leax 1,x stx RecalCounter _DP_TO_D0 ; round_startup_main expects dp set to d0 JSR do_ym_sound2_no_sfx jsr Intensity_5F ldd #HIGH_SCORE_ZERO_POS std tmp1 lda #5 sta tmp_count ldy #highScoreBlock next_score_entry lda #3 sta tmp_count2 next_name_letter _SCALE (SCALE_FACTOR_GAME) ; everything we do with "positioning" is scale SCALE_FACTOR_GAME ldd tmp1 ; the current move vector MY_MOVE_TO_D_START_NT LDB ,y+ ; first char of three letter name ; lets calculate the abc-table offset... SUBB # 'A' ; subtract smallest letter, so A has 0 offset LSLB ; multiply by two, since addresses are 16 bit ldx #_abc ; and add the abc (table of vector list address of the alphabet's letters) LDX b,X ; in x now address of first letter vectorlist _SCALE 24 ; (SCROLL_SCALE_FACTOR) ; drawing of letters is done in SCROLL_SCALE_FACTOR lda mov_x adda #X_STEP_LETTERS sta mov_x MY_MOVE_TO_B_END jsr myDraw_VL_mode3 _ZERO_VECTOR_BEAM ; draw each letter with a move from zero, more stable dec tmp_count2 bne next_name_letter lda mov_x adda #2*X_STEP_LETTERS sta mov_x _SCALE (SCALE_FACTOR_GAME) ; everything we do with "positioning" is scale SCALE_FACTOR_GAME ; put to be displayed bcd score as csa score into player score ; player_score ldd tmp1 ; the current move vector MY_MOVE_TO_D_START leau ,y leay 3,y ldx #player_score jsr bcd_to_csa pshs y lda mov_y suba #50 sta mov_y lda #$90 sta mov_x jsr in_game_score ;#isfunction puls y dec tmp_count lbne next_score_entry jsr getButtonState ; is a button pressed? beq display_highscore_intern2 cmpb #3 ; same aslast state beq display_highscore_intern2 cmpb #2 ; as released - possibly from highscore return beq display_highscore_intern2 lda #15 jsr init_objects_a ldb #3 stb last_button_state stb current_button_state INIT_MUSIC titleMusic jmp title_main1_hs_ret display_highscore_intern2 ldd #emptyStreamInMove std inMovePointer ldu list_objects_head pulu d,x,pc ; (D = y,x, X = vectorlist, Y = DDRA+Scale) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; in reg a place to be edited BLINK_LENGTH = 50/3 ; 1/3 second edit_highscore nega adda #5 ; in a now the compare value to ourcounter sta hs_place_got lda #3 sta hs_place_edit lda #BLINK_LENGTH sta hs_blink_count clr hs_blink_state ; save player hs ldx #player_score ldu #star_0_score ldd ,x++ std ,u++ ldd ,x++ std ,u++ ldd ,x++ std ,u++ INIT_MUSIC highscoreMusic edit_highscore_inner jsr PLY_PLAY jsr Wait_Recal ldx RecalCounter ; recal counter, about 21 Minutes befor roll over leax 1,x stx RecalCounter _DP_TO_D0 ; round_startup_main expects dp set to d0 JSR do_ym_sound2 jsr Intensity_5F ldd #HIGH_SCORE_ZERO_POS std tmp1 lda #5 sta tmp_count ldy #highScoreBlock next_score_entry_edit lda #3 sta tmp_count2 next_name_letter_edit _SCALE (SCALE_FACTOR_GAME) ; everything we do with "positioning" is scale SCALE_FACTOR_GAME ldd tmp1 ; the current move vector MY_MOVE_TO_D_START_NT LDB ,y+ ; first char of three letter name ; lets calculate the abc-table offset... SUBB # 'A' ; subtract smallest letter, so A has 0 offset LSLB ; multiply by two, since addresses are 16 bit ldx #_abc ; and add the abc (table of vector list address of the alphabet's letters) LDX b,X ; in x now address of first letter vectorlist ; check if current place is the "blinker" lda tmp_count cmpa hs_place_got bne no_blinker lda tmp_count2 cmpa hs_place_edit bne no_blinker ; here we have our blinking position dec hs_blink_count bne no_blink_state_change lda #BLINK_LENGTH sta hs_blink_count lda hs_blink_state bne clear_blink_state inc hs_blink_state bra no_blink_state_change clear_blink_state clr hs_blink_state no_blink_state_change tst hs_blink_state bne no_blinker ;if blink state != than display normal character ; load SPACE ldx #ABC_28 no_blinker: _SCALE 24 ; (SCROLL_SCALE_FACTOR) ; drawing of letters is done in SCROLL_SCALE_FACTOR lda mov_x adda #X_STEP_LETTERS sta mov_x MY_MOVE_TO_B_END jsr myDraw_VL_mode3 _ZERO_VECTOR_BEAM ; draw each letter with a move from zero, more stable dec tmp_count2 bne next_name_letter_edit lda mov_x adda #2*X_STEP_LETTERS sta mov_x _SCALE (SCALE_FACTOR_GAME) ; everything we do with "positioning" is scale SCALE_FACTOR_GAME ; put to be displayed bcd score as csa score into player score ; player_score ldd tmp1 ; the current move vector MY_MOVE_TO_D_START leau ,y leay 3,y ldx #player_score jsr bcd_to_csa lda mov_y suba #50 sta mov_y lda #$90 sta mov_x pshs y jsr in_game_score ;#isfunction puls y dec tmp_count lbne next_score_entry_edit jsr query_joystick ldy #highScoreBlock LDB last_joy_x ; only jump if last joy pos was zero (needed for testing later) LDA Vec_Joy_1_X ; load joystick 1 position X to A STA last_joy_x ; store this joystick position BEQ hs_no_new_xpos BMI pos_left_hse ; joystick moved to left pos_right_hse: TSTB ; test the old joystick position BNE positioning_done_hse ; was center ; pos dec 1 dec hs_place_edit bne hs_no_new_xpos inc hs_place_edit bra hs_no_new_xpos pos_left_hse: TSTB ; test the old joystick position BNE positioning_done_hse ; was center ; pos inc 1 inc hs_place_edit lda #4 cmpa hs_place_edit bne hs_no_new_xpos lda #3 sta hs_place_edit bra hs_no_new_xpos hs_no_new_xpos: ; todo check y LDB last_joy_y ; only jump if last joy pos was zero (needed for testing later) LDA Vec_Joy_1_Y ; load joystick 1 position X to A STA last_joy_y ; store this joystick position BEQ hs_no_new_ypos BMI pos_down_hse ; joystick moved to left pos_up_hse: TSTB ; test the old joystick position BNE positioning_done_hse ; was center lda hs_place_got nega adda #5 ldb #6 mul leay d,y lda hs_place_edit nega adda #3 leay a,y ; in y now the to be changed letter lda ,y inca cmpa # 'Z' bls no_overflow_plus_hs lda # 'A' no_overflow_plus_hs sta ,y bra hs_no_new_ypos pos_down_hse: TSTB ; test the old joystick position BNE positioning_done_hse ; was center lda hs_place_got nega adda #5 ldb #6 mul leay d,y lda hs_place_edit nega adda #3 leay a,y ; in y now the to be changed letter lda ,y deca cmpa # 'A' bhs no_overflow_minus_hs lda # 'Z' no_overflow_minus_hs sta ,y bra hs_no_new_ypos ; letter inc 1 positioning_done_hse hs_no_new_ypos jsr getButtonState ; is a button pressed? lbeq edit_highscore_inner check_buttons_edit cmpb #3 ; same aslast state lbeq edit_highscore_inner cmpb #2 ; as released - possibly from highscore return lbeq edit_highscore_inner ldb #3 stb last_button_state stb current_button_state ; restore player hs ldu #player_score ldx #star_0_score ldd ,x++ std ,u++ ldd ,x++ std ,u++ ldd ,x++ std ,u++ rts ; bra title_main1
46.527607
134
0.374473
a555468f4583745af245b991db987a0863aec3d9
327
asm
Assembly
programs/oeis/099/A099857.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/099/A099857.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/099/A099857.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A099857: Expansion of (1+3x+x^2)/(1-3x+x^2). ; 1,6,18,48,126,330,864,2262,5922,15504,40590,106266,278208,728358,1906866,4992240,13069854,34217322,89582112,234529014,614004930,1607485776,4208452398,11017871418,28845161856,75517614150,197707680594 mov $1,1 trn $1,$0 lpb $0,1 sub $0,1 add $2,$1 add $1,$2 add $1,6 lpe
27.25
200
0.727829
195a18ac9073b80a89de1f875586d33d9fda49c4
764
asm
Assembly
programs/oeis/267/A267210.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/267/A267210.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/267/A267210.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A267210: Decimal representation of the middle column of the "Rule 109" elementary cellular automaton starting with a single ON (black) cell. ; 1,3,7,14,29,59,118,237,475,950,1901,3803,7606,15213,30427,60854,121709,243419,486838,973677,1947355,3894710,7789421,15578843,31157686,62315373,124630747,249261494,498522989,997045979,1994091958,3988183917,7976367835,15952735670,31905471341,63810942683,127621885366,255243770733,510487541467,1020975082934,2041950165869,4083900331739,8167800663478,16335601326957,32671202653915,65342405307830,130684810615661,261369621231323,522739242462646,1045478484925293,2090956969850587,4181913939701174,8363827879402349 add $0,3 mov $1,1 mov $2,6 lpb $0,1 sub $0,1 add $1,$2 mul $1,2 lpe div $1,8 add $1,7 div $1,7 sub $1,1
47.75
509
0.820681
23ca102b9bd9fab031cf3a10936e2ec95a7112df
6,201
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1516.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1516.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1516.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x13c12, %r10 nop nop nop nop cmp $7281, %rdx mov $0x6162636465666768, %r13 movq %r13, %xmm2 movups %xmm2, (%r10) nop nop nop cmp %rbx, %rbx lea addresses_WC_ht+0x265a, %rsi lea addresses_WT_ht+0x1ebdb, %rdi nop nop nop add $15835, %r9 mov $10, %rcx rep movsw nop nop nop nop sub $27391, %rdi lea addresses_D_ht+0x14012, %r10 nop nop nop xor %rdx, %rdx movl $0x61626364, (%r10) nop nop nop nop nop dec %rdx lea addresses_WC_ht+0xc12, %rsi inc %rbx movb $0x61, (%rsi) nop nop nop sub %r13, %r13 lea addresses_WC_ht+0x56f2, %r10 nop nop nop sub $5899, %r13 movl $0x61626364, (%r10) nop nop and $52997, %rdi lea addresses_UC_ht+0x4eca, %rsi nop nop nop xor $42275, %rdi vmovups (%rsi), %ymm1 vextracti128 $1, %ymm1, %xmm1 vpextrq $0, %xmm1, %rcx nop nop xor %r13, %r13 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r9 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %rbp push %rbx push %rcx push %rdi push %rdx // Store lea addresses_US+0x1ccd2, %r11 nop nop nop nop add %rbp, %rbp mov $0x5152535455565758, %r12 movq %r12, %xmm6 movups %xmm6, (%r11) nop nop nop inc %r11 // Store lea addresses_US+0x11292, %rdx nop nop add $29787, %rdi movb $0x51, (%rdx) nop nop nop cmp $23023, %rbx // Store lea addresses_WT+0x4a3a, %rbp add %rcx, %rcx movl $0x51525354, (%rbp) nop nop nop dec %rdi // Faulty Load lea addresses_RW+0x12e92, %rbp nop nop nop nop nop sub %rcx, %rcx movups (%rbp), %xmm6 vpextrq $0, %xmm6, %rdi lea oracles, %rbx and $0xff, %rdi shlq $12, %rdi mov (%rbx,%rdi,1), %rdi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': True, 'size': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_US', 'AVXalign': False, 'size': 16}} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 10, 'type': 'addresses_US', 'AVXalign': False, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 0, 'type': 'addresses_WT', 'AVXalign': False, 'size': 4}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16}} {'src': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_WT_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 4}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1}} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 2, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 4}} {'src': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'32': 21829} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
35.843931
2,999
0.65683
31ca8d152a199b5d1590d31196345201fd818ff0
644
asm
Assembly
oeis/315/A315335.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/315/A315335.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/315/A315335.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A315335: Coordination sequence Gal.6.624.2 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. ; Submitted by Jon Maiga ; 1,6,10,16,22,27,33,39,44,50,56,60,66,72,76,82,88,93,99,105,110,116,122,126,132,138,142,148,154,159,165,171,176,182,188,192,198,204,208,214,220,225,231,237,242,248,254,258,264,270 mov $1,$0 seq $1,310373 ; Coordination sequence Gal.6.150.5 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings. mov $2,$0 mul $0,7 sub $0,1 mod $0,$1 mul $2,3 add $0,$2 add $0,1
46
182
0.731366
c9678f77638d8c0433c741f733a89c58d79e1a4b
701
asm
Assembly
masm/8_offset.asm
oceanwavechina/assembly
803e4a4c03645fbbc026092b3329ea472e070cab
[ "Apache-2.0" ]
null
null
null
masm/8_offset.asm
oceanwavechina/assembly
803e4a4c03645fbbc026092b3329ea472e070cab
[ "Apache-2.0" ]
null
null
null
masm/8_offset.asm
oceanwavechina/assembly
803e4a4c03645fbbc026092b3329ea472e070cab
[ "Apache-2.0" ]
null
null
null
; 这段代码是演示如何使用常量偏移地址进行内存数据访问 ; 这个使用的场景是两个数组长度相等时比较有用 assume cs:code,ds:data ; 定义数据段,开辟空间 data segment db 'BaSiC' ; 相当于 db 75h,6eh,49h,58h, 要把这个转为大写 db 'iNfoR' ; 把这个转为小写 data ends code segment start: mov ax, data ; mov dx, ax ; 以上两句是设置数据段基地址 mov bx, 0 ; 数据指针重置, 到此,数据区的指针就设置完了 mov cx, 5 ; 循环5次 s: mov al, 0[bx] ; 这个等同于 [bx+0] add al, 11011111B ; 从低到高有效位,第5位为0时是大写 mov [bx], al ; 转化好了就返回数据段中,覆盖掉内存中原来的值 mov al, 5[bx] ; 处理第二个数组 or al, 00100000B mov 5[bx], al inc bx ; 移动到数组中下一个位置 loop s mov ax, 4c00h int 21h code ends end start
18.945946
58
0.544936
fefc6e8d0188479d876c25d62accabd8c51aa4d0
530
asm
Assembly
Chapter_4/Program 4.2/x86:64/Program_4.2_NASM.asm
chen150182055/Assembly
e5e76bea438a3752b59775098205a77aa7087110
[ "MIT" ]
272
2016-12-28T02:24:21.000Z
2022-03-30T21:05:37.000Z
Chapter_4/Program 4.2/x86:64/Program_4.2_NASM.asm
chen150182055/Assembly
e5e76bea438a3752b59775098205a77aa7087110
[ "MIT" ]
1
2018-04-17T19:47:52.000Z
2018-04-17T19:47:52.000Z
Chapter_4/Program 4.2/x86:64/Program_4.2_NASM.asm
chen150182055/Assembly
e5e76bea438a3752b59775098205a77aa7087110
[ "MIT" ]
62
2017-02-02T14:39:37.000Z
2022-01-04T09:02:07.000Z
; Program 4.2 ; Multiplication and Division - NASM (64-bit) ; Copyright (c) 2019 Hall & Slonka SECTION .data mval: DD 664751 dval: DD 8 SECTION .text global _main _main: ; MUL 1-op mov eax, [rel mval] mov ebx, 8 mul ebx ; IMUL 1-op mov eax, [rel mval] mov ebx, 8 imul ebx ; IMUL 2-op mov eax, 8 imul eax, [rel mval] ; IMUL 3-op imul eax, [rel mval], 8 ; DIV 1-op mov edx, 0 mov eax, 5318008 mov ecx, [rel dval] div ecx ; IDIV 1-op mov edx, 0 mov eax, 5318008 mov ecx, [rel dval] idiv ecx mov rax, 60 xor rdi, rdi syscall
11.777778
45
0.671698
2174386a730fbce55a3e5d39edb844664e7c8567
402
asm
Assembly
programs/oeis/058/A058373.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/058/A058373.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/058/A058373.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A058373: a(n) = (1/6)*(2*n - 3)*(n + 2)*(n + 1). ; 0,0,-1,-1,2,10,25,49,84,132,195,275,374,494,637,805,1000,1224,1479,1767,2090,2450,2849,3289,3772,4300,4875,5499,6174,6902,7685,8525,9424,10384,11407,12495,13650,14874,16169,17537,18980,20500,22099 mov $2,$0 mov $3,$0 mov $5,6 lpb $0,1 mov $0,1 mov $1,$3 bin $1,2 sub $2,2 add $2,$3 mov $4,1 sub $4,$5 lpe add $4,$2 mul $1,$4 div $1,3
21.157895
198
0.604478
4b298338eed2aa0e956684bc7c3253d621c17021
435
asm
Assembly
oeis/103/A103410.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/103/A103410.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/103/A103410.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A103410: Number of products of distinct elements in generation n, starting with two elements. ; Submitted by Jon Maiga ; 2,1,2,7,56,2212,2595782,3374959180831,5695183504489239067484387,16217557574922386301420531277071365103168734284282,131504586847961235687181874578063117114329409897598970946516793776220805297959867258692249572750581 mov $1,1 lpb $0 sub $0,1 add $2,1 mov $1,$2 bin $1,2 add $2,$1 lpe mov $0,$1 add $0,1
29
216
0.797701
140cde4a8f3805ffb4abd5565f1fe8a9553a026a
587
asm
Assembly
programs/oeis/282/A282462.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/282/A282462.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/282/A282462.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A282462: Integers but with the primes cubed. ; 0,1,8,27,4,125,6,343,8,9,10,1331,12,2197,14,15,16,4913,18,6859,20,21,22,12167,24,25,26,27,28,24389,30,29791,32,33,34,35,36,50653,38,39,40,68921,42,79507,44,45,46,103823,48,49,50,51,52,148877,54,55,56,57,58,205379,60,226981,62,63,64,65,66,300763,68,69,70,357911,72,389017,74,75,76,77,78,493039,80,81,82,571787,84,85,86,87,88,704969,90,91,92,93,94,95,96,912673,98,99 mov $1,$0 trn $1,1 seq $1,10051 ; Characteristic function of primes: 1 if n is prime, else 0. mov $2,$0 mov $3,$0 sub $3,1 mul $3,$0 add $0,1 mul $0,$3 mul $0,$1 add $0,$2
39.133333
366
0.691652
73d7e5b10e85641dcda839ee28088d6ef33f275c
256
asm
Assembly
libsrc/_DEVELOPMENT/sound/ay/c/sccz80/ay_wyz_start.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/sound/ay/c/sccz80/ay_wyz_start.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/sound/ay/c/sccz80/ay_wyz_start.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_sound_ay PUBLIC ay_wyz_start EXTERN asm_wyz_start ay_wyz_start: push ix push iy ld a,l call asm_wyz_start pop iy pop ix ret ; SDCC bridge for Classic IF __CLASSIC PUBLIC _ay_wyz_start defc _ay_wyz_start = ay_wyz_start ENDIF
10.666667
33
0.777344
a3a28b2e05fa24b74412cca6a9d26e1f8061e89b
2,184
asm
Assembly
test.asm
Stalis/zlvm
d6713c085ff9330464677f8c15bc140f2b0f5b49
[ "BSD-2-Clause" ]
null
null
null
test.asm
Stalis/zlvm
d6713c085ff9330464677f8c15bc140f2b0f5b49
[ "BSD-2-Clause" ]
1
2019-06-06T13:50:31.000Z
2019-06-06T13:50:31.000Z
test.asm
Stalis/zlvm
d6713c085ff9330464677f8c15bc140f2b0f5b49
[ "BSD-2-Clause" ]
null
null
null
.global start .global add_until_carry .global print_string .global print_line .global halt .extern factorial, 0xFF .section text start: NOP ; 0x08 Pushi 0x1024 ; 0x10 dup ; 0x18 popr $t2 ; 0x20 storew $t2, $t0, 5192 ; 0x28 movr $a0, $t2 ; 0x30 jmpal #add_until_carry ; 0x38 movi $a0, #hello ; 0x40 jmpal #print_line ; 0x48 movi $a0, #bye ; 0x50 jmpal #print_line ; 0x58 jmp #halt ; 0x60 ;------- Functions --------; ; doubles $a0 value until carry ; @returns $v0 result after carrying .proc add_until_carry movr $v0, $a0 ; 0x68 loop: addr $v0, $a0 ; 0x70 jmp cc #add_until_carry.loop ; 0x78 ret ;0x80 .endproc ; prints null-terminated string with default 0x10 cpu interrupt ; @param $a0 address of _first char of string .proc print_string movr $t0, $a0 ; 0x88 xorr $a0, $a0 ; 0x90 loop: loadb $a0, $t0 ; 0x98 cmpi $a0, 0 ; 0xA0 jmp zs #print_string.end ;0xA8 int 0x02 ; 0xB0 inc $t0 ; 0xB8 jmp #print_string.loop ;0xC0 end: ret ; 0xC8 .endproc ; prints null-terminated string with print_string and print line break after ; @param $a0 address of _first char of string .proc print_line pushr $lp ; 0xD0 jmpal #print_string ;0xD8 popr $lp ; 0xE0 pushr $a0 ; 0xE8 movi $a0, '\n' ; 0xF0 int 0x02 ; 0xF8 popr $a0 ; 0x100 ret ; 0x108 LOADH???? .endproc ; halts processor .proc halt movi $v0, 0xFF int 0xFF .endproc .section data hello: .asciiz "Hello, World!", '\n' bye: .ascii "Bye!", '\n', 0 ; same as `.asciiz "Bye!", '\n'` bytes: .byte 0, 2, 0xF, 0o77, 0b1111_0101 hwords: .hword 100, 0xFFF, 0b1111_1111_1111_1010 words: .word 10, 0Xf1Abc, 0b11 dwords: .dword 0xfAFFfF_101, 0b111_1_111111_1, 4096 buffer: .space 100
24.539326
78
0.52381
8c7e3ce9b02cc8ba0ab0fe04701709c7bca17cb7
698
asm
Assembly
programs/oeis/085/A085405.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/085/A085405.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/085/A085405.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A085405: Common residues of binomial(3n+2,n+1)/(3n+2) modulo 2. ; 1,0,1,0,1,0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,0,0,0,0,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,1,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 mul $0,2 add $0,1 cal $0,324964 ; a(n) = A000139(n) mod 2; Characteristic function of odd fibbinary numbers (A022341). mov $1,$0
87.25
501
0.551576
29999ab7c93adb2f43a141e995d7bca955fdbd07
727
asm
Assembly
examples/boot_04_count.asm
Obijuan/simplez-grammar
456eb971804dfde45c027840e21d97ddf087bdc3
[ "MIT" ]
3
2016-02-08T09:01:06.000Z
2019-02-24T22:12:17.000Z
examples/boot_04_count.asm
Obijuan/simplez-grammar
456eb971804dfde45c027840e21d97ddf087bdc3
[ "MIT" ]
null
null
null
examples/boot_04_count.asm
Obijuan/simplez-grammar
456eb971804dfde45c027840e21d97ddf087bdc3
[ "MIT" ]
1
2020-09-12T07:37:01.000Z
2020-09-12T07:37:01.000Z
;------------------------------------------------------------------------------------------- ;-- Programa de ejemplo para Bootloader. ;-- Contador de 4 bits por los leds ;-- ;-- Este programa se carga mediante el bootloader ;-------------------------------------------------------------------------------------------- ;-- Acceso a los perifericos leds EQU 507 ;-- Comienzo del programa: ;-- Direccion h'40: para cargarlo con el bootloader org h'40 ld /val1 ; Inicializar acumulador st /leds ; Mostrarlo por los leds bucle WAIT add /uno ; Incrementar en uno st /leds ; Sacarlo por los leds BR /bucle ; Repetir ;--- Datos val1 DATA h'1 uno DATA h'1 end
26.925926
93
0.463549
2e5fe55ea0b062c458e050d55f843640c2a277d3
482
asm
Assembly
programs/oeis/188/A188385.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/188/A188385.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/188/A188385.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A188385: Highest exponent in the prime factorization of n^n ; 0,2,3,8,5,6,7,24,18,10,11,24,13,14,15,64,17,36,19,40,21,22,23,72,50,26,81,56,29,30,31,160,33,34,35,72,37,38,39,120,41,42,43,88,90,46,47,192,98,100,51,104,53,162,55,168,57,58,59,120,61,62,126,384,65,66,67,136,69,70,71,216,73,74,150,152,77,78,79,320,324,82,83,168,85,86,87,264,89,180,91,184,93,94,95,480,97,196,198,200 mov $1,1 add $1,$0 seq $0,51903 ; Maximal exponent in prime factorization of n. mul $1,$0 mov $0,$1
53.555556
318
0.690871
3ceb2db1323d431dd5fe296cba804da185f496ef
3,395
asm
Assembly
Float/float1.asm
miguel2192/CSC211-Assembly
39cd43026f07e443d9809fb7ec229303522ecab9
[ "MIT" ]
null
null
null
Float/float1.asm
miguel2192/CSC211-Assembly
39cd43026f07e443d9809fb7ec229303522ecab9
[ "MIT" ]
null
null
null
Float/float1.asm
miguel2192/CSC211-Assembly
39cd43026f07e443d9809fb7ec229303522ecab9
[ "MIT" ]
null
null
null
########### float1.asm ########################## # Miguel Rodriguez # # float1.asm # # Description # # A program using float. # # return to operating system # ################################################# ## float1.asm -- compute ax^2 + bx + c for user-input x ## ## SPIM settings: pseudoinstructions: ON, branch delays: OFF, ## load delays: OFF .text .globl __start # Register Use Chart # $f0 -- x #register f0 is use for inputting # $f2 -- sum of terms __start: # read input la $a0,prompt # prompt user for x li $v0,4 # print string syscall li $v0,6 # read single syscall # $f0 <-- x # evaluate the quadratic l.s $f2,a # sum = a mul.s $f2,$f2,$f0 # sum = ax l.s $f4,bb # get b add.s $f2,$f2,$f4 # sum = ax + b mul.s $f2,$f2,$f0 # sum = (ax+b)x = ax^2 +bx l.s $f4,c # get c add.s $f2,$f2,$f4 # sum = ax^2 + bx + c # print the result mov.s $f12,$f2 # $f12 = argument li $v0,2 # print single syscall la $a0,newl # new line li $v0,4 # print string syscall #li $v0,10 # code 10 == exit #syscall # Return to OS. ############################################################################### # WHILE LOOP # CREATES REPETITION ############################################################################### # Ask the user if that user wishes to repeat this program: 1-yes, 0-no la $a0,p4 li $v0,4 syscall # Enter an integer (1 or 0) la $v0,5 # Load address of the message area syscall # Compare input to 1 beqz $v0,eop # if it is 1 repeat j __start eop: li $v0,10 # End Of Program syscall # Call to system ################################################################################# ## ## Data Segment ## .data a: .float 1.0 bb: .float 1.0 c: .float 1.0 prompt: .asciiz "Enter x: " blank: .asciiz " " newl: .asciiz "\n" p4: .asciiz "\nWould you like to repeat the program: (1-yes, 0-no)" ############## Output ########################################################### # Enter x: -5 # 21.00000000 # # Would you like to repeat the program: (1-yes, 0-no)1 # Enter x: -1 # 1.00000000 # # Would you like to repeat the program: (1-yes, 0-no)1 # Enter x: 0.5 # 1.75000000 # Would you like to repeat the program: (1-yes, 0-no)1 # Enter x: 0 # 1.00000000 # # Would you like to repeat the program: (1-yes, 0-no).1 # Enter x: 0.125 # 1.14062500 # # Would you like to repeat the program: (1-yes, 0-no)0 # # # ##################################################################################
28.771186
87
0.36377
8c1950567b12167e717d2f49149107e4d2f61930
56
asm
Assembly
src/main/fragment/mos6502-common/vwum1_lt_vbuyy_then_la1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/vwum1_lt_vbuyy_then_la1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/vwum1_lt_vbuyy_then_la1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
lda {m1}+1 bne !+ sty $ff lda {m1} cmp $ff bcc {la1} !:
7
10
0.535714
b14fa38aa3773e8359fa5deb62843f3b37fe885e
402
asm
Assembly
oeis/347/A347319.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/347/A347319.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/347/A347319.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A347319: a(n) = (2*n+1)*(n^3-2*n^2+n+1). ; Submitted by Jamie Morken(s1) ; 1,3,15,91,333,891,1963,3795,6681,10963,17031,25323,36325,50571,68643,91171,118833,152355,192511,240123,296061,361243,436635,523251,622153,734451,861303,1003915,1163541,1341483,1539091,1757763,1998945,2264131,2554863,2872731,3219373,3596475,4005771 mov $1,$0 mul $0,2 sub $0,3 mul $0,$1 mul $0,$1 add $0,3 mul $0,$1 add $0,1
30.923077
249
0.726368
0122ed708025680ca72b7c6e14671c6fd3364046
3,391
asm
Assembly
constants/landmark_constants.asm
AtmaBuster/pokecrystal16-493-plus
0c8cd4d187c246fe1debc07f89e278fd702595d7
[ "blessing" ]
1
2021-01-19T04:15:45.000Z
2021-01-19T04:15:45.000Z
constants/landmark_constants.asm
AtmaBuster/pokecrystal16-493-plus
0c8cd4d187c246fe1debc07f89e278fd702595d7
[ "blessing" ]
null
null
null
constants/landmark_constants.asm
AtmaBuster/pokecrystal16-493-plus
0c8cd4d187c246fe1debc07f89e278fd702595d7
[ "blessing" ]
1
2021-01-16T00:12:08.000Z
2021-01-16T00:12:08.000Z
; Landmarks indexes (see data/maps/landmarks.asm) const_def const SPECIAL_MAP const TWINLEAF_TOWN const ROUTE_201 const LAKE_VERITY const SANDGEM_TOWN const ROUTE_202 const JUBILIFE_CITY const ROUTE_203 const OREBURGH_GATE const OREBURGH_CITY ; old definitions const_def ; Johto landmarks const _SPECIAL_MAP ; 00 ; old const NEW_BARK_TOWN ; 01 const ROUTE_29 ; 02 const CHERRYGROVE_CITY ; 03 const ROUTE_30 ; 04 const ROUTE_31 ; 05 const VIOLET_CITY ; 06 const SPROUT_TOWER ; 07 const ROUTE_32 ; 08 const RUINS_OF_ALPH ; 09 const UNION_CAVE ; 0a const ROUTE_33 ; 0b const AZALEA_TOWN ; 0c const SLOWPOKE_WELL ; 0d const ILEX_FOREST ; 0e const ROUTE_34 ; 0f const GOLDENROD_CITY ; 10 const RADIO_TOWER ; 11 const ROUTE_35 ; 12 const NATIONAL_PARK ; 13 const ROUTE_36 ; 14 const ROUTE_37 ; 15 const ECRUTEAK_CITY ; 16 const TIN_TOWER ; 17 const BURNED_TOWER ; 18 const ROUTE_38 ; 19 const ROUTE_39 ; 1a const OLIVINE_CITY ; 1b const LIGHTHOUSE ; 1c const BATTLE_TOWER ; 1d const ROUTE_40 ; 1e const WHIRL_ISLANDS ; 1f const ROUTE_41 ; 20 const CIANWOOD_CITY ; 21 const ROUTE_42 ; 22 const MT_MORTAR ; 23 const MAHOGANY_TOWN ; 24 const ROUTE_43 ; 25 const LAKE_OF_RAGE ; 26 const ROUTE_44 ; 27 const ICE_PATH ; 28 const BLACKTHORN_CITY ; 29 const DRAGONS_DEN ; 2a const ROUTE_45 ; 2b const DARK_CAVE ; 2c const ROUTE_46 ; 2d const SILVER_CAVE ; 2e KANTO_LANDMARK EQU const_value const PALLET_TOWN ; 2f const ROUTE_1 ; 30 const VIRIDIAN_CITY ; 31 const ROUTE_2 ; 32 const PEWTER_CITY ; 33 const ROUTE_3 ; 34 const MT_MOON ; 35 const ROUTE_4 ; 36 const CERULEAN_CITY ; 37 const ROUTE_24 ; 38 const ROUTE_25 ; 39 const ROUTE_5 ; 3a const UNDERGROUND_PATH ; 3b const ROUTE_6 ; 3c const VERMILION_CITY ; 3d const DIGLETTS_CAVE ; 3e const ROUTE_7 ; 3f const ROUTE_8 ; 40 const ROUTE_9 ; 41 const ROCK_TUNNEL ; 42 const ROUTE_10 ; 43 const POWER_PLANT ; 44 const LAVENDER_TOWN ; 45 const LAV_RADIO_TOWER ; 46 const CELADON_CITY ; 47 const SAFFRON_CITY ; 48 const ROUTE_11 ; 49 const ROUTE_12 ; 4a const ROUTE_13 ; 4b const ROUTE_14 ; 4c const ROUTE_15 ; 4d const ROUTE_16 ; 4e const ROUTE_17 ; 4f const ROUTE_18 ; 50 const FUCHSIA_CITY ; 51 const ROUTE_19 ; 52 const ROUTE_20 ; 53 const SEAFOAM_ISLANDS ; 54 const CINNABAR_ISLAND ; 55 const ROUTE_21 ; 56 const ROUTE_22 ; 57 const VICTORY_ROAD ; 58 const ROUTE_23 ; 59 const INDIGO_PLATEAU ; 5a const ROUTE_26 ; 5b const ROUTE_27 ; 5c const TOHJO_FALLS ; 5d const ROUTE_28 ; 5e const FAST_SHIP ; 5f ; used in CaughtData GIFT_LOCATION EQU $7e EVENT_LOCATION EQU $7f ; Regions const_def const JOHTO_REGION ; 0 const KANTO_REGION ; 1 NUM_REGIONS EQU const_value
26.084615
49
0.602182
cd3f3b237c9676bef944c25c471c042b0cb982f3
1,305
asm
Assembly
oeis/239/A239059.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/239/A239059.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/239/A239059.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A239059: Sum of the two smallest parts from the partitions of 4n into 4 parts with smallest part = 1. ; 2,9,27,61,108,178,276,395,549,743,966,1236,1558,1917,2335,2817,3344,3942,4616,5343,6153,7051,8010,9064,10218,11441,12771,14213,15732,17370,19132,20979,22957,25071,27278,29628,32126,34725,37479,40393,43416,46606,49968,53447,57105,60947,64914,69072,73426,77913,82603,87501,92540,97794,103268,108891,114741,120823,127062,133540,140262,147149,154287,161681,169248,177078,185176,193455,202009,210843,219866,229176,238778,248577,258675,269077,279684,290602,301836,313283,325053,337151,349470,362124,375118 mov $3,$0 add $3,1 mov $5,$0 lpb $3 mov $0,$5 sub $3,1 sub $0,$3 mov $11,$0 mov $12,0 mov $13,$0 add $13,1 lpb $13 mov $0,$11 sub $13,1 sub $0,$13 mov $7,$0 mov $9,2 lpb $9 mov $0,$7 sub $9,1 add $0,$9 sub $0,1 mul $0,24 mov $2,9 mov $6,7 lpb $0 div $0,$2 mov $2,1 lpe div $6,$6 add $6,$0 mul $0,2 bin $6,2 add $0,$6 div $0,2 mov $4,$0 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 add $4,2 add $12,$4 lpe add $1,$12 lpe mov $0,$1
22.894737
501
0.578544
591f52a6ea1e6bf0003baa71af9e623b5ac00670
1,062
asm
Assembly
programs/oeis/001/A001297.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/001/A001297.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/001/A001297.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A001297: Stirling numbers of the second kind S(n+3, n). ; 0,1,15,90,350,1050,2646,5880,11880,22275,39325,66066,106470,165620,249900,367200,527136,741285,1023435,1389850,1859550,2454606,3200450,4126200,5265000,6654375,8336601,10359090,12774790,15642600,19027800,23002496,27646080,33045705,39296775,46503450,54779166,64247170,75041070,87305400,101196200,116881611,134542485,154373010,176581350,201390300,229037956,259778400,293882400,331638125,373351875,419348826,469973790,525591990,586589850,653375800,726381096,806060655,892893905,987385650,1090066950,1201496016,1322259120,1452971520,1594278400,1746855825,1911411711,2088686810,2279455710,2484527850,2704748550,2941000056,3194202600,3465315475,3755338125,4065311250,4396317926,4749484740,5125982940,5527029600,5953888800,6407872821,6890343355,7402712730,7946445150,8523057950,9134122866,9781267320,10466175720,11190590775,11956314825,12765211186,13619205510,14520287160,15470510600,16471996800,17526934656,18637582425,19806269175,21035396250 sub $2,$0 add $0,2 bin $0,2 bin $0,2 bin $2,2 mul $0,$2 div $0,3
96.545455
937
0.858757
93bb36fb27d9a775232730b32c986d8468ad94f3
60
asm
Assembly
gfx/pokemon/togepi/anim_idle.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
gfx/pokemon/togepi/anim_idle.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
gfx/pokemon/togepi/anim_idle.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
setrepeat 2 frame 0, 06 frame 2, 06 dorepeat 1 endanim
10
12
0.7
759f3dd095b40396a374d1c75a95153c16093663
353
asm
Assembly
programs/oeis/319/A319572.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/319/A319572.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/319/A319572.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A319572: The x coordinates of the stripe enumeration of N X N where N = {0, 1, 2, ...}. ; 0,0,1,2,1,0,0,1,2,3,4,3,2,1,0,0,1,2,3,4,5,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,7,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,9,10,9,8,7,6,5,4,3,2,1,0,0,1,2,3,4,5,6,7,8,9,10,11,12,11,10,9,8,7,6 mul $0,2 mov $1,1 lpb $0 sub $0,$1 gcd $0,$2 sub $0,1 add $1,8 lpe div $0,2
27.153846
177
0.541076
2842989fe0d26b25f52c550c5da0773fd399f2e8
333
asm
Assembly
programs/oeis/282/A282822.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/282/A282822.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/282/A282822.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A282822: a(n) = (n - 4)*n! for n>=0. ; -4,-3,-4,-6,0,120,1440,15120,161280,1814400,21772800,279417600,3832012800,56043187200,871782912000,14384418048000,251073478656000,4623936565248000,89633231880192000,1824676506132480000,38926432130826240000,868546016919060480000 mov $2,$0 sub $2,4 lpb $0 mul $2,$0 sub $0,1 lpe mov $0,$2
30.272727
229
0.753754
f0d692267a4134c4e9de6c816de65d6c62f9d6f0
21,193
asm
Assembly
group38.asm
tsm55555/RapidRoll
599f5c1e7844065071b3ef3262ff148d019d03a8
[ "MIT" ]
null
null
null
group38.asm
tsm55555/RapidRoll
599f5c1e7844065071b3ef3262ff148d019d03a8
[ "MIT" ]
null
null
null
group38.asm
tsm55555/RapidRoll
599f5c1e7844065071b3ef3262ff148d019d03a8
[ "MIT" ]
null
null
null
Include Irvine32.inc main EQU start@0 cubeSize = 1 lineSize = 10 borderX = 119 borderY = 30 .data ;==============================================================================; ; For Menu /Start ; ;==============================================================================; titleMSG BYTE "Rapid Roll", 0 gameMSG0 BYTE "***** * ****** ***** ***** ***** ***** * * ", 0 gameMSG1 BYTE "* * * * * * * * * * * * * * * ", 0 gameMSG2 BYTE "***** ****** ***** * * * ***** * * * * ", 0 gameMSG3 BYTE "* * * * * * * * * * * * * * ", 0 gameMSG4 BYTE "* * * * * ***** ***** * * ***** ***** *****", 0 gameMSGPosition COORD <20, 5> instructionMSG BYTE "Press A & D to move", 0 instructionMSGPosition COORD <20, 15> startMSG BYTE "Press any key to start", 0 startMSGPosition COORD <20, 20> startMSGAttribute WORD LENGTHOF startMSG DUP(1001b) exitMSG BYTE "Press ESC to exit", 0 exitMSGPosition COORD <20, 22> exitMSGAttribute WORD LENGTHOF exitMSG DUP(1100b) ;"GAME OVER" gameOverMSG0 BYTE " **** * * * ****** ***** * * ****** ***** ", 0 gameOverMSG1 BYTE " * * * ** ** * * * * * * * * ", 0 gameOverMSG2 BYTE "* **** ***** * * * * ****** * * * * ****** ***** ", 0 gameOverMSG3 BYTE " * ** * * * * * * * * * * * * * * ", 0 gameOverMSG4 BYTE " **** * * * * * * ****** ***** * ****** * *", 0 gameOverMSGPosition COORD <20, 5> gameOverMSGAttribute WORD LENGTHOF gameOverMSG0 DUP(0100b) returnMSG BYTE "Press any key to go back to the menu", 0 returnMSGPosition COORD <20, 20> returnMSGAttribute WORD LENGTHOF returnMSG DUP(1001b) scoreMSG BYTE "Score: ", 0 scoreMSGPosition COORD <20, 15> scorePosition COORD <27 ,15> outputHandle DWORD 0 bytesWritten DWORD 0 ;==============================================================================; ; For Menu /End ; ;==============================================================================; ;==============================================================================; ; For Game Loop / Start ; ;==============================================================================; ; Cube cubeCurrentPosition COORD <50, 5> cubePreviousPosition COORD <?, 5> cubeBody BYTE ' ' ; Line line1 COORD <50, 15> line1Previous COORD <> line2 COORD <40,10> line2Previous COORD <> line3 COORD <60,20> line3Previous COORD <> line4 COORD <70,30> line4Previous COORD <> line5 COORD <75,40> line5Previous COORD <> lineBody BYTE lineSize DUP('_') removeLineBody BYTE lineSize DUP(' ') lineLength DWORD lineSize ;Random Number randomNum DWORD ? ; Score score DWORD 0 startTime DWORD ? ; Game Tik TICK DWORD 0 ; Border border COORD <100, 30> isOut DWORD 0 ; Ground isOnTheGround DWORD 0 whichLine DWORD ? ;Draw cellsWritten BYTE ? ;==============================================================================; ; For Game Loop /End ; ;==============================================================================; .code ;======================================================; ; Initialize the variables ; ;======================================================; initialize PROC USES eax mov ax, 50 mov cubeCurrentPosition.X, ax mov line1.X, ax mov ax, 5 mov cubeCurrentPosition.Y, ax mov cubePreviousPosition.Y, ax mov ax, 15 mov line1.Y, ax mov ax, 40 mov line2.X, ax mov ax, 10 mov line2.Y, ax mov ax, 60 mov line3.X, ax mov ax, 20 mov line3.Y, ax mov ax, 70 mov line4.X, ax mov ax, 30 mov line4.Y, ax mov ax, 75 mov line5.X, ax mov ax, 40 mov line5.Y, ax xor eax, eax mov score, eax mov isOut, eax mov TICK, eax mov isOnTheGround, eax ret initialize ENDP ;===================================================; ; Move Cube ; ;===================================================; ; Left cubeMoveLeft PROC USES ax bx .IF cubeCurrentPosition.X > 1 mov ax, cubeCurrentPosition.X mov bx, cubeCurrentPosition.Y mov cubePreviousPosition.X, ax mov cubePreviousPosition.Y, bx sub cubeCurrentPosition.X, 1 .ENDIF ret cubeMoveLeft ENDP ; Right cubeMoveRight PROC USES ax bx .IF cubeCurrentPosition.X < borderX mov ax, cubeCurrentPosition.X mov bx, cubeCurrentPosition.Y mov cubePreviousPosition.X, ax mov cubePreviousPosition.Y, bx add cubeCurrentPosition.X, 1 .ENDIF ret cubeMoveRight ENDP ; Up or Down cubeMoveUp PROC USES ax bx mov ax, cubeCurrentPosition.X mov bx, cubeCurrentPosition.Y mov cubePreviousPosition.X, ax mov cubePreviousPosition.Y, bx .IF isOnTheGround == 1 .IF whichLine == 1 mov ax, line1.Y mov cubeCurrentPosition.Y, ax .ELSEIF whichLine == 2 mov ax, line2.Y mov cubeCurrentPosition.Y, ax .ELSEIF whichLine == 3 mov ax, line3.Y mov cubeCurrentPosition.Y, ax .ELSEIF whichLine == 4 mov ax, line4.Y mov cubeCurrentPosition.Y, ax .ELSEIF whichLine == 5 mov ax, line5.Y mov cubeCurrentPosition.Y, ax .ENDIF .ELSE sub cubeCurrentPosition.Y, 1 .ENDIF ret cubeMoveUp ENDP cubeMoveDown PROC USES ax bx mov ax, cubeCurrentPosition.X mov bx, cubeCurrentPosition.Y mov cubePreviousPosition.X, ax mov cubePreviousPosition.Y, bx add cubeCurrentPosition.Y, 1 ret cubeMoveDown ENDP ;===================================================; ; Get Random Number ; ;===================================================; getRandomNumber PROC USES eax ebx call Randomize mov eax, 1000000 call RandomRange mov randomNum, eax ret getRandomNumber ENDP ;===================================================; ; Move Line ; ;===================================================; lineMoveUp PROC USES eax ebx ecx edx ; move line 1 mov ax, line1.X mov bx, line1.Y mov line1Previous.X, ax mov line1Previous.Y, bx .IF line1.Y > 0 dec line1.Y .ELSE invoke getRandomNumber xor edx, edx mov eax, randomNum mov ax, ax mov bx, 60 div bx shl dx, 1 mov line1.X, dx mov line1.Y, 30 .ENDIF ; move line 2 mov ax, line2.X mov bx, line2.Y mov line2Previous.X, ax mov line2Previous.Y, bx .IF line2.Y > 0 dec line2.Y .ELSE invoke getRandomNumber xor edx, edx mov eax, randomNum mov ax, ax mov bx, 60 div bx shl dx, 1 mov line2.X, dx mov line2.Y, 30 .ENDIF ; move line 3 mov ax, line3.X mov bx, line3.Y mov line3Previous.X, ax mov line3Previous.Y, bx .IF line3.Y > 0 dec line3.Y .ELSE invoke getRandomNumber xor edx, edx mov eax, randomNum mov ax, ax mov bx, 60 div bx shl dx, 1 mov line3.X, dx mov line3.Y, 30 .ENDIF ; move line 4 mov ax, line4.X mov bx, line4.Y mov line4Previous.X, ax mov line4Previous.Y, bx .IF line4.Y > 0 dec line4.Y .ELSE invoke getRandomNumber xor edx, edx mov eax, randomNum mov ax, ax mov bx, 60 div bx shl dx, 1 mov line4.X, dx mov line4.Y, 30 .ENDIF ; mov line 5 mov ax, line5.X mov bx, line5.Y mov line5Previous.X, ax mov line5Previous.Y, bx .IF line5.Y > 0 dec line5.Y .ELSE invoke getRandomNumber xor edx, edx mov eax, randomNum mov ax, ax mov bx, 60 div bx shl dx, 1 mov line5.X, dx mov line5.Y, 30 .ENDIF ret lineMoveUp ENDP ;===================================================; ; Draw Cube ; ;===================================================; drawCube PROC USES eax ; Wipe up previous cube invoke SetConsoleCursorPosition, outputHandle, cubePreviousPosition ; Set cursor position to where text should be written mov eax, 15 + 0*16 call SetTextColor ; Set cube's color push eax mov al, cubeBody ; Print the cube call WriteChar ; Draw new cube invoke SetConsoleCursorPosition, outputHandle, cubeCurrentPosition mov eax, 0 + 11*16 call SetTextColor mov al, cubeBody call WriteChar ; Restore to default setting pop eax call SetTextColor ret drawCube ENDP ;===================================================; ; Draw Line ; ;===================================================; drawLine PROC invoke WriteConsoleOutputCharacter, outputHandle, ADDR removeLineBody, lineLength, line1Previous, ADDR cellsWritten invoke WriteConsoleOutputCharacter, outputHandle, ADDR removeLineBody, lineLength, line2Previous, ADDR cellsWritten invoke WriteConsoleOutputCharacter, outputHandle, ADDR removeLineBody, lineLength, line3Previous, ADDR cellsWritten invoke WriteConsoleOutputCharacter, outputHandle, ADDR removeLineBody, lineLength, line4Previous, ADDR cellsWritten invoke WriteConsoleOutputCharacter, outputHandle, ADDR removeLineBody, lineLength, line5Previous, ADDR cellsWritten invoke WriteConsoleOutputCharacter, outputHandle, ADDR lineBody, lineLength, line1, ADDR cellsWritten invoke WriteConsoleOutputCharacter, outputHandle, ADDR lineBody, lineLength, line2, ADDR cellsWritten invoke WriteConsoleOutputCharacter, outputHandle, ADDR lineBody, lineLength, line3, ADDR cellsWritten invoke WriteConsoleOutputCharacter, outputHandle, ADDR lineBody, lineLength, line4, ADDR cellsWritten invoke WriteConsoleOutputCharacter, outputHandle, ADDR lineBody, lineLength, line5, ADDR cellsWritten ret drawLine ENDP ;===================================================; ; Check if object is out of border ; ;===================================================; isOutOfBorder PROC .IF cubeCurrentPosition.X >= borderX mov isOut, 1 .ELSEIF cubeCurrentPosition.X <= 1 mov isOut, 1 .ELSEIF cubeCurrentPosition.Y > borderY mov isOut, 1 .ELSEIF cubeCurrentPosition.Y < 1 mov isOut, 1 .ELSE mov isOut, 0 .ENDIF ret isOutOfBorder ENDP ;===================================================; ; Check if object is grounded ; ;===================================================; isGrounded PROC USES eax ebx ecx edx ;TODO:Complete isGrounded procedure ; Check line 1 mov ax, line1.X mov bx, ax mov cx, line1.Y mov dx, cx add ax, lineSize sub dx, 1 .IF cubeCurrentPosition.X >= bx && cubeCurrentPosition.X <= ax && cubeCurrentPosition.Y >= dx && cubeCurrentPosition.Y <= cx mov isOnTheGround, 1 mov whichLine, 1 jmp leave_proc .ENDIF ; Check Line 2 mov ax, line2.X mov bx, ax mov cx, line2.Y mov dx, cx add ax, lineSize sub dx, 1 .IF cubeCurrentPosition.X >= bx && cubeCurrentPosition.X <= ax && cubeCurrentPosition.Y >= dx && cubeCurrentPosition.Y <= cx mov isOnTheGround, 1 mov whichLine, 2 jmp leave_proc .ENDIF ; Check Line 3 mov ax, line3.X mov bx, ax mov cx, line3.Y mov dx, cx add ax, lineSize sub dx, 1 .IF cubeCurrentPosition.X >= bx && cubeCurrentPosition.X <= ax && cubeCurrentPosition.Y >= dx && cubeCurrentPosition.Y <= cx mov isOnTheGround, 1 mov whichLine, 3 jmp leave_proc .ENDIF ; Check Line 4 mov ax, line4.X mov bx, ax mov cx, line4.Y mov dx, cx add ax, lineSize sub dx, 1 .IF cubeCurrentPosition.X >= bx && cubeCurrentPosition.X <= ax && cubeCurrentPosition.Y >= dx && cubeCurrentPosition.Y <= cx mov isOnTheGround, 1 mov whichLine, 4 jmp leave_proc .ENDIF ; Check Line 5 mov ax, line5.X mov bx, ax mov cx, line5.Y mov dx, cx add ax, lineSize sub dx, 1 .IF cubeCurrentPosition.X >= bx && cubeCurrentPosition.X <= ax && cubeCurrentPosition.Y >= dx && cubeCurrentPosition.Y <= cx mov isOnTheGround, 1 mov whichLine, 5 jmp leave_proc .ENDIF mov isOnTheGround, 0 leave_proc: ret isGrounded ENDP ;===================================================; ; Score ; ;===================================================; get_score PROC USES eax call GetMseconds sub eax, startTime mov score, eax ret get_score ENDP ;===================================================; ; GameLoop ; ;===================================================; GameLoop PROC USES eax ebx ecx edx call Clrscr .WHILE TRUE invoke isGrounded call ReadKey .IF ax == 1E61h ;TODO: move cube left invoke cubeMoveLeft invoke isGrounded .ELSEIF ax == 2064h ;TODO: move cube right invoke cubeMoveRight invoke isGrounded .ENDIF ; Move Line & Cube Up xor edx, edx mov eax, TICK mov ebx, 375 div ebx .IF edx == 0 .IF isOnTheGround == 1 invoke lineMoveUp invoke cubeMoveUp .ELSEIF isOnTheGround == 0 invoke lineMoveUp invoke cubeMoveDown .ENDIF mov TICK, 0 .ENDIF invoke drawLine invoke drawCube invoke isOutOfBorder .IF isOut == 1 jmp leave_proc .ENDIF inc TICK .ENDW leave_proc: ret GameLoop ENDP ;===================================================; ; Main ; ;===================================================; main PROC newGame: INVOKE GetStdHandle, STD_OUTPUT_HANDLE mov outputHandle, eax CALL Clrscr INVOKE SetConsoleTitle, ADDR titleMSG INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR gameMSG0, LENGTHOF gameMSG0, gameMSGPosition, ADDR bytesWritten inc gameMSGPosition.Y INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR gameMSG1, LENGTHOF gameMSG1, gameMSGPosition, ADDR bytesWritten inc gameMSGPosition.Y INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR gameMSG2, LENGTHOF gameMSG2, gameMSGPosition, ADDR bytesWritten inc gameMSGPosition.Y INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR gameMSG3, LENGTHOF gameMSG3, gameMSGPosition, ADDR bytesWritten inc gameMSGPosition.Y INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR gameMSG4, LENGTHOF gameMSG4, gameMSGPosition, ADDR bytesWritten sub gameMSGPosition.Y, 4 INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR instructionMSG, LENGTHOF instructionMSG, instructionMSGPosition, ADDR bytesWritten INVOKE WriteConsoleOutputAttribute, outputHandle, ADDR startMSGAttribute, LENGTHOF startMSG, startMSGPosition, ADDR bytesWritten INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR startMSG, LENGTHOF startMSG, startMSGPosition, ADDR bytesWritten INVOKE WriteConsoleOutputAttribute, outputHandle, ADDR exitMSGAttribute, LENGTHOF exitMSG, exitMSGPosition, ADDR bytesWritten INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR exitMSG, LENGTHOF exitMSG, exitMSGPosition, ADDR bytesWritten xor ax, ax waitForInput: CALL ReadChar CMP ax, 0 ;There is no key pressed JE waitForInput CMP ax, 011Bh ;The user presses ESC JE exitGame start: ;==============================================; ; start the game loop ; ;==============================================; push eax call GetMseconds ; get time to count score mov startTime, eax pop eax invoke GameLoop gameOver: CALL Clrscr INVOKE WriteConsoleOutputAttribute, outputHandle, ADDR gameOverMSGAttribute, LENGTHOF gameOverMSG0, gameOverMSGPosition, ADDR bytesWritten INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR gameOverMSG0, LENGTHOF gameOverMSG0, gameOverMSGPosition, ADDR bytesWritten inc gameOverMSGPosition.Y INVOKE WriteConsoleOutputAttribute, outputHandle, ADDR gameOverMSGAttribute, LENGTHOF gameOverMSG1, gameOverMSGPosition, ADDR bytesWritten INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR gameOverMSG1, LENGTHOF gameOverMSG1, gameOverMSGPosition, ADDR bytesWritten inc gameOverMSGPosition.Y INVOKE WriteConsoleOutputAttribute, outputHandle, ADDR gameOverMSGAttribute, LENGTHOF gameOverMSG2, gameOverMSGPosition, ADDR bytesWritten INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR gameOverMSG2, LENGTHOF gameOverMSG2, gameOverMSGPosition, ADDR bytesWritten inc gameOverMSGPosition.Y INVOKE WriteConsoleOutputAttribute, outputHandle, ADDR gameOverMSGAttribute, LENGTHOF gameOverMSG3, gameOverMSGPosition, ADDR bytesWritten INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR gameOverMSG3, LENGTHOF gameOverMSG3, gameOverMSGPosition, ADDR bytesWritten inc gameOverMSGPosition.Y INVOKE WriteConsoleOutputAttribute, outputHandle, ADDR gameOverMSGAttribute, LENGTHOF gameOverMSG4, gameOverMSGPosition, ADDR bytesWritten INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR gameOverMSG4, LENGTHOF gameOverMSG4, gameOverMSGPosition, ADDR bytesWritten sub gameOverMSGPosition.Y, 4 INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR scoreMSG, LENGTHOF scoreMSG, scoreMSGPosition, ADDR bytesWritten ;print the score INVOKE SetConsoleCursorPosition, outputHandle, scorePosition call get_score mov eax, score CALL WriteDec INVOKE WriteConsoleOutputAttribute, outputHandle, ADDR returnMSGAttribute, LENGTHOF returnMSG, returnMSGPosition, ADDR bytesWritten INVOKE WriteConsoleOutputCharacter, outputHandle, ADDR returnMSG, LENGTHOF returnMSG, returnMSGPosition, ADDR bytesWritten xor ax, ax waitTillInput: CALL ReadChar CMP ax, 0 JE waitTillInput ;================================================; ; Reset the game ; ; Reset the old variables if necessary ; ;================================================; CALL initialize JMP newGame exitGame: main ENDP END main
26.860583
130
0.503043
f6c200bd4e6bb7fb911c015a710b33632a32a55c
351
asm
Assembly
programs/oeis/047/A047372.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/047/A047372.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/047/A047372.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A047372: Numbers that are congruent to {1, 2, 3, 5} mod 7. ; 1,2,3,5,8,9,10,12,15,16,17,19,22,23,24,26,29,30,31,33,36,37,38,40,43,44,45,47,50,51,52,54,57,58,59,61,64,65,66,68,71,72,73,75,78,79,80,82,85,86,87,89,92,93,94,96,99,100,101,103,106,107,108,110 mul $0,7 add $0,7 mov $1,$0 div $1,2 sub $0,$1 div $0,2 mod $1,2 add $1,$0 mov $0,$1 sub $0,2
25.071429
194
0.623932
6e1f7d1696fab4906ca7df66630c5a466d8b51a4
424
asm
Assembly
BigNum/Mod/Base/bnMulDw.asm
FloydZ/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
11
2015-03-17T10:31:23.000Z
2022-01-21T17:42:43.000Z
BigNum/Mod/Base/bnMulDw.asm
0xFF1E071F/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
null
null
null
BigNum/Mod/Base/bnMulDw.asm
0xFF1E071F/Crypto-Hash
2635450fb16d4d8dc4578d6539cc25ce599f7e21
[ "MIT" ]
6
2018-01-29T16:06:36.000Z
2021-05-08T19:22:24.000Z
.686 .model flat,stdcall option casemap:none include .\bnlib.inc include .\bignum.inc .code bnMulDw proc uses edi esi ebx bn:dword,dwVal:dword mov esi,bn mov edi,dwVal bnSCreateX ebx mov eax,[esi].BN.dwSize inc eax .if eax <= BN_MAX_DWORD mov [ebx],eax call _bn_muldw_basecase mov ecx,[esi].BN.dwSize mov edi,ebx inc ecx call _bn_normalize invoke bnMov,bn,ebx .endif bnSDestroyX ret bnMulDw endp end
15.703704
50
0.738208
54b1293221db4defea0256b332275d6b16a47362
178
asm
Assembly
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/free_unlocked_fastcall.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/free_unlocked_fastcall.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/free_unlocked_fastcall.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; void free_unlocked_fastcall(void *p) SECTION code_alloc_malloc PUBLIC _free_unlocked_fastcall _free_unlocked_fastcall: INCLUDE "alloc/malloc/z80/asm_free_unlocked.asm"
16.181818
51
0.831461
0348e6caafa106e2efd793538fed427b0f92a316
1,720
asm
Assembly
programs/oeis/250/A250807.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/250/A250807.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/250/A250807.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A250807: Number of (n+1) X (3+1) 0..2 arrays with nondecreasing x(i,j)-x(i,j-1) in the i direction and nondecreasing min(x(i,j),x(i-1,j)) in the j direction. ; 225,873,3081,10233,32745,102393,315561,963513,2924265,8840313,26656041,80238393,241255785,724848633,2176708521,6534450873,19612003305,58853311353,176594537001,529852816953,1589696862825,4769367412473,14308655885481,42927074952633,128783439450345,386354747535993,1159073100977961,3477237019673913,10431746492501865,31295310344465913,93886072767318441,281658501769796793,844976072245073385,2534929350606586233,7604790319562490921,22814375494172937273,68443135553489740905,205329424802411080953,615988310691116959401,1847965004641118311353,5543895159058889800425,16631685767447739134073,49895057882885356867881,149685174809740349535033,449055526751389606467945,1347166584898505935129593,4041499763984192036840361,12124499310529924573424313,36373497968744470646079465,109120493980542805789851513,327361482090247205072780841,982084446567979190624795193,2946253340298412722687290985,8838760022084188469687683833,26516280068630466012314673321,79548840210647199243447263673,238646520641453200143348278505,715939561943382805256057810553,2147818685868194825420199381801,6443456057680677295564650045753,19330368173194217525302053938025,57991104519887023853122369415673,173973313560269814113799523450281,521919940682026927450263400757433,1565759822048515752568519863085545,4697279466150417198141018910883193,14091838398460991475293975375902761,42275515195402454187623763414214713,126826545586246322086354964815657065,380479636758816885306032243592997113 mov $1,8 mov $2,11 lpb $0 sub $0,1 mul $1,3 add $1,$2 mul $2,2 lpe sub $1,8 mul $1,24 add $1,225 mov $0,$1
107.5
1,443
0.89593
e528295ed49460c0bbcd8f62204a7afac95e3806
110
asm
Assembly
Week_8-9/18 - idiv_8_bit_1.asm
iamruveyda/KBU-Mikro
f343d1054fcdbc5de48ea9d0da467b5ecaa420b3
[ "MIT" ]
1
2021-08-10T13:39:26.000Z
2021-08-10T13:39:26.000Z
Week_8-9/18 - idiv_8_bit_1.asm
iamruveyda/KBU-Micro
0108ca4e94268cd7d5d2268d0a15d196a2ebe3d2
[ "MIT" ]
null
null
null
Week_8-9/18 - idiv_8_bit_1.asm
iamruveyda/KBU-Micro
0108ca4e94268cd7d5d2268d0a15d196a2ebe3d2
[ "MIT" ]
null
null
null
.model small .data .code main proc mov al,-48 cbw mov bl,05H idiv bl endp end main
7.857143
14
0.554545
9a1b66122760f91572f6cb1bed3955c8e1c93fb8
184
asm
Assembly
data/mcp/asm/prog_10_01.asm
colinw7/CZ80
458e83ffdca23dcfc92e78de9b802219a85f059a
[ "MIT" ]
null
null
null
data/mcp/asm/prog_10_01.asm
colinw7/CZ80
458e83ffdca23dcfc92e78de9b802219a85f059a
[ "MIT" ]
null
null
null
data/mcp/asm/prog_10_01.asm
colinw7/CZ80
458e83ffdca23dcfc92e78de9b802219a85f059a
[ "MIT" ]
null
null
null
0D00 06 01 0D02 78 0D03 DF 68 0D05 DF 69 0D07 78 0D08 CD 00 0E 0D0B DF 68 0D0D DF 6A 0D0F 04 0D10 78 0D11 FE 0E 0D13 C2 03 0D 0D16 DF 5B 0E00 57 0E01 CB 27 0E03 CB 27 0E05 82 0E06 C9
9.2
13
0.728261
aa7b42de092a300818f1093b461eac68f1f6f36c
819
asm
Assembly
programs/oeis/328/A328824.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/328/A328824.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/328/A328824.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A328824: Numerators of A113405(-n) (see the comment for details). ; 0,1,1,1,-7,-7,-7,57,57,57,-455,-455,-455,3641,3641,3641,-29127,-29127,-29127,233017,233017,233017,-1864135,-1864135,-1864135,14913081,14913081,14913081,-119304647,-119304647,-119304647,954437177,954437177,954437177,-7635497415,-7635497415,-7635497415,61083979321,61083979321,61083979321,-488671834567,-488671834567,-488671834567,3909374676537,3909374676537,3909374676537,-31274997412295,-31274997412295,-31274997412295,250199979298361,250199979298361,250199979298361,-2001599834386887,-2001599834386887,-2001599834386887 add $0,3 mov $4,2 lpb $0,1 sub $0,5 mov $3,$4 sub $3,4 trn $0,$3 add $2,$4 mul $2,$3 mul $2,4 lpe sub $0,3 mul $0,3 mov $1,5 mul $4,$3 div $1,$4 sub $1,1 mul $1,$0 trn $3,1 add $3,$2 add $1,$3 sub $1,2 div $1,128
30.333333
522
0.737485
39605b5d6ca4b743562053a9b217cdf15d44caa9
6,425
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1395.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1395.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1395.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_UC_ht+0x9e98, %rdi nop nop nop nop xor $53683, %r10 movb $0x61, (%rdi) nop nop nop nop xor $29896, %rax lea addresses_WC_ht+0x1ab98, %rsi lea addresses_D_ht+0x110c8, %rdi nop nop inc %r13 mov $40, %rcx rep movsw nop nop nop nop nop dec %r13 lea addresses_WT_ht+0xad80, %rdi add %r10, %r10 mov $0x6162636465666768, %rcx movq %rcx, %xmm6 vmovups %ymm6, (%rdi) nop nop nop and %r13, %r13 lea addresses_WT_ht+0x8398, %r10 nop nop nop nop cmp %r12, %r12 movl $0x61626364, (%r10) nop nop nop nop nop and %rcx, %rcx lea addresses_normal_ht+0x13398, %r12 nop nop nop nop dec %rsi movb $0x61, (%r12) nop and $13343, %r12 lea addresses_D_ht+0x1bf50, %rax nop nop nop add $61643, %r12 mov (%rax), %r13d nop nop dec %r12 lea addresses_D_ht+0x1bf3a, %rsi lea addresses_WT_ht+0x1948c, %rdi nop nop nop xor $32581, %rbp mov $89, %rcx rep movsb nop nop sub %rax, %rax lea addresses_WT_ht+0x16a98, %r12 nop nop sub $48125, %rsi mov $0x6162636465666768, %r13 movq %r13, %xmm0 vmovups %ymm0, (%r12) nop cmp $8414, %rcx lea addresses_UC_ht+0x1b898, %r10 nop nop cmp %rax, %rax mov (%r10), %r12w nop nop nop nop nop inc %r13 lea addresses_WC_ht+0x20a8, %rsi lea addresses_WT_ht+0x10398, %rdi nop sub $8170, %rax mov $89, %rcx rep movsw nop nop add %rcx, %rcx pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r14 push %r15 push %rbx push %rdi push %rsi // Faulty Load lea addresses_UC+0x12b98, %rsi nop nop add $58145, %rdi mov (%rsi), %r15w lea oracles, %r14 and $0xff, %r15 shlq $12, %r15 mov (%r14,%r15,1), %r15 pop %rsi pop %rdi pop %rbx pop %r15 pop %r14 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 7}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_D_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 2}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 8}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 10}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 1, 'type': 'addresses_WT_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 8}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 7}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_WT_ht'}} {'37': 21829} 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 */
37.138728
2,999
0.659767
cf13add88efd670361e709c1afe4f13c0110c7ff
1,813
asm
Assembly
libsrc/math/z88math/atan2.asm
andydansby/z88dk-mk2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
1
2020-09-15T08:35:49.000Z
2020-09-15T08:35:49.000Z
libsrc/math/z88math/atan2.asm
andydansby/z88dk-MK2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
null
null
null
libsrc/math/z88math/atan2.asm
andydansby/z88dk-MK2
51c15f1387293809c496f5eaf7b196f8a0e9b66b
[ "ClArtistic" ]
null
null
null
; ; ; Z88 Maths Routines ; ; C Interface for Small C+ Compiler ; ; 7/12/98 djm ;* Fixed by Keith Rickard 17/5/1999 ;* ;* If y<>0 then atan2(x/y)=atn(x/y)-PI*(y<0) (true=-1) else atan2(x/y)=PI/2*signum(x) ;double atan2(double x,double y) atan(x/y) ;y is in the FA ;x is on the stack +8 (+2=y) INCLUDE "fpp.def" XLIB atan2 LIB fsetup LIB stkequ2 XREF fa .atan2 ld ix,8 add ix,sp ld l,(ix+1) ld h,(ix+2) ld de,(fa+1) exx ;main set ld c,(ix+5) ld l,(ix+3) ld h,(ix+4) ld de,(fa+3) ld a,(fa+5) ld b,a ld a,h ;*Put sign of x in A bit 7,d ;*Test the sign of y (0=+ve,1=-ve) push af ;*Put sign info onto stack fpp(FP_DIV) jr nc,atan2_1 ;*Skip if no error fpp(FP_PI) ;*An RC.DVZ error means ATN(X/0)=PI/2 dec c ;*CHLhl = PI/2 pop af ;*Make the result the same sign as x rla ;*CF=0 means +ve, CF=1 means -ve jr nc,atan2_2 ;*Finished if +ve set 7,H ;*Make -ve jr atan2_2 ;*Jump to finish .atan2_1 ;* fpp(FP_ATN) pop af ;*What was the sign of y? jr z,atan2_2 ;*Finished if +ve exx ;*Stack the result atn(x/y) push hl ;*Stack the LSBs exx ;* push hl ;*Next the MSBs push bc ;*And finally the Exp fpp(FP_PI) ;*Get PI into CHLhl ld a,c ;*Keep PI in CHLhl and put atn(x/y) into BDEde pop bc ;*Keep Exp of PI in C and put Exp of atn(x/y) in B ld b,c ;* ld c,a ;* pop de ;*MSBs of atn(x/y) into DE exx ;* pop de ;*LSBs of atn(x/y) into de exx ;* fpp(FP_ADD) ;*CHLhl will now hold atn(x/y)+PI .atan2_2 ;* jp stkequ2 ;Finished! CHLhl holds atan2(x/y)
23.545455
85
0.517375
cf85c3cd51007ae0ebb7315ad9bbc47f66a568b0
10,674
asm
Assembly
P6/data_P6_2/MDTest93.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
1
2022-01-23T09:24:47.000Z
2022-01-23T09:24:47.000Z
P6/data_P6_2/MDTest93.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
P6/data_P6_2/MDTest93.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
ori $ra,$ra,0xf multu $1,$0 mult $4,$2 sb $4,16($0) mfhi $5 multu $4,$4 lui $4,6925 divu $5,$ra sll $5,$0,31 ori $1,$5,58644 mthi $3 lui $2,357 divu $1,$ra lui $1,62996 sll $5,$5,8 mthi $2 mult $5,$6 srav $6,$4,$5 mtlo $1 div $5,$ra mtlo $1 addu $6,$1,$1 lui $4,8132 sb $5,7($0) mflo $1 lui $2,4675 ori $5,$4,48462 lui $4,43527 sb $1,10($0) div $4,$ra mflo $1 ori $3,$3,29233 lui $2,33437 sb $5,13($0) lui $6,43458 sb $3,15($0) multu $4,$2 multu $3,$4 div $1,$ra ori $5,$4,26608 mthi $0 mflo $5 multu $4,$2 divu $2,$ra srav $6,$0,$2 lui $4,45764 multu $1,$2 mthi $5 sb $1,7($0) sb $4,0($0) sll $3,$6,12 srav $5,$5,$2 mflo $1 lb $0,16($0) mflo $5 divu $5,$ra ori $5,$4,16307 sll $4,$4,29 addu $4,$4,$1 mthi $0 addiu $4,$2,10129 lb $0,0($0) mfhi $4 divu $3,$ra mult $4,$2 addu $1,$6,$6 div $4,$ra srav $4,$4,$3 srav $6,$4,$6 addu $4,$4,$5 ori $6,$2,14636 mult $0,$1 srav $1,$1,$1 multu $4,$2 addiu $4,$5,1646 sll $4,$2,26 ori $2,$1,16018 sll $5,$4,8 sb $5,2($0) lui $3,51269 sll $3,$2,12 addiu $5,$5,28076 multu $6,$2 sll $1,$1,3 lb $1,12($0) mflo $1 divu $5,$ra divu $4,$ra mfhi $0 mult $4,$0 addiu $5,$6,-25048 addu $5,$5,$1 lui $4,43210 mthi $6 addu $2,$2,$6 mthi $4 addu $5,$6,$3 mult $5,$0 srav $0,$4,$4 srav $1,$5,$3 div $1,$ra mfhi $5 mfhi $2 divu $5,$ra ori $2,$2,3779 multu $1,$2 sb $3,12($0) mflo $1 mult $2,$5 mthi $1 ori $4,$0,38107 sb $4,11($0) mflo $5 lui $3,40914 mflo $4 multu $3,$3 lb $4,14($0) mfhi $4 sll $2,$5,31 divu $0,$ra mflo $1 lb $0,12($0) lb $4,8($0) sb $1,7($0) sll $1,$1,26 mtlo $1 addiu $4,$1,27180 sll $1,$0,10 lui $1,15944 srav $5,$5,$5 mfhi $1 mthi $5 mult $4,$4 srav $5,$5,$5 mflo $1 mult $0,$2 addu $6,$1,$6 sb $4,6($0) srav $4,$1,$3 lb $4,12($0) addiu $5,$1,17728 divu $6,$ra multu $5,$2 sll $4,$2,23 multu $1,$1 lui $1,45524 mtlo $4 ori $4,$2,25718 mult $4,$2 addu $2,$2,$3 div $1,$ra srav $4,$2,$5 addiu $4,$4,-10301 ori $4,$2,30710 divu $1,$ra mult $1,$1 addu $2,$2,$2 sb $1,12($0) mthi $4 sll $4,$6,22 div $5,$ra mthi $4 addiu $6,$2,19153 divu $4,$ra multu $4,$2 sb $2,16($0) addu $6,$5,$2 mult $0,$1 lb $5,2($0) mflo $1 mult $6,$4 sb $2,5($0) div $5,$ra lb $5,15($0) mflo $4 addiu $6,$2,-23624 addu $1,$2,$2 mfhi $3 div $6,$ra sb $3,11($0) lui $1,29397 mtlo $4 mfhi $3 multu $5,$4 addu $4,$4,$3 ori $5,$5,13324 div $5,$ra lui $3,13808 addiu $4,$5,3722 multu $4,$6 ori $4,$1,26279 mfhi $4 divu $5,$ra mflo $5 mfhi $0 mfhi $6 div $6,$ra mtlo $1 sb $6,16($0) sll $1,$2,19 lui $4,44417 ori $1,$3,46429 mult $0,$0 mflo $4 mtlo $2 lui $5,43252 ori $6,$6,39566 ori $1,$1,16715 mthi $1 ori $1,$5,32397 mtlo $0 mfhi $3 lb $0,15($0) ori $3,$4,40894 srav $4,$5,$5 addiu $2,$2,10594 sb $5,7($0) mthi $5 mflo $5 divu $5,$ra div $1,$ra mtlo $0 mtlo $4 multu $5,$1 div $6,$ra mtlo $4 mult $5,$0 div $4,$ra mult $0,$5 addiu $4,$4,27759 divu $6,$ra mfhi $5 mflo $4 sb $5,3($0) divu $4,$ra mult $4,$5 mthi $2 srav $0,$0,$5 lui $2,24701 divu $6,$ra mult $5,$1 lui $4,63009 mthi $2 lb $4,7($0) ori $5,$5,3029 addu $6,$3,$3 div $1,$ra srav $4,$5,$3 ori $6,$5,65279 mfhi $4 sll $3,$2,0 srav $6,$5,$2 mult $6,$6 ori $1,$4,27037 ori $0,$4,8306 sll $5,$6,1 mflo $3 sb $4,2($0) sb $4,15($0) mult $4,$2 mtlo $4 addu $1,$1,$3 lui $1,39433 sll $1,$2,15 addu $4,$2,$4 multu $6,$6 lb $3,5($0) sb $4,6($0) srav $4,$1,$4 srav $4,$5,$2 ori $0,$0,35840 addu $4,$4,$4 lui $5,7891 lui $4,556 divu $4,$ra multu $0,$4 sb $3,16($0) mfhi $1 addu $4,$4,$0 srav $3,$5,$3 srav $1,$2,$2 sll $5,$5,20 divu $5,$ra ori $4,$0,1311 addiu $5,$3,-16177 lb $6,9($0) addu $4,$4,$4 srav $5,$1,$1 srav $4,$4,$4 ori $2,$2,15829 mthi $4 multu $0,$1 sll $4,$4,28 lui $1,1589 sb $2,1($0) mult $3,$3 mflo $4 mflo $1 div $5,$ra ori $5,$1,32403 mthi $2 div $6,$ra addu $5,$6,$1 ori $5,$5,58766 addu $5,$4,$5 mtlo $5 srav $4,$2,$4 divu $4,$ra mfhi $5 multu $1,$2 ori $4,$6,25343 lb $4,13($0) ori $4,$4,51016 addu $5,$5,$5 addiu $2,$2,27473 div $3,$ra mfhi $0 srav $4,$2,$2 addiu $1,$1,-1218 divu $5,$ra mthi $4 ori $1,$1,35736 divu $0,$ra divu $1,$ra mthi $2 div $4,$ra mthi $0 multu $4,$6 multu $4,$6 divu $0,$ra sb $4,13($0) mtlo $4 sll $1,$1,10 div $4,$ra div $4,$ra addu $4,$4,$4 srav $0,$1,$4 divu $1,$ra sll $1,$2,24 sll $5,$1,0 sb $6,2($0) multu $4,$4 mflo $1 ori $4,$2,3826 sb $0,15($0) mult $5,$1 multu $1,$6 div $4,$ra mult $4,$4 mflo $6 lb $4,15($0) divu $6,$ra srav $3,$0,$3 srav $3,$3,$3 divu $5,$ra mtlo $5 addiu $5,$0,-28343 sll $4,$2,5 mult $3,$3 mult $1,$1 divu $2,$ra addu $1,$1,$1 srav $4,$5,$5 mthi $4 mtlo $0 divu $1,$ra mfhi $0 div $6,$ra sb $3,16($0) divu $0,$ra mult $4,$5 lb $6,14($0) divu $5,$ra lui $0,33921 divu $4,$ra srav $5,$5,$5 sll $4,$4,2 mthi $1 srav $5,$5,$5 sll $0,$6,14 mfhi $4 mthi $5 lui $4,9290 ori $4,$4,27828 sll $4,$4,28 sb $1,1($0) mflo $1 sll $5,$2,21 ori $1,$2,10914 addu $4,$1,$1 mtlo $0 divu $2,$ra mtlo $5 addu $4,$2,$4 lb $4,8($0) mthi $4 sb $1,6($0) mfhi $2 lb $1,8($0) divu $5,$ra mtlo $4 lb $5,10($0) ori $1,$4,508 divu $4,$ra lb $4,10($0) sll $5,$1,30 mfhi $4 mtlo $5 mult $4,$3 srav $4,$2,$3 sll $6,$6,11 srav $4,$1,$3 mflo $2 sll $4,$4,7 addu $0,$4,$0 mthi $5 lb $5,3($0) mthi $1 addiu $6,$4,-19744 mthi $4 lb $6,8($0) mthi $5 sll $5,$5,4 mult $6,$6 divu $2,$ra srav $4,$4,$4 div $5,$ra addiu $1,$2,25347 mfhi $6 ori $5,$4,33486 srav $0,$4,$4 multu $6,$2 lui $0,16335 multu $4,$5 lui $1,61747 lb $1,3($0) mult $3,$3 lb $5,12($0) addiu $3,$2,-2267 lb $0,1($0) addiu $4,$2,10209 divu $6,$ra mtlo $4 mflo $2 addiu $1,$6,-30791 divu $2,$ra mfhi $4 ori $4,$6,63869 mfhi $1 ori $5,$5,3778 ori $5,$1,5193 div $1,$ra mult $6,$6 divu $5,$ra ori $2,$2,16254 mflo $1 divu $4,$ra addiu $4,$4,-19028 mfhi $0 multu $1,$1 sll $4,$4,3 lb $4,0($0) multu $1,$6 lb $1,10($0) div $5,$ra mtlo $4 sb $2,13($0) lb $1,10($0) mflo $4 mflo $6 addiu $6,$4,3761 sb $5,8($0) sb $5,13($0) sll $2,$0,29 sb $1,7($0) mfhi $6 addiu $4,$2,-30457 div $4,$ra addu $4,$1,$1 sb $4,6($0) mult $4,$5 addu $4,$4,$5 div $4,$ra mtlo $5 mtlo $4 mflo $3 multu $4,$4 srav $3,$2,$3 multu $1,$1 mthi $4 ori $6,$4,53769 mtlo $4 sb $6,14($0) div $5,$ra divu $4,$ra sll $4,$4,3 sb $4,11($0) mfhi $4 addu $5,$5,$5 ori $6,$2,17614 sb $4,16($0) mtlo $5 mfhi $4 mult $1,$1 mult $2,$2 ori $2,$1,50740 mflo $5 multu $4,$5 mthi $5 divu $3,$ra mthi $1 addiu $4,$5,-22613 mtlo $4 sll $5,$2,3 multu $1,$1 mthi $2 mfhi $4 multu $0,$4 ori $1,$2,52165 mfhi $1 lb $3,9($0) div $1,$ra div $5,$ra addu $1,$3,$3 sb $1,4($0) mflo $4 ori $1,$1,52129 mfhi $3 mfhi $4 sll $4,$1,21 multu $4,$2 addiu $5,$5,18704 sll $6,$0,17 lui $4,29498 mtlo $1 mfhi $4 lb $1,1($0) addu $2,$5,$2 addu $2,$2,$4 mult $4,$4 mfhi $4 mthi $3 srav $5,$2,$3 addu $5,$5,$5 divu $4,$ra mthi $6 div $5,$ra ori $1,$1,29856 mult $5,$5 addu $5,$1,$2 mflo $5 mflo $5 mfhi $4 srav $1,$4,$4 sll $6,$6,15 addu $2,$2,$5 srav $0,$2,$2 mthi $0 srav $4,$6,$6 div $1,$ra mtlo $6 multu $5,$1 mthi $5 srav $4,$0,$0 div $1,$ra multu $4,$2 div $4,$ra mflo $1 multu $2,$4 mult $1,$4 mtlo $5 sb $5,15($0) addu $1,$4,$4 divu $4,$ra addiu $5,$5,-27337 mfhi $4 lui $3,20360 srav $6,$2,$4 lb $1,5($0) sll $5,$5,14 addu $1,$1,$4 multu $4,$4 mtlo $4 lui $4,46923 mfhi $6 mflo $0 mult $0,$0 addu $5,$6,$3 mflo $5 ori $2,$2,19727 mtlo $0 mtlo $4 mflo $3 addu $6,$1,$1 divu $5,$ra addiu $3,$2,-12314 sll $5,$2,12 mtlo $1 divu $2,$ra ori $4,$2,61392 sll $5,$1,18 addiu $2,$4,3156 addiu $3,$3,11738 multu $5,$5 divu $6,$ra srav $4,$6,$0 lb $1,13($0) div $0,$ra lb $5,9($0) mtlo $0 addu $3,$3,$3 multu $2,$5 mthi $1 mflo $5 sll $4,$4,14 mult $4,$2 mult $1,$0 multu $5,$4 divu $2,$ra lb $3,15($0) ori $2,$5,56862 sll $4,$4,30 sb $0,12($0) multu $4,$4 sll $5,$1,11 mflo $4 lb $4,12($0) srav $1,$2,$2 sll $5,$4,20 addiu $5,$5,19553 mfhi $4 addiu $5,$1,-2684 addu $2,$2,$2 addu $4,$2,$5 mult $4,$3 addu $4,$0,$3 div $2,$ra lb $5,2($0) div $4,$ra mfhi $3 divu $1,$ra div $5,$ra lb $5,14($0) lui $4,36731 addiu $5,$1,-27345 divu $4,$ra lb $1,11($0) div $3,$ra lui $2,7723 mthi $4 srav $1,$5,$2 sll $5,$2,16 mult $2,$2 lui $5,22130 ori $2,$2,18246 lui $5,39149 sb $4,2($0) sb $5,7($0) lb $4,6($0) lui $3,34440 addu $3,$3,$3 mflo $1 addiu $0,$0,31768 addiu $5,$5,-2966 lb $5,12($0) sll $5,$0,16 addiu $1,$2,17857 mthi $6 lui $5,20805 lb $4,2($0) lui $6,26118 sb $1,10($0) addu $0,$0,$2 divu $6,$ra addiu $4,$1,-30906 srav $4,$0,$4 sll $4,$1,21 ori $6,$1,13367 mtlo $4 mthi $0 multu $1,$1 srav $1,$1,$3 addiu $6,$1,20599 mult $4,$1 sb $0,15($0) mflo $4 mult $4,$6 divu $5,$ra addiu $4,$2,-8029 sb $3,8($0) lui $4,40479 multu $5,$2 lb $3,11($0) mult $2,$2 mult $1,$4 mtlo $4 addu $5,$5,$5 addiu $5,$4,27160 ori $5,$5,57475 multu $0,$0 divu $0,$ra mthi $1 mflo $1 divu $0,$ra ori $3,$3,38586 srav $0,$0,$1 ori $5,$4,31157 srav $4,$4,$3 multu $2,$2 ori $2,$2,8777 lui $4,11853 addu $5,$4,$4 mtlo $3 mult $0,$0 mult $5,$2 mult $4,$4 sll $1,$6,2 mflo $4 ori $1,$6,9823 mtlo $3 sb $0,2($0) divu $0,$ra ori $2,$6,21483 addiu $0,$5,8477 lui $4,64024 addu $0,$4,$0 lb $4,16($0) div $6,$ra divu $0,$ra mfhi $1 mult $4,$1 multu $1,$4 multu $0,$4 mthi $5 lb $1,8($0) mtlo $4 mfhi $4 mult $1,$1 sb $0,12($0) mtlo $4 lui $3,59912 srav $3,$4,$3 sll $4,$2,9 mfhi $4 ori $3,$0,58574 mtlo $1 mfhi $3 mflo $1 div $5,$ra lui $5,7111 sb $1,15($0) mfhi $5 mtlo $3 mflo $5 sll $1,$2,28 sb $5,7($0) addu $1,$2,$2 mult $5,$5 ori $3,$4,2159 addu $1,$1,$1 sll $5,$3,25 mthi $1 mflo $6 lui $2,17490 mthi $4 addu $6,$0,$0 mtlo $4 div $5,$ra mfhi $1 div $6,$ra ori $5,$1,42067 sb $4,14($0) lb $4,7($0) addiu $4,$4,-3744 addu $2,$2,$2 multu $6,$6 mtlo $5 lui $1,32862 div $4,$ra mfhi $5 lb $4,4($0) lb $6,9($0) addiu $4,$6,9342 mthi $6 lb $1,13($0) lui $3,33479 mult $4,$4 divu $2,$ra mflo $6 divu $1,$ra ori $5,$0,36867 sll $0,$2,10 mflo $5 sb $5,9($0) lb $3,13($0) addu $4,$2,$4 mult $5,$5 mthi $1 addiu $4,$4,-10783 mflo $5 divu $5,$ra ori $1,$1,14463 lb $5,1($0) ori $6,$5,22578 lui $5,31772 lui $1,22003 ori $2,$2,50838 sb $6,16($0) sb $4,16($0) srav $1,$4,$1 mflo $2 multu $6,$1 addiu $2,$2,-8513 lb $4,6($0) sll $1,$4,29 mflo $6 div $2,$ra mtlo $4 div $4,$ra ori $2,$2,39884 sb $1,14($0) addu $4,$4,$4 mult $3,$2 addu $4,$4,$2 mult $4,$2 mflo $4 addu $1,$2,$2 sb $1,12($0) multu $5,$2 divu $5,$ra srav $0,$4,$4 ori $1,$1,49093 lb $2,15($0) addu $1,$5,$5 srav $5,$5,$1 lui $2,11567 sll $5,$2,29 srav $5,$1,$1 addiu $1,$4,1499 sb $5,9($0) ori $2,$2,49483 lui $5,13444 ori $5,$3,38512 mthi $0 mfhi $6 sll $2,$2,29 lb $1,1($0) mfhi $4 mthi $5 mtlo $5 mtlo $4 mfhi $4 div $5,$ra div $2,$ra srav $4,$2,$4 mtlo $4 sb $3,6($0) addu $4,$1,$4 addiu $5,$5,5452 mflo $3 sll $6,$6,6 mflo $2 mtlo $3 mflo $6 divu $1,$ra multu $4,$6 sll $6,$4,25 lui $6,46899 addu $4,$4,$3 multu $4,$4 sb $1,14($0) mtlo $5 addu $1,$4,$4 divu $0,$ra mfhi $3 lui $1,1006 srav $3,$3,$3 mfhi $4 lui $3,33826 srav $3,$2,$3 divu $2,$ra lui $2,20923 lui $1,6415 ori $4,$4,32746 mthi $0 lb $2,7($0) addiu $2,$2,-16804 ori $4,$5,29032 mult $1,$1
11.993258
18
0.565767
cc8489ef13e6a8fcd15f84ebb9cc9f55dca82826
2,893
asm
Assembly
src/Native/Runtime/arm64/InteropThunksHelpers.asm
lambdageek/corert
11136ad55767485063226be08cfbd32ed574ca43
[ "MIT" ]
9
2018-02-28T14:24:42.000Z
2021-07-07T13:12:15.000Z
src/Native/Runtime/arm64/InteropThunksHelpers.asm
lambdageek/corert
11136ad55767485063226be08cfbd32ed574ca43
[ "MIT" ]
8
2016-12-02T10:22:20.000Z
2020-10-08T15:06:17.000Z
src/Native/Runtime/arm64/InteropThunksHelpers.asm
lambdageek/corert
11136ad55767485063226be08cfbd32ed574ca43
[ "MIT" ]
23
2017-06-05T16:21:58.000Z
2022-01-31T11:01:47.000Z
;; Licensed to the .NET Foundation under one or more agreements. ;; The .NET Foundation licenses this file to you under the MIT license. ;; See the LICENSE file in the project root for more information. #include "ksarm64.h" ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATA SECTIONS ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; __tls_array equ 0x58 ;; offsetof(TEB, ThreadLocalStoragePointer) POINTER_SIZE equ 0x08 ;; TLS variables AREA |.tls$|, DATA ThunkParamSlot % 0x8 TEXTAREA EXTERN _tls_index ;; Section relocs are 32 bits. Using an extra DCD initialized to zero for 8-byte alignment. __SECTIONREL_ThunkParamSlot DCD ThunkParamSlot RELOC 8, ThunkParamSlot ;; SECREL DCD 0 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Interop Thunks Helpers ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; RhCommonStub ;; ;; INPUT: xip0: thunk's data block ;; ;; TRASHES: x9, x10, x11, xip0 ;; LEAF_ENTRY RhCommonStub ;; There are arbitrary callers passing arguments with arbitrary signatures. ;; Custom calling convention: ;; xip0 pointer to the current thunk's data block (data contains 2 pointer values: context + target pointers) ;; Save context data into the ThunkParamSlot thread-local variable ;; A pointer to the delegate and function pointer for open static delegate should have been saved in the thunk's context cell during thunk allocation ldr x10, =_tls_index ldr w10, [x10] ldr x9, [xpr, #__tls_array] ldr x9, [x9, x10 lsl #3] ;; x9 <- our TLS base ;; x9 = base address of TLS data ;; x10 = trashed ;; xip0 = address of context cell in thunk's data ;; store thunk address in thread static ldr x10, [xip0] ldr x11, =__SECTIONREL_ThunkParamSlot ldr x11, [x11] str x10, [x9, x11] ;; ThunkParamSlot <- context slot data ;; Now load the target address and jump to it. ldr xip0, [xip0, #POINTER_SIZE] br xip0 LEAF_END RhCommonStub ;; ;; IntPtr RhGetCommonStubAddress() ;; LEAF_ENTRY RhGetCommonStubAddress ldr x0, =RhCommonStub ret LEAF_END RhGetCommonStubAddress ;; ;; IntPtr RhGetCurrentThunkContext() ;; LEAF_ENTRY RhGetCurrentThunkContext ldr x1, =_tls_index ldr w1, [x1] ldr x0, [xpr, #__tls_array] ldr x0, [x0, x1 lsl #3] ;; x0 <- our TLS base ldr x1, =__SECTIONREL_ThunkParamSlot ldr x1, [x1] ldr x0, [x0, x1] ;; x0 <- ThunkParamSlot ret LEAF_END RhGetCurrentThunkContext END
31.107527
157
0.551676
03381f20742353ba24c483ee391d77766687aa28
1,466
asm
Assembly
programs/oeis/158/A158130.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/158/A158130.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/158/A158130.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A158130: 121n - 1. ; 120,241,362,483,604,725,846,967,1088,1209,1330,1451,1572,1693,1814,1935,2056,2177,2298,2419,2540,2661,2782,2903,3024,3145,3266,3387,3508,3629,3750,3871,3992,4113,4234,4355,4476,4597,4718,4839,4960,5081,5202,5323,5444,5565,5686,5807,5928,6049,6170,6291,6412,6533,6654,6775,6896,7017,7138,7259,7380,7501,7622,7743,7864,7985,8106,8227,8348,8469,8590,8711,8832,8953,9074,9195,9316,9437,9558,9679,9800,9921,10042,10163,10284,10405,10526,10647,10768,10889,11010,11131,11252,11373,11494,11615,11736,11857,11978,12099,12220,12341,12462,12583,12704,12825,12946,13067,13188,13309,13430,13551,13672,13793,13914,14035,14156,14277,14398,14519,14640,14761,14882,15003,15124,15245,15366,15487,15608,15729,15850,15971,16092,16213,16334,16455,16576,16697,16818,16939,17060,17181,17302,17423,17544,17665,17786,17907,18028,18149,18270,18391,18512,18633,18754,18875,18996,19117,19238,19359,19480,19601,19722,19843,19964,20085,20206,20327,20448,20569,20690,20811,20932,21053,21174,21295,21416,21537,21658,21779,21900,22021,22142,22263,22384,22505,22626,22747,22868,22989,23110,23231,23352,23473,23594,23715,23836,23957,24078,24199,24320,24441,24562,24683,24804,24925,25046,25167,25288,25409,25530,25651,25772,25893,26014,26135,26256,26377,26498,26619,26740,26861,26982,27103,27224,27345,27466,27587,27708,27829,27950,28071,28192,28313,28434,28555,28676,28797,28918,29039,29160,29281,29402,29523,29644,29765,29886,30007,30128,30249 mov $1,$0 mul $1,121 add $1,120
209.428571
1,411
0.812415
33cec0cd17eaded40f17d8c7260daf50ef0bea9a
3,581
asm
Assembly
programs/oeis/085/A085438.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/085/A085438.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/085/A085438.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A085438: a(n) = Sum_{i=1..n} binomial(i+1,2)^3. ; 1,28,244,1244,4619,13880,35832,82488,173613,339988,627484,1102036,1855607,3013232,4741232,7256688,10838265,15838476,22697476,31958476,44284867,60479144,81503720,108503720,142831845,186075396,240085548,307008964,389321839,489866464,611890400,759088352,935646833,1146291708,1396338708,1691747004,2039175931,2446044952,2920596952,3471964952,4110242333,4846556660,5693147196,6663446196,7772164071,9035378512,10470627664,12097007440,13935273065,16007944940,18339418916,20956081068,23886427059,27161186184,30813450184,34878806920,39395478997,44404467428,49949700428,56078187428,62840178399,70289328576,78482868672,87481780672,97350979297,108159499228,119980688180,132892405916,146977229291,162322663416,179021359032,197171336184,216876214285,238245448660,261394573660,286445452436,313526533463,342773113904,374327609904,408339833904,444967279065,484375410892,526737966148,572237259148,621064495523,673420093544,729514013096,789566092392,853806392517,922475549892,995825136748,1074118029700,1157628786511,1246644031136,1341462847136,1442397179552,1549772245329,1663926952380,1785214327380,1914001952380,2050672410331,2195623739608,2349269897624,2512041233624,2684384970749,2866765697460,3059665868412,3263586314868,3479046764743,3706586372368,3946764258064,4200160057616,4467374481737,4749029885612,5045770848612,5358264764268,5687202440595,6033298710856,6397293054856,6779950230856,7182060918197,7604442370724,8047939081100,8513423456100,9001796502975,9513988526976,10050959840128,10613701481344,11203235947969,11820617938844,12466935108980,13143308835932,13850894997963,14590884764088,15364505396088,16173021062584,17017733665261,17899983677332,18821150994332,19782655797332,20785959428663,21832565280240,22924019694576,24061912878576,25247879830201,26483601278092,27770804634244,29111264959820,30506805944195,31959300897320,33470673755496,35042900100648,36678008193189,38378080018564,40145252347564,41981717810500,43889725985327,45871584499808,47929660147808,50066380019808,52284232647729,54585769164156,56973604476052,59450418453052,62018957130427,64682033926808,67442530876760,70303399878296,73267663955421,76338418535796,79518832743612,82812150707764,86221692885415,89750857401040,93403121401040,97182042424016,101091259786793,105134495986284,109315558117284,113638339306284,118106820161395,122725070238472,127497249523528,132427609931528,137520496821653,142780350529124,148211707913676,153819203924772,159607573183647,165581651582272,171746377899328,178106795433280,184668053652641,191435409863516,198414230894516,205609994799132,213028292575659,220674829904760,228555428904760,236676029904760,245042693235661,253661601039188,262539059095004,271681498666004,281095478361879,290787686021040,300764940610992,311034194147248,321602533630873,332477183004748,343665505128644,355175003773196,367013325632867,379188262357992,391707752605992,404579884111848,417812895777925,431415179783236,445395283712236,459761912703236,474523931616527,489690367222304,505270410408480,521273418408480,537708917049105,554586603018556,571916346154708,589708191753724,607972362899099,626719262811224,645959477217560,665703776743512,685963119324093,706748652636468,728071716553468,749943845618164,772376771539591,795382425709712,818972941741712,843160658029712,867958120329993,893378084363820,919433518441956,946137606110956,973503748821331,1001545568617672,1030276910850824,1059711846912200,1089864676990325,1120749932849700 mov $1,14 lpb $0,1 mov $2,$0 cal $2,59827 ; Cubes of triangular numbers: (n*(n+1)/2)^3. sub $0,1 add $1,$2 lpe sub $1,13
298.416667
3,400
0.907568
af36c2a4cf45e50b949350af43a7dfc02cfd172c
1,254
asm
Assembly
programs/oeis/013/A013928.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/013/A013928.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/013/A013928.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A013928: Number of (positive) squarefree numbers < n. ; 0,1,2,3,3,4,5,6,6,6,7,8,8,9,10,11,11,12,12,13,13,14,15,16,16,16,17,17,17,18,19,20,20,21,22,23,23,24,25,26,26,27,28,29,29,29,30,31,31,31,31,32,32,33,33,34,34,35,36,37,37,38,39,39,39,40,41,42,42,43,44,45,45,46,47,47,47,48,49,50,50,50,51,52,52,53,54,55,55,56,56,57,57,58,59,60,60,61,61,61,61,62,63,64,64,65,66,67,67,68,69,70,70,71,72,73,73,73,74,75,75,75,76,77,77,77,77,78,78,79,80,81,81,82,83,83,83,84,85,86,86,87,88,89,89,90,91,91,91,92,92,93,93,93,94,95,95,96,97,98,98,99,99,100,100,101,102,103,103,103,104,104,104,105,106,106,106,107,108,109,109,110,111,112,112,113,114,115,115,115,116,117,117,118,119,120,120,121,121,122,122,123,124,125,125,126,127,127,127,128,129,130,130,131,132,133,133,134,135,136,136,137,138,139,139,139,140,141,141,142,143,144,144,145,145,146,146,147,148,149,149,150,150,150,150,150,151,152,152,153 mov $27,$0 mov $29,$0 add $29,1 lpb $29 clr $0,27 mov $0,$27 sub $29,1 sub $0,$29 sub $0,1 cal $0,8683 ; Möbius (or Moebius) function mu(n). mu(1) = 1; mu(n) = (-1)^k if n is the product of k different primes; otherwise mu(n) = 0. sub $2,$0 add $5,$2 gcd $5,8 sub $5,5 mov $1,$5 mul $1,$5 sub $1,9 div $1,6 add $28,$1 lpe mov $1,$28 sub $1,1
48.230769
824
0.64992
e418ea833ca5523c5accf56113f80dbfce6faca3
9,352
asm
Assembly
base/mvdm/dos/v86/doskrnl/dos/msconst.asm
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
base/mvdm/dos/v86/doskrnl/dos/msconst.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
base/mvdm/dos/v86/doskrnl/dos/msconst.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
;** MSCONST.ASM ; ; Revision history ; AN000 version 4.00 Jan. 1988 ; AN007 fake version check for IBMCACHE.COM ; ; M000 added save_ax, umb_head and start_arena for umb support ; 7/9/90 ; M003 added umbflag for link/unlink UMB support. 7/18/90 ; M004 added PAS32_FLAG for MS PASCAL 3.2 comaptibility support ; 7/30/90 ; M014 added CL0FATENTRY. see pack/unpack in fat.asm for usage. ; 8/28/90 ; M044 bug #3869. Added WinoldPatch1, save area for the first ; 8 0f 16 bytes to be saved. ; ; M063 added variable allocmsave for temporarily saving ; allocmethod in msproc.asm. ; ; M068 support for copy protected apps. Added ChkCopyProt, ; A20OFF_PSP and changed A20OFF_FLAG to A20OFF_COUNT ; include mshead.asm DOSCODE SEGMENT Extrn LeaveDOS:NEAR Extrn BadCall:FAR, OKCall:FAR PUBLIC BugTyp,BugLev if DEBUG DB "BUG " ; THIS FIELD MUST BE EVEN # OF BYTES BugTyp DW TypSyscall BugLev DW LevLog else BugTyp label word BugLev label word endif include bugtyp.inc ; put this after BUGTYP definition DOSCODE ENDS Break <Initialized data and data used at DOS initialization> ; ; We need to identify the parts of the data area that are relevant to tasks ; and those that are relevant to the system as a whole. Under 3.0, the system ; data will be gathered with the system code. The process data under 2.x will ; be available for swapping and under 3.0 it will be allocated per-process. ; ; The data that is system data will be identified by [SYSTEM] in the comments ; describing that data item. ; AsmVars <Debug, Redirector, ShareF> DOSDATA SEGMENT ORG 0 ;hkn; add 4 bytes to get correct offsets since jmp has been removed in START db 4 dup (?) EVEN ; ; WANGO!!! The following word is used by SHARE and REDIR to determin data ; area compatability. This location must be incremented EACH TIME the data ; area here gets mucked with. ; ; Also, do NOT change this position relative to DOSDATA:0. ; Public MSCT001S,MSCT001E MSCT001S LABEL BYTE I_am DataVersion,WORD,<1> ;AC000; [SYSTEM] version number for DOS DATA ;hkn; add 8 bytes to get correct offsets since BugTyp, BugLev and "BUG " has ;hkn; been removed to DOSCODE above ;M044 ; First part of save area for saving last para of Window memory ; public WinoldPatch1 WinoldPatch1 db 8 dup (?) ;M044 I_am MYNUM,WORD,<0> ; [SYSTEM] A number that goes with MYNAME I_am FCBLRU,WORD,<0> ; [SYSTEM] LRU count for FCB cache I_am OpenLRU,WORD,<0> ; [SYSTEM] LRU count for FCB cache opens ; NOTE: We include the decl of OEM_HANDLER in IBM DOS even though it is not used. ; This allows the REDIRector to work on either IBM or MS-DOS. PUBLIC OEM_HANDLER OEM_HANDLER DD -1 ; [SYSTEM] Pointer to OEM handler code ; BUGBUG - who uses LeaveAddr? What if we want to rework the ;; way that we leave DOS???? - jgl I_am LeaveAddr,WORD,<<OFFSET DOSCODE:LeaveDOS>> ; [SYSTEM] I_am RetryCount,WORD,<3> ; [SYSTEM] Share retries I_am RetryLoop,WORD,<1> ; [SYSTEM] Share retries I_am LastBuffer,DWORD,<-1,-1>; [SYSTEM] Buffer queue recency pointer I_am CONTPOS,WORD ; [SYSTEM] location in buffer of next read I_am arena_head,WORD ; [SYSTEM] Segment # of first arena in memory ; The following block of data is used by SYSINIT. Do not change the order or ; size of this block PUBLIC SYSINITVAR ; [SYSTEM] SYSINITVAR LABEL WORD ; [SYSTEM] I_am DPBHEAD,DWORD ; [SYSTEM] Pointer to head of DPB-FAT list I_am sft_addr,DWORD,<<OFFSET DOSDATA:sfTabl>,?> ; [SYSTEM] Pointer to first SFT table I_am BCLOCK,DWORD ; [SYSTEM] The CLOCK device I_am BCON,DWORD ; [SYSTEM] Console device entry points I_am MAXSEC,WORD,<128> ; [SYSTEM] Maximum allowed sector size I_am BUFFHEAD,DWORD ; [SYSTEM] Pointer to head of buffer queue I_am CDSADDR,DWORD ; [SYSTEM] Pointer to curdir structure table I_am sftFCB,DWORD ; [SYSTEM] pointer to FCB cache table I_am KeepCount,WORD ; [SYSTEM] count of FCB opens to keep I_am NUMIO,BYTE ; [SYSTEM] Number of disk tables I_am CDSCOUNT,BYTE ; [SYSTEM] Number of CDS structures in above ; A fake header for the NUL device I_am NULDEV,DWORD ; [SYSTEM] Link to rest of device list DW DEVTYP OR ISNULL ; [SYSTEM] Null device attributes dw offset dosdata:SNULDEV ; [SYSTEM] Strategy entry point dw offset dosdata:INULDEV ; [SYSTEM] Interrupt entry point DB "NUL " ; [SYSTEM] Name of null device I_am Splices,BYTE,<0> ; [SYSTEM] TRUE => splices being done I_am Special_Entries,WORD,<0>; [SYSTEM] address of specail entries ;AN000; I_am UU_IFS_DOS_CALL,DWORD ; [SYSTEM] entry for IFS DOS service ;AN000; ;*** I_am UU_IFS_HEADER,DWORD ; [SYSTEM] IFS header chain ;AN000; I_am ChkCopyProt, WORD ; M068 I_am A20OFF_PSP, WORD ; M068 I_am BUFFERS_PARM1,WORD,<0> ; [SYSTEM] value of BUFFERS= ,m ;AN000; I_am BUFFERS_PARM2,WORD,<0> ; [SYSTEM] value of BUFFERS= ,n ;AN000; I_am BOOTDRIVE,BYTE ; [SYSTEM] the boot drive ;AN000; I_am DDMOVE,BYTE,<0> ; [SYSTEM] 1 if we need DWORD move ;AN000; I_am EXT_MEM_SIZE,WORD,<0> ; [SYSTEM] extended memory size ;AN000; PUBLIC HASHINITVAR ; [SYSTEM] ;AN000; HASHINITVAR LABEL WORD ; [SYSTEM] ;AN000; ; ; Replaced by next two declarations ; ; I_am UU_BUF_HASH_PTR,DWORD ; [SYSTEM] buffer Hash table ; addr ; I_am UU_BUF_HASH_COUNT,WORD,<1> ; [SYSTEM] number of Hash ; entries I_am BufferQueue,DWORD ; [SYSTEM] Head of the buffer ; Queue I_am DirtyBufferCount,WORD,<0> ; [SYSTEM] Count of Dirty ; buffers in the Que ; BUGBUG ---- change to byte I_am SC_CACHE_PTR,DWORD ; [SYSTEM] secondary cache ; pointer I_am SC_CACHE_COUNT,WORD,<0> ; [SYSTEM] secondary cache ; count I_am BuffInHMA,byte,<0> ; Flag to indicate that buffs ; are in HMA I_am LoMemBuff,dword ; Ptr to intermediate buffer ; in Low mem when buffs ; are in HMA ; ; All variables which have UU_ as prefix can be reused for other ; purposes and can be renamed. All these variables were used for ; EMS support of Buffer Manager. Now they are useless for Buffer ; manager ---- MOHANS ; I_am UU_BUF_EMS_FIRST_PAGE,3,<0,0,0> ; holds the first page above ; 640K ;** I_am UU_BUF_EMS_NPA640,WORD,<0> ; holds the number of pages ; above 640K I_am CL0FATENTRY, WORD,<-1> ; M014: Holds the data that ; is used in pack/unpack rts. ; in fat.asm if cluster 0 ; is specified. ; SR; I_am IoStatFail,BYTE,<0> ; IoStatFail has been added to ; record a fail on an I24 ; issued from IOFUNC on a ; status call. ;*** I_am UU_BUF_EMS_MODE,BYTE,<-1> ; [SYSTEM] EMS mode ;AN000; ;*** I_am UU_BUF_EMS_HANDLE,BYTE ; [SYSTEM] buffer EMS handle ;AN000; ;*** I_am UU_BUF_EMS_PAGE_FRAME,WORD ,<-1>; [SYSTEM] EMS page frame # ;AN000; ;*** I_am UU_BUF_EMS_SEG_CNT,WORD,<1> ; [SYSTEM] EMS seg count ;AN000; ;*** I_am UU_BUF_EMS_PFRAME,WORD ; [SYSTEM] EMS page frame seg address ;AN000; ;*** I_am UU_BUF_EMS_RESERV,WORD,<0> ; [SYSTEM] reserved ;AN000; ;*** I_am UU_BUF_EMS_MAP_BUFF,1,<0> ; this is not used to save the ; state of the buffers page. ; This one byte is retained to ; keep the size of this data ; block the same. I_am ALLOCMSAVE,BYTE,<0> ; M063: temp var. used to ; M063: save alloc method in ; M063: msproc.asm I_am A20OFF_COUNT,BYTE,<0> ; M068: indiactes the # of ; M068: int 21 calls for ; M068: which A20 is off I_am DOS_FLAG,BYTE,<0> ; see DOSSYM.INC for Bit ; definitions I_am UNPACK_OFFSET,WORD,<0> ; saves pointer to the start ; of unpack code in exepatch. ; asm. I_am UMBFLAG,BYTE,<0> ; M003: bit 0 indicates the ; M003: link state of the UMBs ; M003: whether linked or not ; M003: to the DOS arena chain I_am SAVE_AX,WORD,<0> ; M000: temp varibale to store ax ; M000: in msproc.asm I_am UMB_HEAD,WORD,<-1> ; M000: this is initialized to ; M000: the first umb arena by ; M000: BIOS sysinit. I_am START_ARENA,WORD,<1> ; M000: this is the first arena ; M000: from which DOS will ; M000: start its scan for alloc. .errnz ($ - SYSINITVAR) - 6ah ; kernel31 depends on this dw OFFSET DOSDATA:DosWowDataStart ; End of SYSINITVar block ; ; Sharer jump table ; PUBLIC JShare EVEN JShare LABEL DWORD DW OFFSET DOSCODE:BadCall, 0 DW OFFSET DOSCODE:OKCall, 0 ; 1 MFT_enter DW OFFSET DOSCODE:OKCall, 0 ; 2 MFTClose DW OFFSET DOSCODE:BadCall, 0 ; 3 MFTclU DW OFFSET DOSCODE:BadCall, 0 ; 4 MFTCloseP DW OFFSET DOSCODE:BadCall, 0 ; 5 MFTCloN DW OFFSET DOSCODE:BadCall, 0 ; 6 set_block DW OFFSET DOSCODE:BadCall, 0 ; 7 clr_block DW OFFSET DOSCODE:OKCall, 0 ; 8 chk_block DW OFFSET DOSCODE:BadCall, 0 ; 9 MFT_get DW OFFSET DOSCODE:BadCall, 0 ; 10 ShSave DW OFFSET DOSCODE:BadCall, 0 ; 11 ShChk DW OFFSET DOSCODE:OKCall , 0 ; 12 ShCol DW OFFSET DOSCODE:BadCall, 0 ; 13 ShCloseFile DW OFFSET DOSCODE:BadCall, 0 ; 14 ShSU MSCT001E LABEL BYTE DOSDATA ENDS
35.558935
87
0.673011
2596c93abb039d281e043a9259d0409743db4ef7
552
asm
Assembly
oeis/017/A017399.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/017/A017399.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/017/A017399.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A017399: a(n) = (11*n)^11. ; 0,285311670611,584318301411328,50542106513726817,1196683881290399744,13931233916552734375,103510234140112521216,564154396389137449973,2450808588882738675712,8953382542587164451099,28531167061100000000000,81402749386839761113321,211988959518950443450368,511324276025564512546607,1155388203804953497544704,2467876294615567236328125,5019255990031848807858176,9778171990537733621073763,18336527447218512795850752,33236030376158771102541809,58431830141132800000000000,99938258857146531850367031 pow $0,11 mul $0,285311670611
92
491
0.913043
b7241ef8973b914f16b4359b7f4c89b74c9d26aa
11,424
asm
Assembly
research/deficon/def_drawer-icon_36_279.asm
nicodex/HelloAmi
6dae73b6968cc2caaea356b7a35b0ae1dd78fe09
[ "MIT" ]
16
2019-02-14T15:47:57.000Z
2021-03-28T20:50:54.000Z
research/deficon/def_drawer-icon_36_279.asm
nicodex/HelloAmi
6dae73b6968cc2caaea356b7a35b0ae1dd78fe09
[ "MIT" ]
9
2019-01-17T09:08:30.000Z
2021-04-15T19:32:47.000Z
research/deficon/def_drawer-icon_36_279.asm
nicodex/HelloAmi
6dae73b6968cc2caaea356b7a35b0ae1dd78fe09
[ "MIT" ]
1
2019-01-04T16:19:03.000Z
2019-01-04T16:19:03.000Z
; vasmm68k_mot[_<HOST>] -Fbin -o icon_36_279/def_drawer.info def_drawer-icon_36_279.asm ; ; Default "ENV:def_drawer.info" data included in "icon 36.279 (20.4.90)". ; include deficon.inc ifne DEFICON_MEM align 1 endif defIconDrawer: dc.w $E310 ; do_Magic = WB_DISKMAGIC dc.w $0001 ; do_Version = WB_DISKVERSION dc.l 0 ; do_Gadget+gg_NextGadget dc.w 117,74 ; do_Gadget+gg_LeftEdge/gg_TopEdge dc.w 85,16 ; do_Gadget+gg_Width/gg_Height dc.w $0006 ; do_Gadget+gg_Flags = ; GFLG_GADGIMAGE ; GFLG_GADGHIMAGE dc.w $0003 ; do_Gadget+gg_Activation = ; GACT_RELVERIFY ; GACT_IMMEDIATE dc.w $0001 ; do_Gadget+gg_GadgetType = ; GTYP_BOOLGADGET DEFICON_PTR .GadgetRender ; do_Gadget+gg_GadgetRender DEFICON_PTR .SelectRender ; do_Gadget+gg_SelectRender dc.l 0 ; do_Gadget+gg_GadgetText dc.l 0 ; do_Gadget+gg_MutualExclude dc.l 0 ; do_Gadget+gg_SpecialInfo dc.w 0 ; do_Gadget+gg_GadgetID dc.l 0 ; do_Gadget+gg_UserData dc.b 2 ; do_Type = WBDRAWER dc.b 0 ; do_PAD_BYTE dc.l 0 ; do_DefaultTool dc.l 0 ; do_ToolTypes dc.l $80000000 ; do_CurrentX = NO_ICON_POSITION dc.l $80000000 ; do_CurrentY = NO_ICON_POSITION DEFICON_PTR .DrawerData ; do_DrawerData dc.l 0 ; do_ToolWindow dc.l 0 ; do_StackSize .DrawerData: dc.w 322,11 ; dd_NewWindow+nw_LeftEdge/nw_TopEdge dc.w 200,100 ; dd_NewWindow+nw_Width/nw_Height dc.b -1,-1 ; dd_NewWindow+nw_DetailPen/nw_BlockPen dc.l 0 ; dd_NewWindow+nw_IDCMPFlags dc.l $0240027F ; dd_NewWindow+nw_Flags = ; WFLG_SIZEGADGET ; WFLG_DRAGBAR ; WFLG_DEPTHGADGET ; WFLG_CLOSEGADGET ; WFLG_SIZEBRIGHT ; WFLG_SIZEBBOTTOM ; WFLG_SIMPLE_REFRESH ; WFLG_REPORTMOUSE ; $00400000 ; WFLG_WBENCHWINDOW dc.l 0 ; dd_NewWindow+nw_FirstGadget dc.l 0 ; dd_NewWindow+nw_CheckMark dc.l 0 ; dd_NewWindow+nw_Title dc.l 0 ; dd_NewWindow+nw_Screen dc.l 0 ; dd_NewWindow+nw_BitMap dc.w 90,40 ; dd_NewWindow+nw_MinWidth/nw_MinHeight dc.w 65535,65535 ; dd_NewWindow+nw_MaxWidth/nw_MaxHeight dc.w $0001 ; dd_NewWindow+nw_Type = WBENCHSCREEN dc.l 0,0 ; dd_CurrentX/CurrentY ifne DEFICON_MEM dc.l 0 ; dd_Flags dc.w 0 ; dd_ViewModes endif .GadgetRender: dc.w 0,0 ; ig_LeftEdge/ig_TopEdge dc.w 85,16 ; ig_Width/ig_Height dc.w 2 ; ig_Depth DEFICON_PTR .GadgetImage ; ig_ImageData dc.b (1<<2)-1,0 ; ig_PlanePick/ig_PlaneOnOff dc.l 0 ; ig_NextImage .GadgetImage: dc.w %0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000001,%0000000000000000 dc.w %0000111111111111,%1111111111111111,%1111111111111111,%1111111111111111,%1111111111111000,%1000000000000000 dc.w %0000110000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%1000000000000000 dc.w %0000100000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000001000,%1000000000000000 dc.w %0000100000000000,%0000000000000100,%0000000000000000,%0100000000000000,%0000000000001000,%1000000000000000 dc.w %0000100000000000,%0000000000000100,%1111111111111110,%0100000000000000,%0000000000001000,%1000000000000000 dc.w %0000100000000000,%0000000000000100,%1110101010101010,%0100000000000000,%0000000000001000,%1000000000000000 dc.w %0000100000000000,%0000000000000100,%0000000000000000,%0100000000000000,%0000000000001000,%1000000000000000 dc.w %0000100000000000,%0000000000000011,%1111111111111111,%1000000000000000,%0000000000001000,%1000000000000000 dc.w %0000100000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000001000,%1000000000000000 dc.w %0000100111111111,%1111111111111111,%1111111111111111,%1111111111111111,%1111111111111000,%1000000000000000 dc.w %0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%1000000000000000 dc.w %0000111111111111,%1111111111111111,%1111111111111111,%1111111111111111,%1111111111111111,%1000000000000000 dc.w %0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000 dc.w %0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000 dc.w %0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000 dc.w %0011111111111111,%1111111111111111,%1111111111111111,%1111111111111111,%1111111111111110,%0000000000000000 dc.w %0011000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000110,%0000000000000000 dc.w %0011001111111111,%1111111111111111,%1111111111111111,%1111111111111111,%1111111111111110,%0000000000000000 dc.w %0011011111111111,%1111111111111111,%1111111111111111,%1111111111111111,%1111111111110110,%0000000000000000 dc.w %0011011111111111,%1111111111111011,%1111111111111111,%1011111111111111,%1111111111110110,%0000000000000000 dc.w %0011011111111111,%1111111111111011,%0000000000000001,%1011111111111111,%1111111111110110,%0000000000000000 dc.w %0011011111111111,%1111111111111011,%0001010101010101,%1011111111111111,%1111111111110110,%0000000000000000 dc.w %0011011111111111,%1111111111111011,%1111111111111111,%1011111111111111,%1111111111110110,%0000000000000000 dc.w %0011011111111111,%1111111111111100,%0000000000000000,%0111111111111111,%1111111111110110,%0000000000000000 dc.w %0011011111111111,%1111111111111111,%1111111111111111,%1111111111111111,%1111111111110110,%0000000000000000 dc.w %0011011000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000110,%0000000000000000 dc.w %0011111111111111,%1111111111111111,%1111111111111111,%1111111111111111,%1111111111111110,%0000000000000000 dc.w %0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000 dc.w %0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000 dc.w %0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000 dc.w %0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000 .SelectRender: dc.w 0,0 ; ig_LeftEdge/ig_TopEdge dc.w 85,16 ; ig_Width/ig_Height dc.w 2 ; ig_Depth DEFICON_PTR .SelectImage ; ig_ImageData dc.b (1<<2)-1,0 ; ig_PlanePick/ig_PlaneOnOff dc.l 0 ; ig_NextImage .SelectImage: dc.w %0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000001,%0000000000000000 dc.w %0000111111111111,%1111111111111111,%1111111111111111,%1111111111111111,%1111111111111000,%1000000000000000 dc.w %0001100000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000100,%1000000000000000 dc.w %0011000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000011,%1000000000000000 dc.w %0111111111111111,%1111111111111111,%1111111111111111,%1111111111111111,%1111111111111111,%1000000000000000 dc.w %0100000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000001,%1000000000000000 dc.w %0100000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000001,%1010000000000000 dc.w %0100000000000000,%0000000000000100,%0000000000000000,%0100000000000000,%0000000000000001,%1010000000000000 dc.w %0100000000000000,%0000000000000100,%1111111111111110,%0100000000000000,%0000000000000001,%1010000000000000 dc.w %0100000000000000,%0000000000000100,%1110101010101010,%0100000000000000,%0000000000000001,%1010100000000000 dc.w %0100000000000000,%0000000000000100,%0000000000000000,%0100000000000000,%0000000000000001,%1010100000000000 dc.w %0100000000000000,%0000000000000011,%1111111111111111,%1000000000000000,%0000000000000001,%1010100000000000 dc.w %0100000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000001,%1010100000000000 dc.w %0111111111111111,%1111111111111111,%1111111111111111,%1111111111111111,%1111111111111110,%1010100000000000 dc.w %0000000010101010,%1010101010101010,%1010101010101010,%1010101010101010,%1010101010101010,%1010100000000000 dc.w %0000000000101010,%1010101010101010,%1010101010101010,%1010101010101010,%1010101010101010,%1010100000000000 dc.w %0011111111111111,%1111111111111111,%1111111111111111,%1111111111111111,%1111111111111110,%0000000000000000 dc.w %0011000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000110,%0000000000000000 dc.w %0010011111111111,%1111111111111111,%1111111111111111,%1111111111111111,%1111111111111010,%0000000000000000 dc.w %0000111111111111,%1111111111111111,%1111111111111111,%1111111111111111,%1111111111111100,%0000000000000000 dc.w %0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000 dc.w %0011111111111111,%1111111111111111,%1111111111111111,%1111111111111111,%1111111111111110,%0000000000000000 dc.w %0011111111111111,%1111111111111111,%1111111111111111,%1111111111111111,%1111111111111110,%0000000000000000 dc.w %0011111111111111,%1111111111111011,%1111111111111111,%1011111111111111,%1111111111111110,%0000000000000000 dc.w %0011111111111111,%1111111111111011,%0000000000000001,%1011111111111111,%1111111111111110,%0000000000000000 dc.w %0011111111111111,%1111111111111011,%0001010101010101,%1011111111111111,%1111111111111110,%0000000000000000 dc.w %0011111111111111,%1111111111111011,%1111111111111111,%1011111111111111,%1111111111111110,%0000000000000000 dc.w %0011111111111111,%1111111111111100,%0000000000000000,%0111111111111111,%1111111111111110,%0000000000000000 dc.w %0011111111111111,%1111111111111111,%1111111111111111,%1111111111111111,%1111111111111110,%0000000000000000 dc.w %0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000 dc.w %0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000 dc.w %0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000,%0000000000000000
72.303797
114
0.723389
5a3ecbc6b23bf94b36e57b30b2e58a15a7e145bc
376
asm
Assembly
programs/oeis/095/A095111.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/095/A095111.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/095/A095111.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A095111: One minus the parity of 1-fibits in Zeckendorf expansion A014417(n). ; 1,0,0,0,1,0,1,1,0,1,1,1,0,0,1,1,1,0,1,0,0,0,1,1,1,0,1,0,0,1,0,0,0,1,0,1,1,1,0,1,0,0,1,0,0,0,1,1,0,0,0,1,0,1,1,0,1,1,1,0,1,0,0,1,0,0,0,1,1,0,0,0,1,0,1,1,1,0,0,0,1,0,1,1,0,1,1,1,0,0,1,1,1,0,1,0,0,1,0,0,0,1 cal $0,95076 ; Parity of 1-fibits in Zeckendorf expansion A014417(n). mov $1,$0 cmp $1,0
53.714286
205
0.603723
00cda59e2b1a3551b4a4dc800a357dfd944047c1
5,551
asm
Assembly
src/spread/cmd_cell.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
src/spread/cmd_cell.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
src/spread/cmd_cell.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
* Spreadsheet 28/01-91 * - cell command routines section prog include win1_keys_wman include win1_keys_wstatus include win1_keys_wwork include win1_keys_err include win1_mac_oli include win1_spread_keys xdef cls_eras,cls_just,cls_justl,cls_justr xdef cls_unit,cls_msym xdef cel_cgfw,cls_prct,cls_upct xdef jst_puld xref.l mv_fnwd,mv_stms local equ $ff global equ $0 * * erase cells r_eras reg a3 cls_eras tst.l da_cbx1(a6) ; more than one cell marked? bmi.s eras_noask ; no, don't ask for confirmation movem.l r_eras,-(sp) xlea ask_eras,a3 ; ask for confirmation xjsr ask_yn movem.l (sp)+,r_eras beq.s eras_exit ; don't erase eras_noask clr.w da_saved(a6) addq.w #1,da_dupdt(a6) ; don't update the display xlea dta_rmvf,a5 ; action routine xjsr mul_blok ; ..over the block subq.w #1,da_dupdt(a6) ; update display now xjsr rdw_grid xjsr dta_cell eras_exit rts * * protect cells r_prct reg a3 cls_prct tst.l da_cbx1(a6) bmi.s prct_noask movem.l r_prct,-(sp) xlea ask_prct,a3 xjsr ask_yn movem.l (sp)+,r_prct beq.s prct_exit prct_noask clr.w da_saved(a6) addq.w #1,da_dupdt(a6) ; don't update the display xlea acc_prct,a5 ; action routine xjsr mul_blok ; ..over the block subq.w #1,da_dupdt(a6) ; update display now prct_exit rts * * unprotect cells r_upct reg a3 cls_upct tst.l da_cbx1(a6) bmi.s upct_noask movem.l r_upct,-(sp) xlea ask_upct,a3 xjsr ask_yn movem.l (sp)+,r_upct beq.s upct_exit upct_noask clr.w da_saved(a6) addq.w #1,da_dupdt(a6) ; don't update the display xlea acc_upct,a5 ; action routine xjsr mul_blok ; ..over the block subq.w #1,da_dupdt(a6) ; update display now upct_exit rts * * justfiy cells cls_justl subr a0-a5 move.w #1,d2 bra.s cls_just_l_r cls_justr subr a0-a5 move.w #-1,d2 bra.s cls_just_l_r cls_just subr a0-a5 bsr jst_puld ; request justfication window bmi.s just_exit move.w d1,d2 ; d2: justification value cls_just_l_r clr.w da_saved(a6) addq.w #1,da_dupdt(a6) ; don't update the display xlea cel_just,a5 ; justify cell.. xjsr mul_blok ; ..over the block range subq.w #1,da_dupdt(a6) ; update display now xjsr rdw_grid moveq #0,d0 just_exit subend * * units cells cls_unit subr a0-a5 move.w da_fword(a6),mv_fnwd(a6) ; assume global format move.l da_cbx0(a6),d1 ; first cell xjsr dta_vadr bne.s unit_l1 move.w val_fwrd(a3),d0 btst #fw..strg,d0 bne.s unit_l1 move.w d0,mv_fnwd(a6) unit_l1 xjsr fnm_puld ; request units window bmi.s unit_exit clr.w da_saved(a6) addq.w #1,da_dupdt(a6) ; don't update the display xjsr mon_strt move.w mv_fnwd(a6),d2 lea do_unit,a5 xjsr mul_blok xjsr mon_stop subq.w #1,da_dupdt(a6) ; update display now xjsr rdw_grid moveq #0,d0 unit_exit subend do_unit move.l d1,da_moncl(a6) xjsr is_proct beq.s dunit_x bsr.s cel_cgfw ; change format word of cell xjsr cel_calc ; recalculate cell dunit_x moveq #0,d0 rts * * symbol cells cls_msym subr a0-a5 xjsr pld_msym ; request monetary symbol bmi.s msym_exit clr.w da_saved(a6) addq.w #1,da_dupdt(a6) ; don't update the display xjsr mon_strt move.w mv_stms(a6),d2 ror.w #4,d2 lea do_msym(pc),a5 xjsr mul_blok xjsr mon_stop subq.w #1,da_dupdt(a6) ; update display now xjsr rdw_grid moveq #0,d0 msym_exit subend do_msym xjsr is_proct beq.s dsym_x move.l d1,da_moncl(a6) bsr.s cel_cgfx ; change format word of cell xjsr cel_calc ; recalculate cell dsym_x moveq #0,d0 rts *+++ * change units part format word of given cell * * Entry Exit * d1.l c|r of cell preserved * d2.w format word preserved *--- r_cgfw reg d0/d1/d2/a3 cel_cgfw movem.l r_cgfw,-(sp) xjsr is_proct beq.s cgfw_exit bsr dta_vadr bne.s cgfw_exit move.w val_fwrd(a3),d1 btst #fw..strg,d1 bne.s cgfw_exit andi.w #$ff00,d1 andi.w #$ff,d2 or.w d2,d1 move.w d1,val_fwrd(a3) cgfw_exit movem.l (sp)+,r_cgfw rts *+++ * change msymbol part of format word of given cell * * Entry Exit * d1.l c|r of cell preserved * d2.w format word preserved *--- r_cgfx reg d2/a3/d3 cel_cgfx movem.l r_cgfx,-(sp) xjsr is_proct beq.s cgfx_exit bsr dta_vadr bne.s cgfx_exit move.w val_fwrd(a3),d3 btst #fw..strg,d3 bne.s cgfx_exit andi.w #%1000111111111111,d3 andi.w #%0111000000000000,d2 or.w d2,d3 move.w d3,val_fwrd(a3) cgfx_exit movem.l (sp)+,r_cgfx rts *+++ * justification subwindow * * Entry Exit * * D1.w value justification * * error codes: err.nimp Menu extension not found * err.nc esc'aped from menu * condition codes set *--- jst_puld subr d2/d3/d5-d7/a0-a2 moveq #-1,d1 moveq #0,d2 ;;; move.b colm(a6),d2 xlea met_mjsr,a0 move.l a0,d5 xlea met_mjsl,a0 move.l a0,d6 moveq.l #0,d7 xlea met_cjst,a0 xlea met_mjst,a2 xjsr mu_selct bne.s puld_exit tst.w d3 beq.s puld_no moveq #1,d1 subq.w #1,d3 bne.s puld_exit neg.w d1 puld_exit tst.l d0 subend puld_no moveq #err.nc,d0 bra.s puld_exit end
18.081433
60
0.635561
1c69b8f2a06b712482d40487e8fbd9e8488ea4ab
23,230
asm
Assembly
ftm/yakra.asm
zeta0134/bhop
d083a65431847e5a30ff5c7eaa045d43d78701ac
[ "MIT-0" ]
4
2021-07-18T18:44:10.000Z
2021-12-09T03:38:04.000Z
ftm/yakra.asm
zeta0134/bhop
d083a65431847e5a30ff5c7eaa045d43d78701ac
[ "MIT-0" ]
null
null
null
ftm/yakra.asm
zeta0134/bhop
d083a65431847e5a30ff5c7eaa045d43d78701ac
[ "MIT-0" ]
1
2021-08-22T22:18:59.000Z
2021-08-22T22:18:59.000Z
; Dn-FamiTracker exported music data: yakra.0cc ; ; Module header .word ft_song_list .word ft_instrument_list .word ft_sample_list .word ft_samples .word ft_groove_list .byte 0 ; flags .word 3600 ; NTSC speed .word 3000 ; PAL speed ; Instrument pointer list ft_instrument_list: .word ft_inst_0 .word ft_inst_1 .word ft_inst_2 .word ft_inst_3 .word ft_inst_4 .word ft_inst_5 .word ft_inst_6 .word ft_inst_7 .word ft_inst_8 .word ft_inst_9 .word ft_inst_10 .word ft_inst_11 .word ft_inst_12 .word ft_inst_13 .word ft_inst_14 .word ft_inst_15 .word ft_inst_16 .word ft_inst_17 .word ft_inst_18 .word ft_inst_19 ; Instruments ft_inst_0: .byte 0 .byte $11 .word ft_seq_2a03_0 .word ft_seq_2a03_4 ft_inst_1: .byte 0 .byte $15 .word ft_seq_2a03_5 .word ft_seq_2a03_2 .word ft_seq_2a03_9 ft_inst_2: .byte 0 .byte $11 .word ft_seq_2a03_10 .word ft_seq_2a03_14 ft_inst_3: .byte 0 .byte $00 ft_inst_4: .byte 0 .byte $07 .word ft_seq_2a03_15 .word ft_seq_2a03_11 .word ft_seq_2a03_7 ft_inst_5: .byte 0 .byte $03 .word ft_seq_2a03_20 .word ft_seq_2a03_16 ft_inst_6: .byte 0 .byte $03 .word ft_seq_2a03_25 .word ft_seq_2a03_21 ft_inst_7: .byte 0 .byte $13 .word ft_seq_2a03_30 .word ft_seq_2a03_26 .word ft_seq_2a03_19 ft_inst_8: .byte 0 .byte $03 .word ft_seq_2a03_35 .word ft_seq_2a03_21 ft_inst_9: .byte 0 .byte $17 .word ft_seq_2a03_5 .word ft_seq_2a03_31 .word ft_seq_2a03_2 .word ft_seq_2a03_4 ft_inst_10: .byte 0 .byte $11 .word ft_seq_2a03_40 .word ft_seq_2a03_4 ft_inst_11: .byte 0 .byte $13 .word ft_seq_2a03_0 .word ft_seq_2a03_31 .word ft_seq_2a03_4 ft_inst_12: .byte 0 .byte $15 .word ft_seq_2a03_0 .word ft_seq_2a03_12 .word ft_seq_2a03_29 ft_inst_13: .byte 0 .byte $03 .word ft_seq_2a03_45 .word ft_seq_2a03_36 ft_inst_14: .byte 0 .byte $03 .word ft_seq_2a03_50 .word ft_seq_2a03_41 ft_inst_15: .byte 0 .byte $07 .word ft_seq_2a03_35 .word ft_seq_2a03_11 .word ft_seq_2a03_7 ft_inst_16: .byte 0 .byte $13 .word ft_seq_2a03_60 .word ft_seq_2a03_51 .word ft_seq_2a03_24 ft_inst_17: .byte 0 .byte $13 .word ft_seq_2a03_70 .word ft_seq_2a03_61 .word ft_seq_2a03_19 ft_inst_18: .byte 0 .byte $15 .word ft_seq_2a03_75 .word ft_seq_2a03_2 .word ft_seq_2a03_9 ft_inst_19: .byte 0 .byte $15 .word ft_seq_2a03_80 .word ft_seq_2a03_12 .word ft_seq_2a03_29 ; Sequences ft_seq_2a03_0: .byte $03, $FF, $00, $00, $0F, $0D, $0E ft_seq_2a03_2: .byte $17, $0B, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $03, $01, $01, $FF, $FF .byte $FD, $FD, $FF, $FF, $01, $01, $03 ft_seq_2a03_4: .byte $01, $FF, $00, $00, $01 ft_seq_2a03_5: .byte $0E, $FF, $00, $00, $06, $0A, $09, $0D, $0B, $0C, $0B, $0B, $0C, $0D, $0D, $0D, $0D, $0D ft_seq_2a03_7: .byte $10, $08, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $01, $01, $FF, $FF, $FF, $FF, $01, $01 ft_seq_2a03_9: .byte $04, $FF, $00, $00, $01, $00, $00, $00 ft_seq_2a03_10: .byte $01, $FF, $00, $00, $04 ft_seq_2a03_11: .byte $02, $FF, $00, $01, $26, $23 ft_seq_2a03_12: .byte $0C, $02, $00, $00, $00, $00, $FF, $FE, $00, $02, $01, $01, $02, $00, $FE, $FF ft_seq_2a03_14: .byte $01, $FF, $00, $00, $00 ft_seq_2a03_15: .byte $01, $FF, $00, $00, $0F ft_seq_2a03_16: .byte $0C, $FF, $00, $01, $0C, $09, $0A, $0A, $0A, $0B, $0B, $0B, $0C, $0C, $0D, $0D ft_seq_2a03_19: .byte $02, $FF, $00, $00, $01, $00 ft_seq_2a03_20: .byte $02, $FF, $00, $00, $0D, $00 ft_seq_2a03_21: .byte $02, $FF, $00, $01, $31, $2C ft_seq_2a03_24: .byte $02, $FF, $00, $00, $01, $00 ft_seq_2a03_25: .byte $01, $FF, $00, $00, $0F ft_seq_2a03_26: .byte $02, $01, $00, $01, $05, $0C ft_seq_2a03_29: .byte $03, $FF, $00, $00, $02, $00, $01 ft_seq_2a03_30: .byte $0A, $FF, $00, $00, $0D, $0D, $0A, $08, $07, $05, $04, $03, $01, $00 ft_seq_2a03_31: .byte $03, $01, $00, $02, $00, $07, $F9 ft_seq_2a03_35: .byte $03, $FF, $00, $00, $0F, $0F, $00 ft_seq_2a03_36: .byte $04, $FF, $00, $02, $00, $FD, $FE, $FF ft_seq_2a03_40: .byte $03, $FF, $00, $00, $0D, $0E, $06 ft_seq_2a03_41: .byte $03, $02, $00, $01, $09, $0B, $0C ft_seq_2a03_45: .byte $05, $FF, $00, $00, $0F, $0F, $0F, $0F, $00 ft_seq_2a03_50: .byte $39, $FF, $00, $00, $0E, $0C, $0B, $0A, $0A, $09, $08, $08, $07, $07, $06, $06, $05, $05, $05, $05 .byte $04, $04, $04, $03, $03, $03, $02, $02, $02, $02, $01, $01, $01, $01, $01, $00, $00, $00, $00, $00 .byte $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 .byte $00 ft_seq_2a03_51: .byte $02, $01, $00, $01, $0B, $0D ft_seq_2a03_60: .byte $09, $FF, $00, $00, $0C, $09, $08, $07, $05, $04, $03, $03, $00 ft_seq_2a03_61: .byte $02, $01, $00, $01, $05, $0C ft_seq_2a03_70: .byte $0E, $FF, $00, $00, $0D, $0D, $0A, $0D, $07, $05, $08, $03, $01, $00, $00, $00, $00, $00 ft_seq_2a03_75: .byte $09, $FF, $00, $00, $0C, $0B, $0B, $0C, $0D, $0D, $0D, $0D, $0D ft_seq_2a03_80: .byte $0F, $FF, $00, $00, $0F, $07, $0F, $07, $0F, $07, $0F, $07, $0F, $07, $0F, $07, $0F, $07, $0E ; DPCM instrument list (pitch, sample index) ft_sample_list: ; DPCM samples list (location, size, bank) ft_samples: ; Groove list ft_groove_list: .byte $00 ; Grooves (size, terms) ; Song pointer list ft_song_list: .word ft_song_0 ; Song info ft_song_0: .word ft_s0_frames .byte 14 ; frame count .byte 48 ; pattern length .byte 4 ; speed .byte 180 ; tempo .byte 0 ; groove position .byte 0 ; initial bank ; ; Pattern and frame data for all songs below ; ; Bank 0 ft_s0_frames: .word ft_s0f0 .word ft_s0f1 .word ft_s0f2 .word ft_s0f3 .word ft_s0f4 .word ft_s0f5 .word ft_s0f6 .word ft_s0f7 .word ft_s0f8 .word ft_s0f9 .word ft_s0f10 .word ft_s0f11 .word ft_s0f12 .word ft_s0f13 ft_s0f0: .word ft_s0p6c0, ft_s0p10c1, ft_s0p10c2, ft_s0p3c3, ft_s0p0c4 ft_s0f1: .word ft_s0p7c0, ft_s0p11c1, ft_s0p11c2, ft_s0p8c3, ft_s0p0c4 ft_s0f2: .word ft_s0p0c0, ft_s0p0c1, ft_s0p0c2, ft_s0p0c3, ft_s0p0c4 ft_s0f3: .word ft_s0p0c0, ft_s0p1c1, ft_s0p2c2, ft_s0p1c3, ft_s0p0c4 ft_s0f4: .word ft_s0p0c0, ft_s0p0c1, ft_s0p0c2, ft_s0p0c3, ft_s0p0c4 ft_s0f5: .word ft_s0p0c0, ft_s0p2c1, ft_s0p8c2, ft_s0p2c3, ft_s0p0c4 ft_s0f6: .word ft_s0p1c0, ft_s0p3c1, ft_s0p1c2, ft_s0p0c3, ft_s0p0c4 ft_s0f7: .word ft_s0p1c0, ft_s0p4c1, ft_s0p3c2, ft_s0p1c3, ft_s0p0c4 ft_s0f8: .word ft_s0p1c0, ft_s0p3c1, ft_s0p1c2, ft_s0p0c3, ft_s0p0c4 ft_s0f9: .word ft_s0p1c0, ft_s0p5c1, ft_s0p9c2, ft_s0p2c3, ft_s0p0c4 ft_s0f10: .word ft_s0p2c0, ft_s0p6c1, ft_s0p4c2, ft_s0p4c3, ft_s0p0c4 ft_s0f11: .word ft_s0p3c0, ft_s0p7c1, ft_s0p5c2, ft_s0p5c3, ft_s0p0c4 ft_s0f12: .word ft_s0p4c0, ft_s0p8c1, ft_s0p6c2, ft_s0p6c3, ft_s0p0c4 ft_s0f13: .word ft_s0p5c0, ft_s0p9c1, ft_s0p7c2, ft_s0p7c3, ft_s0p0c4 ; Bank 0 ft_s0p0c0: .byte $82, $00, $E0, $F8, $2C, $E2, $FF, $1B, $E0, $F6, $27, $F1, $2C, $F6, $25, $E2, $FF, $1B, $E0, $F7 .byte $23, $F1, $25, $F6, $25, $F1, $23, $F5, $27, $E2, $FF, $1B, $E0, $F8, $2D, $E2, $FF, $1E, $E0, $F6 .byte $28, $E2, $FF, $1E, $E0, $F6, $24, $E2, $FF, $1E, $E0, $F8, $2D, $E2, $FF, $1E, $E0, $F6, $28, $F1 .byte $2D, $F6, $24, $E2, $FF, $1B, $E0, $F8, $2C, $E2, $FF, $1B, $E0, $F6, $27, $F1, $2C, $F6, $25, $E2 .byte $FF, $1B, $E0, $F7, $23, $F1, $25, $F6, $25, $F1, $23, $F5, $27, $E2, $FF, $1B, $E0, $F8, $2F, $E2 .byte $FF, $1C, $E0, $F6, $2A, $E2, $FF, $1C, $E0, $F6, $25, $E2, $FF, $1C, $E0, $F8, $2D, $E2, $FF, $19 .byte $E0, $F6, $28, $E2, $FF, $19, $E0, $F6, $23, $83, $E2, $FF, $19, $00 ; Bank 0 ft_s0p0c1: .byte $E2, $FF, $1B, $00, $7F, $02, $E1, $FA, $20, $00, $F1, $00, $00, $FC, $20, $01, $F1, $00, $01, $FA .byte $20, $00, $F1, $00, $00, $FC, $27, $04, $FB, $00, $00, $FA, $00, $00, $F9, $00, $00, $F1, $00, $01 .byte $FA, $20, $00, $F1, $00, $00, $FC, $27, $01, $F1, $00, $01, $FA, $20, $00, $F1, $00, $00, $FC, $27 .byte $08, $FB, $00, $00, $FA, $00, $00, $F9, $00, $00, $F1, $00, $01, $82, $00, $80, $24, $FA, $27, $F1 .byte $00, $FB, $28, $83, $F1, $00, $00 ; Bank 0 ft_s0p0c2: .byte $E4, $14, $00, $E3, $14, $01, $7F, $00, $E4, $14, $01, $E6, $20, $02, $7F, $00, $E4, $14, $00, $7F .byte $00, $12, $01, $7F, $01, $12, $01, $E8, $25, $03, $E4, $14, $01, $14, $00, $E3, $14, $01, $7F, $00 .byte $E4, $14, $01, $E6, $20, $02, $82, $00, $7F, $E4, $14, $7F, $15, $83, $E3, $15, $02, $E4, $15, $00 .byte $7F, $00, $E6, $12, $03, $E5, $12, $00, $7F, $00 ; Bank 0 ft_s0p0c3: .byte $E5, $FF, $1D, $03, $1D, $01, $80, $22, $1D, $03, $E5, $1D, $01, $1D, $03, $1D, $01, $E7, $FC, $1D .byte $00, $F5, $00, $00, $80, $20, $FF, $1D, $01, $E5, $1D, $01, $1D, $03, $1D, $01, $80, $22, $1D, $03 .byte $E5, $1D, $01, $1D, $03, $1D, $01, $E7, $FC, $1D, $00, $F5, $00, $00, $80, $20, $FF, $1D, $01, $E5 .byte $1D, $01 ; Bank 0 ft_s0p0c4: .byte $00, $2F ; Bank 0 ft_s0p1c0: .byte $82, $00, $E0, $F8, $2F, $E2, $FF, $1E, $E0, $F6, $2A, $F1, $2F, $F6, $28, $E2, $FF, $1E, $E0, $F7 .byte $27, $F1, $28, $F6, $28, $F1, $26, $F5, $2A, $E2, $FF, $1E, $E0, $F8, $30, $E2, $FF, $21, $E0, $F6 .byte $2B, $E2, $FF, $21, $E0, $F6, $26, $E2, $FF, $21, $E0, $F8, $30, $E2, $FF, $21, $E0, $F6, $2B, $F1 .byte $30, $F6, $26, $E2, $FF, $1E, $E0, $F8, $2F, $E2, $FF, $1E, $E0, $F6, $2A, $F1, $2F, $F6, $28, $E2 .byte $FF, $1E, $E0, $F7, $27, $F1, $28, $F6, $28, $F1, $26, $F5, $2A, $E2, $FF, $1E, $E0, $F8, $32, $E2 .byte $FF, $1F, $E0, $F6, $2D, $E2, $FF, $1F, $E0, $F6, $28, $E2, $FF, $1F, $E0, $F8, $30, $E2, $FF, $1C .byte $E0, $F6, $2B, $E2, $FF, $1C, $E0, $F6, $26, $83, $E2, $FF, $1C, $00 ; Bank 0 ft_s0p1c1: .byte $E1, $FC, $2A, $04, $F1, $00, $00, $FB, $25, $04, $F1, $00, $00, $FB, $28, $02, $F1, $00, $00, $FA .byte $27, $02, $F1, $00, $00, $FA, $25, $02, $82, $00, $F1, $00, $80, $24, $FA, $23, $F1, $00, $FA, $23 .byte $F1, $00, $FB, $25, $F8, $00, $83, $E1, $FC, $27, $08, $FB, $00, $00, $FA, $00, $00, $F9, $00, $00 .byte $F1, $00, $05 ; Bank 0 ft_s0p1c2: .byte $E4, $17, $00, $E3, $17, $01, $7F, $00, $E4, $17, $01, $E6, $23, $02, $7F, $00, $E4, $17, $00, $7F .byte $00, $15, $01, $7F, $01, $15, $01, $E8, $28, $03, $E4, $17, $01, $17, $00, $E3, $17, $01, $7F, $00 .byte $E4, $17, $01, $E6, $23, $02, $82, $00, $7F, $E4, $17, $7F, $18, $83, $E3, $18, $02, $E4, $18, $00 .byte $7F, $00, $E6, $15, $03, $E5, $15, $00, $7F, $00 ; Bank 0 ft_s0p1c3: .byte $E5, $FF, $1D, $03, $1D, $01, $80, $22, $1D, $03, $E5, $1D, $01, $1D, $03, $1D, $01, $E7, $FC, $1D .byte $00, $F5, $00, $00, $80, $20, $FF, $1D, $01, $E5, $1D, $01, $1D, $03, $1D, $01, $80, $22, $1D, $03 .byte $E5, $1D, $01, $1D, $03, $82, $01, $1D, $E7, $1D, $1D, $83, $1D, $01 ; Bank 0 ft_s0p2c0: .byte $82, $00, $E0, $F9, $33, $F1, $26, $F7, $2E, $F1, $33, $F7, $29, $F1, $2E, $F9, $33, $F1, $29, $F7 .byte $2E, $F1, $33, $F7, $29, $F1, $2E, $FA, $32, $FA, $00, $F9, $00, $F8, $00, $F7, $00, $F1, $00, $F9 .byte $33, $F1, $32, $F7, $2E, $F1, $33, $F7, $29, $F1, $2E, $F9, $32, $F6, $00, $F7, $00, $F8, $00, $F9 .byte $00, $F1, $00, $F9, $35, $F9, $00, $F8, $00, $F7, $00, $F6, $00, $F1, $00, $F9, $33, $F1, $35, $F8 .byte $35, $F1, $33, $F8, $33, $F1, $35, $F9, $2E, $F1, $33, $F8, $29, $F1, $2E, $F8, $24, $83, $F1, $29 .byte $00 ; Bank 0 ft_s0p2c1: .byte $E1, $FC, $2A, $04, $F1, $00, $00, $FB, $25, $04, $F1, $00, $00, $FB, $28, $02, $F1, $00, $00, $FA .byte $27, $02, $F1, $00, $00, $FA, $25, $02, $82, $00, $F1, $00, $80, $24, $FA, $24, $F1, $00, $FA, $24 .byte $F1, $00, $FB, $25, $F8, $00, $83, $E1, $FC, $27, $07, $FB, $00, $00, $FA, $00, $00, $F9, $00, $00 .byte $F1, $00, $06 ; Bank 0 ft_s0p2c2: .byte $E4, $14, $00, $E3, $14, $01, $7F, $00, $E4, $14, $01, $E6, $20, $02, $7F, $00, $E4, $14, $00, $7F .byte $00, $12, $01, $7F, $01, $12, $01, $E8, $25, $03, $E4, $14, $01, $14, $00, $E3, $14, $01, $7F, $00 .byte $E4, $14, $01, $E6, $20, $02, $82, $00, $7F, $E4, $14, $7F, $15, $83, $E3, $15, $02, $E4, $15, $00 .byte $7F, $00, $E6, $12, $01, $12, $01, $E5, $12, $00, $7F, $00 ; Bank 0 ft_s0p2c3: .byte $E5, $FF, $1D, $03, $1D, $01, $80, $22, $1D, $03, $E5, $1D, $01, $1D, $03, $1D, $01, $E7, $FC, $1D .byte $00, $F5, $00, $00, $80, $20, $FF, $1D, $01, $E5, $1D, $01, $F9, $1D, $03, $82, $01, $F7, $1D, $F9 .byte $1D, $F7, $1D, $F7, $1D, $83, $F9, $1D, $03, $F7, $1D, $01, $EE, $FF, $1D, $05 ; Bank 0 ft_s0p3c0: .byte $82, $00, $E0, $F9, $32, $F1, $25, $F7, $2D, $F1, $32, $F7, $28, $F1, $2D, $F9, $32, $F1, $28, $F7 .byte $2D, $F1, $32, $F7, $28, $F1, $2D, $FA, $31, $FA, $00, $F9, $00, $F8, $00, $F7, $00, $F1, $00, $F9 .byte $32, $F1, $31, $F7, $2D, $F1, $32, $F7, $28, $F1, $2D, $F9, $31, $F6, $00, $F7, $00, $F8, $00, $F9 .byte $00, $F1, $00, $F9, $34, $F9, $00, $F8, $00, $F7, $00, $F6, $00, $F1, $00, $F9, $32, $F1, $34, $F8 .byte $34, $F1, $32, $F8, $32, $F1, $34, $F9, $2D, $F1, $32, $F8, $28, $F1, $2D, $F8, $23, $83, $F1, $28 .byte $00 ; Bank 0 ft_s0p3c1: .byte $E1, $FF, $1E, $00, $7F, $02, $FA, $23, $00, $F1, $00, $00, $FC, $23, $01, $F1, $00, $01, $FA, $23 .byte $00, $F1, $00, $00, $FC, $2A, $04, $FB, $00, $00, $FA, $00, $00, $F9, $00, $00, $F1, $00, $01, $FA .byte $23, $00, $F1, $00, $00, $FC, $2A, $01, $F1, $00, $01, $FA, $23, $00, $F1, $00, $00, $FC, $2A, $08 .byte $FB, $00, $00, $FA, $00, $00, $F9, $00, $00, $F1, $00, $01, $82, $00, $80, $24, $FA, $2A, $F1, $00 .byte $FB, $2B, $83, $F1, $00, $00 ; Bank 0 ft_s0p3c2: .byte $E4, $17, $00, $E3, $17, $01, $7F, $00, $E4, $17, $01, $E6, $23, $02, $7F, $00, $E4, $17, $00, $7F .byte $00, $15, $01, $7F, $01, $15, $01, $E8, $28, $03, $E4, $17, $01, $17, $00, $E3, $17, $01, $7F, $00 .byte $E4, $17, $01, $E6, $23, $02, $82, $00, $7F, $E4, $17, $7F, $18, $83, $E3, $18, $02, $E4, $18, $00 .byte $7F, $00, $E6, $15, $01, $15, $01, $E5, $15, $00, $7F, $00 ; Bank 0 ft_s0p3c3: .byte $EE, $FF, $1D, $05, $82, $01, $E5, $F8, $1D, $FA, $1D, $FC, $1D, $FF, $1D, $FF, $1D, $FF, $1D, $83 .byte $E7, $FF, $1D, $03, $E5, $1D, $19 ; Bank 0 ft_s0p4c0: .byte $82, $00, $E0, $F9, $25, $F1, $23, $F7, $23, $F1, $25, $F7, $25, $F1, $23, $F9, $27, $F1, $25, $F7 .byte $25, $F1, $27, $F7, $27, $F1, $25, $FA, $28, $F1, $27, $F8, $27, $F1, $28, $F8, $28, $F1, $27, $FA .byte $2A, $F1, $28, $F8, $28, $F1, $2A, $F8, $2A, $F1, $28, $FA, $2C, $F1, $2A, $F8, $2A, $F1, $2C, $F8 .byte $2C, $F1, $2A, $EC, $F9, $2E, $F9, $00, $F8, $00, $F7, $00, $83, $F0, $00, $01, $82, $00, $E0, $FB .byte $2F, $F1, $2E, $F9, $2E, $F1, $2F, $F9, $2F, $F1, $2E, $EC, $FB, $31, $FB, $00, $FA, $00, $F9, $00 .byte $83, $F0, $00, $01 ; Bank 0 ft_s0p4c1: .byte $E1, $FC, $2D, $04, $F1, $00, $00, $FB, $28, $04, $F1, $00, $00, $FB, $2B, $02, $F1, $00, $00, $FA .byte $2A, $02, $F1, $00, $00, $FA, $28, $02, $82, $00, $F1, $00, $80, $24, $FA, $26, $F1, $00, $FA, $26 .byte $F1, $00, $FB, $28, $F8, $00, $83, $E1, $FC, $2A, $08, $FB, $00, $00, $FA, $00, $00, $F9, $00, $00 .byte $F1, $00, $05 ; Bank 0 ft_s0p4c2: .byte $E6, $21, $01, $7F, $01, $82, $00, $E4, $21, $7F, $25, $7F, $27, $7F, $2C, $7F, $83, $E6, $2B, $04 .byte $82, $00, $7F, $E4, $22, $7F, $EF, $22, $7F, $E3, $22, $7F, $83, $E6, $2B, $04, $7F, $00, $2E, $04 .byte $7F, $00, $E3, $2B, $00, $22, $00, $E4, $22, $01, $EF, $22, $01, $ED, $26, $00, $E3, $20, $00, $E4 .byte $20, $01, $EF, $20, $01 ; Bank 0 ft_s0p4c3: .byte $EE, $FF, $1D, $03, $82, $01, $F8, $1D, $E5, $FD, $1D, $FE, $1D, $FF, $1D, $83, $EE, $1D, $05, $E7 .byte $1D, $01, $1D, $01, $1D, $01, $EE, $FF, $1D, $05, $FC, $1D, $05, $82, $01, $E5, $FA, $1D, $F6, $1D .byte $F6, $1D, $F9, $1D, $F8, $1D, $83, $F8, $1D, $01 ; Bank 0 ft_s0p5c0: .byte $82, $00, $80, $26, $FD, $33, $F9, $00, $F8, $00, $F7, $00, $83, $F0, $00, $01, $82, $00, $FC, $33 .byte $F9, $00, $F8, $00, $F7, $00, $83, $F0, $00, $01, $82, $00, $EA, $F6, $29, $F7, $2A, $F8, $2C, $F9 .byte $2E, $FA, $2F, $FB, $31, $80, $26, $FD, $33, $F9, $00, $F8, $00, $F7, $00, $83, $F0, $00, $01, $82 .byte $00, $FC, $33, $F9, $00, $F8, $00, $F7, $00, $83, $F0, $00, $01, $82, $00, $EA, $F6, $29, $F7, $2A .byte $F8, $2C, $F9, $2E, $FA, $2F, $FB, $31, $80, $26, $F8, $33, $F0, $00, $F9, $33, $F0, $00, $FA, $33 .byte $F0, $00, $FD, $33, $F9, $00, $F8, $00, $F7, $00, $F0, $00, $83, $86, $03, $00, $00 ; Bank 0 ft_s0p5c1: .byte $E1, $FC, $2D, $04, $F1, $00, $00, $FB, $28, $04, $F1, $00, $00, $FB, $2B, $02, $F1, $00, $00, $FA .byte $2A, $02, $F1, $00, $00, $FA, $28, $02, $82, $00, $F1, $00, $80, $24, $FA, $27, $F1, $00, $FA, $27 .byte $F1, $00, $FB, $28, $F8, $00, $83, $FC, $2A, $08, $FB, $00, $00, $FA, $00, $00, $F9, $00, $00, $F1 .byte $00, $05 ; Bank 0 ft_s0p5c2: .byte $E6, $20, $01, $7F, $01, $82, $00, $E4, $20, $7F, $24, $7F, $26, $7F, $2B, $7F, $83, $E6, $2A, $04 .byte $82, $00, $7F, $E4, $21, $7F, $EF, $21, $7F, $E3, $21, $7F, $83, $E6, $2A, $04, $7F, $00, $2D, $04 .byte $7F, $00, $E3, $2B, $00, $21, $00, $E4, $21, $01, $EF, $21, $01, $ED, $26, $00, $E3, $1F, $00, $E4 .byte $1F, $01, $EF, $1F, $01 ; Bank 0 ft_s0p5c3: .byte $E7, $FF, $1D, $03, $82, $01, $E5, $FC, $1D, $FC, $1D, $FD, $1D, $FD, $1D, $83, $EE, $FF, $1D, $05 .byte $E7, $1D, $01, $1D, $01, $1D, $01, $EE, $FF, $1D, $05, $FC, $1D, $05, $82, $01, $E5, $FA, $1D, $F6 .byte $1D, $F6, $1D, $F9, $1D, $F6, $1D, $83, $F6, $1D, $01 ; Bank 0 ft_s0p6c0: .byte $82, $00, $E0, $FD, $37, $F1, $00, $FA, $32, $F1, $37, $FB, $2D, $F1, $32, $FB, $2C, $F1, $2D, $FC .byte $31, $F1, $2C, $FD, $36, $F1, $31, $FD, $35, $F1, $36, $FA, $30, $F1, $35, $FB, $2B, $F1, $30, $FB .byte $2A, $F1, $2B, $FC, $2F, $F1, $2A, $FD, $34, $86, $02, $F1, $2F, $83, $FB, $33, $17 ; Bank 0 ft_s0p6c1: .byte $80, $24, $F8, $20, $01, $7F, $01, $82, $00, $20, $7F, $20, $7F, $20, $7F, $20, $7F, $E0, $F8, $2D .byte $F8, $00, $F7, $00, $F6, $00, $F5, $00, $7F, $80, $24, $F8, $20, $7F, $20, $7F, $20, $7F, $E0, $F7 .byte $2D, $F4, $00, $F5, $00, $F6, $00, $F7, $00, $7F, $F7, $30, $F7, $00, $F6, $00, $F5, $00, $F4, $00 .byte $7F, $83, $80, $24, $F8, $1D, $03, $7F, $01, $F8, $20, $03, $7F, $01 ; Bank 0 ft_s0p6c2: .byte $E4, $1E, $03, $EF, $1E, $01, $E4, $22, $03, $EF, $22, $01, $E4, $21, $03, $EF, $21, $01, $E4, $20 .byte $03, $EF, $20, $01, $82, $00, $E6, $1B, $9B, $02, $00, $1B, $9B, $02, $00, $1B, $9B, $02, $00, $83 .byte $20, $03, $7F, $01, $82, $00, $1D, $9B, $02, $00, $1D, $9B, $02, $00, $1D, $9B, $02, $00, $83, $23 .byte $01, $23, $01, $E8, $23, $01 ; Bank 0 ft_s0p6c3: .byte $E5, $FF, $1D, $03, $1D, $01, $80, $20, $FC, $1D, $03, $E5, $FF, $1D, $01, $1D, $03, $1D, $01, $80 .byte $20, $FC, $1D, $03, $82, $01, $E5, $FF, $1D, $E7, $FC, $1D, $FC, $1D, $FC, $1D, $83, $EE, $FF, $1D .byte $05, $82, $01, $E7, $FC, $1D, $FC, $1D, $FC, $1D, $FF, $1D, $FF, $1D, $83, $FA, $1D, $01 ; Bank 0 ft_s0p7c0: .byte $E0, $FC, $33, $01, $F8, $00, $02, $F9, $00, $02, $FA, $00, $03, $82, $05, $EC, $F9, $33, $F8, $00 .byte $F7, $00, $F6, $00, $83, $F5, $00, $03, $82, $01, $F4, $00, $F3, $00, $F2, $00, $83, $F1, $00, $01 ; Bank 0 ft_s0p7c1: .byte $80, $24, $F8, $1F, $01, $7F, $01, $82, $00, $1F, $7F, $1F, $7F, $1F, $7F, $1F, $7F, $E0, $F8, $2C .byte $F8, $00, $F7, $00, $F6, $00, $F5, $00, $7F, $80, $24, $F8, $1F, $7F, $1F, $7F, $1F, $7F, $E0, $F7 .byte $2C, $F4, $00, $F5, $00, $F6, $00, $F7, $00, $7F, $F7, $2F, $F7, $00, $F6, $00, $F5, $00, $F4, $00 .byte $7F, $83, $80, $24, $F8, $1C, $03, $7F, $01, $F8, $1F, $03, $7F, $01 ; Bank 0 ft_s0p7c2: .byte $82, $00, $ED, $2B, $E3, $9B, $02, $25, $ED, $26, $E3, $9B, $02, $25, $ED, $1F, $7F, $2B, $E3, $9B .byte $02, $25, $ED, $26, $E3, $9B, $02, $25, $ED, $1F, $7F, $83, $E8, $25, $03, $EF, $25, $01, $E6, $25 .byte $03, $7F, $01, $25, $03, $EF, $25, $01, $E8, $25, $05, $82, $00, $E6, $25, $9B, $02, $00, $25, $9B .byte $02, $00, $25, $9B, $02, $00, $83, $25, $01, $25, $01, $E8, $25, $01 ; Bank 0 ft_s0p7c3: .byte $82, $01, $E5, $FF, $1D, $1D, $1D, $1D, $1D, $1D, $83, $EE, $1D, $03, $F7, $1D, $01, $E7, $FF, $1D .byte $05, $1D, $03, $E5, $1D, $01, $EE, $1D, $05, $82, $01, $E7, $FD, $1D, $FD, $1D, $FD, $1D, $FE, $1D .byte $FF, $1D, $83, $FF, $1D, $01 ; Bank 0 ft_s0p8c1: .byte $82, $00, $EB, $F8, $1B, $F6, $00, $F4, $00, $F2, $00, $83, $F1, $00, $01, $82, $00, $F9, $1D, $F7 .byte $00, $F5, $00, $F3, $00, $83, $F1, $00, $01, $82, $00, $FA, $1E, $F8, $00, $F6, $00, $F4, $00, $83 .byte $F1, $00, $01, $82, $00, $FB, $20, $F9, $00, $F7, $00, $F5, $00, $83, $F1, $00, $01, $82, $00, $E0 .byte $F8, $25, $F1, $00, $F8, $25, $F1, $00, $F8, $25, $F1, $00, $EC, $F9, $29, $F9, $00, $F8, $00, $F7 .byte $00, $83, $F0, $00, $01, $82, $00, $E0, $F9, $28, $F1, $00, $F9, $28, $F1, $00, $F9, $28, $F1, $00 .byte $EC, $FA, $2C, $FA, $00, $F9, $00, $F8, $00, $83, $F0, $00, $01 ; Bank 0 ft_s0p8c2: .byte $E4, $14, $00, $E3, $14, $01, $7F, $00, $E4, $14, $01, $E6, $20, $02, $7F, $00, $E4, $14, $00, $7F .byte $00, $12, $01, $7F, $01, $12, $01, $E8, $25, $03, $E4, $14, $01, $82, $00, $ED, $2B, $E3, $14, $E4 .byte $14, $7F, $83, $14, $01, $82, $00, $ED, $26, $E3, $20, $E4, $20, $7F, $20, $7F, $ED, $2B, $E3, $15 .byte $83, $E4, $15, $01, $15, $00, $7F, $00, $12, $04, $7F, $00 ; Bank 0 ft_s0p8c3: .byte $E5, $FF, $1D, $03, $FF, $1D, $01, $80, $20, $FF, $1D, $03, $E5, $FF, $1D, $01, $FF, $1D, $03, $FF .byte $1D, $01, $80, $20, $FF, $1D, $03, $E5, $FF, $1D, $01, $FF, $1D, $03, $FF, $1D, $01, $80, $20, $FF .byte $1D, $03, $E5, $FF, $1D, $01, $FF, $1D, $03, $FF, $1D, $01, $80, $20, $FF, $1D, $03, $E5, $FF, $1D .byte $01 ; Bank 0 ft_s0p9c1: .byte $82, $00, $E9, $FF, $22, $FC, $00, $F9, $00, $F6, $00, $83, $F1, $00, $01, $82, $00, $FE, $22, $FB .byte $00, $F8, $00, $F5, $00, $83, $F1, $00, $01, $7F, $05, $82, $00, $FF, $22, $FC, $00, $F9, $00, $F6 .byte $00, $83, $F1, $00, $01, $82, $00, $FE, $22, $FB, $00, $F8, $00, $F5, $00, $83, $F1, $00, $01, $7F .byte $05, $82, $00, $FC, $22, $F1, $00, $FC, $22, $F1, $00, $FC, $22, $F1, $00, $FF, $22, $FC, $00, $F9 .byte $00, $F6, $00, $83, $F0, $00, $01 ; Bank 0 ft_s0p9c2: .byte $E4, $17, $00, $E3, $17, $01, $7F, $00, $E4, $17, $01, $E6, $23, $02, $7F, $00, $E4, $17, $00, $7F .byte $00, $15, $01, $7F, $01, $15, $01, $E8, $28, $03, $E4, $17, $01, $82, $00, $ED, $2B, $E3, $17, $E4 .byte $17, $7F, $83, $17, $01, $ED, $26, $01, $82, $00, $E4, $17, $7F, $17, $7F, $ED, $2B, $E3, $18, $83 .byte $E4, $18, $01, $18, $00, $7F, $00, $15, $00, $E3, $15, $02, $E5, $15, $00, $7F, $00 ; Bank 0 ft_s0p10c1: .byte $82, $00, $80, $24, $FF, $23, $F1, $00, $FE, $28, $F1, $00, $FD, $2B, $F1, $00, $FD, $2A, $F1, $00 .byte $FE, $26, $F1, $00, $FF, $22, $F1, $00, $FF, $21, $F1, $00, $FE, $26, $F1, $00, $FD, $29, $F1, $00 .byte $FD, $28, $F1, $00, $FE, $24, $F1, $00, $FF, $21, $F1, $00, $83, $E1, $F9, $20, $17 ; Bank 0 ft_s0p10c2: .byte $82, $00, $ED, $2B, $7F, $26, $7F, $1F, $7F, $2B, $7F, $26, $7F, $1F, $7F, $2B, $7F, $26, $7F, $1F .byte $7F, $83, $E8, $0D, $03, $EF, $0D, $19 ; Bank 0 ft_s0p11c1: .byte $E1, $FC, $20, $01, $F9, $00, $05, $FA, $00, $03, $82, $05, $F9, $00, $F8, $00, $F7, $00, $F6, $00 .byte $83, $F5, $00, $03, $82, $01, $F4, $00, $F3, $00, $F2, $00, $83, $F1, $00, $01 ; Bank 0 ft_s0p11c2: .byte $E4, $20, $02, $7F, $00, $20, $00, $7F, $00, $20, $02, $7F, $00, $20, $00, $7F, $00, $20, $02, $7F .byte $00, $20, $00, $7F, $00, $20, $02, $7F, $00, $20, $00, $7F, $00, $20, $02, $7F, $00, $20, $00, $7F .byte $00, $20, $02, $7F, $00, $20, $00, $7F, $00, $20, $02, $7F, $00, $20, $00, $7F, $00, $20, $02, $7F .byte $00, $20, $00, $7F, $00 ; DPCM samples (located at DPCM segment)
38.01964
105
0.498795
524b8c97deef69ba534329a50a4c719817aa8dc9
5,970
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0x84_notsx.log_21829_1276.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0x84_notsx.log_21829_1276.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i3-7100_9_0x84_notsx.log_21829_1276.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 %r8 push %r9 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x1b40c, %rbp nop nop nop nop nop cmp $13670, %rcx mov (%rbp), %edi nop nop nop sub $47945, %r9 lea addresses_WC_ht+0xb267, %rbx nop nop nop nop dec %r8 mov $0x6162636465666768, %rdx movq %rdx, (%rbx) nop nop nop sub $62703, %rbp lea addresses_UC_ht+0x524c, %r9 nop nop nop add %rdx, %rdx mov (%r9), %rdi nop nop nop nop nop add %rbp, %rbp lea addresses_UC_ht+0x3b4c, %rsi lea addresses_WC_ht+0xd44c, %rdi nop xor %rdx, %rdx mov $88, %rcx rep movsb inc %r9 lea addresses_D_ht+0x1364c, %rdi nop nop add %r8, %r8 mov $0x6162636465666768, %rcx movq %rcx, %xmm2 movups %xmm2, (%rdi) sub %r8, %r8 lea addresses_D_ht+0x1214d, %rcx clflush (%rcx) nop nop nop sub %r8, %r8 mov (%rcx), %r9w add $23657, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r9 pop %r8 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r9 push %rcx push %rdi push %rdx push %rsi // REPMOV lea addresses_PSE+0xa44c, %rsi lea addresses_D+0x8622, %rdi clflush (%rsi) nop nop nop nop nop cmp $46389, %r9 mov $68, %rcx rep movsb nop nop nop nop cmp $1941, %r9 // Store mov $0x7917d30000000f0c, %r13 sub %rsi, %rsi mov $0x5152535455565758, %r11 movq %r11, %xmm6 movups %xmm6, (%r13) nop nop sub $49685, %r9 // Faulty Load lea addresses_A+0x3e4c, %rdx nop sub $31179, %r13 movups (%rdx), %xmm1 vpextrq $1, %xmm1, %rdi lea oracles, %rsi and $0xff, %rdi shlq $12, %rdi mov (%rsi,%rdi,1), %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_A', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_PSE', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_D', 'congruent': 1, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_NC', 'same': False, 'size': 16, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_A', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WC_ht', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 8, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 16, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'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 */
38.516129
2,999
0.656951
b54e91af1e4901b721b01d26516c35c39dce0ed3
4,224
asm
Assembly
third-party/gmp/gmp-src/mpn/x86_64/bd1/addmul_2.asm
jhh67/chapel
f041470e9b88b5fc4914c75aa5a37efcb46aa08f
[ "ECL-2.0", "Apache-2.0" ]
1,602
2015-01-06T11:26:31.000Z
2022-03-30T06:17:21.000Z
third-party/gmp/gmp-src/mpn/x86_64/bd1/addmul_2.asm
jhh67/chapel
f041470e9b88b5fc4914c75aa5a37efcb46aa08f
[ "ECL-2.0", "Apache-2.0" ]
11,789
2015-01-05T04:50:15.000Z
2022-03-31T23:39:19.000Z
third-party/gmp/gmp-src/mpn/x86_64/bd1/addmul_2.asm
jhh67/chapel
f041470e9b88b5fc4914c75aa5a37efcb46aa08f
[ "ECL-2.0", "Apache-2.0" ]
498
2015-01-08T18:58:18.000Z
2022-03-20T15:37:45.000Z
dnl AMD64 mpn_addmul_2 optimised for AMD Bulldozer. dnl Copyright 2017 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or modify dnl it under the terms of either: dnl dnl * the GNU Lesser General Public License as published by the Free dnl Software Foundation; either version 3 of the License, or (at your dnl option) any later version. dnl dnl or dnl dnl * the GNU General Public License as published by the Free Software dnl Foundation; either version 2 of the License, or (at your option) any dnl later version. dnl dnl or both in parallel, as here. dnl dnl The GNU MP Library is distributed in the hope that it will be useful, but dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License dnl for more details. dnl dnl You should have received copies of the GNU General Public License and the dnl GNU Lesser General Public License along with the GNU MP Library. If not, dnl see https://www.gnu.org/licenses/. include(`../config.m4') C cycles/limb C AMD K8,K9 C AMD K10 C AMD bd1 4.2 C AMD bd2 4.4 C AMD bd3 C AMD bd4 C AMD zen C AMD bt1 C AMD bt2 C Intel P4 C Intel PNR C Intel NHM C Intel SBR C Intel IBR C Intel HWL C Intel BWL C Intel SKL C Intel atom C Intel SLM C VIA nano C The loop of this code is the result of running a code generation and C optimisation tool suite written by David Harvey and Torbjorn Granlund. define(`rp', `%rdi') C rcx define(`up', `%rsi') C rdx define(`n_param', `%rdx') C r8 define(`vp', `%rcx') C r9 define(`n', `%rcx') define(`v0', `%rbx') define(`v1', `%rbp') define(`X0', `%r12') define(`X1', `%r13') define(`w0', `%r8') define(`w1', `%r9') define(`w2', `%r10') define(`w3', `%r11') ABI_SUPPORT(DOS64) ABI_SUPPORT(STD64) ASM_START() TEXT ALIGN(32) PROLOGUE(mpn_addmul_2) FUNC_ENTRY(4) push %rbx push %rbp push %r12 push %r13 mov (vp), v0 mov 8(vp), v1 mov (up), %rax mov $0, R32(w2) C abuse w2 lea (up,n_param,8), up lea (rp,n_param,8), rp sub n_param, w2 mul v0 test $1, R8(w2) jnz L(bx1) L(bx0): mov %rdx, X0 mov %rax, X1 test $2, R8(w2) jnz L(b10) L(b00): lea (w2), n C un = 4, 8, 12, ... mov (up,w2,8), %rax mov (rp,w2,8), w3 mul v1 mov %rax, w0 mov 8(up,w2,8), %rax mov %rdx, w1 jmp L(lo0) L(b10): lea 2(w2), n C un = 2, 6, 10, ... mov (up,w2,8), %rax mov (rp,w2,8), w1 mul v1 mov %rdx, w3 mov %rax, w2 mov -8(up,n,8), %rax test n, n jz L(end) jmp L(top) L(bx1): mov %rax, X0 mov %rdx, X1 test $2, R8(w2) jz L(b11) L(b01): lea 1(w2), n C un = 1, 5, 9, ... mov (up,w2,8), %rax mul v1 mov (rp,w2,8), w2 mov %rdx, w0 mov %rax, w3 jmp L(lo1) L(b11): lea -1(w2), n C un = 3, 7, 11, ... mov (up,w2,8), %rax mul v1 mov (rp,w2,8), w0 mov %rax, w1 mov 8(up,w2,8), %rax mov %rdx, w2 jmp L(lo3) ALIGN(32) L(top): L(lo2): mul v0 add w1, X1 mov X1, -16(rp,n,8) mov %rdx, X1 adc %rax, X0 adc $0, X1 mov -8(up,n,8), %rax mul v1 mov -8(rp,n,8), w1 mov %rdx, w0 add w1, w2 adc %rax, w3 adc $0, w0 L(lo1): mov (up,n,8), %rax mul v0 add w2, X0 mov X0, -8(rp,n,8) mov %rdx, X0 adc %rax, X1 mov (up,n,8), %rax adc $0, X0 mov (rp,n,8), w2 mul v1 add w2, w3 adc %rax, w0 mov 8(up,n,8), %rax mov %rdx, w1 adc $0, w1 L(lo0): mul v0 add w3, X1 mov X1, (rp,n,8) adc %rax, X0 mov 8(up,n,8), %rax mov %rdx, X1 adc $0, X1 mov 8(rp,n,8), w3 mul v1 add w3, w0 adc %rax, w1 mov 16(up,n,8), %rax mov %rdx, w2 adc $0, w2 L(lo3): mul v0 add w0, X0 mov X0, 8(rp,n,8) mov %rdx, X0 adc %rax, X1 adc $0, X0 mov 16(up,n,8), %rax mov 16(rp,n,8), w0 mul v1 mov %rdx, w3 add w0, w1 adc %rax, w2 adc $0, w3 mov 24(up,n,8), %rax add $4, n jnc L(top) L(end): mul v0 add w1, X1 mov X1, -16(rp) mov %rdx, X1 adc %rax, X0 adc $0, X1 mov -8(up), %rax mul v1 mov -8(rp), w1 add w1, w2 adc %rax, w3 adc $0, %rdx add w2, X0 adc $0, X1 mov X0, -8(rp) add w3, X1 mov X1, (rp) adc $0, %rdx mov %rdx, %rax pop %r13 pop %r12 pop %rbp pop %rbx FUNC_EXIT() ret EPILOGUE()
17.898305
79
0.618608
6c84096eff8b2536e2d382f91d9d9088c3384b49
139
asm
Assembly
Old Programmes/8085/Multiplication/REPADD_8.asm
illuminati-inc-2020/school
f22d640abd5505889bcfa9f7880c90a1b6e79635
[ "CC0-1.0" ]
null
null
null
Old Programmes/8085/Multiplication/REPADD_8.asm
illuminati-inc-2020/school
f22d640abd5505889bcfa9f7880c90a1b6e79635
[ "CC0-1.0" ]
null
null
null
Old Programmes/8085/Multiplication/REPADD_8.asm
illuminati-inc-2020/school
f22d640abd5505889bcfa9f7880c90a1b6e79635
[ "CC0-1.0" ]
null
null
null
LDA 00A0H MOV B,A LDA 00A1H CPI 00H JZ MUL_END MOV C,A SUB A MUL_LOOP: ADD B DCR C JNZ MUL_LOOP MUL_END: STA 00B0H HLT
11.583333
18
0.647482
7a7ec026b40c4c5ca69275caf92372889a5a0167
488
asm
Assembly
oeis/348/A348899.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/348/A348899.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/348/A348899.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A348899: a(n) = 332640*4^n*Gamma(n + 1/2)/(sqrt(Pi)*Gamma(n + 7)); super ballot numbers, row 5 of A135573. ; Submitted by Christian Krause ; 462,132,99,110,154,252,462,924,1980,4488,10659,26334,67298,177100,478170,1320660,3721860,10680120,31150350,92205036,276615108,840090328,2580277436,8007757560,25090973688,79319852304,252832029219,812127124158,2627470107570,8558045493228 add $0,6 lpb $0 seq $0,20923 ; Expansion of (1-4*x)^(11/2). mov $1,$0 mov $0,0 lpe mov $0,$1 div $0,2
37.538462
237
0.735656
5d67d50dafbfa9d716adc79b8a220e1c59ea666b
470
asm
Assembly
programs/oeis/278/A278475.asm
ckrause/cm
0021b6ca0be0fbe79164e647ddfd0e65869304fe
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/278/A278475.asm
ckrause/cm
0021b6ca0be0fbe79164e647ddfd0e65869304fe
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/278/A278475.asm
ckrause/cm
0021b6ca0be0fbe79164e647ddfd0e65869304fe
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A278475: a(n) = floor(phi^7*a(n-1)) for n>0, a(0) = 1, where phi is the golden ratio (A001622). ; 1,29,841,24417,708933,20583473,597629649,17351843293,503801085145,14627583312497,424703717147557,12331035380591649,358024729754305377,10395048198255447581,301814422479162285225,8763013300093961719105,254429200125204052139269,7387209816931011473757905 lpb $0 mov $2,$0 sub $0,1 seq $2,49667 ; a(n) = Fibonacci(7*n)/13. add $3,$2 lpe mov $0,$3 mul $0,28 add $0,1
36.153846
252
0.755319
4eb28e9d75f417f4ccb532c7c738d1d1b63bdaa7
363
asm
Assembly
oeis/067/A067731.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/067/A067731.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/067/A067731.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A067731: Maximum number of distinct parts in a self-conjugate partition of n, or 0 if n=2. ; 0,1,0,2,1,2,3,2,3,2,4,3,4,3,4,5,4,5,4,5,4,6,5,6,5,6,5,6,7,6,7,6,7,6,7,6,8,7,8,7,8,7,8,7,8,9,8,9,8,9,8,9,8,9,8,10,9,10,9,10,9,10,9,10,9,10,11,10,11,10,11,10,11,10,11,10,11,10,12,11,12,11,12,11,12,11,12,11 lpb $0 add $2,1 sub $0,$2 lpe mod $0,2 sub $2,$0 mov $0,$2
33
205
0.600551
3608ade4567bb0e2f5a3a3cd734cfe47bb199ba4
533
nasm
Assembly
Projetos/F-Assembly/src/nasm/mod.nasm
gabrielvf1/Z01---Grupo-H
ef44894eb6a245c9b856802dd96ebe0051315602
[ "Unlicense" ]
null
null
null
Projetos/F-Assembly/src/nasm/mod.nasm
gabrielvf1/Z01---Grupo-H
ef44894eb6a245c9b856802dd96ebe0051315602
[ "Unlicense" ]
77
2018-03-09T12:33:31.000Z
2018-05-18T10:42:22.000Z
Projetos/F-Assembly/src/nasm/mod.nasm
gabrielvf1/Z01---Grupo-H
ef44894eb6a245c9b856802dd96ebe0051315602
[ "Unlicense" ]
null
null
null
leaw $R1,%A movw (%A),%D leaw $R3,%A movw %D,(%A) ;valor R0 salvo em R3. leaw $R2,%A movw (%A),%D ; d com valor de R1 leaw $R4,%A movw %D,(%A) ; R1 em R4 while1: leaw $R3, %A movw (%A),%D leaw $R4, %A subw %D,(%A),%S leaw $R3,%A movw %S,(%A) leaw $R5,%A movw (%A),%D incw %D leaw $R5,%A movw %D,(%A) leaw $RESULT0,%A je %S nop leaw $RESULTNEG,%A jl %S nop leaw $while1,%A jmp nop RESULTNEG: leaw $R2, %A addw %S,(%A),%D leaw $R0,%A movw %D,(%A) leaw $END,%A jmp nop RESULT0: leaw $R0,%A movw %S,(%A) END: nop
11.586957
35
0.553471
4252f5c44bebca9aa6c05413fcf6dcc6e0eb1d28
634
asm
Assembly
programs/oeis/083/A083324.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/083/A083324.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/083/A083324.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A083324: An alternating sum of decreasing powers. ; 1,3,11,45,191,813,3431,14325,59231,242973,990551,4019205,16249871,65522733,263668871,1059425685,4251986111,17050860093,68332318391,273716169765,1096025891951,4387588255053,17560809179111,70274609387445 mov $2,$0 add $2,1 mov $7,$0 lpb $2,1 mov $0,$7 sub $2,1 sub $0,$2 sub $0,1 mov $3,6 mov $4,1 sub $5,$5 lpb $0,1 sub $0,1 add $5,$3 mul $3,2 mov $6,$5 mul $6,2 add $5,$6 lpe sub $0,$3 mul $3,$0 add $4,$6 sub $0,$4 mul $0,2 sub $0,$3 mov $4,$0 sub $4,17 div $4,24 add $4,1 add $1,$4 lpe sub $1,1 mul $1,2 add $1,1
16.684211
203
0.61041
4bfb0075ec452418a5b15f8d6e976f0cb0e1994d
407
asm
Assembly
libsrc/stdio/mz/fgetc_cons.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
1
2018-09-04T23:07:24.000Z
2018-09-04T23:07:24.000Z
libsrc/stdio/mz/fgetc_cons.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
libsrc/stdio/mz/fgetc_cons.asm
dex4er/deb-z88dk
9ee4f23444fa6f6043462332a1bff7ae20a8504b
[ "ClArtistic" ]
null
null
null
; ; Sharp MZ Routines ; ; fgetc_cons() Wait for keypress ; ; Stefano Bodrato - 5/5/2000 ; ; No auto-repeat for now. ; Maybe someone wants to improve this ? ; ; ; $Id: fgetc_cons.asm,v 1.2 2001/04/13 14:13:59 stefano Exp $ ; XLIB fgetc_cons .fgetc_cons call $9b3 ; wait for a key call $bce ; convert it to ASCII cp $66 ; was it ENTER ? jr nz,noenter ld a,13 .noenter ld l,a ld h,0 ret
14.535714
61
0.646192
c231277244ae0cd407d130a171ffe441801d2039
494
asm
Assembly
software/obsolete/new-rom/error.asm
Noah1989/micro-21
f574c3dd089ee93737c8babc6f5eddf85e66987e
[ "MIT" ]
1
2019-05-17T14:43:17.000Z
2019-05-17T14:43:17.000Z
software/obsolete/new-rom/error.asm
Noah1989/loopmicro
4d9a49b0aeee1d58aa712c7509cbb46d32477e16
[ "MIT" ]
null
null
null
software/obsolete/new-rom/error.asm
Noah1989/loopmicro
4d9a49b0aeee1d58aa712c7509cbb46d32477e16
[ "MIT" ]
null
null
null
extern debug_io_print_string_HL extern debug_io_print_hex_byte_A public error error: DI LD HL, error_message CALL debug_io_print_string_HL POP HL ; caller return address DEC HL DEC HL DEC HL LD A, H CALL debug_io_print_hex_byte_A LD A, L CALL debug_io_print_hex_byte_A LD HL, error_message2 CALL debug_io_print_string_HL error_halt_loop: HALT JR error_halt_loop section strings error_message: defb "ERROR @ $", 0 error_message2: defb 13, 10, 13, 10, "--- HALT ---", 13, 10, 0
17.034483
46
0.775304
fb209dd2a6fe464a3b3702354adc61be3f44da3b
355
asm
Assembly
oeis/079/A079643.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/079/A079643.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/079/A079643.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A079643: a(n) = floor(n/floor(sqrt(n))). ; 1,2,3,2,2,3,3,4,3,3,3,4,4,4,5,4,4,4,4,5,5,5,5,6,5,5,5,5,5,6,6,6,6,6,7,6,6,6,6,6,6,7,7,7,7,7,7,8,7,7,7,7,7,7,7,8,8,8,8,8,8,8,9,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,9,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,11,10 add $0,2 mov $2,1 lpb $0,6 sub $0,$2 cmp $1,$0 trn $0,$2 add $2,1 lpe mov $0,$2 sub $0,1
25.357143
213
0.521127
02244667d01adf1fd5334794d59adac34e1912db
684
asm
Assembly
tests/shen/stdlib/nasm/test.asm
openn2o/jitredis
de671e3b4000be17486cf1491fe20c40b387647f
[ "MIT", "BSD-3-Clause" ]
1
2021-03-16T03:39:45.000Z
2021-03-16T03:39:45.000Z
tests/shen/stdlib/nasm/test.asm
openn2o/jitredis
de671e3b4000be17486cf1491fe20c40b387647f
[ "MIT", "BSD-3-Clause" ]
null
null
null
tests/shen/stdlib/nasm/test.asm
openn2o/jitredis
de671e3b4000be17486cf1491fe20c40b387647f
[ "MIT", "BSD-3-Clause" ]
null
null
null
%include 'core_lib.asm' ; include our external file SECTION .data msg1 db 'Hello, brave new world!', 0Ah ; our first message string msg2 db 'This is how we recycle in NASM.', 0Ah ; our second message string SECTION .text global _start _start: mov rax, msg1 ; move the address of our first message string into EAX call sprint ; call our string printing function mov rax, msg2 ; move the address of our second message string into EAX call sprint ; call our string printing function call quit ; call our quit function
32.571429
87
0.580409
7faf0b7af52495c143329467b60e599b81fd2219
424
asm
Assembly
programs/oeis/206/A206910.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/206/A206910.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/206/A206910.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A206910: Position of 2n+sin(n) when the sets {2k+cos(k)} and {2k+sin(k)} are jointly ranked. ; 2,4,6,7,9,11,13,16,18,20,21,23,25,28,30,32,33,35,37,40,42,44,45,47,49,52,54,56,58,59,61,63,66,68,70,71,73,75,78,80,82,83,85,87,90,92,94,95,97,99,101,104,106,108,109,111,113,116,118,120,121,123,125 mov $3,$0 lpb $0 mov $1,$0 sub $0,$0 add $1,8 mul $1,7 sub $1,11 div $1,22 lpe gcd $1,2 mov $2,$3 mul $2,2 add $1,$2
24.941176
198
0.620283
b0e6cd09854bd93833287b7a8a15275d2e45c677
52
asm
Assembly
VirtualMachine/Win32/UnitTests/String/test1_push_String.asm
ObjectPascalInterpreter/BookPart_3
95150d4d02f7e13e5b1ebb58c249073a384f2a0a
[ "Apache-2.0" ]
8
2021-11-07T22:45:25.000Z
2022-03-12T21:38:53.000Z
VirtualMachine/Win32/UnitTests/String/test1_push_String.asm
Irwin1985/BookPart_2
4e8c2e47cd09b77c6e5bd3455ddfe7492adf26bf
[ "Apache-2.0" ]
4
2021-09-23T02:13:55.000Z
2021-12-07T06:08:17.000Z
VirtualMachine/Win32/UnitTests/String/test1_push_String.asm
Irwin1985/BookPart_2
4e8c2e47cd09b77c6e5bd3455ddfe7492adf26bf
[ "Apache-2.0" ]
4
2021-11-24T17:24:56.000Z
2021-12-21T04:56:58.000Z
# Test 1 - string push pushs "string" halt
10.4
22
0.576923
e7748c35bef36be87067f1969af5f5b67ec1d454
754
asm
Assembly
oeis/307/A307349.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/307/A307349.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/307/A307349.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A307349: a(n) = Sum_{i=1..n} Sum_{j=1..n} (-1)^(i+j) * (i+j)!/(2!*i!*j!). ; 0,1,1,5,15,56,203,757,2839,10736,40821,155948,598065,2301118,8878591,34340085,133100055,516851528,2010358061,7831136920,30546063745,119291436738,466379022561,1825168170620,7149316835465,28027993191706,109965636641173,431752038091442,1696296631144389,6668668309313066,26231811236558823,103241182695535861,406535443887879703,1601589386560126584,6312465675530080893,24890336616400670912,98182966761008859345,387441157703402122786,1529434583321614277257,6039536425638950865272,23857033970514568682769 mov $1,$0 mod $0,2 lpb $1 sub $1,1 mov $2,$1 max $2,0 seq $2,14301 ; Number of internal nodes of even outdegree in all ordered rooted trees with n edges. add $0,$2 lpe
58
498
0.798408
647fcbd2815a84c1d4c961e80352fb058263cbac
155
asm
Assembly
audio/sfx/intro_whoosh.asm
AmateurPanda92/pokemon-rby-dx
f7ba1cc50b22d93ed176571e074a52d73360da93
[ "MIT" ]
9
2020-07-12T19:44:21.000Z
2022-03-03T23:32:40.000Z
audio/sfx/intro_whoosh.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
7
2020-07-16T10:48:52.000Z
2021-01-28T18:32:02.000Z
audio/sfx/intro_whoosh.asm
JStar-debug2020/pokemon-rby-dx
c2fdd8145d96683addbd8d9075f946a68d1527a1
[ "MIT" ]
2
2021-03-28T18:33:43.000Z
2021-05-06T13:12:09.000Z
SFX_Intro_Whoosh_Ch7: noisenote 4, 2, -4, 32 noisenote 3, 10, 0, 32 noisenote 3, 11, 0, 33 noisenote 3, 12, 0, 34 noisenote 15, 13, 2, 36 endchannel
19.375
24
0.677419
6fa9c4ef211d85cd1edb0ff9b4143d411a3b541e
275
asm
Assembly
programs/oeis/159/A159075.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/159/A159075.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/159/A159075.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A159075: a(1) = -1, otherwise a(n) = 0. ; 0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 cmp $0,1 sub $1,$0
45.833333
212
0.498182
006014aeed924948d19dca0adbcc3bd709c1090a
287
asm
Assembly
programs/oeis/129/A129343.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/129/A129343.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/129/A129343.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A129343: a(2n) = a(n), a(2n+1) = 4n+1. ; 0,1,1,5,1,9,5,13,1,17,9,21,5,25,13,29,1,33,17,37,9,41,21,45,5,49,25,53,13,57,29,61,1,65,33,69,17,73,37,77,9,81,41,85,21,89,45,93,5,97,49,101,25,105,53,109,13,113,57,117,29,121,61,125,1,129,65,133,33,137 lpb $0 dif $0,2 lpe mul $0,2 trn $0,1
31.888889
204
0.606272
faaf00a10a403aa4e601250e5586d02617d8b6ec
530
asm
Assembly
programs/oeis/276/A276032.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/276/A276032.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/276/A276032.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A276032: Number of refinements of the partition n^1 with all numbers taken modulo 2. ; 1,2,3,7,8,21,22,63,64,195,196,624,625,2054,2055,6916,6917,23712,23713,82498,82499,290510,290511,1033410,1033411,3707850,3707851,13402695,13402696,48760365,48760366,178405155,178405156,656043855,656043856,2423307045 mov $3,$0 add $3,1 lpb $3 mov $0,0 sub $3,1 sub $0,$3 mov $4,$0 mod $4,2 mul $0,$4 div $0,2 seq $0,1453 ; Catalan numbers - 1. mul $0,3 mov $2,$0 sub $2,3 div $2,3 add $2,1 add $1,$2 lpe mov $0,$1
23.043478
216
0.673585
969935847676d0f40edc33c27c1605d7991bd1a2
13,545
asm
Assembly
s2/music-original/8C - EHZ 2P.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
9
2017-10-09T20:28:45.000Z
2021-06-29T21:19:20.000Z
s2/music-original/8C - EHZ 2P.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
12
2018-08-01T13:52:20.000Z
2022-02-21T02:19:37.000Z
s2/music-original/8C - EHZ 2P.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
2
2018-02-17T19:50:36.000Z
2019-10-30T19:28:06.000Z
EHZ_2p_Header: smpsHeaderStartSong 2 smpsHeaderVoice EHZ_2p_Voices smpsHeaderChan $06, $03 smpsHeaderTempo $01, $5B smpsHeaderDAC EHZ_2p_DAC smpsHeaderFM EHZ_2p_FM1, $F4, $0A smpsHeaderFM EHZ_2p_FM2, $F4, $0F smpsHeaderFM EHZ_2p_FM3, $F4, $0A smpsHeaderFM EHZ_2p_FM4, $F4, $10 smpsHeaderFM EHZ_2p_FM5, $E8, $10 smpsHeaderPSG EHZ_2p_PSG1, $D0, $06, $00, $00 smpsHeaderPSG EHZ_2p_PSG2, $D0, $06, $00, $00 smpsHeaderPSG EHZ_2p_PSG3, $00, $05, $00, $00 ; FM1 Data EHZ_2p_FM1: smpsSetvoice $04 smpsAlterNote $01 dc.b nG6, $06, nE6, nF6, nD6, nE6, nC6, nC6, nA5 EHZ_2p_Jump01: smpsCall EHZ_2p_Call02 smpsSetvoice $03 smpsAlterVol $06 dc.b nG4, $06 smpsNoteFill $06 dc.b nA4, $03, nC5, nC5, nA4 smpsSetvoice $04 smpsAlterVol $FA smpsNoteFill $00 smpsCall EHZ_2p_Call02 dc.b nRst, $12, nC6, $18, nA5, $0C, nC6, nBb5, nC6, $06, nD6, $0C dc.b nC6, $06, nBb5, $0C, nC6, $18, nA5, $0C, nC6, nBb5, $06 smpsSetvoice $02 smpsAlterVol $06 dc.b nEb5, $06, nF5, nEb5, nRst, nEb5, nF5, nEb5 smpsSetvoice $04 smpsAlterVol $FA dc.b nC6, $18, nA5, $0C, nC6, nBb5, nC6, $06, nD6, $0C, nC6, $06 dc.b nBb5, $0C, nA5, $18, nF5, $0C, nA5 smpsSetvoice $02 smpsAlterVol $06 dc.b nG5, $03, nRst, nG5, $06, nA5, $03, nG5, nA5, $06, nG5, $03 dc.b nRst, $15 smpsSetvoice $04 smpsAlterVol $FA smpsJump EHZ_2p_Jump01 EHZ_2p_Call02: smpsSetvoice $03 smpsAlterVol $06 dc.b nE5, $06 smpsNoteFill $06 dc.b nC5, $03, nA4, nC5, $06, nRst, nRst smpsSetvoice $04 smpsAlterVol $FA smpsNoteFill $00 dc.b nB4, $06, $09, $03 smpsSetvoice $03 smpsAlterVol $06 smpsNoteFill $06 dc.b nF5, $03, nF5, nRst, nF5, nRst, nF5 smpsNoteFill $00 dc.b nFs5, $06, nG5, nRst smpsNoteFill $06 dc.b nG5, $03, $03, nA5, nG5 smpsNoteFill $00 dc.b nE5, $06 smpsNoteFill $06 dc.b nC5, $03, nA4, nC5, $06, nRst, nRst smpsNoteFill $00 smpsSetvoice $04 smpsAlterVol $FA dc.b nE5, nG5, nE5 smpsSetvoice $02 smpsAlterVol $06 smpsNoteFill $06 dc.b nF5, $03, nF5, nRst, nF5, nRst, nF5 smpsNoteFill $00 dc.b nFs5, $06, nG5, $03, nRst smpsSetvoice $04 smpsAlterVol $FA smpsReturn ; FM4 Data EHZ_2p_FM4: smpsSetvoice $04 smpsAlterVol $FA dc.b nRst, $03, nF6, $06, nD6, nE6, nC6, nD6, nB5, nB5, nG5, $03 smpsAlterVol $06 EHZ_2p_Loop05: smpsSetvoice $01 smpsPan panRight, $00 smpsAlterPitch $F4 smpsNoteFill $06 dc.b nRst, $06, nE5, $03, $09, $0C, nG5, $03, $09, $06 smpsSetvoice $04 smpsPan panCenter, $00 smpsAlterVol $FA smpsNoteFill $00 dc.b nA5 smpsNoteFill $06 smpsAlterVol $06 smpsSetvoice $01 smpsPan panRight, $00 dc.b nF5, $03, $09, $0C, nG5, $03, $09, $0C, nE5, $03, $09, $0C dc.b nG5, $03, $09, $06 smpsSetvoice $02 smpsPan panCenter, $00 smpsAlterPitch $0C dc.b nA5, $03, nA5, nRst, nA5, nRst, nA5 smpsNoteFill $00 dc.b nBb5, $06, nB5, $03 smpsSetvoice $01 smpsPan panRight, $00 smpsAlterPitch $F4 smpsNoteFill $06 dc.b nRst, nG5, $03, $09, $06 smpsSetvoice $02 smpsPan panCenter, $00 smpsAlterPitch $0C smpsNoteFill $00 smpsLoop $00, $02, EHZ_2p_Loop05 smpsSetvoice $01 smpsPan panRight, $00 smpsAlterPitch $F4 smpsNoteFill $06 dc.b nRst, $06, nA5, $03, $09, $03, $09, $03, $09, $03, $03, nRst dc.b $06, nG5, $03, $09, $03, $09, $03, $09, $03, $03, nRst, $06 dc.b nA5, $03, $09, $03, $09, $03, $09, $03, $03 smpsSetvoice $02 smpsPan panCenter, $00 smpsAlterPitch $0C smpsNoteFill $00 dc.b nRst, $06, nG5, nA5, nG5, nRst, nG5, nA5, nG5 smpsSetvoice $01 smpsPan panRight, $00 smpsAlterPitch $F4 smpsNoteFill $06 dc.b nRst, $06, nA5, $03, $09, $03, $09, $03, $09, $03, $03, nRst dc.b $06, nG5, $03, $09, $03, $09, $03, $09, $03, $03, nRst, $06 dc.b nF5, $03, $09, $03, $09, $03, $09, $03, $03 smpsSetvoice $02 smpsPan panCenter, $00 smpsAlterPitch $0C smpsNoteFill $00 dc.b nB5, $03, nRst, nB5, $06, nC6, $03, nB5, nC6, $06, nB5, $03 dc.b nRst, $15 smpsJump EHZ_2p_Loop05 ; FM3 Data EHZ_2p_FM3: smpsSetvoice $03 smpsNoteFill $06 dc.b nRst, $1E, nG5, $03, $03, nA5, nC6, nC6, nA5 EHZ_2p_Jump00: smpsCall EHZ_2p_Call00 smpsSetvoice $01 smpsPan panRight, $00 smpsAlterPitch $F4 smpsNoteFill $06 smpsAlterVol $06 dc.b nRst, $06, nF5, $03, $09, $06 smpsSetvoice $03 smpsPan panCenter, $00 smpsAlterPitch $0C smpsNoteFill $00 smpsAlterVol $FA dc.b nRst, nG5 smpsNoteFill $06 dc.b nA5, $03, nC6, nC6, nA5 smpsCall EHZ_2p_Call00 smpsSetvoice $01 smpsPan panRight, $00 smpsAlterPitch $F4 smpsNoteFill $06 smpsAlterVol $06 dc.b nRst, $06, nF5, $03, $09, $06, nRst, nG5, $03, $09, $06 smpsSetvoice $03 smpsPan panCenter, $00 smpsAlterPitch $0C smpsNoteFill $00 smpsAlterVol $FA smpsCall EHZ_2p_Call01 dc.b nRst, $30 smpsCall EHZ_2p_Call01 smpsSetvoice $01 smpsPan panRight, $00 smpsAlterPitch $F4 smpsNoteFill $06 smpsAlterVol $06 dc.b nRst, $06, nG5, $03, $09, $03, $09, $03, $09, $03, $03 smpsSetvoice $03 smpsPan panCenter, $00 smpsAlterPitch $0C smpsNoteFill $00 smpsAlterVol $FA smpsCall EHZ_2p_Call01 dc.b nRst, $30, nD6, $0C, nE6, nF6, nFs6, nG6, $06 smpsSetvoice $01 smpsPan panRight, $00 smpsAlterPitch $F4 smpsNoteFill $06 smpsAlterVol $06 dc.b nB5, $03, $09, $03, $03 smpsSetvoice $03 smpsPan panCenter, $00 smpsAlterPitch $0C smpsNoteFill $00 smpsAlterVol $FA smpsNoteFill $00 dc.b nRst, $06, nG5 smpsNoteFill $06 dc.b nA5, $03, nC6, nC6, nA5 smpsJump EHZ_2p_Jump00 EHZ_2p_Call01: smpsNoteFill $06 dc.b nRst, $06, nA5, nF5, $03, nC5, $06, $03, nF5, $06, nA5, nBb5 dc.b $03 smpsNoteFill $00 dc.b nA5, $09 smpsReturn EHZ_2p_Call00: smpsNoteFill $00 dc.b nE6, $06 smpsNoteFill $06 dc.b nC6, $03, nA5, nC6, $06, nRst, nRst, $09 smpsSetvoice $04 smpsNoteFill $00 dc.b nC5, nA4, $06 smpsNoteFill $06 smpsSetvoice $03 dc.b nF6, $03, nF6, nRst, nF6, nRst, nF6 smpsNoteFill $00 dc.b nFs6, $06, nG6, nRst smpsNoteFill $06 dc.b nG6, $03, $03, nA6, nG6 smpsNoteFill $00 dc.b nE6, $06 smpsNoteFill $06 dc.b nC6, $03, nA5, nC6, $06 smpsNoteFill $00 smpsSetvoice $04 dc.b nRst, $0F, nF5, $06, nF5, nC5, $03 smpsReturn ; FM5 Data EHZ_2p_FM5: smpsPan panLeft, $01 smpsSetvoice $01 dc.b nRst, $30 EHZ_2p_Loop03: smpsNoteFill $06 dc.b nRst, $06, nG5, $03, $09, $0C, nB5, $03, $09, $06, nRst, nA5 dc.b $03, $09, $0C, nB5, $03, $09, $06 smpsLoop $00, $04, EHZ_2p_Loop03 EHZ_2p_Loop04: dc.b nRst, $06, nC6, $03, $09, $03, $09, $03, $09, $03, $03, nRst dc.b $06, nBb5, $03, $09, $03, $09, $03, $09, $03, $03 smpsLoop $00, $03, EHZ_2p_Loop04 dc.b nRst, $06, nA5, $03, $09, $03, $09, $03, $09, $03, $03, nRst dc.b $06, nD6, $03, $09, $03, $1B smpsJump EHZ_2p_Loop03 ; FM2 Data EHZ_2p_FM2: smpsSetvoice $03 smpsNoteFill $06 dc.b nRst, $1E, nG4, $03, $03, nA4, nC5, nC5, nA4 smpsSetvoice $00 smpsAlterVol $FA EHZ_2p_Loop01: smpsNoteFill $00 dc.b nRst, $06, nC4, nA3, $03, $03, nG3, $06, nRst, nB3, nA3, $03 dc.b $03, nG3, $06, nRst, nA3, nG3, $03, $03, nF3, $06, nRst, nG3 dc.b $06, $03, $03, nA3, nG3, nRst, $06, nC4, nA3, $03, $03, nG3 dc.b $06, nRst, nB3, nA3, $03, $03, nG3, $06 smpsSetvoice $04 dc.b nC5 smpsSetvoice $00 dc.b nA3, nG3, $03, $03, nF3, $06, nRst, nG3, $06, $03, $03, nA3 dc.b nG3 smpsLoop $00, $02, EHZ_2p_Loop01 EHZ_2p_Loop02: dc.b nRst, $06, nF4, $03, $03, nD4, nD4, nC4, nC4, nRst, $06, nF4 dc.b $03, $03, nD4, nD4, nC4, nC4, nRst, $06, nEb4, $03, $03, nC4 dc.b nC4, nBb3, nBb3, nRst, $06, nEb4, $03, $03, nC4, nC4, nBb3, nBb3 smpsLoop $00, $03, EHZ_2p_Loop02 dc.b nRst, $06, nD4, $03, $03, nC4, nC4, nA3, nA3, nRst, $06, nD4 dc.b $03, $03, nC4, nC4, nA3, nA3, nG3, $06, $06, nA3, $03, nG3 dc.b nA3, $06, nG3, $18 smpsJump EHZ_2p_Loop01 ; DAC Data EHZ_2p_DAC: dc.b dMidTom, $03, dMidTom, dMidTom, $06, dLowTom, $03, dLowTom, dLowTom, $06, dFloorTom, $03 dc.b dFloorTom, dFloorTom, $06, dLowTom, dFloorTom EHZ_2p_Loop00: dc.b dKick, dKick, dFloorTom, nRst, dKick, dKick, dFloorTom, nRst smpsLoop $00, $0F, EHZ_2p_Loop00 dc.b dKick, dKick, dFloorTom, nRst, dMidTom, $03, dMidTom, dMidTom, $06, dLowTom, dFloorTom smpsJump EHZ_2p_Loop00 ; PSG1 Data EHZ_2p_PSG1: dc.b nRst, $02 smpsPSGvoice fTone_08 smpsAlterVol $04 dc.b nG6, $03, nF6, nE6, nD6, nF6, nE6, nD6, nC6, nE6, nD6, nC6 dc.b nB5, nC6, nB5, nA5, nG5, $01 smpsAlterVol $FC smpsAlterPitch $04 smpsJump EHZ_2p_Loop06 ; PSG2 Data EHZ_2p_PSG2: dc.b nRst, $30 EHZ_2p_Loop06: smpsNoteFill $06 dc.b nRst, $06, nC5, $03, $09, $0C, nG5, $03, $09, $06, nRst, nF5 dc.b $03, $09, $0C, nG5, $03, $09, $06 smpsLoop $00, $04, EHZ_2p_Loop06 smpsNoteFill $00 smpsPSGvoice fTone_0B dc.b nF5, $18, nF5, $0C, nF5, nEb5, nF5, $06, nEb5, $0C, nF5, $06 dc.b nEb5, $0C, nF5, $18, nF5, $0C, nF5, nEb5, $30, nF5, $18, nF5 dc.b $0C, nF5, nEb5, nF5, $06, nEb5, $0C, nF5, $06, nEb5, $0C, nF5 dc.b $18, nF5, $0C, nF5, nG5, $06, nRst, $2A smpsJump EHZ_2p_Loop06 ; PSG3 Data EHZ_2p_PSG3: dc.b nRst, $30 EHZ_2p_Jump02: smpsPSGvoice fTone_04 smpsPSGform $E7 smpsModSet $00, $01, $01, $01 dc.b nMaxPSG, $03, nMaxPSG, nMaxPSG, $06 smpsJump EHZ_2p_Jump02 EHZ_2p_Voices: ; Voice $00 ; $20 ; $66, $65, $60, $60, $DF, $DF, $9F, $1F, $00, $06, $09, $0C ; $07, $06, $06, $08, $2F, $1F, $1F, $FF, $1C, $3A, $16, $80 smpsVcAlgorithm $00 smpsVcFeedback $04 smpsVcUnusedBits $00 smpsVcDetune $06, $06, $06, $06 smpsVcCoarseFreq $00, $00, $05, $06 smpsVcRateScale $00, $02, $03, $03 smpsVcAttackRate $1F, $1F, $1F, $1F smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $0C, $09, $06, $00 smpsVcDecayRate2 $08, $06, $06, $07 smpsVcDecayLevel $0F, $01, $01, $02 smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $00, $16, $3A, $1C ; Voice $01 ; $0D ; $32, $08, $06, $01, $1F, $19, $19, $19, $0A, $05, $05, $05 ; $00, $02, $02, $02, $3F, $2F, $2F, $2F, $28, $80, $86, $8D smpsVcAlgorithm $05 smpsVcFeedback $01 smpsVcUnusedBits $00 smpsVcDetune $00, $00, $00, $03 smpsVcCoarseFreq $01, $06, $08, $02 smpsVcRateScale $00, $00, $00, $00 smpsVcAttackRate $19, $19, $19, $1F smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $05, $05, $05, $0A smpsVcDecayRate2 $02, $02, $02, $00 smpsVcDecayLevel $02, $02, $02, $03 smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $0D, $06, $00, $28 ; Voice $02 ; $3A ; $61, $08, $51, $02, $5D, $5D, $5D, $50, $04, $0F, $1F, $1F ; $00, $00, $00, $00, $1F, $5F, $0F, $0F, $22, $1E, $22, $80 smpsVcAlgorithm $02 smpsVcFeedback $07 smpsVcUnusedBits $00 smpsVcDetune $00, $05, $00, $06 smpsVcCoarseFreq $02, $01, $08, $01 smpsVcRateScale $01, $01, $01, $01 smpsVcAttackRate $10, $1D, $1D, $1D smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $1F, $1F, $0F, $04 smpsVcDecayRate2 $00, $00, $00, $00 smpsVcDecayLevel $00, $00, $05, $01 smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $00, $22, $1E, $22 ; Voice $03 ; $02 ; $01, $55, $02, $04, $92, $8D, $8E, $54, $0D, $0C, $00, $03 ; $00, $00, $00, $00, $FF, $2F, $0F, $5F, $16, $2A, $1D, $80 smpsVcAlgorithm $02 smpsVcFeedback $00 smpsVcUnusedBits $00 smpsVcDetune $00, $00, $05, $00 smpsVcCoarseFreq $04, $02, $05, $01 smpsVcRateScale $01, $02, $02, $02 smpsVcAttackRate $14, $0E, $0D, $12 smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $03, $00, $0C, $0D smpsVcDecayRate2 $00, $00, $00, $00 smpsVcDecayLevel $05, $00, $02, $0F smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $00, $1D, $2A, $16 ; Voice $04 ; $02 ; $75, $71, $73, $31, $1F, $58, $96, $9F, $01, $1B, $03, $08 ; $01, $04, $01, $05, $FF, $2F, $3F, $2F, $24, $29, $30, $80 smpsVcAlgorithm $02 smpsVcFeedback $00 smpsVcUnusedBits $00 smpsVcDetune $03, $07, $07, $07 smpsVcCoarseFreq $01, $03, $01, $05 smpsVcRateScale $02, $02, $01, $00 smpsVcAttackRate $1F, $16, $18, $1F smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $08, $03, $1B, $01 smpsVcDecayRate2 $05, $01, $04, $01 smpsVcDecayLevel $02, $03, $02, $0F smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $00, $30, $29, $24
30.438202
94
0.563972