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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cbe1ffd903b181e0e5d2b47c030151d1a4781565 | 130 | asm | Assembly | MPI/Lab-7/print_string_8_3.asm | vishwas1101/Misc | cf660dfbacc674cd262eb4abd0e9dd07479a90ae | [
"MIT"
] | null | null | null | MPI/Lab-7/print_string_8_3.asm | vishwas1101/Misc | cf660dfbacc674cd262eb4abd0e9dd07479a90ae | [
"MIT"
] | null | null | null | MPI/Lab-7/print_string_8_3.asm | vishwas1101/Misc | cf660dfbacc674cd262eb4abd0e9dd07479a90ae | [
"MIT"
] | null | null | null |
ORG 100H
.DATA
MSG DB 'BITS-PILANI$'
.CODE
MOV AX, @DATA
MOV DS, AX
MOV DX, OFFSET MSG
MOV AH, 09H
INT 21H
HLT
RET
| 4.814815 | 21 | 0.615385 |
6028853f73785e5f8d9af8e20bc191ada95e59f2 | 500 | asm | Assembly | programs/oeis/138/A138364.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/138/A138364.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/138/A138364.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A138364: The number of Motzkin n-paths with exactly one flat step.
; 0,1,0,3,0,10,0,35,0,126,0,462,0,1716,0,6435,0,24310,0,92378,0,352716,0,1352078,0,5200300,0,20058300,0,77558760,0,300540195,0,1166803110,0,4537567650,0,17672631900,0,68923264410,0,269128937220,0,1052049481860,0,4116715363800,0,16123801841550,0,63205303218876,0,247959266474052,0,973469712824056,0,3824345300380220,0
lpb $0
mov $3,$0
lpb $3
mov $1,$0
div $0,2
mov $3,0
lpe
mov $2,$0
mul $0,2
bin $1,$2
lpe
| 33.333333 | 316 | 0.72 |
2b6566c74881c6cfff44354211afe33380239907 | 44,355 | asm | Assembly | stressfs.asm | vishal-pathare/xv6-public | 257a840c8c3b8aab8244b69a3a17765ac0d685a5 | [
"MIT-0"
] | null | null | null | stressfs.asm | vishal-pathare/xv6-public | 257a840c8c3b8aab8244b69a3a17765ac0d685a5 | [
"MIT-0"
] | null | null | null | stressfs.asm | vishal-pathare/xv6-public | 257a840c8c3b8aab8244b69a3a17765ac0d685a5 | [
"MIT-0"
] | null | null | null |
_stressfs: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "fs.h"
#include "fcntl.h"
int
main(int argc, char *argv[])
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
int fd, i;
char path[] = "stressfs0";
7: b8 30 00 00 00 mov $0x30,%eax
{
c: ff 71 fc pushl -0x4(%ecx)
f: 55 push %ebp
10: 89 e5 mov %esp,%ebp
12: 57 push %edi
13: 56 push %esi
char data[512];
printf(1, "stressfs starting\n");
memset(data, 'a', sizeof(data));
14: 8d b5 e8 fd ff ff lea -0x218(%ebp),%esi
{
1a: 53 push %ebx
for(i = 0; i < 4; i++)
1b: 31 db xor %ebx,%ebx
{
1d: 51 push %ecx
1e: 81 ec 20 02 00 00 sub $0x220,%esp
char path[] = "stressfs0";
24: 66 89 85 e6 fd ff ff mov %ax,-0x21a(%ebp)
printf(1, "stressfs starting\n");
2b: 68 68 08 00 00 push $0x868
30: 6a 01 push $0x1
char path[] = "stressfs0";
32: c7 85 de fd ff ff 73 movl $0x65727473,-0x222(%ebp)
39: 74 72 65
3c: c7 85 e2 fd ff ff 73 movl $0x73667373,-0x21e(%ebp)
43: 73 66 73
printf(1, "stressfs starting\n");
46: e8 b5 04 00 00 call 500 <printf>
memset(data, 'a', sizeof(data));
4b: 83 c4 0c add $0xc,%esp
4e: 68 00 02 00 00 push $0x200
53: 6a 61 push $0x61
55: 56 push %esi
56: e8 95 01 00 00 call 1f0 <memset>
5b: 83 c4 10 add $0x10,%esp
if(fork() > 0)
5e: e8 28 03 00 00 call 38b <fork>
63: 85 c0 test %eax,%eax
65: 0f 8f bf 00 00 00 jg 12a <main+0x12a>
for(i = 0; i < 4; i++)
6b: 83 c3 01 add $0x1,%ebx
6e: 83 fb 04 cmp $0x4,%ebx
71: 75 eb jne 5e <main+0x5e>
73: bf 04 00 00 00 mov $0x4,%edi
break;
printf(1, "write %d\n", i);
78: 83 ec 04 sub $0x4,%esp
7b: 53 push %ebx
path[8] += i;
fd = open(path, O_CREATE | O_RDWR);
7c: bb 14 00 00 00 mov $0x14,%ebx
printf(1, "write %d\n", i);
81: 68 7b 08 00 00 push $0x87b
86: 6a 01 push $0x1
88: e8 73 04 00 00 call 500 <printf>
path[8] += i;
8d: 89 f8 mov %edi,%eax
fd = open(path, O_CREATE | O_RDWR);
8f: 5f pop %edi
path[8] += i;
90: 00 85 e6 fd ff ff add %al,-0x21a(%ebp)
fd = open(path, O_CREATE | O_RDWR);
96: 58 pop %eax
97: 8d 85 de fd ff ff lea -0x222(%ebp),%eax
9d: 68 02 02 00 00 push $0x202
a2: 50 push %eax
a3: e8 2b 03 00 00 call 3d3 <open>
a8: 83 c4 10 add $0x10,%esp
ab: 89 c7 mov %eax,%edi
for(i = 0; i < 20; i++)
ad: 8d 76 00 lea 0x0(%esi),%esi
// printf(fd, "%d\n", i);
write(fd, data, sizeof(data));
b0: 83 ec 04 sub $0x4,%esp
b3: 68 00 02 00 00 push $0x200
b8: 56 push %esi
b9: 57 push %edi
ba: e8 f4 02 00 00 call 3b3 <write>
for(i = 0; i < 20; i++)
bf: 83 c4 10 add $0x10,%esp
c2: 83 eb 01 sub $0x1,%ebx
c5: 75 e9 jne b0 <main+0xb0>
close(fd);
c7: 83 ec 0c sub $0xc,%esp
ca: 57 push %edi
cb: e8 eb 02 00 00 call 3bb <close>
printf(1, "read\n");
d0: 58 pop %eax
d1: 5a pop %edx
d2: 68 85 08 00 00 push $0x885
d7: 6a 01 push $0x1
d9: e8 22 04 00 00 call 500 <printf>
fd = open(path, O_RDONLY);
de: 8d 85 de fd ff ff lea -0x222(%ebp),%eax
e4: 59 pop %ecx
e5: 5b pop %ebx
e6: 6a 00 push $0x0
e8: bb 14 00 00 00 mov $0x14,%ebx
ed: 50 push %eax
ee: e8 e0 02 00 00 call 3d3 <open>
f3: 83 c4 10 add $0x10,%esp
f6: 89 c7 mov %eax,%edi
for (i = 0; i < 20; i++)
f8: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
ff: 90 nop
read(fd, data, sizeof(data));
100: 83 ec 04 sub $0x4,%esp
103: 68 00 02 00 00 push $0x200
108: 56 push %esi
109: 57 push %edi
10a: e8 9c 02 00 00 call 3ab <read>
for (i = 0; i < 20; i++)
10f: 83 c4 10 add $0x10,%esp
112: 83 eb 01 sub $0x1,%ebx
115: 75 e9 jne 100 <main+0x100>
close(fd);
117: 83 ec 0c sub $0xc,%esp
11a: 57 push %edi
11b: e8 9b 02 00 00 call 3bb <close>
wait();
120: e8 76 02 00 00 call 39b <wait>
exit();
125: e8 69 02 00 00 call 393 <exit>
path[8] += i;
12a: 89 df mov %ebx,%edi
12c: e9 47 ff ff ff jmp 78 <main+0x78>
131: 66 90 xchg %ax,%ax
133: 66 90 xchg %ax,%ax
135: 66 90 xchg %ax,%ax
137: 66 90 xchg %ax,%ax
139: 66 90 xchg %ax,%ax
13b: 66 90 xchg %ax,%ax
13d: 66 90 xchg %ax,%ax
13f: 90 nop
00000140 <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, const char *t)
{
140: 55 push %ebp
char *os;
os = s;
while((*s++ = *t++) != 0)
141: 31 c0 xor %eax,%eax
{
143: 89 e5 mov %esp,%ebp
145: 53 push %ebx
146: 8b 4d 08 mov 0x8(%ebp),%ecx
149: 8b 5d 0c mov 0xc(%ebp),%ebx
14c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
while((*s++ = *t++) != 0)
150: 0f b6 14 03 movzbl (%ebx,%eax,1),%edx
154: 88 14 01 mov %dl,(%ecx,%eax,1)
157: 83 c0 01 add $0x1,%eax
15a: 84 d2 test %dl,%dl
15c: 75 f2 jne 150 <strcpy+0x10>
;
return os;
}
15e: 8b 5d fc mov -0x4(%ebp),%ebx
161: 89 c8 mov %ecx,%eax
163: c9 leave
164: c3 ret
165: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
16c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
00000170 <strcmp>:
int
strcmp(const char *p, const char *q)
{
170: 55 push %ebp
171: 89 e5 mov %esp,%ebp
173: 53 push %ebx
174: 8b 4d 08 mov 0x8(%ebp),%ecx
177: 8b 55 0c mov 0xc(%ebp),%edx
while(*p && *p == *q)
17a: 0f b6 01 movzbl (%ecx),%eax
17d: 0f b6 1a movzbl (%edx),%ebx
180: 84 c0 test %al,%al
182: 75 1d jne 1a1 <strcmp+0x31>
184: eb 2a jmp 1b0 <strcmp+0x40>
186: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
18d: 8d 76 00 lea 0x0(%esi),%esi
190: 0f b6 41 01 movzbl 0x1(%ecx),%eax
p++, q++;
194: 83 c1 01 add $0x1,%ecx
197: 83 c2 01 add $0x1,%edx
return (uchar)*p - (uchar)*q;
19a: 0f b6 1a movzbl (%edx),%ebx
while(*p && *p == *q)
19d: 84 c0 test %al,%al
19f: 74 0f je 1b0 <strcmp+0x40>
1a1: 38 d8 cmp %bl,%al
1a3: 74 eb je 190 <strcmp+0x20>
return (uchar)*p - (uchar)*q;
1a5: 29 d8 sub %ebx,%eax
}
1a7: 8b 5d fc mov -0x4(%ebp),%ebx
1aa: c9 leave
1ab: c3 ret
1ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
1b0: 31 c0 xor %eax,%eax
return (uchar)*p - (uchar)*q;
1b2: 29 d8 sub %ebx,%eax
}
1b4: 8b 5d fc mov -0x4(%ebp),%ebx
1b7: c9 leave
1b8: c3 ret
1b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
000001c0 <strlen>:
uint
strlen(const char *s)
{
1c0: 55 push %ebp
1c1: 89 e5 mov %esp,%ebp
1c3: 8b 55 08 mov 0x8(%ebp),%edx
int n;
for(n = 0; s[n]; n++)
1c6: 80 3a 00 cmpb $0x0,(%edx)
1c9: 74 15 je 1e0 <strlen+0x20>
1cb: 31 c0 xor %eax,%eax
1cd: 8d 76 00 lea 0x0(%esi),%esi
1d0: 83 c0 01 add $0x1,%eax
1d3: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1)
1d7: 89 c1 mov %eax,%ecx
1d9: 75 f5 jne 1d0 <strlen+0x10>
;
return n;
}
1db: 89 c8 mov %ecx,%eax
1dd: 5d pop %ebp
1de: c3 ret
1df: 90 nop
for(n = 0; s[n]; n++)
1e0: 31 c9 xor %ecx,%ecx
}
1e2: 5d pop %ebp
1e3: 89 c8 mov %ecx,%eax
1e5: c3 ret
1e6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
1ed: 8d 76 00 lea 0x0(%esi),%esi
000001f0 <memset>:
void*
memset(void *dst, int c, uint n)
{
1f0: 55 push %ebp
1f1: 89 e5 mov %esp,%ebp
1f3: 57 push %edi
1f4: 8b 55 08 mov 0x8(%ebp),%edx
}
static inline void
stosb(void *addr, int data, int cnt)
{
asm volatile("cld; rep stosb" :
1f7: 8b 4d 10 mov 0x10(%ebp),%ecx
1fa: 8b 45 0c mov 0xc(%ebp),%eax
1fd: 89 d7 mov %edx,%edi
1ff: fc cld
200: f3 aa rep stos %al,%es:(%edi)
stosb(dst, c, n);
return dst;
}
202: 8b 7d fc mov -0x4(%ebp),%edi
205: 89 d0 mov %edx,%eax
207: c9 leave
208: c3 ret
209: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
00000210 <strchr>:
char*
strchr(const char *s, char c)
{
210: 55 push %ebp
211: 89 e5 mov %esp,%ebp
213: 8b 45 08 mov 0x8(%ebp),%eax
216: 0f b6 4d 0c movzbl 0xc(%ebp),%ecx
for(; *s; s++)
21a: 0f b6 10 movzbl (%eax),%edx
21d: 84 d2 test %dl,%dl
21f: 75 12 jne 233 <strchr+0x23>
221: eb 1d jmp 240 <strchr+0x30>
223: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
227: 90 nop
228: 0f b6 50 01 movzbl 0x1(%eax),%edx
22c: 83 c0 01 add $0x1,%eax
22f: 84 d2 test %dl,%dl
231: 74 0d je 240 <strchr+0x30>
if(*s == c)
233: 38 d1 cmp %dl,%cl
235: 75 f1 jne 228 <strchr+0x18>
return (char*)s;
return 0;
}
237: 5d pop %ebp
238: c3 ret
239: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
return 0;
240: 31 c0 xor %eax,%eax
}
242: 5d pop %ebp
243: c3 ret
244: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
24b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
24f: 90 nop
00000250 <gets>:
char*
gets(char *buf, int max)
{
250: 55 push %ebp
251: 89 e5 mov %esp,%ebp
253: 57 push %edi
254: 56 push %esi
int i, cc;
char c;
for(i=0; i+1 < max; ){
255: 31 f6 xor %esi,%esi
{
257: 53 push %ebx
258: 89 f3 mov %esi,%ebx
25a: 83 ec 1c sub $0x1c,%esp
25d: 8b 7d 08 mov 0x8(%ebp),%edi
for(i=0; i+1 < max; ){
260: eb 2f jmp 291 <gets+0x41>
262: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
cc = read(0, &c, 1);
268: 83 ec 04 sub $0x4,%esp
26b: 8d 45 e7 lea -0x19(%ebp),%eax
26e: 6a 01 push $0x1
270: 50 push %eax
271: 6a 00 push $0x0
273: e8 33 01 00 00 call 3ab <read>
if(cc < 1)
278: 83 c4 10 add $0x10,%esp
27b: 85 c0 test %eax,%eax
27d: 7e 1c jle 29b <gets+0x4b>
break;
buf[i++] = c;
27f: 0f b6 45 e7 movzbl -0x19(%ebp),%eax
if(c == '\n' || c == '\r')
283: 83 c7 01 add $0x1,%edi
buf[i++] = c;
286: 88 47 ff mov %al,-0x1(%edi)
if(c == '\n' || c == '\r')
289: 3c 0a cmp $0xa,%al
28b: 74 23 je 2b0 <gets+0x60>
28d: 3c 0d cmp $0xd,%al
28f: 74 1f je 2b0 <gets+0x60>
for(i=0; i+1 < max; ){
291: 83 c3 01 add $0x1,%ebx
buf[i++] = c;
294: 89 fe mov %edi,%esi
for(i=0; i+1 < max; ){
296: 3b 5d 0c cmp 0xc(%ebp),%ebx
299: 7c cd jl 268 <gets+0x18>
29b: 89 f3 mov %esi,%ebx
break;
}
buf[i] = '\0';
return buf;
}
29d: 8b 45 08 mov 0x8(%ebp),%eax
buf[i] = '\0';
2a0: c6 03 00 movb $0x0,(%ebx)
}
2a3: 8d 65 f4 lea -0xc(%ebp),%esp
2a6: 5b pop %ebx
2a7: 5e pop %esi
2a8: 5f pop %edi
2a9: 5d pop %ebp
2aa: c3 ret
2ab: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
2af: 90 nop
buf[i] = '\0';
2b0: 8b 75 08 mov 0x8(%ebp),%esi
}
2b3: 8b 45 08 mov 0x8(%ebp),%eax
buf[i] = '\0';
2b6: 01 de add %ebx,%esi
2b8: 89 f3 mov %esi,%ebx
2ba: c6 03 00 movb $0x0,(%ebx)
}
2bd: 8d 65 f4 lea -0xc(%ebp),%esp
2c0: 5b pop %ebx
2c1: 5e pop %esi
2c2: 5f pop %edi
2c3: 5d pop %ebp
2c4: c3 ret
2c5: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
2cc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
000002d0 <stat>:
int
stat(const char *n, struct stat *st)
{
2d0: 55 push %ebp
2d1: 89 e5 mov %esp,%ebp
2d3: 56 push %esi
2d4: 53 push %ebx
int fd;
int r;
fd = open(n, O_RDONLY);
2d5: 83 ec 08 sub $0x8,%esp
2d8: 6a 00 push $0x0
2da: ff 75 08 pushl 0x8(%ebp)
2dd: e8 f1 00 00 00 call 3d3 <open>
if(fd < 0)
2e2: 83 c4 10 add $0x10,%esp
2e5: 85 c0 test %eax,%eax
2e7: 78 27 js 310 <stat+0x40>
return -1;
r = fstat(fd, st);
2e9: 83 ec 08 sub $0x8,%esp
2ec: ff 75 0c pushl 0xc(%ebp)
2ef: 89 c3 mov %eax,%ebx
2f1: 50 push %eax
2f2: e8 f4 00 00 00 call 3eb <fstat>
close(fd);
2f7: 89 1c 24 mov %ebx,(%esp)
r = fstat(fd, st);
2fa: 89 c6 mov %eax,%esi
close(fd);
2fc: e8 ba 00 00 00 call 3bb <close>
return r;
301: 83 c4 10 add $0x10,%esp
}
304: 8d 65 f8 lea -0x8(%ebp),%esp
307: 89 f0 mov %esi,%eax
309: 5b pop %ebx
30a: 5e pop %esi
30b: 5d pop %ebp
30c: c3 ret
30d: 8d 76 00 lea 0x0(%esi),%esi
return -1;
310: be ff ff ff ff mov $0xffffffff,%esi
315: eb ed jmp 304 <stat+0x34>
317: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
31e: 66 90 xchg %ax,%ax
00000320 <atoi>:
int
atoi(const char *s)
{
320: 55 push %ebp
321: 89 e5 mov %esp,%ebp
323: 53 push %ebx
324: 8b 55 08 mov 0x8(%ebp),%edx
int n;
n = 0;
while('0' <= *s && *s <= '9')
327: 0f be 02 movsbl (%edx),%eax
32a: 8d 48 d0 lea -0x30(%eax),%ecx
32d: 80 f9 09 cmp $0x9,%cl
n = 0;
330: b9 00 00 00 00 mov $0x0,%ecx
while('0' <= *s && *s <= '9')
335: 77 1e ja 355 <atoi+0x35>
337: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
33e: 66 90 xchg %ax,%ax
n = n*10 + *s++ - '0';
340: 83 c2 01 add $0x1,%edx
343: 8d 0c 89 lea (%ecx,%ecx,4),%ecx
346: 8d 4c 48 d0 lea -0x30(%eax,%ecx,2),%ecx
while('0' <= *s && *s <= '9')
34a: 0f be 02 movsbl (%edx),%eax
34d: 8d 58 d0 lea -0x30(%eax),%ebx
350: 80 fb 09 cmp $0x9,%bl
353: 76 eb jbe 340 <atoi+0x20>
return n;
}
355: 8b 5d fc mov -0x4(%ebp),%ebx
358: 89 c8 mov %ecx,%eax
35a: c9 leave
35b: c3 ret
35c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
00000360 <memmove>:
void*
memmove(void *vdst, const void *vsrc, int n)
{
360: 55 push %ebp
361: 89 e5 mov %esp,%ebp
363: 57 push %edi
364: 8b 45 10 mov 0x10(%ebp),%eax
367: 8b 55 08 mov 0x8(%ebp),%edx
36a: 56 push %esi
36b: 8b 75 0c mov 0xc(%ebp),%esi
char *dst;
const char *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
36e: 85 c0 test %eax,%eax
370: 7e 13 jle 385 <memmove+0x25>
372: 01 d0 add %edx,%eax
dst = vdst;
374: 89 d7 mov %edx,%edi
376: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
37d: 8d 76 00 lea 0x0(%esi),%esi
*dst++ = *src++;
380: a4 movsb %ds:(%esi),%es:(%edi)
while(n-- > 0)
381: 39 f8 cmp %edi,%eax
383: 75 fb jne 380 <memmove+0x20>
return vdst;
}
385: 5e pop %esi
386: 89 d0 mov %edx,%eax
388: 5f pop %edi
389: 5d pop %ebp
38a: c3 ret
0000038b <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
38b: b8 01 00 00 00 mov $0x1,%eax
390: cd 40 int $0x40
392: c3 ret
00000393 <exit>:
SYSCALL(exit)
393: b8 02 00 00 00 mov $0x2,%eax
398: cd 40 int $0x40
39a: c3 ret
0000039b <wait>:
SYSCALL(wait)
39b: b8 03 00 00 00 mov $0x3,%eax
3a0: cd 40 int $0x40
3a2: c3 ret
000003a3 <pipe>:
SYSCALL(pipe)
3a3: b8 04 00 00 00 mov $0x4,%eax
3a8: cd 40 int $0x40
3aa: c3 ret
000003ab <read>:
SYSCALL(read)
3ab: b8 05 00 00 00 mov $0x5,%eax
3b0: cd 40 int $0x40
3b2: c3 ret
000003b3 <write>:
SYSCALL(write)
3b3: b8 10 00 00 00 mov $0x10,%eax
3b8: cd 40 int $0x40
3ba: c3 ret
000003bb <close>:
SYSCALL(close)
3bb: b8 15 00 00 00 mov $0x15,%eax
3c0: cd 40 int $0x40
3c2: c3 ret
000003c3 <kill>:
SYSCALL(kill)
3c3: b8 06 00 00 00 mov $0x6,%eax
3c8: cd 40 int $0x40
3ca: c3 ret
000003cb <exec>:
SYSCALL(exec)
3cb: b8 07 00 00 00 mov $0x7,%eax
3d0: cd 40 int $0x40
3d2: c3 ret
000003d3 <open>:
SYSCALL(open)
3d3: b8 0f 00 00 00 mov $0xf,%eax
3d8: cd 40 int $0x40
3da: c3 ret
000003db <mknod>:
SYSCALL(mknod)
3db: b8 11 00 00 00 mov $0x11,%eax
3e0: cd 40 int $0x40
3e2: c3 ret
000003e3 <unlink>:
SYSCALL(unlink)
3e3: b8 12 00 00 00 mov $0x12,%eax
3e8: cd 40 int $0x40
3ea: c3 ret
000003eb <fstat>:
SYSCALL(fstat)
3eb: b8 08 00 00 00 mov $0x8,%eax
3f0: cd 40 int $0x40
3f2: c3 ret
000003f3 <link>:
SYSCALL(link)
3f3: b8 13 00 00 00 mov $0x13,%eax
3f8: cd 40 int $0x40
3fa: c3 ret
000003fb <mkdir>:
SYSCALL(mkdir)
3fb: b8 14 00 00 00 mov $0x14,%eax
400: cd 40 int $0x40
402: c3 ret
00000403 <chdir>:
SYSCALL(chdir)
403: b8 09 00 00 00 mov $0x9,%eax
408: cd 40 int $0x40
40a: c3 ret
0000040b <dup>:
SYSCALL(dup)
40b: b8 0a 00 00 00 mov $0xa,%eax
410: cd 40 int $0x40
412: c3 ret
00000413 <getpid>:
SYSCALL(getpid)
413: b8 0b 00 00 00 mov $0xb,%eax
418: cd 40 int $0x40
41a: c3 ret
0000041b <sbrk>:
SYSCALL(sbrk)
41b: b8 0c 00 00 00 mov $0xc,%eax
420: cd 40 int $0x40
422: c3 ret
00000423 <sleep>:
SYSCALL(sleep)
423: b8 0d 00 00 00 mov $0xd,%eax
428: cd 40 int $0x40
42a: c3 ret
0000042b <uptime>:
SYSCALL(uptime)
42b: b8 0e 00 00 00 mov $0xe,%eax
430: cd 40 int $0x40
432: c3 ret
00000433 <getyear>:
SYSCALL(getyear)
433: b8 16 00 00 00 mov $0x16,%eax
438: cd 40 int $0x40
43a: c3 ret
0000043b <lseek>:
43b: b8 17 00 00 00 mov $0x17,%eax
440: cd 40 int $0x40
442: c3 ret
443: 66 90 xchg %ax,%ax
445: 66 90 xchg %ax,%ax
447: 66 90 xchg %ax,%ax
449: 66 90 xchg %ax,%ax
44b: 66 90 xchg %ax,%ax
44d: 66 90 xchg %ax,%ax
44f: 90 nop
00000450 <printint>:
write(fd, &c, 1);
}
static void
printint(int fd, int xx, int base, int sgn)
{
450: 55 push %ebp
451: 89 e5 mov %esp,%ebp
453: 57 push %edi
454: 56 push %esi
455: 53 push %ebx
456: 83 ec 3c sub $0x3c,%esp
459: 89 4d c4 mov %ecx,-0x3c(%ebp)
uint x;
neg = 0;
if(sgn && xx < 0){
neg = 1;
x = -xx;
45c: 89 d1 mov %edx,%ecx
{
45e: 89 45 b8 mov %eax,-0x48(%ebp)
if(sgn && xx < 0){
461: 85 d2 test %edx,%edx
463: 0f 89 7f 00 00 00 jns 4e8 <printint+0x98>
469: f6 45 08 01 testb $0x1,0x8(%ebp)
46d: 74 79 je 4e8 <printint+0x98>
neg = 1;
46f: c7 45 bc 01 00 00 00 movl $0x1,-0x44(%ebp)
x = -xx;
476: f7 d9 neg %ecx
} else {
x = xx;
}
i = 0;
478: 31 db xor %ebx,%ebx
47a: 8d 75 d7 lea -0x29(%ebp),%esi
47d: 8d 76 00 lea 0x0(%esi),%esi
do{
buf[i++] = digits[x % base];
480: 89 c8 mov %ecx,%eax
482: 31 d2 xor %edx,%edx
484: 89 cf mov %ecx,%edi
486: f7 75 c4 divl -0x3c(%ebp)
489: 0f b6 92 94 08 00 00 movzbl 0x894(%edx),%edx
490: 89 45 c0 mov %eax,-0x40(%ebp)
493: 89 d8 mov %ebx,%eax
495: 8d 5b 01 lea 0x1(%ebx),%ebx
}while((x /= base) != 0);
498: 8b 4d c0 mov -0x40(%ebp),%ecx
buf[i++] = digits[x % base];
49b: 88 14 1e mov %dl,(%esi,%ebx,1)
}while((x /= base) != 0);
49e: 39 7d c4 cmp %edi,-0x3c(%ebp)
4a1: 76 dd jbe 480 <printint+0x30>
if(neg)
4a3: 8b 4d bc mov -0x44(%ebp),%ecx
4a6: 85 c9 test %ecx,%ecx
4a8: 74 0c je 4b6 <printint+0x66>
buf[i++] = '-';
4aa: c6 44 1d d8 2d movb $0x2d,-0x28(%ebp,%ebx,1)
buf[i++] = digits[x % base];
4af: 89 d8 mov %ebx,%eax
buf[i++] = '-';
4b1: ba 2d 00 00 00 mov $0x2d,%edx
while(--i >= 0)
4b6: 8b 7d b8 mov -0x48(%ebp),%edi
4b9: 8d 5c 05 d7 lea -0x29(%ebp,%eax,1),%ebx
4bd: eb 07 jmp 4c6 <printint+0x76>
4bf: 90 nop
putc(fd, buf[i]);
4c0: 0f b6 13 movzbl (%ebx),%edx
4c3: 83 eb 01 sub $0x1,%ebx
write(fd, &c, 1);
4c6: 83 ec 04 sub $0x4,%esp
4c9: 88 55 d7 mov %dl,-0x29(%ebp)
4cc: 6a 01 push $0x1
4ce: 56 push %esi
4cf: 57 push %edi
4d0: e8 de fe ff ff call 3b3 <write>
while(--i >= 0)
4d5: 83 c4 10 add $0x10,%esp
4d8: 39 de cmp %ebx,%esi
4da: 75 e4 jne 4c0 <printint+0x70>
}
4dc: 8d 65 f4 lea -0xc(%ebp),%esp
4df: 5b pop %ebx
4e0: 5e pop %esi
4e1: 5f pop %edi
4e2: 5d pop %ebp
4e3: c3 ret
4e4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
neg = 0;
4e8: c7 45 bc 00 00 00 00 movl $0x0,-0x44(%ebp)
4ef: eb 87 jmp 478 <printint+0x28>
4f1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
4f8: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
4ff: 90 nop
00000500 <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, const char *fmt, ...)
{
500: 55 push %ebp
501: 89 e5 mov %esp,%ebp
503: 57 push %edi
504: 56 push %esi
505: 53 push %ebx
506: 83 ec 2c sub $0x2c,%esp
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
509: 8b 75 0c mov 0xc(%ebp),%esi
50c: 0f b6 1e movzbl (%esi),%ebx
50f: 84 db test %bl,%bl
511: 0f 84 b8 00 00 00 je 5cf <printf+0xcf>
ap = (uint*)(void*)&fmt + 1;
517: 8d 45 10 lea 0x10(%ebp),%eax
51a: 83 c6 01 add $0x1,%esi
write(fd, &c, 1);
51d: 8d 7d e7 lea -0x19(%ebp),%edi
state = 0;
520: 31 d2 xor %edx,%edx
ap = (uint*)(void*)&fmt + 1;
522: 89 45 d0 mov %eax,-0x30(%ebp)
525: eb 37 jmp 55e <printf+0x5e>
527: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
52e: 66 90 xchg %ax,%ax
530: 89 55 d4 mov %edx,-0x2c(%ebp)
c = fmt[i] & 0xff;
if(state == 0){
if(c == '%'){
state = '%';
533: ba 25 00 00 00 mov $0x25,%edx
if(c == '%'){
538: 83 f8 25 cmp $0x25,%eax
53b: 74 17 je 554 <printf+0x54>
write(fd, &c, 1);
53d: 83 ec 04 sub $0x4,%esp
540: 88 5d e7 mov %bl,-0x19(%ebp)
543: 6a 01 push $0x1
545: 57 push %edi
546: ff 75 08 pushl 0x8(%ebp)
549: e8 65 fe ff ff call 3b3 <write>
54e: 8b 55 d4 mov -0x2c(%ebp),%edx
} else {
putc(fd, c);
551: 83 c4 10 add $0x10,%esp
for(i = 0; fmt[i]; i++){
554: 0f b6 1e movzbl (%esi),%ebx
557: 83 c6 01 add $0x1,%esi
55a: 84 db test %bl,%bl
55c: 74 71 je 5cf <printf+0xcf>
c = fmt[i] & 0xff;
55e: 0f be cb movsbl %bl,%ecx
561: 0f b6 c3 movzbl %bl,%eax
if(state == 0){
564: 85 d2 test %edx,%edx
566: 74 c8 je 530 <printf+0x30>
}
} else if(state == '%'){
568: 83 fa 25 cmp $0x25,%edx
56b: 75 e7 jne 554 <printf+0x54>
if(c == 'd'){
56d: 83 f8 64 cmp $0x64,%eax
570: 0f 84 9a 00 00 00 je 610 <printf+0x110>
printint(fd, *ap, 10, 1);
ap++;
} else if(c == 'x' || c == 'p'){
576: 81 e1 f7 00 00 00 and $0xf7,%ecx
57c: 83 f9 70 cmp $0x70,%ecx
57f: 74 5f je 5e0 <printf+0xe0>
printint(fd, *ap, 16, 0);
ap++;
} else if(c == 's'){
581: 83 f8 73 cmp $0x73,%eax
584: 0f 84 d6 00 00 00 je 660 <printf+0x160>
s = "(null)";
while(*s != 0){
putc(fd, *s);
s++;
}
} else if(c == 'c'){
58a: 83 f8 63 cmp $0x63,%eax
58d: 0f 84 8d 00 00 00 je 620 <printf+0x120>
putc(fd, *ap);
ap++;
} else if(c == '%'){
593: 83 f8 25 cmp $0x25,%eax
596: 0f 84 b4 00 00 00 je 650 <printf+0x150>
write(fd, &c, 1);
59c: 83 ec 04 sub $0x4,%esp
59f: c6 45 e7 25 movb $0x25,-0x19(%ebp)
5a3: 6a 01 push $0x1
5a5: 57 push %edi
5a6: ff 75 08 pushl 0x8(%ebp)
5a9: e8 05 fe ff ff call 3b3 <write>
putc(fd, c);
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
putc(fd, c);
5ae: 88 5d e7 mov %bl,-0x19(%ebp)
write(fd, &c, 1);
5b1: 83 c4 0c add $0xc,%esp
5b4: 6a 01 push $0x1
for(i = 0; fmt[i]; i++){
5b6: 83 c6 01 add $0x1,%esi
write(fd, &c, 1);
5b9: 57 push %edi
5ba: ff 75 08 pushl 0x8(%ebp)
5bd: e8 f1 fd ff ff call 3b3 <write>
for(i = 0; fmt[i]; i++){
5c2: 0f b6 5e ff movzbl -0x1(%esi),%ebx
putc(fd, c);
5c6: 83 c4 10 add $0x10,%esp
}
state = 0;
5c9: 31 d2 xor %edx,%edx
for(i = 0; fmt[i]; i++){
5cb: 84 db test %bl,%bl
5cd: 75 8f jne 55e <printf+0x5e>
}
}
}
5cf: 8d 65 f4 lea -0xc(%ebp),%esp
5d2: 5b pop %ebx
5d3: 5e pop %esi
5d4: 5f pop %edi
5d5: 5d pop %ebp
5d6: c3 ret
5d7: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
5de: 66 90 xchg %ax,%ax
printint(fd, *ap, 16, 0);
5e0: 83 ec 0c sub $0xc,%esp
5e3: b9 10 00 00 00 mov $0x10,%ecx
5e8: 6a 00 push $0x0
5ea: 8b 5d d0 mov -0x30(%ebp),%ebx
5ed: 8b 45 08 mov 0x8(%ebp),%eax
5f0: 8b 13 mov (%ebx),%edx
5f2: e8 59 fe ff ff call 450 <printint>
ap++;
5f7: 89 d8 mov %ebx,%eax
5f9: 83 c4 10 add $0x10,%esp
state = 0;
5fc: 31 d2 xor %edx,%edx
ap++;
5fe: 83 c0 04 add $0x4,%eax
601: 89 45 d0 mov %eax,-0x30(%ebp)
604: e9 4b ff ff ff jmp 554 <printf+0x54>
609: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
printint(fd, *ap, 10, 1);
610: 83 ec 0c sub $0xc,%esp
613: b9 0a 00 00 00 mov $0xa,%ecx
618: 6a 01 push $0x1
61a: eb ce jmp 5ea <printf+0xea>
61c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
putc(fd, *ap);
620: 8b 5d d0 mov -0x30(%ebp),%ebx
write(fd, &c, 1);
623: 83 ec 04 sub $0x4,%esp
putc(fd, *ap);
626: 8b 03 mov (%ebx),%eax
write(fd, &c, 1);
628: 6a 01 push $0x1
ap++;
62a: 83 c3 04 add $0x4,%ebx
write(fd, &c, 1);
62d: 57 push %edi
62e: ff 75 08 pushl 0x8(%ebp)
putc(fd, *ap);
631: 88 45 e7 mov %al,-0x19(%ebp)
write(fd, &c, 1);
634: e8 7a fd ff ff call 3b3 <write>
ap++;
639: 89 5d d0 mov %ebx,-0x30(%ebp)
63c: 83 c4 10 add $0x10,%esp
state = 0;
63f: 31 d2 xor %edx,%edx
641: e9 0e ff ff ff jmp 554 <printf+0x54>
646: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
64d: 8d 76 00 lea 0x0(%esi),%esi
putc(fd, c);
650: 88 5d e7 mov %bl,-0x19(%ebp)
write(fd, &c, 1);
653: 83 ec 04 sub $0x4,%esp
656: e9 59 ff ff ff jmp 5b4 <printf+0xb4>
65b: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
65f: 90 nop
s = (char*)*ap;
660: 8b 45 d0 mov -0x30(%ebp),%eax
663: 8b 18 mov (%eax),%ebx
ap++;
665: 83 c0 04 add $0x4,%eax
668: 89 45 d0 mov %eax,-0x30(%ebp)
if(s == 0)
66b: 85 db test %ebx,%ebx
66d: 74 17 je 686 <printf+0x186>
while(*s != 0){
66f: 0f b6 03 movzbl (%ebx),%eax
state = 0;
672: 31 d2 xor %edx,%edx
while(*s != 0){
674: 84 c0 test %al,%al
676: 0f 84 d8 fe ff ff je 554 <printf+0x54>
67c: 89 75 d4 mov %esi,-0x2c(%ebp)
67f: 89 de mov %ebx,%esi
681: 8b 5d 08 mov 0x8(%ebp),%ebx
684: eb 1a jmp 6a0 <printf+0x1a0>
s = "(null)";
686: bb 8b 08 00 00 mov $0x88b,%ebx
while(*s != 0){
68b: 89 75 d4 mov %esi,-0x2c(%ebp)
68e: b8 28 00 00 00 mov $0x28,%eax
693: 89 de mov %ebx,%esi
695: 8b 5d 08 mov 0x8(%ebp),%ebx
698: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
69f: 90 nop
write(fd, &c, 1);
6a0: 83 ec 04 sub $0x4,%esp
s++;
6a3: 83 c6 01 add $0x1,%esi
6a6: 88 45 e7 mov %al,-0x19(%ebp)
write(fd, &c, 1);
6a9: 6a 01 push $0x1
6ab: 57 push %edi
6ac: 53 push %ebx
6ad: e8 01 fd ff ff call 3b3 <write>
while(*s != 0){
6b2: 0f b6 06 movzbl (%esi),%eax
6b5: 83 c4 10 add $0x10,%esp
6b8: 84 c0 test %al,%al
6ba: 75 e4 jne 6a0 <printf+0x1a0>
state = 0;
6bc: 8b 75 d4 mov -0x2c(%ebp),%esi
6bf: 31 d2 xor %edx,%edx
6c1: e9 8e fe ff ff jmp 554 <printf+0x54>
6c6: 66 90 xchg %ax,%ax
6c8: 66 90 xchg %ax,%ax
6ca: 66 90 xchg %ax,%ax
6cc: 66 90 xchg %ax,%ax
6ce: 66 90 xchg %ax,%ax
000006d0 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
6d0: 55 push %ebp
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
6d1: a1 48 0b 00 00 mov 0xb48,%eax
{
6d6: 89 e5 mov %esp,%ebp
6d8: 57 push %edi
6d9: 56 push %esi
6da: 53 push %ebx
6db: 8b 5d 08 mov 0x8(%ebp),%ebx
bp = (Header*)ap - 1;
6de: 8d 4b f8 lea -0x8(%ebx),%ecx
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
6e1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
6e8: 89 c2 mov %eax,%edx
6ea: 8b 00 mov (%eax),%eax
6ec: 39 ca cmp %ecx,%edx
6ee: 73 30 jae 720 <free+0x50>
6f0: 39 c1 cmp %eax,%ecx
6f2: 72 04 jb 6f8 <free+0x28>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
6f4: 39 c2 cmp %eax,%edx
6f6: 72 f0 jb 6e8 <free+0x18>
break;
if(bp + bp->s.size == p->s.ptr){
6f8: 8b 73 fc mov -0x4(%ebx),%esi
6fb: 8d 3c f1 lea (%ecx,%esi,8),%edi
6fe: 39 f8 cmp %edi,%eax
700: 74 30 je 732 <free+0x62>
bp->s.size += p->s.ptr->s.size;
bp->s.ptr = p->s.ptr->s.ptr;
} else
bp->s.ptr = p->s.ptr;
702: 89 43 f8 mov %eax,-0x8(%ebx)
if(p + p->s.size == bp){
705: 8b 42 04 mov 0x4(%edx),%eax
708: 8d 34 c2 lea (%edx,%eax,8),%esi
70b: 39 f1 cmp %esi,%ecx
70d: 74 3a je 749 <free+0x79>
p->s.size += bp->s.size;
p->s.ptr = bp->s.ptr;
} else
p->s.ptr = bp;
70f: 89 0a mov %ecx,(%edx)
freep = p;
}
711: 5b pop %ebx
freep = p;
712: 89 15 48 0b 00 00 mov %edx,0xb48
}
718: 5e pop %esi
719: 5f pop %edi
71a: 5d pop %ebp
71b: c3 ret
71c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
720: 39 c2 cmp %eax,%edx
722: 72 c4 jb 6e8 <free+0x18>
724: 39 c1 cmp %eax,%ecx
726: 73 c0 jae 6e8 <free+0x18>
if(bp + bp->s.size == p->s.ptr){
728: 8b 73 fc mov -0x4(%ebx),%esi
72b: 8d 3c f1 lea (%ecx,%esi,8),%edi
72e: 39 f8 cmp %edi,%eax
730: 75 d0 jne 702 <free+0x32>
bp->s.size += p->s.ptr->s.size;
732: 03 70 04 add 0x4(%eax),%esi
735: 89 73 fc mov %esi,-0x4(%ebx)
bp->s.ptr = p->s.ptr->s.ptr;
738: 8b 02 mov (%edx),%eax
73a: 8b 00 mov (%eax),%eax
73c: 89 43 f8 mov %eax,-0x8(%ebx)
if(p + p->s.size == bp){
73f: 8b 42 04 mov 0x4(%edx),%eax
742: 8d 34 c2 lea (%edx,%eax,8),%esi
745: 39 f1 cmp %esi,%ecx
747: 75 c6 jne 70f <free+0x3f>
p->s.size += bp->s.size;
749: 03 43 fc add -0x4(%ebx),%eax
freep = p;
74c: 89 15 48 0b 00 00 mov %edx,0xb48
p->s.size += bp->s.size;
752: 89 42 04 mov %eax,0x4(%edx)
p->s.ptr = bp->s.ptr;
755: 8b 43 f8 mov -0x8(%ebx),%eax
758: 89 02 mov %eax,(%edx)
}
75a: 5b pop %ebx
75b: 5e pop %esi
75c: 5f pop %edi
75d: 5d pop %ebp
75e: c3 ret
75f: 90 nop
00000760 <malloc>:
return freep;
}
void*
malloc(uint nbytes)
{
760: 55 push %ebp
761: 89 e5 mov %esp,%ebp
763: 57 push %edi
764: 56 push %esi
765: 53 push %ebx
766: 83 ec 1c sub $0x1c,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
769: 8b 45 08 mov 0x8(%ebp),%eax
if((prevp = freep) == 0){
76c: 8b 3d 48 0b 00 00 mov 0xb48,%edi
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
772: 8d 70 07 lea 0x7(%eax),%esi
775: c1 ee 03 shr $0x3,%esi
778: 83 c6 01 add $0x1,%esi
if((prevp = freep) == 0){
77b: 85 ff test %edi,%edi
77d: 0f 84 ad 00 00 00 je 830 <malloc+0xd0>
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
783: 8b 07 mov (%edi),%eax
if(p->s.size >= nunits){
785: 8b 48 04 mov 0x4(%eax),%ecx
788: 39 f1 cmp %esi,%ecx
78a: 73 71 jae 7fd <malloc+0x9d>
78c: 81 fe 00 10 00 00 cmp $0x1000,%esi
792: bb 00 10 00 00 mov $0x1000,%ebx
797: 0f 43 de cmovae %esi,%ebx
p = sbrk(nu * sizeof(Header));
79a: 8d 0c dd 00 00 00 00 lea 0x0(,%ebx,8),%ecx
7a1: 89 4d e4 mov %ecx,-0x1c(%ebp)
7a4: eb 1b jmp 7c1 <malloc+0x61>
7a6: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
7ad: 8d 76 00 lea 0x0(%esi),%esi
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
7b0: 8b 10 mov (%eax),%edx
if(p->s.size >= nunits){
7b2: 8b 4a 04 mov 0x4(%edx),%ecx
7b5: 39 f1 cmp %esi,%ecx
7b7: 73 4f jae 808 <malloc+0xa8>
p->s.size = nunits;
}
freep = prevp;
return (void*)(p + 1);
}
if(p == freep)
7b9: 8b 3d 48 0b 00 00 mov 0xb48,%edi
7bf: 89 d0 mov %edx,%eax
7c1: 39 c7 cmp %eax,%edi
7c3: 75 eb jne 7b0 <malloc+0x50>
p = sbrk(nu * sizeof(Header));
7c5: 83 ec 0c sub $0xc,%esp
7c8: ff 75 e4 pushl -0x1c(%ebp)
7cb: e8 4b fc ff ff call 41b <sbrk>
if(p == (char*)-1)
7d0: 83 c4 10 add $0x10,%esp
7d3: 83 f8 ff cmp $0xffffffff,%eax
7d6: 74 1b je 7f3 <malloc+0x93>
hp->s.size = nu;
7d8: 89 58 04 mov %ebx,0x4(%eax)
free((void*)(hp + 1));
7db: 83 ec 0c sub $0xc,%esp
7de: 83 c0 08 add $0x8,%eax
7e1: 50 push %eax
7e2: e8 e9 fe ff ff call 6d0 <free>
return freep;
7e7: a1 48 0b 00 00 mov 0xb48,%eax
if((p = morecore(nunits)) == 0)
7ec: 83 c4 10 add $0x10,%esp
7ef: 85 c0 test %eax,%eax
7f1: 75 bd jne 7b0 <malloc+0x50>
return 0;
}
}
7f3: 8d 65 f4 lea -0xc(%ebp),%esp
return 0;
7f6: 31 c0 xor %eax,%eax
}
7f8: 5b pop %ebx
7f9: 5e pop %esi
7fa: 5f pop %edi
7fb: 5d pop %ebp
7fc: c3 ret
if(p->s.size >= nunits){
7fd: 89 c2 mov %eax,%edx
7ff: 89 f8 mov %edi,%eax
801: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
if(p->s.size == nunits)
808: 39 ce cmp %ecx,%esi
80a: 74 54 je 860 <malloc+0x100>
p->s.size -= nunits;
80c: 29 f1 sub %esi,%ecx
80e: 89 4a 04 mov %ecx,0x4(%edx)
p += p->s.size;
811: 8d 14 ca lea (%edx,%ecx,8),%edx
p->s.size = nunits;
814: 89 72 04 mov %esi,0x4(%edx)
freep = prevp;
817: a3 48 0b 00 00 mov %eax,0xb48
}
81c: 8d 65 f4 lea -0xc(%ebp),%esp
return (void*)(p + 1);
81f: 8d 42 08 lea 0x8(%edx),%eax
}
822: 5b pop %ebx
823: 5e pop %esi
824: 5f pop %edi
825: 5d pop %ebp
826: c3 ret
827: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
82e: 66 90 xchg %ax,%ax
base.s.ptr = freep = prevp = &base;
830: c7 05 48 0b 00 00 4c movl $0xb4c,0xb48
837: 0b 00 00
base.s.size = 0;
83a: bf 4c 0b 00 00 mov $0xb4c,%edi
base.s.ptr = freep = prevp = &base;
83f: c7 05 4c 0b 00 00 4c movl $0xb4c,0xb4c
846: 0b 00 00
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
849: 89 f8 mov %edi,%eax
base.s.size = 0;
84b: c7 05 50 0b 00 00 00 movl $0x0,0xb50
852: 00 00 00
if(p->s.size >= nunits){
855: e9 32 ff ff ff jmp 78c <malloc+0x2c>
85a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
prevp->s.ptr = p->s.ptr;
860: 8b 0a mov (%edx),%ecx
862: 89 08 mov %ecx,(%eax)
864: eb b1 jmp 817 <malloc+0xb7>
| 33.988506 | 60 | 0.414745 |
dc8f1e47025daf3748848dee39c67044b1175304 | 389 | asm | Assembly | oeis/099/A099096.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/099/A099096.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/099/A099096.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A099096: Riordan array (1,2-x).
; Submitted by Jamie Morken(w2)
; 1,0,2,0,-1,4,0,0,-4,8,0,0,1,-12,16,0,0,0,6,-32,32,0,0,0,-1,24,-80,64,0,0,0,0,-8,80,-192,128,0,0,0,0,1,-40,240,-448,256,0,0,0,0,0,10,-160,672,-1024,512,0,0,0,0,0,-1,60,-560,1792,-2304,1024,0,0,0,0,0
lpb $0
add $1,1
sub $0,$1
lpe
sub $1,$0
sub $0,$1
sub $2,1
sub $2,$0
bin $2,$1
mov $1,2
pow $1,$0
mul $2,$1
mov $0,$2
| 21.611111 | 199 | 0.565553 |
0a8c950ffd95276af74789c0cbe40b253d8acba7 | 25,866 | asm | Assembly | mandelbrot.asm | dbernatt/Mandelbrot-fractal-assembly | efc500265a5c1df13599142d6f010ceaf2df92f2 | [
"MIT"
] | null | null | null | mandelbrot.asm | dbernatt/Mandelbrot-fractal-assembly | efc500265a5c1df13599142d6f010ceaf2df92f2 | [
"MIT"
] | null | null | null | mandelbrot.asm | dbernatt/Mandelbrot-fractal-assembly | efc500265a5c1df13599142d6f010ceaf2df92f2 | [
"MIT"
] | null | null | null | ; Domokos Bernat Illes
; Mandelbrot Set
; Meg gyorsitas szukseges SSE -vel vagy AVX -el.
; Compile Windows:
; nasm -f win32 mandelbrot.asm
; nlink mandelbrot.obj -lio -lmio -lgfx -o mandelbrot.exe
; Compile Linux:
; wine nasm -f win32 mandelbrot.asm
; wine nlink mandelbrot.obj -lio -lmio -lgfx -o mandelbrot.exe
%include 'io.inc'
%include 'mio.inc'
%include 'gfx.inc'
%define WIDTH 1024
%define HEIGHT 768
section .data
; For double floating points
ketto_d dq 2.0, 2.0
egyegeszot_d dq 1.5, 1.5
egy_d dq 1.0, 1.0
ratio_d dq 1.0, 1.0
mozgat_negativ_d dq -0.025, -0.025
mozgat_pozitiv_d dq 0.025, 0.025
delta_move_in_d dq 0.93, 0.93
delta_move_out_d dq 0.93, 0.93
offsetx_d dq 0.0, 0.0
offsety_d dq 0.0, 0.0
changeX_d dq 0.0, 0.0
changeY_d dq 0.0, 0.0
zoom_d dq 1.0, 1.0
change_delta_zoom_in_d dq 1.1, 1.1
change_delta_zoom_out_d dq 0.9, 0.9
change_zoom_d dq 1.0, 1.0
mozgat_zoom_negativ_d dq -0.05, -0.05
mozgat_zoom_pozitiv_d dq 0.05, 0.05
hatar_d dq 4.0, 4.0
width_d dq 0.0, 0.0
height_d dq 0.0, 0.0
;................................................................
; For single floating points
ketto dd 2.0, 2.0, 2.0, 2.0
egyegeszot dd 1.5, 1.5, 1.5, 1.5
egy dd 1.0, 1.0, 1.0, 1.0
mozgat_negativ dd -0.025, -0.025,-0.025, -0.025
mozgat_pozitiv dd 0.025, 0.025,0.025, 0.025
delta_move_in dd 0.93, 0.93, 0.93, 0.93
delta_move_out dd 0.93, 0.93, 0.93, 0.93
offsetx dd 0.0, 0.0, 0.0, 0.0
offsety dd 0.0, 0.0, 0.0, 0.0
changeX dd 0.0, 0.0, 0.0, 0.0
changeY dd 0.0, 0.0, 0.0, 0.0
zoom dd 1.0, 1.0, 1.0, 1.0
change_delta_zoom_in dd 1.1, 1.1, 1.1, 1.1
change_delta_zoom_out dd 0.9, 0.9, 0.9, 0.9
change_zoom dd 1.0, 1.0, 1.0, 1.0
mozgat_zoom_negativ dd -0.05, -0.05, -0.05, -0.05
mozgat_zoom_pozitiv dd 0.05, 0.05, 0.05, 0.05
hatar dd 4.0, 4.0, 4.0, 4.0
width dd 0.0, 0.0, 0.0, 0.0
height dd 0.0, 0.0, 0.0, 0.0
zoom_pressed_in_S dd 0
zoom_pressed_out_S dd 0
hanyszor_pressed dd 0
p1_iter dd 0
p2_iter dd 0
p3_iter dd 0
p4_iter dd 0
maxiter dd 255
szin1 dd 1
szin2 dd 1
caption db "Mandelbrot Set", 0
errormsg db "ERROR: could not initialize graphics!", 0
welcome db " Welcome in Mandelbrot Set! ", 0
info_zoom db " Press O (not 0) or P to zoom!", 0
info_move db " Press W or A or S or D to move the picture! ", 0
info_animation db " Press u - start animation !", 13, 10 , " Press i - stop animation ! ", 0
info_switch_flt db " Press 1 - float precision ! ", 0
info_switch_d db " Press 2 - double precision ! ", 0
line db "--------------------------------------------------", 0
autor db "By Domokos Bernat Illes. Have fun :)", 0
switch_animate dd 0
global main
section .text
main:
; Create the graphics window
mov eax, WIDTH ; window width (X)
mov ebx, HEIGHT ; window hieght (Y)
mov ecx, 0 ; window mode (NOT fullscreen!)
mov edx, caption ; window caption
call gfx_init
test eax, eax ; if the return value is 0, something went wrong
jnz .init
; Print error message and exit
mov eax, errormsg
call io_writestr
call io_writeln
ret
.init:
mov eax, welcome
call mio_writestr
call mio_writeln
call mio_writeln
mov eax, info_move
call mio_writestr
call mio_writeln
mov eax, info_zoom
call mio_writestr
call mio_writeln
mov eax, info_animation
call mio_writestr
call mio_writeln
mov eax, info_switch_flt
call mio_writestr
call mio_writeln
mov eax, info_switch_d
call mio_writestr
call mio_writeln
mov eax, line
call mio_writestr
call mio_writeln
mov eax, autor
call mio_writestr
call mio_writeln
;........................
.Single_point:
;........................
xor esi, esi
xor edi, edi
; Convert double to single float
mov eax, WIDTH
cvtsi2ss xmm0, eax
vpermilps xmm0, xmm0, 0x00
movups [width], xmm0
mov eax, HEIGHT
cvtsi2ss xmm0, eax
vpermilps xmm0, xmm0, 0x00
movups [height], xmm0
; Pozicio megadasa double -> float -ba
xorps xmm0, xmm0
cvtsd2ss xmm0, [offsetx_d]
vpermilps xmm0, xmm0, 0x00
movups [offsetx], xmm0
cvtsd2ss xmm0, [offsety_d]
vpermilps xmm0, xmm0, 0x00
movups [offsety], xmm0
cvtsd2ss xmm0, [changeX_d]
vpermilps xmm0, xmm0, 0x00
movups [changeX], xmm0
cvtsd2ss xmm0, [changeY_d]
vpermilps xmm0, xmm0, 0x00
movups [changeY], xmm0
; Mozgas szabalyozasa double -> float -ba
cvtsd2ss xmm0, [mozgat_pozitiv_d]
vpermilps xmm0, xmm0, 0x00
movups [mozgat_pozitiv], xmm0
cvtsd2ss xmm0, [mozgat_negativ_d]
vpermilps xmm0, xmm0, 0x00
movups [mozgat_negativ], xmm0
cvtsd2ss xmm0, [mozgat_zoom_negativ_d]
vpermilps xmm0, xmm0, 0x00
movups [mozgat_zoom_negativ], xmm0
cvtsd2ss xmm0, [mozgat_zoom_pozitiv_d]
vpermilps xmm0, xmm0, 0x00
movups [mozgat_zoom_pozitiv], xmm0
;Zoom szabalyzasa
cvtsd2ss xmm0, [zoom_d]
vpermilps xmm0, xmm0, 0x00
movups [zoom], xmm0
cvtsd2ss xmm0, [change_zoom_d]
vpermilps xmm0, xmm0, 0x00
movups [change_zoom], xmm0
.mainloop_S:
call gfx_map
xor ecx, ecx
.yloop_S:
cmp ecx, HEIGHT
je .yend_S
xor edx, edx
.xloop_S:
cmp edx, WIDTH
je .xend_S
; X koordinatai 4 pixelnek
; 1. pixel x1
xorps xmm1,xmm1
cvtsi2ss xmm1, edx ;
; xmm0 = [x1], [0.0], [0.0], [0.0]
vpermilps xmm1, xmm1, 0x15
; 2.pixel x2
; xmm0 = [x1], [x2], [0.0], [0.0]
inc edx
cvtsi2ss xmm1, edx
vpermilps xmm1, xmm1, 0xC0
; 3.pixel x3
; xmm0 = [x1], [x2], [x3], [0.0]
inc edx
cvtsi2ss xmm1, edx
vpermilps xmm1, xmm1, 0xE0
; 4.pixel x4
; xmm0 = [x1], [x2], [x3], [x4]
inc edx
cvtsi2ss xmm1, edx
; Tehat akkor xmm1 = [x1], [x2], [x3], [x4]
; eax, edx, ecx, ebx
; pr = 1.5 * (x - w / 2) / (0.5 * zoom * w) + moveX;
xorps xmm0, xmm0
movups xmm0, [width]
divps xmm0, [ketto]
subps xmm1, xmm0
mulps xmm1, [egyegeszot]
movups xmm2, xmm0
mulps xmm2, [zoom]
divps xmm1, xmm2
addps xmm1, [offsetx] ; xmm1 = [pr1], [pr2], [pr3], [pr4]
; Vege 4X koordinata
; Y koordinatak meghatarozasa
; pi = (y - h / 2) / (0.5 * zoom * h) + moveY;
; xmm2 = [y], [y], [y], [y]
xorps xmm2, xmm2
cvtsi2ss xmm2, ecx
vpermilps xmm2, xmm2, 0x00
movups xmm3, [height]
divps xmm3, [ketto]
subps xmm2, xmm3
movups xmm4, xmm3
mulps xmm4, [zoom]
divps xmm2, xmm4
addps xmm2, [offsety] ; xmm2 = [pi1], [pi2], [pi3], [pi4]
;newRe = newIm = oldRe = oldIm = 0;
xorps xmm3, xmm3 ; oldRe
xorps xmm4, xmm4 ; oldIm
xorps xmm5, xmm5 ; newRe
xorps xmm6, xmm6 ; newIm
xorps xmm7, xmm7
xor ebx, ebx
mov [p1_iter], ebx
mov [p2_iter], ebx
mov [p3_iter], ebx
mov [p4_iter], ebx
.iteration_S:
cmp ebx, [maxiter]
jae .kilep_S
movups xmm3, xmm5 ; oldRe = newRe
movups xmm4, xmm6 ; oldIm = newIm
movups xmm5, xmm3
mulps xmm5, xmm5 ;oldRe * oldRe
movups xmm7, xmm4
mulps xmm7, xmm7 ;oldIm * oldIm
subps xmm5, xmm7 ;oldRe * oldRe - oldIm * oldIm
addps xmm5, xmm1 ; xmm5(newRe) = oldRe * oldRe - oldIm * oldIm + pr
movups xmm6, xmm3
mulps xmm6, [ketto] ; 2 * oldRe
mulps xmm6, xmm4 ; 2 * oldRe * oldIm
addps xmm6, xmm2 ; xmm6(newIm) = 2 * oldRe * oldIm + pi
movups xmm0, xmm5
mulps xmm0, xmm0 ; xmm0 = newRe * newRe
movups xmm7, xmm6
mulps xmm7, xmm7 ; xmm7 = newIm * newIm
addps xmm0, xmm7 ; xmm0 = newRe * newRe + newIm * newIm
cmpps xmm0, [hatar], 1 ; cmpltps xmm0, 4 (xmm0 minden eleme kisebb -e mint 4)
xor edi, edi
movmskps edi, xmm0 ; edi = [28 bit = 0]...[3. bit = 0 - ha nagyobb vagy egyenlo mint 4, 1 - ha kisebb, mint 4], [2.], [1.], [0.]
test edi, edi
jz .kilep_S
; 1. pixel vizsgalata
xor esi, esi
mov esi, 8
and esi, edi
cmp esi, 8
jne .nem_no_p1_S
mov esi, [p1_iter]
inc esi
mov [p1_iter], esi
.nem_no_p1_S:
mov esi, 4
and esi, edi
cmp esi, 4
jne .nem_no_p2_S
mov esi, [p2_iter]
inc esi
mov [p2_iter], esi
.nem_no_p2_S:
mov esi, 2
and esi, edi
cmp esi, 2
jne .nem_no_p3_S
mov esi, [p3_iter]
inc esi
mov [p3_iter], esi
.nem_no_p3_S:
mov esi, 1
and esi, edi
cmp esi, 1
jne .nem_no_p4_S
mov esi, [p4_iter]
inc esi
mov [p4_iter], esi
.nem_no_p4_S:
inc ebx ; globalis iteraciot novel
jmp .iteration_S
jmp .xloop_S
.kilep_S:
.elso_S:
mov ebx, dword[p1_iter]
mov byte[eax], bl ; b
add ebx, [szin1]
mov byte[eax+1], bl ; g
add ebx, [szin2]
mov byte[eax+2], bl ; r
mov byte[eax+3], 0
add eax, 4 ; 2. pixel
.masodik_S:
mov ebx, dword[p2_iter]
mov byte[eax], bl
add ebx, [szin1]
mov byte[eax+1], bl
add ebx, [szin2]
mov byte[eax+2], bl
mov byte[eax+3], 0
add eax, 4 ; 3. pixel
.harmadik_S:
mov ebx, dword[p3_iter]
mov byte[eax], bl
add ebx, [szin1]
mov byte[eax+1], bl
add ebx, [szin2]
mov byte[eax+2], bl
mov byte[eax+3], 0
add eax, 4 ; 4. pixel
.negyedik_S:
mov ebx, dword[p4_iter]
mov byte[eax], bl
add ebx, [szin1]
mov byte[eax+1], bl
add ebx, [szin2]
mov byte[eax+2], bl
mov byte[eax+3], 0
add eax, 4 ; 1. pixel az uj iteracioban
.next_set_S:
inc edx
jmp .xloop_S
.xend_S:
inc ecx
jmp .yloop_S
.yend_S:
call gfx_unmap ; unmap the framebuffer
call gfx_draw ; draw the contents of the framebuffer (*must* be called once in each iteration!)
; Query and handle the events (loop!)
xor ebx, ebx
.eventloop_S:
call gfx_getevent
cmp eax,'o'
je .zoom_in_S
cmp eax, -'o'
je .zoom_release_S
cmp eax,'p'
je .zoom_out_S
cmp eax, -'p'
je .zoom_release_S
cmp eax, 'w' ; w key pressed
je .up_press_S ; deltay = -1 (if equal)
cmp eax, -'w' ; w key released
je .release_up_down_S ; deltay = 0 (if equal)
cmp eax, 's' ; s key pressed
je .down_press_S ; deltay = 1 (if equal)
cmp eax, -'s' ; s key released
je .release_up_down_S ; deltay = 0
cmp eax, 'a'
je .left_press_S
cmp eax, -'a'
je .release_right_left_S
cmp eax, 'd'
je .right_press_S
cmp eax, -'d'
je .release_right_left_S
cmp eax, '2'
je .Double_point
cmp eax, 'u'
je .animation
cmp eax, 'i'
je .stop_animation
cmp [switch_animate], dword 0
je .updateoffset_S
.animation:
mov [switch_animate], dword 1
add [szin1], dword 3
sub [szin2], dword 6
jmp .updateoffset_S
.stop_animation:
mov [switch_animate], dword 0
jmp .updateoffset_S
.up_press_S: ; w
movups xmm1, [mozgat_negativ]
movups [changeY], xmm1
jmp .updateoffset_S
.down_press_S: ; s
movups xmm1, [mozgat_pozitiv]
movups [changeY], xmm1
jmp .updateoffset_S
.left_press_S: ; a
movups xmm1, [mozgat_negativ]
movups [changeX], xmm1
jmp .updateoffset_S
.right_press_S: ; d
movups xmm1, [mozgat_pozitiv]
movups [changeX], xmm1
jmp .updateoffset_S
.release_up_down_S: ; -W -S
xorps xmm1, xmm1
movups [changeY], xmm1
jmp .updateoffset_S
.release_right_left_S: ; -A -D
xorps xmm1, xmm1
movups [changeX], xmm1
jmp .updateoffset_S
.zoom_in_S: ; o
; volt zoom tehat zoom
mov [zoom_pressed_in_S], dword 1
movups xmm0, [change_delta_zoom_in]
movups [change_zoom], xmm0
jmp .updateoffset_S
.zoom_out_S: ; p
mov [zoom_pressed_out_S], dword 1
movups xmm0, [change_delta_zoom_out]
movups [change_zoom], xmm0
jmp .updateoffset_S
.zoom_release_S: ; -o
mov [zoom_pressed_in_S], dword 0
mov [zoom_pressed_out_S], dword 0
movups xmm0, [egy]
movups [change_zoom], xmm0
jmp .updateoffset_S
.updateoffset_S:
; Handle exit
cmp eax, 23 ; the window close button was pressed: exit
je .end_S
cmp eax, 27 ; ESC: exit
je .end_S
test eax, eax ; 0: no more events
jnz .eventloop_S
movups xmm1, [offsetx]
movups xmm2, [offsety]
addps xmm1, [changeX]
addps xmm2, [changeY]
movups [offsetx], xmm1
movups [offsety], xmm2
movups xmm0, [zoom]
mulps xmm0, [change_zoom]
movups [zoom], xmm0
cmp [zoom_pressed_in_S], dword 0
je .nem_volt_zoom_be_S
.volt_zoom_be_S:
movups xmm0, [mozgat_negativ]
mulps xmm0, [delta_move_in]
movups [mozgat_negativ], xmm0
movups xmm0, [mozgat_pozitiv]
mulps xmm0, [delta_move_in]
movups [mozgat_pozitiv], xmm0
.nem_volt_zoom_be_S:
cmp [zoom_pressed_out_S], dword 0
je .nem_volt_zoom_ki_S
.volt_zoom_ki_S:
movups xmm0, [mozgat_negativ]
divps xmm0, [delta_move_out]
;divps xmm0, [delta_move_out]
movups [mozgat_negativ], xmm0
movups xmm0, [mozgat_pozitiv]
divps xmm0, [delta_move_out]
;divps xmm0, [delta_move_out]
movups [mozgat_pozitiv], xmm0
.nem_volt_zoom_ki_S:
jmp .mainloop_S
.end_S:
call gfx_destroy
ret
;...............................
.Double_point:
;...............................
xor esi, esi
xor edi, edi
mov [zoom_pressed_in_S], dword 0
mov [zoom_pressed_out_S], dword 0
mov eax, WIDTH
cvtsi2sd xmm0, eax
vpermilpd xmm0, xmm0, 0x00
movupd [width_d], xmm0
mov eax, HEIGHT
cvtsi2sd xmm0, eax
vpermilpd xmm0, xmm0, 0x00
movupd [height_d], xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, [offsetx]
vpermilpd xmm0, xmm0, 0x00
movupd [offsetx_d], xmm0
cvtss2sd xmm0, [offsety]
vpermilpd xmm0, xmm0, 0x00
movupd [offsety_d], xmm0
cvtss2sd xmm0, [changeX]
vpermilpd xmm0, xmm0, 0x00
movupd [changeX_d], xmm0
cvtss2sd xmm0, [changeY]
vpermilpd xmm0, xmm0, 0x00
movupd [changeY_d], xmm0
; Mozgas szabalyozasa float -> double -ba
cvtss2sd xmm0, [mozgat_pozitiv]
vpermilpd xmm0, xmm0, 0x00
movupd [mozgat_pozitiv_d], xmm0
cvtss2sd xmm0, [mozgat_negativ]
vpermilpd xmm0, xmm0, 0x00
movupd [mozgat_negativ_d], xmm0
cvtss2sd xmm0, [mozgat_zoom_negativ]
vpermilpd xmm0, xmm0, 0x00
movupd [mozgat_zoom_negativ_d], xmm0
cvtss2sd xmm0, [mozgat_zoom_pozitiv]
vpermilpd xmm0, xmm0, 0x00
movupd [mozgat_zoom_pozitiv_d], xmm0
;Zoom szabalyzasa
cvtss2sd xmm0, [zoom]
vpermilpd xmm0, xmm0, 0x00
movupd [zoom_d], xmm0
cvtss2sd xmm0, [change_zoom]
vpermilpd xmm0, xmm0, 0x00
movupd [change_zoom_d], xmm0
.mainloop:
call gfx_map
xor ecx, ecx
.yloop:
cmp ecx, HEIGHT
je .yend
xor edx, edx
.xloop:
cmp edx, WIDTH
je .xend
; X koordinatai 4 pixelnek
; 1. pixel x1
xorpd xmm1,xmm1
cvtsi2sd xmm1, edx ;
; xmm0 = [x1], [x1], [0.0], [0.0]
vpermilpd xmm1, xmm1, 0x15
; 2.pixel x2
; xmm0 = [x1], [x1], [x2], [x2]
inc edx
cvtsi2sd xmm1, edx
; Tehat akkor xmm1 = [x1], [x2], [x3], [x4]
;
; pr = 1.5 * (x - w / 2) / (0.5 * zoom * w) + moveX;
xorpd xmm0, xmm0
movupd xmm0, [width_d]
divpd xmm0, [ketto_d]
subpd xmm1, xmm0
mulpd xmm1, [egyegeszot_d]
movupd xmm2, xmm0
mulpd xmm2, [zoom_d]
divpd xmm1, xmm2
addpd xmm1, [offsetx_d] ; xmm1[pr] = [pr1], [pr2], [pr3], [pr4]
; Vege 4X koordinata
; Y koordinatak meghatar_dozasa
; pi = (y - h / 2) / (0.5 * zoom * h) + moveY;
; xmm2 = [y], [y], [y], [y]
xorpd xmm2, xmm2
cvtsi2sd xmm2, ecx
vpermilpd xmm2, xmm2, 0x00
movupd xmm3, [height_d]
divpd xmm3, [ketto_d]
subpd xmm2, xmm3
movupd xmm4, xmm3
mulpd xmm4, [zoom_d]
divpd xmm2, xmm4
addpd xmm2, [offsety_d] ; xmm2 = [pi1], [pi2], [pi3], [pi4]
;newRe = newIm = oldRe = oldIm = 0;
xorpd xmm3, xmm3 ; oldRe
xorpd xmm4, xmm4 ; oldIm
xorpd xmm5, xmm5 ; newRe
xorpd xmm6, xmm6 ; newIm
xorpd xmm7, xmm7
xor ebx, ebx
mov [p1_iter], ebx
mov [p2_iter], ebx
mov [p3_iter], ebx
mov [p4_iter], ebx
.iteration:
cmp ebx, [maxiter]
jae .kilep_
movupd xmm3, xmm5 ; oldRe = newRe
movupd xmm4, xmm6 ; oldIm = newIm
movupd xmm5, xmm3
mulpd xmm5, xmm5 ;oldRe * oldRe
movupd xmm7, xmm4
mulpd xmm7, xmm7 ;oldIm * oldIm
subpd xmm5, xmm7 ;oldRe * oldRe - oldIm * oldIm
addpd xmm5, xmm1 ; xmm5(newRe) = oldRe * oldRe - oldIm * oldIm + pr
movupd xmm6, xmm3
mulpd xmm6, [ketto_d] ; 2 * oldRe
mulpd xmm6, xmm4 ; 2 * oldRe * oldIm
addpd xmm6, xmm2 ; xmm6(newIm) = 2 * oldRe * oldIm + pi
movupd xmm0, xmm5
mulpd xmm0, xmm0 ; xmm0 = newRe * newRe
movupd xmm7, xmm6
mulpd xmm7, xmm7 ; xmm7 = newIm * newIm
addpd xmm0, xmm7 ; xmm0 = newRe * newRe + newIm * newIm
cmppd xmm0, [hatar_d], 1 ; cmpltps xmm0, 4 (xmm0 minden eleme kisebb -e mint 4)
xor edi, edi
movmskpd edi, xmm0 ; edi = [28 bit = 0]...[3. bit = 0 - ha nagyobb vagy egyenlo mint 4, 1 - ha kisebb, mint 4], [2.], [1.], [0.]
test edi, edi
jz .kilep_
; 1. pixel vizsgalata
xor esi, esi
mov esi, 2
and esi, edi
cmp esi, 2
jne .nem_no_p1
mov esi, [p1_iter]
inc esi
mov [p1_iter], esi
.nem_no_p1:
mov esi, 1
and esi, edi
cmp esi, 1
jne .nem_no_p2
mov esi, [p2_iter]
inc esi
mov [p2_iter], esi
.nem_no_p2:
inc ebx ; globalis iteraciot novel
jmp .iteration
jmp .xloop
.kilep_:
.elso:
mov ebx, dword[p1_iter]
mov byte[eax], bl
add ebx, [szin1]
mov byte[eax+1], bl
add ebx, [szin2]
mov byte[eax+2], bl
mov byte[eax+3], 0
add eax, 4 ; 2. pixel
.masodik:
mov ebx, dword[p2_iter]
mov byte[eax], bl
add ebx, [szin1]
mov byte[eax+1], bl
add ebx, [szin2]
mov byte[eax+2], bl
mov byte[eax+3], 0
add eax, 4 ; 3. pixel
.next_set:
inc edx
jmp .xloop
.xend:
inc ecx
jmp .yloop
.yend:
call gfx_unmap ; unmap the framebuffer
call gfx_draw ; draw the contents of the framebuffer (*must* be called once in each iteration!)
; Query and handle the events (loop!)
xor ebx, ebx
.eventloop:
call gfx_getevent
cmp eax,'o'
je .zoom_in
cmp eax, -'o'
je .zoom_release
cmp eax,'p'
je .zoom_out
cmp eax, -'p'
je .zoom_release
cmp eax, 'w' ; w key pressed
je .up_press ; deltay = -1 (if equal)
cmp eax, -'w' ; w key released
je .release_up_down ; deltay = 0 (if equal)
cmp eax, 's' ; s key pressed
je .down_press ; deltay = 1 (if equal)
cmp eax, -'s' ; s key released
je .release_up_down ; deltay = 0
cmp eax, 'a'
je .left_press
cmp eax, -'a'
je .release_right_left
cmp eax, 'd'
je .right_press
cmp eax, -'d'
je .release_right_left
cmp eax, '1'
je .Single_point
cmp eax, 'u'
je .animation_D
cmp eax, 'i'
je .stop_animation_D
cmp [switch_animate], dword 0
je .updateoffset
.animation_D:
mov [switch_animate], dword 1
add [szin1], dword 3
sub [szin2], dword 5
jmp .updateoffset
.stop_animation_D:
mov [switch_animate], dword 0
jmp .updateoffset
jmp .updateoffset
.up_press: ; w
movupd xmm1, [mozgat_negativ_d]
movupd [changeY_d], xmm1
jmp .updateoffset
.down_press: ; s
movupd xmm1, [mozgat_pozitiv_d]
movupd [changeY_d], xmm1
jmp .updateoffset
.left_press: ; a
movupd xmm1, [mozgat_negativ_d]
movupd [changeX_d], xmm1
jmp .updateoffset
.right_press: ; d
movupd xmm1, [mozgat_pozitiv_d]
movupd [changeX_d], xmm1
jmp .updateoffset
.release_up_down: ; -W -S
xorpd xmm1, xmm1
movupd [changeY_d], xmm1
jmp .updateoffset
.release_right_left: ; -A -D
xorpd xmm1, xmm1
movupd [changeX_d], xmm1
jmp .updateoffset
.zoom_in: ; o
mov [zoom_pressed_in_S], dword 1
movupd xmm0, [change_delta_zoom_in_d]
movupd [change_zoom_d], xmm0
jmp .updateoffset
.zoom_out: ; p
mov [zoom_pressed_out_S], dword 1
movupd xmm0, [change_delta_zoom_out_d]
movupd [change_zoom_d], xmm0
jmp .updateoffset
.zoom_release: ; -o
mov [zoom_pressed_in_S], dword 0
mov [zoom_pressed_out_S], dword 0
movupd xmm0, [egy_d]
movupd [change_zoom_d], xmm0
jmp .updateoffset
.updateoffset:
; Handle exit
cmp eax, 23 ; the window close button was pressed: exit
je .end
cmp eax, 27 ; ESC: exit
je .end
test eax, eax ; 0: no more events
jnz .eventloop
movupd xmm1, [offsetx_d]
movupd xmm2, [offsety_d]
addpd xmm1, [changeX_d]
addpd xmm2, [changeY_d]
movupd [offsetx_d], xmm1
movupd [offsety_d], xmm2
movupd xmm0, [zoom_d]
mulpd xmm0, [change_zoom_d]
movupd [zoom_d], xmm0
cmp [zoom_pressed_in_S], dword 0
je .nem_volt_zoom_be_D
.volt_zoom_be_D:
movupd xmm0, [mozgat_negativ_d]
mulpd xmm0, [delta_move_in_d]
movupd [mozgat_negativ_d], xmm0
movupd xmm0, [mozgat_pozitiv_d]
mulpd xmm0, [delta_move_in_d]
movupd [mozgat_pozitiv_d], xmm0
.nem_volt_zoom_be_D:
cmp [zoom_pressed_out_S], dword 0
je .nem_volt_zoom_ki_D
.volt_zoom_ki_D:
movupd xmm0, [mozgat_negativ_d]
divpd xmm0, [delta_move_out_d]
;divpd xmm0, [delta_move_out_d]
movupd [mozgat_negativ_d], xmm0
movupd xmm0, [mozgat_pozitiv_d]
divpd xmm0, [delta_move_out_d]
;divpd xmm0, [delta_move_out_d]
movupd [mozgat_pozitiv_d], xmm0
.nem_volt_zoom_ki_D:
jmp .mainloop
.end:
call gfx_destroy
ret | 23.38698 | 140 | 0.514304 |
efaf770421a1cb6a2fb9c7ddce2152f6a54ce57a | 3,912 | asm | Assembly | LIB/cfg_VIAB_ZolaDOS.asm | mspeculatrix/Zolatron64 | 030c8c60ae4776bcc75c7b00cb061c265549e235 | [
"MIT"
] | null | null | null | LIB/cfg_VIAB_ZolaDOS.asm | mspeculatrix/Zolatron64 | 030c8c60ae4776bcc75c7b00cb061c265549e235 | [
"MIT"
] | null | null | null | LIB/cfg_VIAB_ZolaDOS.asm | mspeculatrix/Zolatron64 | 030c8c60ae4776bcc75c7b00cb061c265549e235 | [
"MIT"
] | 1 | 2021-12-01T17:51:03.000Z | 2021-12-01T17:51:03.000Z | \ VIA_B - ZolaDOS
\ Configuration for ZolaDOS mass storage system.
\ Uses 65C22 VIA B at address $A400
\ PORT A is used for 8-bit parallel data - bidirectional.
\ PORT B is used for control signals
\ These connect to a Raspberry Pi running the program zolados.
\ The VIA's timers are also reserved for use by ZolaDOS.
ZD_BASE_ADDR = $A400
; 6522 VIA register addresses
ZD_CTRL_PORT = ZD_BASE_ADDR ; VIA Port B data/instruction register
ZD_CTRL_DDR = ZD_BASE_ADDR + $02 ; Port B Data Direction Register
ZD_DATA_PORT = ZD_BASE_ADDR + $01 ; VIA Port A data/instruction register
ZD_DATA_DDR = ZD_BASE_ADDR + $03 ; Port A Data Direction Register
ZD_T1CL = ZD_BASE_ADDR + $04 ; timer 1 counter low
ZD_T1CH = ZD_BASE_ADDR + $05 ; timer 1 counter high
ZD_T2CL = ZD_BASE_ADDR + $08 ; timer 2 counter low
ZD_T2CH = ZD_BASE_ADDR + $09 ; timer 2 counter high
ZD_ACL = ZD_BASE_ADDR + $0B ; Auxiliary Control register
ZD_IER = ZD_BASE_ADDR + $0E ; Interrupt Enable Register
ZD_IFR = ZD_BASE_ADDR + $0D ; Interrupt Flag Register
ZD_WKSPC = $0600 ; Using page 6 as workspace memory for ZolaDOS
ZD_OPCODE_LOAD = 8
ZD_OPCODE_LS = 16
ZD_OPCODE_SAVE = 128
ZD_MIN_FN_LEN = 3 ; Minimum filename length
ZD_MAX_FN_LEN = 15 ; Maximum filename length
ZD_FILES_PER_LINE = 4 ; Number of filenames to be displayed per line
ZD_FILELIST_TERM = 255 ; Terminator for end file list
ZD_TIMER_COUNT = LCD_BUF + LCD_BUF_SZ ; LCD_BUF_SZ defined in cfg_page_5.asm
; INIT and CR are outputs
ZD_CA_ON = %11111110 ; PB0 - AND with PB to set /CA bit low
ZD_CA_OFF = %00000001 ; PB0 - OR with PB to set /CA bit high
ZD_CO_ON = %00000100 ; PB2 - OR with PB to set /CO bit low
ZD_CO_OFF = %11111011 ; PB2 - AND with PB to set /CO bit high
ZD_CR_ON = %11111101 ; PB1 - AND with PB to set /CR bit low
ZD_CR_OFF = %00000010 ; PB1 - OR with PB to set /CR bit high
; For use with 74LVC4245A
ZD_DDIR_INPUT = %11110111 ; PB3 - AND with PB to set DATA port to input
ZD_DDIR_OUTPUT = %00001000 ; PB3 - OR with PB to set DATA port to output
; SR and SA are inputs
ZD_SR_MASK = %00010000 ; PB4 - AND with PB to read SR signal
ZD_SA_MASK = %00100000 ; PB5 - AND with PB to read SA signal
ZD_DATA_SET_OUT = %11111111
ZD_DATA_SET_IN = %00000000
ZD_CTRL_PINDIR = %00001111
; These values work
;ZD_STROBETIME = $07D0 ;
;ZD_SIGNALDELAY = $07D0 ; 03E8 = 1ms, 07D0 = 2ms, 1388 = 5ms approx
;ZD_TIMEOUT_INTVL = $270E ; Timer cycles between each interrupt
;ZD_TIMEOUT_LIMIT = $000F ; Times interrupt fires before we timeout
; Versions for tweaking/experimenting
ZD_STROBETIME = $02EE ;
ZD_SIGNALDELAY = $03E8 ; 03E8 = 1ms, 07D0 = 2ms, 1388 = 5ms approx
ZD_TIMEOUT_INTVL = $270E ; Timer cycles between each interrupt
ZD_TIMEOUT_LIMIT = $001F ; Times interrupt fires before we timeout
MACRO ZD_SET_CA_ON
lda ZD_CTRL_PORT
and #ZD_CA_ON
sta ZD_CTRL_PORT
ENDMACRO
MACRO ZD_SET_CA_OFF
lda ZD_CTRL_PORT
ora #ZD_CA_OFF
sta ZD_CTRL_PORT
ENDMACRO
MACRO ZD_SET_CO_ON
lda ZD_CTRL_PORT
ora #ZD_CO_ON
sta ZD_CTRL_PORT
ENDMACRO
MACRO ZD_SET_CO_OFF
lda ZD_CTRL_PORT
and #ZD_CO_OFF
sta ZD_CTRL_PORT
ENDMACRO
MACRO ZD_SET_CR_ON
lda ZD_CTRL_PORT
and #ZD_CR_ON
sta ZD_CTRL_PORT
ENDMACRO
MACRO ZD_SET_CR_OFF
lda ZD_CTRL_PORT
ora #ZD_CR_OFF
sta ZD_CTRL_PORT
ENDMACRO
; For use with 74LVC4245A
MACRO ZD_SET_DATADIR_OUTPUT
lda #ZD_DATA_SET_OUT
sta ZD_DATA_DDR
lda ZD_CTRL_PORT
ora #ZD_DDIR_OUTPUT
sta ZD_CTRL_PORT
ENDMACRO
MACRO ZD_SET_DATADIR_INPUT
lda #ZD_DATA_SET_IN
sta ZD_DATA_DDR
lda ZD_CTRL_PORT
and #ZD_DDIR_INPUT
sta ZD_CTRL_PORT
ENDMACRO
| 32.6 | 81 | 0.688395 |
48efda3bc8806709bc0528aa86afcb6a59518a2e | 850 | asm | Assembly | programs/oeis/105/A105038.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/105/A105038.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/105/A105038.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A105038: Nonnegative n such that 6*n^2 + 6*n + 1 is a square.
; 0,4,44,440,4360,43164,427284,4229680,41869520,414465524,4102785724,40613391720,402031131480,3979697923084,39394948099364,389969783070560,3860302882606240,38213059042991844,378270287547312204,3744489816430130200,37066627876753989800,366921788951109767804,3632151261634343688244,35954590827392327114640,355913757012288927458160,3523182979295496947466964,34875916035942680547211484,345235977380131308524647880,3417483857765370404699267320,33829602600273572738468025324,334878542144970356979980985924,3314955818849429997061341833920,32814679646349329613633437353280,324831840644643866139273031698884,3215503726800089331779096879635564,31830205427356249451651695764656760,315086550546762405184737860766932040
seq $0,31138 ; Numbers k such that 1^5 + 2^5 + ... + k^5 is a square.
div $0,3
| 141.666667 | 705 | 0.887059 |
ce5ac8e8592539fe987b1aceb0ec5025bb05a028 | 588 | asm | Assembly | a1p4.asm | realspal/8086-assembly-programs | 69f098efd5c7af02832dc8a05e0ef83a09c0df68 | [
"MIT"
] | 1 | 2022-02-28T15:57:47.000Z | 2022-02-28T15:57:47.000Z | a1p4.asm | realspal/8086-assembly-programs | 69f098efd5c7af02832dc8a05e0ef83a09c0df68 | [
"MIT"
] | null | null | null | a1p4.asm | realspal/8086-assembly-programs | 69f098efd5c7af02832dc8a05e0ef83a09c0df68 | [
"MIT"
] | null | null | null | ;Program to find length of a string
.model small
.stack 100h
.data
msg db 'Enter the string : $'
.code
main proc
mov ax,@data
mov ds,ax
mov dx,offset msg
mov ah,9
int 21h
mov dx,0
mov bl,10
input:
mov ah,1
int 21h
cmp al,13
je progend
inc dx
jmp input
progend:
mov ax,dx
div bl
mov bl,al
mov ch,ah
mov dl,bl
add dl,48
mov ah,2
int 21h
mov dl,ch
add dl,48
mov ah,2
int 21h
mov ah,4ch
int 21h
main endp
end main
| 15.076923 | 36 | 0.505102 |
49037c641b058db17db1c8af04370c5c0f9688cc | 4,333 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_1224.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_1224.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_1224.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 %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0xd49b, %rsi
lea addresses_normal_ht+0x12893, %rdi
nop
nop
nop
add %r12, %r12
mov $78, %rcx
rep movsw
add $14219, %rdi
lea addresses_WT_ht+0xfc93, %r10
sub %rdx, %rdx
mov $0x6162636465666768, %rdi
movq %rdi, (%r10)
nop
nop
nop
inc %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %rax
push %rcx
push %rdx
// Faulty Load
lea addresses_WC+0x10d93, %r12
nop
nop
nop
nop
nop
add $47130, %rdx
mov (%r12), %rax
lea oracles, %rdx
and $0xff, %rax
shlq $12, %rax
mov (%rdx,%rax,1), %rax
pop %rdx
pop %rcx
pop %rax
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_WC', 'same': False, 'AVXalign': False, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': True, 'type': 'addresses_WC', 'same': True, 'AVXalign': True, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 3}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 3}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 8}}
{'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
*/
| 58.554054 | 2,999 | 0.663974 |
e6b128fba7af670e2f24bd766de909a14262ab4a | 307 | asm | Assembly | libsrc/_DEVELOPMENT/temp/sp1/zx/c/sdcc_iy/sp1_Invalidate.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/temp/sp1/zx/c/sdcc_iy/sp1_Invalidate.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/temp/sp1/zx/c/sdcc_iy/sp1_Invalidate.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | ; void __FASTCALL__ sp1_Invalidate(struct sp1_Rect *r)
SECTION code_temp_sp1
PUBLIC _sp1_Invalidate
_sp1_Invalidate:
pop af
pop hl
push hl
push af
ld d,(hl)
inc hl
ld e,(hl)
inc hl
ld b,(hl)
inc hl
ld c,(hl)
INCLUDE "temp/sp1/zx/updater/asm_sp1_Invalidate.asm"
| 12.791667 | 55 | 0.65798 |
b6806ece99361e1b30cdd7f953503a1829a3272d | 5,247 | asm | Assembly | Transynther/x86/_processed/NC/_st_4k_/i9-9900K_12_0xca_notsx.log_30_493.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_st_4k_/i9-9900K_12_0xca_notsx.log_30_493.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_st_4k_/i9-9900K_12_0xca_notsx.log_30_493.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r8
push %r9
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x64fd, %rsi
lea addresses_A_ht+0x1ad6f, %rdi
nop
nop
nop
nop
nop
add %r15, %r15
mov $34, %rcx
rep movsl
nop
nop
cmp %rdx, %rdx
lea addresses_A_ht+0x556f, %r8
nop
and %rdx, %rdx
movw $0x6162, (%r8)
add %rcx, %rcx
lea addresses_WT_ht+0xfbcf, %r15
nop
nop
nop
xor %r9, %r9
movw $0x6162, (%r15)
nop
nop
nop
nop
cmp %r8, %r8
lea addresses_D_ht+0x1936f, %rsi
lea addresses_UC_ht+0x1536f, %rdi
nop
nop
nop
inc %rbp
mov $75, %rcx
rep movsq
nop
nop
nop
nop
nop
lfence
lea addresses_D_ht+0x1bfef, %rsi
nop
cmp $628, %r8
movl $0x61626364, (%rsi)
nop
nop
dec %rdx
lea addresses_normal_ht+0xe5, %r15
nop
nop
nop
nop
add %rcx, %rcx
movups (%r15), %xmm5
vpextrq $0, %xmm5, %r8
xor $23936, %rdx
lea addresses_WC_ht+0x16bef, %rdx
and %rsi, %rsi
mov (%rdx), %r8d
nop
nop
nop
sub %rdx, %rdx
lea addresses_normal_ht+0x6fcf, %rsi
lea addresses_UC_ht+0x1e36f, %rdi
nop
nop
nop
nop
nop
and $53763, %r8
mov $79, %rcx
rep movsq
nop
nop
nop
nop
xor $51164, %rdx
lea addresses_UC_ht+0x19907, %rsi
lea addresses_normal_ht+0x136f, %rdi
clflush (%rsi)
nop
cmp $19177, %r15
mov $89, %rcx
rep movsw
nop
nop
nop
nop
nop
and %rdx, %rdx
lea addresses_D_ht+0x6d91, %rdx
nop
nop
nop
nop
cmp %rdi, %rdi
mov (%rdx), %rcx
add %r9, %r9
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r15
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r14
push %r15
push %rbx
push %rcx
push %rdx
// Store
lea addresses_A+0x1336f, %r14
nop
nop
nop
nop
cmp $25729, %rbx
movb $0x51, (%r14)
nop
nop
nop
nop
nop
add %rbx, %rbx
// Store
mov $0x6a7ed10000000ecf, %r15
nop
nop
nop
nop
and $59320, %rcx
mov $0x5152535455565758, %r12
movq %r12, %xmm4
vmovups %ymm4, (%r15)
nop
nop
nop
nop
nop
and $10079, %r11
// Store
lea addresses_A+0x1033d, %r12
nop
nop
nop
nop
nop
add %r14, %r14
movb $0x51, (%r12)
nop
nop
and $44147, %r15
// Store
lea addresses_A+0x1cb6f, %r15
clflush (%r15)
nop
nop
nop
and %rbx, %rbx
movl $0x51525354, (%r15)
nop
sub %rbx, %rbx
// Store
lea addresses_WC+0xc56f, %r14
nop
nop
nop
nop
sub %rcx, %rcx
movb $0x51, (%r14)
nop
nop
nop
nop
dec %r15
// Store
lea addresses_PSE+0x1e52f, %rcx
cmp %r14, %r14
movl $0x51525354, (%rcx)
nop
cmp %rbx, %rbx
// Store
mov $0x6bd2fd0000000120, %rbx
nop
nop
cmp %rcx, %rcx
movb $0x51, (%rbx)
cmp %r11, %r11
// Faulty Load
mov $0x7b9028000000036f, %r11
nop
nop
nop
nop
nop
and %rdx, %rdx
movb (%r11), %r14b
lea oracles, %rbx
and $0xff, %r14
shlq $12, %r14
mov (%rbx,%r14,1), %r14
pop %rdx
pop %rcx
pop %rbx
pop %r15
pop %r14
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 10}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 8}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_NC', 'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_D_ht'}, 'dst': {'same': True, 'congruent': 11, 'type': 'addresses_UC_ht'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 6}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 1}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_UC_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_normal_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 1}}
{'51': 30}
51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51 51
*/
| 19.651685 | 153 | 0.643225 |
952a5e722218e3237abe59d1e568b56128fe4394 | 6,469 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_189.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_189.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_189.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r14
push %r8
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x150db, %rbx
clflush (%rbx)
nop
nop
xor %rax, %rax
mov (%rbx), %r13w
add $35827, %rbx
lea addresses_A_ht+0x3d23, %r12
clflush (%r12)
nop
nop
sub %r11, %r11
movl $0x61626364, (%r12)
nop
nop
and %r11, %r11
lea addresses_UC_ht+0x13276, %r11
nop
nop
and %r14, %r14
mov $0x6162636465666768, %r8
movq %r8, (%r11)
nop
nop
nop
sub $16935, %rax
lea addresses_D_ht+0x17cdb, %r13
nop
nop
nop
nop
cmp %r8, %r8
mov (%r13), %rbx
nop
nop
nop
nop
add %r12, %r12
lea addresses_D_ht+0x4e8e, %rsi
lea addresses_A_ht+0x5aeb, %rdi
nop
nop
nop
and $29478, %rax
mov $68, %rcx
rep movsb
nop
nop
nop
nop
dec %r8
lea addresses_D_ht+0xbdfb, %rsi
lea addresses_A_ht+0x245b, %rdi
clflush (%rsi)
nop
nop
nop
nop
dec %r12
mov $123, %rcx
rep movsb
nop
nop
nop
nop
nop
cmp $14566, %rax
lea addresses_A_ht+0x100af, %r12
nop
nop
nop
nop
sub $63949, %r14
vmovups (%r12), %ymm4
vextracti128 $1, %ymm4, %xmm4
vpextrq $1, %xmm4, %rsi
nop
add $3396, %rax
lea addresses_UC_ht+0x505b, %rsi
nop
nop
nop
nop
nop
xor %r13, %r13
mov $0x6162636465666768, %rbx
movq %rbx, %xmm4
movups %xmm4, (%rsi)
nop
nop
nop
cmp %r12, %r12
lea addresses_WC_ht+0x8edb, %rcx
nop
nop
xor $14517, %r8
mov (%rcx), %edi
nop
nop
dec %r12
lea addresses_WC_ht+0xf4db, %rax
nop
nop
add $13976, %rdi
movl $0x61626364, (%rax)
nop
sub $58162, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r8
pop %r14
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
// Faulty Load
lea addresses_A+0x2cdb, %rbx
nop
nop
nop
nop
nop
add %rdx, %rdx
mov (%rbx), %rcx
lea oracles, %rdi
and $0xff, %rcx
shlq $12, %rcx
mov (%rdi,%rcx,1), %rcx
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 9}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_A_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 3, 'type': 'addresses_D_ht'}, 'dst': {'same': False, 'congruent': 6, 'type': 'addresses_A_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_UC_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': True, 'size': 4, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 11}}
{'35': 21829}
35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35
*/
| 35.543956 | 2,999 | 0.656825 |
1e780ba1b922ea2b87d10ed16d84db745bc46d68 | 1,421 | asm | Assembly | programs/oeis/028/A028557.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/028/A028557.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/028/A028557.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A028557: a(n) = n*(n+5).
; 0,6,14,24,36,50,66,84,104,126,150,176,204,234,266,300,336,374,414,456,500,546,594,644,696,750,806,864,924,986,1050,1116,1184,1254,1326,1400,1476,1554,1634,1716,1800,1886,1974,2064,2156,2250,2346,2444,2544,2646,2750,2856,2964,3074,3186,3300,3416,3534,3654,3776,3900,4026,4154,4284,4416,4550,4686,4824,4964,5106,5250,5396,5544,5694,5846,6000,6156,6314,6474,6636,6800,6966,7134,7304,7476,7650,7826,8004,8184,8366,8550,8736,8924,9114,9306,9500,9696,9894,10094,10296,10500,10706,10914,11124,11336,11550,11766,11984,12204,12426,12650,12876,13104,13334,13566,13800,14036,14274,14514,14756,15000,15246,15494,15744,15996,16250,16506,16764,17024,17286,17550,17816,18084,18354,18626,18900,19176,19454,19734,20016,20300,20586,20874,21164,21456,21750,22046,22344,22644,22946,23250,23556,23864,24174,24486,24800,25116,25434,25754,26076,26400,26726,27054,27384,27716,28050,28386,28724,29064,29406,29750,30096,30444,30794,31146,31500,31856,32214,32574,32936,33300,33666,34034,34404,34776,35150,35526,35904,36284,36666,37050,37436,37824,38214,38606,39000,39396,39794,40194,40596,41000,41406,41814,42224,42636,43050,43466,43884,44304,44726,45150,45576,46004,46434,46866,47300,47736,48174,48614,49056,49500,49946,50394,50844,51296,51750,52206,52664,53124,53586,54050,54516,54984,55454,55926,56400,56876,57354,57834,58316,58800,59286,59774,60264,60756,61250,61746,62244,62744,63246
mov $1,$0
add $0,5
mul $1,$0
| 203 | 1,363 | 0.801548 |
5b8d52cd24763135fadc3e115479f6a7730644bb | 55,654 | asm | Assembly | src/cpu/65c816.asm | goodboyandgod/sneese | 7c5eb32fb9b7596878ac56085e6d137127f470d9 | [
"Artistic-2.0"
] | null | null | null | src/cpu/65c816.asm | goodboyandgod/sneese | 7c5eb32fb9b7596878ac56085e6d137127f470d9 | [
"Artistic-2.0"
] | null | null | null | src/cpu/65c816.asm | goodboyandgod/sneese | 7c5eb32fb9b7596878ac56085e6d137127f470d9 | [
"Artistic-2.0"
] | null | null | null | %if 0
SNEeSe, an Open Source Super NES emulator.
Copyright (c) 1998-2015, Charles Bilyue.
Portions copyright (c) 1998-2003, Brad Martin.
Portions copyright (c) 2003-2004, Daniel Horchner.
Portions copyright (c) 2004-2005, Nach. ( http://nsrt.edgeemu.com/ )
Unzip Technology, copyright (c) 1998 Gilles Vollant.
zlib Technology ( www.gzip.org/zlib/ ), Copyright (c) 1995-2003,
Jean-loup Gailly ( jloup* *at* *gzip.org ) and Mark Adler
( madler* *at* *alumni.caltech.edu ).
JMA Technology, copyright (c) 2004-2005 NSRT Team. ( http://nsrt.edgeemu.com/ )
LZMA Technology, copyright (c) 2001-4 Igor Pavlov. ( http://www.7-zip.org )
Portions copyright (c) 2002 Andrea Mazzoleni. ( http://advancemame.sf.net )
This is free software. See 'LICENSE' for details.
You must read and accept the license prior to use.
%endif
; SNEeSe 65c816 CPU emulation core
; Originally written by Lee Hammerton in AT&T assembly
; Maintained/rewritten/ported to NASM by Charles Bilyue'
;
; Compile under NASM
; To do: move cycle addition into opcode handlers
; improved bus speed selection
;CPU instruction tracker is broken!
;DO NOT UNCOMMENT THE FOLLOWING LINE!
;%define TRACKERS 1048576
%define VERSION_NUMBER_5A22 2
%define WAI_DELAY
;%define OPCODE_TRACE_LOG
;%define WATCH_FLAG_BREAKS
;%define FAST_STACK_ACCESS_NATIVE_MODE
%define FAST_STACK_ACCESS_EMULATION_MODE
; This file contains:
; CPU core info
; Reset
; Execution Loop
; Invalid Opcode Handler
; Flag format conversion tables
; Variable definitions (registers, interrupt vectors, etc.)
; CPU opcode emulation handlers
; CPU opcode handler tables
; CPU opcode timing tables
;
; CPU core info:
; All general registers are now used in 65c816 emulation:
; EAX,EBX are used by the memory mapper;
; ECX is used to hold P register;
; EDX is used as memory mapper work register;
; EBP is used to hold scanline cycle counter;
; ESI is used by the opcode fetcher;
; EDI is used to hold base address to CPU register set.
;
; Accumulator - CPU_LABEL(A)
; X index - CPU_LABEL(X)
; Y index - CPU_LABEL(Y)
; Stack pointer - CPU_LABEL(S)
; Direct address - CPU_LABEL(D)
; Program Counter - CPU_LABEL(PC)
; Program Bank - CPU_LABEL(PB), CPU_LABEL(PB_Shifted)
; Data Bank - CPU_LABEL(DB), CPU_LABEL(DB_Shifted)
; Processor status - _P,_P_B,_P_W
; True x86 layout = |V|-|-|-|S|Z|-|A|-|-|-|C|
; Native mode 65816 layout = |E|N|V|M|X|D|I|Z|C|
; Emulation mode 65816 layout = |E|N|V|1|B|D|I|Z|C|
; Using |E|N|Z|I|D|X|M|V|C|
; |B|1|
;
; Identifiers/labels
; Identifiers beginning with "R_" are register aliases.
; Identifiers beginning with "B_" are 'based' data (1-byte offset) aliases.
; Identifiers beginning with "_" MAY BE local aliases for more
; complex global identifiers.
; FUTURE: Change prefix for complex identifier local aliases to "I_" or "L_".
; (Internal or Local)
; CPU timing
; According to Neill Corlett's SNES timing doc, main CPU clock is
; 21.47727MHz, 1360 clocks/scanline.
;
; SNES PPU timing and interrupt timing is specific to ROM country,
; set by ROM loader.
; 65c816 runs with many waitstates added in for bus access, bringing
; effective CPU speed between 2.68MHz (minimum) and 3.58MHz (maximum).
;
; Now adding base opcode cycle counts, *8 for SlowROM banks and *6 for
; FastROM banks. This is INACCURATE! But close enough for now.
;
; Core Flaws
; 'Fast' native mode stack is incorrect outside WRAM (0000-1FFF) - values
; read are undefined (no read is done) and values written are ignored:
; should fallback, disabled for now.
;
; SPC relative timing calculation (for parallel execution)
;
; SPC execution is on-demand, and CPU and SPC synchronize on
; certain CPU events and on CPU<>SPC communication. Executed CPU
; cycles are counted and depleted when SPC execution catches up.
;
;
%include "misc.inc"
%include "cycles.inc"
%include "cpu/cpumem.inc"
%include "ppu/screen.inc"
%include "cpu/regs.inc"
%include "ppu/ppu.inc"
%include "cpu/dma.inc"
EXTERN Map_Address,Map_Byte
EXTERN OLD_PB,OLD_PC
EXTERN RomAddress
EXTERN LastIns,InsAddress
EXTERN FRAME_SKIP_MIN,FRAME_SKIP_MAX,Timer_Counter_Throttle
EXTERN PaletteChanged
EXTERN BrightnessLevel
EXTERN Real_SNES_Palette,fixedpalettecheck,SetPalette
EXTERN ShowFPS,ShowBreaks
EXTERN Copy_Screen
EXTERN update_sound, update_sound_block
EXTERN SPC_ENABLED
EXTERN SPC_Cycles
EXTERN TotalCycles
EXTERN Wrap_SPC_Cyclecounter
EXTERN SPC_START
EXTERN SPC_CPU_cycle_divisor
EXTERN SPC_CPU_cycle_multiplicand
EXTERN InvalidOpcode,InvalidJump
EXTERN Invalidate_Tile_Caches
EXTERN Reset_CGRAM
%ifdef DEBUG
EXTERN Frames
;EXTERN Timer_Counter_FPS
%endif
section .text
EXPORT CPU_text_start
section .data
EXPORT CPU_data_start
section .bss
EXPORT CPU_bss_start
%define CPU_LABEL(x) cpu_65c816_ %+ x
%define R_Base R_65c816_Base ; Base pointer to register set
%define R_Cycles R_65c816_Cycles ; Cycle counter
%define R_PBPC R_65c816_PBPC
%define R_PC R_65c816_PC
; True 65816 layout, Native Mode = |E|N|V|M|X|D|I|Z|C|
; True 65816 layout, Emulation Mode = |E|N|V|1|B|D|I|Z|C|
; These are the bits for flag set/clr operations
; |E|N|Z|I|D|X|M|V|C|
; |B|1|
SNES_FLAG_C equ 1 ; Carry
SNES_FLAG_V equ 2 ; Overflow
SNES_FLAG_M equ 4 ; When E=0: Memory/accumulator operations 8-bit
SNES_FLAG_1 equ 4 ; When E=1: This bit is always set
SNES_FLAG_X equ 8 ; When E=0: Index registers 8-bit
SNES_FLAG_B equ 8 ; When E=1: Break (clear only on stack after IRQ/NMI)
SNES_FLAG_D equ 0x10 ; Decimal ADC/SBC mode
SNES_FLAG_I equ 0x20 ; Interrupt Disable
SNES_FLAG_Z equ 0x40 ; Zero result
SNES_FLAG_N equ 0x80 ; Negative result
SNES_FLAG_E equ 0x100 ; Emulation mode
SNES_FLAG_B1 equ (SNES_FLAG_B | SNES_FLAG_1)
SNES_FLAG_MX equ (SNES_FLAG_M | SNES_FLAG_X)
SNES_FLAG_NZ equ (SNES_FLAG_N | SNES_FLAG_Z)
SNES_FLAG_NZC equ (SNES_FLAG_NZ | SNES_FLAG_C)
REAL_SNES_FLAG_C equ 1 ; See descriptions above
REAL_SNES_FLAG_Z equ 2
REAL_SNES_FLAG_I equ 4
REAL_SNES_FLAG_D equ 8
REAL_SNES_FLAG_X equ 0x10
REAL_SNES_FLAG_B equ 0x10
REAL_SNES_FLAG_M equ 0x20
REAL_SNES_FLAG_1 equ 0x20
REAL_SNES_FLAG_V equ 0x40
REAL_SNES_FLAG_N equ 0x80
REAL_SNES_FLAG_E equ 0x100
section .bss
ALIGNB
%define B_IRQ_Nvector [R_Base-CPU_Register_Base+IRQ_Nvector]
%define B_NMI_Nvector [R_Base-CPU_Register_Base+NMI_Nvector]
%define B_BRK_Nvector [R_Base-CPU_Register_Base+BRK_Nvector]
%define B_COP_Nvector [R_Base-CPU_Register_Base+COP_Nvector]
%define B_IRQ_Evector [R_Base-CPU_Register_Base+IRQ_Evector]
%define B_NMI_Evector [R_Base-CPU_Register_Base+NMI_Evector]
%define B_COP_Evector [R_Base-CPU_Register_Base+COP_Evector]
%define B_RES_Evector [R_Base-CPU_Register_Base+RES_Evector]
%define B_PB_Shifted [R_Base-CPU_Register_Base+CPU_LABEL(PB_Shifted)]
%define B_PB [R_Base-CPU_Register_Base+CPU_LABEL(PB)]
%define B_PC [R_Base-CPU_Register_Base+CPU_LABEL(PC)]
%define B_P [R_Base-CPU_Register_Base+CPU_LABEL(P)]
%define B_SNES_Cycles [R_Base-CPU_Register_Base+SNES_Cycles]
%define B_EventTrip [R_Base-CPU_Register_Base+EventTrip]
%define B_A [R_Base-CPU_Register_Base+CPU_LABEL(A)]
%define B_B byte [R_Base-CPU_Register_Base+CPU_LABEL(B)]
%define B_X [R_Base-CPU_Register_Base+CPU_LABEL(X)]
%define B_XH byte [R_Base-CPU_Register_Base+CPU_LABEL(XH)]
%define B_Y [R_Base-CPU_Register_Base+CPU_LABEL(Y)]
%define B_YH byte [R_Base-CPU_Register_Base+CPU_LABEL(YH)]
%define B_D [R_Base-CPU_Register_Base+CPU_LABEL(D)]
%define B_DL byte [R_Base-CPU_Register_Base+CPU_LABEL(DL)]
%define B_DH byte [R_Base-CPU_Register_Base+CPU_LABEL(DH)]
%define B_S [R_Base-CPU_Register_Base+CPU_LABEL(S)]
%define B_SL byte [R_Base-CPU_Register_Base+CPU_LABEL(SL)]
%define B_SH byte [R_Base-CPU_Register_Base+CPU_LABEL(SH)]
%define B_DB_Shifted [R_Base-CPU_Register_Base+CPU_LABEL(DB_Shifted)]
%define B_DB [R_Base-CPU_Register_Base+CPU_LABEL(DB)]
%define B_OpTable [R_Base-CPU_Register_Base+OpTable]
%define B_FixedTrip [R_Base-CPU_Register_Base+FixedTrip]
%define B_SPC_last_cycles [R_Base-CPU_Register_Base+SPC_last_cycles]
%define B_SPC_CPU_cycles [R_Base-CPU_Register_Base+SPC_CPU_cycles]
%define B_SPC_cycles_left [R_Base-CPU_Register_Base+SPC_cycles_left]
%define B_SPC_CPU_cycles_mul [R_Base-CPU_Register_Base+SPC_CPU_cycles_mul]
%if 1
%define B_E_flag [R_Base-CPU_Register_Base+_E_flag]
%define B_N_flag [R_Base-CPU_Register_Base+_N_flag]
%define B_V_flag [R_Base-CPU_Register_Base+_V_flag]
%define B_M1_flag [R_Base-CPU_Register_Base+_M1_flag]
%define B_XB_flag [R_Base-CPU_Register_Base+_XB_flag]
%define B_D_flag [R_Base-CPU_Register_Base+_D_flag]
%define B_I_flag [R_Base-CPU_Register_Base+_I_flag]
%define B_Z_flag [R_Base-CPU_Register_Base+_Z_flag]
%define B_C_flag [R_Base-CPU_Register_Base+_C_flag]
%else
%define B_E_flag [_E_flag]
%define B_N_flag [_N_flag]
%define B_V_flag [_V_flag]
%define B_M1_flag [_M1_flag]
%define B_XB_flag [_XB_flag]
%define B_D_flag [_D_flag]
%define B_I_flag [_I_flag]
%define B_Z_flag [_Z_flag]
%define B_C_flag [_C_flag]
%endif
EXPORT IRQ_Nvector,skipl
EXPORT IRQ_Noffset,skipl
EXPORT NMI_Nvector,skipl
EXPORT NMI_Noffset,skipl
EXPORT BRK_Nvector,skipl
EXPORT BRK_Noffset,skipl
EXPORT COP_Nvector,skipl
EXPORT COP_Noffset,skipl
EXPORT IRQ_Evector,skipl
EXPORT IRQ_Eoffset,skipl
EXPORT NMI_Evector,skipl
EXPORT NMI_Eoffset,skipl
EXPORT COP_Evector,skipl
EXPORT COP_Eoffset,skipl
EXPORT RES_Evector,skipl
EXPORT RES_Eoffset,skipl
; v0.25 - New system for CPU timings... there are now ten paired tables,
; not five single tables. Each pair of tables has a 256-byte SlowROM
; table first, then a 256-byte FastROM table immediately following.
; The address of the current table pair is OpTable+0x400.
; v0.25 - OpTable holds pointer to current opcode emulation/timing tables,
; removes the need for multiple CPU loops.
CPU_Register_Base:
EXPORT CPU_LABEL(PB_Shifted),skipl ; Program Bank
EXPORT_EQU CPU_LABEL(PB),CPU_LABEL(PB_Shifted) + 2
EXPORT CPU_LABEL(PC),skipl ; Program Counter
EXPORT CPU_LABEL(P) ,skipl ; Processor status (flags)
EXPORT SNES_Cycles ,skipl ; Scanline cycle count for CPU (0-EventTrip)
EXPORT EventTrip ,skipl ; Cycle of next event on this scanline
EXPORT CPU_LABEL(A) ,skipl ; Accumulator
EXPORT_EQU CPU_LABEL(B),CPU_LABEL(A)+1
EXPORT CPU_LABEL(X) ,skipl ; X and Y indices
EXPORT CPU_LABEL(Y) ,skipl
EXPORT_EQU CPU_LABEL(XH),CPU_LABEL(X)+1
EXPORT_EQU CPU_LABEL(YH),CPU_LABEL(Y)+1
EXPORT CPU_LABEL(D) ,skipl ; Direct address
EXPORT_EQU CPU_LABEL(DL),CPU_LABEL(D)
EXPORT_EQU CPU_LABEL(DH),CPU_LABEL(D)+1
EXPORT CPU_LABEL(S) ,skipl ; Stack pointer
EXPORT_EQU CPU_LABEL(SL),CPU_LABEL(S)
EXPORT_EQU CPU_LABEL(SH),CPU_LABEL(S)+1
EXPORT CPU_LABEL(DB_Shifted),skipl ; Data Bank
EXPORT_EQU CPU_LABEL(DB),CPU_LABEL(DB_Shifted) + 2
OpTable:skipl
EXPORT FixedTrip ,skipl ; Cycle of next fixed event on this scanline
EXPORT SPC_last_cycles ,skipl
EXPORT SPC_CPU_cycles ,skipl
EXPORT SPC_cycles_left ,skipl
EXPORT SPC_CPU_cycles_mul ,skipl
; For when I make the back color +/- hacks really do +/-
EXPORT RealColor0 ,skipl
_D_flag:skipb
_N_flag:skipb
_M1_flag:skipb
_XB_flag:skipb
_C_flag:skipb
_I_flag:skipb
EXPORT CPU_Execution_Mode,skipb
;CPU executing instructions normally
%define CEM_Normal_Execution 0
;CPU executing instruction immediately following one which
; caused an I-flag transition of high to low (CLI, PLP, RTI)
; The CPU will not acknowledge an IRQ until this instruction
; is completed.
%define CEM_Instruction_After_IRQ_Enable 1
;CPU in a state where no instructions are executed (this
; number and all above it)
%define CEM_Do_Not_Execute 2
;CPU is performing DMA transfer
%define CEM_In_DMA 2
;CPU is waiting for an interrupt after executing WAI opcode
%define CEM_Waiting_For_Interrupt 3
;CPU has stopped its clock after executing STP opcode
%define CEM_Clock_Stopped 4
EXPORT IRQ_pin ,skipb
EXPORT _E_flag,skipb
EXPORT _Z_flag,skipb
EXPORT In_CPU,skipb ; nonzero if CPU is executing
;NMI not raised
%define NMI_None 0
;NMI raised and acknowledged
%define NMI_Acknowledged 1
;NMI raised and not acknowledged
%define NMI_Raised 2
EXPORT NMI_pin ,skipb
EXPORT FPS_ENABLED ,skipb
_V_flag:skipb
EXPORT BREAKS_ENABLED ,skipb
section .data
ALIGND
OpTableE0:
dd OpE0_0x00 ,OpE0M0_0x01 ; 00
dd OpE0_0x02 ,OpM0_0x03
dd OpE0M0_0x04 ,OpE0M0_0x05
dd OpE0M0_0x06 ,OpE0M0_0x07
dd OpE0_0x08 ,OpM0_0x09
dd OpM0_0x0A ,OpE0_0x0B
dd OpM0_0x0C ,OpM0_0x0D
dd OpM0_0x0E ,OpM0_0x0F
dd OpE0_0x10 ,OpE0M0X0_0x11 ; 10
dd OpE0M0_0x12 ,OpM0_0x13
dd OpE0M0_0x14 ,OpE0M0_0x15
dd OpE0M0_0x16 ,OpE0M0_0x17
dd Op_0x18 ,OpM0X0_0x19
dd OpM0_0x1A ,OpE0_0x1B
dd OpM0_0x1C ,OpM0X0_0x1D
dd OpM0_0x1E ,OpM0_0x1F
dd OpE0_0x20 ,OpE0M0_0x21 ; 20
dd OpE0_0x22 ,OpM0_0x23
dd OpE0M0_0x24 ,OpE0M0_0x25
dd OpE0M0_0x26 ,OpE0M0_0x27
dd OpE0_0x28 ,OpM0_0x29
dd OpM0_0x2A ,OpE0_0x2B
dd OpM0_0x2C ,OpM0_0x2D
dd OpM0_0x2E ,OpM0_0x2F
dd OpE0_0x30 ,OpE0M0X0_0x31 ; 30
dd OpE0M0_0x32 ,OpM0_0x33
dd OpE0M0_0x34 ,OpE0M0_0x35
dd OpE0M0_0x36 ,OpE0M0_0x37
dd Op_0x38 ,OpM0X0_0x39
dd OpM0_0x3A ,Op_0x3B
dd OpM0X0_0x3C ,OpM0X0_0x3D
dd OpM0_0x3E ,OpM0_0x3F
dd OpE0_0x40 ,OpE0M0_0x41 ; 40
dd ALL_INVALID ,OpM0_0x43
dd OpX0_0x44 ,OpE0M0_0x45
dd OpE0M0_0x46 ,OpE0M0_0x47
dd OpE0M0_0x48 ,OpM0_0x49
dd OpM0_0x4A ,OpE0_0x4B
dd Op_0x4C ,OpM0_0x4D
dd OpM0_0x4E ,OpM0_0x4F
dd OpE0_0x50 ,OpE0M0X0_0x51 ; 50
dd OpE0M0_0x52 ,OpM0_0x53
dd OpX0_0x54 ,OpE0M0_0x55
dd OpE0M0_0x56 ,OpE0M0_0x57
dd Op_0x58 ,OpM0X0_0x59
dd OpE0X0_0x5A ,Op_0x5B
dd Op_0x5C ,OpM0X0_0x5D
dd OpM0_0x5E ,OpM0_0x5F
dd OpE0_0x60 ,OpE0M0_0x61 ; 60
dd OpE0_0x62 ,OpM0_0x63
dd OpE0M0_0x64 ,OpE0M0_0x65
dd OpE0M0_0x66 ,OpE0M0_0x67
dd OpE0M0_0x68 ,OpM0_0x69
dd OpM0_0x6A ,OpE0_0x6B
dd Op_0x6C ,OpM0_0x6D
dd OpM0_0x6E ,OpM0_0x6F
dd OpE0_0x70 ,OpE0M0X0_0x71 ; 70
dd OpE0M0_0x72 ,OpM0_0x73
dd OpE0M0_0x74 ,OpE0M0_0x75
dd OpE0M0_0x76 ,OpE0M0_0x77
dd Op_0x78 ,OpM0X0_0x79
dd OpE0X0_0x7A ,Op_0x7B
dd Op_0x7C ,OpM0X0_0x7D
dd OpM0_0x7E ,OpM0_0x7F
dd OpE0_0x80 ,OpE0M0_0x81 ; 80
dd Op_0x82 ,OpM0_0x83
dd OpE0X0_0x84 ,OpE0M0_0x85
dd OpE0X0_0x86 ,OpE0M0_0x87
dd OpX0_0x88 ,OpM0_0x89
dd OpM0_0x8A ,OpE0_0x8B
dd OpX0_0x8C ,OpM0_0x8D
dd OpX0_0x8E ,OpM0_0x8F
dd OpE0_0x90 ,OpE0M0X0_0x91 ; 90
dd OpE0M0_0x92 ,OpM0_0x93
dd OpE0X0_0x94 ,OpE0M0_0x95
dd OpE0X0_0x96 ,OpE0M0_0x97
dd OpM0_0x98 ,OpM0_0x99
dd OpE0_0x9A ,OpX0_0x9B
dd OpM0_0x9C ,OpM0_0x9D
dd OpM0_0x9E ,OpM0_0x9F
dd OpX0_0xA0 ,OpE0M0_0xA1 ; A0
dd OpX0_0xA2 ,OpM0_0xA3
dd OpE0X0_0xA4 ,OpE0M0_0xA5
dd OpE0X0_0xA6 ,OpE0M0_0xA7
dd OpX0_0xA8 ,OpM0_0xA9
dd OpX0_0xAA ,OpE0_0xAB
dd OpX0_0xAC ,OpM0_0xAD
dd OpX0_0xAE ,OpM0_0xAF
dd OpE0_0xB0 ,OpE0M0X0_0xB1 ; B0
dd OpE0M0_0xB2 ,OpM0_0xB3
dd OpE0X0_0xB4 ,OpE0M0_0xB5
dd OpE0X0_0xB6 ,OpE0M0_0xB7
dd Op_0xB8 ,OpM0X0_0xB9
dd OpX0_0xBA ,OpX0_0xBB
dd OpX0_0xBC ,OpM0X0_0xBD
dd OpX0_0xBE ,OpM0_0xBF
dd OpX0_0xC0 ,OpE0M0_0xC1 ; C0
dd OpE0_0xC2 ,OpM0_0xC3
dd OpE0X0_0xC4 ,OpE0M0_0xC5
dd OpE0M0_0xC6 ,OpE0M0_0xC7
dd OpX0_0xC8 ,OpM0_0xC9
dd OpX0_0xCA ,Op_0xCB
dd OpX0_0xCC ,OpM0_0xCD
dd OpM0_0xCE ,OpM0_0xCF
dd OpE0_0xD0 ,OpE0M0X0_0xD1 ; D0
dd OpE0M0_0xD2 ,OpM0_0xD3
dd OpE0_0xD4 ,OpE0M0_0xD5
dd OpE0M0_0xD6 ,OpE0M0_0xD7
dd Op_0xD8 ,OpM0X0_0xD9
dd OpE0X0_0xDA ,ALL_INVALID
dd Op_0xDC ,OpM0X0_0xDD
dd OpM0_0xDE ,OpM0_0xDF
dd OpX0_0xE0 ,OpE0M0_0xE1 ; E0
dd OpE0_0xE2 ,OpM0_0xE3
dd OpE0X0_0xE4 ,OpE0M0_0xE5
dd OpE0M0_0xE6 ,OpE0M0_0xE7
dd OpX0_0xE8 ,OpM0_0xE9
dd Op_0xEA ,Op_0xEB
dd OpX0_0xEC ,OpM0_0xED
dd OpM0_0xEE ,OpM0_0xEF
dd OpE0_0xF0 ,OpE0M0X0_0xF1 ; F0
dd OpE0M0_0xF2 ,OpM0_0xF3
dd OpE0_0xF4 ,OpE0M0_0xF5
dd OpE0M0_0xF6 ,OpE0M0_0xF7
dd Op_0xF8 ,OpM0X0_0xF9
dd OpE0X0_0xFA ,OpE0_0xFB
dd OpE0_0xFC ,OpM0X0_0xFD
dd OpM0_0xFE ,OpM0_0xFF
OpTablePm:
dd OpE0_0x00 ,OpE0M1_0x01 ; 00
dd OpE0_0x02 ,OpM1_0x03
dd OpE0M1_0x04 ,OpE0M1_0x05
dd OpE0M1_0x06 ,OpE0M1_0x07
dd OpE0_0x08 ,OpM1_0x09
dd OpM1_0x0A ,OpE0_0x0B
dd OpM1_0x0C ,OpM1_0x0D
dd OpM1_0x0E ,OpM1_0x0F
dd OpE0_0x10 ,OpE0M1X0_0x11 ; 10
dd OpE0M1_0x12 ,OpM1_0x13
dd OpE0M1_0x14 ,OpE0M1_0x15
dd OpE0M1_0x16 ,OpE0M1_0x17
dd Op_0x18 ,OpM1X0_0x19
dd OpM1_0x1A ,OpE0_0x1B
dd OpM1_0x1C ,OpM1X0_0x1D
dd OpM1_0x1E ,OpM1_0x1F
dd OpE0_0x20 ,OpE0M1_0x21 ; 20
dd OpE0_0x22 ,OpM1_0x23
dd OpE0M1_0x24 ,OpE0M1_0x25
dd OpE0M1_0x26 ,OpE0M1_0x27
dd OpE0_0x28 ,OpM1_0x29
dd OpM1_0x2A ,OpE0_0x2B
dd OpM1_0x2C ,OpM1_0x2D
dd OpM1_0x2E ,OpM1_0x2F
dd OpE0_0x30 ,OpE0M1X0_0x31 ; 30
dd OpE0M1_0x32 ,OpM1_0x33
dd OpE0M1_0x34 ,OpE0M1_0x35
dd OpE0M1_0x36 ,OpE0M1_0x37
dd Op_0x38 ,OpM1X0_0x39
dd OpM1_0x3A ,Op_0x3B
dd OpM1X0_0x3C ,OpM1X0_0x3D
dd OpM1_0x3E ,OpM1_0x3F
dd OpE0_0x40 ,OpE0M1_0x41 ; 40
dd ALL_INVALID ,OpM1_0x43
dd OpX0_0x44 ,OpE0M1_0x45
dd OpE0M1_0x46 ,OpE0M1_0x47
dd OpE0M1_0x48 ,OpM1_0x49
dd OpM1_0x4A ,OpE0_0x4B
dd Op_0x4C ,OpM1_0x4D
dd OpM1_0x4E ,OpM1_0x4F
dd OpE0_0x50 ,OpE0M1X0_0x51 ; 50
dd OpE0M1_0x52 ,OpM1_0x53
dd OpX0_0x54 ,OpE0M1_0x55
dd OpE0M1_0x56 ,OpE0M1_0x57
dd Op_0x58 ,OpM1X0_0x59
dd OpE0X0_0x5A ,Op_0x5B
dd Op_0x5C ,OpM1X0_0x5D
dd OpM1_0x5E ,OpM1_0x5F
dd OpE0_0x60 ,OpE0M1_0x61 ; 60
dd OpE0_0x62 ,OpM1_0x63
dd OpE0M1_0x64 ,OpE0M1_0x65
dd OpE0M1_0x66 ,OpE0M1_0x67
dd OpE0M1_0x68 ,OpM1_0x69
dd OpM1_0x6A ,OpE0_0x6B
dd Op_0x6C ,OpM1_0x6D
dd OpM1_0x6E ,OpM1_0x6F
dd OpE0_0x70 ,OpE0M1X0_0x71 ; 70
dd OpE0M1_0x72 ,OpM1_0x73
dd OpE0M1_0x74 ,OpE0M1_0x75
dd OpE0M1_0x76 ,OpE0M1_0x77
dd Op_0x78 ,OpM1X0_0x79
dd OpE0X0_0x7A ,Op_0x7B
dd Op_0x7C ,OpM1X0_0x7D
dd OpM1_0x7E ,OpM1_0x7F
dd OpE0_0x80 ,OpE0M1_0x81 ; 80
dd Op_0x82 ,OpM1_0x83
dd OpE0X0_0x84 ,OpE0M1_0x85
dd OpE0X0_0x86 ,OpE0M1_0x87
dd OpX0_0x88 ,OpM1_0x89
dd OpM1_0x8A ,OpE0_0x8B
dd OpX0_0x8C ,OpM1_0x8D
dd OpX0_0x8E ,OpM1_0x8F
dd OpE0_0x90 ,OpE0M1X0_0x91 ; 90
dd OpE0M1_0x92 ,OpM1_0x93
dd OpE0X0_0x94 ,OpE0M1_0x95
dd OpE0X0_0x96 ,OpE0M1_0x97
dd OpM1_0x98 ,OpM1_0x99
dd OpE0_0x9A ,OpX0_0x9B
dd OpM1_0x9C ,OpM1_0x9D
dd OpM1_0x9E ,OpM1_0x9F
dd OpX0_0xA0 ,OpE0M1_0xA1 ; A0
dd OpX0_0xA2 ,OpM1_0xA3
dd OpE0X0_0xA4 ,OpE0M1_0xA5
dd OpE0X0_0xA6 ,OpE0M1_0xA7
dd OpX0_0xA8 ,OpM1_0xA9
dd OpX0_0xAA ,OpE0_0xAB
dd OpX0_0xAC ,OpM1_0xAD
dd OpX0_0xAE ,OpM1_0xAF
dd OpE0_0xB0 ,OpE0M1X0_0xB1 ; B0
dd OpE0M1_0xB2 ,OpM1_0xB3
dd OpE0X0_0xB4 ,OpE0M1_0xB5
dd OpE0X0_0xB6 ,OpE0M1_0xB7
dd Op_0xB8 ,OpM1X0_0xB9
dd OpX0_0xBA ,OpX0_0xBB
dd OpX0_0xBC ,OpM1X0_0xBD
dd OpX0_0xBE ,OpM1_0xBF
dd OpX0_0xC0 ,OpE0M1_0xC1 ; C0
dd OpE0_0xC2 ,OpM1_0xC3
dd OpE0X0_0xC4 ,OpE0M1_0xC5
dd OpE0M1_0xC6 ,OpE0M1_0xC7
dd OpX0_0xC8 ,OpM1_0xC9
dd OpX0_0xCA ,Op_0xCB
dd OpX0_0xCC ,OpM1_0xCD
dd OpM1_0xCE ,OpM1_0xCF
dd OpE0_0xD0 ,OpE0M1X0_0xD1 ; D0
dd OpE0M1_0xD2 ,OpM1_0xD3
dd OpE0_0xD4 ,OpE0M1_0xD5
dd OpE0M1_0xD6 ,OpE0M1_0xD7
dd Op_0xD8 ,OpM1X0_0xD9
dd OpE0X0_0xDA ,ALL_INVALID
dd Op_0xDC ,OpM1X0_0xDD
dd OpM1_0xDE ,OpM1_0xDF
dd OpX0_0xE0 ,OpE0M1_0xE1 ; E0
dd OpE0_0xE2 ,OpM1_0xE3
dd OpE0X0_0xE4 ,OpE0M1_0xE5
dd OpE0M1_0xE6 ,OpE0M1_0xE7
dd OpX0_0xE8 ,OpM1_0xE9
dd Op_0xEA ,Op_0xEB
dd OpX0_0xEC ,OpM1_0xED
dd OpM1_0xEE ,OpM1_0xEF
dd OpE0_0xF0 ,OpE0M1X0_0xF1 ; F0
dd OpE0M1_0xF2 ,OpM1_0xF3
dd OpE0_0xF4 ,OpE0M1_0xF5
dd OpE0M1_0xF6 ,OpE0M1_0xF7
dd Op_0xF8 ,OpM1X0_0xF9
dd OpE0X0_0xFA ,OpE0_0xFB
dd OpE0_0xFC ,OpM1X0_0xFD
dd OpM1_0xFE ,OpM1_0xFF
OpTablePx:
dd OpE0_0x00 ,OpE0M0_0x01 ; 00
dd OpE0_0x02 ,OpM0_0x03
dd OpE0M0_0x04 ,OpE0M0_0x05
dd OpE0M0_0x06 ,OpE0M0_0x07
dd OpE0_0x08 ,OpM0_0x09
dd OpM0_0x0A ,OpE0_0x0B
dd OpM0_0x0C ,OpM0_0x0D
dd OpM0_0x0E ,OpM0_0x0F
dd OpE0_0x10 ,OpE0M0X1_0x11 ; 10
dd OpE0M0_0x12 ,OpM0_0x13
dd OpE0M0_0x14 ,OpE0M0_0x15
dd OpE0M0_0x16 ,OpE0M0_0x17
dd Op_0x18 ,OpM0X1_0x19
dd OpM0_0x1A ,OpE0_0x1B
dd OpM0_0x1C ,OpM0X1_0x1D
dd OpM0_0x1E ,OpM0_0x1F
dd OpE0_0x20 ,OpE0M0_0x21 ; 20
dd OpE0_0x22 ,OpM0_0x23
dd OpE0M0_0x24 ,OpE0M0_0x25
dd OpE0M0_0x26 ,OpE0M0_0x27
dd OpE0_0x28 ,OpM0_0x29
dd OpM0_0x2A ,OpE0_0x2B
dd OpM0_0x2C ,OpM0_0x2D
dd OpM0_0x2E ,OpM0_0x2F
dd OpE0_0x30 ,OpE0M0X1_0x31 ; 30
dd OpE0M0_0x32 ,OpM0_0x33
dd OpE0M0_0x34 ,OpE0M0_0x35
dd OpE0M0_0x36 ,OpE0M0_0x37
dd Op_0x38 ,OpM0X1_0x39
dd OpM0_0x3A ,Op_0x3B
dd OpM0X1_0x3C ,OpM0X1_0x3D
dd OpM0_0x3E ,OpM0_0x3F
dd OpE0_0x40 ,OpE0M0_0x41 ; 40
dd ALL_INVALID ,OpM0_0x43
dd OpX1_0x44 ,OpE0M0_0x45
dd OpE0M0_0x46 ,OpE0M0_0x47
dd OpE0M0_0x48 ,OpM0_0x49
dd OpM0_0x4A ,OpE0_0x4B
dd Op_0x4C ,OpM0_0x4D
dd OpM0_0x4E ,OpM0_0x4F
dd OpE0_0x50 ,OpE0M0X1_0x51 ; 50
dd OpE0M0_0x52 ,OpM0_0x53
dd OpX1_0x54 ,OpE0M0_0x55
dd OpE0M0_0x56 ,OpE0M0_0x57
dd Op_0x58 ,OpM0X1_0x59
dd OpE0X1_0x5A ,Op_0x5B
dd Op_0x5C ,OpM0X1_0x5D
dd OpM0_0x5E ,OpM0_0x5F
dd OpE0_0x60 ,OpE0M0_0x61 ; 60
dd OpE0_0x62 ,OpM0_0x63
dd OpE0M0_0x64 ,OpE0M0_0x65
dd OpE0M0_0x66 ,OpE0M0_0x67
dd OpE0M0_0x68 ,OpM0_0x69
dd OpM0_0x6A ,OpE0_0x6B
dd Op_0x6C ,OpM0_0x6D
dd OpM0_0x6E ,OpM0_0x6F
dd OpE0_0x70 ,OpE0M0X1_0x71 ; 70
dd OpE0M0_0x72 ,OpM0_0x73
dd OpE0M0_0x74 ,OpE0M0_0x75
dd OpE0M0_0x76 ,OpE0M0_0x77
dd Op_0x78 ,OpM0X1_0x79
dd OpE0X1_0x7A ,Op_0x7B
dd Op_0x7C ,OpM0X1_0x7D
dd OpM0_0x7E ,OpM0_0x7F
dd OpE0_0x80 ,OpE0M0_0x81 ; 80
dd Op_0x82 ,OpM0_0x83
dd OpE0X1_0x84 ,OpE0M0_0x85
dd OpE0X1_0x86 ,OpE0M0_0x87
dd OpX1_0x88 ,OpM0_0x89
dd OpM0_0x8A ,OpE0_0x8B
dd OpX1_0x8C ,OpM0_0x8D
dd OpX1_0x8E ,OpM0_0x8F
dd OpE0_0x90 ,OpE0M0X1_0x91 ; 90
dd OpE0M0_0x92 ,OpM0_0x93
dd OpE0X1_0x94 ,OpE0M0_0x95
dd OpE0X1_0x96 ,OpE0M0_0x97
dd OpM0_0x98 ,OpM0_0x99
dd OpE0_0x9A ,OpX1_0x9B
dd OpM0_0x9C ,OpM0_0x9D
dd OpM0_0x9E ,OpM0_0x9F
dd OpX1_0xA0 ,OpE0M0_0xA1 ; A0
dd OpX1_0xA2 ,OpM0_0xA3
dd OpE0X1_0xA4 ,OpE0M0_0xA5
dd OpE0X1_0xA6 ,OpE0M0_0xA7
dd OpX1_0xA8 ,OpM0_0xA9
dd OpX1_0xAA ,OpE0_0xAB
dd OpX1_0xAC ,OpM0_0xAD
dd OpX1_0xAE ,OpM0_0xAF
dd OpE0_0xB0 ,OpE0M0X1_0xB1 ; B0
dd OpE0M0_0xB2 ,OpM0_0xB3
dd OpE0X1_0xB4 ,OpE0M0_0xB5
dd OpE0X1_0xB6 ,OpE0M0_0xB7
dd Op_0xB8 ,OpM0X1_0xB9
dd OpX1_0xBA ,OpX1_0xBB
dd OpX1_0xBC ,OpM0X1_0xBD
dd OpX1_0xBE ,OpM0_0xBF
dd OpX1_0xC0 ,OpE0M0_0xC1 ; C0
dd OpE0_0xC2 ,OpM0_0xC3
dd OpE0X1_0xC4 ,OpE0M0_0xC5
dd OpE0M0_0xC6 ,OpE0M0_0xC7
dd OpX1_0xC8 ,OpM0_0xC9
dd OpX1_0xCA ,Op_0xCB
dd OpX1_0xCC ,OpM0_0xCD
dd OpM0_0xCE ,OpM0_0xCF
dd OpE0_0xD0 ,OpE0M0X1_0xD1 ; D0
dd OpE0M0_0xD2 ,OpM0_0xD3
dd OpE0_0xD4 ,OpE0M0_0xD5
dd OpE0M0_0xD6 ,OpE0M0_0xD7
dd Op_0xD8 ,OpM0X1_0xD9
dd OpE0X1_0xDA ,ALL_INVALID
dd Op_0xDC ,OpM0X1_0xDD
dd OpM0_0xDE ,OpM0_0xDF
dd OpX1_0xE0 ,OpE0M0_0xE1 ; E0
dd OpE0_0xE2 ,OpM0_0xE3
dd OpE0X1_0xE4 ,OpE0M0_0xE5
dd OpE0M0_0xE6 ,OpE0M0_0xE7
dd OpX1_0xE8 ,OpM0_0xE9
dd Op_0xEA ,Op_0xEB
dd OpX1_0xEC ,OpM0_0xED
dd OpM0_0xEE ,OpM0_0xEF
dd OpE0_0xF0 ,OpE0M0X1_0xF1 ; F0
dd OpE0M0_0xF2 ,OpM0_0xF3
dd OpE0_0xF4 ,OpE0M0_0xF5
dd OpE0M0_0xF6 ,OpE0M0_0xF7
dd Op_0xF8 ,OpM0X1_0xF9
dd OpE0X1_0xFA ,OpE0_0xFB
dd OpE0_0xFC ,OpM0X1_0xFD
dd OpM0_0xFE ,OpM0_0xFF
OpTableMX:
dd OpE0_0x00 ,OpE0M1_0x01 ; 00
dd OpE0_0x02 ,OpM1_0x03
dd OpE0M1_0x04 ,OpE0M1_0x05
dd OpE0M1_0x06 ,OpE0M1_0x07
dd OpE0_0x08 ,OpM1_0x09
dd OpM1_0x0A ,OpE0_0x0B
dd OpM1_0x0C ,OpM1_0x0D
dd OpM1_0x0E ,OpM1_0x0F
dd OpE0_0x10 ,OpE0M1X1_0x11 ; 10
dd OpE0M1_0x12 ,OpM1_0x13
dd OpE0M1_0x14 ,OpE0M1_0x15
dd OpE0M1_0x16 ,OpE0M1_0x17
dd Op_0x18 ,OpM1X1_0x19
dd OpM1_0x1A ,OpE0_0x1B
dd OpM1_0x1C ,OpM1X1_0x1D
dd OpM1_0x1E ,OpM1_0x1F
dd OpE0_0x20 ,OpE0M1_0x21 ; 20
dd OpE0_0x22 ,OpM1_0x23
dd OpE0M1_0x24 ,OpE0M1_0x25
dd OpE0M1_0x26 ,OpE0M1_0x27
dd OpE0_0x28 ,OpM1_0x29
dd OpM1_0x2A ,OpE0_0x2B
dd OpM1_0x2C ,OpM1_0x2D
dd OpM1_0x2E ,OpM1_0x2F
dd OpE0_0x30 ,OpE0M1X1_0x31 ; 30
dd OpE0M1_0x32 ,OpM1_0x33
dd OpE0M1_0x34 ,OpE0M1_0x35
dd OpE0M1_0x36 ,OpE0M1_0x37
dd Op_0x38 ,OpM1X1_0x39
dd OpM1_0x3A ,Op_0x3B
dd OpM1X1_0x3C ,OpM1X1_0x3D
dd OpM1_0x3E ,OpM1_0x3F
dd OpE0_0x40 ,OpE0M1_0x41 ; 40
dd ALL_INVALID ,OpM1_0x43
dd OpX1_0x44 ,OpE0M1_0x45
dd OpE0M1_0x46 ,OpE0M1_0x47
dd OpE0M1_0x48 ,OpM1_0x49
dd OpM1_0x4A ,OpE0_0x4B
dd Op_0x4C ,OpM1_0x4D
dd OpM1_0x4E ,OpM1_0x4F
dd OpE0_0x50 ,OpE0M1X1_0x51 ; 50
dd OpE0M1_0x52 ,OpM1_0x53
dd OpX1_0x54 ,OpE0M1_0x55
dd OpE0M1_0x56 ,OpE0M1_0x57
dd Op_0x58 ,OpM1X1_0x59
dd OpE0X1_0x5A ,Op_0x5B
dd Op_0x5C ,OpM1X1_0x5D
dd OpM1_0x5E ,OpM1_0x5F
dd OpE0_0x60 ,OpE0M1_0x61 ; 60
dd OpE0_0x62 ,OpM1_0x63
dd OpE0M1_0x64 ,OpE0M1_0x65
dd OpE0M1_0x66 ,OpE0M1_0x67
dd OpE0M1_0x68 ,OpM1_0x69
dd OpM1_0x6A ,OpE0_0x6B
dd Op_0x6C ,OpM1_0x6D
dd OpM1_0x6E ,OpM1_0x6F
dd OpE0_0x70 ,OpE0M1X1_0x71 ; 70
dd OpE0M1_0x72 ,OpM1_0x73
dd OpE0M1_0x74 ,OpE0M1_0x75
dd OpE0M1_0x76 ,OpE0M1_0x77
dd Op_0x78 ,OpM1X1_0x79
dd OpE0X1_0x7A ,Op_0x7B
dd Op_0x7C ,OpM1X1_0x7D
dd OpM1_0x7E ,OpM1_0x7F
dd OpE0_0x80 ,OpE0M1_0x81 ; 80
dd Op_0x82 ,OpM1_0x83
dd OpE0X1_0x84 ,OpE0M1_0x85
dd OpE0X1_0x86 ,OpE0M1_0x87
dd OpX1_0x88 ,OpM1_0x89
dd OpM1_0x8A ,OpE0_0x8B
dd OpX1_0x8C ,OpM1_0x8D
dd OpX1_0x8E ,OpM1_0x8F
dd OpE0_0x90 ,OpE0M1X1_0x91 ; 90
dd OpE0M1_0x92 ,OpM1_0x93
dd OpE0X1_0x94 ,OpE0M1_0x95
dd OpE0X1_0x96 ,OpE0M1_0x97
dd OpM1_0x98 ,OpM1_0x99
dd OpE0_0x9A ,OpX1_0x9B
dd OpM1_0x9C ,OpM1_0x9D
dd OpM1_0x9E ,OpM1_0x9F
dd OpX1_0xA0 ,OpE0M1_0xA1 ; A0
dd OpX1_0xA2 ,OpM1_0xA3
dd OpE0X1_0xA4 ,OpE0M1_0xA5
dd OpE0X1_0xA6 ,OpE0M1_0xA7
dd OpX1_0xA8 ,OpM1_0xA9
dd OpX1_0xAA ,OpE0_0xAB
dd OpX1_0xAC ,OpM1_0xAD
dd OpX1_0xAE ,OpM1_0xAF
dd OpE0_0xB0 ,OpE0M1X1_0xB1 ; B0
dd OpE0M1_0xB2 ,OpM1_0xB3
dd OpE0X1_0xB4 ,OpE0M1_0xB5
dd OpE0X1_0xB6 ,OpE0M1_0xB7
dd Op_0xB8 ,OpM1X1_0xB9
dd OpX1_0xBA ,OpX1_0xBB
dd OpX1_0xBC ,OpM1X1_0xBD
dd OpX1_0xBE ,OpM1_0xBF
dd OpX1_0xC0 ,OpE0M1_0xC1 ; C0
dd OpE0_0xC2 ,OpM1_0xC3
dd OpE0X1_0xC4 ,OpE0M1_0xC5
dd OpE0M1_0xC6 ,OpE0M1_0xC7
dd OpX1_0xC8 ,OpM1_0xC9
dd OpX1_0xCA ,Op_0xCB
dd OpX1_0xCC ,OpM1_0xCD
dd OpM1_0xCE ,OpM1_0xCF
dd OpE0_0xD0 ,OpE0M1X1_0xD1 ; D0
dd OpE0M1_0xD2 ,OpM1_0xD3
dd OpE0_0xD4 ,OpE0M1_0xD5
dd OpE0M1_0xD6 ,OpE0M1_0xD7
dd Op_0xD8 ,OpM1X1_0xD9
dd OpE0X1_0xDA ,ALL_INVALID
dd Op_0xDC ,OpM1X1_0xDD
dd OpM1_0xDE ,OpM1_0xDF
dd OpX1_0xE0 ,OpE0M1_0xE1 ; E0
dd OpE0_0xE2 ,OpM1_0xE3
dd OpE0X1_0xE4 ,OpE0M1_0xE5
dd OpE0M1_0xE6 ,OpE0M1_0xE7
dd OpX1_0xE8 ,OpM1_0xE9
dd Op_0xEA ,Op_0xEB
dd OpX1_0xEC ,OpM1_0xED
dd OpM1_0xEE ,OpM1_0xEF
dd OpE0_0xF0 ,OpE0M1X1_0xF1 ; F0
dd OpE0M1_0xF2 ,OpM1_0xF3
dd OpE0_0xF4 ,OpE0M1_0xF5
dd OpE0M1_0xF6 ,OpE0M1_0xF7
dd Op_0xF8 ,OpM1X1_0xF9
dd OpE0X1_0xFA ,OpE0_0xFB
dd OpE0_0xFC ,OpM1X1_0xFD
dd OpM1_0xFE ,OpM1_0xFF
OpTableE1:
dd OpE1_0x00 ,OpE1_0x01 ; 00
dd OpE1_0x02 ,OpM1_0x03
dd OpE1_0x04 ,OpE1_0x05
dd OpE1_0x06 ,OpE1_0x07
dd OpE1_0x08 ,OpM1_0x09
dd OpM1_0x0A ,OpE1_0x0B
dd OpM1_0x0C ,OpM1_0x0D
dd OpM1_0x0E ,OpM1_0x0F
dd OpE1_0x10 ,OpE1_0x11 ; 10
dd OpE1_0x12 ,OpM1_0x13
dd OpE1_0x14 ,OpE1_0x15
dd OpE1_0x16 ,OpE1_0x17
dd Op_0x18 ,OpM1X1_0x19
dd OpM1_0x1A ,OpE1_0x1B
dd OpM1_0x1C ,OpM1X1_0x1D
dd OpM1_0x1E ,OpM1_0x1F
dd OpE1_0x20 ,OpE1_0x21 ; 20
dd OpE1_0x22 ,OpM1_0x23
dd OpE1_0x24 ,OpE1_0x25
dd OpE1_0x26 ,OpE1_0x27
dd OpE1_0x28 ,OpM1_0x29
dd OpM1_0x2A ,OpE1_0x2B
dd OpM1_0x2C ,OpM1_0x2D
dd OpM1_0x2E ,OpM1_0x2F
dd OpE1_0x30 ,OpE1_0x31 ; 30
dd OpE1_0x32 ,OpM1_0x33
dd OpE1_0x34 ,OpE1_0x35
dd OpE1_0x36 ,OpE1_0x37
dd Op_0x38 ,OpM1X1_0x39
dd OpM1_0x3A ,Op_0x3B
dd OpM1X1_0x3C ,OpM1X1_0x3D
dd OpM1_0x3E ,OpM1_0x3F
dd OpE1_0x40 ,OpE1_0x41 ; 40
dd ALL_INVALID ,OpM1_0x43
dd OpX1_0x44 ,OpE1_0x45
dd OpE1_0x46 ,OpE1_0x47
dd OpE1_0x48 ,OpM1_0x49
dd OpM1_0x4A ,OpE1_0x4B
dd Op_0x4C ,OpM1_0x4D
dd OpM1_0x4E ,OpM1_0x4F
dd OpE1_0x50 ,OpE1_0x51 ; 50
dd OpE1_0x52 ,OpM1_0x53
dd OpX1_0x54 ,OpE1_0x55
dd OpE1_0x56 ,OpE1_0x57
dd Op_0x58 ,OpM1X1_0x59
dd OpE1_0x5A ,Op_0x5B
dd Op_0x5C ,OpM1X1_0x5D
dd OpM1_0x5E ,OpM1_0x5F
dd OpE1_0x60 ,OpE1_0x61 ; 60
dd OpE1_0x62 ,OpM1_0x63
dd OpE1_0x64 ,OpE1_0x65
dd OpE1_0x66 ,OpE1_0x67
dd OpE1_0x68 ,OpM1_0x69
dd OpM1_0x6A ,OpE1_0x6B
dd Op_0x6C ,OpM1_0x6D
dd OpM1_0x6E ,OpM1_0x6F
dd OpE1_0x70 ,OpE1_0x71 ; 70
dd OpE1_0x72 ,OpM1_0x73
dd OpE1_0x74 ,OpE1_0x75
dd OpE1_0x76 ,OpE1_0x77
dd Op_0x78 ,OpM1X1_0x79
dd OpE1_0x7A ,Op_0x7B
dd Op_0x7C ,OpM1X1_0x7D
dd OpM1_0x7E ,OpM1_0x7F
dd OpE1_0x80 ,OpE1_0x81 ; 80
dd Op_0x82 ,OpM1_0x83
dd OpE1_0x84 ,OpE1_0x85
dd OpE1_0x86 ,OpE1_0x87
dd OpX1_0x88 ,OpM1_0x89
dd OpM1_0x8A ,OpE1_0x8B
dd OpX1_0x8C ,OpM1_0x8D
dd OpX1_0x8E ,OpM1_0x8F
dd OpE1_0x90 ,OpE1_0x91 ; 90
dd OpE1_0x92 ,OpM1_0x93
dd OpE1_0x94 ,OpE1_0x95
dd OpE1_0x96 ,OpE1_0x97
dd OpM1_0x98 ,OpM1_0x99
dd OpE1_0x9A ,OpX1_0x9B
dd OpM1_0x9C ,OpM1_0x9D
dd OpM1_0x9E ,OpM1_0x9F
dd OpX1_0xA0 ,OpE1_0xA1 ; A0
dd OpX1_0xA2 ,OpM1_0xA3
dd OpE1_0xA4 ,OpE1_0xA5
dd OpE1_0xA6 ,OpE1_0xA7
dd OpX1_0xA8 ,OpM1_0xA9
dd OpX1_0xAA ,OpE1_0xAB
dd OpX1_0xAC ,OpM1_0xAD
dd OpX1_0xAE ,OpM1_0xAF
dd OpE1_0xB0 ,OpE1_0xB1 ; B0
dd OpE1_0xB2 ,OpM1_0xB3
dd OpE1_0xB4 ,OpE1_0xB5
dd OpE1_0xB6 ,OpE1_0xB7
dd Op_0xB8 ,OpM1X1_0xB9
dd OpX1_0xBA ,OpX1_0xBB
dd OpX1_0xBC ,OpM1X1_0xBD
dd OpX1_0xBE ,OpM1_0xBF
dd OpX1_0xC0 ,OpE1_0xC1 ; C0
dd OpE1_0xC2 ,OpM1_0xC3
dd OpE1_0xC4 ,OpE1_0xC5
dd OpE1_0xC6 ,OpE1_0xC7
dd OpX1_0xC8 ,OpM1_0xC9
dd OpX1_0xCA ,Op_0xCB
dd OpX1_0xCC ,OpM1_0xCD
dd OpM1_0xCE ,OpM1_0xCF
dd OpE1_0xD0 ,OpE1_0xD1 ; D0
dd OpE1_0xD2 ,OpM1_0xD3
dd OpE1_0xD4 ,OpE1_0xD5
dd OpE1_0xD6 ,OpE1_0xD7
dd Op_0xD8 ,OpM1X1_0xD9
dd OpE1_0xDA ,ALL_INVALID
dd Op_0xDC ,OpM1X1_0xDD
dd OpM1_0xDE ,OpM1_0xDF
dd OpX1_0xE0 ,OpE1_0xE1 ; E0
dd OpE1_0xE2 ,OpM1_0xE3
dd OpE1_0xE4 ,OpE1_0xE5
dd OpE1_0xE6 ,OpE1_0xE7
dd OpX1_0xE8 ,OpM1_0xE9
dd Op_0xEA ,Op_0xEB
dd OpX1_0xEC ,OpM1_0xED
dd OpM1_0xEE ,OpM1_0xEF
dd OpE1_0xF0 ,OpE1_0xF1 ; F0
dd OpE1_0xF2 ,OpM1_0xF3
dd OpE1_0xF4 ,OpE1_0xF5
dd OpE1_0xF6 ,OpE1_0xF7
dd Op_0xF8 ,OpM1X1_0xF9
dd OpE1_0xFA ,OpE1_0xFB
dd OpE1_0xFC ,OpM1X1_0xFD
dd OpM1_0xFE ,OpM1_0xFF
ALIGND
CPU_OpTables:
dd OpTableE0
dd OpTablePm
dd OpTablePx
dd OpTableMX
%ifdef Abort_at_op_num
MaxOps:dd Abort_at_op_num
%endif
section .text
%macro OPCODE_EPILOG 0
%if 0
xor eax,eax ; Zero for table offset
test R_Cycles,R_Cycles
jl CPU_START_NEXT
jmp HANDLE_EVENT
%else
;mov cl,0
jmp CPU_RETURN
%endif
%endmacro
;%1 = flag, %2 = wheretogo
%macro JUMP_FLAG 2
%if %1 == SNES_FLAG_E
mov ch,B_E_flag
test ch,ch
jnz %2
%elif %1 == SNES_FLAG_N
mov ch,B_N_flag
test ch,ch
js %2
%elif %1 == SNES_FLAG_V
mov ch,B_V_flag
test ch,ch
jnz %2
%elif %1 == SNES_FLAG_M
mov ch,B_M1_flag
test ch,ch
jnz %2
%elif %1 == SNES_FLAG_X
mov ch,B_XB_flag
test ch,ch
jnz %2
%elif %1 == SNES_FLAG_D
mov ch,B_D_flag
test ch,ch
jnz %2
%elif %1 == SNES_FLAG_I
mov ch,B_I_flag
test ch,ch
jnz %2
%elif %1 == SNES_FLAG_Z
mov ch,B_Z_flag
test ch,ch
jz %2
%elif %1 == SNES_FLAG_C
mov ch,B_C_flag
test ch,ch
jnz %2
%else
%error Unhandled flag in JUMP_FLAG
%endif
%endmacro
;%1 = flag, %2 = wheretogo
%macro JUMP_NOT_FLAG 2
%if %1 == SNES_FLAG_E
mov ch,B_E_flag
test ch,ch
jz %2
%elif %1 == SNES_FLAG_N
mov ch,B_N_flag
test ch,ch
jns %2
%elif %1 == SNES_FLAG_V
mov ch,B_V_flag
test ch,ch
jz %2
%elif %1 == SNES_FLAG_M
mov ch,B_M1_flag
test ch,ch
jz %2
%elif %1 == SNES_FLAG_X
mov ch,B_XB_flag
test ch,ch
jz %2
%elif %1 == SNES_FLAG_D
mov ch,B_D_flag
test ch,ch
jz %2
%elif %1 == SNES_FLAG_I
mov ch,B_I_flag
test ch,ch
jz %2
%elif %1 == SNES_FLAG_Z
mov ch,B_Z_flag
test ch,ch
jnz %2
%elif %1 == SNES_FLAG_C
mov ch,B_C_flag
test ch,ch
jz %2
%else
%error Unhandled flag in JUMP_NOT_FLAG
%endif
%endmacro
%macro STORE_FLAGS_E 1
mov byte B_E_flag,%1
%endmacro
%macro STORE_FLAGS_N 1
mov byte B_N_flag,%1
%endmacro
%macro STORE_FLAGS_V 1
mov byte B_V_flag,%1
%endmacro
%macro STORE_FLAGS_M 1
mov byte B_M1_flag,%1
%endmacro
%macro STORE_FLAGS_1 1
mov byte B_M1_flag,%1
%endmacro
%macro STORE_FLAGS_X 1
mov byte B_XB_flag,%1
%endmacro
%macro STORE_FLAGS_B 1
mov byte B_XB_flag,%1
%endmacro
%macro STORE_FLAGS_D 1
mov byte B_D_flag,%1
%endmacro
%macro STORE_FLAGS_I 1
mov byte B_I_flag,%1
%endmacro
%macro STORE_FLAGS_Z 1
mov byte B_Z_flag,%1
%endmacro
%macro STORE_FLAGS_C 1
mov byte B_C_flag,%1
%endmacro
%macro STORE_FLAGS_NZ 1
STORE_FLAGS_N %1
STORE_FLAGS_Z %1
%endmacro
%macro STORE_FLAGS_NZC 2
STORE_FLAGS_N %1
STORE_FLAGS_Z %1
STORE_FLAGS_C %2
%endmacro
; Load cycle counter to register R_Cycles
%macro LOAD_CYCLES 0-1 eax
mov %1,[EventTrip]
mov dword R_Cycles,[SNES_Cycles]
sub dword R_Cycles,%1
%endmacro
; Get cycle counter to register argument
%macro GET_CYCLES 1
mov dword %1,[EventTrip]
add dword %1,R_Cycles
%endmacro
; Save register R_Cycles to cycle counter
%macro SAVE_CYCLES 0-1 eax
GET_CYCLES %1
mov [SNES_Cycles],%1
%endmacro
; Load base pointer to CPU register set
%macro LOAD_BASE 0
mov dword R_Base,CPU_Register_Base
%endmacro
; Load register R_PBPC with PB:PC
%macro LOAD_PC 0
mov dword R_PBPC,[CPU_LABEL(PB_Shifted)]
add dword R_PBPC,[CPU_LABEL(PC)]
%endmacro
; Get PC from register R_PBPC
;%1 = with
%macro GET_PC 1
movzx dword %1,word R_PC
%endmacro
; Get PB:PC from register R_PBPC
;%1 = with
%macro GET_PBPC 1
%ifnidn %1,R_PBPC
mov dword %1,R_PBPC
%endif
%endmacro
;%1 = with
%macro SAVE_PC 1
GET_PC %1
mov dword [CPU_LABEL(PC)],%1
%endmacro
; Set up the flags from PC flag format to 65816 flag format
; Corrupts arg 1, returns value in arg 2 (default to cl, al)
;|E|N|V|M|X|D|I|Z|C|
;%1 = scratchpad, %2 = output
%macro E0_SETUPFLAGS 0-2 cl,al
;%macro Flags_Native_to_65c816_E0 0-2 cl,al
%ifdef WATCH_FLAG_BREAKS
inc dword [BreaksLast]
%endif
mov byte %2,B_N_flag
shr byte %2,7
mov byte %1,B_V_flag
add byte %1,-1
adc byte %2,%2
mov byte %1,B_M1_flag
add byte %1,-1
adc byte %2,%2
mov byte %1,B_XB_flag
add byte %1,-1
adc byte %2,%2
mov byte %1,B_D_flag
add byte %1,-1
adc byte %2,%2
mov byte %1,B_I_flag
add byte %1,-1
adc byte %2,%2
mov byte %1,B_Z_flag
cmp byte %1,1
adc byte %2,%2
mov byte %1,B_C_flag
add byte %1,-1
adc byte %2,%2
%endmacro
; Set up the flags from PC flag format to 65816 flag format
; Corrupts arg 2, returns value in arg 3 (default to cl, al)
;|E|N|V|1|B|D|I|Z|C|
;%1 = break flag, %2 = scratchpad, %3 = output
%macro E1_SETUPFLAGS 0-3 1,cl,al
;%macro Flags_Native_to_65c816_E0 0-3 1,cl,al
%ifdef WATCH_FLAG_BREAKS
inc dword [BreaksLast]
%endif
mov byte %3,B_N_flag
shr byte %3,7
mov byte %2,B_V_flag
add byte %2,-1
adc byte %3,%3
mov byte %2,B_D_flag
shl byte %3,byte 2
%if %1
or byte %3,3
%else
or byte %3,2
%endif
add byte %2,-1
adc byte %3,%3
mov byte %2,B_I_flag
add byte %2,-1
adc byte %3,%3
mov byte %2,B_Z_flag
cmp byte %2,1
adc byte %3,%3
mov byte %2,B_C_flag
add byte %2,-1
adc byte %3,%3
%endmacro
%macro SETUPFLAGS 0-3 1,cl,al
%if S_8bit
E1_SETUPFLAGS %1,%2,%3
%else
E0_SETUPFLAGS %2,%3
%endif
%endmacro
;%macro Flags_65c816_to_Native_E0 0-1 R_P_B
; Restore the flags from 65c816 flag format to PC format
; Corrupts arg 1, uses value in arg 2 (default to cl, al)
;%1 = scratchpad, %2 = input
%macro E0_RESTOREFLAGS 0-2 cl,al
;%macro Flags_65c816_to_Native 0-2 cl,al
%ifdef WATCH_FLAG_BREAKS
inc dword [BreaksLast]
%endif
mov byte B_N_flag,%2 ;negative
shl byte %2,2 ;start next (overflow)
sbb byte %1,%1
add byte %2,%2 ;start next (memory/accumulator size)
mov byte B_V_flag,%1
sbb byte %1,%1
add byte %2,%2 ;start next (index size)
mov byte B_M1_flag,%1
sbb byte %1,%1
add byte %2,%2 ;start next (decimal mode)
mov byte B_XB_flag,%1
sbb byte %1,%1
add byte %2,%2 ;start next (interrupt disable)
mov byte B_D_flag,%1
sbb byte %1,%1
add byte %2,%2 ;start next (zero)
mov byte B_I_flag,%1
sbb byte %1,%1
xor byte %1,0xFF
add byte %2,%2 ;start next (carry)
mov byte B_Z_flag,%1
sbb byte %1,%1
mov byte B_C_flag,%1
%endmacro
;%macro Flags_65c816_to_Native_E1 0-1 R_P_B
; Restore the flags from 65c816 flag format to PC format
; Corrupts arg 1, uses value in arg 2 (default to cl, al)
;%1 = scratchpad, %2 = input
%macro E1_RESTOREFLAGS 0-2 cl,al
;%macro Flags_65c816_to_Native 0-2 cl,al
%ifdef WATCH_FLAG_BREAKS
inc dword [BreaksLast]
%endif
mov byte B_N_flag,%2 ;negative
shl byte %2,2 ;start next (overflow)
sbb byte %1,%1
shl byte %2,3 ;start next (decimal mode)
mov byte B_V_flag,%1
;mov byte B_M1_flag,1
;mov byte B_XB_flag,1
sbb byte %1,%1
add byte %2,%2 ;start next (interrupt disable)
mov byte B_D_flag,%1
sbb byte %1,%1
add byte %2,%2 ;start next (zero)
mov byte B_I_flag,%1
sbb byte %1,%1
xor byte %1,0xFF
add byte %2,%2 ;start next (carry)
mov byte B_Z_flag,%1
sbb byte %1,%1
mov byte B_C_flag,%1
%endmacro
%macro RESTOREFLAGS 0-2 cl,al
%if S_8bit
E1_RESTOREFLAGS %1,%2
%else
E0_RESTOREFLAGS %1,%2
%endif
%endmacro
; Set the current opcode execution and timing table pointers based
; on the M and X bits of flag register. This returns control to the
; execution loop, so it must be the last instruction
; Corrupts eax,ecx
%macro SET_TABLE_MX 0
mov al,B_XB_flag
mov cl,B_M1_flag
add al,255
sbb eax,eax
add cl,255
adc eax,eax
and eax,byte 3
JUMP_NOT_FLAG SNES_FLAG_X,%%index_16
mov [CPU_LABEL(XH)],ah ; Clear XH/YH if X flag set
mov [CPU_LABEL(YH)],ah
%%index_16:
mov eax,[CPU_OpTables+eax*4]
mov [OpTable],eax
OPCODE_EPILOG
%endmacro
; Push/Pull macros assume eax contains value - corrupt ebx
%macro FAST_SET_BYTE_STACK_NATIVE_MODE 1
cmp bh,0x20
jnb %%not_within_wram
mov byte [WRAM+ebx],%1
%%not_within_wram:
add R_Cycles,_5A22_SLOW_CYCLE
%endmacro
%macro FAST_GET_BYTE_STACK_NATIVE_MODE 1
cmp bh,0x20
jnb %%not_within_wram
mov %1,byte [WRAM+ebx]
%%not_within_wram:
add R_Cycles,_5A22_SLOW_CYCLE
%endmacro
%macro FAST_SET_BYTE_STACK_EMULATION_MODE 1
mov byte [WRAM+ebx],%1
add R_Cycles,_5A22_SLOW_CYCLE
%endmacro
%macro FAST_GET_BYTE_STACK_EMULATION_MODE 1
mov %1,byte [WRAM+ebx]
add R_Cycles,_5A22_SLOW_CYCLE
%endmacro
; Native mode - push byte (S--)
%macro E0_PUSH_B 0
mov ebx,[CPU_LABEL(S)] ; S only - bank always 0!
%ifdef FAST_STACK_ACCESS_NATIVE_MODE
FAST_SET_BYTE_STACK_NATIVE_MODE al
%else
SET_BYTE
%endif
dec ebx ; Postdecrement S
mov [CPU_LABEL(S)],bx ; Set stack pointer
%endmacro
; Emulation mode - push byte (SL--)
%macro E1_PUSH_B 0
mov ebx,[CPU_LABEL(S)] ; S only - bank always 0!
dec byte [CPU_LABEL(S)] ; Postdecrement SL
%ifdef FAST_STACK_ACCESS_EMULATION_MODE
FAST_SET_BYTE_STACK_EMULATION_MODE al
%else
SET_BYTE
%endif
%endmacro
%macro PUSH_B 0
%if S_8bit
E1_PUSH_B
%else
E0_PUSH_B
%endif
%endmacro
; Native mode - pull byte (++S)
%macro E0_PULL_B 0
mov ebx,[CPU_LABEL(S)] ; S only - bank always 0!
inc bx ; Preincrement S
mov [CPU_LABEL(S)],ebx ; Set stack pointer
%ifdef FAST_STACK_ACCESS_NATIVE_MODE
FAST_GET_BYTE_STACK_NATIVE_MODE al
%else
GET_BYTE
%endif
%endmacro
; Emulation mode - pull byte (++SL)
%macro E1_PULL_B 0
inc byte [CPU_LABEL(S)] ; Preincrement SL
mov ebx,[CPU_LABEL(S)] ; S only - bank always 0!
%ifdef FAST_STACK_ACCESS_EMULATION_MODE
FAST_GET_BYTE_STACK_EMULATION_MODE al
%else
GET_BYTE
%endif
%endmacro
%macro PULL_B 0
%if S_8bit
E1_PULL_B
%else
E0_PULL_B
%endif
%endmacro
; Native mode - push word (S--)
%macro E0_PUSH_W 0
mov ebx,[CPU_LABEL(S)] ; S only - bank always 0!
%ifdef FAST_STACK_ACCESS_NATIVE_MODE
cmp bh,0x20
jnb %%not_within_wram_hi
mov byte [WRAM+ebx],ah
%%not_within_wram_hi:
%else
push eax
mov al,ah
SET_BYTE
%endif
dec bx ; Postdecrement S
%ifdef FAST_STACK_ACCESS_NATIVE_MODE
cmp bh,0x20
jnb %%not_within_wram_lo
mov byte [WRAM+ebx],al
%%not_within_wram_lo:
%else
pop eax
SET_BYTE
%endif
dec bx ; Postdecrement S
mov [CPU_LABEL(S)],ebx ; Set stack pointer
%endmacro
;Emulation mode - push word (SL--)
; pass argument of 'New' for opcodes new to 16-bit 65xx
; (temporary address is 16-bit, but SH not changed after opcode)
%macro E1_PUSH_W 0-1 0
mov ebx,[CPU_LABEL(S)] ; S only - bank always 0!
%ifdef FAST_STACK_ACCESS_EMULATION_MODE
FAST_SET_BYTE_STACK_EMULATION_MODE ah
%else
push eax
mov al,ah
SET_BYTE
%endif
%ifnidni %1,New
dec bl ; Postdecrement SL
%else
dec bx ; Postdecrement S
%endif
%ifdef FAST_STACK_ACCESS_EMULATION_MODE
FAST_SET_BYTE_STACK_EMULATION_MODE al
%else
pop eax
SET_BYTE
%endif
dec bl ; Postdecrement SL
mov [CPU_LABEL(S)],bl ; Set stack pointer
%endmacro
%macro PUSH_W 0-1 0
%if S_8bit
E1_PUSH_W %1
%else
E0_PUSH_W
%endif
%endmacro
;Native mode - push word (S--)
%macro E0_PULL_W 0
mov ebx,[CPU_LABEL(S)] ; S only - bank always 0!
inc bx ; Preincrement S
%ifdef FAST_STACK_ACCESS_NATIVE_MODE
cmp bh,0x20
jnb %%not_within_wram_lo
mov al,byte [WRAM+ebx]
%%not_within_wram_lo:
%else
GET_BYTE
mov ah,al
%endif
inc bx ; Preincrement S
%ifdef FAST_STACK_ACCESS_NATIVE_MODE
cmp bh,0x20
jnb %%not_within_wram_hi
mov ah,byte [WRAM+ebx]
%%not_within_wram_hi:
%else
GET_BYTE
ror ax,8
%endif
mov [CPU_LABEL(S)],ebx ; Set stack pointer
%endmacro
;Emulation mode - pull word (++SL)
; pass argument of 'New' for opcodes new to 16-bit 65xx
; (temporary address is 16-bit, but SH not changed after opcode)
%macro E1_PULL_W 0-1 0
%ifnidni %1,New
inc byte [CPU_LABEL(S)] ; Preincrement SL
mov ebx,[CPU_LABEL(S)] ; S only - bank always 0!
%else
mov ebx,[CPU_LABEL(S)] ; S only - bank always 0!
inc bx ; Preincrement S
%endif
%ifdef FAST_STACK_ACCESS_EMULATION_MODE
FAST_GET_BYTE_STACK_EMULATION_MODE al
%else
GET_BYTE
mov ah,al
%endif
%ifnidni %1,New
inc byte [CPU_LABEL(S)] ; Preincrement SL
mov ebx,[CPU_LABEL(S)] ; S only - bank always 0!
%else
inc bx ; Preincrement S
mov [CPU_LABEL(S)],bl ; Update SL
%endif
%ifdef FAST_STACK_ACCESS_EMULATION_MODE
FAST_GET_BYTE_STACK_EMULATION_MODE ah
%else
GET_BYTE
ror ax,8
%endif
%endmacro
%macro PULL_W 0-1 0
%if S_8bit
E1_PULL_W %1
%else
E0_PULL_W
%endif
%endmacro
; Native mode - push long (S--)
%macro E0_PUSH_L 0
mov ebx,[CPU_LABEL(S)] ; S only - bank always 0!
ror eax,16 ; bank byte
SET_BYTE
dec bx ; Postdecrement S
rol eax,8 ; high byte
SET_BYTE
dec bx ; Postdecrement S
rol eax,8 ; low byte
SET_BYTE
dec bx ; Postdecrement S
mov [CPU_LABEL(S)],ebx ; Set stack pointer
%endmacro
; Emulation mode - push long (SL--*)
%macro E1_PUSH_L_New 0
mov ebx,[CPU_LABEL(S)] ; S only - bank always 0!
ror eax,16 ; bank byte
SET_BYTE
dec bx ; Postdecrement S
rol eax,8 ; high byte
SET_BYTE
dec bx ; Postdecrement S
rol eax,8 ; low byte
SET_BYTE
dec bx ; Postdecrement S
mov [CPU_LABEL(S)],bl ; Set stack pointer
%endmacro
%macro PUSH_L 0
%if S_8bit
E1_PUSH_L_New
%else
E0_PUSH_L
%endif
%endmacro
; Native mode - pull long (++S)
%macro E0_PULL_L 0
mov ebx,[CPU_LABEL(S)] ; S only - bank always 0!
inc bx ; Preincrement S
GET_BYTE
inc bx ; Preincrement S
ror eax,8 ; low byte
GET_BYTE
inc bx ; Preincrement S
ror eax,8 ; high byte
GET_BYTE
ror eax,16 ; bank byte
mov [CPU_LABEL(S)],ebx ; Set stack pointer
%endmacro
; Emulation mode - pull long (++SL*)
%macro E1_PULL_L_New 0
mov ebx,[CPU_LABEL(S)] ; S only - bank always 0!
inc bx ; Preincrement S
GET_BYTE
inc bx ; Preincrement S
ror eax,8 ; low byte
GET_BYTE
inc bx ; Preincrement S
ror eax,8 ; high byte
GET_BYTE
ror eax,16 ; bank byte
mov [CPU_LABEL(S)],bl ; Set stack pointer
%endmacro
%macro PULL_L 0
%if S_8bit
E1_PULL_L_New
%else
E0_PULL_L
%endif
%endmacro
%macro Stack_Fixup 0
%if S_8bit
mov byte B_SH,1
%endif
%endmacro
ALIGNC
EXPORT Reset_CPU
pusha
call Reset_DMA
; Reset timing registers
xor eax,eax
mov [Latched_H],eax
mov [Latched_V],eax
mov [OPHCT],al
mov [OPVCT],al
mov byte [RDNMI],VERSION_NUMBER_5A22
mov [MEMSEL],al
mov [HVBJOY],al
mov [NMITIMEN],al
mov [HTIMEL],eax
mov [VTIMEL],eax
mov [HTimer],eax
mov [HTimer_Set],eax
mov dword [Access_Speed_Mask],-1
; Reset other registers
mov byte [WRIO],0xFF
mov byte [RDIO],0xFF
mov [WRMPYA],al
mov [WRDIVL],al
mov [WRDIVH],al
mov [RDDIVL],al
mov [RDDIVH],al
mov [RDMPYL],al
mov [RDMPYH],al
mov [JOYC1],al
mov byte [Controller1_Pos],16
mov byte [Controller23_Pos],16
mov byte [Controller45_Pos],16
mov dword [JOY1L],BIT(31)
mov dword [JOY2L],BIT(31)
mov dword [JOY3L],BIT(31)
mov dword [JOY4L],BIT(31)
; Reset hardware ports
call Reset_Ports
; Reset SPC timing
xor eax,eax
mov [SPC_last_cycles],eax
mov [SPC_CPU_cycles],eax
mov [SPC_cycles_left],eax
mov [SPC_CPU_cycles_mul],eax
; Clear interrupt inputs
mov [IRQ_pin],al
mov [NMI_pin],al
; Reset CPU
mov [In_CPU],al
mov [CPU_Execution_Mode],al ;CEM_Normal_Execution == 0
mov dword [OpTable],OpTableE1 ; Set current opcode emulation table
; Clear cycle counts
mov dword [SNES_Cycles],0x80 ;32 dots before reset (?)
mov [EventTrip],eax
LOAD_BASE
LOAD_CYCLES edx
mov dword [CPU_LABEL(S)],0x01FF
mov [CPU_LABEL(A)],eax ; Clear A, D, X, Y
mov [CPU_LABEL(D)],eax
mov [CPU_LABEL(X)],eax
mov [CPU_LABEL(Y)],eax
LOAD_PC
GET_PBPC ebx
GET_BYTE ; Get opcode
call E1_RESET
SAVE_CYCLES
mov al,[CPU_LABEL(PB)]
mov [OLD_PB],al
%ifdef DEBUG
mov [Frames],eax
;mov [Timer_Counter_FPS],eax
%endif
; Initialize flags
;FLAGS_TO (SNES_FLAG_B1+SNES_FLAG_E+SNES_FLAG_I)
STORE_FLAGS_E 1
STORE_FLAGS_N 0
STORE_FLAGS_V 0
STORE_FLAGS_1 1
STORE_FLAGS_B 1
STORE_FLAGS_D 0
STORE_FLAGS_I 1
STORE_FLAGS_Z 1
STORE_FLAGS_C 0
;%1 = vector; %2 = label prefix;
;%3 = register with relative address of ROM at 00:E000-FFFF
%macro cache_interrupt_vector 3
movzx eax,word [%1+%3] ; Get interrupt vector
mov [%2vector],eax ; Cache vector
%endmacro
; Get all interrupt vectors
mov ebx,[Read_Bank8Offset+(0xE000 >> 13) * 4] ; Get address of ROM
cache_interrupt_vector 0xFFFC,RES_E,ebx ; Reset: Emulation mode
cache_interrupt_vector 0xFFEA,NMI_N,ebx ; NMI: Native mode
cache_interrupt_vector 0xFFFA,NMI_E,ebx ; NMI: Emulation mode
cache_interrupt_vector 0xFFEE,IRQ_N,ebx ; IRQ: Native mode
cache_interrupt_vector 0xFFFE,IRQ_E,ebx ; IRQ: Emulation mode
cache_interrupt_vector 0xFFE6,BRK_N,ebx ; BRK: Native mode
cache_interrupt_vector 0xFFE4,COP_N,ebx ; COP: Native mode
cache_interrupt_vector 0xFFF4,COP_E,ebx ; COP: Emulation mode
mov eax,[RES_Evector] ; Get Reset vector
mov [CPU_LABEL(PC)],eax ; Setup PC
mov [OLD_PC],eax
call IRQNewFrameReset
popa
ret
%macro debug_dma_output 1
%if 0
pusha
push byte 2
movzx eax,byte [MDMAEN]
push eax
push dword %1
call print_str
add esp,4
call print_hexnum
push nl_str
call print_str
add esp,4*3
popa
%endif
%endmacro
ALIGNC
EXPORT do_DMA
debug_dma_output dma_xfer1_str
LOAD_CYCLES
cmp byte [MDMAEN],0
jz .dma_done
cmp byte [In_DMA],0
jnz .dma_started
.sync:
;first bus cycle doesn't overlap
add R_65c816_Cycles,_5A22_SLOW_CYCLE
.dma_started:
DMAOPERATION 0,.early_out
DMAOPERATION 1,.early_out
DMAOPERATION 2,.early_out
DMAOPERATION 3,.early_out
DMAOPERATION 4,.early_out
DMAOPERATION 5,.early_out
DMAOPERATION 6,.early_out
DMAOPERATION 7,.early_out
.dma_done:
mov byte [In_DMA],0
debug_dma_output dma_xfer3_str
mov byte [CPU_Execution_Mode],CEM_Normal_Execution
SAVE_CYCLES
cmp byte [NMI_pin],NMI_Raised
jne .no_nmi
;setup NMI to execute after one opcode
mov edx,[FixedTrip]
mov [NMI_Next_Trip],edx
mov edx,[Fixed_Event]
mov [NMI_Next_Event],edx
mov edx,NMI_Event
mov [Fixed_Event],edx
mov [Event_Handler],edx
mov eax,[SNES_Cycles]
inc eax
mov [FixedTrip],eax
mov [EventTrip],eax
jmp CPU_START
.no_nmi:
mov byte [CPU_Execution_Mode],CEM_Instruction_After_IRQ_Enable
jmp CPU_START
.early_out:
debug_dma_output dma_xfer2_str
SAVE_CYCLES
jmp dword [Event_Handler]
ALIGNC
EXPORT Do_CPU
pusha
mov byte [PaletteChanged],1 ; Make sure we get our palette
mov dword [Last_Frame_Line],239
call CPU_START
popa
ret
; Start of actual CPU execution core
; New for 0.25 - one CPU execution loop, also used for SPC
ALIGNC
EXPORT CPU_START_IRQ
call IRQ_Check_Newline
CPU_START:
LOAD_CYCLES
test R_Cycles,R_Cycles
jge .no_event_wait
.execute_opcode:
mov al,[CPU_Execution_Mode]
test al,al
jz .normal_execution
cmp al,CEM_In_DMA
je do_DMA
cmp al,CEM_Instruction_After_IRQ_Enable
je .instruction_after_irq_enable
xor R_Cycles,R_Cycles
;SAVE_CYCLES
mov edx,[EventTrip]
mov [SNES_Cycles],edx
.no_event_wait:
jmp dword [Event_Handler]
ALIGNC
.instruction_after_irq_enable:
;set up an event for immediately the next instruction
mov eax,IRQ_Enabled_Event
xor edx,edx
mov [Event_Handler],eax
mov [EventTrip],edx
.normal_execution:
LOAD_PC
LOAD_CYCLES
LOAD_BASE
xor eax,eax ; Zero for table offset
mov byte [In_CPU],-1
jmp CPU_START_NEXT
ALIGNC
EXPORT CPU_RETURN
%ifdef Abort_at_op_num
dec dword [MaxOps]
jz Op_0xDB ;STP
%endif
xor eax,eax ; Zero for table offset
test R_Cycles,R_Cycles
jge HANDLE_EVENT
EXPORT CPU_START_NEXT
; This code is for a CPU-tracker dump... #define TRACKERS to make a dump
; of the CPU state before each instruction - uncomment the ret to
; force emulation core to break when buffer fills. TRACKERS must be
; defined to the size of the buffer to be used - which must be a power
; of two, and the variables required by this and the write in Wangle()
; (main.cc) exist only if DEBUG and TRACKERS are also defined in main.cc
; and romload.cc.
%ifdef TRACKERS
%if TRACKERS >= 16
mov edx,[_LastIns] ;
add edx,[_InsAddress] ;
mov al,[CPU_LABEL(PB)] ;
mov [edx],al ;
SAVE_CYCLES ;
SAVE_PC eax ;
mov [1+edx],ah ;
mov [2+edx],al ;
mov al,[CPU_LABEL(B)] ;
mov [3+edx],al ;
mov al,[CPU_LABEL(A)] ;
mov [4+edx],al ;
mov al,[CPU_LABEL(XH)] ;
mov [5+edx],al ;
mov al,[CPU_LABEL(X)] ;
mov [6+edx],al ;
mov al,[CPU_LABEL(YH)] ;
mov [7+edx],al ;
mov al,[CPU_LABEL(Y)] ;
mov [8+edx],al ;
mov al,[CPU_LABEL(SH)] ;
mov [9+edx],al ;
mov al,[CPU_LABEL(SL)] ;
mov [10+edx],al ;
mov al,[CPU_LABEL(DB)] ;
mov [11+edx],al ;
mov al,[CPU_LABEL(DH)] ;
mov [12+edx],al ;
mov al,[CPU_LABEL(DL)] ;
mov [13+edx],al ;
mov al,[_E_flag] ;
mov [15+edx],al ;
test al,al ;
jnz .track_e1_flags ;
E0_SETUPFLAGS ;
jmp .track_e0_flags ;
.track_e1_flags: ;
E1_SETUPFLAGS ;
.track_e0_flags: ;
mov [14+edx],al ;
mov edx,[_LastIns] ;
add edx,byte 16 ;
and edx,(TRACKERS-1) ;
mov [_LastIns],edx ;
test edx,edx ;
jnz .buffer_not_full ;
ret ;
.buffer_not_full: ;
xor eax,eax ;
%endif
%endif
GET_PBPC ebx
%if 0
pusha
push dword [FixedTrip]
push dword [Fixed_Event]
push dword [EventTrip]
push dword [Event_Handler]
movzx eax,byte [CPU_Execution_Mode]
push eax
GET_CYCLES eax
push eax
push ebx
extern check_op
call check_op
add esp,4*7
popa
%endif
GET_BYTE ; Get opcode
%ifdef OPCODE_TRACE_LOG
pusha
movzx eax,al
push eax
SAVE_PC eax
E0_SETUPFLAGS
cmp byte B_E_flag,0
setnz ah
mov B_P,ax
EXTERN opcode_trace_5A22
call opcode_trace_5A22
pop eax
popa
%endif
mov edx,B_OpTable
xor ebx,ebx
jmp dword [edx+eax*4] ; Call opcode handler
ALIGNC
HANDLE_EVENT:
SAVE_PC R_PBPC
mov byte [In_CPU],0
SAVE_CYCLES
jmp dword [Event_Handler]
ALIGNC
EXPORT E1_RESET
; RESET (Emulation mode)
add R_Cycles,_5A22_FAST_CYCLE ; hwint processing: 1 IO
mov ebx,B_S
GET_BYTE ;dummy stack access
dec bl
GET_BYTE ;dummy stack access
dec bl
GET_BYTE ;dummy stack access
mov B_S,ebx
;7.12.2 In the Emulation mode, the PBR and DBR registers are cleared to 00
;when a hardware interrupt, BRK or COP is executed. In this case, previous
;contents of the PBR are not automatically saved.
;NOTE - DB is ONLY cleared on RESET!
mov byte [CPU_LABEL(DB)],0
mov ebx,0xFFFC ; Get Emulation mode IRQ vector
xor eax,eax
GET_WORD
mov [CPU_LABEL(PC)],eax ; Setup PC vector
mov byte [CPU_LABEL(PB)],0 ; Setup bank
;SET_FLAG SNES_FLAG_I ; Disable IRQs
STORE_FLAGS_I 1
;CLR_FLAG SNES_FLAG_D ; Disable decimal mode
STORE_FLAGS_D 0
ret
ALIGNC
EXPORT E1_IRQ
; Emulation mode IRQ
mov eax,[CPU_LABEL(PC)]
E1_PUSH_W
;CLR_FLAG SNES_FLAG_B ; Clear break bit on stack
E1_SETUPFLAGS 0 ; put flags into SNES packed flag format
;SET_FLAG SNES_FLAG_B
E1_PUSH_B
mov ebx,0xFFFE ; Get Emulation mode IRQ vector
jmp IRQ_completion
ALIGNC
EXPORT E0_IRQ
; Native mode IRQ
mov al,[CPU_LABEL(PB)]
E0_PUSH_B
mov eax,[CPU_LABEL(PC)]
E0_PUSH_W
E0_SETUPFLAGS ; put flags into SNES packed flag format
E0_PUSH_B
mov ebx,0xFFEE ; Get Native mode IRQ vector
IRQ_completion:
xor eax,eax
GET_WORD
mov [CPU_LABEL(PC)],eax ; Setup PC vector
mov byte [CPU_LABEL(PB)],0 ; Setup bank
;SET_FLAG SNES_FLAG_I ; Disable IRQs
STORE_FLAGS_I 1
;CLR_FLAG SNES_FLAG_D ; Disable decimal mode
STORE_FLAGS_D 0
ret
%include "cpu/cpuaddr.inc" ; Addressing modes ([d], a,x, etc.)
%include "cpu/cpumacro.inc" ; Instructions (LDA,ADC,SBC,etc.)
EXPORT cpu_ops_start
ALIGNC
EXPORT ALL_INVALID
GET_PC ebx
mov [Map_Address],ebx
mov bl,[CPU_LABEL(PB)]
mov [Map_Address + 3],bl
mov [Map_Byte],al
jmp InvalidOpcode ; This exits...
%include "cpu/cpuops.inc" ; Opcode handlers
%include "cpu/timing.inc"
section .text
ALIGNC
EXPORT CPU_text_end
section .data
ALIGND
EXPORT CPU_data_end
section .bss
ALIGNB
EXPORT CPU_bss_end
| 24.845536 | 79 | 0.72002 |
8ed2b7cf433e3fb647556c6853bcc913262501ad | 185,424 | asm | Assembly | asg/asm/rdkafka_buf.asm | asgkafka/librdkafka | d0a14ca313ed1efafb3924ff33fb6c4d474efe3c | [
"BSD-2-Clause-NetBSD",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause"
] | null | null | null | asg/asm/rdkafka_buf.asm | asgkafka/librdkafka | d0a14ca313ed1efafb3924ff33fb6c4d474efe3c | [
"BSD-2-Clause-NetBSD",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause"
] | null | null | null | asg/asm/rdkafka_buf.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:26 2021
*
WXTRN @@ZARCH#
*
*
*
* Code Section
*
@CODE ALIAS X'7CD9C4D2C1C6D2C16DC2E4C6'
@CODE CSECT
@CODE AMODE ANY
@CODE RMODE ANY
@DATA ALIAS X'7C998492818692816D82A486'
write ALIAS C'write'
EXTRN write
rd_buf_write ALIAS X'99846D82A4866DA69989A385'
EXTRN rd_buf_write
__assert ALIAS C'@@ASSERT'
EXTRN __assert
rd_buf_push0 ALIAS X'99846D82A4866D97A4A288F0'
EXTRN rd_buf_push0
rd_kafka_op_new0 ALIAS X'99846D92818692816D96976D9585A6F0'
EXTRN rd_kafka_op_new0
mtx_lock ALIAS X'94A3A76D93968392'
EXTRN mtx_lock
rd_kafka_op_reply ALIAS X'99846D92818692816D96976D99859793A8'
EXTRN rd_kafka_op_reply
rd_buf_init ALIAS X'99846D82A4866D899589A3'
EXTRN rd_buf_init
mtx_unlock ALIAS X'94A3A76DA49593968392'
EXTRN mtx_unlock
rd_buf_destroy ALIAS X'99846D82A4866D8485A2A39996A8'
EXTRN rd_buf_destroy
cnd_signal ALIAS X'8395846DA28987958193'
EXTRN cnd_signal
crc_table ALIAS X'8399836DA381829385'
crc_table DXD 0F
rd_slice_init_full ALIAS X'99846DA2938983856D899589A36D86A49393'
EXTRN rd_slice_init_full
rd_kafka_msgbatch_destroy ALIAS X'99846D92818692816D94A2878281A383886D8*
485A2A39996A8'
EXTRN rd_kafka_msgbatch_destroy
rd_kafka_q_destroy_final ALIAS X'99846D92818692816D986D8485A2A39996A86D*
8689958193'
EXTRN rd_kafka_q_destroy_final
thrd_is_current ALIAS X'A38899846D89A26D83A499998595A3'
EXTRN thrd_is_current
rd_kafka_interceptors_on_response_received ALIAS X'99846D92818692816D89*
95A38599838597A39699A26D96956D9985A2979695A2856D99858385*
89A58584'
EXTRN rd_kafka_interceptors_on_response_received
rd_slice_seek ALIAS X'99846DA2938983856DA2858592'
EXTRN rd_slice_seek
snprintf ALIAS C'snprintf'
EXTRN snprintf
calloc ALIAS C'calloc'
EXTRN calloc
rd_kafka_q_purge0 ALIAS X'99846D92818692816D986D97A4998785F0'
EXTRN rd_kafka_q_purge0
free ALIAS C'free'
EXTRN free
gettimeofday ALIAS C'GETTFD@Y'
EXTRN gettimeofday
pthread_mutex_init ALIAS C'@@PT3MI'
EXTRN pthread_mutex_init
pthread_mutex_lock ALIAS C'@@PT3ML'
EXTRN pthread_mutex_lock
rd_list_destroy ALIAS X'99846D9389A2A36D8485A2A39996A8'
EXTRN rd_list_destroy
pthread_mutex_unlock ALIAS C'@@PT3MU'
EXTRN pthread_mutex_unlock
rd_kafka_broker_destroy_final ALIAS X'99846D92818692816D8299969285996D8*
485A2A39996A86D8689958193'
EXTRN rd_kafka_broker_destroy_final
rd_kafka_broker_buf_retry ALIAS X'99846D92818692816D8299969285996D82A48*
66D9985A399A8'
EXTRN rd_kafka_broker_buf_retry
rd_kafka_broker_id ALIAS X'99846D92818692816D8299969285996D8984'
EXTRN rd_kafka_broker_id
rd_kafka_crash ALIAS X'99846D92818692816D839981A288'
EXTRN rd_kafka_crash
rd_kafka_broker_name ALIAS X'99846D92818692816D8299969285996D95819485'
EXTRN rd_kafka_broker_name
rd_kafka_log0 ALIAS X'99846D92818692816D939687F0'
EXTRN rd_kafka_log0
*
*
*
* ....... start of ebcdic_2_utf8
@LNAME338 DS 0H
DC X'0000000D'
DC C'ebcdic_2_utf8'
DC X'00'
ebcdic_2_utf8 DCCPRLG CINDEX=338,BASER=12,FRAME=176,ENTRY=NO,ARCH=ZARCH*
,LNAMEADDR=@LNAME338
DCCPRV REG=9 ; Get PRV from DVT
LGR 3,1 ; ptr to parm area
* ******* End of Prologue
* *
* *** const unsigned char* outstart = out;
LG 4,0(0,3) ; out
LGR 15,4
LG 1,8(0,3) ; outlen
LG 5,16(0,3) ; in
LGR 2,5
LG 3,24(0,3) ; inlen
* *** const unsigned char* base = in;
* *** const unsigned char* processed = in;
LGR 6,5 ; processed
* *** const unsigned char* inend = in + (*inlen);
LG 7,0(0,3) ; inlen
LA 7,0(7,5)
* *** const unsigned char* outend = out + (*outlen);
LG 8,0(0,1) ; outlen
LA 8,0(8,4)
* *** unsigned char c;
* ***
* *** while ((in < inend) && ((out - outstart) < *outlen)) {
B @L6
DS 0D
@FRAMESIZE_338 DC F'176'
@lit_338_2 DC FD'255' 0x00000000000000ff
@lit_338_1 DC Q(@@STATIC)
@L5 DS 0H
* *** c = *in++;
LGR 10,2
LA 2,1(0,2)
IC 10,0(0,10)
STC 10,168(0,13) ; c
* *** if (c > 0xFF)
LR 11,10
NILF 11,X'000000FF'
CHI 11,255
BNH @L8
* *** {
* *** *outlen = out - outstart;
SGR 15,4
STG 15,0(0,1) ; outlen
* *** *inlen = processed - base;
SGR 6,5
STG 6,0(0,3) ; inlen
* *** return(-1);
LGHI 15,-1 ; -1
B @ret_lab_338
* *** }
@L8 DS 0H
* ***
* *** if (out >= outend)
CGR 15,8
BNL @L3
* *** break;
@L9 DS 0H
* ***
* *** *out++ = E2U[c];
LGR 6,15
LA 15,1(0,15)
LGF 11,@lit_338_1
LA 11,0(11,9)
NG 10,@lit_338_2
IC 10,0(10,11)
STC 10,0(0,6)
* *** processed = (unsigned char*)in;
LGR 6,2 ; processed
* ***
* *** }
@L6 DS 0H
CGR 2,7
BNL @L3
LGR 10,15
SGR 10,4
CLG 10,0(0,1)
BL @L5
@L3 DS 0H
* ***
* *** *outlen = out - outstart;
SGR 15,4
STG 15,0(0,1) ; outlen
* *** *inlen = processed - base;
SGR 6,5
STG 6,0(0,3) ; inlen
* *** return(0);
LGHI 15,0 ; 0
* *** }
@ret_lab_338 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "ebcdic_2_utf8"
* (FUNCTION #338)
*
@AUTO#ebcdic_2_utf8 DSECT
DS XL168
ebcdic_2_utf8#c#0 DS 1CL1 ; c
*
@CODE CSECT
*
*
*
* ....... start of rd_atomic32_init
@LNAME1058 DS 0H
DC X'00000010'
DC C'rd_atomic32_init'
DC X'00'
rd_atomic32_init DCCPRLG CINDEX=1058,BASER=12,FRAME=184,ENTRY=NO,ARCH=Z*
ARCH,LNAMEADDR=@LNAME1058
* ******* End of Prologue
* *
* *** ra->val = v;
LG 15,0(0,1) ; ra
L 1,12(0,1) ; v
ST 1,0(0,15) ; ra
* ***
* *** pthread_mutex_init(&ra->lock, 0);
LA 15,8(0,15)
STG 15,168(0,13)
XC 176(8,13),176(13)
LA 1,168(0,13)
LG 15,@lit_1058_5 ; pthread_mutex_init
@@gen_label4 DS 0H
BALR 14,15
@@gen_label5 DS 0H
* *** # 79 "C:\asgkafka\librdkafka\src\rdatomic.h"
* *** }
@ret_lab_1058 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1058 DC F'184'
@lit_1058_5 DC AD(pthread_mutex_init)
DROP 12
*
* DSECT for automatic variables in "rd_atomic32_init"
* (FUNCTION #1058)
*
@AUTO#rd_atomic32_init DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_atomic32_add
@LNAME1059 DS 0H
DC X'0000000F'
DC C'rd_atomic32_add'
DC X'00'
rd_atomic32_add DCCPRLG CINDEX=1059,BASER=12,FRAME=184,ENTRY=NO,ARCH=ZA*
RCH,LNAMEADDR=@LNAME1059
LGR 3,1 ; ptr to parm area
* ******* End of Prologue
* *
LG 2,0(0,3) ; ra
* ***
* *** int32_t r;
* *** pthread_mutex_lock(&ra->lock);
LA 15,8(0,2)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1059_7 ; pthread_mutex_lock
@@gen_label6 DS 0H
BALR 14,15
@@gen_label7 DS 0H
* *** ra->val += v;
L 15,0(0,2)
A 15,12(0,3)
ST 15,0(0,2)
* *** r = ra->val;
LR 3,15 ; ra
* *** pthread_mutex_unlock(&ra->lock);
LA 15,8(0,2)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1059_8 ; pthread_mutex_unlock
@@gen_label8 DS 0H
BALR 14,15
@@gen_label9 DS 0H
* *** return r;
LGFR 15,3
* *** # 103 "C:\asgkafka\librdkafka\src\rdatomic.h"
* *** return __atomic_add_fetch(&ra->val, v, 6);
* ***
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1059 DC F'184'
@lit_1059_7 DC AD(pthread_mutex_lock)
@lit_1059_8 DC AD(pthread_mutex_unlock)
DROP 12
*
* DSECT for automatic variables in "rd_atomic32_add"
* (FUNCTION #1059)
*
@AUTO#rd_atomic32_add DSECT
DS XL168
rd_atomic32_add#r#0 DS 1F ; r
*
@CODE CSECT
*
*
*
* ....... start of rd_atomic32_sub
@LNAME1060 DS 0H
DC X'0000000F'
DC C'rd_atomic32_sub'
DC X'00'
rd_atomic32_sub DCCPRLG CINDEX=1060,BASER=12,FRAME=184,ENTRY=NO,ARCH=ZA*
RCH,LNAMEADDR=@LNAME1060
LGR 3,1 ; ptr to parm area
* ******* End of Prologue
* *
LG 2,0(0,3) ; ra
* ***
* *** int32_t r;
* *** pthread_mutex_lock(&ra->lock);
LA 15,8(0,2)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1060_10 ; pthread_mutex_lock
@@gen_label10 DS 0H
BALR 14,15
@@gen_label11 DS 0H
* *** ra->val -= v;
L 15,0(0,2)
S 15,12(0,3)
ST 15,0(0,2)
* *** r = ra->val;
LR 3,15 ; ra
* *** pthread_mutex_unlock(&ra->lock);
LA 15,8(0,2)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1060_11 ; pthread_mutex_unlock
@@gen_label12 DS 0H
BALR 14,15
@@gen_label13 DS 0H
* *** return r;
LGFR 15,3
* *** # 128 "C:\asgkafka\librdkafka\src\rdatomic.h"
* *** return __atomic_sub_fetch(&ra->val, v, 6);
* ***
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1060 DC F'184'
@lit_1060_10 DC AD(pthread_mutex_lock)
@lit_1060_11 DC AD(pthread_mutex_unlock)
DROP 12
*
* DSECT for automatic variables in "rd_atomic32_sub"
* (FUNCTION #1060)
*
@AUTO#rd_atomic32_sub DSECT
DS XL168
rd_atomic32_sub#r#0 DS 1F ; r
*
@CODE CSECT
*
*
*
* ....... start of rd_atomic32_get
@LNAME1061 DS 0H
DC X'0000000F'
DC C'rd_atomic32_get'
DC X'00'
rd_atomic32_get DCCPRLG CINDEX=1061,BASER=12,FRAME=184,ENTRY=NO,ARCH=ZA*
RCH,LNAMEADDR=@LNAME1061
* ******* End of Prologue
* *
LG 2,0(0,1) ; ra
* ***
* *** int32_t r;
* *** pthread_mutex_lock(&ra->lock);
LA 15,8(0,2)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1061_13 ; pthread_mutex_lock
@@gen_label14 DS 0H
BALR 14,15
@@gen_label15 DS 0H
* *** r = ra->val;
L 3,0(0,2) ; ra
* *** pthread_mutex_unlock(&ra->lock);
LA 15,8(0,2)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1061_14 ; pthread_mutex_unlock
@@gen_label16 DS 0H
BALR 14,15
@@gen_label17 DS 0H
* *** return r;
LGFR 15,3
* *** # 157 "C:\asgkafka\librdkafka\src\rdatomic.h"
* *** return __atomic_fetch_add(&ra->val, 0, 6);
* ***
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1061 DC F'184'
@lit_1061_13 DC AD(pthread_mutex_lock)
@lit_1061_14 DC AD(pthread_mutex_unlock)
DROP 12
*
* DSECT for automatic variables in "rd_atomic32_get"
* (FUNCTION #1061)
*
@AUTO#rd_atomic32_get DSECT
DS XL168
rd_atomic32_get#r#0 DS 1F ; r
*
@CODE CSECT
*
*
*
* ....... start of rd_calloc
@LNAME1077 DS 0H
DC X'00000009'
DC C'rd_calloc'
DC X'00'
rd_calloc DCCPRLG CINDEX=1077,BASER=12,FRAME=208,ENTRY=NO,ARCH=ZARCH,LN*
AMEADDR=@LNAME1077
* ******* End of Prologue
* *
* *** void *p = calloc(num, sz);
LG 15,0(0,1) ; num
STG 15,176(0,13)
LG 15,8(0,1) ; sz
STG 15,184(0,13)
LA 1,176(0,13)
LG 15,@lit_1077_16 ; calloc
@@gen_label18 DS 0H
BALR 14,15
@@gen_label19 DS 0H
LGR 2,15
* *** ((p) ? (void)0 : __assert(__func__, "C:\\asgkafka\\librdkaf\
* ka\\src\\rd.h", 122, "p"));
LTGR 15,2
BNZ @L32
@L31 DS 0H
LG 15,@lit_1077_17
STG 15,176(0,13)
LG 15,@lit_1077_18
STG 15,184(0,13)
MVGHI 192(13),122
LA 15,32(0,15)
STG 15,200(0,13)
LA 1,176(0,13)
LG 15,@lit_1077_19 ; __assert
@@gen_label21 DS 0H
BALR 14,15
@@gen_label22 DS 0H
@L32 DS 0H
* *** return p;
LGR 15,2
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1077 DC F'208'
@lit_1077_16 DC AD(calloc)
@lit_1077_19 DC AD(__assert)
@lit_1077_18 DC AD(@strings@)
@lit_1077_17 DC AD(@DATA)
DROP 12
*
* DSECT for automatic variables in "rd_calloc"
* (FUNCTION #1077)
*
@AUTO#rd_calloc DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_free
@LNAME1080 DS 0H
DC X'00000007'
DC C'rd_free'
DC X'00'
rd_free DCCPRLG CINDEX=1080,BASER=12,FRAME=176,ENTRY=NO,ARCH=ZARCH,LNA*
MEADDR=@LNAME1080
* ******* End of Prologue
* *
* *** free(ptr);
LG 15,0(0,1) ; ptr
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1080_21 ; free
@@gen_label23 DS 0H
BALR 14,15
@@gen_label24 DS 0H
* *** }
@ret_lab_1080 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1080 DC F'176'
@lit_1080_21 DC AD(free)
DROP 12
*
* DSECT for automatic variables in "rd_free"
* (FUNCTION #1080)
*
@AUTO#rd_free DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_refcnt_sub0
@LNAME1084 DS 0H
DC X'0000000E'
DC C'rd_refcnt_sub0'
DC X'00'
rd_refcnt_sub0 DCCPRLG CINDEX=1084,BASER=12,FRAME=208,ENTRY=NO,ARCH=ZAR*
CH,LNAMEADDR=@LNAME1084
* ******* End of Prologue
* *
* *** int r;
* *** # 332 "C:\asgkafka\librdkafka\src\rd.h"
* *** r = rd_atomic32_sub(R, 1);
LG 15,0(0,1) ; R
STG 15,176(0,13)
MVGHI 184(13),1
LA 1,176(0,13)
LG 15,@lit_1084_23 ; rd_atomic32_sub
@@gen_label25 DS 0H
BALR 14,15
@@gen_label26 DS 0H
LTR 2,15
* ***
* *** if (r < 0)
BNL @L41
* *** ((!*"refcnt sub-zero") ? (void)0 : __assert(__\
* func__, "C:\\asgkafka\\librdkafka\\src\\rd.h", 335, "!*\"refcnt sub-\
* zero\""));
LG 15,@lit_1084_24
LA 1,34(0,15)
CLI 0(1),0
BE @L41
@L42 DS 0H
LG 1,@lit_1084_25
LA 1,54(0,1)
STG 1,176(0,13)
STG 15,184(0,13)
MVGHI 192(13),335
LA 15,50(0,15)
STG 15,200(0,13)
LA 1,176(0,13)
LG 15,@lit_1084_26 ; __assert
@@gen_label29 DS 0H
BALR 14,15
@@gen_label30 DS 0H
@L43 DS 0H
@L41 DS 0H
* *** return r;
LGFR 15,2
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1084 DC F'208'
@lit_1084_23 DC AD(rd_atomic32_sub)
@lit_1084_24 DC AD(@strings@)
@lit_1084_26 DC AD(__assert)
@lit_1084_25 DC AD(@DATA)
DROP 12
*
* DSECT for automatic variables in "rd_refcnt_sub0"
* (FUNCTION #1084)
*
@AUTO#rd_refcnt_sub0 DSECT
DS XL168
rd_refcnt_sub0#r#0 DS 1F ; r
*
@CODE CSECT
*
*
*
* ....... start of rd_clock
@LNAME1088 DS 0H
DC X'00000008'
DC C'rd_clock'
DC X'00'
rd_clock DCCPRLG CINDEX=1088,BASER=12,FRAME=200,ENTRY=NO,ARCH=ZARCH,LNA*
MEADDR=@LNAME1088
* ******* End of Prologue
* *
* *** # 97 "C:\asgkafka\librdkafka\src\rdtime.h"
* *** struct timeval tv;
* *** gettimeofday(&tv, ((void *)0));
LA 15,168(0,13)
STG 15,184(0,13)
XC 192(8,13),192(13)
LA 1,184(0,13)
LG 15,@lit_1088_28 ; gettimeofday
@@gen_label31 DS 0H
BALR 14,15
@@gen_label32 DS 0H
* *** return ((rd_ts_t)tv.tv_sec * 1000000LLU) + (rd_ts_t)tv.tv_\
* usec;
LG 15,168(0,13)
MSGFI 15,X'000F4240'
LG 1,176(0,13) ; offset of tv_usec in timeval
ALGR 15,1
* *** # 118 "C:\asgkafka\librdkafka\src\rdtime.h"
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1088 DC F'200'
@lit_1088_28 DC AD(gettimeofday)
DROP 12
*
* DSECT for automatic variables in "rd_clock"
* (FUNCTION #1088)
*
@AUTO#rd_clock DSECT
DS XL168
rd_clock#tv#0 DS 16XL1 ; tv
*
@CODE CSECT
*
*
*
* ....... start of rd_buf_len
@LNAME1270 DS 0H
DC X'0000000A'
DC C'rd_buf_len'
DC X'00'
rd_buf_len DCCPRLG CINDEX=1270,BASER=0,FRAME=168,SAVEAREA=NO,ENTRY=NO,A*
RCH=ZARCH,LNAMEADDR=@LNAME1270
* ******* End of Prologue
* *
* *** return rbuf->rbuf_len;
LG 15,0(0,1) ; rbuf
LG 15,32(0,15) ; offset of rbuf_len in rd_buf_s
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
*
* DSECT for automatic variables in "rd_buf_len"
* (FUNCTION #1270)
*
@AUTO#rd_buf_len DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_uvarint_enc_u64
@LNAME1308 DS 0H
DC X'00000012'
DC C'rd_uvarint_enc_u64'
DC X'00'
rd_uvarint_enc_u64 DCCPRLG CINDEX=1308,BASER=12,FRAME=176,SAVEAREA=NO,E*
NTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1308
LGR 2,1 ; ptr to parm area
* ******* End of Prologue
* *
* *** size_t of = 0;
LG 15,16(0,2) ; num
LGHI 1,0 ; 0
* ***
* *** do {
@L105 DS 0H
* *** if (((of >= dstsize)))
CLG 1,8(0,2)
BL @L108
* *** return 0;
LGHI 15,0 ; 0
B @ret_lab_1308
DS 0D
@lit_1308_32 DC FD'127' 0x000000000000007f
@L108 DS 0H
* ***
* *** dst[of++] = (num & 0x7f) | (num > 0x7f ? 0x80 \
* : 0);
LG 3,0(0,2) ; dst
LGR 4,1
AGHI 1,1
LGR 5,15
NG 5,@lit_1308_32
CLGFI 15,X'0000007F'
BNH @L109
LHI 6,128 ; 128
B @L110
@L109 DS 0H
LHI 6,0 ; 0
@L110 DS 0H
LGFR 6,6
OGR 5,6
STC 5,0(4,3)
* *** num >>= 7;
SRLG 15,15,7(0)
* *** } while (num);
LTGR 3,15
BNZ @L105
* ***
* *** return of;
LGR 15,1
* *** }
@ret_lab_1308 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_uvarint_enc_u64"
* (FUNCTION #1308)
*
@AUTO#rd_uvarint_enc_u64 DSECT
DS XL168
rd_uvarint_enc_u64#of#0 DS 8XL1 ; of
*
@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_35
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_35
LA 2,0(2,15)
LA 15,1016(0,2)
STG 15,168(0,13)
MVGHI 176(13),64
LG 15,@lit_1314_37
LA 15,70(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_38 ; snprintf
@@gen_label39 DS 0H
BALR 14,15
@@gen_label40 DS 0H
* *** return ret;
LA 15,1016(0,2)
B @ret_lab_1314
DS 0D
@FRAMESIZE_1314 DC F'200'
@lit_1314_35 DC Q(@@STATIC)
@lit_1314_38 DC AD(snprintf)
@lit_1314_37 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_msgq_len
@LNAME1337 DS 0H
DC X'00000011'
DC C'rd_kafka_msgq_len'
DC X'00'
rd_kafka_msgq_len DCCPRLG CINDEX=1337,BASER=0,FRAME=168,SAVEAREA=NO,ENT*
RY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1337
* ******* End of Prologue
* *
* *** return (int)rkmq->rkmq_msg_cnt;
LG 15,0(0,1) ; rkmq
LGF 15,16(0,15)
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
*
* DSECT for automatic variables in "rd_kafka_msgq_len"
* (FUNCTION #1337)
*
@AUTO#rd_kafka_msgq_len 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_label42 DS 0H
SRST 0,2
BC 1,@@gen_label42
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_40 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_label46
AGHI 2,-1
SRAG 5,2,8(0)
LTGR 5,5
BZ @@gen_label45
@@gen_label44 DS 0H
MVC 0(256,4),0(3)
LA 4,256(0,4)
LA 3,256(0,3)
BCTG 5,@@gen_label44
@@gen_label45 DS 0H
EX 2,@lit_1384_40
@@gen_label46 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_q_keep
@LNAME1428 DS 0H
DC X'0000000F'
DC C'rd_kafka_q_keep'
DC X'00'
rd_kafka_q_keep DCCPRLG CINDEX=1428,BASER=12,FRAME=176,ENTRY=NO,ARCH=ZA*
RCH,LNAMEADDR=@LNAME1428
* ******* End of Prologue
* *
* *** mtx_lock(&rkq->rkq_lock);
LG 2,0(0,1) ; rkq
STG 2,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1428_41 ; mtx_lock
@@gen_label47 DS 0H
BALR 14,15
@@gen_label48 DS 0H
* *** rkq->rkq_refcnt++;
L 15,128(0,2)
AHI 15,1
ST 15,128(0,2)
* *** mtx_unlock(&rkq->rkq_lock);
STG 2,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1428_42 ; mtx_unlock
@@gen_label49 DS 0H
BALR 14,15
@@gen_label50 DS 0H
* *** return rkq;
LGR 15,2
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1428 DC F'176'
@lit_1428_41 DC AD(mtx_lock)
@lit_1428_42 DC AD(mtx_unlock)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_q_keep"
* (FUNCTION #1428)
*
@AUTO#rd_kafka_q_keep DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_q_disable0
@LNAME1432 DS 0H
DC X'00000013'
DC C'rd_kafka_q_disable0'
DC X'00'
rd_kafka_q_disable0 DCCPRLG CINDEX=1432,BASER=12,FRAME=176,ENTRY=NO,ARC*
H=ZARCH,LNAMEADDR=@LNAME1432
* ******* End of Prologue
* *
* *** if (do_lock)
LG 2,0(0,1) ; rkq
LT 3,12(0,1) ; do_lock
BZ @L256
* *** mtx_lock(&rkq->rkq_lock);
STG 2,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1432_44 ; mtx_lock
@@gen_label52 DS 0H
BALR 14,15
@@gen_label53 DS 0H
@L256 DS 0H
* *** rkq->rkq_flags &= ~0x2;
L 15,132(0,2)
NILL 15,65533
ST 15,132(0,2)
* *** if (do_lock)
LTR 3,3
BZ @ret_lab_1432
* *** mtx_unlock(&rkq->rkq_lock);
STG 2,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1432_45 ; mtx_unlock
@@gen_label55 DS 0H
BALR 14,15
@@gen_label56 DS 0H
@L257 DS 0H
* *** }
@ret_lab_1432 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1432 DC F'176'
@lit_1432_44 DC AD(mtx_lock)
@lit_1432_45 DC AD(mtx_unlock)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_q_disable0"
* (FUNCTION #1432)
*
@AUTO#rd_kafka_q_disable0 DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_q_destroy0
@LNAME1435 DS 0H
DC X'00000013'
DC C'rd_kafka_q_destroy0'
DC X'00'
rd_kafka_q_destroy0 DCCPRLG CINDEX=1435,BASER=12,FRAME=216,ENTRY=NO,ARC*
H=ZARCH,LNAMEADDR=@LNAME1435
* ******* End of Prologue
* *
* *** int do_delete = 0;
LG 2,0(0,1) ; rkq
* ***
* *** if (disable) {
LT 15,12(0,1) ; disable
BZ @L258
* ***
* ***
* ***
* ***
* *** rd_kafka_q_disable0(rkq, 1);
STG 2,176(0,13)
MVGHI 184(13),1
LA 1,176(0,13)
LG 15,@lit_1435_48 ; rd_kafka_q_disable0
@@gen_label58 DS 0H
BALR 14,15
@@gen_label59 DS 0H
* *** rd_kafka_q_purge0(rkq, 1);
STG 2,176(0,13)
MVGHI 184(13),1
LA 1,176(0,13)
LG 15,@lit_1435_49 ; rd_kafka_q_purge0
@@gen_label60 DS 0H
BALR 14,15
@@gen_label61 DS 0H
* *** }
@L258 DS 0H
* ***
* *** mtx_lock(&rkq->rkq_lock);
STG 2,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1435_50 ; mtx_lock
@@gen_label62 DS 0H
BALR 14,15
@@gen_label63 DS 0H
* *** do { if (((!(rkq->rkq_refcnt > 0)))) rd_kafka_crash("C\
* :\\asgkafka\\librdkafka\\src\\rdkafka_queue.h",211, __FUNCTION__, ((\
* (void *)0)), "assert: " "rkq->rkq_refcnt > 0"); } while (0);
@L259 DS 0H
CHSI 128(2),0
BH @L262
LG 15,@lit_1435_51
LA 1,84(0,15)
STG 1,176(0,13)
MVGHI 184(13),211
LG 1,@lit_1435_52
LA 1,114(0,1)
STG 1,192(0,13)
XC 200(8,13),200(13)
LA 15,128(0,15)
STG 15,208(0,13)
LA 1,176(0,13)
LG 15,@lit_1435_53 ; rd_kafka_crash
@@gen_label65 DS 0H
BALR 14,15
@@gen_label66 DS 0H
@L262 DS 0H
* *** do_delete = !--rkq->rkq_refcnt;
L 15,128(0,2)
AHI 15,-1
ST 15,128(0,2)
LPR 3,15
AHI 3,-1
SRL 3,31(0)
* *** mtx_unlock(&rkq->rkq_lock);
STG 2,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1435_54 ; mtx_unlock
@@gen_label67 DS 0H
BALR 14,15
@@gen_label68 DS 0H
* ***
* *** if (((do_delete)))
LTR 3,3
BZ @L263
* *** rd_kafka_q_destroy_final(rkq);
STG 2,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1435_55 ; rd_kafka_q_destroy_final
@@gen_label70 DS 0H
BALR 14,15
@@gen_label71 DS 0H
@L263 DS 0H
* *** }
@ret_lab_1435 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1435 DC F'216'
@lit_1435_48 DC AD(rd_kafka_q_disable0)
@lit_1435_49 DC AD(rd_kafka_q_purge0)
@lit_1435_50 DC AD(mtx_lock)
@lit_1435_53 DC AD(rd_kafka_crash)
@lit_1435_52 DC AD(@DATA)
@lit_1435_51 DC AD(@strings@)
@lit_1435_54 DC AD(mtx_unlock)
@lit_1435_55 DC AD(rd_kafka_q_destroy_final)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_q_destroy0"
* (FUNCTION #1435)
*
@AUTO#rd_kafka_q_destroy0 DSECT
DS XL168
rd_kafka_q_destroy0#do_delete#0 DS 1F ; do_delete
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_q_fwd_get
@LNAME1439 DS 0H
DC X'00000012'
DC C'rd_kafka_q_fwd_get'
DC X'00'
rd_kafka_q_fwd_get DCCPRLG CINDEX=1439,BASER=12,FRAME=184,ENTRY=NO,ARCH*
=ZARCH,LNAMEADDR=@LNAME1439
* ******* End of Prologue
* *
LG 2,0(0,1) ; rkq
* *** rd_kafka_q_t *fwdq;
* *** if (do_lock)
LT 4,12(0,1) ; do_lock
BZ @L270
* *** mtx_lock(&rkq->rkq_lock);
STG 2,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1439_57 ; mtx_lock
@@gen_label73 DS 0H
BALR 14,15
@@gen_label74 DS 0H
@L270 DS 0H
* ***
* *** if ((fwdq = rkq->rkq_fwdq))
LG 3,88(0,2) ; offset of rkq_fwdq in rd_kafka_q_s
LTGR 15,3
BZ @L271
* *** rd_kafka_q_keep(fwdq);
STG 3,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1439_58 ; rd_kafka_q_keep
@@gen_label76 DS 0H
BALR 14,15
@@gen_label77 DS 0H
@L271 DS 0H
* ***
* *** if (do_lock)
LTR 4,4
BZ @L272
* *** mtx_unlock(&rkq->rkq_lock);
STG 2,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1439_59 ; mtx_unlock
@@gen_label79 DS 0H
BALR 14,15
@@gen_label80 DS 0H
@L272 DS 0H
* ***
* *** return fwdq;
LGR 15,3
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1439 DC F'184'
@lit_1439_57 DC AD(mtx_lock)
@lit_1439_58 DC AD(rd_kafka_q_keep)
@lit_1439_59 DC AD(mtx_unlock)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_q_fwd_get"
* (FUNCTION #1439)
*
@AUTO#rd_kafka_q_fwd_get DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_q_io_event
@LNAME1441 DS 0H
DC X'00000013'
DC C'rd_kafka_q_io_event'
DC X'00'
rd_kafka_q_io_event DCCPRLG CINDEX=1441,BASER=12,FRAME=192,ENTRY=NO,ARC*
H=ZARCH,LNAMEADDR=@LNAME1441
* ******* End of Prologue
* *
LG 15,0(0,1) ; rkq
* ***
* *** if (((!rkq->rkq_qio)))
LTG 1,144(0,15) ; offset of rkq_qio in rd_kafka_q_s
BZ @ret_lab_1441
* *** return;
@L275 DS 0H
* ***
* *** if (rkq->rkq_qio->event_cb) {
LG 1,144(0,15) ; offset of rkq_qio in rd_kafka_q_s
LTG 1,32(0,1) ; offset of event_cb in rd_kafka_q_io
BZ @L276
* *** rkq->rkq_qio->event_cb(rkq->rkq_rk,
* *** rkq->rkq_qio->event_cb_\
* opaque);
LG 1,136(0,15)
STG 1,168(0,13)
LG 1,144(0,15) ; offset of rkq_qio in rd_kafka_q_s
LG 1,40(0,1)
STG 1,176(0,13)
LG 15,144(0,15) ; offset of rkq_qio in rd_kafka_q_s
LG 15,32(0,15) ; offset of event_cb in rd_kafka_q_io
LA 1,168(0,13)
@@gen_label83 DS 0H
BALR 14,15
@@gen_label84 DS 0H
* *** return;
B @ret_lab_1441
DS 0D
@FRAMESIZE_1441 DC F'192'
@lit_1441_61 DC AD(write)
* *** }
@L276 DS 0H
* ***
* ***
* ***
* ***
* ***
* ***
* *** if (rkq->rkq_qio->sent)
LG 1,144(0,15) ; offset of rkq_qio in rd_kafka_q_s
CLI 24(1),0
BNE @ret_lab_1441
* *** return;
@L277 DS 0H
* ***
* *** rkq->rkq_qio->sent = 1;
LG 1,144(0,15) ; offset of rkq_qio in rd_kafka_q_s
MVI 24(1),1 ; offset of sent in rd_kafka_q_io
* ***
* ***
* ***
* *** if (write(rkq->rkq_qio->fd,rkq->rkq_qio->payload,(int)\
* rkq->rkq_qio->size) == -1)
LG 1,144(0,15) ; offset of rkq_qio in rd_kafka_q_s
LGF 1,0(0,1)
STG 1,168(0,13)
LG 1,144(0,15) ; offset of rkq_qio in rd_kafka_q_s
LG 1,8(0,1)
STG 1,176(0,13)
LG 15,144(0,15) ; offset of rkq_qio in rd_kafka_q_s
LGF 15,20(0,15)
STG 15,184(0,13)
LA 1,168(0,13)
LG 15,@lit_1441_61 ; write
@@gen_label86 DS 0H
BALR 14,15
@@gen_label87 DS 0H
* ***
* *** ;
@L278 DS 0H
* *** }
@ret_lab_1441 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_q_io_event"
* (FUNCTION #1441)
*
@AUTO#rd_kafka_q_io_event DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_op_cmp_prio
@LNAME1442 DS 0H
DC X'00000014'
DC C'rd_kafka_op_cmp_prio'
DC X'00'
rd_kafka_op_cmp_prio DCCPRLG CINDEX=1442,BASER=12,FRAME=176,SAVEAREA=NO*
,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1442
* ******* End of Prologue
* *
* *** const rd_kafka_op_t *a = _a, *b = _b;
LG 15,0(0,1) ; _a
LG 1,8(0,1) ; _b
* ***
* *** return (int)((b->rko_prio) < (a->rko_prio) ? -1 : ((b-\
* >rko_prio) > (a->rko_prio)));
L 2,52(0,1) ; offset of rko_prio in rd_kafka_op_s
C 2,52(0,15)
BNL @L279
LHI 15,-1 ; -1
B @L280
@L279 DS 0H
L 1,52(0,1) ; offset of rko_prio in rd_kafka_op_s
C 1,52(0,15)
BNH @@gen_label89
LHI 15,1
B @@gen_label90
@@gen_label89 DS 0H
LHI 15,0
@@gen_label90 DS 0H
@L280 DS 0H
LGFR 15,15
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_op_cmp_prio"
* (FUNCTION #1442)
*
@AUTO#rd_kafka_op_cmp_prio DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_q_enq0
@LNAME1444 DS 0H
DC X'0000000F'
DC C'rd_kafka_q_enq0'
DC X'00'
rd_kafka_q_enq0 DCCPRLG CINDEX=1444,BASER=12,FRAME=192,ENTRY=NO,ARCH=ZA*
RCH,LNAMEADDR=@LNAME1444
* ******* End of Prologue
* *
* *** if (((!rko->rko_prio)))
LMG 3,4,0(1) ; rkq
LT 15,52(0,4) ; offset of rko_prio in rd_kafka_op_s
BNZ @L288
* *** do { (rko)->rko_link .tqe_next = (((void *)0)); (rko)\
* ->rko_link .tqe_prev = (&rkq->rkq_q)->tqh_last; *(&rkq->rkq_q)->tqh_\
* last = (rko); (&rkq->rkq_q)->tqh_last = &(rko)->rko_link .tqe_next; \
* } while ( 0);
@L289 DS 0H
LGHI 15,0 ; 0
STG 15,0(0,4) ; rko
LG 15,104(0,3) ; offset of tqh_last in rd_kafka_op_tailq
STG 15,8(0,4) ; offset of tqe_prev in 0000055
LG 15,104(0,3) ; offset of tqh_last in rd_kafka_op_tailq
STG 4,0(0,15)
STG 4,104(0,3) ; offset of tqh_last in rd_kafka_op_tailq
* *** else if (at_head)
B @L292
DS 0D
@FRAMESIZE_1444 DC F'192'
@lit_1444_65 DC AD(rd_kafka_op_cmp_prio)
@L288 DS 0H
LT 15,20(0,1) ; at_head
BZ @L300
* *** do { if (((rko)->rko_link .tqe_next = (&rkq->rkq_\
* q)->tqh_first) != (((void *)0))) (&rkq->rkq_q)->tqh_first->rko_link \
* .tqe_prev = &(rko)->rko_link .tqe_next; else (&rkq->rkq_q)->tqh_last\
* = &(rko)->rko_link .tqe_next; (&rkq->rkq_q)->tqh_first = (rko); (rk\
* o)->rko_link .tqe_prev = &(&rkq->rkq_q)->tqh_first; } while ( 0);
@L294 DS 0H
LG 15,96(0,3) ; offset of rkq_q in rd_kafka_q_s
STG 15,0(0,4)
LTGR 15,15
BE @L297
LG 15,96(0,3) ; offset of rkq_q in rd_kafka_q_s
STG 4,8(0,15) ; offset of tqe_prev in 0000055
B @L298
@L297 DS 0H
STG 4,104(0,3) ; offset of tqh_last in rd_kafka_op_tailq
@L298 DS 0H
STG 4,96(0,3) ; offset of rkq_q in rd_kafka_q_s
LA 15,96(0,3)
STG 15,8(0,4) ; offset of tqe_prev in 0000055
* *** else
B @L292
* *** do { if(((&rkq->rkq_q)->tqh_first) == ((void *)0)) { d\
* o { if (((rko)->rko_link .tqe_next = (&rkq->rkq_q)->tqh_first) != (\
* ((void *)0))) (&rkq->rkq_q)->tqh_first->rko_link .tqe_prev = &(rko)-\
* >rko_link .tqe_next; else (&rkq->rkq_q)->tqh_last = &(rko)->rko_link\
* .tqe_next; (&rkq->rkq_q)->tqh_first = (rko); (rko)->rko_link .tqe_p\
* rev = &(&rkq->rkq_q)->tqh_first; } while ( 0); } else { rd_kafka_op_\
* t * _tmp; for ((_tmp) = ((&rkq->rkq_q)->tqh_first); (_tmp) != (((voi\
* d *)0)); (_tmp) = ((_tmp)->rko_link .tqe_next)) { if(rd_kafka_op_cmp\
* _prio(rko,_tmp) < 0) { do { (rko)->rko_link .tqe_prev = (_tmp)->rko\
* _link .tqe_prev; (rko)->rko_link .tqe_next = (_tmp); *(_tmp)->rko_li\
* nk .tqe_prev = (rko); (_tmp)->rko_link .tqe_prev = &(rko)->rko_link \
* .tqe_next; } while ( 0); break; } if(!((_tmp)->rko_link .tqe_next)) \
* { do { if (((rko)->rko_link .tqe_next = (_tmp)->rko_link .tqe_next)\
* != (((void *)0))) (rko)->rko_link .tqe_next->rko_link .tqe_prev = &\
* (rko)->rko_link .tqe_next; else (&rkq->rkq_q)->tqh_last = &(rko)->rk\
* o_link .tqe_next; (_tmp)->rko_link .tqe_next = (rko); (rko)->rko_lin\
* k .tqe_prev = &(_tmp)->rko_link .tqe_next; } while ( 0); break; } } \
* } } while(0);
@L300 DS 0H
LTG 15,96(0,3) ; offset of rkq_q in rd_kafka_q_s
BNE @L303
@L304 DS 0H
LG 15,96(0,3) ; offset of rkq_q in rd_kafka_q_s
STG 15,0(0,4)
LTGR 15,15
BE @L307
LG 15,96(0,3) ; offset of rkq_q in rd_kafka_q_s
STG 4,8(0,15) ; offset of tqe_prev in 0000055
B @L308
@L307 DS 0H
STG 4,104(0,3) ; offset of tqh_last in rd_kafka_op_tailq
@L308 DS 0H
STG 4,96(0,3) ; offset of rkq_q in rd_kafka_q_s
LA 15,96(0,3)
STG 15,8(0,4) ; offset of tqe_prev in 0000055
B @L309
@L303 DS 0H
LG 2,96(0,3) ; offset of rkq_q in rd_kafka_q_s
B @L311
@L310 DS 0H
STG 4,176(0,13)
STG 2,184(0,13)
LA 1,176(0,13)
LG 15,@lit_1444_65 ; rd_kafka_op_cmp_prio
@@gen_label96 DS 0H
BALR 14,15
@@gen_label97 DS 0H
LTR 15,15
BNL @L314
@L315 DS 0H
LG 15,8(0,2) ; offset of tqe_prev in 0000055
STG 15,8(0,4) ; offset of tqe_prev in 0000055
STG 2,0(0,4) ; rko
LG 15,8(0,2) ; offset of tqe_prev in 0000055
STG 4,0(0,15)
STG 4,8(0,2) ; offset of tqe_prev in 0000055
B @L312
@L314 DS 0H
LTG 15,0(0,2) ; _tmp
BNZ @L318
@L319 DS 0H
LG 15,0(0,2) ; _tmp
STG 15,0(0,4)
LTGR 15,15
BE @L322
LG 15,0(0,4) ; rko
STG 4,8(0,15) ; offset of tqe_prev in 0000055
B @L323
@L322 DS 0H
STG 4,104(0,3) ; offset of tqh_last in rd_kafka_op_tailq
@L323 DS 0H
STG 4,0(0,2) ; _tmp
STG 2,8(0,4) ; offset of tqe_prev in 0000055
B @L312
@L318 DS 0H
LG 2,0(0,2) ; _tmp
@L311 DS 0H
LTGR 15,2
BNE @L310
@L312 DS 0H
@L309 DS 0H
* ***
* *** rkq->rkq_qlen++;
@L299 DS 0H
@L292 DS 0H
L 15,112(0,3)
AHI 15,1
ST 15,112(0,3)
* *** rkq->rkq_qsize += rko->rko_len;
LG 15,120(0,3)
AGF 15,48(0,4)
STG 15,120(0,3)
* *** }
@ret_lab_1444 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_q_enq0"
* (FUNCTION #1444)
*
@AUTO#rd_kafka_q_enq0 DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_q_enq1
@LNAME1445 DS 0H
DC X'0000000F'
DC C'rd_kafka_q_enq1'
DC X'00'
rd_kafka_q_enq1 DCCPRLG CINDEX=1445,BASER=12,FRAME=216,ENTRY=NO,ARCH=ZA*
RCH,LNAMEADDR=@LNAME1445
LGR 7,1 ; ptr to parm area
* ******* End of Prologue
* *
LMG 2,4,0(7) ; rkq
LT 5,36(0,7) ; do_lock
* *** rd_kafka_q_t *fwdq;
* ***
* *** if (do_lock)
BZ @L325
* *** mtx_lock(&rkq->rkq_lock);
STG 2,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1445_67 ; mtx_lock
@@gen_label103 DS 0H
BALR 14,15
@@gen_label104 DS 0H
@L324 DS 0H
* ***
* *** do {} while (0);
@L325 DS 0H
* ***
* *** if (((!(rkq->rkq_flags & 0x2)))) {
TM 135(2),2
BNZ @L328
* ***
* *** if (do_lock)
LTR 5,5
BZ @L329
* *** mtx_unlock(&rkq->rkq_lock);
STG 2,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1445_68 ; mtx_unlock
@@gen_label107 DS 0H
BALR 14,15
@@gen_label108 DS 0H
@L329 DS 0H
* ***
* *** return rd_kafka_op_reply(rko, RD_KAFKA_RESP_ER\
* R__DESTROY);
STG 3,176(0,13)
MVGHI 184(13),-197
LA 1,176(0,13)
LG 15,@lit_1445_69 ; rd_kafka_op_reply
@@gen_label109 DS 0H
BALR 14,15
@@gen_label110 DS 0H
LGFR 15,15
B @ret_lab_1445
DS 0D
@FRAMESIZE_1445 DC F'216'
@lit_1445_67 DC AD(mtx_lock)
@lit_1445_68 DC AD(mtx_unlock)
@lit_1445_69 DC AD(rd_kafka_op_reply)
@lit_1445_70 DC AD(rd_kafka_q_fwd_get)
@lit_1445_71 DC AD(rd_kafka_q_enq0)
@lit_1445_72 DC AD(cnd_signal)
@lit_1445_73 DC AD(rd_kafka_q_io_event)
@lit_1445_76 DC AD(rd_kafka_q_enq1)
@lit_1445_77 DC AD(rd_kafka_q_destroy0)
* *** }
@L328 DS 0H
* ***
* *** if (!(fwdq = rd_kafka_q_fwd_get(rkq, 0))) {
STG 2,176(0,13)
XC 184(8,13),184(13)
LA 1,176(0,13)
LG 15,@lit_1445_70 ; rd_kafka_q_fwd_get
@@gen_label111 DS 0H
BALR 14,15
@@gen_label112 DS 0H
LGR 6,15
LTGR 15,6
BNZ @L330
* *** if (!rko->rko_serve && orig_destq->rkq_serve) \
* {
LTG 15,80(0,3) ; offset of rko_serve in rd_kafka_op_s
BNZ @L331
LTG 15,152(0,4) ; offset of rkq_serve in rd_kafka_q_s
BZ @L331
* ***
* ***
* *** rko->rko_serve = orig_destq->rkq_serve\
* ;
LG 15,152(0,4) ; offset of rkq_serve in rd_kafka_q_s
STG 15,80(0,3) ; offset of rko_serve in rd_kafka_op_s
* *** rko->rko_serve_opaque = orig_destq->rk\
* q_opaque;
LG 15,160(0,4) ; offset of rkq_opaque in rd_kafka_q_s
STG 15,88(0,3) ; offset of rko_serve_opaque in rd_kafka_op_*
s
* *** }
@L331 DS 0H
* ***
* *** rd_kafka_q_enq0(rkq, rko, at_head);
STMG 2,3,176(13)
LGF 15,28(0,7) ; at_head
STG 15,192(0,13)
LA 1,176(0,13)
LG 15,@lit_1445_71 ; rd_kafka_q_enq0
@@gen_label116 DS 0H
BALR 14,15
@@gen_label117 DS 0H
* *** cnd_signal(&rkq->rkq_cond);
LA 15,40(0,2)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1445_72 ; cnd_signal
@@gen_label118 DS 0H
BALR 14,15
@@gen_label119 DS 0H
* *** if (rkq->rkq_qlen == 1)
CHSI 112(2),1
BNE @L332
* *** rd_kafka_q_io_event(rkq);
STG 2,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1445_73 ; rd_kafka_q_io_event
@@gen_label121 DS 0H
BALR 14,15
@@gen_label122 DS 0H
@L332 DS 0H
* ***
* *** if (do_lock)
LTR 5,5
BZ @L334
* *** mtx_unlock(&rkq->rkq_lock);
STG 2,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1445_68 ; mtx_unlock
@@gen_label124 DS 0H
BALR 14,15
@@gen_label125 DS 0H
@L333 DS 0H
* *** } else {
B @L334
@L330 DS 0H
* *** if (do_lock)
LTR 5,5
BZ @L335
* *** mtx_unlock(&rkq->rkq_lock);
STG 2,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1445_68 ; mtx_unlock
@@gen_label127 DS 0H
BALR 14,15
@@gen_label128 DS 0H
@L335 DS 0H
* *** rd_kafka_q_enq1(fwdq, rko, orig_destq, at_head\
* , 1);
STG 6,176(0,13)
STMG 3,4,184(13)
LGF 15,28(0,7) ; at_head
STG 15,200(0,13)
MVGHI 208(13),1
LA 1,176(0,13)
LG 15,@lit_1445_76 ; rd_kafka_q_enq1
@@gen_label129 DS 0H
BALR 14,15
@@gen_label130 DS 0H
* *** rd_kafka_q_destroy0(fwdq, 0 );
STG 6,176(0,13)
XC 184(8,13),184(13)
LA 1,176(0,13)
LG 15,@lit_1445_77 ; rd_kafka_q_destroy0
@@gen_label131 DS 0H
BALR 14,15
@@gen_label132 DS 0H
* *** }
@L334 DS 0H
* ***
* *** return 1;
LGHI 15,1 ; 1
* *** }
@ret_lab_1445 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_q_enq1"
* (FUNCTION #1445)
*
@AUTO#rd_kafka_q_enq1 DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_q_enq
@LNAME1446 DS 0H
DC X'0000000E'
DC C'rd_kafka_q_enq'
DC X'00'
rd_kafka_q_enq DCCPRLG CINDEX=1446,BASER=12,FRAME=208,ENTRY=NO,ARCH=ZAR*
CH,LNAMEADDR=@LNAME1446
* ******* End of Prologue
* *
* *** return rd_kafka_q_enq1(rkq, rko, rkq, 0, 1);
LG 15,0(0,1) ; rkq
STG 15,168(0,13)
LG 15,8(0,1) ; rko
STG 15,176(0,13)
LG 15,0(0,1) ; rkq
STG 15,184(0,13)
XC 192(8,13),192(13)
MVGHI 200(13),1
LA 1,168(0,13)
LG 15,@lit_1446_80 ; rd_kafka_q_enq1
@@gen_label133 DS 0H
BALR 14,15
@@gen_label134 DS 0H
LGFR 15,15
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1446 DC F'208'
@lit_1446_80 DC AD(rd_kafka_q_enq1)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_q_enq"
* (FUNCTION #1446)
*
@AUTO#rd_kafka_q_enq DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_replyq_clear
@LNAME1458 DS 0H
DC X'00000015'
DC C'rd_kafka_replyq_clear'
DC X'00'
rd_kafka_replyq_clear DCCPRLG CINDEX=1458,BASER=0,FRAME=168,SAVEAREA=NO*
,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1458
* ******* End of Prologue
* *
* *** __memset(replyq,0,sizeof(*replyq));
LG 15,0(0,1)
* setting 16 bytes to 0x00
XC 0(16,15),0(15)
* *** }
@ret_lab_1458 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
*
* DSECT for automatic variables in "rd_kafka_replyq_clear"
* (FUNCTION #1458)
*
@AUTO#rd_kafka_replyq_clear DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_replyq_copy
@LNAME1459 DS 0H
DC X'00000014'
DC C'rd_kafka_replyq_copy'
DC X'00'
rd_kafka_replyq_copy DCCPRLG CINDEX=1459,BASER=12,FRAME=176,ENTRY=NO,AR*
CH=ZARCH,LNAMEADDR=@LNAME1459
* ******* End of Prologue
* *
* *** dst->version = src->version;
LG 15,0(0,1) ; dst
LG 1,8(0,1) ; src
L 2,8(0,1) ; offset of version in rd_kafka_replyq_s
ST 2,8(0,15) ; offset of version in rd_kafka_replyq_s
* *** dst->q = src->q;
LG 1,0(0,1) ; src
STG 1,0(0,15) ; dst
* *** if (dst->q)
LTGR 1,1
BZ @ret_lab_1459
* *** rd_kafka_q_keep(dst->q);
LG 15,0(0,15)
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1459_82 ; rd_kafka_q_keep
@@gen_label136 DS 0H
BALR 14,15
@@gen_label137 DS 0H
@L444 DS 0H
* *** # 756 "C:\asgkafka\librdkafka\src\rdkafka_queue.h"
* *** }
@ret_lab_1459 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1459 DC F'176'
@lit_1459_82 DC AD(rd_kafka_q_keep)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_replyq_copy"
* (FUNCTION #1459)
*
@AUTO#rd_kafka_replyq_copy DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_replyq_destroy
@LNAME1460 DS 0H
DC X'00000017'
DC C'rd_kafka_replyq_destroy'
DC X'00'
rd_kafka_replyq_destroy DCCPRLG CINDEX=1460,BASER=12,FRAME=184,ENTRY=NO*
,ARCH=ZARCH,LNAMEADDR=@LNAME1460
* ******* End of Prologue
* *
* *** if (replyq->q)
LG 2,0(0,1) ; replyq
LTG 15,0(0,2) ; replyq
BZ @L445
* *** rd_kafka_q_destroy0(replyq->q, 0 );
LG 15,0(0,2)
STG 15,168(0,13)
XC 176(8,13),176(13)
LA 1,168(0,13)
LG 15,@lit_1460_84 ; rd_kafka_q_destroy0
@@gen_label139 DS 0H
BALR 14,15
@@gen_label140 DS 0H
@L445 DS 0H
* *** # 772 "C:\asgkafka\librdkafka\src\rdkafka_queue.h"
* *** rd_kafka_replyq_clear(replyq);
STG 2,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1460_85 ; rd_kafka_replyq_clear
@@gen_label141 DS 0H
BALR 14,15
@@gen_label142 DS 0H
* *** }
@ret_lab_1460 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1460 DC F'184'
@lit_1460_84 DC AD(rd_kafka_q_destroy0)
@lit_1460_85 DC AD(rd_kafka_replyq_clear)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_replyq_destroy"
* (FUNCTION #1460)
*
@AUTO#rd_kafka_replyq_destroy DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_replyq_enq
@LNAME1461 DS 0H
DC X'00000013'
DC C'rd_kafka_replyq_enq'
DC X'00'
rd_kafka_replyq_enq DCCPRLG CINDEX=1461,BASER=12,FRAME=192,ENTRY=NO,ARC*
H=ZARCH,LNAMEADDR=@LNAME1461
LGR 3,1 ; ptr to parm area
* ******* End of Prologue
* *
* *** rd_kafka_q_t *rkq = replyq->q;
LG 15,0(0,3) ; replyq
LG 1,8(0,3) ; rko
LG 2,0(0,15) ; replyq
* *** int r;
* ***
* *** if (version)
LT 3,20(0,3) ; version
BZ @L446
* *** rko->rko_version = version;
ST 3,28(0,1) ; offset of rko_version in rd_kafka_op_s
B @L447
DS 0D
@FRAMESIZE_1461 DC F'192'
@lit_1461_88 DC AD(rd_kafka_q_enq)
@lit_1461_89 DC AD(rd_kafka_q_destroy0)
* *** else
@L446 DS 0H
* *** rko->rko_version = replyq->version;
L 3,8(0,15) ; offset of version in rd_kafka_replyq_s
ST 3,28(0,1) ; offset of rko_version in rd_kafka_op_s
@L447 DS 0H
* ***
* ***
* ***
* *** replyq->q = ((void *)0);
LGHI 3,0 ; 0
STG 3,0(0,15) ; replyq
* ***
* ***
* *** # 807 "C:\asgkafka\librdkafka\src\rdkafka_queue.h"
* ***
* ***
* ***
* *** r = rd_kafka_q_enq(rkq, rko);
STG 2,176(0,13)
STG 1,184(0,13)
LA 1,176(0,13)
LG 15,@lit_1461_88 ; rd_kafka_q_enq
@@gen_label144 DS 0H
BALR 14,15
@@gen_label145 DS 0H
LR 3,15
* ***
* *** rd_kafka_q_destroy0(rkq, 0 );
STG 2,176(0,13)
XC 184(8,13),184(13)
LA 1,176(0,13)
LG 15,@lit_1461_89 ; rd_kafka_q_destroy0
@@gen_label146 DS 0H
BALR 14,15
@@gen_label147 DS 0H
* ***
* *** return r;
LGFR 15,3
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_replyq_enq"
* (FUNCTION #1461)
*
@AUTO#rd_kafka_replyq_enq DSECT
DS XL168
rd_kafka_replyq_enq#r#0 DS 1F ; r
*
@CODE CSECT
*
*
*
* ....... start of rd_crc32_update
@LNAME1485 DS 0H
DC X'0000000F'
DC C'rd_crc32_update'
DC X'00'
rd_crc32_update DCCPRLG CINDEX=1485,BASER=12,FRAME=176,ENTRY=NO,ARCH=ZA*
RCH,LNAMEADDR=@LNAME1485
DCCPRV REG=2 ; Get PRV from DVT
LGR 3,1 ; ptr to parm area
* ******* End of Prologue
* *
L 15,4(0,3) ; crc
LG 1,8(0,3) ; data
* ***
* ***
* ***
* ***
* *** unsigned int tbl_idx;
* ***
* *** while (data_len--) {
B @L483
DS 0D
@FRAMESIZE_1485 DC F'176'
@lit_1485_91 DC Q(crc_table)
@L482 DS 0H
* *** tbl_idx = (crc ^ *data) & 0xff;
LLC 4,0(0,1)
LR 5,15
XR 5,4
NILF 5,X'000000FF'
* *** crc = (crc_table[tbl_idx] ^ (crc >> 8)) & 0xffffffff;
LLGFR 4,5
LLGF 5,@lit_1485_91 ; crc_table
SLLG 4,4,2(0) ; *0x4
LA 4,0(5,4)
SRL 15,8(0)
X 15,0(4,2)
* ***
* *** data++;
LA 1,1(0,1)
* *** }
@L483 DS 0H
LG 4,16(0,3) ; data_len
LGR 5,4
AGHI 5,-1
STG 5,16(0,3) ; data_len
LTGR 4,4
BNZ @L482
* *** return crc & 0xffffffff;
LLGFR 15,15
* ***
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_crc32_update"
* (FUNCTION #1485)
*
@AUTO#rd_crc32_update DSECT
DS XL168
rd_crc32_update#tbl_idx#0 DS 1F ; tbl_idx
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_write
@LNAME1517 DS 0H
DC X'00000012'
DC C'rd_kafka_buf_write'
DC X'00'
rd_kafka_buf_write DCCPRLG CINDEX=1517,BASER=12,FRAME=200,ENTRY=NO,ARCH*
=ZARCH,LNAMEADDR=@LNAME1517
LGR 4,1 ; ptr to parm area
* ******* End of Prologue
* *
LG 2,0(0,4) ; rkbuf
* *** size_t r;
* ***
* *** r = rd_buf_write(&rkbuf->rkbuf_buf, data, len);
LA 15,40(0,2)
STG 15,176(0,13)
LG 15,8(0,4) ; data
STG 15,184(0,13)
LG 15,16(0,4) ; len
STG 15,192(0,13)
LA 1,176(0,13)
LG 15,@lit_1517_93 ; rd_buf_write
@@gen_label149 DS 0H
BALR 14,15
@@gen_label150 DS 0H
LGR 3,15
* ***
* *** if (rkbuf->rkbuf_flags & 0x4)
TM 35(2),4
BZ @L492
* *** rkbuf->rkbuf_crc = rd_crc32_update(rkbuf->rkbuf_crc, d\
* ata, len);
LLGF 15,176(0,2)
STG 15,176(0,13)
LG 15,8(0,4) ; data
STG 15,184(0,13)
LG 15,16(0,4) ; len
STG 15,192(0,13)
LA 1,176(0,13)
LG 15,@lit_1517_94 ; rd_crc32_update
@@gen_label152 DS 0H
BALR 14,15
@@gen_label153 DS 0H
ST 15,176(0,2)
@L492 DS 0H
* ***
* *** return r;
LGR 15,3
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1517 DC F'200'
@lit_1517_93 DC AD(rd_buf_write)
@lit_1517_94 DC AD(rd_crc32_update)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_write"
* (FUNCTION #1517)
*
@AUTO#rd_kafka_buf_write DSECT
DS XL168
rd_kafka_buf_write#r#0 DS 8XL1 ; r
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_write_i8
@LNAME1519 DS 0H
DC X'00000015'
DC C'rd_kafka_buf_write_i8'
DC X'00'
rd_kafka_buf_write_i8 DCCPRLG CINDEX=1519,BASER=12,FRAME=192,ENTRY=NO,A*
RCH=ZARCH,LNAMEADDR=@LNAME1519
* ******* End of Prologue
* *
* *** return rd_kafka_buf_write(rkbuf, &v, sizeof(v));
LG 15,0(0,1) ; rkbuf
STG 15,168(0,13)
LA 15,15(0,1)
STG 15,176(0,13)
MVGHI 184(13),1
LA 1,168(0,13)
LG 15,@lit_1519_96 ; rd_kafka_buf_write
@@gen_label154 DS 0H
BALR 14,15
@@gen_label155 DS 0H
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1519 DC F'192'
@lit_1519_96 DC AD(rd_kafka_buf_write)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_write_i8"
* (FUNCTION #1519)
*
@AUTO#rd_kafka_buf_write_i8 DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_write_i16
@LNAME1521 DS 0H
DC X'00000016'
DC C'rd_kafka_buf_write_i16'
DC X'00'
rd_kafka_buf_write_i16 DCCPRLG CINDEX=1521,BASER=12,FRAME=192,ENTRY=NO,*
ARCH=ZARCH,LNAMEADDR=@LNAME1521
* ******* End of Prologue
* *
* *** v = (v);
LH 15,14(0,1) ; v
STH 15,14(0,1) ; v
* *** return rd_kafka_buf_write(rkbuf, &v, sizeof(v));
LG 15,0(0,1) ; rkbuf
STG 15,168(0,13)
LA 15,14(0,1)
STG 15,176(0,13)
MVGHI 184(13),2
LA 1,168(0,13)
LG 15,@lit_1521_98 ; rd_kafka_buf_write
@@gen_label156 DS 0H
BALR 14,15
@@gen_label157 DS 0H
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1521 DC F'192'
@lit_1521_98 DC AD(rd_kafka_buf_write)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_write_i16"
* (FUNCTION #1521)
*
@AUTO#rd_kafka_buf_write_i16 DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_write_i32
@LNAME1523 DS 0H
DC X'00000016'
DC C'rd_kafka_buf_write_i32'
DC X'00'
rd_kafka_buf_write_i32 DCCPRLG CINDEX=1523,BASER=12,FRAME=192,ENTRY=NO,*
ARCH=ZARCH,LNAMEADDR=@LNAME1523
* ******* End of Prologue
* *
* *** v = (int32_t)(v);
L 15,12(0,1) ; v
* *** return rd_kafka_buf_write(rkbuf, &v, sizeof(v));
LG 15,0(0,1) ; rkbuf
STG 15,168(0,13)
LA 15,12(0,1)
STG 15,176(0,13)
MVGHI 184(13),4
LA 1,168(0,13)
LG 15,@lit_1523_100 ; rd_kafka_buf_write
@@gen_label158 DS 0H
BALR 14,15
@@gen_label159 DS 0H
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1523 DC F'192'
@lit_1523_100 DC AD(rd_kafka_buf_write)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_write_i32"
* (FUNCTION #1523)
*
@AUTO#rd_kafka_buf_write_i32 DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_write_uvarint
@LNAME1530 DS 0H
DC X'0000001A'
DC C'rd_kafka_buf_write_uvarint'
DC X'00'
rd_kafka_buf_write_uvarint DCCPRLG CINDEX=1530,BASER=12,FRAME=208,ENTRY*
=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1530
LGR 2,1 ; ptr to parm area
* ******* End of Prologue
* *
* *** char varint[(sizeof(v) + 1 + (sizeof(v)/7))];
* *** size_t sz;
* ***
* *** sz = rd_uvarint_enc_u64(varint, sizeof(varint), v);
LA 15,168(0,13)
STG 15,184(0,13)
MVGHI 192(13),10
LG 15,8(0,2) ; v
STG 15,200(0,13)
LA 1,184(0,13)
LG 15,@lit_1530_102 ; rd_uvarint_enc_u64
@@gen_label160 DS 0H
BALR 14,15
@@gen_label161 DS 0H
* ***
* *** return rd_kafka_buf_write(rkbuf, varint, sz);
LG 1,0(0,2) ; rkbuf
STG 1,184(0,13)
LA 1,168(0,13)
STG 1,192(0,13)
STG 15,200(0,13)
LA 1,184(0,13)
LG 15,@lit_1530_103 ; rd_kafka_buf_write
@@gen_label162 DS 0H
BALR 14,15
@@gen_label163 DS 0H
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1530 DC F'208'
@lit_1530_102 DC AD(rd_uvarint_enc_u64)
@lit_1530_103 DC AD(rd_kafka_buf_write)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_write_uvarint"
* (FUNCTION #1530)
*
@AUTO#rd_kafka_buf_write_uvarint DSECT
DS XL168
rd_kafka_buf_write_uvarint#sz#0 DS 8XL1 ; sz
ORG @AUTO#rd_kafka_buf_write_uvarint+168
rd_kafka_buf_write_uvarint#varint#0 DS 10XL1 ; varint
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_write_kstr
@LNAME1531 DS 0H
DC X'00000017'
DC C'rd_kafka_buf_write_kstr'
DC X'00'
rd_kafka_buf_write_kstr DCCPRLG CINDEX=1531,BASER=12,FRAME=216,ENTRY=NO*
,ARCH=ZARCH,LNAMEADDR=@LNAME1531
* ******* End of Prologue
* *
LG 4,0(0,1) ; rkbuf
LG 2,8(0,1) ; kstr
* *** size_t len, r;
* ***
* *** size_t ulen;
* *** size_t alen;
* *** char* cbuf;
* *** if (kstr &&
LTGR 15,2
BZ @L505
* *** !(((kstr)->len == -1)))
CHSI 0(2),-1
BE @L505
* *** {
* *** alen = (((kstr)->len) == -1 ? __strlen((kstr)->str) : \
* ((kstr)->len));
CHSI 0(2),-1
BNE @L506
LG 15,8(0,2)
LGR 1,15
LGHI 0,0
@@gen_label167 DS 0H
SRST 0,15
BC 1,@@gen_label167
SLGR 0,1
B @L507
DS 0D
@FRAMESIZE_1531 DC F'216'
@lit_1531_105 DC AD(calloc)
@lit_1531_106 DC AD(ebcdic_2_utf8)
@lit_1531_107 DC AD(rd_kafka_buf_write_i16)
@lit_1531_109 DC AD(rd_kafka_buf_write)
@lit_1531_110 DC AD(free)
@lit_1531_112 DC AD(rd_kafka_buf_write_uvarint)
@L506 DS 0H
LGF 0,0(0,2)
@L507 DS 0H
STG 0,176(0,13) ; alen
* *** ulen = alen;
STG 0,168(0,13) ; ulen
* *** cbuf = calloc(1, ulen);
MVGHI 184(13),1
STG 0,192(0,13)
LA 1,184(0,13)
LG 15,@lit_1531_105 ; calloc
@@gen_label168 DS 0H
BALR 14,15
@@gen_label169 DS 0H
LGR 5,15
* *** ebcdic_2_utf8(cbuf, &ulen, kstr->str, &alen);
STG 5,184(0,13)
LA 15,168(0,13)
STG 15,192(0,13)
LG 15,8(0,2)
STG 15,200(0,13)
LA 15,176(0,13)
STG 15,208(0,13)
LA 1,184(0,13)
LG 15,@lit_1531_106 ; ebcdic_2_utf8
@@gen_label170 DS 0H
BALR 14,15
@@gen_label171 DS 0H
* *** }
@L505 DS 0H
* ***
* ***
* *** if (!(rkbuf->rkbuf_flags & 0x40)) {
TM 35(4),64
BNZ @L508
* ***
* *** if (!kstr || ((kstr)->len == -1))
LTGR 15,2
BZ @L510
CHSI 0(2),-1
BNE @L509
@L510 DS 0H
* *** return rd_kafka_buf_write_i16(rkbuf, -1);
STG 4,184(0,13)
MVGHI 192(13),-1
LA 1,184(0,13)
LG 15,@lit_1531_107 ; rd_kafka_buf_write_i16
@@gen_label175 DS 0H
BALR 14,15
@@gen_label176 DS 0H
B @ret_lab_1531
@L509 DS 0H
* ***
* *** # 1148 "C:\asgkafka\librdkafka\src\rdkafka_buf.h"
* *** len = ulen;
LG 2,168(0,13) ; ulen
* ***
* *** r = rd_kafka_buf_write_i16(rkbuf, (int16_t)len);
STG 4,184(0,13)
LGHR 15,2
STG 15,192(0,13)
LA 1,184(0,13)
LG 15,@lit_1531_107 ; rd_kafka_buf_write_i16
@@gen_label177 DS 0H
BALR 14,15
@@gen_label178 DS 0H
LGR 3,15 ; r
* ***
* *** rd_kafka_buf_write(rkbuf, cbuf, len);
STMG 4,5,184(13)
STG 2,200(0,13)
LA 1,184(0,13)
LG 15,@lit_1531_109 ; rd_kafka_buf_write
@@gen_label179 DS 0H
BALR 14,15
@@gen_label180 DS 0H
* *** free(cbuf);
STG 5,184(0,13)
LA 1,184(0,13)
LG 15,@lit_1531_110 ; free
@@gen_label181 DS 0H
BALR 14,15
@@gen_label182 DS 0H
* ***
* ***
* ***
* ***
* *** return r;
LGR 15,3
B @ret_lab_1531
* *** }
@L508 DS 0H
* ***
* ***
* ***
* ***
* ***
* ***
* *** if (!kstr || ((kstr)->len == -1))
LTGR 15,2
BZ @L512
CHSI 0(2),-1
BNE @L511
@L512 DS 0H
* *** len = 0;
LGHI 2,0 ; 0
B @L513
* *** else
@L511 DS 0H
* *** {
* ***
* *** len = ulen + 1;
LG 2,168(0,13) ; ulen
AGHI 2,1
* ***
* ***
* ***
* ***
* *** }
@L513 DS 0H
* *** r = rd_kafka_buf_write_uvarint(rkbuf, (uint64_t)len);
STG 4,184(0,13)
STG 2,192(0,13)
LA 1,184(0,13)
LG 15,@lit_1531_112 ; rd_kafka_buf_write_uvarint
@@gen_label185 DS 0H
BALR 14,15
@@gen_label186 DS 0H
LGR 3,15 ; r
* *** if (len > 1)
CLGFI 2,X'00000001'
BNH @L514
* ***
* *** rd_kafka_buf_write(rkbuf, cbuf, len - 1);
STMG 4,5,184(13)
AGHI 2,-1
STG 2,200(0,13)
LA 1,184(0,13)
LG 15,@lit_1531_109 ; rd_kafka_buf_write
@@gen_label188 DS 0H
BALR 14,15
@@gen_label189 DS 0H
@L514 DS 0H
* *** free(cbuf);
STG 5,184(0,13)
LA 1,184(0,13)
LG 15,@lit_1531_110 ; free
@@gen_label190 DS 0H
BALR 14,15
@@gen_label191 DS 0H
* ***
* ***
* ***
* *** return r;
LGR 15,3
* *** }
@ret_lab_1531 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_write_kstr"
* (FUNCTION #1531)
*
@AUTO#rd_kafka_buf_write_kstr DSECT
DS XL168
rd_kafka_buf_write_kstr#ulen#0 DS 8XL1 ; ulen
ORG @AUTO#rd_kafka_buf_write_kstr+168
rd_kafka_buf_write_kstr#r#0 DS 8XL1 ; r
ORG @AUTO#rd_kafka_buf_write_kstr+168
rd_kafka_buf_write_kstr#len#0 DS 8XL1 ; len
ORG @AUTO#rd_kafka_buf_write_kstr+176
rd_kafka_buf_write_kstr#alen#0 DS 8XL1 ; alen
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_destroy_final
rd_kafka_buf_destroy_final ALIAS X'99846D92818692816D82A4866D8485A2A399*
96A86D8689958193'
@LNAME1501 DS 0H
DC X'0000001A'
DC C'rd_kafka_buf_destroy_final'
DC X'00'
rd_kafka_buf_destroy_final DCCPRLG CINDEX=1501,BASER=12,FRAME=208,ENTRY*
=YES,ARCH=ZARCH,LNAMEADDR=@LNAME1501
* ******* End of Prologue
* *
LG 2,0(0,1) ; rkbuf
* ***
* *** switch (rkbuf->rkbuf_reqhdr.ApiKey)
B @L630
DS 0D
@FRAMESIZE_1501 DC F'208'
@lit_1501_116 DC AD(rd_list_destroy)
@lit_1501_117 DC AD(rd_free)
@lit_1501_118 DC AD(rd_kafka_op_reply)
@lit_1501_119 DC AD(mtx_lock)
@lit_1501_122 DC AD(rd_kafka_crash)
@lit_1501_121 DC AD(@DATA)
@lit_1501_120 DC AD(@strings@)
@lit_1501_123 DC AD(mtx_unlock)
@lit_1501_124 DC AD(rd_kafka_msgbatch_destroy)
@lit_1501_125 DC AD(rd_refcnt_sub0)
@lit_1501_126 DC AD(rd_kafka_buf_destroy_final)
@lit_1501_127 DC AD(rd_kafka_replyq_destroy)
@lit_1501_129 DC AD(rd_buf_destroy)
@lit_1501_132 DC AD(rd_kafka_broker_destroy_final)
* *** {
* *** case 3:
@L632 DS 0H
* *** if (rkbuf->rkbuf_u.Metadata.topics)
LTG 15,400(0,2) ; offset of rkbuf_u in rd_kafka_buf_s
BZ @L633
* *** rd_list_destroy(rkbuf->rkbuf_u.Metadat\
* a.topics);
LG 15,400(0,2)
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1501_116 ; rd_list_destroy
@@gen_label193 DS 0H
BALR 14,15
@@gen_label194 DS 0H
@L633 DS 0H
* *** if (rkbuf->rkbuf_u.Metadata.reason)
LTG 15,408(0,2) ; offset of reason in 0000088
BZ @L634
* *** rd_free(rkbuf->rkbuf_u.Metadata.reason\
* );
LG 15,408(0,2)
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1501_117 ; rd_free
@@gen_label196 DS 0H
BALR 14,15
@@gen_label197 DS 0H
@L634 DS 0H
* *** if (rkbuf->rkbuf_u.Metadata.rko)
LTG 15,416(0,2) ; offset of rko in 0000088
BZ @L635
* *** rd_kafka_op_reply(rkbuf->rkbuf_u.Metad\
* ata.rko,
* *** RD_KAFKA_RESP_ERR__D\
* ESTROY);
LG 15,416(0,2)
STG 15,168(0,13)
MVGHI 176(13),-197
LA 1,168(0,13)
LG 15,@lit_1501_118 ; rd_kafka_op_reply
@@gen_label199 DS 0H
BALR 14,15
@@gen_label200 DS 0H
@L635 DS 0H
* *** if (rkbuf->rkbuf_u.Metadata.decr) {
LTG 15,432(0,2) ; offset of decr in 0000088
BZ @L631
* ***
* *** mtx_lock(rkbuf->rkbuf_u.Metadata.decr_\
* lock);
LG 15,440(0,2)
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1501_119 ; mtx_lock
@@gen_label202 DS 0H
BALR 14,15
@@gen_label203 DS 0H
* *** do { if (((!((*rkbuf->rkbuf_u.Metadata\
* .decr) > 0)))) rd_kafka_crash("C:\\asgkafka\\librdkafka\\src\\rdkafk\
* a_buf.c",49, __FUNCTION__, (((void *)0)), "assert: " "(*rkbuf->rkbuf\
* _u.Metadata.decr) > 0"); } while (0);
@L637 DS 0H
LG 15,432(0,2) ; offset of decr in 0000088
CHSI 0(15),0
BH @L640
LG 15,@lit_1501_120
LA 1,156(0,15)
STG 1,168(0,13)
MVGHI 176(13),49
LG 1,@lit_1501_121
LA 1,422(0,1)
STG 1,184(0,13)
XC 192(8,13),192(13)
LA 15,198(0,15)
STG 15,200(0,13)
LA 1,168(0,13)
LG 15,@lit_1501_122 ; rd_kafka_crash
@@gen_label205 DS 0H
BALR 14,15
@@gen_label206 DS 0H
@L640 DS 0H
* ***
* *** (*rkbuf->rkbuf_u.Metadata.decr)--;
LG 15,432(0,2) ; offset of decr in 0000088
L 1,0(0,15)
AHI 1,-1
ST 1,0(0,15)
* *** mtx_unlock(rkbuf->rkbuf_u.Metadata.dec\
* r_lock);
LG 15,440(0,2)
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1501_123 ; mtx_unlock
@@gen_label207 DS 0H
BALR 14,15
@@gen_label208 DS 0H
* *** }
@L636 DS 0H
* *** break;
B @L631
* ***
* *** case 0:
@L641 DS 0H
* *** rd_kafka_msgbatch_destroy(&rkbuf->rkbuf_u.Prod\
* uce.batch);
LA 15,400(0,2)
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1501_124 ; rd_kafka_msgbatch_destroy
@@gen_label209 DS 0H
BALR 14,15
@@gen_label210 DS 0H
* *** break;
B @L631
* *** }
@L630 DS 0H
LH 15,184(0,2)
LTR 15,15
BL @L631
LTR 15,15
BE @L641
CHI 15,3
BE @L632
@L631 DS 0H
* ***
* *** if (rkbuf->rkbuf_response)
LTG 15,248(0,2) ; offset of rkbuf_response in rd_kafka_buf_s
BZ @L642
* *** do { if (rd_refcnt_sub0(&(rkbuf->rkbuf_respons\
* e)->rkbuf_refcnt) > 0) break; rd_kafka_buf_destroy_final(rkbuf->rkbu\
* f_response); } while (0);
@L643 DS 0H
LG 15,248(0,2) ; offset of rkbuf_response in rd_kafka_buf_s
LA 15,264(0,15)
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1501_125 ; rd_refcnt_sub0
@@gen_label212 DS 0H
BALR 14,15
@@gen_label213 DS 0H
LTR 15,15
BH @L642
@L646 DS 0H
LG 15,248(0,2)
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1501_126 ; rd_kafka_buf_destroy_final
@@gen_label215 DS 0H
BALR 14,15
@@gen_label216 DS 0H
@L644 DS 0H
* ***
* *** rd_kafka_replyq_destroy(&rkbuf->rkbuf_replyq);
@L642 DS 0H
LA 15,208(0,2)
STG 15,168(0,13)
LA 1,168(0,13)
LG 3,@lit_1501_127 ; rd_kafka_replyq_destroy
LGR 15,3
@@gen_label217 DS 0H
BALR 14,15
@@gen_label218 DS 0H
* *** rd_kafka_replyq_destroy(&rkbuf->rkbuf_orig_replyq);
LA 15,224(0,2)
STG 15,168(0,13)
LA 1,168(0,13)
LGR 15,3
@@gen_label219 DS 0H
BALR 14,15
@@gen_label220 DS 0H
* ***
* *** rd_buf_destroy(&rkbuf->rkbuf_buf);
LA 15,40(0,2)
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1501_129 ; rd_buf_destroy
@@gen_label221 DS 0H
BALR 14,15
@@gen_label222 DS 0H
* ***
* *** if (rkbuf->rkbuf_rktp_vers)
LTG 15,384(0,2) ; offset of rkbuf_rktp_vers in rd_kafka_buf_*
s
BZ @L647
* *** rd_list_destroy(rkbuf->rkbuf_rktp_vers);
LG 15,384(0,2)
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1501_116 ; rd_list_destroy
@@gen_label224 DS 0H
BALR 14,15
@@gen_label225 DS 0H
@L647 DS 0H
* ***
* *** if (rkbuf->rkbuf_rkb)
LTG 15,256(0,2) ; offset of rkbuf_rkb in rd_kafka_buf_s
BZ @L653
* *** do { if (rd_refcnt_sub0(&(rkbuf->rkbuf_rkb)->r\
* kb_refcnt) > 0) break; rd_kafka_broker_destroy_final(rkbuf->rkbuf_rk\
* b); } while (0);
@L649 DS 0H
LG 15,256(0,2) ; offset of rkbuf_rkb in rd_kafka_buf_s
LA 15,4000(0,15)
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1501_125 ; rd_refcnt_sub0
@@gen_label227 DS 0H
BALR 14,15
@@gen_label228 DS 0H
LTR 15,15
BH @L653
@L652 DS 0H
LG 15,256(0,2)
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1501_132 ; rd_kafka_broker_destroy_final
@@gen_label230 DS 0H
BALR 14,15
@@gen_label231 DS 0H
@L650 DS 0H
* ***
* *** do { } while (0);
@L648 DS 0H
@L653 DS 0H
* ***
* *** rd_free(rkbuf);
STG 2,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1501_117 ; rd_free
@@gen_label232 DS 0H
BALR 14,15
@@gen_label233 DS 0H
* *** }
@ret_lab_1501 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_destroy_final"
* (FUNCTION #1501)
*
@AUTO#rd_kafka_buf_destroy_final DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_push0
rd_kafka_buf_push0 ALIAS X'99846D92818692816D82A4866D97A4A288F0'
@LNAME1502 DS 0H
DC X'00000012'
DC C'rd_kafka_buf_push0'
DC X'00'
rd_kafka_buf_push0 DCCPRLG CINDEX=1502,BASER=12,FRAME=208,ENTRY=YES,ARC*
H=ZARCH,LNAMEADDR=@LNAME1502
LGR 3,1 ; ptr to parm area
* ******* End of Prologue
* *
* *** rd_buf_push0(&rkbuf->rkbuf_buf,buf,len,free_cb,0 );
LG 2,0(0,3) ; rkbuf
LA 15,40(0,2)
STG 15,168(0,13)
LG 15,8(0,3) ; buf
STG 15,176(0,13)
LG 15,16(0,3) ; len
STG 15,184(0,13)
LG 15,32(0,3) ; free_cb
STG 15,192(0,13)
XC 200(8,13),200(13)
LA 1,168(0,13)
LG 15,@lit_1502_135 ; rd_buf_push0
@@gen_label234 DS 0H
BALR 14,15
@@gen_label235 DS 0H
* ***
* *** if (allow_crc_calc && (rkbuf->rkbuf_flags & 0x4))
LT 15,28(0,3) ; allow_crc_calc
BZ @ret_lab_1502
TM 35(2),4
BZ @ret_lab_1502
* *** rkbuf->rkbuf_crc = rd_crc32_update(rkbuf->rkbu\
* f_crc, buf, len);
LLGF 15,176(0,2)
STG 15,168(0,13)
LG 15,8(0,3) ; buf
STG 15,176(0,13)
LG 15,16(0,3) ; len
STG 15,184(0,13)
LA 1,168(0,13)
LG 15,@lit_1502_136 ; rd_crc32_update
@@gen_label238 DS 0H
BALR 14,15
@@gen_label239 DS 0H
ST 15,176(0,2)
@L656 DS 0H
* *** }
@ret_lab_1502 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1502 DC F'208'
@lit_1502_135 DC AD(rd_buf_push0)
@lit_1502_136 DC AD(rd_crc32_update)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_push0"
* (FUNCTION #1502)
*
@AUTO#rd_kafka_buf_push0 DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_new0
rd_kafka_buf_new0 ALIAS X'99846D92818692816D82A4866D9585A6F0'
@LNAME1503 DS 0H
DC X'00000011'
DC C'rd_kafka_buf_new0'
DC X'00'
rd_kafka_buf_new0 DCCPRLG CINDEX=1503,BASER=12,FRAME=200,ENTRY=YES,ARCH*
=ZARCH,LNAMEADDR=@LNAME1503
LGR 3,1 ; ptr to parm area
* ******* End of Prologue
* *
* *** rd_kafka_buf_t *rkbuf;
* ***
* *** rkbuf = rd_calloc(1, sizeof(*rkbuf));
MVGHI 176(13),1
MVGHI 184(13),496
LA 1,176(0,13)
LG 15,@lit_1503_138 ; rd_calloc
@@gen_label240 DS 0H
BALR 14,15
@@gen_label241 DS 0H
LGR 2,15
* ***
* *** rkbuf->rkbuf_flags = flags;
L 1,20(0,3) ; flags
ST 1,32(0,2) ; offset of rkbuf_flags in rd_kafka_buf_s
* ***
* *** rd_buf_init(&rkbuf->rkbuf_buf, segcnt, size);
LA 15,40(0,2)
STG 15,176(0,13)
LGF 15,4(0,3) ; segcnt
STG 15,184(0,13)
LG 15,8(0,3) ; size
STG 15,192(0,13)
LA 1,176(0,13)
LG 15,@lit_1503_139 ; rd_buf_init
@@gen_label242 DS 0H
BALR 14,15
@@gen_label243 DS 0H
* *** rd_atomic32_init(&rkbuf->rkbuf_refcnt, 1);
LA 15,264(0,2)
STG 15,176(0,13)
MVGHI 184(13),1
LA 1,176(0,13)
LG 15,@lit_1503_140 ; rd_atomic32_init
@@gen_label244 DS 0H
BALR 14,15
@@gen_label245 DS 0H
* ***
* *** return rkbuf;
LGR 15,2
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1503 DC F'200'
@lit_1503_138 DC AD(rd_calloc)
@lit_1503_139 DC AD(rd_buf_init)
@lit_1503_140 DC AD(rd_atomic32_init)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_new0"
* (FUNCTION #1503)
*
@AUTO#rd_kafka_buf_new0 DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_new_request0
rd_kafka_buf_new_request0 ALIAS X'99846D92818692816D82A4866D9585A66D998*
598A485A2A3F0'
@LNAME1504 DS 0H
DC X'00000019'
DC C'rd_kafka_buf_new_request0'
DC X'00'
rd_kafka_buf_new_request0 DCCPRLG CINDEX=1504,BASER=12,FRAME=200,ENTRY=*
YES,ARCH=ZARCH,LNAMEADDR=@LNAME1504
LGR 4,1 ; ptr to parm area
* ******* End of Prologue
* *
LG 2,0(0,4) ; rkb
L 15,20(0,4) ; segcnt
LG 1,24(0,4) ; size
* *** rd_kafka_buf_t *rkbuf;
* ***
* ***
* *** size += (4+2+2+4) +
* *** (2 + (((rkb->rkb_rk->rk_client_id)->len) == -1\
* ? 0 : ((rkb->rkb_rk->rk_client_id)->len))) +
LG 3,4048(0,2) ; offset of rkb_rk in rd_kafka_broker_s
LG 3,2400(0,3) ; offset of rk_client_id in rd_kafka_s
CHSI 0(3),-1
BNE @L657
LHI 3,0 ; 0
B @L658
DS 0D
@FRAMESIZE_1504 DC F'200'
@lit_1504_145 DC AD(rd_kafka_buf_new0)
@lit_1504_146 DC AD(rd_atomic32_add)
@lit_1504_147 DC AD(rd_kafka_buf_write_i32)
@lit_1504_148 DC AD(rd_kafka_buf_write_i16)
@lit_1504_151 DC AD(rd_kafka_buf_write_kstr)
@lit_1504_152 DC AD(rd_kafka_buf_write_i8)
@L657 DS 0H
LG 3,4048(0,2) ; offset of rkb_rk in rd_kafka_broker_s
LG 3,2400(0,3) ; offset of rk_client_id in rd_kafka_s
L 3,0(0,3)
@L658 DS 0H
AHI 3,2
AHI 3,12
* ***
* ***
* ***
* *** (is_flexver ? 1 + 1 : 0);
CLI 39(4),0
BE @L659
LHI 5,2 ; 2
B @L660
@L659 DS 0H
LHI 5,0 ; 0
@L660 DS 0H
AR 3,5
LGFR 3,3
ALGR 1,3
* *** segcnt += 1;
AHI 15,1
* ***
* *** rkbuf = rd_kafka_buf_new0(segcnt, size, 0);
LGFR 15,15
STG 15,176(0,13)
STG 1,184(0,13)
XC 192(8,13),192(13)
LA 1,176(0,13)
LG 15,@lit_1504_145 ; rd_kafka_buf_new0
@@gen_label248 DS 0H
BALR 14,15
@@gen_label249 DS 0H
LGR 3,15
* ***
* *** rkbuf->rkbuf_rkb = rkb;
STG 2,256(0,3) ; offset of rkbuf_rkb in rd_kafka_buf_s
* *** rd_atomic32_add(&(rkb)->rkb_refcnt, 1);
LA 15,4000(0,2)
STG 15,176(0,13)
MVGHI 184(13),1
LA 1,176(0,13)
LG 15,@lit_1504_146 ; rd_atomic32_add
@@gen_label250 DS 0H
BALR 14,15
@@gen_label251 DS 0H
* ***
* *** rkbuf->rkbuf_rel_timeout = rkb->rkb_rk->rk_conf.socket\
* _timeout_ms;
LG 15,4048(0,2) ; offset of rkb_rk in rd_kafka_broker_s
L 15,812(0,15) ; offset of socket_timeout_ms in rd_kafka_c*
onf_s
ST 15,368(0,3) ; offset of rkbuf_rel_timeout in rd_kafka_bu*
f_s
* *** rkbuf->rkbuf_max_retries = 2;
MVHI 320(3),2 ; offset of rkbuf_max_retries in rd_kafka_bu*
f_s
* ***
* *** rkbuf->rkbuf_reqhdr.ApiKey = ApiKey;
MVC 184(2,3),14(4)
* ***
* ***
* ***
* *** rd_kafka_buf_write_i32(rkbuf, 0);
STG 3,176(0,13)
XC 184(8,13),184(13)
LA 1,176(0,13)
LG 5,@lit_1504_147 ; rd_kafka_buf_write_i32
LGR 15,5
@@gen_label252 DS 0H
BALR 14,15
@@gen_label253 DS 0H
* ***
* *** rd_kafka_buf_write_i16(rkbuf, rkbuf->rkbuf_reqhdr.ApiK\
* ey);
STG 3,176(0,13)
LGH 15,184(0,3)
STG 15,184(0,13)
LA 1,176(0,13)
LG 6,@lit_1504_148 ; rd_kafka_buf_write_i16
LGR 15,6
@@gen_label254 DS 0H
BALR 14,15
@@gen_label255 DS 0H
* ***
* *** rd_kafka_buf_write_i16(rkbuf, 0);
STG 3,176(0,13)
XC 184(8,13),184(13)
LA 1,176(0,13)
LGR 15,6
@@gen_label256 DS 0H
BALR 14,15
@@gen_label257 DS 0H
* ***
* *** rd_kafka_buf_write_i32(rkbuf, 0);
STG 3,176(0,13)
XC 184(8,13),184(13)
LA 1,176(0,13)
LGR 15,5
@@gen_label258 DS 0H
BALR 14,15
@@gen_label259 DS 0H
* ***
* ***
* *** rd_kafka_buf_write_kstr(rkbuf, rkb->rkb_rk->rk_client_\
* id);
STG 3,176(0,13)
LG 15,4048(0,2) ; offset of rkb_rk in rd_kafka_broker_s
LG 15,2400(0,15)
STG 15,184(0,13)
LA 1,176(0,13)
LG 15,@lit_1504_151 ; rd_kafka_buf_write_kstr
@@gen_label260 DS 0H
BALR 14,15
@@gen_label261 DS 0H
* ***
* *** if (is_flexver) {
CLI 39(4),0
BE @L661
* ***
* ***
* *** rkbuf->rkbuf_flags |= 0x40;
L 15,32(0,3)
OILL 15,64
ST 15,32(0,3)
* ***
* ***
* *** rd_kafka_buf_write_i8(rkbuf, 0);
STG 3,176(0,13)
XC 184(8,13),184(13)
LA 1,176(0,13)
LG 15,@lit_1504_152 ; rd_kafka_buf_write_i8
@@gen_label263 DS 0H
BALR 14,15
@@gen_label264 DS 0H
* *** }
@L661 DS 0H
* ***
* *** return rkbuf;
LGR 15,3
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_new_request0"
* (FUNCTION #1504)
*
@AUTO#rd_kafka_buf_new_request0 DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_new_shadow
rd_kafka_buf_new_shadow ALIAS X'99846D92818692816D82A4866D9585A66DA2888*
18496A6'
@LNAME1505 DS 0H
DC X'00000017'
DC C'rd_kafka_buf_new_shadow'
DC X'00'
rd_kafka_buf_new_shadow DCCPRLG CINDEX=1505,BASER=12,FRAME=216,ENTRY=YE*
S,ARCH=ZARCH,LNAMEADDR=@LNAME1505
LGR 3,1 ; ptr to parm area
* ******* End of Prologue
* *
* *** rd_kafka_buf_t *rkbuf;
* ***
* *** rkbuf = rd_calloc(1, sizeof(*rkbuf));
MVGHI 176(13),1
MVGHI 184(13),496
LA 1,176(0,13)
LG 15,@lit_1505_154 ; rd_calloc
@@gen_label265 DS 0H
BALR 14,15
@@gen_label266 DS 0H
LGR 2,15
* ***
* *** rkbuf->rkbuf_reqhdr.ApiKey = -1;
MVHHI 184(2),-1 ; offset of ApiKey in rd_kafkap_reqhdr
* ***
* *** rd_buf_init(&rkbuf->rkbuf_buf, 1, 0);
LA 15,40(0,2)
STG 15,176(0,13)
MVGHI 184(13),1
XC 192(8,13),192(13)
LA 1,176(0,13)
LG 15,@lit_1505_155 ; rd_buf_init
@@gen_label267 DS 0H
BALR 14,15
@@gen_label268 DS 0H
* *** rd_buf_push0(&rkbuf->rkbuf_buf,ptr,size,free_cb,0 );
LA 15,40(0,2)
STG 15,176(0,13)
LG 15,0(0,3) ; ptr
STG 15,184(0,13)
LG 15,8(0,3) ; size
STG 15,192(0,13)
LG 15,16(0,3) ; free_cb
STG 15,200(0,13)
XC 208(8,13),208(13)
LA 1,176(0,13)
LG 15,@lit_1505_156 ; rd_buf_push0
@@gen_label269 DS 0H
BALR 14,15
@@gen_label270 DS 0H
* ***
* *** rkbuf->rkbuf_totlen = size;
LG 15,8(0,3) ; size
STG 15,168(0,2) ; offset of rkbuf_totlen in rd_kafka_buf_s
* ***
* ***
* *** rd_slice_init_full(&rkbuf->rkbuf_reader, &rkbuf->rkbuf\
* _buf);
LA 15,120(0,2)
STG 15,176(0,13)
LA 15,40(0,2)
STG 15,184(0,13)
LA 1,176(0,13)
LG 15,@lit_1505_157 ; rd_slice_init_full
@@gen_label271 DS 0H
BALR 14,15
@@gen_label272 DS 0H
* ***
* *** rd_atomic32_init(&rkbuf->rkbuf_refcnt, 1);
LA 15,264(0,2)
STG 15,176(0,13)
MVGHI 184(13),1
LA 1,176(0,13)
LG 15,@lit_1505_158 ; rd_atomic32_init
@@gen_label273 DS 0H
BALR 14,15
@@gen_label274 DS 0H
* ***
* *** return rkbuf;
LGR 15,2
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1505 DC F'216'
@lit_1505_154 DC AD(rd_calloc)
@lit_1505_155 DC AD(rd_buf_init)
@lit_1505_156 DC AD(rd_buf_push0)
@lit_1505_157 DC AD(rd_slice_init_full)
@lit_1505_158 DC AD(rd_atomic32_init)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_new_shadow"
* (FUNCTION #1505)
*
@AUTO#rd_kafka_buf_new_shadow DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_bufq_enq
rd_kafka_bufq_enq ALIAS X'99846D92818692816D82A486986D859598'
@LNAME1506 DS 0H
DC X'00000011'
DC C'rd_kafka_bufq_enq'
DC X'00'
rd_kafka_bufq_enq DCCPRLG CINDEX=1506,BASER=12,FRAME=184,ENTRY=YES,ARCH*
=ZARCH,LNAMEADDR=@LNAME1506
* ******* End of Prologue
* *
* *** do { (rkbuf)->rkbuf_link .tqe_next = (((void *)0)); (rkbuf\
* )->rkbuf_link .tqe_prev = (&rkbufq->rkbq_bufs)->tqh_last; *(&rkbufq-\
* >rkbq_bufs)->tqh_last = (rkbuf); (&rkbufq->rkbq_bufs)->tqh_last = &(\
* rkbuf)->rkbuf_link .tqe_next; } while ( 0);
LMG 2,3,0(1) ; rkbufq
@L662 DS 0H
LGHI 15,0 ; 0
STG 15,0(0,3) ; rkbuf
LG 15,8(0,2) ; offset of tqh_last in 0000091
STG 15,8(0,3) ; offset of tqe_prev in 0000086
LG 15,8(0,2) ; offset of tqh_last in 0000091
STG 3,0(0,15)
STG 3,8(0,2) ; offset of tqh_last in 0000091
* *** rd_atomic32_add(&rkbufq->rkbq_cnt, 1);
LA 15,16(0,2)
STG 15,168(0,13)
MVGHI 176(13),1
LA 1,168(0,13)
LG 4,@lit_1506_161 ; rd_atomic32_add
LGR 15,4
@@gen_label275 DS 0H
BALR 14,15
@@gen_label276 DS 0H
* *** if (rkbuf->rkbuf_reqhdr.ApiKey == 0)
LH 15,184(0,3)
LTR 15,15
BNE @ret_lab_1506
* *** rd_atomic32_add(&rkbufq->rkbq_msg_cnt,
* *** rd_kafka_msgq_len(&rkbuf->rkbu\
* f_u.Produce.batch .msgq));
LA 15,408(0,3)
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1506_162 ; rd_kafka_msgq_len
@@gen_label278 DS 0H
BALR 14,15
@@gen_label279 DS 0H
LA 1,64(0,2)
STG 1,168(0,13)
LGFR 15,15
STG 15,176(0,13)
LA 1,168(0,13)
LGR 15,4
@@gen_label280 DS 0H
BALR 14,15
@@gen_label281 DS 0H
@L665 DS 0H
* *** }
@ret_lab_1506 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1506 DC F'184'
@lit_1506_161 DC AD(rd_atomic32_add)
@lit_1506_162 DC AD(rd_kafka_msgq_len)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_bufq_enq"
* (FUNCTION #1506)
*
@AUTO#rd_kafka_bufq_enq DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_bufq_deq
rd_kafka_bufq_deq ALIAS X'99846D92818692816D82A486986D848598'
@LNAME1507 DS 0H
DC X'00000011'
DC C'rd_kafka_bufq_deq'
DC X'00'
rd_kafka_bufq_deq DCCPRLG CINDEX=1507,BASER=12,FRAME=208,ENTRY=YES,ARCH*
=ZARCH,LNAMEADDR=@LNAME1507
* ******* End of Prologue
* *
* *** do { if (((rkbuf)->rkbuf_link .tqe_next) != (((void *)0))\
* ) (rkbuf)->rkbuf_link .tqe_next->rkbuf_link .tqe_prev = (rkbuf)->rkb\
* uf_link .tqe_prev; else (&rkbufq->rkbq_bufs)->tqh_last = (rkbuf)->rk\
* buf_link .tqe_prev; *(rkbuf)->rkbuf_link .tqe_prev = (rkbuf)->rkbuf_\
* link .tqe_next; ; } while ( 0);
LMG 2,3,0(1) ; rkbufq
@L666 DS 0H
LTG 15,0(0,3) ; rkbuf
BE @L669
LG 15,0(0,3) ; rkbuf
LG 1,8(0,3) ; offset of tqe_prev in 0000086
STG 1,8(0,15) ; offset of tqe_prev in 0000086
B @L670
DS 0D
@FRAMESIZE_1507 DC F'208'
@lit_1507_165 DC AD(rd_atomic32_get)
@lit_1507_168 DC AD(rd_kafka_crash)
@lit_1507_167 DC AD(@DATA)
@lit_1507_166 DC AD(@strings@)
@lit_1507_169 DC AD(rd_atomic32_sub)
@lit_1507_170 DC AD(rd_kafka_msgq_len)
@L669 DS 0H
LG 15,8(0,3) ; offset of tqe_prev in 0000086
STG 15,8(0,2) ; offset of tqh_last in 0000091
@L670 DS 0H
LG 15,8(0,3) ; offset of tqe_prev in 0000086
LG 1,0(0,3) ; rkbuf
STG 1,0(0,15)
* *** do { if (((!(rd_atomic32_get(&rkbufq->rkbq_cnt) > 0)))) rd_\
* kafka_crash("C:\\asgkafka\\librdkafka\\src\\rdkafka_buf.c",216, __FU\
* NCTION__, (((void *)0)), "assert: " "rd_atomic32_get(&rkbufq->rkbq_c\
* nt) > 0"); } while (0);
@L671 DS 0H
LA 15,16(0,2)
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1507_165 ; rd_atomic32_get
@@gen_label283 DS 0H
BALR 14,15
@@gen_label284 DS 0H
LTR 15,15
BH @L674
LG 15,@lit_1507_166
LA 1,156(0,15)
STG 1,168(0,13)
MVGHI 176(13),216
LG 1,@lit_1507_167
LA 1,450(0,1)
STG 1,184(0,13)
XC 192(8,13),192(13)
LA 15,242(0,15)
STG 15,200(0,13)
LA 1,168(0,13)
LG 15,@lit_1507_168 ; rd_kafka_crash
@@gen_label286 DS 0H
BALR 14,15
@@gen_label287 DS 0H
@L674 DS 0H
* *** rd_atomic32_sub(&rkbufq->rkbq_cnt, 1);
LA 15,16(0,2)
STG 15,168(0,13)
MVGHI 176(13),1
LA 1,168(0,13)
LG 4,@lit_1507_169 ; rd_atomic32_sub
LGR 15,4
@@gen_label288 DS 0H
BALR 14,15
@@gen_label289 DS 0H
* *** if (rkbuf->rkbuf_reqhdr.ApiKey == 0)
LH 15,184(0,3)
LTR 15,15
BNE @ret_lab_1507
* *** rd_atomic32_sub(&rkbufq->rkbq_msg_cnt,
* *** rd_kafka_msgq_len(&rkbuf->rkbu\
* f_u.Produce.batch .msgq));
LA 15,408(0,3)
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1507_170 ; rd_kafka_msgq_len
@@gen_label291 DS 0H
BALR 14,15
@@gen_label292 DS 0H
LA 1,64(0,2)
STG 1,168(0,13)
LGFR 15,15
STG 15,176(0,13)
LA 1,168(0,13)
LGR 15,4
@@gen_label293 DS 0H
BALR 14,15
@@gen_label294 DS 0H
@L675 DS 0H
* *** }
@ret_lab_1507 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_bufq_deq"
* (FUNCTION #1507)
*
@AUTO#rd_kafka_bufq_deq DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_bufq_init
rd_kafka_bufq_init ALIAS X'99846D92818692816D82A486986D899589A3'
@LNAME1508 DS 0H
DC X'00000012'
DC C'rd_kafka_bufq_init'
DC X'00'
rd_kafka_bufq_init DCCPRLG CINDEX=1508,BASER=12,FRAME=184,ENTRY=YES,ARC*
H=ZARCH,LNAMEADDR=@LNAME1508
* ******* End of Prologue
* *
* *** do { (&rkbufq->rkbq_bufs)->tqh_first = (((void *)0)); (&rkb\
* ufq->rkbq_bufs)->tqh_last = &(&rkbufq->rkbq_bufs)->tqh_first; } whil\
* e ( 0);
LG 2,0(0,1) ; rkbufq
@L676 DS 0H
LGHI 15,0 ; 0
STG 15,0(0,2) ; rkbufq
STG 2,8(0,2) ; offset of tqh_last in 0000091
* *** rd_atomic32_init(&rkbufq->rkbq_cnt, 0);
LA 15,16(0,2)
STG 15,168(0,13)
XC 176(8,13),176(13)
LA 1,168(0,13)
LG 3,@lit_1508_174 ; rd_atomic32_init
LGR 15,3
@@gen_label295 DS 0H
BALR 14,15
@@gen_label296 DS 0H
* *** rd_atomic32_init(&rkbufq->rkbq_msg_cnt, 0);
LA 15,64(0,2)
STG 15,168(0,13)
XC 176(8,13),176(13)
LA 1,168(0,13)
LGR 15,3
@@gen_label297 DS 0H
BALR 14,15
@@gen_label298 DS 0H
* *** }
@ret_lab_1508 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1508 DC F'184'
@lit_1508_174 DC AD(rd_atomic32_init)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_bufq_init"
* (FUNCTION #1508)
*
@AUTO#rd_kafka_bufq_init DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_bufq_concat
rd_kafka_bufq_concat ALIAS X'99846D92818692816D82A486986D8396958381A3'
@LNAME1509 DS 0H
DC X'00000014'
DC C'rd_kafka_bufq_concat'
DC X'00'
rd_kafka_bufq_concat DCCPRLG CINDEX=1509,BASER=12,FRAME=184,ENTRY=YES,A*
RCH=ZARCH,LNAMEADDR=@LNAME1509
* ******* End of Prologue
* *
* *** do { if (!(((&src->rkbq_bufs)->tqh_first) == (((void *)0)))\
* ) { *(&dst->rkbq_bufs)->tqh_last = (&src->rkbq_bufs)->tqh_first; (&s\
* rc->rkbq_bufs)->tqh_first->rkbuf_link .tqe_prev = (&dst->rkbq_bufs)-\
* >tqh_last; (&dst->rkbq_bufs)->tqh_last = (&src->rkbq_bufs)->tqh_last\
* ; do { ((&src->rkbq_bufs))->tqh_first = (((void *)0)); ((&src->rkbq_\
* bufs))->tqh_last = &((&src->rkbq_bufs))->tqh_first; } while ( 0); } \
* } while ( 0);
LMG 2,3,0(1) ; dst
@L679 DS 0H
LTG 15,0(0,3) ; src
BE @L682
LG 15,8(0,2) ; offset of tqh_last in 0000091
LG 1,0(0,3) ; src
STG 1,0(0,15)
LG 15,0(0,3) ; src
LG 1,8(0,2) ; offset of tqh_last in 0000091
STG 1,8(0,15) ; offset of tqe_prev in 0000086
LG 15,8(0,3) ; offset of tqh_last in 0000091
STG 15,8(0,2) ; offset of tqh_last in 0000091
@L683 DS 0H
LGHI 15,0 ; 0
STG 15,0(0,3) ; src
STG 3,8(0,3) ; offset of tqh_last in 0000091
@L682 DS 0H
* *** (void)rd_atomic32_add(&dst->rkbq_cnt, rd_atomic32_get(&src-\
* >rkbq_cnt));
LA 15,16(0,3)
STG 15,168(0,13)
LA 1,168(0,13)
LG 4,@lit_1509_178 ; rd_atomic32_get
LGR 15,4
@@gen_label300 DS 0H
BALR 14,15
@@gen_label301 DS 0H
LA 1,16(0,2)
STG 1,168(0,13)
LGFR 15,15
STG 15,176(0,13)
LA 1,168(0,13)
LG 5,@lit_1509_179 ; rd_atomic32_add
LGR 15,5
@@gen_label302 DS 0H
BALR 14,15
@@gen_label303 DS 0H
* *** (void)rd_atomic32_add(&dst->rkbq_msg_cnt, rd_atomic32_get(&\
* src->rkbq_msg_cnt));
LA 15,64(0,3)
STG 15,168(0,13)
LA 1,168(0,13)
LGR 15,4
@@gen_label304 DS 0H
BALR 14,15
@@gen_label305 DS 0H
LA 1,64(0,2)
STG 1,168(0,13)
LGFR 15,15
STG 15,176(0,13)
LA 1,168(0,13)
LGR 15,5
@@gen_label306 DS 0H
BALR 14,15
@@gen_label307 DS 0H
* *** rd_kafka_bufq_init(src);
STG 3,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1509_182 ; rd_kafka_bufq_init
@@gen_label308 DS 0H
BALR 14,15
@@gen_label309 DS 0H
* *** }
@ret_lab_1509 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1509 DC F'184'
@lit_1509_178 DC AD(rd_atomic32_get)
@lit_1509_179 DC AD(rd_atomic32_add)
@lit_1509_182 DC AD(rd_kafka_bufq_init)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_bufq_concat"
* (FUNCTION #1509)
*
@AUTO#rd_kafka_bufq_concat DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_bufq_purge
rd_kafka_bufq_purge ALIAS X'99846D92818692816D82A486986D97A4998785'
@LNAME1510 DS 0H
DC X'00000013'
DC C'rd_kafka_bufq_purge'
DC X'00'
rd_kafka_bufq_purge DCCPRLG CINDEX=1510,BASER=12,FRAME=488,ENTRY=YES,AR*
CH=ZARCH,LNAMEADDR=@LNAME1510
LGR 4,1 ; ptr to parm area
* ******* End of Prologue
* *
LG 2,0(0,4) ; rkb
* *** rd_kafka_buf_t *rkbuf, *tmp;
* ***
* *** do { if (((!(thrd_is_current(rkb->rkb_thread))))) rd_kafka_\
* crash("C:\\asgkafka\\librdkafka\\src\\rdkafka_buf.c",250, __FUNCTION\
* __, (rkb->rkb_rk), "assert: " "thrd_is_current(rkb->rkb_thread)"); }\
* while (0);
@L686 DS 0H
LG 15,3992(0,2)
STG 15,424(0,13)
LA 1,424(0,13)
LG 15,@lit_1510_184 ; thrd_is_current
@@gen_label310 DS 0H
BALR 14,15
@@gen_label311 DS 0H
LTR 15,15
BNZ @L689
LG 15,@lit_1510_185
LA 1,156(0,15)
STG 1,424(0,13)
MVGHI 432(13),250
LG 1,@lit_1510_186
LA 1,468(0,1)
STG 1,440(0,13)
LG 1,4048(0,2)
STG 1,448(0,13)
LA 15,290(0,15)
STG 15,456(0,13)
LA 1,424(0,13)
LG 15,@lit_1510_187 ; rd_kafka_crash
@@gen_label313 DS 0H
BALR 14,15
@@gen_label314 DS 0H
@L689 DS 0H
* ***
* *** do { if ((((rkb)->rkb_rk->rk_conf.debug & (0x20)))) { do { \
* char _logname[256]; mtx_lock(&(rkb)->rkb_logname_lock); rd_strlcpy(_\
* 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, (0x20), "BUFQ", "Purging bufq with %i buffers", rd_at\
* omic32_get(&rkbufq->rkbq_cnt)); } while (0); } } while (0);
@L690 DS 0H
LG 15,4048(0,2) ; offset of rkb_rk in rd_kafka_broker_s
TM 803(15),32
BZ @L693
@L694 DS 0H
LGHI 3,5688 ; 5688
LA 15,0(3,2)
STG 15,424(0,13)
LA 1,424(0,13)
LG 15,@lit_1510_189 ; mtx_lock
@@gen_label316 DS 0H
BALR 14,15
@@gen_label317 DS 0H
LA 15,168(0,13)
STG 15,424(0,13)
LGHI 15,5680 ; 5680
LG 15,0(15,2)
STG 15,432(0,13)
MVGHI 440(13),256
LA 1,424(0,13)
LG 15,@lit_1510_191 ; rd_strlcpy
@@gen_label318 DS 0H
BALR 14,15
@@gen_label319 DS 0H
LA 15,0(3,2)
STG 15,424(0,13)
LA 1,424(0,13)
LG 15,@lit_1510_193 ; mtx_unlock
@@gen_label320 DS 0H
BALR 14,15
@@gen_label321 DS 0H
LG 15,8(0,4) ; rkbufq
LA 15,16(0,15)
STG 15,424(0,13)
LA 1,424(0,13)
LG 15,@lit_1510_194 ; rd_atomic32_get
@@gen_label322 DS 0H
BALR 14,15
@@gen_label323 DS 0H
LG 1,4048(0,2) ; offset of rkb_rk in rd_kafka_broker_s
LA 1,528(0,1)
STG 1,424(0,13)
LG 1,4048(0,2)
STG 1,432(0,13)
LA 1,168(0,13)
STG 1,440(0,13)
MVGHI 448(13),7
MVGHI 456(13),32
LG 1,@lit_1510_185
LA 3,332(0,1)
STG 3,464(0,13)
LA 1,338(0,1)
STG 1,472(0,13)
LGFR 15,15
STG 15,480(0,13)
LA 1,424(0,13)
LG 15,@lit_1510_196 ; rd_kafka_log0
@@gen_label324 DS 0H
BALR 14,15
@@gen_label325 DS 0H
@L693 DS 0H
* ***
* ***
* *** for ((rkbuf) = ((&rkbufq->rkbq_bufs)->tqh_first); (rkbuf) !\
* = (((void *)0)) && ((tmp) = ((rkbuf)->rkbuf_link .tqe_next), 1); (rk\
* buf) = (tmp)) {
LG 15,8(0,4) ; rkbufq
LG 15,0(0,15) ; rkbufq
B @L698
DS 0D
@FRAMESIZE_1510 DC F'488'
@lit_1510_184 DC AD(thrd_is_current)
@lit_1510_187 DC AD(rd_kafka_crash)
@lit_1510_186 DC AD(@DATA)
@lit_1510_185 DC AD(@strings@)
@lit_1510_189 DC AD(mtx_lock)
@lit_1510_191 DC AD(rd_strlcpy)
@lit_1510_193 DC AD(mtx_unlock)
@lit_1510_194 DC AD(rd_atomic32_get)
@lit_1510_196 DC AD(rd_kafka_log0)
@lit_1510_197 DC AD(rd_kafka_buf_callback)
@L697 DS 0H
* *** rd_kafka_buf_callback(rkb->rkb_rk, rkb, err, (\
* (void *)0), rkbuf);
LG 1,4048(0,2)
STMG 1,2,424(13)
LGF 1,20(0,4) ; err
STG 1,440(0,13)
XC 448(8,13),448(13)
STG 15,456(0,13)
LA 1,424(0,13)
LG 15,@lit_1510_197 ; rd_kafka_buf_callback
@@gen_label326 DS 0H
BALR 14,15
@@gen_label327 DS 0H
* *** }
LGR 15,3 ; rkbuf
@L698 DS 0H
LTGR 1,15
BE @L699
LG 3,0(0,15) ; rkbuf
B @L697
@L699 DS 0H
* *** }
@ret_lab_1510 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_bufq_purge"
* (FUNCTION #1510)
*
@AUTO#rd_kafka_bufq_purge DSECT
DS XL168
rd_kafka_bufq_purge#_logname#4 DS 256XL1 ; _logname
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_bufq_connection_reset
rd_kafka_bufq_connection_reset ALIAS X'99846D92818692816D82A486986D8396*
95958583A38996956D9985A285A3'
@LNAME1511 DS 0H
DC X'0000001E'
DC C'rd_kafka_bufq_connection_reset'
DC X'00'
rd_kafka_bufq_connection_reset DCCPRLG CINDEX=1511,BASER=12,FRAME=488,E*
NTRY=YES,ARCH=ZARCH,LNAMEADDR=@LNAME1511
* ******* End of Prologue
* *
LMG 3,4,0(1) ; rkb
* *** rd_kafka_buf_t *rkbuf, *tmp;
* *** rd_ts_t now = rd_clock();
LG 15,@lit_1511_199 ; rd_clock
@@gen_label329 DS 0H
BALR 14,15
@@gen_label330 DS 0H
LGR 6,15
* ***
* *** do { if (((!(thrd_is_current(rkb->rkb_thread))))) rd_kafka_\
* crash("C:\\asgkafka\\librdkafka\\src\\rdkafka_buf.c",276, __FUNCTION\
* __, (rkb->rkb_rk), "assert: " "thrd_is_current(rkb->rkb_thread)"); }\
* while (0);
@L702 DS 0H
LG 15,3992(0,3)
STG 15,424(0,13)
LA 1,424(0,13)
LG 15,@lit_1511_200 ; thrd_is_current
@@gen_label331 DS 0H
BALR 14,15
@@gen_label332 DS 0H
LTR 15,15
BNZ @L705
LG 15,@lit_1511_201
LA 1,156(0,15)
STG 1,424(0,13)
MVGHI 432(13),276
LG 1,@lit_1511_202
LA 1,488(0,1)
STG 1,440(0,13)
LG 1,4048(0,3)
STG 1,448(0,13)
LA 15,290(0,15)
STG 15,456(0,13)
LA 1,424(0,13)
LG 15,@lit_1511_203 ; rd_kafka_crash
@@gen_label334 DS 0H
BALR 14,15
@@gen_label335 DS 0H
@L705 DS 0H
* ***
* *** do { if ((((rkb)->rkb_rk->rk_conf.debug & (0x20)))) { do { \
* char _logname[256]; mtx_lock(&(rkb)->rkb_logname_lock); rd_strlcpy(_\
* 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, (0x20), "BUFQ", "Updating %d buffers on connection re\
* set", rd_atomic32_get(&rkbufq->rkbq_cnt)); } while (0); } } while (0\
* );
@L706 DS 0H
LG 15,4048(0,3) ; offset of rkb_rk in rd_kafka_broker_s
TM 803(15),32
BZ @L709
@L710 DS 0H
LGHI 2,5688 ; 5688
LA 15,0(2,3)
STG 15,424(0,13)
LA 1,424(0,13)
LG 15,@lit_1511_205 ; mtx_lock
@@gen_label337 DS 0H
BALR 14,15
@@gen_label338 DS 0H
LA 15,168(0,13)
STG 15,424(0,13)
LGHI 15,5680 ; 5680
LG 15,0(15,3)
STG 15,432(0,13)
MVGHI 440(13),256
LA 1,424(0,13)
LG 15,@lit_1511_207 ; rd_strlcpy
@@gen_label339 DS 0H
BALR 14,15
@@gen_label340 DS 0H
LA 15,0(2,3)
STG 15,424(0,13)
LA 1,424(0,13)
LG 15,@lit_1511_209 ; mtx_unlock
@@gen_label341 DS 0H
BALR 14,15
@@gen_label342 DS 0H
LA 15,16(0,4)
STG 15,424(0,13)
LA 1,424(0,13)
LG 15,@lit_1511_210 ; rd_atomic32_get
@@gen_label343 DS 0H
BALR 14,15
@@gen_label344 DS 0H
LG 1,4048(0,3) ; offset of rkb_rk in rd_kafka_broker_s
LA 1,528(0,1)
STG 1,424(0,13)
LG 1,4048(0,3)
STG 1,432(0,13)
LA 1,168(0,13)
STG 1,440(0,13)
MVGHI 448(13),7
MVGHI 456(13),32
LG 1,@lit_1511_201
LA 2,332(0,1)
STG 2,464(0,13)
LA 1,368(0,1)
STG 1,472(0,13)
LGFR 15,15
STG 15,480(0,13)
LA 1,424(0,13)
LG 15,@lit_1511_212 ; rd_kafka_log0
@@gen_label345 DS 0H
BALR 14,15
@@gen_label346 DS 0H
@L709 DS 0H
* ***
* ***
* ***
* *** for ((rkbuf) = ((&rkbufq->rkbq_bufs)->tqh_first); (rkbuf) !\
* = (((void *)0)) && ((tmp) = ((rkbuf)->rkbuf_link .tqe_next), 1); (rk\
* buf) = (tmp)) {
LG 2,0(0,4) ; rkbufq
B @L714
DS 0D
@FRAMESIZE_1511 DC F'488'
@lit_1511_199 DC AD(rd_clock)
@lit_1511_200 DC AD(thrd_is_current)
@lit_1511_203 DC AD(rd_kafka_crash)
@lit_1511_202 DC AD(@DATA)
@lit_1511_201 DC AD(@strings@)
@lit_1511_205 DC AD(mtx_lock)
@lit_1511_207 DC AD(rd_strlcpy)
@lit_1511_209 DC AD(mtx_unlock)
@lit_1511_210 DC AD(rd_atomic32_get)
@lit_1511_212 DC AD(rd_kafka_log0)
@lit_1511_213 DC AD(rd_kafka_bufq_deq)
@lit_1511_214 DC AD(rd_kafka_buf_callback)
@lit_1511_215 DC AD(rd_slice_seek)
@lit_1511_216 DC AD(rd_kafka_buf_calc_timeout)
* *** switch (rkbuf->rkbuf_reqhdr.ApiKey)
* *** {
* *** case 18:
* *** case 17:
@L721 DS 0H
* *** rd_kafka_bufq_deq(rkbufq, rkbuf);
STG 4,424(0,13)
STG 2,432(0,13)
LA 1,424(0,13)
LG 15,@lit_1511_213 ; rd_kafka_bufq_deq
@@gen_label347 DS 0H
BALR 14,15
@@gen_label348 DS 0H
* *** rd_kafka_buf_callback(rkb->rkb_rk, rkb,
* *** RD_KAFKA_RESP_ERR__DESTROY,
* *** ((void *)0), rkbuf);
LG 15,4048(0,3)
STG 15,424(0,13)
STG 3,432(0,13)
MVGHI 440(13),-197
XC 448(8,13),448(13)
STG 2,456(0,13)
LA 1,424(0,13)
LG 15,@lit_1511_214 ; rd_kafka_buf_callback
@@gen_label349 DS 0H
BALR 14,15
@@gen_label350 DS 0H
* *** break;
B @L719
* *** default:
* ***
* *** rd_slice_seek(&rkbuf->rkbuf_reader, 0)\
* ;
@L722 DS 0H
LA 15,120(0,2)
STG 15,424(0,13)
XC 432(8,13),432(13)
LA 1,424(0,13)
LG 15,@lit_1511_215 ; rd_slice_seek
@@gen_label351 DS 0H
BALR 14,15
@@gen_label352 DS 0H
* *** rkbuf->rkbuf_corrid = 0;
MVHI 16(2),0 ; offset of rkbuf_corrid in rd_kafka_buf_s
* ***
* *** rd_kafka_buf_calc_timeout(rkb->rkb_rk,\
* rkbuf, now);
LG 15,4048(0,3)
STG 15,424(0,13)
STG 2,432(0,13)
STG 6,440(0,13)
LA 1,424(0,13)
LG 15,@lit_1511_216 ; rd_kafka_buf_calc_timeout
@@gen_label353 DS 0H
BALR 14,15
@@gen_label354 DS 0H
* *** break;
B @L719
* *** }
@L718 DS 0H
LH 15,184(0,2)
AHI 15,-17
CLFI 15,X'00000001'
BNH @L721
B @L722
@L719 DS 0H
* *** }
LGR 2,5 ; rkbuf
@L714 DS 0H
LTGR 15,2
BE @L715
LG 5,0(0,2) ; rkbuf
B @L718
@L715 DS 0H
* *** }
@ret_lab_1511 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_bufq_connection_reset"
* (FUNCTION #1511)
*
@AUTO#rd_kafka_bufq_connection_reset DSECT
DS XL168
rd_kafka_bufq_connection_reset#_logname#4 DS 256XL1 ; _logname
ORG @AUTO#rd_kafka_bufq_connection_reset+168
rd_kafka_bufq_connection_reset#now#0 DS 8XL1 ; now
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_bufq_dump
rd_kafka_bufq_dump ALIAS X'99846D92818692816D82A486986D84A49497'
@LNAME1512 DS 0H
DC X'00000012'
DC C'rd_kafka_bufq_dump'
DC X'00'
rd_kafka_bufq_dump DCCPRLG CINDEX=1512,BASER=12,FRAME=544,ENTRY=YES,ARC*
H=ZARCH,LNAMEADDR=@LNAME1512
LGR 5,1 ; ptr to parm area
* ******* End of Prologue
* *
LG 3,0(0,5) ; rkb
* *** rd_kafka_buf_t *rkbuf;
* *** int cnt = rd_atomic32_get(&(rkbq)->rkbq_cnt);
LG 15,16(0,5) ; rkbq
LA 15,16(0,15)
STG 15,424(0,13)
LA 1,424(0,13)
LG 15,@lit_1512_218 ; rd_atomic32_get
@@gen_label356 DS 0H
BALR 14,15
@@gen_label357 DS 0H
LTR 2,15
* *** rd_ts_t now;
* ***
* *** if (!cnt)
BZ @ret_lab_1512
* *** return;
@L723 DS 0H
* ***
* *** now = rd_clock();
LG 15,@lit_1512_219 ; rd_clock
@@gen_label359 DS 0H
BALR 14,15
@@gen_label360 DS 0H
LGR 4,15
* ***
* *** do { if ((((rkb)->rkb_rk->rk_conf.debug & (0x2)))) { d\
* o { char _logname[256]; mtx_lock(&(rkb)->rkb_logname_lock); rd_strlc\
* py(_logname, rkb->rkb_logname, sizeof(_logname)); mtx_unlock(&(rkb)-\
* >rkb_logname_lock); rd_kafka_log0(&(rkb)->rkb_rk->rk_conf, (rkb)->rk\
* b_rk, _logname, 7, (0x2), fac, "bufq with %d buffer(s):", cnt); } wh\
* ile (0); } } while (0);
@L724 DS 0H
LG 15,4048(0,3) ; offset of rkb_rk in rd_kafka_broker_s
TM 803(15),2
BZ @L727
@L728 DS 0H
LGHI 6,5688 ; 5688
LA 15,0(6,3)
STG 15,424(0,13)
LA 1,424(0,13)
LG 15,@lit_1512_221 ; mtx_lock
@@gen_label362 DS 0H
BALR 14,15
@@gen_label363 DS 0H
LA 15,168(0,13)
STG 15,424(0,13)
LGHI 15,5680 ; 5680
LG 15,0(15,3)
STG 15,432(0,13)
MVGHI 440(13),256
LA 1,424(0,13)
LG 15,@lit_1512_223 ; rd_strlcpy
@@gen_label364 DS 0H
BALR 14,15
@@gen_label365 DS 0H
LA 15,0(6,3)
STG 15,424(0,13)
LA 1,424(0,13)
LG 15,@lit_1512_225 ; mtx_unlock
@@gen_label366 DS 0H
BALR 14,15
@@gen_label367 DS 0H
LG 15,4048(0,3) ; offset of rkb_rk in rd_kafka_broker_s
LA 15,528(0,15)
STG 15,424(0,13)
LG 15,4048(0,3)
STG 15,432(0,13)
LA 15,168(0,13)
STG 15,440(0,13)
MVGHI 448(13),7
MVGHI 456(13),2
LG 15,8(0,5) ; fac
STG 15,464(0,13)
LG 15,@lit_1512_226
LA 15,408(0,15)
STG 15,472(0,13)
LGFR 15,2
STG 15,480(0,13)
LA 1,424(0,13)
LG 15,@lit_1512_227 ; rd_kafka_log0
@@gen_label368 DS 0H
BALR 14,15
@@gen_label369 DS 0H
@L727 DS 0H
* ***
* *** for ((rkbuf) = ((&rkbq->rkbq_bufs)->tqh_first); (rkbuf\
* ) != (((void *)0)); (rkbuf) = ((rkbuf)->rkbuf_link .tqe_next)) {
LG 15,16(0,5) ; rkbq
LG 2,0(0,15) ; rkbq
B @L732
DS 0D
@FRAMESIZE_1512 DC F'544'
@lit_1512_218 DC AD(rd_atomic32_get)
@lit_1512_219 DC AD(rd_clock)
@lit_1512_221 DC AD(mtx_lock)
@lit_1512_223 DC AD(rd_strlcpy)
@lit_1512_225 DC AD(mtx_unlock)
@lit_1512_227 DC AD(rd_kafka_log0)
@lit_1512_226 DC AD(@strings@)
@lit_1512_234 DC AD(rd_kafka_$Api$Key2str)
@lit_1512_235 DC F'1000' 0x000003e8
* *** do { if ((((rkb)->rkb_rk->rk_conf.debug & (0x2\
* )))) { do { char _logname[256]; mtx_lock(&(rkb)->rkb_logname_lock); \
* rd_strlcpy(_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, (0x2), fac, " Buffer %s (%" "zu" " bytes,\
* corrid %" "d" ", " "connid %d, prio %d, retry %d in %lldms, " "time\
* out in %lldms)", rd_kafka_ApiKey2str(rkbuf->rkbuf_reqhdr.ApiKey), rk\
* buf->rkbuf_totlen, rkbuf->rkbuf_corrid, rkbuf->rkbuf_connid, rkbuf->\
* rkbuf_prio, rkbuf->rkbuf_retries, rkbuf->rkbuf_ts_retry ? (rkbuf->rk\
* buf_ts_retry - now) / 1000LL : 0, rkbuf->rkbuf_ts_timeout ? (rkbuf->\
* rkbuf_ts_timeout - now) / 1000LL : 0); } while (0); } } while (0);
@L735 DS 0H
LG 15,4048(0,3) ; offset of rkb_rk in rd_kafka_broker_s
TM 803(15),2
BZ @L738
@L739 DS 0H
LGHI 6,5688 ; 5688
LA 15,0(6,3)
STG 15,424(0,13)
LA 1,424(0,13)
LG 15,@lit_1512_221 ; mtx_lock
@@gen_label371 DS 0H
BALR 14,15
@@gen_label372 DS 0H
LA 15,168(0,13)
STG 15,424(0,13)
LGHI 15,5680 ; 5680
LG 15,0(15,3)
STG 15,432(0,13)
MVGHI 440(13),256
LA 1,424(0,13)
LG 15,@lit_1512_223 ; rd_strlcpy
@@gen_label373 DS 0H
BALR 14,15
@@gen_label374 DS 0H
LA 15,0(6,3)
STG 15,424(0,13)
LA 1,424(0,13)
LG 15,@lit_1512_225 ; mtx_unlock
@@gen_label375 DS 0H
BALR 14,15
@@gen_label376 DS 0H
LGH 15,184(0,2)
STG 15,424(0,13)
LA 1,424(0,13)
LG 15,@lit_1512_234 ; rd_kafka_ApiKey2str
@@gen_label377 DS 0H
BALR 14,15
@@gen_label378 DS 0H
LTG 1,24(0,2) ; offset of rkbuf_ts_retry in rd_kafka_buf_s
BZ @L742
LG 1,24(0,2) ; offset of rkbuf_ts_retry in rd_kafka_buf_s
SGR 1,4
LGR 7,1
DSGF 6,@lit_1512_235
B @L743
@L742 DS 0H
LGHI 7,0 ; 0
@L743 DS 0H
LTG 1,352(0,2) ; offset of rkbuf_ts_timeout in rd_kafka_buf*
_s
BZ @L744
LG 1,352(0,2) ; offset of rkbuf_ts_timeout in rd_kafka_buf*
_s
SGR 1,4
LGR 9,1
DSGF 8,@lit_1512_235
B @L745
@L744 DS 0H
LGHI 9,0 ; 0
@L745 DS 0H
LG 1,4048(0,3) ; offset of rkb_rk in rd_kafka_broker_s
LA 1,528(0,1)
STG 1,424(0,13)
LG 1,4048(0,3)
STG 1,432(0,13)
LA 1,168(0,13)
STG 1,440(0,13)
MVGHI 448(13),7
MVGHI 456(13),2
LG 1,8(0,5) ; fac
STG 1,464(0,13)
LG 1,@lit_1512_226
LA 1,432(0,1)
STG 1,472(0,13)
STG 15,480(0,13)
LG 15,168(0,2)
STG 15,488(0,13)
LGF 15,16(0,2)
STG 15,496(0,13)
LGF 15,160(0,2)
STG 15,504(0,13)
LGF 15,36(0,2)
STG 15,512(0,13)
LGF 15,324(0,2)
STG 15,520(0,13)
STG 7,528(0,13)
STG 9,536(0,13)
LA 1,424(0,13)
LG 15,@lit_1512_227 ; rd_kafka_log0
@@gen_label381 DS 0H
BALR 14,15
@@gen_label382 DS 0H
@L738 DS 0H
* *** # 330 "C:\asgkafka\librdkafka\src\rdkafka_buf.c"
* *** }
LG 2,0(0,2) ; rkbuf
@L732 DS 0H
LTGR 15,2
BNE @L735
* *** }
@ret_lab_1512 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_bufq_dump"
* (FUNCTION #1512)
*
@AUTO#rd_kafka_bufq_dump DSECT
DS XL168
rd_kafka_bufq_dump#_logname#7 DS 256XL1 ; _logname
ORG @AUTO#rd_kafka_bufq_dump+168
rd_kafka_bufq_dump#_logname#3 DS 256XL1 ; _logname
ORG @AUTO#rd_kafka_bufq_dump+168
rd_kafka_bufq_dump#now#0 DS 8XL1 ; now
ORG @AUTO#rd_kafka_bufq_dump+168
rd_kafka_bufq_dump#cnt#0 DS 1F ; cnt
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_calc_timeout
rd_kafka_buf_calc_timeout ALIAS X'99846D92818692816D82A4866D838193836DA*
389948596A4A3'
@LNAME1499 DS 0H
DC X'00000019'
DC C'rd_kafka_buf_calc_timeout'
DC X'00'
rd_kafka_buf_calc_timeout DCCPRLG CINDEX=1499,BASER=12,FRAME=176,SAVEAR*
EA=NO,ENTRY=YES,ARCH=ZARCH,LNAMEADDR=@LNAME1499
* ******* End of Prologue
* *
* *** if (((rkbuf->rkbuf_rel_timeout))) {
LG 15,8(0,1) ; rkbuf
LT 2,368(0,15) ; offset of rkbuf_rel_timeout in rd_kafka_bu*
f_s
BZ @L746
* ***
* ***
* ***
* *** rkbuf->rkbuf_ts_timeout = now + rkbuf->rkbuf_r\
* el_timeout * 1000;
LG 1,16(0,1) ; now
L 2,368(0,15) ; offset of rkbuf_rel_timeout in rd_kafka_bu*
f_s
MHI 2,1000
AGFR 1,2
STG 1,352(0,15) ; offset of rkbuf_ts_timeout in rd_kafka_buf*
_s
* *** } else if (!rkbuf->rkbuf_force_timeout) {
B @ret_lab_1499
@L746 DS 0H
CLI 372(15),0
BNE @L748
* ***
* *** rd_ts_t sock_timeout = now +
* *** rk->rk_conf.socket_timeout_ms * 1000;
LG 2,16(0,1) ; now
LG 1,0(0,1) ; rk
L 1,812(0,1) ; offset of socket_timeout_ms in rd_kafka_co*
nf_s
MHI 1,1000
AGFR 2,1
* ***
* *** rkbuf->rkbuf_ts_timeout =
* *** ((sock_timeout) < (rkbuf->rkbuf_abs_ti\
* meout) ? (sock_timeout) : (rkbuf->rkbuf_abs_timeout));
CG 2,360(0,15)
BNL @L749
LGR 1,2
B @L750
@L749 DS 0H
LG 1,360(0,15) ; offset of rkbuf_abs_timeout in rd_kafka_bu*
f_s
@L750 DS 0H
STG 1,352(0,15)
* *** } else {
B @ret_lab_1499
@L748 DS 0H
* ***
* *** rkbuf->rkbuf_ts_timeout = rkbuf->rkbuf_abs_tim\
* eout;
LG 1,360(0,15) ; offset of rkbuf_abs_timeout in rd_kafka_bu*
f_s
STG 1,352(0,15) ; offset of rkbuf_ts_timeout in rd_kafka_buf*
_s
* *** }
@L751 DS 0H
* *** }
@L747 DS 0H
@ret_lab_1499 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_calc_timeout"
* (FUNCTION #1499)
*
@AUTO#rd_kafka_buf_calc_timeout DSECT
DS XL168
rd_kafka_buf_calc_timeout#sock_timeout#2 DS 8XL1 ; sock_timeout
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_retry
rd_kafka_buf_retry ALIAS X'99846D92818692816D82A4866D9985A399A8'
@LNAME1513 DS 0H
DC X'00000012'
DC C'rd_kafka_buf_retry'
DC X'00'
rd_kafka_buf_retry DCCPRLG CINDEX=1513,BASER=12,FRAME=208,ENTRY=YES,ARC*
H=ZARCH,LNAMEADDR=@LNAME1513
* ******* End of Prologue
* *
* *** int incr_retry = ((rkbuf)->rkbuf_flags & 0x20) ? 1 : 0\
* ;
LMG 2,3,0(1) ; rkb
TM 35(3),32
BZ @L752
LHI 4,1 ; 1
B @L753
DS 0D
@FRAMESIZE_1513 DC F'208'
@lit_1513_244 DC AD(rd_buf_len)
@lit_1513_247 DC AD(__assert)
@lit_1513_246 DC AD(@strings@)
@lit_1513_245 DC AD(@DATA)
@lit_1513_248 DC AD(rd_atomic32_get)
@lit_1513_250 DC AD(rd_clock)
@lit_1513_252 DC AD(rd_atomic32_add)
@lit_1513_253 DC AD(rd_kafka_broker_buf_retry)
@L752 DS 0H
LHI 4,0 ; 0
@L753 DS 0H
* ***
* ***
* *** ((rd_buf_len(&rkbuf->rkbuf_buf) > 0) ? (void)0 : __ass\
* ert(__func__, "C:\\asgkafka\\librdkafka\\src\\rdkafka_buf.c", 371, "\
* rd_buf_len(&rkbuf->rkbuf_buf) > 0"));
LA 15,40(0,3)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1513_244 ; rd_buf_len
@@gen_label388 DS 0H
BALR 14,15
@@gen_label389 DS 0H
CLGFI 15,X'00000000'
BH @L755
@L754 DS 0H
LG 15,@lit_1513_245
LA 15,520(0,15)
STG 15,176(0,13)
LG 15,@lit_1513_246
LA 1,156(0,15)
STG 1,184(0,13)
MVGHI 192(13),371
LA 15,526(0,15)
STG 15,200(0,13)
LA 1,176(0,13)
LG 15,@lit_1513_247 ; __assert
@@gen_label391 DS 0H
BALR 14,15
@@gen_label392 DS 0H
@L755 DS 0H
* ***
* *** if (((!rkb || rkb->rkb_source == RD_KAFKA_INTERNAL || \
* (rd_atomic32_get(&(rkb->rkb_rk)->rk_terminate) & 0x1) || rkbuf->rkbu\
* f_retries + incr_retry > rkbuf->rkbuf_max_retries)))
LTGR 15,2
BZ @L759
CHSI 328(2),2
BE @L759
@L756 DS 0H
LG 15,4048(0,2) ; offset of rkb_rk in rd_kafka_broker_s
LA 15,2416(0,15)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1513_248 ; rd_atomic32_get
@@gen_label395 DS 0H
BALR 14,15
@@gen_label396 DS 0H
TML 15,1
BNZ @L759
@L757 DS 0H
LR 15,4
A 15,324(0,3)
C 15,320(0,3)
BNH @L758
@L759 DS 0H
* ***
* ***
* ***
* ***
* *** return 0;
LGHI 15,0 ; 0
B @ret_lab_1513
@L758 DS 0H
* ***
* ***
* *** if (rkbuf->rkbuf_abs_timeout &&
LTG 15,360(0,3) ; offset of rkbuf_abs_timeout in rd_kafka_bu*
f_s
BZ @L760
* *** rkbuf->rkbuf_abs_timeout < rd_clock())
LG 5,360(0,3) ; offset of rkbuf_abs_timeout in rd_kafka_bu*
f_s
LG 15,@lit_1513_250 ; rd_clock
@@gen_label400 DS 0H
BALR 14,15
@@gen_label401 DS 0H
CGR 5,15
BNL @L760
* *** return 0;
LGHI 15,0 ; 0
B @ret_lab_1513
@L760 DS 0H
* ***
* ***
* *** rkbuf->rkbuf_ts_sent = 0;
MVGHI 344(3),0 ; offset of rkbuf_ts_sent in rd_kafka_buf_s
* *** rkbuf->rkbuf_ts_timeout = 0;
MVGHI 352(3),0 ; offset of rkbuf_ts_timeout in rd_kafka_buf*
_s
* *** rkbuf->rkbuf_retries += incr_retry;
A 4,324(0,3)
ST 4,324(0,3)
* *** rd_atomic32_add(&(rkbuf)->rkbuf_refcnt, 1);
LA 15,264(0,3)
STG 15,176(0,13)
MVGHI 184(13),1
LA 1,176(0,13)
LG 15,@lit_1513_252 ; rd_atomic32_add
@@gen_label403 DS 0H
BALR 14,15
@@gen_label404 DS 0H
* *** rd_kafka_broker_buf_retry(rkb, rkbuf);
STMG 2,3,176(13)
LA 1,176(0,13)
LG 15,@lit_1513_253 ; rd_kafka_broker_buf_retry
@@gen_label405 DS 0H
BALR 14,15
@@gen_label406 DS 0H
* *** return 1;
LGHI 15,1 ; 1
* *** }
@ret_lab_1513 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_retry"
* (FUNCTION #1513)
*
@AUTO#rd_kafka_buf_retry DSECT
DS XL168
rd_kafka_buf_retry#incr_retry#0 DS 1F ; incr_retry
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_handle_op
rd_kafka_buf_handle_op ALIAS X'99846D92818692816D82A4866D8881958493856D*
9697'
@LNAME1514 DS 0H
DC X'00000016'
DC C'rd_kafka_buf_handle_op'
DC X'00'
rd_kafka_buf_handle_op DCCPRLG CINDEX=1514,BASER=12,FRAME=216,ENTRY=YES*
,ARCH=ZARCH,LNAMEADDR=@LNAME1514
LGR 5,1 ; ptr to parm area
* ******* End of Prologue
* *
LG 2,0(0,5) ; rko
* *** rd_kafka_buf_t *request, *response;
* *** rd_kafka_t *rk;
* ***
* *** request = rko->rko_u.xbuf.rkbuf;
LG 3,112(0,2) ; offset of rko_u in rd_kafka_op_s
* *** rko->rko_u.xbuf.rkbuf = ((void *)0);
LGHI 6,0 ; 0
STG 6,112(0,2) ; offset of rko_u in rd_kafka_op_s
* ***
* ***
* *** if (request->rkbuf_replyq.q) {
LTG 15,208(0,3) ; offset of rkbuf_replyq in rd_kafka_buf_s
BZ @L761
* *** int32_t version = request->rkbuf_replyq.version;
L 4,216(0,3) ; offset of version in rd_kafka_replyq_s
* ***
* ***
* ***
* *** request->rkbuf_orig_replyq = request->rkbuf_re\
* plyq;
MVC 224(16,3),208(3)
* *** rd_kafka_replyq_clear(&request->rkbuf_replyq);
LA 15,208(0,3)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1514_257 ; rd_kafka_replyq_clear
@@gen_label408 DS 0H
BALR 14,15
@@gen_label409 DS 0H
* ***
* ***
* *** request->rkbuf_replyq.version = version;
ST 4,216(0,3) ; offset of version in rd_kafka_replyq_s
* *** }
@L761 DS 0H
* ***
* *** if (!request->rkbuf_cb) {
LTG 15,240(0,3) ; offset of rkbuf_cb in rd_kafka_buf_s
BNZ @L762
* *** do { if (rd_refcnt_sub0(&(request)->rkbuf_refcnt) > 0) b\
* reak; rd_kafka_buf_destroy_final(request); } while (0);
@L763 DS 0H
LA 15,264(0,3)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1514_258 ; rd_refcnt_sub0
@@gen_label411 DS 0H
BALR 14,15
@@gen_label412 DS 0H
LTR 15,15
BH @ret_lab_1514
@L766 DS 0H
STG 3,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1514_259 ; rd_kafka_buf_destroy_final
@@gen_label414 DS 0H
BALR 14,15
@@gen_label415 DS 0H
@L764 DS 0H
* *** return;
B @ret_lab_1514
DS 0D
@FRAMESIZE_1514 DC F'216'
@lit_1514_257 DC AD(rd_kafka_replyq_clear)
@lit_1514_258 DC AD(rd_refcnt_sub0)
@lit_1514_259 DC AD(rd_kafka_buf_destroy_final)
@lit_1514_263 DC AD(__assert)
@lit_1514_262 DC AD(@strings@)
@lit_1514_261 DC AD(@DATA)
@lit_1514_264 DC AD(rd_kafka_buf_callback)
* *** }
@L762 DS 0H
* ***
* ***
* *** response = request->rkbuf_response;
LG 4,248(0,3) ; offset of rkbuf_response in rd_kafka_buf_s
* *** request->rkbuf_response = ((void *)0);
STG 6,248(0,3) ; offset of rkbuf_response in rd_kafka_buf_s
* ***
* *** if (!(rk = rko->rko_rk)) {
LG 15,96(0,2) ; offset of rko_rk in rd_kafka_op_s
LTGR 1,15
BNZ @L767
* *** ((request->rkbuf_rkb != ((void *)0)) ? (void)0\
* : __assert(__func__, "C:\\asgkafka\\librdkafka\\src\\rdkafka_buf.c"\
* , 428, "request->rkbuf_rkb != ((void *)0)"));
LTG 15,256(0,3) ; offset of rkbuf_rkb in rd_kafka_buf_s
BNE @L769
@L768 DS 0H
LG 15,@lit_1514_261
LA 15,540(0,15)
STG 15,176(0,13)
LG 15,@lit_1514_262
LA 1,156(0,15)
STG 1,184(0,13)
MVGHI 192(13),428
LA 15,560(0,15)
STG 15,200(0,13)
LA 1,176(0,13)
LG 15,@lit_1514_263 ; __assert
@@gen_label418 DS 0H
BALR 14,15
@@gen_label419 DS 0H
@L769 DS 0H
* *** rk = request->rkbuf_rkb->rkb_rk;
LG 15,256(0,3) ; offset of rkbuf_rkb in rd_kafka_buf_s
LG 15,4048(0,15) ; offset of rkb_rk in rd_kafka_broker_s
* *** }
@L767 DS 0H
* ***
* *** rd_kafka_buf_callback(rk, request->rkbuf_rkb, err, res\
* ponse, request);
STG 15,176(0,13)
LG 15,256(0,3)
STG 15,184(0,13)
LGF 15,12(0,5) ; err
STG 15,192(0,13)
STG 4,200(0,13)
STG 3,208(0,13)
LA 1,176(0,13)
LG 15,@lit_1514_264 ; rd_kafka_buf_callback
@@gen_label420 DS 0H
BALR 14,15
@@gen_label421 DS 0H
* *** }
@ret_lab_1514 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_handle_op"
* (FUNCTION #1514)
*
@AUTO#rd_kafka_buf_handle_op DSECT
DS XL168
rd_kafka_buf_handle_op#version#1 DS 1F ; version
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_callback
rd_kafka_buf_callback ALIAS X'99846D92818692816D82A4866D838193938281839*
2'
@LNAME1515 DS 0H
DC X'00000015'
DC C'rd_kafka_buf_callback'
DC X'00'
rd_kafka_buf_callback DCCPRLG CINDEX=1515,BASER=12,FRAME=256,ENTRY=YES,*
ARCH=ZARCH,LNAMEADDR=@LNAME1515
LGR 6,1 ; ptr to parm area
* ******* End of Prologue
* *
LG 2,8(0,6) ; rkb
L 3,20(0,6) ; err
LMG 4,5,24(6) ; response
* ***
* *** rd_kafka_interceptors_on_response_received(
* *** rk,
* *** -1,
* *** rkb ? rd_kafka_broker_name(rkb) : "",
* *** rkb ? rd_kafka_broker_id(rkb) : -1,
* *** request->rkbuf_reqhdr.ApiKey,
* *** request->rkbuf_reqhdr.ApiVersion,
* *** request->rkbuf_reshdr.CorrId,
* *** response ? response->rkbuf_totlen : 0,
* *** response ? response->rkbuf_ts_sent : -1,
* *** err);
LTGR 15,2
BZ @L770
STG 2,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1515_266 ; rd_kafka_broker_name
@@gen_label423 DS 0H
BALR 14,15
@@gen_label424 DS 0H
LGR 7,15
B @L771
DS 0D
@FRAMESIZE_1515 DC F'256'
@lit_1515_266 DC AD(rd_kafka_broker_name)
@lit_1515_267 DC AD(@strings@)
@lit_1515_268 DC AD(rd_kafka_broker_id)
@lit_1515_272 DC AD(rd_kafka_interceptors_on_response_received)
@lit_1515_273 DC AD(rd_kafka_op_new0)
@lit_1515_276 DC AD(rd_kafka_crash)
@lit_1515_275 DC AD(@DATA)
@lit_1515_277 DC AD(rd_atomic32_add)
@lit_1515_278 DC AD(rd_kafka_replyq_copy)
@lit_1515_279 DC AD(rd_kafka_replyq_enq)
@lit_1515_280 DC AD(rd_refcnt_sub0)
@lit_1515_281 DC AD(rd_kafka_buf_destroy_final)
@L770 DS 0H
LG 15,@lit_1515_267
LA 7,594(0,15)
@L771 DS 0H
LTGR 15,2
BZ @L772
STG 2,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1515_268 ; rd_kafka_broker_id
@@gen_label426 DS 0H
BALR 14,15
@@gen_label427 DS 0H
B @L773
@L772 DS 0H
LHI 15,-1 ; -1
@L773 DS 0H
LTGR 1,4
BZ @L774
LG 1,168(0,4) ; offset of rkbuf_totlen in rd_kafka_buf_s
B @L775
@L774 DS 0H
LGHI 1,0 ; 0
@L775 DS 0H
LTGR 8,4
BZ @L776
LG 8,344(0,4) ; offset of rkbuf_ts_sent in rd_kafka_buf_s
B @L777
@L776 DS 0H
LGHI 8,-1 ; -1
@L777 DS 0H
LG 9,0(0,6) ; rk
STG 9,176(0,13)
MVGHI 184(13),-1
STG 7,192(0,13)
LGFR 15,15
STG 15,200(0,13)
LGH 15,184(0,5)
STG 15,208(0,13)
LGH 15,186(0,5)
STG 15,216(0,13)
LGF 15,196(0,5)
STG 15,224(0,13)
STG 1,232(0,13)
STG 8,240(0,13)
LGFR 15,3
STG 15,248(0,13)
LA 1,176(0,13)
LG 15,@lit_1515_272 ; rd_kafka_interceptors_on_response_rec*
eived
@@gen_label430 DS 0H
BALR 14,15
@@gen_label431 DS 0H
* ***
* *** if (err != RD_KAFKA_RESP_ERR__DESTROY && request->rkbu\
* f_replyq.q) {
CHI 3,-197
BE @L778
LTG 15,208(0,5) ; offset of rkbuf_replyq in rd_kafka_buf_s
BZ @L778
* *** rd_kafka_op_t *rko = rd_kafka_op_new0(((void *\
* )0), RD_KAFKA_OP_RECV_BUF);
XC 176(8,13),176(13)
MVGHI 184(13),9
LA 1,176(0,13)
LG 15,@lit_1515_273 ; rd_kafka_op_new0
@@gen_label434 DS 0H
BALR 14,15
@@gen_label435 DS 0H
LGR 2,15
* ***
* *** do { if (((!(!request->rkbuf_response)))) rd_kafka_crash\
* ("C:\\asgkafka\\librdkafka\\src\\rdkafka_buf.c",469, __FUNCTION__, (\
* ((void *)0)), "assert: " "!request->rkbuf_response"); } while (0);
@L779 DS 0H
LTG 15,248(0,5) ; offset of rkbuf_response in rd_kafka_buf_s
BZ @L782
LG 15,@lit_1515_267
LA 1,156(0,15)
STG 1,176(0,13)
MVGHI 184(13),469
LG 1,@lit_1515_275
LA 1,564(0,1)
STG 1,192(0,13)
XC 200(8,13),200(13)
LA 15,596(0,15)
STG 15,208(0,13)
LA 1,176(0,13)
LG 15,@lit_1515_276 ; rd_kafka_crash
@@gen_label437 DS 0H
BALR 14,15
@@gen_label438 DS 0H
@L782 DS 0H
* *** request->rkbuf_response = response;
STG 4,248(0,5) ; offset of rkbuf_response in rd_kafka_buf_s
* ***
* ***
* ***
* ***
* *** rd_atomic32_add(&(request)->rkbuf_refcnt, 1);
LA 15,264(0,5)
STG 15,176(0,13)
MVGHI 184(13),1
LA 1,176(0,13)
LG 15,@lit_1515_277 ; rd_atomic32_add
@@gen_label439 DS 0H
BALR 14,15
@@gen_label440 DS 0H
* *** rko->rko_u.xbuf.rkbuf = request;
STG 5,112(0,2) ; offset of rko_u in rd_kafka_op_s
* ***
* *** rko->rko_err = err;
ST 3,32(0,2) ; offset of rko_err in rd_kafka_op_s
* ***
* ***
* ***
* *** rd_kafka_replyq_copy(&request->rkbuf_orig_repl\
* yq,
* *** &request->rkbuf_replyq);
LA 15,224(0,5)
STG 15,176(0,13)
LA 15,208(0,5)
STG 15,184(0,13)
LA 1,176(0,13)
LG 15,@lit_1515_278 ; rd_kafka_replyq_copy
@@gen_label441 DS 0H
BALR 14,15
@@gen_label442 DS 0H
* ***
* *** rd_kafka_replyq_enq(&request->rkbuf_replyq, rko, 0)\
* ;
LA 15,208(0,5)
STG 15,176(0,13)
STG 2,184(0,13)
XC 192(8,13),192(13)
LA 1,176(0,13)
LG 15,@lit_1515_279 ; rd_kafka_replyq_enq
@@gen_label443 DS 0H
BALR 14,15
@@gen_label444 DS 0H
* ***
* *** do { if (rd_refcnt_sub0(&(request)->rkbuf_refcnt) > 0) b\
* reak; rd_kafka_buf_destroy_final(request); } while (0);
@L783 DS 0H
LA 15,264(0,5)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1515_280 ; rd_refcnt_sub0
@@gen_label445 DS 0H
BALR 14,15
@@gen_label446 DS 0H
LTR 15,15
BH @ret_lab_1515
@L786 DS 0H
STG 5,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1515_281 ; rd_kafka_buf_destroy_final
@@gen_label448 DS 0H
BALR 14,15
@@gen_label449 DS 0H
@L784 DS 0H
* *** return;
B @ret_lab_1515
* *** }
@L778 DS 0H
* ***
* *** if (request->rkbuf_cb)
LTG 15,240(0,5) ; offset of rkbuf_cb in rd_kafka_buf_s
BZ @L788
* *** request->rkbuf_cb(rk, rkb, err, response, requ\
* est,
* *** request->rkbuf_opaque);
LG 15,0(0,6) ; rk
STG 15,176(0,13)
STG 2,184(0,13)
LGFR 15,3
STG 15,192(0,13)
STMG 4,5,200(13)
LG 15,312(0,5)
STG 15,216(0,13)
LG 15,240(0,5) ; offset of rkbuf_cb in rd_kafka_buf_s
LA 1,176(0,13)
@@gen_label451 DS 0H
BALR 14,15
@@gen_label452 DS 0H
@L787 DS 0H
* ***
* *** do { if (rd_refcnt_sub0(&(request)->rkbuf_refcnt) > 0)\
* break; rd_kafka_buf_destroy_final(request); } while (0);
@L788 DS 0H
LA 15,264(0,5)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1515_280 ; rd_refcnt_sub0
@@gen_label453 DS 0H
BALR 14,15
@@gen_label454 DS 0H
LTR 15,15
BH @L789
@L791 DS 0H
STG 5,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1515_281 ; rd_kafka_buf_destroy_final
@@gen_label456 DS 0H
BALR 14,15
@@gen_label457 DS 0H
@L789 DS 0H
* *** if (response)
LTGR 15,4
BZ @ret_lab_1515
* *** do { if (rd_refcnt_sub0(&(response)->rkbuf_refcnt) > 0) \
* break; rd_kafka_buf_destroy_final(response); } while (0);
@L793 DS 0H
LA 15,264(0,4)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1515_280 ; rd_refcnt_sub0
@@gen_label459 DS 0H
BALR 14,15
@@gen_label460 DS 0H
LTR 15,15
BH @ret_lab_1515
@L796 DS 0H
STG 4,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1515_281 ; rd_kafka_buf_destroy_final
@@gen_label462 DS 0H
BALR 14,15
@@gen_label463 DS 0H
@L794 DS 0H
* *** }
@L792 DS 0H
@ret_lab_1515 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_callback"
* (FUNCTION #1515)
*
@AUTO#rd_kafka_buf_callback DSECT
DS XL168
*
@CODE CSECT
@@STATIC ALIAS X'7C998492818692816D82A48650'
@@STATIC DXD 219D
*
* 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 2X'00'
@@TA65 DC X'99846D92818692816D82A4866D8485A2' rd.kafka.buf.des
DC X'A39996A86D8689958193' troy.final
DC 2X'00'
@@TA7F DC X'99846D92818692816D82A486986D8485' rd.kafka.bufq.de
DC X'98' q
DC 1X'00'
@@TA88 DC X'99846D92818692816D82A486986D97A4' rd.kafka.bufq.pu
DC X'998785' rge
DC 1X'00'
@@TA8F DC X'99846D92818692816D82A486986D8396' rd.kafka.bufq.co
DC X'95958583A38996956D9985A285A3' nnection.reset
DC 2X'00'
@@TAA4 DC X'99846D92818692816D82A4866D9985A3' rd.kafka.buf.ret
DC X'99A8' ry
DC 2X'00'
@@TAAB DC X'99846D92818692816D82A4866D888195' rd.kafka.buf.han
DC X'8493856D9697' dle.op
DC 2X'00'
@@TAB6 DC X'99846D92818692816D82A4866D838193' rd.kafka.buf.cal
DC X'9382818392' lback
DC 1X'00'
@strings@ DS 0H
DC X'C37AE081A2879281869281E093898299' C..asgkafka.libr
DC X'849281869281E0A29983E099844B8800' dkafka.src.rd.h.
DC X'97009985868395A340A2A48260A98599' p.refcnt.sub.zer
DC X'96005A5C7F9985868395A340A2A48260' o....refcnt.sub.
DC X'A98599967F00E495929596A695606C88' zero..Unknown..h
DC X'846F0000C37AE081A2879281869281E0' d...C..asgkafka.
DC X'93898299849281869281E0A29983E099' librdkafka.src.r
DC X'8492818692816D98A485A4854B880000' dkafka.queue.h..
DC X'81A2A28599A37A40999298606E999298' assert..rkq..rkq
DC X'6D9985868395A3406E40F000C37AE081' .refcnt...0.C..a
DC X'A2879281869281E09389829984928186' sgkafka.librdkaf
DC X'9281E0A29983E0998492818692816D82' ka.src.rdkafka.b
DC X'A4864B83000081A2A28599A37A404D5C' uf.c..assert....
DC X'999282A486606E999282A4866DA44BD4' rkbuf..rkbuf.u.M
DC X'85A3818481A3814B848583995D406E40' etadata.decr....
DC X'F00081A2A28599A37A4099846D81A396' 0.assert..rd.ato
DC X'948983F3F26D8785A34D50999282A486' mic32.get..rkbuf
DC X'98606E999282986D8395A35D406E40F0' q..rkbq.cnt....0
DC X'000081A2A28599A37A40A38899846D89' ..assert..thrd.i
DC X'A26D83A499998595A34D999282606E99' s.current.rkb..r
DC X'92826DA388998581845D0000C2E4C6D8' kb.thread...BUFQ
DC X'0000D7A499878995874082A4869840A6' ..Purging.bufq.w
DC X'89A388406C894082A486868599A20000' ith..i.buffers..
DC X'E4978481A3899587406C844082A48686' Updating..d.buff
DC X'8599A240969540839695958583A38996' ers.on.connectio
DC X'95409985A285A30082A4869840A689A3' n.reset.bufq.wit
DC X'88406C844082A4868685994DA25D7A00' h..d.buffer.s...
DC X'40C2A486868599406CA2404D6CA9A440' .Buffer..s...zu.
DC X'82A8A385A26B40839699998984406C84' bytes..corrid..d
DC X'6B40839695958984406C846B40979989' ..connid..d..pri
DC X'96406C846B409985A399A8406C844089' o..d..retry..d.i
DC X'95406C93938494A26B40A389948596A4' n..lldms..timeou
DC X'A3408995406C93938494A25D00009984' t.in..lldms...rd
DC X'6D82A4866D9385954D50999282A48660' .buf.len..rkbuf.
DC X'6E999282A4866D82A4865D406E40F000' .rkbuf.buf....0.
DC X'998598A485A2A3606E999282A4866D99' request..rkbuf.r
DC X'9282405A7E404D4DA5968984405C5DF0' kb......void...0
DC X'5D00000081A2A28599A37A405A998598' ....assert...req
DC X'A485A2A3606E999282A4866D9985A297' uest..rkbuf.resp
DC X'9695A2850000D7999684A4838500C685' onse..Produce.Fe
DC X'A3838800D68686A285A30000D485A381' tch.Offset..Meta
DC X'8481A3810000D38581848599C19584C9' data..LeaderAndI
DC X'A2990000E2A39697D985979389838100' sr..StopReplica.
DC X'E4978481A385D485A3818481A3810000' UpdateMetadata..
DC X'C39695A3999693938584E288A4A38496' ControlledShutdo
DC X'A6950000D68686A285A3C396949489A3' wn..OffsetCommit
DC X'0000D68686A285A3C685A3838800C689' ..OffsetFetch.Fi
DC X'9584C396969984899581A3969900D196' ndCoordinator.Jo
DC X'8995C79996A49700C8858199A3828581' inGroup.Heartbea
DC X'A300D38581A585C79996A4970000E2A8' t.LeaveGroup..Sy
DC X'9583C79996A49700C485A28399898285' ncGroup.Describe
DC X'C79996A497A20000D389A2A3C79996A4' Groups..ListGrou
DC X'97A20000E281A293C8819584A2888192' ps..SaslHandshak
DC X'8500C19789E58599A28996950000C399' e.ApiVersion..Cr
DC X'8581A385E396978983A20000C4859385' eateTopics..Dele
DC X'A385E396978983A20000C4859385A385' teTopics..Delete
DC X'D98583969984A200C99589A3D7999684' Records.InitProd
DC X'A4838599C9840000D68686A285A3C696' ucerId..OffsetFo
DC X'99D38581848599C5979683880000C184' rLeaderEpoch..Ad
DC X'84D78199A389A3899695A2E396E3A795' dPartitionsToTxn
DC X'0000C18484D68686A285A3A2E396E3A7' ..AddOffsetsToTx
DC X'9500C59584E3A7950000E69989A385E3' n.EndTxn..WriteT
DC X'A795D48199928599A200E3A795D68686' xnMarkers.TxnOff
DC X'A285A3C396949489A300C485A2839989' setCommit.Descri
DC X'8285C18393A20000C3998581A385C183' beAcls..CreateAc
DC X'93A20000C4859385A385C18393A20000' ls..DeleteAcls..
DC X'C485A28399898285C39695868987A200' DescribeConfigs.
DC X'C193A38599C39695868987A20000C193' AlterConfigs..Al
DC X'A38599D9859793898381D39687C48999' terReplicaLogDir
DC X'A200C485A28399898285D39687C48999' s.DescribeLogDir
DC X'A200E281A293C1A4A3888595A3898381' s.SaslAuthentica
DC X'A3850000C3998581A385D78199A389A3' te..CreatePartit
DC X'899695A20000C3998581A385C4859385' ions..CreateDele
DC X'8781A3899695E39692859500D9859585' gationToken.Rene
DC X'A6C48593858781A3899695E396928595' wDelegationToken
DC X'0000C5A797899985C48593858781A389' ..ExpireDelegati
DC X'9695E39692859500C485A28399898285' onToken.Describe
DC X'C48593858781A3899695E39692859500' DelegationToken.
DC X'C4859385A385C79996A497A20000C593' DeleteGroups..El
DC X'8583A3D38581848599A2D98598A485A2' ectLeadersReques
DC X'A300C995839985948595A38193C193A3' t.IncrementalAlt
DC X'8599C39695868987A2D98598A485A2A3' erConfigsRequest
DC X'0000C193A38599D78199A389A3899695' ..AlterPartition
DC X'D98581A2A2898795948595A3A2D98598' ReassignmentsReq
DC X'A485A2A30000D389A2A3D78199A389A3' uest..ListPartit
DC X'899695D98581A2A2898795948595A3A2' ionReassignments
DC X'D98598A485A2A300D68686A285A3C485' Request.OffsetDe
DC X'9385A385D98598A485A2A300C485A283' leteRequest.Desc
DC X'99898285C393898595A3D8A496A381A2' ribeClientQuotas
DC X'D98598A485A2A300C193A38599C39389' Request.AlterCli
DC X'8595A3D8A496A381A2D98598A485A2A3' entQuotasRequest
DC X'0000C485A28399898285E4A28599E283' ..DescribeUserSc
DC X'998194C39985848595A3898193A2D985' ramCredentialsRe
DC X'98A485A2A300C193A38599E4A28599E2' quest.AlterUserS
DC X'83998194C39985848595A3898193A2D9' cramCredentialsR
DC X'8598A485A2A30000E596A385D98598A4' equest..VoteRequ
DC X'85A2A300C285878995D8A49699A494C5' est.BeginQuorumE
DC X'97968388D98598A485A2A300C59584D8' pochRequest.EndQ
DC X'A49699A494C597968388D98598A485A2' uorumEpochReques
DC X'A300C485A28399898285D8A49699A494' t.DescribeQuorum
DC X'D98598A485A2A300C193A38599C9A299' Request.AlterIsr
DC X'D98598A485A2A300E4978481A385C685' Request.UpdateFe
DC X'81A3A49985A2D98598A485A2A300C595' aturesRequest.En
DC X'A58593969785D98598A485A2A3009596' velopeRequest.no
DC X'9585000087A989970000A295819797A8' ne..gzip..snappy
DC X'000093A9F400A9A2A384000089958885' ..lz4.zstd..inhe
DC X'9989A300839695868987A49985840000' rit.configured..
DC X'93858199958584008995A38599958193' learned.internal
DC X'00009396878983819300C99589A30000' ..logical.Init..
DC X'E3859994899581A38500C681A38193C5' Terminate.FatalE
DC X'999996990000D98598A485A2A3D7C9C4' rror..RequestPID
DC X'0000E68189A3E3998195A2979699A300' ..WaitTransport.
DC X'E68189A3D7C9C400C1A2A28987958584' WaitPID.Assigned
DC X'0000C499818995D985A285A30000C499' ..DrainReset..Dr
DC X'818995C2A4949700D9858184A8D596A3' ainBump.ReadyNot
DC X'C18392858400D9858184A800C995E399' Acked.Ready.InTr
DC X'8195A28183A389969500C285878995C3' ansaction.BeginC
DC X'96949489A300C396949489A3A3899587' ommit.Committing
DC X'E3998195A28183A389969500C3969494' Transaction.Comm
DC X'89A3D596A3C1839285840000C1829699' itNotAcked..Abor
DC X'A3899587E3998195A28183A389969500' tingTransaction.
DC X'C1829699A38584D596A3C18392858400' AbortedNotAcked.
DC X'C1829699A381829385C5999996990000' AbortableError..
@Ecrc_table ALIAS X'8399836DA381829385'
EXTRN @Ecrc_table
*
*
* Re-entrant Data Initialization Section
*
@@INIT@ ALIAS C'rdkafka_buf:'
@@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'000004C0'
*
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'000004C8'
*
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'000004CE'
*
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'000004D6'
*
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'000004E0'
*
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'000004EE'
*
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'000004FA'
*
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'0000050A'
*
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'0000051E'
*
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'0000052C'
*
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'00000538'
*
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'00000548'
*
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'00000552'
*
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'0000055C'
*
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'00000568'
*
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'00000572'
*
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'00000582'
*
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'0000058E'
*
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'0000059C'
*
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'000005A8'
*
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'000005B6'
*
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'000005C4'
*
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'000005D2'
*
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'000005E2'
*
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'000005F8'
*
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'0000060C'
*
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'0000061C'
*
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'00000624'
*
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'00000634'
*
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'00000644'
*
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'00000652'
*
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'0000065E'
*
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'0000066A'
*
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'0000067A'
*
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'00000688'
*
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'0000069C'
*
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'000006AC'
*
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'000006BE'
*
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'000006D0'
*
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'000006E6'
*
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'000006FC'
*
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'00000712'
*
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'0000072A'
*
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'00000738'
*
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'0000074C'
*
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'0000076C'
*
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'00000790'
*
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'000007B2'
*
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'000007C6'
*
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'000007E2'
*
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'000007FC'
*
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'00000820'
*
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'00000842'
*
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'0000084E'
*
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'00000866'
*
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'0000087C'
*
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'00000892'
*
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'000008A2'
*
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'000008B8'
*
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'000008C8'
*
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'000008CE'
*
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'000008D4'
*
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'000008DC'
*
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'000008E0'
*
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'000008E6'
*
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'000008EE'
*
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'000008FA'
*
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'00000902'
*
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'0000090C'
*
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'00000914'
*
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'0000091A'
*
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'00000924'
*
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'00000930'
*
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'0000093C'
*
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'0000094A'
*
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'00000952'
*
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'0000095C'
*
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'00000968'
*
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'00000914'
*
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'0000094A'
*
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'00000972'
*
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'00000980'
*
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'00000986'
*
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'00000994'
*
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'000009A0'
*
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'000009B6'
*
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'000009C6'
*
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'000009DA'
*
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'000009EA'
*
DC XL1'D'
DC AL3(0)
DC AL4(0)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000006D0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000924'
*
END
| 29.455759 | 72 | 0.493162 |
26ea06d81502278e8fa4650f7947541bc981cf96 | 399 | asm | Assembly | oeis/156/A156637.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/156/A156637.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/156/A156637.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A156637: Pell numbers A000129 mod 9. Period 24: repeat 0,1,2,5,3,2,7,7,3,4,2,8,0,8,7,4,6,7,2,2,6,5,7,1.
; 0,1,2,5,3,2,7,7,3,4,2,8,0,8,7,4,6,7,2,2,6,5,7,1,0,1,2,5,3,2,7,7,3,4,2,8,0,8,7,4,6,7,2,2,6,5,7,1,0,1,2,5,3,2,7,7,3,4,2,8,0,8,7,4,6,7,2,2,6,5,7,1,0,1,2,5,3,2,7,7,3,4,2,8,0,8,7,4,6,7,2,2,6,5,7,1
mov $3,1
lpb $0
sub $0,1
mov $2,$3
add $2,$1
mov $1,$3
add $3,$2
lpe
mov $0,$1
mod $0,9
| 28.5 | 193 | 0.526316 |
795427108cdb4bd3a45d137eefd17f5851696dd3 | 887 | asm | Assembly | AssemblyMips/Fibonacci.asm | ForceTower/MIPS32Processor_UART | 8d0202fd6734a1d0c7f62b98051e936e916d78bf | [
"MIT"
] | null | null | null | AssemblyMips/Fibonacci.asm | ForceTower/MIPS32Processor_UART | 8d0202fd6734a1d0c7f62b98051e936e916d78bf | [
"MIT"
] | null | null | null | AssemblyMips/Fibonacci.asm | ForceTower/MIPS32Processor_UART | 8d0202fd6734a1d0c7f62b98051e936e916d78bf | [
"MIT"
] | null | null | null | # Calculates the N number of Fibonacci Sequence
# $a0 = Fibonacci Number (N)
# int fib(int n): return n < 2 ? n : fib(n-1) + fib(n-2)
main: li $a0, 7 # N = 10
jal fib
j exit
fib: addi $sp, $sp, -8 # Space for two words
sw $ra, 4($sp) # Store $ra on the stack
move $v0, $a0 # Here, the return value is N($a0)
slti $t0, $a0, 2
bne $t0, $zero, fibrt # Goes to return if N < 2
sw $a0, 0($sp) # Save a copy of N
addi $a0, $a0, -1 # N-1
jal fib # fib(N-1)
# When this line is reached, fib(N-1) is stored in $v0
lw $a0, 0($sp)
sw $v0, 0($sp) # Store fib(N-1) on the stack
addi $a0, $a0, -2 # N-2
jal fib # fib(N-2)
# When this line is reached, fib(N-2) is stored in $v0
lw $v1, 0($sp) # Load fib(N-1)
add $v0, $v0, $v1 # fib(N-1)+fib(N-2)
fibrt: lw $ra, 4($sp) # Restore $ra
addi $sp, $sp, 8 # Restore $sp
jr $ra # Go back to caller
exit: nop
| 27.71875 | 56 | 0.56708 |
64801e23371c6036a4de64af874beecbd076cc3c | 551 | asm | Assembly | data/maps/objects/PokemonTower4F.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | 1 | 2022-02-15T00:19:44.000Z | 2022-02-15T00:19:44.000Z | data/maps/objects/PokemonTower4F.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | data/maps/objects/PokemonTower4F.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | PokemonTower4F_Object:
db $1 ; border block
def_warps
warp 3, 9, 0, POKEMON_TOWER_5F
warp 18, 9, 1, POKEMON_TOWER_3F
def_signs
def_objects
object SPRITE_CHANNELER, 5, 10, STAY, RIGHT, 1, OPP_CHANNELER, 9
object SPRITE_CHANNELER, 15, 7, STAY, DOWN, 2, OPP_CHANNELER, 10
object SPRITE_CHANNELER, 14, 12, STAY, LEFT, 3, OPP_CHANNELER, 12
object SPRITE_POKE_BALL, 12, 10, STAY, NONE, 4, ELIXER
object SPRITE_POKE_BALL, 9, 10, STAY, NONE, 5, AWAKENING
object SPRITE_POKE_BALL, 12, 16, STAY, NONE, 6, HP_UP
def_warps_to POKEMON_TOWER_4F
| 29 | 66 | 0.745917 |
3f6c73274b7013491f3625f0bd0af45768f7f777 | 1,535 | asm | Assembly | software/minol/source/commands/list.asm | paulscottrobson/retrochallenge-jan-2016 | 8bd340efc85969fa6f2fecc788aa21b27123a4db | [
"MIT"
] | null | null | null | software/minol/source/commands/list.asm | paulscottrobson/retrochallenge-jan-2016 | 8bd340efc85969fa6f2fecc788aa21b27123a4db | [
"MIT"
] | null | null | null | software/minol/source/commands/list.asm | paulscottrobson/retrochallenge-jan-2016 | 8bd340efc85969fa6f2fecc788aa21b27123a4db | [
"MIT"
] | null | null | null | ; ****************************************************************************************************************
; ****************************************************************************************************************
;
; LIST command
;
; ****************************************************************************************************************
; ****************************************************************************************************************
jmp CLI_Over
CMD_List:
lpi p1,ProgramBase ; point P1 to first line.
ldi 0 ; clear counter. used for Speccy style list.
st @-1(p2)
CLI_Loop:
ld @1(p1) ; check if finished
ani 0x80
jnz CLI_End
ld @1(p1) ; get line number into E
xae
lpi p3,PrintInteger-1 ; and print it.
xppc p3
lpi p3,Print-1
ldi ' ' ; print space
xppc p3
;
CLI_Line:
ld @1(p1) ; get character
jz CLI_EndLine ; if zero, do next line.
xppc p3 ; print it
jmp CLI_Line
;
CLI_EndLine:
ldi 13 ; new line
xppc p3
ild (p2) ; bump counter
ani 0x03 ; stop every 3 lines
jnz CLI_Loop ; keep going.
lpi p3,GetChar-1 ; get a keystroke
xppc p3
xri ' ' ; if space pressed
jz CLI_Loop ; and do next line.
CLI_End:
ld @1(p2) ; drop counter
ldi ERRC_End ; fake error to end after LIST as destroys P1.
xae
ccl
CLI_Over:
| 29.519231 | 114 | 0.366124 |
4b5618bb3b739ff5f4f9f6d020c9268680b6d5e2 | 7,201 | asm | Assembly | Object/Optimized/kernel/BootLoad.asm | collinsmichael/spartan | e0f85504d45fea8337cc3f87c357e6ac4034d3ba | [
"MIT"
] | 16 | 2018-04-24T20:50:57.000Z | 2022-01-09T22:51:35.000Z | Object/Optimized/kernel/BootLoad.asm | collinsmichael/spartan | e0f85504d45fea8337cc3f87c357e6ac4034d3ba | [
"MIT"
] | 1 | 2019-08-11T12:27:45.000Z | 2019-12-02T12:25:41.000Z | Object/Optimized/kernel/BootLoad.asm | collinsmichael/spartan | e0f85504d45fea8337cc3f87c357e6ac4034d3ba | [
"MIT"
] | 4 | 2018-07-23T20:10:19.000Z | 2021-09-29T17:23:15.000Z | ; Listing generated by Microsoft (R) Optimizing Compiler Version 18.00.40629.0
TITLE C:\Users\cex123\Desktop\FYP\develop\spartan\Source\Kernel\BootLoad\BootLoad.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB OLDNAMES
PUBLIC _bootload
PUBLIC _BootLoad
_bootload DD FLAT:_IBootLoad_Grub
DD FLAT:_IBootLoad_Boot
DD FLAT:_IBootLoad_Prepare
DD FLAT:_IBootLoad_Enable
DD FLAT:_IBootLoad_Activate
_BootLoad DD FLAT:_bootload
PUBLIC _IBootLoad_Boot
PUBLIC _IBootLoad_Activate
PUBLIC _IBootLoad_Enable
PUBLIC _IBootLoad_Prepare
PUBLIC _IBootLoad_Grub
; Function compile flags: /Ogspy
; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\bootload\bootload.c
_TEXT SEGMENT
_info$ = 8 ; size = 4
_IBootLoad_Grub PROC
; 18 : if (!info) return false;
mov ecx, DWORD PTR _info$[esp-4]
test ecx, ecx
jne SHORT $LN1@IBootLoad_
xor eax, eax
; 20 : }
ret 0
$LN1@IBootLoad_:
; 19 : return MultiBoot(info);
jmp _MultiBoot
_IBootLoad_Grub ENDP
_TEXT ENDS
; Function compile flags: /Ogspy
; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\bootload\bootload.c
_TEXT SEGMENT
_prepare$ = 8 ; size = 4
_owner$1$ = 12 ; size = 4
_count$ = 12 ; size = 4
_IBootLoad_Prepare PROC
; 22 : bool IBootLoad_Prepare(CInstaller *prepare, int count) {
push ebx
; 23 : for (int i = 0; i < count; i++) {
mov ebx, DWORD PTR _count$[esp]
push ebp
push esi
mov esi, DWORD PTR _prepare$[esp+8]
push edi
xor edi, edi
mov ebp, edi
test ebx, ebx
jle SHORT $LN2@IBootLoad_
$LL8@IBootLoad_:
; 24 : int owner = prepare[i].Name;
mov eax, DWORD PTR [esi+ebp*8]
mov DWORD PTR _owner$1$[esp+12], eax
; 25 : u8 *base = Monitor->GetBase(owner);
push eax
mov eax, DWORD PTR _Monitor
call DWORD PTR [eax+24]
; 26 : u32 size = Monitor->GetSize(owner);
mov ecx, DWORD PTR _Monitor
mov esi, eax
push DWORD PTR _owner$1$[esp+16]
call DWORD PTR [ecx+28]
; 27 : bool status = prepare[i].Proc(base, size);
push eax
push esi
mov esi, DWORD PTR _prepare$[esp+28]
call DWORD PTR [esi+ebp*8+4]
add esp, 16 ; 00000010H
; 28 : #ifndef OPTIMIZED
; 29 : u64 totext = (u64)owner;
; 30 : if (status) Logger(" Installing %s ... OK\n", &totext);
; 31 : else Logger(" Installing %s ... Failed\n", &totext);
; 32 : #endif
; 33 : if (!status) return false;
test eax, eax
je SHORT $LN13@IBootLoad_
; 34 : Monitor->Protect(owner);
mov eax, DWORD PTR _Monitor
push DWORD PTR _owner$1$[esp+12]
call DWORD PTR [eax+20]
inc ebp
pop ecx
cmp ebp, ebx
jl SHORT $LL8@IBootLoad_
; 35 : }
; 36 :
; 37 : for (int i = 0; i < count; i++) {
test ebx, ebx
jle SHORT $LN2@IBootLoad_
$LL4@IBootLoad_:
; 38 : bool status = Monitor->Verify(prepare[i].Name);
mov eax, DWORD PTR _Monitor
push DWORD PTR [esi+edi*8]
call DWORD PTR [eax+16]
pop ecx
; 39 : if (!status) return false;
test eax, eax
je SHORT $LN13@IBootLoad_
; 35 : }
; 36 :
; 37 : for (int i = 0; i < count; i++) {
inc edi
cmp edi, ebx
jl SHORT $LL4@IBootLoad_
$LN2@IBootLoad_:
; 40 : }
; 41 : return true;
xor eax, eax
inc eax
$LN9@IBootLoad_:
; 42 : }
pop edi
pop esi
pop ebp
pop ebx
ret 0
$LN13@IBootLoad_:
; 28 : #ifndef OPTIMIZED
; 29 : u64 totext = (u64)owner;
; 30 : if (status) Logger(" Installing %s ... OK\n", &totext);
; 31 : else Logger(" Installing %s ... Failed\n", &totext);
; 32 : #endif
; 33 : if (!status) return false;
xor eax, eax
jmp SHORT $LN9@IBootLoad_
_IBootLoad_Prepare ENDP
_TEXT ENDS
; Function compile flags: /Ogspy
; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\bootload\bootload.c
_TEXT SEGMENT
_enable$ = 8 ; size = 4
_count$ = 12 ; size = 4
_IBootLoad_Enable PROC
; 44 : bool IBootLoad_Enable(CInstaller *enable, int count) {
push ebx
push ebp
push esi
push edi
; 45 : for (int i = 0; i < count; i++) {
xor edi, edi
cmp DWORD PTR _count$[esp+12], edi
jle SHORT $LN2@IBootLoad_
mov ebp, DWORD PTR _enable$[esp+12]
$LL4@IBootLoad_:
; 46 : int owner = enable[i].Name;
; 47 : u8 *base = Monitor->GetBase(owner);
mov eax, DWORD PTR _Monitor
mov ebx, DWORD PTR [ebp+edi*8]
push ebx
call DWORD PTR [eax+24]
; 48 : u32 size = Monitor->GetSize(owner);
mov ecx, DWORD PTR _Monitor
mov esi, eax
push ebx
call DWORD PTR [ecx+28]
; 49 : bool status = enable[i].Proc(base, size);
push eax
push esi
call DWORD PTR [ebp+edi*8+4]
add esp, 16 ; 00000010H
; 50 :
; 51 : #ifndef OPTIMIZED
; 52 : u64 totext = (u64)owner;
; 53 : if (status) Logger(" Enabling %s ... OK\n", &totext);
; 54 : else Logger(" Enabling %s ... Failed\n", &totext);
; 55 : #endif
; 56 : if (!status) return false;
test eax, eax
je SHORT $LN8@IBootLoad_
; 57 : Monitor->Protect(owner);
mov eax, DWORD PTR _Monitor
push ebx
call DWORD PTR [eax+20]
inc edi
pop ecx
cmp edi, DWORD PTR _count$[esp+12]
jl SHORT $LL4@IBootLoad_
$LN2@IBootLoad_:
; 58 : }
; 59 : return true;
xor eax, eax
inc eax
$LN5@IBootLoad_:
; 60 : }
pop edi
pop esi
pop ebp
pop ebx
ret 0
$LN8@IBootLoad_:
; 50 :
; 51 : #ifndef OPTIMIZED
; 52 : u64 totext = (u64)owner;
; 53 : if (status) Logger(" Enabling %s ... OK\n", &totext);
; 54 : else Logger(" Enabling %s ... Failed\n", &totext);
; 55 : #endif
; 56 : if (!status) return false;
xor eax, eax
jmp SHORT $LN5@IBootLoad_
_IBootLoad_Enable ENDP
_TEXT ENDS
; Function compile flags: /Ogspy
; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\bootload\bootload.c
_TEXT SEGMENT
_IBootLoad_Activate PROC
; 63 : if (!EnableSysCalls()) return false;
call _EnableSysCalls
test eax, eax
jne SHORT $LN5@IBootLoad_
$LN8@IBootLoad_:
xor eax, eax
; 68 : return true;
; 69 : }
ret 0
$LN5@IBootLoad_:
; 64 : if (!Exception->Install()) return false;
mov eax, DWORD PTR _Exception
call DWORD PTR [eax]
test eax, eax
je SHORT $LN8@IBootLoad_
; 65 : if (!EnablePs2()) return false;
call _EnablePs2
test eax, eax
je SHORT $LN8@IBootLoad_
; 66 : if (!RemapPic()) return false;
call _RemapPic
test eax, eax
je SHORT $LN8@IBootLoad_
; 67 : if (!EnableFpu()) return false;
call _EnableFpu
neg eax
sbb eax, eax
neg eax
; 68 : return true;
; 69 : }
ret 0
_IBootLoad_Activate ENDP
_TEXT ENDS
; Function compile flags: /Ogspy
; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\bootload\bootload.c
_TEXT SEGMENT
_grub$ = 8 ; size = 4
_IBootLoad_Boot PROC
; 72 : return true;
xor eax, eax
inc eax
; 73 : }
ret 0
_IBootLoad_Boot ENDP
_TEXT ENDS
END
| 21.431548 | 85 | 0.605888 |
22c9815c972db78852733faeaf0881e6c99b96ea | 112 | a51 | Assembly | a51test/(70)JNZ_o.a51 | Aimini/51cpu | cdeb75510d1dcd867fbebe10e963c4dbecd5ff13 | [
"MIT"
] | null | null | null | a51test/(70)JNZ_o.a51 | Aimini/51cpu | cdeb75510d1dcd867fbebe10e963c4dbecd5ff13 | [
"MIT"
] | null | null | null | a51test/(70)JNZ_o.a51 | Aimini/51cpu | cdeb75510d1dcd867fbebe10e963c4dbecd5ff13 | [
"MIT"
] | null | null | null | START:
MOV A,#0x00
JNZ FINAL
MOV A,#0x0F
JNZ TO_2
FINAL:
MOV A,#0xAA
JNZ START
TO_2:
MOV A,#0xFF
JNZ FINAL | 9.333333 | 12 | 0.6875 |
a2d137efff56ddb707fffada86ac24c3c66b0024 | 45,514 | asm | Assembly | wc.asm | MatanGilead/myxv6 | e3e56b63deba7bdf2f85079a4c303a36feaef0c9 | [
"MIT-0"
] | null | null | null | wc.asm | MatanGilead/myxv6 | e3e56b63deba7bdf2f85079a4c303a36feaef0c9 | [
"MIT-0"
] | null | null | null | wc.asm | MatanGilead/myxv6 | e3e56b63deba7bdf2f85079a4c303a36feaef0c9 | [
"MIT-0"
] | null | null | null |
_wc: file format elf32-i386
Disassembly of section .text:
00000000 <wc>:
char buf[512];
void
wc(int fd, char *name)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 48 sub $0x48,%esp
int i, n;
int l, w, c, inword;
l = w = c = 0;
6: c7 45 e8 00 00 00 00 movl $0x0,-0x18(%ebp)
d: 8b 45 e8 mov -0x18(%ebp),%eax
10: 89 45 ec mov %eax,-0x14(%ebp)
13: 8b 45 ec mov -0x14(%ebp),%eax
16: 89 45 f0 mov %eax,-0x10(%ebp)
inword = 0;
19: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
while((n = read(fd, buf, sizeof(buf))) > 0){
20: eb 68 jmp 8a <wc+0x8a>
for(i=0; i<n; i++){
22: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
29: eb 57 jmp 82 <wc+0x82>
c++;
2b: 83 45 e8 01 addl $0x1,-0x18(%ebp)
if(buf[i] == '\n')
2f: 8b 45 f4 mov -0xc(%ebp),%eax
32: 05 60 0c 00 00 add $0xc60,%eax
37: 0f b6 00 movzbl (%eax),%eax
3a: 3c 0a cmp $0xa,%al
3c: 75 04 jne 42 <wc+0x42>
l++;
3e: 83 45 f0 01 addl $0x1,-0x10(%ebp)
if(strchr(" \r\t\n\v", buf[i]))
42: 8b 45 f4 mov -0xc(%ebp),%eax
45: 05 60 0c 00 00 add $0xc60,%eax
4a: 0f b6 00 movzbl (%eax),%eax
4d: 0f be c0 movsbl %al,%eax
50: 89 44 24 04 mov %eax,0x4(%esp)
54: c7 04 24 7b 09 00 00 movl $0x97b,(%esp)
5b: e8 47 02 00 00 call 2a7 <strchr>
60: 85 c0 test %eax,%eax
62: 74 09 je 6d <wc+0x6d>
inword = 0;
64: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
6b: eb 11 jmp 7e <wc+0x7e>
else if(!inword){
6d: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp)
71: 75 0b jne 7e <wc+0x7e>
w++;
73: 83 45 ec 01 addl $0x1,-0x14(%ebp)
inword = 1;
77: c7 45 e4 01 00 00 00 movl $0x1,-0x1c(%ebp)
int l, w, c, inword;
l = w = c = 0;
inword = 0;
while((n = read(fd, buf, sizeof(buf))) > 0){
for(i=0; i<n; i++){
7e: 83 45 f4 01 addl $0x1,-0xc(%ebp)
82: 8b 45 f4 mov -0xc(%ebp),%eax
85: 3b 45 e0 cmp -0x20(%ebp),%eax
88: 7c a1 jl 2b <wc+0x2b>
int i, n;
int l, w, c, inword;
l = w = c = 0;
inword = 0;
while((n = read(fd, buf, sizeof(buf))) > 0){
8a: c7 44 24 08 00 02 00 movl $0x200,0x8(%esp)
91: 00
92: c7 44 24 04 60 0c 00 movl $0xc60,0x4(%esp)
99: 00
9a: 8b 45 08 mov 0x8(%ebp),%eax
9d: 89 04 24 mov %eax,(%esp)
a0: e8 9b 03 00 00 call 440 <read>
a5: 89 45 e0 mov %eax,-0x20(%ebp)
a8: 83 7d e0 00 cmpl $0x0,-0x20(%ebp)
ac: 0f 8f 70 ff ff ff jg 22 <wc+0x22>
w++;
inword = 1;
}
}
}
if(n < 0){
b2: 83 7d e0 00 cmpl $0x0,-0x20(%ebp)
b6: 79 19 jns d1 <wc+0xd1>
printf(1, "wc: read error\n");
b8: c7 44 24 04 81 09 00 movl $0x981,0x4(%esp)
bf: 00
c0: c7 04 24 01 00 00 00 movl $0x1,(%esp)
c7: e8 eb 04 00 00 call 5b7 <printf>
exit();
cc: e8 57 03 00 00 call 428 <exit>
}
printf(1, "%d %d %d %s\n", l, w, c, name);
d1: 8b 45 0c mov 0xc(%ebp),%eax
d4: 89 44 24 14 mov %eax,0x14(%esp)
d8: 8b 45 e8 mov -0x18(%ebp),%eax
db: 89 44 24 10 mov %eax,0x10(%esp)
df: 8b 45 ec mov -0x14(%ebp),%eax
e2: 89 44 24 0c mov %eax,0xc(%esp)
e6: 8b 45 f0 mov -0x10(%ebp),%eax
e9: 89 44 24 08 mov %eax,0x8(%esp)
ed: c7 44 24 04 91 09 00 movl $0x991,0x4(%esp)
f4: 00
f5: c7 04 24 01 00 00 00 movl $0x1,(%esp)
fc: e8 b6 04 00 00 call 5b7 <printf>
}
101: c9 leave
102: c3 ret
00000103 <main>:
int
main(int argc, char *argv[])
{
103: 55 push %ebp
104: 89 e5 mov %esp,%ebp
106: 83 e4 f0 and $0xfffffff0,%esp
109: 83 ec 20 sub $0x20,%esp
int fd, i;
if(argc <= 1){
10c: 83 7d 08 01 cmpl $0x1,0x8(%ebp)
110: 7f 19 jg 12b <main+0x28>
wc(0, "");
112: c7 44 24 04 9e 09 00 movl $0x99e,0x4(%esp)
119: 00
11a: c7 04 24 00 00 00 00 movl $0x0,(%esp)
121: e8 da fe ff ff call 0 <wc>
exit();
126: e8 fd 02 00 00 call 428 <exit>
}
for(i = 1; i < argc; i++){
12b: c7 44 24 1c 01 00 00 movl $0x1,0x1c(%esp)
132: 00
133: eb 7d jmp 1b2 <main+0xaf>
if((fd = open(argv[i], 0)) < 0){
135: 8b 44 24 1c mov 0x1c(%esp),%eax
139: c1 e0 02 shl $0x2,%eax
13c: 03 45 0c add 0xc(%ebp),%eax
13f: 8b 00 mov (%eax),%eax
141: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
148: 00
149: 89 04 24 mov %eax,(%esp)
14c: e8 17 03 00 00 call 468 <open>
151: 89 44 24 18 mov %eax,0x18(%esp)
155: 83 7c 24 18 00 cmpl $0x0,0x18(%esp)
15a: 79 29 jns 185 <main+0x82>
printf(1, "wc: cannot open %s\n", argv[i]);
15c: 8b 44 24 1c mov 0x1c(%esp),%eax
160: c1 e0 02 shl $0x2,%eax
163: 03 45 0c add 0xc(%ebp),%eax
166: 8b 00 mov (%eax),%eax
168: 89 44 24 08 mov %eax,0x8(%esp)
16c: c7 44 24 04 9f 09 00 movl $0x99f,0x4(%esp)
173: 00
174: c7 04 24 01 00 00 00 movl $0x1,(%esp)
17b: e8 37 04 00 00 call 5b7 <printf>
exit();
180: e8 a3 02 00 00 call 428 <exit>
}
wc(fd, argv[i]);
185: 8b 44 24 1c mov 0x1c(%esp),%eax
189: c1 e0 02 shl $0x2,%eax
18c: 03 45 0c add 0xc(%ebp),%eax
18f: 8b 00 mov (%eax),%eax
191: 89 44 24 04 mov %eax,0x4(%esp)
195: 8b 44 24 18 mov 0x18(%esp),%eax
199: 89 04 24 mov %eax,(%esp)
19c: e8 5f fe ff ff call 0 <wc>
close(fd);
1a1: 8b 44 24 18 mov 0x18(%esp),%eax
1a5: 89 04 24 mov %eax,(%esp)
1a8: e8 a3 02 00 00 call 450 <close>
if(argc <= 1){
wc(0, "");
exit();
}
for(i = 1; i < argc; i++){
1ad: 83 44 24 1c 01 addl $0x1,0x1c(%esp)
1b2: 8b 44 24 1c mov 0x1c(%esp),%eax
1b6: 3b 45 08 cmp 0x8(%ebp),%eax
1b9: 0f 8c 76 ff ff ff jl 135 <main+0x32>
exit();
}
wc(fd, argv[i]);
close(fd);
}
exit();
1bf: e8 64 02 00 00 call 428 <exit>
000001c4 <stosb>:
"cc");
}
static inline void
stosb(void *addr, int data, int cnt)
{
1c4: 55 push %ebp
1c5: 89 e5 mov %esp,%ebp
1c7: 57 push %edi
1c8: 53 push %ebx
asm volatile("cld; rep stosb" :
1c9: 8b 4d 08 mov 0x8(%ebp),%ecx
1cc: 8b 55 10 mov 0x10(%ebp),%edx
1cf: 8b 45 0c mov 0xc(%ebp),%eax
1d2: 89 cb mov %ecx,%ebx
1d4: 89 df mov %ebx,%edi
1d6: 89 d1 mov %edx,%ecx
1d8: fc cld
1d9: f3 aa rep stos %al,%es:(%edi)
1db: 89 ca mov %ecx,%edx
1dd: 89 fb mov %edi,%ebx
1df: 89 5d 08 mov %ebx,0x8(%ebp)
1e2: 89 55 10 mov %edx,0x10(%ebp)
"=D" (addr), "=c" (cnt) :
"0" (addr), "1" (cnt), "a" (data) :
"memory", "cc");
}
1e5: 5b pop %ebx
1e6: 5f pop %edi
1e7: 5d pop %ebp
1e8: c3 ret
000001e9 <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, char *t)
{
1e9: 55 push %ebp
1ea: 89 e5 mov %esp,%ebp
1ec: 83 ec 10 sub $0x10,%esp
char *os;
os = s;
1ef: 8b 45 08 mov 0x8(%ebp),%eax
1f2: 89 45 fc mov %eax,-0x4(%ebp)
while((*s++ = *t++) != 0)
1f5: 90 nop
1f6: 8b 45 0c mov 0xc(%ebp),%eax
1f9: 0f b6 10 movzbl (%eax),%edx
1fc: 8b 45 08 mov 0x8(%ebp),%eax
1ff: 88 10 mov %dl,(%eax)
201: 8b 45 08 mov 0x8(%ebp),%eax
204: 0f b6 00 movzbl (%eax),%eax
207: 84 c0 test %al,%al
209: 0f 95 c0 setne %al
20c: 83 45 08 01 addl $0x1,0x8(%ebp)
210: 83 45 0c 01 addl $0x1,0xc(%ebp)
214: 84 c0 test %al,%al
216: 75 de jne 1f6 <strcpy+0xd>
;
return os;
218: 8b 45 fc mov -0x4(%ebp),%eax
}
21b: c9 leave
21c: c3 ret
0000021d <strcmp>:
int
strcmp(const char *p, const char *q)
{
21d: 55 push %ebp
21e: 89 e5 mov %esp,%ebp
while(*p && *p == *q)
220: eb 08 jmp 22a <strcmp+0xd>
p++, q++;
222: 83 45 08 01 addl $0x1,0x8(%ebp)
226: 83 45 0c 01 addl $0x1,0xc(%ebp)
}
int
strcmp(const char *p, const char *q)
{
while(*p && *p == *q)
22a: 8b 45 08 mov 0x8(%ebp),%eax
22d: 0f b6 00 movzbl (%eax),%eax
230: 84 c0 test %al,%al
232: 74 10 je 244 <strcmp+0x27>
234: 8b 45 08 mov 0x8(%ebp),%eax
237: 0f b6 10 movzbl (%eax),%edx
23a: 8b 45 0c mov 0xc(%ebp),%eax
23d: 0f b6 00 movzbl (%eax),%eax
240: 38 c2 cmp %al,%dl
242: 74 de je 222 <strcmp+0x5>
p++, q++;
return (uchar)*p - (uchar)*q;
244: 8b 45 08 mov 0x8(%ebp),%eax
247: 0f b6 00 movzbl (%eax),%eax
24a: 0f b6 d0 movzbl %al,%edx
24d: 8b 45 0c mov 0xc(%ebp),%eax
250: 0f b6 00 movzbl (%eax),%eax
253: 0f b6 c0 movzbl %al,%eax
256: 89 d1 mov %edx,%ecx
258: 29 c1 sub %eax,%ecx
25a: 89 c8 mov %ecx,%eax
}
25c: 5d pop %ebp
25d: c3 ret
0000025e <strlen>:
uint
strlen(char *s)
{
25e: 55 push %ebp
25f: 89 e5 mov %esp,%ebp
261: 83 ec 10 sub $0x10,%esp
int n;
for(n = 0; s[n]; n++)
264: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
26b: eb 04 jmp 271 <strlen+0x13>
26d: 83 45 fc 01 addl $0x1,-0x4(%ebp)
271: 8b 45 fc mov -0x4(%ebp),%eax
274: 03 45 08 add 0x8(%ebp),%eax
277: 0f b6 00 movzbl (%eax),%eax
27a: 84 c0 test %al,%al
27c: 75 ef jne 26d <strlen+0xf>
;
return n;
27e: 8b 45 fc mov -0x4(%ebp),%eax
}
281: c9 leave
282: c3 ret
00000283 <memset>:
void*
memset(void *dst, int c, uint n)
{
283: 55 push %ebp
284: 89 e5 mov %esp,%ebp
286: 83 ec 0c sub $0xc,%esp
stosb(dst, c, n);
289: 8b 45 10 mov 0x10(%ebp),%eax
28c: 89 44 24 08 mov %eax,0x8(%esp)
290: 8b 45 0c mov 0xc(%ebp),%eax
293: 89 44 24 04 mov %eax,0x4(%esp)
297: 8b 45 08 mov 0x8(%ebp),%eax
29a: 89 04 24 mov %eax,(%esp)
29d: e8 22 ff ff ff call 1c4 <stosb>
return dst;
2a2: 8b 45 08 mov 0x8(%ebp),%eax
}
2a5: c9 leave
2a6: c3 ret
000002a7 <strchr>:
char*
strchr(const char *s, char c)
{
2a7: 55 push %ebp
2a8: 89 e5 mov %esp,%ebp
2aa: 83 ec 04 sub $0x4,%esp
2ad: 8b 45 0c mov 0xc(%ebp),%eax
2b0: 88 45 fc mov %al,-0x4(%ebp)
for(; *s; s++)
2b3: eb 14 jmp 2c9 <strchr+0x22>
if(*s == c)
2b5: 8b 45 08 mov 0x8(%ebp),%eax
2b8: 0f b6 00 movzbl (%eax),%eax
2bb: 3a 45 fc cmp -0x4(%ebp),%al
2be: 75 05 jne 2c5 <strchr+0x1e>
return (char*)s;
2c0: 8b 45 08 mov 0x8(%ebp),%eax
2c3: eb 13 jmp 2d8 <strchr+0x31>
}
char*
strchr(const char *s, char c)
{
for(; *s; s++)
2c5: 83 45 08 01 addl $0x1,0x8(%ebp)
2c9: 8b 45 08 mov 0x8(%ebp),%eax
2cc: 0f b6 00 movzbl (%eax),%eax
2cf: 84 c0 test %al,%al
2d1: 75 e2 jne 2b5 <strchr+0xe>
if(*s == c)
return (char*)s;
return 0;
2d3: b8 00 00 00 00 mov $0x0,%eax
}
2d8: c9 leave
2d9: c3 ret
000002da <gets>:
char*
gets(char *buf, int max)
{
2da: 55 push %ebp
2db: 89 e5 mov %esp,%ebp
2dd: 83 ec 28 sub $0x28,%esp
int i, cc;
char c;
for(i=0; i+1 < max; ){
2e0: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
2e7: eb 44 jmp 32d <gets+0x53>
cc = read(0, &c, 1);
2e9: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
2f0: 00
2f1: 8d 45 ef lea -0x11(%ebp),%eax
2f4: 89 44 24 04 mov %eax,0x4(%esp)
2f8: c7 04 24 00 00 00 00 movl $0x0,(%esp)
2ff: e8 3c 01 00 00 call 440 <read>
304: 89 45 f0 mov %eax,-0x10(%ebp)
if(cc < 1)
307: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
30b: 7e 2d jle 33a <gets+0x60>
break;
buf[i++] = c;
30d: 8b 45 f4 mov -0xc(%ebp),%eax
310: 03 45 08 add 0x8(%ebp),%eax
313: 0f b6 55 ef movzbl -0x11(%ebp),%edx
317: 88 10 mov %dl,(%eax)
319: 83 45 f4 01 addl $0x1,-0xc(%ebp)
if(c == '\n' || c == '\r')
31d: 0f b6 45 ef movzbl -0x11(%ebp),%eax
321: 3c 0a cmp $0xa,%al
323: 74 16 je 33b <gets+0x61>
325: 0f b6 45 ef movzbl -0x11(%ebp),%eax
329: 3c 0d cmp $0xd,%al
32b: 74 0e je 33b <gets+0x61>
gets(char *buf, int max)
{
int i, cc;
char c;
for(i=0; i+1 < max; ){
32d: 8b 45 f4 mov -0xc(%ebp),%eax
330: 83 c0 01 add $0x1,%eax
333: 3b 45 0c cmp 0xc(%ebp),%eax
336: 7c b1 jl 2e9 <gets+0xf>
338: eb 01 jmp 33b <gets+0x61>
cc = read(0, &c, 1);
if(cc < 1)
break;
33a: 90 nop
buf[i++] = c;
if(c == '\n' || c == '\r')
break;
}
buf[i] = '\0';
33b: 8b 45 f4 mov -0xc(%ebp),%eax
33e: 03 45 08 add 0x8(%ebp),%eax
341: c6 00 00 movb $0x0,(%eax)
return buf;
344: 8b 45 08 mov 0x8(%ebp),%eax
}
347: c9 leave
348: c3 ret
00000349 <stat>:
int
stat(char *n, struct stat *st)
{
349: 55 push %ebp
34a: 89 e5 mov %esp,%ebp
34c: 83 ec 28 sub $0x28,%esp
int fd;
int r;
fd = open(n, O_RDONLY);
34f: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
356: 00
357: 8b 45 08 mov 0x8(%ebp),%eax
35a: 89 04 24 mov %eax,(%esp)
35d: e8 06 01 00 00 call 468 <open>
362: 89 45 f4 mov %eax,-0xc(%ebp)
if(fd < 0)
365: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
369: 79 07 jns 372 <stat+0x29>
return -1;
36b: b8 ff ff ff ff mov $0xffffffff,%eax
370: eb 23 jmp 395 <stat+0x4c>
r = fstat(fd, st);
372: 8b 45 0c mov 0xc(%ebp),%eax
375: 89 44 24 04 mov %eax,0x4(%esp)
379: 8b 45 f4 mov -0xc(%ebp),%eax
37c: 89 04 24 mov %eax,(%esp)
37f: e8 fc 00 00 00 call 480 <fstat>
384: 89 45 f0 mov %eax,-0x10(%ebp)
close(fd);
387: 8b 45 f4 mov -0xc(%ebp),%eax
38a: 89 04 24 mov %eax,(%esp)
38d: e8 be 00 00 00 call 450 <close>
return r;
392: 8b 45 f0 mov -0x10(%ebp),%eax
}
395: c9 leave
396: c3 ret
00000397 <atoi>:
int
atoi(const char *s)
{
397: 55 push %ebp
398: 89 e5 mov %esp,%ebp
39a: 83 ec 10 sub $0x10,%esp
int n;
n = 0;
39d: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
while('0' <= *s && *s <= '9')
3a4: eb 23 jmp 3c9 <atoi+0x32>
n = n*10 + *s++ - '0';
3a6: 8b 55 fc mov -0x4(%ebp),%edx
3a9: 89 d0 mov %edx,%eax
3ab: c1 e0 02 shl $0x2,%eax
3ae: 01 d0 add %edx,%eax
3b0: 01 c0 add %eax,%eax
3b2: 89 c2 mov %eax,%edx
3b4: 8b 45 08 mov 0x8(%ebp),%eax
3b7: 0f b6 00 movzbl (%eax),%eax
3ba: 0f be c0 movsbl %al,%eax
3bd: 01 d0 add %edx,%eax
3bf: 83 e8 30 sub $0x30,%eax
3c2: 89 45 fc mov %eax,-0x4(%ebp)
3c5: 83 45 08 01 addl $0x1,0x8(%ebp)
atoi(const char *s)
{
int n;
n = 0;
while('0' <= *s && *s <= '9')
3c9: 8b 45 08 mov 0x8(%ebp),%eax
3cc: 0f b6 00 movzbl (%eax),%eax
3cf: 3c 2f cmp $0x2f,%al
3d1: 7e 0a jle 3dd <atoi+0x46>
3d3: 8b 45 08 mov 0x8(%ebp),%eax
3d6: 0f b6 00 movzbl (%eax),%eax
3d9: 3c 39 cmp $0x39,%al
3db: 7e c9 jle 3a6 <atoi+0xf>
n = n*10 + *s++ - '0';
return n;
3dd: 8b 45 fc mov -0x4(%ebp),%eax
}
3e0: c9 leave
3e1: c3 ret
000003e2 <memmove>:
void*
memmove(void *vdst, void *vsrc, int n)
{
3e2: 55 push %ebp
3e3: 89 e5 mov %esp,%ebp
3e5: 83 ec 10 sub $0x10,%esp
char *dst, *src;
dst = vdst;
3e8: 8b 45 08 mov 0x8(%ebp),%eax
3eb: 89 45 fc mov %eax,-0x4(%ebp)
src = vsrc;
3ee: 8b 45 0c mov 0xc(%ebp),%eax
3f1: 89 45 f8 mov %eax,-0x8(%ebp)
while(n-- > 0)
3f4: eb 13 jmp 409 <memmove+0x27>
*dst++ = *src++;
3f6: 8b 45 f8 mov -0x8(%ebp),%eax
3f9: 0f b6 10 movzbl (%eax),%edx
3fc: 8b 45 fc mov -0x4(%ebp),%eax
3ff: 88 10 mov %dl,(%eax)
401: 83 45 fc 01 addl $0x1,-0x4(%ebp)
405: 83 45 f8 01 addl $0x1,-0x8(%ebp)
{
char *dst, *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
409: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
40d: 0f 9f c0 setg %al
410: 83 6d 10 01 subl $0x1,0x10(%ebp)
414: 84 c0 test %al,%al
416: 75 de jne 3f6 <memmove+0x14>
*dst++ = *src++;
return vdst;
418: 8b 45 08 mov 0x8(%ebp),%eax
}
41b: c9 leave
41c: c3 ret
41d: 90 nop
41e: 90 nop
41f: 90 nop
00000420 <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
420: b8 01 00 00 00 mov $0x1,%eax
425: cd 40 int $0x40
427: c3 ret
00000428 <exit>:
SYSCALL(exit)
428: b8 02 00 00 00 mov $0x2,%eax
42d: cd 40 int $0x40
42f: c3 ret
00000430 <wait>:
SYSCALL(wait)
430: b8 03 00 00 00 mov $0x3,%eax
435: cd 40 int $0x40
437: c3 ret
00000438 <pipe>:
SYSCALL(pipe)
438: b8 04 00 00 00 mov $0x4,%eax
43d: cd 40 int $0x40
43f: c3 ret
00000440 <read>:
SYSCALL(read)
440: b8 05 00 00 00 mov $0x5,%eax
445: cd 40 int $0x40
447: c3 ret
00000448 <write>:
SYSCALL(write)
448: b8 10 00 00 00 mov $0x10,%eax
44d: cd 40 int $0x40
44f: c3 ret
00000450 <close>:
SYSCALL(close)
450: b8 15 00 00 00 mov $0x15,%eax
455: cd 40 int $0x40
457: c3 ret
00000458 <kill>:
SYSCALL(kill)
458: b8 06 00 00 00 mov $0x6,%eax
45d: cd 40 int $0x40
45f: c3 ret
00000460 <exec>:
SYSCALL(exec)
460: b8 07 00 00 00 mov $0x7,%eax
465: cd 40 int $0x40
467: c3 ret
00000468 <open>:
SYSCALL(open)
468: b8 0f 00 00 00 mov $0xf,%eax
46d: cd 40 int $0x40
46f: c3 ret
00000470 <mknod>:
SYSCALL(mknod)
470: b8 11 00 00 00 mov $0x11,%eax
475: cd 40 int $0x40
477: c3 ret
00000478 <unlink>:
SYSCALL(unlink)
478: b8 12 00 00 00 mov $0x12,%eax
47d: cd 40 int $0x40
47f: c3 ret
00000480 <fstat>:
SYSCALL(fstat)
480: b8 08 00 00 00 mov $0x8,%eax
485: cd 40 int $0x40
487: c3 ret
00000488 <link>:
SYSCALL(link)
488: b8 13 00 00 00 mov $0x13,%eax
48d: cd 40 int $0x40
48f: c3 ret
00000490 <mkdir>:
SYSCALL(mkdir)
490: b8 14 00 00 00 mov $0x14,%eax
495: cd 40 int $0x40
497: c3 ret
00000498 <chdir>:
SYSCALL(chdir)
498: b8 09 00 00 00 mov $0x9,%eax
49d: cd 40 int $0x40
49f: c3 ret
000004a0 <dup>:
SYSCALL(dup)
4a0: b8 0a 00 00 00 mov $0xa,%eax
4a5: cd 40 int $0x40
4a7: c3 ret
000004a8 <getpid>:
SYSCALL(getpid)
4a8: b8 0b 00 00 00 mov $0xb,%eax
4ad: cd 40 int $0x40
4af: c3 ret
000004b0 <sbrk>:
SYSCALL(sbrk)
4b0: b8 0c 00 00 00 mov $0xc,%eax
4b5: cd 40 int $0x40
4b7: c3 ret
000004b8 <sleep>:
SYSCALL(sleep)
4b8: b8 0d 00 00 00 mov $0xd,%eax
4bd: cd 40 int $0x40
4bf: c3 ret
000004c0 <uptime>:
SYSCALL(uptime)
4c0: b8 0e 00 00 00 mov $0xe,%eax
4c5: cd 40 int $0x40
4c7: c3 ret
000004c8 <wait2>:
SYSCALL(wait2)
4c8: b8 16 00 00 00 mov $0x16,%eax
4cd: cd 40 int $0x40
4cf: c3 ret
000004d0 <set_prio>:
SYSCALL(set_prio)
4d0: b8 17 00 00 00 mov $0x17,%eax
4d5: cd 40 int $0x40
4d7: c3 ret
000004d8 <yield>:
SYSCALL(yield)
4d8: b8 18 00 00 00 mov $0x18,%eax
4dd: cd 40 int $0x40
4df: c3 ret
000004e0 <putc>:
#include "stat.h"
#include "user.h"
static void
putc(int fd, char c)
{
4e0: 55 push %ebp
4e1: 89 e5 mov %esp,%ebp
4e3: 83 ec 28 sub $0x28,%esp
4e6: 8b 45 0c mov 0xc(%ebp),%eax
4e9: 88 45 f4 mov %al,-0xc(%ebp)
write(fd, &c, 1);
4ec: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
4f3: 00
4f4: 8d 45 f4 lea -0xc(%ebp),%eax
4f7: 89 44 24 04 mov %eax,0x4(%esp)
4fb: 8b 45 08 mov 0x8(%ebp),%eax
4fe: 89 04 24 mov %eax,(%esp)
501: e8 42 ff ff ff call 448 <write>
}
506: c9 leave
507: c3 ret
00000508 <printint>:
static void
printint(int fd, int xx, int base, int sgn)
{
508: 55 push %ebp
509: 89 e5 mov %esp,%ebp
50b: 83 ec 48 sub $0x48,%esp
static char digits[] = "0123456789ABCDEF";
char buf[16];
int i, neg;
uint x;
neg = 0;
50e: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
if(sgn && xx < 0){
515: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
519: 74 17 je 532 <printint+0x2a>
51b: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
51f: 79 11 jns 532 <printint+0x2a>
neg = 1;
521: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp)
x = -xx;
528: 8b 45 0c mov 0xc(%ebp),%eax
52b: f7 d8 neg %eax
52d: 89 45 ec mov %eax,-0x14(%ebp)
530: eb 06 jmp 538 <printint+0x30>
} else {
x = xx;
532: 8b 45 0c mov 0xc(%ebp),%eax
535: 89 45 ec mov %eax,-0x14(%ebp)
}
i = 0;
538: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
do{
buf[i++] = digits[x % base];
53f: 8b 4d 10 mov 0x10(%ebp),%ecx
542: 8b 45 ec mov -0x14(%ebp),%eax
545: ba 00 00 00 00 mov $0x0,%edx
54a: f7 f1 div %ecx
54c: 89 d0 mov %edx,%eax
54e: 0f b6 90 18 0c 00 00 movzbl 0xc18(%eax),%edx
555: 8d 45 dc lea -0x24(%ebp),%eax
558: 03 45 f4 add -0xc(%ebp),%eax
55b: 88 10 mov %dl,(%eax)
55d: 83 45 f4 01 addl $0x1,-0xc(%ebp)
}while((x /= base) != 0);
561: 8b 55 10 mov 0x10(%ebp),%edx
564: 89 55 d4 mov %edx,-0x2c(%ebp)
567: 8b 45 ec mov -0x14(%ebp),%eax
56a: ba 00 00 00 00 mov $0x0,%edx
56f: f7 75 d4 divl -0x2c(%ebp)
572: 89 45 ec mov %eax,-0x14(%ebp)
575: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
579: 75 c4 jne 53f <printint+0x37>
if(neg)
57b: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
57f: 74 2a je 5ab <printint+0xa3>
buf[i++] = '-';
581: 8d 45 dc lea -0x24(%ebp),%eax
584: 03 45 f4 add -0xc(%ebp),%eax
587: c6 00 2d movb $0x2d,(%eax)
58a: 83 45 f4 01 addl $0x1,-0xc(%ebp)
while(--i >= 0)
58e: eb 1b jmp 5ab <printint+0xa3>
putc(fd, buf[i]);
590: 8d 45 dc lea -0x24(%ebp),%eax
593: 03 45 f4 add -0xc(%ebp),%eax
596: 0f b6 00 movzbl (%eax),%eax
599: 0f be c0 movsbl %al,%eax
59c: 89 44 24 04 mov %eax,0x4(%esp)
5a0: 8b 45 08 mov 0x8(%ebp),%eax
5a3: 89 04 24 mov %eax,(%esp)
5a6: e8 35 ff ff ff call 4e0 <putc>
buf[i++] = digits[x % base];
}while((x /= base) != 0);
if(neg)
buf[i++] = '-';
while(--i >= 0)
5ab: 83 6d f4 01 subl $0x1,-0xc(%ebp)
5af: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
5b3: 79 db jns 590 <printint+0x88>
putc(fd, buf[i]);
}
5b5: c9 leave
5b6: c3 ret
000005b7 <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, char *fmt, ...)
{
5b7: 55 push %ebp
5b8: 89 e5 mov %esp,%ebp
5ba: 83 ec 38 sub $0x38,%esp
char *s;
int c, i, state;
uint *ap;
state = 0;
5bd: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
ap = (uint*)(void*)&fmt + 1;
5c4: 8d 45 0c lea 0xc(%ebp),%eax
5c7: 83 c0 04 add $0x4,%eax
5ca: 89 45 e8 mov %eax,-0x18(%ebp)
for(i = 0; fmt[i]; i++){
5cd: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
5d4: e9 7d 01 00 00 jmp 756 <printf+0x19f>
c = fmt[i] & 0xff;
5d9: 8b 55 0c mov 0xc(%ebp),%edx
5dc: 8b 45 f0 mov -0x10(%ebp),%eax
5df: 01 d0 add %edx,%eax
5e1: 0f b6 00 movzbl (%eax),%eax
5e4: 0f be c0 movsbl %al,%eax
5e7: 25 ff 00 00 00 and $0xff,%eax
5ec: 89 45 e4 mov %eax,-0x1c(%ebp)
if(state == 0){
5ef: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
5f3: 75 2c jne 621 <printf+0x6a>
if(c == '%'){
5f5: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
5f9: 75 0c jne 607 <printf+0x50>
state = '%';
5fb: c7 45 ec 25 00 00 00 movl $0x25,-0x14(%ebp)
602: e9 4b 01 00 00 jmp 752 <printf+0x19b>
} else {
putc(fd, c);
607: 8b 45 e4 mov -0x1c(%ebp),%eax
60a: 0f be c0 movsbl %al,%eax
60d: 89 44 24 04 mov %eax,0x4(%esp)
611: 8b 45 08 mov 0x8(%ebp),%eax
614: 89 04 24 mov %eax,(%esp)
617: e8 c4 fe ff ff call 4e0 <putc>
61c: e9 31 01 00 00 jmp 752 <printf+0x19b>
}
} else if(state == '%'){
621: 83 7d ec 25 cmpl $0x25,-0x14(%ebp)
625: 0f 85 27 01 00 00 jne 752 <printf+0x19b>
if(c == 'd'){
62b: 83 7d e4 64 cmpl $0x64,-0x1c(%ebp)
62f: 75 2d jne 65e <printf+0xa7>
printint(fd, *ap, 10, 1);
631: 8b 45 e8 mov -0x18(%ebp),%eax
634: 8b 00 mov (%eax),%eax
636: c7 44 24 0c 01 00 00 movl $0x1,0xc(%esp)
63d: 00
63e: c7 44 24 08 0a 00 00 movl $0xa,0x8(%esp)
645: 00
646: 89 44 24 04 mov %eax,0x4(%esp)
64a: 8b 45 08 mov 0x8(%ebp),%eax
64d: 89 04 24 mov %eax,(%esp)
650: e8 b3 fe ff ff call 508 <printint>
ap++;
655: 83 45 e8 04 addl $0x4,-0x18(%ebp)
659: e9 ed 00 00 00 jmp 74b <printf+0x194>
} else if(c == 'x' || c == 'p'){
65e: 83 7d e4 78 cmpl $0x78,-0x1c(%ebp)
662: 74 06 je 66a <printf+0xb3>
664: 83 7d e4 70 cmpl $0x70,-0x1c(%ebp)
668: 75 2d jne 697 <printf+0xe0>
printint(fd, *ap, 16, 0);
66a: 8b 45 e8 mov -0x18(%ebp),%eax
66d: 8b 00 mov (%eax),%eax
66f: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp)
676: 00
677: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp)
67e: 00
67f: 89 44 24 04 mov %eax,0x4(%esp)
683: 8b 45 08 mov 0x8(%ebp),%eax
686: 89 04 24 mov %eax,(%esp)
689: e8 7a fe ff ff call 508 <printint>
ap++;
68e: 83 45 e8 04 addl $0x4,-0x18(%ebp)
692: e9 b4 00 00 00 jmp 74b <printf+0x194>
} else if(c == 's'){
697: 83 7d e4 73 cmpl $0x73,-0x1c(%ebp)
69b: 75 46 jne 6e3 <printf+0x12c>
s = (char*)*ap;
69d: 8b 45 e8 mov -0x18(%ebp),%eax
6a0: 8b 00 mov (%eax),%eax
6a2: 89 45 f4 mov %eax,-0xc(%ebp)
ap++;
6a5: 83 45 e8 04 addl $0x4,-0x18(%ebp)
if(s == 0)
6a9: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
6ad: 75 27 jne 6d6 <printf+0x11f>
s = "(null)";
6af: c7 45 f4 b3 09 00 00 movl $0x9b3,-0xc(%ebp)
while(*s != 0){
6b6: eb 1e jmp 6d6 <printf+0x11f>
putc(fd, *s);
6b8: 8b 45 f4 mov -0xc(%ebp),%eax
6bb: 0f b6 00 movzbl (%eax),%eax
6be: 0f be c0 movsbl %al,%eax
6c1: 89 44 24 04 mov %eax,0x4(%esp)
6c5: 8b 45 08 mov 0x8(%ebp),%eax
6c8: 89 04 24 mov %eax,(%esp)
6cb: e8 10 fe ff ff call 4e0 <putc>
s++;
6d0: 83 45 f4 01 addl $0x1,-0xc(%ebp)
6d4: eb 01 jmp 6d7 <printf+0x120>
} else if(c == 's'){
s = (char*)*ap;
ap++;
if(s == 0)
s = "(null)";
while(*s != 0){
6d6: 90 nop
6d7: 8b 45 f4 mov -0xc(%ebp),%eax
6da: 0f b6 00 movzbl (%eax),%eax
6dd: 84 c0 test %al,%al
6df: 75 d7 jne 6b8 <printf+0x101>
6e1: eb 68 jmp 74b <printf+0x194>
putc(fd, *s);
s++;
}
} else if(c == 'c'){
6e3: 83 7d e4 63 cmpl $0x63,-0x1c(%ebp)
6e7: 75 1d jne 706 <printf+0x14f>
putc(fd, *ap);
6e9: 8b 45 e8 mov -0x18(%ebp),%eax
6ec: 8b 00 mov (%eax),%eax
6ee: 0f be c0 movsbl %al,%eax
6f1: 89 44 24 04 mov %eax,0x4(%esp)
6f5: 8b 45 08 mov 0x8(%ebp),%eax
6f8: 89 04 24 mov %eax,(%esp)
6fb: e8 e0 fd ff ff call 4e0 <putc>
ap++;
700: 83 45 e8 04 addl $0x4,-0x18(%ebp)
704: eb 45 jmp 74b <printf+0x194>
} else if(c == '%'){
706: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp)
70a: 75 17 jne 723 <printf+0x16c>
putc(fd, c);
70c: 8b 45 e4 mov -0x1c(%ebp),%eax
70f: 0f be c0 movsbl %al,%eax
712: 89 44 24 04 mov %eax,0x4(%esp)
716: 8b 45 08 mov 0x8(%ebp),%eax
719: 89 04 24 mov %eax,(%esp)
71c: e8 bf fd ff ff call 4e0 <putc>
721: eb 28 jmp 74b <printf+0x194>
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
723: c7 44 24 04 25 00 00 movl $0x25,0x4(%esp)
72a: 00
72b: 8b 45 08 mov 0x8(%ebp),%eax
72e: 89 04 24 mov %eax,(%esp)
731: e8 aa fd ff ff call 4e0 <putc>
putc(fd, c);
736: 8b 45 e4 mov -0x1c(%ebp),%eax
739: 0f be c0 movsbl %al,%eax
73c: 89 44 24 04 mov %eax,0x4(%esp)
740: 8b 45 08 mov 0x8(%ebp),%eax
743: 89 04 24 mov %eax,(%esp)
746: e8 95 fd ff ff call 4e0 <putc>
}
state = 0;
74b: 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++){
752: 83 45 f0 01 addl $0x1,-0x10(%ebp)
756: 8b 55 0c mov 0xc(%ebp),%edx
759: 8b 45 f0 mov -0x10(%ebp),%eax
75c: 01 d0 add %edx,%eax
75e: 0f b6 00 movzbl (%eax),%eax
761: 84 c0 test %al,%al
763: 0f 85 70 fe ff ff jne 5d9 <printf+0x22>
putc(fd, c);
}
state = 0;
}
}
}
769: c9 leave
76a: c3 ret
76b: 90 nop
0000076c <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
76c: 55 push %ebp
76d: 89 e5 mov %esp,%ebp
76f: 83 ec 10 sub $0x10,%esp
Header *bp, *p;
bp = (Header*)ap - 1;
772: 8b 45 08 mov 0x8(%ebp),%eax
775: 83 e8 08 sub $0x8,%eax
778: 89 45 f8 mov %eax,-0x8(%ebp)
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
77b: a1 48 0c 00 00 mov 0xc48,%eax
780: 89 45 fc mov %eax,-0x4(%ebp)
783: eb 24 jmp 7a9 <free+0x3d>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
785: 8b 45 fc mov -0x4(%ebp),%eax
788: 8b 00 mov (%eax),%eax
78a: 3b 45 fc cmp -0x4(%ebp),%eax
78d: 77 12 ja 7a1 <free+0x35>
78f: 8b 45 f8 mov -0x8(%ebp),%eax
792: 3b 45 fc cmp -0x4(%ebp),%eax
795: 77 24 ja 7bb <free+0x4f>
797: 8b 45 fc mov -0x4(%ebp),%eax
79a: 8b 00 mov (%eax),%eax
79c: 3b 45 f8 cmp -0x8(%ebp),%eax
79f: 77 1a ja 7bb <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)
7a1: 8b 45 fc mov -0x4(%ebp),%eax
7a4: 8b 00 mov (%eax),%eax
7a6: 89 45 fc mov %eax,-0x4(%ebp)
7a9: 8b 45 f8 mov -0x8(%ebp),%eax
7ac: 3b 45 fc cmp -0x4(%ebp),%eax
7af: 76 d4 jbe 785 <free+0x19>
7b1: 8b 45 fc mov -0x4(%ebp),%eax
7b4: 8b 00 mov (%eax),%eax
7b6: 3b 45 f8 cmp -0x8(%ebp),%eax
7b9: 76 ca jbe 785 <free+0x19>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
break;
if(bp + bp->s.size == p->s.ptr){
7bb: 8b 45 f8 mov -0x8(%ebp),%eax
7be: 8b 40 04 mov 0x4(%eax),%eax
7c1: c1 e0 03 shl $0x3,%eax
7c4: 89 c2 mov %eax,%edx
7c6: 03 55 f8 add -0x8(%ebp),%edx
7c9: 8b 45 fc mov -0x4(%ebp),%eax
7cc: 8b 00 mov (%eax),%eax
7ce: 39 c2 cmp %eax,%edx
7d0: 75 24 jne 7f6 <free+0x8a>
bp->s.size += p->s.ptr->s.size;
7d2: 8b 45 f8 mov -0x8(%ebp),%eax
7d5: 8b 50 04 mov 0x4(%eax),%edx
7d8: 8b 45 fc mov -0x4(%ebp),%eax
7db: 8b 00 mov (%eax),%eax
7dd: 8b 40 04 mov 0x4(%eax),%eax
7e0: 01 c2 add %eax,%edx
7e2: 8b 45 f8 mov -0x8(%ebp),%eax
7e5: 89 50 04 mov %edx,0x4(%eax)
bp->s.ptr = p->s.ptr->s.ptr;
7e8: 8b 45 fc mov -0x4(%ebp),%eax
7eb: 8b 00 mov (%eax),%eax
7ed: 8b 10 mov (%eax),%edx
7ef: 8b 45 f8 mov -0x8(%ebp),%eax
7f2: 89 10 mov %edx,(%eax)
7f4: eb 0a jmp 800 <free+0x94>
} else
bp->s.ptr = p->s.ptr;
7f6: 8b 45 fc mov -0x4(%ebp),%eax
7f9: 8b 10 mov (%eax),%edx
7fb: 8b 45 f8 mov -0x8(%ebp),%eax
7fe: 89 10 mov %edx,(%eax)
if(p + p->s.size == bp){
800: 8b 45 fc mov -0x4(%ebp),%eax
803: 8b 40 04 mov 0x4(%eax),%eax
806: c1 e0 03 shl $0x3,%eax
809: 03 45 fc add -0x4(%ebp),%eax
80c: 3b 45 f8 cmp -0x8(%ebp),%eax
80f: 75 20 jne 831 <free+0xc5>
p->s.size += bp->s.size;
811: 8b 45 fc mov -0x4(%ebp),%eax
814: 8b 50 04 mov 0x4(%eax),%edx
817: 8b 45 f8 mov -0x8(%ebp),%eax
81a: 8b 40 04 mov 0x4(%eax),%eax
81d: 01 c2 add %eax,%edx
81f: 8b 45 fc mov -0x4(%ebp),%eax
822: 89 50 04 mov %edx,0x4(%eax)
p->s.ptr = bp->s.ptr;
825: 8b 45 f8 mov -0x8(%ebp),%eax
828: 8b 10 mov (%eax),%edx
82a: 8b 45 fc mov -0x4(%ebp),%eax
82d: 89 10 mov %edx,(%eax)
82f: eb 08 jmp 839 <free+0xcd>
} else
p->s.ptr = bp;
831: 8b 45 fc mov -0x4(%ebp),%eax
834: 8b 55 f8 mov -0x8(%ebp),%edx
837: 89 10 mov %edx,(%eax)
freep = p;
839: 8b 45 fc mov -0x4(%ebp),%eax
83c: a3 48 0c 00 00 mov %eax,0xc48
}
841: c9 leave
842: c3 ret
00000843 <morecore>:
static Header*
morecore(uint nu)
{
843: 55 push %ebp
844: 89 e5 mov %esp,%ebp
846: 83 ec 28 sub $0x28,%esp
char *p;
Header *hp;
if(nu < 4096)
849: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp)
850: 77 07 ja 859 <morecore+0x16>
nu = 4096;
852: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp)
p = sbrk(nu * sizeof(Header));
859: 8b 45 08 mov 0x8(%ebp),%eax
85c: c1 e0 03 shl $0x3,%eax
85f: 89 04 24 mov %eax,(%esp)
862: e8 49 fc ff ff call 4b0 <sbrk>
867: 89 45 f4 mov %eax,-0xc(%ebp)
if(p == (char*)-1)
86a: 83 7d f4 ff cmpl $0xffffffff,-0xc(%ebp)
86e: 75 07 jne 877 <morecore+0x34>
return 0;
870: b8 00 00 00 00 mov $0x0,%eax
875: eb 22 jmp 899 <morecore+0x56>
hp = (Header*)p;
877: 8b 45 f4 mov -0xc(%ebp),%eax
87a: 89 45 f0 mov %eax,-0x10(%ebp)
hp->s.size = nu;
87d: 8b 45 f0 mov -0x10(%ebp),%eax
880: 8b 55 08 mov 0x8(%ebp),%edx
883: 89 50 04 mov %edx,0x4(%eax)
free((void*)(hp + 1));
886: 8b 45 f0 mov -0x10(%ebp),%eax
889: 83 c0 08 add $0x8,%eax
88c: 89 04 24 mov %eax,(%esp)
88f: e8 d8 fe ff ff call 76c <free>
return freep;
894: a1 48 0c 00 00 mov 0xc48,%eax
}
899: c9 leave
89a: c3 ret
0000089b <malloc>:
void*
malloc(uint nbytes)
{
89b: 55 push %ebp
89c: 89 e5 mov %esp,%ebp
89e: 83 ec 28 sub $0x28,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
8a1: 8b 45 08 mov 0x8(%ebp),%eax
8a4: 83 c0 07 add $0x7,%eax
8a7: c1 e8 03 shr $0x3,%eax
8aa: 83 c0 01 add $0x1,%eax
8ad: 89 45 ec mov %eax,-0x14(%ebp)
if((prevp = freep) == 0){
8b0: a1 48 0c 00 00 mov 0xc48,%eax
8b5: 89 45 f0 mov %eax,-0x10(%ebp)
8b8: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
8bc: 75 23 jne 8e1 <malloc+0x46>
base.s.ptr = freep = prevp = &base;
8be: c7 45 f0 40 0c 00 00 movl $0xc40,-0x10(%ebp)
8c5: 8b 45 f0 mov -0x10(%ebp),%eax
8c8: a3 48 0c 00 00 mov %eax,0xc48
8cd: a1 48 0c 00 00 mov 0xc48,%eax
8d2: a3 40 0c 00 00 mov %eax,0xc40
base.s.size = 0;
8d7: c7 05 44 0c 00 00 00 movl $0x0,0xc44
8de: 00 00 00
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
8e1: 8b 45 f0 mov -0x10(%ebp),%eax
8e4: 8b 00 mov (%eax),%eax
8e6: 89 45 f4 mov %eax,-0xc(%ebp)
if(p->s.size >= nunits){
8e9: 8b 45 f4 mov -0xc(%ebp),%eax
8ec: 8b 40 04 mov 0x4(%eax),%eax
8ef: 3b 45 ec cmp -0x14(%ebp),%eax
8f2: 72 4d jb 941 <malloc+0xa6>
if(p->s.size == nunits)
8f4: 8b 45 f4 mov -0xc(%ebp),%eax
8f7: 8b 40 04 mov 0x4(%eax),%eax
8fa: 3b 45 ec cmp -0x14(%ebp),%eax
8fd: 75 0c jne 90b <malloc+0x70>
prevp->s.ptr = p->s.ptr;
8ff: 8b 45 f4 mov -0xc(%ebp),%eax
902: 8b 10 mov (%eax),%edx
904: 8b 45 f0 mov -0x10(%ebp),%eax
907: 89 10 mov %edx,(%eax)
909: eb 26 jmp 931 <malloc+0x96>
else {
p->s.size -= nunits;
90b: 8b 45 f4 mov -0xc(%ebp),%eax
90e: 8b 40 04 mov 0x4(%eax),%eax
911: 89 c2 mov %eax,%edx
913: 2b 55 ec sub -0x14(%ebp),%edx
916: 8b 45 f4 mov -0xc(%ebp),%eax
919: 89 50 04 mov %edx,0x4(%eax)
p += p->s.size;
91c: 8b 45 f4 mov -0xc(%ebp),%eax
91f: 8b 40 04 mov 0x4(%eax),%eax
922: c1 e0 03 shl $0x3,%eax
925: 01 45 f4 add %eax,-0xc(%ebp)
p->s.size = nunits;
928: 8b 45 f4 mov -0xc(%ebp),%eax
92b: 8b 55 ec mov -0x14(%ebp),%edx
92e: 89 50 04 mov %edx,0x4(%eax)
}
freep = prevp;
931: 8b 45 f0 mov -0x10(%ebp),%eax
934: a3 48 0c 00 00 mov %eax,0xc48
return (void*)(p + 1);
939: 8b 45 f4 mov -0xc(%ebp),%eax
93c: 83 c0 08 add $0x8,%eax
93f: eb 38 jmp 979 <malloc+0xde>
}
if(p == freep)
941: a1 48 0c 00 00 mov 0xc48,%eax
946: 39 45 f4 cmp %eax,-0xc(%ebp)
949: 75 1b jne 966 <malloc+0xcb>
if((p = morecore(nunits)) == 0)
94b: 8b 45 ec mov -0x14(%ebp),%eax
94e: 89 04 24 mov %eax,(%esp)
951: e8 ed fe ff ff call 843 <morecore>
956: 89 45 f4 mov %eax,-0xc(%ebp)
959: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
95d: 75 07 jne 966 <malloc+0xcb>
return 0;
95f: b8 00 00 00 00 mov $0x0,%eax
964: eb 13 jmp 979 <malloc+0xde>
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
if((prevp = freep) == 0){
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
966: 8b 45 f4 mov -0xc(%ebp),%eax
969: 89 45 f0 mov %eax,-0x10(%ebp)
96c: 8b 45 f4 mov -0xc(%ebp),%eax
96f: 8b 00 mov (%eax),%eax
971: 89 45 f4 mov %eax,-0xc(%ebp)
return (void*)(p + 1);
}
if(p == freep)
if((p = morecore(nunits)) == 0)
return 0;
}
974: e9 70 ff ff ff jmp 8e9 <malloc+0x4e>
}
979: c9 leave
97a: c3 ret
| 33.940343 | 60 | 0.429846 |
3b608efb99c2d5ce0b3bba781d8ab41823952a0f | 4,464 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0x84_notsx.log_210_2536.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_210_2536.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_210_2536.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 %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xb0a, %r12
nop
nop
and %r10, %r10
movb $0x61, (%r12)
nop
nop
nop
nop
nop
and $61834, %rbx
lea addresses_normal_ht+0x932, %rsi
lea addresses_UC_ht+0xa236, %rdi
nop
nop
nop
nop
nop
xor %rax, %rax
mov $90, %rcx
rep movsl
nop
nop
nop
nop
and $4659, %r12
lea addresses_D_ht+0x1584a, %rcx
and %rdi, %rdi
movw $0x6162, (%rcx)
nop
nop
nop
cmp %rax, %rax
lea addresses_UC_ht+0x224a, %r10
add %rdi, %rdi
mov $0x6162636465666768, %r12
movq %r12, %xmm2
vmovups %ymm2, (%r10)
nop
nop
nop
cmp %rax, %rax
lea addresses_normal_ht+0x1cd07, %r10
nop
nop
nop
nop
sub %rdi, %rdi
mov (%r10), %r11w
nop
xor $2623, %rax
lea addresses_UC_ht+0xdc4a, %rsi
lea addresses_normal_ht+0x32ba, %rdi
cmp %rax, %rax
mov $82, %rcx
rep movsq
nop
nop
cmp %rax, %rax
lea addresses_WC_ht+0x2c4a, %rcx
xor %rax, %rax
mov (%rcx), %r10w
nop
nop
nop
dec %rbx
lea addresses_D_ht+0x1b44a, %r12
cmp %rsi, %rsi
and $0xffffffffffffffc0, %r12
movntdqa (%r12), %xmm3
vpextrq $1, %xmm3, %rax
xor %r12, %r12
lea addresses_WC_ht+0xc16, %r10
nop
nop
nop
sub $7407, %r12
movl $0x61626364, (%r10)
nop
nop
nop
nop
nop
inc %rdi
lea addresses_normal_ht+0x1944a, %rcx
nop
nop
nop
xor %rdi, %rdi
mov (%rcx), %r12d
nop
nop
nop
xor %rcx, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r12
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r15
push %r8
push %rax
push %rcx
push %rdx
// Store
lea addresses_WT+0x2c4a, %r8
nop
nop
nop
and %r12, %r12
movl $0x51525354, (%r8)
nop
inc %r15
// Store
lea addresses_RW+0xa87a, %rax
cmp %r15, %r15
mov $0x5152535455565758, %rcx
movq %rcx, %xmm5
vmovups %ymm5, (%rax)
nop
nop
nop
nop
and %rdx, %rdx
// Faulty Load
lea addresses_WT+0x2c4a, %rdx
dec %r12
mov (%rdx), %r8
lea oracles, %rdx
and $0xff, %r8
shlq $12, %r8
mov (%rdx,%r8,1), %r8
pop %rdx
pop %rcx
pop %rax
pop %r8
pop %r15
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_WT', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WT', 'same': True, 'size': 4, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_RW', 'same': False, 'size': 32, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_WT', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 1, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 2, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 2, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 16, 'congruent': 9, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 4, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'54': 210}
54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54
*/
| 24.26087 | 629 | 0.649418 |
26a53028783884713ee281150fc76eb54c4d0c58 | 417 | asm | Assembly | nasm assembly/assgnment 3/print_string.asm | AI-Factor-y/NASM-library | 5141901352a47b73e716e27d628bb719f1891092 | [
"Apache-2.0"
] | null | null | null | nasm assembly/assgnment 3/print_string.asm | AI-Factor-y/NASM-library | 5141901352a47b73e716e27d628bb719f1891092 | [
"Apache-2.0"
] | null | null | null | nasm assembly/assgnment 3/print_string.asm | AI-Factor-y/NASM-library | 5141901352a47b73e716e27d628bb719f1891092 | [
"Apache-2.0"
] | null | null | null |
print_array_string:
;; usage
;-----------
; 1: base address of string to print is stored in ebx
push rax
push rbx
push rcx
printing:
mov al, byte[ebx]
mov byte[temp], al
cmp byte[temp], 0 ;; checks if the character is NULL character
je end_printing
push rbx
mov eax, 4
mov ebx, 1
mov ecx, temp
mov edx, 1
int 80h
pop rbx
inc ebx
jmp printing
end_printing:
pop rcx
pop rbx
pop rax
ret
| 12.636364 | 63 | 0.666667 |
691c90781c85d381929105927234265bce5ea761 | 376 | asm | Assembly | programs/oeis/085/A085788.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/085/A085788.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/085/A085788.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A085788: Partial sums of n 3-spaced triangular numbers beginning with t(3), e.g., a(2)=t(3)+t(6)=6+21=27.
; 6,27,72,150,270,441,672,972,1350,1815,2376,3042,3822,4725,5760,6936,8262,9747,11400,13230,15246,17457,19872,22500,25350,28431,31752,35322,39150,43245,47616,52272,57222,62475,68040,73926,80142,86697,93600,100860,108486
add $0,2
mov $1,$0
bin $1,2
mul $0,$1
mul $0,3
| 41.777778 | 219 | 0.731383 |
d68a181aa2bf269b9316720f4bb0d544a94e24de | 6,210 | asm | Assembly | coverage/IN_CTS/0428-COVERAGE-nir-opt-remove-phis-118/work/variant/1_spirv_asm/shader.frag.asm | asuonpaa/ShaderTests | 6a3672040dcfa0d164d313224446496d1775a15e | [
"Apache-2.0"
] | null | null | null | coverage/IN_CTS/0428-COVERAGE-nir-opt-remove-phis-118/work/variant/1_spirv_asm/shader.frag.asm | asuonpaa/ShaderTests | 6a3672040dcfa0d164d313224446496d1775a15e | [
"Apache-2.0"
] | 47 | 2021-03-11T07:42:51.000Z | 2022-03-14T06:30:14.000Z | coverage/IN_CTS/0428-COVERAGE-nir-opt-remove-phis-118/work/variant/1_spirv_asm/shader.frag.asm | asuonpaa/ShaderTests | 6a3672040dcfa0d164d313224446496d1775a15e | [
"Apache-2.0"
] | 4 | 2021-03-09T13:37:19.000Z | 2022-02-25T07:32:11.000Z | ; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 10
; Bound: 120
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %4 "main" %101
OpExecutionMode %4 OriginUpperLeft
OpSource ESSL 320
OpName %4 "main"
OpName %10 "func(i1;"
OpName %9 "x"
OpName %12 "a"
OpName %16 "buf0"
OpMemberName %16 0 "_GLF_uniform_int_values"
OpName %18 ""
OpName %23 "i"
OpName %51 "indexable"
OpName %80 "a"
OpName %81 "param"
OpName %85 "param"
OpName %101 "_GLF_color"
OpDecorate %15 ArrayStride 16
OpMemberDecorate %16 0 Offset 0
OpDecorate %16 Block
OpDecorate %18 DescriptorSet 0
OpDecorate %18 Binding 0
OpDecorate %101 Location 0
%2 = OpTypeVoid
%3 = OpTypeFunction %2
%6 = OpTypeInt 32 1
%7 = OpTypePointer Function %6
%8 = OpTypeFunction %6 %7
%13 = OpTypeInt 32 0
%14 = OpConstant %13 5
%15 = OpTypeArray %6 %14
%16 = OpTypeStruct %15
%17 = OpTypePointer Uniform %16
%18 = OpVariable %17 Uniform
%19 = OpConstant %6 0
%20 = OpTypePointer Uniform %6
%32 = OpConstant %6 1
%35 = OpTypeBool
%37 = OpConstant %6 3
%46 = OpConstant %13 4
%47 = OpTypeArray %6 %46
%50 = OpTypePointer Function %47
%58 = OpConstantTrue %35
%70 = OpConstant %6 4
%92 = OpConstant %6 2
%98 = OpTypeFloat 32
%99 = OpTypeVector %98 4
%100 = OpTypePointer Output %99
%101 = OpVariable %100 Output
%4 = OpFunction %2 None %3
%5 = OpLabel
%80 = OpVariable %7 Function
%81 = OpVariable %7 Function
%85 = OpVariable %7 Function
%82 = OpAccessChain %20 %18 %19 %19
%83 = OpLoad %6 %82
OpStore %81 %83
%84 = OpFunctionCall %6 %10 %81
OpStore %80 %84
%86 = OpAccessChain %20 %18 %19 %37
%87 = OpLoad %6 %86
OpStore %85 %87
%88 = OpFunctionCall %6 %10 %85
%89 = OpLoad %6 %80
%90 = OpIAdd %6 %89 %88
OpStore %80 %90
%91 = OpLoad %6 %80
%93 = OpAccessChain %20 %18 %19 %92
%94 = OpLoad %6 %93
%95 = OpIEqual %35 %91 %94
OpSelectionMerge %97 None
OpBranchConditional %95 %96 %115
%96 = OpLabel
%102 = OpAccessChain %20 %18 %19 %37
%103 = OpLoad %6 %102
%104 = OpConvertSToF %98 %103
%105 = OpAccessChain %20 %18 %19 %19
%106 = OpLoad %6 %105
%107 = OpConvertSToF %98 %106
%108 = OpAccessChain %20 %18 %19 %19
%109 = OpLoad %6 %108
%110 = OpConvertSToF %98 %109
%111 = OpAccessChain %20 %18 %19 %37
%112 = OpLoad %6 %111
%113 = OpConvertSToF %98 %112
%114 = OpCompositeConstruct %99 %104 %107 %110 %113
OpStore %101 %114
OpBranch %97
%115 = OpLabel
%116 = OpAccessChain %20 %18 %19 %19
%117 = OpLoad %6 %116
%118 = OpConvertSToF %98 %117
%119 = OpCompositeConstruct %99 %118 %118 %118 %118
OpStore %101 %119
OpBranch %97
%97 = OpLabel
OpReturn
OpFunctionEnd
%10 = OpFunction %6 None %8
%9 = OpFunctionParameter %7
%11 = OpLabel
%12 = OpVariable %7 Function
%23 = OpVariable %7 Function
%51 = OpVariable %50 Function
%21 = OpAccessChain %20 %18 %19 %19
%22 = OpLoad %6 %21
OpStore %12 %22
%24 = OpAccessChain %20 %18 %19 %19
%25 = OpLoad %6 %24
OpStore %23 %25
OpBranch %26
%26 = OpLabel
OpLoopMerge %28 %29 None
OpBranch %30
%30 = OpLabel
%31 = OpLoad %6 %23
%33 = OpAccessChain %20 %18 %19 %32
%34 = OpLoad %6 %33
%36 = OpSLessThan %35 %31 %34
OpBranchConditional %36 %27 %28
%27 = OpLabel
%38 = OpAccessChain %20 %18 %19 %37
%39 = OpLoad %6 %38
%40 = OpAccessChain %20 %18 %19 %37
%41 = OpLoad %6 %40
%42 = OpAccessChain %20 %18 %19 %37
%43 = OpLoad %6 %42
%44 = OpAccessChain %20 %18 %19 %37
%45 = OpLoad %6 %44
%48 = OpCompositeConstruct %47 %39 %41 %43 %45
%49 = OpLoad %6 %12
OpStore %51 %48
%52 = OpAccessChain %7 %51 %49
%53 = OpLoad %6 %52
%54 = OpLoad %6 %9
%55 = OpSGreaterThan %35 %53 %54
OpSelectionMerge %57 None
OpBranchConditional %55 %56 %67
%56 = OpLabel
OpSelectionMerge %60 None
OpBranchConditional %58 %59 %64
%59 = OpLabel
%61 = OpAccessChain %20 %18 %19 %37
%62 = OpLoad %6 %61
OpReturnValue %62
%64 = OpLabel
%65 = OpAccessChain %20 %18 %19 %37
%66 = OpLoad %6 %65
OpStore %12 %66
OpBranch %60
%60 = OpLabel
OpBranch %57
%67 = OpLabel
OpSelectionMerge %69 None
OpBranchConditional %58 %68 %69
%68 = OpLabel
%71 = OpAccessChain %20 %18 %19 %70
%72 = OpLoad %6 %71
OpReturnValue %72
%69 = OpLabel
OpBranch %57
%57 = OpLabel
OpBranch %29
%29 = OpLabel
%74 = OpLoad %6 %23
%75 = OpIAdd %6 %74 %32
OpStore %23 %75
OpBranch %26
%28 = OpLabel
%76 = OpAccessChain %20 %18 %19 %19
%77 = OpLoad %6 %76
OpReturnValue %77
OpFunctionEnd
| 34.309392 | 59 | 0.47343 |
5694078d4bd1a44735be809bdd242737be717358 | 624 | asm | Assembly | oeis/115/A115140.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/115/A115140.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/115/A115140.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A115140: O.g.f. inverse of Catalan A000108 o.g.f.
; 1,-1,-1,-2,-5,-14,-42,-132,-429,-1430,-4862,-16796,-58786,-208012,-742900,-2674440,-9694845,-35357670,-129644790,-477638700,-1767263190,-6564120420,-24466267020,-91482563640,-343059613650,-1289904147324,-4861946401452,-18367353072152,-69533550916004,-263747951750360,-1002242216651368,-3814986502092304,-14544636039226909,-55534064877048198,-212336130412243110,-812944042149730764,-3116285494907301262,-11959798385860453492,-45950804324621742364,-176733862787006701400,-680425371729975800390
mov $1,$0
mul $0,2
sub $0,1
bin $0,$1
mov $2,1
sub $2,$1
sub $2,$1
div $0,$2
| 52 | 493 | 0.780449 |
3188fb86bec2f03d3e0e1dbcf77ab0fb2de0f164 | 2,292 | asm | Assembly | source/dictionary/create.asm | paulscottrobson/lean | 53975cf780ba7c67d6f7c8ff3530fde2a4c70010 | [
"MIT"
] | 2 | 2020-01-05T03:47:50.000Z | 2020-01-06T15:38:15.000Z | source/dictionary/create.asm | paulscottrobson/lean | 53975cf780ba7c67d6f7c8ff3530fde2a4c70010 | [
"MIT"
] | null | null | null | source/dictionary/create.asm | paulscottrobson/lean | 53975cf780ba7c67d6f7c8ff3530fde2a4c70010 | [
"MIT"
] | 1 | 2021-05-14T17:04:16.000Z | 2021-05-14T17:04:16.000Z | ; ******************************************************************************
; ******************************************************************************
;
; Name : create.asm
; Purpose : Create/Update Dictionary Entries
; Author : Paul Robson (paul@robsons.org.uk)
; Created : 27th October 2019
;
; ******************************************************************************
; ******************************************************************************
; ******************************************************************************
;
; Create dictionary entry. YX is identifier, A type.
;
; ******************************************************************************
DictionaryCreate:
stx zTemp0 ; save identifier position
sty zTemp0+1
ldy #1 ; write the type byte out.
sta (dictPtr),y
ldy #0 ; work out length.
_DCGetLength:
lda (zTemp0),y
iny
asl a
bcc _DCGetLength
phy ; save Y on stack.
tya ; save length +6 as offset
clc
adc #6
sta (dictPtr)
;
ldy #2 ; fill 2 to 4 with $FF
_DCFill:lda #$FF
sta (dictPtr),y
iny
cpy #5
bne _DCFill
pla ; get length, store in X
tax
sta (dictPtr),y ; write length out.
ldy #0
_DCCopy:
lda (zTemp0),y ; next identifier character
iny ; save +1 on stack
phy
iny ; advance by 6 total
iny
iny
iny
iny
sta (dictPtr),y ; write out
ply ; restore +1
dex
bne _DCCopy ; do that the required# times.
;
lda dictPtr ; copy last created
sta lastCreate
lda dictPtr+1
sta lastCreate+1
;
clc ; advance dictionary pointer
lda (dictPtr)
adc dictPtr
sta dictPtr
bcc _DCNoCarry
inc dictPtr+1
_DCNoCarry:
lda #$00 ; write end of dictionary marker
sta (dictPtr)
rts
; ******************************************************************************
;
; Set last create data to A,X,Y
;
; ******************************************************************************
DictionarySet:
pha
phx
phy
phy ; copy data out to
ldy #4 ; offset 2,3,4 => A X Y
sta (lastCreate),y
dey
pla
sta (lastCreate),y
dey
txa
sta (lastCreate),y
ply
plx
pla
rts
| 22.92 | 80 | 0.415358 |
a7db70b242da3f8692439f3a478a16a32cc4e4f9 | 269 | asm | Assembly | 0x12-singly_linked_lists/101-hello_holberton.asm | JRodriguez9510/holbertonschool-low_level_programming | 3a0343f948a0586f5834f3e92f203aaa2a8a4757 | [
"MIT"
] | 1 | 2021-01-27T03:13:38.000Z | 2021-01-27T03:13:38.000Z | 0x12-singly_linked_lists/101-hello_holberton.asm | JRodriguez9510/holbertonschool-low_level_programming | 3a0343f948a0586f5834f3e92f203aaa2a8a4757 | [
"MIT"
] | null | null | null | 0x12-singly_linked_lists/101-hello_holberton.asm | JRodriguez9510/holbertonschool-low_level_programming | 3a0343f948a0586f5834f3e92f203aaa2a8a4757 | [
"MIT"
] | 1 | 2020-10-22T04:55:08.000Z | 2020-10-22T04:55:08.000Z | section .rodata
format: db 'Hello, %s', 10, 0
name: db 'Holberton', 0
section .text
global main
extern printf
main:
;; printf(format, name)
mov rdi, format
mov rsi, name
;; no XMM registers
mov rax, 0
call printf
;; return 0
mov rax, 0
ret
| 14.944444 | 30 | 0.628253 |
8a537b9fd95f37beb1455b52167bfaa36ab17350 | 8,011 | asm | Assembly | audio/music/route1.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 28 | 2019-11-08T07:19:00.000Z | 2021-12-20T10:17:54.000Z | audio/music/route1.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 13 | 2020-01-11T17:00:40.000Z | 2021-09-14T01:27:38.000Z | audio/music/route1.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 22 | 2020-05-28T17:31:38.000Z | 2022-03-07T20:49:35.000Z | Music_Route1:
musicheader 3, 1, Music_Route1_Ch1
musicheader 1, 2, Music_Route1_Ch2
musicheader 1, 3, Music_Route1_Ch3
db $3
Music_Route1_Ch1:
stereopanning $f
tempo 184
volume $77
vibrato $16, $11
dutycycle $3
notetype $c, $83
octave 4
note D_, 1
note E_, 1
note F#, 2
note F#, 2
note D_, 2
octave 3
note A_, 2
octave 4
note B_, 2
note A_, 2
note G_, 2
note F#, 2
note D_, 2
octave 3
note A_, 2
note F#, 2
note G_, 1
note A_, 1
note G_, 2
note E_, 2
note G_, 1
note E_, 1
octave 4
note D_, 1
note E_, 1
note F#, 2
note F#, 2
note D_, 2
octave 3
note A_, 2
octave 4
note B_, 2
note A_, 2
note G_, 3
note E_, 1
note E_, 2
note G_, 2
note A_, 2
note G_, 2
note F#, 2
intensity $81
octave 5
note D_, 2
note D_, 2
intensity $83
note __, 2
Music_Route1_branch_ec04a:
intensity $83
note __, 2
octave 4
note D_, 2
octave 3
note A_, 2
note __, 4
octave 4
note D_, 2
octave 3
note A_, 2
note __, 2
note __, 2
octave 4
note D_, 2
octave 3
note A_, 3
octave 4
note D_, 1
octave 3
note E_, 2
intensity $81
note G_, 2
note G_, 2
intensity $83
note __, 2
note __, 2
octave 4
note C#, 2
octave 3
note A_, 2
note __, 4
octave 4
note C#, 2
octave 3
note A_, 2
note __, 2
note __, 2
octave 4
note C#, 2
note C#, 1
octave 3
note B_, 1
note A_, 1
note G_, 1
note F#, 2
note A_, 2
octave 4
note D_, 2
note __, 2
note __, 2
octave 3
note F#, 1
note G_, 1
note A_, 4
note __, 2
note D_, 1
note E_, 1
note F#, 2
note F#, 1
note G_, 1
note A_, 2
note A_, 1
note B_, 1
note A_, 2
note A_, 1
note B_, 1
note A_, 2
intensity $81
octave 4
note G_, 2
note G_, 2
intensity $83
octave 3
note F#, 1
note E_, 1
note __, 2
note E_, 1
note F#, 1
note G_, 6
note E_, 1
octave 2
note B_, 1
octave 3
note C#, 2
note E_, 1
note F#, 1
note G_, 4
notetype $8, $83
note A_, 1
note B_, 1
note A_, 1
notetype $c, $83
note G_, 1
note E_, 1
note F#, 2
intensity $81
octave 4
note A_, 2
note A_, 2
intensity $83
octave 3
note A_, 1
note G_, 1
intensity $77
intensity $1d
note F#, 4
note A_, 4
note G_, 2
note F#, 2
note E_, 2
note G_, 2
note F#, 4
note A_, 3
note F#, 1
note E_, 2
note A_, 2
octave 4
note C#, 2
octave 3
note A_, 1
note G_, 1
dutycycle $2
intensity $87
octave 6
note F#, 4
note A_, 4
note G_, 2
note F#, 2
note E_, 3
note G_, 1
note F#, 2
note D_, 2
note E_, 2
note C#, 2
note D_, 2
intensity $81
octave 5
note D_, 2
note D_, 2
note __, 2
loopchannel 0, Music_Route1_branch_ec04a
Music_Route1_Ch2:
stereopanning $f0
vibrato $12, $22
dutycycle $2
notetype $c, $92
octave 4
note F#, 1
note G_, 1
callchannel Music_Route1_branch_ec198
octave 3
note A_, 2
note A_, 2
octave 4
note F#, 1
note G_, 1
callchannel Music_Route1_branch_ec1aa
note C#, 2
note E_, 2
note D_, 2
intensity $81
note F#, 2
note F#, 2
intensity $82
octave 4
note D_, 1
note E_, 1
dutycycle $2
Music_Route1_branch_ec112:
intensity $82
callchannel Music_Route1_branch_ec188
intensity $81
octave 3
note A_, 2
note A_, 2
intensity $82
octave 4
note C#, 1
note D_, 1
note E_, 2
note E_, 2
note E_, 2
note C#, 1
note D_, 1
note E_, 2
note E_, 2
note E_, 2
note C#, 1
note D_, 1
note E_, 2
note E_, 2
note F#, 1
note E_, 1
note E_, 1
note F#, 1
note D_, 2
note __, 2
note F#, 2
note D_, 1
note E_, 1
callchannel Music_Route1_branch_ec188
intensity $81
note A_, 2
note A_, 2
intensity $82
note C#, 1
note D_, 1
note E_, 2
note G_, 2
note F#, 2
note E_, 2
note D_, 2
note C#, 2
octave 3
note B_, 2
note A_, 2
octave 4
note B_, 4
notetype $8, $92
note C#, 1
note D_, 1
note C#, 1
notetype $c, $92
octave 3
note B_, 1
octave 4
note C#, 1
note D_, 2
intensity $81
octave 5
note D_, 2
note D_, 2
intensity $82
octave 4
note F#, 1
note G_, 1
callchannel Music_Route1_branch_ec198
note __, 4
note F#, 1
note G_, 1
callchannel Music_Route1_branch_ec1aa
notetype $8, $92
note C#, 1
note D_, 1
note C#, 1
notetype $c, $92
octave 4
note B_, 1
octave 5
note C#, 1
note D_, 2
intensity $81
note F#, 2
note F#, 2
intensity $82
octave 4
note D_, 1
note E_, 1
loopchannel 0, Music_Route1_branch_ec112
Music_Route1_branch_ec188:
note F#, 2
note F#, 2
note F#, 2
note D_, 1
note E_, 1
note F#, 2
note F#, 2
note F#, 2
note D_, 1
note E_, 1
note F#, 2
note F#, 2
note G_, 3
note F#, 1
note E_, 2
endchannel
Music_Route1_branch_ec198:
note A_, 2
note A_, 2
note F#, 2
note D_, 2
octave 5
note D_, 2
note C#, 2
octave 4
note B_, 2
octave 5
note D_, 2
octave 4
note A_, 2
note F#, 2
note D_, 3
note F#, 1
note E_, 2
endchannel
Music_Route1_branch_ec1aa:
note A_, 2
note A_, 2
note F#, 2
note D_, 2
octave 5
note D_, 2
note C#, 2
octave 4
note B_, 3
note G_, 1
note A_, 2
octave 5
note D_, 2
endchannel
Music_Route1_Ch3:
stereopanning $ff
vibrato $10, $23
notetype $c, $25
note __, 2
octave 3
note D_, 1
note __, 1
note A_, 1
note __, 1
octave 4
note F#, 1
note __, 3
octave 3
note D_, 1
note __, 1
note B_, 1
note __, 1
octave 4
note G_, 1
note __, 1
octave 3
note B_, 1
note __, 1
note D_, 1
note __, 1
note A_, 1
note __, 1
octave 4
note D_, 1
note __, 3
octave 3
note C#, 1
note __, 1
note A_, 1
note __, 1
octave 4
note C#, 1
note __, 1
note C#, 1
octave 3
note A_, 1
note D_, 1
octave 2
note A_, 1
octave 3
note D_, 1
note F#, 1
octave 4
note D_, 1
octave 3
note A_, 1
note F#, 1
note A_, 1
note G_, 1
note D_, 1
note G_, 1
note B_, 1
octave 4
note G_, 1
note D_, 1
octave 3
note B_, 1
note G_, 1
octave 2
note A_, 1
octave 3
note C#, 1
note E_, 1
note G_, 1
note E_, 1
note A_, 1
octave 4
note C#, 1
note G_, 1
note F#, 2
note A_, 1
note __, 1
note A_, 1
note __, 3
Music_Route1_branch_ec20c:
octave 3
note D_, 1
note __, 1
octave 4
note D_, 2
octave 3
note C#, 1
note __, 1
octave 4
note C#, 2
octave 2
note B_, 1
note __, 1
octave 3
note B_, 2
octave 2
note A_, 1
note __, 1
octave 3
note A_, 2
note D_, 1
note __, 1
octave 4
note D_, 2
octave 2
note A_, 1
note __, 1
octave 3
note A_, 2
octave 2
note B_, 1
note __, 1
octave 3
note B_, 2
octave 2
note A_, 1
note __, 1
octave 3
note A_, 2
note C#, 1
note __, 1
octave 4
note C#, 2
octave 2
note A_, 1
note __, 1
octave 3
note A_, 2
octave 2
note B_, 1
note __, 1
octave 3
note B_, 2
note C_, 1
note __, 1
octave 4
note C_, 2
octave 3
note C#, 1
note __, 1
octave 4
note C#, 2
octave 2
note A_, 1
note __, 1
octave 3
note A_, 2
octave 4
note D_, 2
note C#, 1
octave 3
note B_, 1
note A_, 2
note G_, 1
note E_, 1
octave 2
note D_, 1
note __, 1
octave 3
note D_, 2
octave 2
note E_, 1
note __, 1
octave 3
note E_, 2
octave 2
note F#, 1
note __, 1
octave 3
note F#, 2
octave 2
note A_, 1
note __, 1
octave 3
note A_, 2
octave 4
note D_, 2
octave 3
note A_, 2
octave 4
note D_, 2
note F#, 2
note E_, 2
octave 3
note E_, 1
note __, 1
note E_, 1
note __, 1
octave 4
note E_, 2
octave 3
note C#, 1
note __, 1
octave 4
note C#, 2
octave 2
note B_, 1
note __, 1
octave 3
note B_, 2
octave 2
note A_, 1
note __, 1
octave 3
note A_, 2
octave 2
note G_, 1
note __, 1
octave 3
note G_, 1
note B_, 1
octave 4
note C#, 2
note E_, 1
note C#, 1
octave 3
note A_, 1
note G_, 1
note E_, 1
note C#, 1
note D_, 2
octave 4
note F#, 1
note __, 1
note F#, 1
note __, 3
octave 3
note D_, 4
note F#, 4
note G_, 2
note A_, 2
note B_, 3
note G_, 1
note F#, 2
note D_, 2
octave 2
note A_, 3
octave 3
note D_, 1
note A_, 1
note B_, 1
note A_, 1
note B_, 1
note A_, 3
note G_, 1
note F#, 2
note D_, 2
octave 2
note A_, 2
octave 3
note D_, 2
note G_, 2
note F#, 2
note E_, 3
note C#, 1
note D_, 2
note F#, 2
note A_, 2
octave 4
note C#, 2
note D_, 2
octave 5
note A_, 1
note __, 1
note A_, 1
note __, 3
loopchannel 0, Music_Route1_branch_ec20c
| 12.381762 | 41 | 0.627637 |
1f83990d4f2f7119ddf3374cfc19c013fd0caa0b | 535 | asm | Assembly | programs/oeis/139/A139483.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/139/A139483.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/139/A139483.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A139483: Numbers n such that 24n+7 is prime.
; 0,1,3,4,5,6,8,9,11,15,18,19,20,25,26,30,31,34,38,40,41,43,44,45,51,53,54,55,58,59,60,61,64,65,69,73,74,76,78,81,83,89,93,95,96,99,104,106,110,111,113,115,116,120,128,136,138,139,141,144,146,148,149,150,151
mov $2,$0
add $2,1
pow $2,2
lpb $2
add $1,6
sub $2,1
mov $3,$1
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,18
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
lpe
div $1,2
sub $1,22
mul $1,2
add $1,20
div $1,24
mov $0,$1
| 21.4 | 207 | 0.618692 |
9c8ea4db1a75bf8eb6d67fa05d69a8d4eb1eae56 | 546 | asm | Assembly | programs/oeis/186/A186390.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/186/A186390.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/186/A186390.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A186390: Adjusted joint rank sequence of (f(i)) and (g(j)) with f(i) after g(j) when f(i)=g(j), where f(i)=6i and g(j)=j(j+1)/2 (triangular number). Complement of A186389.
; 1,2,3,5,7,9,11,13,16,19,21,24,28,31,34,38,42,46,50,54,59,64,68,73,79,84,89,95,101,107,113,119,126,133,139,146,154,161,168,176,184,192,200,208,217,226,234,243,253,262,271,281,291,301,311,321,332,343,353,364,376,387,398,410,422,434,446,458,471,484,496,509,523,536,549,563,577,591,605,619,634,649,663,678,694,709
mov $1,$0
add $1,3
mul $1,$0
div $1,12
add $1,$0
add $1,1
| 54.6 | 311 | 0.677656 |
d317d09f779535f30559ec23232d661982eaaae4 | 320 | asm | Assembly | programs/oeis/261/A261343.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/261/A261343.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/261/A261343.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A261343: 50-gonal numbers: a(n) = 48*n*(n-1)/2 + n.
; 0,1,50,147,292,485,726,1015,1352,1737,2170,2651,3180,3757,4382,5055,5776,6545,7362,8227,9140,10101,11110,12167,13272,14425,15626,16875,18172,19517,20910,22351,23840,25377,26962,28595,30276,32005,33782,35607,37480
mov $1,24
mul $1,$0
sub $1,23
mul $1,$0
mov $0,$1
| 35.555556 | 214 | 0.715625 |
e6e244b96ce845c44d6e28fd0e573e2b977f616c | 367 | asm | Assembly | data/mapHeaders/Route13.asm | AmateurPanda92/pokemon-rby-dx | f7ba1cc50b22d93ed176571e074a52d73360da93 | [
"MIT"
] | 9 | 2020-07-12T19:44:21.000Z | 2022-03-03T23:32:40.000Z | data/mapHeaders/Route13.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 7 | 2020-07-16T10:48:52.000Z | 2021-01-28T18:32:02.000Z | data/mapHeaders/Route13.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 2 | 2021-03-28T18:33:43.000Z | 2021-05-06T13:12:09.000Z | Route13_h:
db OVERWORLD ; tileset
db ROUTE_13_HEIGHT, ROUTE_13_WIDTH ; dimensions (y, x)
dw Route13_Blocks ; blocks
dw Route13_TextPointers ; texts
dw Route13_Script ; scripts
db NORTH | WEST ; connections
NORTH_MAP_CONNECTION ROUTE_13, ROUTE_12, 20, 0, Route12_Blocks
WEST_MAP_CONNECTION ROUTE_13, ROUTE_14, 0, 0, Route14_Blocks
dw Route13_Object ; objects
| 33.363636 | 63 | 0.792916 |
d9a3f38da170c49e1092eda524c9ddad27166188 | 576 | asm | Assembly | oeis/188/A188302.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/188/A188302.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/188/A188302.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A188302: Positions of 1 in A188300; complement of A188301.
; 10,17,27,34,44,51,58,68,75,85,92,99,109,116,126,133,143,150,157,167,174,184,191,198,208,215,225,232,242,249,256,266,273,283,290,297,307,314,324,331,338,348,355,365,372,382,389,396,406,413,423,430,437,447,454,464,471,481,488,495,505,512,522,529,536,546,553,563,570,577,587,594,604,611,621,628,635,645,652,662,669,676,686,693,703,710,720,727,734,744,751,761,768,775,785,792,802,809,819,826
max $2,$0
mov $3,$0
seq $0,87057 ; Smallest number whose square is larger than 2*n^2.
add $0,$2
mul $0,3
add $0,$3
add $0,4
| 52.363636 | 389 | 0.71875 |
e25640e1f9675ed6f5e588346c442a7c73b50bdf | 3,721 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_350.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_350.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_350.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r14
push %rbp
push %rcx
push %rdx
push %rsi
// Faulty Load
lea addresses_PSE+0xf43b, %r14
nop
nop
nop
nop
xor %rbp, %rbp
movb (%r14), %cl
lea oracles, %rbp
and $0xff, %rcx
shlq $12, %rcx
mov (%rbp,%rcx,1), %rcx
pop %rsi
pop %rdx
pop %rcx
pop %rbp
pop %r14
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'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
*/
| 80.891304 | 2,999 | 0.664069 |
7b2af040cd49962e73e3ebee4b7cd644b94ebc5d | 606 | asm | Assembly | libsrc/zx81/filltxt.asm | andydansby/z88dk-mk2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | 1 | 2020-09-15T08:35:49.000Z | 2020-09-15T08:35:49.000Z | libsrc/zx81/filltxt.asm | andydansby/z88dk-MK2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | null | null | null | libsrc/zx81/filltxt.asm | andydansby/z88dk-MK2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | null | null | null | ;
; ZX81 libraries - Stefano 7/8/2009
;
;----------------------------------------------------------------
;
; $Id: filltxt.asm,v 1.4 2012/01/09 16:02:36 stefano Exp $
;
;----------------------------------------------------------------
;
; Fill text memory with specified character code
;
;----------------------------------------------------------------
XLIB filltxt
LIB zx_topleft
XREF base_graphics
filltxt:
; __FASTCALL__ mode
ld a,l
ld hl,(16396)
inc hl
ld b,24
floop:
push bc
ld (hl),a
ld d,h
ld e,l
inc de
ld bc,31
ldir
inc hl
inc hl
pop bc
djnz floop
jp zx_topleft
| 15.15 | 65 | 0.440594 |
5dfef6f6240d75f054903c7619fbddbbf43b634f | 14,297 | asm | Assembly | src/spiral.fx.asm | BlockoS/up-news | 0f67eac47d36e5e71e403b22fb009633eec6d560 | [
"BSD-3-Clause"
] | 2 | 2017-03-18T21:38:08.000Z | 2017-03-20T18:48:56.000Z | src/spiral.fx.asm | BlockoS/up-news | 0f67eac47d36e5e71e403b22fb009633eec6d560 | [
"BSD-3-Clause"
] | null | null | null | src/spiral.fx.asm | BlockoS/up-news | 0f67eac47d36e5e71e403b22fb009633eec6d560 | [
"BSD-3-Clause"
] | null | null | null | .zp
breaking_news .ds 2
news_start .ds 2
news_limit .ds 1
news_delta .ds 1
news_delay .ds 1
news_rcr .ds 2
news_str.ptr .ds 2
news_str.idx .ds 1
.code
SPIRAL_VDC_DISPLAY_FLAG = VDC_CR_RW_INC_1 | VDC_CR_BG_ENABLE | VDC_CR_SPR_ENABLE | VDC_CR_VBLANK_ENABLE | VDC_CR_HBLANK_ENABLE
SPIRAL_16x16_VRAM_ADDR = $2040
SPIRAL_32x32_VRAM_ADDR = $2200
SPIRAL_BREAKING_NEWS_VRAM_ADDR = $2a00
SPIRAL_BREAKING_NEWS_WIDTH = 16
SPIRAL_BREAKING_NEWS_HEIGHT = 1
SPIRAL_BREAKING_NEWS_X = 0
SPIRAL_BREAKING_NEWS_Y = 24
SPIRAL_BREAKING_NEWS_PAL = 1
SPIRAL_BREAKING_NEWS_BASE = ((SPIRAL_BREAKING_NEWS_PAL << 12) | (SPIRAL_BREAKING_NEWS_VRAM_ADDR >> 4))
SPIRAL_LIVE_VRAM_ADDR = $2b00
SPIRAL_LIVE_WIDTH = 4
SPIRAL_LIVE_HEIGHT = 2
SPIRAL_LIVE_X = 0
SPIRAL_LIVE_Y = 2
SPIRAL_LIVE_PAL = 2
SPIRAL_LIVE_BASE = ((SPIRAL_LIVE_PAL << 12) | (SPIRAL_LIVE_VRAM_ADDR >> 4))
SPIRAL_NEWS_VRAM_ADDR = $2b80
SPIRAL_NEWS_WIDTH = 32
SPIRAL_NEWS_HEIGHT = 5
SPIRAL_NEWS_X = 0
SPIRAL_NEWS_Y = SPIRAL_BREAKING_NEWS_Y+1
SPIRAL_NEWS_PAL = 3
SPIRAL_NEWS_BASE = ((SPIRAL_NEWS_PAL << 12) | (SPIRAL_NEWS_VRAM_ADDR >> 4))
SPIRAL_NEWS_BAT_ADDR = SPIRAL_NEWS_X + (SPIRAL_NEWS_Y * 32)
SPIRAL_NEWS_DELAY = 200
spiral_fg:
; Load "breaking_news" gfx palette
stw #16, color_reg
tia breaking_news.pal, color_data, 32
; Load "live" gfx palette
tia live.pal, color_data, 32
; Load "font" gfx palette
tia news.font.pal, color_data, 32
; Load "breaking_news" tiles
vdc_reg #VDC_MAWR
vdc_data #SPIRAL_BREAKING_NEWS_VRAM_ADDR
vdc_reg #VDC_DATA
tia breaking_news.tiles, video_data, breaking_news.end-breaking_news.tiles
; Load "live" tiles
tia live.tiles, video_data, live.end-live.tiles
; Loaf "font" tiles
tia news.font.tiles, video_data, news.font.end-news.font.tiles
; "Draw breaking news"
ldx #SPIRAL_BREAKING_NEWS_X
lda #SPIRAL_BREAKING_NEWS_Y
jsr vdc_calc_addr
jsr vdc_set_write
ldy #02
.l0:
stw #SPIRAL_BREAKING_NEWS_BASE, <_si
ldx #16
.l1:
stw <_si, video_data
incw <_si
dex
bne .l1
dey
bne .l0
; "Draw live"
ldx #SPIRAL_LIVE_X
lda #SPIRAL_LIVE_Y
jsr vdc_calc_addr
jsr vdc_set_write
st1 #low(SPIRAL_LIVE_BASE)
st2 #high(SPIRAL_LIVE_BASE)
st1 #low(SPIRAL_LIVE_BASE+1)
st2 #high(SPIRAL_LIVE_BASE+1)
st1 #low(SPIRAL_LIVE_BASE+2)
st2 #high(SPIRAL_LIVE_BASE+2)
st1 #low(SPIRAL_LIVE_BASE+3)
st2 #high(SPIRAL_LIVE_BASE+3)
vdc_reg #VDC_MAWR
addw <_di, vdc_bat_width, video_data
vdc_reg #VDC_DATA
st1 #low(SPIRAL_LIVE_BASE+4)
st2 #high(SPIRAL_LIVE_BASE+4)
st1 #low(SPIRAL_LIVE_BASE+5)
st2 #high(SPIRAL_LIVE_BASE+5)
st1 #low(SPIRAL_LIVE_BASE+6)
st2 #high(SPIRAL_LIVE_BASE+6)
st1 #low(SPIRAL_LIVE_BASE+7)
st2 #high(SPIRAL_LIVE_BASE+7)
; "Draw news panel"
vdc_reg #VDC_MAWR
vdc_data #SPIRAL_NEWS_BAT_ADDR
vdc_reg #VDC_DATA
ldy #SPIRAL_NEWS_HEIGHT
.l2:
ldx #32
.l3:
st1 #low(SPIRAL_NEWS_BASE)
st2 #high(SPIRAL_NEWS_BASE)
dex
bne .l3
dey
bne .l2
rts
spiral.init:
vdc_reg #VDC_CR
vdc_data #$0000
vdc_reg #VDC_CR
vdc_data #SPIRAL_VDC_DISPLAY_FLAG
irq_on #INT_IRQ1
irq_enable_vec #VSYNC
irq_set_vec #VSYNC, #spiral.vsync
irq_enable_vec #HSYNC
irq_set_vec #HSYNC, #spiral.hsync
; Clear tile
vdc_reg #VDC_MAWR
vdc_data #$2000
vdc_reg #VDC_DATA
st1 #$00
ldx #32
.clear:
st2 #$00
dex
bne .clear
; Clear BAT
vdc_reg #VDC_MAWR
vdc_data #$0000
vdc_reg #VDC_DATA
st1 #low($2000>>4)
st2 #high($2000>>4)
st2 #high($2000>>4)
st0 #VDC_DMA_SRC
st1 #low($0000)
st2 #high($0000)
st0 #VDC_DMA_DST
st1 #low($0002)
st2 #high($0002)
st0 #VDC_DMA_LEN
st1 #low(32*32 - 2)
st2 #high(32*32 - 2)
; Map data banks
lda #bank(spiral_data)
tam #$04
inc A
tam #$05
; Set sprite palette
stw #$0100, color_reg
tia spiral_sprites.pal, color_data, 32
; Load 16x16 sprites
vdc_reg #VDC_MAWR
vdc_data #SPIRAL_16x16_VRAM_ADDR
vdc_reg #VDC_DATA
tia spiral_sprites_16.bin, video_data, spiral_sprites_32.bin-spiral_sprites_16.bin
; Load 32x32 sprite
vdc_reg #VDC_MAWR
vdc_data #SPIRAL_32x32_VRAM_ADDR
vdc_reg #VDC_DATA
tia spiral_sprites_32.bin, video_data, spiral_sprites_end-spiral_sprites_32.bin
jsr spiral_fg
; Load ramcode
tii ramcode_begin, spiral, ramcode_end-ramcode_begin
st0 #$0f ; Enable VRAM SATB DMA
st1 #$10
st2 #$00
st0 #$13 ; Set SATB address
st1 #low($4000) ; [todo]
st2 #high($4000) ; [todo]
st0 #$07
st1 #$00
st2 #$00
st0 #$08
st1 #$00
st2 #$00
jsr spiral.start
lda news.count
sta <news_str.idx
stw #news.txt, <news_str.ptr
jsr spiral.print
rts
spiral.news.update:
lda <news_delta
cmp #$ff
beq .l0
cmp #$00
beq .l1
; down
lda <news_start
cmp <news_limit
bne .end
.l3:
lda <news_delay
beq .l4
dec <news_delay
bne .end
lda #(SPIRAL_NEWS_HEIGHT * 8)
sta <news_start
stz <news_limit
lda #$ff
sta <news_delta
; bra .end
jmp spiral.print
.l4:
lda #60
sta <news_delay
bra .end
; display
.l1:
lda <news_delay
beq .l2
dec <news_delay
bra .end
.l2:
lda #$01
sta <news_delta
lda #(SPIRAL_NEWS_HEIGHT * 8)
sta <news_limit
bra .end
; up
.l0:
lda <news_start
bne .end
lda #SPIRAL_NEWS_DELAY
sta <news_delay
stz <news_delta
.end:
rts
spiral.start:
stz <breaking_news
lda #(SPIRAL_NEWS_HEIGHT * 8)
sta <news_start
stz <news_limit
lda #$ff
sta <news_delta
stz <news_delay
rts
spiral.print:
stw #(SPIRAL_NEWS_BAT_ADDR), <_di
cly
.l0:
vdc_reg #VDC_MAWR
vdc_data <_di
vdc_reg #VDC_DATA
.l1:
clc
lda [news_str.ptr], Y
bmi .l2
adc #low(SPIRAL_NEWS_BASE)
sta video_data_l
cla
adc #high(SPIRAL_NEWS_BASE)
sta video_data_h
iny
cpy #32
bne .l1
addw #64, <_di
bra .l0
.l2:
stw #(SPIRAL_NEWS_BAT_ADDR+32), <_di
cly
.l3:
vdc_reg #VDC_MAWR
vdc_data <_di
vdc_reg #VDC_DATA
.l4:
clc
lda [news_str.ptr], Y
bmi .l5
adc #low(SPIRAL_NEWS_BASE+1)
sta video_data_l
cla
adc #high(SPIRAL_NEWS_BASE+1)
sta video_data_h
iny
cpy #32
bne .l4
addw #64, <_di
bra .l3
.l5:
dec <news_str.idx
beq .reset
iny
tya
clc
adc <news_str.ptr
sta <news_str.ptr
bcc .l6
inc <news_str.ptr+1
.l6:
rts
.reset:
lda news.count
sta <news_str.idx
stw #news.txt, <news_str.ptr
rts
spiral.1:
; jsr spiral.start
cli
.loop:
jsr spiral_update
vdc_wait_vsync #$01
jsr spiral.news.update
decw <_fx.counter
ora <_fx.counter
bne .loop
rts
spiral.2:
; jsr spiral.start
cli
.loop:
jsr spiral_update_2
vdc_wait_vsync #$01
jsr spiral.news.update
decw <_fx.counter
ora <_fx.counter
bne .loop
rts
spiral.3:
; jsr spiral.start
cli
.loop:
jsr spiral_update_3
vdc_wait_vsync #$01
jsr spiral.news.update
decw <_fx.counter
ora <_fx.counter
bne .loop
rts
spiral.vsync:
st0 #VDC_BXR
st1 #$00
st2 #$00
st0 #VDC_BYR
st1 #$00
st2 #$00
lda #HSYNC
asl A
tax
lda #low(spiral.hsync)
sta user_hook, X
inx
lda #high(spiral.hsync)
sta user_hook, X
inc <breaking_news
st0 #VDC_RCR
st1 #low(VDC_RCR_START + (SPIRAL_BREAKING_NEWS_Y*8))
st2 #high(VDC_RCR_START + (SPIRAL_BREAKING_NEWS_Y*8))
lda <news_start
sta <news_start+1
cmp <news_limit
beq .l0
lda <news_start
clc
adc <news_delta
sta <news_start
.l0:
jsr vgm_update
ply
plx
pla
rti
spiral.hsync:
st0 #VDC_BXR
lda <breaking_news
sta video_data
st2 #$00
lda #HSYNC
asl A
tax
lda #low(spiral.hsync.news)
sta user_hook, X
inx
lda #high(spiral.hsync.news)
sta user_hook, X
st0 #VDC_RCR
st1 #low(VDC_RCR_START + (SPIRAL_NEWS_Y*8) + 2)
st2 #high(VDC_RCR_START + (SPIRAL_NEWS_Y*8) + 2)
lda #low(VDC_RCR_START + (SPIRAL_NEWS_Y*8) + 2)
sta <news_rcr
lda #high(VDC_RCR_START + (SPIRAL_NEWS_Y*8) + 2)
sta <news_rcr+1
ply
plx
pla
rti
spiral.hsync.news:
st0 #VDC_BXR
st1 #$00
st2 #$00
st0 #VDC_BYR
st1 #low(SPIRAL_NEWS_Y*8)
st2 #high(SPIRAL_NEWS_Y*8)
lda <news_start+1
beq .nothing
dec <news_start+1
incw <news_rcr
st0 #VDC_RCR
stw <news_rcr, video_data
.nothing:
ply
plx
pla
rti
.data
.bank 1
.org $8000
spiral_data:
ramcode_begin:
.incbin "data/spiral.ramcode.bin"
ramcode_end:
.include "data/spiral.ramcode.inc"
breaking_news.pal:
.incbin "data/news/breaking_news_0000.pal"
breaking_news.tiles:
.incbin "data/news/breaking_news_0000.tiles"
breaking_news.end:
live.pal:
.incbin "data/news/live_0000.pal"
live.tiles:
.incbin "data/news/live_0000.tiles"
live.end:
news.font.pal:
.incbin "data/news/font.pal"
news.font.tiles:
.incbin "data/news/font.tiles"
news.font.end:
news.txt:
.db $26,$2e,$0a,$08,$0a,$1c,$54,$00,$00,$00,$1e,$1c,$06,$0a,$00,$00
.db $02,$0e,$02,$12,$1c,$00,$00,$2a,$20,$24,$1e,$2a,$0e,$10,$00,$00
.db $24,$0a,$18,$0a,$02,$26,$0a,$08,$00,$00,$02,$00,$00,$24,$2a,$26
.db $10,$0a,$08,$00,$00,$20,$24,$1e,$08,$2a,$06,$28,$12,$1e,$1c,$00
.db $ff
.db $1e,$1c,$00,$20,$06,$00,$0a,$1c,$0e,$12,$1c,$0a,$4c,$00,$00,$28
.db $10,$0a,$00,$24,$1e,$32,$02,$18,$00,$0c,$02,$1a,$12,$18,$32,$00
.db $08,$0a,$06,$18,$02,$24,$0a,$08,$00,$28,$10,$02,$28,$00,$1c,$0a
.db $30,$28,$00,$28,$12,$1a,$0a,$4a,$00,$28,$10,$0a,$32,$00,$00,$00
.db $ff
.db $2e,$12,$18,$18,$00,$02,$18,$18,$00,$04,$0a,$00,$08,$0a,$20,$1e
.db $24,$28,$0a,$08,$00,$28,$1e,$00,$08,$0a,$1c,$1a,$02,$24,$16,$00
.db $2e,$12,$28,$10,$00,$1c,$1e,$00,$2a,$1c,$08,$0a,$24,$2e,$0a,$02
.db $24,$50,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
.db $ff
.db $1a,$1e,$1e,$34,$00,$00,$02,$1c,$08,$00,$00,$1e,$06,$28,$02,$20
.db $2a,$26,$00,$02,$24,$0a,$00,$1c,$1e,$2e,$00,$2a,$1c,$08,$0a,$24
.db $28,$10,$0a,$00,$00,$26,$06,$24,$2a,$28,$12,$1c,$12,$28,$32,$00
.db $00,$1e,$0c,$00,$28,$10,$0a,$00,$26,$2e,$0a,$08,$12,$26,$10,$00
.db $ff
.db $1c,$12,$1c,$14,$02,$00,$06,$1e,$1a,$1a,$02,$1c,$08,$1e,$26,$4c
.db $00,$00,$32,$1e,$2a,$00,$16,$1c,$1e,$2e,$00,$2e,$10,$02,$28,$00
.db $32,$1e,$2a,$00,$02,$24,$0a,$00,$2a,$20,$00,$28,$1e,$00,$20,$2a
.db $1c,$16,$26,$50,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
.db $ff
.db $28,$10,$0a,$00,$00,$06,$0a,$1c,$28,$0a,$24,$00,$00,$0c,$1e,$24
.db $00,$00,$02,$20,$20,$24,$1e,$30,$12,$1a,$02,$28,$12,$2c,$0a,$00
.db $26,$06,$12,$0a,$1c,$28,$12,$0c,$12,$06,$00,$00,$26,$28,$2a,$08
.db $12,$0a,$26,$00,$00,$02,$1c,$1c,$1e,$2a,$1c,$06,$0a,$08,$00,$00
.db $ff
.db $28,$10,$02,$28,$00,$00,$1a,$2a,$26,$28,$02,$06,$10,$0a,$26,$00
.db $02,$24,$0a,$00,$1c,$1e,$28,$00,$1a,$02,$08,$0a,$00,$1e,$0c,$00
.db $02,$18,$12,$0a,$1c,$00,$00,$2e,$1e,$24,$1a,$26,$4c,$00,$00,$28
.db $10,$0a,$32,$00,$02,$24,$0a,$00,$12,$1c,$00,$0c,$02,$06,$28,$00
.db $ff
.db $1a,$02,$08,$0a,$00,$1e,$2a,$28,$00,$1e,$0c,$00,$18,$0a,$0c,$28
.db $00,$1e,$2c,$0a,$24,$00,$26,$20,$02,$0e,$10,$0a,$28,$28,$12,$00
.db $32,$1e,$2a,$00,$02,$24,$0a,$00,$02,$08,$2c,$12,$26,$0a,$08,$00
.db $1c,$1e,$28,$00,$28,$1e,$00,$0a,$02,$28,$00,$28,$10,$0a,$1a,$4c
.db $ff
.db $0a,$2c,$0a,$1c,$00,$2e,$12,$28,$10,$00,$06,$10,$12,$18,$12,$00
.db $26,$02,$2a,$06,$0a,$4c,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
.db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
.db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
.db $ff
.db $06,$1e,$1c,$26,$12,$08,$0a,$24,$00,$32,$1e,$2a,$24,$26,$0a,$18
.db $0c,$00,$0e,$24,$0a,$0a,$28,$0a,$08,$4c,$00,$00,$00,$00,$00,$00
.db $12,$0c,$00,$1c,$1e,$28,$4a,$00,$18,$1e,$1e,$16,$00,$12,$1c,$28
.db $1e,$00,$32,$1e,$2a,$24,$00,$20,$1e,$06,$16,$0a,$28,$26,$4c,$00
.db $ff
.db $28,$10,$0a,$24,$0a,$00,$1a,$12,$0e,$10,$28,$00,$04,$0a,$00,$26
.db $1e,$1a,$0a,$28,$10,$12,$1c,$0e,$00,$0c,$1e,$24,$00,$32,$1e,$2a
.db $08,$1e,$2e,$1c,$00,$28,$10,$0a,$24,$0a,$4c,$00,$00,$00,$00,$00
.db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
.db $ff
news.count:
.db $0b
.data
.bank 2
.org $A000
spiral_sprites.pal:
.incbin "data/spiral_sprites.pal"
spiral_sprites_16.bin:
.incbin "data/spiral_sprites_16.bin"
spiral_sprites_32.bin:
.incbin "data/spiral_sprites_32.bin"
spiral_sprites_end:
| 24.356048 | 126 | 0.543191 |
1c4ac161185f61585c64707e3b577ca166a9c339 | 765 | asm | Assembly | programs/oeis/016/A016743.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/016/A016743.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/016/A016743.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A016743: Even cubes: a(n) = (2*n)^3.
; 0,8,64,216,512,1000,1728,2744,4096,5832,8000,10648,13824,17576,21952,27000,32768,39304,46656,54872,64000,74088,85184,97336,110592,125000,140608,157464,175616,195112,216000,238328,262144,287496,314432,343000,373248,405224,438976,474552,512000,551368,592704,636056,681472,729000,778688,830584,884736,941192,1000000,1061208,1124864,1191016,1259712,1331000,1404928,1481544,1560896,1643032,1728000,1815848,1906624,2000376,2097152,2197000,2299968,2406104,2515456,2628072,2744000,2863288,2985984,3112136,3241792,3375000,3511808,3652264,3796416,3944312,4096000,4251528,4410944,4574296,4741632,4913000,5088448,5268024,5451776,5639752,5832000,6028568,6229504,6434856,6644672,6859000,7077888,7301384,7529536,7762392
mul $0,2
pow $0,3
| 127.5 | 706 | 0.831373 |
3302fc8601c5055b5022fcf325f3509b739a2012 | 7,930 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0_notsx.log_21829_1290.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0_notsx.log_21829_1290.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xa0_notsx.log_21829_1290.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 %r15
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x132aa, %rax
clflush (%rax)
nop
and %r9, %r9
movups (%rax), %xmm5
vpextrq $0, %xmm5, %rdi
sub $12731, %r14
lea addresses_WC_ht+0xe523, %r15
clflush (%r15)
nop
nop
nop
nop
nop
add %rbp, %rbp
mov $0x6162636465666768, %r9
movq %r9, %xmm7
movups %xmm7, (%r15)
nop
inc %rbp
lea addresses_WC_ht+0x5730, %rsi
lea addresses_D_ht+0x105bf, %rdi
clflush (%rsi)
nop
nop
nop
nop
add $8621, %rbp
mov $56, %rcx
rep movsw
nop
nop
add $50969, %rcx
lea addresses_D_ht+0x13d4d, %rsi
lea addresses_normal_ht+0x3d23, %rdi
clflush (%rdi)
nop
nop
and $17909, %r14
mov $39, %rcx
rep movsb
nop
nop
nop
nop
and %rbp, %rbp
lea addresses_WT_ht+0xd9a3, %rax
nop
nop
nop
cmp $48053, %rsi
mov (%rax), %r14
nop
nop
nop
cmp %rax, %rax
lea addresses_WC_ht+0x19ad3, %rsi
lea addresses_A_ht+0x5f23, %rdi
nop
nop
nop
nop
add $14631, %r9
mov $26, %rcx
rep movsl
nop
nop
nop
nop
nop
sub %rdi, %rdi
lea addresses_WC_ht+0x4223, %rdi
nop
nop
nop
nop
nop
cmp %rax, %rax
movw $0x6162, (%rdi)
nop
nop
add $58060, %r15
lea addresses_WT_ht+0x1a123, %rsi
lea addresses_normal_ht+0xf3f8, %rdi
nop
nop
nop
nop
xor $10997, %r14
mov $66, %rcx
rep movsw
nop
nop
nop
nop
sub $29552, %rbp
lea addresses_UC_ht+0x1b7ab, %rsi
lea addresses_normal_ht+0xcda3, %rdi
nop
xor $58591, %r15
mov $82, %rcx
rep movsw
nop
nop
nop
nop
nop
mfence
lea addresses_A_ht+0x15d23, %rsi
lea addresses_WT_ht+0xe123, %rdi
nop
and %r15, %r15
mov $25, %rcx
rep movsw
sub %rdi, %rdi
lea addresses_D_ht+0x1ad23, %r14
nop
inc %r15
mov (%r14), %rax
nop
nop
nop
nop
add $52303, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r15
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
// REPMOV
lea addresses_normal+0x198a3, %rsi
lea addresses_PSE+0xd23, %rdi
clflush (%rsi)
nop
nop
cmp $44035, %r11
mov $123, %rcx
rep movsq
nop
nop
nop
sub $39571, %rsi
// Store
lea addresses_WC+0x5d8f, %rsi
and $11836, %r9
movb $0x51, (%rsi)
add %rsi, %rsi
// Store
lea addresses_WT+0x12523, %rcx
nop
nop
nop
nop
add $48660, %r11
movw $0x5152, (%rcx)
dec %r11
// Store
lea addresses_WT+0x1764b, %rcx
clflush (%rcx)
nop
nop
nop
and %rdx, %rdx
movb $0x51, (%rcx)
nop
nop
nop
nop
nop
sub $18821, %rdi
// Faulty Load
lea addresses_WT+0x12523, %rsi
nop
nop
nop
nop
inc %r9
mov (%rsi), %edi
lea oracles, %rsi
and $0xff, %rdi
shlq $12, %rdi
mov (%rsi,%rdi,1), %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_PSE', 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'size': 2, 'NT': True, 'same': True, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 3}}
[Faulty Load]
{'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 4, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 9}}
{'src': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}}
{'src': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}}
{'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 8}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}}
{'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}}
{'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'}
{'52': 21829}
52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52 52
*/
| 32.235772 | 2,999 | 0.657881 |
e9f044832997cf525f8b0face960df4860b5097e | 324 | asm | Assembly | programs/oeis/155/A155634.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/155/A155634.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/155/A155634.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A155634: 7^n + 5^n - 1.
; 1,11,73,467,3025,19931,133273,901667,6155425,42306731,292240873,2026154867,14085427825,98109713531,684326588473,4778079088067,33385518460225,233393453440331,1632228295176073,11417968671701267
mov $1,7
pow $1,$0
mov $2,5
pow $2,$0
add $2,4
add $1,$2
mul $1,2
sub $1,12
div $1,4
mul $1,2
add $1,1
| 21.6 | 193 | 0.740741 |
c989912374089baf9d48bfc677f7cd7f7e5f6953 | 220 | a51 | Assembly | a51test/(D0)POP_d.a51 | Aimini/51cpu | cdeb75510d1dcd867fbebe10e963c4dbecd5ff13 | [
"MIT"
] | null | null | null | a51test/(D0)POP_d.a51 | Aimini/51cpu | cdeb75510d1dcd867fbebe10e963c4dbecd5ff13 | [
"MIT"
] | null | null | null | a51test/(D0)POP_d.a51 | Aimini/51cpu | cdeb75510d1dcd867fbebe10e963c4dbecd5ff13 | [
"MIT"
] | null | null | null | MOV 0x00,#0x3B
MOV 0x01,#0x49
MOV 0x02,#0x25
MOV 0x03,#0x70
MOV 0x04,#0x6D
MOV 0x05,#0x73
MOV 0x06,#0x60
MOV 0x07,#0x76
MOV SP,#0x07
POP 0x49
POP 0x7E
POP 0x3C
POP 0x4C
POP 0x42
POP 0x57
POP 0x32
POP 0x70 | 12.941176 | 15 | 0.695455 |
1ed9efa7bde7a9243d7678c01c04fb8e708741da | 12,501 | asm | Assembly | P6/data_P6_2/ALUTest95.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | 1 | 2022-01-23T09:24:47.000Z | 2022-01-23T09:24:47.000Z | P6/data_P6_2/ALUTest95.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | null | null | null | P6/data_P6_2/ALUTest95.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | null | null | null | lhu $1,4($0)
lhu $0,10($0)
ori $0,$0,29490
sltu $1,$4,$3
xor $4,$1,$3
and $4,$3,$3
srav $5,$6,$3
xor $1,$1,$3
and $6,$3,$3
sra $5,$5,7
slt $1,$4,$3
sltu $6,$3,$3
slt $1,$1,$3
sw $0,4($0)
nor $0,$0,$3
xor $2,$2,$3
srl $4,$4,10
andi $5,$3,46785
addu $0,$4,$3
addu $0,$4,$3
addiu $3,$3,-22413
xor $3,$4,$3
and $6,$1,$3
addu $3,$3,$3
nor $5,$5,$3
lw $3,8($0)
lbu $0,9($0)
srl $4,$4,25
slt $5,$4,$3
addiu $4,$0,28233
sra $1,$4,18
ori $3,$0,48127
addiu $4,$4,30516
andi $5,$3,46214
slti $6,$3,-19547
nor $6,$3,$3
sh $4,14($0)
addiu $0,$4,15749
addiu $0,$0,29665
or $4,$6,$3
addu $3,$0,$3
sll $0,$0,15
sltiu $4,$4,14211
slt $1,$3,$3
ori $4,$4,5730
or $6,$6,$3
sltiu $5,$4,22733
addu $3,$3,$3
slti $4,$3,-11325
sh $3,6($0)
subu $6,$3,$3
sll $5,$3,5
addu $1,$1,$3
sb $6,14($0)
sra $2,$2,9
sllv $3,$4,$3
subu $1,$3,$3
slt $5,$4,$3
addiu $6,$3,18880
srl $3,$1,11
andi $3,$5,60706
xor $4,$4,$3
xor $3,$3,$3
srlv $3,$3,$3
lbu $4,3($0)
sltu $4,$4,$3
lhu $6,4($0)
or $4,$4,$3
nor $3,$3,$3
srlv $4,$5,$3
sltu $3,$6,$3
lbu $3,2($0)
slt $4,$4,$3
sh $5,0($0)
xori $1,$4,45474
xori $0,$3,50489
lh $3,0($0)
slt $3,$3,$3
srl $3,$4,3
addiu $0,$1,-14875
slti $5,$3,-13235
sw $6,12($0)
subu $4,$0,$3
slt $0,$0,$3
sh $3,12($0)
sltu $4,$3,$3
lhu $1,6($0)
and $5,$5,$3
slti $1,$3,20505
sllv $1,$1,$3
sltiu $4,$5,32724
lhu $3,4($0)
or $4,$4,$3
sllv $4,$0,$3
slt $0,$3,$3
sh $3,16($0)
sltiu $3,$3,-22051
or $5,$4,$3
srlv $4,$3,$3
xor $5,$3,$3
sltu $4,$4,$3
xori $4,$3,36685
sltu $0,$0,$3
ori $4,$3,37574
lhu $4,2($0)
nor $4,$1,$3
srlv $3,$3,$3
srl $5,$3,3
addu $1,$1,$3
addu $0,$4,$3
sb $5,10($0)
sll $4,$4,31
subu $4,$0,$3
xor $3,$4,$3
slt $1,$0,$3
slt $3,$4,$3
lw $4,0($0)
andi $4,$4,34814
sltiu $1,$5,-26849
slti $0,$6,-9233
sll $3,$4,22
sra $0,$0,29
subu $1,$1,$3
ori $6,$3,30674
srav $4,$2,$3
sb $4,10($0)
lhu $5,14($0)
slt $3,$4,$3
sll $2,$2,2
srav $3,$1,$3
nor $6,$4,$3
lbu $6,4($0)
sra $3,$3,27
lb $4,3($0)
and $4,$5,$3
lh $3,0($0)
or $5,$4,$3
lw $3,8($0)
addu $5,$4,$3
lb $1,8($0)
addiu $3,$6,9859
xori $3,$1,27910
lh $4,2($0)
slti $4,$0,-7963
srlv $1,$5,$3
lb $4,6($0)
addiu $5,$5,-18025
lbu $3,11($0)
lhu $5,14($0)
lb $6,8($0)
subu $0,$3,$3
xor $0,$1,$3
subu $3,$0,$3
lw $4,8($0)
subu $0,$3,$3
srav $4,$1,$3
addu $1,$0,$3
sltu $5,$5,$3
sra $1,$2,31
srav $3,$4,$3
xori $3,$3,28871
srlv $0,$0,$3
lhu $3,12($0)
sra $3,$5,19
addiu $0,$0,-25523
andi $3,$4,31217
nor $4,$4,$3
addu $3,$3,$3
or $4,$1,$3
lbu $1,11($0)
sll $5,$5,24
lb $1,4($0)
and $4,$3,$3
addiu $4,$4,-25979
subu $1,$3,$3
lhu $0,6($0)
srav $3,$3,$3
sh $6,6($0)
sra $1,$5,1
sll $1,$6,13
lb $3,16($0)
or $3,$6,$3
srl $3,$4,27
subu $5,$4,$3
nor $3,$3,$3
sltiu $4,$2,32037
srl $3,$1,9
lhu $5,10($0)
sltu $0,$0,$3
xori $3,$3,38742
lbu $0,10($0)
sltu $3,$5,$3
sltu $4,$3,$3
subu $6,$4,$3
andi $6,$1,37007
lh $4,4($0)
lh $4,12($0)
xori $3,$3,9771
ori $0,$3,12934
nor $6,$1,$3
sltu $1,$3,$3
lw $1,12($0)
and $3,$4,$3
andi $5,$5,22872
sltu $5,$3,$3
sb $3,6($0)
subu $4,$3,$3
addiu $3,$3,1065
addu $5,$1,$3
sltu $4,$5,$3
srav $4,$3,$3
sh $4,16($0)
lhu $4,8($0)
slt $5,$6,$3
lhu $3,6($0)
addu $5,$3,$3
lhu $0,8($0)
subu $1,$6,$3
sltu $3,$4,$3
sll $3,$1,30
subu $3,$1,$3
sllv $4,$5,$3
andi $2,$2,40059
addu $1,$1,$3
addu $0,$0,$3
slti $6,$3,-8597
lw $1,0($0)
xori $6,$6,51956
sltu $5,$2,$3
sltiu $4,$3,21414
addiu $3,$4,29918
addu $4,$4,$3
xor $0,$3,$3
subu $1,$1,$3
addiu $4,$5,8157
srl $5,$6,18
srl $3,$1,22
slti $0,$1,23342
sb $6,12($0)
nor $3,$3,$3
addu $5,$4,$3
addiu $3,$4,-21504
ori $3,$4,15604
srlv $1,$1,$3
xori $5,$4,36225
addu $6,$3,$3
sltiu $3,$3,6907
addiu $6,$3,-26588
addu $1,$1,$3
sw $3,4($0)
subu $0,$4,$3
sll $4,$4,21
sb $4,7($0)
sll $4,$2,24
slt $4,$3,$3
or $3,$6,$3
sw $3,16($0)
sra $1,$3,7
and $1,$3,$3
lh $4,12($0)
lh $4,10($0)
and $0,$0,$3
addu $3,$5,$3
slt $0,$6,$3
srl $0,$1,7
xori $3,$3,16457
nor $1,$3,$3
addu $3,$3,$3
and $3,$3,$3
and $1,$1,$3
sll $1,$3,3
addu $0,$3,$3
sltu $0,$3,$3
sll $2,$2,1
subu $3,$3,$3
xori $4,$5,44631
sllv $2,$2,$3
or $5,$3,$3
and $2,$2,$3
sb $5,9($0)
sltu $3,$3,$3
sltiu $4,$4,-16073
lhu $3,0($0)
sll $6,$6,31
lw $5,12($0)
and $3,$3,$3
srlv $5,$3,$3
subu $3,$3,$3
subu $3,$6,$3
sltu $5,$3,$3
andi $4,$1,14682
sll $3,$6,5
sll $3,$3,8
sb $0,2($0)
slt $3,$1,$3
sltiu $3,$1,-6980
srav $3,$4,$3
sw $1,0($0)
lh $4,8($0)
or $3,$3,$3
xor $3,$4,$3
sh $3,16($0)
lw $6,0($0)
ori $1,$1,37643
srlv $4,$2,$3
sll $4,$4,24
subu $6,$4,$3
addiu $3,$3,31481
lh $3,14($0)
sltiu $3,$0,-22410
andi $3,$3,19089
sltu $5,$5,$3
sltiu $4,$4,16791
subu $0,$4,$3
addiu $1,$1,-11355
lbu $0,9($0)
addiu $4,$3,8329
slt $5,$3,$3
lw $6,12($0)
ori $3,$3,15826
xori $4,$0,29800
andi $4,$4,57078
addiu $1,$5,-7716
sb $0,7($0)
lbu $4,16($0)
sltiu $4,$3,-4384
slti $5,$6,-27385
srlv $5,$5,$3
nor $6,$5,$3
sb $4,10($0)
srav $1,$1,$3
or $4,$4,$3
sll $1,$4,5
sltiu $4,$4,2100
subu $1,$1,$3
slti $4,$4,21640
srlv $4,$6,$3
xori $5,$5,25554
lbu $1,4($0)
subu $0,$3,$3
addu $4,$4,$3
lbu $4,7($0)
subu $3,$3,$3
sh $4,12($0)
srl $1,$3,30
sltiu $4,$1,-13961
sllv $1,$2,$3
lb $3,16($0)
sh $4,0($0)
sll $2,$2,1
sb $6,7($0)
xori $3,$1,58148
lhu $3,14($0)
subu $1,$3,$3
andi $4,$3,8929
slti $3,$5,23907
subu $5,$4,$3
srlv $3,$3,$3
sll $4,$4,7
srav $0,$4,$3
nor $5,$5,$3
and $4,$4,$3
or $6,$3,$3
and $1,$1,$3
and $0,$5,$3
nor $0,$0,$3
addu $5,$3,$3
sll $5,$5,30
lbu $1,7($0)
addiu $4,$1,-6473
addiu $3,$0,-25485
addiu $4,$1,-21079
slt $4,$4,$3
slti $5,$3,18701
subu $5,$3,$3
xor $1,$1,$3
addiu $3,$0,-7959
sra $3,$6,17
sltiu $1,$2,10693
ori $3,$0,7412
sllv $3,$5,$3
sllv $1,$1,$3
srl $3,$0,20
sw $0,12($0)
addu $1,$1,$3
addiu $0,$4,32563
lw $4,8($0)
ori $4,$3,41440
subu $5,$3,$3
lb $4,9($0)
lbu $0,11($0)
sra $0,$3,5
srlv $3,$4,$3
lbu $6,16($0)
lbu $3,11($0)
and $1,$0,$3
nor $4,$0,$3
lbu $3,15($0)
srlv $4,$6,$3
or $4,$1,$3
slti $3,$3,10382
nor $0,$3,$3
and $4,$5,$3
sltu $1,$1,$3
xor $4,$4,$3
sllv $4,$1,$3
addiu $4,$4,-8529
lb $6,13($0)
addiu $4,$4,15257
srl $4,$3,27
and $1,$1,$3
sw $0,12($0)
or $3,$4,$3
lb $1,15($0)
sra $5,$1,22
sltu $3,$4,$3
xor $3,$3,$3
slt $1,$1,$3
andi $4,$4,53025
ori $6,$5,38846
lh $5,6($0)
lbu $3,4($0)
lb $3,12($0)
addiu $6,$0,-31348
sh $4,2($0)
slt $1,$3,$3
sltiu $6,$5,32549
xori $5,$5,53990
sh $5,14($0)
or $4,$5,$3
and $3,$1,$3
subu $5,$1,$3
sltiu $5,$3,31733
sra $3,$3,7
addu $3,$1,$3
lhu $4,14($0)
lbu $0,3($0)
and $4,$4,$3
and $3,$3,$3
subu $3,$3,$3
lhu $3,4($0)
or $6,$3,$3
xor $1,$1,$3
addu $6,$2,$3
sw $1,12($0)
sra $3,$3,19
sll $4,$3,27
xori $3,$3,62745
ori $3,$3,18371
and $6,$1,$3
slt $1,$1,$3
slt $5,$5,$3
sb $1,4($0)
addiu $4,$6,-12300
slti $3,$3,-7877
subu $1,$5,$3
ori $0,$5,63770
slti $1,$2,8681
sra $3,$4,1
srl $4,$0,25
sllv $1,$0,$3
subu $3,$3,$3
slti $0,$0,5690
sllv $4,$3,$3
srav $4,$4,$3
addu $1,$4,$3
nor $3,$3,$3
subu $4,$4,$3
slt $4,$3,$3
addu $3,$5,$3
subu $3,$3,$3
lb $4,12($0)
srl $0,$4,18
sw $0,16($0)
sltiu $3,$3,-18211
sll $1,$3,2
xori $5,$4,9810
xori $6,$6,57301
sllv $4,$5,$3
sh $3,8($0)
addu $4,$4,$3
addu $1,$1,$3
lw $5,16($0)
srlv $6,$6,$3
srl $4,$4,28
sw $5,0($0)
sra $5,$5,17
addiu $1,$0,26094
lb $3,6($0)
lh $4,8($0)
lbu $3,11($0)
and $1,$1,$3
srlv $3,$6,$3
xori $4,$3,40730
srlv $3,$3,$3
ori $3,$4,34156
sh $3,4($0)
sltu $3,$3,$3
xor $3,$0,$3
addiu $6,$6,16266
sll $5,$3,30
slt $4,$4,$3
addiu $3,$3,-18680
lhu $5,2($0)
sra $0,$0,18
slt $1,$2,$3
slti $0,$5,16564
sllv $0,$3,$3
andi $6,$6,36695
addiu $5,$4,10358
sw $4,0($0)
slti $0,$4,-22135
xor $3,$3,$3
addiu $0,$3,-16609
sll $3,$5,29
and $1,$1,$3
sltiu $3,$0,28791
srav $3,$4,$3
xor $3,$1,$3
sh $3,2($0)
or $3,$4,$3
subu $3,$3,$3
ori $3,$4,24709
addu $4,$0,$3
xor $5,$4,$3
sb $4,15($0)
addu $6,$0,$3
slti $1,$3,241
or $1,$3,$3
sll $4,$5,18
sll $3,$3,6
and $4,$1,$3
lhu $1,10($0)
srav $3,$5,$3
srlv $5,$5,$3
addiu $4,$4,-30152
xor $1,$1,$3
lb $3,0($0)
subu $4,$0,$3
sltu $3,$3,$3
sltu $3,$3,$3
slt $4,$3,$3
sll $3,$1,10
ori $3,$0,40903
srav $3,$1,$3
xor $0,$0,$3
addu $3,$4,$3
slt $6,$1,$3
sll $1,$5,29
subu $3,$6,$3
xori $3,$3,61355
lhu $3,10($0)
addiu $5,$3,-10732
addu $6,$4,$3
sllv $6,$5,$3
sll $3,$1,17
srl $4,$4,28
addiu $4,$1,-30121
lb $5,5($0)
xor $3,$1,$3
nor $4,$1,$3
srl $1,$4,4
sw $5,16($0)
subu $3,$5,$3
sltiu $1,$3,5070
slt $3,$6,$3
nor $3,$1,$3
slt $3,$6,$3
sra $3,$3,8
sh $5,14($0)
lb $3,5($0)
or $0,$1,$3
lb $0,9($0)
sllv $1,$1,$3
sltu $4,$3,$3
srav $5,$1,$3
srl $3,$4,21
slti $1,$3,-18495
srlv $3,$3,$3
sltiu $3,$3,-21663
xor $3,$4,$3
addu $6,$5,$3
srl $5,$3,1
slti $5,$4,11310
xor $3,$4,$3
andi $4,$4,5047
addu $4,$2,$3
addiu $0,$0,7001
lb $5,6($0)
lw $3,0($0)
ori $1,$1,43338
sltu $3,$3,$3
addiu $4,$4,-11111
ori $5,$1,49995
and $4,$1,$3
lh $5,14($0)
or $6,$6,$3
sltu $1,$6,$3
ori $1,$6,28240
slti $5,$0,-6963
lw $1,8($0)
addiu $6,$3,-18886
subu $1,$4,$3
addiu $5,$3,-27431
sltiu $4,$1,13877
ori $3,$3,22129
lw $2,16($0)
lb $4,13($0)
sra $3,$4,29
xor $3,$1,$3
xori $5,$5,44628
nor $3,$4,$3
addu $3,$4,$3
sll $3,$1,4
lbu $4,5($0)
sw $3,4($0)
and $4,$0,$3
sw $4,16($0)
sllv $4,$0,$3
sb $3,11($0)
addu $1,$1,$3
sltu $5,$4,$3
sll $5,$5,4
sltiu $4,$4,-22757
andi $3,$4,1465
slt $1,$4,$3
lw $3,16($0)
srl $4,$3,13
lhu $3,2($0)
sltiu $5,$6,-20757
xori $5,$4,36039
lhu $3,4($0)
sllv $5,$5,$3
and $3,$3,$3
and $3,$3,$3
sllv $1,$0,$3
srlv $3,$3,$3
sll $0,$4,15
subu $4,$4,$3
addu $4,$1,$3
sra $0,$4,4
sh $4,6($0)
xor $3,$2,$3
sll $3,$3,13
addu $3,$3,$3
sltiu $0,$2,10611
nor $3,$5,$3
addu $3,$4,$3
lw $0,4($0)
sll $1,$4,18
subu $4,$4,$3
subu $5,$4,$3
addu $4,$1,$3
lhu $1,4($0)
sltiu $1,$3,-3822
addiu $5,$3,-2512
sllv $3,$0,$3
sltu $3,$4,$3
srlv $3,$6,$3
nor $6,$6,$3
addu $4,$4,$3
lh $1,4($0)
sw $1,8($0)
sltiu $0,$2,-11364
sllv $1,$4,$3
lh $3,8($0)
addu $3,$3,$3
addu $0,$0,$3
lhu $4,2($0)
srav $6,$6,$3
subu $4,$5,$3
srav $3,$4,$3
slt $5,$6,$3
and $6,$3,$3
addu $5,$4,$3
lbu $3,3($0)
lbu $1,15($0)
addu $3,$1,$3
xori $4,$5,19999
or $4,$4,$3
srav $4,$3,$3
sb $4,6($0)
or $4,$3,$3
lhu $5,8($0)
sh $5,2($0)
slti $5,$5,-2169
addu $4,$4,$3
lb $3,10($0)
lb $0,14($0)
sltu $1,$1,$3
sllv $3,$3,$3
lhu $3,2($0)
sllv $3,$6,$3
ori $6,$5,22865
nor $3,$3,$3
lh $4,6($0)
srav $3,$5,$3
subu $0,$6,$3
lh $4,10($0)
lhu $3,2($0)
lbu $3,4($0)
sw $1,4($0)
sltiu $3,$3,17737
addiu $3,$6,-3851
subu $4,$4,$3
xor $3,$2,$3
nor $4,$1,$3
and $3,$3,$3
srl $5,$1,20
sw $5,0($0)
slt $4,$4,$3
xori $3,$2,53170
addu $5,$4,$3
lhu $1,16($0)
addiu $3,$3,-13043
srl $3,$3,22
subu $4,$4,$3
srlv $5,$4,$3
subu $4,$3,$3
subu $5,$5,$3
lhu $4,10($0)
xor $4,$4,$3
addiu $1,$3,27690
sltiu $3,$3,516
addiu $6,$3,-12656
or $1,$1,$3
srlv $3,$3,$3
sb $6,14($0)
lh $4,10($0)
subu $6,$6,$3
sh $6,14($0)
or $4,$0,$3
lw $6,12($0)
xor $1,$3,$3
nor $3,$5,$3
and $3,$3,$3
sb $3,10($0)
sltu $1,$1,$3
addiu $3,$4,8993
srlv $3,$3,$3
lbu $3,15($0)
and $5,$1,$3
slti $3,$3,20036
andi $1,$4,50640
or $6,$3,$3
sltu $0,$0,$3
andi $1,$3,41507
addiu $5,$4,-19428
addu $3,$3,$3
addu $1,$4,$3
lw $1,12($0)
nor $6,$6,$3
lbu $0,1($0)
lhu $4,8($0)
sb $3,9($0)
slti $5,$4,-1865
subu $6,$4,$3
lhu $4,6($0)
lbu $6,6($0)
nor $5,$3,$3
addu $1,$2,$3
sllv $5,$5,$3
addu $3,$4,$3
ori $5,$5,56944
sltu $0,$3,$3
andi $0,$4,53940
lbu $3,11($0)
sll $4,$3,7
srl $4,$4,13
sb $4,6($0)
nor $3,$5,$3
lh $1,0($0)
sra $4,$1,8
slt $1,$5,$3
lb $3,11($0)
addu $4,$4,$3
ori $6,$4,411
and $6,$5,$3
lbu $3,15($0)
srlv $5,$4,$3
addu $1,$3,$3
or $3,$4,$3
lbu $4,13($0)
srlv $5,$4,$3
addu $3,$4,$3
addu $5,$1,$3
subu $3,$1,$3
subu $0,$3,$3
addu $4,$5,$3
slti $1,$1,-32046
addiu $3,$5,15799
slt $5,$3,$3
or $5,$5,$3
slt $3,$3,$3
or $1,$3,$3
srav $1,$3,$3
lw $1,12($0)
sllv $3,$4,$3
sllv $1,$5,$3
addu $3,$3,$3
lb $1,8($0)
nor $6,$3,$3
srl $1,$4,19
lw $3,4($0)
srl $3,$3,20
lh $1,0($0)
sb $1,16($0)
or $5,$1,$3
addiu $3,$3,14291
ori $3,$0,65382
addu $4,$4,$3
sw $5,4($0)
andi $3,$0,24459
sra $3,$5,5
srav $5,$3,$3
srav $4,$4,$3
nor $3,$5,$3
srl $4,$4,26
sltiu $6,$6,-32508
sllv $4,$4,$3
or $1,$6,$3
sll $3,$3,14
xor $1,$1,$3
lbu $3,10($0)
slti $3,$3,-13258
sll $5,$3,9
srl $4,$4,27
sll $0,$0,31
sltiu $3,$1,11446
lbu $5,15($0)
lhu $4,12($0)
nor $3,$5,$3
srl $4,$6,31
lbu $1,16($0)
subu $6,$6,$3
srav $3,$6,$3
sb $1,3($0)
xor $4,$4,$3
nor $3,$0,$3
lw $5,4($0)
or $1,$1,$3
addu $5,$3,$3
or $1,$5,$3
lh $5,14($0)
sra $4,$5,23
slti $4,$1,3938
addiu $4,$4,-7508
ori $4,$3,3013
sll $3,$3,19
lhu $1,10($0)
addiu $3,$6,-11927
lb $5,13($0)
sw $6,16($0)
sll $5,$5,19
xor $0,$0,$3
ori $4,$4,33527
lbu $3,9($0)
sltiu $5,$3,26863
nor $4,$1,$3
sltu $1,$4,$3
sll $6,$3,29
subu $3,$3,$3
sll $0,$3,28
sh $4,14($0)
xor $4,$1,$3
and $1,$4,$3
sll $3,$5,6
slti $3,$3,8292
addiu $5,$4,21748
sra $6,$2,29
srav $3,$4,$3
lb $4,4($0)
addu $3,$3,$3
addiu $4,$5,26276
srav $3,$2,$3
slt $6,$4,$3
andi $4,$1,56616
lhu $3,4($0)
srlv $6,$6,$3
and $3,$4,$3
lh $3,10($0)
lw $5,16($0)
subu $6,$5,$3
addu $3,$4,$3
srl $5,$5,31
sll $5,$4,26
srlv $4,$5,$3
srlv $3,$1,$3
| 14.061867 | 18 | 0.520838 |
482cd0578d32b74103707fb259e944a82328c8e2 | 1,426 | asm | Assembly | src/z80asm/dev/z80asm_lib/cpi.asm | jg1uaa/z88dk | 6a850141690031634af15204ba4066b21c8892ff | [
"ClArtistic"
] | 2 | 2019-05-06T16:26:16.000Z | 2021-06-22T19:11:29.000Z | src/z80asm/dev/z80asm_lib/cpi.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | null | null | null | src/z80asm/dev/z80asm_lib/cpi.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | null | null | null | ; Substitute for z80 cpi instruction
; aralbrec 06.2007
SECTION code_crt0_sccz80
PUBLIC __z80asm__cpi
IF __CPU_GBZ80__
EXTERN __z80asm__ex_sp_hl
ENDIF
__z80asm__cpi:
jr c, cpiwcarry
cp (hl)
inc hl
dec bc
push af
IF __CPU_GBZ80__
call __z80asm__ex_sp_hl
ELSE
ex (sp), hl
ENDIF
IF __CPU_INTEL__
ld a, l
and @11111110
ld l, a
ELSE
res 0, l ; clear carry
ENDIF
rejoin:
IF __CPU_INTEL__
ld a, l
or @00000100
ld l, a
ELSE
set 2, l ; set P/V -> BC != 0
ENDIF
ld a, b
or c
jr nz, exitcpi
IF __CPU_INTEL__
ld a, l
and @11111011
ld l, a
ELSE
res 2, l ; clear P/V -> BC == 0
ENDIF
exitcpi:
IF __CPU_GBZ80__
call __z80asm__ex_sp_hl
ELSE
ex (sp), hl
ENDIF
pop af
ret
cpiwcarry:
cp (hl)
inc hl
dec bc
push af
IF __CPU_GBZ80__
call __z80asm__ex_sp_hl
ELSE
ex (sp), hl
ENDIF
IF __CPU_INTEL__
ld a, l
or @00000001
ld l, a
ELSE
set 0, l ; set carry
ENDIF
jr rejoin
| 16.97619 | 62 | 0.443899 |
014f85738e1049ecc7442b5e6f3d7f4c55a56333 | 644 | asm | Assembly | programs/oeis/084/A084302.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/084/A084302.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/084/A084302.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A084302: Remainder of tau(n) modulo 6.
; 1,2,2,3,2,4,2,4,3,4,2,0,2,4,4,5,2,0,2,0,4,4,2,2,3,4,4,0,2,2,2,0,4,4,4,3,2,4,4,2,2,2,2,0,0,4,2,4,3,0,4,0,2,2,4,2,4,4,2,0,2,4,0,1,4,2,2,0,4,2,2,0,2,4,0,0,4,2,2,4,5,4,2,0,4,4,4,2,2,0,4,0,4,4,4,0,2,0,0,3,2,2,2,2,2,4,2,0,2,2,4,4,2,2,4,0,0,4,4,4,3,4,4,0,4,0,2,2,4,2,2,0,4,4,2,2,2,2,2,0,4,4,4,3,4,4,0,0,2,0,2,2,0,2,4,0,2,4,4,0,4,4,2,0,2,4,2,4,3,2,0,0,2,2,0,4,4,4,2,0,2,2,4,2,4,2,4,0,2,2,2,2,2,4,2,3,2,0,2,0,4,4,4,0,4,4,0,4,4,4,2,0,4,4,4,4,4,4,4,0,4,2,2,0,3,4,2,0,2,2,2,2,2,0,4,0,4,2,2,2,2,0,0,0,0,2,4,2,4,2
cal $0,5 ; d(n) (also called tau(n) or sigma_0(n)), the number of divisors of n.
mov $1,$0
mod $1,6
| 92 | 501 | 0.531056 |
681505dfd72395bda19c65240d2743a3498030a5 | 92 | asm | Assembly | lab4/assignment_6.asm | 0000Blaze/Microprocess | 8d2bf8f7f55e50800c2b82f4b8d3b2d113fc3330 | [
"MIT"
] | null | null | null | lab4/assignment_6.asm | 0000Blaze/Microprocess | 8d2bf8f7f55e50800c2b82f4b8d3b2d113fc3330 | [
"MIT"
] | null | null | null | lab4/assignment_6.asm | 0000Blaze/Microprocess | 8d2bf8f7f55e50800c2b82f4b8d3b2d113fc3330 | [
"MIT"
] | null | null | null | # ORG 8020
# DB F1
# ORG 8000
LDA 8020
ANA A
JP EXIT
STA 8030
EXIT: HLT
| 9.2 | 12 | 0.532609 |
6c36f724fc843ca07cabde335350061058f18450 | 381 | asm | Assembly | sem4/so/laby/lab2i3/a4/mac.asm | abrams27/mimuw | ad8b01b63c05d7903aab29fd145845cf97ac32d9 | [
"MIT"
] | 3 | 2021-10-07T18:19:37.000Z | 2021-10-07T19:02:14.000Z | sem4/so/laby/lab2i3/a4/mac.asm | abrams27/mimuw | ad8b01b63c05d7903aab29fd145845cf97ac32d9 | [
"MIT"
] | null | null | null | sem4/so/laby/lab2i3/a4/mac.asm | abrams27/mimuw | ad8b01b63c05d7903aab29fd145845cf97ac32d9 | [
"MIT"
] | 3 | 2021-12-02T11:09:09.000Z | 2022-01-25T21:31:23.000Z | global mac
section .text
mac:
; funkcja mac(a, x, y)
; policzyc a + x * y
; rdi - a
; rsi - x
; rdx -> rcx - y
mov rcx, rdx
mov rax, [rsi]
mul QWORD [rcx]
mov r9, rax
mov r8, rdx
mov rax, [rsi + 8]
mul QWORD [rcx]
add r8, rax
mov rax, [rsi]
mul QWORD [rcx + 8]
add r8, rax
mov rax, r9
add r9, [rdi]
adc r8, [rdi + 8]
mov rax, r9
mov rdx, r8
ret
| 10.885714 | 23 | 0.548556 |
1fd468d69302bfd79e27d33a1b3f8fa5ce23b15a | 988 | asm | Assembly | programs/oeis/221/A221908.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/221/A221908.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/221/A221908.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A221908: 6^n + 6*n.
; 1,12,48,234,1320,7806,46692,279978,1679664,10077750,60466236,362797122,2176782408,13060694094,78364164180,470184984666,2821109907552,16926659444838,101559956668524,609359740010610,3656158440063096,21936950640377982,131621703842267268,789730223053602954,4738381338321617040,28430288029929701526,170581728179578208412,1023490369077469249698,6140942214464815497384,36845653286788892983470,221073919720733357899956,1326443518324400147398842,7958661109946400884392128,47751966659678405306351814,286511799958070431838109900,1719070799748422591028658386,10314424798490535546171949272,61886548790943213277031694558,371319292745659279662190166244,2227915756473955677973140996330,13367494538843734067838845976816,80204967233062404407033075859702,481229803398374426442198455156988,2887378820390246558653190730940674,17324272922341479351919144385642760,103945637534048876111514866313855246,623673825204293256669089197883130132
mov $1,$0
mul $0,6
mov $2,6
pow $2,$1
add $0,$2
| 109.777778 | 916 | 0.91498 |
35f8cd38e84dcf7065b5707120c48494f5b9e08f | 5,168 | asm | Assembly | Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca.log_21829_827.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca.log_21829_827.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca.log_21829_827.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_UC_ht+0xba65, %r11
nop
nop
nop
nop
add $44666, %rbx
mov (%r11), %edx
nop
nop
nop
add %r12, %r12
lea addresses_WT_ht+0x1bf83, %rsi
lea addresses_D_ht+0x6825, %rdi
nop
inc %r15
mov $112, %rcx
rep movsl
nop
nop
dec %r12
lea addresses_D_ht+0x13e05, %rsi
lea addresses_normal_ht+0xb033, %rdi
clflush (%rdi)
add $2992, %rbx
mov $111, %rcx
rep movsw
nop
nop
nop
nop
cmp %rsi, %rsi
lea addresses_WT_ht+0x260d, %rsi
lea addresses_A_ht+0xa619, %rdi
nop
nop
xor $46567, %r15
mov $40, %rcx
rep movsq
sub $39840, %rcx
lea addresses_D_ht+0x18ce7, %rsi
nop
sub $50643, %rcx
mov $0x6162636465666768, %rdx
movq %rdx, (%rsi)
nop
and $61889, %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 %r12
push %r13
push %r14
push %r15
push %r8
push %rdx
// Faulty Load
lea addresses_US+0x8365, %r14
dec %r13
mov (%r14), %r12d
lea oracles, %r15
and $0xff, %r12
shlq $12, %r12
mov (%r15,%r12,1), %r12
pop %rdx
pop %r8
pop %r15
pop %r14
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_US'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 4, 'NT': False, 'type': 'addresses_US'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 6, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 6, 'same': False, 'type': 'addresses_D_ht'}}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_normal_ht'}}
{'src': {'congruent': 3, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_A_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_D_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
*/
| 48.299065 | 2,999 | 0.662345 |
f20f202825da4d05ae413c0069de3998f2d52ced | 3,246 | asm | Assembly | programs/oeis/017/A017244.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/017/A017244.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/017/A017244.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A017244: a(n) = (9*n + 6)^12.
; 2176782336,129746337890625,36520347436056576,1667889514952984961,30129469486639681536,309629344375621415601,2176782336000000000000,11646329922777311412561,50714860157241037295616,188031682201497672618081,612709757329767363772416,1795856326022129150390625,4817904819828488880132096,11991163848716906297072721,27982542656501458535448576,61748917974902741368975281,129746337890625000000000000,261075123337098804348567681,505488617542763051300683776,945538455146635506591955521,1714570434475502278801821696,3022841224505963164306640625,5194718390528185623763746816,8720778205368893309992171281,14329653645048357641297596416,23085737796000848857434784161,36520347436056576000000000000,56805732602641806617660372001,86983418472562773463547252736,131260827061126477105043503761,195392992721698273467801010176,287169505347519450195556640625,417030640378345864542952820736,598841020838364120317909320641,850854163267826846772605485056,1196906950228928915420617322241,1667889514952984961000000000000,2303543290888970191892547145521,3154648147137881977010830442496,4285668681360310036179623022801,5777939960830703556871252217856,7733484380878508090972900390625,10279563944029090291760398073856,13574086253924998035506742360801,17811997972058071997491783274496,23232816514396602443039513869521,30129469486639681536000000000000,38858631894268190306056236008241,49852773645823301959309032493056,63634154429938853031268885072641,80831029829703640895574283124736,102196361689299480843652587890625,128629357421297433588475439026176,161200197298760918827871799931761,201178345981314859797749207924736,250064884752295712280965016506001,309629344375621415601000000000000,381951565303793484767982024880161,469469162377338774164264416444416,575031225353216910123132111013281,701958944794925216991773394210816,854113915267488815861797119140625,1035974934631225870939433987997696,1252724189751992140313894717473521,1510343795383404815625408037195776,1815723734577332468151810888111681,2176782336000000000000000000000000,2602600516238089239039932706481281,3103571113846457077545967898136576,3691564746799464435962737597004721,4380113736453147453897659274756096,5184615759406255094024375244140625,6122559014074299303482949394108416,7213770821681211396962910689226081,8480691722056324948490652657647616,9948677273438057188906683618366561,11646329922777311412561000000000000,13605863479160508919083334072331601,15863502898301415567362661638209536,18459922270959723690417004862006961,21440724103020022365326358498840576,24856963180204979452070761962890625,28765718526409348439950383787278336,33230717191845457716209080820229441,38323013846015505143637058252640256,44121730401411477830747380759750641,50714860157241037295616000000000000,58200141228849561310411799296751121,66686004318328274151743203554103296,76292600185550971776087475175780001,87152912497063724297979113301344256,99413962063371238768100738525390625,113238108823740206598484030702227456,128804458302205785589184715198323601,146310379639566282742693615890333696,165973142704339215401988956943543921,188031682201497672618081000000000000,212748497131890182639460265000859841,240411694408163626593300295352057856,271337185905363372633004124806883841
mul $0,9
add $0,6
pow $0,12
| 463.714286 | 3,184 | 0.959026 |
91daae732b8dd3697e7dee4d70db125144023e4a | 147 | asm | Assembly | libsrc/_DEVELOPMENT/error/z80/error_lzc.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/error/z80/error_lzc.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/error/z80/error_lzc.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
SECTION code_error
PUBLIC error_lzc
EXTERN error_zc
pop hl
error_lzc:
; set dehl = 0
; set carry flag
ld de,0
jp error_zc
| 8.647059 | 19 | 0.646259 |
bf671d33b39afd3f870f31c8629ae867454dc07c | 398 | asm | Assembly | programs/oeis/029/A029926.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/029/A029926.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/029/A029926.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A029926: Convert n from degrees Fahrenheit to Centigrade (or Celsius).
; -18,-17,-17,-16,-16,-15,-14,-14,-13,-13,-12,-12,-11,-11,-10,-9,-9,-8,-8,-7,-7,-6,-6,-5,-4,-4,-3,-3,-2,-2,-1,-1,0,1,1,2,2,3,3,4,4,5,6,6,7,7,8,8,9,9,10,11,11,12,12,13,13,14,14,15,16,16,17,17,18,18
mov $1,2
mov $2,$0
mov $0,3
mul $2,5
add $1,$2
add $0,$1
add $0,1
div $0,9
mov $1,10
lpb $1
sub $0,1
sub $1,1
lpe
sub $0,8
| 22.111111 | 196 | 0.557789 |
b50ff0d6c10a09dcf2c3a169c876756cd7b42ba1 | 768 | asm | Assembly | programs/oeis/105/A105235.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/105/A105235.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/105/A105235.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A105235: Partial sums of the central column of a Moebius-binomial triangle.
; 1,2,2,3,4,5,5,6,7,8,8,9,10,11,11,12,13,14,15,16,17,18,18,19,20,21,21,22,23,24,24,25,26,27,27,28,29,30,30,31,32,33,33,34,35,36,36,37,38,39,40,41,42,43,44,45,46,47,47,48,49,50,50,51,52,53,53,54,55,56,56,57,58
mov $6,$0
mov $8,$0
add $8,1
lpb $8
clr $0,6
mov $0,$6
sub $8,1
sub $0,$8
sub $0,1
mov $1,6
lpb $1
lpb $1,5
add $2,$0
mod $2,2
sub $2,1
add $4,$0
div $4,2
cal $0,8683 ; Möbius (or Moebius) function mu(n). mu(1) = 1; mu(n) = (-1)^k if n is the product of k different primes; otherwise mu(n) = 0.
mov $1,1
lpe
lpe
mov $5,$0
add $5,1
lpb $5
add $1,3
sub $5,$5
lpe
div $1,3
add $7,$1
lpe
mov $1,$7
| 21.942857 | 208 | 0.552083 |
e089c4db41efc55031f7197cc6d1438da216636c | 345 | asm | Assembly | oeis/272/A272743.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/272/A272743.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/272/A272743.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A272743: Number of active (ON,black) cells at stage 2^n-1 of the two-dimensional cellular automaton defined by "Rule 526", based on the 5-celled von Neumann neighborhood.
; 1,5,17,69,277,1109,4437,17749,70997,283989,1135957,4543829,18175317,72701269,290805077,1163220309
seq $0,330246 ; a(n) = 4^(n+1) + (4^n-1)/3.
div $0,8
mul $0,2
add $0,1
| 43.125 | 172 | 0.724638 |
69fceb00635cd7ac9b5b472f20eeaecb4a194a36 | 3,260 | asm | Assembly | libtool/src/gmp-6.1.2/mpn/arm/neon/sec_tabselect.asm | kroggen/aergo | 05af317eaa1b62b21dc0144ef74a9e7acb14fb87 | [
"MIT"
] | 1,602 | 2015-01-06T11:26:31.000Z | 2022-03-30T06:17:21.000Z | libtool/src/gmp-6.1.2/mpn/arm/neon/sec_tabselect.asm | kroggen/aergo | 05af317eaa1b62b21dc0144ef74a9e7acb14fb87 | [
"MIT"
] | 11,789 | 2015-01-05T04:50:15.000Z | 2022-03-31T23:39:19.000Z | libtool/src/gmp-6.1.2/mpn/arm/neon/sec_tabselect.asm | kroggen/aergo | 05af317eaa1b62b21dc0144ef74a9e7acb14fb87 | [
"MIT"
] | 498 | 2015-01-08T18:58:18.000Z | 2022-03-20T15:37:45.000Z | dnl ARM Neon mpn_sec_tabselect.
dnl Contributed to the GNU project by Torbjörn Granlund.
dnl Copyright 2011-2013 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Public License as published by the Free
dnl Software Foundation; either version 3 of the License, or (at your
dnl option) any later version.
dnl
dnl or
dnl
dnl * the GNU General Public License as published by the Free Software
dnl Foundation; either version 2 of the License, or (at your option) any
dnl later version.
dnl
dnl or both in parallel, as here.
dnl
dnl The GNU MP Library is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
dnl for more details.
dnl
dnl You should have received copies of the GNU General Public License and the
dnl GNU Lesser General Public License along with the GNU MP Library. If not,
dnl see https://www.gnu.org/licenses/.
include(`../config.m4')
C cycles/limb
C StrongARM -
C XScale -
C Cortex-A7 ?
C Cortex-A8 ?
C Cortex-A9 1.15
C Cortex-A15 0.65
define(`rp', `r0')
define(`tp', `r1')
define(`n', `r2')
define(`nents', `r3')
C define(`which', on stack)
define(`i', `r4')
define(`j', `r5')
define(`maskq', `q10')
define(`maskd', `d20')
ASM_START()
PROLOGUE(mpn_sec_tabselect)
push {r4-r5}
add r4, sp, #8
vld1.32 {d30[], d31[]}, [r4] C 4 `which' copies
vmov.i32 q14, #1 C 4 copies of 1
subs j, n, #8
bmi L(outer_end)
L(outer_top):
mov i, nents
mov r12, tp C preserve tp
veor q13, q13, q13 C 4 counter copies
veor q2, q2, q2
veor q3, q3, q3
ALIGN(16)
L(top): vceq.i32 maskq, q13, q15 C compare idx copies to `which' copies
vld1.32 {q0,q1}, [tp]
vadd.i32 q13, q13, q14
vbit q2, q0, maskq
vbit q3, q1, maskq
add tp, tp, n, lsl #2
subs i, i, #1
bne L(top)
vst1.32 {q2,q3}, [rp]!
add tp, r12, #32 C restore tp, point to next slice
subs j, j, #8
bpl L(outer_top)
L(outer_end):
tst n, #4
beq L(b0xx)
L(b1xx):mov i, nents
mov r12, tp
veor q13, q13, q13
veor q2, q2, q2
ALIGN(16)
L(tp4): vceq.i32 maskq, q13, q15
vld1.32 {q0}, [tp]
vadd.i32 q13, q13, q14
vbit q2, q0, maskq
add tp, tp, n, lsl #2
subs i, i, #1
bne L(tp4)
vst1.32 {q2}, [rp]!
add tp, r12, #16
L(b0xx):tst n, #2
beq L(b00x)
L(b01x):mov i, nents
mov r12, tp
veor d26, d26, d26
veor d4, d4, d4
ALIGN(16)
L(tp2): vceq.i32 maskd, d26, d30
vld1.32 {d0}, [tp]
vadd.i32 d26, d26, d28
vbit d4, d0, maskd
add tp, tp, n, lsl #2
subs i, i, #1
bne L(tp2)
vst1.32 {d4}, [rp]!
add tp, r12, #8
L(b00x):tst n, #1
beq L(b000)
L(b001):mov i, nents
mov r12, tp
veor d26, d26, d26
veor d4, d4, d4
ALIGN(16)
L(tp1): vceq.i32 maskd, d26, d30
vld1.32 {d0[0]}, [tp]
vadd.i32 d26, d26, d28
vbit d4, d0, maskd
add tp, tp, n, lsl #2
subs i, i, #1
bne L(tp1)
vst1.32 {d4[0]}, [rp]
L(b000):pop {r4-r5}
bx r14
EPILOGUE()
| 23.120567 | 79 | 0.635583 |
e87f562d36c28cb5a198aa786612c8a10ca68786 | 74,613 | asm | Assembly | Library/SpecUI/CommonUI/CView/cviewPaneScroll.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Library/SpecUI/CommonUI/CView/cviewPaneScroll.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Library/SpecUI/CommonUI/CView/cviewPaneScroll.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @-----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: OpenLook/View
FILE: viewPaneScroll.asm
ROUTINES:
Name Description
---- -----------
INT OLPaneScroll Scrolls the pane.
INT ScrollIntoOneDimension Scrolls object into view, in one direction.
INT GetLargeObjOnscreen Gets an object larger than the window
onscreen vertically.
INT GetSmallObjOnscreen Gets an object smaller than the window
onscreen vertically.
INT CalcNewOrigin Calculates a new origin for scrolling an
object onscreen.
INT DNegate Negates a double precision number.
INT OLPaneScrollAbsolute Scrolls to a specified location.
MTD MSG_GEN_VIEW_SET_ORIGIN_LOW
Low level scroll. Doesn't normalize or
propagate to other views.
INT KeepOriginInBounds Keeps origin within document's bounds.
Also sets pane flags if we're at the right
or bottom edge.
INT KeepValueInBounds Keeps an x or y value in bounds.
INT StoreNewOrigin Stores a new origin.
INT SendNewOriginToOD Sends new origin to OD.
INT MakeRelativeToOrigin Makes the value passed in relative to the
current origin
INT MakeRelativeWWFixed Makes the value passed in relative to the
current origin
INT MakeScrollAmountAbsolute
Get an absolute scroll amount.
INT SendTrackScrollingMethod
Sends out scroll tracking method for the
pane.
MTD MSG_GEN_VIEW_SETUP_TRACKING_ARGS
Sets up bounds in TrackScrollingParams.
Called by a
MSG_META_CONTENT_TRACK_SCROLLING handler to
fill out missing arguments. Also gets the
value in bounds, for the hell of it.
INT GetNewOrigin Gets new origin.
INT MakeRelativeToOldOrigin Makes scroll values relative to the
oldOrigin.
INT SetupOldOrigin Sets up old and new origins, looking at
instance data and suggested change.
INT SetupNewOrigin Sets up new origin based on old origin and
change.
INT GetXOrigin Returns x or y origin.
INT GetYOrigin Returns x or y origin.
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 2/91 Started V2.0
DESCRIPTION:
This file implements the pane scrolling.
$Id: cviewPaneScroll.asm,v 1.1 97/04/07 10:51:42 newdeal Exp $
-------------------------------------------------------------------------------@
ViewScroll segment resource
COMMENT @----------------------------------------------------------------------
ROUTINE: OLPaneScroll
SYNOPSIS: Scrolls the pane.
CALLED BY: utility
PASS: *ds:si -- instance data
bx:ax -- amount in x direction to scroll
dx:cx -- amount in y direction to scroll
bp -- OLPaneScrollFlags
RETURN: nothing
DESTROYED: ax, bx, cx, dx, di, es
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 3/27/90 Initial version
------------------------------------------------------------------------------@
OLPaneScroll proc far uses si
.enter
call ObjMarkDirty ;make sure things are dirtied
call MakeScrollAmountAbsolute ;get an absolute value
call KeepOriginInBounds ;keep in bounds
call MakeRelativeToOrigin ;make the origin relative
test bp, mask OLPSF_DONT_NORMALIZE ;any normalize action?
jnz scrollem ;no, none needed
test bp, mask OLPSF_SCROLL_ACTION ;any normalize action?
jz scrollem ;no, none needed
mov di, ds:[si] ;point to instance
add di, ds:[di].Gen_offset ;ds:[di] -- view GenInstance
tst ds:[di].GVI_content.handle ;see if there's a content
jz scrollem ;no, continue to scroll normally
; until there is one
test ds:[di].GVI_attrs, mask GVA_TRACK_SCROLLING
jz scrollem ;just scroll if not normalizing
call SendTrackScrollingMethod ;send it on its way
jmp exit ;normalize-complete will do
; window, range later
scrollem:
test bp, mask OLPSF_DONT_SEND_TO_LINKS
jnz scrollNow ;not doing links, branch
callLinks:
push ax, bx, cx, dx, bp
sub sp, size PointDWord
mov bp, sp
; decide which
mov di, -1 ; directions the
tstdw bxax ; scroll is in
jnz $10
inc di
$10:
tstdw dxcx
jz $20
inc di
$20:
push di
call MakeScrollAmountAbsolute
mov ss:[bp].PD_x.low, ax
mov ss:[bp].PD_x.high, bx
mov ss:[bp].PD_y.low, cx
mov ss:[bp].PD_y.high, dx
mov dx, size PointDWord
mov di, mask MF_STACK
mov ax, MSG_GEN_VIEW_SET_ORIGIN_LOW
pop bx
call GenViewSendToLinksIfNeededDirection ;propagate the message
jc popUndExit ;das vas handelt
add sp, size PointDWord
pop ax, bx, cx, dx, bp
jmp short scrollNow
popUndExit:
add sp, size PointDWord + 10 ;throw away PointDWord,
; ax, bx, cx, dx, bp
jmp exit
scrollNow:
;
; Let's check to see if anything's happening, and save the result.
;
mov di, cx
or di, dx
push di ;di = 0 if no vert scroll
clr di
or di, ax
or di, bx
push di ;di = 0 if no horiz scroll
or di, cx
or di, dx
push di ;di will be zero if no scrolling
;
; Now, set the new instance data value and scroll the window.
;
call MakeScrollAmountAbsolute ;make this absolute again
call KeepOriginInBounds ;this is just to set right/
; bottom flags
push bx
mov bx, di ;flags in bl
mov di, ds:[si]
add di, ds:[di].Vis_offset
and ds:[di].OLPI_flags, not (mask OLPF_AT_RIGHT_EDGE or \
mask OLPF_AT_BOTTOM_EDGE)
or ds:[di].OLPI_flags, bl ;or in some flags
pop bx ;restore bx
push bp ;always send origin to OD on
and bp, mask OLPSF_SCROLL_ACTION ; the initial positioning
cmp bp, SA_INITIAL_POS
pop bp
pop di ;restore scrolling flag
je storeAndNotify ;always send on initial pos
tst di ;any scrolling going on?
jz justScroll ;not scrolling, move on...
storeAndNotify:
call OLPaneSuspendUpdate ;suspend the window 3/19/93
call OLPaneWindowScroll ;scroll the window
call SendNewOriginToOD ;send off new origin (moved
; before OLPaneWindowScroll
; to get correct origin -cbh
; 3/19/93
call OLPaneUnSuspendUpdate ;unsuspend the window 3/19/93
call StoreNewOrigin ;now store the new origin
; (after OLPaneWindowScroll!)
jmp short checkScrollbars
justScroll:
call OLPaneWindowScroll ;why is this necessary? I'm
; not sure.
checkScrollbars:
;
; Update the ranges, if necessary.
;
test bp, mask OLPSF_DONT_SEND_TO_SCROLLBARS
jz scroll
pop di, di
jmp exit ;exit if not doing scrollbars
scroll:
pop di ;check for vert scroll
if FLOATING_SCROLLERS
;
; for floating scrollers, always update if requested
;
test bp, mask OLPSF_ALWAYS_UPDATE_SCROLLBARS
jnz updateHoriz
endif
tst di
jz noHoriz
updateHoriz::
push cx, dx
movdw dxcx, bxax
mov ax, MSG_GEN_VALUE_SET_VALUE
call CallHorizScrollbar
pop cx, dx
; call OLPaneCallScrollbarsWithDWords ;update each scrollbar
noHoriz:
pop di ;check for horiz scroll
if FLOATING_SCROLLERS
;
; for floating scrollers, always update if requested
;
test bp, mask OLPSF_ALWAYS_UPDATE_SCROLLBARS
jnz updateVert
endif
tst di
jz noVert
updateVert::
mov ax, MSG_GEN_VALUE_SET_VALUE
call CallVertScrollbar
noVert:
exit:
.leave
;
; Clear the keyboard scroll flag for all cases. 6/15/94 cbh
;
mov di, ds:[si]
add di, ds:[di].Vis_offset
and ds:[di].OLPI_optFlags, not mask OLPOF_KBD_CHAR_SCROLL
call SendNotifyCommon
EC < Destroy ax, cx, dx, bp ;destroy things >
ret
OLPaneScroll endp
ViewScroll ends
ViewBuild segment resource
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneInitOrigin --
MSG_SPEC_VIEW_INIT_ORIGIN for OLPaneClass
DESCRIPTION: The point of this handler is to
scroll the pane window after it has been created.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_SPEC_VIEW_INIT_ORIGIN
RETURN: nothing
ax, cx, dx, bp -- destroyed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 3/13/90 Initial version
Jim 7/28/90 Added support for fixed point GVI_origin
------------------------------------------------------------------------------@
OLPaneInitOrigin method OLPaneClass, MSG_SPEC_VIEW_INIT_ORIGIN
clr cx ;reset scrollbars
clr dx
mov ax, MSG_GEN_VALUE_SET_VALUE
call OLPaneCallScrollbars
call GetXOrigin ;get x origin in bx:ax
call GetYOrigin ;get y origin in dx:cx
mov di, ds:[si] ;point to instance
add di, ds:[di].Gen_offset ;ds:[di] -- GenInstance
;
; Added 5/10/93 cbh to avoid scrolling the pane if not necessary.
; cbh 5/10/93
;
test ds:[di].GVI_attrs, mask GVA_TRACK_SCROLLING
jnz 10$
mov bp, ax
or bp, bx
or bp, cx
or bp, dx
jz exit ;no scrolling needed, branch
10$:
clr bp
mov ds:[di].GVI_origin.PDF_x.DWF_int.high, bp ;clear what's there,
mov ds:[di].GVI_origin.PDF_x.DWF_int.low, bp ; make things scroll
mov ds:[di].GVI_origin.PDF_x.DWF_frac, bp ;
mov ds:[di].GVI_origin.PDF_y.DWF_int.high, bp ;
mov ds:[di].GVI_origin.PDF_y.DWF_int.low, bp ;
mov ds:[di].GVI_origin.PDF_y.DWF_frac, bp ;
mov bp, SA_INITIAL_POS or mask OLPSF_ABSOLUTE or mask \
OLPSF_ALWAYS_SEND_NORMALIZE or mask OLPSF_DONT_SEND_TO_LINKS
call OLPaneScroll ;scroll, if need be...
exit:
ret
OLPaneInitOrigin endm
ViewBuild ends
ActionObscure segment resource
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneMakeRectVisible --
MSG_GEN_VIEW_MAKE_RECT_VISIBLE for OLPaneClass
DESCRIPTION: Scrolls so a certain rectangular region will appear on the
screen.
PASS: *ds:si - instance data
es - segment of MetaClass
ss:[bp].MRVP_rect - rectangle to get onscreen
ss:[bp].MRVP_margin - how far to scroll on
RETURN: nothing
ax, cx, dx, bp -- destroyed
ALLOWED TO DESTROY: bx, di, es, ds, si
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
Pure magic.
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 7/17/89 Initial version
------------------------------------------------------------------------------@
OLPaneMakeRectVisible method OLPaneClass, MSG_GEN_VIEW_MAKE_RECT_VISIBLE
;
; copy R/O stack data into chunk
;
mov al, 0
mov cx, size MakeRectVisibleParams
call LMemAlloc ; ax = chunk
push ds, es, si
mov di, ax ; es:di = buffer in chunk
mov di, ds:[di]
segmov es, ds
segmov ds, ss ; ds:si = data on stack
mov si, bp
rep movsb
pop ds, es, si
mov di, 1100 ; blech. dynamic lists often
; require this much to scroll
; back to the top.
call ThreadBorrowStackSpace
push di
;
; copy R/O stack data from chunk onto new stack, if any
; *ds:ax = chunk
;
sub sp, size MakeRectVisibleParams ; allocate space regardless
tst di
jz noNewStack
mov bp, sp ; ss:bp = MRVP on new stack
push es, si
mov si, ax
mov si, ds:[si] ; ds:si = data in chunk
segmov es, ss
mov di, bp ; es:di = buffer on new stack
mov cx, size MakeRectVisibleParams
rep movsb
pop es, si
noNewStack:
call LMemFree
clr bx ;first do horizontal
call ScrollIntoOneDimension
push cx, dx ;save horizontal results
mov bx, SIOD_VERTICAL ;now do vertical
call ScrollIntoOneDimension ;vertical results in dx:cx
pop ax, bx ;horizontal results in bx:ax
mov bp, SA_SCROLL_INTO or mask OLPSF_ABSOLUTE
call OLPaneScrollAbsolute ;go scrolling
add sp, size MakeRectVisibleParams
pop di
call ThreadReturnStackSpace
ret
OLPaneMakeRectVisible endm
COMMENT @----------------------------------------------------------------------
ROUTINE: ScrollIntoOneDimension
SYNOPSIS: Scrolls object into view, in one direction.
CALLED BY: OLPaneScrollIntoPane
PASS: *ds:si -- pane
bx -- 0 if horizontal
SIOD_VERTICAL if vertical
ss:bp -- MakeRectVisibleParams
RETURN: dx:cx -- new origin
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 3/ 5/91 Initial version
------------------------------------------------------------------------------@
SIOD_VERTICAL equ size OLPI_pageWidth ;offset to pass in
CheckHack <(offset OLPI_pageHeight - offset OLPI_pageWidth) eq SIOD_VERTICAL>
CheckHack <(offset GVI_docBounds.RD_top - offset GVI_docBounds.RD_left) \
eq (SIOD_VERTICAL * 2)>
CheckHack <(offset MRVP_bounds.RD_top.low - offset MRVP_bounds.RD_left.low) \
eq (SIOD_VERTICAL * 2)>
CheckHack <(offset MRVP_yFlags - offset MRVP_xFlags) \
eq (SIOD_VERTICAL * 2)>
CheckHack <(offset MRVP_yMargin - offset MRVP_xMargin) \
eq (SIOD_VERTICAL * 2)>
CheckHack <(offset GVI_origin.PDF_y - offset GVI_origin.PDF_x) \
eq (SIOD_VERTICAL * 3)>
ScrollIntoOneDimension proc near
uses bp
.enter
EC < cmp bx, SIOD_VERTICAL >
EC < ERROR_A OL_BAD_FLAG_PASSED_TO_SCROLL_ROUTINE >
add bp, bx ;adjust SIS to look at correct
add bp, bx ; dimension
mov di, ds:[si] ;point to instance
add di, ds:[di].Gen_offset ;ds:[di] -- GenInstance
add di, bx ;adjust for dimension
add di, bx
add di, bx ;size(DWFixed) = 3 words
mov cx, ds:[di].GVI_origin.PDF_x.DWF_int.low ;get current origin
mov dx, ds:[di].GVI_origin.PDF_x.DWF_int.high
tst ds:[di].GVI_origin.PDF_x.DWF_frac.high
jns checkY
add cx, 1 ; round origin
adc dx, 0
checkY:
;
; Now do vertical.
;
push ax ;save margin
mov ax, ss:[bp].MRVP_bounds.RD_right.low ;get low word of size
sub ax, ss:[bp].MRVP_bounds.RD_left.low
EC < push bx ;check high word >
EC < mov bx, ss:[bp].MRVP_bounds.RD_right.high >
EC < sbb bx, ss:[bp].MRVP_bounds.RD_left.high >
EC < tst bx >
EC < pop bx >
EC < ERROR_S OL_VIEW_RECT_TO_MAKE_VISIBLE_HAS_NEGATIVE_SIZE >
EC < ERROR_NZ OL_VIEW_RECT_TO_MAKE_VISIBLE_TOO_LARGE >
mov di, ds:[si] ;point to pane instance
add di, ds:[di].Vis_offset ;ds:[di] -- SpecInstance
add di, bx ;correct for dimension
cmp ax, ds:[di].OLPI_pageWidth ;bigger than height of a page?
pop ax ;restore margin
jae tallObj ;yes, branch to handle
call GetSmallObjOnscreen ;else handle short object
jmp short exit ;and branch
tallObj:
call GetLargeObjOnscreen ;keep it onscreen vertically
exit:
.leave
ret
ScrollIntoOneDimension endp
COMMENT @----------------------------------------------------------------------
ROUTINE: GetLargeObjOnscreen
SYNOPSIS: Gets an object larger than the window onscreen vertically.
CALLED BY: OLPaneScrollIntoPane
PASS: ds:di -- OLPane spec instance, adjust for dimension
ss:bp -- MakeRectVisibleParams, adjusted for dimension
dx:cx -- current origin
RETURN: dx:cx -- new scroll origin
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 5/23/90 Initial version
------------------------------------------------------------------------------@
GetLargeObjOnscreen proc near
push cx, dx
test ss:[bp].MRVP_xFlags, mask MRVF_ALWAYS_SCROLL
jnz scrollIt ;always scrolling, do it
cmp dx, ss:[bp].MRVP_bounds.RD_right.high
jg scrollIt
jl 10$
cmp cx, ss:[bp].MRVP_bounds.RD_right.low
jae scrollIt ;offscreen, branch to scroll
10$:
add cx, ds:[di].OLPI_pageWidth ;get to bottom of window
adc dx, 0
cmp dx, ss:[bp].MRVP_bounds.RD_left.high
jg exitOriginalArgs
jl scrollIt
cmp cx, ss:[bp].MRVP_bounds.RD_left.low
ja exitOriginalArgs ;not offscreen, exit
jmp short scrollIt
GetLargeObjOnscreen endp
COMMENT @----------------------------------------------------------------------
ROUTINE: GetSmallObjOnscreen
SYNOPSIS: Gets an object smaller than the window onscreen vertically.
CALLED BY: OLPaneScrollIntoPane
PASS: ds:di -- OLPane spec instance, adjust for dimension
ss:bp -- MakeRectVisibleParams, adjusted for dimension
dx:cx -- current origin
RETURN: dx:cx -- new scroll origin
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 5/23/90 Initial version
------------------------------------------------------------------------------@
GetSmallObjOnscreen proc near
push cx, dx ;save origin
test ss:[bp].MRVP_xFlags, mask MRVF_ALWAYS_SCROLL
jnz scrollIt ;always scrolling, do it
cmp dx, ss:[bp].MRVP_bounds.RD_left.high
jg scrollIt
jl 10$
cmp cx, ss:[bp].MRVP_bounds.RD_left.low ;see if left of window
ja scrollIt ;yes, go scroll back on
10$:
add cx, ds:[di].OLPI_pageWidth ;get bottom edge of window
adc dx, 0
cmp dx, ss:[bp].MRVP_bounds.RD_right.high
jg exitOriginalArgs
jl scrollIt
cmp cx, ss:[bp].MRVP_bounds.RD_right.low ;get to bottom of "point"
jae exitOriginalArgs ;not to right of window, exit
scrollIt label near
;
; New pane origin = cursorY - winLen/2 - cursorHeight/2
; In other words, center it.
;
pop cx, dx ;restore original origin
GOTO CalcNewOrigin
exitOriginalArgs label near
pop cx, dx
ret
GetSmallObjOnscreen endp
COMMENT @----------------------------------------------------------------------
ROUTINE: CalcNewOrigin
SYNOPSIS: Calculates a new origin for scrolling an object onscreen.
CALLED BY: OLPaneScrollIntoPane
PASS: ss:[bp] -- MakeRectVisibleParams, adjusted for
ds:di -- view SpecInstance
dx:cx -- origin
RETURN: dx:cx -- new origin
DESTROYED: ax, cx, dx, di
PSEUDO CODE/STRATEGY:
if origin < MRVP_bounds.RD_left.low
; Scrolling down.
cx = MRVP_bounds.RD_left - MRVP_margin *
(MRVP_bounds.RD_right-MRVP_bounds.RD_left-winLen)
+ (MRVP_bounds.RD_right-MRVP_bounds.RD_left.low-winLen)
else
; Scrolling up
cx = MRVP_bounds.RD_left + MRVP_margin *
(MRVP_bounds.RD_right-MRVP_bounds.DB_left.low-winLen)
endif
The proof is left as an exercise.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
MRVP_bounds.RD_right-MRVP_bounds.RD_left must fit in 16 bits.
Won't work if right-left > winLen.
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 8/14/89 Initial version
------------------------------------------------------------------------------@
CalcNewOrigin proc near
class OLPaneClass
mov bx, ds:[di].OLPI_pageWidth ;get window height
mov di, bx ;save bx
shr bx, 1 ;divide page width by 2
add cx, bx ;add to page left
adc dx, 0
mov bx, di ;restore page width to bx
mov di, ss:[bp].MRVP_bounds.RD_right.low
sub di, ss:[bp].MRVP_bounds.RD_left.low
shr di, 1 ;divide rect width by 2
sub cx, di ;account in direction calc...
sbb dx, 0
mov ax, ss:[bp].MRVP_bounds.RD_right.low
;get MRVP_bounds.DB_right.low-MRVP_bounds.RD_left.low-winLen
sub ax, ss:[bp].MRVP_bounds.RD_left.low ;result in ax
sub ax, bx ;subtract page width
mov bx, ax ;keep in bx
clr di ;now in di:bx
tst bx
jns 3$
dec di
3$:
test ss:[bp].MRVP_xFlags, mask MRVF_USE_MARGIN_FROM_TOP_LEFT
jnz 10$ ;don't care about current
; position, branch to calc
; from left edge.
cmp dx, ss:[bp].MRVP_bounds.RD_left.high
jg 10$
jl 5$
cmp cx, ss:[bp].MRVP_bounds.RD_left.low ;see if scrolling up
jae 10$ ;no, branch
5$:
;
; Scrolling down (whatever that means.)
;
mov cx, ss:[bp].MRVP_bounds.RD_left.low
mov dx, ss:[bp].MRVP_bounds.RD_left.high
;(use dx:cx to accumulate result)
add cx, bx ;add right-left-pageWidth
adc dx, di
neg bx ;negate our right-left-pageWidth
jmp short 15$ ;and branch to finish
10$:
;
; Scrolling up
;
mov cx, ss:[bp].MRVP_bounds.RD_left.low
mov dx, ss:[bp].MRVP_bounds.RD_left.high
15$:
mov ax, ss:[bp].MRVP_xMargin ;get the desired margin
push cx, dx ;save our current sum
;
; NOTE: because the percentage is unsigned 16-bit, but the
; margin is signed 16-bit, we cannot use imul here. Sign-extending
; the result after using mul here is fraught with peril as well...
;
mov cx, ax
clr dx ;dx.cx <- % of margin
clr ax ;bx.ax <- margin
call GrMulWWFixed ;dx.cx <- result
mov ax, dx ;ax <- result (sword)
cwd ;sign-extend
mov bx, dx ;bx:ax <- result (sdword)
pop cx, dx ;restore current sum
add cx, ax ;add things
adc dx, bx
ret
CalcNewOrigin endp
ActionObscure ends
ViewUncommon segment resource
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneScrollUp --
MSG_GEN_VIEW_SCROLL_UP for OLPaneClass
DESCRIPTION: Scrolls document up one increment.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_GEN_VIEW_SCROLL_UP
RETURN: nothing
ax, cx, dx, bp -- destroyed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 12/11/89 Initial version
------------------------------------------------------------------------------@
OLPaneScrollUp method OLPaneClass, MSG_GEN_VIEW_SCROLL_UP
mov di, ds:[si] ;point to instance
add di, ds:[di].Gen_offset ;ds:[di] -- GenInstance
clr bx ;no left-right scroll
clr ax
mov dx, ds:[di].GVI_increment.PD_y.high ;get vertical increment
mov cx, ds:[di].GVI_increment.PD_y.low
call DNegate ;make negative
mov bp, SA_INC_BACK or mask OLPSF_VERTICAL
call OLPaneScroll ;and scroll
ret
OLPaneScrollUp endm
COMMENT @----------------------------------------------------------------------
ROUTINE: DNegate
SYNOPSIS: Negates a double precision number.
CALLED BY: utility
PASS: dx:cx -- number to negate
RETURN: dx:cx -- negated number
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 3/ 5/91 Initial version
------------------------------------------------------------------------------@
DNegate proc near
negdw dxcx
ret
DNegate endp
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneScrollDown --
MSG_GEN_VIEW_SCROLL_DOWN for OLPaneClass
DESCRIPTION: Scrolls document down one increment.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_GEN_VIEW_SCROLL_DOWN
RETURN: nothing
ax, cx, dx, bp -- destroyed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 12/11/89 Initial version
------------------------------------------------------------------------------@
OLPaneScrollDown method OLPaneClass, MSG_GEN_VIEW_SCROLL_DOWN
mov di, ds:[si] ;point to instance
add di, ds:[di].Gen_offset ;ds:[di] -- GenInstance
clr ax ;no left-right scroll
clr bx
mov dx, ds:[di].GVI_increment.PD_y.high ;get vertical increment
mov cx, ds:[di].GVI_increment.PD_y.low
mov bp, SA_INC_FWD or mask OLPSF_VERTICAL
call OLPaneScroll ;and scroll, no special flags
ret
OLPaneScrollDown endp
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneScrollLeft --
MSG_GEN_VIEW_SCROLL_LEFT for OLPaneClass
DESCRIPTION: Scrolls document left one increment.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_GEN_VIEW_SCROLL_LEFT
RETURN: nothing
ax, cx, dx, bp -- destroyed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 12/11/89 Initial version
------------------------------------------------------------------------------@
OLPaneScrollLeft method OLPaneClass, MSG_GEN_VIEW_SCROLL_LEFT
mov di, ds:[si] ;point to instance
add di, ds:[di].Gen_offset ;ds:[di] -- GenInstance
mov cx, ds:[di].GVI_increment.PD_x.low ;get horizontal increment
mov dx, ds:[di].GVI_increment.PD_x.high
call DNegate
mov ax, cx ;put in bx:ax
mov bx, dx
clr cx ;no vertical scroll
clr dx
mov bp, SA_INC_BACK ;horizontal
call OLPaneScroll ;and scroll, no special flags
ret
OLPaneScrollLeft endm
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneScrollRight --
MSG_GEN_VIEW_SCROLL_RIGHT for OLPaneClass
DESCRIPTION: Scrolls document right one increment.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_GEN_VIEW_SCROLL_RIGHT
RETURN: nothing
ax, cx, dx, bp -- destroyed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 12/11/89 Initial version
------------------------------------------------------------------------------@
OLPaneScrollRight method OLPaneClass, MSG_GEN_VIEW_SCROLL_RIGHT
mov di, ds:[si] ;point to instance
add di, ds:[di].Gen_offset ;ds:[di] -- GenInstance
clr dx ;no up-down scroll
clr cx
mov ax, ds:[di].GVI_increment.PD_x.low ;get horizontal increment
mov bx, ds:[di].GVI_increment.PD_x.high
mov bp, SA_INC_FWD
call OLPaneScroll ;and scroll, no special flags
ret
OLPaneScrollRight endp
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneScrollPageUp --
MSG_GEN_VIEW_SCROLL_PAGE_UP for OLPaneClass
DESCRIPTION: Scrolls document up one page.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_GEN_VIEW_SCROLL_PAGE_UP
RETURN: nothing
ax, cx, dx, bp -- destroyed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 12/11/89 Initial version
------------------------------------------------------------------------------@
OLPaneScrollPageUp method OLPaneClass, MSG_GEN_VIEW_SCROLL_PAGE_UP
mov di, ds:[si] ;point to instance
add di, ds:[di].Vis_offset ;ds:[di] -- SpecInstance
mov cx, ds:[di].OLPI_pageHeight ;get current page height
clr dx ; in dx:cx
call DNegate ;make negative
clr ax ;no left-right scroll
clr bx
mov bp, SA_PAGE_BACK or mask OLPSF_VERTICAL
call OLPaneScroll ;and scroll, no special flags
ret
OLPaneScrollPageUp endm
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneScrollPageDown --
MSG_GEN_VIEW_SCROLL_PAGE_DOWN for OLPaneClass
DESCRIPTION: Scrolls document down one page.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_GEN_VIEW_SCROLL_PAGE_DOWN
RETURN: nothing
ax, cx, dx, bp -- destroyed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 12/11/89 Initial version
------------------------------------------------------------------------------@
OLPaneScrollPageDown method OLPaneClass, MSG_GEN_VIEW_SCROLL_PAGE_DOWN
mov di, ds:[si] ;point to instance
add di, ds:[di].Vis_offset ;ds:[di] -- SpecInstance
mov cx, ds:[di].OLPI_pageHeight ;get current page height
clr dx ; in dx:cx
clr bx ;no left-right scroll
clr ax
mov bp, SA_PAGE_FWD or mask OLPSF_VERTICAL
call OLPaneScroll ;and scroll, no special flags
ret
OLPaneScrollPageDown endp
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneScrollPageLeft --
MSG_GEN_VIEW_SCROLL_PAGE_LEFT for OLPaneClass
DESCRIPTION: Scrolls document left one page.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_GEN_VIEW_SCROLL_PAGE_LEFT
RETURN: nothing
ax, cx, dx, bp -- destroyed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 12/11/89 Initial version
------------------------------------------------------------------------------@
OLPaneScrollPageLeft method OLPaneClass, MSG_GEN_VIEW_SCROLL_PAGE_LEFT
mov di, ds:[si] ;point to instance
add di, ds:[di].Vis_offset ;ds:[di] -- SpecInstance
mov cx, ds:[di].OLPI_pageWidth ;get current page width
clr dx ; in dx:cx
call DNegate
mov ax, cx ;now in bx:ax
mov bx, dx
clr dx ;no up-down scroll
clr cx
mov bp, SA_PAGE_BACK
call OLPaneScroll ;and scroll, no special flags
ret
OLPaneScrollPageLeft endm
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneScrollPageRight --
MSG_GEN_VIEW_SCROLL_PAGE_RIGHT for OLPaneClass
DESCRIPTION: Scrolls document right one page.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_GEN_VIEW_SCROLL_PAGE_RIGHT
RETURN: nothing
ax, cx, dx, bp -- destroyed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 12/11/89 Initial version
------------------------------------------------------------------------------@
OLPaneScrollPageRight method OLPaneClass, MSG_GEN_VIEW_SCROLL_PAGE_RIGHT
mov di, ds:[si] ;point to instance
add di, ds:[di].Vis_offset ;ds:[di] -- SpecInstance
mov cx, ds:[di].OLPI_pageWidth ;get current page width
clr dx ; in dx:cx
mov ax, cx ;now in bx:ax
mov bx, dx
clr dx ;no up-down scroll
clr cx
mov bp, SA_PAGE_FWD
call OLPaneScroll ;and scroll, no special flags
ret
OLPaneScrollPageRight endp
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneScrollTop --
MSG_GEN_VIEW_SCROLL_TOP for OLPaneClass
DESCRIPTION: Scrolls document to the top.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_GEN_VIEW_SCROLL_TOP.
RETURN: nothing
ax, cx, dx, bp -- destroyed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 12/11/89 Initial version
------------------------------------------------------------------------------@
OLPaneScrollTop method OLPaneClass, MSG_GEN_VIEW_SCROLL_TOP
clr ax
mov bx, DONT_SCROLL ;x position won't change
mov di, ds:[si]
add di, ds:[di].Gen_offset
mov dx, ds:[di].GVI_docBounds.RD_top.high
mov cx, ds:[di].GVI_docBounds.RD_top.low
mov bp, SA_TO_BEGINNING or mask OLPSF_VERTICAL or \
mask OLPSF_ABSOLUTE
GOTO OLPaneScrollAbsolute
OLPaneScrollTop endm
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneScrollBottom --
MSG_GEN_VIEW_SCROLL_BOTTOM for OLPaneClass
DESCRIPTION: Scrolls document to the bottom
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_GEN_VIEW_SCROLL_BOTTOM
RETURN: nothing
ax, cx, dx, bp -- destroyed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 12/11/89 Initial version
------------------------------------------------------------------------------@
OLPaneScrollBottom method OLPaneClass, MSG_GEN_VIEW_SCROLL_BOTTOM
clr ax
mov bx, DONT_SCROLL ;x position won't change
mov di, ds:[si]
add di, ds:[di].Gen_offset
mov dx, ds:[di].GVI_docBounds.RD_bottom.high
mov cx, ds:[di].GVI_docBounds.RD_bottom.low
; will get fixed up to account
; for window size later...
mov bp, SA_TO_END or mask OLPSF_VERTICAL or mask OLPSF_ABSOLUTE
GOTO OLPaneScrollAbsolute ;do it
OLPaneScrollBottom endm
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneScrollLeftEdge --
MSG_GEN_VIEW_SCROLL_LEFT_EDGE for OLPaneClass
DESCRIPTION: Scrolls document to left edge.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_GEN_VIEW_SCROLL_LEFT_EDGE
RETURN: nothing
ax, cx, dx, bp -- destroyed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 12/11/89 Initial version
------------------------------------------------------------------------------@
OLPaneScrollLeftEdge method OLPaneClass, MSG_GEN_VIEW_SCROLL_LEFT_EDGE
clr cx
mov dx, DONT_SCROLL ;y position won't change
mov di, ds:[si] ;point to instance
add di, ds:[di].Gen_offset ;ds:[di] -- GenInstance
mov bx, ds:[di].GVI_docBounds.RD_left.high
mov ax, ds:[di].GVI_docBounds.RD_left.low
mov bp, SA_TO_BEGINNING or mask OLPSF_ABSOLUTE
GOTO OLPaneScrollAbsolute ;do it
OLPaneScrollLeftEdge endm
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneScrollRightEdge --
MSG_GEN_VIEW_SCROLL_RIGHT_EDGE for OLPaneClass
DESCRIPTION: Scrolls document to the bottom
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_GEN_VIEW_SCROLL_RIGHT_EDGE
RETURN: nothing
ax, cx, dx, bp -- destroyed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 12/11/89 Initial version
------------------------------------------------------------------------------@
OLPaneScrollRightEdge method OLPaneClass, MSG_GEN_VIEW_SCROLL_RIGHT_EDGE
clr cx
mov dx, DONT_SCROLL ;y position won't change
mov di, ds:[si] ;point to instance
add di, ds:[di].Gen_offset ;ds:[di] -- GenInstance
mov bx, ds:[di].GVI_docBounds.RD_right.high
mov ax, ds:[di].GVI_docBounds.RD_right.low
mov bp, SA_TO_END or mask OLPSF_ABSOLUTE
GOTO OLPaneScrollAbsolute ;do it
OLPaneScrollRightEdge endm
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneScrollSetXOrigin --
MSG_GEN_VIEW_SCROLL_SET_X_ORIGIN for OLPaneClass
DESCRIPTION: Sets the x origin.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_GEN_VIEW_SCROLL_SET_X_ORIGIN
dx:cx - new x origin
RETURN: nothing
ax, cx, dx, bp -- destroyed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 2/25/91 Initial version
------------------------------------------------------------------------------@
OLPaneScrollSetXOrigin method OLPaneClass, \
MSG_GEN_VIEW_SCROLL_SET_X_ORIGIN
mov ax, cx ;pass x value in bx:ax
mov bx, dx
mov dx, DONT_SCROLL ;say no change in y direction
clr cx
mov bp, SA_DRAGGING or mask OLPSF_ABSOLUTE
GOTO OLPaneScrollAbsolute
OLPaneScrollSetXOrigin endm
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneScrollSetYOrigin --
MSG_GEN_VIEW_SCROLL_SET_Y_ORIGIN for OLPaneClass
DESCRIPTION: Sets the y origin.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_GEN_VIEW_SCROLL_SET_Y_ORIGIN
dx:cx - new y origin
RETURN: nothing
ax, cx, dx, bp -- destroyed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 2/25/91 Initial version
------------------------------------------------------------------------------@
OLPaneScrollSetYOrigin method OLPaneClass, \
MSG_GEN_VIEW_SCROLL_SET_Y_ORIGIN
mov bx, DONT_SCROLL ;say no change in x direction
clr ax
mov bp, SA_DRAGGING or mask OLPSF_ABSOLUTE
GOTO OLPaneScrollAbsolute
OLPaneScrollSetYOrigin endm
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneSetOrigin --
MSG_GEN_VIEW_SET_ORIGIN for OLPaneClass
DESCRIPTION: Sets the 16-bit origin of the pane.
PASS: *ds:si - instance data
es - segment of MetaClass
ss:bp - DocOrigin
RETURN: nothing
ax, cx, dx, bp -- destroyed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 7/17/89 Initial version
------------------------------------------------------------------------------@
OLPaneSetOrigin method OLPaneClass, MSG_GEN_VIEW_SET_ORIGIN
mov ax, ss:[bp].PD_x.low
mov bx, ss:[bp].PD_x.high
mov cx, ss:[bp].PD_y.low
mov dx, ss:[bp].PD_y.high
mov bp, SA_SCROLL or mask OLPSF_ABSOLUTE
FALL_THRU OLPaneScrollAbsolute
OLPaneSetOrigin endm
COMMENT @----------------------------------------------------------------------
ROUTINE: OLPaneScrollAbsolute
SYNOPSIS: Scrolls to a specified location.
CALLED BY: utility
PASS: *ds:si - instance data
es - segment of MetaClass
bx:ax - 16-bit x origin (or DONT_SCROLL if keeping old value)
dx:cx - 16-bit y origin (or DONT_SCROLL if keeping old value)
bp - OLPortScrollFlags
RETURN: nothing
ax, cx, dx, bp -- destroyed
DESTROYED: ax,bx,cx,dx,bp,es,si
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 3/27/90 Initial version
------------------------------------------------------------------------------@
OLPaneScrollAbsolute proc far
mov di, ds:[si] ;point to instance
add di, ds:[di].Gen_offset ;ds:[di] -- GenInstance
;
; If DONT_SCROLL has been passed, we keep the old scroll
; value in this direction. 10/19/90 cbh
;
cmp bx, DONT_SCROLL
jne 10$
tst ax
jnz 10$
mov bx, ds:[di].GVI_origin.PDF_x.DWF_int.high
mov ax, ds:[di].GVI_origin.PDF_x.DWF_int.low
tst ds:[di].GVI_origin.PDF_x.DWF_frac.high
jns 10$
add ax, 1 ;round result appropriately
adc bx, 0
10$:
cmp dx, DONT_SCROLL
jne 30$
tst cx
jnz 30$
mov dx, ds:[di].GVI_origin.PDF_y.DWF_int.high
mov cx, ds:[di].GVI_origin.PDF_y.DWF_int.low
tst ds:[di].GVI_origin.PDF_y.DWF_frac.high
jns 30$
add cx, 1 ;round result appropriately
adc dx, 0
30$:
call MakeRelativeToOrigin ;make values relative
call OLPaneScroll ;and scroll
ret
OLPaneScrollAbsolute endp
ViewUncommon ends
ActionObscure segment resource
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneSpecPan --
MSG_SPEC_VIEW_PAN for OLPaneClass
DESCRIPTION: Pans the subview. Basically a scroll with a different
normalize scroll type.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_SPEC_VIEW_PAN
cx, dx - scroll amount
RETURN: nothing
ax, cx, dx, bp -- destroyed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 3/30/90 Initial version
------------------------------------------------------------------------------@
OLPaneSpecPan method OLPaneClass, MSG_SPEC_VIEW_PAN
mov ax, cx
clr bx
tst ax
jns 5$
dec bx
5$:
mov cx, dx
clr dx
tst cx
jns 10$
dec dx
10$:
mov bp, SA_PAN ;panning
call OLPaneScroll ;and scroll, no special flags
ret
OLPaneSpecPan endm
ActionObscure ends
ViewScroll segment resource
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneSpecDragScroll --
MSG_SPEC_VIEW_DRAG_SCROLL for OLPaneClass
DESCRIPTION: Pans the subview. Basically a scroll with a different
normalize scroll type.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_SPEC_VIEW_DRAG_SCROLL
cx, dx - scroll amount
RETURN: nothing
ax, cx, dx, bp -- destroyed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 3/30/90 Initial version
------------------------------------------------------------------------------@
OLPaneSpecDragScroll method OLPaneClass, MSG_SPEC_VIEW_DRAG_SCROLL
mov ax, cx
clr bx
tst ax
jns 5$
dec bx
5$:
mov cx, dx
clr dx
tst cx
jns 10$
dec dx
10$:
mov bp, SA_DRAG_SCROLL
GOTO OLPaneScroll ;and scroll, no special flags
OLPaneSpecDragScroll endm
ViewScroll ends
ActionObscure segment resource
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneScrollMtd --
MSG_GEN_VIEW_SCROLL for OLPaneClass
DESCRIPTION: Scrolls a pane.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_GEN_VIEW_SCROLL
ss:bp - PointDWord: amount to scroll
RETURN: nothing
ax, cx, dx, bp -- destroyed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 7/17/89 Initial version
------------------------------------------------------------------------------@
OLPaneScrollMtd method OLPaneClass, MSG_GEN_VIEW_SCROLL
mov ax, ss:[bp].PD_x.low
mov bx, ss:[bp].PD_x.high
mov cx, ss:[bp].PD_y.low
mov dx, ss:[bp].PD_y.high
mov bp, SA_SCROLL ;generic scroll
call OLPaneScroll ;and scroll, no special flags
ret
OLPaneScrollMtd endm
ActionObscure ends
ViewScroll segment resource
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneScrollLow --
MSG_GEN_VIEW_SET_ORIGIN_LOW for OLPaneClass
DESCRIPTION: Low level scroll. Doesn't normalize or propagate to other
views.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_GEN_VIEW_SET_ORIGIN_LOW
ss:bp - PointDWord: absolute new origin
RETURN: nothing
ax, cx, dx, bp - destroyed
ALLOWED TO DESTROY:
bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
chris 10/16/91 Initial Version
------------------------------------------------------------------------------@
OLPaneScrollLow method dynamic OLPaneClass, MSG_GEN_VIEW_SET_ORIGIN_LOW
mov ax, ss:[bp].PD_x.low
mov bx, ss:[bp].PD_x.high
cmpdw bxax, GVSOL_NO_CHANGE ;substitute cur value in certain
jne 10$ ; circumstances
call GetXOrigin
10$:
mov cx, ss:[bp].PD_y.low
mov dx, ss:[bp].PD_y.high
cmpdw dxcx, GVSOL_NO_CHANGE
jne 20$
call GetYOrigin
20$:
call MakeRelativeToOrigin
mov bp, SA_SCROLL or mask OLPSF_DONT_SEND_TO_LINKS or \
mask OLPSF_DONT_NORMALIZE
GOTO OLPaneScroll ;and scroll
OLPaneScrollLow endm
COMMENT @----------------------------------------------------------------------
ROUTINE: KeepOriginInBounds
SYNOPSIS: Keeps origin within document's bounds. Also sets pane flags
if we're at the right or bottom edge.
CALLED BY: OLPaneScroll, SetNewOrigin
PASS: *ds:si -- pane handle
bx:ax -- x origin to check
dx:cx -- y origin to check
RETURN: bx:ax -- possibly updated x origin
dx:cx -- possibly updated y origin
di -- right/bottom flags to "or" in, if caller wants to
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 3/27/90 Initial version
------------------------------------------------------------------------------@
KeepOriginInBounds proc near uses bp
;
; Do vertical dimension first.
;
.enter
push bx
mov bx, KVIB_VERTICAL ;pass vertical flag
call KeepValueInBounds ;keep y origin in bounds
pop bx
push di ;save right/bot flag returned
;
; Now do horizontal.
;
xchg ax, cx ;y origin in bx:ax
xchg bx, dx ;x origin in dx:cx
push bx
clr bx ;pass horizontal flag now
call KeepValueInBounds ;keep x origin in bounds
pop bx
xchg ax, cx ;y origin back in dx:cx
xchg bx, dx ;x origin back in bx:ax
pop bp ;restore flag from vertical
or di, bp ;or into di
EC < test di, not (mask OLPF_AT_RIGHT_EDGE or mask OLPF_AT_BOTTOM_EDGE) >
EC < ERROR_NZ OL_VIEW_KEEP_ORIGIN_IN_BOUNDS_BAD_FLAGS_RETURNED >
.leave
ret
KeepOriginInBounds endp
COMMENT @----------------------------------------------------------------------
ROUTINE: KeepValueInBounds
SYNOPSIS: Keeps an x or y value in bounds.
CALLED BY: OLPaneKeepOriginInBounds
PASS: *ds:si -- pane handle
dx:cx -- value
bx -- 0 if value is horizontal,
KVIB_VERTICAL if value is vertical
RETURN: cx:dx -- value, possibly update to keep in bounds
di -- OLPaneFlags flags to "or" in (top/bottom flags)
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 3/ 5/91 Initial version
------------------------------------------------------------------------------@
KVIB_VERTICAL equ 2
CheckHack <(offset OLPI_pageHeight - offset OLPI_pageWidth) eq KVIB_VERTICAL>
CheckHack <(offset GVI_docBounds.RD_top - offset GVI_docBounds.RD_left) \
eq (KVIB_VERTICAL * 2)>
KeepValueInBounds proc near
uses ax, bx, bp
clr di ;no flags set yet
.enter
EC < cmp bx, KVIB_VERTICAL >
EC < ERROR_A OL_VIEW_BAD_FLAG_PASSED_TO_KEEP_VALUE_IN_BOUNDS >
push bx ;save our vertical flag
mov bp, ds:[si] ;point to instance
add bp, ds:[bp].Vis_offset ;ds:[di] -- SpecInstance
add bp, bx
mov ax, ds:[bp].OLPI_pageWidth ;get current page dimension
neg ax ;make size negative
shl bx, 1 ;multiply vertical flag by 2
mov bp, ds:[si] ;point to SpecInstance
add bp, ds:[bp].Gen_offset ;point to generic pane
add bp, bx ;add vertical offset, if any
mov bx, 0ffffh ;sign extend ax to dword bx:ax
;
; Subtract window height from maximum before checking it with the
; value passed. If the document is too small to fit onscreen, we'll
; return the minimum.
;
add ax, ds:[bp].GVI_docBounds.RD_right.low
adc bx, ds:[bp].GVI_docBounds.RD_right.high
cmp bx, ds:[bp].GVI_docBounds.RD_left.high
jl returnMinAndExit ;high word <> minimum, exit
jg 10$
cmp ax, ds:[bp].GVI_docBounds.RD_left.low
jbe returnMinAndExit ;yes, return min and exit
10$:
xchg ax, cx ;max now in dx:cx,
xchg bx, dx ;value now in bx:ax
cmp bx, ds:[bp].GVI_docBounds.RD_left.high
jg checkMax
jl returnMinAndExit
cmp ax, ds:[bp].GVI_docBounds.RD_left.low
jae checkMax ;everything cool, go check max
returnMinAndExit:
mov bx, ds:[bp].GVI_docBounds.RD_left.high
mov ax, ds:[bp].GVI_docBounds.RD_left.low
jmp short done ;return minimum, in bx:ax
checkMax:
cmp bx, dx ;see if past maximum - pageWidth
jl done
jg returnMax
cmp ax, cx
jb done ;not over max, we're done
returnMax:
mov bx, dx ;return maximum - page width
mov ax, cx
mov di, mask OLPF_AT_RIGHT_EDGE ;assume setting horizontal flag
pop dx ;restore vertical flag
tst dl ;doing horizontal?
jz doneFlagPopped ;yes, done
mov di, mask OLPF_AT_BOTTOM_EDGE ;set vertical equivalent
jmp short doneFlagPopped ;exit, (bx already popped)
done:
pop dx ;unload vertical flag
doneFlagPopped:
mov cx, ax ;return in dx:cx
mov dx, bx
.leave
ret
KeepValueInBounds endp
COMMENT @----------------------------------------------------------------------
ROUTINE: StoreNewOrigin
SYNOPSIS: Stores a new origin.
CALLED BY: OLPaneScroll, SetNewOrigin
PASS: *ds:si -- pane
bx:ax -- x origin to store
dx:cx -- y origin to store
RETURN: nothing
DESTROYED: di
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 3/ 6/91 Initial version
------------------------------------------------------------------------------@
StoreNewOrigin proc near
mov di, ds:[si] ;point to instance
add di, ds:[di].Gen_offset ;ds:[di] -- GenInstance
mov ds:[di].GVI_origin.PDF_x.DWF_int.low, ax ;store new abs values
mov ds:[di].GVI_origin.PDF_x.DWF_int.high, bx
mov ds:[di].GVI_origin.PDF_y.DWF_int.low, cx
mov ds:[di].GVI_origin.PDF_y.DWF_int.high, dx
ret
StoreNewOrigin endp
COMMENT @----------------------------------------------------------------------
ROUTINE: SendNewOriginToOD
SYNOPSIS: Sends new origin to OD.
CALLED BY: OLPaneScroll
PASS: *ds:si -- pane
bx:ax -- x origin (the integer portion only)
dx:cx -- y origin (the integer portion only)
RETURN: nothing
DESTROYED: di
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 3/25/91 Initial version
------------------------------------------------------------------------------@
SendNewOriginToOD proc far uses bp, cx, dx, ax, bx
.enter
;
; Round the integer values based on the fraction, in an attempt to
; make things better. They've already been set if they changed during
; a WinScroll. -cbh 3/30/93
;
mov di, ds:[si]
add di, ds:[di].Gen_offset
tst ds:[di].GVI_origin.PDF_x.DWF_frac
jns 10$
incdw bxax
10$:
tst ds:[di].GVI_origin.PDF_y.DWF_frac
jns 20$
incdw dxcx
20$:
sub sp, size OriginChangedParams ;tell OD our origin changed
mov bp, sp
mov ss:[bp].OCP_origin.PD_x.low, ax ;origin in ss:bp
mov ss:[bp].OCP_origin.PD_x.high, bx
mov ss:[bp].OCP_origin.PD_y.low, cx
mov ss:[bp].OCP_origin.PD_y.high, dx
mov di, ds:[si]
add di, ds:[di].Vis_offset
mov di, ds:[di].OLPI_window
mov ss:[bp].OCP_window, di
mov dx, size OriginChangedParams
mov di, mask MF_STACK or mask MF_FORCE_QUEUE
; mov di, mask MF_STACK
mov ax, MSG_META_CONTENT_VIEW_ORIGIN_CHANGED
call ToAppCommon
add sp, size OriginChangedParams
.leave
ret
SendNewOriginToOD endp
COMMENT @----------------------------------------------------------------------
ROUTINE: MakeRelativeToOrigin
SYNOPSIS: Makes the value passed in relative to the current origin
CALLED BY: OLPaneScroll
PASS: *ds:si -- pane
bx:ax -- proposed x origin
dx:cx -- proposed y origin
RETURN: bx:ax -- relative x change from current origin
dx:cx -- relative y change from current origin
DESTROYED: di
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 3/ 5/91 Initial version
------------------------------------------------------------------------------@
MakeRelativeToOrigin proc far
mov di, ds:[si]
add di, ds:[di].Gen_offset
; want to round appropriately.
tst ds:[di].GVI_origin.PDF_x.DWF_frac.high
jns subX
decdw bxax
subX:
sub ax, ds:[di].GVI_origin.PDF_x.DWF_int.low ;use rel values
sbb bx, ds:[di].GVI_origin.PDF_x.DWF_int.high
tst ds:[di].GVI_origin.PDF_y.DWF_frac.high
jns subY
decdw dxcx
subY:
sub cx, ds:[di].GVI_origin.PDF_y.DWF_int.low
sbb dx, ds:[di].GVI_origin.PDF_y.DWF_int.high
ret
MakeRelativeToOrigin endp
COMMENT @----------------------------------------------------------------------
ROUTINE: MakeRelativeWWFixed
SYNOPSIS: Makes the value passed in relative to the current origin
CALLED BY: OLPaneScroll
PASS: *ds:si -- pane
bx:ax -- proposed x origin
dx:cx -- proposed y origin
RETURN: dx.cx -- neg relative x change from current origin (WWFixed)
bx.ax -- neg relative y change from current origin (WWFixed)
DESTROYED: di
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
NOTE: This routine assumes that the relative scroll will be
less than 64K
REVISION HISTORY:
Name Date Description
---- ---- -----------
Jim 8/ 5/91 Initial version
------------------------------------------------------------------------------@
MakeRelativeWWFixed proc near
uses di
.enter
mov dx, ax ; setup WWFixed values
mov bx, cx
clr ax ; clear fractions
clr cx
mov di, ds:[si]
add di, ds:[di].Gen_offset
; the math is easy now...
sub cx, ds:[di].GVI_origin.PDF_x.DWF_frac
sbb dx, ds:[di].GVI_origin.PDF_x.DWF_int.low ;use rel values
sub ax, ds:[di].GVI_origin.PDF_y.DWF_frac
sbb bx, ds:[di].GVI_origin.PDF_y.DWF_int.low
; negate the result -- it is only being passed to WinScroll
; and WinApplyTranslation
neg cx ; NegateFixed dx, cx
not dx
cmc
adc dx, 0
neg ax ; NegateFixed bx, ax
not bx
cmc
adc bx, 0
.leave
ret
MakeRelativeWWFixed endp
COMMENT @----------------------------------------------------------------------
ROUTINE: MakeScrollAmountAbsolute
SYNOPSIS: Get an absolute scroll amount.
CALLED BY: OLPortScroll
PASS: *ds:si -- pane
bx:ax -- relative x amount
dx:cx -- relative y amount
RETURN: bx:ax -- absolute x value, based on current origin
dx:cx -- absolute y value, based on current origin
DESTROYED: di
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 3/ 5/91 Initial version
------------------------------------------------------------------------------@
MakeScrollAmountAbsolute proc near
mov di, ds:[si] ;point to instance
add di, ds:[di].Gen_offset ;ds:[di] -- GenInstance
; we want to round appropriately
tst ds:[di].GVI_origin.PDF_x.DWF_frac.high
jns addX
add ax, 1 ;fixed 10/21/91 cbh
adc bx, 0
addX:
add ax, ds:[di].GVI_origin.PDF_x.DWF_int.low ;make absolute
adc bx, ds:[di].GVI_origin.PDF_x.DWF_int.high
tst ds:[di].GVI_origin.PDF_y.DWF_frac.high
jns addY
add cx, 1 ;fixed 10/21/91 cbh
adc dx, 0
addY:
add cx, ds:[di].GVI_origin.PDF_y.DWF_int.low
adc dx, ds:[di].GVI_origin.PDF_y.DWF_int.high
ret
MakeScrollAmountAbsolute endp
COMMENT @----------------------------------------------------------------------
ROUTINE: SendScrollTrackingMethod
SYNOPSIS: Sends out scroll tracking method for the pane.
CALLED BY: OLPaneScrollIntoPane
PASS: *ds:si -- pane handle
bx:ax -- suggested amount to scroll horizontally
dx:cx -- suggested amount to scroll vertically
bp -- OLPortScrollFlags
RETURN: nothing
DESTROYED: ax, bx, cx, dx, di, bp
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 3/13/90 Initial version
------------------------------------------------------------------------------@
SendTrackScrollingMethod proc near
mov di, ds:[si]
add di, ds:[di].Gen_offset
tst ds:[di].GVI_content.handle ;is there a content?
LONG jz exit ;no, just exit
xchg ax, bp ;flags in ax, x scroll in bp
mov ah, al ;put lower 8 bits in ah
and al, mask OLPSF_SCROLL_ACTION ;scroll action in al
and ah, mask SF_VERTICAL or mask SF_ABSOLUTE or \
mask SF_DOC_SIZE_CHANGE ;scroll flags in ah
call OLPaneSuspendUpdate ;suspend window drawing...
LONG jnc exit ;couldn't suspend, get out
; (couldn't-flag set)
mov di, 800
call ThreadBorrowStackSpace
push di
mov di, ds:[si] ;point to instance
add di, ds:[di].Vis_offset ;ds:[di] -- SpecInstance
inc ds:[di].OLPI_normalizeCount ;one more normalize happening
mov di, ax ;flags in di
mov ax, bp ;x scroll back in bp
sub sp, size TrackScrollingParams ;set up args on stack
mov bp, sp ;bp points to bottom of struct
mov ss:[bp].TSP_change.PD_x.low, ax
mov ss:[bp].TSP_change.PD_x.high, bx
mov ss:[bp].TSP_change.PD_y.low, cx
mov ss:[bp].TSP_change.PD_y.high, dx
mov ax, di ;flags in ax
mov ss:[bp].TSP_action, al ;store action
mov ss:[bp].TSP_flags, ah ;store flags
;
; Assume we want to pass this as destroyed.
;
EC < mov ss:[bp].TSP_newOrigin.PD_x.high, 8000h >
EC < mov ss:[bp].TSP_newOrigin.PD_y.high, 8000h >
;
; If this is an absolute scroll, we'll set up the newOrigin with the
; correct args.
;
test ss:[bp].TSP_flags, mask SF_ABSOLUTE
jz 10$ ;not absolute, we're set
segmov es, ss
call SetupOldOrigin ;set up old origin from instdata
call SetupNewOrigin ;set up new origin from change
EC < mov ss:[bp].TSP_change.PD_x.high, 8000h ;not valid for abs scr >
EC < mov ss:[bp].TSP_change.PD_y.high, 8000h >
10$:
;
; Set up some garbage, as some of these are returned invalid and not
; set until we reach the application thread and call GenSetupNormalize-
; Args.
;
EC < mov ss:[bp].TSP_oldOrigin.PD_x.high, 8000h >
EC < mov ss:[bp].TSP_oldOrigin.PD_y.high, 8000h >
EC < mov ss:[bp].TSP_viewWidth, 8000h >
EC < mov ss:[bp].TSP_viewHeight, 8000h >
;
; Set this flag now so no more select-scrolls will be started while
; we're off normalizing the position.
;
mov di, ds:[si]
add di, ds:[di].Vis_offset ; get ptr to SpecificInstance
or ds:[di].OLPI_optFlags, mask OLPOF_DRAG_SCROLL_PENDING
;
; Set the kbd char flag appropriately. 6/15/94 cbh
;
test ds:[di].OLPI_optFlags, mask OLPOF_KBD_CHAR_SCROLL
jz 20$
or ss:[bp].TSP_flags, mask SF_KBD_RELATED_SCROLL
20$:
mov cx, ds:[LMBH_handle] ;store block handle
mov ss:[bp].TSP_caller.handle, cx
mov ss:[bp].TSP_caller.chunk, si
mov ax, MSG_META_CONTENT_TRACK_SCROLLING
;send to ourselves, which by
call ObjCallInstanceNoLock ; default will go to OD...
add sp, size TrackScrollingParams ;unload arguments
pop di
call ThreadReturnStackSpace
exit:
ret
SendTrackScrollingMethod endp
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneSetupTrackingArgs --
MSG_GEN_VIEW_SETUP_TRACKING_ARGS for OLPaneClass
DESCRIPTION: Sets up bounds in TrackScrollingParams. Called by a
MSG_META_CONTENT_TRACK_SCROLLING handler to fill out missing arguments.
Also gets the value in bounds, for the hell of it.
PASS: *ds:si - instance data
cx:dx - TrackScrollingParams
RETURN: cx:[bp].TSP_oldOrigin -- updated
cx:[bp].TSP_viewWidth -- updated
cx:[bp].TSP_viewHeight -- updated
ax, dx -- destroyed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 3/26/90 Initial version
------------------------------------------------------------------------------@
OLPaneSetupTrackingArgs method dynamic OLPaneClass,
MSG_GEN_VIEW_SETUP_TRACKING_ARGS
mov bp, dx
mov es, cx ;es:bp points to track scrolling
mov ax, ds:[di].OLPI_pageWidth ;get current page width
mov es:[bp].TSP_viewWidth, ax
mov ax, ds:[di].OLPI_pageHeight ;get current page height
mov es:[bp].TSP_viewHeight, ax
call SetupOldOrigin ;set up based on instance data
test es:[bp].TSP_flags, mask SF_ABSOLUTE
jnz 10$ ; absolute, new origin set up
call SetupNewOrigin ; else set up based on change
10$:
call GetNewOrigin ; new origin in bx.ax, dx.cx
push bp
call KeepOriginInBounds ;do bounds checking
pop bp
mov es:[bp].TSP_newOrigin.PD_x.low, ax
mov es:[bp].TSP_newOrigin.PD_x.high, bx
mov es:[bp].TSP_newOrigin.PD_y.low, cx
mov es:[bp].TSP_newOrigin.PD_y.high, dx
mov di, ds:[si]
add di, ds:[di].Gen_offset
test ds:[di].GVI_attrs, mask GVA_SCALE_TO_FIT
jz noScaleToFit
ornf es:[bp].TSP_flags, mask SF_SCALE_TO_FIT
noScaleToFit:
;
; Update change based on the keeping in bounds.
;
call MakeRelativeToOldOrigin
ornf es:[bp].TSP_flags, mask SF_SETUP_HAPPENED
EC < Destroy ax, dx ;destroy things >
ret
OLPaneSetupTrackingArgs endm
COMMENT @----------------------------------------------------------------------
ROUTINE: GetNewOrigin
SYNOPSIS: Gets new origin.
CALLED BY: OLPaneSetupTrackingArgs, OLPaneTrackingComplete
PASS: es:bp -- TrackScrollingParams
RETURN: bx.ax -- new x origin from args
dx.cx -- new y origin from args
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 3/23/92 Initial version
------------------------------------------------------------------------------@
GetNewOrigin proc near
mov ax, es:[bp].TSP_newOrigin.PD_x.low
mov bx, es:[bp].TSP_newOrigin.PD_x.high
mov cx, es:[bp].TSP_newOrigin.PD_y.low
mov dx, es:[bp].TSP_newOrigin.PD_y.high
ret
GetNewOrigin endp
COMMENT @----------------------------------------------------------------------
ROUTINE: MakeRelativeToOldOrigin
SYNOPSIS: Makes scroll values relative to the oldOrigin.
CALLED BY: OLPaneSetupTrackingArgs, OLPaneReturnTrackingArgs
PASS: es:bp -- TrackScrollingParams
cx.dx -- y origin to make relative to old origin
bx.ax -- x origin to make relative to old origin
RETURN: es:[bp].TSP_change -- updated
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 3/23/92 Initial version
------------------------------------------------------------------------------@
MakeRelativeToOldOrigin proc near
sub cx, es:[bp].TSP_oldOrigin.PD_y.low
mov es:[bp].TSP_change.PD_y.low, cx
sbb dx, es:[bp].TSP_oldOrigin.PD_y.high
mov es:[bp].TSP_change.PD_y.high, dx
sub ax, es:[bp].TSP_oldOrigin.PD_x.low
mov es:[bp].TSP_change.PD_x.low, ax
sbb bx, es:[bp].TSP_oldOrigin.PD_x.high
mov es:[bp].TSP_change.PD_x.high, bx
ret
MakeRelativeToOldOrigin endp
COMMENT @----------------------------------------------------------------------
ROUTINE: SetupOldOrigin
SYNOPSIS: Sets up old and new origins, looking at instance data and
suggested change.
CALLED BY: OLPaneGetInfo
PASS: *ds:si -- view
es:[bp] -- TrackScrollingParams
RETURN: TrackScrollingParams updated
bx:ax -- old x origin
dx:cx -- old y origin
DESTROYED: di
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 4/24/91 Initial version
------------------------------------------------------------------------------@
SetupOldOrigin proc near
call GetXOrigin ;in bx:ax
call GetYOrigin ;in dx:cx
mov es:[bp].TSP_oldOrigin.PD_x.low, ax
mov es:[bp].TSP_oldOrigin.PD_x.high, bx
mov es:[bp].TSP_oldOrigin.PD_y.low, cx
mov es:[bp].TSP_oldOrigin.PD_y.high, dx
ret
SetupOldOrigin endp
COMMENT @----------------------------------------------------------------------
ROUTINE: SetupNewOrigin
SYNOPSIS: Sets up new origin based on old origin and change.
CALLED BY: OLPaneGetInfo, SendTrackScrollingMethod
PASS: ss:bp -- TrackScrollingParams
bx:ax -- old x origin
dx:cx -- old y origin
RETURN: ss:[bp].TSP_newOrigin -- updated
bx:ax -- new x origin
dx:cx -- new y origin
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 4/24/91 Initial version
------------------------------------------------------------------------------@
SetupNewOrigin proc near
add cx, es:[bp].TSP_change.PD_y.low
mov es:[bp].TSP_newOrigin.PD_y.low, cx
adc dx, es:[bp].TSP_change.PD_y.high
mov es:[bp].TSP_newOrigin.PD_y.high, dx
add ax, es:[bp].TSP_change.PD_x.low
mov es:[bp].TSP_newOrigin.PD_x.low, ax
adc bx, es:[bp].TSP_change.PD_x.high
mov es:[bp].TSP_newOrigin.PD_x.high, bx
ret
SetupNewOrigin endp
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneNormalizeComplete --
MSG_GEN_VIEW_TRACKING_COMPLETE for OLPaneClass
DESCRIPTION: Finishes normalizes for initial position and scroll into
subview.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_GEN_VIEW_TRACKING_COMPLETE
ss:bp - TrackScrollingParams
dx - size TrackScrollingParams
RETURN: nothing
ax, cx, dx, bp -- destroyed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 3/13/90 Initial version
------------------------------------------------------------------------------@
OLPaneTrackingComplete method OLPaneClass, MSG_GEN_VIEW_TRACKING_COMPLETE
EC < test ss:[bp].TSP_flags, mask SF_EC_SETUP_CALLED >
EC < ERROR_Z OL_VIEW_TRACK_SCROLLING_HANDLER_DID_NOT_CALL_SETUP >
mov di, ds:[si] ;point to instance
add di, ds:[di].Vis_offset ;ds:[di] -- SpecInstance
tst ds:[di].OLPI_normalizeCount ;if currently zero, we'll assume
jz done ; this normalize complete is
; from a previous incarnation.
dec ds:[di].OLPI_normalizeCount ;else decrement the counter
call OLPaneUnSuspendUpdate ;suspend redraws
;
; Setup did not occur (probably the View hadn't been built or something)
; so we'll throw away the message. -cbh 2/18/93
;
test ss:[bp].TSP_flags, mask SF_SETUP_HAPPENED
jz done
;
; If an absolute scroll, we'll use the newOrigin passed back, rather
; than the change, because of the problem of consecutive absolute
; scrolls that might come back together, the first one screwing up
; the second one. (Imagine two vertical scrolls from 60 to 45, both
; get tracked by the content consecutively, both returning a change of
; -15 because the oldOrigin doesn't change until the first one
; completes.) -cbh 3/23/92
;
segmov es, ss
test es:[bp].TSP_flags, mask SF_ABSOLUTE
jz 10$ ; relative, just use change
call SetupOldOrigin ; old origin <- doc bounds
call GetNewOrigin ; new origin in bx.ax, dx.cx
call MakeRelativeToOldOrigin ; make relative
10$:
mov ax, ss:[bp].TSP_change.PD_x.low ;get relative scroll amount
mov bx, ss:[bp].TSP_change.PD_x.high
mov cx, ss:[bp].TSP_change.PD_y.low
mov dx, ss:[bp].TSP_change.PD_y.high
20$:
test ss:[bp].TSP_flags, mask SF_DOC_SIZE_CHANGE
push bp
;
; For some reason we always want to update the scrollbars. I know that
; in the case of SetDocSize, the scrollbar will need to be redrawn
; even though the document offset doesn't change because it probably
; didn't redrawn when the MSG_SET_DOC_BOUNDS was sent because the
; offsets were made invalid. Right. We also don't want to normalize,
; so we don't pass a scroll type.
;
mov bp, mask OLPSF_ALWAYS_UPDATE_SCROLLBARS
call OLPaneScroll ;scroll 'em
pop bp
test ss:[bp].TSP_flags, mask SF_DOC_SIZE_CHANGE
jz afterDocSize ;not changing doc size, branch
push bp
call OLPaneFinishSetDocSize ;else finish the job
pop bp
afterDocSize:
; Finally, check to see if this was the INITIAL_POS method that we've
; been waiting for. If so, UnSuspendUpdate the window.
;
cmp ss:[bp].TSP_action, SA_INITIAL_POS
jne done
mov ax, MSG_SPEC_VIEW_UNSUSPEND_OPENED_WIN
call ScrollPaneGetWindowID
mov bx, ds:[LMBH_handle]
mov cx, mask MF_FORCE_QUEUE ; Send via queue to
; force same
xchg cx, di
call ObjMessage ; ordering with content
; messages whether content
; run by UI or not (they are
; also sent FORCE_QUEUE)
; 7/15/92 -cbh
done:
EC < Destroy ax, cx, dx, bp ;destroy things >
ret
OLPaneTrackingComplete endm
ScrollPaneGetWindowID proc near
mov di, ds:[si] ;can be called directly
add di, ds:[di].Vis_offset
mov di, ds:[di].OLPI_windowID
ret
ScrollPaneGetWindowID endp
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneTrackScrolling --
MSG_META_CONTENT_TRACK_SCROLLING for OLPaneClass
DESCRIPTION: Track the pane scrolling.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_META_CONTENT_TRACK_SCROLLING
ss:bp - TrackScrollingParams, with
suggested scroll values in TSP_change
dx - size TrackScrollingParams
cx - scrollbar handle
RETURN: nothing
ax, cx, dx, bp -- destroyed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 3/13/90 Initial version
------------------------------------------------------------------------------@
OLPaneTrackScrolling method OLPaneClass, MSG_META_CONTENT_TRACK_SCROLLING
;
; Even if we're not going between different threads, we will force the
; call to the queue, since we're doing that elsewhere.
;
mov dx, size TrackScrollingParams ;pass size of struct in dx
mov ax, MSG_META_CONTENT_TRACK_SCROLLING
; mov di, mask MF_STACK or mask MF_FORCE_QUEUE
mov di, mask MF_STACK
call ToAppCommon
ret
OLPaneTrackScrolling endm
ViewScroll ends
InstanceObscure segment resource
COMMENT @----------------------------------------------------------------------
METHOD: OLPaneSetDocBounds --
MSG_GEN_VIEW_SET_DRAG_BOUNDS for OLPaneClass
DESCRIPTION: Sets new document bounds. Generic handler will set instance
data, then pass on the specific UI for processing.
PASS: *ds:si - instance data
es - segment of MetaClass
ax - MSG_GEN_VIEW_SET_DRAG_BOUNDS
ss:bp - RectDWord: new scrollable bounds
RETURN: nothing
ax, cx, dx, bp -- trashed
ALLOWED TO DESTROY: bx, si, di, ds, es
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 3/15/91 Initial version
------------------------------------------------------------------------------@
OLPaneSetDragBounds method OLPaneClass, MSG_GEN_VIEW_SET_DRAG_BOUNDS
if ERROR_CHECK
push cx
mov cx, ss:[bp].RD_left.high
cmp cx, ss:[bp].RD_right.high
ERROR_G OL_VIEW_BAD_DRAG_BOUNDS
jl EC10
mov cx, ss:[bp].RD_left.low
cmp cx, ss:[bp].RD_right.low
ERROR_A OL_VIEW_BAD_DRAG_BOUNDS
EC10:
mov cx, ss:[bp].RD_top.high
cmp cx, ss:[bp].RD_bottom.high
ERROR_G OL_VIEW_BAD_DRAG_BOUNDS
jl EC20
mov cx, ss:[bp].RD_top.low
cmp cx, ss:[bp].RD_bottom.low
ERROR_A OL_VIEW_BAD_DRAG_BOUNDS
EC20:
pop cx
endif
clr bx ;keep offset into instance data
clr cx ;keep a bounds flag
10$:
mov ax, {word} ss:[bp] ;store bounds word
tst ax ;word is zero, branch
jz 15$
inc cx ;else signal that we have bounds
15$:
mov {word} ds:[di].OLPI_dragBounds, ax
20$:
add bx, 2 ;bump counter
add bp, 2 ;and stack buffer pointer
add di, 2 ;and instance data pointer
cmp bx, size RectDWord ;done everything?
jb 10$ ;no, loop
mov di, ds:[si]
add di, ds:[di].Vis_offset
and ds:[di].OLPI_optFlags, not mask OLPOF_LIMIT_DRAG_SCROLLING
tst cx ;see if any bounds set
jz exit ;nope, done
or ds:[di].OLPI_optFlags, mask OLPOF_LIMIT_DRAG_SCROLLING
exit:
Destroy ax, cx, dx, bp ;trash things
ret
OLPaneSetDragBounds endm
InstanceObscure ends
Resident segment resource
COMMENT @----------------------------------------------------------------------
ROUTINE: GetXOrigin, GetYOrigin
SYNOPSIS: Returns x or y origin.
CALLED BY: utility
PASS: *ds:si -- pane
RETURN: bx:ax -- current x origin (for GetXOrigin)
dx:cx -- current y origin (for GetYOrigin)
DESTROYED: di
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Chris 3/ 5/91 Initial version
------------------------------------------------------------------------------@
GetXOrigin proc far
mov di, ds:[si]
add di, ds:[di].Gen_offset
mov ax, ds:[di].GVI_origin.PDF_x.DWF_int.low
mov bx, ds:[di].GVI_origin.PDF_x.DWF_int.high
; round integer result appropriately
tst ds:[di].GVI_origin.PDF_x.DWF_frac.high
jns done
add ax, 1
adc bx, 0
done:
ret
GetXOrigin endp
GetYOrigin proc far
mov di, ds:[si]
add di, ds:[di].Gen_offset
mov cx, ds:[di].GVI_origin.PDF_y.DWF_int.low
mov dx, ds:[di].GVI_origin.PDF_y.DWF_int.high
; round integer result appropriately
tst ds:[di].GVI_origin.PDF_y.DWF_frac.high
jns done
add cx, 1
adc dx, 0
done:
ret
GetYOrigin endp
Resident ends
| 25.561151 | 81 | 0.619235 |
bdb37c47d49c732337bedb2ce97b196c2e496d54 | 482 | asm | Assembly | oeis/085/A085376.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/085/A085376.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/085/A085376.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A085376: Ratio-dependent insertion sequence I(0.36704) (see the link below).
; Submitted by Christian Krause
; 1,3,11,30,109,297,1079,2940,10681,29103,105731,288090,1046629,2851797,10360559,28229880,102558961,279447003,1015229051,2766240150,10049731549,27382954497,99482086439,271063304820,984771132841
mov $2,$0
mov $3,$0
lpb $3
mov $0,$2
sub $3,1
sub $0,$3
seq $0,129445 ; Numbers k > 0 such that k^2 is a centered triangular number.
add $1,$0
lpe
mov $0,$1
add $0,1
| 30.125 | 193 | 0.738589 |
9711daba373566b454c0a349fb2f0f826c0134fe | 667 | asm | Assembly | oeis/084/A084509.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/084/A084509.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/084/A084509.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A084509: Number of ground-state 3-ball juggling sequences of period n.
; Submitted by Jon Maiga
; 1,1,2,6,24,96,384,1536,6144,24576,98304,393216,1572864,6291456,25165824,100663296,402653184,1610612736,6442450944,25769803776,103079215104,412316860416,1649267441664,6597069766656,26388279066624,105553116266496,422212465065984,1688849860263936,6755399441055744,27021597764222976,108086391056891904,432345564227567616,1729382256910270464,6917529027641081856,27670116110564327424,110680464442257309696,442721857769029238784,1770887431076116955136,7083549724304467820544,28334198897217871282176
sub $0,2
mov $1,4
pow $1,$0
mul $1,6
sub $1,2
div $1,4
mov $0,$1
add $0,1
| 51.307692 | 493 | 0.851574 |
b296189e602c5dacf0b58b2b66f79ea48f3793b4 | 119,325 | asm | Assembly | src/presets/pkrd_data.asm | tewtal/sm_practice_hack | 2e435012a4259035cb69b0d3bc90a221cb5de37d | [
"Unlicense"
] | 15 | 2019-02-23T20:38:49.000Z | 2022-02-18T01:14:04.000Z | src/presets/pkrd_data.asm | tewtal/sm_practice_hack | 2e435012a4259035cb69b0d3bc90a221cb5de37d | [
"Unlicense"
] | 50 | 2019-03-06T22:02:17.000Z | 2022-03-31T05:25:54.000Z | src/presets/pkrd_data.asm | tewtal/sm_practice_hack | 2e435012a4259035cb69b0d3bc90a221cb5de37d | [
"Unlicense"
] | 20 | 2019-02-23T20:40:53.000Z | 2022-02-22T17:44:45.000Z |
preset_pkrd_crateria_ship:
dw #$0000
dl $7E078B : db $02 : dw $0000 ; Elevator Index
dl $7E078D : db $02 : dw $88FE ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $91F8 ; MDB
dl $7E079F : db $02 : dw $0000 ; Region
dl $7E07C3 : db $02 : dw $C629 ; GFX Pointers
dl $7E07C5 : db $02 : dw $7CBA ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2AD ; GFX Pointers
dl $7E07F3 : db $02 : dw $0006 ; Music Bank
dl $7E07F5 : db $02 : dw $0005 ; Music Track
dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0400 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $03D0 ; Screen Y position in pixels
dl $7E093F : db $02 : dw $0000 ; Ceres escape flag
dl $7E09A2 : db $02 : dw $0000 ; Equipped Items
dl $7E09A4 : db $02 : dw $0000 ; Collected Items
dl $7E09A6 : db $02 : dw $0000 ; Beams
dl $7E09A8 : db $02 : dw $0000 ; Beams
dl $7E09C0 : db $02 : dw $0000 ; Manual/Auto reserve tank
dl $7E09C2 : db $02 : dw $0063 ; Health
dl $7E09C4 : db $02 : dw $0063 ; Max helath
dl $7E09C6 : db $02 : dw $0000 ; Missiles
dl $7E09C8 : db $02 : dw $0000 ; Max missiles
dl $7E09CA : db $02 : dw $0000 ; Supers
dl $7E09CC : db $02 : dw $0000 ; Max supers
dl $7E09CE : db $02 : dw $0000 ; Pbs
dl $7E09D0 : db $02 : dw $0000 ; Max pbs
dl $7E09D2 : db $02 : dw $0000 ; Currently selected item
dl $7E09D4 : db $02 : dw $0000 ; Max reserves
dl $7E09D6 : db $02 : dw $0000 ; Reserves
dl $7E0A1C : db $02 : dw $0000 ; Samus position/state
dl $7E0A1E : db $02 : dw $0000 ; More position/state
dl $7E0A68 : db $02 : dw $0000 ; Flash suit
dl $7E0A76 : db $02 : dw $0000 ; Hyper beam
dl $7E0AF6 : db $02 : dw $0481 ; Samus X
dl $7E0AFA : db $02 : dw $0440 ; Samus Y
dl $7E0B3F : db $02 : dw $0000 ; Blue suit
dl $7ED7C0 : db $02 : dw $0000 ; SRAM copy
dl $7ED7C2 : db $02 : dw $0000 ; SRAM copy
dl $7ED7C4 : db $02 : dw $0000 ; SRAM copy
dl $7ED7C6 : db $02 : dw $0000 ; SRAM copy
dl $7ED7C8 : db $02 : dw $0800 ; SRAM copy
dl $7ED7CA : db $02 : dw $0400 ; SRAM copy
dl $7ED7CC : db $02 : dw $0200 ; SRAM copy
dl $7ED7CE : db $02 : dw $0100 ; SRAM copy
dl $7ED7D0 : db $02 : dw $4000 ; SRAM copy
dl $7ED7D2 : db $02 : dw $0080 ; SRAM copy
dl $7ED7D4 : db $02 : dw $8000 ; SRAM copy
dl $7ED7D6 : db $02 : dw $0040 ; SRAM copy
dl $7ED7D8 : db $02 : dw $2000 ; SRAM copy
dl $7ED7DA : db $02 : dw $0020 ; SRAM copy
dl $7ED7DC : db $02 : dw $0010 ; SRAM copy
dl $7ED7DE : db $02 : dw $0000 ; SRAM copy
dl $7ED7E0 : db $02 : dw $0063 ; SRAM copy
dl $7ED7E2 : db $02 : dw $0063 ; SRAM copy
dl $7ED7E4 : db $02 : dw $0000 ; SRAM copy
dl $7ED7E6 : db $02 : dw $0000 ; SRAM copy
dl $7ED7E8 : db $02 : dw $0000 ; SRAM copy
dl $7ED7EA : db $02 : dw $0000 ; SRAM copy
dl $7ED7EC : db $02 : dw $0000 ; SRAM copy
dl $7ED7EE : db $02 : dw $0000 ; SRAM copy
dl $7ED7F0 : db $02 : dw $0000 ; SRAM copy
dl $7ED7F2 : db $02 : dw $0000 ; SRAM copy
dl $7ED7F4 : db $02 : dw $0000 ; SRAM copy
dl $7ED7F6 : db $02 : dw $0000 ; SRAM copy
dl $7ED7F8 : db $02 : dw $0026 ; SRAM copy
dl $7ED7FA : db $02 : dw $0006 ; SRAM copy
dl $7ED7FC : db $02 : dw $0001 ; SRAM copy
dl $7ED7FE : db $02 : dw $0000 ; SRAM copy
dl $7ED800 : db $02 : dw $0000 ; SRAM copy
dl $7ED802 : db $02 : dw $0000 ; SRAM copy
dl $7ED804 : db $02 : dw $0001 ; SRAM copy
dl $7ED806 : db $02 : dw $0001 ; SRAM copy
dl $7ED808 : db $02 : dw $0000 ; SRAM copy
dl $7ED80A : db $02 : dw $0000 ; SRAM copy
dl $7ED80C : db $02 : dw $0000 ; SRAM copy
dl $7ED80E : db $02 : dw $0000 ; SRAM copy
dl $7ED810 : db $02 : dw $0000 ; SRAM copy
dl $7ED812 : db $02 : dw $0000 ; SRAM copy
dl $7ED814 : db $02 : dw $0000 ; SRAM copy
dl $7ED816 : db $02 : dw $0000 ; SRAM copy
dl $7ED818 : db $02 : dw $0000 ; SRAM copy
dl $7ED81A : db $02 : dw $0000 ; SRAM copy
dl $7ED81C : db $02 : dw $0000 ; SRAM copy
dl $7ED81E : db $02 : dw $0000 ; SRAM copy
dl $7ED820 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED822 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED824 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED826 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED828 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED82A : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED82C : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED82E : db $02 : dw $0001 ; Events, Items, Doors
dl $7ED830 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED832 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED834 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED836 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED838 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED83A : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED83C : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED83E : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED840 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED842 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED844 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED846 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED848 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED84A : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED84C : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED84E : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED850 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED852 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED854 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED856 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED858 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED85A : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED85C : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED85E : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED860 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED862 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED864 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED866 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED868 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED86A : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED86C : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED86E : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED870 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED872 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED874 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED876 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED878 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED87A : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED87C : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED87E : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED880 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED882 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED884 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED886 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED888 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED88A : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED88C : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED88E : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED890 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED892 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED894 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED896 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED898 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED89A : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED89C : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED89E : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8A0 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8A2 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8A4 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8A6 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8A8 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8AA : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8AC : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8AE : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8B0 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8B2 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8B4 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8B6 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8B8 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8BA : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8BC : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8BE : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8C0 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8C2 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8C4 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8C6 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8C8 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8CA : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8CC : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8CE : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8D0 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8D2 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8D4 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8D6 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8D8 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8DA : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8DC : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8DE : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8E0 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8E2 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8E4 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8E6 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8E8 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8EA : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8EC : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8EE : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8F0 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8F2 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8F4 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8F6 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8F8 : db $02 : dw $0001 ; Events, Items, Doors
dl $7ED8FA : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8FC : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED8FE : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED900 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED902 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED904 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED906 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED908 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED90A : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED90C : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED90E : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED910 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED912 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED914 : db $02 : dw $0005 ; Events, Items, Doors
dl $7ED916 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED918 : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0000 ; Events, Items, Doors
dl $7ED91C : db $02 : dw $1010 ; Events, Items, Doors
dl $7ED91E : db $02 : dw $0000 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_crateria_parlor:
dw #preset_pkrd_crateria_ship ; Crateria: Ship
dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $1400 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0400 ; Screen Y position in pixels
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $0079 ; Samus X
dl $7E0AFA : db $02 : dw $049B ; Samus Y
dw #$FFFF
.after
preset_pkrd_crateria_parlor_downback:
dw #preset_pkrd_crateria_parlor ; Crateria: Parlor
dl $7E078D : db $02 : dw $8916 ; DDB
dl $7E079B : db $02 : dw $92FD ; MDB
dl $7E090F : db $02 : dw $F000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $9C00 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $032A ; Screen Y position in pixels
dl $7E0AF6 : db $02 : dw $01B5 ; Samus X
dl $7E0AFA : db $02 : dw $039B ; Samus Y
dw #$FFFF
.after
preset_pkrd_crateria_climb_down:
dw #preset_pkrd_crateria_parlor_downback ; Crateria: Parlor Downback
dl $7E090F : db $02 : dw $3000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $4000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $041F ; Screen Y position in pixels
dl $7E0AF6 : db $02 : dw $01A8 ; Samus X
dl $7E0AFA : db $02 : dw $04BB ; Samus Y
dw #$FFFF
.after
preset_pkrd_crateria_pit_room:
dw #preset_pkrd_crateria_climb_down ; Crateria: Climb Down
dl $7E078D : db $02 : dw $898E ; DDB
dl $7E078F : db $02 : dw $0004 ; DoorOut Index
dl $7E079B : db $02 : dw $96BA ; MDB
dl $7E07C3 : db $02 : dw $F911 ; GFX Pointers
dl $7E07C5 : db $02 : dw $15BA ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2B0 ; GFX Pointers
dl $7E090F : db $02 : dw $6FFF ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $3800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0800 ; Screen Y position in pixels
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $01DB ; Samus X
dl $7E0AFA : db $02 : dw $088B ; Samus Y
dw #$FFFF
.after
preset_pkrd_crateria_morph:
dw #preset_pkrd_crateria_pit_room ; Crateria: Pit Room
dl $7E078D : db $02 : dw $8B9E ; DDB
dl $7E078F : db $02 : dw $0001 ; DoorOut Index
dl $7E079B : db $02 : dw $9E9F ; MDB
dl $7E079F : db $02 : dw $0001 ; Region
dl $7E07C3 : db $02 : dw $E6B0 ; GFX Pointers
dl $7E07C5 : db $02 : dw $64BB ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2B2 ; GFX Pointers
dl $7E07F5 : db $02 : dw $0007 ; Music Track
dl $7E090F : db $02 : dw $6000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0500 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0200 ; Screen Y position in pixels
dl $7E0A1C : db $02 : dw $0000 ; Samus position/state
dl $7E0A1E : db $02 : dw $0000 ; More position/state
dl $7E0AF6 : db $02 : dw $0580 ; Samus X
dl $7E0AFA : db $02 : dw $02A8 ; Samus Y
dl $7ED91A : db $02 : dw $0001 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_crateria_construction_zone_down:
dw #preset_pkrd_crateria_morph ; Crateria: Morph
dl $7E078F : db $02 : dw $0003 ; DoorOut Index
dl $7E090F : db $02 : dw $2000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0700 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $E400 ; Screen subpixel Y position
dl $7E09A2 : db $02 : dw $0004 ; Equipped Items
dl $7E09A4 : db $02 : dw $0004 ; Collected Items
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $07AC ; Samus X
dl $7E0AFA : db $02 : dw $028B ; Samus Y
dl $7ED872 : db $02 : dw $0400 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_crateria_construction_zone_up:
dw #preset_pkrd_crateria_construction_zone_down ; Crateria: Construction Zone Down
dl $7E078D : db $02 : dw $8EDA ; DDB
dl $7E078F : db $02 : dw $0002 ; DoorOut Index
dl $7E079B : db $02 : dw $A107 ; MDB
dl $7E090F : db $02 : dw $D000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $6800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C6 : db $02 : dw $0005 ; Missiles
dl $7E09C8 : db $02 : dw $0005 ; Max missiles
dl $7E0AF6 : db $02 : dw $0055 ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dl $7ED874 : db $02 : dw $0004 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0002 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_crateria_pit_room_revisit:
dw #preset_pkrd_crateria_construction_zone_up ; Crateria: Construction Zone Up
dl $7E078D : db $02 : dw $8EB6 ; DDB
dl $7E079B : db $02 : dw $97B5 ; MDB
dl $7E079F : db $02 : dw $0000 ; Region
dl $7E07C3 : db $02 : dw $F911 ; GFX Pointers
dl $7E07C5 : db $02 : dw $43BA ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2AF ; GFX Pointers
dl $7E07F5 : db $02 : dw $0003 ; Music Track
dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position
dl $7E0A1C : db $02 : dw $0000 ; Samus position/state
dl $7E0A1E : db $02 : dw $0000 ; More position/state
dl $7E0AF6 : db $02 : dw $0080 ; Samus X
dl $7E0AFA : db $02 : dw $0088 ; Samus Y
dl $7ED91A : db $02 : dw $0003 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_crateria_climb_up:
dw #preset_pkrd_crateria_pit_room_revisit ; Crateria: Pit Room Revisit
dl $7E078D : db $02 : dw $8B92 ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $975C ; MDB
dl $7E07F3 : db $02 : dw $0009 ; Music Bank
dl $7E07F5 : db $02 : dw $0005 ; Music Track
dl $7E090F : db $02 : dw $4000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $CC00 ; Screen subpixel Y position
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $0083 ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dl $7ED820 : db $02 : dw $0001 ; Events, Items, Doors
dl $7ED8B2 : db $02 : dw $0400 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0004 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_crateria_parlor_revisit:
dw #preset_pkrd_crateria_climb_up ; Crateria: Climb Up
dl $7E078D : db $02 : dw $8B7A ; DDB
dl $7E079B : db $02 : dw $96BA ; MDB
dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $C000 ; Screen subpixel Y position
dl $7E0AF6 : db $02 : dw $01A0 ; Samus X
dl $7E0AFA : db $02 : dw $005B ; Samus Y
dw #$FFFF
.after
preset_pkrd_crateria_flyway:
dw #preset_pkrd_crateria_parlor_revisit ; Crateria: Parlor Revisit
dl $7E078D : db $02 : dw $8B3E ; DDB
dl $7E079B : db $02 : dw $92FD ; MDB
dl $7E07C3 : db $02 : dw $C629 ; GFX Pointers
dl $7E07C5 : db $02 : dw $7CBA ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2AD ; GFX Pointers
dl $7E090F : db $02 : dw $C000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0300 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $2BFF ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $01E6 ; Screen Y position in pixels
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $0369 ; Samus X
dl $7E0AFA : db $02 : dw $026B ; Samus Y
dw #$FFFF
.after
preset_pkrd_crateria_bomb_torizo:
dw #preset_pkrd_crateria_flyway ; Crateria: Flyway
dl $7E078D : db $02 : dw $8982 ; DDB
dl $7E078F : db $02 : dw $0003 ; DoorOut Index
dl $7E079B : db $02 : dw $9879 ; MDB
dl $7E07C3 : db $02 : dw $F911 ; GFX Pointers
dl $7E07C5 : db $02 : dw $43BA ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2AF ; GFX Pointers
dl $7E090F : db $02 : dw $4000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0200 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $D000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C6 : db $02 : dw $0000 ; Missiles
dl $7E0AF6 : db $02 : dw $02BE ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dl $7ED8B2 : db $02 : dw $2400 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_crateria_alcatraz:
dw #preset_pkrd_crateria_bomb_torizo ; Crateria: Bomb Torizo
dl $7E078D : db $02 : dw $8BAA ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E090F : db $02 : dw $2001 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E09A2 : db $02 : dw $1004 ; Equipped Items
dl $7E09A4 : db $02 : dw $1004 ; Collected Items
dl $7E09C6 : db $02 : dw $0005 ; Missiles
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $0040 ; Samus X
dl $7ED828 : db $02 : dw $0004 ; Events, Items, Doors
dl $7ED870 : db $02 : dw $0080 ; Events, Items, Doors
dl $7ED8B2 : db $02 : dw $2C00 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0005 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_crateria_terminator:
dw #preset_pkrd_crateria_alcatraz ; Crateria: Alcatraz
dl $7E078D : db $02 : dw $8BB6 ; DDB
dl $7E079B : db $02 : dw $92FD ; MDB
dl $7E07C3 : db $02 : dw $C629 ; GFX Pointers
dl $7E07C5 : db $02 : dw $7CBA ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2AD ; GFX Pointers
dl $7E090F : db $02 : dw $F400 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $8800 ; Screen subpixel Y position
dl $7E0AF6 : db $02 : dw $0115 ; Samus X
dl $7E0B3F : db $02 : dw $0104 ; Blue suit
dw #$FFFF
.after
preset_pkrd_crateria_green_pirate_shaft:
dw #preset_pkrd_crateria_terminator ; Crateria: Terminator
dl $7E078D : db $02 : dw $895E ; DDB
dl $7E079B : db $02 : dw $990D ; MDB
dl $7E07C3 : db $02 : dw $F911 ; GFX Pointers
dl $7E07C5 : db $02 : dw $43BA ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2AF ; GFX Pointers
dl $7E090F : db $02 : dw $9F00 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $01FC ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $00C7 ; Health
dl $7E09C4 : db $02 : dw $00C7 ; Max helath
dl $7E0AF6 : db $02 : dw $0063 ; Samus X
dl $7E0AFA : db $02 : dw $029B ; Samus Y
dl $7E0B3F : db $02 : dw $0000 ; Blue suit
dl $7ED870 : db $02 : dw $0180 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0006 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_brinstar_green_brinstar_elevator:
dw #preset_pkrd_crateria_green_pirate_shaft ; Crateria: Green Pirate Shaft
dl $7E078D : db $02 : dw $8C22 ; DDB
dl $7E078F : db $02 : dw $0002 ; DoorOut Index
dl $7E079B : db $02 : dw $9938 ; MDB
dl $7E07F5 : db $02 : dw $0003 ; Music Track
dl $7E090F : db $02 : dw $1C80 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $C400 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C6 : db $02 : dw $0002 ; Missiles
dl $7E0AF6 : db $02 : dw $007C ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dl $7ED91A : db $02 : dw $0008 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_brinstar_early_supers:
dw #preset_pkrd_brinstar_green_brinstar_elevator ; Brinstar: Green Brinstar Elevator
dl $7E078D : db $02 : dw $8C0A ; DDB
dl $7E078F : db $02 : dw $0009 ; DoorOut Index
dl $7E079B : db $02 : dw $9AD9 ; MDB
dl $7E079F : db $02 : dw $0001 ; Region
dl $7E07C3 : db $02 : dw $E6B0 ; GFX Pointers
dl $7E07C5 : db $02 : dw $64BB ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2B2 ; GFX Pointers
dl $7E07F3 : db $02 : dw $000F ; Music Bank
dl $7E07F5 : db $02 : dw $0005 ; Music Track
dl $7E090F : db $02 : dw $7000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $041C ; Screen Y position in pixels
dl $7E09C6 : db $02 : dw $0000 ; Missiles
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $00A1 ; Samus X
dl $7E0AFA : db $02 : dw $048B ; Samus Y
dl $7ED8B4 : db $02 : dw $0002 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0009 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_brinstar_dachora_room:
dw #preset_pkrd_brinstar_early_supers ; Brinstar: Early Supers
dl $7E078D : db $02 : dw $8D4E ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position.
dl $7E0915 : db $02 : dw $061A ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $00BD ; Health
dl $7E09CA : db $02 : dw $0004 ; Supers
dl $7E09CC : db $02 : dw $0005 ; Max supers
dl $7E0AF6 : db $02 : dw $0053 ; Samus X
dl $7E0AFA : db $02 : dw $068B ; Samus Y
dl $7ED872 : db $02 : dw $0401 ; Events, Items, Doors
dl $7ED8B4 : db $02 : dw $0006 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $000C ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_brinstar_big_pink:
dw #preset_pkrd_brinstar_dachora_room ; Brinstar: Dachora Room
dl $7E078D : db $02 : dw $8CE2 ; DDB
dl $7E078F : db $02 : dw $0005 ; DoorOut Index
dl $7E079B : db $02 : dw $9CB3 ; MDB
dl $7E090F : db $02 : dw $7000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0600 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $9400 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $00B3 ; Health
dl $7E09C6 : db $02 : dw $0002 ; Missiles
dl $7E0AF6 : db $02 : dw $0699 ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dw #$FFFF
.after
preset_pkrd_brinstar_green_hill_zone:
dw #preset_pkrd_brinstar_big_pink ; Brinstar: Big Pink
dl $7E078D : db $02 : dw $8DAE ; DDB
dl $7E078F : db $02 : dw $0001 ; DoorOut Index
dl $7E079B : db $02 : dw $9D19 ; MDB
dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0300 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $E000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0611 ; Screen Y position in pixels
dl $7E09A6 : db $02 : dw $1000 ; Beams
dl $7E09A8 : db $02 : dw $1000 ; Beams
dl $7E09C6 : db $02 : dw $0007 ; Missiles
dl $7E09C8 : db $02 : dw $000A ; Max missiles
dl $7E09CA : db $02 : dw $0003 ; Supers
dl $7E0AF6 : db $02 : dw $036C ; Samus X
dl $7E0AFA : db $02 : dw $068B ; Samus Y
dl $7ED872 : db $02 : dw $04C1 ; Events, Items, Doors
dl $7ED8B4 : db $02 : dw $0206 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $000F ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_brinstar_noob_bridge:
dw #preset_pkrd_brinstar_green_hill_zone ; Brinstar: Green Hill Zone
dl $7E078D : db $02 : dw $8DEA ; DDB
dl $7E078F : db $02 : dw $0003 ; DoorOut Index
dl $7E079B : db $02 : dw $9E52 ; MDB
dl $7E090F : db $02 : dw $5000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $068B ; Screen X position in pixels
dl $7E0913 : db $02 : dw $8C00 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0300 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $00A9 ; Health
dl $7E0AF6 : db $02 : dw $06FC ; Samus X
dl $7E0AFA : db $02 : dw $03AB ; Samus Y
dl $7ED91A : db $02 : dw $0010 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_brinstar_red_tower:
dw #preset_pkrd_brinstar_noob_bridge ; Brinstar: Noob Bridge
dl $7E078D : db $02 : dw $8E92 ; DDB
dl $7E078F : db $02 : dw $0002 ; DoorOut Index
dl $7E079B : db $02 : dw $9FBA ; MDB
dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0500 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $6400 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09CA : db $02 : dw $0004 ; Supers
dl $7E0AF6 : db $02 : dw $05BC ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dl $7ED8B6 : db $02 : dw $0008 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_brinstar_hellway:
dw #preset_pkrd_brinstar_red_tower ; Brinstar: Red Tower
dl $7E078D : db $02 : dw $8F0A ; DDB
dl $7E078F : db $02 : dw $0001 ; DoorOut Index
dl $7E079B : db $02 : dw $A253 ; MDB
dl $7E07C3 : db $02 : dw $A5AA ; GFX Pointers
dl $7E07C5 : db $02 : dw $5FBC ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2B3 ; GFX Pointers
dl $7E07F3 : db $02 : dw $0012 ; Music Bank
dl $7E090F : db $02 : dw $BFFF ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $E400 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0006 ; Screen Y position in pixels
dl $7E0AF6 : db $02 : dw $0094 ; Samus X
dw #$FFFF
.after
preset_pkrd_brinstar_caterpillars_down:
dw #preset_pkrd_brinstar_hellway ; Brinstar: Hellway
dl $7E078D : db $02 : dw $901E ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $A2F7 ; MDB
dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0200 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $4400 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $0089 ; Health
dl $7E0AF6 : db $02 : dw $0286 ; Samus X
dw #$FFFF
.after
preset_pkrd_brinstar_alpha_power_bombs:
dw #preset_pkrd_brinstar_caterpillars_down ; Brinstar: Caterpillars Down
dl $7E078D : db $02 : dw $908A ; DDB
dl $7E078F : db $02 : dw $0001 ; DoorOut Index
dl $7E079B : db $02 : dw $A322 ; MDB
dl $7E090F : db $02 : dw $B000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $5C00 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0717 ; Screen Y position in pixels
dl $7E09CA : db $02 : dw $0003 ; Supers
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $0049 ; Samus X
dl $7E0AFA : db $02 : dw $078B ; Samus Y
dl $7ED8B6 : db $02 : dw $2008 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_brinstar_caterpillars_up:
dw #preset_pkrd_brinstar_alpha_power_bombs ; Brinstar: Alpha Power Bombs
dl $7E078D : db $02 : dw $9096 ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $A3AE ; MDB
dl $7E07F5 : db $02 : dw $0003 ; Music Track
dl $7E090F : db $02 : dw $1000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0200 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $CC00 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $0075 ; Health
dl $7E09CE : db $02 : dw $0005 ; Pbs
dl $7E09D0 : db $02 : dw $0005 ; Max pbs
dl $7E09D2 : db $02 : dw $0003 ; Currently selected item
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $02AF ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dl $7ED874 : db $02 : dw $0104 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0012 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_brinstar_crateria_kihunters:
dw #preset_pkrd_brinstar_caterpillars_up ; Brinstar: Caterpillars Up
dl $7E078D : db $02 : dw $90BA ; DDB
dl $7E078F : db $02 : dw $0002 ; DoorOut Index
dl $7E079B : db $02 : dw $962A ; MDB
dl $7E079F : db $02 : dw $0000 ; Region
dl $7E07C3 : db $02 : dw $F911 ; GFX Pointers
dl $7E07C5 : db $02 : dw $43BA ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2AF ; GFX Pointers
dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $6400 ; Screen subpixel Y position
dl $7E09CA : db $02 : dw $0005 ; Supers
dl $7E09CE : db $02 : dw $0003 ; Pbs
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $007E ; Samus X
dl $7E0AFA : db $02 : dw $005B ; Samus Y
dl $7ED8B2 : db $02 : dw $2C01 ; Events, Items, Doors
dl $7ED8B6 : db $02 : dw $3008 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_brinstar_continuous_wall_jump:
dw #preset_pkrd_brinstar_crateria_kihunters ; Brinstar: Crateria Kihunters
dl $7E078D : db $02 : dw $8AF6 ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $948C ; MDB
dl $7E07C3 : db $02 : dw $C629 ; GFX Pointers
dl $7E07C5 : db $02 : dw $7CBA ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2AD ; GFX Pointers
dl $7E07F5 : db $02 : dw $0005 ; Music Track
dl $7E090F : db $02 : dw $0400 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0200 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $3000 ; Screen subpixel Y position
dl $7E09CE : db $02 : dw $0001 ; Pbs
dl $7E09D2 : db $02 : dw $0000 ; Currently selected item
dl $7E0A1C : db $02 : dw $0089 ; Samus position/state
dl $7E0A1E : db $02 : dw $1508 ; More position/state
dl $7E0AF6 : db $02 : dw $02DB ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dl $7ED8B0 : db $02 : dw $6000 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_brinstar_horizontal_bomb_jump:
dw #preset_pkrd_brinstar_continuous_wall_jump ; Brinstar: Continuous Wall Jump
dl $7E078D : db $02 : dw $8A36 ; DDB
dl $7E078F : db $02 : dw $0001 ; DoorOut Index
dl $7E079B : db $02 : dw $95FF ; MDB
dl $7E090F : db $02 : dw $4000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0085 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position
dl $7E09C6 : db $02 : dw $000C ; Missiles
dl $7E09C8 : db $02 : dw $000F ; Max missiles
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $00EB ; Samus X
dl $7ED870 : db $02 : dw $0190 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0013 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_brinstar_ocean:
dw #preset_pkrd_brinstar_horizontal_bomb_jump ; Brinstar: Horizontal Bomb Jump
dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $3C00 ; Screen subpixel Y position
dl $7E0AF6 : db $02 : dw $01A8 ; Samus X
dw #$FFFF
.after
preset_pkrd_wrecked_ship_shaft_down:
dw #preset_pkrd_brinstar_ocean ; Brinstar: Ocean
dl $7E078D : db $02 : dw $89D6 ; DDB
dl $7E079B : db $02 : dw $CA08 ; MDB
dl $7E079F : db $02 : dw $0003 ; Region
dl $7E07C3 : db $02 : dw $AE9E ; GFX Pointers
dl $7E07C5 : db $02 : dw $A6BB ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2B1 ; GFX Pointers
dl $7E07F3 : db $02 : dw $0030 ; Music Bank
dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0300 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position
dl $7E09CA : db $02 : dw $0004 ; Supers
dl $7E0AF6 : db $02 : dw $038E ; Samus X
dl $7ED8B0 : db $02 : dw $7000 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0016 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_wrecked_ship_basement:
dw #preset_pkrd_wrecked_ship_shaft_down ; Wrecked Ship: Shaft Down
dl $7E078D : db $02 : dw $A1BC ; DDB
dl $7E079B : db $02 : dw $CAF6 ; MDB
dl $7E090F : db $02 : dw $6000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0400 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $4000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $071F ; Screen Y position in pixels
dl $7E09CA : db $02 : dw $0003 ; Supers
dl $7E0AF6 : db $02 : dw $045C ; Samus X
dl $7E0AFA : db $02 : dw $07BB ; Samus Y
dl $7ED8C0 : db $02 : dw $0010 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0017 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_wrecked_ship_phantoon:
dw #preset_pkrd_wrecked_ship_basement ; Wrecked Ship: Basement
dl $7E078D : db $02 : dw $A21C ; DDB
dl $7E078F : db $02 : dw $0003 ; DoorOut Index
dl $7E079B : db $02 : dw $CC6F ; MDB
dl $7E090F : db $02 : dw $C000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $7400 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09CA : db $02 : dw $0002 ; Supers
dl $7E0AF6 : db $02 : dw $04CE ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dl $7ED8C0 : db $02 : dw $0030 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_wrecked_ship_leaving_phantoon:
dw #preset_pkrd_wrecked_ship_phantoon ; Wrecked Ship: Phantoon
dl $7E078D : db $02 : dw $A2C4 ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E07C5 : db $02 : dw $E7BB ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2B0 ; GFX Pointers
dl $7E07F5 : db $02 : dw $0006 ; Music Track
dl $7E090F : db $02 : dw $1000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $E800 ; Screen subpixel Y position
dl $7E09C2 : db $02 : dw $00C7 ; Health
dl $7E09C6 : db $02 : dw $000F ; Missiles
dl $7E09CA : db $02 : dw $0003 ; Supers
dl $7E09CE : db $02 : dw $0005 ; Pbs
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $04DB ; Samus X
dl $7ED82A : db $02 : dw $0100 ; Events, Items, Doors
dl $7ED8C0 : db $02 : dw $0070 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_wrecked_ship_shaft_to_supers:
dw #preset_pkrd_wrecked_ship_leaving_phantoon ; Wrecked Ship: Leaving Phantoon
dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0226 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $FC00 ; Screen subpixel Y position
dl $7E0AF6 : db $02 : dw $02C6 ; Samus X
dl $7E0AFA : db $02 : dw $006B ; Samus Y
dw #$FFFF
.after
preset_pkrd_wrecked_ship_shaft_up:
dw #preset_pkrd_wrecked_ship_shaft_to_supers ; Wrecked Ship: Shaft to Supers
dl $7E078D : db $02 : dw $A210 ; DDB
dl $7E078F : db $02 : dw $0002 ; DoorOut Index
dl $7E079B : db $02 : dw $CDA8 ; MDB
dl $7E090F : db $02 : dw $5000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $7400 ; Screen subpixel Y position
dl $7E09CA : db $02 : dw $0008 ; Supers
dl $7E09CC : db $02 : dw $000A ; Max supers
dl $7E09CE : db $02 : dw $0004 ; Pbs
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $00C7 ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dl $7ED880 : db $02 : dw $0020 ; Events, Items, Doors
dl $7ED8C0 : db $02 : dw $0074 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0019 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_wrecked_ship_attic:
dw #preset_pkrd_wrecked_ship_shaft_up ; Wrecked Ship: Shaft Up
dl $7E078D : db $02 : dw $A2E8 ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $CAF6 ; MDB
dl $7E090F : db $02 : dw $1C00 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0400 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $CC00 ; Screen subpixel Y position
dl $7E0AF6 : db $02 : dw $0445 ; Samus X
dl $7E0AFA : db $02 : dw $006B ; Samus Y
dl $7ED91A : db $02 : dw $001A ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_wrecked_ship_upper_west_ocean:
dw #preset_pkrd_wrecked_ship_attic ; Wrecked Ship: Attic
dl $7E078D : db $02 : dw $A228 ; DDB
dl $7E078F : db $02 : dw $0004 ; DoorOut Index
dl $7E079B : db $02 : dw $CA52 ; MDB
dl $7E090F : db $02 : dw $1000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $AC00 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $001F ; Screen Y position in pixels
dl $7E09C6 : db $02 : dw $0009 ; Missiles
dl $7E09CA : db $02 : dw $0006 ; Supers
dl $7E09CE : db $02 : dw $0003 ; Pbs
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $003B ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dl $7ED8C0 : db $02 : dw $0174 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_wrecked_ship_pancakes_and_wavers:
dw #preset_pkrd_wrecked_ship_upper_west_ocean ; Wrecked Ship: Upper West Ocean
dl $7E078D : db $02 : dw $A1E0 ; DDB
dl $7E078F : db $02 : dw $0002 ; DoorOut Index
dl $7E079B : db $02 : dw $93FE ; MDB
dl $7E079F : db $02 : dw $0000 ; Region
dl $7E07C3 : db $02 : dw $C629 ; GFX Pointers
dl $7E07C5 : db $02 : dw $7CBA ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2AD ; GFX Pointers
dl $7E07F3 : db $02 : dw $000C ; Music Bank
dl $7E07F5 : db $02 : dw $0005 ; Music Track
dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0200 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $4C00 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $01FD ; Screen Y position in pixels
dl $7E09C6 : db $02 : dw $000B ; Missiles
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $02C0 ; Samus X
dl $7E0AFA : db $02 : dw $028B ; Samus Y
dl $7ED91A : db $02 : dw $001D ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_wrecked_ship_bowling_alley:
dw #preset_pkrd_wrecked_ship_pancakes_and_wavers ; Wrecked Ship: Pancakes and Wavers
dl $7E078D : db $02 : dw $89E2 ; DDB
dl $7E079B : db $02 : dw $9461 ; MDB
dl $7E090F : db $02 : dw $1800 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $7400 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $00BD ; Health
dl $7E09C6 : db $02 : dw $000D ; Missiles
dl $7E0AF6 : db $02 : dw $017B ; Samus X
dl $7E0AFA : db $02 : dw $0090 ; Samus Y
dw #$FFFF
.after
preset_pkrd_wrecked_ship_leaving_gravity:
dw #preset_pkrd_wrecked_ship_bowling_alley ; Wrecked Ship: Bowling Alley
dl $7E078D : db $02 : dw $A1A4 ; DDB
dl $7E079B : db $02 : dw $CE40 ; MDB
dl $7E079F : db $02 : dw $0003 ; Region
dl $7E07C3 : db $02 : dw $AE9E ; GFX Pointers
dl $7E07C5 : db $02 : dw $E7BB ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2B0 ; GFX Pointers
dl $7E07F3 : db $02 : dw $0030 ; Music Bank
dl $7E07F5 : db $02 : dw $0003 ; Music Track
dl $7E090F : db $02 : dw $4000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $F800 ; Screen subpixel Y position
dl $7E09A2 : db $02 : dw $1024 ; Equipped Items
dl $7E09A4 : db $02 : dw $1024 ; Collected Items
dl $7E09C2 : db $02 : dw $0045 ; Health
dl $7E0A1C : db $02 : dw $009B ; Samus position/state
dl $7E0A1E : db $02 : dw $0000 ; More position/state
dl $7E0AF6 : db $02 : dw $0078 ; Samus X
dl $7E0AFA : db $02 : dw $0088 ; Samus Y
dl $7ED880 : db $02 : dw $00A0 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0020 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_wrecked_ship_reverse_moat:
dw #preset_pkrd_wrecked_ship_leaving_gravity ; Wrecked Ship: Leaving Gravity
dl $7E078D : db $02 : dw $A300 ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $93FE ; MDB
dl $7E079F : db $02 : dw $0000 ; Region
dl $7E07C3 : db $02 : dw $C629 ; GFX Pointers
dl $7E07C5 : db $02 : dw $7CBA ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2AD ; GFX Pointers
dl $7E07F3 : db $02 : dw $000C ; Music Bank
dl $7E07F5 : db $02 : dw $0005 ; Music Track
dl $7E090F : db $02 : dw $5400 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $040B ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $0043 ; Health
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $0068 ; Samus X
dl $7E0AFA : db $02 : dw $049B ; Samus Y
dl $7ED91A : db $02 : dw $0023 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_wrecked_ship_crateria_kihunters_return:
dw #preset_pkrd_wrecked_ship_reverse_moat ; Wrecked Ship: Reverse Moat
dl $7E078D : db $02 : dw $89CA ; DDB
dl $7E079B : db $02 : dw $95FF ; MDB
dl $7E090F : db $02 : dw $F000 ; Screen subpixel X position.
dl $7E0915 : db $02 : dw $0004 ; Screen Y position in pixels
dl $7E0AF6 : db $02 : dw $0038 ; Samus X
dl $7E0AFA : db $02 : dw $0094 ; Samus Y
dl $7ED91A : db $02 : dw $0024 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_red_brinstar_revisit_red_brinstar_elevator:
dw #preset_pkrd_wrecked_ship_crateria_kihunters_return ; Wrecked Ship: Crateria Kihunters Return
dl $7E078D : db $02 : dw $8A42 ; DDB
dl $7E078F : db $02 : dw $0002 ; DoorOut Index
dl $7E079B : db $02 : dw $962A ; MDB
dl $7E07C3 : db $02 : dw $F911 ; GFX Pointers
dl $7E07C5 : db $02 : dw $43BA ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2AF ; GFX Pointers
dl $7E07F5 : db $02 : dw $0003 ; Music Track
dl $7E090F : db $02 : dw $7000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $5800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $0057 ; Health
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $0080 ; Samus X
dl $7E0AFA : db $02 : dw $00AB ; Samus Y
dw #$FFFF
.after
preset_pkrd_red_brinstar_revisit_hellway_revisit:
dw #preset_pkrd_red_brinstar_revisit_red_brinstar_elevator ; Red Brinstar Revisit: Red Brinstar Elevator
dl $7E078D : db $02 : dw $8B02 ; DDB
dl $7E078F : db $02 : dw $0005 ; DoorOut Index
dl $7E079B : db $02 : dw $A322 ; MDB
dl $7E079F : db $02 : dw $0001 ; Region
dl $7E07C3 : db $02 : dw $A5AA ; GFX Pointers
dl $7E07C5 : db $02 : dw $5FBC ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2B3 ; GFX Pointers
dl $7E07F3 : db $02 : dw $0012 ; Music Bank
dl $7E07F5 : db $02 : dw $0005 ; Music Track
dl $7E090F : db $02 : dw $A000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $2800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0500 ; Screen Y position in pixels
dl $7E09C6 : db $02 : dw $000C ; Missiles
dl $7E09CA : db $02 : dw $0008 ; Supers
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $0059 ; Samus X
dl $7E0AFA : db $02 : dw $058B ; Samus Y
dw #$FFFF
.after
preset_pkrd_red_brinstar_revisit_red_tower_down:
dw #preset_pkrd_red_brinstar_revisit_hellway_revisit ; Red Brinstar Revisit: Hellway Revisit
dl $7E078D : db $02 : dw $90AE ; DDB
dl $7E078F : db $02 : dw $0002 ; DoorOut Index
dl $7E079B : db $02 : dw $A2F7 ; MDB
dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $9C00 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $004F ; Health
dl $7E0AF6 : db $02 : dw $002D ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dw #$FFFF
.after
preset_pkrd_red_brinstar_revisit_skree_boost:
dw #preset_pkrd_red_brinstar_revisit_red_tower_down ; Red Brinstar Revisit: Red Tower Down
dl $7E078D : db $02 : dw $907E ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $A253 ; MDB
dl $7E090F : db $02 : dw $2000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $091A ; Screen Y position in pixels
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $005E ; Samus X
dl $7E0AFA : db $02 : dw $098B ; Samus Y
dw #$FFFF
.after
preset_pkrd_red_brinstar_revisit_below_spazer:
dw #preset_pkrd_red_brinstar_revisit_skree_boost ; Red Brinstar Revisit: Skree Boost
dl $7E078D : db $02 : dw $9042 ; DDB
dl $7E078F : db $02 : dw $0003 ; DoorOut Index
dl $7E079B : db $02 : dw $A3DD ; MDB
dl $7E090F : db $02 : dw $E000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $7400 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $004E ; Health
dl $7E0AF6 : db $02 : dw $01DC ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dw #$FFFF
.after
preset_pkrd_red_brinstar_revisit_leaving_spazer:
dw #preset_pkrd_red_brinstar_revisit_below_spazer ; Red Brinstar Revisit: Below Spazer
dl $7E078D : db $02 : dw $9126 ; DDB
dl $7E078F : db $02 : dw $0002 ; DoorOut Index
dl $7E079B : db $02 : dw $A447 ; MDB
dl $7E07F5 : db $02 : dw $0003 ; Music Track
dl $7E090F : db $02 : dw $D000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $0C00 ; Screen subpixel Y position
dl $7E09A6 : db $02 : dw $1004 ; Beams
dl $7E09A8 : db $02 : dw $1004 ; Beams
dl $7E09CA : db $02 : dw $0007 ; Supers
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $0053 ; Samus X
dl $7ED874 : db $02 : dw $0504 ; Events, Items, Doors
dl $7ED8B6 : db $02 : dw $B008 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0025 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_red_brinstar_revisit_breaking_tube:
dw #preset_pkrd_red_brinstar_revisit_leaving_spazer ; Red Brinstar Revisit: Leaving Spazer
dl $7E078D : db $02 : dw $9132 ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $A408 ; MDB
dl $7E07F5 : db $02 : dw $0005 ; Music Track
dl $7E090F : db $02 : dw $5000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $4400 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0100 ; Screen Y position in pixels
dl $7E09CA : db $02 : dw $0008 ; Supers
dl $7E09D2 : db $02 : dw $0003 ; Currently selected item
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $01B6 ; Samus X
dl $7E0AFA : db $02 : dw $018B ; Samus Y
dw #$FFFF
.after
preset_pkrd_kraid_entering_kraids_lair:
dw #preset_pkrd_red_brinstar_revisit_breaking_tube ; Red Brinstar Revisit: Breaking Tube
dl $7E078D : db $02 : dw $A348 ; DDB
dl $7E078F : db $02 : dw $0002 ; DoorOut Index
dl $7E079B : db $02 : dw $CF80 ; MDB
dl $7E079F : db $02 : dw $0004 ; Region
dl $7E07C3 : db $02 : dw $B130 ; GFX Pointers
dl $7E07C5 : db $02 : dw $3CBE ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2B8 ; GFX Pointers
dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $2001 ; Screen subpixel Y position
dl $7E09CE : db $02 : dw $0002 ; Pbs
dl $7E09D2 : db $02 : dw $0000 ; Currently selected item
dl $7E0AF6 : db $02 : dw $002E ; Samus X
dl $7ED820 : db $02 : dw $0801 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_kraid_kraid_kihunters:
dw #preset_pkrd_kraid_entering_kraids_lair ; Kraid: Entering Kraids Lair
dl $7E078D : db $02 : dw $923A ; DDB
dl $7E078F : db $02 : dw $0001 ; DoorOut Index
dl $7E079B : db $02 : dw $A471 ; MDB
dl $7E079F : db $02 : dw $0001 ; Region
dl $7E07C3 : db $02 : dw $A5AA ; GFX Pointers
dl $7E07C5 : db $02 : dw $5FBC ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2B3 ; GFX Pointers
dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $0C00 ; Screen subpixel Y position
dl $7E09CA : db $02 : dw $0007 ; Supers
dl $7E0AF6 : db $02 : dw $0168 ; Samus X
dw #$FFFF
.after
preset_pkrd_kraid_mini_kraid:
dw #preset_pkrd_kraid_kraid_kihunters ; Kraid: Kraid Kihunters
dl $7E078D : db $02 : dw $9156 ; DDB
dl $7E078F : db $02 : dw $0002 ; DoorOut Index
dl $7E079B : db $02 : dw $A4DA ; MDB
dl $7E090F : db $02 : dw $5000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $1000 ; Screen subpixel Y position
dl $7E0AF6 : db $02 : dw $016B ; Samus X
dl $7ED91A : db $02 : dw $0026 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_kraid_kraid_2:
dw #preset_pkrd_kraid_mini_kraid ; Kraid: Mini Kraid
dl $7E078D : db $02 : dw $919E ; DDB
dl $7E078F : db $02 : dw $0001 ; DoorOut Index
dl $7E079B : db $02 : dw $A56B ; MDB
dl $7E07F3 : db $02 : dw $0027 ; Music Bank
dl $7E07F5 : db $02 : dw $0006 ; Music Track
dl $7E090F : db $02 : dw $A000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $C000 ; Screen subpixel Y position
dl $7E09C2 : db $02 : dw $0049 ; Health
dl $7E09C6 : db $02 : dw $000A ; Missiles
dl $7E09CA : db $02 : dw $0009 ; Supers
dl $7E0AF6 : db $02 : dw $01C6 ; Samus X
dl $7ED8B8 : db $02 : dw $0024 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_kraid_leaving_varia:
dw #preset_pkrd_kraid_kraid_2 ; Kraid: Kraid
dl $7E078D : db $02 : dw $91DA ; DDB
dl $7E079B : db $02 : dw $A6E2 ; MDB
dl $7E07F5 : db $02 : dw $0003 ; Music Track
dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $9000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09A2 : db $02 : dw $1025 ; Equipped Items
dl $7E09A4 : db $02 : dw $1025 ; Collected Items
dl $7E09C2 : db $02 : dw $0062 ; Health
dl $7E09C6 : db $02 : dw $000C ; Missiles
dl $7E09CE : db $02 : dw $0003 ; Pbs
dl $7E0A1C : db $02 : dw $009B ; Samus position/state
dl $7E0A1E : db $02 : dw $0000 ; More position/state
dl $7E0AF6 : db $02 : dw $0078 ; Samus X
dl $7E0AFA : db $02 : dw $0088 ; Samus Y
dl $7ED828 : db $02 : dw $0104 ; Events, Items, Doors
dl $7ED876 : db $02 : dw $0001 ; Events, Items, Doors
dl $7ED8B8 : db $02 : dw $0064 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0027 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_kraid_mini_kraid_revisit:
dw #preset_pkrd_kraid_leaving_varia ; Kraid: Leaving Varia
dl $7E078D : db $02 : dw $91CE ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $A56B ; MDB
dl $7E090F : db $02 : dw $5000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $9C00 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0100 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $005E ; Health
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $0059 ; Samus X
dl $7E0AFA : db $02 : dw $018B ; Samus Y
dl $7ED8B8 : db $02 : dw $00E4 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_kraid_kraid_kihunters_revisit:
dw #preset_pkrd_kraid_mini_kraid_revisit ; Kraid: Mini Kraid Revisit
dl $7E078D : db $02 : dw $91AA ; DDB
dl $7E079B : db $02 : dw $A521 ; MDB
dl $7E090F : db $02 : dw $7000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0084 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $6400 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C6 : db $02 : dw $000B ; Missiles
dl $7E09CA : db $02 : dw $000A ; Supers
dl $7E0AF6 : db $02 : dw $00F2 ; Samus X
dl $7E0AFA : db $02 : dw $00AB ; Samus Y
dl $7ED8B8 : db $02 : dw $00EC ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_kraid_kraid_etank:
dw #preset_pkrd_kraid_kraid_kihunters_revisit ; Kraid: Kraid Kihunters Revisit
dl $7E078D : db $02 : dw $916E ; DDB
dl $7E079B : db $02 : dw $A471 ; MDB
dl $7E07F3 : db $02 : dw $0012 ; Music Bank
dl $7E07F5 : db $02 : dw $0005 ; Music Track
dl $7E090F : db $02 : dw $9000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $5800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0100 ; Screen Y position in pixels
dl $7E0AF6 : db $02 : dw $0057 ; Samus X
dl $7E0AFA : db $02 : dw $018B ; Samus Y
dl $7ED8B8 : db $02 : dw $00ED ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0028 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_kraid_leaving_kraids_lair:
dw #preset_pkrd_kraid_kraid_etank ; Kraid: Kraid E-tank
dl $7E078D : db $02 : dw $914A ; DDB
dl $7E078F : db $02 : dw $0001 ; DoorOut Index
dl $7E079B : db $02 : dw $A4B1 ; MDB
dl $7E090F : db $02 : dw $6000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $1C00 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $012B ; Health
dl $7E09C4 : db $02 : dw $012B ; Max helath
dl $7E09CE : db $02 : dw $0005 ; Pbs
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $0085 ; Samus X
dl $7E0AFA : db $02 : dw $009B ; Samus Y
dl $7ED874 : db $02 : dw $0D04 ; Events, Items, Doors
dl $7ED8B8 : db $02 : dw $00EF ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0029 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_upper_norfair_business_center:
dw #preset_pkrd_kraid_leaving_kraids_lair ; Kraid: Leaving Kraids Lair
dl $7E078D : db $02 : dw $913E ; DDB
dl $7E078F : db $02 : dw $0003 ; DoorOut Index
dl $7E079B : db $02 : dw $A6A1 ; MDB
dl $7E07F5 : db $02 : dw $0003 ; Music Track
dl $7E090F : db $02 : dw $3000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0006 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position
dl $7E09C6 : db $02 : dw $000D ; Missiles
dl $7E09CA : db $02 : dw $0009 ; Supers
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $0078 ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dw #$FFFF
.after
preset_pkrd_upper_norfair_hi_jump_etank:
dw #preset_pkrd_upper_norfair_business_center ; Upper Norfair: Business Center
dl $7E078D : db $02 : dw $9246 ; DDB
dl $7E078F : db $02 : dw $0005 ; DoorOut Index
dl $7E079B : db $02 : dw $A7DE ; MDB
dl $7E079F : db $02 : dw $0002 ; Region
dl $7E07C3 : db $02 : dw $C3F9 ; GFX Pointers
dl $7E07C5 : db $02 : dw $BBBD ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2B6 ; GFX Pointers
dl $7E07F3 : db $02 : dw $0015 ; Music Bank
dl $7E07F5 : db $02 : dw $0005 ; Music Track
dl $7E090F : db $02 : dw $4000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0915 : db $02 : dw $051B ; Screen Y position in pixels
dl $7E09CA : db $02 : dw $0008 ; Supers
dl $7E0AF6 : db $02 : dw $003C ; Samus X
dl $7E0AFA : db $02 : dw $058B ; Samus Y
dl $7ED8B8 : db $02 : dw $20EF ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_upper_norfair_leaving_hi_jump:
dw #preset_pkrd_upper_norfair_hi_jump_etank ; Upper Norfair: Hi Jump E-tank
dl $7E078D : db $02 : dw $9426 ; DDB
dl $7E078F : db $02 : dw $0001 ; DoorOut Index
dl $7E079B : db $02 : dw $A9E5 ; MDB
dl $7E07F5 : db $02 : dw $0003 ; Music Track
dl $7E090F : db $02 : dw $F000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $B800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09A2 : db $02 : dw $1125 ; Equipped Items
dl $7E09A4 : db $02 : dw $1125 ; Collected Items
dl $7E09C2 : db $02 : dw $018F ; Health
dl $7E09C4 : db $02 : dw $018F ; Max helath
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $0046 ; Samus X
dl $7E0AFA : db $02 : dw $00BB ; Samus Y
dl $7ED876 : db $02 : dw $0121 ; Events, Items, Doors
dl $7ED8BA : db $02 : dw $0001 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $002C ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_upper_norfair_business_center_2:
dw #preset_pkrd_upper_norfair_leaving_hi_jump ; Upper Norfair: Leaving Hi Jump
dl $7E078D : db $02 : dw $93F6 ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $AA41 ; MDB
dl $7E07F5 : db $02 : dw $0005 ; Music Track
dl $7E090F : db $02 : dw $FFFF ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $27FF ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $000B ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $018A ; Health
dl $7E09CE : db $02 : dw $0004 ; Pbs
dl $7E0AF6 : db $02 : dw $01C1 ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dl $7ED91A : db $02 : dw $002E ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_upper_norfair_ice_beam_gates:
dw #preset_pkrd_upper_norfair_business_center_2 ; Upper Norfair: Business Center 2
dl $7E078D : db $02 : dw $941A ; DDB
dl $7E079B : db $02 : dw $A7DE ; MDB
dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $A800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $030B ; Screen Y position in pixels
dl $7E09C6 : db $02 : dw $000F ; Missiles
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $003C ; Samus X
dl $7E0AFA : db $02 : dw $039A ; Samus Y
dl $7ED8B8 : db $02 : dw $28EF ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_upper_norfair_ice_maze_up:
dw #preset_pkrd_upper_norfair_ice_beam_gates ; Upper Norfair: Ice Beam Gates
dl $7E078D : db $02 : dw $931E ; DDB
dl $7E078F : db $02 : dw $0001 ; DoorOut Index
dl $7E079B : db $02 : dw $A75D ; MDB
dl $7E07C5 : db $02 : dw $E4BD ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2B5 ; GFX Pointers
dl $7E090F : db $02 : dw $A000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $E400 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E0AF6 : db $02 : dw $0038 ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dw #$FFFF
.after
preset_pkrd_upper_norfair_ice_maze_down:
dw #preset_pkrd_upper_norfair_ice_maze_up ; Upper Norfair: Ice Maze Up
dl $7E078D : db $02 : dw $937E ; DDB
dl $7E078F : db $02 : dw $0002 ; DoorOut Index
dl $7E079B : db $02 : dw $A890 ; MDB
dl $7E07C5 : db $02 : dw $BBBD ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2B6 ; GFX Pointers
dl $7E07F5 : db $02 : dw $0003 ; Music Track
dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $3400 ; Screen subpixel Y position
dl $7E09A6 : db $02 : dw $1006 ; Beams
dl $7E09A8 : db $02 : dw $1006 ; Beams
dl $7E0AF6 : db $02 : dw $00B9 ; Samus X
dl $7ED876 : db $02 : dw $0125 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $002F ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_upper_norfair_ice_escape:
dw #preset_pkrd_upper_norfair_ice_maze_down ; Upper Norfair: Ice Maze Down
dl $7E078D : db $02 : dw $935A ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $A8B9 ; MDB
dl $7E07C5 : db $02 : dw $E4BD ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2B5 ; GFX Pointers
dl $7E07F5 : db $02 : dw $0005 ; Music Track
dl $7E090F : db $02 : dw $0001 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $0800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0200 ; Screen Y position in pixels
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $00C8 ; Samus X
dl $7E0AFA : db $02 : dw $028B ; Samus Y
dw #$FFFF
.after
preset_pkrd_upper_norfair_precathedral:
dw #preset_pkrd_upper_norfair_ice_escape ; Upper Norfair: Ice Escape
dl $7E078D : db $02 : dw $932A ; DDB
dl $7E078F : db $02 : dw $0002 ; DoorOut Index
dl $7E079B : db $02 : dw $A7DE ; MDB
dl $7E07C5 : db $02 : dw $BBBD ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2B6 ; GFX Pointers
dl $7E090F : db $02 : dw $5FFF ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $DBFF ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0319 ; Screen Y position in pixels
dl $7E0AF6 : db $02 : dw $00A4 ; Samus X
dl $7E0AFA : db $02 : dw $038B ; Samus Y
dw #$FFFF
.after
preset_pkrd_upper_norfair_cathedral:
dw #preset_pkrd_upper_norfair_precathedral ; Upper Norfair: Pre-Cathedral
dl $7E078D : db $02 : dw $92CA ; DDB
dl $7E078F : db $02 : dw $0001 ; DoorOut Index
dl $7E079B : db $02 : dw $A7B3 ; MDB
dl $7E07C5 : db $02 : dw $E4BD ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2B5 ; GFX Pointers
dl $7E090F : db $02 : dw $C000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0200 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $5400 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09CA : db $02 : dw $0007 ; Supers
dl $7E0AF6 : db $02 : dw $02A2 ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dl $7ED8B8 : db $02 : dw $2CEF ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_upper_norfair_rising_tide:
dw #preset_pkrd_upper_norfair_cathedral ; Upper Norfair: Cathedral
dl $7E078D : db $02 : dw $92B2 ; DDB
dl $7E079B : db $02 : dw $A788 ; MDB
dl $7E090F : db $02 : dw $867F ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $2800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0100 ; Screen Y position in pixels
dl $7E09CA : db $02 : dw $0006 ; Supers
dl $7E0AF6 : db $02 : dw $02B5 ; Samus X
dl $7E0AFA : db $02 : dw $018B ; Samus Y
dl $7ED8B8 : db $02 : dw $2EEF ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0030 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_upper_norfair_bubble_mountain:
dw #preset_pkrd_upper_norfair_rising_tide ; Upper Norfair: Rising Tide
dl $7E078D : db $02 : dw $929A ; DDB
dl $7E079B : db $02 : dw $AFA3 ; MDB
dl $7E090F : db $02 : dw $1000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0400 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $B400 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $0185 ; Health
dl $7E0AF6 : db $02 : dw $04AD ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dw #$FFFF
.after
preset_pkrd_upper_norfair_bat_cave:
dw #preset_pkrd_upper_norfair_bubble_mountain ; Upper Norfair: Bubble Mountain
dl $7E078D : db $02 : dw $973E ; DDB
dl $7E079B : db $02 : dw $ACB3 ; MDB
dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position
dl $7E0AF6 : db $02 : dw $01BC ; Samus X
dl $7ED8BA : db $02 : dw $0011 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0031 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_upper_norfair_leaving_speedbooster:
dw #preset_pkrd_upper_norfair_bat_cave ; Upper Norfair: Bat Cave
dl $7E078D : db $02 : dw $95B2 ; DDB
dl $7E079B : db $02 : dw $AD1B ; MDB
dl $7E07F5 : db $02 : dw $0003 ; Music Track
dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $EC00 ; Screen subpixel Y position
dl $7E09A2 : db $02 : dw $3125 ; Equipped Items
dl $7E09A4 : db $02 : dw $3125 ; Collected Items
dl $7E09C2 : db $02 : dw $018F ; Health
dl $7E09CA : db $02 : dw $0007 ; Supers
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $0041 ; Samus X
dl $7ED878 : db $02 : dw $0004 ; Events, Items, Doors
dl $7ED8BA : db $02 : dw $0031 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0033 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_upper_norfair_single_chamber:
dw #preset_pkrd_upper_norfair_leaving_speedbooster ; Upper Norfair: Leaving Speedbooster
dl $7E078D : db $02 : dw $97AA ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $ACB3 ; MDB
dl $7E07F5 : db $02 : dw $0005 ; Music Track
dl $7E090F : db $02 : dw $A000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $00FD ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $018D ; Health
dl $7E09CA : db $02 : dw $0009 ; Supers
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $01B1 ; Samus X
dl $7E0AFA : db $02 : dw $018B ; Samus Y
dl $7ED822 : db $02 : dw $0020 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0035 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_upper_norfair_double_chamber:
dw #preset_pkrd_upper_norfair_single_chamber ; Upper Norfair: Single Chamber
dl $7E078D : db $02 : dw $9582 ; DDB
dl $7E078F : db $02 : dw $0004 ; DoorOut Index
dl $7E079B : db $02 : dw $AD5E ; MDB
dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $E000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0125 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $0181 ; Health
dl $7E09CA : db $02 : dw $0008 ; Supers
dl $7E0AF6 : db $02 : dw $00BF ; Samus X
dl $7ED8BA : db $02 : dw $0071 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_upper_norfair_double_chamber_revisited:
dw #preset_pkrd_upper_norfair_double_chamber ; Upper Norfair: Double Chamber
dl $7E078D : db $02 : dw $961E ; DDB
dl $7E078F : db $02 : dw $0002 ; DoorOut Index
dl $7E079B : db $02 : dw $ADDE ; MDB
dl $7E07F5 : db $02 : dw $0003 ; Music Track
dl $7E0913 : db $02 : dw $C800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09A6 : db $02 : dw $1007 ; Beams
dl $7E09A8 : db $02 : dw $1007 ; Beams
dl $7E09C6 : db $02 : dw $0014 ; Missiles
dl $7E09C8 : db $02 : dw $0014 ; Max missiles
dl $7E09CA : db $02 : dw $0007 ; Supers
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $0054 ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dl $7ED878 : db $02 : dw $001C ; Events, Items, Doors
dl $7ED8BA : db $02 : dw $00F1 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0037 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_upper_norfair_single_chamber_revisited:
dw #preset_pkrd_upper_norfair_double_chamber_revisited ; Upper Norfair: Double Chamber Revisited
dl $7E078D : db $02 : dw $962A ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $ADAD ; MDB
dl $7E07F5 : db $02 : dw $0005 ; Music Track
dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $013B ; Screen X position in pixels
dl $7E0913 : db $02 : dw $0800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $011F ; Screen Y position in pixels
dl $7E0AF6 : db $02 : dw $01DB ; Samus X
dl $7E0AFA : db $02 : dw $01BB ; Samus Y
dl $7ED91A : db $02 : dw $0038 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_upper_norfair_volcano_room:
dw #preset_pkrd_upper_norfair_single_chamber_revisited ; Upper Norfair: Single Chamber Revisited
dl $7E078D : db $02 : dw $95EE ; DDB
dl $7E078F : db $02 : dw $0003 ; DoorOut Index
dl $7E079B : db $02 : dw $AE07 ; MDB
dl $7E090F : db $02 : dw $7200 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0300 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $0400 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $0172 ; Health
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $03AF ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dw #$FFFF
.after
preset_pkrd_upper_norfair_kronic_boost:
dw #preset_pkrd_upper_norfair_volcano_room ; Upper Norfair: Volcano Room
dl $7E078D : db $02 : dw $9642 ; DDB
dl $7E078F : db $02 : dw $0001 ; DoorOut Index
dl $7E079B : db $02 : dw $AE32 ; MDB
dl $7E090F : db $02 : dw $1C01 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $E400 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0200 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $016E ; Health
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $0030 ; Samus X
dl $7E0AFA : db $02 : dw $028B ; Samus Y
dw #$FFFF
.after
preset_pkrd_upper_norfair_lava_spark:
dw #preset_pkrd_upper_norfair_kronic_boost ; Upper Norfair: Kronic Boost
dl $7E078D : db $02 : dw $965A ; DDB
dl $7E079B : db $02 : dw $AE74 ; MDB
dl $7E090F : db $02 : dw $E000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $3800 ; Screen subpixel Y position
dl $7E09C2 : db $02 : dw $0175 ; Health
dl $7E09C6 : db $02 : dw $0012 ; Missiles
dl $7E09CE : db $02 : dw $0005 ; Pbs
dl $7E0AF6 : db $02 : dw $01EB ; Samus X
dl $7ED8BA : db $02 : dw $01F1 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_lower_norfair_ln_main_hall:
dw #preset_pkrd_upper_norfair_lava_spark ; Upper Norfair: Lava Spark
dl $7E078D : db $02 : dw $96F6 ; DDB
dl $7E079B : db $02 : dw $B236 ; MDB
dl $7E07F3 : db $02 : dw $0018 ; Music Bank
dl $7E090F : db $02 : dw $2000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0400 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position
dl $7E09C2 : db $02 : dw $0120 ; Health
dl $7E09D2 : db $02 : dw $0003 ; Currently selected item
dl $7E0A1C : db $02 : dw $009B ; Samus position/state
dl $7E0A1E : db $02 : dw $0000 ; More position/state
dl $7E0AF6 : db $02 : dw $0480 ; Samus X
dl $7E0AFA : db $02 : dw $0288 ; Samus Y
dw #$FFFF
.after
preset_pkrd_lower_norfair_prepillars:
dw #preset_pkrd_lower_norfair_ln_main_hall ; Lower Norfair: LN Main Hall
dl $7E078F : db $02 : dw $0003 ; DoorOut Index
dl $7E090F : db $02 : dw $4000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0700 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $7400 ; Screen subpixel Y position
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $07A1 ; Samus X
dl $7E0AFA : db $02 : dw $028B ; Samus Y
dw #$FFFF
.after
preset_pkrd_lower_norfair_worst_room_in_the_game:
dw #preset_pkrd_lower_norfair_prepillars ; Lower Norfair: Pre-Pillars
dl $7E078D : db $02 : dw $9912 ; DDB
dl $7E078F : db $02 : dw $0004 ; DoorOut Index
dl $7E079B : db $02 : dw $B457 ; MDB
dl $7E090F : db $02 : dw $02FF ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0300 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $9800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $00E1 ; Health
dl $7E0AF6 : db $02 : dw $03DB ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dw #$FFFF
.after
preset_pkrd_lower_norfair_amphitheatre:
dw #preset_pkrd_lower_norfair_worst_room_in_the_game ; Lower Norfair: Worst Room in the Game
dl $7E078D : db $02 : dw $994E ; DDB
dl $7E078F : db $02 : dw $0001 ; DoorOut Index
dl $7E079B : db $02 : dw $B4AD ; MDB
dl $7E090F : db $02 : dw $B000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $B800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $011F ; Screen Y position in pixels
dl $7E09CE : db $02 : dw $0004 ; Pbs
dl $7E09D2 : db $02 : dw $0000 ; Currently selected item
dl $7E0A1C : db $02 : dw $0009 ; Samus position/state
dl $7E0A1E : db $02 : dw $0108 ; More position/state
dl $7E0AF6 : db $02 : dw $00B8 ; Samus X
dl $7E0AFA : db $02 : dw $018B ; Samus Y
dw #$FFFF
.after
preset_pkrd_lower_norfair_kihunter_stairs_down:
dw #preset_pkrd_lower_norfair_amphitheatre ; Lower Norfair: Amphitheatre
dl $7E078D : db $02 : dw $997E ; DDB
dl $7E079B : db $02 : dw $B4E5 ; MDB
dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0275 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0047 ; Screen Y position in pixels
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $02D5 ; Samus X
dl $7E0AFA : db $02 : dw $00B9 ; Samus Y
dw #$FFFF
.after
preset_pkrd_lower_norfair_wasteland:
dw #preset_pkrd_lower_norfair_kihunter_stairs_down ; Lower Norfair: Kihunter Stairs Down
dl $7E078D : db $02 : dw $99A2 ; DDB
dl $7E079B : db $02 : dw $B585 ; MDB
dl $7E090F : db $02 : dw $3400 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0200 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $F3FF ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0416 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $00F4 ; Health
dl $7E09CE : db $02 : dw $0002 ; Pbs
dl $7E0A1C : db $02 : dw $001D ; Samus position/state
dl $7E0A1E : db $02 : dw $0408 ; More position/state
dl $7E0AF6 : db $02 : dw $024A ; Samus X
dl $7E0AFA : db $02 : dw $0489 ; Samus Y
dl $7ED8BA : db $02 : dw $41F1 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_lower_norfair_metal_ninja_pirates:
dw #preset_pkrd_lower_norfair_wasteland ; Lower Norfair: Wasteland
dl $7E078D : db $02 : dw $99EA ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $B5D5 ; MDB
dl $7E090F : db $02 : dw $9000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $021B ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $00CF ; Health
dl $7E09CA : db $02 : dw $0006 ; Supers
dl $7E09CE : db $02 : dw $0001 ; Pbs
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $0167 ; Samus X
dl $7E0AFA : db $02 : dw $028B ; Samus Y
dl $7ED8BA : db $02 : dw $C1F1 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0039 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_lower_norfair_plowerhouse:
dw #preset_pkrd_lower_norfair_metal_ninja_pirates ; Lower Norfair: Metal Ninja Pirates
dl $7E078D : db $02 : dw $9A1A ; DDB
dl $7E079B : db $02 : dw $B62B ; MDB
dl $7E090F : db $02 : dw $F000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0156 ; Screen X position in pixels
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $0181 ; Health
dl $7E09CA : db $02 : dw $0009 ; Supers
dl $7E0AF6 : db $02 : dw $01CA ; Samus X
dl $7E0AFA : db $02 : dw $00BB ; Samus Y
dl $7ED8BC : db $02 : dw $0001 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_lower_norfair_ridley_farming_room:
dw #preset_pkrd_lower_norfair_plowerhouse ; Lower Norfair: Plowerhouse
dl $7E078D : db $02 : dw $9A32 ; DDB
dl $7E079B : db $02 : dw $B482 ; MDB
dl $7E090F : db $02 : dw $D000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $B000 ; Screen subpixel Y position
dl $7E09C2 : db $02 : dw $0159 ; Health
dl $7E0AF6 : db $02 : dw $004E ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dw #$FFFF
.after
preset_pkrd_lower_norfair_ridley:
dw #preset_pkrd_lower_norfair_ridley_farming_room ; Lower Norfair: Ridley Farming Room
dl $7E078D : db $02 : dw $995A ; DDB
dl $7E079B : db $02 : dw $B37A ; MDB
dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $D800 ; Screen subpixel Y position
dl $7E09C2 : db $02 : dw $0146 ; Health
dl $7E09CA : db $02 : dw $000A ; Supers
dl $7E0AF6 : db $02 : dw $003C ; Samus X
dl $7E0AFA : db $02 : dw $009B ; Samus Y
dl $7ED8BA : db $02 : dw $D1F1 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_lower_norfair_leaving_ridley:
dw #preset_pkrd_lower_norfair_ridley ; Lower Norfair: Ridley
dl $7E078D : db $02 : dw $98CA ; DDB
dl $7E079B : db $02 : dw $B32E ; MDB
dl $7E07F3 : db $02 : dw $0024 ; Music Bank
dl $7E07F5 : db $02 : dw $0003 ; Music Track
dl $7E0913 : db $02 : dw $7C00 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $011F ; Screen Y position in pixels
dl $7E09A6 : db $02 : dw $1001 ; Beams
dl $7E09C2 : db $02 : dw $0105 ; Health
dl $7E09C6 : db $02 : dw $0011 ; Missiles
dl $7E09CA : db $02 : dw $0002 ; Supers
dl $7E09CE : db $02 : dw $0005 ; Pbs
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $0064 ; Samus X
dl $7E0AFA : db $02 : dw $019B ; Samus Y
dl $7ED82A : db $02 : dw $0101 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_lower_norfair_reverse_plowerhouse:
dw #preset_pkrd_lower_norfair_leaving_ridley ; Lower Norfair: Leaving Ridley
dl $7E078D : db $02 : dw $98BE ; DDB
dl $7E078F : db $02 : dw $0001 ; DoorOut Index
dl $7E079B : db $02 : dw $B37A ; MDB
dl $7E07F3 : db $02 : dw $0018 ; Music Bank
dl $7E07F5 : db $02 : dw $0005 ; Music Track
dl $7E090F : db $02 : dw $4000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0200 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $9800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $0101 ; Health
dl $7E0AF6 : db $02 : dw $02C9 ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dl $7ED8BA : db $02 : dw $D5F1 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_lower_norfair_wasteland_revisit:
dw #preset_pkrd_lower_norfair_reverse_plowerhouse ; Lower Norfair: Reverse Plowerhouse
dl $7E078D : db $02 : dw $9966 ; DDB
dl $7E079B : db $02 : dw $B62B ; MDB
dl $7E090F : db $02 : dw $9000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $4C00 ; Screen subpixel Y position
dl $7E09C2 : db $02 : dw $00D3 ; Health
dl $7E09CA : db $02 : dw $0006 ; Supers
dl $7E0AF6 : db $02 : dw $02DC ; Samus X
dw #$FFFF
.after
preset_pkrd_lower_norfair_kihunter_stairs_up:
dw #preset_pkrd_lower_norfair_wasteland_revisit ; Lower Norfair: Wasteland Revisit
dl $7E078D : db $02 : dw $9A3E ; DDB
dl $7E079B : db $02 : dw $B5D5 ; MDB
dl $7E090F : db $02 : dw $B200 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0500 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $E800 ; Screen subpixel Y position
dl $7E09C2 : db $02 : dw $00A4 ; Health
dl $7E09CE : db $02 : dw $0004 ; Pbs
dl $7E0AF6 : db $02 : dw $055B ; Samus X
dl $7E0AFA : db $02 : dw $009B ; Samus Y
dl $7ED91A : db $02 : dw $003A ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_lower_norfair_fire_flea_room:
dw #preset_pkrd_lower_norfair_kihunter_stairs_up ; Lower Norfair: Kihunter Stairs Up
dl $7E078D : db $02 : dw $9A26 ; DDB
dl $7E079B : db $02 : dw $B585 ; MDB
dl $7E090F : db $02 : dw $2000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $8800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $000F ; Screen Y position in pixels
dl $7E0AF6 : db $02 : dw $00B9 ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dw #$FFFF
.after
preset_pkrd_lower_norfair_springball_maze:
dw #preset_pkrd_lower_norfair_fire_flea_room ; Lower Norfair: Fire Flea Room
dl $7E078D : db $02 : dw $9A02 ; DDB
dl $7E078F : db $02 : dw $0002 ; DoorOut Index
dl $7E079B : db $02 : dw $B6EE ; MDB
dl $7E07C5 : db $02 : dw $BBBD ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2B6 ; GFX Pointers
dl $7E090F : db $02 : dw $1000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $6800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $000B ; Screen Y position in pixels
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $016D ; Samus X
dl $7ED91A : db $02 : dw $003B ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_lower_norfair_three_musketeers:
dw #preset_pkrd_lower_norfair_springball_maze ; Lower Norfair: Springball Maze
dl $7E078D : db $02 : dw $9A92 ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $B510 ; MDB
dl $7E07C5 : db $02 : dw $E4BD ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2B5 ; GFX Pointers
dl $7E090F : db $02 : dw $5000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $EC00 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E0AF6 : db $02 : dw $005D ; Samus X
dl $7ED91A : db $02 : dw $003C ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_lower_norfair_single_chamber_final:
dw #preset_pkrd_lower_norfair_three_musketeers ; Lower Norfair: Three Musketeers
dl $7E078D : db $02 : dw $99AE ; DDB
dl $7E079B : db $02 : dw $B656 ; MDB
dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $2C00 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $000B ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $006D ; Health
dl $7E0AF6 : db $02 : dw $0169 ; Samus X
dl $7ED91A : db $02 : dw $003D ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_lower_norfair_bubble_mountain_final:
dw #preset_pkrd_lower_norfair_single_chamber_final ; Lower Norfair: Single Chamber Final
dl $7E078D : db $02 : dw $9A4A ; DDB
dl $7E079B : db $02 : dw $AD5E ; MDB
dl $7E07F3 : db $02 : dw $0015 ; Music Bank
dl $7E090F : db $02 : dw $A000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $5C00 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $000D ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $0061 ; Health
dl $7E0AF6 : db $02 : dw $008B ; Samus X
dw #$FFFF
.after
preset_pkrd_lower_norfair_frog_speedway:
dw #preset_pkrd_lower_norfair_bubble_mountain_final ; Lower Norfair: Bubble Mountain Final
dl $7E078D : db $02 : dw $956A ; DDB
dl $7E078F : db $02 : dw $0002 ; DoorOut Index
dl $7E079B : db $02 : dw $AF72 ; MDB
dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0024 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $5800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C6 : db $02 : dw $000E ; Missiles
dl $7E09CA : db $02 : dw $0008 ; Supers
dl $7E09CE : db $02 : dw $0003 ; Pbs
dl $7E0AF6 : db $02 : dw $00C4 ; Samus X
dl $7ED91A : db $02 : dw $003E ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_lower_norfair_business_center_final:
dw #preset_pkrd_lower_norfair_frog_speedway ; Lower Norfair: Frog Speedway
dl $7E078D : db $02 : dw $97DA ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $B167 ; MDB
dl $7E07C3 : db $02 : dw $860B ; GFX Pointers
dl $7E07C5 : db $02 : dw $21C0 ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2C0 ; GFX Pointers
dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $EC00 ; Screen subpixel Y position
dl $7E0AF6 : db $02 : dw $002A ; Samus X
dw #$FFFF
.after
preset_pkrd_maridia_maridia_tube_revisit:
dw #preset_pkrd_lower_norfair_business_center_final ; Lower Norfair: Business Center Final
dl $7E078D : db $02 : dw $92EE ; DDB
dl $7E078F : db $02 : dw $0004 ; DoorOut Index
dl $7E079B : db $02 : dw $A6A1 ; MDB
dl $7E079F : db $02 : dw $0001 ; Region
dl $7E07C3 : db $02 : dw $A5AA ; GFX Pointers
dl $7E07C5 : db $02 : dw $5FBC ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2B3 ; GFX Pointers
dl $7E07F3 : db $02 : dw $0012 ; Music Bank
dl $7E07F5 : db $02 : dw $0003 ; Music Track
dl $7E090F : db $02 : dw $6000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position
dl $7E09C2 : db $02 : dw $0075 ; Health
dl $7E09C6 : db $02 : dw $0010 ; Missiles
dl $7E0A1C : db $02 : dw $009B ; Samus position/state
dl $7E0A1E : db $02 : dw $0000 ; More position/state
dl $7E0AF6 : db $02 : dw $0080 ; Samus X
dl $7E0AFA : db $02 : dw $0086 ; Samus Y
dw #$FFFF
.after
preset_pkrd_maridia_fish_tank:
dw #preset_pkrd_maridia_maridia_tube_revisit ; Maridia: Maridia Tube Revisit
dl $7E078D : db $02 : dw $A330 ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $CFC9 ; MDB
dl $7E079F : db $02 : dw $0004 ; Region
dl $7E07C3 : db $02 : dw $B130 ; GFX Pointers
dl $7E07C5 : db $02 : dw $3CBE ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2B8 ; GFX Pointers
dl $7E07F3 : db $02 : dw $001B ; Music Bank
dl $7E07F5 : db $02 : dw $0006 ; Music Track
dl $7E090F : db $02 : dw $2000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0102 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $8800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $05F4 ; Screen Y position in pixels
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $016C ; Samus X
dl $7E0AFA : db $02 : dw $068B ; Samus Y
dl $7ED91A : db $02 : dw $0040 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_maridia_mt_everest:
dw #preset_pkrd_maridia_fish_tank ; Maridia: Fish Tank
dl $7E078D : db $02 : dw $A3F0 ; DDB
dl $7E078F : db $02 : dw $0002 ; DoorOut Index
dl $7E079B : db $02 : dw $D0B9 ; MDB
dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $4000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $031F ; Screen Y position in pixels
dl $7E0AF6 : db $02 : dw $0186 ; Samus X
dl $7E0AFA : db $02 : dw $03BB ; Samus Y
dw #$FFFF
.after
preset_pkrd_maridia_crab_shaft:
dw #preset_pkrd_maridia_mt_everest ; Maridia: Mt Everest
dl $7E090F : db $02 : dw $F800 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0500 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $0044 ; Health
dl $7E0AF6 : db $02 : dw $05C4 ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dw #$FFFF
.after
preset_pkrd_maridia_botwoon_hallway:
dw #preset_pkrd_maridia_crab_shaft ; Maridia: Crab Shaft
dl $7E078D : db $02 : dw $A4C8 ; DDB
dl $7E079B : db $02 : dw $D5A7 ; MDB
dl $7E07C3 : db $02 : dw $E78D ; GFX Pointers
dl $7E07C5 : db $02 : dw $2EBE ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2B9 ; GFX Pointers
dl $7E07F5 : db $02 : dw $0005 ; Music Track
dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0001 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $FC00 ; Screen subpixel Y position
dl $7E09CA : db $02 : dw $0007 ; Supers
dl $7E09CE : db $02 : dw $0002 ; Pbs
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $009E ; Samus X
dl $7E0AFA : db $02 : dw $006B ; Samus Y
dl $7ED8C0 : db $02 : dw $8174 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0042 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_maridia_botwoon:
dw #preset_pkrd_maridia_botwoon_hallway ; Maridia: Botwoon Hallway
dl $7E078D : db $02 : dw $A72C ; DDB
dl $7E078F : db $02 : dw $0003 ; DoorOut Index
dl $7E079B : db $02 : dw $D617 ; MDB
dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0300 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $F800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0001 ; Screen Y position in pixels
dl $7E09CA : db $02 : dw $0007 ; Supers
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $03A2 ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dw #$FFFF
.after
preset_pkrd_maridia_botwoon_etank:
dw #preset_pkrd_maridia_botwoon ; Maridia: Botwoon
dl $7E078D : db $02 : dw $A774 ; DDB
dl $7E078F : db $02 : dw $0001 ; DoorOut Index
dl $7E079B : db $02 : dw $D95E ; MDB
dl $7E07F3 : db $02 : dw $002A ; Music Bank
dl $7E07F5 : db $02 : dw $0003 ; Music Track
dl $7E090F : db $02 : dw $F000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $EC00 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $00C6 ; Health
dl $7E09C6 : db $02 : dw $0014 ; Missiles
dl $7E09CA : db $02 : dw $0004 ; Supers
dl $7E09CE : db $02 : dw $0001 ; Pbs
dl $7E0AF6 : db $02 : dw $01CB ; Samus X
dl $7ED82C : db $02 : dw $0002 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_maridia_halfie_setup:
dw #preset_pkrd_maridia_botwoon_etank ; Maridia: Botwoon E-tank
dl $7E078D : db $02 : dw $A918 ; DDB
dl $7E079B : db $02 : dw $D7E4 ; MDB
dl $7E07F3 : db $02 : dw $001B ; Music Bank
dl $7E07F5 : db $02 : dw $0005 ; Music Track
dl $7E090F : db $02 : dw $E000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $9000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $001F ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $01F3 ; Health
dl $7E09C4 : db $02 : dw $01F3 ; Max helath
dl $7E09CA : db $02 : dw $0005 ; Supers
dl $7E0AF6 : db $02 : dw $0087 ; Samus X
dl $7E0AFA : db $02 : dw $009B ; Samus Y
dl $7ED882 : db $02 : dw $0100 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0043 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_maridia_draygon:
dw #preset_pkrd_maridia_halfie_setup ; Maridia: Halfie Setup
dl $7E078D : db $02 : dw $A7F8 ; DDB
dl $7E078F : db $02 : dw $0002 ; DoorOut Index
dl $7E079B : db $02 : dw $D78F ; MDB
dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $0400 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0200 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $0173 ; Health
dl $7E09CA : db $02 : dw $0003 ; Supers
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $0056 ; Samus X
dl $7E0AFA : db $02 : dw $028B ; Samus Y
dl $7ED8C2 : db $02 : dw $0C00 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0044 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_maridia_spikesuit_reverse_halfie:
dw #preset_pkrd_maridia_draygon ; Maridia: Draygon
dl $7E078D : db $02 : dw $A96C ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E090F : db $02 : dw $A000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $DC00 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $00C1 ; Health
dl $7E09C6 : db $02 : dw $0008 ; Missiles
dl $7E09CA : db $02 : dw $0001 ; Supers
dl $7E0A68 : db $02 : dw $0001 ; Flash suit
dl $7E0AF6 : db $02 : dw $003C ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dl $7ED82C : db $02 : dw $0003 ; Events, Items, Doors
dl $7ED8C2 : db $02 : dw $4C00 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0045 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_maridia_reverse_colosseum:
dw #preset_pkrd_maridia_spikesuit_reverse_halfie ; Maridia: Spikesuit Reverse Halfie
dl $7E0A68 : db $02 : dw $0000 ; Flash suit
dw #$FFFF
.after
preset_pkrd_maridia_reverse_halfie_climb:
dw #preset_pkrd_maridia_reverse_colosseum ; Maridia: Reverse Colosseum
dl $7E078D : db $02 : dw $A834 ; DDB
dl $7E079B : db $02 : dw $D72A ; MDB
dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $6000 ; Screen subpixel Y position
dl $7E09C2 : db $02 : dw $0051 ; Health
dl $7E0A68 : db $02 : dw $0000 ; Flash suit
dl $7E0AF6 : db $02 : dw $0037 ; Samus X
dw #$FFFF
.after
preset_pkrd_maridia_reverse_botwoon_etank:
dw #preset_pkrd_maridia_reverse_halfie_climb ; Maridia: Reverse Halfie Climb
dl $7E078D : db $02 : dw $A7E0 ; DDB
dl $7E079B : db $02 : dw $D913 ; MDB
dl $7E090F : db $02 : dw $C000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $4000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0200 ; Screen Y position in pixels
dl $7E09C6 : db $02 : dw $0007 ; Missiles
dl $7E09CA : db $02 : dw $0002 ; Supers
dl $7E0AF6 : db $02 : dw $00A4 ; Samus X
dl $7E0AFA : db $02 : dw $028B ; Samus Y
dw #$FFFF
.after
preset_pkrd_maridia_reverse_botwoon_hallway:
dw #preset_pkrd_maridia_reverse_botwoon_etank ; Maridia: Reverse Botwoon E-tank
dl $7E078D : db $02 : dw $A84C ; DDB
dl $7E079B : db $02 : dw $D95E ; MDB
dl $7E07F5 : db $02 : dw $0003 ; Music Track
dl $7E0913 : db $02 : dw $1000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E0AF6 : db $02 : dw $0025 ; Samus X
dl $7E0AFA : db $02 : dw $00BB ; Samus Y
dl $7ED91A : db $02 : dw $0046 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_maridia_reverse_crab_shaft:
dw #preset_pkrd_maridia_reverse_botwoon_hallway ; Maridia: Reverse Botwoon Hallway
dl $7E078D : db $02 : dw $A768 ; DDB
dl $7E079B : db $02 : dw $D5A7 ; MDB
dl $7E07F5 : db $02 : dw $0005 ; Music Track
dl $7E090F : db $02 : dw $8000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $E800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $00FF ; Screen Y position in pixels
dl $7E0AF6 : db $02 : dw $0068 ; Samus X
dl $7E0AFA : db $02 : dw $018B ; Samus Y
dl $7ED8C2 : db $02 : dw $6C00 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $0048 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_maridia_mt_everest_revisit:
dw #preset_pkrd_maridia_reverse_crab_shaft ; Maridia: Reverse Crab Shaft
dl $7E078D : db $02 : dw $A708 ; DDB
dl $7E079B : db $02 : dw $D1A3 ; MDB
dl $7E07C3 : db $02 : dw $B130 ; GFX Pointers
dl $7E07C5 : db $02 : dw $3CBE ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2B8 ; GFX Pointers
dl $7E07F5 : db $02 : dw $0006 ; Music Track
dl $7E090F : db $02 : dw $AFFF ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $3400 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0200 ; Screen Y position in pixels
dl $7E0AF6 : db $02 : dw $0071 ; Samus X
dl $7E0AFA : db $02 : dw $028B ; Samus Y
dw #$FFFF
.after
preset_pkrd_backtracking_red_brinstar_green_gate:
dw #preset_pkrd_maridia_mt_everest_revisit ; Maridia: Mt Everest Revisit
dl $7E078D : db $02 : dw $A42C ; DDB
dl $7E079B : db $02 : dw $D104 ; MDB
dl $7E090F : db $02 : dw $F000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $9800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $0079 ; Health
dl $7E09CA : db $02 : dw $0003 ; Supers
dl $7E0AF6 : db $02 : dw $0078 ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dw #$FFFF
.after
preset_pkrd_backtracking_crateria_kihunters_final:
dw #preset_pkrd_backtracking_red_brinstar_green_gate ; Backtracking: Red Brinstar Green Gate
dl $7E078D : db $02 : dw $90BA ; DDB
dl $7E078F : db $02 : dw $0002 ; DoorOut Index
dl $7E079B : db $02 : dw $962A ; MDB
dl $7E079F : db $02 : dw $0000 ; Region
dl $7E07C3 : db $02 : dw $F911 ; GFX Pointers
dl $7E07C5 : db $02 : dw $43BA ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2AF ; GFX Pointers
dl $7E07F3 : db $02 : dw $0012 ; Music Bank
dl $7E07F5 : db $02 : dw $0003 ; Music Track
dl $7E090F : db $02 : dw $E000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $4400 ; Screen subpixel Y position
dl $7E09CA : db $02 : dw $0002 ; Supers
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $006C ; Samus X
dl $7E0AFA : db $02 : dw $005B ; Samus Y
dw #$FFFF
.after
preset_pkrd_backtracking_parlor_return:
dw #preset_pkrd_backtracking_crateria_kihunters_final ; Backtracking: Crateria Kihunters Final
dl $7E078D : db $02 : dw $8AC6 ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $91F8 ; MDB
dl $7E07C3 : db $02 : dw $C629 ; GFX Pointers
dl $7E07C5 : db $02 : dw $7CBA ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2AD ; GFX Pointers
dl $7E07F3 : db $02 : dw $000C ; Music Bank
dl $7E07F5 : db $02 : dw $0005 ; Music Track
dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0399 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $0400 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0400 ; Screen Y position in pixels
dl $7E09C6 : db $02 : dw $0006 ; Missiles
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $0439 ; Samus X
dl $7E0AFA : db $02 : dw $04BB ; Samus Y
dw #$FFFF
.after
preset_pkrd_backtracking_terminator_revisit:
dw #preset_pkrd_backtracking_parlor_return ; Backtracking: Parlor Return
dl $7E078D : db $02 : dw $8916 ; DDB
dl $7E079B : db $02 : dw $92FD ; MDB
dl $7E07F3 : db $02 : dw $0009 ; Music Bank
dl $7E090F : db $02 : dw $6800 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $AC00 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E0A1C : db $02 : dw $008A ; Samus position/state
dl $7E0A1E : db $02 : dw $1504 ; More position/state
dl $7E0AF6 : db $02 : dw $0115 ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dl $7E0B3F : db $02 : dw $0104 ; Blue suit
dw #$FFFF
.after
preset_pkrd_backtracking_green_pirate_shaft_revisit:
dw #preset_pkrd_backtracking_terminator_revisit ; Backtracking: Terminator Revisit
dl $7E078D : db $02 : dw $895E ; DDB
dl $7E079B : db $02 : dw $990D ; MDB
dl $7E07C3 : db $02 : dw $F911 ; GFX Pointers
dl $7E07C5 : db $02 : dw $43BA ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2AF ; GFX Pointers
dl $7E090F : db $02 : dw $A680 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $01FB ; Screen Y position in pixels
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $005E ; Samus X
dl $7E0AFA : db $02 : dw $029B ; Samus Y
dl $7E0B3F : db $02 : dw $0000 ; Blue suit
dl $7ED91A : db $02 : dw $0049 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_backtracking_g4_hallway:
dw #preset_pkrd_backtracking_green_pirate_shaft_revisit ; Backtracking: Green Pirate Shaft Revisit
dl $7E078D : db $02 : dw $8BE6 ; DDB
dl $7E079B : db $02 : dw $99BD ; MDB
dl $7E090F : db $02 : dw $F000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $E400 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0600 ; Screen Y position in pixels
dl $7E09C6 : db $02 : dw $0005 ; Missiles
dl $7E09CA : db $02 : dw $0001 ; Supers
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $00BC ; Samus X
dl $7E0AFA : db $02 : dw $068B ; Samus Y
dl $7ED8B2 : db $02 : dw $6C01 ; Events, Items, Doors
dl $7ED91A : db $02 : dw $004B ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_backtracking_g4_elevator:
dw #preset_pkrd_backtracking_g4_hallway ; Backtracking: G4 Hallway
dl $7E078D : db $02 : dw $91F2 ; DDB
dl $7E078F : db $02 : dw $0002 ; DoorOut Index
dl $7E079B : db $02 : dw $A66A ; MDB
dl $7E07C3 : db $02 : dw $860B ; GFX Pointers
dl $7E07C5 : db $02 : dw $9CC0 ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2BC ; GFX Pointers
dl $7E07F5 : db $02 : dw $0006 ; Music Track
dl $7E090F : db $02 : dw $B000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $0800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $011F ; Screen Y position in pixels
dl $7E0AF6 : db $02 : dw $007B ; Samus X
dl $7E0AFA : db $02 : dw $019B ; Samus Y
dl $7ED820 : db $02 : dw $0FC1 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_tourian_tourian_elevator_room:
dw #preset_pkrd_backtracking_g4_elevator ; Backtracking: G4 Elevator
dl $7E078D : db $02 : dw $9222 ; DDB
dl $7E078F : db $02 : dw $0001 ; DoorOut Index
dl $7E079B : db $02 : dw $DAAE ; MDB
dl $7E079F : db $02 : dw $0005 ; Region
dl $7E07C3 : db $02 : dw $D414 ; GFX Pointers
dl $7E07C5 : db $02 : dw $EDBF ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2BA ; GFX Pointers
dl $7E07F3 : db $02 : dw $001E ; Music Bank
dl $7E07F5 : db $02 : dw $0005 ; Music Track
dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0238 ; Screen Y position in pixels
dl $7E09A6 : db $02 : dw $1007 ; Beams
dl $7E0A1C : db $02 : dw $009B ; Samus position/state
dl $7E0A1E : db $02 : dw $0000 ; More position/state
dl $7E0AF6 : db $02 : dw $0080 ; Samus X
dl $7E0AFA : db $02 : dw $02A8 ; Samus Y
dl $7ED90C : db $02 : dw $0100 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_tourian_metroids_1:
dw #preset_pkrd_tourian_tourian_elevator_room ; Tourian: Tourian Elevator Room
dl $7E078F : db $02 : dw $0002 ; DoorOut Index
dl $7E090F : db $02 : dw $4000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $F7FF ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0300 ; Screen Y position in pixels
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $0040 ; Samus X
dl $7E0AFA : db $02 : dw $038B ; Samus Y
dw #$FFFF
.after
preset_pkrd_tourian_metroids_2:
dw #preset_pkrd_tourian_metroids_1 ; Tourian: Metroids 1
dl $7E078D : db $02 : dw $A984 ; DDB
dl $7E078F : db $02 : dw $0000 ; DoorOut Index
dl $7E079B : db $02 : dw $DAE1 ; MDB
dl $7E090F : db $02 : dw $E000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $00A1 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $1400 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $0085 ; Health
dl $7E09C6 : db $02 : dw $0011 ; Missiles
dl $7E09CA : db $02 : dw $0003 ; Supers
dl $7E09CE : db $02 : dw $0002 ; Pbs
dl $7E0AF6 : db $02 : dw $012B ; Samus X
dl $7E0AFA : db $02 : dw $00AB ; Samus Y
dl $7ED822 : db $02 : dw $0021 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_tourian_metroids_3:
dw #preset_pkrd_tourian_metroids_2 ; Tourian: Metroids 2
dl $7E078D : db $02 : dw $A9B4 ; DDB
dl $7E078F : db $02 : dw $0001 ; DoorOut Index
dl $7E079B : db $02 : dw $DB31 ; MDB
dl $7E090F : db $02 : dw $D000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $011D ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $00DF ; Health
dl $7E09C6 : db $02 : dw $0014 ; Missiles
dl $7E09CA : db $02 : dw $0005 ; Supers
dl $7E09CE : db $02 : dw $0003 ; Pbs
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $00C1 ; Samus X
dl $7E0AFA : db $02 : dw $018B ; Samus Y
dl $7ED822 : db $02 : dw $0023 ; Events, Items, Doors
dl $7ED8C4 : db $02 : dw $0003 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_tourian_metroids_4:
dw #preset_pkrd_tourian_metroids_3 ; Tourian: Metroids 3
dl $7E078D : db $02 : dw $A9CC ; DDB
dl $7E079B : db $02 : dw $DB7D ; MDB
dl $7E090F : db $02 : dw $A000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0500 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $9C00 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $010E ; Health
dl $7E09CA : db $02 : dw $0009 ; Supers
dl $7E09CE : db $02 : dw $0005 ; Pbs
dl $7E0AF6 : db $02 : dw $05A7 ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dl $7ED822 : db $02 : dw $0027 ; Events, Items, Doors
dl $7ED8C4 : db $02 : dw $0007 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_tourian_giant_hoppers:
dw #preset_pkrd_tourian_metroids_4 ; Tourian: Metroids 4
dl $7E078D : db $02 : dw $A9E4 ; DDB
dl $7E079B : db $02 : dw $DBCD ; MDB
dl $7E090F : db $02 : dw $F000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $4C00 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $011F ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $01CC ; Health
dl $7E09CA : db $02 : dw $000A ; Supers
dl $7E0A1C : db $02 : dw $0027 ; Samus position/state
dl $7E0A1E : db $02 : dw $0508 ; More position/state
dl $7E0AF6 : db $02 : dw $0074 ; Samus X
dl $7E0AFA : db $02 : dw $01D0 ; Samus Y
dl $7ED822 : db $02 : dw $002F ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_tourian_baby_skip:
dw #preset_pkrd_tourian_giant_hoppers ; Tourian: Giant Hoppers
dl $7E078D : db $02 : dw $AA14 ; DDB
dl $7E079B : db $02 : dw $DC65 ; MDB
dl $7E07F3 : db $02 : dw $0045 ; Music Bank
dl $7E07F5 : db $02 : dw $0006 ; Music Track
dl $7E090F : db $02 : dw $0000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $0800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $01C2 ; Health
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $01D2 ; Samus X
dl $7E0AFA : db $02 : dw $00AB ; Samus Y
dl $7ED8C4 : db $02 : dw $000F ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_tourian_gedora_room:
dw #preset_pkrd_tourian_baby_skip ; Tourian: Baby Skip
dl $7E078D : db $02 : dw $AA44 ; DDB
dl $7E079B : db $02 : dw $DCFF ; MDB
dl $7E07F3 : db $02 : dw $001E ; Music Bank
dl $7E07F5 : db $02 : dw $0005 ; Music Track
dl $7E090F : db $02 : dw $CFFF ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $1000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $011F ; Screen Y position in pixels
dl $7E09CA : db $02 : dw $0009 ; Supers
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0AF6 : db $02 : dw $00BF ; Samus X
dl $7E0AFA : db $02 : dw $019B ; Samus Y
dl $7ED8C4 : db $02 : dw $00AF ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_tourian_rinka_shaft:
dw #preset_pkrd_tourian_gedora_room ; Tourian: Gedora Room
dl $7E078D : db $02 : dw $AA5C ; DDB
dl $7E079B : db $02 : dw $DDC4 ; MDB
dl $7E090F : db $02 : dw $C000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0300 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $8800 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09CA : db $02 : dw $0008 ; Supers
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $03DB ; Samus X
dl $7E0AFA : db $02 : dw $008B ; Samus Y
dl $7ED8C4 : db $02 : dw $01AF ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_tourian_zeb_skip:
dw #preset_pkrd_tourian_rinka_shaft ; Tourian: Rinka Shaft
dl $7E078D : db $02 : dw $AAA4 ; DDB
dl $7E079B : db $02 : dw $DDF3 ; MDB
dl $7E090F : db $02 : dw $3000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0000 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $0000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $021B ; Screen Y position in pixels
dl $7E09CA : db $02 : dw $0007 ; Supers
dl $7E0A1C : db $02 : dw $0006 ; Samus position/state
dl $7E0AF6 : db $02 : dw $0037 ; Samus X
dl $7E0AFA : db $02 : dw $028B ; Samus Y
dl $7ED8C4 : db $02 : dw $03AF ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_tourian_escape_room_3:
dw #preset_pkrd_tourian_zeb_skip ; Tourian: Zeb Skip
dl $7E078D : db $02 : dw $AAEC ; DDB
dl $7E079B : db $02 : dw $DE7A ; MDB
dl $7E07F3 : db $02 : dw $0024 ; Music Bank
dl $7E07F5 : db $02 : dw $0007 ; Music Track
dl $7E090F : db $02 : dw $7000 ; Screen subpixel X position.
dl $7E0913 : db $02 : dw $2400 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $00FA ; Screen Y position in pixels
dl $7E09A6 : db $02 : dw $1009 ; Beams
dl $7E09C2 : db $02 : dw $01B7 ; Health
dl $7E09C6 : db $02 : dw $0000 ; Missiles
dl $7E09CA : db $02 : dw $0000 ; Supers
dl $7E09CE : db $02 : dw $0000 ; Pbs
dl $7E0A1C : db $02 : dw $0001 ; Samus position/state
dl $7E0A1E : db $02 : dw $0008 ; More position/state
dl $7E0A76 : db $02 : dw $8000 ; Hyper beam
dl $7E0AF6 : db $02 : dw $00DF ; Samus X
dl $7E0AFA : db $02 : dw $018B ; Samus Y
dl $7ED820 : db $02 : dw $4FC5 ; Events, Items, Doors
dl $7ED82C : db $02 : dw $0203 ; Events, Items, Doors
dw #$FFFF
.after
preset_pkrd_tourian_climb_spark:
dw #preset_pkrd_tourian_escape_room_3 ; Tourian: Escape Room 3
dl $7E078D : db $02 : dw $AB1C ; DDB
dl $7E079B : db $02 : dw $DEDE ; MDB
dl $7E090F : db $02 : dw $B000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $00BA ; Screen X position in pixels
dl $7E0913 : db $02 : dw $C000 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $00F4 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $0199 ; Health
dl $7E0AF6 : db $02 : dw $0155 ; Samus X
dw #$FFFF
.after
preset_pkrd_tourian_escape_parlor:
dw #preset_pkrd_tourian_climb_spark ; Tourian: Climb Spark
dl $7E078D : db $02 : dw $AB34 ; DDB
dl $7E079B : db $02 : dw $96BA ; MDB
dl $7E079F : db $02 : dw $0000 ; Region
dl $7E07C3 : db $02 : dw $F911 ; GFX Pointers
dl $7E07C5 : db $02 : dw $43BA ; GFX Pointers
dl $7E07C7 : db $02 : dw $C2AF ; GFX Pointers
dl $7E090F : db $02 : dw $E000 ; Screen subpixel X position.
dl $7E0911 : db $02 : dw $0100 ; Screen X position in pixels
dl $7E0913 : db $02 : dw $6801 ; Screen subpixel Y position
dl $7E0915 : db $02 : dw $0000 ; Screen Y position in pixels
dl $7E09C2 : db $02 : dw $0106 ; Health
dl $7E0A1C : db $02 : dw $0002 ; Samus position/state
dl $7E0A1E : db $02 : dw $0004 ; More position/state
dl $7E0AF6 : db $02 : dw $01D7 ; Samus X
dl $7E0AFA : db $02 : dw $004B ; Samus Y
dl $7ED90C : db $02 : dw $FF00 ; Events, Items, Doors
dw #$FFFF
.after
| 45.894231 | 108 | 0.618688 |
2f6eacd62beba3ad2040c784ffa4d6c5981bb48a | 4,347 | asm | Assembly | Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2.log_12352_661.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2.log_12352_661.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/US/_zr_/i7-8650U_0xd2.log_12352_661.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 %r9
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0xd312, %rsi
lea addresses_normal_ht+0x11f56, %rdi
nop
nop
inc %r9
mov $93, %rcx
rep movsl
nop
nop
nop
inc %r11
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r14
push %rax
push %rbp
push %rbx
push %rcx
// Store
lea addresses_D+0x949a, %rcx
nop
nop
cmp %rbp, %rbp
movl $0x51525354, (%rcx)
sub %rbx, %rbx
// Faulty Load
lea addresses_US+0x1c826, %rax
nop
nop
nop
and $54802, %r14
movups (%rax), %xmm0
vpextrq $1, %xmm0, %r11
lea oracles, %rbp
and $0xff, %r11
shlq $12, %r11
mov (%rbp,%r11,1), %r11
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r14
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}}
{'00': 12352}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 56.454545 | 2,999 | 0.662756 |
285dfac65a2fd16ced99b26d42b8d44ad94284fa | 693 | asm | Assembly | oeis/052/A052980.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/052/A052980.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/052/A052980.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A052980: Expansion of (1 - x)/(1 - 2*x - x^3).
; Submitted by Christian Krause
; 1,1,2,5,11,24,53,117,258,569,1255,2768,6105,13465,29698,65501,144467,318632,702765,1549997,3418626,7540017,16630031,36678688,80897393,178424817,393528322,867954037,1914332891,4222194104,9312342245,20539017381,45300228866,99912799977,220364617335,486029463536,1071971727049,2364308071433,5214645606402,11501262939853,25366833951139,55948313508680,123397889957213,272162613865565,600273541239810,1323944972436833,2920052558739231,6440378658718272,14204702289873377,31329457138485985,69099292935690242
mov $2,1
mov $4,1
lpb $0
sub $0,1
add $2,$1
add $1,$4
mov $4,$2
add $2,$3
mov $3,$1
lpe
mov $0,$4
| 43.3125 | 500 | 0.795094 |
742e3de4eab349346a7b4c6c5ad50f19f56d6530 | 6,652 | a51 | Assembly | flash_util.a51 | kaytat/stoker-flash-utils | e90b158564bc75e86dfa10ccaad46e131dc46d8c | [
"MIT"
] | 1 | 2020-09-15T19:16:28.000Z | 2020-09-15T19:16:28.000Z | flash_util.a51 | kaytat/stoker-flash-utils | e90b158564bc75e86dfa10ccaad46e131dc46d8c | [
"MIT"
] | null | null | null | flash_util.a51 | kaytat/stoker-flash-utils | e90b158564bc75e86dfa10ccaad46e131dc46d8c | [
"MIT"
] | null | null | null | ;
; Copyright (c) 2013 kaytat
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to deal
; in the Software without restriction, including without limitation the rights
; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
; copies of the Software, and to permit persons to whom the Software is
; furnished to do so, subject to the following conditions:
;
; The above copyright notice and this permission notice shall be included in
; all copies or substantial portions of the Software.
;
; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
; THE SOFTWARE.
;
$include(tini_400.inc)
$include(ds80c400.inc)
$include(tinimacro.inc)
$include(apiequ.inc)
;
; Technically slush starts at 0x470100. The first 256 bytes are used
; by the ipconfig command to store network parameters. However, it's
; just easier to deal with addresses that start at a nice 64k boundary.
;
SLUSH_START_ADDRESS EQU 470000h
;
; The AMD part does not seem to care what the "tickle" address is,
; but leave this in there anyway.
;
FLASH_TICKLE0 EQU (SLUSH_START_ADDRESS or 5555h)
;
; Required initialization
;
reg_init:
clr a
ret
Native_erase_sector:
push DPX3
push DPH3
push DPL3
push DPX2
push DPH2
push DPL2
; Disable interrupts
clr ea
; Parameter 0 - flash addr
clr A
lcall NatLib_LoadPrimitive
mov DPX, R2
mov DPH, R1
mov DPL, R0
; Initialize tickle address pointer
mov DPS, #008h
mov DPTR, #FLASH_TICKLE0
; 1st Cycle
mov A, #0aah
movx @DPTR, A
nop
nop
nop
nop
; 2nd Cycle
mov A, #055h
movx @DPTR, A
nop
nop
nop
nop
; 3rd Cycle
mov A, #080h
movx @DPTR, A
nop
nop
nop
nop
; 4th Cycle
mov A, #0aah
movx @DPTR, A
nop
nop
nop
nop
; 5th Cycle
mov A, #055h
movx @DPTR, A
nop
nop
nop
nop
; 6th sector address and command 0x30
; Select the dptr0 and use that as the address
mov DPS, #000h
mov A, #030h
movx @DPTR, A
; Some delay before polling for status. Necessary?
nop
nop
nop
nop
; Wait for operation to complete by checking to make sure the
; byte is 0xff, the reset value.
_erase_sector__wait:
; Some delay before polling for status. Necessary?
nop
nop
nop
nop
movx A, @DPTR
cjne A, #0ffh, _erase_sector__wait
pop DPL2
pop DPH2
pop DPX2
pop DPL3
pop DPH3
pop DPX3
; Renable interrupts
setb EA
clr A
ret
Native_program_block:
push DPX3
push DPH3
push DPL3
push DPX2
push DPH2
push DPL2
; Disable interrupts
clr EA
; Parameter 0 - flash addr. Store temporarily in B1
clr A
lcall NatLib_LoadPrimitive
mov R2_B1, R2
mov R1_B1, R1
mov R0_B1, R0
; Parameter 1 - byte array
mov A, #001h
lcall NatLib_LoadJavaByteArray
mov DPX1, DPX
mov DPH1, DPH
mov DPL1, DPL
; Also store the byte array size into the proper bank. The NatLib_LoadJavaByteArray
; returns the byte array size in R{3:0}
mov R0_B3, R0
mov R1_B3, R1
mov R2_B3, R2
mov R3_B3, R3
; Setup flash addr
mov DPX, R2_B1
mov DPH, R1_B1
mov DPL, R0_B1
; Setup byte counter
mov DPL3, #000h
mov DPH3, #000h
mov DPX3, #000h
; Initialize tickle address pointer
mov DPS, #008h
mov DPTR, #FLASH_TICKLE0
; R1 - byte to write
_program_block__write_image_byte:
; Get the byte from SRAM by selecting the SRAM DPTR (DPTR1)
mov DPS, #001h
movx A, @DPTR
inc DPTR
mov R1, A
; Check against the current byte in flash
mov DPS, #0h
movx A, @DPTR
xrl A, R1
jz _program_block__check_write_image_done
; Write it
mov DPS, #008h
; 1st Cycle
mov A, #0aah
movx @DPTR, A
; 2nd Cycle
mov A, #55h
movx @DPTR, A
; 3rd Cycle
mov A, #0a0h
movx @DPTR, A
; 4th Cycle - put destination byte
mov DPS, #000h
mov A, R1
movx @DPTR, A
_program_block__write_image_byte_wait:
movx A, @DPTR
cjne A, R1_B0, _program_block__write_image_byte_wait
_program_block__check_write_image_done:
; Increment flash ptr
inc DPTR
; Increment byte counter
mov DPS, #009h
inc DPTR
; Check DPTR3 to see if all the bytes have been written
mov A, R0_B3
cjne A, DPL3, _program_block__write_image_byte
mov A, R1_B3
cjne A, DPH3, _program_block__write_image_byte
mov A, R2_B3
cjne A, DPX3, _program_block__write_image_byte
pop DPL2
pop DPH2
pop DPX2
pop DPL3
pop DPH3
pop DPX3
; Renable interrupts
setb EA
clr A
ret
;
; This is copied directly from reg.a51. The only modification
; is to assume a value of 1 for the parameter.
;
; Backlight - P3.7
; RS - P5.6
; R/W - P5.5
; E - P5.4
; Data - Port 6 and bit 4 is P3.4
;
Native_clr_display:
; Drive the bits low so that if they need to go high,
; a strong pullup will be used
mov a, P3
anl a, #0EFh
mov P3, a
mov P5, #08Fh
mov P6, #010h
; P6 = LCD[7-5,3-0] data with bit 4 set
; P3 = P3 with LCD[4]
;
; A == 0x01, for force a reset on the device
;
mov a, #001h
orl a, #010h
mov P6, a
mov a, R0
anl a, #010h
orl P3, a
; P5 = RS lo, R/W lo, E lo, other bits high.
; There hould be enough time for the setup time to be satisfied
; with just executing the instruction
mov P5, #08Fh
; P5 |= E bit
; E bits needs to stay high for 23 ns. Wait 2 machine cycles to be safe
mov P5, #09Fh
nop
nop
; P5 = RS lo, R/W hi, E lo, other bits high.
; The hold time should be satisifed without waiting
mov P5, #08Fh
; Return - the next time this is called, there should have
; been plenty of time elapsed to satisfy the LCD cycle time
clr a
ret
END
| 21.050633 | 88 | 0.627631 |
fbd89040fe99770ba0fe067f56fd3dbb88086338 | 5,162 | asm | Assembly | tasm/VERLABTEST.asm | isdimaggio/esercizi | 2f964ee02613644f79842219f4d2ad045052d379 | [
"Apache-2.0"
] | null | null | null | tasm/VERLABTEST.asm | isdimaggio/esercizi | 2f964ee02613644f79842219f4d2ad045052d379 | [
"Apache-2.0"
] | null | null | null | tasm/VERLABTEST.asm | isdimaggio/esercizi | 2f964ee02613644f79842219f4d2ad045052d379 | [
"Apache-2.0"
] | null | null | null | ;Copyright 2021 Lo Mele Vittorio
;
;Licensed under the Apache License, Version 2.0 (the "License");
;you may not use this file except in compliance with the License.
;You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
;Unless required by applicable law or agreed to in writing, software
;distributed under the License is distributed on an "AS IS" BASIS,
;WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;See the License for the specific language governing permissions and
;limitations under the License.
data segment
dieci db 10
n db ?
vetprimo db 13 dup(0)
vetsecondo db 13 dup(0)
somma db 0
tmp_primo db ?
tmp_vp db ?
tmp_vs db ?
m_dim db 13, 10, 'inserisci dimensione <=11 : $'
m_insprimo db 13, 10, 'inserisci elemento primo vettore : $'
m_inssec db 13, 10, 'inserisci elemento secondo vettore : $'
m_vinsprimo db 13, 10, 'visualizza elemento primo vettore : $'
m_vinssec db 13, 10, 'visualizza elemento secondo vettore : $'
m_risu db 13, 10, 'risultato : $'
data ends
code segment
assume cs:code, ds:data
start: mov ax, data ; inizio programma
mov ds, ax
e_dim: lea dx, m_dim ; punto 1
mov ah, 9
int 21h
mov ah, 1
int 21h
sub al, 30h
mul dieci
mov n, al
mov ah, 1
int 21h
sub al, 30h
add n, al
cmp n, 11
ja e_dim
mov cx, 0 ; carico il primo
mov cl, n
mov si, 0
e_load: lea dx, m_insprimo ; inserisci primo vet
mov ah, 9
int 21h
mov ah, 1
int 21h
sub al, 30h
mul dieci
mov bl, al
mov ah, 1
int 21h
sub al, 30h
add bl, al
mov [vetprimo+si], bl
mov tmp_primo, bl
lea dx, m_inssec ; inserisci secondo vet
mov ah, 9
int 21h
mov ah, 1
int 21h
sub al, 30h
mul dieci
mov bl, al
mov ah, 1
int 21h
sub al, 30h
add bl, al
mov [vetsecondo+si], bl
mov al, tmp_primo
mul bl
add somma, al
inc si
loop e_load
mov cx, 0
mov cl, n
mov si, 0
e_vis: lea dx, m_vinsprimo ; visualizzazione
mov ah, 9
int 21h
mov al, [vetprimo+si]
mov ah, 0
div dieci
mov bx, ax
mov dl, al
add dl, 30h
mov ah, 2
int 21h
mov dl, bh
add dl, 30h
mov ah, 2
int 21h
lea dx, m_vinssec ; visualizzazione
mov ah, 9
int 21h
mov al, [vetsecondo+si]
mov ah, 0
div dieci
mov bx, ax
mov dl, al
add dl, 30h
mov ah, 2
int 21h
mov dl, bh
add dl, 30h
mov ah, 2
int 21h
; fai le visualizzazioni
inc si
loop e_vis
; visualizza la somma
lea dx, m_risu
mov ah, 9
int 21h
mov al, somma
mov ah, 0
div dieci
mov bx, ax
mov dl, al
add dl, 30h
mov ah, 2
int 21h
mov dl, bh
add dl, 30h
mov ah, 2
int 21h
mov ah, 4ch ; fine programma
int 21h
code ends
end start | 32.062112 | 74 | 0.345021 |
48501df3bec01f96f420001ceabcebdd00cb6e13 | 7,385 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_562.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_notsx.log_21829_562.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_notsx.log_21829_562.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r15
push %r8
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x1c5ec, %r10
nop
nop
nop
sub %rbp, %rbp
movups (%r10), %xmm7
vpextrq $0, %xmm7, %r12
nop
and %rax, %rax
lea addresses_WT_ht+0x187ec, %r15
add %rbx, %rbx
mov (%r15), %r8d
nop
nop
nop
nop
dec %rbp
lea addresses_D_ht+0x164b4, %rsi
lea addresses_D_ht+0xa3c6, %rdi
nop
nop
nop
nop
inc %rbp
mov $104, %rcx
rep movsw
nop
nop
nop
nop
xor $29058, %r8
lea addresses_UC_ht+0x1baec, %r10
cmp $60945, %r8
movups (%r10), %xmm1
vpextrq $1, %xmm1, %r12
cmp $27999, %r15
lea addresses_WC_ht+0x1c2ec, %r15
clflush (%r15)
nop
nop
add %rbx, %rbx
mov $0x6162636465666768, %rdi
movq %rdi, (%r15)
nop
nop
nop
nop
nop
and %rdi, %rdi
lea addresses_WT_ht+0xfaec, %rsi
lea addresses_WT_ht+0xeaec, %rdi
nop
nop
nop
cmp %rax, %rax
mov $111, %rcx
rep movsw
nop
sub %rbp, %rbp
lea addresses_WC_ht+0xf93c, %rbp
nop
nop
nop
and %r15, %r15
mov $0x6162636465666768, %r10
movq %r10, %xmm3
movups %xmm3, (%rbp)
nop
nop
and %rbx, %rbx
lea addresses_UC_ht+0x1a6ec, %rsi
lea addresses_WT_ht+0x1e06c, %rdi
clflush (%rsi)
clflush (%rdi)
nop
nop
nop
lfence
mov $85, %rcx
rep movsb
add $64973, %rsi
lea addresses_normal_ht+0x1176c, %rsi
lea addresses_D_ht+0x13bcc, %rdi
nop
nop
xor %r10, %r10
mov $2, %rcx
rep movsl
nop
sub $15281, %r10
lea addresses_UC_ht+0x1e7ac, %r15
nop
add $34352, %rbp
mov (%r15), %r10w
nop
and $61914, %rax
lea addresses_normal_ht+0x1d488, %rsi
lea addresses_A_ht+0x1aaec, %rdi
add %rbp, %rbp
mov $76, %rcx
rep movsw
nop
add $39140, %rbx
lea addresses_WC_ht+0x1e0cc, %rdi
cmp $12876, %r10
and $0xffffffffffffffc0, %rdi
movntdqa (%rdi), %xmm2
vpextrq $0, %xmm2, %r15
nop
nop
nop
nop
inc %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r8
pop %r15
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r15
push %r8
push %rbp
push %rdx
push %rsi
// Store
lea addresses_PSE+0xeec, %r10
clflush (%r10)
xor $31522, %rsi
movw $0x5152, (%r10)
nop
nop
nop
nop
nop
cmp %rbp, %rbp
// Faulty Load
lea addresses_UC+0xfaec, %r10
nop
nop
sub %r8, %r8
movups (%r10), %xmm3
vpextrq $1, %xmm3, %rsi
lea oracles, %r10
and $0xff, %rsi
shlq $12, %rsi
mov (%r10,%rsi,1), %rsi
pop %rsi
pop %rdx
pop %rbp
pop %r8
pop %r15
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_UC', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 9}}
[Faulty Load]
{'src': {'type': 'addresses_UC', 'AVXalign': False, 'size': 16, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}}
{'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 10}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 10}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 4}}
{'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': True}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': True}}
{'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 6}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}}
{'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 16, 'NT': True, 'same': False, 'congruent': 5}, 'OP': 'LOAD'}
{'37': 21829}
37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37
*/
| 36.741294 | 2,999 | 0.658768 |
cc2bd8c41ff067e32c17ca40558a23b4d0368072 | 1,301 | asm | Assembly | src/kernel/arch/x86/cpu-context-switch.asm | narke/Aragveli | c130aeb84b136a6ec7bf92cb48530edde40ab285 | [
"MIT"
] | 4 | 2021-01-04T19:55:40.000Z | 2022-02-17T14:02:25.000Z | src/kernel/arch/x86/cpu-context-switch.asm | narke/Aragveli | c130aeb84b136a6ec7bf92cb48530edde40ab285 | [
"MIT"
] | null | null | null | src/kernel/arch/x86/cpu-context-switch.asm | narke/Aragveli | c130aeb84b136a6ec7bf92cb48530edde40ab285 | [
"MIT"
] | 1 | 2018-10-12T18:07:48.000Z | 2018-10-12T18:07:48.000Z | ; Copyright (c) 2017 Konstantin Tcholokachvili.
; All rights reserved.
; Use of this source code is governed by a MIT license that can be
; found in the LICENSE file.
section .text
global cpu_context_switch
cpu_context_switch:
; esp+64 arg2 = destination context
; esp+60 arg1 = source context
; esp+56 caller ip
pushf ; esp+52 (eflags)
push cs ; esp+48 (cs)
push dword resume_pc ; esp+44 (ip)
push 0 ; esp+40 (error code)
push ebp ; esp+36
push edi ; esp+32
push esi ; esp+28
push edx ; esp+24
push ecx ; esp+20
push ebx ; esp+16
push eax ; esp+12
sub esp, 2 ; esp+10 (alignment)
o16 push ss ; esp+8
o16 push ds ; esp+6
o16 push es ; esp+4
o16 push fs ; esp+2
o16 push gs ; esp
; Store the address of the saved context
mov ebx, [esp+60]
mov [ebx], esp
; Switching context by changing stack
mov esp, [esp+64]
; Restore CPU's context
o16 pop gs
o16 pop fs
o16 pop es
o16 pop ds
o16 pop ss
add esp, 2
pop eax
pop ebx
pop ecx
pop edx
pop esi
pop edi
pop ebp
add esp, 4 ; Ignore "error code"
; Restores eflags, cs and eip registers
iret ; Equivalent to: popfl ; ret
resume_pc:
; Bring back the context prior to cpu_context_switch call
; esp+8 arg2 = destination context
; esp+4 arg1 = source context
; esp caller ip
ret
| 20.650794 | 66 | 0.676403 |
e56397dc3bcc1ceb5068d695844ef2c088df5c91 | 274 | asm | Assembly | ACCIE.asm | Mohamed-94/Group-of-Assembly-Programs-Samples--8086-85-Processors-family- | 060422e19882bb32c35bf5b8d42aae29eee0d820 | [
"MIT"
] | 16 | 2018-07-20T03:11:03.000Z | 2021-12-14T11:18:36.000Z | ACCIE.asm | Mohamed-94/Group-of-Assembly-Programs-Samples--8086-85-Processors-family- | 060422e19882bb32c35bf5b8d42aae29eee0d820 | [
"MIT"
] | null | null | null | ACCIE.asm | Mohamed-94/Group-of-Assembly-Programs-Samples--8086-85-Processors-family- | 060422e19882bb32c35bf5b8d42aae29eee0d820 | [
"MIT"
] | 3 | 2018-07-20T03:11:08.000Z | 2020-09-18T18:57:53.000Z | .MODEL SMALL
.STACK 100H
.DATA
MSD DB "ACCIE$"
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
LEA DX,MSD
MOV AH,9
INT 21H
MOV DL,0DH
INT 21H
MOV AH,2
MOV CX,256
MOV DL,0
PRINT_TUCK:
INT 21H
INC DL
DEC CX
JNZ PRINT_TUCK
MOV AH,4CH
INT 21H
MAIN ENDP
END MAIN
| 10.538462 | 16 | 0.667883 |
1736c0b935e3ffd8a60b784e04e429214225e562 | 762 | asm | Assembly | oeis/015/A015197.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/015/A015197.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/015/A015197.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A015197: Sum of Gaussian binomial coefficients for q=11.
; Submitted by Christian Krause
; 1,2,14,268,19156,3961832,3092997464,7024809092848,60287817008722576,1505950784990730735392,142158530752430089391520224,39060769254069395008311334483648,40559566021977397260316290099710383936,122589507762615540584961533024472551444642432,1400226467638465218901776269621142551028372881193344,46553347972357494964742190171792940087665345258032870426368,5849093541816816665616547110843471695025167761679784463120890286336,2139113775272888732102783743384980272614402591604132554168496245612515287552
mov $1,$0
mov $0,0
add $1,1
mov $2,1
lpb $1
sub $1,1
mov $4,$2
mul $2,11
mul $4,$3
add $0,$4
sub $3,$4
add $3,$0
add $3,$2
lpe
mov $0,$3
div $0,121
add $0,1
| 34.636364 | 496 | 0.832021 |
ce2c4190b5ad8625d96e54851d2f6dfe16b39e19 | 7,072 | asm | Assembly | Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_20190_2242.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_20190_2242.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_20190_2242.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 %r14
push %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0xa96e, %rsi
lea addresses_UC_ht+0x1680a, %rdi
nop
nop
nop
sub %r8, %r8
mov $113, %rcx
rep movsb
nop
nop
nop
nop
sub %r14, %r14
lea addresses_UC_ht+0x4fbe, %rsi
lea addresses_WC_ht+0x136e, %rdi
nop
add %r10, %r10
mov $68, %rcx
rep movsw
nop
inc %r14
lea addresses_A_ht+0x14db6, %rsi
lea addresses_UC_ht+0x3be, %rdi
nop
sub $33487, %r9
mov $17, %rcx
rep movsl
nop
add %r9, %r9
lea addresses_WC_ht+0x18a0e, %rsi
lea addresses_WC_ht+0x136ee, %rdi
nop
cmp %r10, %r10
mov $88, %rcx
rep movsl
nop
nop
xor $29450, %r10
lea addresses_WT_ht+0x1d9c6, %r9
nop
sub %rcx, %rcx
mov (%r9), %r10
nop
nop
nop
nop
nop
and $25961, %r14
lea addresses_UC_ht+0x167be, %rcx
nop
nop
nop
add $52333, %rsi
mov $0x6162636465666768, %r8
movq %r8, (%rcx)
nop
nop
nop
nop
nop
add %r10, %r10
lea addresses_WC_ht+0x31be, %r14
nop
nop
nop
nop
nop
inc %r9
mov $0x6162636465666768, %rdi
movq %rdi, %xmm2
movups %xmm2, (%r14)
nop
nop
lfence
lea addresses_D_ht+0x1e4fe, %rsi
nop
inc %r10
movups (%rsi), %xmm3
vpextrq $0, %xmm3, %r9
nop
sub %rsi, %rsi
lea addresses_WC_ht+0x1694e, %rsi
lea addresses_D_ht+0x5bd6, %rdi
clflush (%rsi)
nop
nop
cmp %rax, %rax
mov $23, %rcx
rep movsq
nop
nop
nop
nop
add $36358, %r9
lea addresses_A_ht+0x7fbe, %r9
nop
nop
nop
nop
xor %rsi, %rsi
movb $0x61, (%r9)
nop
nop
nop
cmp %r9, %r9
lea addresses_D_ht+0xfd3e, %rax
nop
sub %r10, %r10
movw $0x6162, (%rax)
nop
nop
nop
nop
sub %rdi, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r8
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r13
push %r14
push %r15
push %r9
// Store
lea addresses_WT+0x175de, %r14
nop
nop
nop
and $39094, %r15
mov $0x5152535455565758, %r12
movq %r12, %xmm0
vmovntdq %ymm0, (%r14)
nop
nop
nop
cmp %r11, %r11
// Faulty Load
mov $0x7b15600000003be, %r11
nop
sub $1470, %r9
vmovups (%r11), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $0, %xmm1, %r15
lea oracles, %r14
and $0xff, %r15
shlq $12, %r15
mov (%r14,%r15,1), %r15
pop %r9
pop %r15
pop %r14
pop %r13
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 5, 'size': 32, 'same': False, 'NT': True}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': True}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 2, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 3, 'size': 8, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 10, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 9, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 6, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 5, 'size': 2, 'same': False, 'NT': False}}
{'00': 20190}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 35.537688 | 2,999 | 0.657664 |
25ba1dcb92d0577cc163aa1d6c0a87f7fbe2180e | 15,933 | asm | Assembly | include/macho_syscall.asm | Hiroshi123/bin_tools | 95929eb218a82e30c43ee5bd209301a24abebffa | [
"MIT"
] | null | null | null | include/macho_syscall.asm | Hiroshi123/bin_tools | 95929eb218a82e30c43ee5bd209301a24abebffa | [
"MIT"
] | 4 | 2019-02-27T05:41:26.000Z | 2020-07-16T00:24:24.000Z | include/macho_syscall.asm | Hiroshi123/bin_tools | 95929eb218a82e30c43ee5bd209301a24abebffa | [
"MIT"
] | null | null | null |
%define SYS_syscall 0
%define SYS_exit 1
%define SYS_fork 2
%define SYS_read 3
%define SYS_write 4
%define SYS_open 5
%define SYS_close 6
%define SYS_wait4 7
;; 8 old creat
%define SYS_link 9
%define SYS_unlink 10
;; 11 old execv
%define SYS_chdir 12
%define SYS_fchdir 13
%define SYS_mknod 14
%define SYS_chmod 15
%define SYS_chown 16
;; 17 old break
%define SYS_getfsstat 18
;; 19 old lseek
%define SYS_getpid 20
;; 21 old mount
;; 22 old umount
%define SYS_setuid 23
%define SYS_getuid 24
%define SYS_geteuid 25
%define SYS_ptrace 26
%define SYS_recvmsg 27
%define SYS_sendmsg 28
%define SYS_recvfrom 29
%define SYS_accept 30
%define SYS_getpeername 31
%define SYS_getsockname 32
%define SYS_access 33
%define SYS_chflags 34
%define SYS_fchflags 35
%define SYS_sync 36
%define SYS_kill 37
;; 38 old stat
%define SYS_getppid 39
;; 40 old lstat
%define SYS_dup 41
%define SYS_pipe 42
%define SYS_getegid 43
;; 44 old profil
;; 45 old ktrace
%define SYS_sigaction 46
%define SYS_getgid 47
%define SYS_sigprocmask 48
%define SYS_getlogin 49
%define SYS_setlogin 50
%define SYS_acct 51
%define SYS_sigpending 52
%define SYS_sigaltstack 53
%define SYS_ioctl 54
%define SYS_reboot 55
%define SYS_revoke 56
%define SYS_symlink 57
%define SYS_readlink 58
%define SYS_execve 59
%define SYS_umask 60
%define SYS_chroot 61
;; 62 old fstat
;; 63 used internally and reserved
;; 64 old getpagesize
%define SYS_msync 65
%define SYS_vfork 66
;; 67 old vread
;; 68 old vwrite
;; 69 old sbrk
;; 70 old sstk
;; 71 old mmap
;; 72 old vadvise
%define SYS_munmap 73
%define SYS_mprotect 74
%define SYS_madvise 75
;; 76 old vhangup
;; 77 old vlimit
%define SYS_mincore 78
%define SYS_getgroups 79
%define SYS_setgroups 80
%define SYS_getpgrp 81
%define SYS_setpgid 82
%define SYS_setitimer 83
;; 84 old wait */
%define SYS_swapon 85
%define SYS_getitimer 86
;; 87 old gethostname */
;; 88 old sethostname */
%define SYS_getdtablesize 89
%define SYS_dup2 90
;; 91 old getdopt */
%define SYS_fcntl 92
%define SYS_select 93
;; 94 old setdopt */
%define SYS_fsync 95
%define SYS_setpriority 96
%define SYS_socket 97
%define SYS_connect 98
;; 99 old accept */
%define SYS_getpriority 100
;; 101 old send */
;; 102 old recv */
;; 103 old sigreturn */
%define SYS_bind 104
%define SYS_setsockopt 105
%define SYS_listen 106
;; 107 old vtimes */
;; 108 old sigvec */
;; 109 old sigblock */
;; 110 old sigsetmask */
%define SYS_sigsuspend 111
;; 112 old sigstack */
;; 113 old recvmsg */
;; 114 old sendmsg */
;; 115 old vtrace */
%define SYS_gettimeofday 116
%define SYS_getrusage 117
%define SYS_getsockopt 118
;; 119 old resuba */
%define SYS_readv 120
%define SYS_writev 121
%define SYS_settimeofday 122
%define SYS_fchown 123
%define SYS_fchmod 124
;; 125 old recvfrom */
%define SYS_setreuid 126
%define SYS_setregid 127
%define SYS_rename 128
;; 129 old truncate */
;; 130 old ftruncate */
%define SYS_flock 131
%define SYS_mkfifo 132
%define SYS_sendto 133
%define SYS_shutdown 134
%define SYS_socketpair 135
%define SYS_mkdir 136
%define SYS_rmdir 137
%define SYS_utimes 138
%define SYS_futimes 139
%define SYS_adjtime 140
;; 141 old getpeername */
%define SYS_gethostuuid 142
;; 143 old sethostid */
;; 144 old getrlimit */
;; 145 old setrlimit */
;; 146 old killpg */
%define SYS_setsid 147
;; 148 old setquota */
;; 149 old qquota */
;; 150 old getsockname */
%define SYS_getpgid 151
%define SYS_setprivexec 152
%define SYS_pread 153
%define SYS_pwrite 154
%define SYS_nfssvc 155
;; 156 old getdirentries */
%define SYS_statfs 157
%define SYS_fstatfs 158
%define SYS_unmount 159
;; 160 old async_daemon */
%define SYS_getfh 161
;; 162 old getdomainname */
;; 163 old setdomainname */
;; 164 */
%define SYS_quotactl 165
;; 166 old exportfs */
%define SYS_mount 167
;; 168 old ustat */
%define SYS_csops 169
%define SYS_csops_audittoken 170
;; 171 old wait3 */
;; 172 old rpause */
%define SYS_waitid 173
;; 174 old getdents */
;; 175 old gc_control */
;; 176 old add_profil */
%define SYS_kdebug_typefilter 177
%define SYS_kdebug_trace_string 178
%define SYS_kdebug_trace64 179
%define SYS_kdebug_trace 180
%define SYS_setgid 181
%define SYS_setegid 182
%define SYS_seteuid 183
%define SYS_sigreturn 184
;; 185 old chud */
%define SYS_thread_selfcounts 186
%define SYS_fdatasync 187
%define SYS_stat 188
%define SYS_fstat 189
%define SYS_lstat 190
%define SYS_pathconf 191
%define SYS_fpathconf 192
;; 193 old getfsstat */
%define SYS_getrlimit 194
%define SYS_setrlimit 195
%define SYS_getdirentries 196
%define SYS_mmap 197
;; 198 old __syscall */
%define SYS_lseek 199
%define SYS_truncate 200
%define SYS_ftruncate 201
%define SYS_sysctl 202
%define SYS_mlock 203
%define SYS_munlock 204
%define SYS_undelete 205
;; 206 old ATsocket */
;; 207 old ATgetmsg */
;; 208 old ATputmsg */
;; 209 old ATsndreq */
;; 210 old ATsndrsp */
;; 211 old ATgetreq */
;; 212 old ATgetrsp */
;; 213 Reserved for AppleTalk */
;; 214 */
;; 215 */
%define SYS_open_dprotected_np 216
;; 217 old statv */
;; 218 old lstatv */
;; 219 old fstatv */
%define SYS_getattrlist 220
%define SYS_setattrlist 221
%define SYS_getdirentriesattr 222
%define SYS_exchangedata 223
;; 224 old checkuseraccess or fsgetpath */
%define SYS_searchfs 225
%define SYS_delete 226
%define SYS_copyfile 227
%define SYS_fgetattrlist 228
%define SYS_fsetattrlist 229
%define SYS_poll 230
%define SYS_watchevent 231
%define SYS_waitevent 232
%define SYS_modwatch 233
%define SYS_getxattr 234
%define SYS_fgetxattr 235
%define SYS_setxattr 236
%define SYS_fsetxattr 237
%define SYS_removexattr 238
%define SYS_fremovexattr 239
%define SYS_listxattr 240
%define SYS_flistxattr 241
%define SYS_fsctl 242
%define SYS_initgroups 243
%define SYS_posix_spawn 244
%define SYS_ffsctl 245
%define SYS_nfsclnt 247
%define SYS_fhopen 248
%define SYS_minherit 250
%define SYS_semsys 251
%define SYS_msgsys 252
%define SYS_shmsys 253
%define SYS_semctl 254
%define SYS_semget 255
%define SYS_semop 256
%define SYS_msgctl 258
%define SYS_msgget 259
%define SYS_msgsnd 260
%define SYS_msgrcv 261
%define SYS_shmat 262
%define SYS_shmctl 263
%define SYS_shmdt 264
%define SYS_shmget 265
%define SYS_shm_open 266
%define SYS_shm_unlink 267
%define SYS_sem_open 268
%define SYS_sem_close 269
%define SYS_sem_unlink 270
%define SYS_sem_wait 271
%define SYS_sem_trywait 272
%define SYS_sem_post 273
%define SYS_sysctlbyname 274
%define SYS_open_extended 277
%define SYS_umask_extended 278
%define SYS_stat_extended 279
%define SYS_lstat_extended 280
%define SYS_fstat_extended 281
%define SYS_chmod_extended 282
%define SYS_fchmod_extended 283
%define SYS_access_extended 284
%define SYS_settid 285
%define SYS_gettid 286
%define SYS_setsgroups 287
%define SYS_getsgroups 288
%define SYS_setwgroups 289
%define SYS_getwgroups 290
%define SYS_mkfifo_extended 291
%define SYS_mkdir_extended 292
%define SYS_identitysvc 293
%define SYS_shared_region_check_np 294
;; 295 old shared_region_map_np
%define SYS_vm_pressure_monitor 296
%define SYS_psynch_rw_longrdlock 297
%define SYS_psynch_rw_yieldwrlock 298
%define SYS_psynch_rw_downgrade 299
%define SYS_psynch_rw_upgrade 300
%define SYS_psynch_mutexwait 301
%define SYS_psynch_mutexdrop 302
%define SYS_psynch_cvbroad 303
%define SYS_psynch_cvsignal 304
%define SYS_psynch_cvwait 305
%define SYS_psynch_rw_rdlock 306
%define SYS_psynch_rw_wrlock 307
%define SYS_psynch_rw_unlock 308
%define SYS_psynch_rw_unlock2 309
%define SYS_getsid 310
%define SYS_settid_with_pid 311
%define SYS_psynch_cvclrprepost 312
%define SYS_aio_fsync 313
%define SYS_aio_return 314
%define SYS_aio_suspend 315
%define SYS_aio_cancel 316
%define SYS_aio_error 317
%define SYS_aio_read 318
%define SYS_aio_write 319
%define SYS_lio_listio 320
;; 321 old __pthread_cond_wait
%define SYS_iopolicysys 322
%define SYS_process_policy 323
%define SYS_mlockall 324
%define SYS_munlockall 325
;; 326
%define SYS_issetugid 327
%define SYS___pthread_kill 328
%define SYS___pthread_sigmask 329
%define SYS___sigwait 330
%define SYS___disable_threadsignal 331
%define SYS___pthread_markcancel 332
%define SYS___pthread_canceled 333
%define SYS___semwait_signal 334
;; 335 old utrace
%define SYS_proc_info 336
%define SYS_sendfile 337
%define SYS_stat64 338
%define SYS_fstat64 339
%define SYS_lstat64 340
%define SYS_stat64_extended 341
%define SYS_lstat64_extended 342
%define SYS_fstat64_extended 343
%define SYS_getdirentries64 344
%define SYS_statfs64 345
%define SYS_fstatfs64 346
%define SYS_getfsstat64 347
%define SYS___pthread_chdir 348
%define SYS___pthread_fchdir 349
%define SYS_audit 350
%define SYS_auditon 351
;; 352
%define SYS_getauid 353
%define SYS_setauid 354
;; 355 old getaudit
;; 356 old setaudit
%define SYS_getaudit_addr 357
%define SYS_setaudit_addr 358
%define SYS_auditctl 359
%define SYS_bsdthread_create 360
%define SYS_bsdthread_terminate 361
%define SYS_kqueue 362
%define SYS_kevent 363
%define SYS_lchown 364
;; 365 old stack_snapshot
%define SYS_bsdthread_register 366
%define SYS_workq_open 367
%define SYS_workq_kernreturn 368
%define SYS_kevent64 369
%define SYS___old_semwait_signal 370
%define SYS___old_semwait_signal_nocancel 371
%define SYS_thread_selfid 372
%define SYS_ledger 373
%define SYS_kevent_qos 374
%define SYS_kevent_id 375
;; 376
;; 377
;; 378
;; 379
%define SYS___mac_execve 380
%define SYS___mac_syscall 381
%define SYS___mac_get_file 382
%define SYS___mac_set_file 383
%define SYS___mac_get_link 384
%define SYS___mac_set_link 385
%define SYS___mac_get_proc 386
%define SYS___mac_set_proc 387
%define SYS___mac_get_fd 388
%define SYS___mac_set_fd 389
%define SYS___mac_get_pid 390
;; 391
;; 392
;; 393
%define SYS_pselect 394
%define SYS_pselect_nocancel 395
%define SYS_read_nocancel 396
%define SYS_write_nocancel 397
%define SYS_open_nocancel 398
%define SYS_close_nocancel 399
%define SYS_wait4_nocancel 400
%define SYS_recvmsg_nocancel 401
%define SYS_sendmsg_nocancel 402
%define SYS_recvfrom_nocancel 403
%define SYS_accept_nocancel 404
%define SYS_msync_nocancel 405
%define SYS_fcntl_nocancel 406
%define SYS_select_nocancel 407
%define SYS_fsync_nocancel 408
%define SYS_connect_nocancel 409
%define SYS_sigsuspend_nocancel 410
%define SYS_readv_nocancel 411
%define SYS_writev_nocancel 412
%define SYS_sendto_nocancel 413
%define SYS_pread_nocancel 414
%define SYS_pwrite_nocancel 415
%define SYS_waitid_nocancel 416
%define SYS_poll_nocancel 417
%define SYS_msgsnd_nocancel 418
%define SYS_msgrcv_nocancel 419
%define SYS_sem_wait_nocancel 420
%define SYS_aio_suspend_nocancel 421
%define SYS___sigwait_nocancel 422
%define SYS___semwait_signal_nocancel 423
%define SYS___mac_mount 424
%define SYS___mac_get_mount 425
%define SYS___mac_getfsstat 426
%define SYS_fsgetpath 427
%define SYS_audit_session_self 428
%define SYS_audit_session_join 429
%define SYS_fileport_makeport 430
%define SYS_fileport_makefd 431
%define SYS_audit_session_port 432
%define SYS_pid_suspend 433
%define SYS_pid_resume 434
%define SYS_pid_hibernate 435
%define SYS_pid_shutdown_sockets 436
;; 437 old shared_region_slide_np
%define SYS_shared_region_map_and_slide_np 438
%define SYS_kas_info 439
%define SYS_memorystatus_control 440
%define SYS_guarded_open_np 441
%define SYS_guarded_close_np 442
%define SYS_guarded_kqueue_np 443
%define SYS_change_fdguard_np 444
%define SYS_usrctl 445
%define SYS_proc_rlimit_control 446
%define SYS_connectx 447
%define SYS_disconnectx 448
%define SYS_peeloff 449
%define SYS_socket_delegate 450
%define SYS_telemetry 451
%define SYS_proc_uuid_policy 452
%define SYS_memorystatus_get_level 453
%define SYS_system_override 454
%define SYS_vfs_purge 455
%define SYS_sfi_ctl 456
%define SYS_sfi_pidctl 457
%define SYS_coalition 458
%define SYS_coalition_info 459
%define SYS_necp_match_policy 460
%define SYS_getattrlistbulk 461
%define SYS_clonefileat 462
%define SYS_openat 463
%define SYS_openat_nocancel 464
%define SYS_renameat 465
%define SYS_faccessat 466
%define SYS_fchmodat 467
%define SYS_fchownat 468
%define SYS_fstatat 469
%define SYS_fstatat64 470
%define SYS_linkat 471
%define SYS_unlinkat 472
%define SYS_readlinkat 473
%define SYS_symlinkat 474
%define SYS_mkdirat 475
%define SYS_getattrlistat 476
%define SYS_proc_trace_log 477
%define SYS_bsdthread_ctl 478
%define SYS_openbyid_np 479
%define SYS_recvmsg_x 480
%define SYS_sendmsg_x 481
%define SYS_thread_selfusage 482
%define SYS_csrctl 483
%define SYS_guarded_open_dprotected_np 484
%define SYS_guarded_write_np 485
%define SYS_guarded_pwrite_np 486
%define SYS_guarded_writev_np 487
%define SYS_renameatx_np 488
%define SYS_mremap_encrypted 489
%define SYS_netagent_trigger 490
%define SYS_stack_snapshot_with_config 491
%define SYS_microstackshot 492
%define SYS_grab_pgo_data 493
%define SYS_persona 494
;; 495
;; 496
;; 497
;; 498
%define SYS_work_interval_ctl 499
%define SYS_getentropy 500
%define SYS_necp_open 501
%define SYS_necp_client_action 502
%define SYS___nexus_open 503
%define SYS___nexus_register 504
%define SYS___nexus_deregister 505
%define SYS___nexus_create 506
%define SYS___nexus_destroy 507
%define SYS___nexus_get_opt 508
%define SYS___nexus_set_opt 509
%define SYS___channel_open 510
%define SYS___channel_get_info 511
%define SYS___channel_sync 512
%define SYS___channel_get_opt 513
%define SYS___channel_set_opt 514
%define SYS_ulock_wait 515
%define SYS_ulock_wake 516
%define SYS_fclonefileat 517
%define SYS_fs_snapshot 518
;; 519
%define SYS_terminate_with_payload 520
%define SYS_abort_with_payload 521
%define SYS_necp_session_open 522
%define SYS_necp_session_action 523
%define SYS_setattrlistat 524
%define SYS_net_qos_guideline 525
%define SYS_fmount 526
%define SYS_ntp_adjtime 527
%define SYS_ntp_gettime 528
%define SYS_os_fault_with_payload 529
%define SYS_kqueue_workloop_ctl 530
%define SYS___mach_bridge_remote_time 531
%define SYS_MAXSYSCALL 532
%define SYS_invalid 63
| 29.670391 | 46 | 0.711793 |
d6a4d736e98bfb1a7ec0f82588ba5a12d19c1952 | 1,251 | asm | Assembly | programs/oeis/134/A134758.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/134/A134758.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/134/A134758.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A134758: a(n) = A000984(n) + n.
; 1,3,8,23,74,257,930,3439,12878,48629,184766,705443,2704168,10400613,40116614,155117535,601080406,2333606237,9075135318,35345263819,137846528840,538257874461,2104098963742,8233430727623,32247603683124,126410606437777,495918532948130,1946939425648139,7648690600760468,30067266499541069,118264581564861454,465428353255261119,1832624140942590566,7219428434016265773,28453041475240576774,112186277816662845467,442512540276836779240,1746130564335626209869,6892620648693261354638,27217014869199032015639,107507208733336176461660,424784580848791721628881,1678910486211891090247362,6637553085023755473070843,26248505381684851188961844,103827421287553411369671165,410795449442059149332177086,1625701140345170250548615567,6435067013866298908421603148,25477612258980856902730428649,100891344545564193334812497306,399608854866744452032002440163,1583065848125949175357548128188,6272525058612251449529907677573,24857784491537440929618523018374,98527218530093856775578873054487,390590044887157789360330532465840,1548655265692941410446222812934569,6141219157058215937976400809912778,24356699707654619143838606602026779,96614908840363322603893139521372716,383291933432261050330199012527412893
mov $1,$0
mul $0,2
bin $0,$1
add $0,$1
| 156.375 | 1,176 | 0.920064 |
c63f54627430920087efe2612dd8ed31f56592ef | 4,369 | asm | Assembly | Games/CMonster (Breakout)/Source/save.asm | CiaranGruber/Ti-84-Calculator | 96742a4a2b9e21aa9d675575dc7e4f26365430c0 | [
"MIT"
] | 1 | 2019-03-31T11:49:12.000Z | 2019-03-31T11:49:12.000Z | Games/CMonster (Breakout)/Source/save.asm | CiaranGruber/Ti-84-Calculator | 96742a4a2b9e21aa9d675575dc7e4f26365430c0 | [
"MIT"
] | null | null | null | Games/CMonster (Breakout)/Source/save.asm | CiaranGruber/Ti-84-Calculator | 96742a4a2b9e21aa9d675575dc7e4f26365430c0 | [
"MIT"
] | 1 | 2020-03-09T13:21:19.000Z | 2020-03-09T13:21:19.000Z | ;############## CMonster by Patrick Davidson
;############## Read in the save game and erase it, sets carry if not found
Read_Files:
ld hl,saved_flag ; clear data
ld (hl),0
ld de,saved_flag+1
ld bc,data_end-data_start
ldir
ld hl,save_name
bcall(_Mov9ToOP1) ; copy (HL) to OP1
bcall(_ChkFindSym)
jr c,read_scores
#ifdef TI84CE
bcall(_ChkInRam)
#else
ld a,b
or a
#endif
jr z,its_not_archived_so_dont_unarchive_it
bcall(_Arc_Unarc)
ld hl,save_name
bcall(_Mov9ToOP1) ; copy (HL) to OP1
bcall(_ChkFindSym)
its_not_archived_so_dont_unarchive_it:
ld hl,save_identifier
ld b,8
inc de
inc de
compare_identifier:
ld a,(de)
cp (hl)
jr nz,erase_save_file
inc hl
inc de
djnz compare_identifier
ld (saved_flag),a
ex de,hl
ld de,saved_flag+1
ld bc,data_end-data_start
ldir
erase_save_file:
bcall(_ChkFindSym)
bcall(_DelVarArc)
read_scores:
ld de,high_scores
ld a,SCORE_COUNT
build_default_loop:
ld hl,default_high_score
ld bc,ENTRYLEN
ldir
dec a
jr nz,build_default_loop
ld b,SCORE_COUNT-1
ld de,high_scores+TABLE_SIZE-ENTRYLEN-SCORELEN-1
default_inc_loop:
push bc
ld hl,ENTRYLEN
add hl,de ; HL -> next score
ld bc,6
ldir ; copy next score over this one
ex de,hl
call Add_6_Digits_BCD ; double it (moves pointer back)
ld de,-ENTRYLEN
add hl,de
ex de,hl
pop bc
djnz default_inc_loop
ld hl,score_name
bcall(_Mov9ToOP1) ; copy (HL) to OP1
bcall(_ChkFindSym)
ret c
#ifdef TI84CE
bcall(_ChkInRam)
#else
ld a,b
or a
#endif
jr z,scores_not_archived_so_dont_unarchive_it
bcall(_Arc_Unarc)
ld hl,score_name
bcall(_Mov9ToOP1) ; copy (HL) to OP1
bcall(_ChkFindSym)
scores_not_archived_so_dont_unarchive_it:
ex de,hl
inc hl
inc hl
ld a,SCORE_COUNT
ld de,high_scores
read_scores_from_file_loop:
ld bc,ENTRYLEN-1
ldir
inc de
dec a
jr nz,read_scores_from_file_loop
ret
save_name:
.db AppVarObj,"CMonSave",0
save_identifier:
.db "CMON",5,26,82,7
score_name:
.db AppVarObj,"CMonHigh",0
default_high_score:
.db "PATRICK ANDREW DAVIDSON 000001",0
;############## Write out the save game file
Write_Files:
ld a,(saved_flag)
add a,a
jr nc,not_saving_game
ld hl,save_name
bcall(_Mov9ToOP1) ; copy (HL) to OP1
ld hl,8+data_end-data_start
bcall(_CreateAppVar)
ld hl,save_identifier
inc de
inc de
ld bc,8
ldir
ld hl,saved_flag+1
ld bc,data_end-data_start
ldir
ret
not_saving_game:
ld a,(saved_flag)
rra
rra
ret nc
ld hl,score_name
bcall(_Mov9ToOP1) ; copy (HL) to OP1
bcall(_ChkFindSym)
jr c,it_doesnt_exist_so_dont_delete_it
bcall(_DelVarArc)
it_doesnt_exist_so_dont_delete_it:
ld hl,TABLE_SIZE-SCORE_COUNT
bcall(_CreateAppVar)
ld a,SCORE_COUNT
ld hl,high_scores
inc de
inc de
write_score_file_loop:
ld bc,ENTRYLEN-1
ldir
inc hl
dec a
jr nz,write_score_file_loop
ret | 27.136646 | 80 | 0.475166 |
e6122704b483a844c2f0e240b10bcc0493ed710d | 1,123 | asm | Assembly | programs/oeis/164/A164072.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/164/A164072.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/164/A164072.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A164072: a(n) = 8*a(n-1) - 14*a(n-2) for n > 1; a(0) = 1, a(1) = 7.
; 1,7,42,238,1316,7196,39144,212408,1151248,6236272,33772704,182873824,990172736,5361148352,29026768512,157158071168,850889810176,4606905485056,24942786537984,135045615513088,731165912572928,3958688683400192,21433186691180544,116043851961841664,628286202018205696,3401675688679862272,18417398681184018432,99715729807954075648,539882256927056347136,2923037838105093718016,15825951107861960884224,85685079129424375021568,463917317525327547793408,2511747432390679132045312,13599137013770847387254784,73628632056697271249403904,398641138260786306573664256,2158328257292528655097659392,11685650122689220948749975552,63268605379418366418632572928,342549741317697838066560925696,1854637455229725574671631384576,10041403263390034864441198116864,54366301733904120870126745550848,294350768183772478858837190770688,1593677921195522138688923088453632,8628512614991362405487664036839424,46716610023193589302256389056364544,252933703575669640741223815935164416
mov $1,2
mov $2,1
lpb $0
sub $0,1
sub $1,$2
mul $1,7
add $2,$1
mul $1,2
lpe
div $1,2
mov $0,$1
| 74.866667 | 946 | 0.869991 |
fc3ce66b39071227f2bc03bf882db2b19053db16 | 584 | asm | Assembly | code/10/5.asm | GeekHades1/AssemblyCode | 4078d97d8e31093ff7b54b72869f77e340b98391 | [
"BSD-2-Clause"
] | 1 | 2018-07-11T12:35:45.000Z | 2018-07-11T12:35:45.000Z | code/10/5.asm | GeekHades1/AssemblyCode | 4078d97d8e31093ff7b54b72869f77e340b98391 | [
"BSD-2-Clause"
] | null | null | null | code/10/5.asm | GeekHades1/AssemblyCode | 4078d97d8e31093ff7b54b72869f77e340b98391 | [
"BSD-2-Clause"
] | null | null | null | ; 设计一个子程序 将小写字符转换成大写字母
assume cs:code
data segment
astr db 'welcome to asm!', 0dh,0ah, '$'
data ends
; 只有0dh的时候输出的结果
; WELCOME TO ASM!
; 只有0ah的时候输出的结果
; welcome to asm!
; WELCOME TO ASM!
code segment
start: mov ax, data
mov ds, ax
mov si, 0
mov cx, 14
; 先打印原来内容
call print
call translet
; 在打印转换内容
call print
mov ah, 4ch
int 21h
; 字符转换程序
; 将小写转换成大写
translet: sub byte ptr [si], 32
inc si
loop translet
ret
; 输出字符串ASTR
print: lea dx, astr
mov ah, 09h
int 21h
code ends
end start | 14.974359 | 40 | 0.59589 |
7101c6ccca9b0e2786c354cc9f6c68cfbf429eab | 5,979 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0xca_notsx.log_21829_1575.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0xca_notsx.log_21829_1575.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0xca_notsx.log_21829_1575.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 %r15
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x12248, %rdi
nop
nop
add $28085, %r13
mov $0x6162636465666768, %r15
movq %r15, (%rdi)
nop
nop
dec %rdi
lea addresses_D_ht+0xe398, %rsi
lea addresses_normal_ht+0x3d98, %rdi
and $27224, %rax
mov $41, %rcx
rep movsq
nop
nop
nop
cmp $41498, %rcx
lea addresses_A_ht+0x9560, %rsi
lea addresses_A_ht+0x3770, %rdi
nop
nop
nop
nop
nop
dec %r9
mov $68, %rcx
rep movsl
nop
cmp %r9, %r9
lea addresses_A_ht+0xc198, %rdi
nop
nop
nop
nop
dec %rsi
mov (%rdi), %r13
nop
nop
nop
nop
nop
xor $50708, %r9
lea addresses_UC_ht+0x13f18, %r9
nop
add $4049, %rax
mov $0x6162636465666768, %rcx
movq %rcx, (%r9)
nop
nop
nop
xor %r15, %r15
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r15
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r15
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
// Store
lea addresses_WC+0x17571, %r13
and %rdi, %rdi
mov $0x5152535455565758, %r15
movq %r15, %xmm3
vmovups %ymm3, (%r13)
nop
nop
xor %rbp, %rbp
// REPMOV
lea addresses_WT+0xf8c, %rsi
lea addresses_A+0x9d98, %rdi
nop
nop
nop
nop
nop
xor $33607, %r13
mov $111, %rcx
rep movsb
nop
nop
nop
nop
sub $30863, %rcx
// Load
lea addresses_normal+0xdd98, %r15
nop
nop
nop
nop
nop
cmp $48140, %rbx
movb (%r15), %r13b
nop
nop
inc %rsi
// Faulty Load
lea addresses_normal+0xdd98, %rcx
nop
nop
nop
nop
nop
dec %r15
mov (%rcx), %rbx
lea oracles, %rbp
and $0xff, %rbx
shlq $12, %rbx
mov (%rbp,%rbx,1), %rbx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r15
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': False, 'type': 'addresses_WC'}, 'OP': 'STOR'}
{'src': {'congruent': 2, 'same': False, 'type': 'addresses_WT'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_A'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 3, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 37.136646 | 2,999 | 0.659642 |
b2a0e4df065c56dcc44a2b78df0ae4d12e1895da | 417 | asm | Assembly | demo1.asm | Riverxik/HackAssemblyTranslator | 836ce154ddafbf0b8199b3ee37002d99d0c68620 | [
"MIT"
] | null | null | null | demo1.asm | Riverxik/HackAssemblyTranslator | 836ce154ddafbf0b8199b3ee37002d99d0c68620 | [
"MIT"
] | 1 | 2021-03-05T09:42:26.000Z | 2021-03-05T09:42:26.000Z | demo1.asm | Riverxik/HackAssemblyTranslator | 836ce154ddafbf0b8199b3ee37002d99d0c68620 | [
"MIT"
] | null | null | null | // multiply two numbers
// RAM[2] = RAM[0] * RAM[1]
// Clear possible result cache from last iteration.
@R2
M = 0
// get first operand
@R0
D = M
// if (i == 0) { goto end; } // Actually i = first operand
(IF)
@i
M = D
M;JEQ
(LOOP)
// Get second operand
@R1
D = M
// Calculate R2+=R2;
@R2
M = M + D
// Decrement i (first operand);
@i
D = M
D = D - 1
M = D
// goto if
@IF
0;JMP
// end of the program.
(END)
@END
0;JMP | 12.264706 | 58 | 0.585132 |
c5ef0cd37b80b208b7bcaac7d91aff4050ab0d28 | 129 | asm | Assembly | div_int1.asm | wang-zhuoran/MIPS | 634bb6476b7b63584ff841893543f32be54c69c2 | [
"MIT"
] | null | null | null | div_int1.asm | wang-zhuoran/MIPS | 634bb6476b7b63584ff841893543f32be54c69c2 | [
"MIT"
] | null | null | null | div_int1.asm | wang-zhuoran/MIPS | 634bb6476b7b63584ff841893543f32be54c69c2 | [
"MIT"
] | null | null | null | .data
.text
addi $t0, $zero, 30
addi $t1, $zero, 5
div $s0, $t0, $t1
# Print
li $v0, 1
add $a0, $zero, $s0
syscall
| 9.923077 | 20 | 0.527132 |
fc5b8afe74c157504eebf8098dfe34fba32956d6 | 15,145 | asm | Assembly | consoles/microvision/src/system_start.asm | tcr/paxconsola | 0fca2fd3fe131a8f522b7e50f56c7e7897d342bc | [
"MIT"
] | 6 | 2020-01-15T07:25:07.000Z | 2021-12-27T23:45:44.000Z | consoles/microvision/src/system_start.asm | tcr/paxconsola | 0fca2fd3fe131a8f522b7e50f56c7e7897d342bc | [
"MIT"
] | 1 | 2021-08-30T04:15:47.000Z | 2021-08-30T04:15:47.000Z | consoles/microvision/src/system_start.asm | tcr/paxconsola | 0fca2fd3fe131a8f522b7e50f56c7e7897d342bc | [
"MIT"
] | 1 | 2020-01-10T16:10:10.000Z | 2020-01-10T16:10:10.000Z | ; ***********************************************************************************************************************************************
; ***********************************************************************************************************************************************
;
; Microvision System Code
; =======================
;
; Functionality:
;
; LCD Interface : bit writing, polarity reversal, update, number font generation, number area clear, number screen rendering.
; Speaker : Sound managed through update (overall pitch) and polarity reversal (length)
; Other : Random Number Generation
;
; Pages Occupied:
; Page 15 ($3C0), 0 ($000), 1 ($040), 2 ($080)
;
; Written by Paul Robson January 2014
;
; ***********************************************************************************************************************************************
; ***********************************************************************************************************************************************
HWNotDataClock = 7 ; R Latch connected to not- dataclock on LCD
HWLatchPulse = 6 ; R Latch connected to Latch Pulse on LCD
HWKeyLeftCol = 10 ; Keyboard column selection R Latches
HWKeyMiddleCol = 9
HWKeyRightCol = 8
HWSpeaker = 0 ; Speaker line
; Page 0 of RAM Allocation
; ========================
; 0-3 Lookup Table (8,4,2,1)
; 4 Sound Timer - off when zero
; 5 Pitch
; 6 Pitch Counter - adds Pitch to Pitch Counter, bit 3 is copied to the sound bit
; 7 Temporary value used by WriteBits routine. Note that WriteBitsX routines can operate with X register non zero
; provided memory location (X,7) is kept as this will be overwritten.
; 8 Line pointer (y position on screen)
; 9 Offset pointer (in page X+4)
; 10,11 Seed values for the 4 bit RNG.
OSDSoundTimer = 4 ; Non-zero for sound to play - decremented when > zero ever polarity reversal (frame)
OSDPitch = 5 ; Pitch - added to PitchCounter every time Address Latch->Holding latch is performed
__PitchCounter = 6 ; Bit 3 of the PitchCounter is mirrored to the speaker line.
__LinePointer = 8
__OffsetPointer = 9
__XNRandom = 10 ; Random Number seeds.
__CNRandom = 11
; ***********************************************************************************************************************************************
;
; Create/Update Digit Pattern for Row X : X = 4..7. Pattern# is in (X,0), data starts at (X,1)
;
; (Note: all bit patterns are reversed, assuming BlockBuster PLA + Wiring)
; ***********************************************************************************************************************************************
; Page 0 ($000) [1 byte spare]
; ***********************************************************************************************************************************************
org 0h
OSCreateGraphicY ; Use graphic Y in column X
tya
OSCreateGraphicA ; Use graphic A in column X
tcy 0 ; Store A in offset 0
tam
OSUpdateGraphic ; Update image in column X
tcy 0 ; Start at location zero.
tma ; Load the character value
tcy 1 ; Point to the store area.
tam ; Store it in M(X,Y)
a6aac ; is it >= 10
br __CGExit1 ; if so, exit now after erasing the tam before
mnez ; If non zero goto 1-9 code
br __CG1To9
tcmiy 7 ; Output a zero. ***
tcmiy 5 ; * *
tcmiy 5 ; * *
__CG0b
tcmiy 5 ; * *
__CG0a
tcmiy 7 ; ***
br __CGExit
__CG1To9 ; M(X,Y) contains the number
tma ; Load into A
a11aac ; Will cause carry to be set if 5,6,7,8,9
br __CG5To9
__CG1To4 ; Process 1 to 4.
dman ; Now 0-3 representing 1-4
cpaiz ; Now S will be set if it was 0 (was originally 1)
br __CG1 ; So draw the 1 code if so, a vertical line.
tma ; Otherwise, reload the number from A, it is 2,3 or 4.
a12aac ; This will cause a carry if it was originally 4
br __CG4 ; If so , do 4 code. Now it is 2 or 3 (now A = 14 and 15 for these)
tcmiy 7 ; So do *** which is the top 3 lines for both 2 and 3.
tcmiy 4 ; then *
tcmiy 7 ; then ***
iac ; Carry will be set if it is 3 (it was 15), in which case do the tail to 5 (backwards L)
br __CG5a
tcmiy 1 ; do *.. then solid tail and exit (e.g. bottom rows of 2) (e.g. forwards L)
br __CG0a
__CG4 ; Output a '4'.
tcmiy 5 ; *.*
tcmiy 5 ; *.*
tcmiy 7 ; ***
br __CG1a ; Use last two lines of 1 code to output the rest of the 4.
__CG1 ; Output a '1'.
tcmiy 4
__CG1b ; 4 x ..*
tcmiy 4
tcmiy 4
__CG1a ; 2 x ..*
tcmiy 4
tcmiy 4
br __CGExit
__CG5To9 ; Do 5,6,7,8,9, represented by 0,1,2,3,4 at this point due to the A11AAC.
tcmiy 7 ; always a top line *** for 5-9.
a14aac ; will drop through if 5 or 6 (14 and 15), 7,8,9 are 0,1,2.
br __CG7To9
tcmiy 1 ; Output *.. - these are common for both 5 and 6.
tcmiy 7 ; Output ***
iac ; Will set carry if it was 6 (6 -> 1 -> 15 after a11aac and a15aac)
br __CG0b ; In which case draw the bottom two lines of '0'
__CG5a
tcmiy 4 ; Draw ..* - this is the reverse L and the bottom two lines of '5'
br __CG0a ; Draw Bottom line and exit.
__CG7To9
cpaiz ; (0,1,2 representing 7,8,9). S will be set if A was zero following cpaiz.
br __CG1b ; In which case it was 7, so draw the tail (4 x ..*)
tcmiy 5 ; Draw *.* which are commonalities for 8 and 9.
tcmiy 7 ; Draw ***
iac ; if it was 8, then draw the *.* and *** e.g. bottom of 8
br __CG0b
br __CG5a ; Draw tail of 9
__CGExit1 ; >= 10, a value was stored though so clear it
tcmiy 0
__CGExit
tcy 0 ; Load current value into A
tma
retn ; End of routine.
; ***********************************************************************************************************************************************
;
; Render the text/number display.
;
; On entry, Y contains the vertical position of the top line of the text. This needs a label 'RenderTextExit' to be defined as this is a
; jump in, jump out routine *not* a subroutine, as it uses subroutines and we only have one level.
;
; This does the *whole* of the rendering including polarity switching.
;
; ***********************************************************************************************************************************************
; Page 1 ($040) [1 byte spare]
; ***********************************************************************************************************************************************
org 040h
OSRenderTextDisplay
tya
ldx 0 ; Point to page zero
tcy __LinePointer ; Write vertical screen position to line pointer
tamiyc
tcmiy 1 ; Write offset (initially 1) to offset pointer
call OSSwitchPolarity ; Switch polarity, start of frame.
__RTDLoop
tcy __LinePointer ; Read line pointer
lcall OSWriteBitsM ; and write that column value.
call __RTDNibble2 ; Read offset pointer into Y
ldx 4 ; Output nibble from 4,5,6 and 7.
call __RTDNibble ; offset pointer is reloaded on exit.
ldx 5
call __RTDNibble
ldx 6
call __RTDNibble
ldx 7
call __RTDNibble
lcall OSUpdateDisplay ; Update the display.
tcy __LinePointer ; Bump line pointer
imac
tamiyc ; Save and point to offset pointer
imac ; Read and increment and update
tam ; Write back
tay ; Put in Y
ynec 6 ; Do for offsets 1-5.
br __RTDLoop
lbr OSExternalRenderTextExit ; Exit the rendering.
__RTDNibble
tma ; Read the (X,Offset) into
tdo ; Put on output lines.
ldx 0 ; Back to page 0.
tcy HWNotDataClock ; now controlling the data clock
rstr ; 1->0->1 pulse on data clock
setr
__RTDNibble2
tcy __OffsetPointer ; Read the offset pointer into Y for next time
tmy
retn
; ***********************************************************************************************************************************************
;
; Call to switch polarity. Leaves !DC = 0 on exit, so that the next word latch (a rising edge on !DC) clocks in the data
; at the right time - setting it back to 1 would cause a clock here. Decrement the sound timer if it is greater than zero.
;
; ***********************************************************************************************************************************************
OSSwitchPolarity
ldx 0
tcy OSDSoundTimer ; Point Y to sound timer
dman ; Load and decrement, S set if wasn't zero.
br __SPNotZero
cla ; If was zero, leave it at zero
__SPNotZero
tam ; Write it back.
tcy HWLatchPulse ; On Entry, !DC = 1, LP = 0
setr ; !DC = 1, LP = 1 - copies the addressed latches to the holding latches (no effect)
tcy HWNotDataClock ; set !dataclock to 0
rstr
tcy HWLatchPulse ; Falling Edge on Latch Pulse with !DC = 0, toggles polarity
rstr
retn ; Leave !DC = 0 for latching next word.
; ***********************************************************************************************************************************************
;
; Clear the display space to 0 (digit) and all spaces
;
; ***********************************************************************************************************************************************
OSClearDisplaySpace
tcy 5 ; Start at offset 5
cla ; Value to write out
__CDSLoop
ldx 4 ; Write to bank 4,5,6,7 in turn.
tam
ldx 5
tam
ldx 6
tam
ldx 7
tamdyn ; Keep doing until Y goes -ve
br __CDSLoop
retn
; ***********************************************************************************************************************************************
;
; Random Number Generator (preserves Y), sets X to zero.
;
; ***********************************************************************************************************************************************
; Page 2 ($080) [1 byte spare]
; ***********************************************************************************************************************************************
org 080h
OSRandomNumber
ldx 0 ; Access page 0.
tya ; Save Y in NotDataClock temp
tcy HWNotDataClock
tam
tcy __XNRandom ; read XNext
tma ; A = XNext value
tcy __CNRandom ; Y points to CNext
alem ; S set if XNext <= CNext
br __OSRLNoDecrement ; so clear if CNext < XNext
dan ; so A = XNext-1 if CNext < XNext
__OSRLNoDecrement
xma ; now : A is old CNext, CNext is XNext maybe -1
tcy __XNRandom ; now calculate XNext := XNext + old CNext + 1
amaac ; add XNext to old CNext
iac ; add one
tam ; write back to XNext
tcy HWNotDataClock ; restore Y
tmy
retn
; ***********************************************************************************************************************************************
;
; Same as render text display but calls OSUpdateGraphic on each bank first
;
; ***********************************************************************************************************************************************
OSUpdateAllAndRenderTextDisplay
ldx 0 ; Save Y (vertical position) in NotDataClock temp in bank 0
tya
tcy HWNotDataClock
tam
ldx 4 ; Update 4 banks
lcall OSUpdateGraphic
ldx 5
lcall OSUpdateGraphic
ldx 6
lcall OSUpdateGraphic
ldx 7
lcall OSUpdateGraphic
ldx 0 ; Restore vertical position
tcy HWNotDataClock
tmy
lbr OSRenderTextDisplay ; and then render the text
; ***********************************************************************************************************************************************
;
; Add 1, 10, 100 to current 'score' in banks 4,5,6,7 - if used as score.
;
; These routines are jump in jump out routines.
;
; ***********************************************************************************************************************************************
OSIncrementHundred
tcy 1 ; Jump into hundreds
br __Increment100
OSIncrementTen
tcy 1 ; Jump into tens
br __Increment10
OSIncrementOne
ldx 7 ; Start at least significant digit
tcy 1 ; Carry forward 1 to start with
call __Increment ; Add into first digit, carry out is in Y
__Increment10
ldx 6 ; tens
call __Increment
__Increment100
ldx 5 ; hundreds
call __Increment
ldx 4 ; thousands
call __Increment
lbr OSExternalIncrementExit
; Add Y to (X,0) - fix for decimal - Y is carry out
__Increment
tya ; Save carry forward in A
tcy 0 ; Point to digit (e.g. M(X,0))
amaac ; add current digit to the carry forward
tam ; Write it back to M(X,0)
a6aac ; add 6, S if overflow (e.g. it was 10, decimal carry)
br __Overflow
retn ; No overflow, return Y = 0 e.g. no carry forward.
__Overflow
tcmiy 0 ; reset current digit to zero, set Y to 1 carry forward
retn ; and exit - handy instruction :)
; ***********************************************************************************************************************************************
;
; Start of Main Program
;
; ***********************************************************************************************************************************************
org 0c0h
__StartProgram
; Updates
;
; 17-1-14 Changes OSUpdateDisplay and OSSwitchPolarity to set X = 0 at the start, pretty much compulsory.
; (all change X except OSWriteBits* which can work in any page if you sacrifice or preserve (X,7))
;
| 41.26703 | 145 | 0.440938 |
1aec10dbd2a8b22d7fa7c1ebe607cf1cefd05dc5 | 318 | asm | Assembly | code/hello_world/linux/helloworld.asm | HudsonSchumaker/x86_64-NSAM | 833d27cdb76775050192079c1b1f7d657d41f712 | [
"MIT"
] | null | null | null | code/hello_world/linux/helloworld.asm | HudsonSchumaker/x86_64-NSAM | 833d27cdb76775050192079c1b1f7d657d41f712 | [
"MIT"
] | null | null | null | code/hello_world/linux/helloworld.asm | HudsonSchumaker/x86_64-NSAM | 833d27cdb76775050192079c1b1f7d657d41f712 | [
"MIT"
] | null | null | null | ; hello_world.asm
; prints hello, world! using syscall
; Hudson Schumaker
bits 64
section .data
msg db "Hello World from nasm", 0x0
len equ $ - msg
section .bss
section .text
global _start
_start:
mov rax, 1
mov rdi, 1
mov rsi, msg
mov rdx, len
syscall
mov rax, 60
mov rdi, 0
syscall
| 12.230769 | 37 | 0.657233 |
3a3e7fa22a94801a46cf18b7547ee83963f5b926 | 1,091 | asm | Assembly | libsrc/target/vector06c/input/in_KeyPressed.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/target/vector06c/input/in_KeyPressed.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/target/vector06c/input/in_KeyPressed.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ; uint in_KeyPressed(uint scancode)
SECTION code_clib
PUBLIC in_KeyPressed
PUBLIC _in_KeyPressed
EXTERN __vector06c_key_rows
; Determines if a key is pressed using the scan code
; returned by in_LookupKey.
; enter : l = scan row
; h = key mask
; exit : carry = key is pressed & HL = 1
; no carry = key not pressed & HL = 0
; used : AF,BC,HL
; write to ppi0 porta with key row (port 0xf4)
; Read from ppi0 portb with value (including shift/ctrl keys) (port 0xf5)
; Bit 5 = shift, Bit 6 = ctrl
.in_KeyPressed
._in_KeyPressed
ex de,hl ;de = input values
ld hl,__vector06c_key_rows
ld a,e
and 15
ld c,a
ld b,0
add hl,bc
ld a,(hl) ;Save it for a minute
and d
jr z,fail
ld hl,__vector06c_key_rows+8 ;Move to control row
; Now check if we need shift/control
ld b,0
ld a,e ;7 = shift, 6 = control
rlca
jr nc,no_shift
ld b,@00100000
no_shift:
rlca
jr nc,no_control
ld a,b
or @01000000
ld b,a
no_control:
ld a,(hl) ;What we read
and @01100000 ;Isolate keys
cp b ;Is it what we want?
jr nz,fail
ld hl,1
scf
ret
fail:
ld hl,0
and a
ret
| 17.885246 | 73 | 0.68286 |
620c76dd58713a3db78e0633baf821d7b2ff9a99 | 247 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccix_fmin.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccix_fmin.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_ix/cm48_sdccix_fmin.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
; float fmin(float x, float y)
SECTION code_fp_math48
PUBLIC cm48_sdccix_fmin
EXTERN cm48_sdccixp_dread2, l0_cm48_sdccix_fmin_callee
cm48_sdccix_fmin:
call cm48_sdccixp_dread2
; AC'= y
; AC = x
jp l0_cm48_sdccix_fmin_callee
| 13.722222 | 54 | 0.761134 |
e971dc85878222868d5583397391bc5a388fe1f2 | 190 | asm | Assembly | src/firmware-tests/Platform/Lcd/BlinkingCursor/DisableBlinkingCursorTest.asm | pete-restall/Cluck2Sesame-Prototype | 99119b6748847a7b6aeadc4bee42cbed726f7fdc | [
"MIT"
] | 1 | 2019-12-12T09:07:08.000Z | 2019-12-12T09:07:08.000Z | src/firmware-tests/Platform/Lcd/BlinkingCursor/DisableBlinkingCursorTest.asm | pete-restall/Cluck2Sesame-Prototype | 99119b6748847a7b6aeadc4bee42cbed726f7fdc | [
"MIT"
] | null | null | null | src/firmware-tests/Platform/Lcd/BlinkingCursor/DisableBlinkingCursorTest.asm | pete-restall/Cluck2Sesame-Prototype | 99119b6748847a7b6aeadc4bee42cbed726f7fdc | [
"MIT"
] | null | null | null | #include "Platform.inc"
#include "FarCalls.inc"
#include "Lcd.inc"
radix decimal
DisableBlinkingCursorTest code
global testAct
testAct:
fcall disableLcdBlinkingCursor
return
end
| 12.666667 | 31 | 0.778947 |
e691bb41cf8eab03fc1d8ddb42aaac716425c572 | 716 | asm | Assembly | programs/oeis/200/A200815.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/200/A200815.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/200/A200815.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A200815: Number of iterations of k -> d(k) until n reaches an odd prime.
; 0,1,0,2,0,2,1,2,0,3,0,2,2,1,0,3,0,3,2,2,0,3,1,2,2,3,0,3,0,3,2,2,2,2,0,2,2,3,0,3,0,3,3,2,0,3,1,3,2,3,0,3,2,3,2,2,0,4,0,2,3,1,2,3,0,3,2,3,0,4,0,2,3,3,2,3,0,3,1,2,0,4,2,2,2,3,0,4,2,3,2,2,2,4,0,3,3,2,0,3,0,3,3,2,0,4,0,3,2,3,0,3,2,3,3,2,2,2,1,2,2,3,2,4,0,3,2,3,0,4,2,2,3,3,0,3,0,4,2,2,2,3,2,2,3,3,0,4,0,3,3,3,2,4,0,2,2,4,2,3,0,3,3,2,0,2,1,3,3,3,0,3,3,3,2,2,0,4,0,3,2,3,2,3,2,3,3,3,0,3,0,2,3,2,0,4,0,4,2,2,2,4,2,2,3,3,2,2,0,3,2,2,2,2,2,2,2,4,2,3,0,4,2,2,0,4,0,3,3,3,0,4,2,3,2,3,0,4,0,3,3,3,3,3,2,3,2,3,0,4
add $0,2
lpb $0,1
cal $0,5 ; d(n) (also called tau(n) or sigma_0(n)), the number of divisors of n.
sub $0,1
add $1,14
lpe
div $1,15
| 65.090909 | 501 | 0.539106 |
b6baa9528856166a19a2daea367c24d1b7e2d884 | 523 | asm | Assembly | src/blit.asm | onslaught-demogroup/ons_paddo_music_disk | 6a945f918fd1220b325385d14327b5e1ee86295d | [
"MIT"
] | null | null | null | src/blit.asm | onslaught-demogroup/ons_paddo_music_disk | 6a945f918fd1220b325385d14327b5e1ee86295d | [
"MIT"
] | null | null | null | src/blit.asm | onslaught-demogroup/ons_paddo_music_disk | 6a945f918fd1220b325385d14327b5e1ee86295d | [
"MIT"
] | null | null | null |
blit_save:
ldx #$00
!:
.for(var i=0; i<4; i++){
lda [$0400 + (i * $100)] ,x
sta [blit_buf + (i * $100)] ,x
lda [$d800 + (i * $100)] ,x
sta [blit_buf + $0400 + (i * $100)] ,x
}
inx
bne !-
rts
blit_load:
ldx #$00
!:
.for(var i=0; i<4; i++){
lda [blit_buf + (i * $100)] ,x
sta [$0400 + (i * $100)] ,x
lda [blit_buf + $0400 + (i * $100)] ,x
sta [$d800 + (i * $100)] ,x
}
inx
bne !-
rts
blit_buf:
.fill $800, $00
| 17.433333 | 46 | 0.391969 |
c59db5eca5320eab72f3e714bdc197b9b554c102 | 598 | asm | Assembly | programs/oeis/231/A231505.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/231/A231505.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/231/A231505.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A231505: a(n) = Sum_{i=0..n} digsum_3(i)^4, where digsum_3(i) = A053735(i).
; 0,1,17,18,34,115,131,212,468,469,485,566,582,663,919,1000,1256,1881,1897,1978,2234,2315,2571,3196,3452,4077,5373,5374,5390,5471,5487,5568,5824,5905,6161,6786,6802,6883,7139,7220,7476,8101,8357,8982,10278,10359,10615,11240,11496,12121,13417,14042,15338,17739,17755,17836,18092,18173,18429,19054,19310,19935,21231
mov $2,$0
mov $4,$0
lpb $2
mov $0,$4
sub $2,1
sub $0,$2
cal $0,53735 ; Sum of digits of (n written in base 3).
pow $0,4
mov $3,$0
add $3,2
mul $3,12
sub $3,24
div $3,12
add $1,$3
lpe
| 31.473684 | 313 | 0.675585 |
c5b767b9daf41ab9b10a105260c5a746c83f8212 | 777 | asm | Assembly | programs/oeis/158/A158218.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/158/A158218.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/158/A158218.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A158218: 169n^2 - 2n.
; 167,672,1515,2696,4215,6072,8267,10800,13671,16880,20427,24312,28535,33096,37995,43232,48807,54720,60971,67560,74487,81752,89355,97296,105575,114192,123147,132440,142071,152040,162347,172992,183975,195296,206955,218952,231287,243960,256971,270320,284007,298032,312395,327096,342135,357512,373227,389280,405671,422400,439467,456872,474615,492696,511115,529872,548967,568400,588171,608280,628727,649512,670635,692096,713895,736032,758507,781320,804471,827960,851787,875952,900455,925296,950475,975992,1001847,1028040,1054571,1081440,1108647,1136192,1164075,1192296,1220855,1249752,1278987,1308560,1338471,1368720,1399307,1430232,1461495,1493096,1525035,1557312,1589927,1622880,1656171,1689800
add $0,1
mov $1,169
mul $1,$0
sub $1,2
mul $1,$0
mov $0,$1
| 77.7 | 692 | 0.81982 |
e6137e9daa9496bff115bdc10de2e576fcf8fd84 | 1,569 | asm | Assembly | programs/oeis/178/A178703.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/178/A178703.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/178/A178703.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A178703: Partial sums of round(3^n/7).
; 0,0,1,5,17,52,156,468,1405,4217,12653,37960,113880,341640,1024921,3074765,9224297,27672892,83018676,249056028,747168085,2241504257,6724512773,20173538320,60520614960,181561844880,544685534641,1634056603925,4902169811777,14706509435332,44119528305996,132358584917988,397075754753965,1191227264261897,3573681792785693,10721045378357080,32163136135071240,96489408405213720,289468225215641161,868404675646923485,2605214026940770457,7815642080822311372,23446926242466934116,70340778727400802348,211022336182202407045,633067008546607221137,1899201025639821663413,5697603076919464990240,17092809230758394970720,51278427692275184912160,153835283076825554736481,461505849230476664209445,1384517547691429992628337,4153552643074289977885012,12460657929222869933655036,37381973787668609800965108,112145921363005829402895325,336437764089017488208685977,1009313292267052464626057933,3027939876801157393878173800,9083819630403472181634521400,27251458891210416544903564200,81754376673631249634710692601,245263130020893748904132077805,735789390062681246712396233417,2207368170188043740137188700252,6622104510564131220411566100756,19866313531692393661234698302268,59598940595077180983704094906805,178796821785231542951112284720417,536390465355694628853336854161253,1609171396067083886560010562483760,4827514188201251659680031687451280,14482542564603754979040095062353840,43447627693811264937120285187061521,130342883081433794811360855561184565,391028649244301384434082566683553697
mov $1,3
lpb $0
sub $0,1
mul $1,3
lpe
div $1,14
mov $0,$1
| 142.636364 | 1,464 | 0.922243 |
e2e9e84819ddd43a1d4f4be29a8e983f8b62dba4 | 1,822 | asm | Assembly | libsrc/_DEVELOPMENT/target/rc2014/device/8255/8255_write_block.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/target/rc2014/device/8255/8255_write_block.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/target/rc2014/device/8255/8255_write_block.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
INCLUDE "config_private.inc"
SECTION code_driver
PUBLIC ide_write_block
;Write a block of 512 bytes (one sector) from (HL++) to
;the drive 16 bit data register
ide_write_block:
push bc
push de
ld bc, __IO_PIO_IDE_CONFIG ;keep iterative count in b
ld d, __IO_PIO_IDE_WR
out (c), d ;config 8255 chip, write mode
ld c, __IO_PIO_IDE_CTL
ld d, __IO_IDE_DATA
out (c), d ;drive address onto control lines
IF (__IO_PIO_IDE_CTL = __IO_PIO_IDE_MSB+1) & (__IO_PIO_IDE_MSB = __IO_PIO_IDE_LSB+1)
ide_wrblk2:
ld d, __IO_IDE_DATA|__IO_IDE_WR_LINE
out (c), d ;and assert write pin
ld c, __IO_PIO_IDE_LSB ;drive lower lines with lsb
outi ;write the lower byte (HL++)
inc c ;drive upper lines with msb
outi ;write the upper byte (HL++)
inc c ;drive control port
ld d, __IO_IDE_DATA
out (c), d ;deassert write pin
djnz ide_wrblk2 ;keep iterative count in b
ELSE
ide_wrblk2:
ld d, __IO_IDE_DATA|__IO_IDE_WR_LINE
out (c), d ;and assert write pin
ld c, __IO_PIO_IDE_LSB ;drive lower lines with lsb
outi ;write the lower byte (HL++)
ld c, __IO_PIO_IDE_MSB ;drive upper lines with msb
outi ;write the upper byte (HL++)
ld c, __IO_PIO_IDE_CTL
ld d, __IO_IDE_DATA
out (c), d ;deassert write pin
djnz ide_wrblk2 ;keep iterative count in b
ENDIF
; ld c, __IO_PIO_IDE_CTL ;remembering what's in bc
; ld b, $0
out (c), b ;deassert all control pins
ld c, __IO_PIO_IDE_CONFIG
ld d, __IO_PIO_IDE_RD
out (c), d ;config 8255 chip, read mode
pop de
pop bc
ret
| 32.535714 | 84 | 0.598244 |
649e674eaa3e84748462f7152a8ca50ac99a20d5 | 878 | asm | Assembly | programs/oeis/233/A233328.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/233/A233328.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/233/A233328.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A233328: a(n) = (2*8^(n+1) - 9) / 7.
; 1,17,145,1169,9361,74897,599185,4793489,38347921,306783377,2454267025,19634136209,157073089681,1256584717457,10052677739665,80421421917329,643371375338641,5146971002709137,41175768021673105,329406144173384849,2635249153387078801,21081993227096630417,168655945816773043345,1349247566534184346769,10793980532273474774161,86351844258187798193297,690814754065502385546385,5526518032524019084371089,44212144260192152674968721,353697154081537221399749777,2829577232652297771197998225,22636617861218382169583985809,181092942889747057356671886481,1448743543117976458853375091857,11589948344943811670827000734865,92719586759550493366616005878929,741756694076403946932928047031441,5934053552611231575463424376251537,47472428420889852603707395010012305,379779427367118820829659160080098449
mov $1,8
pow $1,$0
div $1,7
mul $1,16
add $1,1
mov $0,$1
| 87.8 | 780 | 0.894077 |
a9c4179fc1c5db5730dffdee2c8a44e4a392130f | 597 | asm | Assembly | oeis/139/A139730.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/139/A139730.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/139/A139730.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A139730: a(n) = 9^n mod 5^n.
; 0,4,6,104,311,2799,191,17344,77971,701739,456276,33403359,202973981,361922079,815892461,19550063399,145432992466,88193807194,1556683717871,10195456195214,34538646772551,120112957671709,2034690935451631,1622917881955304,50369047802832111,274507495899317124,980451343709088491,4353713735227499544,1930520632428355271,166386297630331759939,566154104057507323826,1370096638055651851934,3017643996346081511156,97007989063275622272279,407410614261741342638011,1338389091816975794679599
mov $1,$0
min $0,1
mov $2,5
pow $2,$1
lpb $1
mul $0,9
mod $0,$2
sub $1,1
lpe
| 45.923077 | 481 | 0.840871 |
2eb1c52e76f7cd69148e2069fea00fec631e66cd | 1,003 | asm | Assembly | ffight/lcs/container/3.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | 6 | 2020-10-14T15:29:10.000Z | 2022-02-12T18:58:54.000Z | ffight/lcs/container/3.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | null | null | null | ffight/lcs/container/3.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | a4a0c86c200241494b3f1834cd0aef8dc02f7683 | [
"Apache-2.0"
] | 1 | 2020-12-17T08:59:10.000Z | 2020-12-17T08:59:10.000Z | copyright zengfr site:http://github.com/zengfr/romhack
051914 move.b #$32, ($1f,A6) [container+ 3]
0519E4 move.l ($e,A6), ($a,A6) [container+ 3]
05236C move.b #$32, ($1f,A6) [container+ 3]
05251C move.b #$46, ($1f,A6) [container+ 3]
052794 move.b #$32, ($1f,A6) [container+ 3]
05281A move.l ($e,A6), ($a,A6) [container+ 3]
052866 move.b #$6, ($3,A6) [container+ A, container+ C]
05286C move.w #$100, ($50,A6) [container+ 3]
052A26 move.b #$32, ($1f,A6) [container+ 3]
052AE4 move.l ($e,A6), ($a,A6) [container+ 3]
052B30 move.b #$6, ($3,A6) [container+ A, container+ C]
052B36 move.w #$100, ($50,A6) [container+ 3]
052DCA move.b #$32, ($1f,A6) [container+ 3]
054B9E move.b #$2, ($3,A6) [container+1E]
054BA4 movea.l #$54cb8, A1 [container+ 3]
054BBE move.b #$4, ($3,A6) [container+1E]
054BC4 movea.l #$54ccc, A1 [container+ 3]
054BDE move.b #$6, ($3,A6) [container+1E]
054BE4 movea.l #$54ce0, A1 [container+ 3]
copyright zengfr site:http://github.com/zengfr/romhack
| 41.791667 | 57 | 0.622134 |
fa8361ddd7cc3698626a563178a5ed23a0a9db84 | 941 | asm | Assembly | _build/dispatcher/jmp_ippsDLPInit_433d75f0.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | 1 | 2021-10-04T10:21:54.000Z | 2021-10-04T10:21:54.000Z | _build/dispatcher/jmp_ippsDLPInit_433d75f0.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | null | null | null | _build/dispatcher/jmp_ippsDLPInit_433d75f0.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | null | null | null | extern m7_ippsDLPInit:function
extern n8_ippsDLPInit:function
extern y8_ippsDLPInit:function
extern e9_ippsDLPInit:function
extern l9_ippsDLPInit:function
extern n0_ippsDLPInit:function
extern k0_ippsDLPInit:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:function
segment .data
align 8
dq .Lin_ippsDLPInit
.Larraddr_ippsDLPInit:
dq m7_ippsDLPInit
dq n8_ippsDLPInit
dq y8_ippsDLPInit
dq e9_ippsDLPInit
dq l9_ippsDLPInit
dq n0_ippsDLPInit
dq k0_ippsDLPInit
segment .text
global ippsDLPInit:function (ippsDLPInit.LEndippsDLPInit - ippsDLPInit)
.Lin_ippsDLPInit:
db 0xf3, 0x0f, 0x1e, 0xfa
call ippcpSafeInit wrt ..plt
align 16
ippsDLPInit:
db 0xf3, 0x0f, 0x1e, 0xfa
mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc]
movsxd rax, dword [rax]
lea r11, [rel .Larraddr_ippsDLPInit]
mov r11, qword [r11+rax*8]
jmp r11
.LEndippsDLPInit:
| 24.128205 | 71 | 0.766206 |
dee78dcc70d695b8d96165940cd965c0d61128a1 | 747 | asm | Assembly | oeis/141/A141385.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/141/A141385.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/141/A141385.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A141385: a(n) = 7*a(n-1) - 9*a(n-2) + a(n-3) with a(0)=3, a(1)=7, a(2)=31.
; Submitted by Jon Maiga
; 3,7,31,157,827,4407,23563,126105,675075,3614143,19349431,103593805,554625899,2969386479,15897666067,85113810057,455687062275,2439682811479,13061709929935,69930511268509,374397872321627,2004472214764743,10731655163727067,57455734085528409,307609714339920003,1646898048773411407,8817254646440128231,47206309800460114957,252735774834033062027,1353110890280530527807,7244360568257876251363,38785261740114392071305,207650697956760388764675,1111731890604551068962343,5952052214361128375925631
lpb $0
sub $0,1
add $2,$3
add $2,1
sub $3,$4
add $3,$2
add $3,$2
add $2,2
add $4,1
add $4,$2
add $2,$3
lpe
mov $0,$3
mul $0,2
add $0,3
| 37.35 | 488 | 0.772423 |
b3aeb4343bbe337ad2846e5c80d748f1d7b105ba | 1,931 | asm | Assembly | components/kernel/definitions/standard.asm | paulscottrobson/z80-machine-forth | f149dc7b2e7f077c9b920b1202ba00fd32aeb1df | [
"MIT"
] | null | null | null | components/kernel/definitions/standard.asm | paulscottrobson/z80-machine-forth | f149dc7b2e7f077c9b920b1202ba00fd32aeb1df | [
"MIT"
] | 1 | 2019-03-03T21:00:30.000Z | 2020-07-02T09:18:04.000Z | components/kernel/definitions/standard.asm | paulscottrobson/z80-machine-forth | f149dc7b2e7f077c9b920b1202ba00fd32aeb1df | [
"MIT"
] | null | null | null | ; *********************************************************************************************
; *********************************************************************************************
;
; Name : standard.asm
; Date : 13th January 2019
; Author : Paul Robson (paul@robsons.org.uk)
; Purpose : Normal macro words for the Machine Forth system
;
; *********************************************************************************************
; *********************************************************************************************
; *********************************************************************************************
; @ indirect read
; *********************************************************************************************
@macro @
ex de,hl ; address to HL
ld e,(hl) ; read it
inc hl
ld d,(hl)
dec hl
@end
; *********************************************************************************************
; ! indirect write
; *********************************************************************************************
@macro !
ex de,hl ; address to HL
pop de ; data to DE
ld (hl),e ; write it
inc hl
ld (hl),d
pop de ; fix up TOS
@end
; *********************************************************************************************
; or logical OR
; *********************************************************************************************
@wordx or
pop bc
ld a,d
or b
ld d,a
ld a,e
or c
ld e,a
@end
; *********************************************************************************************
; swap exchange top 2
; *********************************************************************************************
@macro swap
ex de,hl ; HL = tos
ex (sp),hl ; swap it
ex de,hl ; fix up
@end
| 31.655738 | 95 | 0.192646 |
190bff88ee8f22303c7953fb8c861f72bbef8192 | 120 | asm | Assembly | libsrc/_DEVELOPMENT/z80/c/sccz80/im2_init.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/z80/c/sccz80/im2_init.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/z80/c/sccz80/im2_init.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
; void im2_init(void *im2_table)
SECTION code_z80
PUBLIC im2_init
EXTERN asm_im2_init
defc im2_init = asm_im2_init
| 10.909091 | 32 | 0.8 |
bd44aee9aeafd75b241e36b20761b924cc6dc2ec | 676 | asm | Assembly | oeis/054/A054615.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/054/A054615.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/054/A054615.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A054615: a(n) = Sum_{d|n} phi(d)*8^(n/d).
; Submitted by Christian Krause
; 0,8,72,528,4176,32800,262800,2097200,16781472,134218800,1073774880,8589934672,68719748256,549755813984,4398048608688,35184372156480,281474993496384,2251799813685376,18014398644225456,144115188075856016,1152921505680671040,9223372036858973280,73786976303428141776,590295810358705651888,4722366482938398779712,37778931862957161840800,302231454904207049491296,2417851639229258617851024,19342813113838464846029280,154742504910672534362390752,1237940039285415461419813440,9903520314283042199192994032
mov $2,$0
lpb $0
sub $0,1
mov $3,8
mov $4,$2
gcd $4,$0
pow $3,$4
add $1,$3
lpe
mov $0,$1
| 45.066667 | 497 | 0.826923 |
eeca2bc8160e039c53b3d3f1fc539a34a9ecd658 | 450 | asm | Assembly | libsrc/_DEVELOPMENT/target/rc2014/driver/terminal/rc_01_output_sioa/rc_01_output_sioa_oterm_msg_bell.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/target/rc2014/driver/terminal/rc_01_output_sioa/rc_01_output_sioa_oterm_msg_bell.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/target/rc2014/driver/terminal/rc_01_output_sioa/rc_01_output_sioa_oterm_msg_bell.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | INCLUDE "config_private.inc"
SECTION code_driver
SECTION code_driver_terminal_output
PUBLIC rc_01_output_sioa_oterm_msg_bell
PUBLIC rc_01_output_sioa_oterm_msg_bell_0
EXTERN rc_01_output_sioa_oterm_msg_putc_send
rc_01_output_sioa_oterm_msg_bell:
; can use: af, bc, de, hl
bit 0,(ix+7)
ret z ; if bell disabled
rc_01_output_sioa_oterm_msg_bell_0:
ld c,CHAR_BELL
jp rc_01_output_sioa_oterm_msg_putc_send
| 20.454545 | 49 | 0.784444 |
78f1393aee10d5844a6044500dc9d0655aabdf57 | 8,043 | asm | Assembly | Altair101/asm/programs/opCpi.asm | tigerfarm/arduino | e51f111a092fe6737646b146a825f4eecbd05d44 | [
"OLDAP-2.4",
"OLDAP-2.7"
] | 2 | 2021-12-12T23:27:10.000Z | 2022-02-17T14:01:21.000Z | Altair101/asm/programs/opCpi.asm | tigerfarm/arduino | e51f111a092fe6737646b146a825f4eecbd05d44 | [
"OLDAP-2.4",
"OLDAP-2.7"
] | null | null | null | Altair101/asm/programs/opCpi.asm | tigerfarm/arduino | e51f111a092fe6737646b146a825f4eecbd05d44 | [
"OLDAP-2.4",
"OLDAP-2.7"
] | 4 | 2021-08-29T19:55:49.000Z | 2022-02-15T08:30:15.000Z | ; --------------------------------------
; Test CPI and conditional jumps.
; Compare an immediate number (#) to register A, and then set Carry and Zero bit flags.
;
; If # = A, set Zero bit to 1. Carry bit to 0. Use jz: jump if zero bit set.
; If # !=A, set Zero bit to 0.
; If # > A, set Zero bit to 0. Carry bit = 1. Use jc: jump if carry bit set.
; If # < A, set Zero bit to 0. Carry bit = 0. Use jc(which does jump) followed by jnc: jump if carry bit not set.
;
; Note, register A remain the same after the compare.
;
; --------------------------------------
Start:
mvi a,'1' ; Test 1, immediate number = register A.
out 3
mvi a,73 ; Move # to register A.
cpi 73 ; 73 = A. Zero bit flag is true. Carry bit is false.
jnz Error ; Zero bit flag is set, don't jump.
jc Error ; Carry bit flag is not set, don't jump.
jz okaye1a ; Zero bit flag is set, jump.
jmp Error ; The above should have jumped passed this.
okaye1a:
jnc okaye1b ; Carry bit flag is not set, jump to the next test.
jmp Error ; The above should have jumped passed this.
okaye1b:
mvi a,'S'
out 3
; --------------------------------------
mvi a,'2' ; Test 2, EQU number = register A.
out 3
mvi a,42 ; Move # to register A.
cpi iValue ; 42 = A. Zero bit flag is true. Carry bit is false.
jnz Error ; Zero bit flag is set, don't jump.
jc Error ; Carry bit flag is not set, don't jump.
jz okaye2a ; Zero bit flag is set, jump.
jmp Error ; The above should have jumped passed this.
okaye2a:
jnc okaye2b ; Carry bit flag is not set, jump to the end of this test.
jmp Error ; The above should have jumped passed this.
okaye2b:
mvi a,'S'
out 3
; --------------------------------------
mvi a,'3' ; Test 3, immediate number > register A.
out 3
mvi a,73 ; Move # to register A.
cpi 76 ; 76 > A. Zero bit flag is not set. Carry bit is set.
jz Error ; Zero bit flag is set.
jnz okayg1a ; Zero bit flag not set.
jmp Error
okayg1a:
jc okayg1b ; Carry bit flag is set.
jmp Error
okayg1b:
jnc Error ; Carry bit flag not set.
mvi a,'S'
out 3
; --------------------------------------
mvi a,'4' ; Test 4, immediate number < register A.
out 3
mvi a,73 ; Move # to register A.
cpi 70 ; 73 = A. Zero bit flag is true. Carry bit is false.
jz Error ; Zero bit flag is set.
jnz okayl1b ; Zero bit flag not set.
jmp Error
okayl1a:
jc Error ; Carry bit flag is set.
jnc okayl1b ; Carry bit flag not set.
jmp Error
okayl1b:
mvi a,'S'
out 3
; --------------------------------------
; If # = A, set Zero bit to 1. Carry bit to 0.
; If # !=A, set Zero bit to 0.
; If # > A, set Zero bit to 0. Carry bit = 1.
; If # < A, set Zero bit to 0. Carry bit = 0.
mvi a,' '
out 3
; --------------------------------------
mvi a,'5' ; Test 5, immediate number = register A.
out 3
mvi a,10
cpi Ten ; Compare Ten(10) to regA(10).
jz EqualTen ; If A == 10, Zero bit flag is set.
jmp Error
EqualTen:
mvi a,'S' ; True if JNZ and JNC.
out 3
; --------------------------------------
mvi a,'6' ; Test 6, immediate number > register A.
out 3
mvi a,6
cpi Ten ; Compare Ten(10) to regA(16).
jc TenGreaterA ; If A > 10, Carry bit flag not set.
jmp Error
TenGreaterA:
mvi a,'S' ; True if JNZ and JC.
out 3
; --------------------------------------
mvi a,'7' ; Test 7, immediate number < register A.
out 3
mvi a,16
cpi Ten ; Compare Ten(10) to regA(6).
jc EqualTen3 ; If A== 10, Zero bit flag is set.
jnc TenLessA ; If A < 10, Carry bit flag not set.
EqualTen3:
jmp Error
TenLessA:
mvi a,'S' ; True if JNZ and JNC.
out 3
; --------------------------------------
mvi a,'\n'
out 3
mvi a,'\r'
out 3
mvi a,'+' ; Move the byte value of "+" to register A.
out 3 ; Output register A content to the serial port (serial monitor).
mvi a,'+'
out 3
mvi a,' '
out 3
mvi a,'S'
out 3
mvi a,'u'
out 3
mvi a,'c'
out 3
mvi a,'c'
out 3
mvi a,'e'
out 3
mvi a,'s'
out 3
mvi a,'s'
out 3
mvi a,':'
out 3
mvi a,' '
out 3
mvi a,'C'
out 3
mvi a,'P'
out 3
mvi a,'I'
out 3
; --------------------------------------
mvi a,'\n'
out 3
mvi a,'\r'
out 3
hlt
jmp Start
; --------------------------------------
; Print from 0-9.
PrintDigit:
mvi b,'0'
add b
out 3
ret
; --------------------------------------
iValue equ 42 ; Label immediate to test with.
Ten equ 10 ; For comparing.
; --------------------------------------
Error:
mvi a,'\n'
out 3
mvi a,'\r'
out 3
mvi a,'-' ; Move the byte value of "-" to register A.
out 3 ; Output register A content to the serial port (serial monitor).
mvi a,'-'
out 3
mvi a,' '
out 3
mvi a,'E'
out 3
mvi a,'r'
out 3
mvi a,'r'
out 3
mvi a,'o'
out 3
mvi a,'r'
out 3
out 39 ; Print the registers and other system values.
hlt ; Halt after the error.
jmp Start
; --------------------------------------
end
; --------------------------------------
; Successful run indicator: 1S2S.
; "1S": Test 1 was success
; "2S": Test 2 was success
+ Download complete.
+ r, RUN.
+ runProcessor()
1S2S3S4S 5S6S7S
++ Success: CPI
++ HALT, host_read_status_led_WAIT() = 0
;
; --------------------------------------
| 39.62069 | 141 | 0.350118 |
932eab9f2e436798161f4f0f598bca94e51bda7b | 814 | asm | Assembly | oeis/141/A141869.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/141/A141869.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/141/A141869.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A141869: Primes congruent to 2 mod 19.
; Submitted by Christian Krause
; 2,59,97,173,211,401,439,743,857,971,1009,1123,1237,1427,1579,1693,1997,2111,2339,2377,2719,2833,2909,3023,3061,3137,3251,3517,3593,3631,3821,4049,4201,4391,4657,4733,4999,5113,5189,5227,5303,5417,5531,5569,5683,5987,6101,6329,6367,6481,6709,6823,6899,7013,7127,7393,7507,7583,7621,7963,8039,8191,8419,8609,8647,8761,8837,8951,9103,9293,9521,9749,9787,9901,10091,10243,10357,10433,10889,11003,11117,11383,11497,11801,11839,11953,12143,12409,12637,12713,12941,12979,13093,13397,13967,14081,14347,14423
mov $1,1
mov $2,$0
add $2,2
pow $2,2
lpb $2
mov $3,$1
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,19
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
sub $2,1
lpe
mov $0,$1
add $0,1
| 37 | 501 | 0.726044 |
e3369b413b11610086c5e6dd95f049753b4509a3 | 117 | asm | Assembly | src/compiler/alloc_exit.asm | oreganoli/bfc-rs | bd4dad968d406202ec85b6b89b20666269270bd5 | [
"MIT"
] | 3 | 2021-01-04T19:27:40.000Z | 2021-01-06T06:31:39.000Z | src/compiler/alloc_exit.asm | oreganoli/bfc-rs | bd4dad968d406202ec85b6b89b20666269270bd5 | [
"MIT"
] | null | null | null | src/compiler/alloc_exit.asm | oreganoli/bfc-rs | bd4dad968d406202ec85b6b89b20666269270bd5 | [
"MIT"
] | null | null | null | section .data
memory times 30000 db 0
section .text
global _start
_start:
mov rsi,memory
mov rdi,0
mov rax,60
syscall | 13 | 23 | 0.794872 |
07bfe3a9546bfd606592e0f54f22a20d06c7a36a | 2,188 | asm | Assembly | src/eggs.asm | iratahack/CastleEscape | da4456087af603dd80d65f5653a1931fb275635b | [
"BSD-3-Clause"
] | 2 | 2022-01-11T11:38:22.000Z | 2022-01-13T04:24:18.000Z | src/eggs.asm | iratahack/CastleEscape | da4456087af603dd80d65f5653a1931fb275635b | [
"BSD-3-Clause"
] | 4 | 2021-02-27T15:33:42.000Z | 2022-01-09T16:40:09.000Z | src/eggs.asm | iratahack/CastleEscape | da4456087af603dd80d65f5653a1931fb275635b | [
"BSD-3-Clause"
] | 1 | 2022-01-05T17:26:51.000Z | 2022-01-05T17:26:51.000Z | extern addBCD
extern decBCD
extern displayBCD
extern displayTile
extern removeItem
extern wyz_play_sound
public currentEggTable
public decrementEggs
public displayEggCount
public eggCollision
public eggCount
public eggTables
public updateEggImage
include "defs.inc"
section CODE_2
;
; Called when a collision is detected
;
; Entry:
; hl - Pointer to items flags
; b - Screen y character position
; c - screen x character position
;
eggCollision:
call removeItem ; Remove the item from the screen
ld l, 0x10 ; Add eggs
ld de, eggCount
call addBCD
call displayEggCount
ld a, AYFX_COLLECT_EGG ; Play a sound
ld b, 2 ; Use channel #2
di
call wyz_play_sound
ei
ret
updateEggImage:
ld a, (eggCount)
rrca ; divide by 2
and %00000111
add ID_EGG0
ld bc, 0x011a
call displayTile
ret
decrementEggs:
push hl
ld hl, counter
dec (hl)
jp p, skip
ld (hl), 99
push af
ld a, (eggCount)
and a
jr z, noEggs
push de
ld de, eggCount
call decBCD
call displayEggCount
pop de
noEggs:
pop af
skip:
pop hl
ret
displayEggCount:
push bc
ld bc, 0x0119 ; Y/X screen location
ld a, (eggCount)
rrca
rrca
rrca
rrca
and %00001111
call displayBCD
call updateEggImage
pop bc
ret
section BSS_2
counter:
ds 1
eggCount: ; BCD
ds 2
currentEggTable:
ds 2
eggTables:
ds MAX_LEVEL_X*MAX_LEVEL_Y*SIZEOF_ptr
| 20.448598 | 73 | 0.453382 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.