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
ddf8bfb7f39f8c776da82513ff92336f677848b1
38,745
asm
Assembly
uprogs/cat.asm
zhiyihuang/xv6_rpi_port
6dc126f558d0a9aecb60db92cf516d7597944689
[ "MIT" ]
36
2015-03-19T09:26:31.000Z
2021-09-23T09:04:44.000Z
uprogs/cat.asm
zhiyihuang/xv6_rpi_port
6dc126f558d0a9aecb60db92cf516d7597944689
[ "MIT" ]
4
2015-04-21T00:14:20.000Z
2020-07-06T06:03:03.000Z
uprogs/cat.asm
zhiyihuang/xv6_rpi_port
6dc126f558d0a9aecb60db92cf516d7597944689
[ "MIT" ]
15
2015-10-31T10:31:01.000Z
2019-10-12T01:45:17.000Z
_cat: file format elf32-littlearm Disassembly of section .text: 00000000 <main>: int main(int argc, char *argv[]) { int fd, i; if(argc <= 1){ 0: e3500001 cmp r0, #1 } } int main(int argc, char *argv[]) { 4: e92d49f8 push {r3, r4, r5, r6, r7, r8, fp, lr} 8: e1a07000 mov r7, r0 c: e28db01c add fp, sp, #28 exit(); } } int main(int argc, char *argv[]) 10: c2814004 addgt r4, r1, #4 14: c3a05001 movgt r5, #1 { int fd, i; if(argc <= 1){ 18: da000012 ble 68 <main+0x68> cat(0); exit(); } for(i = 1; i < argc; i++){ if((fd = open(argv[i], 0)) < 0){ 1c: e5940000 ldr r0, [r4] 20: e3a01000 mov r1, #0 24: eb000137 bl 508 <open> 28: e1a06004 mov r6, r4 2c: e2844004 add r4, r4, #4 30: e2508000 subs r8, r0, #0 34: ba000006 blt 54 <main+0x54> printf(1, "cat: cannot open %s\n", argv[i]); exit(); } cat(fd); 38: eb00000e bl 78 <cat> if(argc <= 1){ cat(0); exit(); } for(i = 1; i < argc; i++){ 3c: e2855001 add r5, r5, #1 if((fd = open(argv[i], 0)) < 0){ printf(1, "cat: cannot open %s\n", argv[i]); exit(); } cat(fd); close(fd); 40: e1a00008 mov r0, r8 44: eb000108 bl 46c <close> if(argc <= 1){ cat(0); exit(); } for(i = 1; i < argc; i++){ 48: e1550007 cmp r5, r7 4c: 1afffff2 bne 1c <main+0x1c> exit(); } cat(fd); close(fd); } exit(); 50: eb0000c4 bl 368 <exit> exit(); } for(i = 1; i < argc; i++){ if((fd = open(argv[i], 0)) < 0){ printf(1, "cat: cannot open %s\n", argv[i]); 54: e3a00001 mov r0, #1 58: e59f1014 ldr r1, [pc, #20] ; 74 <main+0x74> 5c: e5962000 ldr r2, [r6] 60: eb000213 bl 8b4 <printf> exit(); 64: eb0000bf bl 368 <exit> main(int argc, char *argv[]) { int fd, i; if(argc <= 1){ cat(0); 68: e3a00000 mov r0, #0 6c: eb000001 bl 78 <cat> exit(); 70: eb0000bc bl 368 <exit> 74: 00000bb0 .word 0x00000bb0 00000078 <cat>: char buf[512]; void cat(int fd) { 78: e92d4818 push {r3, r4, fp, lr} 7c: e1a04000 mov r4, r0 80: e28db00c add fp, sp, #12 int n; while((n = read(fd, buf, sizeof(buf))) > 0) 84: ea000002 b 94 <cat+0x1c> write(1, buf, n); 88: e3a00001 mov r0, #1 8c: e59f102c ldr r1, [pc, #44] ; c0 <cat+0x48> 90: eb0000e8 bl 438 <write> void cat(int fd) { int n; while((n = read(fd, buf, sizeof(buf))) > 0) 94: e3a02c02 mov r2, #512 ; 0x200 98: e1a00004 mov r0, r4 9c: e59f101c ldr r1, [pc, #28] ; c0 <cat+0x48> a0: eb0000d7 bl 404 <read> a4: e2502000 subs r2, r0, #0 a8: cafffff6 bgt 88 <cat+0x10> write(1, buf, n); if(n < 0){ ac: 08bd8818 popeq {r3, r4, fp, pc} printf(1, "cat: read error\n"); b0: e3a00001 mov r0, #1 b4: e59f1008 ldr r1, [pc, #8] ; c4 <cat+0x4c> b8: eb0001fd bl 8b4 <printf> exit(); bc: eb0000a9 bl 368 <exit> c0: 00000bf0 .word 0x00000bf0 c4: 00000b9c .word 0x00000b9c 000000c8 <strcpy>: #include "user.h" #include "arm.h" char* strcpy(char *s, char *t) { c8: e52db004 push {fp} ; (str fp, [sp, #-4]!) char *os; os = s; while((*s++ = *t++) != 0) cc: e1a02000 mov r2, r0 #include "user.h" #include "arm.h" char* strcpy(char *s, char *t) { d0: e28db000 add fp, sp, #0 char *os; os = s; while((*s++ = *t++) != 0) d4: e4d13001 ldrb r3, [r1], #1 d8: e3530000 cmp r3, #0 dc: e4c23001 strb r3, [r2], #1 e0: 1afffffb bne d4 <strcpy+0xc> ; return os; } e4: e28bd000 add sp, fp, #0 e8: e8bd0800 pop {fp} ec: e12fff1e bx lr 000000f0 <strcmp>: int strcmp(const char *p, const char *q) { f0: e52db004 push {fp} ; (str fp, [sp, #-4]!) f4: e28db000 add fp, sp, #0 while(*p && *p == *q) f8: e5d03000 ldrb r3, [r0] fc: e5d12000 ldrb r2, [r1] 100: e3530000 cmp r3, #0 104: 1a000004 bne 11c <strcmp+0x2c> 108: ea000005 b 124 <strcmp+0x34> 10c: e5f03001 ldrb r3, [r0, #1]! 110: e3530000 cmp r3, #0 114: 0a000006 beq 134 <strcmp+0x44> 118: e5f12001 ldrb r2, [r1, #1]! 11c: e1530002 cmp r3, r2 120: 0afffff9 beq 10c <strcmp+0x1c> p++, q++; return (uchar)*p - (uchar)*q; } 124: e0620003 rsb r0, r2, r3 128: e28bd000 add sp, fp, #0 12c: e8bd0800 pop {fp} 130: e12fff1e bx lr } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 134: e5d12001 ldrb r2, [r1, #1] 138: eafffff9 b 124 <strcmp+0x34> 0000013c <strlen>: return (uchar)*p - (uchar)*q; } uint strlen(char *s) { 13c: e52db004 push {fp} ; (str fp, [sp, #-4]!) 140: e28db000 add fp, sp, #0 int n; for(n = 0; s[n]; n++) 144: e5d03000 ldrb r3, [r0] 148: e3530000 cmp r3, #0 14c: 01a00003 moveq r0, r3 150: 0a000006 beq 170 <strlen+0x34> 154: e1a02000 mov r2, r0 158: e3a03000 mov r3, #0 15c: e5f21001 ldrb r1, [r2, #1]! 160: e2833001 add r3, r3, #1 164: e1a00003 mov r0, r3 168: e3510000 cmp r1, #0 16c: 1afffffa bne 15c <strlen+0x20> ; return n; } 170: e28bd000 add sp, fp, #0 174: e8bd0800 pop {fp} 178: e12fff1e bx lr 0000017c <memset>: memset(void *dst, int c, uint n) { char *p=dst; u32 rc=n; while (rc-- > 0) *p++ = c; 17c: e3520000 cmp r2, #0 return n; } void* memset(void *dst, int c, uint n) { 180: e52db004 push {fp} ; (str fp, [sp, #-4]!) 184: e28db000 add fp, sp, #0 char *p=dst; u32 rc=n; while (rc-- > 0) *p++ = c; 188: 0a000006 beq 1a8 <memset+0x2c> 18c: e6ef1071 uxtb r1, r1 190: e1a03002 mov r3, r2 } void* memset(void *dst, int c, uint n) { char *p=dst; 194: e1a0c000 mov ip, r0 u32 rc=n; while (rc-- > 0) *p++ = c; 198: e2533001 subs r3, r3, #1 19c: e4cc1001 strb r1, [ip], #1 1a0: 1afffffc bne 198 <memset+0x1c> 1a4: e0800002 add r0, r0, r2 return (void *)p; } 1a8: e28bd000 add sp, fp, #0 1ac: e8bd0800 pop {fp} 1b0: e12fff1e bx lr 000001b4 <strchr>: char* strchr(const char *s, char c) { 1b4: e52db004 push {fp} ; (str fp, [sp, #-4]!) 1b8: e28db000 add fp, sp, #0 for(; *s; s++) 1bc: e5d03000 ldrb r3, [r0] 1c0: e3530000 cmp r3, #0 1c4: 1a000004 bne 1dc <strchr+0x28> 1c8: ea000008 b 1f0 <strchr+0x3c> 1cc: e5d03001 ldrb r3, [r0, #1] 1d0: e2800001 add r0, r0, #1 1d4: e3530000 cmp r3, #0 1d8: 0a000004 beq 1f0 <strchr+0x3c> if(*s == c) 1dc: e1530001 cmp r3, r1 1e0: 1afffff9 bne 1cc <strchr+0x18> return (char*)s; return 0; } 1e4: e28bd000 add sp, fp, #0 1e8: e8bd0800 pop {fp} 1ec: e12fff1e bx lr strchr(const char *s, char c) { for(; *s; s++) if(*s == c) return (char*)s; return 0; 1f0: e1a00003 mov r0, r3 1f4: eafffffa b 1e4 <strchr+0x30> 000001f8 <gets>: } char* gets(char *buf, int max) { 1f8: e92d49f0 push {r4, r5, r6, r7, r8, fp, lr} 1fc: e28db018 add fp, sp, #24 200: e24dd00c sub sp, sp, #12 204: e1a08000 mov r8, r0 208: e1a07001 mov r7, r1 int i, cc; char c; for(i=0; i+1 < max; ){ 20c: e1a06000 mov r6, r0 210: e3a05000 mov r5, #0 214: ea000008 b 23c <gets+0x44> cc = read(0, &c, 1); 218: eb000079 bl 404 <read> if(cc < 1) 21c: e3500000 cmp r0, #0 220: da00000b ble 254 <gets+0x5c> break; buf[i++] = c; 224: e55b301d ldrb r3, [fp, #-29] if(c == '\n' || c == '\r') 228: e1a05004 mov r5, r4 22c: e353000a cmp r3, #10 230: 1353000d cmpne r3, #13 for(i=0; i+1 < max; ){ cc = read(0, &c, 1); if(cc < 1) break; buf[i++] = c; 234: e4c63001 strb r3, [r6], #1 if(c == '\n' || c == '\r') 238: 0a00000a beq 268 <gets+0x70> { int i, cc; char c; for(i=0; i+1 < max; ){ cc = read(0, &c, 1); 23c: e3a02001 mov r2, #1 gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 240: e0854002 add r4, r5, r2 244: e1540007 cmp r4, r7 cc = read(0, &c, 1); 248: e3a00000 mov r0, #0 24c: e24b101d sub r1, fp, #29 gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 250: bafffff0 blt 218 <gets+0x20> break; buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 254: e3a03000 mov r3, #0 258: e7c83005 strb r3, [r8, r5] return buf; } 25c: e1a00008 mov r0, r8 260: e24bd018 sub sp, fp, #24 264: e8bd89f0 pop {r4, r5, r6, r7, r8, fp, pc} gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 268: e1a05004 mov r5, r4 26c: eafffff8 b 254 <gets+0x5c> 00000270 <stat>: return buf; } int stat(char *n, struct stat *st) { 270: e92d4830 push {r4, r5, fp, lr} 274: e1a05001 mov r5, r1 278: e28db00c add fp, sp, #12 int fd; int r; fd = open(n, O_RDONLY); 27c: e3a01000 mov r1, #0 280: eb0000a0 bl 508 <open> if(fd < 0) 284: e2504000 subs r4, r0, #0 return -1; 288: b3e05000 mvnlt r5, #0 { int fd; int r; fd = open(n, O_RDONLY); if(fd < 0) 28c: ba000004 blt 2a4 <stat+0x34> return -1; r = fstat(fd, st); 290: e1a01005 mov r1, r5 294: eb0000c2 bl 5a4 <fstat> 298: e1a05000 mov r5, r0 close(fd); 29c: e1a00004 mov r0, r4 2a0: eb000071 bl 46c <close> return r; } 2a4: e1a00005 mov r0, r5 2a8: e8bd8830 pop {r4, r5, fp, pc} 000002ac <atoi>: int atoi(const char *s) { 2ac: e52db004 push {fp} ; (str fp, [sp, #-4]!) 2b0: e28db000 add fp, sp, #0 int n; n = 0; while('0' <= *s && *s <= '9') 2b4: e5d03000 ldrb r3, [r0] 2b8: e2432030 sub r2, r3, #48 ; 0x30 2bc: e6ef2072 uxtb r2, r2 2c0: e3520009 cmp r2, #9 int atoi(const char *s) { int n; n = 0; 2c4: 83a00000 movhi r0, #0 while('0' <= *s && *s <= '9') 2c8: 8a000009 bhi 2f4 <atoi+0x48> 2cc: e1a02000 mov r2, r0 int atoi(const char *s) { int n; n = 0; 2d0: e3a00000 mov r0, #0 while('0' <= *s && *s <= '9') n = n*10 + *s++ - '0'; 2d4: e0800100 add r0, r0, r0, lsl #2 2d8: e0830080 add r0, r3, r0, lsl #1 atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 2dc: e5f23001 ldrb r3, [r2, #1]! n = n*10 + *s++ - '0'; 2e0: e2400030 sub r0, r0, #48 ; 0x30 atoi(const char *s) { int n; n = 0; while('0' <= *s && *s <= '9') 2e4: e2431030 sub r1, r3, #48 ; 0x30 2e8: e6ef1071 uxtb r1, r1 2ec: e3510009 cmp r1, #9 2f0: 9afffff7 bls 2d4 <atoi+0x28> n = n*10 + *s++ - '0'; return n; } 2f4: e28bd000 add sp, fp, #0 2f8: e8bd0800 pop {fp} 2fc: e12fff1e bx lr 00000300 <memmove>: { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 300: e3520000 cmp r2, #0 return n; } void* memmove(void *vdst, void *vsrc, int n) { 304: e52db004 push {fp} ; (str fp, [sp, #-4]!) 308: e28db000 add fp, sp, #0 char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 30c: da000005 ble 328 <memmove+0x28> n = n*10 + *s++ - '0'; return n; } void* memmove(void *vdst, void *vsrc, int n) 310: e0802002 add r2, r0, r2 { char *dst, *src; dst = vdst; 314: e1a03000 mov r3, r0 src = vsrc; while(n-- > 0) *dst++ = *src++; 318: e4d1c001 ldrb ip, [r1], #1 31c: e4c3c001 strb ip, [r3], #1 { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 320: e1530002 cmp r3, r2 324: 1afffffb bne 318 <memmove+0x18> *dst++ = *src++; return vdst; } 328: e28bd000 add sp, fp, #0 32c: e8bd0800 pop {fp} 330: e12fff1e bx lr 00000334 <fork>: 334: e92d4000 push {lr} 338: e92d0008 push {r3} 33c: e92d0004 push {r2} 340: e92d0002 push {r1} 344: e92d0001 push {r0} 348: e3a00001 mov r0, #1 34c: ef000040 svc 0x00000040 350: e8bd0002 pop {r1} 354: e8bd0002 pop {r1} 358: e8bd0004 pop {r2} 35c: e8bd0008 pop {r3} 360: e8bd4000 pop {lr} 364: e12fff1e bx lr 00000368 <exit>: 368: e92d4000 push {lr} 36c: e92d0008 push {r3} 370: e92d0004 push {r2} 374: e92d0002 push {r1} 378: e92d0001 push {r0} 37c: e3a00002 mov r0, #2 380: ef000040 svc 0x00000040 384: e8bd0002 pop {r1} 388: e8bd0002 pop {r1} 38c: e8bd0004 pop {r2} 390: e8bd0008 pop {r3} 394: e8bd4000 pop {lr} 398: e12fff1e bx lr 0000039c <wait>: 39c: e92d4000 push {lr} 3a0: e92d0008 push {r3} 3a4: e92d0004 push {r2} 3a8: e92d0002 push {r1} 3ac: e92d0001 push {r0} 3b0: e3a00003 mov r0, #3 3b4: ef000040 svc 0x00000040 3b8: e8bd0002 pop {r1} 3bc: e8bd0002 pop {r1} 3c0: e8bd0004 pop {r2} 3c4: e8bd0008 pop {r3} 3c8: e8bd4000 pop {lr} 3cc: e12fff1e bx lr 000003d0 <pipe>: 3d0: e92d4000 push {lr} 3d4: e92d0008 push {r3} 3d8: e92d0004 push {r2} 3dc: e92d0002 push {r1} 3e0: e92d0001 push {r0} 3e4: e3a00004 mov r0, #4 3e8: ef000040 svc 0x00000040 3ec: e8bd0002 pop {r1} 3f0: e8bd0002 pop {r1} 3f4: e8bd0004 pop {r2} 3f8: e8bd0008 pop {r3} 3fc: e8bd4000 pop {lr} 400: e12fff1e bx lr 00000404 <read>: 404: e92d4000 push {lr} 408: e92d0008 push {r3} 40c: e92d0004 push {r2} 410: e92d0002 push {r1} 414: e92d0001 push {r0} 418: e3a00005 mov r0, #5 41c: ef000040 svc 0x00000040 420: e8bd0002 pop {r1} 424: e8bd0002 pop {r1} 428: e8bd0004 pop {r2} 42c: e8bd0008 pop {r3} 430: e8bd4000 pop {lr} 434: e12fff1e bx lr 00000438 <write>: 438: e92d4000 push {lr} 43c: e92d0008 push {r3} 440: e92d0004 push {r2} 444: e92d0002 push {r1} 448: e92d0001 push {r0} 44c: e3a00010 mov r0, #16 450: ef000040 svc 0x00000040 454: e8bd0002 pop {r1} 458: e8bd0002 pop {r1} 45c: e8bd0004 pop {r2} 460: e8bd0008 pop {r3} 464: e8bd4000 pop {lr} 468: e12fff1e bx lr 0000046c <close>: 46c: e92d4000 push {lr} 470: e92d0008 push {r3} 474: e92d0004 push {r2} 478: e92d0002 push {r1} 47c: e92d0001 push {r0} 480: e3a00015 mov r0, #21 484: ef000040 svc 0x00000040 488: e8bd0002 pop {r1} 48c: e8bd0002 pop {r1} 490: e8bd0004 pop {r2} 494: e8bd0008 pop {r3} 498: e8bd4000 pop {lr} 49c: e12fff1e bx lr 000004a0 <kill>: 4a0: e92d4000 push {lr} 4a4: e92d0008 push {r3} 4a8: e92d0004 push {r2} 4ac: e92d0002 push {r1} 4b0: e92d0001 push {r0} 4b4: e3a00006 mov r0, #6 4b8: ef000040 svc 0x00000040 4bc: e8bd0002 pop {r1} 4c0: e8bd0002 pop {r1} 4c4: e8bd0004 pop {r2} 4c8: e8bd0008 pop {r3} 4cc: e8bd4000 pop {lr} 4d0: e12fff1e bx lr 000004d4 <exec>: 4d4: e92d4000 push {lr} 4d8: e92d0008 push {r3} 4dc: e92d0004 push {r2} 4e0: e92d0002 push {r1} 4e4: e92d0001 push {r0} 4e8: e3a00007 mov r0, #7 4ec: ef000040 svc 0x00000040 4f0: e8bd0002 pop {r1} 4f4: e8bd0002 pop {r1} 4f8: e8bd0004 pop {r2} 4fc: e8bd0008 pop {r3} 500: e8bd4000 pop {lr} 504: e12fff1e bx lr 00000508 <open>: 508: e92d4000 push {lr} 50c: e92d0008 push {r3} 510: e92d0004 push {r2} 514: e92d0002 push {r1} 518: e92d0001 push {r0} 51c: e3a0000f mov r0, #15 520: ef000040 svc 0x00000040 524: e8bd0002 pop {r1} 528: e8bd0002 pop {r1} 52c: e8bd0004 pop {r2} 530: e8bd0008 pop {r3} 534: e8bd4000 pop {lr} 538: e12fff1e bx lr 0000053c <mknod>: 53c: e92d4000 push {lr} 540: e92d0008 push {r3} 544: e92d0004 push {r2} 548: e92d0002 push {r1} 54c: e92d0001 push {r0} 550: e3a00011 mov r0, #17 554: ef000040 svc 0x00000040 558: e8bd0002 pop {r1} 55c: e8bd0002 pop {r1} 560: e8bd0004 pop {r2} 564: e8bd0008 pop {r3} 568: e8bd4000 pop {lr} 56c: e12fff1e bx lr 00000570 <unlink>: 570: e92d4000 push {lr} 574: e92d0008 push {r3} 578: e92d0004 push {r2} 57c: e92d0002 push {r1} 580: e92d0001 push {r0} 584: e3a00012 mov r0, #18 588: ef000040 svc 0x00000040 58c: e8bd0002 pop {r1} 590: e8bd0002 pop {r1} 594: e8bd0004 pop {r2} 598: e8bd0008 pop {r3} 59c: e8bd4000 pop {lr} 5a0: e12fff1e bx lr 000005a4 <fstat>: 5a4: e92d4000 push {lr} 5a8: e92d0008 push {r3} 5ac: e92d0004 push {r2} 5b0: e92d0002 push {r1} 5b4: e92d0001 push {r0} 5b8: e3a00008 mov r0, #8 5bc: ef000040 svc 0x00000040 5c0: e8bd0002 pop {r1} 5c4: e8bd0002 pop {r1} 5c8: e8bd0004 pop {r2} 5cc: e8bd0008 pop {r3} 5d0: e8bd4000 pop {lr} 5d4: e12fff1e bx lr 000005d8 <link>: 5d8: e92d4000 push {lr} 5dc: e92d0008 push {r3} 5e0: e92d0004 push {r2} 5e4: e92d0002 push {r1} 5e8: e92d0001 push {r0} 5ec: e3a00013 mov r0, #19 5f0: ef000040 svc 0x00000040 5f4: e8bd0002 pop {r1} 5f8: e8bd0002 pop {r1} 5fc: e8bd0004 pop {r2} 600: e8bd0008 pop {r3} 604: e8bd4000 pop {lr} 608: e12fff1e bx lr 0000060c <mkdir>: 60c: e92d4000 push {lr} 610: e92d0008 push {r3} 614: e92d0004 push {r2} 618: e92d0002 push {r1} 61c: e92d0001 push {r0} 620: e3a00014 mov r0, #20 624: ef000040 svc 0x00000040 628: e8bd0002 pop {r1} 62c: e8bd0002 pop {r1} 630: e8bd0004 pop {r2} 634: e8bd0008 pop {r3} 638: e8bd4000 pop {lr} 63c: e12fff1e bx lr 00000640 <chdir>: 640: e92d4000 push {lr} 644: e92d0008 push {r3} 648: e92d0004 push {r2} 64c: e92d0002 push {r1} 650: e92d0001 push {r0} 654: e3a00009 mov r0, #9 658: ef000040 svc 0x00000040 65c: e8bd0002 pop {r1} 660: e8bd0002 pop {r1} 664: e8bd0004 pop {r2} 668: e8bd0008 pop {r3} 66c: e8bd4000 pop {lr} 670: e12fff1e bx lr 00000674 <dup>: 674: e92d4000 push {lr} 678: e92d0008 push {r3} 67c: e92d0004 push {r2} 680: e92d0002 push {r1} 684: e92d0001 push {r0} 688: e3a0000a mov r0, #10 68c: ef000040 svc 0x00000040 690: e8bd0002 pop {r1} 694: e8bd0002 pop {r1} 698: e8bd0004 pop {r2} 69c: e8bd0008 pop {r3} 6a0: e8bd4000 pop {lr} 6a4: e12fff1e bx lr 000006a8 <getpid>: 6a8: e92d4000 push {lr} 6ac: e92d0008 push {r3} 6b0: e92d0004 push {r2} 6b4: e92d0002 push {r1} 6b8: e92d0001 push {r0} 6bc: e3a0000b mov r0, #11 6c0: ef000040 svc 0x00000040 6c4: e8bd0002 pop {r1} 6c8: e8bd0002 pop {r1} 6cc: e8bd0004 pop {r2} 6d0: e8bd0008 pop {r3} 6d4: e8bd4000 pop {lr} 6d8: e12fff1e bx lr 000006dc <sbrk>: 6dc: e92d4000 push {lr} 6e0: e92d0008 push {r3} 6e4: e92d0004 push {r2} 6e8: e92d0002 push {r1} 6ec: e92d0001 push {r0} 6f0: e3a0000c mov r0, #12 6f4: ef000040 svc 0x00000040 6f8: e8bd0002 pop {r1} 6fc: e8bd0002 pop {r1} 700: e8bd0004 pop {r2} 704: e8bd0008 pop {r3} 708: e8bd4000 pop {lr} 70c: e12fff1e bx lr 00000710 <sleep>: 710: e92d4000 push {lr} 714: e92d0008 push {r3} 718: e92d0004 push {r2} 71c: e92d0002 push {r1} 720: e92d0001 push {r0} 724: e3a0000d mov r0, #13 728: ef000040 svc 0x00000040 72c: e8bd0002 pop {r1} 730: e8bd0002 pop {r1} 734: e8bd0004 pop {r2} 738: e8bd0008 pop {r3} 73c: e8bd4000 pop {lr} 740: e12fff1e bx lr 00000744 <uptime>: 744: e92d4000 push {lr} 748: e92d0008 push {r3} 74c: e92d0004 push {r2} 750: e92d0002 push {r1} 754: e92d0001 push {r0} 758: e3a0000e mov r0, #14 75c: ef000040 svc 0x00000040 760: e8bd0002 pop {r1} 764: e8bd0002 pop {r1} 768: e8bd0004 pop {r2} 76c: e8bd0008 pop {r3} 770: e8bd4000 pop {lr} 774: e12fff1e bx lr 00000778 <putc>: #include "stat.h" #include "user.h" static void putc(int fd, char c) { 778: e92d4800 push {fp, lr} 77c: e28db004 add fp, sp, #4 780: e24b3004 sub r3, fp, #4 784: e24dd008 sub sp, sp, #8 write(fd, &c, 1); 788: e3a02001 mov r2, #1 #include "stat.h" #include "user.h" static void putc(int fd, char c) { 78c: e5631001 strb r1, [r3, #-1]! write(fd, &c, 1); 790: e1a01003 mov r1, r3 794: ebffff27 bl 438 <write> } 798: e24bd004 sub sp, fp, #4 79c: e8bd8800 pop {fp, pc} 000007a0 <printint>: return q; } static void printint(int fd, int xx, int base, int sgn) { 7a0: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 7a4: e1a04000 mov r4, r0 char buf[16]; int i, neg; uint x, y, b; neg = 0; if(sgn && xx < 0){ 7a8: e1a00fa1 lsr r0, r1, #31 7ac: e3530000 cmp r3, #0 7b0: 03a03000 moveq r3, #0 7b4: 12003001 andne r3, r0, #1 return q; } static void printint(int fd, int xx, int base, int sgn) { 7b8: e28db020 add fp, sp, #32 char buf[16]; int i, neg; uint x, y, b; neg = 0; if(sgn && xx < 0){ 7bc: e3530000 cmp r3, #0 return q; } static void printint(int fd, int xx, int base, int sgn) { 7c0: e24dd014 sub sp, sp, #20 7c4: e59f909c ldr r9, [pc, #156] ; 868 <printint+0xc8> uint x, y, b; neg = 0; if(sgn && xx < 0){ neg = 1; x = -xx; 7c8: 12611000 rsbne r1, r1, #0 int i, neg; uint x, y, b; neg = 0; if(sgn && xx < 0){ neg = 1; 7cc: 13a03001 movne r3, #1 } else { x = xx; } b = base; i = 0; 7d0: e3a0a000 mov sl, #0 7d4: e24b6034 sub r6, fp, #52 ; 0x34 for(i=31;i>=0;i--){ r = r << 1; r = r | ((n >> i) & 1); if(r >= d) { r = r - d; q = q | (1 << i); 7d8: e3a08001 mov r8, #1 write(fd, &c, 1); } u32 div(u32 n, u32 d) // long division { u32 q=0, r=0; 7dc: e3a07000 mov r7, #0 int i; for(i=31;i>=0;i--){ 7e0: e3a0001f mov r0, #31 write(fd, &c, 1); } u32 div(u32 n, u32 d) // long division { u32 q=0, r=0; 7e4: e1a0c007 mov ip, r7 int i; for(i=31;i>=0;i--){ r = r << 1; r = r | ((n >> i) & 1); 7e8: e1a0e031 lsr lr, r1, r0 7ec: e20ee001 and lr, lr, #1 7f0: e18ec08c orr ip, lr, ip, lsl #1 if(r >= d) { 7f4: e152000c cmp r2, ip r = r - d; q = q | (1 << i); 7f8: 91877018 orrls r7, r7, r8, lsl r0 for(i=31;i>=0;i--){ r = r << 1; r = r | ((n >> i) & 1); if(r >= d) { r = r - d; 7fc: 9062c00c rsbls ip, r2, ip u32 div(u32 n, u32 d) // long division { u32 q=0, r=0; int i; for(i=31;i>=0;i--){ 800: e2500001 subs r0, r0, #1 804: 2afffff7 bcs 7e8 <printint+0x48> b = base; i = 0; do{ y = div(x, b); buf[i++] = digits[x - y * b]; 808: e0000792 mul r0, r2, r7 }while((x = y) != 0); 80c: e3570000 cmp r7, #0 b = base; i = 0; do{ y = div(x, b); buf[i++] = digits[x - y * b]; 810: e0601001 rsb r1, r0, r1 814: e28a5001 add r5, sl, #1 818: e7d91001 ldrb r1, [r9, r1] 81c: e7c6100a strb r1, [r6, sl] }while((x = y) != 0); 820: 11a01007 movne r1, r7 b = base; i = 0; do{ y = div(x, b); buf[i++] = digits[x - y * b]; 824: 11a0a005 movne sl, r5 828: 1affffeb bne 7dc <printint+0x3c> }while((x = y) != 0); if(neg) 82c: e3530000 cmp r3, #0 buf[i++] = '-'; 830: 124b2024 subne r2, fp, #36 ; 0x24 834: 10823005 addne r3, r2, r5 838: 128a5002 addne r5, sl, #2 while(--i >= 0) 83c: e2455001 sub r5, r5, #1 do{ y = div(x, b); buf[i++] = digits[x - y * b]; }while((x = y) != 0); if(neg) buf[i++] = '-'; 840: 13a0202d movne r2, #45 ; 0x2d 844: 15432010 strbne r2, [r3, #-16] while(--i >= 0) putc(fd, buf[i]); 848: e7d61005 ldrb r1, [r6, r5] 84c: e1a00004 mov r0, r4 buf[i++] = digits[x - y * b]; }while((x = y) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 850: e2455001 sub r5, r5, #1 putc(fd, buf[i]); 854: ebffffc7 bl 778 <putc> buf[i++] = digits[x - y * b]; }while((x = y) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 858: e3750001 cmn r5, #1 85c: 1afffff9 bne 848 <printint+0xa8> putc(fd, buf[i]); } 860: e24bd020 sub sp, fp, #32 864: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} 868: 00000bc8 .word 0x00000bc8 0000086c <div>: write(fd, &c, 1); } u32 div(u32 n, u32 d) // long division { u32 q=0, r=0; 86c: e3a03000 mov r3, #0 { write(fd, &c, 1); } u32 div(u32 n, u32 d) // long division { 870: e92d0830 push {r4, r5, fp} 874: e1a02000 mov r2, r0 878: e28db008 add fp, sp, #8 u32 q=0, r=0; int i; for(i=31;i>=0;i--){ 87c: e3a0c01f mov ip, #31 write(fd, &c, 1); } u32 div(u32 n, u32 d) // long division { u32 q=0, r=0; 880: e1a00003 mov r0, r3 for(i=31;i>=0;i--){ r = r << 1; r = r | ((n >> i) & 1); if(r >= d) { r = r - d; q = q | (1 << i); 884: e3a05001 mov r5, #1 u32 q=0, r=0; int i; for(i=31;i>=0;i--){ r = r << 1; r = r | ((n >> i) & 1); 888: e1a04c32 lsr r4, r2, ip 88c: e2044001 and r4, r4, #1 890: e1843083 orr r3, r4, r3, lsl #1 if(r >= d) { 894: e1530001 cmp r3, r1 r = r - d; q = q | (1 << i); 898: 21800c15 orrcs r0, r0, r5, lsl ip for(i=31;i>=0;i--){ r = r << 1; r = r | ((n >> i) & 1); if(r >= d) { r = r - d; 89c: 20613003 rsbcs r3, r1, r3 u32 div(u32 n, u32 d) // long division { u32 q=0, r=0; int i; for(i=31;i>=0;i--){ 8a0: e25cc001 subs ip, ip, #1 8a4: 2afffff7 bcs 888 <div+0x1c> r = r - d; q = q | (1 << i); } } return q; } 8a8: e24bd008 sub sp, fp, #8 8ac: e8bd0830 pop {r4, r5, fp} 8b0: e12fff1e bx lr 000008b4 <printf>: } // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 8b4: e92d000e push {r1, r2, r3} 8b8: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 8bc: e28db020 add fp, sp, #32 8c0: e1a05000 mov r5, r0 int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 8c4: e59b4004 ldr r4, [fp, #4] 8c8: e5d48000 ldrb r8, [r4] 8cc: e3580000 cmp r8, #0 8d0: 0a000027 beq 974 <printf+0xc0> ap++; } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; 8d4: e59f712c ldr r7, [pc, #300] ; a08 <printf+0x154> char *s; int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; 8d8: e28b6008 add r6, fp, #8 { char *s; int c, i, state; uint *ap; state = 0; 8dc: e3a0a000 mov sl, #0 8e0: ea000008 b 908 <printf+0x54> ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ 8e4: e3580025 cmp r8, #37 ; 0x25 state = '%'; 8e8: 01a0a008 moveq sl, r8 state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ c = fmt[i] & 0xff; if(state == 0){ if(c == '%'){ 8ec: 0a000002 beq 8fc <printf+0x48> state = '%'; } else { putc(fd, c); 8f0: e1a00005 mov r0, r5 8f4: e1a01008 mov r1, r8 8f8: ebffff9e bl 778 <putc> int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 8fc: e5f48001 ldrb r8, [r4, #1]! 900: e3580000 cmp r8, #0 904: 0a00001a beq 974 <printf+0xc0> c = fmt[i] & 0xff; if(state == 0){ 908: e35a0000 cmp sl, #0 90c: 0afffff4 beq 8e4 <printf+0x30> if(c == '%'){ state = '%'; } else { putc(fd, c); } } else if(state == '%'){ 910: e35a0025 cmp sl, #37 ; 0x25 914: 1afffff8 bne 8fc <printf+0x48> if(c == 'd'){ 918: e3580064 cmp r8, #100 ; 0x64 91c: 0a00002c beq 9d4 <printf+0x120> printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ 920: e3580078 cmp r8, #120 ; 0x78 924: 13580070 cmpne r8, #112 ; 0x70 928: 13a09000 movne r9, #0 92c: 03a09001 moveq r9, #1 930: 0a000013 beq 984 <printf+0xd0> printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ 934: e3580073 cmp r8, #115 ; 0x73 938: 0a000018 beq 9a0 <printf+0xec> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 93c: e3580063 cmp r8, #99 ; 0x63 940: 0a00002a beq 9f0 <printf+0x13c> putc(fd, *ap); ap++; } else if(c == '%'){ 944: e3580025 cmp r8, #37 ; 0x25 putc(fd, c); 948: e1a0100a mov r1, sl 94c: e1a00005 mov r0, r5 s++; } } else if(c == 'c'){ putc(fd, *ap); ap++; } else if(c == '%'){ 950: 0a000002 beq 960 <printf+0xac> putc(fd, c); } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 954: ebffff87 bl 778 <putc> putc(fd, c); 958: e1a00005 mov r0, r5 95c: e1a01008 mov r1, r8 960: ebffff84 bl 778 <putc> int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 964: e5f48001 ldrb r8, [r4, #1]! } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 968: e1a0a009 mov sl, r9 int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 96c: e3580000 cmp r8, #0 970: 1affffe4 bne 908 <printf+0x54> putc(fd, c); } state = 0; } } } 974: e24bd020 sub sp, fp, #32 978: e8bd4ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, lr} 97c: e28dd00c add sp, sp, #12 980: e12fff1e bx lr } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); 984: e1a00005 mov r0, r5 988: e4961004 ldr r1, [r6], #4 98c: e3a02010 mov r2, #16 990: e3a03000 mov r3, #0 994: ebffff81 bl 7a0 <printint> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 998: e3a0a000 mov sl, #0 99c: eaffffd6 b 8fc <printf+0x48> ap++; } else if(c == 'x' || c == 'p'){ printint(fd, *ap, 16, 0); ap++; } else if(c == 's'){ s = (char*)*ap; 9a0: e4968004 ldr r8, [r6], #4 ap++; if(s == 0) s = "(null)"; 9a4: e3580000 cmp r8, #0 9a8: 01a08007 moveq r8, r7 while(*s != 0){ 9ac: e5d81000 ldrb r1, [r8] 9b0: e3510000 cmp r1, #0 9b4: 0a000004 beq 9cc <printf+0x118> putc(fd, *s); 9b8: e1a00005 mov r0, r5 9bc: ebffff6d bl 778 <putc> } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 9c0: e5f81001 ldrb r1, [r8, #1]! 9c4: e3510000 cmp r1, #0 9c8: 1afffffa bne 9b8 <printf+0x104> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 9cc: e1a0a001 mov sl, r1 9d0: eaffffc9 b 8fc <printf+0x48> } else { putc(fd, c); } } else if(state == '%'){ if(c == 'd'){ printint(fd, *ap, 10, 1); 9d4: e1a00005 mov r0, r5 9d8: e4961004 ldr r1, [r6], #4 9dc: e3a0200a mov r2, #10 9e0: e3a03001 mov r3, #1 9e4: ebffff6d bl 7a0 <printint> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 9e8: e3a0a000 mov sl, #0 9ec: eaffffc2 b 8fc <printf+0x48> while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ putc(fd, *ap); 9f0: e4961004 ldr r1, [r6], #4 9f4: e1a00005 mov r0, r5 } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); putc(fd, c); } state = 0; 9f8: e1a0a009 mov sl, r9 while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ putc(fd, *ap); 9fc: e6ef1071 uxtb r1, r1 a00: ebffff5c bl 778 <putc> a04: eaffffbc b 8fc <printf+0x48> a08: 00000bdc .word 0x00000bdc 00000a0c <free>: free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) a0c: e59f3098 ldr r3, [pc, #152] ; aac <free+0xa0> static Header base; static Header *freep; void free(void *ap) { a10: e92d0830 push {r4, r5, fp} Header *bp, *p; bp = (Header*)ap - 1; a14: e240c008 sub ip, r0, #8 for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) a18: e5932000 ldr r2, [r3] static Header base; static Header *freep; void free(void *ap) { a1c: e28db008 add fp, sp, #8 Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) a20: e152000c cmp r2, ip a24: e5921000 ldr r1, [r2] a28: 2a000001 bcs a34 <free+0x28> a2c: e15c0001 cmp ip, r1 a30: 3a000007 bcc a54 <free+0x48> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) a34: e1520001 cmp r2, r1 a38: 3a000003 bcc a4c <free+0x40> a3c: e152000c cmp r2, ip a40: 3a000003 bcc a54 <free+0x48> a44: e15c0001 cmp ip, r1 a48: 3a000001 bcc a54 <free+0x48> static Header base; static Header *freep; void free(void *ap) { a4c: e1a02001 mov r2, r1 a50: eafffff2 b a20 <free+0x14> bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ a54: e5104004 ldr r4, [r0, #-4] if(p + p->s.size == bp){ p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; freep = p; a58: e5832000 str r2, [r3] bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ a5c: e08c5184 add r5, ip, r4, lsl #3 a60: e1550001 cmp r5, r1 bp->s.size += p->s.ptr->s.size; a64: 05911004 ldreq r1, [r1, #4] a68: 00814004 addeq r4, r1, r4 a6c: 05004004 streq r4, [r0, #-4] bp->s.ptr = p->s.ptr->s.ptr; a70: 05921000 ldreq r1, [r2] a74: 05911000 ldreq r1, [r1] } else bp->s.ptr = p->s.ptr; a78: e5001008 str r1, [r0, #-8] if(p + p->s.size == bp){ a7c: e5921004 ldr r1, [r2, #4] a80: e0824181 add r4, r2, r1, lsl #3 a84: e15c0004 cmp ip, r4 p->s.size += bp->s.size; p->s.ptr = bp->s.ptr; } else p->s.ptr = bp; a88: 1582c000 strne ip, [r2] bp->s.size += p->s.ptr->s.size; bp->s.ptr = p->s.ptr->s.ptr; } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ p->s.size += bp->s.size; a8c: 0510c004 ldreq ip, [r0, #-4] a90: 008c1001 addeq r1, ip, r1 a94: 05821004 streq r1, [r2, #4] p->s.ptr = bp->s.ptr; a98: 05101008 ldreq r1, [r0, #-8] a9c: 05821000 streq r1, [r2] } else p->s.ptr = bp; freep = p; } aa0: e24bd008 sub sp, fp, #8 aa4: e8bd0830 pop {r4, r5, fp} aa8: e12fff1e bx lr aac: 00000be4 .word 0x00000be4 00000ab0 <malloc>: return freep; } void* malloc(uint nbytes) { ab0: e92d49f8 push {r3, r4, r5, r6, r7, r8, fp, lr} Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; ab4: e2804007 add r4, r0, #7 if((prevp = freep) == 0){ ab8: e59f50d4 ldr r5, [pc, #212] ; b94 <malloc+0xe4> malloc(uint nbytes) { Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; abc: e1a041a4 lsr r4, r4, #3 return freep; } void* malloc(uint nbytes) { ac0: e28db01c add fp, sp, #28 Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ ac4: e5953000 ldr r3, [r5] malloc(uint nbytes) { Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; ac8: e2844001 add r4, r4, #1 if((prevp = freep) == 0){ acc: e3530000 cmp r3, #0 ad0: 0a00002b beq b84 <malloc+0xd4> ad4: e5930000 ldr r0, [r3] ad8: e5902004 ldr r2, [r0, #4] base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ adc: e1520004 cmp r2, r4 ae0: 2a00001b bcs b54 <malloc+0xa4> morecore(uint nu) { char *p; Header *hp; if(nu < 4096) ae4: e59f80ac ldr r8, [pc, #172] ; b98 <malloc+0xe8> p->s.size -= nunits; p += p->s.size; p->s.size = nunits; } freep = prevp; return (void*)(p + 1); ae8: e1a07184 lsl r7, r4, #3 aec: ea000003 b b00 <malloc+0x50> nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ af0: e5930000 ldr r0, [r3] if(p->s.size >= nunits){ af4: e5902004 ldr r2, [r0, #4] af8: e1540002 cmp r4, r2 afc: 9a000014 bls b54 <malloc+0xa4> p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) b00: e5952000 ldr r2, [r5] b04: e1a03000 mov r3, r0 b08: e1500002 cmp r0, r2 b0c: 1afffff7 bne af0 <malloc+0x40> morecore(uint nu) { char *p; Header *hp; if(nu < 4096) b10: e1540008 cmp r4, r8 nu = 4096; p = sbrk(nu * sizeof(Header)); b14: 81a00007 movhi r0, r7 b18: 93a00902 movls r0, #32768 ; 0x8000 morecore(uint nu) { char *p; Header *hp; if(nu < 4096) b1c: 81a06004 movhi r6, r4 b20: 93a06a01 movls r6, #4096 ; 0x1000 nu = 4096; p = sbrk(nu * sizeof(Header)); b24: ebfffeec bl 6dc <sbrk> b28: e1a03000 mov r3, r0 if(p == (char*)-1) b2c: e3730001 cmn r3, #1 return 0; hp = (Header*)p; hp->s.size = nu; free((void*)(hp + 1)); b30: e2800008 add r0, r0, #8 Header *hp; if(nu < 4096) nu = 4096; p = sbrk(nu * sizeof(Header)); if(p == (char*)-1) b34: 0a000010 beq b7c <malloc+0xcc> return 0; hp = (Header*)p; hp->s.size = nu; b38: e5836004 str r6, [r3, #4] free((void*)(hp + 1)); b3c: ebffffb2 bl a0c <free> return freep; b40: e5953000 ldr r3, [r5] } freep = prevp; return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) b44: e3530000 cmp r3, #0 b48: 1affffe8 bne af0 <malloc+0x40> return 0; b4c: e1a00003 mov r0, r3 } } b50: e8bd89f8 pop {r3, r4, r5, r6, r7, r8, fp, pc} base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ if(p->s.size == nunits) b54: e1540002 cmp r4, r2 prevp->s.ptr = p->s.ptr; else { p->s.size -= nunits; b58: 10642002 rsbne r2, r4, r2 b5c: 15802004 strne r2, [r0, #4] base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ if(p->s.size == nunits) prevp->s.ptr = p->s.ptr; b60: 05902000 ldreq r2, [r0] else { p->s.size -= nunits; p += p->s.size; b64: 10800182 addne r0, r0, r2, lsl #3 base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ if(p->s.size >= nunits){ if(p->s.size == nunits) prevp->s.ptr = p->s.ptr; b68: 05832000 streq r2, [r3] else { p->s.size -= nunits; p += p->s.size; p->s.size = nunits; b6c: 15804004 strne r4, [r0, #4] } freep = prevp; b70: e5853000 str r3, [r5] return (void*)(p + 1); b74: e2800008 add r0, r0, #8 b78: e8bd89f8 pop {r3, r4, r5, r6, r7, r8, fp, pc} } if(p == freep) if((p = morecore(nunits)) == 0) return 0; b7c: e3a00000 mov r0, #0 b80: e8bd89f8 pop {r3, r4, r5, r6, r7, r8, fp, pc} Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; b84: e2850004 add r0, r5, #4 b88: e5850000 str r0, [r5] base.s.size = 0; b8c: e9850009 stmib r5, {r0, r3} b90: eaffffd3 b ae4 <malloc+0x34> b94: 00000be4 .word 0x00000be4 b98: 00000fff .word 0x00000fff
21.976744
60
0.554497
b885ea48e1d016b113efc4c1b245dc4b32d82c23
348
asm
Assembly
asm/amd64/core_win.asm
drkameleon/elena-lang
8585e93a3bc0b19f8d60029ffbe01311d0b711a3
[ "MIT" ]
null
null
null
asm/amd64/core_win.asm
drkameleon/elena-lang
8585e93a3bc0b19f8d60029ffbe01311d0b711a3
[ "MIT" ]
null
null
null
asm/amd64/core_win.asm
drkameleon/elena-lang
8585e93a3bc0b19f8d60029ffbe01311d0b711a3
[ "MIT" ]
null
null
null
// --- Predefined References -- define EXIT 1001Dh define PREPARE 10027h define CORE_OS_TABLE 20009h structure % CORE_OS_TABLE dq 0 // ; dummy end procedure % EXIT mov ecx, 0 // ; exit sub rsp, 20h call extern 'dlls'KERNEL32.ExitProcess end procedure % PREPARE ret // ; idle end
12.428571
45
0.597701
e1ddafa6b46476967972236901fdbdb7e3930d6a
145
asm
Assembly
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/polygon.lzh/polygon/sf2/gastrats.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/polygon.lzh/polygon/sf2/gastrats.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/polygon.lzh/polygon/sf2/gastrats.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: gastrats.asm Type: file Size: 4021 Last-Modified: '1993-03-02T01:36:57Z' SHA-1: E2959A8E1DAD3D5C8CEE4F340FEA7C29099087F6 Description: null
20.714286
47
0.813793
3d82982fffeaa6b065a1c38dce488fe070261129
674
asm
Assembly
Engine Hacks/Skill System/Teq Skills/FE8-Capture/FE8-Capture/New_Weapon_Select.asm
sme23/MekkahRestrictedHackComp1
1cc9d2fec557424f358b6bfa21f9f3bb6faf2978
[ "CC0-1.0" ]
1
2021-09-27T02:59:12.000Z
2021-09-27T02:59:12.000Z
Wizardry/SkillSystem/Skills/UnitMenuSkills/Capture/Capture/New_Weapon_Select.s
sme23/WhatHeck
746a2be83358aaa4e855182176b47c4808f2587a
[ "CC0-1.0" ]
null
null
null
Wizardry/SkillSystem/Skills/UnitMenuSkills/Capture/Capture/New_Weapon_Select.s
sme23/WhatHeck
746a2be83358aaa4e855182176b47c4808f2587a
[ "CC0-1.0" ]
null
null
null
.thumb .org 0x0 @branched to from 22D08 @fills in the range for 1-2+ as only 1-1 when capturing after selecting a weapon @r4=3004e50 push {r14} ldr r0,Func_4E884 mov r14,r0 .short 0xF800 @I think this clears backgrounds and stuff? ldr r0,Is_Capture_Set mov r14,r0 ldr r0,[r4] .short 0xF800 cmp r0,#0x0 beq RegularRange ldr r0,Is_Capture_Set+4 @actually Fill_Capture_Range_Map mov r14,r0 ldr r0,[r4] .short 0xF800 b GoBack RegularRange: ldr r0,RegularAttackMap mov r14,r0 ldr r0,[r4] ldrh r1,[r0,#0x1E] .short 0xF800 GoBack: pop {r0} bx r0 .align Func_4E884: .long 0x0804E884 RegularAttackMap: .long 0x080251B4 Is_Capture_Set: @Fill_Capture_Range_Map
16.047619
80
0.755193
cadd4ee112c9a3b435c479d8b34f3c79b58d5612
13,393
asm
Assembly
CS218/summer17/Assignment03/ast03mn.asm
3SUM/monalisa
d2139f94278a773c86fd4d1288df48c032271ebe
[ "MIT" ]
5
2021-12-31T23:11:19.000Z
2022-01-20T22:30:48.000Z
CS218/summer17/Assignment03/ast03mn.asm
3SUM/monalisa
d2139f94278a773c86fd4d1288df48c032271ebe
[ "MIT" ]
1
2022-01-01T09:34:34.000Z
2022-01-13T05:32:30.000Z
CS218/summer17/Assignment03/ast03mn.asm
3SUM/monalisa
d2139f94278a773c86fd4d1288df48c032271ebe
[ "MIT" ]
4
2022-01-01T09:33:38.000Z
2022-02-14T23:28:36.000Z
; ***************************************************************** ; Must include: ; Luis Maya ; Assignment #3 ; Section #1002 ; ----- ; Write a simple assembly language program to compute the ; the provided formulas. ; Focus on learning basic arithmetic operations ; (add, subtract, multiply, and divide). ; Ensure understanding of sign and unsigned operations. ; ***************************************************************** ; Data Declarations (provided). section .data ; ----- ; Define constants. NULL equ 0 ; end of string TRUE equ 1 FALSE equ 0 SUCCESS equ 0 ; Successful operation SYS_exit equ 60 ; call code for terminate ; ----- ; Assignment #3 data declarations ; byte data bNum1 db 33 bNum2 db 19 bNum3 db 16 bNum4 db 13 bNum5 db -46 bNum6 db -69 bAns1 db 0 bAns2 db 0 bAns3 db 0 bAns4 db 0 bAns5 db 0 bAns6 db 0 bAns7 db 0 bAns8 db 0 bAns9 db 0 bAns10 db 0 wAns11 dw 0 wAns12 dw 0 wAns13 dw 0 wAns14 dw 0 wAns15 dw 0 bAns16 db 0 bAns17 db 0 bAns18 db 0 bRem18 db 0 bAns19 db 0 bAns20 db 0 bAns21 db 0 bRem21 db 0 ; word data wNum1 dw 356 wNum2 dw 1953 wNum3 dw 5817 wNum4 dw 2314 wNum5 dw -753 wNum6 dw -276 wAns1 dw 0 wAns2 dw 0 wAns3 dw 0 wAns4 dw 0 wAns5 dw 0 wAns6 dw 0 wAns7 dw 0 wAns8 dw 0 wAns9 dw 0 wAns10 dw 0 dAns11 dd 0 dAns12 dd 0 dAns13 dd 0 dAns14 dd 0 dAns15 dd 0 wAns16 dw 0 wAns17 dw 0 wAns18 dw 0 wRem18 dw 0 wAns19 dw 0 wAns20 dw 0 wAns21 dw 0 wRem21 dw 0 ; double-word data dNum1 dd 14365870 dNum2 dd 32451 dNum3 dd 938671 dNum4 dd 58473 dNum5 dd -7982 dNum6 dd -5358 dAns1 dd 0 dAns2 dd 0 dAns3 dd 0 dAns4 dd 0 dAns5 dd 0 dAns6 dd 0 dAns7 dd 0 dAns8 dd 0 dAns9 dd 0 dAns10 dd 0 qAns11 dq 0 qAns12 dq 0 qAns13 dq 0 qAns14 dq 0 qAns15 dq 0 dAns16 dd 0 dAns17 dd 0 dAns18 dd 0 dRem18 dd 0 dAns19 dd 0 dAns20 dd 0 dAns21 dd 0 dRem21 dd 0 ; quadword data qNum1 dq 204623 qNum2 dq 32543819 qNum3 dq 2415331 qNum4 dq 341087 qNum5 dq -921028 qNum6 dq -281647 qAns1 dq 0 qAns2 dq 0 qAns3 dq 0 qAns4 dq 0 qAns5 dq 0 qAns6 dq 0 qAns7 dq 0 qAns8 dq 0 qAns9 dq 0 qAns10 dq 0 dqAns11 ddq 0 dqAns12 ddq 0 dqAns13 ddq 0 dqAns14 ddq 0 dqAns15 ddq 0 qAns16 dq 0 qAns17 dq 0 qAns18 dq 0 qRem18 dq 0 qAns19 dq 0 qAns20 dq 0 qAns21 dq 0 qRem21 dq 0 ; ***************************************************************** section .text global _start _start: ; ---------------------------------------------- ; BYTE Operations ; ----- ; unsigned byte additions ; bans1 = bnum1 + bnum2 ; bans2 = bnum3 + bnum4 ; bans3 = bnum3 + bnum1 mov al, byte [bNum1] add al, byte [bNum2] mov byte [bAns1], al mov al, byte [bNum3] add al, byte [bNum4] mov byte [bAns2], al mov al, byte [bNum3] add al, byte [bNum1] mov byte [bAns3], al ; ----- ; signed byte additions ; bans4 = bnum6 + bnum3 ; bans5 = bnum6 + bnum5 mov al, byte [bNum6] add al, byte [bNum3] mov byte [bAns4], al mov al, byte [bNum6] add al, byte [bNum5] mov byte [bAns5], al ; ----- ; unsigned byte subtractions ; bans6 = bnum1 - bnum3 ; bans7 = bnum2 - bnum1 ; bans8 = bnum4 - bnum3 mov al, byte [bNum1] sub al, byte [bNum3] mov byte [bAns6], al mov al, byte [bNum2] sub al, byte [bNum1] mov byte [bAns7], al mov al, byte [bNum4] sub al, byte [bNum3] mov byte [bAns8], al ; ----- ; signed byte subtraction ; bans9 = bnum6 - bnum4 ; bans10 = bnum6 - bnum5 mov al, byte [bNum6] sub al, byte [bNum4] mov byte [bAns9], al mov al, byte [bNum6] sub al, byte [bNum5] mov byte [bAns10], al ; ----- ; unsigned byte multiplication ; wans11 = bnum2 * bnum4 ; wans12 = bnum1 * bnum4 ; wans13 = bnum3 * bnum2 mov al, byte [bNum2] mul byte [bNum4] mov word [wAns11], ax mov al, byte [bNum1] mul byte [bNum4] mov word [wAns12], ax mov al, byte [bNum3] mul byte [bNum2] mov word [wAns13], ax ; ----- ; signed byte multiplication ; wans14 = bnum3 * bnum5 ; wans15 = bnum5 * bnum6 mov al, byte [bNum3] imul byte [bNum5] mov word [wAns14], ax mov al, byte [bNum5] imul byte [bNum6] mov word [wAns15], ax ; ----- ; unsigned byte division ; bans16 = bnum2 / bnum4 ; bans17 = bnum1 / bnum3 ; bans18 = wnum2 / bnum3 ; brem18 = modulus (wnum2 / bnum3) mov al, byte [bNum2] cbw div al, byte [bNum4] mov byte [bAns16], al mov al, byte [bNum1] cbw div al, byte [bNum3] mov byte [bAns17], al mov ax, word [wNum2] div al, byte [bNum3] mov byte [bAns18], al mov ax, word [wNum2] div al, byte [bNum3] mov byte [bRem18], ah ; ----- ; signed byte division ; bans19 = bnum6 / bnum3 ; bans20 = bnum6 / bnum5 ; bans21 = wmum4 / bnum1 ; brem21 = modulus (wnum4 / bnum1) mov al, byte [bNum6] cbw idiv al, byte [bNum3] mov byte [bAns19], al mov al, byte [bNum6] cbw idiv al, byte [bNum5] mov byte [bAns20], al mov ax, word [wNum4] cwd idiv al, byte [bNum1] mov byte [bAns21], al mov ax, word [wNum4] cwd idiv al, byte [bNum1] mov byte [bRem21], ah ; ***************************************** ; WORD Operations ; ----- ; unsigned word additions ; wans1 = wnum1 + wnum4 ; wans2 = wnum2 + wnum3 ; wans3 = wnum2 + wnum4 mov ax, word [wNum1] add ax, word [wNum4] mov word [wAns1], ax mov ax, word [wNum2] add ax, word [wNum3] mov word [wAns2], ax mov ax, word [wNum2] add ax, word [wNum4] mov word [wAns3], ax ; ----- ; signed word additions ; wans4 = wnum5 + wnum6 ; wans5 = wnum6 + wnum4 mov ax, word [wNum5] add ax, word [wNum6] mov word [wAns4], ax mov ax, word [wNum6] add ax, word [wNum4] mov word [wAns5], ax ; ----- ; unsigned word subtractions ; wans6 = wnum3 - wnum2 ; wans7 = wnum4 - wnum2 ; wans8 = wnum2 - wnum4 mov ax, word [wNum3] sub ax, word [wNum2] mov word [wAns6], ax mov ax, word [wNum4] sub ax, word [wNum2] mov word [wAns7], ax mov ax, word [wNum2] sub ax, word [wNum4] mov word [wAns8], ax ; ----- ; signed word subtraction ; wans9 = wnum6 - wnum4 ; wans10 = wnum5 - wnum6 mov ax, word [wNum6] sub ax, word [wNum4] mov word [wAns9], ax mov ax, word [wNum5] sub ax, word [wNum6] mov word [wAns10], ax ; ----- ; unsigned word multiplication ; dans11 = wnum3 * wnum2 ; dans12 = wnum2 * wnum4 ; dans13 = wnum1 * wnum3 mov ax, word [wNum3] mul word [wNum2] mov word [dAns11], ax mov word [dAns11 + 2], dx mov ax, word [wNum2] mul word [wNum4] mov word [dAns12], ax mov word [dAns12 + 2], dx mov ax, word [wNum1] mul word [wNum3] mov word [dAns13], ax mov word [dAns13 + 2], dx ; ----- ; signed word multiplication ; dans14 = wnum6 * wnum5 ; dans15 = wnum4 * wnum5 mov ax, word [wNum6] imul word [wNum5] mov word [dAns14], ax mov word [dAns14 + 2], dx mov ax, word [wNum4] imul word [wNum5] mov word [dAns15], ax mov word [dAns15 + 2], dx ; ----- ; unsigned word division ; wans16 = wnum2 / wnum1 ; wans17 = wnum4 / wnum2 ; wans18 = dnum2 / wnum3 ; wrem18 = modulus (dnum2 / wnum3) mov ax, word [wNum2] mov dx, 0 div word [wNum1] mov word [wAns16], ax mov ax, word [wNum4] mov dx, 0 div word [wNum2] mov word [wAns17], ax mov ax, word [dNum2] mov dx, word [dNum2 + 2] div word [wNum3] mov word [wAns18], ax mov ax, word [dNum2] mov dx, word [dNum2 + 2] div word [wNum3] mov word [wRem18], dx ; ----- ; signed word division ; wans19 = wnum5 / wnum6 ; wans20 = wnum4 / wnum2 ; wans21 = dnum2 / wnum3 ; wrem21 = modulus (dnum2 / wnum3) mov ax, word [wNum5] cwd idiv word [wNum6] mov word [wAns19], ax mov ax, word [wNum4] cwd idiv word [wNum2] mov word [wAns20], ax mov ax, word [dNum2] mov dx, word [dNum2 +2] idiv word [wNum3] mov word [wAns21], ax mov ax, word [dNum2] mov dx, word [dNum2 + 2] idiv word [wNum3] mov word [wRem21], dx ; ***************************************** ; DOUBLEWORD Operations ; ----- ; unsigned double word additions ; dans1 = dnum1 + dnum3 ; dans2 = dnum3 + dnum2 ; dans3 = dnum4 + dnum1 mov eax, dword [dNum1] add eax, dword [dNum3] mov dword [dAns1], eax mov eax, dword [dNum3] add eax, dword [dNum2] mov dword [dAns2], eax mov eax, dword [dNum4] add eax, dword [dNum1] mov dword [dAns3], eax ; ----- ; signed double word additions ; dans4 = dnum5 + dnum4 ; dans5 = dnum6 + dnum2 mov eax, dword [dNum5] add eax, dword [dNum4] mov dword [dAns4], eax mov eax, dword [dNum6] add eax, dword [dNum2] mov dword [dAns5], eax ; ----- ; unsigned double word subtractions ; dans6 = dnum3 - dnum2 ; dans7 = dnum1 - dnum4 ; dans8 = dnum4 - dnum3 mov eax, dword [dNum3] sub eax, dword [dNum2] mov dword [dAns6], eax mov eax, dword [dNum1] sub eax, dword [dNum4] mov dword [dAns7], eax mov eax, dword [dNum4] sub eax, dword [dNum3] mov dword [dAns8], eax ; ----- ; signed double word subtraction ; dans9 = dnum2 - dnum6 ; dans10 = dnum5 – dnum2 mov eax, dword [dNum2] sub eax, dword [dNum6] mov dword [dAns9], eax mov eax, dword [dNum5] sub eax, dword [dNum2] mov dword [dAns10], eax ; ----- ; unsigned double word multiplication ; qans11 = dnum3 * dnum4 ; qans12 = dnum1 * dnum3 ; qans13 = dnum2 * dnum3 mov eax, dword [dNum3] mul dword [dNum4] mov dword [qAns11], eax mov dword [qAns11 + 4], edx mov eax, dword [dNum1] mul dword [dNum3] mov dword [qAns12], eax mov dword [qAns12 + 4], edx mov eax, dword [dNum2] mul dword [dNum3] mov dword [qAns13], eax mov dword [qAns13 + 4], edx ; ----- ; signed double word multiplication ; qans14 = dnum2 * dnum5 ; qans15 = dnum5 * dnum6 mov eax, dword [dNum2] imul dword [dNum5] mov dword [qAns14], eax mov dword [qAns14 + 4], edx mov eax, dword [dNum5] imul dword [dNum6] mov dword [qAns15], eax mov dword [qAns15 + 4], edx ; ----- ; unsigned double word division ; dans16 = dnum4 / dnum2 ; dans17 = dnum1 / dnum2 ; dans18 = qAns13 / dnum1 ; drem18 = modulus (qAns13 / dnum1) mov eax, dword [dNum4] mov edx, 0 div dword [dNum2] mov dword [dAns16], eax mov eax, dword [dNum1] mov edx, 0 div dword [dNum2] mov dword [dAns17], eax mov eax, dword [qAns13] mov edx, dword [qAns13 + 4] div dword [dNum1] mov dword [dAns18], eax mov eax, dword [qAns13] mov edx, dword [qAns13 + 4] div dword [dNum1] mov dword [dRem18], edx ; ----- ; signed double word division ; dans19 = dnum2 / dnum6 ; dans20 = dnum5 / dnum6 ; dans21 = qans12 / dnum2 ; drem21 = modulus (qans12 / dnum2) mov eax, dword [dNum2] cdq idiv dword [dNum6] mov dword [dAns19], eax mov eax, dword [dNum5] cdq idiv dword [dNum6] mov dword [dAns20], eax mov eax, dword [qAns12] mov edx, dword [qAns12 + 4] idiv dword [dNum2] mov dword [dAns21], eax mov eax, dword [qAns12] mov edx, dword [qAns12 + 4] idiv dword [dNum2] mov dword [dRem21], edx ; ***************************************** ; QUADWORD Operations ; ----- ; unsigned quadword additions ; qAns1 = qNum1 + qNum3 ; qAns2 = qNum2 + qNum4 ; qAns3 = qNum3 + qNum2 mov rax, qword [qNum1] add rax, qword [qNum3] mov qword [qAns1], rax mov rax, qword [qNum2] add rax, qword [qNum4] mov qword [qAns2], rax mov rax, qword [qNum3] add rax, qword [qNum2] mov qword [qAns3], rax ; ----- ; signed quadword additions ; qAns4 = qNum2 + qNum5 ; qAns5 = qNum6 + qNum5 mov rax, qword [qNum2] add rax, qword [qNum5] mov qword [qAns4], rax mov rax, qword [qNum6] add rax, qword [qNum5] mov qword [qAns5], rax ; ----- ; unsigned quadword subtractions ; qAns6 = qNum1 - qNum3 ; qAns7 = qNum2 - qNum4 ; qAns8 = qNum4 - qNum3 mov rax, qword [qNum1] sub rax, qword [qNum3] mov qword [qAns6], rax mov rax, qword [qNum2] sub rax, qword [qNum4] mov qword [qAns7], rax mov rax, qword [qNum4] sub rax, qword [qNum3] mov qword [qAns8], rax ; ----- ; signed quadword subtraction ; qAns9 = qNum2 - qNum5 ; qAns10 = qNum5 - qNum2 mov rax, qword [qNum2] sub rax, qword [qNum5] mov qword [qAns9], rax mov rax, qword [qNum5] sub rax, qword [qNum2] mov qword [qAns10], rax ; ----- ; unsigned quadword multiplication ; dqAns11 = qNum4 * qNum2 ; dqAns12 = qNum2 * qNum3 ; dqAns13 = qNum3 * qNum1 mov rax, qword [qNum4] mul qword [qNum2] mov qword [dqAns11], rax mov qword [dqAns11 + 8], rdx mov rax, qword [qNum2] mul qword [qNum3] mov qword [dqAns12], rax mov qword [dqAns12 + 8], rdx mov rax, qword [qNum3] mul qword [qNum1] mov qword [dqAns13], rax mov qword [dqAns13 + 8], rdx ; ----- ; signed quadword multiplication ; dqAns14 = qNum2 * qNum5 ; dqAns15 = qNum6 * qNum1 mov rax, qword [qNum2] imul qword [qNum5] mov qword [dqAns14], rax mov qword [dqAns14 + 8], rdx mov rax, qword [qNum6] imul qword [qNum1] mov qword [dqAns15], rax mov qword [dqAns15 + 8], rdx ; ----- ; unsigned quadword division ; qAns16 = qNum2 / qNum3 ; qAns17 = qNum3 / qNum4 ; qAns18 = dqAns13 / qNum2 ; qRem18 = dqAns13 % qNum2 mov rax, qword [qNum2] mov rdx, 0 div qword [qNum3] mov qword [qAns16], rax mov rax, qword [qNum3] mov rdx, 0 div qword [qNum4] mov qword [qAns17], rax mov rax, qword [dqAns13] mov rdx, qword [dqAns13 + 8] div qword [qNum2] mov qword [qAns18], rax mov rax, qword [dqAns13] mov rdx, qword [dqAns13 + 8] div qword [qNum2] mov qword [qRem18], rdx ; ----- ; signed quadword division ; qAns19 = qNum5 / qNum6 ; qAns20 = qNum3 / qNum6 ; qAns21 = dqAns12 / qNum5 ; qRem21 = dqAns12 % qNum5 mov rax, qword [qNum5] cqo idiv qword [qNum6] mov qword [qAns19], rax mov rax, qword [qNum3] cqo idiv qword [qNum6] mov qword [qAns20], rax mov rax, qword [dqAns12] mov rdx, qword [dqAns12 + 8] idiv qword [qNum5] mov qword [qAns21], rax mov rax, qword [dqAns12] mov rdx, qword [dqAns12 + 8] idiv qword [qNum5] mov qword [qRem21], rdx ; ***************************************************************** ; Done, terminate program. last: mov eax, SYS_exit ; call code for exit (SYS_exit) mov ebx, SUCCESS ; return SUCCESS (no error) syscall
17.104725
67
0.64571
a888eb530f96021858fb9b0dff3a2350d7e8982d
461
asm
Assembly
data/pokemon/base_stats/hoenn/sealeo.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
null
null
null
data/pokemon/base_stats/hoenn/sealeo.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
null
null
null
data/pokemon/base_stats/hoenn/sealeo.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
null
null
null
db 0 ; 364 DEX NO db 90, 60, 70, 45, 75, 70 ; hp atk def spd sat sdf db ICE, WATER ; type db 120 ; catch rate db 128 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 100 ; unknown 1 db 20 ; step cycles to hatch db 5 ; unknown 2 INCBIN "gfx/pokemon/hoenn/sealeo/front.dimensions" db 0, 0, 0, 0 ; padding db GROWTH_MEDIUM_SLOW ; growth rate dn EGG_WATER_1, EGG_GROUND ; egg groups ; tm/hm learnset tmhm ; end
20.954545
51
0.665944
e30afeb0f9dda86da7d9078969546ab93183068f
318
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sccz80/l_f16_div.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sccz80/l_f16_div.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sccz80/l_f16_div.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_fp_math16 PUBLIC l_f16_div PUBLIC divf16 PUBLIC divf16_callee EXTERN asm_f16_div_callee EXTERN cm16_sccz80_div EXTERN cm16_sccz80_div_callee defc l_f16_div = asm_f16_div_callee defc divf16 = cm16_sccz80_div defc divf16_callee = cm16_sccz80_div_callee
16.736842
47
0.738994
6aef7be71e4912da908d580bcdb44a4d9d7226b6
68
asm
Assembly
CPU/cpu_test/test_storage/test4_j.asm
SilenceX12138/MIPS-Microsystems
d389b706b0930151a710b544db436c2883af958b
[ "MIT" ]
55
2021-09-06T12:12:47.000Z
2022-01-15T04:30:53.000Z
CPU/cpu_test/test_storage/test4_j.asm
SilenceX12138/MIPS-Microsystems
d389b706b0930151a710b544db436c2883af958b
[ "MIT" ]
null
null
null
CPU/cpu_test/test_storage/test4_j.asm
SilenceX12138/MIPS-Microsystems
d389b706b0930151a710b544db436c2883af958b
[ "MIT" ]
null
null
null
ori $1,$0,2039 ori $2,$0,3934 j exit addu $3,$1,$2 exit: sw $3,0($0)
11.333333
14
0.573529
faa976a62eac36a081b0dfbb80989459078cb62d
320
asm
Assembly
programs/oeis/107/A107819.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/107/A107819.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/107/A107819.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A107819: Slowest increasing sequence where a(n)+n is prime. ; 1,3,4,7,8,11,12,15,20,21,26,29,30,33,38,43,44,49,52,53,58,61,66,73,76,77,80,81,84,97,100,105,106,115,116,121,126,129,134,139,140,149,150,153,154,165,176,179,180,183 mov $2,$0 seq $0,140475 ; 1 along with primes greater than 3. sub $0,2 trn $0,$2 add $0,1
35.555556
166
0.6875
6e4f13e5c302d56e98cb8c5c09d3ec39f17f15ed
442
asm
Assembly
templates/count-x86_64.asm
RV8V/asm-code
4570af8c0b4cf3216b77a8247364f27dd103888d
[ "Xnet", "X11" ]
1
2022-02-09T22:16:02.000Z
2022-02-09T22:16:02.000Z
templates/count-x86_64.asm
RV8V/asm-code
4570af8c0b4cf3216b77a8247364f27dd103888d
[ "Xnet", "X11" ]
2
2020-12-18T17:56:03.000Z
2020-12-18T17:56:29.000Z
templates/count-x86_64.asm
RV8V/asm-code
4570af8c0b4cf3216b77a8247364f27dd103888d
[ "Xnet", "X11" ]
null
null
null
section .data text db "hello, world", 10, 0 text_next db "testing", 10, 0 section .text global _start _start: mov rax, text call _print mov rax, text_next call _print mov rax, 60 mov rdi, 0 syscall ;input: rax as pointer to string ;output: print string at rax _print: push rax mov rbx, 0 _print_loop: inc rax inc rbx mov cl, [rax] cmp cl, 0 jne _print_loop mov rax, 1 mov rdi, 1 pop rsi mov rdx, rbx syscall ret
11.631579
32
0.687783
c36c48d6c094f567fe89ccf47e4b266e53c0ad1d
543
asm
Assembly
oeis/251/A251577.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/251/A251577.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/251/A251577.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A251577: E.g.f.: exp(7*x*G(x)^6) / G(x)^6 where G(x) = 1 + x*G(x)^7 is the g.f. of A002296. ; Submitted by Christian Krause ; 1,1,7,133,4501,224497,14926387,1245099709,125177105641,14743403405857,1991987858095039,303781606238806549,51624122993243471293,9674836841745014156497,1982441139367342976694379,440946185623028320815311053,105810290178441439797537070033,27247415403508413760437930799681 lpb $0 sub $0,1 add $3,1 mov $1,$3 mul $1,6 add $3,$1 mul $1,$0 add $2,$1 add $4,1 mul $3,$4 add $3,$2 lpe mov $0,$2 add $0,1
28.578947
269
0.721915
5cb4efde12d49a0df3934cbc26f9eb45e72892ac
339
asm
Assembly
oeis/054/A054118.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/054/A054118.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/054/A054118.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A054118: Subdiagonal T(n,n-3), array T as in A054115. ; Submitted by Jamie Morken(s2) ; 1,24,144,864,5904,46224,409104,4037904,43954704,522956304,6749977104,93928268304,1401602636304,22324392524304,378011820620304,6780385526348304 add $0,1 lpb $0 add $1,$0 add $0,1 add $1,2 mul $1,$0 sub $0,2 lpe trn $1,7 mov $0,$1 add $0,1
21.1875
144
0.713864
4f4be77d50e3fcf8b60d16a483b5be5f2ab7317c
1,553
asm
Assembly
programs/oeis/198/A198645.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/198/A198645.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/198/A198645.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A198645: a(n) = 10*3^n - 1. ; 9,29,89,269,809,2429,7289,21869,65609,196829,590489,1771469,5314409,15943229,47829689,143489069,430467209,1291401629,3874204889,11622614669,34867844009,104603532029,313810596089,941431788269,2824295364809,8472886094429,25418658283289,76255974849869,228767924549609,686303773648829,2058911320946489,6176733962839469,18530201888518409,55590605665555229,166771816996665689,500315450989997069,1500946352969991209,4502839058909973629,13508517176729920889,40525551530189762669,121576654590569288009,364729963771707864029,1094189891315123592089,3282569673945370776269,9847709021836112328809,29543127065508336986429,88629381196525010959289,265888143589575032877869,797664430768725098633609,2392993292306175295900829,7178979876918525887702489,21536939630755577663107469,64610818892266732989322409,193832456676800198967967229,581497370030400596903901689,1744492110091201790711705069,5233476330273605372135115209,15700428990820816116405345629,47101286972462448349216036889,141303860917387345047648110669,423911582752162035142944332009,1271734748256486105428832996029,3815204244769458316286498988089,11445612734308374948859496964269,34336838202925124846578490892809,103010514608775374539735472678429,309031543826326123619206418035289,927094631478978370857619254105869,2781283894436935112572857762317609,8343851683310805337718573286952829,25031555049932416013155719860858489,75094665149797248039467159582575469,225283995449391744118401478747726409,675851986348175232355204436243179229 mov $1,3 pow $1,$0 mul $1,10 sub $1,1 mov $0,$1
172.555556
1,473
0.92595
dc9a948566ddb46b0a677f939da4c95e0ddc6bd6
239
asm
Assembly
libsrc/stdio/aquarius/conio_vars.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/stdio/aquarius/conio_vars.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/stdio/aquarius/conio_vars.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; ; Shared variables between the VT100 and VT52 engines MODULE conio_vars SECTION data_clib PUBLIC __aquarius_attr PUBLIC __aquarius_inverse .__aquarius_attr defb $70 ; White on Black .__aquarius_inverse defb 7
18.384615
53
0.740586
34337b6c13fdba07cc976697e7953d9b2208fe97
8,579
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0x84_notsx.log_21829_2117.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0x84_notsx.log_21829_2117.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0x84_notsx.log_21829_2117.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 %r9 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x69ad, %rbx add %r12, %r12 movl $0x61626364, (%rbx) nop nop xor $62200, %rbp lea addresses_UC_ht+0x996d, %r10 clflush (%r10) xor $46891, %r9 mov (%r10), %r13d nop nop and %r10, %r10 lea addresses_UC_ht+0x1ba2b, %rbx and %r9, %r9 mov (%rbx), %r12w nop and %r9, %r9 lea addresses_D_ht+0x2635, %rsi lea addresses_D_ht+0x4694, %rdi nop nop nop and %r13, %r13 mov $106, %rcx rep movsw nop nop nop nop sub %rcx, %rcx lea addresses_normal_ht+0x1786d, %rsi lea addresses_normal_ht+0x2aad, %rdi nop nop nop and $61869, %r9 mov $40, %rcx rep movsw nop nop nop nop cmp $62121, %r10 lea addresses_A_ht+0xb96d, %rsi lea addresses_normal_ht+0x1196d, %rdi nop nop nop nop nop xor %r12, %r12 mov $106, %rcx rep movsl nop nop xor %r13, %r13 lea addresses_WT_ht+0xe56d, %r9 clflush (%r9) nop nop nop inc %r12 mov $0x6162636465666768, %rbp movq %rbp, %xmm4 and $0xffffffffffffffc0, %r9 vmovntdq %ymm4, (%r9) nop and %rdi, %rdi lea addresses_D_ht+0x15cad, %rdi clflush (%rdi) nop and %rbp, %rbp movw $0x6162, (%rdi) nop nop nop nop cmp %rbp, %rbp pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r9 pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r14 push %r8 push %r9 push %rcx push %rdi push %rsi // Load lea addresses_UC+0x16a81, %r14 nop nop nop sub %r9, %r9 mov (%r14), %r10d nop nop cmp %r9, %r9 // Store lea addresses_WT+0x716d, %r10 nop nop nop nop nop xor $2198, %r11 movl $0x51525354, (%r10) nop cmp %r10, %r10 // REPMOV lea addresses_A+0x1efad, %rsi lea addresses_WC+0x19e2d, %rdi add $36340, %r9 mov $22, %rcx rep movsl xor $14642, %rcx // Store lea addresses_PSE+0x56d, %rdi nop nop nop nop xor %rsi, %rsi mov $0x5152535455565758, %r9 movq %r9, (%rdi) and $42027, %r14 // Store lea addresses_UC+0x1616d, %rdi nop xor $12430, %r10 mov $0x5152535455565758, %r8 movq %r8, %xmm7 movups %xmm7, (%rdi) cmp %rdi, %rdi // Store lea addresses_UC+0x168d, %r10 nop nop nop dec %rdi movw $0x5152, (%r10) nop nop nop nop sub %r14, %r14 // REPMOV lea addresses_D+0x1b8cd, %rsi lea addresses_WT+0x936d, %rdi nop xor %r14, %r14 mov $1, %rcx rep movsw nop nop nop nop cmp %r9, %r9 // Store lea addresses_A+0xb3ed, %r10 nop nop nop nop nop sub $33630, %r11 mov $0x5152535455565758, %rcx movq %rcx, (%r10) nop nop xor $54594, %r9 // REPMOV lea addresses_PSE+0x56d, %rsi mov $0xbb7, %rdi dec %r14 mov $13, %rcx rep movsq nop nop nop nop and $63414, %r9 // Store lea addresses_RW+0x135ed, %r9 nop nop nop nop nop dec %r10 movb $0x51, (%r9) dec %rsi // Faulty Load lea addresses_PSE+0x56d, %rcx nop and $33142, %r8 mov (%rcx), %r11d lea oracles, %rdi and $0xff, %r11 shlq $12, %r11 mov (%rdi,%r11,1), %r11 pop %rsi pop %rdi pop %rcx pop %r9 pop %r8 pop %r14 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_PSE', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC', 'same': False, 'size': 4, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WT', 'same': False, 'size': 4, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_A', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_WC', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_PSE', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_UC', 'same': False, 'size': 16, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_UC', 'same': False, 'size': 2, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WT', 'congruent': 9, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_A', 'same': False, 'size': 8, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_PSE', 'congruent': 0, 'same': True}, 'dst': {'type': 'addresses_P', 'congruent': 1, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_RW', 'same': False, 'size': 1, 'congruent': 5, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_PSE', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 4, 'congruent': 10, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_A_ht', 'congruent': 9, 'same': True}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 9, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 2, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'58': 21829} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
31.083333
2,999
0.651475
ee2e2765f9a3dd5cb84714cac885dfe176b3484a
886
asm
Assembly
Driver/Task/DOS5/dos5Suspend.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Driver/Task/DOS5/dos5Suspend.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Driver/Task/DOS5/dos5Suspend.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: FILE: dos5Suspend.asm AUTHOR: Adam de Boor, May 30, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- Adam 5/30/92 Initial revision DESCRIPTION: Functions to deal with suspending and unsuspending the system in the presence of the DOS5 switcher. The basic strategy is this: * at initialization time, we register Ctrl+Esc as the sole hotkey * when we are notified by the keyboard driver that the hotkey has been pressed, we call TaskBeginSuspend $Id: dos5Suspend.asm,v 1.1 97/04/18 11:58:20 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
23.945946
79
0.545147
73b6409afdbc35bcb560db77dc1789f948d6ed2d
6,774
asm
Assembly
Driver/Printer/DotMatrix/Propx24/propx24DriverInfo.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Driver/Printer/DotMatrix/Propx24/propx24DriverInfo.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Driver/Printer/DotMatrix/Propx24/propx24DriverInfo.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: IBM Proprinter X24 24-pin printer driver FILE: propx24DriverInfo.asm AUTHOR: Dave Durran, 26 Mar 1990 REVISION HISTORY: Name Date Description ---- ---- ----------- Dave 3/27/90 Initial revision Dave 5/92 Initial 2.0 version DESCRIPTION: Driver info for the propx 24-pin printer driver The file "printerDriver.def" should be included before this one $Id: propx24DriverInfo.asm,v 1.1 97/04/18 11:53:47 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Driver Info Resource This part of the file contains the information that pertains to all device supported by the driver. It includes device names and a table of the resource handles for the specific device info. A pointer to this info is provided by the DriverInfo function. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ DriverInfo segment lmem LMEM_TYPE_GENERAL ;---------------------------------------------------------------------------- ; Device Enumerations ;---------------------------------------------------------------------------- DefPrinter PD_AEG_NP13624_I, "AEG Olympia NP 136-24 (IBM Mode)", generwInfo DefPrinter PD_AEG_NP8024_I, "AEG Olympia NP 80-24 (IBM Mode)", generInfo DefPrinter PD_AMT_ACCEL_500_I, "AMT Accel-500 (IBM Mode)", generwInfo DefPrinter PD_ATT_580_I, "AT&T 580 (IBM Mode)", generInfo DefPrinter PD_ATT_581_I, "AT&T 581 (IBM Mode)", generwInfo DefPrinter PD_ATT_583_I, "AT&T 583 (IBM Mode)", generwInfo DefPrinter PD_AMSTRAD_LQ3500_I, "Amstrad LQ 3500 (IBM Mode)", generInfo DefPrinter PD_BROTHER_M1824L_I, "Brother M-1824L (IBM Mode)", generInfo DefPrinter PD_CITOH_C815_I, "C.Itoh C-815 (IBM Mode)", generwInfo DefPrinter PD_CANON_BJ_30_I, "Canon BJ-30 (IBM Mode)", generInfo DefPrinter PD_CANON_BJ_230_I, "Canon BJ-230 (IBM Mode)", generInfo DefPrinter PD_CANON_BJC_70_I, "Canon BJC-70 (IBM Mode)(B/W)", generInfo DefPrinter PD_CANON_BJC_210_I, "Canon BJC-210 (IBM Mode)(B/W)", generInfo DefPrinter PD_CITIZEN_GSX130_I, "Citizen GSX-130 (IBM Mode)", generInfo DefPrinter PD_CITIZEN_GSX140_I, "Citizen GSX-140 (IBM Mode)", generInfo DefPrinter PD_CITIZEN_GSX145_I, "Citizen GSX-145 (IBM Mode)", generwInfo DefPrinter PD_CITIZEN_PN48_I, "Citizen PN-48 (IBM Mode)", bjIBMInfo DefPrinter PD_EPSON_LQ_300_I, "Epson LQ-300 (IBM Mode)", generInfo DefPrinter PD_FACIT_B2400_I, "Facit B2400 (IBM Mode)", generInfo DefPrinter PD_FUJITSU_DL4400_I, "Fujitsu DL4400 (IBM Mode)", generInfo DefPrinter PD_GENICOM_1040_I, "Genicom 1040 (IBM Mode)", generInfo DefPrinter PD_IBM_5183_I, "IBM Portable 5183 (IBM Mode)", bjIBMInfo DefPrinter PD_IBM_PPRINTER_24P, "IBM Proprinter 24P", pp24pInfo DefPrinter PD_IBM_PPRINTER_X24, "IBM Proprinter X24", generInfo DefPrinter PD_IBM_PPRINTER_X24E, "IBM Proprinter X24E", generInfo DefPrinter PD_IBM_PPRINTER_XL24, "IBM Proprinter XL24", generwInfo DefPrinter PD_IBM_PPRINTER_XL24E, "IBM Proprinter XL24E", generwInfo DefPrinter PD_IBM_PS1PRINTER, "IBM PS/1 Printer", ps1Info DefPrinter PD_IBM_QKWRTR, "IBM Quickwriter", generwInfo DefPrinter PD_OLIVETTI_DM124_I, "Olivetti DM 124 (IBM Mode)", generInfo DefPrinter PD_OLIVETTI_DM124C_I, "Olivetti DM 124C (IBM Mode)", generInfo DefPrinter PD_OLIVETTI_DM124L_I, "Olivetti DM 124L (IBM Mode)", generwInfo DefPrinter PD_OLIVETTI_DM324_I, "Olivetti DM 324 (IBM Mode)", generInfo DefPrinter PD_OLIVETTI_DM324L_I, "Olivetti DM 324L (IBM Mode)", generwInfo DefPrinter PD_OLIVETTI_DM624_I, "Olivetti DM 624 (IBM Mode)", generwInfo DefPrinter PD_PANASONIC_KXP1123_I, "Panasonic KX-P1123 (IBM Mode)", generInfo DefPrinter PD_PANASONIC_KXP1124_I, "Panasonic KX-P1124 (IBM Mode)", generInfo DefPrinter PD_PANASONIC_KXP1124I_I, "Panasonic KX-P1124i (IBM Mode)", generInfo DefPrinter PD_PANASONIC_KXP1624_I, "Panasonic KX-P1624 (IBM Mode)", generwInfo DefPrinter PD_PANASONIC_KXP2023_I, "Panasonic KX-P2023 (IBM Mode)", generInfo DefPrinter PD_PANASONIC_KXP2123_I, "Panasonic KX-P2123 (IBM Mode)", generInfo DefPrinter PD_PANASONIC_KXP2124_I, "Panasonic KX-P2124 (IBM Mode)", generInfo DefPrinter PD_PANASONIC_KXP2624_I, "Panasonic KX-P2624 (IBM Mode)", generwInfo DefPrinter PD_PHILIPS_NMS1461_I, "Philips NMS 1461 (IBM Mode)", generInfo DefPrinter PD_PHILIPS_NMS1467_I, "Philips NMS 1467 (IBM Mode)", generwInfo DefPrinter PD_SEIKOSHA_SL130AI_I, "Seikosha SL-130AI (IBM Mode)", generwInfo DefPrinter PD_SEIKOSHA_SL230AI_I, "Seikosha SL-230AI (IBM Mode)", generwInfo DefPrinter PD_STAR_NB2410_I, "Star NB-24-10 (IBM Mode)", generInfo DefPrinter PD_STAR_NB2415_I, "Star NB-24-15 (IBM Mode)", generwInfo DefPrinter PD_STAR_NX2420_I, "Star NX-2420 (IBM Mode)", generInfo DefPrinter PD_TANDY_DMP202, "Tandy DMP 202", generInfo DefPrinter PD_TANDY_DMP203, "Tandy DMP 203", generInfo DefPrinter PD_TANDY_DMP240_I, "Tandy DMP 240 (IBM Mode)", generInfo DefPrinter PD_TANDY_DMP300_I, "Tandy DMP 300 (IBM Mode)", generInfo DefPrinter PD_TANDY_DMP302_I, "Tandy DMP 302 (IBM Mode)", generInfo DefPrinter PD_TANDY_DMP310_I, "Tandy DMP 310 (IBM Mode)", generInfo DefPrinter PD_TANDY_DMP2102_I, "Tandy DMP 2102 (IBM Mode)", generwInfo DefPrinter PD_TANDY_DMP2103_I, "Tandy DMP 2103 (IBM Mode)", generwInfo DefPrinter PD_TANDY_DMP2104_I, "Tandy DMP 2104 (IBM Mode)", generwInfo DefPrinter PD_TANDY_JP250_I, "Tandy JP 250 (IBM Mode)", bjIBMInfo ;---------------------------------------------------------------------------- ; Driver Info Header ;---------------------------------------------------------------------------- DriverExtendedInfoTable < {}, ; lmem hdr PrintDevice/2, ; # devices offset deviceStrings, ; devices offset deviceInfoTab ; info blocks > PrintDriverInfo < 30, ; timeout (sec) PR_DONT_RESEND, ; isoSubstitutions, ;ISO sub tab. asciiTransTable, PDT_PRINTER, TRUE > ;---------------------------------------------------------------------------- ; Device String Table and Strings ;---------------------------------------------------------------------------- isoSubstitutions chunk.word 0ffffh ;no ISO subs. ; ASCII Translation List for Foreign Language Versions asciiTransTable chunk.char ";;",0 ;create the actual tables here..... PrinterTables DriverInfo ends
47.704225
80
0.657071
6bb606fb6ac3c2dea5fad5483be9b7c94a996e16
763
asm
Assembly
oeis/085/A085463.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/085/A085463.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/085/A085463.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A085463: Number of 5-tuples (v1,v2,v3,v4,v5) of nonnegative integers less than n such that v1<=v4, v1<=v5, v2<=v4, v2<=v5 and v3<=v4. ; 1,12,63,219,594,1365,2786,5202,9063,14938,23529,35685,52416,74907,104532,142868,191709,253080,329251,422751,536382,673233,836694,1030470,1258595,1525446,1835757,2194633,2607564,3080439,3619560,4231656,4923897,5703908,6579783,7560099,8653930,9870861,11221002,12715002,14364063,16179954,18175025,20362221,22755096,25367827,28215228,31312764,34676565,38323440,42270891,46537127,51141078,56102409,61441534,67179630,73338651,79941342,87011253,94572753,102651044,111272175,120463056,130251472,140666097 add $0,1 lpb $0 mov $2,$0 mul $2,$0 sub $0,1 seq $2,195027 ; a(n) = 2*n*(7*n + 5). add $1,$2 lpe div $1,24 mov $0,$1
54.5
498
0.76671
e7da372c9f05f3455f8b64e184c8e657414278f5
1,454
asm
Assembly
c2nasm/example/c.asm
TimerChen/MxCompiler
656c751fc460026dabb551d938ea0991f57050e4
[ "MIT" ]
2
2018-05-16T08:14:55.000Z
2018-05-29T11:22:06.000Z
c2nasm/example/c.asm
TimerChen/MxCompiler
656c751fc460026dabb551d938ea0991f57050e4
[ "MIT" ]
null
null
null
c2nasm/example/c.asm
TimerChen/MxCompiler
656c751fc460026dabb551d938ea0991f57050e4
[ "MIT" ]
null
null
null
default rel global gc global add global val global main global ga global gb SECTION .text add: push rbp mov rbp, rsp mov dword [rbp-14H], edi lea rax, [rel L_001] mov qword [rbp-10H], rax lea rax, [rel L_002] mov qword [rbp-8H], rax nop pop rbp ret val: push rbp mov rbp, rsp mov eax, 233 pop rbp ret main: push rbp mov rbp, rsp sub rsp, 32 mov dword [rbp-18H], 6 mov dword [rbp-14H], 7 mov eax, dword [rbp-18H] not eax mov dword [rel gc], eax mov eax, dword [rbp-18H] neg eax mov dword [rel gc], eax lea rax, [rel L_003] mov qword [rbp-10H], rax lea rax, [rel L_004] mov qword [rbp-8H], rax mov eax, dword [rbp-18H] mov edi, eax call add mov dword [rel ga], 233 mov dword [rel gb], 244 mov eax, 0 leave ret SECTION .data align=4 ga: dd 000000E9H gb: dd 000000F4H SECTION .bss SECTION .rodata L_001: db 61H, 64H, 64H, 30H, 00H L_002: db 61H, 64H, 64H, 31H, 00H L_003: db 6DH, 61H, 69H, 6EH, 30H, 00H L_004: db 6DH, 61H, 69H, 6EH, 31H, 00H
15.634409
39
0.451169
862143e9c4d5e146591e7109e141e4a6d42068fa
1,706
asm
Assembly
src/Kernel/interrupts/IDT.asm
Rob2309/SimpleOS2
b876118458d768f76df3796eda1bb882d4d9a585
[ "MIT" ]
7
2019-06-13T07:55:15.000Z
2022-02-20T09:23:17.000Z
src/Kernel/interrupts/IDT.asm
Rob2309/SimpleOS2
b876118458d768f76df3796eda1bb882d4d9a585
[ "MIT" ]
null
null
null
src/Kernel/interrupts/IDT.asm
Rob2309/SimpleOS2
b876118458d768f76df3796eda1bb882d4d9a585
[ "MIT" ]
2
2021-04-23T12:32:26.000Z
2021-06-25T17:35:45.000Z
[BITS 64] %macro pushAll 0 push rax push rcx push rdx push rbx push rbp push rsi push rdi push r8 push r9 push r10 push r11 push r12 push r13 push r14 push r15 %endmacro %macro popAll 0 pop r15 pop r14 pop r13 pop r12 pop r11 pop r10 pop r9 pop r8 pop rdi pop rsi pop rbp pop rbx pop rdx pop rcx pop rax %endmacro [EXTERN ISRCommonHandler] ISRCommon: pushAll mov rax, 0x10 ; kernel data selector mov ss, ax mov ax, ds ; save old ds push rax mov rax, 0x10 ; load kernel data selectors mov ds, ax mov es, ax ; The stack will be 16-Byte aligned at this point (important for gcc x64 ABI) mov rdi, rsp ; rdi is the first function argument, thus has to hold the address of the IDT::Registers struct (see IDT.h) sub rsp, 8 inc QWORD [rsp] mov rsi, [rsp] call ISRCommonHandler wrt ..plt ; call the C interrupt handler dec QWORD [rsp] add rsp, 8 pop rax ; restore old data selectors mov ds, ax mov es, ax popAll add rsp, 16 ; pop error code and interrupt number from stack o64 a64 iret %macro ISR_NOERROR 1 GLOBAL ISRSTUB_%1 ISRSTUB_%1: cli push QWORD 0 ; push fake error code push QWORD %1 ; push interrupt number jmp ISRCommon %endmacro %macro ISR_ERROR 1 GLOBAL ISRSTUB_%1 ISRSTUB_%1: cli push QWORD %1 ; push interrupt number jmp ISRCommon %endmacro %define ISRSTUB(vectno) ISR_NOERROR vectno %define ISRSTUBE(vectno) ISR_ERROR vectno %include "interrupts/ISR.inc"
17.770833
143
0.607855
ca7c6d26109fd9423d4d014a71fade254d202ad6
594
asm
Assembly
programs/oeis/186/A186324.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/186/A186324.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/186/A186324.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A186324: Adjusted joint rank sequence of (f(i)) and (g(j)) with f(i) before g(j) when f(i)=g(j), where f and g are the squares and octagonal numbers. Complement of A186325. ; 1,3,5,6,8,9,11,12,14,16,17,19,20,22,23,25,27,28,30,31,33,35,36,38,39,41,42,44,46,47,49,50,52,53,55,57,58,60,61,63,65,66,68,69,71,72,74,76,77,79,80,82,83,85,87,88,90,91,93,94,96,98,99,101,102,104,106,107,109,110,112,113,115,117,118,120,121,123,124,126,128,129,131,132,134,135,137,139,140,142,143,145,147,148,150,151,153,154,156,158 mov $2,$0 add $2,1 pow $2,2 lpb $2 add $0,1 sub $2,$3 trn $2,1 add $3,6 lpe
45.692308
332
0.66835
53fa64c795fc2405e75b8d15e440889011b695f0
484
asm
Assembly
test/asm_com/align1.asm
nigelperks/BasicAssembler
13dcc861254fa6c19f1d450682b4495bbebcf934
[ "MIT" ]
null
null
null
test/asm_com/align1.asm
nigelperks/BasicAssembler
13dcc861254fa6c19f1d450682b4495bbebcf934
[ "MIT" ]
null
null
null
test/asm_com/align1.asm
nigelperks/BasicAssembler
13dcc861254fa6c19f1d450682b4495bbebcf934
[ "MIT" ]
null
null
null
; Paragraph alignments IDEAL SEGMENT MAIN PARA ASSUME CS:PHYSICAL,DS:PHYSICAL,ES:PHYSICAL,SS:PHYSICAL ORG 100h start: mov si, OFFSET _page int 20h ENDS MAIN SEGMENT SEG_BYTE BYTE _byte db 1,2,3 ENDS SEG_BYTE SEGMENT SEG_WORD WORD _word dw 1234h,5678h,9abch ENDS SEG_WORD SEGMENT SEG_DWORD DWORD _dword dd 0DEADBEEFh ENDS SEG_DWORD SEGMENT SEG_PAGE PAGE _page dd 0DEADFACEh ENDS SEG_PAGE GROUP PHYSICAL MAIN, SEG_BYTE, SEG_WORD, SEG_DWORD, SEG_PAGE END start
14.666667
61
0.783058
eecbc1f2d1b305ad009fc64cce1e4d663615d317
4,807
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_un_/i9-9900K_12_0xca_notsx.log_21829_1177.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_un_/i9-9900K_12_0xca_notsx.log_21829_1177.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_un_/i9-9900K_12_0xca_notsx.log_21829_1177.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r14 push %r15 push %rbp push %rbx push %rdi push %rsi lea addresses_D_ht+0x6ce, %rbx nop nop nop xor %r14, %r14 mov $0x6162636465666768, %rsi movq %rsi, (%rbx) sub %r11, %r11 lea addresses_WC_ht+0x9716, %rdi nop nop nop cmp %rbp, %rbp mov $0x6162636465666768, %r15 movq %r15, %xmm7 vmovups %ymm7, (%rdi) nop nop cmp %r11, %r11 lea addresses_WC_ht+0xfbee, %rbp nop nop nop nop nop add %rbx, %rbx mov (%rbp), %r15d nop nop sub $34403, %r14 pop %rsi pop %rdi pop %rbx pop %rbp pop %r15 pop %r14 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r14 push %r15 push %rax push %rdi // Load mov $0x131ad30000000428, %r14 nop and $59508, %rax mov (%r14), %edi nop and %r13, %r13 // Faulty Load mov $0x27ab7f0000000096, %r15 nop xor %r13, %r13 mov (%r15), %r14w lea oracles, %rdi and $0xff, %r14 shlq $12, %r14 mov (%rdi,%r14,1), %r14 pop %rdi pop %rax pop %r15 pop %r14 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_NC', 'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 2}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 7}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 3}} {'00': 2382, 'b2': 19447} 00 00 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 00 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 00 b2 00 b2 b2 b2 b2 b2 00 00 b2 b2 00 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 00 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 00 b2 b2 00 00 b2 b2 b2 b2 00 b2 b2 b2 b2 00 b2 b2 b2 b2 00 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 00 b2 b2 b2 00 b2 b2 00 b2 00 b2 b2 b2 b2 b2 00 00 b2 b2 00 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 00 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 00 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 00 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 00 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 00 b2 b2 b2 b2 b2 b2 00 b2 00 b2 b2 b2 00 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 00 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 00 b2 00 b2 b2 b2 00 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 00 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 00 b2 00 b2 b2 b2 00 b2 b2 b2 b2 b2 00 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 00 00 b2 b2 b2 b2 b2 b2 b2 00 00 b2 00 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 00 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 00 b2 b2 b2 b2 b2 b2 00 b2 b2 b2 b2 00 b2 b2 b2 b2 */
49.556701
2,999
0.657791
ad3918bbc3b2bedda1186257bbd3cb2352f893fe
614
asm
Assembly
oeis/113/A113402.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/113/A113402.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/113/A113402.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A113402: Algebraic degree of cos(Pi/n) for constructible n-gons (A003401). ; Submitted by Jon Maiga ; 1,1,1,2,2,2,4,4,4,4,8,8,8,8,8,16,16,16,16,16,16,32,32,32,32,32,32,32,64,64,64,64,64,64,64,64,128,128,128,128,128,128,128,128,128,256,256,256,256,256,256,256,256,256,256,512,512,512,512,512,512,512,512,512,512,512,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,4096,4096,4096,4096,4096,4096,4096,4096,4096 sub $0,1 mov $1,1 mov $3,2 lpb $0 sub $0,1 sub $0,$1 add $1,1 mul $3,2 lpe lpb $3 add $2,1 sub $3,2 lpe mov $0,$2
32.315789
384
0.690554
8608010ba31e7858e64a494c3ea50e6bfdeab911
1,604
asm
Assembly
programs/oeis/054/A054881.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/054/A054881.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/054/A054881.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A054881: Number of walks of length n along the edges of an octahedron starting and ending at a vertex and also ( with a(0)=0 ) between two opposite vertices. ; 1,0,4,8,48,160,704,2688,11008,43520,175104,698368,2797568,11182080,44744704,178946048,715849728,2863267840,11453333504,45812809728,183252287488,733007052800,2932032405504,11728121233408,46912501710848,187649973288960,750599960264704,3002399706841088,12009599095799808,48038395846328320,192153584459055104,768614335688736768,3074457347049914368,12297829379609722880,49191317535618760704,196765270108115304448,787061080501180694528,3148244321867283824640,12592977287744013205504,50371909150426297008128,201487636602804699660288,805950546409019775385600,3223802185640477148053504,12895208742553112499191808,51580834970230042182811648,206323339880884984359157760,825293359523610306180808704,3301173438094300487234879488,13204693752377483423916228608,52818775009509370745711493120,211275100038038608882752815104,845100400152152183731197575168,3380401600608613238524417671168,13521606402434443946898415943680,54086425609737793801992173256704,216345702438951139179171674062848,865382809755804628774280734179328,3461531239023218370981934860861440,13846124956092873772158115595157504,55384499824371494512171710077206528,221537999297485979201608344915673088,886151997189943914500590370448998400 mov $4,2 mov $6,$0 lpb $4 mov $0,$6 sub $4,1 add $0,$4 trn $0,1 seq $0,245489 ; a(n) = (1^n + (-2)^n + 4^n)/3. mov $2,$4 mov $3,1 add $3,$0 add $3,$0 mul $2,$3 add $1,$2 mov $5,$3 lpe min $6,1 mul $6,$5 sub $1,$6 div $1,3 mov $0,$1
64.16
1,186
0.848504
dc08986589fd2ccbc59ae68dcb1f122804617edd
391
asm
Assembly
programs/oeis/118/A118755.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/118/A118755.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/118/A118755.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A118755: Smallest prime >= 6*n. ; 2,7,13,19,29,31,37,43,53,59,61,67,73,79,89,97,97,103,109,127,127,127,137,139,149,151,157,163,173,179,181,191,193,199,211,211,223,223,229,239,241,251,257,263,269,271,277,283,293,307,307 mul $0,6 trn $0,1 seq $0,720 ; pi(n), the number of primes <= n. Sometimes called PrimePi(n) to distinguish it from the number 3.14159... seq $0,40 ; The prime numbers.
48.875
186
0.695652
dce93241d1541ed5080f369f3dc1dc9af58a07f1
153
asm
Assembly
libsrc/_DEVELOPMENT/font/fzx/fonts/kk/_ff_kk_MagdalenaBLatin1.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/font/fzx/fonts/kk/_ff_kk_MagdalenaBLatin1.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/font/fzx/fonts/kk/_ff_kk_MagdalenaBLatin1.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION rodata_font SECTION rodata_font_fzx PUBLIC _ff_kk_MagdalenaBLatin1 _ff_kk_MagdalenaBLatin1: BINARY "font/fzx/fonts/kk/MagdalenaB_Latin1.fzx"
15.3
48
0.862745
c3d2364c2b9f49904214e5c1986ec2176dc9ef5f
2,486
asm
Assembly
0x05-libasm/4-strstr.asm
alzheimeer/holbertonschool-system_linux
e7b961b4c12295438948eaeb84ced71dc34f297b
[ "MIT" ]
1
2021-09-27T17:52:48.000Z
2021-09-27T17:52:48.000Z
0x05-libasm/4-strstr.asm
alzheimeer/holbertonschool-system_linux
e7b961b4c12295438948eaeb84ced71dc34f297b
[ "MIT" ]
null
null
null
0x05-libasm/4-strstr.asm
alzheimeer/holbertonschool-system_linux
e7b961b4c12295438948eaeb84ced71dc34f297b
[ "MIT" ]
null
null
null
bits 64 section .text ; Code section global asm_strstr ; Exporting the function name section .data asm_strstr: mov r9, rdi ; save the 1st arg in r9 memory mov r10, rsi ; start the 2nd arg in r10 memory mov r9d, dword 0 ; start the iterator 1 in 0 mov r10d, dword 0 ; start the iterator 2 in 0 mov r11, 0 ; set to 0 the r11 register mov r12, 0 ; set to 0 the r12 register mov rcx, 0 mov cl, [rsi] cmp cl, 0x00 je ret_same while: ; start loop inc dword r9d ; increment by 1 the iterator 1 mov r11d, r9d ; copy the iter value to r11 mov rcx, 0 ; set to 0 the rbx register mov cl, [rsi + r12] ; set a single byte to rcx register cmp cl, 0x00 ; compare the previous byte with null char je equ_c ; if they are the same go out because a haystack mov rbx, 0 ; set to 0 the rbx register mov bl, [rdi + r11 - 1] ; set a single byte to rbx register cmp bl, 0x00 ; compare the previous byte with null char je while2 ; if they are the same go out because any haystack was found cmp bl, cl ; if not, compare the first arg byte with the second arg byte je inc_arg_2 ; if they are equal continue the comparison mov r12, 0 ; else set the comparison arg2 from begining mov r10d, r12d jmp while ; and continue the loop while2: ; else go out of loop mov rax, 0 ; set return value to 0 end_c: ; end mov rsi, r10 ; restore previous value of rsi ret ; return the len value equ_c: ; if they are equal set the pointer to that byte mov rax, r15 ; set the pointer in return value jmp end_c ; end program inc_arg_2: ; increment the byte comparison cmp r12, 0x00 ; if it is the first byte of the substring je save_p ; save the begining of substring inc_next: ; increment the iterator of the 2nd substring inc dword r10d ; increment by 1 mov r12d, r10d ; and paste in the register jmp while ; come back to the funtion was call save_p: ; save the beginig of substring dec r11 ; set the right index to the substring mov r12, rdi ; copy the arg1 pointer add r12, r11 ; add the offset pointer mov r15, r12 ; save in memory inc r11 ; set back the iterator 1 mov r12, 0 ; set back the iterator 2 jmp inc_next ; come back to the function was call ret_same: ; if the char in arg2 is null mov r15, rdi ; get the first byte of arg1 jmp equ_c ; return the program
34.054795
76
0.662912
4f9824a58b81d890b8ada5bbf02e927403978937
3,394
asm
Assembly
Transynther/x86/_processed/US/_ht_zr_/i9-9900K_12_0xca_notsx.log_9_739.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_ht_zr_/i9-9900K_12_0xca_notsx.log_9_739.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_ht_zr_/i9-9900K_12_0xca_notsx.log_9_739.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %r8 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_WT_ht+0x11f3e, %rbp cmp $31854, %r8 movb $0x61, (%rbp) nop nop nop nop inc %r9 lea addresses_normal_ht+0x7648, %rbp nop nop xor %r13, %r13 vmovups (%rbp), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %rax nop mfence lea addresses_UC_ht+0x1e09e, %rbp clflush (%rbp) nop nop nop xor %r12, %r12 movl $0x61626364, (%rbp) nop xor %r12, %r12 lea addresses_normal_ht+0x2dbe, %r9 nop nop nop nop nop xor %r11, %r11 vmovups (%r9), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $1, %xmm1, %rax nop nop nop nop nop dec %r12 lea addresses_A_ht+0x1e873, %r9 nop nop and %rax, %rax mov $0x6162636465666768, %r12 movq %r12, %xmm1 movups %xmm1, (%r9) nop nop nop nop sub $35692, %rax lea addresses_WC_ht+0x14e, %rsi lea addresses_WC_ht+0x1b33e, %rdi nop nop nop nop xor $27227, %r8 mov $31, %rcx rep movsq nop nop nop nop inc %r13 lea addresses_WC_ht+0x1cdbe, %r8 xor $4896, %rsi mov $0x6162636465666768, %r11 movq %r11, (%r8) nop nop nop nop and %rcx, %rcx pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r8 pop %r13 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r12 push %r15 push %r9 push %rax push %rbp push %rdi push %rsi // Store lea addresses_UC+0x11d3e, %r12 clflush (%r12) nop nop nop cmp $63715, %rdi movb $0x51, (%r12) nop nop sub %r12, %r12 // Store lea addresses_D+0xa33e, %rdi clflush (%rdi) nop nop nop nop inc %r9 mov $0x5152535455565758, %rbp movq %rbp, %xmm6 movups %xmm6, (%rdi) nop inc %rsi // Faulty Load lea addresses_US+0x19b3e, %rsi nop nop and $36049, %rdi vmovups (%rsi), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $1, %xmm2, %r15 lea oracles, %rdi and $0xff, %r15 shlq $12, %r15 mov (%rdi,%r15,1), %r15 pop %rsi pop %rdi pop %rbp pop %rax pop %r9 pop %r15 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_US', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 9}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 10}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_US', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 10}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 1}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 4}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 6}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_WC_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 4}} {'00': 3, '48': 6} 00 48 48 48 00 48 48 00 48 */
19.067416
149
0.65056
eab33a6f228152603c60d20109c6e89bcafedcb1
213
asm
Assembly
test/example.asm
HarryR/nanac
c4cb7e7f78733ad366ba078298d8e881b0dc2fd6
[ "MIT" ]
37
2017-04-03T14:46:57.000Z
2022-02-14T01:31:37.000Z
test/example.asm
HarryR/nanac
c4cb7e7f78733ad366ba078298d8e881b0dc2fd6
[ "MIT" ]
null
null
null
test/example.asm
HarryR/nanac
c4cb7e7f78733ad366ba078298d8e881b0dc2fd6
[ "MIT" ]
5
2017-04-05T08:03:57.000Z
2020-10-18T14:44:35.000Z
# Example $ZERO 0 # Friendly names for registers $ONE 1 :start jmp to :main :exit jmp die :main reg mov $ZERO $ONE reg swp $ONE $ZERO cnd neq $ZERO $ONE jmp to :exit :end cnd eq $ZERO $ONE jmp to :exit
12.529412
40
0.661972
960d2f1f94d7d901de66fec4979a8e0b74d4f007
87,099
asm
Assembly
asg/asm/rdkafka_feature.asm
asgkafka/librdkafka
d0a14ca313ed1efafb3924ff33fb6c4d474efe3c
[ "BSD-2-Clause-NetBSD", "Zlib", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
asg/asm/rdkafka_feature.asm
asgkafka/librdkafka
d0a14ca313ed1efafb3924ff33fb6c4d474efe3c
[ "BSD-2-Clause-NetBSD", "Zlib", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
asg/asm/rdkafka_feature.asm
asgkafka/librdkafka
d0a14ca313ed1efafb3924ff33fb6c4d474efe3c
[ "BSD-2-Clause-NetBSD", "Zlib", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
1
2021-05-05T11:49:00.000Z
2021-05-05T11:49:00.000Z
*PROCESS DUPALIAS * * Compiled by DCC Version 2.25.07 Mar 6 2021 08:51:07 * on Fri Apr 30 15:35:33 2021 * WXTRN @@ZARCH# * * * * Code Section * @CODE ALIAS X'7CD9C4D2C1C6D2C16DC6C5C1E3E4D9C5' @CODE CSECT @CODE AMODE ANY @CODE RMODE ANY @DATA ALIAS X'7C998492818692816D868581A3A49985' __assert ALIAS C'@@ASSERT' EXTRN __assert mtx_lock ALIAS X'94A3A76D93968392' EXTRN mtx_lock mtx_unlock ALIAS X'94A3A76DA49593968392' EXTRN mtx_unlock bsearch ALIAS C'bsearch' EXTRN bsearch snprintf ALIAS C'snprintf' EXTRN snprintf malloc ALIAS C'malloc' EXTRN malloc qsort ALIAS C'qsort' EXTRN qsort rd_kafka_crash ALIAS X'99846D92818692816D839981A288' EXTRN rd_kafka_crash rd_kafka_log0 ALIAS X'99846D92818692816D939687F0' EXTRN rd_kafka_log0 * * * * ....... start of rd_malloc @LNAME1078 DS 0H DC X'00000009' DC C'rd_malloc' DC X'00' rd_malloc DCCPRLG CINDEX=1078,BASER=12,FRAME=208,ENTRY=NO,ARCH=ZARCH,LN* AMEADDR=@LNAME1078 * ******* End of Prologue * * * *** void *p = malloc(sz); LG 15,0(0,1) ; sz STG 15,176(0,13) LA 1,176(0,13) LG 15,@lit_1078_0 ; malloc @@gen_label0 DS 0H BALR 14,15 @@gen_label1 DS 0H LGR 2,15 * *** ((p) ? (void)0 : __assert(__func__, "C:\\asgkafka\\librdkaf\ * ka\\src\\rd.h", 128, "p")); LTGR 15,2 BNZ @L34 @L33 DS 0H LG 15,@lit_1078_1 LA 15,10(0,15) STG 15,176(0,13) LG 15,@lit_1078_2 STG 15,184(0,13) MVGHI 192(13),128 LA 15,32(0,15) STG 15,200(0,13) LA 1,176(0,13) LG 15,@lit_1078_3 ; __assert @@gen_label3 DS 0H BALR 14,15 @@gen_label4 DS 0H @L34 DS 0H * *** return p; LGR 15,2 * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1078 DC F'208' @lit_1078_0 DC AD(malloc) @lit_1078_3 DC AD(__assert) @lit_1078_2 DC AD(@strings@) @lit_1078_1 DC AD(@DATA) DROP 12 * * DSECT for automatic variables in "rd_malloc" * (FUNCTION #1078) * @AUTO#rd_malloc DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_memdup @LNAME1083 DS 0H DC X'00000009' DC C'rd_memdup' DC X'00' rd_memdup DCCPRLG CINDEX=1083,BASER=12,FRAME=184,ENTRY=NO,ARCH=ZARCH,LN* AMEADDR=@LNAME1083 LGR 2,1 ; ptr to parm area * ******* End of Prologue * * * *** void *dst = rd_malloc(size); LG 15,8(0,2) ; size STG 15,176(0,13) LA 1,176(0,13) LG 15,@lit_1083_5 ; rd_malloc @@gen_label5 DS 0H BALR 14,15 @@gen_label6 DS 0H * *** __memcpy(dst,src,size); LG 1,8(0,2) LG 2,0(0,2) LGR 3,15 LTGR 1,1 BZ @@gen_label9 AGHI 1,-1 SRAG 4,1,8(0) LTGR 4,4 BZ @@gen_label8 @@gen_label7 DS 0H MVC 0(256,3),0(2) LA 3,256(0,3) LA 2,256(0,2) BCTG 4,@@gen_label7 @@gen_label8 DS 0H EX 1,@lit_1083_6 @@gen_label9 DS 0H * *** return dst; * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1083 DC F'184' @lit_1083_5 DC AD(rd_malloc) @lit_1083_6 MVC 0(1,3),0(2) DROP 12 * * DSECT for automatic variables in "rd_memdup" * (FUNCTION #1083) * @AUTO#rd_memdup DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_ApiKey2str @LNAME1314 DS 0H DC X'00000013' DC C'rd_kafka_ApiKey2str' DC X'00' rd_kafka_$Api$Key2str DCCPRLG CINDEX=1314,BASER=12,FRAME=200,ENTRY=NO,A* RCH=ZARCH,LNAMEADDR=@LNAME1314 DCCPRV REG=15 ; Get PRV from DVT * ******* End of Prologue * * * *** static const char *names[] = { * *** [0] = "Produce", * *** [1] = "Fetch", * *** [2] = "Offset", * *** [3] = "Metadata", * *** [4] = "LeaderAndIsr", * *** [5] = "StopReplica", * *** [6] = "UpdateMetadata", * *** [7] = "ControlledShutdown", * *** [8] = "OffsetCommit", * *** [9] = "OffsetFetch", * *** [10] = "FindCoordinator", * *** [11] = "JoinGroup", * *** [12] = "Heartbeat", * *** [13] = "LeaveGroup", * *** [14] = "SyncGroup", * *** [15] = "DescribeGroups", * *** [16] = "ListGroups", * *** [17] = "SaslHandshake", * *** [18] = "ApiVersion", * *** [19] = "CreateTopics", * *** [20] = "DeleteTopics", * *** [21] = "DeleteRecords", * *** [22] = "InitProducerId", * *** [23] = "OffsetForLeaderEpoch", * *** [24] = "AddPartitionsToTxn", * *** [25] = "AddOffsetsToTxn", * *** [26] = "EndTxn", * *** [27] = "WriteTxnMarkers", * *** [28] = "TxnOffsetCommit", * *** [29] = "DescribeAcls", * *** [30] = "CreateAcls", * *** [31] = "DeleteAcls", * *** [32] = "DescribeConfigs", * *** [33] = "AlterConfigs", * *** [34] = "AlterReplicaLogDirs", * *** [35] = "DescribeLogDirs", * *** [36] = "SaslAuthenticate", * *** [37] = "CreatePartitions", * *** [38] = "CreateDelegationToken", * *** [39] = "RenewDelegationToken", * *** [40] = "ExpireDelegationToken", * *** [41] = "DescribeDelegationToken", * *** [42] = "DeleteGroups", * *** [43] = "ElectLeadersRequest", * *** [44] = * *** "IncrementalAlterConfigsRequest", * *** [45] = * *** "AlterPartitionReassignmentsRequest", * *** [46] = * *** "ListPartitionReassignmentsRequest", * *** [47] = "OffsetDeleteRequest", * *** [48] = * *** "DescribeClientQuotasRequest", * *** [49] = * *** "AlterClientQuotasRequest", * *** [50] = * *** "DescribeUserScramCredentialsRequest", * *** [51] = * *** "AlterUserScramCredentialsRequest", * *** [52] = "VoteRequest", * *** [53] = "BeginQuorumEpochRequest", * *** [54] = "EndQuorumEpochRequest", * *** [55] = "DescribeQuorumRequest", * *** [56] = "AlterIsrRequest", * *** [57] = "UpdateFeaturesRequest", * *** [58] = "EnvelopeRequest", * *** }; * *** static char ret[64]; * *** * *** if (ApiKey < 0 || ApiKey >= (int)(sizeof((names)) / si\ * zeof(*(names))) || LH 2,6(0,1) ; ApiKey LTR 2,2 BL @L119 LH 2,6(0,1) ; ApiKey CHI 2,59 BNL @L119 @L117 DS 0H * *** !names[ApiKey]) { LGH 2,6(0,1) ; ApiKey LGF 3,@lit_1314_8 LA 3,0(3,15) SLLG 2,2,3(0) ; *0x8 LTG 2,544(2,3) BNZ @L118 @L119 DS 0H * *** snprintf(ret, sizeof(ret), "Unknown-%hd?", Api\ * Key); LGF 2,@lit_1314_8 LA 2,0(2,15) LA 15,1016(0,2) STG 15,168(0,13) MVGHI 176(13),64 LG 15,@lit_1314_10 LA 15,34(0,15) STG 15,184(0,13) LH 15,6(0,1) ; ApiKey LGFR 15,15 STG 15,192(0,13) LA 1,168(0,13) LG 15,@lit_1314_11 ; snprintf @@gen_label13 DS 0H BALR 14,15 @@gen_label14 DS 0H * *** return ret; LA 15,1016(0,2) B @ret_lab_1314 DS 0D @FRAMESIZE_1314 DC F'200' @lit_1314_8 DC Q(@@STATIC) @lit_1314_11 DC AD(snprintf) @lit_1314_10 DC AD(@strings@) * *** } @L118 DS 0H * *** * *** return names[ApiKey]; LGH 15,6(0,1) ; ApiKey SLLG 15,15,3(0) ; *0x8 LG 15,544(15,3) * *** } @ret_lab_1314 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_ApiKey2str" * (FUNCTION #1314) * @AUTO#rd_kafka_$Api$Key2str DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_ApiVersion_key_cmp @LNAME1315 DS 0H DC X'0000001B' DC C'rd_kafka_ApiVersion_key_cmp' DC X'00' rd_kafka_$Api$Version_key_cmp DCCPRLG CINDEX=1315,BASER=12,FRAME=176,SA* VEAREA=NO,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1315 * ******* End of Prologue * * * *** const struct rd_kafka_ApiVersion *a = * *** (const struct rd_kafka_ApiVersion *)_a; LG 15,0(0,1) ; _a * *** const struct rd_kafka_ApiVersion *b = * *** (const struct rd_kafka_ApiVersion *)_b; LG 1,8(0,1) ; _b * *** return (int)((a->ApiKey) < (b->ApiKey) ? -1 : ((a->Api\ * Key) > (b->ApiKey))); LH 2,0(0,15) CH 2,0(0,1) BNL @L120 LHI 15,-1 ; -1 B @L121 @L120 DS 0H LH 15,0(0,15) CH 15,0(0,1) BNH @@gen_label16 LHI 15,1 B @@gen_label17 @@gen_label16 DS 0H LHI 15,0 @@gen_label17 DS 0H @L121 DS 0H LGFR 15,15 * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_ApiVersion_key_cmp" * (FUNCTION #1315) * @AUTO#rd_kafka_$Api$Version_key_cmp DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_strlcpy @LNAME1384 DS 0H DC X'0000000A' DC C'rd_strlcpy' DC X'00' rd_strlcpy DCCPRLG CINDEX=1384,BASER=12,FRAME=176,SAVEAREA=NO,ENTRY=NO,* ARCH=ZARCH,LNAMEADDR=@LNAME1384 * ******* End of Prologue * * LG 15,16(0,1) ; dstsize * *** * *** * *** * *** if (((dstsize > 0))) { CLGFI 15,X'00000000' BNH @ret_lab_1384 * *** size_t srclen = __strlen(src); LG 2,8(0,1) LGR 3,2 LGHI 0,0 @@gen_label19 DS 0H SRST 0,2 BC 1,@@gen_label19 SLGR 0,3 * *** size_t copylen = ((srclen) < (dstsize-1) ? (sr\ * clen) : (dstsize-1)); LGR 2,15 AGHI 2,-1 CLGR 0,2 BNL @L252 LGR 15,0 B @L253 DS 0D @lit_1384_14 MVC 0(1,4),0(3) @L252 DS 0H AGHI 15,-1 @L253 DS 0H * *** __memcpy(dst,src,copylen); LG 3,8(0,1) LG 4,0(0,1) LTGR 2,15 BZ @@gen_label23 AGHI 2,-1 SRAG 5,2,8(0) LTGR 5,5 BZ @@gen_label22 @@gen_label21 DS 0H MVC 0(256,4),0(3) LA 4,256(0,4) LA 3,256(0,3) BCTG 5,@@gen_label21 @@gen_label22 DS 0H EX 2,@lit_1384_14 @@gen_label23 DS 0H * *** dst[copylen] = '\0'; LG 1,0(0,1) ; dst LA 15,0(15,1) MVI 0(15),0 * *** } @L251 DS 0H * *** * *** } @ret_lab_1384 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_strlcpy" * (FUNCTION #1384) * @AUTO#rd_strlcpy DSECT DS XL168 rd_strlcpy#copylen#1 DS 8XL1 ; copylen ORG @AUTO#rd_strlcpy+168 rd_strlcpy#srclen#1 DS 8XL1 ; srclen * @CODE CSECT * * * * ....... start of rd_kafka_get_legacy_ApiVersions rd_kafka_get_legacy_$Api$Versions ALIAS X'99846D92818692816D8785A36D938* 5878183A86DC19789E58599A2899695A2' @LNAME1721 DS 0H DC X'0000001F' DC C'rd_kafka_get_legacy_ApiVersions' DC X'00' rd_kafka_get_legacy_$Api$Versions DCCPRLG CINDEX=1721,BASER=12,FRAME=21* 6,ENTRY=YES,ARCH=ZARCH,LNAMEADDR=@LNAME1721 DCCPRV REG=6 ; Get PRV from DVT LGR 7,1 ; ptr to parm area * ******* End of Prologue * * LMG 4,5,8(7) ; apisp LG 15,24(0,7) ; fallback * *** static const struct { * *** const char *pfx; * *** struct rd_kafka_ApiVersion *apis; * *** size_t api_cnt; * *** } vermap[] = { * *** * *** { "0.9.0", rd_kafka_ApiVersion_0_9_0, (sizeof((rd_kafka_\ * ApiVersion_0_9_0)) / sizeof(*(rd_kafka_ApiVersion_0_9_0))) }, * *** { "0.8.2", rd_kafka_ApiVersion_0_8_2, (sizeof((rd_kafka_\ * ApiVersion_0_8_2)) / sizeof(*(rd_kafka_ApiVersion_0_8_2))) }, * *** { "0.8.1", rd_kafka_ApiVersion_0_8_1, (sizeof((rd_kafka_\ * ApiVersion_0_8_1)) / sizeof(*(rd_kafka_ApiVersion_0_8_1))) }, * *** { "0.8.0", rd_kafka_ApiVersion_0_8_0, (sizeof((rd_kafka_\ * ApiVersion_0_8_0)) / sizeof(*(rd_kafka_ApiVersion_0_8_0))) }, * *** { "0.7.", ((void *)0) }, * *** { "0.6.", ((void *)0) }, * *** { "", rd_kafka_ApiVersion_Queryable, (sizeof((rd_kafka_A\ * piVersion_Queryable)) / sizeof(*(rd_kafka_ApiVersion_Queryable))) }, * *** { ((void *)0) } * *** }; * *** int i; * *** int fallback_i = -1; LHI 2,-1 ; -1 * *** int ret = 0; LHI 3,0 ; 0 * *** * *** *apisp = ((void *)0); LGHI 1,0 ; 0 STG 1,0(0,4) ; apisp * *** *api_cntp = 0; MVGHI 0(5),0 ; api_cntp * *** * *** for (i = 0 ; vermap[i].pfx ; i++) { LR 1,3 ; i B @L631 DS 0D @FRAMESIZE_1721 DC F'216' @lit_1721_19 DC Q(@@STATIC) @lit_1721_28 DC AD(rd_kafka_crash) @lit_1721_27 DC AD(@DATA+4096) @lit_1721_26 DC AD(@strings@) @L630 DS 0H * *** if (!__strncmp(vermap[i].pfx,broker_version,__strlen(ver\ * map[i].pfx))) { LGFR 8,1 LGF 9,@lit_1721_19 LA 9,0(9,6) SLLG 10,8,2(0) ; . SLGR 10,8 ; . SLLG 10,10,3(0) ; . LG 8,2064(10,9) LGR 9,8 LGHI 0,0 @@gen_label24 DS 0H SRST 0,8 BC 1,@@gen_label24 SLGR 0,9 LGFR 8,1 LGF 9,@lit_1721_19 LA 9,0(9,6) SLLG 10,8,2(0) ; . SLGR 10,8 ; . SLLG 10,10,3(0) ; . LG 8,2064(10,9) LG 9,0(0,7) LGHI 11,0 LTGR 10,0 BZ @@gen_label25 @@gen_label26 DS 0H CLC 0(1,8),0(9) BE @@gen_label27 IC 11,0(0,8) LLGC 8,0(0,9) SLGR 11,8 B @@gen_label25 @@gen_label27 DS 0H LA 9,1(0,9) IC 11,0(0,8) LA 8,1(0,8) LTGR 11,11 BZ @@gen_label25 BCTG 10,@@gen_label26 LGHI 11,0 @@gen_label25 DS 0H LTR 11,11 BNZ @L634 * *** if (!vermap[i].apis) LGFR 3,1 LGF 7,@lit_1721_19 LA 7,0(7,6) SLLG 8,3,2(0) ; . SLGR 8,3 ; . SLLG 8,8,3(0) ; . LTG 3,2072(8,7) ; offset of apis in 0000155 BNZ @L635 * *** return 0; LGHI 15,0 ; 0 B @ret_lab_1721 @L635 DS 0H * *** *apisp = vermap[i].apis; LGFR 3,1 SLLG 8,3,2(0) ; . SLGR 8,3 ; . SLLG 8,8,3(0) ; . LG 3,2072(8,7) ; offset of apis in 0000155 STG 3,0(0,4) ; apisp * *** *api_cntp = vermap[i].api_cnt; LGFR 1,1 SLLG 3,1,2(0) ; . SLGR 3,1 ; . SLLG 3,3,3(0) ; . LG 1,2080(3,7) ; offset of api_cnt in 0000155 STG 1,0(0,5) ; api_cntp * *** ret = 1; LHI 3,1 ; 1 * *** break; B @L632 * *** } else if (fallback && !__strcmp(vermap[i].pfx,fallback)\ * ) @L634 DS 0H LTGR 8,15 BZ @L636 LGFR 8,1 LGF 9,@lit_1721_19 LA 9,0(9,6) SLLG 10,8,2(0) ; . SLGR 10,8 ; . SLLG 10,10,3(0) ; . LG 8,2064(10,9) LGR 9,15 LA 0,0(0,0) LGHI 10,0 @@gen_label31 DS 0H CLST 8,9 BC 1,@@gen_label31 BE @@gen_label32 LLGC 10,0(0,8) LLGC 8,0(0,9) SLGR 10,8 @@gen_label32 DS 0H LTR 10,10 BNZ @L636 * *** fallback_i = i; LR 2,1 ; fallback_i @L637 DS 0H * *** } @L636 DS 0H AHI 1,1 @L631 DS 0H LGFR 8,1 LGF 9,@lit_1721_19 LA 9,0(9,6) SLLG 10,8,2(0) ; . SLGR 10,8 ; . SLLG 10,10,3(0) ; . LTG 8,2064(10,9) BNZ @L630 @L632 DS 0H * *** * *** if (!*apisp && fallback) { LTG 1,0(0,4) ; apisp BNZ @L638 LTGR 15,15 BZ @L638 * *** do { if (((!(fallback_i != -1)))) rd_kafka_crash("C:\\as\ * gkafka\\librdkafka\\src\\rdkafka_feature.c",317, __FUNCTION__, (((vo\ * id *)0)), "assert: " "fallback_i != -1"); } while (0); @L639 DS 0H CHI 2,-1 BNE @L642 LG 15,@lit_1721_26 LA 1,48(0,15) STG 1,176(0,13) MVGHI 184(13),317 LG 1,@lit_1721_27 LA 1,1368(0,1) STG 1,192(0,13) XC 200(8,13),200(13) LA 15,94(0,15) STG 15,208(0,13) LA 1,176(0,13) LG 15,@lit_1721_28 ; rd_kafka_crash @@gen_label38 DS 0H BALR 14,15 @@gen_label39 DS 0H @L642 DS 0H * *** *apisp = vermap[fallback_i].apis; LGFR 15,2 LGF 1,@lit_1721_19 LA 1,0(1,6) SLLG 6,15,2(0) ; . SLGR 6,15 ; . SLLG 6,6,3(0) ; . LG 15,2072(6,1) ; offset of apis in 0000155 STG 15,0(0,4) ; apisp * *** *api_cntp = vermap[fallback_i].api_cnt; LGFR 15,2 SLLG 2,15,2(0) ; . SLGR 2,15 ; . SLLG 2,2,3(0) ; . LG 15,2080(2,1) ; offset of api_cnt in 0000155 STG 15,0(0,5) ; api_cntp * *** } @L638 DS 0H * *** * *** return ret; LGFR 15,3 * *** } @ret_lab_1721 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_get_legacy_ApiVersions" * (FUNCTION #1721) * @AUTO#rd_kafka_get_legacy_$Api$Versions DSECT DS XL168 rd_kafka_get_legacy_$Api$Versions#ret#0 DS 1F ; ret ORG @AUTO#rd_kafka_get_legacy_$Api$Versions+168 rd_kafka_get_legacy_$Api$Versions#fallback_i#0 DS 1F ; fallback_i ORG @AUTO#rd_kafka_get_legacy_$Api$Versions+168 rd_kafka_get_legacy_$Api$Versions#i#0 DS 1F ; i * @CODE CSECT * * * * ....... start of rd_kafka_ApiVersion_is_queryable rd_kafka_$Api$Version_is_queryable ALIAS X'99846D92818692816DC19789E585* 99A28996956D89A26D98A48599A881829385' @LNAME1722 DS 0H DC X'00000020' DC C'rd_kafka_ApiVersion_is_queryable' DC X'00' rd_kafka_$Api$Version_is_queryable DCCPRLG CINDEX=1722,BASER=12,FRAME=2* 16,ENTRY=YES,ARCH=ZARCH,LNAMEADDR=@LNAME1722 DCCPRV REG=2 ; Get PRV from DVT * ******* End of Prologue * * * *** struct rd_kafka_ApiVersion *apis; * *** size_t api_cnt; * *** * *** * *** if (!rd_kafka_get_legacy_ApiVersions(broker_version, * *** &apis, &api_cnt, 0)) LG 15,0(0,1) ; broker_version STG 15,184(0,13) LA 15,176(0,13) STG 15,192(0,13) LA 15,168(0,13) STG 15,200(0,13) XC 208(8,13),208(13) LA 1,184(0,13) LG 15,@lit_1722_31 ; rd_kafka_get_legacy_ApiVersions @@gen_label40 DS 0H BALR 14,15 @@gen_label41 DS 0H LTR 15,15 BNZ @L643 * *** return 0; LGHI 15,0 ; 0 B @ret_lab_1722 DS 0D @FRAMESIZE_1722 DC F'216' @lit_1722_31 DC AD(rd_kafka_get_legacy_$Api$Versions) @lit_1722_33 DC Q(@@STATIC) @L643 DS 0H * *** * *** return apis == rd_kafka_ApiVersion_Queryable; LG 15,176(0,13) ; apis LGF 1,@lit_1722_33 LA 1,0(1,2) LA 1,1872(0,1) CGR 15,1 BNE @@gen_label43 LHI 15,1 B @@gen_label44 @@gen_label43 DS 0H LHI 15,0 @@gen_label44 DS 0H LGFR 15,15 * *** } @ret_lab_1722 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_ApiVersion_is_queryable" * (FUNCTION #1722) * @AUTO#rd_kafka_$Api$Version_is_queryable DSECT DS XL168 rd_kafka_$Api$Version_is_queryable#api_cnt#0 DS 8XL1 ; api_cnt * @CODE CSECT * * * * ....... start of rd_kafka_ApiVersion_check @LNAME1917 DS 0H DC X'00000019' DC C'rd_kafka_ApiVersion_check' DC X'00' rd_kafka_$Api$Version_check DCCPRLG CINDEX=1917,BASER=12,FRAME=216,ENTR* Y=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1917 * ******* End of Prologue * * LG 2,16(0,1) ; match * *** const struct rd_kafka_ApiVersion *api; * *** * *** api = bsearch(match, apis, api_cnt, sizeof(*apis), * *** rd_kafka_ApiVersion_key_cmp); STG 2,176(0,13) LG 15,0(0,1) ; apis STG 15,184(0,13) LG 15,8(0,1) ; api_cnt STG 15,192(0,13) MVGHI 200(13),6 LG 15,@lit_1917_35 ; rd_kafka_ApiVersion_key_cmp STG 15,208(0,13) LA 1,176(0,13) LG 15,@lit_1917_36 ; bsearch @@gen_label45 DS 0H BALR 14,15 @@gen_label46 DS 0H * *** if (((!api))) LTGR 1,15 BNZ @L644 * *** return 0; LGHI 15,0 ; 0 B @ret_lab_1917 DS 0D @FRAMESIZE_1917 DC F'216' @lit_1917_36 DC AD(bsearch) @lit_1917_35 DC AD(rd_kafka_$Api$Version_key_cmp) @L644 DS 0H * *** * *** return match->MinVer <= api->MaxVer && api->MinVer <= match\ * ->MaxVer; LH 1,2(0,2) CH 1,4(0,15) BH @L646 LH 15,2(0,15) CH 15,4(0,2) BH @L646 LHI 15,1 ; 1 B @L645 @L646 DS 0H LHI 15,0 ; 0 @L645 DS 0H LGFR 15,15 * *** } @ret_lab_1917 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_ApiVersion_check" * (FUNCTION #1917) * @AUTO#rd_kafka_$Api$Version_check DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_features_check rd_kafka_features_check ALIAS X'99846D92818692816D868581A3A49985A26D838* 8858392' @LNAME1724 DS 0H DC X'00000017' DC C'rd_kafka_features_check' DC X'00' rd_kafka_features_check DCCPRLG CINDEX=1724,BASER=12,FRAME=520,ENTRY=YE* S,ARCH=ZARCH,LNAMEADDR=@LNAME1724 LGR 8,1 ; ptr to parm area * ******* End of Prologue * * * *** int features = 0; LG 6,0(0,8) ; rkb LHI 5,0 ; 0 * *** int i; * *** * *** * *** for (i = 0 ; rd_kafka_feature_map[i].feature != 0 ; i++) { LR 3,5 ; i B @L648 DS 0D @FRAMESIZE_1724 DC F'520' @lit_1724_44 DC AD(@DATA) @lit_1724_45 DC AD(rd_kafka_$Api$Version_check) @lit_1724_47 DC AD(mtx_lock) @lit_1724_49 DC AD(rd_strlcpy) @lit_1724_51 DC AD(mtx_unlock) @lit_1724_53 DC AD(rd_kafka_features2str) @lit_1724_54 DC AD(rd_kafka_$Api$Key2str) @lit_1724_55 DC AD(@strings@) @lit_1724_58 DC AD(rd_kafka_log0) @L647 DS 0H * *** const struct rd_kafka_ApiVersion *match; * *** int fails = 0; LHI 4,0 ; 0 * *** * *** * *** * *** * *** for (match = &rd_kafka_feature_map[i].depends[0] ; LGFR 15,3 LG 1,@lit_1724_44 MGHI 15,360 LA 2,428(15,1) * *** match->ApiKey != -1 ; match++) { B @L652 @L651 DS 0H * *** int r; * *** * *** r = rd_kafka_ApiVersion_check(broker_apis, broker_api\ * _cnt, * *** match); LG 15,8(0,8) ; broker_apis STG 15,424(0,13) LG 15,16(0,8) ; broker_api_cnt STG 15,432(0,13) STG 2,440(0,13) LA 1,424(0,13) LG 15,@lit_1724_45 ; rd_kafka_ApiVersion_check @@gen_label50 DS 0H BALR 14,15 @@gen_label51 DS 0H LR 7,15 * *** * *** do { if ((((rkb)->rkb_rk->rk_conf.debug & (0x10)))) {\ * do { char _logname[256]; mtx_lock(&(rkb)->rkb_logname_lock); rd_str\ * lcpy(_logname, rkb->rkb_logname, sizeof(_logname)); mtx_unlock(&(rkb\ * )->rkb_logname_lock); rd_kafka_log0(&(rkb)->rkb_rk->rk_conf, (rkb)->\ * rkb_rk, _logname, 7, (0x10), "APIVERSION", " Feature %s: %s (%hd..%h\ * d) " "%ssupported by broker", rd_kafka_features2str(rd_kafka_feature\ * _map[i]. feature), rd_kafka_ApiKey2str(match->ApiKey), match->MinVer\ * , match->MaxVer, r ? "" : "NOT "); } while (0); } } while (0); @L655 DS 0H LG 15,4048(0,6) ; offset of rkb_rk in rd_kafka_broker_s TM 803(15),16 BZ @L658 @L659 DS 0H LGHI 9,5688 ; 5688 LA 15,0(9,6) STG 15,424(0,13) LA 1,424(0,13) LG 15,@lit_1724_47 ; mtx_lock @@gen_label53 DS 0H BALR 14,15 @@gen_label54 DS 0H LA 15,168(0,13) STG 15,424(0,13) LGHI 15,5680 ; 5680 LG 15,0(15,6) STG 15,432(0,13) MVGHI 440(13),256 LA 1,424(0,13) LG 15,@lit_1724_49 ; rd_strlcpy @@gen_label55 DS 0H BALR 14,15 @@gen_label56 DS 0H LA 15,0(9,6) STG 15,424(0,13) LA 1,424(0,13) LG 15,@lit_1724_51 ; mtx_unlock @@gen_label57 DS 0H BALR 14,15 @@gen_label58 DS 0H LGFR 15,3 LG 1,@lit_1724_44 MGHI 15,360 LGF 15,424(15,1) STG 15,424(0,13) LA 1,424(0,13) LG 15,@lit_1724_53 ; rd_kafka_features2str @@gen_label59 DS 0H BALR 14,15 @@gen_label60 DS 0H LGR 9,15 LGH 15,0(0,2) STG 15,424(0,13) LA 1,424(0,13) LG 15,@lit_1724_54 ; rd_kafka_ApiKey2str @@gen_label61 DS 0H BALR 14,15 @@gen_label62 DS 0H LTR 7,7 BZ @L662 LG 1,@lit_1724_55 LA 1,120(0,1) B @L663 @L662 DS 0H LG 1,@lit_1724_55 LA 1,122(0,1) @L663 DS 0H LG 10,4048(0,6) ; offset of rkb_rk in rd_kafka_broker_s LA 10,528(0,10) STG 10,424(0,13) LG 10,4048(0,6) STG 10,432(0,13) LA 10,168(0,13) STG 10,440(0,13) MVGHI 448(13),7 MVGHI 456(13),16 LG 10,@lit_1724_55 LA 11,128(0,10) STG 11,464(0,13) LA 10,140(0,10) STG 10,472(0,13) STG 9,480(0,13) STG 15,488(0,13) LH 15,2(0,2) LGFR 15,15 STG 15,496(0,13) LH 15,4(0,2) LGFR 15,15 STG 15,504(0,13) STG 1,512(0,13) LA 1,424(0,13) LG 15,@lit_1724_58 ; rd_kafka_log0 @@gen_label64 DS 0H BALR 14,15 @@gen_label65 DS 0H @L658 DS 0H * *** * *** # 407 "C:\asgkafka\librdkafka\src\rdkafka_feature.c" * *** fails += !r; LPR 15,7 AHI 15,-1 SRL 15,31(0) AR 4,15 * *** } LA 2,6(0,2) @L652 DS 0H LH 15,0(0,2) CHI 15,-1 BNE @L651 * *** * *** do { if ((((rkb)->rkb_rk->rk_conf.debug & (0x10)))) { do\ * { char _logname[256]; mtx_lock(&(rkb)->rkb_logname_lock); rd_strlcp\ * y(_logname, rkb->rkb_logname, sizeof(_logname)); mtx_unlock(&(rkb)->\ * rkb_logname_lock); rd_kafka_log0(&(rkb)->rkb_rk->rk_conf, (rkb)->rkb\ * _rk, _logname, 7, (0x10), "APIVERSION", "%s feature %s", fails ? "Di\ * sabling" : "Enabling", rd_kafka_features2str(rd_kafka_feature_map[i]\ * .feature)); } while (0); } } while (0); @L664 DS 0H LG 15,4048(0,6) ; offset of rkb_rk in rd_kafka_broker_s TM 803(15),16 BZ @L667 @L668 DS 0H LGHI 2,5688 ; 5688 LA 15,0(2,6) STG 15,424(0,13) LA 1,424(0,13) LG 15,@lit_1724_47 ; mtx_lock @@gen_label68 DS 0H BALR 14,15 @@gen_label69 DS 0H LA 15,168(0,13) STG 15,424(0,13) LGHI 15,5680 ; 5680 LG 15,0(15,6) STG 15,432(0,13) MVGHI 440(13),256 LA 1,424(0,13) LG 15,@lit_1724_49 ; rd_strlcpy @@gen_label70 DS 0H BALR 14,15 @@gen_label71 DS 0H LA 15,0(2,6) STG 15,424(0,13) LA 1,424(0,13) LG 15,@lit_1724_51 ; mtx_unlock @@gen_label72 DS 0H BALR 14,15 @@gen_label73 DS 0H LTR 4,4 BZ @L671 LG 15,@lit_1724_55 LA 2,190(0,15) B @L672 @L671 DS 0H LG 15,@lit_1724_55 LA 2,200(0,15) @L672 DS 0H LGFR 15,3 LG 1,@lit_1724_44 MGHI 15,360 LGF 15,424(15,1) STG 15,424(0,13) LA 1,424(0,13) LG 15,@lit_1724_53 ; rd_kafka_features2str @@gen_label75 DS 0H BALR 14,15 @@gen_label76 DS 0H LG 1,4048(0,6) ; offset of rkb_rk in rd_kafka_broker_s LA 1,528(0,1) STG 1,424(0,13) LG 1,4048(0,6) STG 1,432(0,13) LA 1,168(0,13) STG 1,440(0,13) MVGHI 448(13),7 MVGHI 456(13),16 LG 1,@lit_1724_55 LA 7,128(0,1) STG 7,464(0,13) LA 1,210(0,1) STMG 1,2,472(13) STG 15,488(0,13) LA 1,424(0,13) LG 15,@lit_1724_58 ; rd_kafka_log0 @@gen_label77 DS 0H BALR 14,15 @@gen_label78 DS 0H @L667 DS 0H * *** * *** * *** * *** * *** * *** if (!fails) LTR 4,4 BNZ @L673 * *** features |= rd_kafka_feature_map[i].feature; LGFR 15,3 LG 1,@lit_1724_44 MGHI 15,360 O 5,424(15,1) @L673 DS 0H * *** } AHI 3,1 @L648 DS 0H LGFR 15,3 LG 1,@lit_1724_44 MGHI 15,360 LA 15,424(15,1) CHSI 0(15),0 BNE @L647 * *** * *** return features; LGFR 15,5 * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_features_check" * (FUNCTION #1724) * @AUTO#rd_kafka_features_check DSECT DS XL168 rd_kafka_features_check#_logname#8 DS 256XL1 ; _logname ORG @AUTO#rd_kafka_features_check+168 rd_kafka_features_check#_logname#5 DS 256XL1 ; _logname ORG @AUTO#rd_kafka_features_check+168 rd_kafka_features_check#r#2 DS 1F ; r ORG @AUTO#rd_kafka_features_check+168 rd_kafka_features_check#fails#1 DS 1F ; fails ORG @AUTO#rd_kafka_features_check+168 rd_kafka_features_check#i#0 DS 1F ; i ORG @AUTO#rd_kafka_features_check+168 rd_kafka_features_check#features#0 DS 1F ; features * @CODE CSECT * * * * ....... start of rd_kafka_ApiVersions_copy rd_kafka_$Api$Versions_copy ALIAS X'99846D92818692816DC19789E58599A2899* 695A26D839697A8' @LNAME1723 DS 0H DC X'00000019' DC C'rd_kafka_ApiVersions_copy' DC X'00' rd_kafka_$Api$Versions_copy DCCPRLG CINDEX=1723,BASER=12,FRAME=200,ENTR* Y=YES,ARCH=ZARCH,LNAMEADDR=@LNAME1723 LGR 2,1 ; ptr to parm area * ******* End of Prologue * * * *** *dstp = rd_memdup(src, sizeof(*src) * src_cnt); LG 3,16(0,2) ; dstp LG 15,0(0,2) ; src STG 15,168(0,13) LG 4,8(0,2) ; src_cnt SLLG 15,4,2(0) ; . SLGR 15,4 ; . SLLG 15,15,1(0) ; . STG 15,176(0,13) LA 1,168(0,13) LG 15,@lit_1723_74 ; rd_memdup @@gen_label81 DS 0H BALR 14,15 @@gen_label82 DS 0H STG 15,0(0,3) * *** *dst_cntp = src_cnt; LG 15,24(0,2) ; dst_cntp STG 4,0(0,15) ; dst_cntp * *** qsort(*dstp, *dst_cntp, sizeof(**dstp), rd_kafka_ApiVe\ * rsion_key_cmp); LG 1,0(0,3) STG 1,168(0,13) LG 15,0(0,15) STG 15,176(0,13) MVGHI 184(13),6 LG 15,@lit_1723_75 ; rd_kafka_ApiVersion_key_cmp STG 15,192(0,13) LA 1,168(0,13) LG 15,@lit_1723_76 ; qsort @@gen_label83 DS 0H BALR 14,15 @@gen_label84 DS 0H * *** } @ret_lab_1723 DS 0H * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DS 0D @FRAMESIZE_1723 DC F'200' @lit_1723_74 DC AD(rd_memdup) @lit_1723_76 DC AD(qsort) @lit_1723_75 DC AD(rd_kafka_$Api$Version_key_cmp) DROP 12 * * DSECT for automatic variables in "rd_kafka_ApiVersions_copy" * (FUNCTION #1723) * @AUTO#rd_kafka_$Api$Versions_copy DSECT DS XL168 * @CODE CSECT * * * * ....... start of rd_kafka_features2str rd_kafka_features2str ALIAS X'99846D92818692816D868581A3A49985A2F2A2A39* 9' @LNAME1725 DS 0H DC X'00000015' DC C'rd_kafka_features2str' DC X'00' rd_kafka_features2str DCCPRLG CINDEX=1725,BASER=12,FRAME=216,ENTRY=YES,* ARCH=ZARCH,LNAMEADDR=@LNAME1725 DCCPRV REG=4 ; Get PRV from DVT LGR 5,1 ; ptr to parm area * ******* End of Prologue * * * *** static char ret[4][256]; * *** size_t of = 0; LGHI 2,0 ; 0 * *** static int reti = 0; * *** int i; * *** * *** reti = (reti + 1) % 4; LGF 15,@lit_1725_79 LA 15,0(15,4) L 1,3280(0,15) ; reti AHI 1,1 LR 3,1 NILF 3,X'00000003' LTR 1,1 BNL @@gen_label85 LTR 3,3 BNE @@gen_label86 LHI 3,0 B @@gen_label85 DS 0D @FRAMESIZE_1725 DC F'216' @lit_1725_79 DC Q(@@STATIC) @lit_1725_83 DC AD(@strings@) @lit_1725_88 DC AD(snprintf) @@gen_label86 DS 0H OILF 3,X'FFFFFFFC' @@gen_label85 DS 0H ST 3,3280(0,15) ; reti * *** * *** *ret[reti] = '\0'; LGFR 15,3 LGF 1,@lit_1725_79 LA 1,0(1,4) SLLG 15,15,8(0) ; *0x100 LA 15,0(15,1) MVI 2256(15),0 * *** for (i = 0 ; rd_kafka_feature_names[i] ; i++) { LHI 3,0 ; 0 B @L675 @L674 DS 0H * *** int r; * *** if (!(features & (1 << i))) LHI 15,1 ; 1 SLL 15,0(3) N 15,4(0,5) BZ @L677 * *** continue; @L678 DS 0H * *** * *** r = snprintf(ret[reti]+of, sizeof(ret[reti])-of, "%s%s",\ * of == 0 ? "" : ",", rd_kafka_feature_names[i]); LTGR 15,2 BNE @L679 LG 15,@lit_1725_83 LA 15,120(0,15) B @L680 @L679 DS 0H LG 15,@lit_1725_83 LA 15,224(0,15) @L680 DS 0H LGF 1,@lit_1725_79 LA 6,0(1,4) LGF 1,3280(0,6) ; reti SLLG 1,1,8(0) ; *0x100 LA 1,0(1,2) LA 1,2256(1,6) STG 1,176(0,13) LGHI 7,256 ; 256 LGR 1,7 SLGR 1,2 STG 1,184(0,13) LG 8,@lit_1725_83 LA 1,226(0,8) STG 1,192(0,13) STG 15,200(0,13) LGFR 15,3 SLLG 15,15,3(0) ; *0x8 LG 15,1752(15,6) STG 15,208(0,13) LA 1,176(0,13) LG 15,@lit_1725_88 ; snprintf @@gen_label89 DS 0H BALR 14,15 @@gen_label90 DS 0H * *** * *** * *** if ((size_t)r > sizeof(ret[reti])-of) { LGFR 1,15 SLGR 7,2 CLGR 1,7 BNH @L681 * *** * *** __memcpy(&ret[reti][sizeof(ret[reti])-3],"..",3); LGF 15,3280(0,6) ; reti SLLG 15,15,8(0) ; *0x100 LA 1,232(0,8) LA 15,2509(15,6) MVC 0(3,15),0(1) * *** break; B @L676 * *** } @L681 DS 0H * *** * *** of += r; LGFR 15,15 ALGR 2,15 * *** } @L677 DS 0H AHI 3,1 @L675 DS 0H LGFR 15,3 LGF 1,@lit_1725_79 LA 1,0(1,4) SLLG 15,15,3(0) ; *0x8 LTG 15,1752(15,1) BNZ @L674 @L676 DS 0H * *** * *** return ret[reti]; LGF 15,@lit_1725_79 LA 15,0(15,4) LGF 1,3280(0,15) ; reti SLLG 1,1,8(0) ; *0x100 LA 15,2256(1,15) * *** } * * **** Start of Epilogue DCCEPIL * * **** End of Epilogue DROP 12 * * DSECT for automatic variables in "rd_kafka_features2str" * (FUNCTION #1725) * @AUTO#rd_kafka_features2str DSECT DS XL168 rd_kafka_features2str#r#1 DS 1F ; r ORG @AUTO#rd_kafka_features2str+168 rd_kafka_features2str#i#0 DS 1F ; i ORG @AUTO#rd_kafka_features2str+168 rd_kafka_features2str#of#0 DS 8XL1 ; of * @CODE CSECT @@STATIC ALIAS X'7C998492818692816D868581A3A4998550' @@STATIC DXD 411D * * Non-Re-Entrant Data Section * @DATA CSECT @DATA RMODE ANY @DATA AMODE ANY @@T48F DC X'99846D838193939683' rd.calloc DC 1X'00' @@T493 DC X'99846D948193939683' rd.malloc DC 1X'00' @@T498 DC X'99846D99858193939683' rd.realloc DC 2X'00' @@T49E DC X'99846DA2A39984A497' rd.strdup DC 1X'00' @@T4A3 DC X'99846DA2A3999584A497' rd.strndup DC 2X'00' @@T4AB DC X'99846D9985868395A36DA2A482F0' rd.refcnt.sub0 DC 4X'00' @@T65A DC 4X'00' DC X'0000001A000000000000002200000000' ................ DC X'00000024' .... @@T67D DC X'99846D92818692816D94A287986D8485' rd.kafka.msgq.de DC X'98' q DC 1X'00' @@T704 DC X'99846D92818692816D986D8485A2A399' rd.kafka.q.destr DC X'96A8F0' oy0 DC 1X'00' @@T785 DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc DC X'856D8485A2A39996A8F0' e.destroy0 DC 2X'00' @@T78D DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc DC X'856D8485936DA296A4998385' e.del.source DC 2X'00' @@T794 DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc DC X'856D8485936DA296A49983856D9985A3' e.del.source.ret DC X'A49995' urn DC 1X'00' @@T79C DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc DC X'856DA3998987878599' e.trigger DC 1X'00' @@T7A0 DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc DC X'856D8485A2A39996A8' e.destroy DC 1X'00' @@T7A5 DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc DC X'856D8489A281829385' e.disable DC 1X'00' @@T7C5 DC X'99846DA394978182A4866D8193939683' rd.tmpabuf.alloc DC X'F0' 0 DC 1X'00' @@T7F9 DC X'99846D92818692816D82A4866DA49784' rd.kafka.buf.upd DC X'81A385' ate DC 1X'00' @@T81A DC X'99846D92818692816D82A4866D868995' rd.kafka.buf.fin DC X'819389A9856D81999981A88395A3' alize.arraycnt DC 2X'00' @@T857 DC X'99846D92818692816D82A4866D839983' rd.kafka.buf.crc DC X'6D899589A3' .init DC 1X'00' @@TA27 DC X'99846D92818692816D83A499996D94A2' rd.kafka.curr.ms DC X'87A26DA2A482' gs.sub DC 4X'00' rd_kafka_feature_map DC X'00000001000000020002000100020002' ........* ........ DC X'FFFF' .. DC 342X'00' DC X'00000200000000030003000100040004' ................ DC X'FFFF' .. DC 342X'00' DC X'00000002001200000000FFFF' ............ DC 348X'00' DC X'00000040000A00000000FFFF' ............ DC 348X'00' DC X'00000004000A00000000000800010002' ................ DC X'000900010001000B00000000000E0000' ................ DC X'0000000C00000000000D00000000FFFF' ................ DC 312X'00' DC X'00000008000000010002000100010002' ................ DC X'FFFF' .. DC 342X'00' DC X'00000010000B00000000FFFF' ............ DC 348X'00' DC X'00000020001100000000FFFF' ............ DC 348X'00' DC X'00000080000A00000000FFFF' ............ DC 348X'00' DC X'00000100000200010001FFFF' ............ DC 348X'00' DC X'00000400001600000000FFFF' ............ DC 348X'00' DC X'000008000000000700070001000A000A' ................ DC X'FFFF' .. DC 342X'00' DC X'00001000001100010001002400000000' ................ DC X'FFFF' .. DC 702X'00' @@TA61 DC X'99846D92818692816D8785A36D938587' rd.kafka.get.leg DC X'8183A86DC19789E58599A2899695A2' acy.ApiVersions DC 1X'00' @strings@ DS 0H DC X'C37AE081A2879281869281E093898299' C..asgkafka.libr DC X'849281869281E0A29983E099844B8800' dkafka.src.rd.h. DC X'9700E495929596A695606C88846F0000' p.Unknown..hd... DC X'C37AE081A2879281869281E093898299' C..asgkafka.libr DC X'849281869281E0A29983E09984928186' dkafka.src.rdkaf DC X'92816D868581A3A499854B83000081A2' ka.feature.c..as DC X'A28599A37A4086819393828183926D89' sert..fallback.i DC X'405A7E4060F100000000D5D6E3400000' .....1....NOT... DC X'C1D7C9E5C5D9E2C9D6D5000040C68581' APIVERSION...Fea DC X'A3A49985406CA27A406CA2404D6C8884' ture..s...s...hd DC X'4B4B6C88845D406CA2A2A497979699A3' ...hd...ssupport DC X'85844082A8408299969285990000C489' ed.by.broker..Di DC X'A281829389958700C595818293899587' sabling.Enabling DC X'00006CA240868581A3A49985406CA200' ...s.feature..s. DC X'6B006CA26CA200004B4B0000D7999684' ...s.s......Prod DC X'A4838500C685A3838800D68686A285A3' uce.Fetch.Offset DC X'0000D485A3818481A3810000D3858184' ..Metadata..Lead DC X'8599C19584C9A2990000E2A39697D985' erAndIsr..StopRe DC X'979389838100E4978481A385D485A381' plica.UpdateMeta DC X'8481A3810000C39695A3999693938584' data..Controlled DC X'E288A4A38496A6950000D68686A285A3' Shutdown..Offset DC X'C396949489A30000D68686A285A3C685' Commit..OffsetFe DC X'A3838800C6899584C396969984899581' tch.FindCoordina DC X'A3969900D1968995C79996A49700C885' tor.JoinGroup.He DC X'8199A3828581A300D38581A585C79996' artbeat.LeaveGro DC X'A4970000E2A89583C79996A49700C485' up..SyncGroup.De DC X'A28399898285C79996A497A20000D389' scribeGroups..Li DC X'A2A3C79996A497A20000E281A293C881' stGroups..SaslHa DC X'9584A28881928500C19789E58599A289' ndshake.ApiVersi DC X'96950000C3998581A385E396978983A2' on..CreateTopics DC X'0000C4859385A385E396978983A20000' ..DeleteTopics.. DC X'C4859385A385D98583969984A200C995' DeleteRecords.In DC X'89A3D7999684A4838599C9840000D686' itProducerId..Of DC X'86A285A3C69699D38581848599C59796' fsetForLeaderEpo DC X'83880000C18484D78199A389A3899695' ch..AddPartition DC X'A2E396E3A7950000C18484D68686A285' sToTxn..AddOffse DC X'A3A2E396E3A79500C59584E3A7950000' tsToTxn.EndTxn.. DC X'E69989A385E3A795D48199928599A200' WriteTxnMarkers. DC X'E3A795D68686A285A3C396949489A300' TxnOffsetCommit. DC X'C485A28399898285C18393A20000C399' DescribeAcls..Cr DC X'8581A385C18393A20000C4859385A385' eateAcls..Delete DC X'C18393A20000C485A28399898285C396' Acls..DescribeCo DC X'95868987A200C193A38599C396958689' nfigs.AlterConfi DC X'87A20000C193A38599D9859793898381' gs..AlterReplica DC X'D39687C48999A200C485A28399898285' LogDirs.Describe DC X'D39687C48999A200E281A293C1A4A388' LogDirs.SaslAuth DC X'8595A3898381A3850000C3998581A385' enticate..Create DC X'D78199A389A3899695A20000C3998581' Partitions..Crea DC X'A385C48593858781A3899695E3969285' teDelegationToke DC X'9500D9859585A6C48593858781A38996' n.RenewDelegatio DC X'95E3969285950000C5A797899985C485' nToken..ExpireDe DC X'93858781A3899695E39692859500C485' legationToken.De DC X'A28399898285C48593858781A3899695' scribeDelegation DC X'E39692859500C4859385A385C79996A4' Token.DeleteGrou DC X'97A20000C5938583A3D38581848599A2' ps..ElectLeaders DC X'D98598A485A2A300C995839985948595' Request.Incremen DC X'A38193C193A38599C39695868987A2D9' talAlterConfigsR DC X'8598A485A2A30000C193A38599D78199' equest..AlterPar DC X'A389A3899695D98581A2A28987959485' titionReassignme DC X'95A3A2D98598A485A2A30000D389A2A3' ntsRequest..List DC X'D78199A389A3899695D98581A2A28987' PartitionReassig DC X'95948595A3A2D98598A485A2A300D686' nmentsRequest.Of DC X'86A285A3C4859385A385D98598A485A2' fsetDeleteReques DC X'A300C485A28399898285C393898595A3' t.DescribeClient DC X'D8A496A381A2D98598A485A2A300C193' QuotasRequest.Al DC X'A38599C393898595A3D8A496A381A2D9' terClientQuotasR DC X'8598A485A2A30000C485A28399898285' equest..Describe DC X'E4A28599E283998194C39985848595A3' UserScramCredent DC X'898193A2D98598A485A2A300C193A385' ialsRequest.Alte DC X'99E4A28599E283998194C39985848595' rUserScramCreden DC X'A3898193A2D98598A485A2A30000E596' tialsRequest..Vo DC X'A385D98598A485A2A300C285878995D8' teRequest.BeginQ DC X'A49699A494C597968388D98598A485A2' uorumEpochReques DC X'A300C59584D8A49699A494C597968388' t.EndQuorumEpoch DC X'D98598A485A2A300C485A28399898285' Request.Describe DC X'D8A49699A494D98598A485A2A300C193' QuorumRequest.Al DC X'A38599C9A299D98598A485A2A300E497' terIsrRequest.Up DC X'8481A385C68581A3A49985A2D98598A4' dateFeaturesRequ DC X'85A2A300C595A58593969785D98598A4' est.EnvelopeRequ DC X'85A2A30095969585000087A989970000' est.none..gzip.. DC X'A295819797A8000093A9F400A9A2A384' snappy..lz4.zstd DC X'0000899588859989A300839695868987' ..inherit.config DC X'A4998584000093858199958584008995' ured..learned.in DC X'A3859995819300009396878983819300' ternal..logical. DC X'C99589A30000E3859994899581A38500' Init..Terminate. DC X'C681A38193C5999996990000D98598A4' FatalError..Requ DC X'85A2A3D7C9C40000E68189A3E3998195' estPID..WaitTran DC X'A2979699A300E68189A3D7C9C400C1A2' sport.WaitPID.As DC X'A289879585840000C499818995D985A2' signed..DrainRes DC X'85A30000C499818995C2A4949700D985' et..DrainBump.Re DC X'8184A8D596A3C18392858400D9858184' adyNotAcked.Read DC X'A800C995E3998195A28183A389969500' y.InTransaction. DC X'C285878995C396949489A300C3969494' BeginCommit.Comm DC X'89A3A3899587E3998195A28183A38996' ittingTransactio DC X'9500C396949489A3D596A3C183928584' n.CommitNotAcked DC X'0000C1829699A3899587E3998195A281' ..AbortingTransa DC X'83A389969500C1829699A38584D596A3' ction.AbortedNot DC X'C18392858400C1829699A381829385C5' Acked.AbortableE DC X'999996990000D4A287E58599F100C299' rror..MsgVer1.Br DC X'96928599C281938195838584C39695A2' okerBalancedCons DC X'A49485990000E3889996A3A39385E389' umer..ThrottleTi DC X'94850000E281A2930000C29996928599' me..Sasl..Broker DC X'C79996A497C396969984899581A39699' GroupCoordinator DC X'0000D3E9F400D68686A285A3E3899485' ..LZ4.OffsetTime DC X'0000D4A287E58599F200C98485949796' ..MsgVer2.Idempo DC X'A38595A3D7999684A48385990000E9E2' tentProducer..ZS DC X'E3C40000E281A293C1A4A388D9859800' TD..SaslAuthReq. DC X'E49589A3E385A2A30000F04BF94BF000' UnitTest..0.9.0. DC X'F04BF84BF200F04BF84BF100F04BF84B' 0.8.2.0.8.1.0.8. DC X'F000F04BF74B0000F04BF64B0000' 0.0.7...0.6... * * * Re-entrant Data Initialization Section * @@INIT@ ALIAS C'rdkafka_feature:' @@INIT@ CSECT @@INIT@ AMODE ANY @@INIT@ RMODE ANY DC XL1'5' DC AL3(0) DC AL4(288) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000001' DC X'00000000' DC X'000000FF' DC X'0102039C09867F978D8E0B0C0D0E0F10' .....f.p........ DC X'1112139D8508871819928F1C1D1E1F80' ....e.g..k...... DC X'818283840A171B88898A8B8C05060790' abcd...hi....... DC X'9116939495960498999A9B14159E1A20' j.lmno.qr....... DC X'A0E2E4E0E1E3E5E7F1A22E3C282B7C26' .SU..TVX1s...... DC X'E9EAEBE8EDEEEFECDF21242A293B5E2D' Z..Y............ DC X'2FC2C4C0C1C3C5C7D1A62C255F3E3FF8' .BD.ACEGJw.....8 DC X'C9CACBC8CDCECFCC603A2340273D22D8' I..H...........Q DC X'616263646566676869ABBBF0FDFEB1B0' ...........0.... DC X'6A6B6C6D6E6F707172AABAE6B8C6A4B5' ...........W.Fu. DC X'7E737475767778797AA1BFD05BDEAEAC' ................ DC X'A3A5B7A9A7B6BCBDBEDDA8AF5DB4D77B' tv.zx.....y...P. DC X'414243444546474849ADF4F6F2F3F57D' ..........46235. DC X'4A4B4C4D4E4F505152B9FBFCF9FAFF5C' ............9... DC X'F7535455565758595AB2D4D6D2D3D530' 7.........MOKLN. DC X'313233343536373839B3DBDCD9DA9F40' ............R... * DC XL1'5' DC AL3(0) DC AL4(480) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000101' DC X'00000000' DC X'000000A0' DC X'010203372D2E2F1605150B0C0D0E0F10' ................ DC X'1112133C3D322618193F271C1D1E1F40' ................ DC X'5A7F7B5B6C507D4D5D5C4E6B604B61F0' ...............0 DC X'F1F2F3F4F5F6F7F8F97A5E4C7E6E6F7C' 123456789....... DC X'C1C2C3C4C5C6C7C8C9D1D2D3D4D5D6D7' ABCDEFGHIJKLMNOP DC X'D8D9E2E3E4E5E6E7E8E9ADE0BD5F6D79' QRSTUVWXYZ...... DC X'81828384858687888991929394959697' abcdefghijklmnop DC X'9899A2A3A4A5A6A7A8A9C04FD0A10720' qrstuvwxyz...... DC X'2122232425061728292A2B2C090A1B30' ................ DC X'311A333435360838393A3B04143EFF80' ................ * DC XL1'5' DC AL3(0) DC AL4(520) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000001C0' DC X'00000000' DC X'00000001' DC X'8A40404040404040' ........ * DC XL1'5' DC AL3(0) DC AL4(560) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000001E0' DC X'00000000' DC X'00000001' DC X'8B40404040404040' ........ * DC XL1'D' DC AL3(0) DC AL4(600) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000220' DC ADL8(@DATA) DC X'00000000' DC X'00001664' * DC XL1'D' DC AL3(0) DC AL4(640) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000228' DC ADL8(@DATA) DC X'00000000' DC X'0000166C' * DC XL1'D' DC AL3(0) DC AL4(680) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000230' DC ADL8(@DATA) DC X'00000000' DC X'00001672' * DC XL1'D' DC AL3(0) DC AL4(720) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000238' DC ADL8(@DATA) DC X'00000000' DC X'0000167A' * DC XL1'D' DC AL3(0) DC AL4(760) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000240' DC ADL8(@DATA) DC X'00000000' DC X'00001684' * DC XL1'D' DC AL3(0) DC AL4(800) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000248' DC ADL8(@DATA) DC X'00000000' DC X'00001692' * DC XL1'D' DC AL3(0) DC AL4(840) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000250' DC ADL8(@DATA) DC X'00000000' DC X'0000169E' * DC XL1'D' DC AL3(0) DC AL4(880) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000258' DC ADL8(@DATA) DC X'00000000' DC X'000016AE' * DC XL1'D' DC AL3(0) DC AL4(920) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000260' DC ADL8(@DATA) DC X'00000000' DC X'000016C2' * DC XL1'D' DC AL3(0) DC AL4(960) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000268' DC ADL8(@DATA) DC X'00000000' DC X'000016D0' * DC XL1'D' DC AL3(0) DC AL4(1000) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000270' DC ADL8(@DATA) DC X'00000000' DC X'000016DC' * DC XL1'D' DC AL3(0) DC AL4(1040) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000278' DC ADL8(@DATA) DC X'00000000' DC X'000016EC' * DC XL1'D' DC AL3(0) DC AL4(1080) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000280' DC ADL8(@DATA) DC X'00000000' DC X'000016F6' * DC XL1'D' DC AL3(0) DC AL4(1120) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000288' DC ADL8(@DATA) DC X'00000000' DC X'00001700' * DC XL1'D' DC AL3(0) DC AL4(1160) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000290' DC ADL8(@DATA) DC X'00000000' DC X'0000170C' * DC XL1'D' DC AL3(0) DC AL4(1200) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000298' DC ADL8(@DATA) DC X'00000000' DC X'00001716' * DC XL1'D' DC AL3(0) DC AL4(1240) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002A0' DC ADL8(@DATA) DC X'00000000' DC X'00001726' * DC XL1'D' DC AL3(0) DC AL4(1280) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002A8' DC ADL8(@DATA) DC X'00000000' DC X'00001732' * DC XL1'D' DC AL3(0) DC AL4(1320) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002B0' DC ADL8(@DATA) DC X'00000000' DC X'00001740' * DC XL1'D' DC AL3(0) DC AL4(1360) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002B8' DC ADL8(@DATA) DC X'00000000' DC X'0000174C' * DC XL1'D' DC AL3(0) DC AL4(1400) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002C0' DC ADL8(@DATA) DC X'00000000' DC X'0000175A' * DC XL1'D' DC AL3(0) DC AL4(1440) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002C8' DC ADL8(@DATA) DC X'00000000' DC X'00001768' * DC XL1'D' DC AL3(0) DC AL4(1480) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002D0' DC ADL8(@DATA) DC X'00000000' DC X'00001776' * DC XL1'D' DC AL3(0) DC AL4(1520) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002D8' DC ADL8(@DATA) DC X'00000000' DC X'00001786' * DC XL1'D' DC AL3(0) DC AL4(1560) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002E0' DC ADL8(@DATA) DC X'00000000' DC X'0000179C' * DC XL1'D' DC AL3(0) DC AL4(1600) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002E8' DC ADL8(@DATA) DC X'00000000' DC X'000017B0' * DC XL1'D' DC AL3(0) DC AL4(1640) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002F0' DC ADL8(@DATA) DC X'00000000' DC X'000017C0' * DC XL1'D' DC AL3(0) DC AL4(1680) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000002F8' DC ADL8(@DATA) DC X'00000000' DC X'000017C8' * DC XL1'D' DC AL3(0) DC AL4(1720) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000300' DC ADL8(@DATA) DC X'00000000' DC X'000017D8' * DC XL1'D' DC AL3(0) DC AL4(1760) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000308' DC ADL8(@DATA) DC X'00000000' DC X'000017E8' * DC XL1'D' DC AL3(0) DC AL4(1800) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000310' DC ADL8(@DATA) DC X'00000000' DC X'000017F6' * DC XL1'D' DC AL3(0) DC AL4(1840) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000318' DC ADL8(@DATA) DC X'00000000' DC X'00001802' * DC XL1'D' DC AL3(0) DC AL4(1880) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000320' DC ADL8(@DATA) DC X'00000000' DC X'0000180E' * DC XL1'D' DC AL3(0) DC AL4(1920) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000328' DC ADL8(@DATA) DC X'00000000' DC X'0000181E' * DC XL1'D' DC AL3(0) DC AL4(1960) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000330' DC ADL8(@DATA) DC X'00000000' DC X'0000182C' * DC XL1'D' DC AL3(0) DC AL4(2000) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000338' DC ADL8(@DATA) DC X'00000000' DC X'00001840' * DC XL1'D' DC AL3(0) DC AL4(2040) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000340' DC ADL8(@DATA) DC X'00000000' DC X'00001850' * DC XL1'D' DC AL3(0) DC AL4(2080) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000348' DC ADL8(@DATA) DC X'00000000' DC X'00001862' * DC XL1'D' DC AL3(0) DC AL4(2120) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000350' DC ADL8(@DATA) DC X'00000000' DC X'00001874' * DC XL1'D' DC AL3(0) DC AL4(2160) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000358' DC ADL8(@DATA) DC X'00000000' DC X'0000188A' * DC XL1'D' DC AL3(0) DC AL4(2200) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000360' DC ADL8(@DATA) DC X'00000000' DC X'000018A0' * DC XL1'D' DC AL3(0) DC AL4(2240) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000368' DC ADL8(@DATA) DC X'00000000' DC X'000018B6' * DC XL1'D' DC AL3(0) DC AL4(2280) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000370' DC ADL8(@DATA) DC X'00000000' DC X'000018CE' * DC XL1'D' DC AL3(0) DC AL4(2320) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000378' DC ADL8(@DATA) DC X'00000000' DC X'000018DC' * DC XL1'D' DC AL3(0) DC AL4(2360) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000380' DC ADL8(@DATA) DC X'00000000' DC X'000018F0' * DC XL1'D' DC AL3(0) DC AL4(2400) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000388' DC ADL8(@DATA) DC X'00000000' DC X'00001910' * DC XL1'D' DC AL3(0) DC AL4(2440) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000390' DC ADL8(@DATA) DC X'00000000' DC X'00001934' * DC XL1'D' DC AL3(0) DC AL4(2480) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000398' DC ADL8(@DATA) DC X'00000000' DC X'00001956' * DC XL1'D' DC AL3(0) DC AL4(2520) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000003A0' DC ADL8(@DATA) DC X'00000000' DC X'0000196A' * DC XL1'D' DC AL3(0) DC AL4(2560) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000003A8' DC ADL8(@DATA) DC X'00000000' DC X'00001986' * DC XL1'D' DC AL3(0) DC AL4(2600) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000003B0' DC ADL8(@DATA) DC X'00000000' DC X'000019A0' * DC XL1'D' DC AL3(0) DC AL4(2640) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000003B8' DC ADL8(@DATA) DC X'00000000' DC X'000019C4' * DC XL1'D' DC AL3(0) DC AL4(2680) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000003C0' DC ADL8(@DATA) DC X'00000000' DC X'000019E6' * DC XL1'D' DC AL3(0) DC AL4(2720) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000003C8' DC ADL8(@DATA) DC X'00000000' DC X'000019F2' * DC XL1'D' DC AL3(0) DC AL4(2760) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000003D0' DC ADL8(@DATA) DC X'00000000' DC X'00001A0A' * DC XL1'D' DC AL3(0) DC AL4(2800) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000003D8' DC ADL8(@DATA) DC X'00000000' DC X'00001A20' * DC XL1'D' DC AL3(0) DC AL4(2840) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000003E0' DC ADL8(@DATA) DC X'00000000' DC X'00001A36' * DC XL1'D' DC AL3(0) DC AL4(2880) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000003E8' DC ADL8(@DATA) DC X'00000000' DC X'00001A46' * DC XL1'D' DC AL3(0) DC AL4(2920) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000003F0' DC ADL8(@DATA) DC X'00000000' DC X'00001A5C' * DC XL1'D' DC AL3(0) DC AL4(2960) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000004C0' DC ADL8(@DATA) DC X'00000000' DC X'00001A6C' * DC XL1'D' DC AL3(0) DC AL4(3000) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000004C8' DC ADL8(@DATA) DC X'00000000' DC X'00001A72' * DC XL1'D' DC AL3(0) DC AL4(3040) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000004D0' DC ADL8(@DATA) DC X'00000000' DC X'00001A78' * DC XL1'D' DC AL3(0) DC AL4(3080) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000004D8' DC ADL8(@DATA) DC X'00000000' DC X'00001A80' * DC XL1'D' DC AL3(0) DC AL4(3120) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000004E0' DC ADL8(@DATA) DC X'00000000' DC X'00001A84' * DC XL1'D' DC AL3(0) DC AL4(3160) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000004E8' DC ADL8(@DATA) DC X'00000000' DC X'00001A8A' * DC XL1'D' DC AL3(0) DC AL4(3200) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000510' DC ADL8(@DATA) DC X'00000000' DC X'00001A92' * DC XL1'D' DC AL3(0) DC AL4(3240) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000518' DC ADL8(@DATA) DC X'00000000' DC X'00001A9E' * DC XL1'D' DC AL3(0) DC AL4(3280) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000520' DC ADL8(@DATA) DC X'00000000' DC X'00001AA6' * DC XL1'D' DC AL3(0) DC AL4(3320) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000528' DC ADL8(@DATA) DC X'00000000' DC X'00001AB0' * DC XL1'D' DC AL3(0) DC AL4(3360) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000630' DC ADL8(@DATA) DC X'00000000' DC X'00001AB8' * DC XL1'D' DC AL3(0) DC AL4(3400) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000638' DC ADL8(@DATA) DC X'00000000' DC X'00001ABE' * DC XL1'D' DC AL3(0) DC AL4(3440) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000640' DC ADL8(@DATA) DC X'00000000' DC X'00001AC8' * DC XL1'D' DC AL3(0) DC AL4(3480) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000648' DC ADL8(@DATA) DC X'00000000' DC X'00001AD4' * DC XL1'D' DC AL3(0) DC AL4(3520) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000650' DC ADL8(@DATA) DC X'00000000' DC X'00001AE0' * DC XL1'D' DC AL3(0) DC AL4(3560) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000658' DC ADL8(@DATA) DC X'00000000' DC X'00001AEE' * DC XL1'D' DC AL3(0) DC AL4(3600) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000660' DC ADL8(@DATA) DC X'00000000' DC X'00001AF6' * DC XL1'D' DC AL3(0) DC AL4(3640) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000668' DC ADL8(@DATA) DC X'00000000' DC X'00001B00' * DC XL1'D' DC AL3(0) DC AL4(3680) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000670' DC ADL8(@DATA) DC X'00000000' DC X'00001B0C' * DC XL1'D' DC AL3(0) DC AL4(3720) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000678' DC ADL8(@DATA) DC X'00000000' DC X'00001AB8' * DC XL1'D' DC AL3(0) DC AL4(3760) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000680' DC ADL8(@DATA) DC X'00000000' DC X'00001AEE' * DC XL1'D' DC AL3(0) DC AL4(3800) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000688' DC ADL8(@DATA) DC X'00000000' DC X'00001B16' * DC XL1'D' DC AL3(0) DC AL4(3840) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000690' DC ADL8(@DATA) DC X'00000000' DC X'00001B24' * DC XL1'D' DC AL3(0) DC AL4(3880) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000698' DC ADL8(@DATA) DC X'00000000' DC X'00001B2A' * DC XL1'D' DC AL3(0) DC AL4(3920) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000006A0' DC ADL8(@DATA) DC X'00000000' DC X'00001B38' * DC XL1'D' DC AL3(0) DC AL4(3960) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000006A8' DC ADL8(@DATA) DC X'00000000' DC X'00001B44' * DC XL1'D' DC AL3(0) DC AL4(4000) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000006B0' DC ADL8(@DATA) DC X'00000000' DC X'00001B5A' * DC XL1'D' DC AL3(0) DC AL4(4040) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000006B8' DC ADL8(@DATA) DC X'00000000' DC X'00001B6A' * DC XL1'D' DC AL3(0) DC AL4(4080) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000006C0' DC ADL8(@DATA) DC X'00000000' DC X'00001B7E' * DC XL1'D' DC AL3(0) DC AL4(4120) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000006C8' DC ADL8(@DATA) DC X'00000000' DC X'00001B8E' * DC XL1'D' DC AL3(0) DC AL4(4160) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000006D0' DC ADL8(@DATA) DC X'00000000' DC X'00001AC8' * DC XL1'D' DC AL3(0) DC AL4(4200) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000006D8' DC ADL8(@DATA) DC X'00000000' DC X'00001B9E' * DC XL1'D' DC AL3(0) DC AL4(4240) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000006E0' DC ADL8(@DATA) DC X'00000000' DC X'00001740' * DC XL1'D' DC AL3(0) DC AL4(4280) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000006E8' DC ADL8(@DATA) DC X'00000000' DC X'00001BA6' * DC XL1'D' DC AL3(0) DC AL4(4320) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000006F0' DC ADL8(@DATA) DC X'00000000' DC X'00001BBE' * DC XL1'D' DC AL3(0) DC AL4(4360) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000006F8' DC ADL8(@DATA) DC X'00000000' DC X'00001BCC' * DC XL1'D' DC AL3(0) DC AL4(4400) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000700' DC ADL8(@DATA) DC X'00000000' DC X'00001732' * DC XL1'D' DC AL3(0) DC AL4(4440) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000708' DC ADL8(@DATA) DC X'00000000' DC X'00001BD2' * DC XL1'D' DC AL3(0) DC AL4(4480) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000710' DC ADL8(@DATA) DC X'00000000' DC X'00001BEA' * DC XL1'D' DC AL3(0) DC AL4(4520) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000718' DC ADL8(@DATA) DC X'00000000' DC X'00001BEE' * DC XL1'D' DC AL3(0) DC AL4(4560) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000720' DC ADL8(@DATA) DC X'00000000' DC X'00001BFA' * DC XL1'D' DC AL3(0) DC AL4(4600) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000728' DC ADL8(@DATA) DC X'00000000' DC X'00001C02' * DC XL1'D' DC AL3(0) DC AL4(4640) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000730' DC ADL8(@DATA) DC X'00000000' DC X'00001C16' * DC XL1'D' DC AL3(0) DC AL4(4680) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000738' DC ADL8(@DATA) DC X'00000000' DC X'00001C1C' * DC XL1'D' DC AL3(0) DC AL4(4720) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000740' DC ADL8(@DATA) DC X'00000000' DC X'00001C28' * DC XL1'5' DC AL3(0) DC AL4(4760) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000750' DC X'00000000' DC X'00000002' DC X'0012404040404040' ........ * DC XL1'5' DC AL3(0) DC AL4(4864) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'0000075A' DC X'00000000' DC X'00000046' DC X'00010001000000010002000000000003' ................ DC X'00000000000800000002000900000001' ................ DC X'000A00000000000B00000000000C0000' ................ DC X'0000000D00000000000E00000000000F' ................ DC X'0000000000104040' ........ * DC XL1'5' DC AL3(0) DC AL4(4928) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000007AA' DC X'00000000' DC X'00000020' DC X'00010000000000020000000000030000' ................ DC X'0000000800000001000900000001000A' ................ * DC XL1'5' DC AL3(0) DC AL4(4992) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000007D4' DC X'00000000' DC X'0000001A' DC X'00010000000000020000000000030000' ................ DC X'00000008000000010009404040404040' ................ * DC XL1'5' DC AL3(0) DC AL4(5040) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000007F8' DC X'00000000' DC X'0000000E' DC X'00010000000000020000000000034040' ................ * DC XL1'D' DC AL3(0) DC AL4(5080) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000810' DC ADL8(@DATA) DC X'00000000' DC X'00001C32' * DC XL1'9' DC AL3(0) DC AL4(5120) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000818' DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000756' * DC XL1'5' DC AL3(0) DC AL4(5160) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000824' DC X'00000000' DC X'00000004' DC X'0000000D40404040' ........ * DC XL1'D' DC AL3(0) DC AL4(5200) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000828' DC ADL8(@DATA) DC X'00000000' DC X'00001C38' * DC XL1'9' DC AL3(0) DC AL4(5240) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000830' DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000007A4' * DC XL1'5' DC AL3(0) DC AL4(5280) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'0000083C' DC X'00000000' DC X'00000004' DC X'0000000740404040' ........ * DC XL1'D' DC AL3(0) DC AL4(5320) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000840' DC ADL8(@DATA) DC X'00000000' DC X'00001C3E' * DC XL1'9' DC AL3(0) DC AL4(5360) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000848' DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000007CE' * DC XL1'5' DC AL3(0) DC AL4(5400) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000854' DC X'00000000' DC X'00000004' DC X'0000000640404040' ........ * DC XL1'D' DC AL3(0) DC AL4(5440) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000858' DC ADL8(@DATA) DC X'00000000' DC X'00001C44' * DC XL1'9' DC AL3(0) DC AL4(5480) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000860' DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000007F2' * DC XL1'5' DC AL3(0) DC AL4(5520) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'0000086C' DC X'00000000' DC X'00000004' DC X'0000000440404040' ........ * DC XL1'D' DC AL3(0) DC AL4(5560) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000870' DC ADL8(@DATA) DC X'00000000' DC X'00001C4A' * DC XL1'D' DC AL3(0) DC AL4(5600) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000888' DC ADL8(@DATA) DC X'00000000' DC X'00001C50' * DC XL1'D' DC AL3(0) DC AL4(5640) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000008A0' DC ADL8(@DATA) DC X'00000000' DC X'000015F0' * DC XL1'9' DC AL3(0) DC AL4(5680) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000008A8' DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'00000750' * DC XL1'5' DC AL3(0) DC AL4(0) DC 4X'00' DC Q(@@STATIC) DC X'00000000' DC X'000008B4' DC X'00000000' DC X'00000004' DC X'0000000140404040' ........ * END
28.736061
72
0.449925
be582d86acd80c5da208c2841d97b73ba8def703
195
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sccz80/log_fastcall.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sccz80/log_fastcall.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/math32/lm32/c/sccz80/log_fastcall.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
SECTION code_fp_math32 PUBLIC log_fastcall EXTERN _m32_logf defc log_fastcall = _m32_logf ; SDCC bridge for Classic IF __CLASSIC PUBLIC _log_fastcall defc _log_fastcall = _m32_logf ENDIF
13.928571
30
0.820513
425b9b47889298c3d570b94c49f2aceac9cf224b
1,911
asm
Assembly
memory/video_strb.asm
jsmolka/gba-suite
a6447c5404c8fc2898ddc51f438271f832083b7e
[ "MIT" ]
31
2020-01-18T21:48:54.000Z
2021-01-08T11:17:56.000Z
memory/video_strb.asm
jsmolka/gba-suite
a6447c5404c8fc2898ddc51f438271f832083b7e
[ "MIT" ]
8
2020-01-19T07:37:23.000Z
2020-11-10T17:09:24.000Z
memory/video_strb.asm
jsmolka/gba-tests
a6447c5404c8fc2898ddc51f438271f832083b7e
[ "MIT" ]
6
2021-05-28T09:35:20.000Z
2021-12-22T18:09:32.000Z
video_strb: ; Tests for video memory byte stores t050: ; Ignore OAM byte stores mov r0, 1 mov r1, MEM_OAM strb r0, [r1, 0x10] ldr r0, [r1, 0x10] cmp r0, 1 beq f050 b t051 f050: m_exit 50 t051: ; Ignore VRAM byte stores in bitmap modes mov r0, MEM_IO add r0, REG_DISPCNT ldrh r1, [r0] orr r2, r1, 3 strh r2, [r0] mov r3, 2 mov r4, MEM_VRAM add r4, 0x14000 strb r3, [r4, 0x10] ldr r3, [r4, 0x10] cmp r3, 2 beq f051 strh r1, [r0] b t052 f051: strh r1, [r0] m_exit 51 t052: ; Ignore VRAM byte stores in non-bitmap modes ; Switch mode to tiled mov r0, MEM_IO add r0, REG_DISPCNT ldrh r1, [r0] bic r2, r1, 3 strh r2, [r0] mov r3, 2 mov r4, MEM_VRAM add r4, 0x10000 strb r3, [r4, 0x10] ldr r3, [r4, 0x10] cmp r3, 2 ; Switch mode to bitmap strh r1, [r0] beq f052 b t053 f052: strh r1, [r0] m_exit 52 t053: ; VRAM byte store as halfword mov r0, 2 mov r1, MEM_VRAM strb r0, [r1, 0x10] ldrh r0, [r1, 0x10] m_half r1, 0x0202 cmp r1, r0 bne f053 b t054 f053: m_exit 53 t054: ; Palette byte store as halfword mov r0, 1 mov r1, MEM_PALETTE strb r0, [r1, 0x20] ldrh r0, [r1, 0x20] m_half r1, 0x0101 cmp r1, r0 bne f054 b video_strb_passed f054: m_exit 54 video_strb_passed:
19.5
53
0.425432
ea5292437c4171c842928eef96fc68e49c70a4ed
760
asm
Assembly
data/pokemon/base_stats/mankey.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
data/pokemon/base_stats/mankey.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
data/pokemon/base_stats/mankey.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
db DEX_MANKEY ; pokedex id db 40, 80, 35, 70, 35 ; hp atk def spd spc db FIGHTING, FIGHTING ; type db 190 ; catch rate db 74 ; base exp INCBIN "gfx/pokemon/front/mankey.pic", 0, 1 ; sprite dimensions dw MankeyPicFront, MankeyPicBack db SCRATCH, LEER, NO_MOVE, NO_MOVE ; level 1 learnset db GROWTH_MEDIUM_FAST ; growth rate ; tm/hm learnset tmhm MEGA_PUNCH, MEGA_KICK, TOXIC, BODY_SLAM, TAKE_DOWN, \ DOUBLE_EDGE, PAY_DAY, SUBMISSION, COUNTER, SEISMIC_TOSS, \ RAGE, THUNDERBOLT, THUNDER, DIG, MIMIC, \ DOUBLE_TEAM, BIDE, METRONOME, SWIFT, SKULL_BASH, \ REST, ROCK_SLIDE, SUBSTITUTE, STRENGTH ; end db 0 ; padding
30.4
77
0.606579
c50671dc6fd2f686724576f2519298beb402a2eb
509
asm
Assembly
oeis/308/A308693.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/308/A308693.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/308/A308693.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A308693: a(n) = Sum_{d|n} d^(3*(n/d - 1)). ; Submitted by Jamie Morken(s4) ; 1,2,2,10,2,93,2,578,731,4223,2,56765,2,262489,547068,2359810,2,31173510,2,152949071,387538140,1073743157,2,20134371189,244140627,68719478935,282430067924,618515646977,2,12056339359929,2,39582552821762,205891133866212 add $0,1 mov $2,$0 lpb $0 mov $3,$2 dif $3,$0 mov $5,$3 cmp $3,$2 cmp $3,0 mul $3,$0 sub $0,1 pow $3,3 sub $5,1 pow $3,$5 mov $4,$0 cmp $4,0 add $0,$4 add $1,$3 lpe mov $0,$1 add $0,1
20.36
218
0.638507
6f21da5c35fe37ee97be035a03a5f30686b7e888
6,936
asm
Assembly
kernel/asmfunc.asm
wkiino/my-mikanos
f7b9d4d15a4fc00cecd7efedc93bf54426dad156
[ "Apache-2.0" ]
null
null
null
kernel/asmfunc.asm
wkiino/my-mikanos
f7b9d4d15a4fc00cecd7efedc93bf54426dad156
[ "Apache-2.0" ]
null
null
null
kernel/asmfunc.asm
wkiino/my-mikanos
f7b9d4d15a4fc00cecd7efedc93bf54426dad156
[ "Apache-2.0" ]
null
null
null
; asmfunc.asm ; ; System V AMD64 Calling Convention ; Registers: RDI, RSI, RDX, RCX, R8, R9 bits 64 section .text global IoOut32 ; void IoOut32(uint16_t addr, uint32_t data); IoOut32: mov dx, di ; dx = addr mov eax, esi ; eax = data out dx, eax ret global IoIn32 ; uint32_t IoIn32(uint16_t addr); IoIn32: mov dx, di ; dx = addr in eax, dx ret global GetCS ; uint16_t GetCS(void); GetCS: xor eax, eax ; alse clears upper 32bits of rax mov ax, cs ;ax is lower 16 bit of eax. ret global LoadIDT ; void LoadIDT(uint16_t limit, uint64_t offset); LoadIDT: push rbp mov rbp, rsp sub rsp, 10 ; amaunt size of limit and offset is 10 byte.So sub 10. mov [rsp], di ; limit mov [rsp+2],rsi ; offset lidt [rsp] mov rsp, rbp pop rbp ret extern kernel_main_stack extern KernelMainNewStack global KernelMain KernelMain: mov rsp, kernel_main_stack + 1024*1024 call KernelMainNewStack .fin: hlt jmp .fin global LoadGDT ; void LoadGDT(uint16_t limit, uint64_t offset); LoadGDT: push rbp mov rbp, rsp sub rsp, 10 mov [rsp], di ; limit mov [rsp + 2], rsi ; offset lgdt [rsp] mov rsp, rbp pop rbp ret global SetDSAll ; void SetDSAll(uint16_t value); SetDSAll: mov ds, di mov es, di mov fs, di mov gs, di ret global SetCSSS ; void SetCSSS(uint16_t cs, uint16_t ss); SetCSSS: push rbp mov rbp, rsp mov ss, si mov rax, .next push rdi ; CS push rax ; RIP o64 retf .next: mov rsp, rbp pop rbp ret global SetCR3 ; void SetCR3(uint64_t value); SetCR3: mov cr3, rdi ret global GetCR3 ; uint64_t GetCR3(); GetCR3: mov rax, cr3 ret global SwitchContext SwitchContext: ;void SwitchContext(void *next_ctx, void *current_ctx); mov [rsi + 0x40], rax mov [rsi + 0x48], rbx mov [rsi + 0x50], rcx mov [rsi + 0x58], rdx mov [rsi + 0x60], rdi mov [rsi + 0x68], rsi lea rax, [rsp + 8] mov [rsi + 0x70], rax ; RSP mov [rsi + 0x78], rbp mov [rsi + 0x80], r8 mov [rsi + 0x88], r9 mov [rsi + 0x90], r10 mov [rsi + 0x98], r11 mov [rsi + 0xa0], r12 mov [rsi + 0xa8], r13 mov [rsi + 0xb0], r14 mov [rsi + 0xb8], r15 mov rax, cr3 mov [rsi + 0x00], rax ; CR3 ; Why can I do like following ; mov [rsi + 0x00], cr3 mov rax, [rsp] mov [rsi + 0x08], rax ; RIP pushfq pop qword [rsi + 0x10] ; RFLAGS mov ax, cs mov [rsi + 0x20], rax mov bx, ss mov [rsi + 0x28], rbx mov cx, fs mov [rsi + 0x30], rcx mov dx, gs mov [rsi + 0x38], rdx fxsave [rsi + 0xc0] ;fall through to RestoreContext global RestoreContext RestoreContext: ; void RestoreContext(void* task_context); ; stack frame for iret push qword [rdi + 0x28] ; SS push qword [rdi + 0x70] ; RSP push qword [rdi + 0x10] ; RFLAGS push qword [rdi + 0x20] ; CS push qword [rdi + 0x08] ; RIP ; return of context fxrstor [rdi + 0xc0] mov rax, [rdi + 0x00] mov cr3, rax mov rax, [rdi + 0x30] mov fs, ax mov rax, [rdi + 0x38] mov gs, ax mov rax, [rdi + 0x40] mov rbx, [rdi + 0x48] mov rcx, [rdi + 0x50] mov rdx, [rdi + 0x58] ; Why offset difference is 10, instead of 8. ; Because 0x60 is setted rdi, and if load it, ; then we cannnot load registers such as r8. mov rsi, [rdi + 0x68] ; 0x70 is used for RSP. Why we skip? ; Because RSP value in stack is returned to by iret mov rbp, [rdi + 0x78] mov r8, [rdi + 0x80] mov r9, [rdi + 0x88] mov r10, [rdi + 0x90] mov r11, [rdi + 0x98] mov r12, [rdi + 0xa0] mov r13, [rdi + 0xa8] mov r14, [rdi + 0xb0] mov r15, [rdi + 0xb8] mov rdi, [rdi + 0x60] o64 iret global CallApp CallApp: ; void CallApp(int argc, char** argv, uint16_t ss, ; uint64_t rip, uint64_t rsp, uint64_t* os_stack_ptr); push rbx push rbp push r12 push r13 push r14 push r15 mov [r9], rsp ; save stack pointer for os push rdx ;SS push r8 ;RSP add rdx, 8 push rdx ;CS push rcx ;RIP o64 retf ; Don't come here when the application is closed extern LAPICTimerOnInterrupt ; void LAPICTimerOnInterrupt(const TaskCOntext& ctx_stack); global IntHandlerLAPICTimer IntHandlerLAPICTimer: ; void IntHandlerLAPICTimer(); push rbp mov rbp, rsp ; build TaskContext type structure on stack sub rsp, 512 fxsave [rsp] push r15 push r14 push r13 push r12 push r11 push r10 push r9 push r8 push qword [rbp] ;RBP push qword [rbp + 0x20] ;RSP push rsi push rdi push rdx push rcx push rbx push rax ;push gs ;push fs mov ax, fs mov bx, gs mov rcx, cr3 push rbx push rax push qword [rbp + 0x28] ; SS push qword [rbp +0x10] ; CS push rbp ; reserved1 push qword [rbp + 0x18] ; RFLAGS push qword [rbp + 0x08] ; RIP push rcx ; CR3 ; set argument register for LAPICTimerOnInterrupt mov rdi, rsp call LAPICTimerOnInterrupt add rsp, 8*8 ; ignore registers from CR3 to GS pop rax pop rbx pop rcx pop rdx pop rdi pop rsi ; ignore RSP and RBP because we can obtain them from InterruptFrame add rsp, 16 pop r8 pop r9 pop r10 pop r11 pop r12 pop r13 pop r14 pop r15 fxrstor [rsp] mov rsp, rbp pop rbp iretq global LoadTR LoadTR: ; void LoadTR(uint16_t sel); ltr di ret global WriteMSR WriteMSR: ; void WriteMSR(uint32_t msr, uint64_t value); mov rdx, rsi shr rdx, 32 mov eax, esi mov ecx, edi wrmsr ret extern GetCurrentTaskOSStackPointer extern syscall_table global SyscallEntry SyscallEntry: ; void SyscallEntry(); push rbp push rcx ; original RIP push r11 ; original RFLAGS push rax ; save system call id mov rcx, r10 and eax, 0x7fffffff mov rbp, rsp ; prepare to execute system call on stack for OS and rsp, 0xfffffffffffffff0 push rax push rdx cli call GetCurrentTaskOSStackPointer sti mov rdx, [rsp + 0] ; RDX mov [rax - 16], rdx mov rdx, [rsp + 8] ; RAX mov [rax - 8], rdx lea rsp, [rax - 16] pop rdx pop rax and rsp, 0xfffffffffffffff0 call [syscall_table + 8 * eax] ; rbx, r12-15 is calee-saved, so caller doesn't save them ; rax is for return value so caller doesn't save it. mov rsp, rbp pop rsi ; resotre system call id to rsi cmp esi, 0x80000002 je .exit pop r11 pop rcx pop rbp o64 sysret .exit: mov rsp, rax mov eax, edx ; these registers are saved stack in callee pop r15 pop r14 pop r13 pop r12 pop rbp pop rbx ret ; jump to next line of CallApp
20.221574
76
0.601499
d01205b97e4c472bc1461b15629e9aa6d1b1d4be
2,853
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_8_1497.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_8_1497.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_8_1497.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r8 push %rbp push %rcx push %rdi push %rdx lea addresses_D_ht+0xa548, %rcx nop nop nop nop nop add %r14, %r14 movb $0x61, (%rcx) nop add %rdi, %rdi lea addresses_WT_ht+0x19230, %rcx nop nop nop nop nop and %rdx, %rdx mov $0x6162636465666768, %r14 movq %r14, (%rcx) nop nop nop nop xor $19873, %r14 lea addresses_UC_ht+0x106f0, %rbp sub %r8, %r8 and $0xffffffffffffffc0, %rbp movntdqa (%rbp), %xmm2 vpextrq $0, %xmm2, %rdi nop add %rcx, %rcx pop %rdx pop %rdi pop %rcx pop %rbp pop %r8 pop %r14 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r15 push %r8 push %rax push %rbp push %rbx // Load lea addresses_RW+0x1b630, %rbp clflush (%rbp) nop add $31745, %r15 movaps (%rbp), %xmm2 vpextrq $1, %xmm2, %r8 nop xor $2578, %rbx // Store lea addresses_normal+0x9769, %rax nop and $65058, %r14 movb $0x51, (%rax) nop nop nop and %r14, %r14 // Store lea addresses_RW+0x373e, %r15 nop dec %r13 movb $0x51, (%r15) nop nop add $31777, %rax // Store lea addresses_UC+0x1dbd0, %rbx nop sub $58335, %rbp mov $0x5152535455565758, %r14 movq %r14, %xmm5 movups %xmm5, (%rbx) nop nop nop nop nop cmp $54944, %rbp // Store lea addresses_normal+0x18630, %r14 nop cmp %r15, %r15 movl $0x51525354, (%r14) nop nop nop nop and %r8, %r8 // Faulty Load lea addresses_RW+0x1b630, %r14 xor %r15, %r15 movb (%r14), %r8b lea oracles, %r14 and $0xff, %r8 shlq $12, %r8 mov (%r14,%r8,1), %r8 pop %rbx pop %rbp pop %rax pop %r8 pop %r15 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_RW', 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': True, 'size': 16, 'type': 'addresses_RW', 'congruent': 0}} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_normal', 'congruent': 0}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_RW', 'congruent': 1}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_UC', 'congruent': 2}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_normal', 'congruent': 9}, 'OP': 'STOR'} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_RW', 'congruent': 0}} <gen_prepare_buffer> {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_D_ht', 'congruent': 3}, 'OP': 'STOR'} {'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WT_ht', 'congruent': 8}, 'OP': 'STOR'} {'OP': 'LOAD', 'src': {'same': False, 'NT': True, 'AVXalign': False, 'size': 16, 'type': 'addresses_UC_ht', 'congruent': 5}} {'32': 8} 32 32 32 32 32 32 32 32 */
19.408163
125
0.640028
cc21cf431f14558d478d56821025910207f27cac
582
asm
Assembly
oeis/321/A321741.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/321/A321741.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/321/A321741.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A321741: Product of the first n terms of A007318 (Pascal), read as a sequence. ; Submitted by Jamie Morken(s4) ; 1,1,1,1,2,2,2,6,18,18,18,72,432,1728,1728,1728,8640,86400,864000,4320000,4320000,4320000,25920000,388800000,7776000000,116640000000,699840000000,699840000000,699840000000,4898880000000,102876480000000,3600676800000000,126023688000000000,2646497448000000000,18525482136000000000,18525482136000000000 mov $1,1 lpb $0 mov $2,$0 sub $0,1 seq $2,7318 ; Pascal's triangle read by rows: C(n,k) = binomial(n,k) = n!/(k!*(n-k)!), 0 <= k <= n. mul $1,$2 lpe mov $0,$1
44.769231
300
0.742268
692a7f69dbd5a8253df1e5d2685594f21e3e2070
649
asm
Assembly
oeis/050/A050997.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/050/A050997.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/050/A050997.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A050997: Fifth powers of primes. ; Submitted by Jon Maiga ; 32,243,3125,16807,161051,371293,1419857,2476099,6436343,20511149,28629151,69343957,115856201,147008443,229345007,418195493,714924299,844596301,1350125107,1804229351,2073071593,3077056399,3939040643,5584059449,8587340257,10510100501,11592740743,14025517307,15386239549,18424351793,33038369407,38579489651,48261724457,51888844699,73439775749,78502725751,95388992557,115063617043,129891985607,154963892093,183765996899,194264244901,254194901951,267785184193,296709280757,312079600999,418227202051 mul $0,2 max $0,1 seq $0,173919 ; Numbers that are prime or one less than a prime. pow $0,5
72.111111
495
0.855162
3b5a6125abf17a3ba5873321f9402b4dc7f64849
3,272
asm
Assembly
src/lib/math.asm
laamella-gad/moon-train
97a131417e2488c147bd9155ec9f8a4ab84e9948
[ "Apache-2.0" ]
1
2018-07-10T20:37:03.000Z
2018-07-10T20:37:03.000Z
src/lib/math.asm
laamella-gad/moon-train
97a131417e2488c147bd9155ec9f8a4ab84e9948
[ "Apache-2.0" ]
null
null
null
src/lib/math.asm
laamella-gad/moon-train
97a131417e2488c147bd9155ec9f8a4ab84e9948
[ "Apache-2.0" ]
null
null
null
add_byte_to_word .macro addr, b .block ldx #$00 ; add_byte_to_word lda \b bpl b_positive dex b_positive clc adc \addr sta \addr txa adc \addr+1 sta \addr+1 .bend .endm ; adds numbers 1 and 2, writes result to res add16 .macro num1, num2, res clc ; add16 lda \num1 adc \num2 sta \res lda \num1+1 adc \num2+1 sta \res+1 .endm ; adds numbers 1 and 2, writes result to res add16c .macro num1, c, res clc ; add16 lda \num1 adc #<\c sta \res lda \num1+1 adc #>\c sta \res+1 .endm ; subtracts number 2 from number 1 and writes result to res sub16 .macro num1, num2, res sec ; sub16 lda \num1 sbc \num2 sta \res lda \num1+1 sbc \num2+1 sta \res+1 .endm ; subtracts number 2 from number 1 and writes result to res sub16c .macro num1, c, res sec ; sub16 lda \num1 sbc #<\c sta \res lda \num1+1 sbc #>\c sta \res+1 .endm ; beq will branch if both bytes are zero is_zero_vect .macro vec .block lda \vec bne _done lda \vec+1 _done .bend .endm ; reduces a vector by c decvect .macro num1, c .block #is_zero_vect \num1 beq _done lda \num1 ;decvect bmi _negative_vect _positive_vect #sub16c \num1, \c, \num1 jmp _done _negative_vect #add16c \num1, \c, \num1 _done .bend .endm ; Compare num1 and num2 ; If the N flag is 1, then num1 (signed) <= num2 (signed) and BMI will branch ; If the N flag is 0, then num1 (signed) > num2 (signed) and BPL will branch cmp16 .macro num1, num2 .block LDA \num1 ; cmp16 CMP \num2 LDA \num1+1 SBC \num2+1 BVC _exit EOR #$80 _exit .bend .endm ; Compare num1 and num2 ; If the N flag is 1, then num1 (signed) <= num2 (signed) and BMI will branch ; If the N flag is 0, then num1 (signed) > num2 (signed) and BPL will branch cmp16c .macro num1, c .block LDA \num1 ; cmp16c CMP #<\c LDA \num1+1 SBC #>\c BVC _exit EOR #$80 _exit .bend .endm signed_shr16 .macro addr ; signed_shr16 lda \addr+1 asl ror \addr+1 ror \addr .endm abs16 .macro addr .block ldx \addr ; abs16 ; test hi byte cpx #$00 bpl L1 #neg16 \addr L1 .bend .endm absneg16 .macro addr .block ldx \addr ; absneg16 cpx #$00 bmi _L1 #neg16 \addr _L1 .bend .endm neg16 .macro addr clc ; neg16 lda \addr eor #$FF adc #1 sta \addr lda \addr+1 eor #$FF adc #0 sta \addr+1 .endm nega .macro clc eor #$FF adc #1 .endm
20.840764
77
0.471577
158650e3bafc63d520f47cb499da4c51b8f55596
2,610
asm
Assembly
font.asm
thomasj/HoustonTracker2
63122824df23335bb5d7ff91fa80f24e23aa8e4e
[ "BSD-3-Clause" ]
190
2015-10-06T14:21:05.000Z
2022-03-20T04:33:55.000Z
font.asm
thomasj/HoustonTracker2
63122824df23335bb5d7ff91fa80f24e23aa8e4e
[ "BSD-3-Clause" ]
31
2015-10-06T19:54:28.000Z
2022-03-20T21:54:42.000Z
font.asm
thomasj/HoustonTracker2
63122824df23335bb5d7ff91fa80f24e23aa8e4e
[ "BSD-3-Clause" ]
9
2015-10-07T21:31:06.000Z
2022-03-20T19:10:53.000Z
;Compressed bitmaps for the font used by HT2. ; ; Five nibbles (2.5 bytes) per character ; Will be unpacked to 5 bytes per character ; Currently 0x00 to 0x1a => 27 different characters ; - Compressed space in RAM = 27*2.5 = 67.5 => 68 bytes = 0x44 ; - Uncompressed space in RAM = 27*5 = 135 bytes = 0x87 ; Then right-shifted variants of all but the ones that doesn't need it (G, M, STOP, PLAY) ; - Uncompressed space in RAM = (27-4)*5 = 115 bytes = 0x73 ; Total needed space in RAM = 135+115=250 bytes, fits in one page. CHAR_0 equ #00 CHAR_1 equ #01 CHAR_2 equ #02 CHAR_3 equ #03 CHAR_4 equ #04 CHAR_5 equ #05 CHAR_6 equ #06 CHAR_7 equ #07 CHAR_8 equ #08 CHAR_9 equ #09 CHAR_A equ #0a CHAR_B equ #0b CHAR_C equ #0c CHAR_D equ #0d CHAR_E equ #0e CHAR_F equ #0f CHAR_L equ #10 CHAR_N equ #11 CHAR_P equ #12 CHAR_O equ CHAR_0 CHAR_S equ #13 CHAR_T equ #14 CHAR_SHARP equ #15 CHAR_DASH equ #16 CHAR_G equ #17 CHAR_M equ #18 CHAR_STOP equ #19 CHAR_PLAY equ #1a charNumTotal equ CHAR_PLAY-CHAR_0+1 ; Number of characters, total charNumShifted equ CHAR_DASH-CHAR_0+1 ; Number of characters to be available as both left and right shifted IF (charNumTotal+charNumShifted)*5 > 256 ; Make sure we don't need more than one page of uncompressed font .error Uncompressed font will cross page boundary ENDIF cmprFontStart db %01001010 ;0 db %10101010 db %01000100 ;....|1 db %11000100 db %01001110 db %11000010 ;2 db %01001000 db %11101100 ;....|3 db %00100100 db %00101100 db %10001010 ;4 db %11100010 db %00101100 ;....|5 db %10001100 db %00101100 db %01001000 ;6 db %11001010 db %01001110 ;....|7 db %00100100 db %01000100 db %01001010 ;8 db %01001010 db %01000100 ;....|9 db %10100110 db %00100100 db %01101010 ;A db %11101010 db %10101100 ;....|B db %10101100 db %10101100 db %01101000 ;C db %10001000 db %01101100 ;....|D db %10101010 db %10101100 db %11101000 ;E db %11001000 db %11101110 ;....|F db %10001100 db %10001000 db %10001000 ;10 - L db %10001000 db %11101100 ;....|N db %10101010 db %10101010 db %11001010 ;12 - P db %11001000 db %10000110 ;....|S db %10000100 db %00101100 db %11100100 ;14 - T db %01000100 db %01001010 ;....|# db %11101010 db %11101010 db %00000000 ;16 - - db %11100000 db %00000110 ;....|G (17) db %10001010 db %10101110 db %10101110 ;18 - M db %11101010 db %10100000 ;....|STOP (19) db %11101110 db %11100000 db %10001100 ;PLAY (1a) db %11101100 db %10000000 ;....|<unused> cmprFontSize equ $-cmprFontStart
18
107
0.6659
22f529bd730842f1b48f84668077b2897c499601
184
asm
Assembly
tests/strings.asm
Idorobots/asm
37ebdef318ef7fc01b8e55a50baac57f74ddbe38
[ "MIT" ]
2
2017-03-02T20:24:31.000Z
2020-03-26T03:20:12.000Z
tests/strings.asm
Idorobots/asm
37ebdef318ef7fc01b8e55a50baac57f74ddbe38
[ "MIT" ]
null
null
null
tests/strings.asm
Idorobots/asm
37ebdef318ef7fc01b8e55a50baac57f74ddbe38
[ "MIT" ]
null
null
null
# Test 1 # Status: pass (write "Test 1\n") (var foo '("\"")) # Used to confuse parser badly. (write "Test 1\n") # Expected correct string. (error (reverse "tests/strings.asm(9):"))
20.444444
50
0.630435
e90bf57f66eeb4b6653af596401338f277432797
646
asm
Assembly
MODULE1/10-libc/dog.asm
wetw0rk/SLAE
c78bc5a8559b35fefb0b3302be8d3d1acd712e11
[ "MIT" ]
18
2017-11-28T01:10:10.000Z
2020-07-22T13:24:26.000Z
MODULE1/10-libc/dog.asm
wetw0rk/SLAE
c78bc5a8559b35fefb0b3302be8d3d1acd712e11
[ "MIT" ]
null
null
null
MODULE1/10-libc/dog.asm
wetw0rk/SLAE
c78bc5a8559b35fefb0b3302be8d3d1acd712e11
[ "MIT" ]
11
2018-12-14T16:18:03.000Z
2020-12-01T16:37:19.000Z
; Executable name : dog ; Designed OS : Linux (32-bit) ; Author : wetw0rk ; Version : 1.0 ; Created Following : SLAE ; Description : A simple program that shows how to call libc functions ; ; Build using these commands: ; nasm -f elf32 -o dog.o dog.asm ; gcc -o dog dog.o ; extern printf, exit ; these come from libc SECTION .data dogs: db "Bark Bark",10 dlen: EQU $-dogs SECTION .text global main main: push dogs ; PUSH dogs string onto the stack call printf ; call printf add esp,4 ; adjust the stack mov eax,0 ; clean exit call exit ; exit the program
20.83871
80
0.617647
4d9140de5f71f5ede858805aebb80a0bbb73da2a
248
asm
Assembly
libsrc/_DEVELOPMENT/stdio/c/sccz80/vscanf_unlocked_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/stdio/c/sccz80/vscanf_unlocked_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/stdio/c/sccz80/vscanf_unlocked_callee.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; int vscanf_unlocked(const char *format, void *arg) SECTION code_clib SECTION code_stdio PUBLIC vscanf_unlocked_callee EXTERN asm_vscanf_unlocked vscanf_unlocked_callee: pop af pop bc pop de push af jp asm_vscanf_unlocked
13.052632
52
0.766129
c126b1066a306afae5da15740b61697edb06503c
1,199
asm
Assembly
machines/68hc908/macros.asm
jorgermduarte/Assembly-Atari-6502-processor
bfcb727c97ed2410ca75cb4dd82d5946bfcba692
[ "MIT" ]
null
null
null
machines/68hc908/macros.asm
jorgermduarte/Assembly-Atari-6502-processor
bfcb727c97ed2410ca75cb4dd82d5946bfcba692
[ "MIT" ]
null
null
null
machines/68hc908/macros.asm
jorgermduarte/Assembly-Atari-6502-processor
bfcb727c97ed2410ca75cb4dd82d5946bfcba692
[ "MIT" ]
null
null
null
; ; MACRO declaration keywords _must_ be lowercase ; MACRO names _must_ be all lowercase ; MACROS may be nested .macro declare_vector .ORG {1} .word {2} .endm .macro declare_var ; {name},{size} {1} .EQU next_var next_var .set ({1}+{2}) .endm ;;;;; take care to code ;next_var .set RAM_START ;;;;; before using 'declare_var' for the first time .macro store_reg ; {reg_addr},{value} #if ({1} > 255) ldA {2} ;[2] stA {1} ;[3] #else mov {2},{1} #endif .endm .macro store_reg16 ; {reg_addr},{value} ldHX {2} ;[2] stHX {1} ;[3] .endm .macro set_bits ; {bitmask},{reg_addr} ldHX #{1} ldA ,X orA {2} stA ,X .endm .macro clear_bits ; {bitmask},{reg_addr} ldHX #{1} ldA ,x and #[[~{2}] & $FF] stA ,x .endm .macro shake_pin ; {pin}, {port} brset {1},{2},_off$ bset {1},{2} bra _after$ _off$: bclr {1},{2} _after$: .endm .macro busy_loop_delay ; {count} ldA {1} ; [2] _bLoop$: dbnzA _bLoop$ ; [3] 3*(arg-1) + 2 T .endm .macro and_bits ; {reg_addr},{bitmask} ldA.8 {1} and {2} stA.8 {1} .macro .macro or_bits ; {reg_addr},{bitmask} ldA.8 {1} orA {2} stA.8 {1} .endm
14.105882
51
0.558799
b34d4a5abbc0019e907902a24f6f6808b3206ecc
166
asm
Assembly
libsrc/_DEVELOPMENT/string/c/sdcc_iy/strerror_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/string/c/sdcc_iy/strerror_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/string/c/sdcc_iy/strerror_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; char *strerror_fastcall(int errnum) SECTION code_clib SECTION code_string PUBLIC _strerror_fastcall EXTERN asm_strerror defc _strerror_fastcall = asm_strerror
13.833333
38
0.843373
01dad003bf0a3aab98dc22b3175ca9b2f7e5b96b
3,566
asm
Assembly
dll/log.asm
kun1z/gamedbg
736d1aef612904558d6b091708fb9b375d591602
[ "Unlicense" ]
null
null
null
dll/log.asm
kun1z/gamedbg
736d1aef612904558d6b091708fb9b375d591602
[ "Unlicense" ]
null
null
null
dll/log.asm
kun1z/gamedbg
736d1aef612904558d6b091708fb9b375d591602
[ "Unlicense" ]
1
2021-02-15T16:59:59.000Z
2021-02-15T16:59:59.000Z
; Copyright © 2021 by Brett Kuntz. All rights reserved. logheader proto logfooter proto logframetime proto log proto C :dword, :dword, :dword, :dword, :vararg .data? fhnd dd ? com_calls dd ? prof_num dd ? .code tlogheader db "<html><head><title>Frame Dump</title></head><body bgcolor=#C0C0C0 text=#000000 link=#000080 vlink=#000080 alink=#000080><pre><font face=Fixedsys>" tlogframetime db " (<font color=00A000>Frame Time: %sms</font>)<br>", 0 tlogcrittime db " (<font color=FF0000>CRITICAL> Frame Time: %sms</font>)<br>", 0 tlogfooter db "</pre>COM Calls: %u</font></body></html>", 0 logname db "d:\prf_%03u.htm", 0 ; ########################################################################## log proc C pCount:dword, pText:dword, pAddr:dword, pEax:dword, pArgs:vararg local filebuff[1024]:byte local dout:dword push eax push ecx push edx mov eax, pCount shl eax, 2 add eax, 20 @@: push [ebp+eax] sub eax, 4 cmp eax, 20 jne @B push pEax push pAddr push pText invoke wsprintf, addr filebuff invoke lstrlen, addr filebuff mov ecx, eax invoke WriteFile, fhnd, addr filebuff, ecx, addr dout, 0 inc com_calls pop edx pop ecx pop eax ret log endp ; ########################################################################## logheader proc local dout:dword local file_buff[32]:byte push eax push ecx push edx mov com_calls, 0 invoke wsprintf, addr file_buff, addr logname, prof_num inc prof_num invoke CreateFile, addr file_buff, FILE_WRITE_DATA, 0, 0, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0 mov fhnd, eax invoke WriteFile, fhnd, addr tlogheader, sizeof tlogheader, addr dout, 0 invoke QueryPerformanceCounter, addr last_frame_time pop edx pop ecx pop eax ret logheader endp ; ########################################################################## logfooter proc local filebuff[1024]:byte local dout:dword push eax push ecx push edx invoke wsprintf, addr filebuff, addr tlogfooter, com_calls invoke lstrlen, addr filebuff mov ecx, eax invoke WriteFile, fhnd, addr filebuff, ecx, addr dout, 0 invoke CloseHandle, fhnd mov fhnd, 0 pop edx pop ecx pop eax ret logfooter endp ; ########################################################################## logframetime proc local li:LARGE_INTEGER local fbuf[128]:byte local filebuff[128]:byte local dout:dword push eax push ecx push edx invoke QueryPerformanceCounter, addr li sub esp, 4 fld tbyte ptr [cpu_freq] fild qword ptr [li] fild qword ptr [last_frame_time] fsub fmul fist dword ptr [esp] fstp tbyte ptr [frame_time] mov eax, dword ptr [li] mov ecx, dword ptr [li+4] mov dword ptr [last_frame_time], eax mov dword ptr [last_frame_time+4], ecx pop eax mov ecx, offset tlogcrittime .if eax < 100 mov ecx, offset tlogframetime .endif invoke FpuFLtoA, addr frame_time, 3, addr fbuf, SRC1_REAL or STR_REG invoke wsprintf, addr filebuff, ecx, addr fbuf invoke lstrlen, addr filebuff mov ecx, eax invoke WriteFile, fhnd, addr filebuff, ecx, addr dout, 0 pop edx pop ecx pop eax ret logframetime endp ; ##########################################################################
27.430769
166
0.568704
681390210b9e6fcefdbd19df33b424a802819672
2,793
asm
Assembly
src/Inflame.asm
Aekras1a/Inflame
cfe6271902515225edf403b27ac17c8aea2f5e04
[ "MIT" ]
1
2021-03-06T15:10:24.000Z
2021-03-06T15:10:24.000Z
src/Inflame.asm
Aekras1a/Inflame
cfe6271902515225edf403b27ac17c8aea2f5e04
[ "MIT" ]
null
null
null
src/Inflame.asm
Aekras1a/Inflame
cfe6271902515225edf403b27ac17c8aea2f5e04
[ "MIT" ]
null
null
null
format PE console 6.0 entry main include 'INCLUDE/win32ax.inc' section '.text' code executable main: cinvoke __getmainargs, argc, argv, env, 0 cmp [argc], 4 jne error mov esi, [argv] cinvoke strcmp, dword [esi + 4], <'-loadlibrary', 0> test eax, eax jz loadlibrary mov esi, [argv] cinvoke strcmp, dword [esi + 4], <'-manual-map', 0> test eax, eax jz manualmap cinvoke printf, <'Wrong injection method! Press enter to continue...', 0> cinvoke getchar retn loadlibrary: mov esi, [argv] invoke GetFullPathNameA, dword [esi + 8], MAX_PATH, dllPath, 0 cinvoke strlen, dllPath inc eax mov [dllPathLength], eax mov esi, [argv] invoke OpenProcess, PROCESS_VM_WRITE + PROCESS_VM_OPERATION + PROCESS_CREATE_THREAD, FALSE, <cinvoke atoi, dword [esi + 12]> mov [processHandle], eax invoke VirtualAllocEx, [processHandle], NULL, dllPathLength, MEM_COMMIT + MEM_RESERVE, PAGE_READWRITE mov [allocatedMemory], eax invoke WriteProcessMemory, [processHandle], [allocatedMemory], dllPath, [dllPathLength], NULL invoke CreateRemoteThread, [processHandle], NULL, 0, <invoke GetProcAddress, <invoke GetModuleHandleA, <'kernel32.dll', 0>>, <'LoadLibraryA', 0>>, [allocatedMemory], 0, NULL invoke WaitForSingleObject, eax, 0xFFFFFFFF invoke VirtualFreeEx, [processHandle], [allocatedMemory], dllPathLength, MEM_RELEASE invoke CloseHandle, [processHandle] retn manualmap: mov esi, [argv] invoke GetFullPathNameA, dword [esi + 8], MAX_PATH, dllPath, 0 mov esi, [argv] cinvoke atoi, dword [esi + 12] cinvoke manualMap, dllPath, eax retn error: cinvoke printf, <'Wrong amount of Command line arguments! Press enter to continue...', 0> cinvoke getchar retn section '.bss' data readable writable argc dd ? argv dd ? env dd ? dllPath rb MAX_PATH dllPathLength dd ? processHandle dd ? allocatedMemory dd ? section '.idata' data readable import library kernel32, 'kernel32.dll', \ msvcrt, 'msvcrt.dll', \ Inflame, 'Inflame.dll' import kernel32, \ GetFullPathNameA, 'GetFullPathNameA', \ GetModuleHandleA, 'GetModuleHandleA', \ GetProcAddress, 'GetProcAddress', \ OpenProcess, 'OpenProcess', \ VirtualAllocEx, 'VirtualAllocEx', \ VirtualFreeEx, 'VirtualFreeEx', \ WriteProcessMemory, 'WriteProcessMemory', \ CreateRemoteThread, 'CreateRemoteThread', \ CloseHandle, 'CloseHandle', \ WaitForSingleObject, 'WaitForSingleObject' import msvcrt, \ __getmainargs, '__getmainargs', \ printf, 'printf', \ getchar, 'getchar', \ strlen, 'strlen', \ atoi, 'atoi', \ strcmp, 'strcmp' import Inflame, \ manualMap, 'manualMap'
30.032258
177
0.673827
4d6a7817fb6629ec25bd16d94778ce78a204fa19
372
asm
Assembly
programs/oeis/099/A099545.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/099/A099545.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/099/A099545.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A099545: Odd part of n, modulo 4. ; 1,1,3,1,1,3,3,1,1,1,3,3,1,3,3,1,1,1,3,1,1,3,3,3,1,1,3,3,1,3,3,1,1,1,3,1,1,3,3,1,1,1,3,3,1,3,3,3,1,1,3,1,1,3,3,3,1,1,3,3,1,3,3,1,1,1,3,1,1,3,3,1,1,1,3,3,1,3,3,1,1,1,3,1,1,3,3,3,1,1,3,3,1,3,3,3,1,1,3,1,1,3 lpb $0,1 add $0,1 mov $1,$0 add $1,1 div $1,2 gcd $0,$1 sub $0,1 mov $2,1 lpe add $1,$2 mod $1,2 mul $1,2 add $1,1
21.882353
205
0.508065
5648de6e42b4f50350969132b5454772c59cc15c
515
asm
Assembly
data/maps/objects/MtMoonPokecenter.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
data/maps/objects/MtMoonPokecenter.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
data/maps/objects/MtMoonPokecenter.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
MtMoonPokecenter_Object: db $0 ; border block def_warps warp 3, 7, 0, LAST_MAP warp 4, 7, 0, LAST_MAP def_signs def_objects object SPRITE_NURSE, 3, 1, STAY, DOWN, 1 ; person object SPRITE_YOUNGSTER, 4, 3, STAY, UP, 2 ; person object SPRITE_GENTLEMAN, 7, 3, STAY, UP, 3 ; person object SPRITE_MIDDLE_AGED_MAN, 10, 6, WALK, LEFT_RIGHT, 4 ; person object SPRITE_CLIPBOARD, 7, 2, STAY, NONE, 5 ; person object SPRITE_LINK_RECEPTIONIST, 11, 2, STAY, DOWN, 6 ; person def_warps_to MT_MOON_POKECENTER
27.105263
67
0.726214
17ce44c5fe3a82921163621f99222cb0893b4eea
506
asm
Assembly
src/util/oli/qdos/pick.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
src/util/oli/qdos/pick.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
src/util/oli/qdos/pick.asm
olifink/qspread
d6403d210bdad9966af5d2a0358d4eed3f1e1c02
[ "MIT" ]
null
null
null
; pick and wake a job include win1_mac_oli include win1_keys_qdos_io include win1_keys_k section utility xdef ut_pick,ut_wake ;+++ ; pick and wake a job ; ; Entry Exit ; a0 channel ID ; d1.l job ID (-1=myself) preserved ; ; error: ijob, ichn ;--- ut_wake pushm d1/d2 moveq #k.wake,d2 bra.s doit ut_pick subr a0/d1/d2 moveq #0,d2 ; pick event doit move.l d1,d0 ; care for id -1 addq.l #1,d0 bne.s idok xjsr ut_myjbid ; get my jobid idok moveq #iop.pick,d0 xjsr do_io subend end
14.882353
36
0.687747
1cc3858a18f3d523ef9c7222fc59a6833f8fd9d4
373
asm
Assembly
oeis/082/A082031.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/082/A082031.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/082/A082031.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A082031: Expansion of e.g.f. exp(2*x)/(1-x)^3. ; Submitted by Jon Maiga ; 1,5,28,176,1240,9752,85120,819296,8639872,99209600,1233416704,16517058560,237137769472,3634932675584,59263206154240,1024222802014208,18706559855656960,360062627304341504,7285354765603176448 add $0,1 mov $2,1 lpb $0 sub $0,1 add $1,$2 mul $1,2 mul $2,$0 add $2,$1 lpe div $1,2 mov $0,$1
23.3125
191
0.726542
8e38814145d4b4d6e9c2fcc19eea9ce958fe6199
369
asm
Assembly
oeis/294/A294568.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/294/A294568.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/294/A294568.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A294568: Decimal expansion of 1/18779. ; Submitted by Jamie Morken(w2) ; 0,0,0,0,5,3,2,5,0,9,7,1,8,3,0,2,3,5,9,0,1,8,0,5,2,0,7,9,4,5,0,4,4,9,9,7,0,7,1,1,9,6,5,4,9,3,3,7,0,2,5,4,0,0,7,1,3,5,6,3,0,2,2,5,2,5,1,6,1,0,8,4,1,8,9,7,8,6,4,6,3,6,0,2,9,6,0,7,5,4,0,3,3,7,6,1,1,1,6,1 seq $0,83811 ; Numbers n such that 2n+1 is the digit reversal of n+1. div $0,75116 mod $0,10
46.125
201
0.596206
688897f772b74f389282380fa818079c36783de7
3,319
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2.log_218_98.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2.log_218_98.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i7-8650U_0xd2.log_218_98.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r13 push %rcx push %rdi push %rsi lea addresses_UC_ht+0x12e9b, %rsi lea addresses_A_ht+0x17523, %rdi cmp %r12, %r12 mov $4, %rcx rep movsb nop nop nop nop nop add $49892, %r13 lea addresses_normal_ht+0xdd9b, %r13 nop and %rsi, %rsi movw $0x6162, (%r13) and %rdi, %rdi lea addresses_A_ht+0x1291b, %r11 nop nop cmp $29527, %rcx movb $0x61, (%r11) xor %rdi, %rdi lea addresses_WT_ht+0x6a9b, %r12 nop nop nop nop nop cmp %r10, %r10 mov (%r12), %rsi nop nop nop cmp $48022, %rcx pop %rsi pop %rdi pop %rcx pop %r13 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r15 push %rax push %rbx push %rcx push %rdx // Store lea addresses_D+0x8e5b, %r12 nop nop nop cmp $48494, %r15 mov $0x5152535455565758, %rbx movq %rbx, %xmm3 movups %xmm3, (%r12) nop nop nop nop nop and $150, %rbx // Store lea addresses_WC+0x1219b, %rbx nop nop nop nop nop sub %rcx, %rcx movl $0x51525354, (%rbx) nop nop nop nop nop add $19573, %rbx // Store lea addresses_WT+0x19a9b, %rbx nop nop cmp $52046, %r14 mov $0x5152535455565758, %r12 movq %r12, %xmm0 vmovups %ymm0, (%rbx) nop nop nop nop nop xor $40866, %rbx // Faulty Load lea addresses_WT+0x1ca9b, %rcx nop nop nop nop xor %rbx, %rbx mov (%rcx), %edx lea oracles, %r12 and $0xff, %rdx shlq $12, %rdx mov (%r12,%rdx,1), %rdx pop %rdx pop %rcx pop %rbx pop %rax pop %r15 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 4, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'58': 218} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
22.425676
653
0.651401
aaeed18687e9ffd881b175423a08d096324d6d3c
7,854
asm
Assembly
Transynther/x86/_processed/NONE/_st_un_/i9-9900K_12_0xa0.log_5539_1797.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_st_un_/i9-9900K_12_0xa0.log_5539_1797.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_st_un_/i9-9900K_12_0xa0.log_5539_1797.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r15 push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x1d324, %rsi lea addresses_A_ht+0xab44, %rdi nop nop nop nop nop and $53043, %r15 mov $16, %rcx rep movsl nop and $53745, %r10 lea addresses_WT_ht+0x6924, %rsi lea addresses_A_ht+0xa6e4, %rdi cmp $22001, %r13 mov $23, %rcx rep movsl nop nop nop nop cmp $50539, %rdi lea addresses_A_ht+0x118d4, %rsi lea addresses_D_ht+0x2764, %rdi nop nop nop nop cmp %rbx, %rbx mov $103, %rcx rep movsl nop nop dec %rdi lea addresses_normal_ht+0x1c164, %rdi nop nop and $11675, %rbx vmovups (%rdi), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %rcx nop dec %r15 lea addresses_D_ht+0x19d24, %r15 dec %rbx movups (%r15), %xmm2 vpextrq $0, %xmm2, %rcx cmp %r13, %r13 lea addresses_D_ht+0x1ce24, %rsi lea addresses_WT_ht+0x6f04, %rdi nop nop dec %r10 mov $56, %rcx rep movsl sub %rsi, %rsi lea addresses_normal_ht+0xe524, %r10 nop nop nop nop sub %r15, %r15 mov (%r10), %rsi and %rbx, %rbx lea addresses_UC_ht+0x1324, %rsi lea addresses_D_ht+0x8d24, %rdi nop sub %rbx, %rbx mov $56, %rcx rep movsw xor $3322, %r10 lea addresses_A_ht+0x1ed24, %rsi nop nop sub $62111, %rcx movl $0x61626364, (%rsi) nop nop nop nop nop xor %r15, %r15 lea addresses_WC_ht+0xe7a4, %rsi lea addresses_WT_ht+0x106a4, %rdi nop nop cmp %r11, %r11 mov $61, %rcx rep movsl nop nop nop and $22142, %r10 lea addresses_D_ht+0x1a43d, %r15 clflush (%r15) nop nop nop cmp $28024, %rsi mov $0x6162636465666768, %r13 movq %r13, (%r15) nop nop add %rsi, %rsi lea addresses_WC_ht+0x1024, %rcx nop nop xor %r13, %r13 movb $0x61, (%rcx) nop nop add $58831, %rsi lea addresses_normal_ht+0xeda4, %r11 nop nop nop nop nop dec %rcx mov (%r11), %r15 nop sub %r10, %r10 lea addresses_WT_ht+0x4f24, %rcx nop nop nop nop nop add %r13, %r13 mov $0x6162636465666768, %r15 movq %r15, (%rcx) cmp %r15, %r15 pop %rsi pop %rdi pop %rcx pop %rbx pop %r15 pop %r13 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r13 push %r15 push %rbx push %rcx push %rdi push %rsi // REPMOV lea addresses_normal+0x8324, %rsi lea addresses_UC+0xbd24, %rdi nop nop nop xor %r13, %r13 mov $30, %rcx rep movsw nop nop and %rdi, %rdi // Faulty Load lea addresses_UC+0xbd24, %rbx clflush (%rbx) nop nop nop nop add %r15, %r15 mov (%rbx), %ecx lea oracles, %r13 and $0xff, %rcx shlq $12, %rcx mov (%r13,%rcx,1), %rcx pop %rsi pop %rdi pop %rcx pop %rbx pop %r15 pop %r13 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 7, 'type': 'addresses_normal'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 0, 'type': 'addresses_UC'}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 9, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_A_ht'}} {'src': {'same': False, 'congruent': 10, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_A_ht'}} {'src': {'same': True, 'congruent': 4, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_D_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 9, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 4, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_WT_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 11, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'same': True, 'congruent': 9, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 7, 'type': 'addresses_D_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 10, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 4}} {'src': {'same': False, 'congruent': 6, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_WT_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1}} {'src': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8}} {'5f': 89, '34': 5450} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 5f 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 5f 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 5f 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 5f 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 5f 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 5f 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 5f 34 34 34 34 34 34 34 34 34 34 34 34 5f 34 34 34 34 34 34 5f 34 34 34 34 34 5f 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 5f 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 5f 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
35.219731
2,999
0.657627
8e5fdeadbb5e67298c8575cce9fb12d06e52e5ab
343
asm
Assembly
programs/oeis/138/A138466.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/138/A138466.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/138/A138466.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A138466: a(1)=1, then for n>=2 a(n)=n-floor((1/2)*a(a(n-1))). ; 1,2,2,3,4,5,5,6,7,8,8,9,10,10,11,12,13,13,14,15,16,16,17,18,19,19,20,21,21,22,23,24,24,25,26,27,27,28,29,30,30,31,32,32,33,34,35,35,36,37,38,38,39,40,40,41,42,43,43,44,45,46,46,47,48,49,49,50,51,51,52,53,54 mov $2,$0 add $0,15 mul $0,3 sub $0,$2 mul $0,15 div $0,41 sub $0,15
31.181818
208
0.600583
e0dd8261813037b36e8c830bf07aa8ee58423585
23
asm
Assembly
src/main/fragment/mos6502-common/vbuaa=vbuaa_minus__deref_pbuz1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/main/fragment/mos6502-common/vbuaa=vbuaa_minus__deref_pbuz1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/main/fragment/mos6502-common/vbuaa=vbuaa_minus__deref_pbuz1.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
sec ldy #0 sbc ({z1}),y
7.666667
12
0.565217
a01929fd9324fe4db194af6c8668a7a9fb4b9c9b
2,166
asm
Assembly
programs/oeis/299/A299261.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/299/A299261.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/299/A299261.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A299261: Partial sums of A299255. ; 1,8,31,81,168,303,497,760,1103,1537,2072,2719,3489,4392,5439,6641,8008,9551,11281,13208,15343,17697,20280,23103,26177,29512,33119,37009,41192,45679,50481,55608,61071,66881,73048,79583,86497,93800,101503,109617,118152,127119,136529,146392,156719,167521,178808,190591,202881,215688,229023,242897,257320,272303,287857,303992,320719,338049,355992,374559,393761,413608,434111,455281,477128,499663,522897,546840,571503,596897,623032,649919,677569,705992,735199,765201,796008,827631,860081,893368,927503,962497,998360,1035103,1072737,1111272,1150719,1191089,1232392,1274639,1317841,1362008,1407151,1453281,1500408,1548543,1597697,1647880,1699103,1751377,1804712,1859119,1914609,1971192,2028879,2087681,2147608,2208671,2270881,2334248,2398783,2464497,2531400,2599503,2668817,2739352,2811119,2884129,2958392,3033919,3110721,3188808,3268191,3348881,3430888,3514223,3598897,3684920,3772303,3861057,3951192,4042719,4135649,4229992,4325759,4422961,4521608,4621711,4723281,4826328,4930863,5036897,5144440,5253503,5364097,5476232,5589919,5705169,5821992,5940399,6060401,6182008,6305231,6430081,6556568,6684703,6814497,6945960,7079103,7213937,7350472,7488719,7628689,7770392,7913839,8059041,8206008,8354751,8505281,8657608,8811743,8967697,9125480,9285103,9446577,9609912,9775119,9942209,10111192,10282079,10454881,10629608,10806271,10984881,11165448,11347983,11532497,11719000,11907503,12098017,12290552,12485119,12681729,12880392,13081119,13283921,13488808,13695791,13904881,14116088,14329423,14544897,14762520,14982303,15204257,15428392,15654719,15883249,16113992,16346959,16582161,16819608,17059311,17301281,17545528,17792063,18040897,18292040,18545503,18801297,19059432,19319919,19582769,19847992,20115599,20385601,20658008,20932831,21210081,21489768,21771903,22056497,22343560,22633103,22925137,23219672,23516719,23816289,24118392,24423039,24730241,25040008,25352351,25667281,25984808,26304943,26627697,26953080,27281103,27611777 mov $3,$0 add $3,1 mov $5,$0 lpb $3,1 mov $0,$5 sub $3,1 sub $0,$3 mul $0,4 lpb $0,1 pow $0,2 mov $2,$0 mov $0,3 add $2,4 mov $4,$2 div $4,3 lpe add $4,1 add $1,$4 lpe
94.173913
1,920
0.825023
e8b0107e4ee3d8020d07d8c3dad82cc201603fee
1,257
asm
Assembly
programs/oeis/030/A030053.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/030/A030053.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/030/A030053.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A030053: a(n) = binomial(2n+1,n-3). ; 1,9,55,286,1365,6188,27132,116280,490314,2042975,8436285,34597290,141120525,573166440,2319959400,9364199760,37711260990,151584480450,608359048206,2438362177020,9762479679106,39049918716424,156077261327400,623404249591760,2488589544741300,9929472283517787,39602161018878633,157890968768078210,629308289804197437,2507588587725537680,9989690752182277136,39789158751476438304,158455223553556008310,630939890149613923998,2511991671686052566850,10000119226331142599460,39806676145124354455990,158444263771748044763400,630626701304396019099240,2509852088803449039224400,9988677302355003038019660,39751687313030682822037590,158195490327367003067292450,629544472205093989880815908,2505272788231501483794869010,9969700941885359750896504368,39674339023040098565708730672,157884485473879036845412994400,628308486510823167082541257260,2500411323869602399614194799300,9950759731694396637341823653916,39601197958589059234208231255544,157604506869091399364303293230180,627246112872710927784472477711056,2496416678737474275426361318394640,9935884798775660078031253904179488,39546398623698361342322808197984232,157405073469325714553324335261713555,626530645220345271243285139240656129 mov $1,7 add $1,$0 add $1,$0 bin $1,$0 mov $0,$1
139.666667
1,168
0.918854
fc95e0aa9112fe8177c35826bbe66a7daf982401
1,602
asm
Assembly
source/kinit.asm
daniel3735928559/toast
0e771e601dec5a55b4b9f088036dfdae19df5aa1
[ "MIT" ]
null
null
null
source/kinit.asm
daniel3735928559/toast
0e771e601dec5a55b4b9f088036dfdae19df5aa1
[ "MIT" ]
null
null
null
source/kinit.asm
daniel3735928559/toast
0e771e601dec5a55b4b9f088036dfdae19df5aa1
[ "MIT" ]
null
null
null
[bits 32] %define STACK_SIZE 0x3000 %define BASE 0xC0000000 extern kmain extern monitor_init global begin begin: pop eax mov [vidmem],eax ;; Apply a new upstairs GDT so that we don't have to reply on that old one downstairs ;; 20090902: Insert code for filling out TSS entry properly here? mov eax,tss_start mov [gdt_tss+2],word ax shr eax,16 mov [gdt_tss+4],byte al mov [gdt_tss+7],byte ah mov eax,tss_end-tss_start+1 ;Or possibly just tss_end? Depends on whether the limit is the upper bound or the size... mov [gdt_tss+0],word ax shr eax,16 mov bl,[gdt_tss+6] and al,0x0F or bl,al mov [gdt_tss+6],byte bl lgdt [gdtr] jmp code_selector:flush %include 'init/gdt.asm' flush: mov ax,data_selector mov ds,ax mov fs,ax mov gs,ax mov es,ax mov ss,ax ;mov esp,stack+STACK_SIZE jmp code_selector:.init .init: mov ax,0x2B ltr ax call pic_remap mov al,0xFF out 0x21,al out 0xA1,al lidt [idtr] sti ;; What is this code for? mov cl,1 mov ah,1 shl ah,cl xor ah,0xFF in al, 0x21 and al, ah out 0x21, al ;nop;Causes triple fault at 0xC00000a7 (?!) Remove to make OK again (!?!) push dword tss_start push dword 0x40000 push dword [vidmem] call kmain ;mov eax,0x7000000 ;mov [eax],dword 0xff ;mov eax,0xC1000000 ;mov [eax],dword 0xff jmp $ %include 'init/pic.asm' %include 'init/isr.asm' %include 'init/idt.asm' tss_phys_start: dd 0x12345678 ;NEW 20091224 vidmem: dd 0x12345678 align 32 tss_start: times 26 dd 0 tss_end: stack: dd 0xabcdef ;times (0x1000+STACK_SIZE) db 0 ; reserve 16k stack on a quadword boundary
16.515464
119
0.705993
75be48f3cac868c5a67b7303c456882b4ddb8b83
1,106
asm
Assembly
Library/Trans/Graphics/Bitmap/Dib/Import/importManager.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Trans/Graphics/Bitmap/Dib/Import/importManager.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Trans/Graphics/Bitmap/Dib/Import/importManager.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: Impex- DIB Graphics Translation Library FILE: importManager.asm AUTHOR: Maryann 2/92 REVISION HISTORY: Name Date Description ---- ---- ----------- DESCRIPTION: This is the main include file for the import module of the DIB translation library $Id: importManager.asm,v 1.1 97/04/07 11:29:03 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ; Common Geode stuff ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% include dibGeode.def ; this includes the .def files include dibStrings.rdef ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ; Code ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% include importMain.asm ;code for importing a DIB file include importDIB.asm
25.136364
79
0.394213
3e18757d43676ce5495a67f7cd4dfbf36aadea49
1,064
a51
Assembly
E5/E5.a51
JDong-chen/51singleChipC_Experiment_Code
0548bcaca22dd7b7befaf8b613a7ffb1b0856077
[ "MIT" ]
null
null
null
E5/E5.a51
JDong-chen/51singleChipC_Experiment_Code
0548bcaca22dd7b7befaf8b613a7ffb1b0856077
[ "MIT" ]
null
null
null
E5/E5.a51
JDong-chen/51singleChipC_Experiment_Code
0548bcaca22dd7b7befaf8b613a7ffb1b0856077
[ "MIT" ]
null
null
null
ORG 0000H AJMP MAIN ORG 30H MAIN: MOV P2,#0F0H LCALL DELAY MOV R4,00H MOV A,P2 ANL A,#0F0H CJNE A,#0F0H,L DESPLAY: MOV A,R7 MOV DPTR,#TABLE MOVC A,@A+DPTR MOV P1,A AJMP MAIN L: LCALL DELAY MOV A,P2 JB ACC.4,L1 MOV R3,#00H AJMP Q1 L1: JB ACC.5,L2 MOV R3,#01H AJMP Q1 L2: JB ACC.6,L3 MOV R3,#02H AJMP Q1 L3: JB ACC.7,MAIN MOV R3,#03H AJMP Q1 Q1: MOV P2,#0FH LCALL DELAY MOV A,P2 ANL A,#0FH JB ACC.0,Q2 MOV R4,#00H AJMP JIA Q2: JB ACC.1,Q3 MOV R4,#04H AJMP JIA Q3: JB ACC.2,Q4 MOV R4,#08H AJMP JIA Q4: JB ACC.3,MAIN MOV R4,#0CH AJMP JIA JIA: MOV A,R3 ADD A,R4 MOV R7,A AJMP MAIN DELAY: MOV R6,#20H Q6: MOV R5,#0BBH DJNZ R5,$ DJNZ R6,Q6 RET TABLE: DB 0xc0, 0xf9, 0xa4, 0xb0, 0x99, 0x92, 0x82, 0xf8, 0x80, 0x90, 0x88, 0x83, 0xc6, 0xa1, 0x86, 0x8e END
14.777778
104
0.484962
8abf3fef1a67094ff5b958992856396976bf95fb
423
asm
Assembly
programs/oeis/135/A135668.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/135/A135668.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/135/A135668.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A135668: a(n) = ceiling(n + sqrt(n)). ; 2,4,5,6,8,9,10,11,12,14,15,16,17,18,19,20,22,23,24,25,26,27,28,29,30,32,33,34,35,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110 mov $1,$0 add $0,2 lpb $1 add $0,1 sub $1,3 trn $1,$2 add $2,2 lpe
35.25
306
0.624113
af51be7e18caf549b7668dd27b47edfbddd12b78
341
asm
Assembly
oeis/090/A090988.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/090/A090988.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/090/A090988.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A090988: a(n) = 2^A004736(n). ; Submitted by Jon Maiga ; 2,4,2,8,4,2,16,8,4,2,32,16,8,4,2,64,32,16,8,4,2,128,64,32,16,8,4,2,256,128,64,32,16,8,4,2,512,256,128,64,32,16,8,4,2,1024,512,256,128,64,32,16,8,4,2,2048,1024,512,256,128,64,32,16,8,4,2,4096,2048,1024,512,256 lpb $0 add $1,1 sub $0,$1 lpe sub $1,$0 mov $0,2 pow $0,$1 mul $0,2
26.230769
210
0.621701
f1d4aa7fb5306c3a15914efc4dfef2e043079a1f
716
asm
Assembly
Etapa 02/Aula 10 - Subrotinas/codes/a10e01.asm
bellorini/unioeste
8c3d1f1e26dc3680160820c7219954b6076c9d5e
[ "MIT" ]
6
2021-11-03T20:19:10.000Z
2022-02-23T17:57:58.000Z
Etapa 02/Aula 10 - Subrotinas/codes/a10e01.asm
bellorini/unioeste
8c3d1f1e26dc3680160820c7219954b6076c9d5e
[ "MIT" ]
null
null
null
Etapa 02/Aula 10 - Subrotinas/codes/a10e01.asm
bellorini/unioeste
8c3d1f1e26dc3680160820c7219954b6076c9d5e
[ "MIT" ]
5
2022-02-02T15:48:45.000Z
2022-02-22T18:17:52.000Z
; Aula 10 - Subprogramas ; arquivo: a10e01.asm ; objetivo: demonstrar chamada de procedimento ; nasm -f elf64 a10e01.asm ; ld a10e01.o -o a10e01.x %define _exit 60 %define _write 1 section .data strOla : db "You can't take the sky from me", 10, 0 strOlaL : equ $-strOla section .text global _start _start: ; RSP = ? ; PUSH fim ; RIP = ? call iboserenity ; ADDR = ? ; RSP = ? fim: ; addr = ? mov rax, _exit mov rdi, 0 syscall ; imprimeBalladofSerenity() iboserenity: ; addr = ? mov rax, _write mov rdi, 1 lea rsi, [strOla] mov rdx, strOlaL syscall lret: ; POP ret
19.888889
56
0.546089
20da8d0c4cf0864581e1256683f2bc79e5d514af
686
asm
Assembly
ex/test.asm
jtzeng/herontitan
efe00ed813b022a19a67d1a118171c61b3e6f83b
[ "MIT" ]
1
2017-07-24T07:29:04.000Z
2017-07-24T07:29:04.000Z
ex/test.asm
jtzeng/herontitan
efe00ed813b022a19a67d1a118171c61b3e6f83b
[ "MIT" ]
null
null
null
ex/test.asm
jtzeng/herontitan
efe00ed813b022a19a67d1a118171c61b3e6f83b
[ "MIT" ]
null
null
null
; Test program that should do nothing and not be run. .WORD HUE 0xFE5A .WORD HUELL 0xFACE .BYTE LOL 19 .DATA heheXD 1 2 3 4 5 4 3 0x2 0x1 .RAW 0xca 0xfe 0xba 0xbe .ASCIZ MESSAGE "HELLO WORLD!!! <3" .ASCIZ MSG " x y z abc" START: NOP HLT ADD R1,R7 SUB R1,R1 NOT R0 INC R2 INT 0xee PSH R2 POP R2 PKR R3 CLR R3 MOV R3,R0 LDC 0xff,R5 ; Infinite loop LOOP: NOP JMP LOOP WINK: JRA R5,R6 JMP TEST RSB TEST: JMO R1,R2,0xfedc ; Unclear spec order, so probably wrong? LDM 0xffff,R5 LDR R3,R4,RA LMO R3,R4,0xbabe,R1 STM R5,0xffff SRA RA,R3,R4 SMO R1,R3,R4,0xbeef JMP HUE
12.943396
53
0.591837
41db4797de548ea91eb6137b1c727ea3d2a60842
2,373
asm
Assembly
CpuA32/TestData/fib.asm
robertmuth/Cwerg
fdf30b06c93b4620c0a45b448b6d92acb81c35f0
[ "Apache-2.0" ]
171
2020-01-30T16:58:07.000Z
2022-03-27T22:12:17.000Z
CpuA32/TestData/fib.asm
robertmuth/Cwerg
fdf30b06c93b4620c0a45b448b6d92acb81c35f0
[ "Apache-2.0" ]
14
2021-05-15T02:12:09.000Z
2022-03-16T04:16:18.000Z
CpuA32/TestData/fib.asm
robertmuth/Cwerg
fdf30b06c93b4620c0a45b448b6d92acb81c35f0
[ "Apache-2.0" ]
5
2021-03-01T20:52:13.000Z
2022-03-07T06:35:03.000Z
# sig: IN: [U32] -> OUT: [] stk_size:1 .fun putchar 16 sub_imm al sp sp 16 .bbl start 4 add_imm al r1 sp 0 mov_regimm al r0 r0 lsl 0 strb_imm_add al sp 0 r0 mov_imm al r2 1 mov_imm al r0 1 str_imm_sub_pre al sp 4 r7 movw al r7 4 svc al 0 ldr_imm_add_post al r7 sp 4 add_imm al sp sp 16 bx al lr .endfun # sig: IN: [U32] -> OUT: [] stk_size:0 .fun print_num 16 stmdb_update al sp reglist:0x4040 sub_imm al sp sp 8 .bbl start 4 mov_imm al r1 10 udiv al r1 r0 r1 mov_imm al r2 10 mul al r1 r1 r2 sub_regimm al r6 r0 r1 lsl 0 mov_imm al r1 10 udiv al r4 r0 r1 cmp_imm al r4 0 b eq expr:jump24:skip .bbl ddd 4 mov_regimm al r0 r4 lsl 0 bl al expr:call:print_num .bbl skip 4 add_imm al r6 r6 48 mov_regimm al r0 r6 lsl 0 bl al expr:call:putchar add_imm al sp sp 8 ldmia_update al reglist:0x8040 sp .endfun # sig: IN: [U32] -> OUT: [] stk_size:0 .fun print_num_ln 16 stmdb_update al sp reglist:0x4000 sub_imm al sp sp 12 .bbl start 4 bl al expr:call:print_num mov_imm al r0 10 bl al expr:call:putchar add_imm al sp sp 12 ldmia_update al reglist:0x8000 sp .endfun # sig: IN: [U32] -> OUT: [U32] stk_size:0 .fun fibonacci 16 stmdb_update al sp reglist:0x40c0 sub_imm al sp sp 4 .bbl start 4 mov_regimm al r6 r0 lsl 0 cmp_imm al r6 1 b hi expr:jump24:difficult .bbl start_1 4 mov_regimm al r0 r6 lsl 0 add_imm al sp sp 4 ldmia_update al reglist:0x80c0 sp .bbl difficult 4 sub_imm al r0 r6 1 bl al expr:call:fibonacci mov_regimm al r7 r0 lsl 0 sub_imm al r0 r6 2 bl al expr:call:fibonacci add_regimm al r0 r7 r0 lsl 0 add_imm al sp sp 4 ldmia_update al reglist:0x80c0 sp .endfun # sig: IN: [] -> OUT: [S32] stk_size:0 .fun main 16 stmdb_update al sp reglist:0x4000 sub_imm al sp sp 12 .bbl start 4 mov_imm al r0 7 bl al expr:call:fibonacci bl al expr:call:print_num_ln mov_imm al r0 0 add_imm al sp sp 12 ldmia_update al reglist:0x8000 sp .endfun .fun _start 16 mov_imm al r10 0 .bbl loop 16 add_imm al r0 r10 0 bl al expr:call:fibonacci bl al expr:call:print_num_ln add_imm al r10 r10 1 cmp_imm al r10 10 b ne expr:jump24:loop # exit 0 mov_imm al r0 0 mov_imm al r7 1 svc al 0
21.770642
42
0.653182
bdb03fb4153c64fcbe332ff17d21feab8d5850aa
529
asm
Assembly
04 - Machine Language/Mult.asm
AmrDeveloper/Nand2Tetris
53753c52c8e35c6547a9d17b6433ce0a8a43236f
[ "MIT" ]
2
2020-03-11T18:48:18.000Z
2020-11-07T00:24:56.000Z
04 - Machine Language/Mult.asm
AmrDeveloper/Nand2Tetris
53753c52c8e35c6547a9d17b6433ce0a8a43236f
[ "MIT" ]
null
null
null
04 - Machine Language/Mult.asm
AmrDeveloper/Nand2Tetris
53753c52c8e35c6547a9d17b6433ce0a8a43236f
[ "MIT" ]
null
null
null
// This file is part of www.nand2tetris.org // and the book "The Elements of Computing Systems" // by Nisan and Schocken, MIT Press. // File name: projects/04/Mult.asm // Multiplies R0 and R1 and stores the result in R2. // (R0, R1, R2 refer to RAM[0], RAM[1], and RAM[2], respectively.) @R2 M=0 //Result = 0 @R0 //A D=M //i = A @i M=D (LOOP) @i D=M @END D;JEQ //End Loop if i = 0 @R1 D=M //B @R2 //result = A + B M=M+D @i M=M-1 //i-- @LOOP 0;JMP (END) @END 0;JMP
13.225
66
0.546314
180b1d764ab459301ee2e7d05b21c4febc35b361
557
asm
Assembly
oeis/017/A017155.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/017/A017155.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/017/A017155.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A017155: a(n) = (8*n + 7)^7. ; 823543,170859375,3404825447,27512614111,137231006679,506623120463,1522435234375,3938980639167,9095120158391,19203908986159,37725479487783,69833729609375,122987386542487,207616015289871,337931541778439,532875860165503,817215093984375,1222791080775407,1789940649848551,2569093262823519,3622557586593623,5026507568359375,6873178582377927,9273284218074431,12358664279161399,16285174563412143,21235828992734375,27424204663190047,35098120384607511,44543599279432079,56089126010461063,70110209207109375 mul $0,8 add $0,7 pow $0,7
79.571429
497
0.883303
223e68c4640bb09ff0c1c970d30ec50624034dab
5,280
asm
Assembly
Transynther/x86/_processed/NONE/_ht_zr_un_/i7-7700_9_0x48.log_21829_895.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_ht_zr_un_/i7-7700_9_0x48.log_21829_895.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_ht_zr_un_/i7-7700_9_0x48.log_21829_895.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 %r15 push %r8 push %r9 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x17408, %r15 nop nop nop nop nop sub $44445, %rdx movb (%r15), %bl nop nop nop nop dec %r10 lea addresses_UC_ht+0x588, %r9 nop nop nop nop cmp $64939, %rbx movl $0x61626364, (%r9) nop nop nop nop cmp $46186, %r10 lea addresses_A_ht+0xd608, %rdx add $32885, %r8 mov (%rdx), %rbx nop nop nop nop nop dec %r13 lea addresses_WT_ht+0x1ad08, %rsi lea addresses_normal_ht+0x1e4d4, %rdi nop nop mfence mov $51, %rcx rep movsq add %rcx, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r9 pop %r8 pop %r15 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %rax push %rbx push %rcx push %rsi // Store lea addresses_WT+0xee88, %r14 nop nop nop and %rax, %rax mov $0x5152535455565758, %r12 movq %r12, (%r14) nop add %rsi, %rsi // Faulty Load lea addresses_WC+0x1fe08, %rax nop nop nop nop nop and %r11, %r11 vmovups (%rax), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $0, %xmm7, %rsi lea oracles, %rax and $0xff, %rsi shlq $12, %rsi mov (%rax,%rsi,1), %rsi pop %rsi pop %rcx pop %rbx pop %rax pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 7, 'size': 8, 'same': True, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 9, 'size': 1, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 7, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 11, 'size': 8, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}} {'f2': 676, '06': 2382, '00': 910, '02': 8, '49': 786, 'c5': 135, 'd7': 12, '50': 16920} 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 00 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 00 06 00 06 06 06 06 06 06 06 06 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 02 06 06 06 06 06 06 06 06 06 00 06 06 06 06 06 06 06 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 00 06 06 06 06 06 06 06 06 06 06 06 00 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 02 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 00 06 06 06 06 06 06 06 06 00 00 00 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 00 00 06 06 06 06 06 06 06 06 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 00 06 06 06 06 06 06 06 06 06 06 06 06 06 00 00 06 00 06 06 06 06 06 06 06 06 06 06 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 00 06 06 06 06 06 06 00 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 02 06 06 06 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 00 00 06 06 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 00 06 06 06 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 00 06 06 00 06 06 06 06 06 06 06 00 06 06 06 06 06 06 06 06 06 00 00 06 06 06 06 06 00 06 06 00 06 06 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 00 06 06 06 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 00 06 06 00 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 00 06 06 06 06 06 00 06 00 06 06 06 06 06 06 06 06 06 06 06 00 06 06 06 06 06 06 06 06 06 06 00 00 06 06 06 06 06 06 00 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 06 */
41.574803
2,999
0.657576
3e6ce20304e2753ca2af9e0c531f41aa0e815b9d
60,508
asm
Assembly
grep.asm
PieMyth/cs333
85b46a2f677ed49065504aa051f918b3f803e294
[ "MIT-0" ]
null
null
null
grep.asm
PieMyth/cs333
85b46a2f677ed49065504aa051f918b3f803e294
[ "MIT-0" ]
null
null
null
grep.asm
PieMyth/cs333
85b46a2f677ed49065504aa051f918b3f803e294
[ "MIT-0" ]
null
null
null
_grep: file format elf32-i386 Disassembly of section .text: 00000000 <grep>: char buf[1024]; int match(char*, char*); void grep(char *pattern, int fd) { 0: 55 push %ebp 1: 89 e5 mov %esp,%ebp 3: 83 ec 18 sub $0x18,%esp int n, m; char *p, *q; m = 0; 6: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) while((n = read(fd, buf+m, sizeof(buf)-m-1)) > 0){ d: e9 b6 00 00 00 jmp c8 <grep+0xc8> m += n; 12: 8b 45 ec mov -0x14(%ebp),%eax 15: 01 45 f4 add %eax,-0xc(%ebp) buf[m] = '\0'; 18: 8b 45 f4 mov -0xc(%ebp),%eax 1b: 05 60 0f 00 00 add $0xf60,%eax 20: c6 00 00 movb $0x0,(%eax) p = buf; 23: c7 45 f0 60 0f 00 00 movl $0xf60,-0x10(%ebp) while((q = strchr(p, '\n')) != 0){ 2a: eb 4a jmp 76 <grep+0x76> *q = 0; 2c: 8b 45 e8 mov -0x18(%ebp),%eax 2f: c6 00 00 movb $0x0,(%eax) if(match(pattern, p)){ 32: 83 ec 08 sub $0x8,%esp 35: ff 75 f0 pushl -0x10(%ebp) 38: ff 75 08 pushl 0x8(%ebp) 3b: e8 9a 01 00 00 call 1da <match> 40: 83 c4 10 add $0x10,%esp 43: 85 c0 test %eax,%eax 45: 74 26 je 6d <grep+0x6d> *q = '\n'; 47: 8b 45 e8 mov -0x18(%ebp),%eax 4a: c6 00 0a movb $0xa,(%eax) write(1, p, q+1 - p); 4d: 8b 45 e8 mov -0x18(%ebp),%eax 50: 83 c0 01 add $0x1,%eax 53: 89 c2 mov %eax,%edx 55: 8b 45 f0 mov -0x10(%ebp),%eax 58: 29 c2 sub %eax,%edx 5a: 89 d0 mov %edx,%eax 5c: 83 ec 04 sub $0x4,%esp 5f: 50 push %eax 60: ff 75 f0 pushl -0x10(%ebp) 63: 6a 01 push $0x1 65: e8 16 06 00 00 call 680 <write> 6a: 83 c4 10 add $0x10,%esp } p = q+1; 6d: 8b 45 e8 mov -0x18(%ebp),%eax 70: 83 c0 01 add $0x1,%eax 73: 89 45 f0 mov %eax,-0x10(%ebp) m = 0; while((n = read(fd, buf+m, sizeof(buf)-m-1)) > 0){ m += n; buf[m] = '\0'; p = buf; while((q = strchr(p, '\n')) != 0){ 76: 83 ec 08 sub $0x8,%esp 79: 6a 0a push $0xa 7b: ff 75 f0 pushl -0x10(%ebp) 7e: e8 89 03 00 00 call 40c <strchr> 83: 83 c4 10 add $0x10,%esp 86: 89 45 e8 mov %eax,-0x18(%ebp) 89: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) 8d: 75 9d jne 2c <grep+0x2c> *q = '\n'; write(1, p, q+1 - p); } p = q+1; } if(p == buf) 8f: 81 7d f0 60 0f 00 00 cmpl $0xf60,-0x10(%ebp) 96: 75 07 jne 9f <grep+0x9f> m = 0; 98: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) if(m > 0){ 9f: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) a3: 7e 23 jle c8 <grep+0xc8> m -= p - buf; a5: 8b 45 f0 mov -0x10(%ebp),%eax a8: ba 60 0f 00 00 mov $0xf60,%edx ad: 29 d0 sub %edx,%eax af: 29 45 f4 sub %eax,-0xc(%ebp) memmove(buf, p, m); b2: 83 ec 04 sub $0x4,%esp b5: ff 75 f4 pushl -0xc(%ebp) b8: ff 75 f0 pushl -0x10(%ebp) bb: 68 60 0f 00 00 push $0xf60 c0: e8 56 05 00 00 call 61b <memmove> c5: 83 c4 10 add $0x10,%esp { int n, m; char *p, *q; m = 0; while((n = read(fd, buf+m, sizeof(buf)-m-1)) > 0){ c8: 8b 45 f4 mov -0xc(%ebp),%eax cb: ba ff 03 00 00 mov $0x3ff,%edx d0: 29 c2 sub %eax,%edx d2: 89 d0 mov %edx,%eax d4: 89 c2 mov %eax,%edx d6: 8b 45 f4 mov -0xc(%ebp),%eax d9: 05 60 0f 00 00 add $0xf60,%eax de: 83 ec 04 sub $0x4,%esp e1: 52 push %edx e2: 50 push %eax e3: ff 75 0c pushl 0xc(%ebp) e6: e8 8d 05 00 00 call 678 <read> eb: 83 c4 10 add $0x10,%esp ee: 89 45 ec mov %eax,-0x14(%ebp) f1: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) f5: 0f 8f 17 ff ff ff jg 12 <grep+0x12> if(m > 0){ m -= p - buf; memmove(buf, p, m); } } } fb: 90 nop fc: c9 leave fd: c3 ret 000000fe <main>: int main(int argc, char *argv[]) { fe: 8d 4c 24 04 lea 0x4(%esp),%ecx 102: 83 e4 f0 and $0xfffffff0,%esp 105: ff 71 fc pushl -0x4(%ecx) 108: 55 push %ebp 109: 89 e5 mov %esp,%ebp 10b: 53 push %ebx 10c: 51 push %ecx 10d: 83 ec 10 sub $0x10,%esp 110: 89 cb mov %ecx,%ebx int fd, i; char *pattern; if(argc <= 1){ 112: 83 3b 01 cmpl $0x1,(%ebx) 115: 7f 17 jg 12e <main+0x30> printf(2, "usage: grep pattern [file ...]\n"); 117: 83 ec 08 sub $0x8,%esp 11a: 68 f0 0b 00 00 push $0xbf0 11f: 6a 02 push $0x2 121: e8 11 07 00 00 call 837 <printf> 126: 83 c4 10 add $0x10,%esp exit(); 129: e8 32 05 00 00 call 660 <exit> } pattern = argv[1]; 12e: 8b 43 04 mov 0x4(%ebx),%eax 131: 8b 40 04 mov 0x4(%eax),%eax 134: 89 45 f0 mov %eax,-0x10(%ebp) if(argc <= 2){ 137: 83 3b 02 cmpl $0x2,(%ebx) 13a: 7f 15 jg 151 <main+0x53> grep(pattern, 0); 13c: 83 ec 08 sub $0x8,%esp 13f: 6a 00 push $0x0 141: ff 75 f0 pushl -0x10(%ebp) 144: e8 b7 fe ff ff call 0 <grep> 149: 83 c4 10 add $0x10,%esp exit(); 14c: e8 0f 05 00 00 call 660 <exit> } for(i = 2; i < argc; i++){ 151: c7 45 f4 02 00 00 00 movl $0x2,-0xc(%ebp) 158: eb 74 jmp 1ce <main+0xd0> if((fd = open(argv[i], 0)) < 0){ 15a: 8b 45 f4 mov -0xc(%ebp),%eax 15d: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 164: 8b 43 04 mov 0x4(%ebx),%eax 167: 01 d0 add %edx,%eax 169: 8b 00 mov (%eax),%eax 16b: 83 ec 08 sub $0x8,%esp 16e: 6a 00 push $0x0 170: 50 push %eax 171: e8 2a 05 00 00 call 6a0 <open> 176: 83 c4 10 add $0x10,%esp 179: 89 45 ec mov %eax,-0x14(%ebp) 17c: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 180: 79 29 jns 1ab <main+0xad> printf(1, "grep: cannot open %s\n", argv[i]); 182: 8b 45 f4 mov -0xc(%ebp),%eax 185: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 18c: 8b 43 04 mov 0x4(%ebx),%eax 18f: 01 d0 add %edx,%eax 191: 8b 00 mov (%eax),%eax 193: 83 ec 04 sub $0x4,%esp 196: 50 push %eax 197: 68 10 0c 00 00 push $0xc10 19c: 6a 01 push $0x1 19e: e8 94 06 00 00 call 837 <printf> 1a3: 83 c4 10 add $0x10,%esp exit(); 1a6: e8 b5 04 00 00 call 660 <exit> } grep(pattern, fd); 1ab: 83 ec 08 sub $0x8,%esp 1ae: ff 75 ec pushl -0x14(%ebp) 1b1: ff 75 f0 pushl -0x10(%ebp) 1b4: e8 47 fe ff ff call 0 <grep> 1b9: 83 c4 10 add $0x10,%esp close(fd); 1bc: 83 ec 0c sub $0xc,%esp 1bf: ff 75 ec pushl -0x14(%ebp) 1c2: e8 c1 04 00 00 call 688 <close> 1c7: 83 c4 10 add $0x10,%esp if(argc <= 2){ grep(pattern, 0); exit(); } for(i = 2; i < argc; i++){ 1ca: 83 45 f4 01 addl $0x1,-0xc(%ebp) 1ce: 8b 45 f4 mov -0xc(%ebp),%eax 1d1: 3b 03 cmp (%ebx),%eax 1d3: 7c 85 jl 15a <main+0x5c> exit(); } grep(pattern, fd); close(fd); } exit(); 1d5: e8 86 04 00 00 call 660 <exit> 000001da <match>: int matchhere(char*, char*); int matchstar(int, char*, char*); int match(char *re, char *text) { 1da: 55 push %ebp 1db: 89 e5 mov %esp,%ebp 1dd: 83 ec 08 sub $0x8,%esp if(re[0] == '^') 1e0: 8b 45 08 mov 0x8(%ebp),%eax 1e3: 0f b6 00 movzbl (%eax),%eax 1e6: 3c 5e cmp $0x5e,%al 1e8: 75 17 jne 201 <match+0x27> return matchhere(re+1, text); 1ea: 8b 45 08 mov 0x8(%ebp),%eax 1ed: 83 c0 01 add $0x1,%eax 1f0: 83 ec 08 sub $0x8,%esp 1f3: ff 75 0c pushl 0xc(%ebp) 1f6: 50 push %eax 1f7: e8 38 00 00 00 call 234 <matchhere> 1fc: 83 c4 10 add $0x10,%esp 1ff: eb 31 jmp 232 <match+0x58> do{ // must look at empty string if(matchhere(re, text)) 201: 83 ec 08 sub $0x8,%esp 204: ff 75 0c pushl 0xc(%ebp) 207: ff 75 08 pushl 0x8(%ebp) 20a: e8 25 00 00 00 call 234 <matchhere> 20f: 83 c4 10 add $0x10,%esp 212: 85 c0 test %eax,%eax 214: 74 07 je 21d <match+0x43> return 1; 216: b8 01 00 00 00 mov $0x1,%eax 21b: eb 15 jmp 232 <match+0x58> }while(*text++ != '\0'); 21d: 8b 45 0c mov 0xc(%ebp),%eax 220: 8d 50 01 lea 0x1(%eax),%edx 223: 89 55 0c mov %edx,0xc(%ebp) 226: 0f b6 00 movzbl (%eax),%eax 229: 84 c0 test %al,%al 22b: 75 d4 jne 201 <match+0x27> return 0; 22d: b8 00 00 00 00 mov $0x0,%eax } 232: c9 leave 233: c3 ret 00000234 <matchhere>: // matchhere: search for re at beginning of text int matchhere(char *re, char *text) { 234: 55 push %ebp 235: 89 e5 mov %esp,%ebp 237: 83 ec 08 sub $0x8,%esp if(re[0] == '\0') 23a: 8b 45 08 mov 0x8(%ebp),%eax 23d: 0f b6 00 movzbl (%eax),%eax 240: 84 c0 test %al,%al 242: 75 0a jne 24e <matchhere+0x1a> return 1; 244: b8 01 00 00 00 mov $0x1,%eax 249: e9 99 00 00 00 jmp 2e7 <matchhere+0xb3> if(re[1] == '*') 24e: 8b 45 08 mov 0x8(%ebp),%eax 251: 83 c0 01 add $0x1,%eax 254: 0f b6 00 movzbl (%eax),%eax 257: 3c 2a cmp $0x2a,%al 259: 75 21 jne 27c <matchhere+0x48> return matchstar(re[0], re+2, text); 25b: 8b 45 08 mov 0x8(%ebp),%eax 25e: 8d 50 02 lea 0x2(%eax),%edx 261: 8b 45 08 mov 0x8(%ebp),%eax 264: 0f b6 00 movzbl (%eax),%eax 267: 0f be c0 movsbl %al,%eax 26a: 83 ec 04 sub $0x4,%esp 26d: ff 75 0c pushl 0xc(%ebp) 270: 52 push %edx 271: 50 push %eax 272: e8 72 00 00 00 call 2e9 <matchstar> 277: 83 c4 10 add $0x10,%esp 27a: eb 6b jmp 2e7 <matchhere+0xb3> if(re[0] == '$' && re[1] == '\0') 27c: 8b 45 08 mov 0x8(%ebp),%eax 27f: 0f b6 00 movzbl (%eax),%eax 282: 3c 24 cmp $0x24,%al 284: 75 1d jne 2a3 <matchhere+0x6f> 286: 8b 45 08 mov 0x8(%ebp),%eax 289: 83 c0 01 add $0x1,%eax 28c: 0f b6 00 movzbl (%eax),%eax 28f: 84 c0 test %al,%al 291: 75 10 jne 2a3 <matchhere+0x6f> return *text == '\0'; 293: 8b 45 0c mov 0xc(%ebp),%eax 296: 0f b6 00 movzbl (%eax),%eax 299: 84 c0 test %al,%al 29b: 0f 94 c0 sete %al 29e: 0f b6 c0 movzbl %al,%eax 2a1: eb 44 jmp 2e7 <matchhere+0xb3> if(*text!='\0' && (re[0]=='.' || re[0]==*text)) 2a3: 8b 45 0c mov 0xc(%ebp),%eax 2a6: 0f b6 00 movzbl (%eax),%eax 2a9: 84 c0 test %al,%al 2ab: 74 35 je 2e2 <matchhere+0xae> 2ad: 8b 45 08 mov 0x8(%ebp),%eax 2b0: 0f b6 00 movzbl (%eax),%eax 2b3: 3c 2e cmp $0x2e,%al 2b5: 74 10 je 2c7 <matchhere+0x93> 2b7: 8b 45 08 mov 0x8(%ebp),%eax 2ba: 0f b6 10 movzbl (%eax),%edx 2bd: 8b 45 0c mov 0xc(%ebp),%eax 2c0: 0f b6 00 movzbl (%eax),%eax 2c3: 38 c2 cmp %al,%dl 2c5: 75 1b jne 2e2 <matchhere+0xae> return matchhere(re+1, text+1); 2c7: 8b 45 0c mov 0xc(%ebp),%eax 2ca: 8d 50 01 lea 0x1(%eax),%edx 2cd: 8b 45 08 mov 0x8(%ebp),%eax 2d0: 83 c0 01 add $0x1,%eax 2d3: 83 ec 08 sub $0x8,%esp 2d6: 52 push %edx 2d7: 50 push %eax 2d8: e8 57 ff ff ff call 234 <matchhere> 2dd: 83 c4 10 add $0x10,%esp 2e0: eb 05 jmp 2e7 <matchhere+0xb3> return 0; 2e2: b8 00 00 00 00 mov $0x0,%eax } 2e7: c9 leave 2e8: c3 ret 000002e9 <matchstar>: // matchstar: search for c*re at beginning of text int matchstar(int c, char *re, char *text) { 2e9: 55 push %ebp 2ea: 89 e5 mov %esp,%ebp 2ec: 83 ec 08 sub $0x8,%esp do{ // a * matches zero or more instances if(matchhere(re, text)) 2ef: 83 ec 08 sub $0x8,%esp 2f2: ff 75 10 pushl 0x10(%ebp) 2f5: ff 75 0c pushl 0xc(%ebp) 2f8: e8 37 ff ff ff call 234 <matchhere> 2fd: 83 c4 10 add $0x10,%esp 300: 85 c0 test %eax,%eax 302: 74 07 je 30b <matchstar+0x22> return 1; 304: b8 01 00 00 00 mov $0x1,%eax 309: eb 29 jmp 334 <matchstar+0x4b> }while(*text!='\0' && (*text++==c || c=='.')); 30b: 8b 45 10 mov 0x10(%ebp),%eax 30e: 0f b6 00 movzbl (%eax),%eax 311: 84 c0 test %al,%al 313: 74 1a je 32f <matchstar+0x46> 315: 8b 45 10 mov 0x10(%ebp),%eax 318: 8d 50 01 lea 0x1(%eax),%edx 31b: 89 55 10 mov %edx,0x10(%ebp) 31e: 0f b6 00 movzbl (%eax),%eax 321: 0f be c0 movsbl %al,%eax 324: 3b 45 08 cmp 0x8(%ebp),%eax 327: 74 c6 je 2ef <matchstar+0x6> 329: 83 7d 08 2e cmpl $0x2e,0x8(%ebp) 32d: 74 c0 je 2ef <matchstar+0x6> return 0; 32f: b8 00 00 00 00 mov $0x0,%eax } 334: c9 leave 335: c3 ret 00000336 <stosb>: "cc"); } static inline void stosb(void *addr, int data, int cnt) { 336: 55 push %ebp 337: 89 e5 mov %esp,%ebp 339: 57 push %edi 33a: 53 push %ebx asm volatile("cld; rep stosb" : 33b: 8b 4d 08 mov 0x8(%ebp),%ecx 33e: 8b 55 10 mov 0x10(%ebp),%edx 341: 8b 45 0c mov 0xc(%ebp),%eax 344: 89 cb mov %ecx,%ebx 346: 89 df mov %ebx,%edi 348: 89 d1 mov %edx,%ecx 34a: fc cld 34b: f3 aa rep stos %al,%es:(%edi) 34d: 89 ca mov %ecx,%edx 34f: 89 fb mov %edi,%ebx 351: 89 5d 08 mov %ebx,0x8(%ebp) 354: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 357: 90 nop 358: 5b pop %ebx 359: 5f pop %edi 35a: 5d pop %ebp 35b: c3 ret 0000035c <strcpy>: #include "user.h" #include "x86.h" char* strcpy(char *s, char *t) { 35c: 55 push %ebp 35d: 89 e5 mov %esp,%ebp 35f: 83 ec 10 sub $0x10,%esp char *os; os = s; 362: 8b 45 08 mov 0x8(%ebp),%eax 365: 89 45 fc mov %eax,-0x4(%ebp) while((*s++ = *t++) != 0) 368: 90 nop 369: 8b 45 08 mov 0x8(%ebp),%eax 36c: 8d 50 01 lea 0x1(%eax),%edx 36f: 89 55 08 mov %edx,0x8(%ebp) 372: 8b 55 0c mov 0xc(%ebp),%edx 375: 8d 4a 01 lea 0x1(%edx),%ecx 378: 89 4d 0c mov %ecx,0xc(%ebp) 37b: 0f b6 12 movzbl (%edx),%edx 37e: 88 10 mov %dl,(%eax) 380: 0f b6 00 movzbl (%eax),%eax 383: 84 c0 test %al,%al 385: 75 e2 jne 369 <strcpy+0xd> ; return os; 387: 8b 45 fc mov -0x4(%ebp),%eax } 38a: c9 leave 38b: c3 ret 0000038c <strcmp>: int strcmp(const char *p, const char *q) { 38c: 55 push %ebp 38d: 89 e5 mov %esp,%ebp while(*p && *p == *q) 38f: eb 08 jmp 399 <strcmp+0xd> p++, q++; 391: 83 45 08 01 addl $0x1,0x8(%ebp) 395: 83 45 0c 01 addl $0x1,0xc(%ebp) } int strcmp(const char *p, const char *q) { while(*p && *p == *q) 399: 8b 45 08 mov 0x8(%ebp),%eax 39c: 0f b6 00 movzbl (%eax),%eax 39f: 84 c0 test %al,%al 3a1: 74 10 je 3b3 <strcmp+0x27> 3a3: 8b 45 08 mov 0x8(%ebp),%eax 3a6: 0f b6 10 movzbl (%eax),%edx 3a9: 8b 45 0c mov 0xc(%ebp),%eax 3ac: 0f b6 00 movzbl (%eax),%eax 3af: 38 c2 cmp %al,%dl 3b1: 74 de je 391 <strcmp+0x5> p++, q++; return (uchar)*p - (uchar)*q; 3b3: 8b 45 08 mov 0x8(%ebp),%eax 3b6: 0f b6 00 movzbl (%eax),%eax 3b9: 0f b6 d0 movzbl %al,%edx 3bc: 8b 45 0c mov 0xc(%ebp),%eax 3bf: 0f b6 00 movzbl (%eax),%eax 3c2: 0f b6 c0 movzbl %al,%eax 3c5: 29 c2 sub %eax,%edx 3c7: 89 d0 mov %edx,%eax } 3c9: 5d pop %ebp 3ca: c3 ret 000003cb <strlen>: uint strlen(char *s) { 3cb: 55 push %ebp 3cc: 89 e5 mov %esp,%ebp 3ce: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) 3d1: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 3d8: eb 04 jmp 3de <strlen+0x13> 3da: 83 45 fc 01 addl $0x1,-0x4(%ebp) 3de: 8b 55 fc mov -0x4(%ebp),%edx 3e1: 8b 45 08 mov 0x8(%ebp),%eax 3e4: 01 d0 add %edx,%eax 3e6: 0f b6 00 movzbl (%eax),%eax 3e9: 84 c0 test %al,%al 3eb: 75 ed jne 3da <strlen+0xf> ; return n; 3ed: 8b 45 fc mov -0x4(%ebp),%eax } 3f0: c9 leave 3f1: c3 ret 000003f2 <memset>: void* memset(void *dst, int c, uint n) { 3f2: 55 push %ebp 3f3: 89 e5 mov %esp,%ebp stosb(dst, c, n); 3f5: 8b 45 10 mov 0x10(%ebp),%eax 3f8: 50 push %eax 3f9: ff 75 0c pushl 0xc(%ebp) 3fc: ff 75 08 pushl 0x8(%ebp) 3ff: e8 32 ff ff ff call 336 <stosb> 404: 83 c4 0c add $0xc,%esp return dst; 407: 8b 45 08 mov 0x8(%ebp),%eax } 40a: c9 leave 40b: c3 ret 0000040c <strchr>: char* strchr(const char *s, char c) { 40c: 55 push %ebp 40d: 89 e5 mov %esp,%ebp 40f: 83 ec 04 sub $0x4,%esp 412: 8b 45 0c mov 0xc(%ebp),%eax 415: 88 45 fc mov %al,-0x4(%ebp) for(; *s; s++) 418: eb 14 jmp 42e <strchr+0x22> if(*s == c) 41a: 8b 45 08 mov 0x8(%ebp),%eax 41d: 0f b6 00 movzbl (%eax),%eax 420: 3a 45 fc cmp -0x4(%ebp),%al 423: 75 05 jne 42a <strchr+0x1e> return (char*)s; 425: 8b 45 08 mov 0x8(%ebp),%eax 428: eb 13 jmp 43d <strchr+0x31> } char* strchr(const char *s, char c) { for(; *s; s++) 42a: 83 45 08 01 addl $0x1,0x8(%ebp) 42e: 8b 45 08 mov 0x8(%ebp),%eax 431: 0f b6 00 movzbl (%eax),%eax 434: 84 c0 test %al,%al 436: 75 e2 jne 41a <strchr+0xe> if(*s == c) return (char*)s; return 0; 438: b8 00 00 00 00 mov $0x0,%eax } 43d: c9 leave 43e: c3 ret 0000043f <gets>: char* gets(char *buf, int max) { 43f: 55 push %ebp 440: 89 e5 mov %esp,%ebp 442: 83 ec 18 sub $0x18,%esp int i, cc; char c; for(i=0; i+1 < max; ){ 445: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 44c: eb 42 jmp 490 <gets+0x51> cc = read(0, &c, 1); 44e: 83 ec 04 sub $0x4,%esp 451: 6a 01 push $0x1 453: 8d 45 ef lea -0x11(%ebp),%eax 456: 50 push %eax 457: 6a 00 push $0x0 459: e8 1a 02 00 00 call 678 <read> 45e: 83 c4 10 add $0x10,%esp 461: 89 45 f0 mov %eax,-0x10(%ebp) if(cc < 1) 464: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 468: 7e 33 jle 49d <gets+0x5e> break; buf[i++] = c; 46a: 8b 45 f4 mov -0xc(%ebp),%eax 46d: 8d 50 01 lea 0x1(%eax),%edx 470: 89 55 f4 mov %edx,-0xc(%ebp) 473: 89 c2 mov %eax,%edx 475: 8b 45 08 mov 0x8(%ebp),%eax 478: 01 c2 add %eax,%edx 47a: 0f b6 45 ef movzbl -0x11(%ebp),%eax 47e: 88 02 mov %al,(%edx) if(c == '\n' || c == '\r') 480: 0f b6 45 ef movzbl -0x11(%ebp),%eax 484: 3c 0a cmp $0xa,%al 486: 74 16 je 49e <gets+0x5f> 488: 0f b6 45 ef movzbl -0x11(%ebp),%eax 48c: 3c 0d cmp $0xd,%al 48e: 74 0e je 49e <gets+0x5f> gets(char *buf, int max) { int i, cc; char c; for(i=0; i+1 < max; ){ 490: 8b 45 f4 mov -0xc(%ebp),%eax 493: 83 c0 01 add $0x1,%eax 496: 3b 45 0c cmp 0xc(%ebp),%eax 499: 7c b3 jl 44e <gets+0xf> 49b: eb 01 jmp 49e <gets+0x5f> cc = read(0, &c, 1); if(cc < 1) break; 49d: 90 nop buf[i++] = c; if(c == '\n' || c == '\r') break; } buf[i] = '\0'; 49e: 8b 55 f4 mov -0xc(%ebp),%edx 4a1: 8b 45 08 mov 0x8(%ebp),%eax 4a4: 01 d0 add %edx,%eax 4a6: c6 00 00 movb $0x0,(%eax) return buf; 4a9: 8b 45 08 mov 0x8(%ebp),%eax } 4ac: c9 leave 4ad: c3 ret 000004ae <stat>: int stat(char *n, struct stat *st) { 4ae: 55 push %ebp 4af: 89 e5 mov %esp,%ebp 4b1: 83 ec 18 sub $0x18,%esp int fd; int r; fd = open(n, O_RDONLY); 4b4: 83 ec 08 sub $0x8,%esp 4b7: 6a 00 push $0x0 4b9: ff 75 08 pushl 0x8(%ebp) 4bc: e8 df 01 00 00 call 6a0 <open> 4c1: 83 c4 10 add $0x10,%esp 4c4: 89 45 f4 mov %eax,-0xc(%ebp) if(fd < 0) 4c7: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 4cb: 79 07 jns 4d4 <stat+0x26> return -1; 4cd: b8 ff ff ff ff mov $0xffffffff,%eax 4d2: eb 25 jmp 4f9 <stat+0x4b> r = fstat(fd, st); 4d4: 83 ec 08 sub $0x8,%esp 4d7: ff 75 0c pushl 0xc(%ebp) 4da: ff 75 f4 pushl -0xc(%ebp) 4dd: e8 d6 01 00 00 call 6b8 <fstat> 4e2: 83 c4 10 add $0x10,%esp 4e5: 89 45 f0 mov %eax,-0x10(%ebp) close(fd); 4e8: 83 ec 0c sub $0xc,%esp 4eb: ff 75 f4 pushl -0xc(%ebp) 4ee: e8 95 01 00 00 call 688 <close> 4f3: 83 c4 10 add $0x10,%esp return r; 4f6: 8b 45 f0 mov -0x10(%ebp),%eax } 4f9: c9 leave 4fa: c3 ret 000004fb <atoi>: int atoi(const char *s) { 4fb: 55 push %ebp 4fc: 89 e5 mov %esp,%ebp 4fe: 83 ec 10 sub $0x10,%esp int n, sign; n = 0; 501: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) while (*s == ' ') s++; 508: eb 04 jmp 50e <atoi+0x13> 50a: 83 45 08 01 addl $0x1,0x8(%ebp) 50e: 8b 45 08 mov 0x8(%ebp),%eax 511: 0f b6 00 movzbl (%eax),%eax 514: 3c 20 cmp $0x20,%al 516: 74 f2 je 50a <atoi+0xf> sign = (*s == '-') ? -1 : 1; 518: 8b 45 08 mov 0x8(%ebp),%eax 51b: 0f b6 00 movzbl (%eax),%eax 51e: 3c 2d cmp $0x2d,%al 520: 75 07 jne 529 <atoi+0x2e> 522: b8 ff ff ff ff mov $0xffffffff,%eax 527: eb 05 jmp 52e <atoi+0x33> 529: b8 01 00 00 00 mov $0x1,%eax 52e: 89 45 f8 mov %eax,-0x8(%ebp) if (*s == '+' || *s == '-') 531: 8b 45 08 mov 0x8(%ebp),%eax 534: 0f b6 00 movzbl (%eax),%eax 537: 3c 2b cmp $0x2b,%al 539: 74 0a je 545 <atoi+0x4a> 53b: 8b 45 08 mov 0x8(%ebp),%eax 53e: 0f b6 00 movzbl (%eax),%eax 541: 3c 2d cmp $0x2d,%al 543: 75 2b jne 570 <atoi+0x75> s++; 545: 83 45 08 01 addl $0x1,0x8(%ebp) while('0' <= *s && *s <= '9') 549: eb 25 jmp 570 <atoi+0x75> n = n*10 + *s++ - '0'; 54b: 8b 55 fc mov -0x4(%ebp),%edx 54e: 89 d0 mov %edx,%eax 550: c1 e0 02 shl $0x2,%eax 553: 01 d0 add %edx,%eax 555: 01 c0 add %eax,%eax 557: 89 c1 mov %eax,%ecx 559: 8b 45 08 mov 0x8(%ebp),%eax 55c: 8d 50 01 lea 0x1(%eax),%edx 55f: 89 55 08 mov %edx,0x8(%ebp) 562: 0f b6 00 movzbl (%eax),%eax 565: 0f be c0 movsbl %al,%eax 568: 01 c8 add %ecx,%eax 56a: 83 e8 30 sub $0x30,%eax 56d: 89 45 fc mov %eax,-0x4(%ebp) n = 0; while (*s == ' ') s++; sign = (*s == '-') ? -1 : 1; if (*s == '+' || *s == '-') s++; while('0' <= *s && *s <= '9') 570: 8b 45 08 mov 0x8(%ebp),%eax 573: 0f b6 00 movzbl (%eax),%eax 576: 3c 2f cmp $0x2f,%al 578: 7e 0a jle 584 <atoi+0x89> 57a: 8b 45 08 mov 0x8(%ebp),%eax 57d: 0f b6 00 movzbl (%eax),%eax 580: 3c 39 cmp $0x39,%al 582: 7e c7 jle 54b <atoi+0x50> n = n*10 + *s++ - '0'; return sign*n; 584: 8b 45 f8 mov -0x8(%ebp),%eax 587: 0f af 45 fc imul -0x4(%ebp),%eax } 58b: c9 leave 58c: c3 ret 0000058d <atoo>: int atoo(const char *s) { 58d: 55 push %ebp 58e: 89 e5 mov %esp,%ebp 590: 83 ec 10 sub $0x10,%esp int n, sign; n = 0; 593: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) while (*s == ' ') s++; 59a: eb 04 jmp 5a0 <atoo+0x13> 59c: 83 45 08 01 addl $0x1,0x8(%ebp) 5a0: 8b 45 08 mov 0x8(%ebp),%eax 5a3: 0f b6 00 movzbl (%eax),%eax 5a6: 3c 20 cmp $0x20,%al 5a8: 74 f2 je 59c <atoo+0xf> sign = (*s == '-') ? -1 : 1; 5aa: 8b 45 08 mov 0x8(%ebp),%eax 5ad: 0f b6 00 movzbl (%eax),%eax 5b0: 3c 2d cmp $0x2d,%al 5b2: 75 07 jne 5bb <atoo+0x2e> 5b4: b8 ff ff ff ff mov $0xffffffff,%eax 5b9: eb 05 jmp 5c0 <atoo+0x33> 5bb: b8 01 00 00 00 mov $0x1,%eax 5c0: 89 45 f8 mov %eax,-0x8(%ebp) if (*s == '+' || *s == '-') 5c3: 8b 45 08 mov 0x8(%ebp),%eax 5c6: 0f b6 00 movzbl (%eax),%eax 5c9: 3c 2b cmp $0x2b,%al 5cb: 74 0a je 5d7 <atoo+0x4a> 5cd: 8b 45 08 mov 0x8(%ebp),%eax 5d0: 0f b6 00 movzbl (%eax),%eax 5d3: 3c 2d cmp $0x2d,%al 5d5: 75 27 jne 5fe <atoo+0x71> s++; 5d7: 83 45 08 01 addl $0x1,0x8(%ebp) while('0' <= *s && *s <= '7') 5db: eb 21 jmp 5fe <atoo+0x71> n = n*8 + *s++ - '0'; 5dd: 8b 45 fc mov -0x4(%ebp),%eax 5e0: 8d 0c c5 00 00 00 00 lea 0x0(,%eax,8),%ecx 5e7: 8b 45 08 mov 0x8(%ebp),%eax 5ea: 8d 50 01 lea 0x1(%eax),%edx 5ed: 89 55 08 mov %edx,0x8(%ebp) 5f0: 0f b6 00 movzbl (%eax),%eax 5f3: 0f be c0 movsbl %al,%eax 5f6: 01 c8 add %ecx,%eax 5f8: 83 e8 30 sub $0x30,%eax 5fb: 89 45 fc mov %eax,-0x4(%ebp) n = 0; while (*s == ' ') s++; sign = (*s == '-') ? -1 : 1; if (*s == '+' || *s == '-') s++; while('0' <= *s && *s <= '7') 5fe: 8b 45 08 mov 0x8(%ebp),%eax 601: 0f b6 00 movzbl (%eax),%eax 604: 3c 2f cmp $0x2f,%al 606: 7e 0a jle 612 <atoo+0x85> 608: 8b 45 08 mov 0x8(%ebp),%eax 60b: 0f b6 00 movzbl (%eax),%eax 60e: 3c 37 cmp $0x37,%al 610: 7e cb jle 5dd <atoo+0x50> n = n*8 + *s++ - '0'; return sign*n; 612: 8b 45 f8 mov -0x8(%ebp),%eax 615: 0f af 45 fc imul -0x4(%ebp),%eax } 619: c9 leave 61a: c3 ret 0000061b <memmove>: void* memmove(void *vdst, void *vsrc, int n) { 61b: 55 push %ebp 61c: 89 e5 mov %esp,%ebp 61e: 83 ec 10 sub $0x10,%esp char *dst, *src; dst = vdst; 621: 8b 45 08 mov 0x8(%ebp),%eax 624: 89 45 fc mov %eax,-0x4(%ebp) src = vsrc; 627: 8b 45 0c mov 0xc(%ebp),%eax 62a: 89 45 f8 mov %eax,-0x8(%ebp) while(n-- > 0) 62d: eb 17 jmp 646 <memmove+0x2b> *dst++ = *src++; 62f: 8b 45 fc mov -0x4(%ebp),%eax 632: 8d 50 01 lea 0x1(%eax),%edx 635: 89 55 fc mov %edx,-0x4(%ebp) 638: 8b 55 f8 mov -0x8(%ebp),%edx 63b: 8d 4a 01 lea 0x1(%edx),%ecx 63e: 89 4d f8 mov %ecx,-0x8(%ebp) 641: 0f b6 12 movzbl (%edx),%edx 644: 88 10 mov %dl,(%eax) { char *dst, *src; dst = vdst; src = vsrc; while(n-- > 0) 646: 8b 45 10 mov 0x10(%ebp),%eax 649: 8d 50 ff lea -0x1(%eax),%edx 64c: 89 55 10 mov %edx,0x10(%ebp) 64f: 85 c0 test %eax,%eax 651: 7f dc jg 62f <memmove+0x14> *dst++ = *src++; return vdst; 653: 8b 45 08 mov 0x8(%ebp),%eax } 656: c9 leave 657: c3 ret 00000658 <fork>: name: \ movl $SYS_ ## name, %eax; \ int $T_SYSCALL; \ ret SYSCALL(fork) 658: b8 01 00 00 00 mov $0x1,%eax 65d: cd 40 int $0x40 65f: c3 ret 00000660 <exit>: SYSCALL(exit) 660: b8 02 00 00 00 mov $0x2,%eax 665: cd 40 int $0x40 667: c3 ret 00000668 <wait>: SYSCALL(wait) 668: b8 03 00 00 00 mov $0x3,%eax 66d: cd 40 int $0x40 66f: c3 ret 00000670 <pipe>: SYSCALL(pipe) 670: b8 04 00 00 00 mov $0x4,%eax 675: cd 40 int $0x40 677: c3 ret 00000678 <read>: SYSCALL(read) 678: b8 05 00 00 00 mov $0x5,%eax 67d: cd 40 int $0x40 67f: c3 ret 00000680 <write>: SYSCALL(write) 680: b8 10 00 00 00 mov $0x10,%eax 685: cd 40 int $0x40 687: c3 ret 00000688 <close>: SYSCALL(close) 688: b8 15 00 00 00 mov $0x15,%eax 68d: cd 40 int $0x40 68f: c3 ret 00000690 <kill>: SYSCALL(kill) 690: b8 06 00 00 00 mov $0x6,%eax 695: cd 40 int $0x40 697: c3 ret 00000698 <exec>: SYSCALL(exec) 698: b8 07 00 00 00 mov $0x7,%eax 69d: cd 40 int $0x40 69f: c3 ret 000006a0 <open>: SYSCALL(open) 6a0: b8 0f 00 00 00 mov $0xf,%eax 6a5: cd 40 int $0x40 6a7: c3 ret 000006a8 <mknod>: SYSCALL(mknod) 6a8: b8 11 00 00 00 mov $0x11,%eax 6ad: cd 40 int $0x40 6af: c3 ret 000006b0 <unlink>: SYSCALL(unlink) 6b0: b8 12 00 00 00 mov $0x12,%eax 6b5: cd 40 int $0x40 6b7: c3 ret 000006b8 <fstat>: SYSCALL(fstat) 6b8: b8 08 00 00 00 mov $0x8,%eax 6bd: cd 40 int $0x40 6bf: c3 ret 000006c0 <link>: SYSCALL(link) 6c0: b8 13 00 00 00 mov $0x13,%eax 6c5: cd 40 int $0x40 6c7: c3 ret 000006c8 <mkdir>: SYSCALL(mkdir) 6c8: b8 14 00 00 00 mov $0x14,%eax 6cd: cd 40 int $0x40 6cf: c3 ret 000006d0 <chdir>: SYSCALL(chdir) 6d0: b8 09 00 00 00 mov $0x9,%eax 6d5: cd 40 int $0x40 6d7: c3 ret 000006d8 <dup>: SYSCALL(dup) 6d8: b8 0a 00 00 00 mov $0xa,%eax 6dd: cd 40 int $0x40 6df: c3 ret 000006e0 <getpid>: SYSCALL(getpid) 6e0: b8 0b 00 00 00 mov $0xb,%eax 6e5: cd 40 int $0x40 6e7: c3 ret 000006e8 <sbrk>: SYSCALL(sbrk) 6e8: b8 0c 00 00 00 mov $0xc,%eax 6ed: cd 40 int $0x40 6ef: c3 ret 000006f0 <sleep>: SYSCALL(sleep) 6f0: b8 0d 00 00 00 mov $0xd,%eax 6f5: cd 40 int $0x40 6f7: c3 ret 000006f8 <uptime>: SYSCALL(uptime) 6f8: b8 0e 00 00 00 mov $0xe,%eax 6fd: cd 40 int $0x40 6ff: c3 ret 00000700 <halt>: SYSCALL(halt) 700: b8 16 00 00 00 mov $0x16,%eax 705: cd 40 int $0x40 707: c3 ret 00000708 <date>: SYSCALL(date) 708: b8 17 00 00 00 mov $0x17,%eax 70d: cd 40 int $0x40 70f: c3 ret 00000710 <getuid>: SYSCALL(getuid) 710: b8 18 00 00 00 mov $0x18,%eax 715: cd 40 int $0x40 717: c3 ret 00000718 <getgid>: SYSCALL(getgid) 718: b8 19 00 00 00 mov $0x19,%eax 71d: cd 40 int $0x40 71f: c3 ret 00000720 <getppid>: SYSCALL(getppid) 720: b8 1a 00 00 00 mov $0x1a,%eax 725: cd 40 int $0x40 727: c3 ret 00000728 <setuid>: SYSCALL(setuid) 728: b8 1b 00 00 00 mov $0x1b,%eax 72d: cd 40 int $0x40 72f: c3 ret 00000730 <setgid>: SYSCALL(setgid) 730: b8 1c 00 00 00 mov $0x1c,%eax 735: cd 40 int $0x40 737: c3 ret 00000738 <getprocs>: SYSCALL(getprocs) 738: b8 1d 00 00 00 mov $0x1d,%eax 73d: cd 40 int $0x40 73f: c3 ret 00000740 <setpriority>: SYSCALL(setpriority) 740: b8 1e 00 00 00 mov $0x1e,%eax 745: cd 40 int $0x40 747: c3 ret 00000748 <chmod>: SYSCALL(chmod) 748: b8 1f 00 00 00 mov $0x1f,%eax 74d: cd 40 int $0x40 74f: c3 ret 00000750 <chown>: SYSCALL(chown) 750: b8 20 00 00 00 mov $0x20,%eax 755: cd 40 int $0x40 757: c3 ret 00000758 <chgrp>: SYSCALL(chgrp) 758: b8 21 00 00 00 mov $0x21,%eax 75d: cd 40 int $0x40 75f: c3 ret 00000760 <putc>: #include "stat.h" #include "user.h" static void putc(int fd, char c) { 760: 55 push %ebp 761: 89 e5 mov %esp,%ebp 763: 83 ec 18 sub $0x18,%esp 766: 8b 45 0c mov 0xc(%ebp),%eax 769: 88 45 f4 mov %al,-0xc(%ebp) write(fd, &c, 1); 76c: 83 ec 04 sub $0x4,%esp 76f: 6a 01 push $0x1 771: 8d 45 f4 lea -0xc(%ebp),%eax 774: 50 push %eax 775: ff 75 08 pushl 0x8(%ebp) 778: e8 03 ff ff ff call 680 <write> 77d: 83 c4 10 add $0x10,%esp } 780: 90 nop 781: c9 leave 782: c3 ret 00000783 <printint>: static void printint(int fd, int xx, int base, int sgn) { 783: 55 push %ebp 784: 89 e5 mov %esp,%ebp 786: 53 push %ebx 787: 83 ec 24 sub $0x24,%esp static char digits[] = "0123456789ABCDEF"; char buf[16]; int i, neg; uint x; neg = 0; 78a: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) if(sgn && xx < 0){ 791: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 795: 74 17 je 7ae <printint+0x2b> 797: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 79b: 79 11 jns 7ae <printint+0x2b> neg = 1; 79d: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) x = -xx; 7a4: 8b 45 0c mov 0xc(%ebp),%eax 7a7: f7 d8 neg %eax 7a9: 89 45 ec mov %eax,-0x14(%ebp) 7ac: eb 06 jmp 7b4 <printint+0x31> } else { x = xx; 7ae: 8b 45 0c mov 0xc(%ebp),%eax 7b1: 89 45 ec mov %eax,-0x14(%ebp) } i = 0; 7b4: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) do{ buf[i++] = digits[x % base]; 7bb: 8b 4d f4 mov -0xc(%ebp),%ecx 7be: 8d 41 01 lea 0x1(%ecx),%eax 7c1: 89 45 f4 mov %eax,-0xc(%ebp) 7c4: 8b 5d 10 mov 0x10(%ebp),%ebx 7c7: 8b 45 ec mov -0x14(%ebp),%eax 7ca: ba 00 00 00 00 mov $0x0,%edx 7cf: f7 f3 div %ebx 7d1: 89 d0 mov %edx,%eax 7d3: 0f b6 80 1c 0f 00 00 movzbl 0xf1c(%eax),%eax 7da: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1) }while((x /= base) != 0); 7de: 8b 5d 10 mov 0x10(%ebp),%ebx 7e1: 8b 45 ec mov -0x14(%ebp),%eax 7e4: ba 00 00 00 00 mov $0x0,%edx 7e9: f7 f3 div %ebx 7eb: 89 45 ec mov %eax,-0x14(%ebp) 7ee: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 7f2: 75 c7 jne 7bb <printint+0x38> if(neg) 7f4: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 7f8: 74 2d je 827 <printint+0xa4> buf[i++] = '-'; 7fa: 8b 45 f4 mov -0xc(%ebp),%eax 7fd: 8d 50 01 lea 0x1(%eax),%edx 800: 89 55 f4 mov %edx,-0xc(%ebp) 803: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1) while(--i >= 0) 808: eb 1d jmp 827 <printint+0xa4> putc(fd, buf[i]); 80a: 8d 55 dc lea -0x24(%ebp),%edx 80d: 8b 45 f4 mov -0xc(%ebp),%eax 810: 01 d0 add %edx,%eax 812: 0f b6 00 movzbl (%eax),%eax 815: 0f be c0 movsbl %al,%eax 818: 83 ec 08 sub $0x8,%esp 81b: 50 push %eax 81c: ff 75 08 pushl 0x8(%ebp) 81f: e8 3c ff ff ff call 760 <putc> 824: 83 c4 10 add $0x10,%esp buf[i++] = digits[x % base]; }while((x /= base) != 0); if(neg) buf[i++] = '-'; while(--i >= 0) 827: 83 6d f4 01 subl $0x1,-0xc(%ebp) 82b: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 82f: 79 d9 jns 80a <printint+0x87> putc(fd, buf[i]); } 831: 90 nop 832: 8b 5d fc mov -0x4(%ebp),%ebx 835: c9 leave 836: c3 ret 00000837 <printf>: // Print to the given fd. Only understands %d, %x, %p, %s. void printf(int fd, char *fmt, ...) { 837: 55 push %ebp 838: 89 e5 mov %esp,%ebp 83a: 83 ec 28 sub $0x28,%esp char *s; int c, i, state; uint *ap; state = 0; 83d: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) ap = (uint*)(void*)&fmt + 1; 844: 8d 45 0c lea 0xc(%ebp),%eax 847: 83 c0 04 add $0x4,%eax 84a: 89 45 e8 mov %eax,-0x18(%ebp) for(i = 0; fmt[i]; i++){ 84d: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 854: e9 59 01 00 00 jmp 9b2 <printf+0x17b> c = fmt[i] & 0xff; 859: 8b 55 0c mov 0xc(%ebp),%edx 85c: 8b 45 f0 mov -0x10(%ebp),%eax 85f: 01 d0 add %edx,%eax 861: 0f b6 00 movzbl (%eax),%eax 864: 0f be c0 movsbl %al,%eax 867: 25 ff 00 00 00 and $0xff,%eax 86c: 89 45 e4 mov %eax,-0x1c(%ebp) if(state == 0){ 86f: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 873: 75 2c jne 8a1 <printf+0x6a> if(c == '%'){ 875: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 879: 75 0c jne 887 <printf+0x50> state = '%'; 87b: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp) 882: e9 27 01 00 00 jmp 9ae <printf+0x177> } else { putc(fd, c); 887: 8b 45 e4 mov -0x1c(%ebp),%eax 88a: 0f be c0 movsbl %al,%eax 88d: 83 ec 08 sub $0x8,%esp 890: 50 push %eax 891: ff 75 08 pushl 0x8(%ebp) 894: e8 c7 fe ff ff call 760 <putc> 899: 83 c4 10 add $0x10,%esp 89c: e9 0d 01 00 00 jmp 9ae <printf+0x177> } } else if(state == '%'){ 8a1: 83 7d ec 25 cmpl $0x25,-0x14(%ebp) 8a5: 0f 85 03 01 00 00 jne 9ae <printf+0x177> if(c == 'd'){ 8ab: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp) 8af: 75 1e jne 8cf <printf+0x98> printint(fd, *ap, 10, 1); 8b1: 8b 45 e8 mov -0x18(%ebp),%eax 8b4: 8b 00 mov (%eax),%eax 8b6: 6a 01 push $0x1 8b8: 6a 0a push $0xa 8ba: 50 push %eax 8bb: ff 75 08 pushl 0x8(%ebp) 8be: e8 c0 fe ff ff call 783 <printint> 8c3: 83 c4 10 add $0x10,%esp ap++; 8c6: 83 45 e8 04 addl $0x4,-0x18(%ebp) 8ca: e9 d8 00 00 00 jmp 9a7 <printf+0x170> } else if(c == 'x' || c == 'p'){ 8cf: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp) 8d3: 74 06 je 8db <printf+0xa4> 8d5: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp) 8d9: 75 1e jne 8f9 <printf+0xc2> printint(fd, *ap, 16, 0); 8db: 8b 45 e8 mov -0x18(%ebp),%eax 8de: 8b 00 mov (%eax),%eax 8e0: 6a 00 push $0x0 8e2: 6a 10 push $0x10 8e4: 50 push %eax 8e5: ff 75 08 pushl 0x8(%ebp) 8e8: e8 96 fe ff ff call 783 <printint> 8ed: 83 c4 10 add $0x10,%esp ap++; 8f0: 83 45 e8 04 addl $0x4,-0x18(%ebp) 8f4: e9 ae 00 00 00 jmp 9a7 <printf+0x170> } else if(c == 's'){ 8f9: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp) 8fd: 75 43 jne 942 <printf+0x10b> s = (char*)*ap; 8ff: 8b 45 e8 mov -0x18(%ebp),%eax 902: 8b 00 mov (%eax),%eax 904: 89 45 f4 mov %eax,-0xc(%ebp) ap++; 907: 83 45 e8 04 addl $0x4,-0x18(%ebp) if(s == 0) 90b: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 90f: 75 25 jne 936 <printf+0xff> s = "(null)"; 911: c7 45 f4 26 0c 00 00 movl $0xc26,-0xc(%ebp) while(*s != 0){ 918: eb 1c jmp 936 <printf+0xff> putc(fd, *s); 91a: 8b 45 f4 mov -0xc(%ebp),%eax 91d: 0f b6 00 movzbl (%eax),%eax 920: 0f be c0 movsbl %al,%eax 923: 83 ec 08 sub $0x8,%esp 926: 50 push %eax 927: ff 75 08 pushl 0x8(%ebp) 92a: e8 31 fe ff ff call 760 <putc> 92f: 83 c4 10 add $0x10,%esp s++; 932: 83 45 f4 01 addl $0x1,-0xc(%ebp) } else if(c == 's'){ s = (char*)*ap; ap++; if(s == 0) s = "(null)"; while(*s != 0){ 936: 8b 45 f4 mov -0xc(%ebp),%eax 939: 0f b6 00 movzbl (%eax),%eax 93c: 84 c0 test %al,%al 93e: 75 da jne 91a <printf+0xe3> 940: eb 65 jmp 9a7 <printf+0x170> putc(fd, *s); s++; } } else if(c == 'c'){ 942: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp) 946: 75 1d jne 965 <printf+0x12e> putc(fd, *ap); 948: 8b 45 e8 mov -0x18(%ebp),%eax 94b: 8b 00 mov (%eax),%eax 94d: 0f be c0 movsbl %al,%eax 950: 83 ec 08 sub $0x8,%esp 953: 50 push %eax 954: ff 75 08 pushl 0x8(%ebp) 957: e8 04 fe ff ff call 760 <putc> 95c: 83 c4 10 add $0x10,%esp ap++; 95f: 83 45 e8 04 addl $0x4,-0x18(%ebp) 963: eb 42 jmp 9a7 <printf+0x170> } else if(c == '%'){ 965: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 969: 75 17 jne 982 <printf+0x14b> putc(fd, c); 96b: 8b 45 e4 mov -0x1c(%ebp),%eax 96e: 0f be c0 movsbl %al,%eax 971: 83 ec 08 sub $0x8,%esp 974: 50 push %eax 975: ff 75 08 pushl 0x8(%ebp) 978: e8 e3 fd ff ff call 760 <putc> 97d: 83 c4 10 add $0x10,%esp 980: eb 25 jmp 9a7 <printf+0x170> } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 982: 83 ec 08 sub $0x8,%esp 985: 6a 25 push $0x25 987: ff 75 08 pushl 0x8(%ebp) 98a: e8 d1 fd ff ff call 760 <putc> 98f: 83 c4 10 add $0x10,%esp putc(fd, c); 992: 8b 45 e4 mov -0x1c(%ebp),%eax 995: 0f be c0 movsbl %al,%eax 998: 83 ec 08 sub $0x8,%esp 99b: 50 push %eax 99c: ff 75 08 pushl 0x8(%ebp) 99f: e8 bc fd ff ff call 760 <putc> 9a4: 83 c4 10 add $0x10,%esp } state = 0; 9a7: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) int c, i, state; uint *ap; state = 0; ap = (uint*)(void*)&fmt + 1; for(i = 0; fmt[i]; i++){ 9ae: 83 45 f0 01 addl $0x1,-0x10(%ebp) 9b2: 8b 55 0c mov 0xc(%ebp),%edx 9b5: 8b 45 f0 mov -0x10(%ebp),%eax 9b8: 01 d0 add %edx,%eax 9ba: 0f b6 00 movzbl (%eax),%eax 9bd: 84 c0 test %al,%al 9bf: 0f 85 94 fe ff ff jne 859 <printf+0x22> putc(fd, c); } state = 0; } } } 9c5: 90 nop 9c6: c9 leave 9c7: c3 ret 000009c8 <free>: static Header base; static Header *freep; void free(void *ap) { 9c8: 55 push %ebp 9c9: 89 e5 mov %esp,%ebp 9cb: 83 ec 10 sub $0x10,%esp Header *bp, *p; bp = (Header*)ap - 1; 9ce: 8b 45 08 mov 0x8(%ebp),%eax 9d1: 83 e8 08 sub $0x8,%eax 9d4: 89 45 f8 mov %eax,-0x8(%ebp) for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 9d7: a1 48 0f 00 00 mov 0xf48,%eax 9dc: 89 45 fc mov %eax,-0x4(%ebp) 9df: eb 24 jmp a05 <free+0x3d> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) 9e1: 8b 45 fc mov -0x4(%ebp),%eax 9e4: 8b 00 mov (%eax),%eax 9e6: 3b 45 fc cmp -0x4(%ebp),%eax 9e9: 77 12 ja 9fd <free+0x35> 9eb: 8b 45 f8 mov -0x8(%ebp),%eax 9ee: 3b 45 fc cmp -0x4(%ebp),%eax 9f1: 77 24 ja a17 <free+0x4f> 9f3: 8b 45 fc mov -0x4(%ebp),%eax 9f6: 8b 00 mov (%eax),%eax 9f8: 3b 45 f8 cmp -0x8(%ebp),%eax 9fb: 77 1a ja a17 <free+0x4f> free(void *ap) { Header *bp, *p; bp = (Header*)ap - 1; for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) 9fd: 8b 45 fc mov -0x4(%ebp),%eax a00: 8b 00 mov (%eax),%eax a02: 89 45 fc mov %eax,-0x4(%ebp) a05: 8b 45 f8 mov -0x8(%ebp),%eax a08: 3b 45 fc cmp -0x4(%ebp),%eax a0b: 76 d4 jbe 9e1 <free+0x19> a0d: 8b 45 fc mov -0x4(%ebp),%eax a10: 8b 00 mov (%eax),%eax a12: 3b 45 f8 cmp -0x8(%ebp),%eax a15: 76 ca jbe 9e1 <free+0x19> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ a17: 8b 45 f8 mov -0x8(%ebp),%eax a1a: 8b 40 04 mov 0x4(%eax),%eax a1d: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx a24: 8b 45 f8 mov -0x8(%ebp),%eax a27: 01 c2 add %eax,%edx a29: 8b 45 fc mov -0x4(%ebp),%eax a2c: 8b 00 mov (%eax),%eax a2e: 39 c2 cmp %eax,%edx a30: 75 24 jne a56 <free+0x8e> bp->s.size += p->s.ptr->s.size; a32: 8b 45 f8 mov -0x8(%ebp),%eax a35: 8b 50 04 mov 0x4(%eax),%edx a38: 8b 45 fc mov -0x4(%ebp),%eax a3b: 8b 00 mov (%eax),%eax a3d: 8b 40 04 mov 0x4(%eax),%eax a40: 01 c2 add %eax,%edx a42: 8b 45 f8 mov -0x8(%ebp),%eax a45: 89 50 04 mov %edx,0x4(%eax) bp->s.ptr = p->s.ptr->s.ptr; a48: 8b 45 fc mov -0x4(%ebp),%eax a4b: 8b 00 mov (%eax),%eax a4d: 8b 10 mov (%eax),%edx a4f: 8b 45 f8 mov -0x8(%ebp),%eax a52: 89 10 mov %edx,(%eax) a54: eb 0a jmp a60 <free+0x98> } else bp->s.ptr = p->s.ptr; a56: 8b 45 fc mov -0x4(%ebp),%eax a59: 8b 10 mov (%eax),%edx a5b: 8b 45 f8 mov -0x8(%ebp),%eax a5e: 89 10 mov %edx,(%eax) if(p + p->s.size == bp){ a60: 8b 45 fc mov -0x4(%ebp),%eax a63: 8b 40 04 mov 0x4(%eax),%eax a66: 8d 14 c5 00 00 00 00 lea 0x0(,%eax,8),%edx a6d: 8b 45 fc mov -0x4(%ebp),%eax a70: 01 d0 add %edx,%eax a72: 3b 45 f8 cmp -0x8(%ebp),%eax a75: 75 20 jne a97 <free+0xcf> p->s.size += bp->s.size; a77: 8b 45 fc mov -0x4(%ebp),%eax a7a: 8b 50 04 mov 0x4(%eax),%edx a7d: 8b 45 f8 mov -0x8(%ebp),%eax a80: 8b 40 04 mov 0x4(%eax),%eax a83: 01 c2 add %eax,%edx a85: 8b 45 fc mov -0x4(%ebp),%eax a88: 89 50 04 mov %edx,0x4(%eax) p->s.ptr = bp->s.ptr; a8b: 8b 45 f8 mov -0x8(%ebp),%eax a8e: 8b 10 mov (%eax),%edx a90: 8b 45 fc mov -0x4(%ebp),%eax a93: 89 10 mov %edx,(%eax) a95: eb 08 jmp a9f <free+0xd7> } else p->s.ptr = bp; a97: 8b 45 fc mov -0x4(%ebp),%eax a9a: 8b 55 f8 mov -0x8(%ebp),%edx a9d: 89 10 mov %edx,(%eax) freep = p; a9f: 8b 45 fc mov -0x4(%ebp),%eax aa2: a3 48 0f 00 00 mov %eax,0xf48 } aa7: 90 nop aa8: c9 leave aa9: c3 ret 00000aaa <morecore>: static Header* morecore(uint nu) { aaa: 55 push %ebp aab: 89 e5 mov %esp,%ebp aad: 83 ec 18 sub $0x18,%esp char *p; Header *hp; if(nu < 4096) ab0: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp) ab7: 77 07 ja ac0 <morecore+0x16> nu = 4096; ab9: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp) p = sbrk(nu * sizeof(Header)); ac0: 8b 45 08 mov 0x8(%ebp),%eax ac3: c1 e0 03 shl $0x3,%eax ac6: 83 ec 0c sub $0xc,%esp ac9: 50 push %eax aca: e8 19 fc ff ff call 6e8 <sbrk> acf: 83 c4 10 add $0x10,%esp ad2: 89 45 f4 mov %eax,-0xc(%ebp) if(p == (char*)-1) ad5: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp) ad9: 75 07 jne ae2 <morecore+0x38> return 0; adb: b8 00 00 00 00 mov $0x0,%eax ae0: eb 26 jmp b08 <morecore+0x5e> hp = (Header*)p; ae2: 8b 45 f4 mov -0xc(%ebp),%eax ae5: 89 45 f0 mov %eax,-0x10(%ebp) hp->s.size = nu; ae8: 8b 45 f0 mov -0x10(%ebp),%eax aeb: 8b 55 08 mov 0x8(%ebp),%edx aee: 89 50 04 mov %edx,0x4(%eax) free((void*)(hp + 1)); af1: 8b 45 f0 mov -0x10(%ebp),%eax af4: 83 c0 08 add $0x8,%eax af7: 83 ec 0c sub $0xc,%esp afa: 50 push %eax afb: e8 c8 fe ff ff call 9c8 <free> b00: 83 c4 10 add $0x10,%esp return freep; b03: a1 48 0f 00 00 mov 0xf48,%eax } b08: c9 leave b09: c3 ret 00000b0a <malloc>: void* malloc(uint nbytes) { b0a: 55 push %ebp b0b: 89 e5 mov %esp,%ebp b0d: 83 ec 18 sub $0x18,%esp Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; b10: 8b 45 08 mov 0x8(%ebp),%eax b13: 83 c0 07 add $0x7,%eax b16: c1 e8 03 shr $0x3,%eax b19: 83 c0 01 add $0x1,%eax b1c: 89 45 ec mov %eax,-0x14(%ebp) if((prevp = freep) == 0){ b1f: a1 48 0f 00 00 mov 0xf48,%eax b24: 89 45 f0 mov %eax,-0x10(%ebp) b27: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) b2b: 75 23 jne b50 <malloc+0x46> base.s.ptr = freep = prevp = &base; b2d: c7 45 f0 40 0f 00 00 movl $0xf40,-0x10(%ebp) b34: 8b 45 f0 mov -0x10(%ebp),%eax b37: a3 48 0f 00 00 mov %eax,0xf48 b3c: a1 48 0f 00 00 mov 0xf48,%eax b41: a3 40 0f 00 00 mov %eax,0xf40 base.s.size = 0; b46: c7 05 44 0f 00 00 00 movl $0x0,0xf44 b4d: 00 00 00 } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ b50: 8b 45 f0 mov -0x10(%ebp),%eax b53: 8b 00 mov (%eax),%eax b55: 89 45 f4 mov %eax,-0xc(%ebp) if(p->s.size >= nunits){ b58: 8b 45 f4 mov -0xc(%ebp),%eax b5b: 8b 40 04 mov 0x4(%eax),%eax b5e: 3b 45 ec cmp -0x14(%ebp),%eax b61: 72 4d jb bb0 <malloc+0xa6> if(p->s.size == nunits) b63: 8b 45 f4 mov -0xc(%ebp),%eax b66: 8b 40 04 mov 0x4(%eax),%eax b69: 3b 45 ec cmp -0x14(%ebp),%eax b6c: 75 0c jne b7a <malloc+0x70> prevp->s.ptr = p->s.ptr; b6e: 8b 45 f4 mov -0xc(%ebp),%eax b71: 8b 10 mov (%eax),%edx b73: 8b 45 f0 mov -0x10(%ebp),%eax b76: 89 10 mov %edx,(%eax) b78: eb 26 jmp ba0 <malloc+0x96> else { p->s.size -= nunits; b7a: 8b 45 f4 mov -0xc(%ebp),%eax b7d: 8b 40 04 mov 0x4(%eax),%eax b80: 2b 45 ec sub -0x14(%ebp),%eax b83: 89 c2 mov %eax,%edx b85: 8b 45 f4 mov -0xc(%ebp),%eax b88: 89 50 04 mov %edx,0x4(%eax) p += p->s.size; b8b: 8b 45 f4 mov -0xc(%ebp),%eax b8e: 8b 40 04 mov 0x4(%eax),%eax b91: c1 e0 03 shl $0x3,%eax b94: 01 45 f4 add %eax,-0xc(%ebp) p->s.size = nunits; b97: 8b 45 f4 mov -0xc(%ebp),%eax b9a: 8b 55 ec mov -0x14(%ebp),%edx b9d: 89 50 04 mov %edx,0x4(%eax) } freep = prevp; ba0: 8b 45 f0 mov -0x10(%ebp),%eax ba3: a3 48 0f 00 00 mov %eax,0xf48 return (void*)(p + 1); ba8: 8b 45 f4 mov -0xc(%ebp),%eax bab: 83 c0 08 add $0x8,%eax bae: eb 3b jmp beb <malloc+0xe1> } if(p == freep) bb0: a1 48 0f 00 00 mov 0xf48,%eax bb5: 39 45 f4 cmp %eax,-0xc(%ebp) bb8: 75 1e jne bd8 <malloc+0xce> if((p = morecore(nunits)) == 0) bba: 83 ec 0c sub $0xc,%esp bbd: ff 75 ec pushl -0x14(%ebp) bc0: e8 e5 fe ff ff call aaa <morecore> bc5: 83 c4 10 add $0x10,%esp bc8: 89 45 f4 mov %eax,-0xc(%ebp) bcb: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) bcf: 75 07 jne bd8 <malloc+0xce> return 0; bd1: b8 00 00 00 00 mov $0x0,%eax bd6: eb 13 jmp beb <malloc+0xe1> nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; if((prevp = freep) == 0){ base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ bd8: 8b 45 f4 mov -0xc(%ebp),%eax bdb: 89 45 f0 mov %eax,-0x10(%ebp) bde: 8b 45 f4 mov -0xc(%ebp),%eax be1: 8b 00 mov (%eax),%eax be3: 89 45 f4 mov %eax,-0xc(%ebp) return (void*)(p + 1); } if(p == freep) if((p = morecore(nunits)) == 0) return 0; } be6: e9 6d ff ff ff jmp b58 <malloc+0x4e> } beb: c9 leave bec: c3 ret
35.036479
60
0.42201
fcb65b48fcf3aeb3324242976576f0c879468650
240
asm
Assembly
solutions/55 - Data Flowers/size-8_speed-24.asm
michaelgundlach/7billionhumans
02c6f3963364362c95cb516cbc6ef1efc073bb2e
[ "MIT" ]
45
2018-09-05T04:56:59.000Z
2021-11-22T08:57:26.000Z
solutions/55 - Data Flowers/size-8_speed-24.asm
michaelgundlach/7billionhumans
02c6f3963364362c95cb516cbc6ef1efc073bb2e
[ "MIT" ]
36
2018-09-01T11:34:26.000Z
2021-05-19T23:20:49.000Z
solutions/55 - Data Flowers/size-8_speed-24.asm
michaelgundlach/7billionhumans
02c6f3963364362c95cb516cbc6ef1efc073bb2e
[ "MIT" ]
36
2018-09-01T07:44:19.000Z
2021-09-10T19:07:35.000Z
-- 7 Billion Humans (2145) -- -- 55: Data Flowers -- -- Author: landfillbaby -- Size: 8 -- Speed: 24 pickup s a: step n if s != datacube: jump a endif mem1 = foreachdir nw,w,sw,n,s,ne,e,se: mem2 = calc mem1 + mem2 endfor write mem2 drop
13.333333
38
0.65
513245f907569e331ff0dcda5eeb68e40d9986d9
7,719
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1265.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_1265.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_1265.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 %r15 push %r8 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_UC_ht+0xd104, %rsi lea addresses_A_ht+0x12544, %rdi nop cmp $21065, %r10 mov $87, %rcx rep movsw nop add $48118, %rbp lea addresses_UC_ht+0x14944, %rbx nop nop dec %rcx mov (%rbx), %esi add %rdi, %rdi lea addresses_UC_ht+0x8d44, %rsi lea addresses_normal_ht+0x13258, %rdi nop inc %r8 mov $56, %rcx rep movsq nop nop nop nop nop cmp %r10, %r10 lea addresses_normal_ht+0x6ca4, %rsi lea addresses_D_ht+0x3dc4, %rdi clflush (%rsi) inc %r15 mov $83, %rcx rep movsq nop nop nop nop nop sub $46592, %r15 lea addresses_A_ht+0x147c4, %rdi nop nop nop nop nop xor $29505, %rbp movb (%rdi), %r10b sub $33665, %rcx lea addresses_normal_ht+0xfa44, %rdi nop nop nop nop inc %r10 mov $0x6162636465666768, %rbx movq %rbx, %xmm6 movups %xmm6, (%rdi) nop xor $13085, %r8 lea addresses_normal_ht+0x1544, %rsi lea addresses_normal_ht+0xac04, %rdi nop nop dec %r10 mov $103, %rcx rep movsb nop nop nop sub $8241, %rbx lea addresses_WC_ht+0x15944, %rsi lea addresses_UC_ht+0x66c4, %rdi clflush (%rdi) nop nop nop nop sub $10287, %r8 mov $119, %rcx rep movsq nop nop and %rcx, %rcx lea addresses_UC_ht+0x14c45, %rsi lea addresses_A_ht+0x7734, %rdi clflush (%rsi) nop nop nop nop sub $41736, %rbx mov $53, %rcx rep movsq nop nop nop and %rbx, %rbx lea addresses_WC_ht+0x1a544, %r8 nop nop nop xor $2328, %rbx mov $0x6162636465666768, %r15 movq %r15, %xmm3 and $0xffffffffffffffc0, %r8 movntdq %xmm3, (%r8) nop nop nop nop cmp %rbx, %rbx lea addresses_D_ht+0xab34, %rsi and $51660, %r10 movb (%rsi), %cl nop nop nop nop nop dec %rsi lea addresses_A_ht+0x9944, %rsi lea addresses_A_ht+0x1bc4, %rdi nop nop add %r8, %r8 mov $85, %rcx rep movsl nop nop xor %rcx, %rcx lea addresses_UC_ht+0x8ec4, %r15 clflush (%r15) nop and %rbp, %rbp mov $0x6162636465666768, %rbx movq %rbx, (%r15) nop nop nop nop inc %rbp pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r8 pop %r15 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r8 push %r9 push %rax push %rdi push %rsi // Store lea addresses_WT+0x1c930, %r11 nop nop nop inc %rax movb $0x51, (%r11) nop nop nop nop cmp $61443, %r11 // Faulty Load lea addresses_normal+0x14544, %r9 nop nop nop nop xor $12785, %rdi movb (%r9), %r11b lea oracles, %rax and $0xff, %r11 shlq $12, %r11 mov (%rax,%r11,1), %r11 pop %rsi pop %rdi pop %rax pop %r9 pop %r8 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_normal', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_WT', 'AVXalign': False, 'size': 1}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_normal', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 6, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 11, 'type': 'addresses_A_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 9, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 1, 'type': 'addresses_normal_ht'}} {'src': {'same': False, 'congruent': 5, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16}} {'src': {'same': False, 'congruent': 11, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_normal_ht'}} {'src': {'same': False, 'congruent': 9, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_UC_ht'}} {'src': {'same': False, 'congruent': 0, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'NT': True, 'same': False, 'congruent': 10, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 16}} {'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_D_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 8, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 8}} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
33.707424
2,999
0.661873
e42edf74ed3a8ae8d607a67a043fc863d83234c3
36,906
asm
Assembly
genesis/fm_mus.asm
michaelcmartin/bumbershoot
d465d18997c5651bb1d71488705b0d6e1271660c
[ "MIT" ]
20
2016-06-22T10:04:48.000Z
2022-03-13T23:16:10.000Z
genesis/fm_mus.asm
michaelcmartin/bumbershoot
d465d18997c5651bb1d71488705b0d6e1271660c
[ "MIT" ]
null
null
null
genesis/fm_mus.asm
michaelcmartin/bumbershoot
d465d18997c5651bb1d71488705b0d6e1271660c
[ "MIT" ]
2
2016-12-19T02:31:06.000Z
2020-02-04T02:56:27.000Z
;; Simple Z80 FM Music Driver. ;; A song in this system is a series of records, where each record ;; begins with a byte for the number of frames this record lasts, ;; followed by a byte for the number of register writes to the first ;; block of FM registers, followed by that many pairs of (register, ;; value) bytes. ;; When a zero byte is reached for a record length, the playback ;; loops back to the "segno" label. org 0 defc psg=$7f11 rst_0: di im 1 ld sp, $2000 ei rst_lp: jr rst_lp defs $20-ASMPC ptr: defw song vol: defb $1f, $1f, $1f wait: defb $01 defs $38-ASMPC rst_38: push af push bc push ix push hl ld hl, wait dec (hl) jr nz, idone ld ix, $4000 ld hl, (ptr) ld a, (hl) and a jr nz, nolp ld hl, segno ld a, (hl) nolp: ld (wait), a inc hl ld b, (hl) inc hl rlp: ld a, (hl) ld (ix+0), a inc hl ld a, (hl) inc hl ld (ix+1), a djnz rlp ld (ptr), hl ;; The video interrupt is held for 64 microseconds. To make sure we ;; don't end up double-dipping, spin for a bit before returning. idone: ld b, 64 ilp: djnz ilp pop hl pop ix pop bc pop af ei reti song: segno: defb $0D,$42,$30,$71,$34,$0D,$38,$33,$3C,$01,$40,$23,$44,$2D,$48,$26 defb $4C,$00,$50,$5F,$54,$99,$58,$5F,$5C,$94,$60,$05,$64,$05,$68,$05 defb $6C,$07,$70,$02,$74,$02,$78,$02,$7C,$02,$80,$11,$84,$11,$88,$11 defb $8C,$A6,$90,$00,$94,$00,$98,$00,$9C,$00,$B0,$32,$B4,$C0,$31,$71 defb $35,$0D,$39,$33,$3D,$01,$41,$23,$45,$2D,$49,$26,$4D,$00,$51,$5F defb $55,$99,$59,$5F,$5D,$94,$61,$05,$65,$05,$69,$05,$6D,$07,$71,$02 defb $75,$02,$79,$02,$7D,$02,$81,$11,$85,$11,$89,$11,$8D,$A6,$91,$00 defb $95,$00,$99,$00,$9D,$00,$B0,$32,$B4,$C0,$A4,$17,$A0,$89,$28,$F0 defb $A5,$0F,$A1,$89,$28,$F1,$02,$01,$28,$00,$0D,$03,$A4,$1C,$A0,$BF defb $28,$F0,$02,$01,$28,$00,$0D,$03,$A4,$1D,$A0,$A5,$28,$F0,$02,$01 defb $28,$00,$07,$03,$A4,$1F,$A0,$89,$28,$F0,$06,$01,$28,$01,$02,$01 defb $28,$00,$0D,$06,$A4,$1C,$A0,$3B,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1 defb $02,$01,$28,$00,$0B,$03,$A4,$1F,$A0,$1D,$28,$F0,$02,$01,$28,$01 defb $02,$01,$28,$00,$0D,$06,$A4,$1F,$A0,$89,$28,$F0,$A5,$07,$A1,$89 defb $28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0C,$A1,$BF,$28,$F1,$02,$01 defb $28,$00,$02,$01,$28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0D defb $A1,$A5,$28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0F,$A1,$89,$28,$F1 defb $02,$01,$28,$00,$02,$01,$28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0 defb $A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0C,$A1,$BF defb $28,$F1,$02,$01,$28,$00,$02,$01,$28,$01,$0D,$06,$A4,$17,$A0,$89 defb $28,$F0,$A5,$07,$A1,$89,$28,$F1,$02,$01,$28,$00,$0D,$03,$A4,$1C defb $A0,$BF,$28,$F0,$02,$01,$28,$00,$0D,$03,$A4,$1D,$A0,$A5,$28,$F0 defb $02,$01,$28,$00,$07,$03,$A4,$1F,$A0,$89,$28,$F0,$06,$01,$28,$01 defb $02,$01,$28,$00,$0D,$06,$A4,$1C,$A0,$3B,$28,$F0,$A5,$0D,$A1,$A5 defb $28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1F,$A0,$1D,$28,$F0,$02,$01 defb $28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1F,$A0,$89,$28,$F0,$A5,$07 defb $A1,$89,$28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0C,$A1,$BF,$28,$F1 defb $02,$01,$28,$00,$02,$01,$28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0 defb $A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0F,$A1,$89 defb $28,$F1,$02,$01,$28,$00,$02,$01,$28,$01,$0D,$06,$A4,$17,$A0,$89 defb $28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0C defb $A1,$BF,$28,$F1,$02,$01,$28,$00,$02,$01,$28,$01,$1A,$06,$A4,$1E defb $A0,$56,$28,$F0,$A5,$0D,$A1,$08,$28,$F1,$04,$02,$28,$00,$28,$01 defb $1A,$06,$A4,$1E,$A0,$56,$28,$F0,$A5,$0F,$A1,$89,$28,$F1,$04,$02 defb $28,$00,$28,$01,$0D,$06,$A4,$1E,$A0,$56,$28,$F0,$A5,$0D,$A1,$08 defb $28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1F,$A0,$89,$28,$F0,$02,$01 defb $28,$01,$02,$01,$28,$00,$1A,$06,$A4,$1D,$A0,$A5,$28,$F0,$A5,$0C defb $A1,$BF,$28,$F1,$04,$02,$28,$00,$28,$01,$1A,$06,$A4,$1D,$A0,$A5 defb $28,$F0,$A5,$0F,$A1,$89,$28,$F1,$04,$02,$28,$00,$28,$01,$0D,$06 defb $A4,$1D,$A0,$A5,$28,$F0,$A5,$0C,$A1,$BF,$28,$F1,$02,$01,$28,$00 defb $0B,$03,$A4,$1F,$A0,$89,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00 defb $1A,$06,$A4,$1D,$A0,$08,$28,$F0,$A5,$0C,$A1,$3B,$28,$F1,$04,$02 defb $28,$00,$28,$01,$0D,$06,$A4,$1D,$A0,$A5,$28,$F0,$A5,$0F,$A1,$1D defb $28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1D,$A0,$08,$28,$F0,$02,$01 defb $28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1C,$A0,$BF,$28,$F0,$A5,$0F defb $A1,$89,$28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1D,$A0,$08,$28,$F0 defb $02,$01,$28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1C,$A0,$3B,$28,$F0 defb $A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$01,$0D,$03,$A5,$0E,$A1,$56 defb $28,$F1,$02,$01,$28,$01,$0D,$03,$A5,$0F,$A1,$1D,$28,$F1,$02,$01 defb $28,$01,$0D,$03,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$01,$0D,$03 defb $A5,$0E,$A1,$56,$28,$F1,$02,$01,$28,$01,$03,$03,$A5,$0F,$A1,$1D defb $28,$F1,$0A,$01,$28,$00,$02,$01,$28,$01,$0D,$06,$A4,$17,$A0,$89 defb $28,$F0,$A5,$0F,$A1,$89,$28,$F1,$02,$01,$28,$00,$0D,$03,$A4,$1C defb $A0,$BF,$28,$F0,$02,$01,$28,$00,$0D,$03,$A4,$1D,$A0,$A5,$28,$F0 defb $02,$01,$28,$00,$07,$03,$A4,$1F,$A0,$89,$28,$F0,$06,$01,$28,$01 defb $02,$01,$28,$00,$0D,$06,$A4,$1C,$A0,$3B,$28,$F0,$A5,$0D,$A1,$A5 defb $28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1F,$A0,$1D,$28,$F0,$02,$01 defb $28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1F,$A0,$89,$28,$F0,$A5,$07 defb $A1,$89,$28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0C,$A1,$BF,$28,$F1 defb $02,$01,$28,$00,$02,$01,$28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0 defb $A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0F,$A1,$89 defb $28,$F1,$02,$01,$28,$00,$02,$01,$28,$01,$0D,$06,$A4,$17,$A0,$89 defb $28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0C defb $A1,$BF,$28,$F1,$02,$01,$28,$00,$02,$01,$28,$01,$0D,$06,$A4,$17 defb $A0,$89,$28,$F0,$A5,$07,$A1,$89,$28,$F1,$02,$01,$28,$00,$0D,$03 defb $A4,$1C,$A0,$BF,$28,$F0,$02,$01,$28,$00,$0D,$03,$A4,$1D,$A0,$A5 defb $28,$F0,$02,$01,$28,$00,$07,$03,$A4,$1F,$A0,$89,$28,$F0,$06,$01 defb $28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1C,$A0,$3B,$28,$F0,$A5,$0D defb $A1,$A5,$28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1F,$A0,$1D,$28,$F0 defb $02,$01,$28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1F,$A0,$89,$28,$F0 defb $A5,$07,$A1,$89,$28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0C,$A1,$BF defb $28,$F1,$02,$01,$28,$00,$02,$01,$28,$01,$0D,$06,$A4,$17,$A0,$89 defb $28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0F defb $A1,$89,$28,$F1,$02,$01,$28,$00,$02,$01,$28,$01,$0D,$06,$A4,$17 defb $A0,$89,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$01,$0B,$03 defb $A5,$0C,$A1,$BF,$28,$F1,$02,$01,$28,$00,$02,$01,$28,$01,$1A,$06 defb $A4,$1E,$A0,$56,$28,$F0,$A5,$0D,$A1,$08,$28,$F1,$04,$02,$28,$00 defb $28,$01,$0D,$06,$A4,$1D,$A0,$A5,$28,$F0,$A5,$0E,$A1,$56,$28,$F1 defb $02,$01,$28,$00,$0B,$03,$A4,$1D,$A0,$08,$28,$F0,$02,$01,$28,$01 defb $02,$01,$28,$00,$0D,$06,$A4,$1C,$A0,$BF,$28,$F0,$A5,$0F,$A1,$89 defb $28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1C,$A0,$3B,$28,$F0,$02,$01 defb $28,$01,$02,$01,$28,$00,$1A,$06,$A4,$1D,$A0,$A5,$28,$F0,$A5,$0C defb $A1,$BF,$28,$F1,$04,$02,$28,$00,$28,$01,$0D,$06,$A4,$1D,$A0,$08 defb $28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1C defb $A0,$BF,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1C defb $A0,$3B,$28,$F0,$A5,$0F,$A1,$89,$28,$F1,$02,$01,$28,$00,$0B,$03 defb $A4,$17,$A0,$89,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$08,$06 defb $A4,$1C,$A0,$3B,$28,$F0,$A5,$0D,$A1,$08,$28,$F1,$02,$01,$28,$00 defb $08,$03,$A4,$1C,$A0,$BF,$28,$F0,$02,$01,$28,$00,$06,$03,$A4,$1D defb $A0,$08,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$1A,$06,$A4,$15 defb $A0,$A5,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$04,$02,$28,$00,$28,$01 defb $1A,$06,$A4,$17,$A0,$1D,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$04,$02 defb $28,$00,$28,$01,$1A,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0F,$A1,$89 defb $28,$F1,$04,$01,$28,$01,$1A,$03,$A5,$0D,$A1,$A5,$28,$F1,$04,$01 defb $28,$01,$12,$03,$A5,$07,$A1,$89,$28,$F1,$08,$01,$28,$00,$04,$01 defb $28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0F,$A1,$89,$28,$F1 defb $02,$01,$28,$00,$0D,$03,$A4,$1C,$A0,$BF,$28,$F0,$02,$01,$28,$00 defb $0D,$03,$A4,$1D,$A0,$A5,$28,$F0,$02,$01,$28,$00,$07,$03,$A4,$1F defb $A0,$89,$28,$F0,$06,$01,$28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1C defb $A0,$3B,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$00,$0B,$03 defb $A4,$1F,$A0,$1D,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$0D,$06 defb $A4,$1F,$A0,$89,$28,$F0,$A5,$07,$A1,$89,$28,$F1,$02,$01,$28,$01 defb $0B,$03,$A5,$0C,$A1,$BF,$28,$F1,$02,$01,$28,$00,$02,$01,$28,$01 defb $0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01 defb $28,$01,$0B,$03,$A5,$0F,$A1,$89,$28,$F1,$02,$01,$28,$00,$02,$01 defb $28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1 defb $02,$01,$28,$01,$0B,$03,$A5,$0C,$A1,$BF,$28,$F1,$02,$01,$28,$00 defb $02,$01,$28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$07,$A1,$89 defb $28,$F1,$02,$01,$28,$00,$0D,$03,$A4,$1C,$A0,$BF,$28,$F0,$02,$01 defb $28,$00,$0D,$03,$A4,$1D,$A0,$A5,$28,$F0,$02,$01,$28,$00,$07,$03 defb $A4,$1F,$A0,$89,$28,$F0,$06,$01,$28,$01,$02,$01,$28,$00,$0D,$06 defb $A4,$1C,$A0,$3B,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$00 defb $0B,$03,$A4,$1F,$A0,$1D,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00 defb $0D,$06,$A4,$1F,$A0,$89,$28,$F0,$A5,$07,$A1,$89,$28,$F1,$02,$01 defb $28,$01,$0B,$03,$A5,$0C,$A1,$BF,$28,$F1,$02,$01,$28,$00,$02,$01 defb $28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1 defb $02,$01,$28,$01,$0B,$03,$A5,$0F,$A1,$89,$28,$F1,$02,$01,$28,$00 defb $02,$01,$28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0D,$A1,$A5 defb $28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0C,$A1,$BF,$28,$F1,$02,$01 defb $28,$00,$02,$01,$28,$01,$1A,$06,$A4,$1E,$A0,$56,$28,$F0,$A5,$0D defb $A1,$08,$28,$F1,$04,$02,$28,$00,$28,$01,$1A,$06,$A4,$1E,$A0,$56 defb $28,$F0,$A5,$0F,$A1,$89,$28,$F1,$04,$02,$28,$00,$28,$01,$0D,$06 defb $A4,$1E,$A0,$56,$28,$F0,$A5,$0D,$A1,$08,$28,$F1,$02,$01,$28,$00 defb $0B,$03,$A4,$1F,$A0,$89,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00 defb $1A,$06,$A4,$1D,$A0,$A5,$28,$F0,$A5,$0C,$A1,$BF,$28,$F1,$04,$02 defb $28,$00,$28,$01,$1A,$06,$A4,$1D,$A0,$A5,$28,$F0,$A5,$0F,$A1,$89 defb $28,$F1,$04,$02,$28,$00,$28,$01,$0D,$06,$A4,$1D,$A0,$A5,$28,$F0 defb $A5,$0C,$A1,$BF,$28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1F,$A0,$89 defb $28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$1A,$06,$A4,$1D,$A0,$08 defb $28,$F0,$A5,$0C,$A1,$3B,$28,$F1,$04,$02,$28,$00,$28,$01,$0D,$06 defb $A4,$1D,$A0,$A5,$28,$F0,$A5,$0F,$A1,$1D,$28,$F1,$02,$01,$28,$00 defb $0B,$03,$A4,$1D,$A0,$08,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00 defb $0D,$06,$A4,$1C,$A0,$BF,$28,$F0,$A5,$0F,$A1,$89,$28,$F1,$02,$01 defb $28,$00,$0B,$03,$A4,$1D,$A0,$08,$28,$F0,$02,$01,$28,$01,$02,$01 defb $28,$00,$0D,$06,$A4,$1C,$A0,$3B,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1 defb $02,$01,$28,$01,$0D,$03,$A5,$0E,$A1,$56,$28,$F1,$02,$01,$28,$01 defb $0D,$03,$A5,$0F,$A1,$1D,$28,$F1,$02,$01,$28,$01,$0D,$03,$A5,$0D defb $A1,$A5,$28,$F1,$02,$01,$28,$01,$0D,$03,$A5,$0E,$A1,$56,$28,$F1 defb $02,$01,$28,$01,$03,$03,$A5,$0F,$A1,$1D,$28,$F1,$0A,$01,$28,$00 defb $02,$01,$28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0F,$A1,$89 defb $28,$F1,$02,$01,$28,$00,$0D,$03,$A4,$1C,$A0,$BF,$28,$F0,$02,$01 defb $28,$00,$0D,$03,$A4,$1D,$A0,$A5,$28,$F0,$02,$01,$28,$00,$07,$03 defb $A4,$1F,$A0,$89,$28,$F0,$06,$01,$28,$01,$02,$01,$28,$00,$0D,$06 defb $A4,$1C,$A0,$3B,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$00 defb $0B,$03,$A4,$1F,$A0,$1D,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00 defb $0D,$06,$A4,$1F,$A0,$89,$28,$F0,$A5,$07,$A1,$89,$28,$F1,$02,$01 defb $28,$01,$0B,$03,$A5,$0C,$A1,$BF,$28,$F1,$02,$01,$28,$00,$02,$01 defb $28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1 defb $02,$01,$28,$01,$0B,$03,$A5,$0F,$A1,$89,$28,$F1,$02,$01,$28,$00 defb $02,$01,$28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0D,$A1,$A5 defb $28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0C,$A1,$BF,$28,$F1,$02,$01 defb $28,$00,$02,$01,$28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$07 defb $A1,$89,$28,$F1,$02,$01,$28,$00,$0D,$03,$A4,$1C,$A0,$BF,$28,$F0 defb $02,$01,$28,$00,$0D,$03,$A4,$1D,$A0,$A5,$28,$F0,$02,$01,$28,$00 defb $07,$03,$A4,$1F,$A0,$89,$28,$F0,$06,$01,$28,$01,$02,$01,$28,$00 defb $0D,$06,$A4,$1C,$A0,$3B,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01 defb $28,$00,$0B,$03,$A4,$1F,$A0,$1D,$28,$F0,$02,$01,$28,$01,$02,$01 defb $28,$00,$0D,$06,$A4,$1F,$A0,$89,$28,$F0,$A5,$07,$A1,$89,$28,$F1 defb $02,$01,$28,$01,$0B,$03,$A5,$0C,$A1,$BF,$28,$F1,$02,$01,$28,$00 defb $02,$01,$28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0D,$A1,$A5 defb $28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0F,$A1,$89,$28,$F1,$02,$01 defb $28,$00,$02,$01,$28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0D defb $A1,$A5,$28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0C,$A1,$BF,$28,$F1 defb $02,$01,$28,$00,$02,$01,$28,$01,$1A,$06,$A4,$1E,$A0,$56,$28,$F0 defb $A5,$0D,$A1,$08,$28,$F1,$04,$02,$28,$00,$28,$01,$0D,$06,$A4,$1D defb $A0,$A5,$28,$F0,$A5,$0E,$A1,$56,$28,$F1,$02,$01,$28,$00,$0B,$03 defb $A4,$1D,$A0,$08,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$0D,$06 defb $A4,$1C,$A0,$BF,$28,$F0,$A5,$0F,$A1,$89,$28,$F1,$02,$01,$28,$00 defb $0B,$03,$A4,$1C,$A0,$3B,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00 defb $1A,$06,$A4,$1D,$A0,$A5,$28,$F0,$A5,$0C,$A1,$BF,$28,$F1,$04,$02 defb $28,$00,$28,$01,$0D,$06,$A4,$1D,$A0,$08,$28,$F0,$A5,$0D,$A1,$A5 defb $28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1C,$A0,$BF,$28,$F0,$02,$01 defb $28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1C,$A0,$3B,$28,$F0,$A5,$0F defb $A1,$89,$28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$17,$A0,$89,$28,$F0 defb $02,$01,$28,$01,$02,$01,$28,$00,$08,$06,$A4,$1C,$A0,$3B,$28,$F0 defb $A5,$0D,$A1,$08,$28,$F1,$02,$01,$28,$00,$08,$03,$A4,$1C,$A0,$BF defb $28,$F0,$02,$01,$28,$00,$06,$03,$A4,$1D,$A0,$08,$28,$F0,$02,$01 defb $28,$01,$02,$01,$28,$00,$1A,$06,$A4,$15,$A0,$A5,$28,$F0,$A5,$0D defb $A1,$A5,$28,$F1,$04,$02,$28,$00,$28,$01,$1A,$06,$A4,$17,$A0,$1D defb $28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$04,$02,$28,$00,$28,$01,$1A,$06 defb $A4,$17,$A0,$89,$28,$F0,$A5,$0F,$A1,$89,$28,$F1,$04,$01,$28,$01 defb $1A,$03,$A5,$0D,$A1,$A5,$28,$F1,$04,$01,$28,$01,$12,$03,$A5,$07 defb $A1,$89,$28,$F1,$08,$01,$28,$00,$04,$01,$28,$01,$0D,$06,$A4,$17 defb $A0,$89,$28,$F0,$A5,$0E,$A1,$56,$28,$F1,$02,$01,$28,$00,$0B,$03 defb $A4,$1C,$A0,$3B,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$0D,$06 defb $A4,$1C,$A0,$BF,$28,$F0,$A5,$0D,$A1,$FB,$28,$F1,$02,$01,$28,$00 defb $0B,$03,$A4,$1C,$A0,$3B,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00 defb $0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0C,$A1,$BF,$28,$F1,$02,$01 defb $28,$00,$0B,$03,$A4,$17,$A0,$1D,$28,$F0,$02,$01,$28,$01,$02,$01 defb $28,$00,$1A,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0E,$A1,$56,$28,$F1 defb $04,$02,$28,$00,$28,$01,$1A,$06,$A4,$16,$A0,$56,$28,$F0,$A5,$0C defb $A1,$BF,$28,$F1,$04,$02,$28,$00,$28,$01,$1A,$06,$A4,$16,$A0,$56 defb $28,$F0,$A5,$06,$A1,$56,$28,$F1,$04,$02,$28,$00,$28,$01,$0D,$06 defb $A4,$1F,$A0,$89,$28,$F0,$A5,$0E,$A1,$56,$28,$F1,$02,$01,$28,$00 defb $0B,$03,$A4,$1F,$A0,$1D,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00 defb $0D,$06,$A4,$1E,$A0,$56,$28,$F0,$A5,$0F,$A1,$89,$28,$F1,$02,$01 defb $28,$00,$0B,$03,$A4,$1F,$A0,$89,$28,$F0,$02,$01,$28,$01,$02,$01 defb $28,$00,$0D,$06,$A4,$1F,$A0,$1D,$28,$F0,$A5,$14,$A1,$BF,$28,$F1 defb $02,$01,$28,$00,$0B,$03,$A4,$1E,$A0,$56,$28,$F0,$02,$01,$28,$01 defb $02,$01,$28,$00,$0D,$06,$A4,$1F,$A0,$1D,$28,$F0,$A5,$0C,$A1,$BF defb $28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0D,$A1,$FB,$28,$F1,$02,$01 defb $28,$00,$02,$01,$28,$01,$0D,$06,$A4,$1C,$A0,$BF,$28,$F0,$A5,$0F defb $A1,$1D,$28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$14,$A1,$BF,$28,$F1 defb $02,$01,$28,$00,$02,$01,$28,$01,$0D,$06,$A4,$1C,$A0,$BF,$28,$F0 defb $A5,$0F,$A1,$1D,$28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0D,$A1,$FB defb $28,$F1,$02,$01,$28,$00,$02,$01,$28,$01,$0D,$06,$A4,$1F,$A0,$89 defb $28,$F0,$A5,$0E,$A1,$56,$28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1F defb $A0,$1D,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1E defb $A0,$56,$28,$F0,$A5,$0F,$A1,$89,$28,$F1,$02,$01,$28,$00,$0B,$03 defb $A4,$1F,$A0,$89,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$0D,$06 defb $A4,$1F,$A0,$1D,$28,$F0,$A5,$14,$A1,$BF,$28,$F1,$02,$01,$28,$00 defb $0B,$03,$A4,$1E,$A0,$56,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00 defb $1A,$06,$A4,$1F,$A0,$1D,$28,$F0,$A5,$0C,$A1,$BF,$28,$F1,$04,$02 defb $28,$00,$28,$01,$1A,$06,$A4,$1C,$A0,$BF,$28,$F0,$A5,$14,$A1,$3B defb $28,$F1,$04,$02,$28,$00,$28,$01,$1A,$06,$A4,$1E,$A0,$56,$28,$F0 defb $A5,$0F,$A1,$89,$28,$F1,$04,$02,$28,$00,$28,$01,$08,$06,$A4,$1F defb $A0,$1D,$28,$F0,$A5,$14,$A1,$3B,$28,$F1,$02,$01,$28,$00,$08,$03 defb $A4,$1F,$A0,$89,$28,$F0,$02,$01,$28,$00,$06,$03,$A4,$24,$A0,$3B defb $28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$1A,$06,$A4,$1C,$A0,$BF defb $28,$F0,$A5,$14,$A1,$BF,$28,$F1,$04,$02,$28,$00,$28,$01,$1A,$06 defb $A4,$1D,$A0,$FB,$28,$F0,$A5,$0C,$A1,$BF,$28,$F1,$04,$02,$28,$00 defb $28,$01,$1A,$06,$A4,$1E,$A0,$56,$28,$F0,$A5,$0E,$A1,$56,$28,$F1 defb $04,$01,$28,$00,$0D,$03,$A4,$1D,$A0,$FB,$28,$F0,$02,$01,$28,$00 defb $0D,$03,$A4,$1E,$A0,$56,$28,$F0,$02,$01,$28,$00,$12,$03,$A4,$1F defb $A0,$1D,$28,$F0,$08,$01,$28,$01,$04,$01,$28,$00,$1A,$06,$A4,$1F defb $A0,$89,$28,$F0,$A5,$0C,$A1,$BF,$28,$F1,$04,$02,$28,$00,$28,$01 defb $0D,$06,$A4,$1F,$A0,$89,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01 defb $28,$00,$0B,$03,$A4,$1F,$A0,$1D,$28,$F0,$02,$01,$28,$01,$02,$01 defb $28,$00,$0D,$06,$A4,$1E,$A0,$56,$28,$F0,$A5,$0F,$A1,$89,$28,$F1 defb $02,$01,$28,$00,$0B,$03,$A4,$1D,$A0,$A5,$28,$F0,$02,$01,$28,$01 defb $02,$01,$28,$00,$1A,$06,$A4,$1E,$A0,$56,$28,$F0,$A5,$0D,$A1,$08 defb $28,$F1,$04,$02,$28,$00,$28,$01,$0D,$06,$A4,$1E,$A0,$56,$28,$F0 defb $A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1D,$A0,$A5 defb $28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1D,$A0,$08 defb $28,$F0,$A5,$0E,$A1,$56,$28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1C defb $A0,$BF,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$1A,$06,$A4,$1D defb $A0,$08,$28,$F0,$A5,$0C,$A1,$3B,$28,$F1,$04,$02,$28,$00,$28,$01 defb $0D,$06,$A4,$1D,$A0,$08,$28,$F0,$A5,$0C,$A1,$BF,$28,$F1,$02,$01 defb $28,$00,$0B,$03,$A4,$1C,$A0,$BF,$28,$F0,$02,$01,$28,$01,$02,$01 defb $28,$00,$0D,$06,$A4,$1C,$A0,$3B,$28,$F0,$A5,$0D,$A1,$08,$28,$F1 defb $02,$01,$28,$00,$0B,$03,$A4,$17,$A0,$89,$28,$F0,$02,$01,$28,$01 defb $02,$01,$28,$00,$1A,$06,$A4,$17,$A0,$1D,$28,$F0,$A5,$0D,$A1,$A5 defb $28,$F1,$04,$02,$28,$00,$28,$01,$0D,$06,$A4,$16,$A0,$56,$28,$F0 defb $A5,$0C,$A1,$3B,$28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$17,$A0,$1D defb $28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$1A,$06,$A4,$15,$A0,$A5 defb $28,$F0,$A5,$05,$A1,$A5,$28,$F1,$04,$02,$28,$00,$28,$01,$0D,$06 defb $A4,$1C,$A0,$3B,$28,$F0,$A5,$0F,$A1,$1D,$28,$F1,$02,$01,$28,$01 defb $0B,$03,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$00,$02,$01,$28,$01 defb $0D,$06,$A4,$15,$A0,$A5,$28,$F0,$A5,$0F,$A1,$1D,$28,$F1,$02,$01 defb $28,$01,$0B,$03,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$00,$02,$01 defb $28,$01,$0D,$06,$A4,$15,$A0,$A5,$28,$F0,$A5,$0F,$A1,$1D,$28,$F1 defb $02,$01,$28,$01,$0B,$03,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$00 defb $02,$01,$28,$01,$0D,$06,$A4,$1C,$A0,$BF,$28,$F0,$A5,$0F,$A1,$89 defb $28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0D,$A1,$A5,$28,$F1,$02,$01 defb $28,$00,$02,$01,$28,$01,$0D,$06,$A4,$15,$A0,$A5,$28,$F0,$A5,$0F defb $A1,$89,$28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0D,$A1,$A5,$28,$F1 defb $02,$01,$28,$00,$02,$01,$28,$01,$0D,$06,$A4,$15,$A0,$A5,$28,$F0 defb $A5,$0F,$A1,$89,$28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0D,$A1,$A5 defb $28,$F1,$02,$01,$28,$00,$02,$01,$28,$01,$1A,$06,$A4,$1D,$A0,$08 defb $28,$F0,$A5,$0F,$A1,$1D,$28,$F1,$04,$02,$28,$00,$28,$01,$0D,$06 defb $A4,$1D,$A0,$A5,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$00 defb $0B,$03,$A4,$1D,$A0,$08,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00 defb $0D,$06,$A4,$1C,$A0,$BF,$28,$F0,$A5,$0F,$A1,$89,$28,$F1,$02,$01 defb $28,$00,$0B,$03,$A4,$1D,$A0,$08,$28,$F0,$02,$01,$28,$01,$02,$01 defb $28,$00,$0D,$06,$A4,$1C,$A0,$3B,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1 defb $02,$01,$28,$01,$0D,$03,$A5,$0E,$A1,$56,$28,$F1,$02,$01,$28,$01 defb $0D,$03,$A5,$0F,$A1,$1D,$28,$F1,$02,$01,$28,$01,$0D,$03,$A5,$0D defb $A1,$A5,$28,$F1,$02,$01,$28,$01,$0D,$03,$A5,$0E,$A1,$56,$28,$F1 defb $02,$01,$28,$01,$03,$03,$A5,$0F,$A1,$1D,$28,$F1,$0A,$01,$28,$00 defb $02,$01,$28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0F,$A1,$89 defb $28,$F1,$02,$01,$28,$00,$0D,$03,$A4,$1C,$A0,$BF,$28,$F0,$02,$01 defb $28,$00,$0D,$03,$A4,$1D,$A0,$A5,$28,$F0,$02,$01,$28,$00,$07,$03 defb $A4,$1F,$A0,$89,$28,$F0,$06,$01,$28,$01,$02,$01,$28,$00,$0D,$06 defb $A4,$1C,$A0,$3B,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$00 defb $0B,$03,$A4,$1F,$A0,$1D,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00 defb $0D,$06,$A4,$1F,$A0,$89,$28,$F0,$A5,$07,$A1,$89,$28,$F1,$02,$01 defb $28,$01,$0B,$03,$A5,$0C,$A1,$BF,$28,$F1,$02,$01,$28,$00,$02,$01 defb $28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1 defb $02,$01,$28,$01,$0B,$03,$A5,$0F,$A1,$89,$28,$F1,$02,$01,$28,$00 defb $02,$01,$28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0D,$A1,$A5 defb $28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0C,$A1,$BF,$28,$F1,$02,$01 defb $28,$00,$02,$01,$28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$07 defb $A1,$89,$28,$F1,$02,$01,$28,$00,$0D,$03,$A4,$1C,$A0,$BF,$28,$F0 defb $02,$01,$28,$00,$0D,$03,$A4,$1D,$A0,$A5,$28,$F0,$02,$01,$28,$00 defb $07,$03,$A4,$1F,$A0,$89,$28,$F0,$06,$01,$28,$01,$02,$01,$28,$00 defb $0D,$06,$A4,$1C,$A0,$3B,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01 defb $28,$00,$0B,$03,$A4,$1F,$A0,$1D,$28,$F0,$02,$01,$28,$01,$02,$01 defb $28,$00,$0D,$06,$A4,$1F,$A0,$89,$28,$F0,$A5,$07,$A1,$89,$28,$F1 defb $02,$01,$28,$01,$0B,$03,$A5,$0C,$A1,$BF,$28,$F1,$02,$01,$28,$00 defb $02,$01,$28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0D,$A1,$A5 defb $28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0F,$A1,$89,$28,$F1,$02,$01 defb $28,$00,$02,$01,$28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0D defb $A1,$A5,$28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0C,$A1,$BF,$28,$F1 defb $02,$01,$28,$00,$02,$01,$28,$01,$1A,$06,$A4,$1E,$A0,$56,$28,$F0 defb $A5,$0D,$A1,$08,$28,$F1,$04,$02,$28,$00,$28,$01,$0D,$06,$A4,$1D defb $A0,$A5,$28,$F0,$A5,$0E,$A1,$56,$28,$F1,$02,$01,$28,$00,$0B,$03 defb $A4,$1D,$A0,$08,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$0D,$06 defb $A4,$1C,$A0,$BF,$28,$F0,$A5,$0F,$A1,$89,$28,$F1,$02,$01,$28,$00 defb $0B,$03,$A4,$1C,$A0,$3B,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00 defb $1A,$06,$A4,$1D,$A0,$A5,$28,$F0,$A5,$0C,$A1,$BF,$28,$F1,$04,$02 defb $28,$00,$28,$01,$0D,$06,$A4,$1D,$A0,$08,$28,$F0,$A5,$0D,$A1,$A5 defb $28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1C,$A0,$BF,$28,$F0,$02,$01 defb $28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1C,$A0,$3B,$28,$F0,$A5,$0F defb $A1,$89,$28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$17,$A0,$89,$28,$F0 defb $02,$01,$28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1C,$A0,$3B,$28,$F0 defb $A5,$0D,$A1,$08,$28,$F1,$02,$01,$28,$00,$0D,$03,$A4,$1C,$A0,$BF defb $28,$F0,$02,$01,$28,$00,$16,$03,$A4,$15,$A0,$A5,$28,$F0,$04,$01 defb $28,$01,$04,$01,$28,$00,$1A,$06,$A4,$17,$A0,$1D,$28,$F0,$A5,$0D defb $A1,$A5,$28,$F1,$04,$02,$28,$00,$28,$01,$1A,$06,$A4,$17,$A0,$89 defb $28,$F0,$A5,$0F,$A1,$89,$28,$F1,$04,$01,$28,$01,$1A,$03,$A5,$0D defb $A1,$A5,$28,$F1,$04,$01,$28,$01,$12,$03,$A5,$07,$A1,$89,$28,$F1 defb $08,$01,$28,$00,$04,$01,$28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0 defb $A5,$0E,$A1,$56,$28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1C,$A0,$3B defb $28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1C,$A0,$BF defb $28,$F0,$A5,$0D,$A1,$FB,$28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1C defb $A0,$3B,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$0D,$06,$A4,$17 defb $A0,$89,$28,$F0,$A5,$0C,$A1,$BF,$28,$F1,$02,$01,$28,$00,$0B,$03 defb $A4,$17,$A0,$1D,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$1A,$06 defb $A4,$17,$A0,$89,$28,$F0,$A5,$0E,$A1,$56,$28,$F1,$04,$02,$28,$00 defb $28,$01,$1A,$06,$A4,$16,$A0,$56,$28,$F0,$A5,$0C,$A1,$BF,$28,$F1 defb $04,$02,$28,$00,$28,$01,$1A,$06,$A4,$16,$A0,$56,$28,$F0,$A5,$06 defb $A1,$56,$28,$F1,$04,$02,$28,$00,$28,$01,$0D,$06,$A4,$1F,$A0,$89 defb $28,$F0,$A5,$0E,$A1,$56,$28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1F defb $A0,$1D,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1E defb $A0,$56,$28,$F0,$A5,$0F,$A1,$89,$28,$F1,$02,$01,$28,$00,$0B,$03 defb $A4,$1F,$A0,$89,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$0D,$06 defb $A4,$1F,$A0,$1D,$28,$F0,$A5,$14,$A1,$BF,$28,$F1,$02,$01,$28,$00 defb $0B,$03,$A4,$1E,$A0,$56,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00 defb $0D,$06,$A4,$1F,$A0,$1D,$28,$F0,$A5,$0C,$A1,$BF,$28,$F1,$02,$01 defb $28,$01,$0B,$03,$A5,$0D,$A1,$FB,$28,$F1,$02,$01,$28,$00,$02,$01 defb $28,$01,$0D,$06,$A4,$1C,$A0,$BF,$28,$F0,$A5,$0F,$A1,$1D,$28,$F1 defb $02,$01,$28,$01,$0B,$03,$A5,$14,$A1,$BF,$28,$F1,$02,$01,$28,$00 defb $02,$01,$28,$01,$0D,$06,$A4,$1C,$A0,$BF,$28,$F0,$A5,$0F,$A1,$1D defb $28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0D,$A1,$FB,$28,$F1,$02,$01 defb $28,$00,$02,$01,$28,$01,$0D,$06,$A4,$1F,$A0,$89,$28,$F0,$A5,$0E defb $A1,$56,$28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1F,$A0,$1D,$28,$F0 defb $02,$01,$28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1E,$A0,$56,$28,$F0 defb $A5,$0F,$A1,$89,$28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1F,$A0,$89 defb $28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1F,$A0,$1D defb $28,$F0,$A5,$14,$A1,$BF,$28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1E defb $A0,$56,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$1A,$06,$A4,$1F defb $A0,$1D,$28,$F0,$A5,$0C,$A1,$BF,$28,$F1,$04,$02,$28,$00,$28,$01 defb $1A,$06,$A4,$1C,$A0,$BF,$28,$F0,$A5,$14,$A1,$3B,$28,$F1,$04,$02 defb $28,$00,$28,$01,$1A,$06,$A4,$1E,$A0,$56,$28,$F0,$A5,$0F,$A1,$89 defb $28,$F1,$04,$02,$28,$00,$28,$01,$08,$06,$A4,$1F,$A0,$1D,$28,$F0 defb $A5,$14,$A1,$3B,$28,$F1,$02,$01,$28,$00,$08,$03,$A4,$1F,$A0,$89 defb $28,$F0,$02,$01,$28,$00,$06,$03,$A4,$24,$A0,$3B,$28,$F0,$02,$01 defb $28,$01,$02,$01,$28,$00,$1A,$06,$A4,$1C,$A0,$BF,$28,$F0,$A5,$14 defb $A1,$BF,$28,$F1,$04,$02,$28,$00,$28,$01,$1A,$06,$A4,$1D,$A0,$FB defb $28,$F0,$A5,$0C,$A1,$BF,$28,$F1,$04,$02,$28,$00,$28,$01,$1A,$06 defb $A4,$1E,$A0,$56,$28,$F0,$A5,$0E,$A1,$56,$28,$F1,$04,$01,$28,$00 defb $0D,$03,$A4,$1D,$A0,$FB,$28,$F0,$02,$01,$28,$00,$0D,$03,$A4,$1E defb $A0,$56,$28,$F0,$02,$01,$28,$00,$12,$03,$A4,$1F,$A0,$1D,$28,$F0 defb $08,$01,$28,$01,$04,$01,$28,$00,$1A,$06,$A4,$1F,$A0,$89,$28,$F0 defb $A5,$0C,$A1,$BF,$28,$F1,$04,$02,$28,$00,$28,$01,$0D,$06,$A4,$1F defb $A0,$89,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$00,$0B,$03 defb $A4,$1F,$A0,$1D,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$0D,$06 defb $A4,$1E,$A0,$56,$28,$F0,$A5,$0F,$A1,$89,$28,$F1,$02,$01,$28,$00 defb $0B,$03,$A4,$1D,$A0,$A5,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00 defb $1A,$06,$A4,$1E,$A0,$56,$28,$F0,$A5,$0D,$A1,$08,$28,$F1,$04,$02 defb $28,$00,$28,$01,$0D,$06,$A4,$1E,$A0,$56,$28,$F0,$A5,$0D,$A1,$A5 defb $28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1D,$A0,$A5,$28,$F0,$02,$01 defb $28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1D,$A0,$08,$28,$F0,$A5,$0E defb $A1,$56,$28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1C,$A0,$BF,$28,$F0 defb $02,$01,$28,$01,$02,$01,$28,$00,$1A,$06,$A4,$1D,$A0,$08,$28,$F0 defb $A5,$0C,$A1,$3B,$28,$F1,$04,$02,$28,$00,$28,$01,$0D,$06,$A4,$1D defb $A0,$08,$28,$F0,$A5,$0C,$A1,$BF,$28,$F1,$02,$01,$28,$00,$0B,$03 defb $A4,$1C,$A0,$BF,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$0D,$06 defb $A4,$1C,$A0,$3B,$28,$F0,$A5,$0D,$A1,$08,$28,$F1,$02,$01,$28,$00 defb $0B,$03,$A4,$17,$A0,$89,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00 defb $1A,$06,$A4,$17,$A0,$1D,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$04,$02 defb $28,$00,$28,$01,$0D,$06,$A4,$16,$A0,$56,$28,$F0,$A5,$0C,$A1,$3B defb $28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$17,$A0,$1D,$28,$F0,$02,$01 defb $28,$01,$02,$01,$28,$00,$1A,$06,$A4,$15,$A0,$A5,$28,$F0,$A5,$05 defb $A1,$A5,$28,$F1,$04,$02,$28,$00,$28,$01,$0D,$06,$A4,$1C,$A0,$3B defb $28,$F0,$A5,$0F,$A1,$1D,$28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0D defb $A1,$A5,$28,$F1,$02,$01,$28,$00,$02,$01,$28,$01,$0D,$06,$A4,$15 defb $A0,$A5,$28,$F0,$A5,$0F,$A1,$1D,$28,$F1,$02,$01,$28,$01,$0B,$03 defb $A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$00,$02,$01,$28,$01,$0D,$06 defb $A4,$15,$A0,$A5,$28,$F0,$A5,$0F,$A1,$1D,$28,$F1,$02,$01,$28,$01 defb $0B,$03,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$00,$02,$01,$28,$01 defb $0D,$06,$A4,$1C,$A0,$BF,$28,$F0,$A5,$0F,$A1,$89,$28,$F1,$02,$01 defb $28,$01,$0B,$03,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$00,$02,$01 defb $28,$01,$0D,$06,$A4,$15,$A0,$A5,$28,$F0,$A5,$0F,$A1,$89,$28,$F1 defb $02,$01,$28,$01,$0B,$03,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$00 defb $02,$01,$28,$01,$0D,$06,$A4,$15,$A0,$A5,$28,$F0,$A5,$0F,$A1,$89 defb $28,$F1,$02,$01,$28,$01,$0B,$03,$A5,$0D,$A1,$A5,$28,$F1,$02,$01 defb $28,$00,$02,$01,$28,$01,$1A,$06,$A4,$1D,$A0,$08,$28,$F0,$A5,$0F defb $A1,$1D,$28,$F1,$04,$02,$28,$00,$28,$01,$0D,$06,$A4,$1D,$A0,$A5 defb $28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1D defb $A0,$08,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1C defb $A0,$BF,$28,$F0,$A5,$0F,$A1,$89,$28,$F1,$02,$01,$28,$00,$0B,$03 defb $A4,$1D,$A0,$08,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$0D,$06 defb $A4,$1C,$A0,$3B,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$01 defb $0D,$03,$A5,$0E,$A1,$56,$28,$F1,$02,$01,$28,$01,$0D,$03,$A5,$0F defb $A1,$1D,$28,$F1,$02,$01,$28,$01,$0D,$03,$A5,$0D,$A1,$A5,$28,$F1 defb $02,$01,$28,$01,$0D,$03,$A5,$0E,$A1,$56,$28,$F1,$02,$01,$28,$01 defb $03,$03,$A5,$0F,$A1,$1D,$28,$F1,$0A,$01,$28,$00,$02,$01,$28,$01 defb $0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0F,$A1,$89,$28,$F1,$02,$01 defb $28,$00,$0D,$03,$A4,$1C,$A0,$BF,$28,$F0,$02,$01,$28,$00,$0D,$03 defb $A4,$1D,$A0,$A5,$28,$F0,$02,$01,$28,$00,$07,$03,$A4,$1F,$A0,$89 defb $28,$F0,$06,$01,$28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1C,$A0,$3B defb $28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1F defb $A0,$1D,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1F defb $A0,$89,$28,$F0,$A5,$07,$A1,$89,$28,$F1,$02,$01,$28,$01,$0B,$03 defb $A5,$0C,$A1,$BF,$28,$F1,$02,$01,$28,$00,$02,$01,$28,$01,$0D,$06 defb $A4,$17,$A0,$89,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$01 defb $0B,$03,$A5,$0F,$A1,$89,$28,$F1,$02,$01,$28,$00,$02,$01,$28,$01 defb $0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01 defb $28,$01,$0B,$03,$A5,$0C,$A1,$BF,$28,$F1,$02,$01,$28,$00,$02,$01 defb $28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$07,$A1,$89,$28,$F1 defb $02,$01,$28,$00,$0D,$03,$A4,$1C,$A0,$BF,$28,$F0,$02,$01,$28,$00 defb $0D,$03,$A4,$1D,$A0,$A5,$28,$F0,$02,$01,$28,$00,$07,$03,$A4,$1F defb $A0,$89,$28,$F0,$06,$01,$28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1C defb $A0,$3B,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01,$28,$00,$0B,$03 defb $A4,$1F,$A0,$1D,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$0D,$06 defb $A4,$1F,$A0,$89,$28,$F0,$A5,$07,$A1,$89,$28,$F1,$02,$01,$28,$01 defb $0B,$03,$A5,$0C,$A1,$BF,$28,$F1,$02,$01,$28,$00,$02,$01,$28,$01 defb $0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01 defb $28,$01,$0B,$03,$A5,$0F,$A1,$89,$28,$F1,$02,$01,$28,$00,$02,$01 defb $28,$01,$0D,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1 defb $02,$01,$28,$01,$0B,$03,$A5,$0C,$A1,$BF,$28,$F1,$02,$01,$28,$00 defb $02,$01,$28,$01,$1A,$06,$A4,$1E,$A0,$56,$28,$F0,$A5,$0D,$A1,$08 defb $28,$F1,$04,$02,$28,$00,$28,$01,$0D,$06,$A4,$1D,$A0,$A5,$28,$F0 defb $A5,$0E,$A1,$56,$28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1D,$A0,$08 defb $28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$0D,$06,$A4,$1C,$A0,$BF defb $28,$F0,$A5,$0F,$A1,$89,$28,$F1,$02,$01,$28,$00,$0B,$03,$A4,$1C defb $A0,$3B,$28,$F0,$02,$01,$28,$01,$02,$01,$28,$00,$1A,$06,$A4,$1D defb $A0,$A5,$28,$F0,$A5,$0C,$A1,$BF,$28,$F1,$04,$02,$28,$00,$28,$01 defb $0D,$06,$A4,$1D,$A0,$08,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1,$02,$01 defb $28,$00,$0B,$03,$A4,$1C,$A0,$BF,$28,$F0,$02,$01,$28,$01,$02,$01 defb $28,$00,$0D,$06,$A4,$1C,$A0,$3B,$28,$F0,$A5,$0F,$A1,$89,$28,$F1 defb $02,$01,$28,$00,$0B,$03,$A4,$17,$A0,$89,$28,$F0,$02,$01,$28,$01 defb $02,$01,$28,$00,$0D,$06,$A4,$1C,$A0,$3B,$28,$F0,$A5,$0D,$A1,$08 defb $28,$F1,$02,$01,$28,$00,$0D,$03,$A4,$1C,$A0,$BF,$28,$F0,$02,$01 defb $28,$00,$16,$03,$A4,$15,$A0,$A5,$28,$F0,$04,$01,$28,$01,$04,$01 defb $28,$00,$1A,$06,$A4,$17,$A0,$1D,$28,$F0,$A5,$0D,$A1,$A5,$28,$F1 defb $04,$02,$28,$00,$28,$01,$1A,$06,$A4,$17,$A0,$89,$28,$F0,$A5,$0F defb $A1,$89,$28,$F1,$04,$01,$28,$01,$1A,$03,$A5,$0D,$A1,$A5,$28,$F1 defb $04,$01,$28,$01,$12,$03,$A5,$07,$A1,$89,$28,$F1,$08,$01,$28,$00 defb $04,$01,$28,$01,$00 ;; 7045 bytes in song
72.792899
79
0.450089
ef6c6f1b53c67fe69b5aad6f6b5a4d67cfdd7033
2,463
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_334_1496.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_334_1496.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2.log_334_1496.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %rdi push %rdx push %rsi lea addresses_WT_ht+0xb96a, %rsi sub %rdx, %rdx movb $0x61, (%rsi) add %rdi, %rdi pop %rsi pop %rdx pop %rdi pop %r11 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r8 push %r9 push %rbp push %rcx push %rdx // Store lea addresses_D+0xe7aa, %r12 nop nop nop cmp %rbp, %rbp mov $0x5152535455565758, %r9 movq %r9, (%r12) nop nop and $28999, %rdx // Store lea addresses_WT+0x1386a, %rdx nop add %r8, %r8 movw $0x5152, (%rdx) nop xor %r11, %r11 // Faulty Load lea addresses_RW+0x196a, %r8 nop nop sub $21109, %rcx mov (%r8), %r9d lea oracles, %rbp and $0xff, %r9 shlq $12, %r9 mov (%rbp,%r9,1), %r9 pop %rdx pop %rcx pop %rbp pop %r9 pop %r8 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'32': 334} 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 */
31.177215
1,001
0.648396
09acb650c4e0675aec3c5f70ed0fc6cd404ab823
4,134
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_1_1341.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_1_1341.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_1_1341.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r13 push %r14 push %r15 push %rcx push %rdi push %rsi lea addresses_WT_ht+0xc27b, %rsi lea addresses_normal_ht+0x19bdb, %rdi nop nop nop cmp %r13, %r13 mov $84, %rcx rep movsq nop nop nop nop nop cmp %r15, %r15 lea addresses_D_ht+0x187db, %r10 nop nop nop nop dec %r14 movb $0x61, (%r10) nop nop nop nop mfence lea addresses_WT_ht+0xbfdb, %r14 sub $53096, %r10 mov (%r14), %edi nop nop nop add %r15, %r15 lea addresses_WT_ht+0x11467, %r13 nop nop nop nop nop add $32619, %r15 movups (%r13), %xmm2 vpextrq $0, %xmm2, %r10 nop nop nop nop nop sub %r13, %r13 lea addresses_A_ht+0xafdb, %rsi nop nop nop nop nop add $18057, %rdi vmovups (%rsi), %ymm2 vextracti128 $0, %ymm2, %xmm2 vpextrq $0, %xmm2, %r10 nop nop nop nop and $13019, %rdi lea addresses_WT_ht+0x2a1b, %rsi lea addresses_UC_ht+0x130db, %rdi nop nop cmp $16264, %r12 mov $70, %rcx rep movsq nop nop nop nop nop add %r15, %r15 lea addresses_WC_ht+0xeb83, %rsi lea addresses_normal_ht+0x1cbdb, %rdi nop nop nop and %r13, %r13 mov $62, %rcx rep movsw nop nop nop nop nop add %r14, %r14 lea addresses_WC_ht+0xf55b, %rdi nop and $36198, %rcx movb (%rdi), %r13b nop nop nop xor %r12, %r12 pop %rsi pop %rdi pop %rcx pop %r15 pop %r14 pop %r13 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r14 push %r8 push %rax push %rcx push %rdi push %rdx push %rsi // REPMOV mov $0xbdb, %rsi lea addresses_normal+0x67d5, %rdi nop nop nop nop nop sub %r8, %r8 mov $30, %rcx rep movsb nop sub %rcx, %rcx // Store mov $0x29c82900000002db, %rsi nop nop nop nop add $58607, %rdx mov $0x5152535455565758, %r8 movq %r8, (%rsi) nop nop nop cmp $41973, %rdi // Store lea addresses_UC+0x2bdb, %rax nop dec %rsi movw $0x5152, (%rax) xor %rcx, %rcx // Store lea addresses_UC+0x16db, %r8 nop nop nop nop nop cmp %rcx, %rcx mov $0x5152535455565758, %rdx movq %rdx, %xmm2 vmovups %ymm2, (%r8) nop nop nop and %rcx, %rcx // Faulty Load lea addresses_D+0xebdb, %r14 cmp $39210, %rax vmovups (%r14), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $1, %xmm5, %r8 lea oracles, %rdi and $0xff, %r8 shlq $12, %r8 mov (%rdi,%r8,1), %r8 pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r8 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_P', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_normal', 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 8, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': True}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'36': 1} 36 */
18.705882
153
0.64925
9db45cc1d33ddc4c587ffc1aa5286d912587a56b
12,514
asm
Assembly
lib/vgmplayer.asm
hexwab/vgm-player-bbc
50a54c9341d888a34b81edbd579b9e5bc7c2c333
[ "MIT" ]
null
null
null
lib/vgmplayer.asm
hexwab/vgm-player-bbc
50a54c9341d888a34b81edbd579b9e5bc7c2c333
[ "MIT" ]
null
null
null
lib/vgmplayer.asm
hexwab/vgm-player-bbc
50a54c9341d888a34b81edbd579b9e5bc7c2c333
[ "MIT" ]
null
null
null
\ ****************************************************************** \\ VGM Player \\ Code module \ ****************************************************************** VGM_ENABLE_AUDIO = TRUE ; enables output to sound chip (disable for silent testing/demo loop) VGM_HAS_HEADER = FALSE ; set this to TRUE if the VGM bin file contains a metadata header (only useful for sound tracker type demos where you want to have the song info) VGM_FX = FALSE ; set this to TRUE to parse the music into vu-meter type buffers for effect purposes VGM_DEINIT = FALSE ; set this to TRUE to silence the sound chip at tune end (if the tune doesn't do it itself) VGM_FRAME_COUNT = FALSE ; set this to TRUE to keep a count of audio frames played VGM_END_ALLOWED = FALSE ; set this to TRUE to permit vgm_poll_player to be called after the tune has finished VGM_EXO_EOF = FALSE ; no FF byte at the end; rely on exo to tell us when the tune ends VGM_65C02 = FALSE ; use 65C02 opcodes .vgm_player_start IF VGM_65C02 CPU 1 ENDIF \ ****************************************************************** \ * Define global constants \ ****************************************************************** \ ****************************************************************** \ * Declare FX variables \ ****************************************************************** IF VGM_FX VGM_FX_num_freqs = 32 ; number of VU bars - can be 16 or 32 VGM_FX_num_channels = 4 ; number of beat bars (one per channel) \\ Frequency array for vu-meter effect, plus beat bars for 4 channels \\ These two must be contiguous in memory .vgm_freq_array SKIP VGM_FX_num_freqs .vgm_chan_array SKIP VGM_FX_num_channels .vgm_player_reg_vals SKIP 8 ; data values passed to each channel during audio playback (4x channels x pitch + volume) .vgm_player_last_reg SKIP 1 ; last channel (register) refered to by the VGM sound data .vgm_player_reg_bits SKIP 1 ; bits 0 - 7 set if SN register 0 - 7 updated this frame, cleared at start of player poll .vgm_tmp SKIP 1 ; temporary counter ENDIF ; VGM_FX IF VGM_HAS_HEADER \\ Copied out of the RAW VGM header .vgm_player_packet_count SKIP 2 ; number of packets .vgm_player_duration_mins SKIP 1 ; song duration (mins) .vgm_player_duration_secs SKIP 1 ; song duration (secs) .vgm_player_packet_offset SKIP 1 ; offset from start of file to beginning of packet data ENDIF IF VGM_END_ALLOWED \\ Player vars .vgm_player_ended SKIP 1 ; non-zero when player has reached end of tune ENDIF IF VGM_FX .vgm_player_data SKIP 1 ; temporary variable when decoding sound data - must be separate as player running on events ENDIF .vgm_player_count SKIP 1 ; temporary counter IF VGM_FRAME_COUNT .vgm_player_counter SKIP 2 ; increments by 1 every poll (20ms) - used as our tracker line no. & to sync fx with audio update ENDIF \ ****************************************************************** \ * VGM music player data area \ ****************************************************************** IF VGM_HAS_HEADER \\ Player VGM_PLAYER_string_max = 42 ; size of our meta data strings (title and author) VGM_PLAYER_sample_rate = 50 ; locked to 50Hz .vgm_player_song_title_len SKIP 1 .vgm_player_song_title SKIP VGM_PLAYER_string_max .vgm_player_song_author_len SKIP 1 .vgm_player_song_author SKIP VGM_PLAYER_string_max .tmp_msg_idx SKIP 1 ENDIF IF VGM_FX .num_to_bit ; look up bit N EQUB &01, &02, &04, &08, &10, &20, &40, &80 ENDIF \ ****************************************************************** \ * VGM music player routines \ * Plays a RAW format VGM music stream from an Exomiser compressed data stream \ ****************************************************************** \\ Initialise the VGM player with an Exomizer compressed data stream \\ X - lo byte of data stream to be played \\ Y - hi byte of data stream to be played .vgm_init_stream { \\ Initialise exomizer - must have some data ready to decrunch JSR exo_init_decruncher \\ Initialise music player - parses header ; fall through } .vgm_init_player { IF VGM_HAS_HEADER ; non-zero return in A on error only if VGM_HAS_HEADER is defined \\ <header section> \\ [byte] - header size - indicates number of bytes in header section LDA #1 STA vgm_player_packet_offset jsr exo_get_decrunched_byte STA vgm_player_count CMP #5 BCS parse_header ; we need at least 5 bytes to parse! JMP error .parse_header CLC ADC vgm_player_packet_offset STA vgm_player_packet_offset \\ [byte] - indicates the required playback rate in Hz eg. 50/60/100 jsr exo_get_decrunched_byte ; should really check carry status for EOF CMP #VGM_PLAYER_sample_rate ; we only support 50Hz files BEQ is_50HZ ; return non-zero to indicate error JMP error .is_50HZ DEC vgm_player_count \\ [byte] - packet count lsb jsr exo_get_decrunched_byte ; should really check carry status for EOF STA vgm_player_packet_count DEC vgm_player_count \\ [byte] - packet count msb jsr exo_get_decrunched_byte ; should really check carry status for EOF STA vgm_player_packet_count+1 DEC vgm_player_count \\ [byte] - duration minutes jsr exo_get_decrunched_byte ; should really check carry status for EOF STA vgm_player_duration_mins DEC vgm_player_count \\ [byte] - duration seconds jsr exo_get_decrunched_byte ; should really check carry status for EOF STA vgm_player_duration_secs .header_loop DEC vgm_player_count BEQ done_header jsr exo_get_decrunched_byte ; should really check carry status for EOF \\ don't know what this byte is so ignore it JMP header_loop .done_header \\ <title section> \\ [byte] - title string size INC vgm_player_packet_offset jsr exo_get_decrunched_byte ; should really check carry status for EOF STA vgm_player_count CLC ADC vgm_player_packet_offset STA vgm_player_packet_offset \\ [dd] ... - ZT title string LDX #0 .title_loop STX tmp_msg_idx LDA vgm_player_count BEQ done_title ; make sure we consume all the title string DEC vgm_player_count jsr exo_get_decrunched_byte ; should really check carry status for EOF LDX tmp_msg_idx CPX #VGM_PLAYER_string_max BCS title_loop ; don't write if buffer full STA vgm_player_song_title,X INX JMP title_loop \\ Where title string is smaller than our buffer .done_title STX vgm_player_song_title_len LDA #' ' .title_pad_loop CPX #VGM_PLAYER_string_max BCS done_title_padding STA vgm_player_song_title,X INX JMP title_pad_loop .done_title_padding \\ <author section> \\ [byte] - author string size INC vgm_player_packet_offset jsr exo_get_decrunched_byte ; should really check carry status for EOF STA vgm_player_count CLC ADC vgm_player_packet_offset STA vgm_player_packet_offset \\ [dd] ... - ZT author string LDX #0 .author_loop STX tmp_msg_idx LDA vgm_player_count BEQ done_author ; make sure we consume all the author string DEC vgm_player_count jsr exo_get_decrunched_byte ; should really check carry status for EOF LDX tmp_msg_idx CPX #VGM_PLAYER_string_max BCS author_loop STA vgm_player_song_author,X ; don't write if buffer full INX JMP author_loop \\ Where author string is smaller than our buffer .done_author STX vgm_player_song_author_len LDA #' ' .author_pad_loop CPX #VGM_PLAYER_string_max BCS done_author_padding STA vgm_player_song_author,X INX JMP author_pad_loop .done_author_padding ENDIF ;VGM_HAS_HEADER \\ Initialise vars IF VGM_FRAME_COUNT LDA #&FF STA vgm_player_counter STA vgm_player_counter+1 ENDIF IF VGM_END_ALLOWED IF VGM_65C02 STZ vgm_player_ended ELSE LDA #0 STA vgm_player_ended ENDIF ENDIF IF VGM_FX IF VGM_65C02 STZ vgm_player_last_reg STZ vgm_player_reg_bits ELSE LDA #0 STA vgm_player_last_reg STA vgm_player_reg_bits ENDIF ENDIF \\ Return zero RTS IF VGM_HAS_HEADER \\ Return error .error LDA #&FF RTS ENDIF } IF VGM_DEINIT .vgm_deinit_player { \\ Zero volume on all channels LDA #&9F: JSR psg_strobe LDA #&BF: JSR psg_strobe LDA #&DF: JSR psg_strobe LDA #&FF IF VGM_END_ALLOWED STA vgm_player_ended ENDIF ; fall-through } .psg_strobe { IF VGM_ENABLE_AUDIO ldy #255 sty $fe43 sta $fe4f ; not $fe41! IF VGM_65C02 stz $fe40 ELSE lda #0 sta $fe40 ENDIF pha pla ; 7 cycles, 2 bytes lda #$08 sta $fe40 ;4+3+2+4+1(stretched)=14*2=28 PSG cycles ~WE was held low ENDIF ; VGM_ENABLE_AUDIO rts } ENDIF \\ call every 20ms with interrupts disabled .vgm_poll_player { IF VGM_FX IF VGM_65C02 STZ vgm_player_reg_bits ELSE LDA #0 STA vgm_player_reg_bits ENDIF ENDIF IF VGM_END_ALLOWED LDA vgm_player_ended BNE _sample_end ENDIF \\ <packets section> \\ [byte] - indicating number of data writes within the current packet (max 11) \\ [dd] ... - data \\ [byte] - number of data writes within the next packet \\ [dd] ... - data \\ ...` \\ <eof section> \\ [0xff] - eof \\ Get next byte from the stream jsr exo_get_decrunched_byte bcs _player_end ; exo stream done? tay ; set flags beq wait_20_ms IF VGM_EXO_EOF=0 bmi _player_end ENDIF ldy #255 sty $fe43 \\ Byte is #data bytes to send to sound chip: sta vgm_player_count IF VGM_ENABLE_AUDIO bne _first ; always ENDIF .sound_data_loop IF VGM_ENABLE_AUDIO sta $fe40 ; 2+6+3+4+1(stretched)=16*2=32 PSG clock cycles ~WE was held low ENDIF ._first jsr exo_get_decrunched_byte ; if C is not clear here something's gone terribly wrong IF VGM_FX JSR psg_decode ENDIF IF VGM_ENABLE_AUDIO sta $fe4f ; not $fe41! IF VGM_65C02 stz $fe40 ELSE lda #0 sta $fe40 ENDIF lda #$08 ENDIF ; VGM_ENABLE_AUDIO dec vgm_player_count bne sound_data_loop clc IF VGM_ENABLE_AUDIO sta $fe40 ; 2+6+2+4+2=16*2=32 PSG clock cycles ~WE was held low ENDIF .wait_20_ms IF VGM_FRAME_COUNT INC vgm_player_counter ; indicate we have completed another frame of audio BNE no_carry INC vgm_player_counter+1 .no_carry CLC ENDIF IF (VGM_EXO_EOF=0) OR VGM_END_ALLOWED OR VGM_FRAME_COUNT OR VGM_DEINIT RTS ENDIF ._player_end IF VGM_DEINIT \\ Silence sound chip JSR vgm_deinit_player ELSE IF VGM_END_ALLOWED STA vgm_player_ended ENDIF ENDIF IF VGM_FRAME_COUNT INC vgm_player_counter ; indicate we have completed one last frame of audio BNE _sample_end INC vgm_player_counter+1 ENDIF ._sample_end IF (VGM_EXO_EOF=0) OR VGM_END_ALLOWED OR VGM_FRAME_COUNT SEC ENDIF RTS } IF VGM_FX .psg_decode { STA vgm_player_data AND #&80 ; bit 7 is a LATCH command if 1, DATA if 0 BEQ second_byte \\ First byte \\ Obtain register fields \\ Get register from bits 7,6,5 LDA vgm_player_data AND #&70 ; bits 6,5,4 are the register number LSR A:LSR A:LSR A:LSR A STA vgm_player_last_reg \\ Y is our register number TAY \\ Set bit field for each register used this frame LDA num_to_bit,Y ; look up bit for reg number ORA vgm_player_reg_bits ; mask in bit STA vgm_player_reg_bits \\ Is this tone or volume register? TYA AND #&01 BEQ process_tone_data \\ Volume data LDA vgm_player_data AND #&0F ; volume is bottom 4 bits STA vgm_player_reg_vals,Y \\ Invert volume (0 = max 15 = off) SEC LDA #&0F ; max volume SBC vgm_player_reg_vals,Y STA vgm_player_reg_vals,Y JMP return \\ Frequency / tone data .process_tone_data CPY #&40 ; SN_REG_NOISE_CTRL ; Y already register number BNE tone_channel \\ Noise channel LDA vgm_player_data AND #&07 ; (SN_NF_MASK OR SN_FB_MASK) ; store noise freq data STA vgm_player_reg_vals,Y JMP trigger_beat .tone_channel LDA vgm_player_data AND #&0f ; SN_FREQ_FIRST_BYTE_MASK ; F3 - F0 LSR A: LSR A ; lose bottom 2 bits STA vgm_player_reg_vals,Y .trigger_beat \\ trigger the beat effect for this channel TYA:LSR A:TAY ; channel is register / 2 LDA #9 STA vgm_chan_array, Y BNE return ; always .second_byte LDA vgm_player_data AND #&3F; SN_FREQ_SECOND_BYTE_MASK ; F9 - F4 STA vgm_tmp ASL A: ASL A ; put 6 bits to top of byte LDY vgm_player_last_reg ORA vgm_player_reg_vals,Y ; combine with bottom 2 bits STA vgm_player_reg_vals,Y \\ trigger the beat effect for this channel ; technically correct, but better visuals without this. ; TYA:LSR A:TAY ; channel is register / 2 ; LDA #9 ; STA vgm_chan_array, Y LDA vgm_tmp IF VGM_FX_num_freqs == 16 \\ 16 frequency bars, so use top 4 bits LSR A : LSR A ELSE \\ 32 frequency bars, so use top 5 bits LSR A ENDIF \\ clamp final frequency to array range and invert AND #VGM_FX_num_freqs-1 STA vgm_tmp LDA #VGM_FX_num_freqs-1 SEC SBC vgm_tmp TAX LDA #15 STA vgm_freq_array,X .return LDA vgm_player_data RTS } ENDIF ; VGM_FX .vgm_player_end
23.522556
171
0.718955
ab3047fde95da561a19e8ad57bdc14ea1db3f80d
8,307
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1349.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1349.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1349.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r14 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x888e, %rsi lea addresses_UC_ht+0x37ef, %rdi nop inc %r14 mov $100, %rcx rep movsw nop nop and $28437, %rdx lea addresses_D_ht+0x134c5, %r10 nop sub %rbp, %rbp mov (%r10), %r14 nop nop nop nop nop cmp $46623, %rcx lea addresses_A_ht+0x1e86b, %r14 nop xor $29832, %rsi mov $0x6162636465666768, %rcx movq %rcx, (%r14) nop nop nop cmp $41618, %rbp lea addresses_normal_ht+0x9f23, %rsi lea addresses_UC_ht+0x24cb, %rdi nop nop nop add %r13, %r13 mov $45, %rcx rep movsw nop nop nop nop nop inc %rbp lea addresses_A_ht+0x1406b, %r14 inc %rdi mov $0x6162636465666768, %r10 movq %r10, %xmm1 movups %xmm1, (%r14) nop add $12580, %rdx lea addresses_normal_ht+0x8b55, %r10 nop cmp %rdx, %rdx mov $0x6162636465666768, %rsi movq %rsi, (%r10) nop nop inc %rcx lea addresses_normal_ht+0x1d96b, %rsi lea addresses_D_ht+0x1bc6b, %rdi cmp %rdx, %rdx mov $30, %rcx rep movsw nop nop nop add %rbp, %rbp lea addresses_A_ht+0x1162b, %rsi lea addresses_WC_ht+0x355b, %rdi clflush (%rdi) nop nop inc %rdx mov $121, %rcx rep movsq sub $3561, %r14 lea addresses_UC_ht+0x10ceb, %rsi lea addresses_WT_ht+0x116b, %rdi sub %r14, %r14 mov $78, %rcx rep movsw nop nop nop nop nop xor %rsi, %rsi lea addresses_WT_ht+0x1b790, %rdi clflush (%rdi) and $49943, %rcx movb $0x61, (%rdi) nop nop nop nop inc %r10 lea addresses_D_ht+0x71eb, %r10 xor $34490, %rsi movw $0x6162, (%r10) nop nop xor %rdx, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r14 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r13 push %rbp push %rdi push %rdx // Load lea addresses_D+0xb86b, %rbp nop nop cmp %r13, %r13 mov (%rbp), %r11w nop nop and %r13, %r13 // Store lea addresses_WC+0x15831, %r10 nop nop nop nop nop and %r12, %r12 movl $0x51525354, (%r10) nop nop nop nop nop add %r11, %r11 // Load lea addresses_WT+0x1796b, %rdi nop nop nop add $64298, %r12 mov (%rdi), %r11 add $38568, %r13 // Store lea addresses_WT+0x1a8ab, %rbp clflush (%rbp) and %rdx, %rdx mov $0x5152535455565758, %r10 movq %r10, %xmm3 vmovups %ymm3, (%rbp) nop nop xor $41254, %r12 // Load lea addresses_US+0x4183, %rdi nop nop nop nop sub $26569, %r12 movb (%rdi), %r13b nop nop nop nop nop xor %r11, %r11 // Store lea addresses_PSE+0xd6b, %rdx cmp $26522, %rbp mov $0x5152535455565758, %r12 movq %r12, (%rdx) nop nop nop sub %rdx, %rdx // Faulty Load lea addresses_PSE+0x2c6b, %r11 nop cmp $44352, %r12 vmovups (%r11), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $0, %xmm7, %r10 lea oracles, %rdx and $0xff, %r10 shlq $12, %r10 mov (%rdx,%r10,1), %r10 pop %rdx pop %rdi pop %rbp pop %r13 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 10}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WT', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_WT', 'same': False, 'AVXalign': False, 'congruent': 3}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 2}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': True, 'congruent': 6}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_PSE', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 1}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 3}, 'dst': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 5}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': True, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 1}} {'OP': 'REPM', 'src': {'same': True, 'type': 'addresses_normal_ht', 'congruent': 1}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 11}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 5}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 2}} {'OP': 'REPM', 'src': {'same': True, 'type': 'addresses_UC_ht', 'congruent': 6}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 8}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_WT_ht', 'same': True, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 7}} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
33.228
2,999
0.654869
b657711f34feabe134ff61fb6b8ced69a7f343a9
413
asm
Assembly
programs/oeis/078/A078584.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/078/A078584.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/078/A078584.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A078584: a(n) = prime(2n) - prime(2n-1). ; 1,2,2,2,6,6,2,6,2,4,6,6,4,4,4,4,2,2,6,6,2,2,2,12,2,6,10,6,2,4,10,4,4,6,2,6,6,4,8,8,2,2,4,8,2,12,4,4,12,18,10,6,6,6,2,6,2,10,4,6,12,6,10,10,6,4,6,8,14,12,10,4,10,4,4,4,4,4,10,4,6,4,6,6,4,2,2,10,10,6,4,4,6,6,22,10 mul $0,2 add $0,1 seq $0,40 ; The prime numbers. div $0,2 mul $0,2 sub $0,1 seq $0,64722 ; a(1) = 0; for n >= 2, a(n) = n - (largest prime <= n). add $0,1
34.416667
213
0.542373
ab4c0c5beeb5064655975f79436f3f23b9f12de4
772
asm
Assembly
oeis/011/A011800.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/011/A011800.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/011/A011800.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A011800: Number of labeled forests of n nodes each component of which is a path. ; Submitted by Jon Maiga ; 1,1,2,7,34,206,1486,12412,117692,1248004,14625856,187638716,2614602112,39310384192,634148436104,10923398137576,200069534481616,3882002527006352,79535575126745632,1715658099715217584,38862145700256398816,922196493098506987936,22876531150362924296032,592077954763413439286912,15959294608092366961831744,447282456450300007206198976,13014469535336595048157381376,392590715560066751943546021952,12261937206757348869317676024832,396058769270433784955570942365184,13214570026590050014571599747574656 add $0,1 lpb $0 mov $4,$0 sub $0,1 mul $2,2 sub $3,$1 mul $1,$0 div $2,2 sub $4,1 mul $2,$4 add $2,1 div $3,2 sub $2,$3 add $1,$2 lpe mov $0,$2
36.761905
494
0.805699
f8754078c4ed69442a7a4274e23bbf8c65b73641
332
asm
Assembly
unit_tests/static-tests/common/assert.success.asm
undisbeliever/untech-engine
2cd0df80e88161d4d509242237cfdd2d9a030a8b
[ "MIT" ]
34
2016-06-17T16:47:47.000Z
2021-12-07T08:09:50.000Z
unit_tests/static-tests/common/assert.success.asm
undisbeliever/untech-engine
2cd0df80e88161d4d509242237cfdd2d9a030a8b
[ "MIT" ]
1
2016-09-30T09:22:36.000Z
2016-09-30T12:28:33.000Z
unit_tests/static-tests/common/assert.success.asm
undisbeliever/untech-engine
2cd0df80e88161d4d509242237cfdd2d9a030a8b
[ "MIT" ]
null
null
null
// assert.inc architecture wdc65816-strict include "../../../src/common/assert.inc" assert(1) assert(1 + 1 == 2) assertPowerOfTwo(0) assertPowerOfTwo(1) assertPowerOfTwo(2) assertPowerOfTwo(4) assertPowerOfTwo(8) assertPowerOfTwo(16) assertPowerOfTwo(32) assertPowerOfTwo(64) assertPowerOfTwo(128) assertPowerOfTwo(0x80000000)
15.809524
40
0.783133
1ff16a92945319f43aa2483c143d3bb0556c4158
2,215
asm
Assembly
src/test/ref/flipper-rex2.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/test/ref/flipper-rex2.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/test/ref/flipper-rex2.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
// Commodore 64 PRG executable file .file [name="flipper-rex2.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segment Basic :BasicUpstart(main) .label RASTER = $d012 .label SCREEN = $400 .segment Code main: { // prepare() jsr prepare __b3: ldx #$19 __b1: // while(*RASTER!=254) lda #$fe cmp RASTER bne __b1 __b2: // while(*RASTER!=255) lda #$ff cmp RASTER bne __b2 // for( byte c : 25..1) dex cpx #0 bne __b1 // flip() jsr flip // plot() jsr plot jmp __b3 } // Prepare buffer prepare: { ldx #0 __b1: // buffer1[i] = i txa sta buffer1,x // for( byte i : 0..255) inx cpx #0 bne __b1 // } rts } // Flip buffer flip: { .label c = 2 .label r = 3 lda #$10 sta.z r ldx #$f ldy #0 __b1: lda #$10 sta.z c __b2: // buffer2[dstIdx] = buffer1[srcIdx++] lda buffer1,y sta buffer2,x // buffer2[dstIdx] = buffer1[srcIdx++]; iny // dstIdx = dstIdx+16 txa axs #-[$10] // for( byte c : 16..1) dec.z c lda.z c bne __b2 // dstIdx--; dex // for( byte r : 16..1) dec.z r lda.z r bne __b1 ldx #0 __b4: // buffer1[i] = buffer2[i] lda buffer2,x sta buffer1,x // for(byte i : 0..255) inx cpx #0 bne __b4 // } rts } // Plot buffer on screen plot: { .label line = 4 .label y = 3 lda #$10 sta.z y lda #<SCREEN+5*$28+$c sta.z line lda #>SCREEN+5*$28+$c sta.z line+1 ldx #0 __b1: ldy #0 __b2: // for(byte x=0; x<16; x++ ) cpy #$10 bcc __b3 // line = line+40 lda #$28 clc adc.z line sta.z line bcc !+ inc.z line+1 !: // for(byte y : 16..1) dec.z y lda.z y bne __b1 // } rts __b3: // line[x] = buffer1[i++] lda buffer1,x sta (line),y // line[x] = buffer1[i++]; inx // for(byte x=0; x<16; x++ ) iny jmp __b2 } .segment Data buffer1: .fill $10*$10, 0 buffer2: .fill $10*$10, 0
16.167883
63
0.507901
3539645d96f2f691a128ca75c1185f2c79db85d6
625
asm
Assembly
oeis/153/A153485.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/153/A153485.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/153/A153485.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A153485: Sum of all aliquot divisors of all positive integers <= n. ; Submitted by Jon Maiga ; 0,1,2,5,6,12,13,20,24,32,33,49,50,60,69,84,85,106,107,129,140,154,155,191,197,213,226,254,255,297,298,329,344,364,377,432,433,455,472,522,523,577,578,618,651,677,678,754,762,805,826,872,873,939,956,1020,1043,1075,1076,1184,1185,1219,1260,1323,1342,1420,1421,1479,1506,1580,1581,1704,1705,1745,1794,1858,1877,1967,1968,2074,2114,2158,2159,2299,2322,2368,2401,2493,2494,2638,2659,2735,2770,2820,2845,3001,3002,3075,3132,3249 mov $1,$0 seq $1,244049 ; Sum of all proper divisors of all positive integers <= n. add $1,$0 mov $0,$1
69.444444
424
0.7408
18d4332dca3f5af59fb31657691f48ef529c04b8
7,754
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1649.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1649.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1649.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r13 push %r9 push %rcx push %rdi push %rsi lea addresses_WC_ht+0x4d4, %r12 and %rdi, %rdi mov (%r12), %si nop nop nop nop xor $38722, %r13 lea addresses_WC_ht+0x1bad4, %rsi lea addresses_A_ht+0xa594, %rdi clflush (%rdi) nop nop cmp %r10, %r10 mov $90, %rcx rep movsq nop nop xor $19551, %r12 lea addresses_A_ht+0x1c754, %r12 nop xor $38874, %r11 movb $0x61, (%r12) nop nop nop cmp $21065, %rcx lea addresses_UC_ht+0x13704, %rcx nop nop cmp %r10, %r10 movl $0x61626364, (%rcx) dec %rsi lea addresses_WC_ht+0xf665, %rsi nop nop nop inc %r10 vmovups (%rsi), %ymm1 vextracti128 $1, %ymm1, %xmm1 vpextrq $1, %xmm1, %rcx cmp %r10, %r10 lea addresses_normal_ht+0x1e4d0, %rsi lea addresses_WC_ht+0x16b14, %rdi nop nop nop nop cmp $12368, %r13 mov $20, %rcx rep movsw nop nop and $53463, %r10 lea addresses_normal_ht+0x15dc, %r11 add %r12, %r12 movb $0x61, (%r11) nop nop xor %r13, %r13 lea addresses_WT_ht+0x1e1f0, %r11 nop nop nop xor %rsi, %rsi movb (%r11), %r13b nop nop nop add %r13, %r13 lea addresses_UC_ht+0x1e4d4, %rsi lea addresses_A_ht+0x1b2d4, %rdi nop sub %r11, %r11 mov $83, %rcx rep movsw and $13618, %r13 lea addresses_WT_ht+0xbb54, %rcx clflush (%rcx) nop nop nop sub $6390, %r13 vmovups (%rcx), %ymm0 vextracti128 $1, %ymm0, %xmm0 vpextrq $0, %xmm0, %r11 nop nop nop nop nop xor $34927, %rcx lea addresses_UC_ht+0x36b5, %r10 nop nop nop sub %r11, %r11 mov $0x6162636465666768, %r13 movq %r13, %xmm2 vmovups %ymm2, (%r10) nop nop nop sub $10980, %rdi lea addresses_WT_ht+0x10a24, %rdi nop nop nop sub $16890, %rsi mov $0x6162636465666768, %rcx movq %rcx, %xmm6 movups %xmm6, (%rdi) and %rdi, %rdi lea addresses_A_ht+0x80d4, %rsi nop nop nop cmp %rdi, %rdi mov (%rsi), %r13 and %rsi, %rsi lea addresses_UC_ht+0x1b070, %rsi nop add %r12, %r12 mov $0x6162636465666768, %r13 movq %r13, %xmm7 vmovups %ymm7, (%rsi) nop nop and %r12, %r12 lea addresses_UC_ht+0xf2d4, %rsi lea addresses_D_ht+0x124f4, %rdi nop nop nop nop sub %r9, %r9 mov $38, %rcx rep movsq nop nop nop nop nop xor $58554, %rcx pop %rsi pop %rdi pop %rcx pop %r9 pop %r13 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %r9 push %rbp push %rdi // Faulty Load lea addresses_WT+0x1dcd4, %rdi nop nop and $7354, %r12 mov (%rdi), %r14d lea oracles, %rdi and $0xff, %r14 shlq $12, %r14 mov (%rdi,%r14,1), %r14 pop %rdi pop %rbp pop %r9 pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_WT'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 11, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 9, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'dst': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 3, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 1, 'same': True, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 2, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 11, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 8, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 6, 'same': True, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 1, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'39': 21829} 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 */
36.065116
2,999
0.656306
3381bf1e145b1a0e932aaa7984c5c89313e6e026
3,971
asm
Assembly
symetrie.asm
fatman2021/symetrie
158b073b9a0f26bb42100ca26a970101f877ff90
[ "Apache-2.0" ]
null
null
null
symetrie.asm
fatman2021/symetrie
158b073b9a0f26bb42100ca26a970101f877ff90
[ "Apache-2.0" ]
null
null
null
symetrie.asm
fatman2021/symetrie
158b073b9a0f26bb42100ca26a970101f877ff90
[ "Apache-2.0" ]
null
null
null
; __ _______ __ ; \_|/\||_||/\|_/ ; // /||_||\ \\ ; /symetrie 256b\ ; intrrro by Rrrola ;rrrolaATgmailDOTcom ; greets to everyone with a six-letter name ; thanks to Pirx for rdtsc info ; use the keyboard to control speed ZOOM equ 66 org 100h ; assume si=100h bp=9??h dx=cs ;Initialization mov ax,13h int 10h ; MCGA video mode add dh,al ; needs 76+76+64 = 216kB free memory mov ds,dx add dh,al ; ds: blue plane mov fs,dx ; fs: orange plane push 0a000h ; es: screen pop es ; ss: fpu<>cpu ;Palette: 4 bits black>red>yellow | 4 bits black>blue salc ; al = 0 mov dx,3C8h out dx,al inc dx P or ax,0000111111000011b push ax ; ax = rrrr1111 11bbbb11 shr ax,10 out dx,al mul al shr ax,6 out dx,al ; g = r*r pop ax out dx,al inc ax ; b overflows to r jnz P rdtsc ; ; comment for compatibility: T = 3439334328 mov [ss:si],eax; ; T = random() ;Main loop M fninit inc dword[ss:si] fild dword[ss:si] mov [bp+si],al fidiv word[bp+si] ; {t = ++T/scancode} fldpi fmul st1 fsin fld st1 fsin fadd st0 fldl2e fmul st3 fsin ; {u=sin(1.443*t) v=2*sin(t) w=sin(3.142*t) t} ;Blit, fade out F mov ah,[fs:di] ; combine planes mov al,[di] ; screen = (Orange & 0xF0) + (Blue>>4 & 0x0F) shr ax,4 and al,1111b sub [fs:di],ah ; Orange *= 15/16, Blue *= 15/16 sub [di],al aad 16 ; ah=0 stosb loop F ; cx=0 mov di,32000+160 ; center of the screen ;Gaussian blur (both planes) mov bx,321 ; 1 2 1 G std ; 2 4 2 / 16 B mov dl,[fs:si] ; 1 2 1 lodsb add [bx+si],al rcr byte[bx+si],1 add [fs:bx+si],dl rcr byte[fs:bx+si],1 loop B neg bx cld js B ; +/- pass shr bx,7 fld st2 ; {y=v x=w u v w t} jnz G ; vertical/horizontal pass ;Iteration loop I push ds ; P = Blue inc eax ; RAND++, set sign flag imul eax,byte 3 ; RAND*=3, set carry flag ;If (!carry), rotate by 240 degrees jc C mov dword[bp+si],0xBF000003 R fmul dword[bp+si] fild word[bp+si] ; c = cos(4pi/3) = -1/2 fsqrt ; s = sin(4pi/3) = -sqrt(3)/2 fmul st1 fxch st2 ; {x cy sy u v w t} cmc jc R ; run twice: {cy cx sx sy u v w t} fsubrp st2 faddp st2 ; {y=-sx+cy x=cx+sy u v w t} ;If (!sign), apply circle inversion and translation C js S push fs pop ds ; P = Orange jnc D fadd st2 ; if (carry) y+=u D fld st1 fmul st0 fld st1 fmul st0 faddp st1 ; {x*x+y*y y x u v w t} fldlg2 jnc E fmul st5 E fdivrp st1 ; r = (carry ? lg2*v : lg2) / (x*x+y*y) fmul st2,st0 fmulp st1 ; {y*=r x*=r u v w t} jnc S fadd st4 ; if (carry) y+=w ;Convert coords, clip, draw pixel S mov byte[bp+si],ZOOM*5/6 ; upper byte is zero fld st0 fimul word[bp+si] fistp word[bp+di] ; iy = y*ZOOMY imul bx,[bp+di],320 jo O ; if (|iy|>102), don't draw (can be "jc") mov byte[bp+si],ZOOM fld st1 fimul word[bp+si] fistp word[bp+di] ; ix = x*ZOOMX, don't bother with overflow add bx,[bp+di] ; adr = (iy+100)*320 + ix+160 mov dl,255 sub dl,[bx+di] shr dl,5 ; blend with max color add [bx+di],dl ; P[adr] = (255 + P[adr]*31)/32 neg bx add [bx+di],dl ; central symmetry O pop ds loop I ;Keycheck, exit in al,60h dec ax ;-) ah=0 from blit and 65536 iterations jnz near M mov al,3 int 10h ; text mode ret times 510-($-$$) db 0 ; Pad remainder of boot sector with 0s dw 0xAA55 ; The standard PC boot signature
22.308989
67
0.512969
1eae49f0758988ae1639f86f176037ec3df62135
519
asm
Assembly
tv4_checkered.asm
kanpapa/cosmac
044ca0439a636515e46c4138a9a16958db8a90d1
[ "MIT" ]
2
2020-07-18T11:38:57.000Z
2022-01-11T17:21:32.000Z
tv4_checkered.asm
kanpapa/cosmac
044ca0439a636515e46c4138a9a16958db8a90d1
[ "MIT" ]
null
null
null
tv4_checkered.asm
kanpapa/cosmac
044ca0439a636515e46c4138a9a16958db8a90d1
[ "MIT" ]
null
null
null
.LF tv4_checkered .TF tv4_checkered.hex,HEX * * TV Display program 4 checkered for COSMAC * SB-Assembler * .CR 1802 ;To load the 1802 cross overlay .OR $0000 * START LDI LOOP1 ;LOOP1 -> D PLO 3 ;D -> R(3).0 LDI 0 PHI 3 SEP 3 ;3 -> P LOOP1 LDI $40 ;$40 -> D PLO 4 ;D -> R(4).0 LDI 0 PHI 4 LOOP2 LDI $20 ;$20 -> D PLO 0 ;D -> R(0).0 LDI 0 PHI 0 LOOP3 IDL BN2 LOOP3 GLO 4 SHR SHR SHR SHR BDF LOOP4 LDI $AA STR 4 BR LOOP5 LOOP4 LDI $55 STR 4 LOOP5 INC 4 GLO 4 SMI $F0 BNZ LOOP2 BR LOOP1 .EN
12.069767
43
0.622351
bdebab2d9052fcd649a0e2375586ad294a59aa93
4,431
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_671.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_671.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_671.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 %r13 push %r8 push %rdi push %rsi lea addresses_A_ht+0x10ca5, %rdi nop nop nop add %rsi, %rsi and $0xffffffffffffffc0, %rdi vmovaps (%rdi), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $1, %xmm6, %r8 nop nop nop nop cmp $40500, %r13 pop %rsi pop %rdi pop %r8 pop %r13 ret .global s_faulty_load s_faulty_load: push %r12 push %r14 push %rbp push %rcx push %rdi push %rdx push %rsi // REPMOV lea addresses_PSE+0xb3a5, %rsi mov $0xa25, %rdi sub %r12, %r12 mov $62, %rcx rep movsw and $48368, %rdx // Faulty Load lea addresses_normal+0x1c9a5, %rsi nop nop inc %rbp vmovups (%rsi), %ymm0 vextracti128 $0, %ymm0, %xmm0 vpextrq $0, %xmm0, %rdi lea oracles, %r14 and $0xff, %rdi shlq $12, %rdi mov (%r14,%rdi,1), %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r14 pop %r12 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_PSE'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_P'}, 'OP': 'REPM'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 4, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
56.807692
2,999
0.662604
ab13405220d42881d062c8a0ae6b2f0a226f2fa0
741
asm
Assembly
oeis/068/A068179.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/068/A068179.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/068/A068179.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A068179: Product_{i=1..3} (i+x) / Product_(i=1..3} (i-x) = Sum_{n>=0} (a(n)/b(n))*x^n. ; Submitted by Jon Maiga ; 1,11,121,971,6721,43331,269641,1648091,9981841,60176051,361921561,2174145611,13052763361,78340331171,470113403881,2820895001531,16926014399281,101558020876691,609353931324601,3656141011383851,21936898349097601,131621546957940611,789729752379651721,4738379926257820571,28430283793654426321,170581715470584610931,1023490330950152913241,6140942100082195399691,36845652943639690513441,221073918691283066135651,1326443515236043903397161,7958661100681321414969211,47751966631883145423246961 lpb $0 sub $0,1 mov $2,$0 max $2,0 seq $2,1240 ; Expansion of 1/((1-2x)(1-3x)(1-6x)). add $1,$2 lpe mov $0,$1 mul $0,10 add $0,1
49.4
486
0.793522
69f2ed3a2b135aebd4386ee0b924ed483b2c91e9
610
asm
Assembly
programs/oeis/186/A186330.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/186/A186330.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/186/A186330.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A186330: Adjusted joint rank sequence of (f(i)) and (g(j)) with f(i) after g(j) when f(i)=g(j), where f and g are the pentagonal numbers and the hexagonal numbers. Complement of A186331. ; 2,3,5,7,9,11,13,15,16,18,20,22,24,26,28,29,31,33,35,37,39,41,43,44,46,48,50,52,54,56,57,59,61,63,65,67,69,71,72,74,76,78,80,82,84,85,87,89,91,93,95,97,99,100,102,104,106,108,110,112,113,115,117,119,121,123,125,126,128,130,132,134,136,138,140,141,143,145,147,149,151,153,154,156,158,160,162,164,166,168,169,171,173,175,177,179,181,182,184,186 mov $1,$0 mul $1,97 div $1,52 add $1,1 mul $1,2 sub $1,2 div $1,2 add $1,2
50.833333
343
0.688525
1e548cc88ae83ccdabb849f566a6a33cc79d27e4
131
asm
Assembly
Source Codes Testing/1b.asm
aravindvnair99/emu8086
1713febd30618f0d03f09c6a7f8eb6c4a68888b8
[ "MIT" ]
11
2018-12-31T08:56:38.000Z
2022-02-28T15:49:14.000Z
Source Codes Testing/1b.asm
aravindvnair99/emu8086
1713febd30618f0d03f09c6a7f8eb6c4a68888b8
[ "MIT" ]
null
null
null
Source Codes Testing/1b.asm
aravindvnair99/emu8086
1713febd30618f0d03f09c6a7f8eb6c4a68888b8
[ "MIT" ]
4
2020-11-10T01:29:54.000Z
2022-01-20T04:50:08.000Z
.MODEL SMALL .STACK .DATA num1 db 18h num2 db 7h ;code section .CODE .STARTUP mov al,num1 mov bl,num2 sub al,bl .EXIT END
10.076923
13
0.687023
c28b2fba6b60bd5ac273162ccd51cb0ba70ee9a8
653
asm
Assembly
oeis/301/A301686.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
oeis/301/A301686.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
oeis/301/A301686.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A301686: Coordination sequence for node of type V1 in "krh" 2-D tiling (or net). ; 1,5,7,14,17,19,28,29,31,42,41,43,56,53,55,70,65,67,84,77,79,98,89,91,112,101,103,126,113,115,140,125,127,154,137,139,168,149,151,182,161,163,196,173,175,210,185,187,224,197,199,238,209,211,252,221,223,266,233,235,280,245,247,294,257,259,308,269,271,322,281,283,336,293,295,350,305,307,364,317,319,378,329,331,392,341,343,406,353,355,420,365,367,434,377,379,448,389,391,462 mov $3,2 mov $4,$0 lpb $3 mov $0,$4 sub $3,1 add $0,$3 trn $0,1 seq $0,301687 ; Partial sums of A301686. mov $2,$3 mul $2,$0 add $5,$2 lpe min $4,1 mul $4,$0 mov $0,$5 sub $0,$4
32.65
374
0.666156
5a045570b3c5e8335ec27c53748c5db697bd4ca5
59,034
asm
Assembly
user/cowtest.asm
joshiamey/xv6-riscv-fall19
c7098eff109b6548bd16b25996ce47e64925e854
[ "MIT-0" ]
1
2020-10-23T12:35:52.000Z
2020-10-23T12:35:52.000Z
user/cowtest.asm
joshiamey/xv6-riscv-fall19
c7098eff109b6548bd16b25996ce47e64925e854
[ "MIT-0" ]
null
null
null
user/cowtest.asm
joshiamey/xv6-riscv-fall19
c7098eff109b6548bd16b25996ce47e64925e854
[ "MIT-0" ]
null
null
null
user/_cowtest: file format elf64-littleriscv Disassembly of section .text: 0000000000000000 <simpletest>: // allocate more than half of physical memory, // then fork. this will fail in the default // kernel, which does not support copy-on-write. void simpletest() { 0: 7179 addi sp,sp,-48 2: f406 sd ra,40(sp) 4: f022 sd s0,32(sp) 6: ec26 sd s1,24(sp) 8: e84a sd s2,16(sp) a: e44e sd s3,8(sp) c: 1800 addi s0,sp,48 uint64 phys_size = PHYSTOP - KERNBASE; int sz = (phys_size / 3) * 2; printf("simple: "); e: 00001517 auipc a0,0x1 12: c6250513 addi a0,a0,-926 # c70 <malloc+0xe8> 16: 00001097 auipc ra,0x1 1a: ab4080e7 jalr -1356(ra) # aca <printf> char *p = sbrk(sz); 1e: 05555537 lui a0,0x5555 22: 55450513 addi a0,a0,1364 # 5555554 <__BSS_END__+0x5550774> 26: 00000097 auipc ra,0x0 2a: 7ac080e7 jalr 1964(ra) # 7d2 <sbrk> if(p == (char*)0xffffffffffffffffL){ 2e: 57fd li a5,-1 30: 06f50563 beq a0,a5,9a <simpletest+0x9a> 34: 84aa mv s1,a0 printf("sbrk(%d) failed\n", sz); exit(-1); } for(char *q = p; q < p + sz; q += 4096){ 36: 05556937 lui s2,0x5556 3a: 992a add s2,s2,a0 3c: 6985 lui s3,0x1 *(int*)q = getpid(); 3e: 00000097 auipc ra,0x0 42: 78c080e7 jalr 1932(ra) # 7ca <getpid> 46: c088 sw a0,0(s1) for(char *q = p; q < p + sz; q += 4096){ 48: 94ce add s1,s1,s3 4a: fe991ae3 bne s2,s1,3e <simpletest+0x3e> } int pid = fork(); 4e: 00000097 auipc ra,0x0 52: 6f4080e7 jalr 1780(ra) # 742 <fork> if(pid < 0){ 56: 06054363 bltz a0,bc <simpletest+0xbc> printf("fork() failed\n"); exit(-1); } if(pid == 0) 5a: cd35 beqz a0,d6 <simpletest+0xd6> exit(0); wait(0); 5c: 4501 li a0,0 5e: 00000097 auipc ra,0x0 62: 6f4080e7 jalr 1780(ra) # 752 <wait> if(sbrk(-sz) == (char*)0xffffffffffffffffL){ 66: faaab537 lui a0,0xfaaab 6a: aac50513 addi a0,a0,-1364 # fffffffffaaaaaac <__BSS_END__+0xfffffffffaaa5ccc> 6e: 00000097 auipc ra,0x0 72: 764080e7 jalr 1892(ra) # 7d2 <sbrk> 76: 57fd li a5,-1 78: 06f50363 beq a0,a5,de <simpletest+0xde> printf("sbrk(-%d) failed\n", sz); exit(-1); } printf("ok\n"); 7c: 00001517 auipc a0,0x1 80: c4450513 addi a0,a0,-956 # cc0 <malloc+0x138> 84: 00001097 auipc ra,0x1 88: a46080e7 jalr -1466(ra) # aca <printf> } 8c: 70a2 ld ra,40(sp) 8e: 7402 ld s0,32(sp) 90: 64e2 ld s1,24(sp) 92: 6942 ld s2,16(sp) 94: 69a2 ld s3,8(sp) 96: 6145 addi sp,sp,48 98: 8082 ret printf("sbrk(%d) failed\n", sz); 9a: 055555b7 lui a1,0x5555 9e: 55458593 addi a1,a1,1364 # 5555554 <__BSS_END__+0x5550774> a2: 00001517 auipc a0,0x1 a6: bde50513 addi a0,a0,-1058 # c80 <malloc+0xf8> aa: 00001097 auipc ra,0x1 ae: a20080e7 jalr -1504(ra) # aca <printf> exit(-1); b2: 557d li a0,-1 b4: 00000097 auipc ra,0x0 b8: 696080e7 jalr 1686(ra) # 74a <exit> printf("fork() failed\n"); bc: 00001517 auipc a0,0x1 c0: bdc50513 addi a0,a0,-1060 # c98 <malloc+0x110> c4: 00001097 auipc ra,0x1 c8: a06080e7 jalr -1530(ra) # aca <printf> exit(-1); cc: 557d li a0,-1 ce: 00000097 auipc ra,0x0 d2: 67c080e7 jalr 1660(ra) # 74a <exit> exit(0); d6: 00000097 auipc ra,0x0 da: 674080e7 jalr 1652(ra) # 74a <exit> printf("sbrk(-%d) failed\n", sz); de: 055555b7 lui a1,0x5555 e2: 55458593 addi a1,a1,1364 # 5555554 <__BSS_END__+0x5550774> e6: 00001517 auipc a0,0x1 ea: bc250513 addi a0,a0,-1086 # ca8 <malloc+0x120> ee: 00001097 auipc ra,0x1 f2: 9dc080e7 jalr -1572(ra) # aca <printf> exit(-1); f6: 557d li a0,-1 f8: 00000097 auipc ra,0x0 fc: 652080e7 jalr 1618(ra) # 74a <exit> 0000000000000100 <threetest>: // this causes more than half of physical memory // to be allocated, so it also checks whether // copied pages are freed. void threetest() { 100: 7179 addi sp,sp,-48 102: f406 sd ra,40(sp) 104: f022 sd s0,32(sp) 106: ec26 sd s1,24(sp) 108: e84a sd s2,16(sp) 10a: e44e sd s3,8(sp) 10c: e052 sd s4,0(sp) 10e: 1800 addi s0,sp,48 uint64 phys_size = PHYSTOP - KERNBASE; int sz = phys_size / 4; int pid1, pid2; printf("three: "); 110: 00001517 auipc a0,0x1 114: bb850513 addi a0,a0,-1096 # cc8 <malloc+0x140> 118: 00001097 auipc ra,0x1 11c: 9b2080e7 jalr -1614(ra) # aca <printf> char *p = sbrk(sz); 120: 02000537 lui a0,0x2000 124: 00000097 auipc ra,0x0 128: 6ae080e7 jalr 1710(ra) # 7d2 <sbrk> if(p == (char*)0xffffffffffffffffL){ 12c: 57fd li a5,-1 12e: 08f50763 beq a0,a5,1bc <threetest+0xbc> 132: 84aa mv s1,a0 printf("sbrk(%d) failed\n", sz); exit(-1); } pid1 = fork(); 134: 00000097 auipc ra,0x0 138: 60e080e7 jalr 1550(ra) # 742 <fork> if(pid1 < 0){ 13c: 08054f63 bltz a0,1da <threetest+0xda> printf("fork failed\n"); exit(-1); } if(pid1 == 0){ 140: c955 beqz a0,1f4 <threetest+0xf4> *(int*)q = 9999; } exit(0); } for(char *q = p; q < p + sz; q += 4096){ 142: 020009b7 lui s3,0x2000 146: 99a6 add s3,s3,s1 148: 8926 mv s2,s1 14a: 6a05 lui s4,0x1 *(int*)q = getpid(); 14c: 00000097 auipc ra,0x0 150: 67e080e7 jalr 1662(ra) # 7ca <getpid> 154: 00a92023 sw a0,0(s2) # 5556000 <__BSS_END__+0x5551220> for(char *q = p; q < p + sz; q += 4096){ 158: 9952 add s2,s2,s4 15a: ff3919e3 bne s2,s3,14c <threetest+0x4c> } wait(0); 15e: 4501 li a0,0 160: 00000097 auipc ra,0x0 164: 5f2080e7 jalr 1522(ra) # 752 <wait> sleep(1); 168: 4505 li a0,1 16a: 00000097 auipc ra,0x0 16e: 670080e7 jalr 1648(ra) # 7da <sleep> for(char *q = p; q < p + sz; q += 4096){ 172: 6a05 lui s4,0x1 if(*(int*)q != getpid()){ 174: 0004a903 lw s2,0(s1) 178: 00000097 auipc ra,0x0 17c: 652080e7 jalr 1618(ra) # 7ca <getpid> 180: 10a91a63 bne s2,a0,294 <threetest+0x194> for(char *q = p; q < p + sz; q += 4096){ 184: 94d2 add s1,s1,s4 186: ff3497e3 bne s1,s3,174 <threetest+0x74> printf("wrong content\n"); exit(-1); } } if(sbrk(-sz) == (char*)0xffffffffffffffffL){ 18a: fe000537 lui a0,0xfe000 18e: 00000097 auipc ra,0x0 192: 644080e7 jalr 1604(ra) # 7d2 <sbrk> 196: 57fd li a5,-1 198: 10f50b63 beq a0,a5,2ae <threetest+0x1ae> printf("sbrk(-%d) failed\n", sz); exit(-1); } printf("ok\n"); 19c: 00001517 auipc a0,0x1 1a0: b2450513 addi a0,a0,-1244 # cc0 <malloc+0x138> 1a4: 00001097 auipc ra,0x1 1a8: 926080e7 jalr -1754(ra) # aca <printf> } 1ac: 70a2 ld ra,40(sp) 1ae: 7402 ld s0,32(sp) 1b0: 64e2 ld s1,24(sp) 1b2: 6942 ld s2,16(sp) 1b4: 69a2 ld s3,8(sp) 1b6: 6a02 ld s4,0(sp) 1b8: 6145 addi sp,sp,48 1ba: 8082 ret printf("sbrk(%d) failed\n", sz); 1bc: 020005b7 lui a1,0x2000 1c0: 00001517 auipc a0,0x1 1c4: ac050513 addi a0,a0,-1344 # c80 <malloc+0xf8> 1c8: 00001097 auipc ra,0x1 1cc: 902080e7 jalr -1790(ra) # aca <printf> exit(-1); 1d0: 557d li a0,-1 1d2: 00000097 auipc ra,0x0 1d6: 578080e7 jalr 1400(ra) # 74a <exit> printf("fork failed\n"); 1da: 00001517 auipc a0,0x1 1de: af650513 addi a0,a0,-1290 # cd0 <malloc+0x148> 1e2: 00001097 auipc ra,0x1 1e6: 8e8080e7 jalr -1816(ra) # aca <printf> exit(-1); 1ea: 557d li a0,-1 1ec: 00000097 auipc ra,0x0 1f0: 55e080e7 jalr 1374(ra) # 74a <exit> pid2 = fork(); 1f4: 00000097 auipc ra,0x0 1f8: 54e080e7 jalr 1358(ra) # 742 <fork> if(pid2 < 0){ 1fc: 04054263 bltz a0,240 <threetest+0x140> if(pid2 == 0){ 200: ed29 bnez a0,25a <threetest+0x15a> for(char *q = p; q < p + (sz/5)*4; q += 4096){ 202: 0199a9b7 lui s3,0x199a 206: 99a6 add s3,s3,s1 208: 8926 mv s2,s1 20a: 6a05 lui s4,0x1 *(int*)q = getpid(); 20c: 00000097 auipc ra,0x0 210: 5be080e7 jalr 1470(ra) # 7ca <getpid> 214: 00a92023 sw a0,0(s2) for(char *q = p; q < p + (sz/5)*4; q += 4096){ 218: 9952 add s2,s2,s4 21a: ff2999e3 bne s3,s2,20c <threetest+0x10c> for(char *q = p; q < p + (sz/5)*4; q += 4096){ 21e: 6a05 lui s4,0x1 if(*(int*)q != getpid()){ 220: 0004a903 lw s2,0(s1) 224: 00000097 auipc ra,0x0 228: 5a6080e7 jalr 1446(ra) # 7ca <getpid> 22c: 04a91763 bne s2,a0,27a <threetest+0x17a> for(char *q = p; q < p + (sz/5)*4; q += 4096){ 230: 94d2 add s1,s1,s4 232: fe9997e3 bne s3,s1,220 <threetest+0x120> exit(-1); 236: 557d li a0,-1 238: 00000097 auipc ra,0x0 23c: 512080e7 jalr 1298(ra) # 74a <exit> printf("fork failed"); 240: 00001517 auipc a0,0x1 244: aa050513 addi a0,a0,-1376 # ce0 <malloc+0x158> 248: 00001097 auipc ra,0x1 24c: 882080e7 jalr -1918(ra) # aca <printf> exit(-1); 250: 557d li a0,-1 252: 00000097 auipc ra,0x0 256: 4f8080e7 jalr 1272(ra) # 74a <exit> for(char *q = p; q < p + (sz/2); q += 4096){ 25a: 01000737 lui a4,0x1000 25e: 9726 add a4,a4,s1 *(int*)q = 9999; 260: 6789 lui a5,0x2 262: 70f7879b addiw a5,a5,1807 for(char *q = p; q < p + (sz/2); q += 4096){ 266: 6685 lui a3,0x1 *(int*)q = 9999; 268: c09c sw a5,0(s1) for(char *q = p; q < p + (sz/2); q += 4096){ 26a: 94b6 add s1,s1,a3 26c: fee49ee3 bne s1,a4,268 <threetest+0x168> exit(0); 270: 4501 li a0,0 272: 00000097 auipc ra,0x0 276: 4d8080e7 jalr 1240(ra) # 74a <exit> printf("wrong content\n"); 27a: 00001517 auipc a0,0x1 27e: a7650513 addi a0,a0,-1418 # cf0 <malloc+0x168> 282: 00001097 auipc ra,0x1 286: 848080e7 jalr -1976(ra) # aca <printf> exit(-1); 28a: 557d li a0,-1 28c: 00000097 auipc ra,0x0 290: 4be080e7 jalr 1214(ra) # 74a <exit> printf("wrong content\n"); 294: 00001517 auipc a0,0x1 298: a5c50513 addi a0,a0,-1444 # cf0 <malloc+0x168> 29c: 00001097 auipc ra,0x1 2a0: 82e080e7 jalr -2002(ra) # aca <printf> exit(-1); 2a4: 557d li a0,-1 2a6: 00000097 auipc ra,0x0 2aa: 4a4080e7 jalr 1188(ra) # 74a <exit> printf("sbrk(-%d) failed\n", sz); 2ae: 020005b7 lui a1,0x2000 2b2: 00001517 auipc a0,0x1 2b6: 9f650513 addi a0,a0,-1546 # ca8 <malloc+0x120> 2ba: 00001097 auipc ra,0x1 2be: 810080e7 jalr -2032(ra) # aca <printf> exit(-1); 2c2: 557d li a0,-1 2c4: 00000097 auipc ra,0x0 2c8: 486080e7 jalr 1158(ra) # 74a <exit> 00000000000002cc <filetest>: char junk3[4096]; // test whether copyout() simulates COW faults. void filetest() { 2cc: 7179 addi sp,sp,-48 2ce: f406 sd ra,40(sp) 2d0: f022 sd s0,32(sp) 2d2: ec26 sd s1,24(sp) 2d4: e84a sd s2,16(sp) 2d6: 1800 addi s0,sp,48 printf("file: "); 2d8: 00001517 auipc a0,0x1 2dc: a2850513 addi a0,a0,-1496 # d00 <malloc+0x178> 2e0: 00000097 auipc ra,0x0 2e4: 7ea080e7 jalr 2026(ra) # aca <printf> buf[0] = 99; 2e8: 06300793 li a5,99 2ec: 00002717 auipc a4,0x2 2f0: aef70223 sb a5,-1308(a4) # 1dd0 <buf> for(int i = 0; i < 4; i++){ 2f4: fc042c23 sw zero,-40(s0) if(pipe(fds) != 0){ 2f8: 00001497 auipc s1,0x1 2fc: ac848493 addi s1,s1,-1336 # dc0 <fds> for(int i = 0; i < 4; i++){ 300: 490d li s2,3 if(pipe(fds) != 0){ 302: 8526 mv a0,s1 304: 00000097 auipc ra,0x0 308: 456080e7 jalr 1110(ra) # 75a <pipe> 30c: e149 bnez a0,38e <filetest+0xc2> printf("pipe() failed\n"); exit(-1); } int pid = fork(); 30e: 00000097 auipc ra,0x0 312: 434080e7 jalr 1076(ra) # 742 <fork> if(pid < 0){ 316: 08054963 bltz a0,3a8 <filetest+0xdc> printf("fork failed\n"); exit(-1); } if(pid == 0){ 31a: c545 beqz a0,3c2 <filetest+0xf6> printf("error: read the wrong value\n"); exit(1); } exit(0); } if(write(fds[1], &i, sizeof(i)) != sizeof(i)){ 31c: 4611 li a2,4 31e: fd840593 addi a1,s0,-40 322: 40c8 lw a0,4(s1) 324: 00000097 auipc ra,0x0 328: 446080e7 jalr 1094(ra) # 76a <write> 32c: 4791 li a5,4 32e: 10f51b63 bne a0,a5,444 <filetest+0x178> for(int i = 0; i < 4; i++){ 332: fd842783 lw a5,-40(s0) 336: 2785 addiw a5,a5,1 338: 0007871b sext.w a4,a5 33c: fcf42c23 sw a5,-40(s0) 340: fce951e3 bge s2,a4,302 <filetest+0x36> printf("error: write failed\n"); exit(-1); } } int xstatus = 0; 344: fc042e23 sw zero,-36(s0) 348: 4491 li s1,4 for(int i = 0; i < 4; i++) { wait(&xstatus); 34a: fdc40513 addi a0,s0,-36 34e: 00000097 auipc ra,0x0 352: 404080e7 jalr 1028(ra) # 752 <wait> if(xstatus != 0) { 356: fdc42783 lw a5,-36(s0) 35a: 10079263 bnez a5,45e <filetest+0x192> for(int i = 0; i < 4; i++) { 35e: 34fd addiw s1,s1,-1 360: f4ed bnez s1,34a <filetest+0x7e> exit(1); } } if(buf[0] != 99){ 362: 00002717 auipc a4,0x2 366: a6e74703 lbu a4,-1426(a4) # 1dd0 <buf> 36a: 06300793 li a5,99 36e: 0ef71d63 bne a4,a5,468 <filetest+0x19c> printf("error: child overwrote parent\n"); exit(1); } printf("ok\n"); 372: 00001517 auipc a0,0x1 376: 94e50513 addi a0,a0,-1714 # cc0 <malloc+0x138> 37a: 00000097 auipc ra,0x0 37e: 750080e7 jalr 1872(ra) # aca <printf> } 382: 70a2 ld ra,40(sp) 384: 7402 ld s0,32(sp) 386: 64e2 ld s1,24(sp) 388: 6942 ld s2,16(sp) 38a: 6145 addi sp,sp,48 38c: 8082 ret printf("pipe() failed\n"); 38e: 00001517 auipc a0,0x1 392: 97a50513 addi a0,a0,-1670 # d08 <malloc+0x180> 396: 00000097 auipc ra,0x0 39a: 734080e7 jalr 1844(ra) # aca <printf> exit(-1); 39e: 557d li a0,-1 3a0: 00000097 auipc ra,0x0 3a4: 3aa080e7 jalr 938(ra) # 74a <exit> printf("fork failed\n"); 3a8: 00001517 auipc a0,0x1 3ac: 92850513 addi a0,a0,-1752 # cd0 <malloc+0x148> 3b0: 00000097 auipc ra,0x0 3b4: 71a080e7 jalr 1818(ra) # aca <printf> exit(-1); 3b8: 557d li a0,-1 3ba: 00000097 auipc ra,0x0 3be: 390080e7 jalr 912(ra) # 74a <exit> sleep(1); 3c2: 4505 li a0,1 3c4: 00000097 auipc ra,0x0 3c8: 416080e7 jalr 1046(ra) # 7da <sleep> if(read(fds[0], buf, sizeof(i)) != sizeof(i)){ 3cc: 4611 li a2,4 3ce: 00002597 auipc a1,0x2 3d2: a0258593 addi a1,a1,-1534 # 1dd0 <buf> 3d6: 00001517 auipc a0,0x1 3da: 9ea52503 lw a0,-1558(a0) # dc0 <fds> 3de: 00000097 auipc ra,0x0 3e2: 384080e7 jalr 900(ra) # 762 <read> 3e6: 4791 li a5,4 3e8: 02f51c63 bne a0,a5,420 <filetest+0x154> sleep(1); 3ec: 4505 li a0,1 3ee: 00000097 auipc ra,0x0 3f2: 3ec080e7 jalr 1004(ra) # 7da <sleep> if(j != i){ 3f6: fd842703 lw a4,-40(s0) 3fa: 00002797 auipc a5,0x2 3fe: 9d67a783 lw a5,-1578(a5) # 1dd0 <buf> 402: 02f70c63 beq a4,a5,43a <filetest+0x16e> printf("error: read the wrong value\n"); 406: 00001517 auipc a0,0x1 40a: 92a50513 addi a0,a0,-1750 # d30 <malloc+0x1a8> 40e: 00000097 auipc ra,0x0 412: 6bc080e7 jalr 1724(ra) # aca <printf> exit(1); 416: 4505 li a0,1 418: 00000097 auipc ra,0x0 41c: 332080e7 jalr 818(ra) # 74a <exit> printf("error: read failed\n"); 420: 00001517 auipc a0,0x1 424: 8f850513 addi a0,a0,-1800 # d18 <malloc+0x190> 428: 00000097 auipc ra,0x0 42c: 6a2080e7 jalr 1698(ra) # aca <printf> exit(1); 430: 4505 li a0,1 432: 00000097 auipc ra,0x0 436: 318080e7 jalr 792(ra) # 74a <exit> exit(0); 43a: 4501 li a0,0 43c: 00000097 auipc ra,0x0 440: 30e080e7 jalr 782(ra) # 74a <exit> printf("error: write failed\n"); 444: 00001517 auipc a0,0x1 448: 90c50513 addi a0,a0,-1780 # d50 <malloc+0x1c8> 44c: 00000097 auipc ra,0x0 450: 67e080e7 jalr 1662(ra) # aca <printf> exit(-1); 454: 557d li a0,-1 456: 00000097 auipc ra,0x0 45a: 2f4080e7 jalr 756(ra) # 74a <exit> exit(1); 45e: 4505 li a0,1 460: 00000097 auipc ra,0x0 464: 2ea080e7 jalr 746(ra) # 74a <exit> printf("error: child overwrote parent\n"); 468: 00001517 auipc a0,0x1 46c: 90050513 addi a0,a0,-1792 # d68 <malloc+0x1e0> 470: 00000097 auipc ra,0x0 474: 65a080e7 jalr 1626(ra) # aca <printf> exit(1); 478: 4505 li a0,1 47a: 00000097 auipc ra,0x0 47e: 2d0080e7 jalr 720(ra) # 74a <exit> 0000000000000482 <main>: int main(int argc, char *argv[]) { 482: 1141 addi sp,sp,-16 484: e406 sd ra,8(sp) 486: e022 sd s0,0(sp) 488: 0800 addi s0,sp,16 simpletest(); 48a: 00000097 auipc ra,0x0 48e: b76080e7 jalr -1162(ra) # 0 <simpletest> // check that the first simpletest() freed the physical memory. simpletest(); 492: 00000097 auipc ra,0x0 496: b6e080e7 jalr -1170(ra) # 0 <simpletest> threetest(); 49a: 00000097 auipc ra,0x0 49e: c66080e7 jalr -922(ra) # 100 <threetest> threetest(); 4a2: 00000097 auipc ra,0x0 4a6: c5e080e7 jalr -930(ra) # 100 <threetest> threetest(); 4aa: 00000097 auipc ra,0x0 4ae: c56080e7 jalr -938(ra) # 100 <threetest> filetest(); 4b2: 00000097 auipc ra,0x0 4b6: e1a080e7 jalr -486(ra) # 2cc <filetest> printf("ALL COW TESTS PASSED\n"); 4ba: 00001517 auipc a0,0x1 4be: 8ce50513 addi a0,a0,-1842 # d88 <malloc+0x200> 4c2: 00000097 auipc ra,0x0 4c6: 608080e7 jalr 1544(ra) # aca <printf> exit(0); 4ca: 4501 li a0,0 4cc: 00000097 auipc ra,0x0 4d0: 27e080e7 jalr 638(ra) # 74a <exit> 00000000000004d4 <strcpy>: #include "kernel/fcntl.h" #include "user/user.h" char* strcpy(char *s, const char *t) { 4d4: 1141 addi sp,sp,-16 4d6: e422 sd s0,8(sp) 4d8: 0800 addi s0,sp,16 char *os; os = s; while((*s++ = *t++) != 0) 4da: 87aa mv a5,a0 4dc: 0585 addi a1,a1,1 4de: 0785 addi a5,a5,1 4e0: fff5c703 lbu a4,-1(a1) 4e4: fee78fa3 sb a4,-1(a5) 4e8: fb75 bnez a4,4dc <strcpy+0x8> ; return os; } 4ea: 6422 ld s0,8(sp) 4ec: 0141 addi sp,sp,16 4ee: 8082 ret 00000000000004f0 <strcmp>: int strcmp(const char *p, const char *q) { 4f0: 1141 addi sp,sp,-16 4f2: e422 sd s0,8(sp) 4f4: 0800 addi s0,sp,16 while(*p && *p == *q) 4f6: 00054783 lbu a5,0(a0) 4fa: cb91 beqz a5,50e <strcmp+0x1e> 4fc: 0005c703 lbu a4,0(a1) 500: 00f71763 bne a4,a5,50e <strcmp+0x1e> p++, q++; 504: 0505 addi a0,a0,1 506: 0585 addi a1,a1,1 while(*p && *p == *q) 508: 00054783 lbu a5,0(a0) 50c: fbe5 bnez a5,4fc <strcmp+0xc> return (uchar)*p - (uchar)*q; 50e: 0005c503 lbu a0,0(a1) } 512: 40a7853b subw a0,a5,a0 516: 6422 ld s0,8(sp) 518: 0141 addi sp,sp,16 51a: 8082 ret 000000000000051c <strlen>: uint strlen(const char *s) { 51c: 1141 addi sp,sp,-16 51e: e422 sd s0,8(sp) 520: 0800 addi s0,sp,16 int n; for(n = 0; s[n]; n++) 522: 00054783 lbu a5,0(a0) 526: cf91 beqz a5,542 <strlen+0x26> 528: 0505 addi a0,a0,1 52a: 87aa mv a5,a0 52c: 4685 li a3,1 52e: 9e89 subw a3,a3,a0 530: 00f6853b addw a0,a3,a5 534: 0785 addi a5,a5,1 536: fff7c703 lbu a4,-1(a5) 53a: fb7d bnez a4,530 <strlen+0x14> ; return n; } 53c: 6422 ld s0,8(sp) 53e: 0141 addi sp,sp,16 540: 8082 ret for(n = 0; s[n]; n++) 542: 4501 li a0,0 544: bfe5 j 53c <strlen+0x20> 0000000000000546 <memset>: void* memset(void *dst, int c, uint n) { 546: 1141 addi sp,sp,-16 548: e422 sd s0,8(sp) 54a: 0800 addi s0,sp,16 char *cdst = (char *) dst; int i; for(i = 0; i < n; i++){ 54c: ce09 beqz a2,566 <memset+0x20> 54e: 87aa mv a5,a0 550: fff6071b addiw a4,a2,-1 554: 1702 slli a4,a4,0x20 556: 9301 srli a4,a4,0x20 558: 0705 addi a4,a4,1 55a: 972a add a4,a4,a0 cdst[i] = c; 55c: 00b78023 sb a1,0(a5) for(i = 0; i < n; i++){ 560: 0785 addi a5,a5,1 562: fee79de3 bne a5,a4,55c <memset+0x16> } return dst; } 566: 6422 ld s0,8(sp) 568: 0141 addi sp,sp,16 56a: 8082 ret 000000000000056c <strchr>: char* strchr(const char *s, char c) { 56c: 1141 addi sp,sp,-16 56e: e422 sd s0,8(sp) 570: 0800 addi s0,sp,16 for(; *s; s++) 572: 00054783 lbu a5,0(a0) 576: cb99 beqz a5,58c <strchr+0x20> if(*s == c) 578: 00f58763 beq a1,a5,586 <strchr+0x1a> for(; *s; s++) 57c: 0505 addi a0,a0,1 57e: 00054783 lbu a5,0(a0) 582: fbfd bnez a5,578 <strchr+0xc> return (char*)s; return 0; 584: 4501 li a0,0 } 586: 6422 ld s0,8(sp) 588: 0141 addi sp,sp,16 58a: 8082 ret return 0; 58c: 4501 li a0,0 58e: bfe5 j 586 <strchr+0x1a> 0000000000000590 <gets>: char* gets(char *buf, int max) { 590: 711d addi sp,sp,-96 592: ec86 sd ra,88(sp) 594: e8a2 sd s0,80(sp) 596: e4a6 sd s1,72(sp) 598: e0ca sd s2,64(sp) 59a: fc4e sd s3,56(sp) 59c: f852 sd s4,48(sp) 59e: f456 sd s5,40(sp) 5a0: f05a sd s6,32(sp) 5a2: ec5e sd s7,24(sp) 5a4: 1080 addi s0,sp,96 5a6: 8baa mv s7,a0 5a8: 8a2e mv s4,a1 int i, cc; char c; for(i=0; i+1 < max; ){ 5aa: 892a mv s2,a0 5ac: 4481 li s1,0 cc = read(0, &c, 1); if(cc < 1) break; buf[i++] = c; if(c == '\n' || c == '\r') 5ae: 4aa9 li s5,10 5b0: 4b35 li s6,13 for(i=0; i+1 < max; ){ 5b2: 89a6 mv s3,s1 5b4: 2485 addiw s1,s1,1 5b6: 0344d863 bge s1,s4,5e6 <gets+0x56> cc = read(0, &c, 1); 5ba: 4605 li a2,1 5bc: faf40593 addi a1,s0,-81 5c0: 4501 li a0,0 5c2: 00000097 auipc ra,0x0 5c6: 1a0080e7 jalr 416(ra) # 762 <read> if(cc < 1) 5ca: 00a05e63 blez a0,5e6 <gets+0x56> buf[i++] = c; 5ce: faf44783 lbu a5,-81(s0) 5d2: 00f90023 sb a5,0(s2) if(c == '\n' || c == '\r') 5d6: 01578763 beq a5,s5,5e4 <gets+0x54> 5da: 0905 addi s2,s2,1 5dc: fd679be3 bne a5,s6,5b2 <gets+0x22> for(i=0; i+1 < max; ){ 5e0: 89a6 mv s3,s1 5e2: a011 j 5e6 <gets+0x56> 5e4: 89a6 mv s3,s1 break; } buf[i] = '\0'; 5e6: 99de add s3,s3,s7 5e8: 00098023 sb zero,0(s3) # 199a000 <__BSS_END__+0x1995220> return buf; } 5ec: 855e mv a0,s7 5ee: 60e6 ld ra,88(sp) 5f0: 6446 ld s0,80(sp) 5f2: 64a6 ld s1,72(sp) 5f4: 6906 ld s2,64(sp) 5f6: 79e2 ld s3,56(sp) 5f8: 7a42 ld s4,48(sp) 5fa: 7aa2 ld s5,40(sp) 5fc: 7b02 ld s6,32(sp) 5fe: 6be2 ld s7,24(sp) 600: 6125 addi sp,sp,96 602: 8082 ret 0000000000000604 <stat>: int stat(const char *n, struct stat *st) { 604: 1101 addi sp,sp,-32 606: ec06 sd ra,24(sp) 608: e822 sd s0,16(sp) 60a: e426 sd s1,8(sp) 60c: e04a sd s2,0(sp) 60e: 1000 addi s0,sp,32 610: 892e mv s2,a1 int fd; int r; fd = open(n, O_RDONLY); 612: 4581 li a1,0 614: 00000097 auipc ra,0x0 618: 176080e7 jalr 374(ra) # 78a <open> if(fd < 0) 61c: 02054563 bltz a0,646 <stat+0x42> 620: 84aa mv s1,a0 return -1; r = fstat(fd, st); 622: 85ca mv a1,s2 624: 00000097 auipc ra,0x0 628: 17e080e7 jalr 382(ra) # 7a2 <fstat> 62c: 892a mv s2,a0 close(fd); 62e: 8526 mv a0,s1 630: 00000097 auipc ra,0x0 634: 142080e7 jalr 322(ra) # 772 <close> return r; } 638: 854a mv a0,s2 63a: 60e2 ld ra,24(sp) 63c: 6442 ld s0,16(sp) 63e: 64a2 ld s1,8(sp) 640: 6902 ld s2,0(sp) 642: 6105 addi sp,sp,32 644: 8082 ret return -1; 646: 597d li s2,-1 648: bfc5 j 638 <stat+0x34> 000000000000064a <atoi>: int atoi(const char *s) { 64a: 1141 addi sp,sp,-16 64c: e422 sd s0,8(sp) 64e: 0800 addi s0,sp,16 int n; n = 0; while('0' <= *s && *s <= '9') 650: 00054603 lbu a2,0(a0) 654: fd06079b addiw a5,a2,-48 658: 0ff7f793 andi a5,a5,255 65c: 4725 li a4,9 65e: 02f76963 bltu a4,a5,690 <atoi+0x46> 662: 86aa mv a3,a0 n = 0; 664: 4501 li a0,0 while('0' <= *s && *s <= '9') 666: 45a5 li a1,9 n = n*10 + *s++ - '0'; 668: 0685 addi a3,a3,1 66a: 0025179b slliw a5,a0,0x2 66e: 9fa9 addw a5,a5,a0 670: 0017979b slliw a5,a5,0x1 674: 9fb1 addw a5,a5,a2 676: fd07851b addiw a0,a5,-48 while('0' <= *s && *s <= '9') 67a: 0006c603 lbu a2,0(a3) # 1000 <junk3+0x230> 67e: fd06071b addiw a4,a2,-48 682: 0ff77713 andi a4,a4,255 686: fee5f1e3 bgeu a1,a4,668 <atoi+0x1e> return n; } 68a: 6422 ld s0,8(sp) 68c: 0141 addi sp,sp,16 68e: 8082 ret n = 0; 690: 4501 li a0,0 692: bfe5 j 68a <atoi+0x40> 0000000000000694 <memmove>: void* memmove(void *vdst, const void *vsrc, int n) { 694: 1141 addi sp,sp,-16 696: e422 sd s0,8(sp) 698: 0800 addi s0,sp,16 char *dst; const char *src; dst = vdst; src = vsrc; if (src > dst) { 69a: 02b57663 bgeu a0,a1,6c6 <memmove+0x32> while(n-- > 0) 69e: 02c05163 blez a2,6c0 <memmove+0x2c> 6a2: fff6079b addiw a5,a2,-1 6a6: 1782 slli a5,a5,0x20 6a8: 9381 srli a5,a5,0x20 6aa: 0785 addi a5,a5,1 6ac: 97aa add a5,a5,a0 dst = vdst; 6ae: 872a mv a4,a0 *dst++ = *src++; 6b0: 0585 addi a1,a1,1 6b2: 0705 addi a4,a4,1 6b4: fff5c683 lbu a3,-1(a1) 6b8: fed70fa3 sb a3,-1(a4) while(n-- > 0) 6bc: fee79ae3 bne a5,a4,6b0 <memmove+0x1c> src += n; while(n-- > 0) *--dst = *--src; } return vdst; } 6c0: 6422 ld s0,8(sp) 6c2: 0141 addi sp,sp,16 6c4: 8082 ret dst += n; 6c6: 00c50733 add a4,a0,a2 src += n; 6ca: 95b2 add a1,a1,a2 while(n-- > 0) 6cc: fec05ae3 blez a2,6c0 <memmove+0x2c> 6d0: fff6079b addiw a5,a2,-1 6d4: 1782 slli a5,a5,0x20 6d6: 9381 srli a5,a5,0x20 6d8: fff7c793 not a5,a5 6dc: 97ba add a5,a5,a4 *--dst = *--src; 6de: 15fd addi a1,a1,-1 6e0: 177d addi a4,a4,-1 6e2: 0005c683 lbu a3,0(a1) 6e6: 00d70023 sb a3,0(a4) while(n-- > 0) 6ea: fee79ae3 bne a5,a4,6de <memmove+0x4a> 6ee: bfc9 j 6c0 <memmove+0x2c> 00000000000006f0 <memcmp>: int memcmp(const void *s1, const void *s2, uint n) { 6f0: 1141 addi sp,sp,-16 6f2: e422 sd s0,8(sp) 6f4: 0800 addi s0,sp,16 const char *p1 = s1, *p2 = s2; while (n-- > 0) { 6f6: ca05 beqz a2,726 <memcmp+0x36> 6f8: fff6069b addiw a3,a2,-1 6fc: 1682 slli a3,a3,0x20 6fe: 9281 srli a3,a3,0x20 700: 0685 addi a3,a3,1 702: 96aa add a3,a3,a0 if (*p1 != *p2) { 704: 00054783 lbu a5,0(a0) 708: 0005c703 lbu a4,0(a1) 70c: 00e79863 bne a5,a4,71c <memcmp+0x2c> return *p1 - *p2; } p1++; 710: 0505 addi a0,a0,1 p2++; 712: 0585 addi a1,a1,1 while (n-- > 0) { 714: fed518e3 bne a0,a3,704 <memcmp+0x14> } return 0; 718: 4501 li a0,0 71a: a019 j 720 <memcmp+0x30> return *p1 - *p2; 71c: 40e7853b subw a0,a5,a4 } 720: 6422 ld s0,8(sp) 722: 0141 addi sp,sp,16 724: 8082 ret return 0; 726: 4501 li a0,0 728: bfe5 j 720 <memcmp+0x30> 000000000000072a <memcpy>: void * memcpy(void *dst, const void *src, uint n) { 72a: 1141 addi sp,sp,-16 72c: e406 sd ra,8(sp) 72e: e022 sd s0,0(sp) 730: 0800 addi s0,sp,16 return memmove(dst, src, n); 732: 00000097 auipc ra,0x0 736: f62080e7 jalr -158(ra) # 694 <memmove> } 73a: 60a2 ld ra,8(sp) 73c: 6402 ld s0,0(sp) 73e: 0141 addi sp,sp,16 740: 8082 ret 0000000000000742 <fork>: # generated by usys.pl - do not edit #include "kernel/syscall.h" .global fork fork: li a7, SYS_fork 742: 4885 li a7,1 ecall 744: 00000073 ecall ret 748: 8082 ret 000000000000074a <exit>: .global exit exit: li a7, SYS_exit 74a: 4889 li a7,2 ecall 74c: 00000073 ecall ret 750: 8082 ret 0000000000000752 <wait>: .global wait wait: li a7, SYS_wait 752: 488d li a7,3 ecall 754: 00000073 ecall ret 758: 8082 ret 000000000000075a <pipe>: .global pipe pipe: li a7, SYS_pipe 75a: 4891 li a7,4 ecall 75c: 00000073 ecall ret 760: 8082 ret 0000000000000762 <read>: .global read read: li a7, SYS_read 762: 4895 li a7,5 ecall 764: 00000073 ecall ret 768: 8082 ret 000000000000076a <write>: .global write write: li a7, SYS_write 76a: 48c1 li a7,16 ecall 76c: 00000073 ecall ret 770: 8082 ret 0000000000000772 <close>: .global close close: li a7, SYS_close 772: 48d5 li a7,21 ecall 774: 00000073 ecall ret 778: 8082 ret 000000000000077a <kill>: .global kill kill: li a7, SYS_kill 77a: 4899 li a7,6 ecall 77c: 00000073 ecall ret 780: 8082 ret 0000000000000782 <exec>: .global exec exec: li a7, SYS_exec 782: 489d li a7,7 ecall 784: 00000073 ecall ret 788: 8082 ret 000000000000078a <open>: .global open open: li a7, SYS_open 78a: 48bd li a7,15 ecall 78c: 00000073 ecall ret 790: 8082 ret 0000000000000792 <mknod>: .global mknod mknod: li a7, SYS_mknod 792: 48c5 li a7,17 ecall 794: 00000073 ecall ret 798: 8082 ret 000000000000079a <unlink>: .global unlink unlink: li a7, SYS_unlink 79a: 48c9 li a7,18 ecall 79c: 00000073 ecall ret 7a0: 8082 ret 00000000000007a2 <fstat>: .global fstat fstat: li a7, SYS_fstat 7a2: 48a1 li a7,8 ecall 7a4: 00000073 ecall ret 7a8: 8082 ret 00000000000007aa <link>: .global link link: li a7, SYS_link 7aa: 48cd li a7,19 ecall 7ac: 00000073 ecall ret 7b0: 8082 ret 00000000000007b2 <mkdir>: .global mkdir mkdir: li a7, SYS_mkdir 7b2: 48d1 li a7,20 ecall 7b4: 00000073 ecall ret 7b8: 8082 ret 00000000000007ba <chdir>: .global chdir chdir: li a7, SYS_chdir 7ba: 48a5 li a7,9 ecall 7bc: 00000073 ecall ret 7c0: 8082 ret 00000000000007c2 <dup>: .global dup dup: li a7, SYS_dup 7c2: 48a9 li a7,10 ecall 7c4: 00000073 ecall ret 7c8: 8082 ret 00000000000007ca <getpid>: .global getpid getpid: li a7, SYS_getpid 7ca: 48ad li a7,11 ecall 7cc: 00000073 ecall ret 7d0: 8082 ret 00000000000007d2 <sbrk>: .global sbrk sbrk: li a7, SYS_sbrk 7d2: 48b1 li a7,12 ecall 7d4: 00000073 ecall ret 7d8: 8082 ret 00000000000007da <sleep>: .global sleep sleep: li a7, SYS_sleep 7da: 48b5 li a7,13 ecall 7dc: 00000073 ecall ret 7e0: 8082 ret 00000000000007e2 <uptime>: .global uptime uptime: li a7, SYS_uptime 7e2: 48b9 li a7,14 ecall 7e4: 00000073 ecall ret 7e8: 8082 ret 00000000000007ea <ntas>: .global ntas ntas: li a7, SYS_ntas 7ea: 48d9 li a7,22 ecall 7ec: 00000073 ecall ret 7f0: 8082 ret 00000000000007f2 <putc>: static char digits[] = "0123456789ABCDEF"; static void putc(int fd, char c) { 7f2: 1101 addi sp,sp,-32 7f4: ec06 sd ra,24(sp) 7f6: e822 sd s0,16(sp) 7f8: 1000 addi s0,sp,32 7fa: feb407a3 sb a1,-17(s0) write(fd, &c, 1); 7fe: 4605 li a2,1 800: fef40593 addi a1,s0,-17 804: 00000097 auipc ra,0x0 808: f66080e7 jalr -154(ra) # 76a <write> } 80c: 60e2 ld ra,24(sp) 80e: 6442 ld s0,16(sp) 810: 6105 addi sp,sp,32 812: 8082 ret 0000000000000814 <printint>: static void printint(int fd, int xx, int base, int sgn) { 814: 7139 addi sp,sp,-64 816: fc06 sd ra,56(sp) 818: f822 sd s0,48(sp) 81a: f426 sd s1,40(sp) 81c: f04a sd s2,32(sp) 81e: ec4e sd s3,24(sp) 820: 0080 addi s0,sp,64 822: 84aa mv s1,a0 char buf[16]; int i, neg; uint x; neg = 0; if(sgn && xx < 0){ 824: c299 beqz a3,82a <printint+0x16> 826: 0805c863 bltz a1,8b6 <printint+0xa2> neg = 1; x = -xx; } else { x = xx; 82a: 2581 sext.w a1,a1 neg = 0; 82c: 4881 li a7,0 82e: fc040693 addi a3,s0,-64 } i = 0; 832: 4701 li a4,0 do{ buf[i++] = digits[x % base]; 834: 2601 sext.w a2,a2 836: 00000517 auipc a0,0x0 83a: 57250513 addi a0,a0,1394 # da8 <digits> 83e: 883a mv a6,a4 840: 2705 addiw a4,a4,1 842: 02c5f7bb remuw a5,a1,a2 846: 1782 slli a5,a5,0x20 848: 9381 srli a5,a5,0x20 84a: 97aa add a5,a5,a0 84c: 0007c783 lbu a5,0(a5) 850: 00f68023 sb a5,0(a3) }while((x /= base) != 0); 854: 0005879b sext.w a5,a1 858: 02c5d5bb divuw a1,a1,a2 85c: 0685 addi a3,a3,1 85e: fec7f0e3 bgeu a5,a2,83e <printint+0x2a> if(neg) 862: 00088b63 beqz a7,878 <printint+0x64> buf[i++] = '-'; 866: fd040793 addi a5,s0,-48 86a: 973e add a4,a4,a5 86c: 02d00793 li a5,45 870: fef70823 sb a5,-16(a4) 874: 0028071b addiw a4,a6,2 while(--i >= 0) 878: 02e05863 blez a4,8a8 <printint+0x94> 87c: fc040793 addi a5,s0,-64 880: 00e78933 add s2,a5,a4 884: fff78993 addi s3,a5,-1 888: 99ba add s3,s3,a4 88a: 377d addiw a4,a4,-1 88c: 1702 slli a4,a4,0x20 88e: 9301 srli a4,a4,0x20 890: 40e989b3 sub s3,s3,a4 putc(fd, buf[i]); 894: fff94583 lbu a1,-1(s2) 898: 8526 mv a0,s1 89a: 00000097 auipc ra,0x0 89e: f58080e7 jalr -168(ra) # 7f2 <putc> while(--i >= 0) 8a2: 197d addi s2,s2,-1 8a4: ff3918e3 bne s2,s3,894 <printint+0x80> } 8a8: 70e2 ld ra,56(sp) 8aa: 7442 ld s0,48(sp) 8ac: 74a2 ld s1,40(sp) 8ae: 7902 ld s2,32(sp) 8b0: 69e2 ld s3,24(sp) 8b2: 6121 addi sp,sp,64 8b4: 8082 ret x = -xx; 8b6: 40b005bb negw a1,a1 neg = 1; 8ba: 4885 li a7,1 x = -xx; 8bc: bf8d j 82e <printint+0x1a> 00000000000008be <vprintf>: } // Print to the given fd. Only understands %d, %x, %p, %s. void vprintf(int fd, const char *fmt, va_list ap) { 8be: 7119 addi sp,sp,-128 8c0: fc86 sd ra,120(sp) 8c2: f8a2 sd s0,112(sp) 8c4: f4a6 sd s1,104(sp) 8c6: f0ca sd s2,96(sp) 8c8: ecce sd s3,88(sp) 8ca: e8d2 sd s4,80(sp) 8cc: e4d6 sd s5,72(sp) 8ce: e0da sd s6,64(sp) 8d0: fc5e sd s7,56(sp) 8d2: f862 sd s8,48(sp) 8d4: f466 sd s9,40(sp) 8d6: f06a sd s10,32(sp) 8d8: ec6e sd s11,24(sp) 8da: 0100 addi s0,sp,128 char *s; int c, i, state; state = 0; for(i = 0; fmt[i]; i++){ 8dc: 0005c903 lbu s2,0(a1) 8e0: 18090f63 beqz s2,a7e <vprintf+0x1c0> 8e4: 8aaa mv s5,a0 8e6: 8b32 mv s6,a2 8e8: 00158493 addi s1,a1,1 state = 0; 8ec: 4981 li s3,0 if(c == '%'){ state = '%'; } else { putc(fd, c); } } else if(state == '%'){ 8ee: 02500a13 li s4,37 if(c == 'd'){ 8f2: 06400c13 li s8,100 printint(fd, va_arg(ap, int), 10, 1); } else if(c == 'l') { 8f6: 06c00c93 li s9,108 printint(fd, va_arg(ap, uint64), 10, 0); } else if(c == 'x') { 8fa: 07800d13 li s10,120 printint(fd, va_arg(ap, int), 16, 0); } else if(c == 'p') { 8fe: 07000d93 li s11,112 putc(fd, digits[x >> (sizeof(uint64) * 8 - 4)]); 902: 00000b97 auipc s7,0x0 906: 4a6b8b93 addi s7,s7,1190 # da8 <digits> 90a: a839 j 928 <vprintf+0x6a> putc(fd, c); 90c: 85ca mv a1,s2 90e: 8556 mv a0,s5 910: 00000097 auipc ra,0x0 914: ee2080e7 jalr -286(ra) # 7f2 <putc> 918: a019 j 91e <vprintf+0x60> } else if(state == '%'){ 91a: 01498f63 beq s3,s4,938 <vprintf+0x7a> for(i = 0; fmt[i]; i++){ 91e: 0485 addi s1,s1,1 920: fff4c903 lbu s2,-1(s1) 924: 14090d63 beqz s2,a7e <vprintf+0x1c0> c = fmt[i] & 0xff; 928: 0009079b sext.w a5,s2 if(state == 0){ 92c: fe0997e3 bnez s3,91a <vprintf+0x5c> if(c == '%'){ 930: fd479ee3 bne a5,s4,90c <vprintf+0x4e> state = '%'; 934: 89be mv s3,a5 936: b7e5 j 91e <vprintf+0x60> if(c == 'd'){ 938: 05878063 beq a5,s8,978 <vprintf+0xba> } else if(c == 'l') { 93c: 05978c63 beq a5,s9,994 <vprintf+0xd6> } else if(c == 'x') { 940: 07a78863 beq a5,s10,9b0 <vprintf+0xf2> } else if(c == 'p') { 944: 09b78463 beq a5,s11,9cc <vprintf+0x10e> printptr(fd, va_arg(ap, uint64)); } else if(c == 's'){ 948: 07300713 li a4,115 94c: 0ce78663 beq a5,a4,a18 <vprintf+0x15a> s = "(null)"; while(*s != 0){ putc(fd, *s); s++; } } else if(c == 'c'){ 950: 06300713 li a4,99 954: 0ee78e63 beq a5,a4,a50 <vprintf+0x192> putc(fd, va_arg(ap, uint)); } else if(c == '%'){ 958: 11478863 beq a5,s4,a68 <vprintf+0x1aa> putc(fd, c); } else { // Unknown % sequence. Print it to draw attention. putc(fd, '%'); 95c: 85d2 mv a1,s4 95e: 8556 mv a0,s5 960: 00000097 auipc ra,0x0 964: e92080e7 jalr -366(ra) # 7f2 <putc> putc(fd, c); 968: 85ca mv a1,s2 96a: 8556 mv a0,s5 96c: 00000097 auipc ra,0x0 970: e86080e7 jalr -378(ra) # 7f2 <putc> } state = 0; 974: 4981 li s3,0 976: b765 j 91e <vprintf+0x60> printint(fd, va_arg(ap, int), 10, 1); 978: 008b0913 addi s2,s6,8 97c: 4685 li a3,1 97e: 4629 li a2,10 980: 000b2583 lw a1,0(s6) 984: 8556 mv a0,s5 986: 00000097 auipc ra,0x0 98a: e8e080e7 jalr -370(ra) # 814 <printint> 98e: 8b4a mv s6,s2 state = 0; 990: 4981 li s3,0 992: b771 j 91e <vprintf+0x60> printint(fd, va_arg(ap, uint64), 10, 0); 994: 008b0913 addi s2,s6,8 998: 4681 li a3,0 99a: 4629 li a2,10 99c: 000b2583 lw a1,0(s6) 9a0: 8556 mv a0,s5 9a2: 00000097 auipc ra,0x0 9a6: e72080e7 jalr -398(ra) # 814 <printint> 9aa: 8b4a mv s6,s2 state = 0; 9ac: 4981 li s3,0 9ae: bf85 j 91e <vprintf+0x60> printint(fd, va_arg(ap, int), 16, 0); 9b0: 008b0913 addi s2,s6,8 9b4: 4681 li a3,0 9b6: 4641 li a2,16 9b8: 000b2583 lw a1,0(s6) 9bc: 8556 mv a0,s5 9be: 00000097 auipc ra,0x0 9c2: e56080e7 jalr -426(ra) # 814 <printint> 9c6: 8b4a mv s6,s2 state = 0; 9c8: 4981 li s3,0 9ca: bf91 j 91e <vprintf+0x60> printptr(fd, va_arg(ap, uint64)); 9cc: 008b0793 addi a5,s6,8 9d0: f8f43423 sd a5,-120(s0) 9d4: 000b3983 ld s3,0(s6) putc(fd, '0'); 9d8: 03000593 li a1,48 9dc: 8556 mv a0,s5 9de: 00000097 auipc ra,0x0 9e2: e14080e7 jalr -492(ra) # 7f2 <putc> putc(fd, 'x'); 9e6: 85ea mv a1,s10 9e8: 8556 mv a0,s5 9ea: 00000097 auipc ra,0x0 9ee: e08080e7 jalr -504(ra) # 7f2 <putc> 9f2: 4941 li s2,16 putc(fd, digits[x >> (sizeof(uint64) * 8 - 4)]); 9f4: 03c9d793 srli a5,s3,0x3c 9f8: 97de add a5,a5,s7 9fa: 0007c583 lbu a1,0(a5) 9fe: 8556 mv a0,s5 a00: 00000097 auipc ra,0x0 a04: df2080e7 jalr -526(ra) # 7f2 <putc> for (i = 0; i < (sizeof(uint64) * 2); i++, x <<= 4) a08: 0992 slli s3,s3,0x4 a0a: 397d addiw s2,s2,-1 a0c: fe0914e3 bnez s2,9f4 <vprintf+0x136> printptr(fd, va_arg(ap, uint64)); a10: f8843b03 ld s6,-120(s0) state = 0; a14: 4981 li s3,0 a16: b721 j 91e <vprintf+0x60> s = va_arg(ap, char*); a18: 008b0993 addi s3,s6,8 a1c: 000b3903 ld s2,0(s6) if(s == 0) a20: 02090163 beqz s2,a42 <vprintf+0x184> while(*s != 0){ a24: 00094583 lbu a1,0(s2) a28: c9a1 beqz a1,a78 <vprintf+0x1ba> putc(fd, *s); a2a: 8556 mv a0,s5 a2c: 00000097 auipc ra,0x0 a30: dc6080e7 jalr -570(ra) # 7f2 <putc> s++; a34: 0905 addi s2,s2,1 while(*s != 0){ a36: 00094583 lbu a1,0(s2) a3a: f9e5 bnez a1,a2a <vprintf+0x16c> s = va_arg(ap, char*); a3c: 8b4e mv s6,s3 state = 0; a3e: 4981 li s3,0 a40: bdf9 j 91e <vprintf+0x60> s = "(null)"; a42: 00000917 auipc s2,0x0 a46: 35e90913 addi s2,s2,862 # da0 <malloc+0x218> while(*s != 0){ a4a: 02800593 li a1,40 a4e: bff1 j a2a <vprintf+0x16c> putc(fd, va_arg(ap, uint)); a50: 008b0913 addi s2,s6,8 a54: 000b4583 lbu a1,0(s6) a58: 8556 mv a0,s5 a5a: 00000097 auipc ra,0x0 a5e: d98080e7 jalr -616(ra) # 7f2 <putc> a62: 8b4a mv s6,s2 state = 0; a64: 4981 li s3,0 a66: bd65 j 91e <vprintf+0x60> putc(fd, c); a68: 85d2 mv a1,s4 a6a: 8556 mv a0,s5 a6c: 00000097 auipc ra,0x0 a70: d86080e7 jalr -634(ra) # 7f2 <putc> state = 0; a74: 4981 li s3,0 a76: b565 j 91e <vprintf+0x60> s = va_arg(ap, char*); a78: 8b4e mv s6,s3 state = 0; a7a: 4981 li s3,0 a7c: b54d j 91e <vprintf+0x60> } } } a7e: 70e6 ld ra,120(sp) a80: 7446 ld s0,112(sp) a82: 74a6 ld s1,104(sp) a84: 7906 ld s2,96(sp) a86: 69e6 ld s3,88(sp) a88: 6a46 ld s4,80(sp) a8a: 6aa6 ld s5,72(sp) a8c: 6b06 ld s6,64(sp) a8e: 7be2 ld s7,56(sp) a90: 7c42 ld s8,48(sp) a92: 7ca2 ld s9,40(sp) a94: 7d02 ld s10,32(sp) a96: 6de2 ld s11,24(sp) a98: 6109 addi sp,sp,128 a9a: 8082 ret 0000000000000a9c <fprintf>: void fprintf(int fd, const char *fmt, ...) { a9c: 715d addi sp,sp,-80 a9e: ec06 sd ra,24(sp) aa0: e822 sd s0,16(sp) aa2: 1000 addi s0,sp,32 aa4: e010 sd a2,0(s0) aa6: e414 sd a3,8(s0) aa8: e818 sd a4,16(s0) aaa: ec1c sd a5,24(s0) aac: 03043023 sd a6,32(s0) ab0: 03143423 sd a7,40(s0) va_list ap; va_start(ap, fmt); ab4: fe843423 sd s0,-24(s0) vprintf(fd, fmt, ap); ab8: 8622 mv a2,s0 aba: 00000097 auipc ra,0x0 abe: e04080e7 jalr -508(ra) # 8be <vprintf> } ac2: 60e2 ld ra,24(sp) ac4: 6442 ld s0,16(sp) ac6: 6161 addi sp,sp,80 ac8: 8082 ret 0000000000000aca <printf>: void printf(const char *fmt, ...) { aca: 711d addi sp,sp,-96 acc: ec06 sd ra,24(sp) ace: e822 sd s0,16(sp) ad0: 1000 addi s0,sp,32 ad2: e40c sd a1,8(s0) ad4: e810 sd a2,16(s0) ad6: ec14 sd a3,24(s0) ad8: f018 sd a4,32(s0) ada: f41c sd a5,40(s0) adc: 03043823 sd a6,48(s0) ae0: 03143c23 sd a7,56(s0) va_list ap; va_start(ap, fmt); ae4: 00840613 addi a2,s0,8 ae8: fec43423 sd a2,-24(s0) vprintf(1, fmt, ap); aec: 85aa mv a1,a0 aee: 4505 li a0,1 af0: 00000097 auipc ra,0x0 af4: dce080e7 jalr -562(ra) # 8be <vprintf> } af8: 60e2 ld ra,24(sp) afa: 6442 ld s0,16(sp) afc: 6125 addi sp,sp,96 afe: 8082 ret 0000000000000b00 <free>: static Header base; static Header *freep; void free(void *ap) { b00: 1141 addi sp,sp,-16 b02: e422 sd s0,8(sp) b04: 0800 addi s0,sp,16 Header *bp, *p; bp = (Header*)ap - 1; b06: ff050693 addi a3,a0,-16 for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) b0a: 00000797 auipc a5,0x0 b0e: 2be7b783 ld a5,702(a5) # dc8 <freep> b12: a805 j b42 <free+0x42> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) break; if(bp + bp->s.size == p->s.ptr){ bp->s.size += p->s.ptr->s.size; b14: 4618 lw a4,8(a2) b16: 9db9 addw a1,a1,a4 b18: feb52c23 sw a1,-8(a0) bp->s.ptr = p->s.ptr->s.ptr; b1c: 6398 ld a4,0(a5) b1e: 6318 ld a4,0(a4) b20: fee53823 sd a4,-16(a0) b24: a091 j b68 <free+0x68> } else bp->s.ptr = p->s.ptr; if(p + p->s.size == bp){ p->s.size += bp->s.size; b26: ff852703 lw a4,-8(a0) b2a: 9e39 addw a2,a2,a4 b2c: c790 sw a2,8(a5) p->s.ptr = bp->s.ptr; b2e: ff053703 ld a4,-16(a0) b32: e398 sd a4,0(a5) b34: a099 j b7a <free+0x7a> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) b36: 6398 ld a4,0(a5) b38: 00e7e463 bltu a5,a4,b40 <free+0x40> b3c: 00e6ea63 bltu a3,a4,b50 <free+0x50> { b40: 87ba mv a5,a4 for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr) b42: fed7fae3 bgeu a5,a3,b36 <free+0x36> b46: 6398 ld a4,0(a5) b48: 00e6e463 bltu a3,a4,b50 <free+0x50> if(p >= p->s.ptr && (bp > p || bp < p->s.ptr)) b4c: fee7eae3 bltu a5,a4,b40 <free+0x40> if(bp + bp->s.size == p->s.ptr){ b50: ff852583 lw a1,-8(a0) b54: 6390 ld a2,0(a5) b56: 02059713 slli a4,a1,0x20 b5a: 9301 srli a4,a4,0x20 b5c: 0712 slli a4,a4,0x4 b5e: 9736 add a4,a4,a3 b60: fae60ae3 beq a2,a4,b14 <free+0x14> bp->s.ptr = p->s.ptr; b64: fec53823 sd a2,-16(a0) if(p + p->s.size == bp){ b68: 4790 lw a2,8(a5) b6a: 02061713 slli a4,a2,0x20 b6e: 9301 srli a4,a4,0x20 b70: 0712 slli a4,a4,0x4 b72: 973e add a4,a4,a5 b74: fae689e3 beq a3,a4,b26 <free+0x26> } else p->s.ptr = bp; b78: e394 sd a3,0(a5) freep = p; b7a: 00000717 auipc a4,0x0 b7e: 24f73723 sd a5,590(a4) # dc8 <freep> } b82: 6422 ld s0,8(sp) b84: 0141 addi sp,sp,16 b86: 8082 ret 0000000000000b88 <malloc>: return freep; } void* malloc(uint nbytes) { b88: 7139 addi sp,sp,-64 b8a: fc06 sd ra,56(sp) b8c: f822 sd s0,48(sp) b8e: f426 sd s1,40(sp) b90: f04a sd s2,32(sp) b92: ec4e sd s3,24(sp) b94: e852 sd s4,16(sp) b96: e456 sd s5,8(sp) b98: e05a sd s6,0(sp) b9a: 0080 addi s0,sp,64 Header *p, *prevp; uint nunits; nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1; b9c: 02051493 slli s1,a0,0x20 ba0: 9081 srli s1,s1,0x20 ba2: 04bd addi s1,s1,15 ba4: 8091 srli s1,s1,0x4 ba6: 0014899b addiw s3,s1,1 baa: 0485 addi s1,s1,1 if((prevp = freep) == 0){ bac: 00000517 auipc a0,0x0 bb0: 21c53503 ld a0,540(a0) # dc8 <freep> bb4: c515 beqz a0,be0 <malloc+0x58> base.s.ptr = freep = prevp = &base; base.s.size = 0; } for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ bb6: 611c ld a5,0(a0) if(p->s.size >= nunits){ bb8: 4798 lw a4,8(a5) bba: 02977f63 bgeu a4,s1,bf8 <malloc+0x70> bbe: 8a4e mv s4,s3 bc0: 0009871b sext.w a4,s3 bc4: 6685 lui a3,0x1 bc6: 00d77363 bgeu a4,a3,bcc <malloc+0x44> bca: 6a05 lui s4,0x1 bcc: 000a0b1b sext.w s6,s4 p = sbrk(nu * sizeof(Header)); bd0: 004a1a1b slliw s4,s4,0x4 p->s.size = nunits; } freep = prevp; return (void*)(p + 1); } if(p == freep) bd4: 00000917 auipc s2,0x0 bd8: 1f490913 addi s2,s2,500 # dc8 <freep> if(p == (char*)-1) bdc: 5afd li s5,-1 bde: a88d j c50 <malloc+0xc8> base.s.ptr = freep = prevp = &base; be0: 00004797 auipc a5,0x4 be4: 1f078793 addi a5,a5,496 # 4dd0 <base> be8: 00000717 auipc a4,0x0 bec: 1ef73023 sd a5,480(a4) # dc8 <freep> bf0: e39c sd a5,0(a5) base.s.size = 0; bf2: 0007a423 sw zero,8(a5) if(p->s.size >= nunits){ bf6: b7e1 j bbe <malloc+0x36> if(p->s.size == nunits) bf8: 02e48b63 beq s1,a4,c2e <malloc+0xa6> p->s.size -= nunits; bfc: 4137073b subw a4,a4,s3 c00: c798 sw a4,8(a5) p += p->s.size; c02: 1702 slli a4,a4,0x20 c04: 9301 srli a4,a4,0x20 c06: 0712 slli a4,a4,0x4 c08: 97ba add a5,a5,a4 p->s.size = nunits; c0a: 0137a423 sw s3,8(a5) freep = prevp; c0e: 00000717 auipc a4,0x0 c12: 1aa73d23 sd a0,442(a4) # dc8 <freep> return (void*)(p + 1); c16: 01078513 addi a0,a5,16 if((p = morecore(nunits)) == 0) return 0; } } c1a: 70e2 ld ra,56(sp) c1c: 7442 ld s0,48(sp) c1e: 74a2 ld s1,40(sp) c20: 7902 ld s2,32(sp) c22: 69e2 ld s3,24(sp) c24: 6a42 ld s4,16(sp) c26: 6aa2 ld s5,8(sp) c28: 6b02 ld s6,0(sp) c2a: 6121 addi sp,sp,64 c2c: 8082 ret prevp->s.ptr = p->s.ptr; c2e: 6398 ld a4,0(a5) c30: e118 sd a4,0(a0) c32: bff1 j c0e <malloc+0x86> hp->s.size = nu; c34: 01652423 sw s6,8(a0) free((void*)(hp + 1)); c38: 0541 addi a0,a0,16 c3a: 00000097 auipc ra,0x0 c3e: ec6080e7 jalr -314(ra) # b00 <free> return freep; c42: 00093503 ld a0,0(s2) if((p = morecore(nunits)) == 0) c46: d971 beqz a0,c1a <malloc+0x92> for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){ c48: 611c ld a5,0(a0) if(p->s.size >= nunits){ c4a: 4798 lw a4,8(a5) c4c: fa9776e3 bgeu a4,s1,bf8 <malloc+0x70> if(p == freep) c50: 00093703 ld a4,0(s2) c54: 853e mv a0,a5 c56: fef719e3 bne a4,a5,c48 <malloc+0xc0> p = sbrk(nu * sizeof(Header)); c5a: 8552 mv a0,s4 c5c: 00000097 auipc ra,0x0 c60: b76080e7 jalr -1162(ra) # 7d2 <sbrk> if(p == (char*)-1) c64: fd5518e3 bne a0,s5,c34 <malloc+0xac> return 0; c68: 4501 li a0,0 c6a: bf45 j c1a <malloc+0x92>
31.301166
93
0.476336
c9cd3590479cafff0fc2ea35a70b12011a6135cb
6,845
asm
Assembly
VolumeRendering/vtkHAVSVolumeMapper_k6EndFP.asm
Lin1225/vtk_v5.10.0
b54ac74f4716572862365fbff28cd0ecb8d08c3d
[ "BSD-3-Clause" ]
2
2015-07-11T13:30:23.000Z
2017-12-19T05:23:38.000Z
VolumeRendering/vtkHAVSVolumeMapper_k6EndFP.asm
Armand0s/homemade_vtk
6bc7b595a4a7f86e8fa969d067360450fa4e0a6a
[ "BSD-3-Clause" ]
null
null
null
VolumeRendering/vtkHAVSVolumeMapper_k6EndFP.asm
Armand0s/homemade_vtk
6bc7b595a4a7f86e8fa969d067360450fa4e0a6a
[ "BSD-3-Clause" ]
5
2015-03-23T21:13:19.000Z
2022-01-03T11:15:39.000Z
!!ARBfp1.0 # ----------------------------------------------------------------------------- # Copyright 2005 by University of Utah # # Hardware-Assisted Visibility Sorting # # The program consists of the following steps: # # 1. Find the first and second entries in the fixed size k-buffer list sorted # by z (6+1 entries) # 2. Perform a 3D pre-integrated transfer function lookup using front and back # scalar data values + the segment length computed from the depth values # of the first and second entries from the k-buffer. # 3. Composite the color and opacity from the transfer funcion with the # color and opacity from the framebuffer. Discard winning k-buffer entry, # write the remaining k-buffer entries. # # The following textures are used: # # Tex 0: framebuffer (pbuffer, 2D RGBA 8/16 bpp int or 16/32 bpp float) # Tex 1: k-buffer entries 1 and 2(same) # Tex 2: k-buffer entries 3 and 4(same) # Tex 3: k-buffer entries 5 and 6(same) # Tex 4: transfer function (regular, 3D RGBA 8/16 bpp int) # # ----------------------------------------------------------------------------- # use the ATI_draw_buffers extension OPTION ATI_draw_buffers; # this may matter on future ATI hardware OPTION ARB_precision_hint_nicest; # ----------------------------------------------------------------------------- # input and temporaries ATTRIB p = fragment.position; # fragment position in screen space PARAM sz = program.local[0]; # texture scale and max gap length parameters # {1/pw, 1/ph, max, not_used)} PARAM half = { 0.5, 0.5, 0.0, 0.0 }; PARAM exp = { 0.0, 0.0, 0.0, 1.44269504 }; # 1/ln2 TEMP a1, a2, a3, a4, a5, a6; # k-buffer entries TEMP r0, r1, r2, r3, r4, r5, r6; # sorted results TEMP c, c0; # color and opacity TEMP t; # temporary variable TEMP colorBack,colorFront; TEMP taud, zeta, gamma, Psi; # ----------------------------------------------------------------------------- # compute texture coordinates from window position so that it is not # interpolated perspective correct. Then look up the color and opacity from # the framebuffer MUL t, p, sz; # t.xy = p.xy * sz.xy, only x and y are used for texture lookup TEX c0, t, texture[0], 2D; # framebuffer color # ----------------------------------------------------------------------------- # Check opacity and kill fragment if it is greater than tolerance SUB t.w, 0.99, c0.w; KIL t.w; # ----------------------------------------------------------------------------- # set up the k-buffer entries a1, a2 # each k-buffer entry consists of the scalar data value in x or z and the # depth value in y or w TEX a1, t, texture[1], 2D; # k-buffer entry 1 TEX a3, t, texture[2], 2D; # k-buffer entry 3 TEX a5, t, texture[3], 2D; # k-buffer entry 5 MOV a2, a1.zwzw; # k-buffer entry 2 MOV a4, a3.zwzw; # k-buffer entry 4 MOV a6, a5.zwzw; # k-buffer entry 6 # ----------------------------------------------------------------------------- # find fragment with minimum z (r0), save the other to r1 # r0 = min_z(a1.y, a2.y); r1 = max_z(a1.y, a2.y); SUB t.w, a1.y, a2.y; # t.w < 0 iff a1.y < a2.y CMP r1, t.w, a2, a1; # r1 = (a1.y < a2.y ? a2 : a1) CMP r0, t.w, a1, a2; # r0 = (a1.y < a2.y ? a1 : a2) # r0 = min_z(r0.y, a3.y); r2 = max_z(r0.y, a3.y) SUB t.w, r0.y, a3.y; # t.w < 0 iff r0.y < a3.y CMP r2, t.w, a3, r0; # r2 = (r0.y < a3.y ? a3 : r0); CMP r0, t.w, r0, a3; # r0 = (r0.y < a3.y ? r0 : a3); # r0 = min_z(r0.y, a4.y); r3 = max_z(r0.y, a4.y) SUB t.w, r0.y, a4.y; # t.w < 0 iff r0.y < a4.y CMP r3, t.w, a4, r0; # r3 = (r0.y < a4.y ? a4 : r0) CMP r0, t.w, r0, a4; # r0 = (r0.y < a4.y ? r0 : a4); # r0 = min_z(r0.y, a5.y); r4 = max_z(r0.y, a5.y) SUB t.w, r0.y, a5.y; # t.w < 0 iff r0.y < a5.y CMP r4, t.w, a5, r0; # r4 = (r0.y < a5.y ? a5 : r0); CMP r0, t.w, r0, a5; # r0 = (r0.y < a5.y ? r0 : a5); # r0 = min_z(r0.y, a6.y); r5 = max_z(r0.y, a6.y) SUB t.w, r0.y, a6.y; # t.w < 0 iff r0.y < a6.y CMP r5, t.w, a6, r0; # r5 = (r0.y < a6.y ? a6 : r0); CMP r0, t.w, r0, a6; # r0 = (r0.y < a6.y ? r0 : a6); # ----------------------------------------------------------------------------- # find fragment with minimum d (r7) from r1, r2, r3, r4, r5 # r6 = min_z(r1.y, r2.y); SUB t.w, r1.y, r2.y; # t.w < 0 iff r1.y < r2.y CMP r6, t.w, r1, r2; # r6 = (r1.y < r2.y ? r1 : r2); # r6 = min_z(r6.y, r3.y); SUB t.w, r6.y, r3.y; # t.w < 0 iff r6.y < r3.y CMP r6, t.w, r6, r3; # r6 = (r6.y < r3.y ? r6 : r3); # r6 = min_z(r6.y, r4.y); SUB t.w, r6.y, r4.y; # t.w < 0 iff r6.y < r4.y CMP r6, t.w, r6, r4; # r6 = (r6.y < r4.y ? r6 : r4); # r6 = min_z(r6.y, r5.y); SUB t.w, r6.y, r5.y; # t.w < 0 iff r6.y < r5.y CMP r6, t.w, r6, r5; # r6 = (r6.y < r5.y ? r6 : r5); # ----------------------------------------------------------------------------- # set up texture coordinates for transfer function lookup MOV t.x, r0.x; # front scalar MOV t.y, r6.x; # back scalar SUB t.z, r6.y, r0.y; # z distance between front and back # ----------------------------------------------------------------------------- # nullify fragment if distance is greater than unit scale (non-convexities) SUB t.w, sz.z, t.z; CMP t.z, t.w, 0.0, t.z; # ----------------------------------------------------------------------------- # transfer function lookup TEX colorFront, t.x, texture[5], 1D; TEX colorBack, t.y, texture[5], 1D; MUL taud.x, t.z, colorBack.a; MUL taud.y, t.z, colorFront.a; # ----------------------------------------------------------------------------- # compute zeta = exp(-0.5*(taudf+taudb)) DP3 zeta.w, taud, half; MUL zeta.w, exp.w, zeta.w; EX2 zeta.w, -zeta.w; # ----------------------------------------------------------------------------- # compute gamma = taud/(1+taud); ADD t, taud, 1.0; RCP t.x, t.x; RCP t.y, t.y; MUL gamma, taud, t; # ----------------------------------------------------------------------------- # lookup Psi TEX Psi.w, gamma, texture[4], 2D; # ----------------------------------------------------------------------------- # compute color = cb(psi-zeta) + cf(1.0-psi) SUB t.w, Psi.w, zeta.w; MUL colorBack, colorBack, t.w; SUB t.w, 1.0, Psi.w; MUL colorFront, colorFront, t.w; ADD c, colorBack, colorFront; SUB c.a, 1.0, zeta.w; # ----------------------------------------------------------------------------- # nullify winning entry if the scalar value < 0 CMP c, r0.x, 0.0, c; CMP c, r6.x, 0.0, c; # ----------------------------------------------------------------------------- # composite color with the color from the framebuffer !!!front to back!!! SUB t.w, 1.0, c0.w; MAD result.color[0], c, t.w, c0; # ----------------------------------------------------------------------------- # write remaining k-buffer entry and invalidate one entry MOV r1.zw, r2.xxxy; MOV r3.zw, r4.xxxy; MOV r5.z, -1.0; MOV r5.w, 10000.0; MOV result.color[1], r1; MOV result.color[2], r3; MOV result.color[3], r5; END
37.404372
79
0.493353
1d548f0740c29f3763ca2490c15d1a4fa26cbe96
1,068
asm
Assembly
operacoes/escalares/ex05.asm
mikael-85/assembly_mips
e829171729bcbbd22e01d9f98b2b5867fb19159a
[ "MIT" ]
null
null
null
operacoes/escalares/ex05.asm
mikael-85/assembly_mips
e829171729bcbbd22e01d9f98b2b5867fb19159a
[ "MIT" ]
null
null
null
operacoes/escalares/ex05.asm
mikael-85/assembly_mips
e829171729bcbbd22e01d9f98b2b5867fb19159a
[ "MIT" ]
null
null
null
#=================================================================== # Descrição: # a = b; # sendo b = 1234 # #=================================================================== # Convensão dos registradores #=================================================================== # $0 - Sempre zero # $at - Temporário para assembly (reservado) # $v0, $v1 - Valores retornado de uma rotina # $a0 - $a3 - Argumentos para uma sub-rotina # $t0 - $t7 - Temporário (não preservados na chamada da função) # $s0 - $s7 - Registradores salvos (preservado na chamada da função) # $t8, $t9 - Temporários # $k0, $k1 - Kernel (reservado para o S.O) # $gp - Ponteiro global # $sp - Ponteiro para a pilha (stack pointer) # $fp - Ponteiro para o quadro (frame pointer) # $ra - End de retorno (usando em algumas instruções) #=================================================================== .text la $s0, variavelB lw $t1, 0($s0) la $s0, variavelA sw $t1, 0($s0) .data variavelA: .space 4 variavelB: .word 1234
32.363636
68
0.455993
0ab56cb68f92d99379118f15dd379b7a6c44fe37
6,715
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2_notsx.log_21829_1147.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2_notsx.log_21829_1147.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2_notsx.log_21829_1147.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r9 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x1b89, %rdx nop nop nop nop cmp %r9, %r9 movups (%rdx), %xmm5 vpextrq $1, %xmm5, %rbp nop nop cmp %r12, %r12 lea addresses_A_ht+0x5c9f, %rbx nop cmp %rbp, %rbp mov (%rbx), %di nop nop nop cmp %rdi, %rdi lea addresses_normal_ht+0x178c9, %rsi lea addresses_WT_ht+0xb869, %rdi nop nop nop nop nop and %r12, %r12 mov $36, %rcx rep movsb nop nop inc %rsi lea addresses_UC_ht+0x12bc9, %r9 cmp $50250, %rbx mov (%r9), %cx nop nop nop nop sub $21998, %rbx lea addresses_A_ht+0x4341, %rsi lea addresses_WT_ht+0x17d21, %rdi sub %r12, %r12 mov $28, %rcx rep movsb dec %rdx lea addresses_D_ht+0x14109, %rbx nop nop sub %r9, %r9 mov $0x6162636465666768, %rdx movq %rdx, %xmm7 vmovups %ymm7, (%rbx) nop nop cmp $19493, %rbx lea addresses_D_ht+0x1c609, %rbx nop nop nop nop and $39003, %rbp mov (%rbx), %di nop inc %rbx lea addresses_UC_ht+0x9009, %rcx nop nop nop nop dec %r12 mov $0x6162636465666768, %rdx movq %rdx, (%rcx) nop nop nop nop nop inc %r9 lea addresses_A_ht+0x12109, %rsi lea addresses_WT_ht+0xaa84, %rdi nop nop dec %rdx mov $50, %rcx rep movsl nop xor $9170, %rcx lea addresses_WT_ht+0xa989, %rbp nop add %rdx, %rdx vmovups (%rbp), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $1, %xmm1, %rbx inc %rbp pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r9 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %r8 push %r9 push %rbx push %rdx // Store lea addresses_D+0x10909, %r10 inc %rbx mov $0x5152535455565758, %r8 movq %r8, %xmm6 movups %xmm6, (%r10) nop nop nop nop and $54479, %r9 // Faulty Load lea addresses_D+0x10909, %r14 nop nop nop nop nop add %rdx, %rdx movups (%r14), %xmm5 vpextrq $1, %xmm5, %r9 lea oracles, %r14 and $0xff, %r9 shlq $12, %r9 mov (%r14,%r9,1), %r9 pop %rdx pop %rbx pop %r9 pop %r8 pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
36.895604
2,999
0.656888
150ec3f5e9551fb9b02a5263b72d847a00524d10
292
asm
Assembly
programs/oeis/173/A173259.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/173/A173259.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/173/A173259.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A173259: Period 3: repeat [4, 1, 4]. ; 4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4,1,4,4 mod $0,3 mov $1,$0 mul $1,$0 gcd $1,4
36.5
213
0.510274
28a9a25d755c620cb7390a300a1f4d8a3b403169
1,694
asm
Assembly
programs/oeis/022/A022282.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/022/A022282.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/022/A022282.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A022282: a(n) = n*(25*n - 1)/2. ; 0,12,49,111,198,310,447,609,796,1008,1245,1507,1794,2106,2443,2805,3192,3604,4041,4503,4990,5502,6039,6601,7188,7800,8437,9099,9786,10498,11235,11997,12784,13596,14433,15295,16182,17094,18031,18993,19980,20992,22029,23091,24178,25290,26427,27589,28776,29988,31225,32487,33774,35086,36423,37785,39172,40584,42021,43483,44970,46482,48019,49581,51168,52780,54417,56079,57766,59478,61215,62977,64764,66576,68413,70275,72162,74074,76011,77973,79960,81972,84009,86071,88158,90270,92407,94569,96756,98968,101205,103467,105754,108066,110403,112765,115152,117564,120001,122463,124950,127462,129999,132561,135148,137760,140397,143059,145746,148458,151195,153957,156744,159556,162393,165255,168142,171054,173991,176953,179940,182952,185989,189051,192138,195250,198387,201549,204736,207948,211185,214447,217734,221046,224383,227745,231132,234544,237981,241443,244930,248442,251979,255541,259128,262740,266377,270039,273726,277438,281175,284937,288724,292536,296373,300235,304122,308034,311971,315933,319920,323932,327969,332031,336118,340230,344367,348529,352716,356928,361165,365427,369714,374026,378363,382725,387112,391524,395961,400423,404910,409422,413959,418521,423108,427720,432357,437019,441706,446418,451155,455917,460704,465516,470353,475215,480102,485014,489951,494913,499900,504912,509949,515011,520098,525210,530347,535509,540696,545908,551145,556407,561694,567006,572343,577705,583092,588504,593941,599403,604890,610402,615939,621501,627088,632700,638337,643999,649686,655398,661135,666897,672684,678496,684333,690195,696082,701994,707931,713893,719880,725892,731929,737991,744078,750190,756327,762489,768676,774888 mov $1,$0 mul $1,25 bin $1,2 div $1,25
211.75
1,619
0.829398
9004589ad74ac966a3955e52af7354090213eb8d
4,370
asm
Assembly
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xa0.log_21829_1313.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xa0.log_21829_1313.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i9-9900K_12_0xa0.log_21829_1313.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r14 push %rbp push %rcx push %rdi push %rsi lea addresses_WC_ht+0x1b645, %rsi lea addresses_WC_ht+0x7495, %rdi nop nop add $33879, %rbp mov $71, %rcx rep movsw nop nop nop nop nop add $60903, %r14 pop %rsi pop %rdi pop %rcx pop %rbp pop %r14 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r13 push %rax push %rbp push %rcx push %rsi // Store lea addresses_PSE+0x1143d, %r10 nop nop nop and %rcx, %rcx mov $0x5152535455565758, %rbp movq %rbp, (%r10) nop nop sub %r10, %r10 // Faulty Load lea addresses_US+0x1295, %rsi nop nop and %r13, %r13 mov (%rsi), %ecx lea oracles, %r13 and $0xff, %rcx shlq $12, %rcx mov (%r13,%rcx,1), %rcx pop %rsi pop %rcx pop %rbp pop %rax pop %r13 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 3, 'type': 'addresses_PSE', 'AVXalign': False, 'size': 8}} [Faulty Load] {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_US', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': True, 'congruent': 4, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_WC_ht'}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
53.950617
2,999
0.662929
5b89b9d0e313cc77fec70836bcbbc20b44f3cdcf
5,553
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_21829_596.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_21829_596.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0xca_notsx.log_21829_596.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r15 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x15f86, %rcx nop nop nop nop xor $33174, %r12 mov $0x6162636465666768, %rdi movq %rdi, %xmm3 vmovups %ymm3, (%rcx) nop nop inc %rbx lea addresses_normal_ht+0xa886, %rsi lea addresses_A_ht+0x3a06, %rdi nop add $36076, %rdx mov $33, %rcx rep movsl add $37544, %rbx lea addresses_normal_ht+0x1d086, %rsi lea addresses_normal_ht+0xa19e, %rdi clflush (%rsi) nop nop nop nop xor $23566, %r11 mov $121, %rcx rep movsl nop nop nop cmp $43341, %rbx lea addresses_D_ht+0xa486, %rsi lea addresses_WC_ht+0x3206, %rdi sub %r15, %r15 mov $66, %rcx rep movsq nop nop nop inc %r11 lea addresses_WC_ht+0xa966, %rsi lea addresses_D_ht+0xbbda, %rdi nop nop nop nop and %rbx, %rbx mov $103, %rcx rep movsl nop nop sub $61303, %r11 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r15 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r15 push %r9 push %rax push %rbp push %rdx // Load lea addresses_UC+0x17406, %rax nop nop and $12362, %r10 mov (%rax), %r15w nop nop nop nop nop xor %r11, %r11 // Faulty Load mov $0x11c7930000000086, %r9 and $24983, %rdx mov (%r9), %eax lea oracles, %rbp and $0xff, %rax shlq $12, %rax mov (%rbp,%rax,1), %rax pop %rdx pop %rbp pop %rax pop %r9 pop %r15 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_UC', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': True, 'type': 'addresses_NC', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False}} {'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': True}} {'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}} {'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}} {'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
42.389313
2,999
0.663245
c426a81bb27945ed9090a9349e863d5309a88b58
3,091
asm
Assembly
artwork/goblin/goblin_caminar.asm
fjpena/sword-of-ianna-zx
fdd6bdb5775933756e75402a7c6be80d5334702d
[ "Apache-2.0" ]
67
2017-10-07T18:48:05.000Z
2022-02-01T20:37:40.000Z
artwork/goblin/goblin_caminar.asm
fjpena/sword-of-ianna-zx
fdd6bdb5775933756e75402a7c6be80d5334702d
[ "Apache-2.0" ]
null
null
null
artwork/goblin/goblin_caminar.asm
fjpena/sword-of-ianna-zx
fdd6bdb5775933756e75402a7c6be80d5334702d
[ "Apache-2.0" ]
9
2017-10-06T21:02:55.000Z
2022-01-06T03:11:58.000Z
; ASM source file created by SevenuP v1.20 ; SevenuP (C) Copyright 2002-2006 by Jaime Tejedor Gomez, aka Metalbrain ;GRAPHIC DATA: ;Pixel Size: ( 24, 32) ;Char Size: ( 3, 4) ;Frames: 6 ;Sort Priorities: X char, Char line, Y char, Frame number ;Data Outputted: Gfx ;Interleave: Sprite ;Mask: No goblin_caminar: DEFB 0, 4,128, 0, 8, 0, 0, 13 DEFB 192, 0, 19,224, 0, 12, 0, 0 DEFB 4, 64, 1,197,224, 2,229,144 DEFB 3,161,240, 5,195, 0, 4, 18 DEFB 176, 14,137,224, 15, 68, 0, 14 DEFB 130, 32, 5, 65, 80, 16,128,128 DEFB 60, 0,144, 16,131, 64, 5, 76 DEFB 32, 14,128, 0, 7, 85, 56, 6 DEFB 128, 72, 3, 0,104, 27,207,104 DEFB 19,149,104, 1,128,104, 0, 32 DEFB 104, 1, 69,112, 0,138, 0, 1 DEFB 196, 0, 1,242,128, 2,168, 0 DEFB 0, 0, 0, 0, 0,160, 0, 1 DEFB 0, 0, 1,176, 0, 2,120, 0 DEFB 1,128, 0, 56,164, 0, 92,190 DEFB 0,116,184, 0,184, 62, 1,194 DEFB 96, 3,169, 84, 1, 80,184, 4 DEFB 32, 64, 15, 0, 32, 4, 32, 7 DEFB 1,208, 73, 3,224, 13, 0,253 DEFB 237, 3,122,173, 0, 56, 13, 0 DEFB 0, 13, 0, 0, 14, 0, 40, 32 DEFB 0, 53, 20, 0, 90, 0, 0,236 DEFB 42, 0,208, 20, 1,160, 40, 3 DEFB 192, 80, 1,240, 42, 0,168, 0 DEFB 0, 0, 0, 0, 0, 0, 0, 10 DEFB 0, 0, 16, 0, 0, 27, 0, 0 DEFB 39,128, 0, 24, 0, 1,202, 64 DEFB 2,227,224, 11,163,128, 29,195 DEFB 224, 58, 38, 0, 21, 21, 64, 66 DEFB 139,128,240, 4,112, 70, 2,144 DEFB 31,224,208, 42,206,208, 1, 84 DEFB 208, 0, 0,208, 1, 82,208, 1 DEFB 0,224, 0, 0, 0, 0, 9, 0 DEFB 0, 84,128, 2, 57, 0, 1,196 DEFB 128, 3,248, 0, 1, 2, 0, 3 DEFB 5, 0, 2, 10, 0, 0, 21, 64 DEFB 0, 4,128, 0, 8, 0, 0, 13 DEFB 192, 0, 19,224, 0, 12, 0, 0 DEFB 4, 64, 1,197,224, 2,229,144 DEFB 3,161,240, 5,195, 0, 14, 18 DEFB 176, 30,137,224, 13, 68, 0, 34 DEFB 130, 32,121, 1, 80, 32, 0,128 DEFB 13, 0,144, 30,131, 0, 15, 12 DEFB 112, 3,192,144, 1,224,208, 13 DEFB 222,208, 8,212,208, 0, 0,208 DEFB 0, 84,208, 0, 0,224, 0, 0 DEFB 0, 0, 9,224, 0, 3,128, 0 DEFB 9,224, 0, 20,112, 0, 42,128 DEFB 0, 0, 0, 0, 72, 0, 0,128 DEFB 0, 0,220, 0, 1, 62, 0, 0 DEFB 192, 0, 0, 68, 0, 28, 94, 64 DEFB 46, 89, 32, 58, 31, 64, 28, 48 DEFB 32, 33, 43, 64,104,158, 0,116 DEFB 65, 64,104, 34, 0, 16, 20, 0 DEFB 128, 8, 32,200, 8, 80,148, 54 DEFB 40, 58,193, 0, 29, 42,232, 6 DEFB 129, 32, 3,193,160, 27,189,160 DEFB 17,169,160, 0, 1,160, 2,161 DEFB 192, 5, 64, 0, 10, 1,192, 20 DEFB 3,112, 10, 6,128, 5, 0, 0 DEFB 0, 0, 0, 0, 0, 0, 0, 4 DEFB 128, 0, 8, 0, 0, 13,224, 0 DEFB 19,240, 1,204, 0, 2,228, 64 DEFB 3,165,224, 5,197,144, 14, 1 DEFB 240, 15, 19, 0, 30,138,176, 29 DEFB 4,224, 58, 2, 10, 68, 1, 69 DEFB 224, 0,130, 68, 0,136, 58, 2 DEFB 0, 60, 12,232, 30, 17, 32, 7 DEFB 193,160, 27,189,160, 17,169,160 DEFB 0, 1,160, 0, 1,192, 0,170 DEFB 0, 0, 84, 80, 0,160,224, 1 DEFB 65,192, 0,129,240, 0, 2,168
36.364706
72
0.517308