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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5941b14942d00ff571ef3c235fe86469b21725bb | 177 | asm | Assembly | programs/oeis/138/A138297.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/138/A138297.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/138/A138297.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A138297: Rows of triangle A138060 converge to this sequence.
; 1,2,3,4,1,1,2,1,2,3,1,2,3,4,1,2,3,4,1
lpb $0
sub $0,4
lpb $0
add $1,1
sub $0,$1
lpe
lpe
add $0,1
| 14.75 | 62 | 0.581921 |
49e61ec1067757b82dcf872f527751b66f843c8d | 48,791 | asm | Assembly | user/alloctest.asm | Grapefruitcc/xv6-riscv-fall19 | 6a3bb66142d1d946f8089b9cd4ebbd347c7c089a | [
"MIT-0"
] | 1 | 2021-05-26T06:35:54.000Z | 2021-05-26T06:35:54.000Z | user/alloctest.asm | Grapefruitcc/xv6-riscv-fall19 | 6a3bb66142d1d946f8089b9cd4ebbd347c7c089a | [
"MIT-0"
] | null | null | null | user/alloctest.asm | Grapefruitcc/xv6-riscv-fall19 | 6a3bb66142d1d946f8089b9cd4ebbd347c7c089a | [
"MIT-0"
] | null | null | null |
user/_alloctest: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <test0>:
#include "kernel/fcntl.h"
#include "kernel/memlayout.h"
#include "user/user.h"
void
test0() {
0: 715d addi sp,sp,-80
2: e486 sd ra,72(sp)
4: e0a2 sd s0,64(sp)
6: fc26 sd s1,56(sp)
8: f84a sd s2,48(sp)
a: f44e sd s3,40(sp)
c: f052 sd s4,32(sp)
e: ec56 sd s5,24(sp)
10: 0880 addi s0,sp,80
enum { NCHILD = 50, NFD = 10};
int i, j;
int fd;
printf("filetest: start\n");
12: 00001517 auipc a0,0x1
16: 9de50513 addi a0,a0,-1570 # 9f0 <malloc+0xec>
1a: 00001097 auipc ra,0x1
1e: 82c080e7 jalr -2004(ra) # 846 <printf>
22: 03200493 li s1,50
printf("test setup is wrong\n");
exit(1);
}
for (i = 0; i < NCHILD; i++) {
int pid = fork();
26: 00000097 auipc ra,0x0
2a: 498080e7 jalr 1176(ra) # 4be <fork>
if(pid < 0){
2e: 00054f63 bltz a0,4c <test0+0x4c>
printf("fork failed");
exit(1);
}
if(pid == 0){
32: c915 beqz a0,66 <test0+0x66>
for (i = 0; i < NCHILD; i++) {
34: 34fd addiw s1,s1,-1
36: f8e5 bnez s1,26 <test0+0x26>
38: 03200493 li s1,50
sleep(10);
exit(0); // no errors; exit with 0.
}
}
int all_ok = 1;
3c: 4905 li s2,1
for(int i = 0; i < NCHILD; i++){
int xstatus;
wait(&xstatus);
if(xstatus != 0) {
if(all_ok == 1)
3e: 4985 li s3,1
printf("filetest: FAILED\n");
40: 00001a97 auipc s5,0x1
44: 9e0a8a93 addi s5,s5,-1568 # a20 <malloc+0x11c>
all_ok = 0;
48: 4a01 li s4,0
4a: a8b1 j a6 <test0+0xa6>
printf("fork failed");
4c: 00001517 auipc a0,0x1
50: 9bc50513 addi a0,a0,-1604 # a08 <malloc+0x104>
54: 00000097 auipc ra,0x0
58: 7f2080e7 jalr 2034(ra) # 846 <printf>
exit(1);
5c: 4505 li a0,1
5e: 00000097 auipc ra,0x0
62: 468080e7 jalr 1128(ra) # 4c6 <exit>
66: 44a9 li s1,10
if ((fd = open("README", O_RDONLY)) < 0) {
68: 00001917 auipc s2,0x1
6c: 9b090913 addi s2,s2,-1616 # a18 <malloc+0x114>
70: 4581 li a1,0
72: 854a mv a0,s2
74: 00000097 auipc ra,0x0
78: 492080e7 jalr 1170(ra) # 506 <open>
7c: 00054e63 bltz a0,98 <test0+0x98>
for(j = 0; j < NFD; j++) {
80: 34fd addiw s1,s1,-1
82: f4fd bnez s1,70 <test0+0x70>
sleep(10);
84: 4529 li a0,10
86: 00000097 auipc ra,0x0
8a: 4d0080e7 jalr 1232(ra) # 556 <sleep>
exit(0); // no errors; exit with 0.
8e: 4501 li a0,0
90: 00000097 auipc ra,0x0
94: 436080e7 jalr 1078(ra) # 4c6 <exit>
exit(1);
98: 4505 li a0,1
9a: 00000097 auipc ra,0x0
9e: 42c080e7 jalr 1068(ra) # 4c6 <exit>
for(int i = 0; i < NCHILD; i++){
a2: 34fd addiw s1,s1,-1
a4: c09d beqz s1,ca <test0+0xca>
wait(&xstatus);
a6: fbc40513 addi a0,s0,-68
aa: 00000097 auipc ra,0x0
ae: 424080e7 jalr 1060(ra) # 4ce <wait>
if(xstatus != 0) {
b2: fbc42783 lw a5,-68(s0)
b6: d7f5 beqz a5,a2 <test0+0xa2>
if(all_ok == 1)
b8: ff3915e3 bne s2,s3,a2 <test0+0xa2>
printf("filetest: FAILED\n");
bc: 8556 mv a0,s5
be: 00000097 auipc ra,0x0
c2: 788080e7 jalr 1928(ra) # 846 <printf>
all_ok = 0;
c6: 8952 mv s2,s4
c8: bfe9 j a2 <test0+0xa2>
}
}
if(all_ok)
ca: 00091b63 bnez s2,e0 <test0+0xe0>
printf("filetest: OK\n");
}
ce: 60a6 ld ra,72(sp)
d0: 6406 ld s0,64(sp)
d2: 74e2 ld s1,56(sp)
d4: 7942 ld s2,48(sp)
d6: 79a2 ld s3,40(sp)
d8: 7a02 ld s4,32(sp)
da: 6ae2 ld s5,24(sp)
dc: 6161 addi sp,sp,80
de: 8082 ret
printf("filetest: OK\n");
e0: 00001517 auipc a0,0x1
e4: 95850513 addi a0,a0,-1704 # a38 <malloc+0x134>
e8: 00000097 auipc ra,0x0
ec: 75e080e7 jalr 1886(ra) # 846 <printf>
}
f0: bff9 j ce <test0+0xce>
00000000000000f2 <test1>:
// Allocate all free memory and count how it is
void test1()
{
f2: 7139 addi sp,sp,-64
f4: fc06 sd ra,56(sp)
f6: f822 sd s0,48(sp)
f8: f426 sd s1,40(sp)
fa: f04a sd s2,32(sp)
fc: ec4e sd s3,24(sp)
fe: 0080 addi s0,sp,64
void *a;
int tot = 0;
char buf[1];
int fds[2];
printf("memtest: start\n");
100: 00001517 auipc a0,0x1
104: 94850513 addi a0,a0,-1720 # a48 <malloc+0x144>
108: 00000097 auipc ra,0x0
10c: 73e080e7 jalr 1854(ra) # 846 <printf>
if(pipe(fds) != 0){
110: fc040513 addi a0,s0,-64
114: 00000097 auipc ra,0x0
118: 3c2080e7 jalr 962(ra) # 4d6 <pipe>
11c: e525 bnez a0,184 <test1+0x92>
11e: 84aa mv s1,a0
printf("pipe() failed\n");
exit(1);
}
int pid = fork();
120: 00000097 auipc ra,0x0
124: 39e080e7 jalr 926(ra) # 4be <fork>
if(pid < 0){
128: 06054b63 bltz a0,19e <test1+0xac>
printf("fork failed");
exit(1);
}
if(pid == 0){
12c: e959 bnez a0,1c2 <test1+0xd0>
close(fds[0]);
12e: fc042503 lw a0,-64(s0)
132: 00000097 auipc ra,0x0
136: 3bc080e7 jalr 956(ra) # 4ee <close>
while(1) {
a = sbrk(PGSIZE);
if (a == (char*)0xffffffffffffffffL)
13a: 597d li s2,-1
exit(0);
*(int *)(a+4) = 1;
13c: 4485 li s1,1
if (write(fds[1], "x", 1) != 1) {
13e: 00001997 auipc s3,0x1
142: 92a98993 addi s3,s3,-1750 # a68 <malloc+0x164>
a = sbrk(PGSIZE);
146: 6505 lui a0,0x1
148: 00000097 auipc ra,0x0
14c: 406080e7 jalr 1030(ra) # 54e <sbrk>
if (a == (char*)0xffffffffffffffffL)
150: 07250463 beq a0,s2,1b8 <test1+0xc6>
*(int *)(a+4) = 1;
154: c144 sw s1,4(a0)
if (write(fds[1], "x", 1) != 1) {
156: 8626 mv a2,s1
158: 85ce mv a1,s3
15a: fc442503 lw a0,-60(s0)
15e: 00000097 auipc ra,0x0
162: 388080e7 jalr 904(ra) # 4e6 <write>
166: fe9500e3 beq a0,s1,146 <test1+0x54>
printf("write failed");
16a: 00001517 auipc a0,0x1
16e: 90650513 addi a0,a0,-1786 # a70 <malloc+0x16c>
172: 00000097 auipc ra,0x0
176: 6d4080e7 jalr 1748(ra) # 846 <printf>
exit(1);
17a: 4505 li a0,1
17c: 00000097 auipc ra,0x0
180: 34a080e7 jalr 842(ra) # 4c6 <exit>
printf("pipe() failed\n");
184: 00001517 auipc a0,0x1
188: 8d450513 addi a0,a0,-1836 # a58 <malloc+0x154>
18c: 00000097 auipc ra,0x0
190: 6ba080e7 jalr 1722(ra) # 846 <printf>
exit(1);
194: 4505 li a0,1
196: 00000097 auipc ra,0x0
19a: 330080e7 jalr 816(ra) # 4c6 <exit>
printf("fork failed");
19e: 00001517 auipc a0,0x1
1a2: 86a50513 addi a0,a0,-1942 # a08 <malloc+0x104>
1a6: 00000097 auipc ra,0x0
1aa: 6a0080e7 jalr 1696(ra) # 846 <printf>
exit(1);
1ae: 4505 li a0,1
1b0: 00000097 auipc ra,0x0
1b4: 316080e7 jalr 790(ra) # 4c6 <exit>
exit(0);
1b8: 4501 li a0,0
1ba: 00000097 auipc ra,0x0
1be: 30c080e7 jalr 780(ra) # 4c6 <exit>
}
}
exit(0);
}
close(fds[1]);
1c2: fc442503 lw a0,-60(s0)
1c6: 00000097 auipc ra,0x0
1ca: 328080e7 jalr 808(ra) # 4ee <close>
while(1) {
if (read(fds[0], buf, 1) != 1) {
1ce: 4605 li a2,1
1d0: fc840593 addi a1,s0,-56
1d4: fc042503 lw a0,-64(s0)
1d8: 00000097 auipc ra,0x0
1dc: 306080e7 jalr 774(ra) # 4de <read>
1e0: 4785 li a5,1
1e2: 00f51463 bne a0,a5,1ea <test1+0xf8>
break;
} else {
tot += 1;
1e6: 2485 addiw s1,s1,1
if (read(fds[0], buf, 1) != 1) {
1e8: b7dd j 1ce <test1+0xdc>
}
}
//int n = (PHYSTOP-KERNBASE)/PGSIZE;
//printf("allocated %d out of %d pages\n", tot, n);
if(tot < 31950) {
1ea: 67a1 lui a5,0x8
1ec: ccd78793 addi a5,a5,-819 # 7ccd <__global_pointer$+0x69d4>
1f0: 0297ca63 blt a5,s1,224 <test1+0x132>
printf("expected to allocate at least 31950, only got %d\n", tot);
1f4: 85a6 mv a1,s1
1f6: 00001517 auipc a0,0x1
1fa: 88a50513 addi a0,a0,-1910 # a80 <malloc+0x17c>
1fe: 00000097 auipc ra,0x0
202: 648080e7 jalr 1608(ra) # 846 <printf>
printf("memtest: FAILED\n");
206: 00001517 auipc a0,0x1
20a: 8b250513 addi a0,a0,-1870 # ab8 <malloc+0x1b4>
20e: 00000097 auipc ra,0x0
212: 638080e7 jalr 1592(ra) # 846 <printf>
} else {
printf("memtest: OK\n");
}
}
216: 70e2 ld ra,56(sp)
218: 7442 ld s0,48(sp)
21a: 74a2 ld s1,40(sp)
21c: 7902 ld s2,32(sp)
21e: 69e2 ld s3,24(sp)
220: 6121 addi sp,sp,64
222: 8082 ret
printf("memtest: OK\n");
224: 00001517 auipc a0,0x1
228: 8ac50513 addi a0,a0,-1876 # ad0 <malloc+0x1cc>
22c: 00000097 auipc ra,0x0
230: 61a080e7 jalr 1562(ra) # 846 <printf>
}
234: b7cd j 216 <test1+0x124>
0000000000000236 <main>:
int
main(int argc, char *argv[])
{
236: 1141 addi sp,sp,-16
238: e406 sd ra,8(sp)
23a: e022 sd s0,0(sp)
23c: 0800 addi s0,sp,16
test0();
23e: 00000097 auipc ra,0x0
242: dc2080e7 jalr -574(ra) # 0 <test0>
test1();
246: 00000097 auipc ra,0x0
24a: eac080e7 jalr -340(ra) # f2 <test1>
exit(0);
24e: 4501 li a0,0
250: 00000097 auipc ra,0x0
254: 276080e7 jalr 630(ra) # 4c6 <exit>
0000000000000258 <strcpy>:
#include "kernel/fcntl.h"
#include "user/user.h"
char*
strcpy(char *s, const char *t)
{
258: 1141 addi sp,sp,-16
25a: e422 sd s0,8(sp)
25c: 0800 addi s0,sp,16
char *os;
os = s;
while((*s++ = *t++) != 0)
25e: 87aa mv a5,a0
260: 0585 addi a1,a1,1
262: 0785 addi a5,a5,1
264: fff5c703 lbu a4,-1(a1)
268: fee78fa3 sb a4,-1(a5)
26c: fb75 bnez a4,260 <strcpy+0x8>
;
return os;
}
26e: 6422 ld s0,8(sp)
270: 0141 addi sp,sp,16
272: 8082 ret
0000000000000274 <strcmp>:
int
strcmp(const char *p, const char *q)
{
274: 1141 addi sp,sp,-16
276: e422 sd s0,8(sp)
278: 0800 addi s0,sp,16
while(*p && *p == *q)
27a: 00054783 lbu a5,0(a0)
27e: cb91 beqz a5,292 <strcmp+0x1e>
280: 0005c703 lbu a4,0(a1)
284: 00f71763 bne a4,a5,292 <strcmp+0x1e>
p++, q++;
288: 0505 addi a0,a0,1
28a: 0585 addi a1,a1,1
while(*p && *p == *q)
28c: 00054783 lbu a5,0(a0)
290: fbe5 bnez a5,280 <strcmp+0xc>
return (uchar)*p - (uchar)*q;
292: 0005c503 lbu a0,0(a1)
}
296: 40a7853b subw a0,a5,a0
29a: 6422 ld s0,8(sp)
29c: 0141 addi sp,sp,16
29e: 8082 ret
00000000000002a0 <strlen>:
uint
strlen(const char *s)
{
2a0: 1141 addi sp,sp,-16
2a2: e422 sd s0,8(sp)
2a4: 0800 addi s0,sp,16
int n;
for(n = 0; s[n]; n++)
2a6: 00054783 lbu a5,0(a0)
2aa: cf91 beqz a5,2c6 <strlen+0x26>
2ac: 0505 addi a0,a0,1
2ae: 87aa mv a5,a0
2b0: 4685 li a3,1
2b2: 9e89 subw a3,a3,a0
2b4: 00f6853b addw a0,a3,a5
2b8: 0785 addi a5,a5,1
2ba: fff7c703 lbu a4,-1(a5)
2be: fb7d bnez a4,2b4 <strlen+0x14>
;
return n;
}
2c0: 6422 ld s0,8(sp)
2c2: 0141 addi sp,sp,16
2c4: 8082 ret
for(n = 0; s[n]; n++)
2c6: 4501 li a0,0
2c8: bfe5 j 2c0 <strlen+0x20>
00000000000002ca <memset>:
void*
memset(void *dst, int c, uint n)
{
2ca: 1141 addi sp,sp,-16
2cc: e422 sd s0,8(sp)
2ce: 0800 addi s0,sp,16
char *cdst = (char *) dst;
int i;
for(i = 0; i < n; i++){
2d0: ca19 beqz a2,2e6 <memset+0x1c>
2d2: 87aa mv a5,a0
2d4: 1602 slli a2,a2,0x20
2d6: 9201 srli a2,a2,0x20
2d8: 00a60733 add a4,a2,a0
cdst[i] = c;
2dc: 00b78023 sb a1,0(a5)
for(i = 0; i < n; i++){
2e0: 0785 addi a5,a5,1
2e2: fee79de3 bne a5,a4,2dc <memset+0x12>
}
return dst;
}
2e6: 6422 ld s0,8(sp)
2e8: 0141 addi sp,sp,16
2ea: 8082 ret
00000000000002ec <strchr>:
char*
strchr(const char *s, char c)
{
2ec: 1141 addi sp,sp,-16
2ee: e422 sd s0,8(sp)
2f0: 0800 addi s0,sp,16
for(; *s; s++)
2f2: 00054783 lbu a5,0(a0)
2f6: cb99 beqz a5,30c <strchr+0x20>
if(*s == c)
2f8: 00f58763 beq a1,a5,306 <strchr+0x1a>
for(; *s; s++)
2fc: 0505 addi a0,a0,1
2fe: 00054783 lbu a5,0(a0)
302: fbfd bnez a5,2f8 <strchr+0xc>
return (char*)s;
return 0;
304: 4501 li a0,0
}
306: 6422 ld s0,8(sp)
308: 0141 addi sp,sp,16
30a: 8082 ret
return 0;
30c: 4501 li a0,0
30e: bfe5 j 306 <strchr+0x1a>
0000000000000310 <gets>:
char*
gets(char *buf, int max)
{
310: 711d addi sp,sp,-96
312: ec86 sd ra,88(sp)
314: e8a2 sd s0,80(sp)
316: e4a6 sd s1,72(sp)
318: e0ca sd s2,64(sp)
31a: fc4e sd s3,56(sp)
31c: f852 sd s4,48(sp)
31e: f456 sd s5,40(sp)
320: f05a sd s6,32(sp)
322: ec5e sd s7,24(sp)
324: 1080 addi s0,sp,96
326: 8baa mv s7,a0
328: 8a2e mv s4,a1
int i, cc;
char c;
for(i=0; i+1 < max; ){
32a: 892a mv s2,a0
32c: 4481 li s1,0
cc = read(0, &c, 1);
if(cc < 1)
break;
buf[i++] = c;
if(c == '\n' || c == '\r')
32e: 4aa9 li s5,10
330: 4b35 li s6,13
for(i=0; i+1 < max; ){
332: 89a6 mv s3,s1
334: 2485 addiw s1,s1,1
336: 0344d863 bge s1,s4,366 <gets+0x56>
cc = read(0, &c, 1);
33a: 4605 li a2,1
33c: faf40593 addi a1,s0,-81
340: 4501 li a0,0
342: 00000097 auipc ra,0x0
346: 19c080e7 jalr 412(ra) # 4de <read>
if(cc < 1)
34a: 00a05e63 blez a0,366 <gets+0x56>
buf[i++] = c;
34e: faf44783 lbu a5,-81(s0)
352: 00f90023 sb a5,0(s2)
if(c == '\n' || c == '\r')
356: 01578763 beq a5,s5,364 <gets+0x54>
35a: 0905 addi s2,s2,1
35c: fd679be3 bne a5,s6,332 <gets+0x22>
for(i=0; i+1 < max; ){
360: 89a6 mv s3,s1
362: a011 j 366 <gets+0x56>
364: 89a6 mv s3,s1
break;
}
buf[i] = '\0';
366: 99de add s3,s3,s7
368: 00098023 sb zero,0(s3)
return buf;
}
36c: 855e mv a0,s7
36e: 60e6 ld ra,88(sp)
370: 6446 ld s0,80(sp)
372: 64a6 ld s1,72(sp)
374: 6906 ld s2,64(sp)
376: 79e2 ld s3,56(sp)
378: 7a42 ld s4,48(sp)
37a: 7aa2 ld s5,40(sp)
37c: 7b02 ld s6,32(sp)
37e: 6be2 ld s7,24(sp)
380: 6125 addi sp,sp,96
382: 8082 ret
0000000000000384 <stat>:
int
stat(const char *n, struct stat *st)
{
384: 1101 addi sp,sp,-32
386: ec06 sd ra,24(sp)
388: e822 sd s0,16(sp)
38a: e426 sd s1,8(sp)
38c: e04a sd s2,0(sp)
38e: 1000 addi s0,sp,32
390: 892e mv s2,a1
int fd;
int r;
fd = open(n, O_RDONLY);
392: 4581 li a1,0
394: 00000097 auipc ra,0x0
398: 172080e7 jalr 370(ra) # 506 <open>
if(fd < 0)
39c: 02054563 bltz a0,3c6 <stat+0x42>
3a0: 84aa mv s1,a0
return -1;
r = fstat(fd, st);
3a2: 85ca mv a1,s2
3a4: 00000097 auipc ra,0x0
3a8: 17a080e7 jalr 378(ra) # 51e <fstat>
3ac: 892a mv s2,a0
close(fd);
3ae: 8526 mv a0,s1
3b0: 00000097 auipc ra,0x0
3b4: 13e080e7 jalr 318(ra) # 4ee <close>
return r;
}
3b8: 854a mv a0,s2
3ba: 60e2 ld ra,24(sp)
3bc: 6442 ld s0,16(sp)
3be: 64a2 ld s1,8(sp)
3c0: 6902 ld s2,0(sp)
3c2: 6105 addi sp,sp,32
3c4: 8082 ret
return -1;
3c6: 597d li s2,-1
3c8: bfc5 j 3b8 <stat+0x34>
00000000000003ca <atoi>:
int
atoi(const char *s)
{
3ca: 1141 addi sp,sp,-16
3cc: e422 sd s0,8(sp)
3ce: 0800 addi s0,sp,16
int n;
n = 0;
while('0' <= *s && *s <= '9')
3d0: 00054603 lbu a2,0(a0)
3d4: fd06079b addiw a5,a2,-48
3d8: 0ff7f793 andi a5,a5,255
3dc: 4725 li a4,9
3de: 02f76963 bltu a4,a5,410 <atoi+0x46>
3e2: 86aa mv a3,a0
n = 0;
3e4: 4501 li a0,0
while('0' <= *s && *s <= '9')
3e6: 45a5 li a1,9
n = n*10 + *s++ - '0';
3e8: 0685 addi a3,a3,1
3ea: 0025179b slliw a5,a0,0x2
3ee: 9fa9 addw a5,a5,a0
3f0: 0017979b slliw a5,a5,0x1
3f4: 9fb1 addw a5,a5,a2
3f6: fd07851b addiw a0,a5,-48
while('0' <= *s && *s <= '9')
3fa: 0006c603 lbu a2,0(a3)
3fe: fd06071b addiw a4,a2,-48
402: 0ff77713 andi a4,a4,255
406: fee5f1e3 bgeu a1,a4,3e8 <atoi+0x1e>
return n;
}
40a: 6422 ld s0,8(sp)
40c: 0141 addi sp,sp,16
40e: 8082 ret
n = 0;
410: 4501 li a0,0
412: bfe5 j 40a <atoi+0x40>
0000000000000414 <memmove>:
void*
memmove(void *vdst, const void *vsrc, int n)
{
414: 1141 addi sp,sp,-16
416: e422 sd s0,8(sp)
418: 0800 addi s0,sp,16
char *dst;
const char *src;
dst = vdst;
src = vsrc;
if (src > dst) {
41a: 02b57463 bgeu a0,a1,442 <memmove+0x2e>
while(n-- > 0)
41e: 00c05f63 blez a2,43c <memmove+0x28>
422: 1602 slli a2,a2,0x20
424: 9201 srli a2,a2,0x20
426: 00c507b3 add a5,a0,a2
dst = vdst;
42a: 872a mv a4,a0
*dst++ = *src++;
42c: 0585 addi a1,a1,1
42e: 0705 addi a4,a4,1
430: fff5c683 lbu a3,-1(a1)
434: fed70fa3 sb a3,-1(a4)
while(n-- > 0)
438: fee79ae3 bne a5,a4,42c <memmove+0x18>
src += n;
while(n-- > 0)
*--dst = *--src;
}
return vdst;
}
43c: 6422 ld s0,8(sp)
43e: 0141 addi sp,sp,16
440: 8082 ret
dst += n;
442: 00c50733 add a4,a0,a2
src += n;
446: 95b2 add a1,a1,a2
while(n-- > 0)
448: fec05ae3 blez a2,43c <memmove+0x28>
44c: fff6079b addiw a5,a2,-1
450: 1782 slli a5,a5,0x20
452: 9381 srli a5,a5,0x20
454: fff7c793 not a5,a5
458: 97ba add a5,a5,a4
*--dst = *--src;
45a: 15fd addi a1,a1,-1
45c: 177d addi a4,a4,-1
45e: 0005c683 lbu a3,0(a1)
462: 00d70023 sb a3,0(a4)
while(n-- > 0)
466: fee79ae3 bne a5,a4,45a <memmove+0x46>
46a: bfc9 j 43c <memmove+0x28>
000000000000046c <memcmp>:
int
memcmp(const void *s1, const void *s2, uint n)
{
46c: 1141 addi sp,sp,-16
46e: e422 sd s0,8(sp)
470: 0800 addi s0,sp,16
const char *p1 = s1, *p2 = s2;
while (n-- > 0) {
472: ca05 beqz a2,4a2 <memcmp+0x36>
474: fff6069b addiw a3,a2,-1
478: 1682 slli a3,a3,0x20
47a: 9281 srli a3,a3,0x20
47c: 0685 addi a3,a3,1
47e: 96aa add a3,a3,a0
if (*p1 != *p2) {
480: 00054783 lbu a5,0(a0)
484: 0005c703 lbu a4,0(a1)
488: 00e79863 bne a5,a4,498 <memcmp+0x2c>
return *p1 - *p2;
}
p1++;
48c: 0505 addi a0,a0,1
p2++;
48e: 0585 addi a1,a1,1
while (n-- > 0) {
490: fed518e3 bne a0,a3,480 <memcmp+0x14>
}
return 0;
494: 4501 li a0,0
496: a019 j 49c <memcmp+0x30>
return *p1 - *p2;
498: 40e7853b subw a0,a5,a4
}
49c: 6422 ld s0,8(sp)
49e: 0141 addi sp,sp,16
4a0: 8082 ret
return 0;
4a2: 4501 li a0,0
4a4: bfe5 j 49c <memcmp+0x30>
00000000000004a6 <memcpy>:
void *
memcpy(void *dst, const void *src, uint n)
{
4a6: 1141 addi sp,sp,-16
4a8: e406 sd ra,8(sp)
4aa: e022 sd s0,0(sp)
4ac: 0800 addi s0,sp,16
return memmove(dst, src, n);
4ae: 00000097 auipc ra,0x0
4b2: f66080e7 jalr -154(ra) # 414 <memmove>
}
4b6: 60a2 ld ra,8(sp)
4b8: 6402 ld s0,0(sp)
4ba: 0141 addi sp,sp,16
4bc: 8082 ret
00000000000004be <fork>:
# generated by usys.pl - do not edit
#include "kernel/syscall.h"
.global fork
fork:
li a7, SYS_fork
4be: 4885 li a7,1
ecall
4c0: 00000073 ecall
ret
4c4: 8082 ret
00000000000004c6 <exit>:
.global exit
exit:
li a7, SYS_exit
4c6: 4889 li a7,2
ecall
4c8: 00000073 ecall
ret
4cc: 8082 ret
00000000000004ce <wait>:
.global wait
wait:
li a7, SYS_wait
4ce: 488d li a7,3
ecall
4d0: 00000073 ecall
ret
4d4: 8082 ret
00000000000004d6 <pipe>:
.global pipe
pipe:
li a7, SYS_pipe
4d6: 4891 li a7,4
ecall
4d8: 00000073 ecall
ret
4dc: 8082 ret
00000000000004de <read>:
.global read
read:
li a7, SYS_read
4de: 4895 li a7,5
ecall
4e0: 00000073 ecall
ret
4e4: 8082 ret
00000000000004e6 <write>:
.global write
write:
li a7, SYS_write
4e6: 48c1 li a7,16
ecall
4e8: 00000073 ecall
ret
4ec: 8082 ret
00000000000004ee <close>:
.global close
close:
li a7, SYS_close
4ee: 48d5 li a7,21
ecall
4f0: 00000073 ecall
ret
4f4: 8082 ret
00000000000004f6 <kill>:
.global kill
kill:
li a7, SYS_kill
4f6: 4899 li a7,6
ecall
4f8: 00000073 ecall
ret
4fc: 8082 ret
00000000000004fe <exec>:
.global exec
exec:
li a7, SYS_exec
4fe: 489d li a7,7
ecall
500: 00000073 ecall
ret
504: 8082 ret
0000000000000506 <open>:
.global open
open:
li a7, SYS_open
506: 48bd li a7,15
ecall
508: 00000073 ecall
ret
50c: 8082 ret
000000000000050e <mknod>:
.global mknod
mknod:
li a7, SYS_mknod
50e: 48c5 li a7,17
ecall
510: 00000073 ecall
ret
514: 8082 ret
0000000000000516 <unlink>:
.global unlink
unlink:
li a7, SYS_unlink
516: 48c9 li a7,18
ecall
518: 00000073 ecall
ret
51c: 8082 ret
000000000000051e <fstat>:
.global fstat
fstat:
li a7, SYS_fstat
51e: 48a1 li a7,8
ecall
520: 00000073 ecall
ret
524: 8082 ret
0000000000000526 <link>:
.global link
link:
li a7, SYS_link
526: 48cd li a7,19
ecall
528: 00000073 ecall
ret
52c: 8082 ret
000000000000052e <mkdir>:
.global mkdir
mkdir:
li a7, SYS_mkdir
52e: 48d1 li a7,20
ecall
530: 00000073 ecall
ret
534: 8082 ret
0000000000000536 <chdir>:
.global chdir
chdir:
li a7, SYS_chdir
536: 48a5 li a7,9
ecall
538: 00000073 ecall
ret
53c: 8082 ret
000000000000053e <dup>:
.global dup
dup:
li a7, SYS_dup
53e: 48a9 li a7,10
ecall
540: 00000073 ecall
ret
544: 8082 ret
0000000000000546 <getpid>:
.global getpid
getpid:
li a7, SYS_getpid
546: 48ad li a7,11
ecall
548: 00000073 ecall
ret
54c: 8082 ret
000000000000054e <sbrk>:
.global sbrk
sbrk:
li a7, SYS_sbrk
54e: 48b1 li a7,12
ecall
550: 00000073 ecall
ret
554: 8082 ret
0000000000000556 <sleep>:
.global sleep
sleep:
li a7, SYS_sleep
556: 48b5 li a7,13
ecall
558: 00000073 ecall
ret
55c: 8082 ret
000000000000055e <uptime>:
.global uptime
uptime:
li a7, SYS_uptime
55e: 48b9 li a7,14
ecall
560: 00000073 ecall
ret
564: 8082 ret
0000000000000566 <ntas>:
.global ntas
ntas:
li a7, SYS_ntas
566: 48d9 li a7,22
ecall
568: 00000073 ecall
ret
56c: 8082 ret
000000000000056e <putc>:
static char digits[] = "0123456789ABCDEF";
static void
putc(int fd, char c)
{
56e: 1101 addi sp,sp,-32
570: ec06 sd ra,24(sp)
572: e822 sd s0,16(sp)
574: 1000 addi s0,sp,32
576: feb407a3 sb a1,-17(s0)
write(fd, &c, 1);
57a: 4605 li a2,1
57c: fef40593 addi a1,s0,-17
580: 00000097 auipc ra,0x0
584: f66080e7 jalr -154(ra) # 4e6 <write>
}
588: 60e2 ld ra,24(sp)
58a: 6442 ld s0,16(sp)
58c: 6105 addi sp,sp,32
58e: 8082 ret
0000000000000590 <printint>:
static void
printint(int fd, int xx, int base, int sgn)
{
590: 7139 addi sp,sp,-64
592: fc06 sd ra,56(sp)
594: f822 sd s0,48(sp)
596: f426 sd s1,40(sp)
598: f04a sd s2,32(sp)
59a: ec4e sd s3,24(sp)
59c: 0080 addi s0,sp,64
59e: 84aa mv s1,a0
char buf[16];
int i, neg;
uint x;
neg = 0;
if(sgn && xx < 0){
5a0: c299 beqz a3,5a6 <printint+0x16>
5a2: 0805c863 bltz a1,632 <printint+0xa2>
neg = 1;
x = -xx;
} else {
x = xx;
5a6: 2581 sext.w a1,a1
neg = 0;
5a8: 4881 li a7,0
5aa: fc040693 addi a3,s0,-64
}
i = 0;
5ae: 4701 li a4,0
do{
buf[i++] = digits[x % base];
5b0: 2601 sext.w a2,a2
5b2: 00000517 auipc a0,0x0
5b6: 53650513 addi a0,a0,1334 # ae8 <digits>
5ba: 883a mv a6,a4
5bc: 2705 addiw a4,a4,1
5be: 02c5f7bb remuw a5,a1,a2
5c2: 1782 slli a5,a5,0x20
5c4: 9381 srli a5,a5,0x20
5c6: 97aa add a5,a5,a0
5c8: 0007c783 lbu a5,0(a5)
5cc: 00f68023 sb a5,0(a3)
}while((x /= base) != 0);
5d0: 0005879b sext.w a5,a1
5d4: 02c5d5bb divuw a1,a1,a2
5d8: 0685 addi a3,a3,1
5da: fec7f0e3 bgeu a5,a2,5ba <printint+0x2a>
if(neg)
5de: 00088b63 beqz a7,5f4 <printint+0x64>
buf[i++] = '-';
5e2: fd040793 addi a5,s0,-48
5e6: 973e add a4,a4,a5
5e8: 02d00793 li a5,45
5ec: fef70823 sb a5,-16(a4)
5f0: 0028071b addiw a4,a6,2
while(--i >= 0)
5f4: 02e05863 blez a4,624 <printint+0x94>
5f8: fc040793 addi a5,s0,-64
5fc: 00e78933 add s2,a5,a4
600: fff78993 addi s3,a5,-1
604: 99ba add s3,s3,a4
606: 377d addiw a4,a4,-1
608: 1702 slli a4,a4,0x20
60a: 9301 srli a4,a4,0x20
60c: 40e989b3 sub s3,s3,a4
putc(fd, buf[i]);
610: fff94583 lbu a1,-1(s2)
614: 8526 mv a0,s1
616: 00000097 auipc ra,0x0
61a: f58080e7 jalr -168(ra) # 56e <putc>
while(--i >= 0)
61e: 197d addi s2,s2,-1
620: ff3918e3 bne s2,s3,610 <printint+0x80>
}
624: 70e2 ld ra,56(sp)
626: 7442 ld s0,48(sp)
628: 74a2 ld s1,40(sp)
62a: 7902 ld s2,32(sp)
62c: 69e2 ld s3,24(sp)
62e: 6121 addi sp,sp,64
630: 8082 ret
x = -xx;
632: 40b005bb negw a1,a1
neg = 1;
636: 4885 li a7,1
x = -xx;
638: bf8d j 5aa <printint+0x1a>
000000000000063a <vprintf>:
}
// Print to the given fd. Only understands %d, %x, %p, %s.
void
vprintf(int fd, const char *fmt, va_list ap)
{
63a: 7119 addi sp,sp,-128
63c: fc86 sd ra,120(sp)
63e: f8a2 sd s0,112(sp)
640: f4a6 sd s1,104(sp)
642: f0ca sd s2,96(sp)
644: ecce sd s3,88(sp)
646: e8d2 sd s4,80(sp)
648: e4d6 sd s5,72(sp)
64a: e0da sd s6,64(sp)
64c: fc5e sd s7,56(sp)
64e: f862 sd s8,48(sp)
650: f466 sd s9,40(sp)
652: f06a sd s10,32(sp)
654: ec6e sd s11,24(sp)
656: 0100 addi s0,sp,128
char *s;
int c, i, state;
state = 0;
for(i = 0; fmt[i]; i++){
658: 0005c903 lbu s2,0(a1)
65c: 18090f63 beqz s2,7fa <vprintf+0x1c0>
660: 8aaa mv s5,a0
662: 8b32 mv s6,a2
664: 00158493 addi s1,a1,1
state = 0;
668: 4981 li s3,0
if(c == '%'){
state = '%';
} else {
putc(fd, c);
}
} else if(state == '%'){
66a: 02500a13 li s4,37
if(c == 'd'){
66e: 06400c13 li s8,100
printint(fd, va_arg(ap, int), 10, 1);
} else if(c == 'l') {
672: 06c00c93 li s9,108
printint(fd, va_arg(ap, uint64), 10, 0);
} else if(c == 'x') {
676: 07800d13 li s10,120
printint(fd, va_arg(ap, int), 16, 0);
} else if(c == 'p') {
67a: 07000d93 li s11,112
putc(fd, digits[x >> (sizeof(uint64) * 8 - 4)]);
67e: 00000b97 auipc s7,0x0
682: 46ab8b93 addi s7,s7,1130 # ae8 <digits>
686: a839 j 6a4 <vprintf+0x6a>
putc(fd, c);
688: 85ca mv a1,s2
68a: 8556 mv a0,s5
68c: 00000097 auipc ra,0x0
690: ee2080e7 jalr -286(ra) # 56e <putc>
694: a019 j 69a <vprintf+0x60>
} else if(state == '%'){
696: 01498f63 beq s3,s4,6b4 <vprintf+0x7a>
for(i = 0; fmt[i]; i++){
69a: 0485 addi s1,s1,1
69c: fff4c903 lbu s2,-1(s1)
6a0: 14090d63 beqz s2,7fa <vprintf+0x1c0>
c = fmt[i] & 0xff;
6a4: 0009079b sext.w a5,s2
if(state == 0){
6a8: fe0997e3 bnez s3,696 <vprintf+0x5c>
if(c == '%'){
6ac: fd479ee3 bne a5,s4,688 <vprintf+0x4e>
state = '%';
6b0: 89be mv s3,a5
6b2: b7e5 j 69a <vprintf+0x60>
if(c == 'd'){
6b4: 05878063 beq a5,s8,6f4 <vprintf+0xba>
} else if(c == 'l') {
6b8: 05978c63 beq a5,s9,710 <vprintf+0xd6>
} else if(c == 'x') {
6bc: 07a78863 beq a5,s10,72c <vprintf+0xf2>
} else if(c == 'p') {
6c0: 09b78463 beq a5,s11,748 <vprintf+0x10e>
printptr(fd, va_arg(ap, uint64));
} else if(c == 's'){
6c4: 07300713 li a4,115
6c8: 0ce78663 beq a5,a4,794 <vprintf+0x15a>
s = "(null)";
while(*s != 0){
putc(fd, *s);
s++;
}
} else if(c == 'c'){
6cc: 06300713 li a4,99
6d0: 0ee78e63 beq a5,a4,7cc <vprintf+0x192>
putc(fd, va_arg(ap, uint));
} else if(c == '%'){
6d4: 11478863 beq a5,s4,7e4 <vprintf+0x1aa>
putc(fd, c);
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
6d8: 85d2 mv a1,s4
6da: 8556 mv a0,s5
6dc: 00000097 auipc ra,0x0
6e0: e92080e7 jalr -366(ra) # 56e <putc>
putc(fd, c);
6e4: 85ca mv a1,s2
6e6: 8556 mv a0,s5
6e8: 00000097 auipc ra,0x0
6ec: e86080e7 jalr -378(ra) # 56e <putc>
}
state = 0;
6f0: 4981 li s3,0
6f2: b765 j 69a <vprintf+0x60>
printint(fd, va_arg(ap, int), 10, 1);
6f4: 008b0913 addi s2,s6,8
6f8: 4685 li a3,1
6fa: 4629 li a2,10
6fc: 000b2583 lw a1,0(s6)
700: 8556 mv a0,s5
702: 00000097 auipc ra,0x0
706: e8e080e7 jalr -370(ra) # 590 <printint>
70a: 8b4a mv s6,s2
state = 0;
70c: 4981 li s3,0
70e: b771 j 69a <vprintf+0x60>
printint(fd, va_arg(ap, uint64), 10, 0);
710: 008b0913 addi s2,s6,8
714: 4681 li a3,0
716: 4629 li a2,10
718: 000b2583 lw a1,0(s6)
71c: 8556 mv a0,s5
71e: 00000097 auipc ra,0x0
722: e72080e7 jalr -398(ra) # 590 <printint>
726: 8b4a mv s6,s2
state = 0;
728: 4981 li s3,0
72a: bf85 j 69a <vprintf+0x60>
printint(fd, va_arg(ap, int), 16, 0);
72c: 008b0913 addi s2,s6,8
730: 4681 li a3,0
732: 4641 li a2,16
734: 000b2583 lw a1,0(s6)
738: 8556 mv a0,s5
73a: 00000097 auipc ra,0x0
73e: e56080e7 jalr -426(ra) # 590 <printint>
742: 8b4a mv s6,s2
state = 0;
744: 4981 li s3,0
746: bf91 j 69a <vprintf+0x60>
printptr(fd, va_arg(ap, uint64));
748: 008b0793 addi a5,s6,8
74c: f8f43423 sd a5,-120(s0)
750: 000b3983 ld s3,0(s6)
putc(fd, '0');
754: 03000593 li a1,48
758: 8556 mv a0,s5
75a: 00000097 auipc ra,0x0
75e: e14080e7 jalr -492(ra) # 56e <putc>
putc(fd, 'x');
762: 85ea mv a1,s10
764: 8556 mv a0,s5
766: 00000097 auipc ra,0x0
76a: e08080e7 jalr -504(ra) # 56e <putc>
76e: 4941 li s2,16
putc(fd, digits[x >> (sizeof(uint64) * 8 - 4)]);
770: 03c9d793 srli a5,s3,0x3c
774: 97de add a5,a5,s7
776: 0007c583 lbu a1,0(a5)
77a: 8556 mv a0,s5
77c: 00000097 auipc ra,0x0
780: df2080e7 jalr -526(ra) # 56e <putc>
for (i = 0; i < (sizeof(uint64) * 2); i++, x <<= 4)
784: 0992 slli s3,s3,0x4
786: 397d addiw s2,s2,-1
788: fe0914e3 bnez s2,770 <vprintf+0x136>
printptr(fd, va_arg(ap, uint64));
78c: f8843b03 ld s6,-120(s0)
state = 0;
790: 4981 li s3,0
792: b721 j 69a <vprintf+0x60>
s = va_arg(ap, char*);
794: 008b0993 addi s3,s6,8
798: 000b3903 ld s2,0(s6)
if(s == 0)
79c: 02090163 beqz s2,7be <vprintf+0x184>
while(*s != 0){
7a0: 00094583 lbu a1,0(s2)
7a4: c9a1 beqz a1,7f4 <vprintf+0x1ba>
putc(fd, *s);
7a6: 8556 mv a0,s5
7a8: 00000097 auipc ra,0x0
7ac: dc6080e7 jalr -570(ra) # 56e <putc>
s++;
7b0: 0905 addi s2,s2,1
while(*s != 0){
7b2: 00094583 lbu a1,0(s2)
7b6: f9e5 bnez a1,7a6 <vprintf+0x16c>
s = va_arg(ap, char*);
7b8: 8b4e mv s6,s3
state = 0;
7ba: 4981 li s3,0
7bc: bdf9 j 69a <vprintf+0x60>
s = "(null)";
7be: 00000917 auipc s2,0x0
7c2: 32290913 addi s2,s2,802 # ae0 <malloc+0x1dc>
while(*s != 0){
7c6: 02800593 li a1,40
7ca: bff1 j 7a6 <vprintf+0x16c>
putc(fd, va_arg(ap, uint));
7cc: 008b0913 addi s2,s6,8
7d0: 000b4583 lbu a1,0(s6)
7d4: 8556 mv a0,s5
7d6: 00000097 auipc ra,0x0
7da: d98080e7 jalr -616(ra) # 56e <putc>
7de: 8b4a mv s6,s2
state = 0;
7e0: 4981 li s3,0
7e2: bd65 j 69a <vprintf+0x60>
putc(fd, c);
7e4: 85d2 mv a1,s4
7e6: 8556 mv a0,s5
7e8: 00000097 auipc ra,0x0
7ec: d86080e7 jalr -634(ra) # 56e <putc>
state = 0;
7f0: 4981 li s3,0
7f2: b565 j 69a <vprintf+0x60>
s = va_arg(ap, char*);
7f4: 8b4e mv s6,s3
state = 0;
7f6: 4981 li s3,0
7f8: b54d j 69a <vprintf+0x60>
}
}
}
7fa: 70e6 ld ra,120(sp)
7fc: 7446 ld s0,112(sp)
7fe: 74a6 ld s1,104(sp)
800: 7906 ld s2,96(sp)
802: 69e6 ld s3,88(sp)
804: 6a46 ld s4,80(sp)
806: 6aa6 ld s5,72(sp)
808: 6b06 ld s6,64(sp)
80a: 7be2 ld s7,56(sp)
80c: 7c42 ld s8,48(sp)
80e: 7ca2 ld s9,40(sp)
810: 7d02 ld s10,32(sp)
812: 6de2 ld s11,24(sp)
814: 6109 addi sp,sp,128
816: 8082 ret
0000000000000818 <fprintf>:
void
fprintf(int fd, const char *fmt, ...)
{
818: 715d addi sp,sp,-80
81a: ec06 sd ra,24(sp)
81c: e822 sd s0,16(sp)
81e: 1000 addi s0,sp,32
820: e010 sd a2,0(s0)
822: e414 sd a3,8(s0)
824: e818 sd a4,16(s0)
826: ec1c sd a5,24(s0)
828: 03043023 sd a6,32(s0)
82c: 03143423 sd a7,40(s0)
va_list ap;
va_start(ap, fmt);
830: fe843423 sd s0,-24(s0)
vprintf(fd, fmt, ap);
834: 8622 mv a2,s0
836: 00000097 auipc ra,0x0
83a: e04080e7 jalr -508(ra) # 63a <vprintf>
}
83e: 60e2 ld ra,24(sp)
840: 6442 ld s0,16(sp)
842: 6161 addi sp,sp,80
844: 8082 ret
0000000000000846 <printf>:
void
printf(const char *fmt, ...)
{
846: 711d addi sp,sp,-96
848: ec06 sd ra,24(sp)
84a: e822 sd s0,16(sp)
84c: 1000 addi s0,sp,32
84e: e40c sd a1,8(s0)
850: e810 sd a2,16(s0)
852: ec14 sd a3,24(s0)
854: f018 sd a4,32(s0)
856: f41c sd a5,40(s0)
858: 03043823 sd a6,48(s0)
85c: 03143c23 sd a7,56(s0)
va_list ap;
va_start(ap, fmt);
860: 00840613 addi a2,s0,8
864: fec43423 sd a2,-24(s0)
vprintf(1, fmt, ap);
868: 85aa mv a1,a0
86a: 4505 li a0,1
86c: 00000097 auipc ra,0x0
870: dce080e7 jalr -562(ra) # 63a <vprintf>
}
874: 60e2 ld ra,24(sp)
876: 6442 ld s0,16(sp)
878: 6125 addi sp,sp,96
87a: 8082 ret
000000000000087c <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
87c: 1141 addi sp,sp,-16
87e: e422 sd s0,8(sp)
880: 0800 addi s0,sp,16
Header *bp, *p;
bp = (Header*)ap - 1;
882: ff050693 addi a3,a0,-16
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
886: 00000797 auipc a5,0x0
88a: 27a7b783 ld a5,634(a5) # b00 <freep>
88e: a805 j 8be <free+0x42>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
break;
if(bp + bp->s.size == p->s.ptr){
bp->s.size += p->s.ptr->s.size;
890: 4618 lw a4,8(a2)
892: 9db9 addw a1,a1,a4
894: feb52c23 sw a1,-8(a0)
bp->s.ptr = p->s.ptr->s.ptr;
898: 6398 ld a4,0(a5)
89a: 6318 ld a4,0(a4)
89c: fee53823 sd a4,-16(a0)
8a0: a091 j 8e4 <free+0x68>
} else
bp->s.ptr = p->s.ptr;
if(p + p->s.size == bp){
p->s.size += bp->s.size;
8a2: ff852703 lw a4,-8(a0)
8a6: 9e39 addw a2,a2,a4
8a8: c790 sw a2,8(a5)
p->s.ptr = bp->s.ptr;
8aa: ff053703 ld a4,-16(a0)
8ae: e398 sd a4,0(a5)
8b0: a099 j 8f6 <free+0x7a>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
8b2: 6398 ld a4,0(a5)
8b4: 00e7e463 bltu a5,a4,8bc <free+0x40>
8b8: 00e6ea63 bltu a3,a4,8cc <free+0x50>
{
8bc: 87ba mv a5,a4
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
8be: fed7fae3 bgeu a5,a3,8b2 <free+0x36>
8c2: 6398 ld a4,0(a5)
8c4: 00e6e463 bltu a3,a4,8cc <free+0x50>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
8c8: fee7eae3 bltu a5,a4,8bc <free+0x40>
if(bp + bp->s.size == p->s.ptr){
8cc: ff852583 lw a1,-8(a0)
8d0: 6390 ld a2,0(a5)
8d2: 02059813 slli a6,a1,0x20
8d6: 01c85713 srli a4,a6,0x1c
8da: 9736 add a4,a4,a3
8dc: fae60ae3 beq a2,a4,890 <free+0x14>
bp->s.ptr = p->s.ptr;
8e0: fec53823 sd a2,-16(a0)
if(p + p->s.size == bp){
8e4: 4790 lw a2,8(a5)
8e6: 02061593 slli a1,a2,0x20
8ea: 01c5d713 srli a4,a1,0x1c
8ee: 973e add a4,a4,a5
8f0: fae689e3 beq a3,a4,8a2 <free+0x26>
} else
p->s.ptr = bp;
8f4: e394 sd a3,0(a5)
freep = p;
8f6: 00000717 auipc a4,0x0
8fa: 20f73523 sd a5,522(a4) # b00 <freep>
}
8fe: 6422 ld s0,8(sp)
900: 0141 addi sp,sp,16
902: 8082 ret
0000000000000904 <malloc>:
return freep;
}
void*
malloc(uint nbytes)
{
904: 7139 addi sp,sp,-64
906: fc06 sd ra,56(sp)
908: f822 sd s0,48(sp)
90a: f426 sd s1,40(sp)
90c: f04a sd s2,32(sp)
90e: ec4e sd s3,24(sp)
910: e852 sd s4,16(sp)
912: e456 sd s5,8(sp)
914: e05a sd s6,0(sp)
916: 0080 addi s0,sp,64
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
918: 02051493 slli s1,a0,0x20
91c: 9081 srli s1,s1,0x20
91e: 04bd addi s1,s1,15
920: 8091 srli s1,s1,0x4
922: 0014899b addiw s3,s1,1
926: 0485 addi s1,s1,1
if((prevp = freep) == 0){
928: 00000517 auipc a0,0x0
92c: 1d853503 ld a0,472(a0) # b00 <freep>
930: c515 beqz a0,95c <malloc+0x58>
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
932: 611c ld a5,0(a0)
if(p->s.size >= nunits){
934: 4798 lw a4,8(a5)
936: 02977f63 bgeu a4,s1,974 <malloc+0x70>
93a: 8a4e mv s4,s3
93c: 0009871b sext.w a4,s3
940: 6685 lui a3,0x1
942: 00d77363 bgeu a4,a3,948 <malloc+0x44>
946: 6a05 lui s4,0x1
948: 000a0b1b sext.w s6,s4
p = sbrk(nu * sizeof(Header));
94c: 004a1a1b slliw s4,s4,0x4
p->s.size = nunits;
}
freep = prevp;
return (void*)(p + 1);
}
if(p == freep)
950: 00000917 auipc s2,0x0
954: 1b090913 addi s2,s2,432 # b00 <freep>
if(p == (char*)-1)
958: 5afd li s5,-1
95a: a895 j 9ce <malloc+0xca>
base.s.ptr = freep = prevp = &base;
95c: 00000797 auipc a5,0x0
960: 1ac78793 addi a5,a5,428 # b08 <base>
964: 00000717 auipc a4,0x0
968: 18f73e23 sd a5,412(a4) # b00 <freep>
96c: e39c sd a5,0(a5)
base.s.size = 0;
96e: 0007a423 sw zero,8(a5)
if(p->s.size >= nunits){
972: b7e1 j 93a <malloc+0x36>
if(p->s.size == nunits)
974: 02e48c63 beq s1,a4,9ac <malloc+0xa8>
p->s.size -= nunits;
978: 4137073b subw a4,a4,s3
97c: c798 sw a4,8(a5)
p += p->s.size;
97e: 02071693 slli a3,a4,0x20
982: 01c6d713 srli a4,a3,0x1c
986: 97ba add a5,a5,a4
p->s.size = nunits;
988: 0137a423 sw s3,8(a5)
freep = prevp;
98c: 00000717 auipc a4,0x0
990: 16a73a23 sd a0,372(a4) # b00 <freep>
return (void*)(p + 1);
994: 01078513 addi a0,a5,16
if((p = morecore(nunits)) == 0)
return 0;
}
}
998: 70e2 ld ra,56(sp)
99a: 7442 ld s0,48(sp)
99c: 74a2 ld s1,40(sp)
99e: 7902 ld s2,32(sp)
9a0: 69e2 ld s3,24(sp)
9a2: 6a42 ld s4,16(sp)
9a4: 6aa2 ld s5,8(sp)
9a6: 6b02 ld s6,0(sp)
9a8: 6121 addi sp,sp,64
9aa: 8082 ret
prevp->s.ptr = p->s.ptr;
9ac: 6398 ld a4,0(a5)
9ae: e118 sd a4,0(a0)
9b0: bff1 j 98c <malloc+0x88>
hp->s.size = nu;
9b2: 01652423 sw s6,8(a0)
free((void*)(hp + 1));
9b6: 0541 addi a0,a0,16
9b8: 00000097 auipc ra,0x0
9bc: ec4080e7 jalr -316(ra) # 87c <free>
return freep;
9c0: 00093503 ld a0,0(s2)
if((p = morecore(nunits)) == 0)
9c4: d971 beqz a0,998 <malloc+0x94>
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
9c6: 611c ld a5,0(a0)
if(p->s.size >= nunits){
9c8: 4798 lw a4,8(a5)
9ca: fa9775e3 bgeu a4,s1,974 <malloc+0x70>
if(p == freep)
9ce: 00093703 ld a4,0(s2)
9d2: 853e mv a0,a5
9d4: fef719e3 bne a4,a5,9c6 <malloc+0xc2>
p = sbrk(nu * sizeof(Header));
9d8: 8552 mv a0,s4
9da: 00000097 auipc ra,0x0
9de: b74080e7 jalr -1164(ra) # 54e <sbrk>
if(p == (char*)-1)
9e2: fd5518e3 bne a0,s5,9b2 <malloc+0xae>
return 0;
9e6: 4501 li a0,0
9e8: bf45 j 998 <malloc+0x94>
| 30.26737 | 74 | 0.465537 |
f2d7d730b7fdec3083fe97a1dd4591221a1e258d | 62,663 | asm | Assembly | test/data/ASM-Z-80/hardmess.asm | jfitz/code-stat | dd2a13177f3ef03ab42123ef3cfcbbd062a2ae26 | [
"MIT"
] | null | null | null | test/data/ASM-Z-80/hardmess.asm | jfitz/code-stat | dd2a13177f3ef03ab42123ef3cfcbbd062a2ae26 | [
"MIT"
] | null | null | null | test/data/ASM-Z-80/hardmess.asm | jfitz/code-stat | dd2a13177f3ef03ab42123ef3cfcbbd062a2ae26 | [
"MIT"
] | null | null | null | ;; Hardware text scroller
;; Scrolls text from right to left
;;
;; Code by Kev Thacker
;;
;; Released under the GNU Public License v1
org &2000
nolist
.screen_wide equ 80
;no of characters wide*2
.screen_location equ &3000
;address to send to CRTC6845 screen chip
.screen_plot_address equ &c000+screen_wide-2
;screen address to plot column of character
.character_height equ 32 ;height of a character in the font in lines
.character_width equ 16 ;width of a character in the font
;in bytes (must be divisable by 2)
.no_columns equ character_width/2
;no of 2 byte wide columns to plot
let no_characters='Z'-'@'+1
.scr_set_mode equ &bc0e
.scr_set_border equ &bc38
.scr_set_ink equ &bc32
xor a
call scr_set_mode
ld hl,palette
xor a
set_palette:
push af
ld b,(hl)
ld c,b
inc hl
push hl
call scr_set_ink
pop hl
pop af
inc a
cp 16
jr nz,set_palette
ld bc,0
call scr_set_border
char_height_1 equ character_height+7
char_height equ char_height_1/8
;; limit height of screen (avoids seeing garbage as it scrolls on)
ld bc,&bc06
out (c),c
ld bc,&bd00+char_height
out (c),c
;; ************************ INITIALISE DATA *******************************
call calculate_font_table ;calculate pointers to each character in
;font
xor a
ld (column_counter),a ;first column of first character
call init_scroll
;; *********************** SCROLL MESSAGE *********************************
.loop ld b,&f5 ;wait frame flyback
.l1 in a,(c)
rra
jr nc,l1
call plot_character ;plot column of character on screen
;; update screen base address
.start
ld hl,screen_location ;; this is modified
inc hl
ld a,h
and &33
ld h,a
ld (start+1),hl
;; write to CRTC
ld bc,&bc00+12
out (c),c
inc b
out (c),h
dec b
inc c
out (c),c
inc b
out (c),l
;; update address to plot column
.plot_address
ld de,screen_plot_address ;; this is modified
inc de
inc de
ld a,d
and &c7
ld d,a
ld (plot_address+1),de
jp loop
.plot_character
ld a,character_height
ld de,(plot_address+1)
.current_character ld hl,0
;; NOTE: Uses I register. So this will not work in interrupt mode 2 without
;; modification.
;; Note: chars are stored a column at a time. Each column is 2 bytes wide.
.plot_column ld i,a
ld a,(hl)
ld (de),a
inc de
inc hl
ld a,(hl)
ld (de),a
dec de
inc hl
ex de,hl
call scr_next_line
ex de,hl
ld a,i
dec a
jr nz,plot_column
ld (current_character+1),hl
ld hl,column_counter ;current column
inc (hl) ;update column
ld a,(hl)
cp no_columns
ret nz
xor a ;reset current column
ld (hl),a
.scroll_address ld hl,scroll_text ;update for next character
inc hl
ld (scroll_address+1),hl
ld a,(hl) ;is character 0?? (end of message marker)
or a
jr nz,cont ;no, so get next character
;yes, so put current_character back to
;start of message
.init_scroll
ld hl,scroll_text
ld (scroll_address+1),hl
ld a,(hl)
.cont call get_character_from_font ;get position
ld (current_character+1),de ;store character address
ret
.get_character_from_font
sub "@" ;first character number in table
add a,a
ld hl,font_table ;table of addressess for font data (quicker than)
;calculating address
ld e,a
ld d,0
add hl,de ;get address in table
ld e,(hl) ;get address of character
inc hl
ld d,(hl)
ret
.calculate_font_table
ld ix,font_table
ld hl,font_data ;address of font in memory
ld a,no_characters ;no of characters in table
.table_loop
ld (ix+0),l ;write character address
ld (ix+1),h
inc ix ;update table address for next address
inc ix
ld bc,character_height*character_width ;length of a characters data in memory
add hl,bc ;calculate address
dec a
jr nz,table_loop
ret
.column_counter defb 0
.scroll_text
defb "@A@COOL@HARDWARE@SCROLLER@@@@REPEAT@NOW@@@@@"
defb 0
.scr_next_line
ld a,h
add a,&08
ld h,a
and &38
ret nz
ld a,l
add a,&50
ld l,a
ld a,h
adc a,&c0
ld h,a
and &38
ret z
ld a,h
sub &8
ld h,a
ret
.font_table defs no_characters*2
palette:
defb &00
defb &01
defb &0f
defb &06
defb &0b
defb &01
defb &07
defb &04
defb &00
defb &02
defb &08
defb &0b
defb &10
defb &01
defb &01
defb &07
.font_data
.font
defs character_height*character_width
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&44,&00,&cf,&6f,&cf,&3f,&cf,&6b,&cf,&3f,&6f,&3f,&6f
defb &3f,&3f,&3f,&3f,&3f,&6f,&3f,&cf,&3f,&cf,&3f,&c7,&3f,&c3,&3f,&c3
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&15,&97,&00,&c3,&00,&15,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&44,&00,&cc,&44,&cc
defb &cc,&cc,&cc,&cc,&cf,&cf,&cf,&cf,&9f,&3f,&9f,&3f,&3f,&6f,&3f,&cf
defb &cf,&cf,&cf,&cf,&cf,&c3,&cf,&97,&cb,&c3,&cb,&97,&97,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &00,&00,&00,&44,&00,&cc,&44,&cc,&cc,&cc,&cc,&cc,&cc,&8c,&cc,&0c
defb &8c,&0c,&8c,&0c,&3f,&6f,&3f,&cf,&6f,&cb,&cf,&c3,&cf,&c3,&c3,&c3
defb &c3,&3f,&c3,&3f,&97,&3f,&3f,&97,&3f,&6f,&3f,&3f,&3f,&3f,&3f,&3f
defb &3f,&cf,&3f,&cf,&3f,&cf,&6b,&cf,&6b,&cf,&6b,&cf,&3f,&6b,&3f,&3f
defb &0f,&0f,&4c,&0f,&cc,&0c,&cc,&8c,&cc,&8c,&8c,&0c,&0c,&0c,&0c,&4c
defb &4c,&8d,&cc,&5f,&cb,&82,&c3,&2a,&c3,&c3,&c3,&c3,&97,&3f,&97,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &0f,&0f,&0f,&0f,&0c,&4c,&0c,&4c,&4c,&8d,&cc,&8d,&8d,&0f,&aa,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&c3,&c3,&c3,&c3,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &0f,&0f,&0f,&0f,&8d,&0f,&0f,&5f,&0f,&5f,&0f,&ff,&ff,&ff,&00,&00
defb &00,&00,&00,&aa,&15,&3f,&15,&3f,&97,&3f,&97,&3f,&3f,&3f,&3f,&6b
defb &3f,&6b,&c3,&c3,&6b,&c7,&3f,&6f,&3f,&6f,&15,&6f,&15,&6f,&15,&3f
defb &15,&6f,&15,&6f,&15,&6b,&15,&6b,&15,&6f,&15,&6f,&15,&3f,&15,&3f
defb &0f,&5f,&0f,&5f,&0f,&ff,&ff,&aa,&ff,&00,&aa,&00,&00,&00,&00,&00
defb &00,&00,&00,&55,&3f,&3f,&3f,&c3,&3f,&c3,&3f,&c3,&c3,&c7,&c3,&c7
defb &c7,&cf,&cf,&cf,&cf,&9f,&9f,&3f,&3f,&3f,&6f,&3f,&6f,&9f,&cf,&3f
defb &9f,&3f,&3f,&6b,&3f,&c7,&c7,&cf,&cf,&cf,&cf,&cf,&3f,&c7,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&af,&00,&8c,&55,&0c,&af,&0c
defb &af,&0c,&af,&0c,&c3,&3f,&c3,&3f,&c7,&3f,&cf,&3f,&cf,&3f,&9f,&3f
defb &9f,&3f,&3f,&3f,&9f,&3f,&6b,&3f,&6b,&3f,&6b,&3f,&6b,&3f,&6b,&3f
defb &c7,&cf,&cf,&cf,&cf,&cf,&cf,&cb,&cf,&8a,&cf,&00,&8a,&00,&00,&00
defb &00,&00,&00,&44,&00,&cc,&44,&cc,&ee,&cc,&af,&cc,&ff,&8c,&ff,&8c
defb &ff,&cc,&ff,&ff,&3f,&c7,&3f,&9f,&3f,&9f,&3f,&cf,&3f,&6f,&3f,&6f
defb &3f,&6f,&3f,&cf,&3f,&cf,&3f,&cf,&3f,&cf,&3f,&cf,&3f,&cf,&3f,&cf
defb &3f,&cf,&3f,&cf,&6b,&cf,&6b,&cf,&15,&c7,&00,&c3,&00,&15,&00,&00
defb &0f,&0f,&4c,&0f,&4c,&cc,&cc,&8d,&cc,&88,&8d,&ff,&0d,&af,&5d,&af
defb &55,&af,&ff,&4e,&c3,&cf,&6f,&9f,&cf,&6f,&cf,&cf,&cf,&cf,&cf,&cf
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&9f,&cf,&9f,&3f,&3f
defb &cf,&cf,&cf,&cf,&cf,&cb,&cf,&c3,&cb,&c3,&c3,&c3,&3f,&3f,&3f,&3f
defb &0f,&0f,&0f,&0f,&8d,&ff,&ff,&ff,&af,&0f,&0f,&cc,&4e,&4c,&cc,&af
defb &8c,&af,&8c,&0a,&3f,&3f,&9f,&cb,&9f,&cb,&cf,&cf,&cf,&cf,&cf,&cf
defb &cf,&cf,&cf,&3f,&9f,&97,&3f,&9f,&3f,&2a,&3f,&2a,&3f,&9f,&6f,&c3
defb &cf,&cb,&cb,&c3,&c3,&c3,&97,&3f,&97,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &0f,&0f,&0f,&0f,&0f,&cc,&4e,&8c,&cc,&4c,&0c,&cc,&4c,&cc,&0f,&4e
defb &0f,&ee,&00,&05,&00,&15,&c3,&c3,&c3,&c3,&9f,&3f,&cf,&3f,&cf,&3f
defb &3f,&6f,&3f,&cf,&3f,&3f,&3f,&3f,&00,&00,&00,&00,&00,&00,&c3,&c3
defb &c3,&c3,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &0f,&5f,&0f,&5f,&0c,&cc,&cc,&cc,&cc,&cc,&cc,&cc,&cc,&cc,&cc,&cc
defb &cc,&cc,&4e,&8c,&c3,&3f,&c3,&c7,&c3,&c7,&3f,&cf,&3f,&cf,&cf,&cf
defb &cf,&c3,&c3,&97,&3f,&3f,&3f,&3f,&00,&00,&00,&00,&00,&00,&c3,&c3
defb &c3,&c3,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&6b,&3f,&3f,&3f,&3f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&08,&00,&cc,&00,&cc,&08,&cc,&cc,&8c,&0c
defb &0c,&4c,&0c,&4c,&3f,&cf,&cf,&cb,&cf,&c3,&cf,&97,&cb,&97,&c3,&97
defb &97,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&15,&3f,&15,&3f,&15,&3f,&3f,&3f
defb &97,&3f,&3f,&6b,&3f,&c3,&3f,&c3,&c3,&c3,&c3,&c7,&3f,&3f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&0a,&00
defb &8d,&00,&cc,&aa,&c3,&3f,&c3,&3f,&97,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&6b,&3f,&c3,&3f,&c3
defb &6b,&c7,&c3,&cf,&c3,&cf,&c7,&cf,&cf,&cf,&cf,&cf,&3f,&6f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&3f,&00,&3f,&2a,&3f,&6b,&3f,&9f,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&6b,&3f,&6b,&3f,&c3,&3f,&c7,&3f,&c7,&3f
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cb,&cf,&8a,&cf,&00,&8a,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&45,&00,&cf,&45,&cb,&6f,&cb,&6b,&c3,&3f,&c3
defb &3f,&c7,&3f,&c7,&3f,&cf,&3f,&9f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&6f
defb &3f,&9f,&3f,&3f,&3f,&3f,&3f,&6b,&6b,&c7,&15,&c7,&00,&c3,&00,&15
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&44,&00,&cc
defb &44,&cc,&cc,&0f,&cb,&c3,&cb,&c3,&c3,&c7,&c3,&c7,&c3,&9f,&cf,&3f
defb &cf,&3f,&9f,&6b,&9f,&6b,&3f,&3f,&9f,&3f,&9f,&6b,&97,&c3,&3f,&c7
defb &3f,&c7,&6b,&cf,&c7,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&97,&3f
defb &00,&00,&00,&00,&00,&44,&00,&cc,&44,&cc,&cc,&0f,&8d,&af,&8d,&0f
defb &0f,&4e,&0f,&4e,&c3,&cf,&cf,&cf,&cf,&9f,&3f,&9f,&3f,&3f,&3f,&9f
defb &3f,&2a,&97,&2a,&97,&2a,&97,&2a,&97,&2a,&9f,&2a,&9f,&2a,&3f,&9f
defb &cf,&cb,&cf,&cb,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&3f,&3f
defb &00,&00,&0f,&0f,&8d,&0f,&0f,&0f,&0f,&0f,&0f,&4e,&0f,&cc,&cc,&cc
defb &cc,&0c,&0c,&4c,&9f,&3f,&9f,&3f,&3f,&2a,&3f,&00,&2a,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &c3,&c3,&c3,&c3,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&3f,&3f
defb &00,&00,&0f,&0f,&0f,&0f,&cc,&8c,&cc,&0c,&cc,&0c,&8c,&0c,&0c,&cc
defb &0c,&cc,&aa,&00,&3f,&3f,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &c3,&c3,&c3,&c3,&cf,&cf,&cf,&cf,&cf,&c3,&cf,&c3,&c3,&97,&3f,&3f
defb &00,&00,&0f,&0f,&0f,&0f,&0c,&4c,&4c,&cc,&dd,&55,&5f,&af,&dd,&4e
defb &5f,&4e,&00,&00,&3f,&3f,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &c3,&c3,&c3,&c3,&cf,&c3,&cb,&97,&c3,&97,&3f,&3f,&3f,&3f,&3f,&3f
defb &00,&00,&0f,&5f,&0f,&5f,&dd,&0f,&55,&4e,&af,&cc,&cc,&8c,&0c,&0c
defb &8c,&cc,&00,&00,&3f,&3f,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &c3,&c3,&c3,&c3,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&6f,&3f,&cf
defb &00,&00,&00,&00,&00,&00,&00,&00,&dd,&00,&0c,&8d,&4c,&0c,&cc,&0c
defb &8c,&0c,&55,&8c,&3f,&3f,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &c3,&c3,&c3,&cf,&3f,&cf,&6b,&cb,&6f,&8a,&cf,&00,&8a,&00,&00,&00
defb &00,&00,&af,&0f,&af,&0f,&af,&0c,&ff,&0c,&ff,&0c,&ff,&0c,&ff,&cc
defb &ff,&cc,&ff,&8d,&3f,&c3,&3f,&97,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &3f,&6b,&3f,&c3,&3f,&c3,&3f,&c3,&3f,&c7,&3f,&cf,&3f,&c7,&3f,&3f
defb &00,&00,&0f,&0f,&0f,&0f,&0c,&cc,&4c,&cc,&cc,&8d,&cc,&8d,&cc,&0f
defb &cc,&0f,&0f,&ff,&97,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&6b,&c3,&6b,&c3,&6b,&c3
defb &c3,&c7,&c7,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&3f,&3f
defb &00,&00,&0f,&0f,&0f,&0f,&cc,&0f,&cc,&0f,&0f,&ff,&5f,&ff,&5f,&ff
defb &ff,&00,&af,&aa,&3f,&82,&3f,&2a,&3f,&2a,&3f,&2a,&3f,&2a,&3f,&2a
defb &3f,&2a,&97,&2a,&97,&2a,&97,&2a,&97,&2a,&97,&2a,&9f,&2a,&9f,&3f
defb &cf,&cb,&cf,&c3,&3f,&3f,&3f,&6b,&9f,&c7,&97,&c7,&3f,&c7,&3f,&3f
defb &00,&00,&0f,&0f,&0f,&0f,&5f,&ff,&ff,&00,&aa,&00,&aa,&00,&00,&00
defb &00,&00,&00,&55,&00,&15,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &c3,&c3,&c3,&c3,&c3,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&3f,&3f
defb &00,&00,&0f,&5f,&0f,&ff,&aa,&00,&00,&00,&00,&00,&00,&55,&55,&ff
defb &ff,&af,&ff,&0f,&97,&c3,&c3,&c3,&41,&c7,&00,&c3,&00,&41,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &c3,&97,&c3,&c3,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&55,&00,&ff,&aa,&af,&0f
defb &0f,&cc,&4e,&cc,&c7,&cf,&cf,&3f,&9f,&6b,&9f,&6f,&97,&9f,&c3,&3f
defb &15,&97,&00,&6b,&00,&6b,&00,&3f,&00,&3f,&00,&3f,&00,&6b,&15,&6f
defb &3f,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &0a,&00,&8d,&00,&9f,&3f,&3f,&3f,&3f,&6b,&3f,&6b,&3f,&c7,&6b,&9f
defb &c7,&3f,&9f,&6f,&9f,&cf,&9f,&cf,&9f,&cf,&6f,&cf,&cf,&cf,&cf,&cf
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&3f,&6f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&2a,&00,&3f,&00,&97,&2a,&cf,&c3,&6f,&3f,&6f,&3f
defb &cf,&3f,&cf,&3f,&cf,&3f,&cf,&3f,&cf,&3f,&cf,&3f,&cf,&3f,&3f,&3f
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cb,&cf,&8a,&cf,&00,&8a,&00
defb &00,&00,&00,&00,&00,&44,&00,&cc,&05,&0c,&05,&4c,&ff,&4c,&ff,&4c
defb &ff,&cc,&ff,&cc,&3f,&cf,&3f,&cf,&3f,&cf,&3f,&cf,&3f,&cf,&3f,&6f
defb &3f,&3f,&3f,&9f,&3f,&cf,&3f,&cf,&3f,&cf,&3f,&cb,&3f,&c3,&3f,&97
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&15,&97,&00,&c3,&00,&15
defb &00,&00,&0f,&0f,&4c,&0f,&cc,&cc,&cc,&cc,&cc,&cc,&cc,&cc,&cc,&cc
defb &cc,&cc,&cc,&cc,&cf,&9f,&cf,&9f,&cf,&3f,&cf,&3f,&9f,&cf,&6f,&cf
defb &6f,&cf,&cf,&cb,&cf,&cb,&c3,&97,&c3,&3f,&c3,&3f,&97,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &00,&00,&0f,&0f,&0f,&0f,&cc,&cc,&cc,&cc,&cc,&cc,&cc,&8c,&cc,&4c
defb &8c,&0a,&0c,&88,&3f,&2a,&3f,&3f,&3f,&cb,&cf,&c3,&cf,&c3,&cf,&c3
defb &c3,&97,&c3,&3f,&97,&3f,&3f,&3f,&3f,&3f,&6f,&9f,&3f,&2a,&3f,&3f
defb &6f,&cb,&3f,&6b,&3f,&3f,&3f,&3f,&6b,&c3,&6b,&c3,&3f,&c3,&3f,&3f
defb &00,&00,&0f,&0f,&0f,&0f,&cc,&0c,&8c,&0c,&0c,&0c,&0c,&cc,&cc,&cc
defb &00,&00,&00,&00,&00,&00,&00,&00,&c3,&c3,&c3,&c3,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&00,&00,&00,&00
defb &c3,&c3,&c3,&c3,&6b,&c3,&c3,&c7,&c7,&cf,&cf,&cf,&c7,&cf,&3f,&3f
defb &00,&00,&0f,&0f,&0f,&0f,&4c,&cc,&4c,&cc,&cc,&cc,&8d,&0f,&0f,&0f
defb &00,&00,&00,&00,&00,&00,&00,&00,&c3,&2a,&c3,&97,&3f,&cf,&3f,&cf
defb &3f,&cf,&3f,&cf,&3f,&cf,&3f,&cf,&3f,&97,&3f,&2a,&00,&00,&00,&00
defb &c3,&c3,&c3,&c3,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&3f,&3f
defb &00,&00,&0f,&5f,&0f,&5f,&8d,&5f,&0f,&ff,&0f,&ff,&0f,&aa,&ff,&aa
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &c3,&c3,&c3,&c3,&cf,&3f,&cb,&3f,&cf,&6b,&cb,&6b,&3f,&c7,&3f,&6f
defb &00,&00,&00,&00,&00,&00,&00,&00,&aa,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &c3,&c3,&c3,&c3,&6b,&c7,&c7,&cf,&cf,&cf,&cf,&8a,&cf,&00,&8a,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &c3,&97,&cf,&82,&cf,&00,&8a,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&54,&00,&44,&00,&cc,&44,&cc,&ee,&4c,&3c,&cc,&ff,&cc
defb &ff,&0c,&ff,&27,&6a,&b7,&3f,&6a,&3f,&6a,&3f,&6a,&3f,&c1,&3f,&c1
defb &6a,&92,&6a,&35,&3f,&c5,&6a,&cf,&6a,&cf,&6a,&cf,&6a,&cf,&6a,&9a
defb &6a,&cf,&6a,&cf,&6a,&cf,&c1,&cf,&c1,&cf,&40,&c7,&50,&c3,&00,&15
defb &00,&00,&0f,&0f,&5d,&0f,&4c,&cc,&cc,&0c,&8c,&0c,&8c,&be,&27,&ff
defb &fd,&2d,&be,&6c,&c1,&9a,&c7,&60,&92,&c5,&92,&c5,&60,&cf,&60,&cf
defb &6a,&cf,&c5,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&9a,&3f,&3f
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cb,&cf,&cb,&c3,&b7,&3f,&3f
defb &00,&00,&0f,&0f,&0f,&0f,&0c,&4c,&4c,&dc,&cc,&fd,&fd,&be,&ff,&2d
defb &0f,&5f,&dd,&28,&6a,&a2,&60,&70,&60,&cb,&cf,&cb,&cf,&cf,&cf,&cf
defb &cf,&cf,&cf,&35,&cf,&35,&9a,&6a,&60,&b7,&60,&35,&3f,&a0,&3f,&a0
defb &cf,&20,&cf,&20,&cf,&20,&c7,&20,&c7,&20,&c7,&20,&c5,&20,&6a,&a2
defb &00,&00,&0f,&0f,&0f,&0f,&be,&1e,&be,&6c,&3c,&cc,&6c,&0c,&6c,&8c
defb &00,&00,&00,&00,&00,&00,&00,&00,&c3,&c3,&c3,&c3,&9a,&6a,&9a,&3f
defb &9a,&6a,&6a,&cf,&c5,&cf,&cf,&cb,&3f,&3f,&3f,&3f,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&0f,&0f,&0f,&0f,&cc,&8c,&8c,&cc,&4c,&cc,&cc,&cc,&cc,&cc
defb &00,&00,&00,&00,&00,&00,&00,&00,&d3,&2a,&c3,&d3,&9a,&7a,&90,&7a
defb &9a,&7a,&9a,&7a,&9a,&7a,&c3,&70,&3f,&d1,&3f,&a0,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&0f,&5e,&0f,&5f,&4c,&cc,&cc,&cc,&cc,&cc,&cc,&8c,&0c,&0c
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&88,&00,&4c,&00,&19,&28,&dd,&5f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&44,&50,&cf,&e5,&cb,&c5,&cb,&c1,&c7,&6a,&cf,&6a,&cf
defb &6a,&cf,&6a,&db,&6a,&b7,&3f,&3f,&3f,&3f,&3f,&6a,&3f,&6a,&6a,&c3
defb &6a,&c7,&6a,&cf,&c1,&cf,&c1,&cf,&40,&c7,&50,&c3,&00,&40,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&44,&00,&cc,&44,&dd
defb &dd,&1e,&af,&6c,&cb,&c7,&c3,&cf,&cf,&cf,&9a,&3f,&9a,&6a,&35,&6a
defb &cb,&db,&3f,&6a,&3f,&c1,&6a,&c7,&c1,&9a,&c7,&cf,&92,&c5,&60,&cf
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&b7,&3f,&3f,&3f
defb &00,&54,&00,&44,&00,&cc,&44,&af,&cc,&3c,&af,&6c,&af,&6c,&1e,&cc
defb &cc,&cc,&cc,&4c,&9a,&3f,&35,&d1,&60,&cb,&6a,&c3,&60,&b7,&60,&70
defb &3f,&a0,&b7,&a0,&b7,&a0,&35,&a0,&3f,&a0,&35,&a0,&35,&7a,&9a,&c1
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&3f,&3f,&3f,&3f
defb &0f,&0f,&af,&0f,&af,&6c,&1e,&cc,&cc,&cc,&cc,&cc,&cc,&0c,&8c,&0c
defb &8c,&af,&27,&0f,&6a,&d3,&c1,&a2,&d3,&00,&a2,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&c3,&c3
defb &c3,&c3,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cb,&3f,&3f,&3f,&3f
defb &0f,&0f,&0f,&0f,&cc,&0c,&0c,&4c,&0c,&cc,&0c,&cc,&4c,&dc,&36,&00
defb &5f,&00,&28,&00,&00,&00,&00,&00,&00,&00,&00,&15,&00,&6a,&e1,&cb
defb &15,&6a,&15,&c5,&15,&c5,&15,&3f,&15,&c1,&15,&3f,&00,&00,&c3,&b7
defb &c3,&c3,&cf,&cf,&cf,&cb,&cf,&cb,&c3,&b7,&d3,&3f,&3f,&3f,&3f,&3f
defb &0f,&0f,&0f,&0f,&0c,&cc,&5d,&7c,&dc,&ff,&fd,&2d,&ff,&3c,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&c1,&c3,&e2,&35,&cf,&35
defb &cf,&35,&9a,&3f,&9a,&6a,&6a,&cf,&cf,&cf,&c1,&cf,&6a,&c3,&6a,&d3
defb &c3,&d3,&c3,&b7,&d3,&3f,&b7,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &0f,&1e,&0f,&1e,&ff,&2d,&be,&0f,&2d,&6c,&6c,&8c,&cc,&4c,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&c3,&c3,&3f,&c5,&6a,&cf
defb &c5,&cf,&c5,&cf,&cf,&c3,&cf,&d3,&cf,&d3,&c3,&b7,&b7,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&c1,&3f,&c5,&3f,&7a
defb &00,&00,&00,&00,&aa,&00,&28,&00,&5d,&1e,&cc,&0c,&8c,&0c,&fd,&8c
defb &54,&fe,&00,&00,&00,&00,&00,&00,&00,&00,&c3,&b7,&cf,&9a,&9a,&3f
defb &db,&3f,&d3,&3f,&d3,&3f,&d1,&3f,&d1,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &6a,&9a,&6a,&9a,&6a,&9a,&c1,&db,&c5,&20,&9a,&00,&20,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&44,&00,&cc,&e5,&9a,&c5,&b7,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&c1,&6a,&c3,&6a,&c3,&6a,&c3
defb &6a,&c7,&6a,&cf,&c1,&cf,&c1,&cf,&40,&c7,&50,&c3,&00,&40,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&44,&00,&cc,&44,&cc,&dd,&5f
defb &af,&ff,&dd,&aa,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&6a
defb &3f,&c1,&3f,&c1,&6a,&c3,&c1,&c3,&c3,&cf,&c7,&cf,&c7,&cf,&9a,&3f
defb &cf,&db,&cf,&9a,&cf,&35,&9a,&3f,&9a,&6a,&9a,&6a,&b7,&3f,&3f,&3f
defb &00,&06,&00,&8c,&44,&0c,&cc,&0c,&cc,&0c,&dd,&0c,&ff,&0c,&ff,&0c
defb &01,&0c,&01,&0c,&3f,&7a,&3f,&3f,&3f,&c5,&c1,&cb,&c1,&c3,&c3,&c7
defb &c3,&cf,&c7,&cf,&c7,&9a,&9a,&6a,&35,&d1,&9a,&90,&db,&7a,&3f,&7a
defb &6a,&9a,&6a,&9a,&c1,&9a,&c1,&9a,&c7,&9a,&c7,&9a,&3f,&d1,&3f,&7a
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&a0,&00,&c3,&c3,&c3,&c3,&c7,&cf,&cf,&9a
defb &35,&3f,&35,&c5,&3f,&c5,&c3,&92,&3f,&3f,&3f,&3f,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&c3,&d3,&c3,&c3,&9a,&6a,&90,&6a
defb &3f,&c1,&35,&c1,&35,&c1,&3f,&c1,&3f,&3f,&3f,&3f,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &14,&0f,&14,&0f,&55,&2d,&55,&3c,&55,&ee,&55,&ee,&55,&ee,&55,&ee
defb &55,&ee,&55,&ae,&15,&c5,&15,&3f,&3f,&3f,&c3,&c3,&c3,&9a,&c7,&60
defb &9a,&c5,&60,&cf,&60,&cf,&60,&cf,&6a,&c7,&3f,&c5,&15,&c5,&15,&c5
defb &15,&c5,&15,&c5,&15,&c5,&15,&c5,&15,&c5,&15,&c1,&15,&3f,&15,&3f
defb &0f,&5e,&0f,&5f,&6c,&cc,&cc,&cc,&cc,&8c,&8c,&0c,&0c,&8c,&4c,&cc
defb &4c,&dc,&cc,&fd,&35,&6a,&3f,&c1,&c1,&92,&cf,&35,&6a,&cf,&cf,&cf
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&9a,&3f,&9a,&6a
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cb,&cb,&c7,&3f,&c5,&3f,&7a
defb &00,&00,&00,&00,&00,&00,&88,&00,&4c,&00,&cc,&00,&88,&00,&fd,&00
defb &ff,&00,&ff,&00,&d3,&7a,&9a,&7a,&90,&7a,&3f,&7a,&9a,&7a,&9a,&7a
defb &9a,&7a,&9a,&7a,&9a,&7a,&35,&7a,&35,&7a,&9a,&7a,&90,&7a,&9a,&7a
defb &db,&7a,&db,&7a,&db,&7a,&cf,&70,&c7,&20,&9a,&00,&20,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&2d,&00,&2d,&00,&3c,&00,&ff,&00,&ff,&00,&ff,&00,&ff
defb &00,&be,&00,&be,&00,&6a,&00,&6a,&00,&3f,&00,&3f,&00,&3f,&00,&3f
defb &00,&3f,&00,&3f,&00,&3f,&00,&3f,&00,&3f,&00,&3f,&00,&6a,&00,&6a
defb &00,&6a,&00,&6a,&00,&6a,&00,&6a,&00,&6a,&00,&6a,&00,&6a,&00,&3f
defb &00,&00,&0f,&0f,&0f,&0f,&8c,&5d,&0c,&4c,&0c,&cc,&cc,&dd,&cc,&af
defb &0f,&0f,&0f,&0f,&b7,&3f,&b7,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&6a,&3f,&6a,&3f,&c1,&6a,&c3,&c3,&c7,&c3,&cf
defb &c3,&cf,&c7,&cf,&cf,&cf,&cf,&cf,&cf,&9a,&cf,&35,&cf,&60,&3f,&6a
defb &00,&00,&a8,&00,&aa,&00,&28,&00,&be,&00,&af,&1e,&0f,&6c,&1e,&2c
defb &ff,&ae,&ff,&ae,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&6a,&b7
defb &6a,&b7,&c1,&b7,&c3,&35,&c3,&35,&c3,&35,&c7,&35,&9a,&3f,&cf,&35
defb &cf,&c7,&35,&c5,&b7,&c5,&35,&c5,&6a,&c7,&c1,&9a,&c7,&20,&9a,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&28,&00,&08,&00,&08,&00
defb &08,&00,&08,&00,&a0,&00,&a0,&00,&a0,&00,&a0,&00,&a0,&00,&a0,&00
defb &a0,&00,&a0,&00,&a0,&00,&a0,&00,&a0,&00,&a0,&00,&a0,&00,&a0,&00
defb &20,&00,&20,&00,&20,&00,&20,&00,&a2,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &aa,&00,&aa,&00,&3f,&7a,&6a,&b7,&6a,&35,&3f,&3f,&3f,&c1,&6a,&c7
defb &6a,&35,&6a,&60,&6a,&60,&6a,&60,&3f,&c5,&6a,&cf,&6a,&cf,&6a,&cf
defb &6a,&cf,&6a,&cf,&c1,&cf,&c1,&cf,&40,&c7,&50,&c3,&00,&e1,&00,&00
defb &00,&ad,&00,&a5,&00,&50,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&a0,&00,&7a,&00,&3f,&a0,&d3,&7a,&60,&35
defb &6a,&35,&cf,&9a,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&9a,&9a,&3f
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&c3,&b7,&3f,&3f,&3f
defb &0f,&0f,&6c,&af,&0f,&ff,&a5,&5f,&50,&1e,&00,&a5,&00,&50,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&a0,&00
defb &7a,&00,&c1,&a2,&35,&a0,&35,&a0,&35,&a0,&35,&a0,&6a,&70,&6a,&cb
defb &cf,&cb,&cf,&c3,&cf,&c3,&cb,&b7,&cb,&b7,&d3,&3f,&3f,&3f,&3f,&3f
defb &0f,&0f,&2d,&be,&fe,&2d,&be,&1e,&cc,&4c,&2c,&cc,&1e,&4c,&a5,&6c
defb &50,&1e,&00,&a5,&00,&50,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&c3,&c3
defb &c3,&c3,&d3,&3f,&b7,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &0f,&28,&0f,&5f,&6c,&4c,&cc,&4c,&0c,&cc,&cc,&cc,&cc,&cc,&cc,&cc
defb &cc,&cc,&6c,&cc,&c3,&35,&e1,&b7,&50,&c3,&00,&e1,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&c3,&c3
defb &c3,&d3,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&08,&00,&cc,&00,&cc,&08,&cc,&cc,&cc,&8c
defb &cc,&8c,&8c,&0c,&3f,&6a,&3f,&c5,&cf,&cf,&c7,&cb,&c1,&c3,&15,&3f
defb &15,&3f,&15,&3f,&15,&3f,&15,&3f,&15,&3f,&15,&3f,&15,&3f,&b7,&3f
defb &3f,&3f,&3f,&6a,&3f,&6a,&3f,&c1,&3f,&c1,&3f,&c1,&3f,&3f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&88,&00
defb &36,&00,&dd,&28,&cf,&35,&cf,&d3,&cf,&d3,&d3,&3f,&b7,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&6a,&6a,&c3
defb &c1,&c3,&c3,&c7,&c3,&c7,&c3,&cf,&c7,&cf,&c7,&cf,&3f,&c5,&3f,&7a
defb &00,&01,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&7a,&00,&3f,&a0,&3f,&d1,&6a,&35,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&d1,&3f,&d1,&3f,&d1,&3f,&d3,&3f,&92,&3f
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&20,&9a,&00,&20,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&44,&00,&cc,&45,&9f,&6f,&6b,&3f,&c3,&3f,&c3,&3f,&c3,&3f,&c7
defb &3f,&cf,&3f,&cf,&3f,&9f,&3f,&9f,&3f,&9f,&3f,&6b,&3f,&3f,&3f,&6b
defb &3f,&c7,&3f,&cf,&6b,&cf,&6b,&cf,&15,&c7,&00,&c3,&00,&15,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&44,&00,&cc,&44,&dd,&cc,&af
defb &dd,&ff,&ff,&0f,&6b,&c3,&6b,&c7,&c3,&cf,&c7,&cf,&cf,&9f,&9f,&3f
defb &9f,&6f,&9f,&6f,&3f,&cf,&3f,&9f,&6f,&3f,&6b,&3f,&c3,&c7,&cf,&3f
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&97,&3f,&3f,&3f
defb &00,&55,&00,&8c,&44,&0c,&cc,&0c,&cc,&0c,&af,&0c,&0f,&0c,&0f,&0c
defb &0f,&0c,&4e,&0c,&c7,&9f,&cf,&9f,&cf,&3f,&9f,&cf,&3f,&3f,&3f,&3f
defb &3f,&6b,&9f,&6b,&3f,&6b,&3f,&c7,&6b,&cf,&c7,&9f,&cf,&3f,&3f,&3f
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&3f,&cf,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&44,&00,&cc,&ee,&8d,&4c,&0d,&8c,&dd
defb &0c,&dd,&0c,&ff,&3f,&3f,&3f,&3f,&9f,&6b,&3f,&6b,&3f,&97,&c3,&c3
defb &cf,&6f,&9f,&cf,&9f,&cf,&3f,&cf,&3f,&cf,&6f,&cf,&cf,&cf,&6f,&cf
defb &cf,&cf,&c3,&cf,&6b,&c7,&00,&c3,&00,&41,&00,&00,&00,&00,&00,&00
defb &00,&af,&44,&8d,&8c,&0c,&8d,&cc,&5f,&0f,&ff,&4e,&af,&4e,&af,&cc
defb &af,&8c,&af,&8c,&6b,&cf,&c7,&97,&cf,&3f,&97,&2a,&3f,&00,&2a,&00
defb &9f,&00,&cf,&00,&cf,&8a,&cf,&cf,&cf,&cf,&cf,&3f,&cf,&3f,&cf,&3f
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&c3,&c7,&c3,&c3,&97,&15,&3f,&00,&3f
defb &0f,&0f,&0f,&0f,&4c,&ff,&88,&ff,&ff,&af,&8d,&4e,&0c,&8d,&4c,&88
defb &cc,&00,&88,&00,&3f,&00,&2a,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&8a,&00,&cf,&00,&6f,&8a,&9f,&cf
defb &cf,&cf,&cb,&c3,&cb,&c3,&c3,&97,&97,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &0f,&0f,&0f,&0f,&4e,&cc,&4e,&88,&8d,&00,&88,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &8a,&00,&cf,&00,&c7,&8a,&3f,&cf,&3f,&6f,&3f,&3f,&3f,&3f,&3f,&3f
defb &0f,&00,&5f,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&8a,&00,&cf,&00,&6f,&00,&3f,&00
defb &00,&00,&ff,&00,&af,&0a,&ff,&0f,&ff,&8d,&ff,&cc,&ff,&cc,&ff,&cc
defb &ff,&cc,&ff,&0f,&3f,&c3,&3f,&97,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&6b
defb &3f,&c3,&3f,&c3,&3f,&c7,&6b,&cf,&15,&c7,&00,&c3,&00,&15,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&0a,&00,&0f,&00,&8d,&0a,&0f,&0f
defb &5f,&af,&5f,&ff,&97,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&6b,&3f,&6b,&6b,&c3,&6b,&c3,&6b,&c3,&c3,&cf
defb &c3,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&3f,&cf,&3f,&97,&3f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &aa,&00,&0f,&00,&9f,&00,&3f,&00,&3f,&00,&3f,&00,&3f,&00,&3f,&00
defb &3f,&00,&3f,&00,&3f,&00,&3f,&00,&3f,&00,&cb,&00,&97,&2a,&97,&3f
defb &cf,&3f,&cf,&3f,&cf,&3f,&9f,&3f,&3f,&6b,&3f,&c3,&3f,&3f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&c3,&c3
defb &c3,&c3,&6b,&cf,&c7,&cf,&c7,&cf,&cf,&cf,&cf,&cf,&3f,&3f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&c3,&c3
defb &c3,&c3,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&3f,&3f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&15,&6b,&15,&6b,&15,&3f,&15,&c7,&6b,&cf
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&3f,&3f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&c3,&c3,&c3,&c3,&cf,&cf,&cf,&cf,&cf,&cf
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&3f,&6f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&c3,&97,&c3,&cb,&9f,&3f,&3f,&3f,&3f,&3f
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cb,&cf,&8a,&cf,&00,&8a,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&44,&00,&cc,&45,&cf,&3f,&cf,&6b,&cf,&3f,&cf,&3f,&cf,&3f,&3f
defb &3f,&3f,&3f,&6f,&3f,&cf,&3f,&cf,&3f,&c3,&3f,&c3,&3f,&97,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&15,&97,&00,&c3,&00,&15,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&44,&00,&cc,&44,&cc,&cc,&cc
defb &cc,&cc,&cc,&cc,&cf,&9f,&cf,&3f,&9f,&3f,&9f,&6f,&3f,&6f,&3f,&cf
defb &cf,&cf,&cf,&cb,&cf,&c3,&c3,&3f,&c3,&3f,&97,&3f,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &00,&00,&00,&5f,&44,&cc,&cc,&cc,&cc,&cc,&cc,&cc,&cc,&8c,&cc,&0c
defb &cc,&0c,&8c,&0c,&3f,&6f,&6f,&cf,&cf,&cb,&cf,&cb,&cf,&6f,&c7,&6f
defb &c3,&3f,&c3,&3f,&c3,&3f,&6b,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &3f,&cf,&3f,&cf,&3f,&cf,&6b,&cf,&6b,&cf,&3f,&cf,&3f,&6b,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&88,&00,&cc,&00,&8c,&88,&0c,&0d,&4c,&cc
defb &cc,&8d,&cc,&8d,&cf,&c3,&cf,&c3,&c3,&c3,&97,&3f,&97,&3f,&c3,&3f
defb &6b,&97,&00,&c3,&00,&41,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&44,&00,&cc,&44,&8c,&ee,&cc,&ee,&8d,&4e,&0f
defb &0f,&0f,&5f,&ff,&97,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&6f
defb &3f,&cf,&6f,&8a,&c3,&00,&2a,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &55,&0f,&8d,&0f,&4c,&0f,&8d,&5f,&8d,&5f,&0f,&5f,&5f,&ff,&ff,&ff
defb &ff,&aa,&aa,&00,&3f,&3f,&3f,&3f,&3f,&3f,&6b,&3f,&cb,&3f,&9f,&3f
defb &3f,&6b,&15,&6b,&15,&6f,&15,&6f,&15,&6f,&15,&6b,&15,&6f,&15,&6b
defb &15,&3f,&15,&3f,&15,&3f,&15,&6f,&15,&6f,&15,&6f,&15,&3f,&15,&3f
defb &0f,&0a,&0f,&5f,&5f,&ff,&ff,&ff,&ff,&aa,&aa,&00,&00,&00,&00,&00
defb &00,&00,&00,&ff,&3f,&3f,&3f,&3f,&3f,&6b,&6b,&c3,&c3,&c3,&c3,&c7
defb &c3,&cf,&cf,&cf,&cf,&cf,&cf,&97,&cf,&3f,&97,&6b,&97,&c3,&3f,&c7
defb &3f,&c7,&6b,&cf,&c7,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&3f,&c7,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&8d,&55,&0c,&55,&0c
defb &05,&0c,&af,&0c,&c3,&3f,&c7,&3f,&c7,&3f,&cf,&3f,&cf,&3f,&cf,&3f
defb &9f,&3f,&3f,&3f,&cb,&3f,&6b,&3f,&c3,&3f,&c7,&3f,&9f,&3f,&3f,&3f
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cb,&cf,&8a,&cf,&00,&8a,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&44,&00,&cc,&45,&9f,&3f,&cf,&6b,&9f,&3f,&3f,&3f,&3f,&3f,&6b
defb &3f,&c7,&3f,&cf,&3f,&9f,&3f,&6f,&3f,&cf,&3f,&cf,&3f,&cf,&3f,&cf
defb &3f,&cf,&3f,&cf,&3f,&cf,&6b,&cf,&15,&c7,&00,&c3,&00,&15,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&44,&00,&cc,&44,&8d,&cc,&0a
defb &cc,&55,&0d,&af,&9f,&6b,&3f,&6b,&3f,&c7,&6b,&cf,&c7,&9f,&cf,&6f
defb &9f,&cf,&6f,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&9f,&9f,&3f
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cb,&cf,&c3,&cb,&97,&3f,&3f,&3f,&3f
defb &00,&00,&00,&8d,&44,&0c,&cc,&0c,&8d,&8d,&dd,&5f,&ff,&0f,&af,&4e
defb &0f,&8c,&4e,&0c,&9f,&cf,&9f,&cf,&6f,&cf,&6f,&cf,&cf,&cf,&cf,&cf
defb &cf,&cf,&cf,&9f,&cf,&6f,&9f,&3f,&9f,&3f,&3f,&3f,&3f,&3f,&cf,&3f
defb &cf,&cf,&cf,&cf,&c7,&cf,&c3,&cf,&c3,&cf,&3f,&cf,&3f,&6b,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&88,&00
defb &4c,&00,&cc,&88,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&9f,&cf,&3f,&cf,&3f
defb &9f,&3f,&3f,&6f,&6f,&cf,&c7,&cb,&c3,&cb,&6b,&c3,&00,&c3,&00,&41
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&3f,&00,&3f,&2a,&cf,&3f,&3f,&9f,&6f,&cb,&cf,&cb
defb &cf,&cb,&cf,&c3,&cf,&c3,&c3,&c3,&97,&3f,&3f,&3f,&3f,&3f,&97,&3f
defb &c3,&3f,&41,&97,&00,&c3,&00,&41,&00,&00,&00,&00,&00,&00,&00,&00
defb &55,&0f,&55,&0f,&55,&0e,&55,&ee,&55,&ae,&55,&ae,&55,&ae,&55,&ee
defb &55,&ee,&55,&ee,&15,&6f,&15,&6f,&15,&6b,&3f,&6b,&3f,&6b,&97,&6b
defb &97,&3f,&97,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&6b,&6b,&c3,&c3,&c3,&c3,&c7,&41,&c3,&00,&3f,&00,&15
defb &0f,&0a,&0f,&5f,&8c,&4c,&cc,&0c,&8c,&0c,&8c,&4c,&4c,&cc,&cc,&cc
defb &cc,&cc,&cc,&0f,&c3,&97,&cb,&97,&c3,&97,&97,&3f,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&6b,&3f,&6b,&c3,&c3
defb &c3,&c7,&c3,&cf,&c3,&cf,&97,&c7,&97,&6b,&3f,&6f,&3f,&6f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&88,&00,&8d,&0f,&cc,&8c,&cc,&0c,&8d,&0c
defb &0f,&0c,&0f,&0c,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&6b,&3f,&c3,&3f,&c3,&3f,&c3,&3f,&c7,&3f,&c7,&3f
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cb,&c7,&8a,&cf,&00,&8a,&00,&00,&00
defb &00,&00,&00,&44,&00,&cc,&44,&8d,&ee,&aa,&ff,&00,&ff,&00,&ff,&00
defb &ff,&00,&ff,&ff,&3f,&3f,&3f,&6b,&3f,&c3,&3f,&c3,&3f,&c7,&3f,&cf
defb &3f,&9f,&3f,&9f,&6b,&9f,&6b,&9f,&15,&97,&00,&c3,&00,&41,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &af,&0f,&8d,&0f,&5f,&55,&00,&00,&00,&00,&00,&ff,&ff,&af,&ff,&0f
defb &af,&0f,&af,&0f,&c3,&c7,&c7,&cf,&cf,&cf,&cf,&cf,&cf,&9f,&9f,&3f
defb &3f,&3f,&6f,&6f,&9f,&6b,&6b,&3f,&6b,&c3,&c7,&9f,&c7,&6f,&c3,&6f
defb &41,&c7,&00,&c3,&00,&41,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &0f,&0f,&0f,&0f,&ff,&af,&ff,&0f,&ff,&0f,&af,&0f,&0f,&0f,&0f,&5f
defb &8d,&aa,&cc,&0a,&9f,&2a,&9f,&2a,&9f,&2a,&3f,&2a,&3f,&2a,&9f,&2a
defb &3f,&82,&97,&3f,&3f,&3f,&6b,&cb,&c7,&9f,&3f,&6f,&cf,&cf,&cf,&cf
defb &cf,&cf,&cf,&cf,&c7,&cf,&c3,&cf,&41,&c7,&00,&c3,&00,&15,&00,&00
defb &0f,&0f,&0f,&0f,&0f,&4e,&0f,&4e,&0f,&8c,&cc,&0c,&cc,&8c,&00,&00
defb &00,&0f,&00,&af,&00,&41,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&2a,&00,&3f,&00,&9f,&2a,&cf,&3f,&cf,&9f,&cf,&cf
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&c3,&97,&3f,&3f,&3f
defb &0f,&0a,&0f,&5f,&cc,&88,&0c,&dd,&0c,&4c,&0c,&8d,&8c,&88,&00,&0f
defb &ff,&4e,&0f,&8c,&c3,&9f,&c3,&9f,&41,&97,&00,&c3,&00,&41,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&3f,&97,&c3,&c3
defb &cf,&cf,&cf,&cb,&cf,&cb,&cf,&c3,&cb,&c3,&97,&3f,&3f,&3f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&aa,&00,&ff,&00,&af,&0a,&0f,&cc,&4e,&0c
defb &cc,&4c,&0c,&4c,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&6b,&6f
defb &3f,&3f,&3f,&3f,&3f,&cf,&3f,&cf,&3f,&cf,&3f,&c7,&6b,&c3,&c3,&c3
defb &cb,&3f,&97,&3f,&97,&3f,&97,&3f,&97,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&88,&00
defb &cc,&00,&cc,&88,&cf,&9f,&cf,&cf,&cf,&cf,&cf,&9f,&cf,&6f,&3f,&6f
defb &3f,&cf,&cf,&cf,&cf,&c3,&cf,&c3,&cb,&c3,&cb,&97,&c3,&97,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&3f,&00,&9f,&2a,&3f,&6b,&cf,&3f,&cf,&3f,&cf,&3f
defb &cf,&3f,&cf,&3f,&c3,&3f,&6b,&3f,&6b,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &3f,&cf,&3f,&cf,&3f,&cf,&6b,&cb,&6f,&8a,&cf,&00,&82,&00,&00,&00
defb &00,&00,&00,&44,&00,&cc,&44,&8c,&ee,&4c,&3c,&dd,&be,&0f,&be,&0f
defb &be,&5f,&ff,&ff,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&6a,&3f,&c1,&3f,&c1,&6a,&c3,&6a,&c7,&6a,&cf
defb &6a,&cf,&6a,&cf,&c1,&d3,&c1,&db,&40,&b7,&50,&d3,&00,&15,&00,&00
defb &2d,&0f,&5d,&0f,&4c,&af,&cc,&af,&dd,&0f,&0f,&ff,&0f,&ff,&5f,&ff
defb &ff,&ff,&ff,&aa,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&6a,&3f,&c1
defb &3f,&c1,&6a,&c3,&c3,&c7,&c3,&c7,&c3,&cf,&c7,&9a,&cf,&35,&cf,&cf
defb &db,&6a,&35,&c1,&6a,&c3,&c1,&c7,&c1,&cf,&c1,&c7,&3f,&3f,&3f,&3f
defb &0f,&0f,&0f,&0f,&0f,&ff,&5f,&ff,&5f,&ff,&ff,&aa,&aa,&00,&00,&00
defb &54,&28,&cc,&08,&3f,&a0,&6a,&70,&c5,&c3,&c1,&c3,&c3,&c7,&c3,&c7
defb &c3,&cf,&cf,&9a,&cf,&60,&cf,&b7,&60,&35,&3f,&a0,&3f,&a0,&b7,&a0
defb &c7,&20,&c7,&20,&cf,&20,&cf,&20,&cf,&20,&cf,&20,&c5,&20,&3f,&2a
defb &0f,&0f,&0f,&0f,&ff,&00,&00,&00,&00,&fd,&00,&fd,&00,&fd,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&c3,&c3,&c3,&c3,&cf,&9a,&cf,&35
defb &9a,&6a,&3f,&c5,&35,&90,&3f,&3f,&3f,&3f,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &0f,&0f,&0f,&0f,&fd,&be,&fd,&2d,&be,&0f,&2d,&0f,&be,&0f,&00,&bc
defb &00,&54,&00,&00,&00,&00,&00,&00,&c3,&c3,&c3,&c3,&6a,&35,&6a,&35
defb &9a,&3f,&35,&6a,&3f,&6a,&3f,&3f,&3f,&3f,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &0f,&5e,&0f,&1e,&0f,&0f,&0f,&7d,&1e,&cc,&1e,&8c,&6c,&0c,&2c,&0c
defb &6c,&4c,&2d,&aa,&e1,&b7,&40,&c3,&c3,&c3,&c3,&c3,&c1,&92,&c1,&60
defb &c1,&60,&92,&c5,&c7,&60,&3f,&3f,&3f,&3f,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&aa,&00,&28,&00,&cc,&00,&4c,&aa,&0c,&dd,&5d,&7c
defb &4c,&ad,&ad,&1e,&c1,&cf,&92,&3f,&92,&c5,&35,&c5,&6a,&cf,&cf,&cf
defb &cf,&cf,&cf,&cf,&cf,&cf,&6a,&c7,&3f,&7a,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&aa,&00
defb &0f,&1e,&8c,&0c,&35,&7a,&3f,&7a,&9a,&3f,&9a,&3f,&9a,&3f,&9a,&3f
defb &9a,&d1,&cf,&20,&9a,&00,&20,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&44,&50,&cf,&e1,&9a,&d1,&6a,&3f,&6a,&6a,&cf,&6a,&cf
defb &6a,&cf,&6a,&cf,&6a,&c3,&6a,&d3,&3f,&d1,&3f,&3f,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&40,&b7,&50,&c3,&00,&15,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&44,&00,&cc,&44,&cc
defb &cc,&0c,&8c,&0c,&35,&c5,&c5,&cf,&cf,&cf,&cf,&cf,&cf,&c3,&c3,&e2
defb &cb,&b7,&c3,&b7,&b7,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&6a,&c3,&6a,&c3,&c1,&c3,&c3,&c3,&3f,&3f,&3f,&3f
defb &00,&00,&00,&44,&00,&cc,&44,&cc,&cc,&0c,&8c,&0c,&8c,&4c,&0c,&4c
defb &4c,&dd,&cc,&af,&cf,&c3,&cb,&b7,&cb,&c3,&c3,&c3,&c3,&d3,&c7,&a2
defb &6a,&20,&3f,&a0,&3f,&a0,&3f,&a0,&3f,&a0,&3f,&7a,&6a,&cb,&c5,&c3
defb &c1,&c3,&c1,&c3,&c3,&c7,&c7,&cf,&cf,&cf,&c7,&cf,&3f,&3f,&3f,&3f
defb &2d,&0f,&af,&0f,&0c,&cc,&0c,&4c,&0c,&dd,&cc,&af,&cc,&af,&dd,&0f
defb &0f,&0f,&0f,&2d,&e2,&d3,&c1,&a2,&d3,&00,&a2,&00,&00,&00,&00,&00
defb &00,&00,&00,&40,&00,&40,&00,&15,&00,&15,&00,&15,&d3,&3f,&c3,&c3
defb &cf,&cf,&cf,&db,&cf,&35,&db,&6a,&db,&c1,&35,&6a,&3f,&3f,&3f,&3f
defb &0f,&0f,&0f,&0f,&cc,&af,&dd,&5f,&0f,&ff,&0f,&ff,&5f,&ff,&5f,&ff
defb &5f,&00,&aa,&54,&00,&50,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&40,&c3,&c3,&c3,&c3,&c5,&cf,&c5,&9a,&c5,&9a,&90,&3f,&92,&3f
defb &9a,&3f,&3f,&6a,&c1,&c3,&c3,&cf,&c7,&cf,&c7,&cf,&3f,&3f,&3f,&3f
defb &0f,&0f,&0f,&0f,&ff,&ff,&ff,&ff,&ff,&00,&aa,&00,&00,&00,&00,&00
defb &00,&fd,&2d,&be,&e2,&c3,&6a,&c3,&6a,&c3,&6a,&cb,&6a,&cf,&6a,&cf
defb &60,&cf,&e2,&9a,&92,&3f,&35,&3f,&6a,&60,&90,&6a,&6a,&b7,&6a,&c3
defb &c1,&cf,&c7,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&3f,&3f,&3f,&3f
defb &0f,&28,&0f,&ff,&ff,&00,&00,&54,&00,&fd,&fd,&be,&fd,&2d,&fd,&2d
defb &be,&0f,&0f,&1e,&c3,&c3,&c7,&cf,&c7,&35,&cf,&35,&9a,&3f,&9a,&3f
defb &35,&6a,&6a,&9a,&c5,&35,&90,&3f,&35,&6a,&b7,&c1,&6a,&c7,&c3,&9a
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&3f,&3f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&aa,&00,&ff,&2d,&1e,&8c,&1e,&0c,&6c,&0c
defb &6c,&0c,&cc,&0c,&9a,&3f,&9a,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&d1,&3f
defb &db,&3f,&3f,&3f,&d1,&3f,&d1,&3f,&92,&3f,&9a,&3f,&35,&3f,&90,&3f
defb &cf,&9a,&cf,&9a,&cf,&9a,&cf,&9a,&cf,&9a,&cf,&9a,&6a,&9a,&3f,&3f
defb &00,&00,&00,&44,&00,&cc,&44,&8c,&ee,&dd,&ff,&ff,&ff,&be,&ff,&3c
defb &ff,&3c,&ff,&3c,&6a,&92,&6a,&9a,&6a,&35,&3f,&c5,&6a,&cf,&6a,&cf
defb &6a,&cf,&6a,&cf,&6a,&cf,&6a,&9a,&6a,&35,&3f,&3f,&3f,&3f,&6a,&60
defb &6a,&cf,&6a,&cf,&c1,&cf,&c1,&d3,&40,&c3,&50,&d3,&00,&15,&00,&00
defb &2d,&0f,&5d,&0f,&4c,&8c,&fe,&7d,&fd,&2d,&be,&6c,&6c,&8c,&8c,&4c
defb &cc,&cc,&cc,&cc,&6a,&cf,&c5,&cf,&c5,&cf,&cf,&cf,&cf,&cf,&cf,&cf
defb &cf,&cf,&cf,&9a,&9a,&3f,&3f,&6a,&6a,&cf,&c5,&cf,&c5,&cf,&cf,&cb
defb &cf,&cb,&c3,&c3,&d3,&6a,&3f,&3f,&b7,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &0f,&0f,&0f,&0f,&dd,&3c,&1e,&6c,&1e,&cc,&0c,&0c,&cc,&0c,&cc,&5d
defb &dd,&28,&99,&28,&35,&a0,&60,&70,&60,&c3,&cf,&c3,&35,&6a,&9a,&6a
defb &60,&cf,&c5,&cf,&c5,&cf,&cf,&cf,&cf,&cb,&cf,&c3,&c7,&db,&e2,&db
defb &c7,&cb,&c7,&60,&c7,&20,&c5,&20,&c5,&20,&c5,&20,&6a,&a2,&3f,&a0
defb &0f,&0f,&0f,&0f,&cc,&4c,&8c,&4c,&0c,&cc,&4c,&cc,&4c,&cc,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&c3,&c3,&c3,&c3,&cf,&cf,&cf,&cb
defb &cb,&d3,&cf,&d3,&cb,&d3,&d3,&3f,&b7,&3f,&b7,&3f,&3f,&3f,&3f,&3f
defb &b7,&3f,&d3,&3f,&e1,&b7,&50,&c3,&00,&e1,&00,&50,&00,&00,&00,&00
defb &0f,&0f,&0f,&0f,&cc,&cc,&cc,&cc,&cc,&cc,&cc,&8c,&0c,&0c,&00,&bc
defb &00,&54,&00,&00,&00,&00,&00,&00,&c3,&c3,&c3,&c3,&cb,&d3,&d3,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&6a
defb &3f,&6a,&3f,&c1,&c1,&c3,&c3,&c3,&c3,&c7,&c3,&c7,&15,&3f,&00,&3f
defb &0f,&28,&0f,&5f,&0c,&4c,&8c,&19,&8c,&0c,&0c,&4c,&4c,&dd,&6c,&dd
defb &3c,&af,&2d,&5f,&e1,&b7,&40,&d3,&c3,&d3,&c3,&b7,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&7a,&00,&3f,&a0,&b7,&7a
defb &c3,&b7,&c7,&db,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&35,&3f,&3f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&28,&00,&be,&00,&af,&aa,&0f,&5f,&0f,&ff
defb &0f,&ff,&ff,&ff,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &3f,&c1,&6a,&c3,&6a,&c7,&3f,&c5,&3f,&7a,&00,&00,&00,&00,&00,&00
defb &a0,&00,&7a,&00,&35,&a0,&9a,&7a,&cf,&35,&3f,&3f,&3f,&3f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&aa,&00
defb &fe,&2d,&44,&8c,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&d1,&3f,&d1,&3f
defb &92,&d1,&c7,&20,&9a,&00,&20,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&a0,&00,&7a,&00,&3f,&a0,&3f,&a0
defb &00,&00,&00,&44,&00,&dd,&44,&dd,&ee,&ff,&ff,&aa,&ff,&00,&ff,&00
defb &ff,&54,&ff,&54,&3f,&3f,&3f,&3f,&3f,&6a,&6a,&c3,&6a,&c3,&6a,&c3
defb &6a,&c7,&40,&c7,&50,&c3,&00,&15,&00,&00,&00,&00,&00,&00,&c1,&c3
defb &c1,&c3,&6a,&c7,&6a,&cf,&40,&cf,&40,&cf,&50,&c3,&00,&40,&00,&00
defb &2d,&0f,&af,&0f,&5f,&ff,&aa,&00,&00,&00,&00,&00,&00,&54,&54,&ff
defb &ff,&2d,&be,&1e,&6a,&c3,&c1,&c3,&c3,&c7,&c7,&cf,&cf,&cf,&cf,&35
defb &9a,&c5,&db,&c1,&b7,&6a,&3f,&3f,&3f,&3f,&00,&00,&00,&00,&c3,&c3
defb &c3,&c3,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&b7,&3f,&3f,&3f
defb &0f,&0f,&0f,&0f,&54,&ff,&54,&be,&54,&be,&fd,&be,&be,&0f,&3c,&dd
defb &6c,&08,&8c,&08,&35,&7a,&35,&c1,&35,&c5,&35,&3f,&35,&90,&c5,&92
defb &b7,&d1,&c3,&c3,&c3,&cf,&3f,&3f,&3f,&3f,&00,&00,&00,&00,&c3,&c3
defb &c3,&c3,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&3f,&3f,&3f,&3f
defb &0f,&0f,&0f,&0f,&2d,&0f,&0f,&1e,&1e,&cc,&6c,&cc,&1e,&cc,&00,&00
defb &00,&00,&00,&00,&00,&00,&c3,&c3,&c3,&c3,&3f,&c1,&6a,&c3,&6a,&92
defb &c1,&35,&c3,&60,&c7,&9a,&3f,&3f,&3f,&3f,&00,&00,&00,&00,&c3,&c3
defb &c3,&c3,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&3f,&3f,&3f,&3f
defb &0f,&28,&0f,&5f,&6c,&be,&cc,&8c,&cc,&8c,&0c,&0c,&8c,&8c,&00,&00
defb &00,&00,&00,&00,&00,&00,&c3,&c3,&c3,&c3,&c7,&35,&35,&6a,&6a,&cf
defb &c5,&cf,&cf,&cf,&c5,&cf,&3f,&3f,&3f,&3f,&00,&00,&00,&00,&c3,&c3
defb &c3,&c3,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&c3,&3f,&3f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&88,&00,&4c,&00,&0c,&88,&cc,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&c3,&c3,&c3,&c3,&c5,&cf,&cf,&cf,&cf,&cf
defb &cf,&cf,&cf,&9a,&35,&3f,&6a,&b7,&3f,&c5,&15,&c5,&40,&c7,&c3,&cf
defb &c7,&c3,&cf,&c3,&cb,&b7,&cb,&b7,&c3,&b7,&b7,&3f,&3f,&3f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&c3,&f2,&c3,&b7,&cf,&9a,&cf,&60,&35,&3f
defb &35,&6a,&3f,&c5,&3f,&c5,&6a,&cf,&cf,&cf,&cf,&c3,&cb,&b7,&cb,&b7
defb &c3,&b7,&b7,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&6a,&3f,&c5,&3f,&7a
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&a0,&00,&7a,&00,&35,&a0,&6a,&d3
defb &9a,&7a,&9a,&7a,&9a,&7a,&db,&7a,&d3,&7a,&d3,&7a,&3f,&7a,&3f,&7a
defb &6a,&9a,&6a,&9a,&6a,&9a,&6a,&db,&c5,&20,&9a,&00,&20,&00,&00,&00
defb &00,&00,&00,&44,&00,&cc,&44,&cc,&06,&0c,&b4,&0c,&55,&8c,&55,&cc
defb &55,&dd,&55,&dd,&40,&c3,&40,&c3,&40,&b7,&15,&3f,&15,&6a,&15,&c1
defb &40,&d3,&e1,&a2,&15,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &2d,&0f,&5d,&0f,&8c,&cc,&0c,&cc,&4c,&dd,&4c,&dd,&cc,&af,&cc,&af
defb &0f,&5f,&0f,&ff,&b7,&6a,&b7,&c1,&6a,&d3,&c1,&a2,&d3,&00,&a2,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &0f,&0f,&0f,&0f,&af,&0f,&dd,&0f,&0f,&5f,&5f,&ff,&0f,&ff,&5f,&ff
defb &be,&5f,&2d,&ff,&d3,&3f,&a2,&15,&00,&15,&00,&15,&00,&15,&00,&15
defb &00,&15,&00,&15,&00,&15,&00,&15,&00,&15,&00,&15,&00,&15,&00,&15
defb &00,&15,&00,&15,&00,&15,&00,&15,&00,&15,&00,&15,&00,&15,&00,&15
defb &0f,&0f,&0f,&0f,&2d,&ff,&ff,&00,&ff,&00,&aa,&00,&00,&00,&00,&00
defb &aa,&54,&fe,&ff,&3f,&6a,&3f,&6a,&3f,&c1,&3f,&c1,&6a,&c7,&c1,&cf
defb &c1,&cf,&c5,&9a,&c5,&9a,&90,&3f,&3f,&3f,&90,&c5,&3f,&3f,&3f,&6a
defb &6a,&c3,&6a,&c7,&6a,&c7,&c1,&cf,&c5,&cf,&c5,&cf,&3f,&6a,&3f,&3f
defb &0f,&0f,&0f,&0f,&00,&54,&00,&00,&00,&54,&54,&ff,&54,&be,&54,&be
defb &ff,&2d,&ff,&2d,&c3,&c3,&c3,&c7,&c3,&9a,&c7,&35,&cf,&35,&cf,&35
defb &35,&3f,&3f,&3f,&3f,&90,&6a,&35,&90,&d1,&c3,&b7,&c1,&d3,&c3,&35
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&9a,&c7,&20,&7a,&00
defb &0f,&0f,&0f,&0f,&ff,&ff,&fd,&be,&be,&0f,&2d,&1e,&0f,&6c,&0f,&6c
defb &1e,&cc,&6c,&8c,&cf,&cf,&db,&3f,&90,&3f,&7a,&00,&7a,&00,&7a,&00
defb &7a,&00,&7a,&00,&7a,&00,&7a,&00,&7a,&00,&7a,&00,&7a,&00,&7a,&00
defb &9a,&00,&9a,&00,&9a,&00,&9a,&00,&20,&00,&00,&00,&00,&00,&00,&00
defb &0f,&28,&0f,&5f,&2d,&1e,&0f,&7d,&1e,&cc,&cc,&cc,&cc,&0c,&cc,&0c
defb &8c,&0c,&0c,&4c,&cb,&b7,&3f,&3f,&3f,&3f,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&28,&00,&dd,&0f,&8c,&0c,&0c,&0c,&36,&0c
defb &ff,&0c,&fd,&0c,&d1,&3f,&6a,&35,&3f,&3f,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&44,&00,&cc,&44,&8c,&ae,&4c,&af,&cc,&ff,&cc,&ff,&cc
defb &ff,&cc,&ff,&cc,&3f,&cf,&3f,&cf,&3f,&cf,&3f,&cf,&3f,&9f,&3f,&3f
defb &3f,&cf,&3f,&cf,&3f,&cf,&3f,&cf,&3f,&cf,&3f,&c7,&3f,&c3,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&15,&97,&00,&c3,&00,&15,&00,&00
defb &af,&0f,&0d,&0f,&cc,&8c,&cc,&0c,&0c,&4c,&cc,&4c,&cc,&cc,&cc,&cc
defb &cc,&cc,&cc,&cc,&cf,&9f,&cf,&9f,&3f,&3f,&3f,&6f,&3f,&cf,&6f,&cb
defb &cf,&cb,&cf,&cb,&cb,&c3,&cb,&3f,&c3,&97,&c3,&3f,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &0f,&5f,&0f,&8d,&0c,&0c,&cc,&0c,&cc,&0c,&cc,&0c,&cc,&0c,&8c,&0c
defb &0c,&0c,&0c,&0c,&3f,&3f,&6f,&3f,&cf,&3f,&cf,&3f,&cf,&3f,&c3,&3f
defb &c3,&3f,&97,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&cf,&3f,&6b,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&6b,&3f,&c3,&6b,&c3,&3f,&3f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&2a,&00,&c3,&c3,&c3,&c3
defb &6b,&c3,&6b,&c7,&6b,&cf,&c3,&cf,&c7,&cf,&c7,&cf,&3f,&3f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&c3,&c3,&c3,&c3
defb &c7,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&9f,&3f,&3f,&3f,&3f,&3f
defb &00,&00,&00,&00,&aa,&00,&aa,&00,&ff,&00,&ff,&aa,&ff,&aa,&ff,&00
defb &ff,&00,&ff,&00,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&6b
defb &3f,&6b,&3f,&c3,&3f,&c7,&3f,&cf,&3f,&9f,&6b,&9f,&c7,&9f,&cf,&cf
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&9f,&c3,&97,&3f,&c3,&3f,&3f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&55,&00,&3f,&3f,&3f,&c3,&6b,&c3,&c3,&c7,&c3,&c7,&c3,&cf
defb &c7,&9f,&cf,&cf,&cf,&97,&cf,&3f,&6f,&3f,&3f,&cb,&6f,&9f,&cf,&97
defb &cf,&3f,&9f,&6b,&3f,&6b,&3f,&c3,&3f,&c7,&c3,&c7,&3f,&6f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&3f,&00,&97,&2a,&cb,&82,&cf,&8a,&cf,&2a,&9f,&2a
defb &3f,&2a,&cb,&2a,&3f,&2a,&6b,&2a,&c7,&2a,&c7,&2a,&c7,&2a,&c7,&8a
defb &c7,&8a,&cf,&8a,&cf,&8a,&cf,&8a,&cf,&8a,&cf,&00,&8a,&00,&00,&00
defb &00,&55,&00,&8c,&44,&8d,&cc,&4e,&cc,&cc,&4e,&cc,&ee,&8c,&ee,&0c
defb &ee,&0c,&af,&0f,&3f,&3f,&3f,&6b,&3f,&c7,&6b,&cf,&6b,&9f,&6b,&9f
defb &6f,&3f,&6f,&6f,&3f,&cf,&97,&cf,&97,&cf,&6b,&cf,&41,&c7,&00,&c3
defb &00,&41,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &0f,&0f,&0f,&0f,&cc,&8c,&8c,&0c,&8c,&4c,&8c,&4c,&0c,&cc,&0c,&88
defb &4c,&aa,&af,&ff,&c3,&c7,&cf,&3f,&9f,&cf,&6f,&cf,&cf,&cf,&cf,&cf
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&9f,&cf,&9f,&cf,&cf
defb &c7,&cf,&c3,&cf,&41,&c7,&00,&c3,&00,&41,&00,&00,&00,&00,&00,&00
defb &0f,&0a,&8c,&08,&0c,&08,&0c,&08,&0c,&08,&0c,&08,&0e,&08,&ae,&08
defb &ae,&08,&0e,&08,&9f,&2a,&3f,&2a,&9f,&2a,&9f,&2a,&9f,&2a,&9f,&2a
defb &9f,&2a,&9f,&2a,&9f,&82,&3f,&97,&3f,&9f,&3f,&cb,&6f,&cb,&cf,&cb
defb &cf,&cb,&cb,&c3,&cb,&3f,&c3,&97,&c3,&3f,&c3,&3f,&15,&3f,&00,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&2a,&00,&3f,&00,&3f,&3f,&97,&3f
defb &97,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &00,&00,&00,&00,&00,&55,&00,&55,&00,&55,&00,&55,&00,&55,&00,&55
defb &00,&55,&00,&55,&00,&15,&00,&15,&00,&15,&00,&15,&00,&15,&00,&15
defb &00,&15,&00,&15,&00,&15,&00,&3f,&41,&97,&6b,&3f,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&6b,&3f,&6b,&3f,&6f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&00,&00,&aa,&00,&ee,&00,&ae,&88,&ae,&4c
defb &ae,&4c,&ae,&4c,&6f,&cb,&6f,&c3,&6b,&c3,&6b,&97,&6b,&97,&6b,&97
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &3f,&6b,&3f,&6b,&3f,&cf,&c7,&cf,&c7,&8a,&cf,&00,&8a,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &0a,&00,&5f,&00,&c3,&3f,&c3,&3f,&97,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&6b,&3f,&6f,&3f,&cf,&c3,&cf
defb &6f,&8a,&cf,&00,&8a,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&2a,&00,&3f,&00,&3f,&00,&6f,&00,&3f,&00,&3f,&00
defb &3f,&00,&3f,&00,&97,&00,&97,&00,&9f,&00,&cf,&00,&8a,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&44,&00,&cc,&44,&dd,&ee,&ff,&ff,&aa,&ff,&00,&ff,&00
defb &ff,&55,&ff,&ff,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&c3,&3f,&c3,&3f,&c7
defb &3f,&cf,&3f,&cf,&3f,&9f,&6b,&9f,&6b,&cb,&15,&97,&00,&c3,&00,&41
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &af,&0f,&8d,&0f,&5f,&00,&00,&00,&00,&00,&00,&55,&00,&ff,&00,&ff
defb &ff,&ff,&ff,&0f,&c3,&c3,&c3,&cf,&c7,&cf,&c7,&cf,&cf,&9f,&cf,&9f
defb &3f,&6f,&3f,&3f,&3f,&3f,&6f,&3f,&97,&6b,&3f,&c3,&6b,&c7,&c7,&cf
defb &c3,&cf,&41,&c7,&00,&c3,&00,&41,&00,&00,&00,&00,&00,&00,&00,&00
defb &0f,&5f,&0f,&8d,&ff,&8c,&55,&0c,&55,&0c,&ff,&0c,&af,&0c,&af,&0c
defb &4e,&0c,&4e,&0c,&cf,&3f,&9f,&3f,&3f,&3f,&3f,&3f,&6b,&3f,&3f,&3f
defb &3f,&3f,&3f,&9f,&6b,&cf,&c3,&9f,&c7,&3f,&9f,&6f,&9f,&cf,&cf,&cf
defb &cf,&cf,&cf,&cf,&cf,&cf,&c7,&cf,&c3,&cf,&41,&c7,&00,&c3,&00,&15
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&45,&00,&cf,&6f,&cf
defb &6f,&cf,&cf,&cf,&6f,&cf,&6f,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&8a,&cf,&00,&8a,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&82,&00,&9f,&00,&cf,&82,&cf,&c3
defb &cf,&cb,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&9f,&3f,&cf,&cf
defb &cf,&cf,&cf,&cf,&cf,&cb,&3f,&c3,&00,&c3,&00,&41,&00,&00,&00,&00
defb &55,&0f,&55,&0f,&55,&ff,&55,&ff,&55,&ff,&55,&af,&55,&ee,&55,&ae
defb &55,&ee,&55,&ee,&15,&6f,&15,&6f,&15,&6f,&15,&6f,&15,&6f,&3f,&3f
defb &3f,&3f,&cb,&97,&3f,&3f,&9f,&3f,&3f,&6f,&3f,&cf,&6f,&cf,&cf,&cf
defb &cf,&c3,&c3,&c3,&c3,&3f,&c3,&3f,&97,&3f,&97,&3f,&3f,&3f,&15,&3f
defb &0f,&0a,&0f,&5f,&af,&8d,&4e,&8c,&4e,&4c,&8c,&4c,&0c,&cc,&4c,&cc
defb &cc,&cc,&cc,&cc,&cf,&cf,&cf,&cf,&cf,&9f,&cf,&9f,&cf,&9f,&9f,&3f
defb &3f,&3f,&3f,&6f,&6f,&cb,&cf,&cb,&cf,&c3,&c3,&97,&c3,&3f,&c3,&3f
defb &97,&3f,&97,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &00,&00,&00,&00,&00,&00,&08,&00,&8c,&aa,&cc,&0d,&cc,&0c,&cc,&0c
defb &cc,&0c,&cc,&0c,&cf,&3f,&9f,&3f,&3f,&3f,&3f,&3f,&6f,&3f,&cf,&3f
defb &cf,&3f,&cf,&3f,&c7,&3f,&c3,&3f,&6b,&3f,&6b,&3f,&3f,&3f,&3f,&cf
defb &3f,&cf,&3f,&cf,&3f,&cf,&6b,&cb,&c7,&8a,&cf,&00,&82,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&44,&00,&cc,&44,&cc
defb &cc,&8d,&4c,&5f,&6b,&97,&41,&97,&00,&c3,&00,&41,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&15,&00,&3f,&15,&3f,&3f,&6b,&3f,&6b,&3f,&c3
defb &6b,&c7,&6b,&cf,&6f,&cf,&6f,&cf,&6f,&cf,&6f,&cf,&3f,&3f,&3f,&3f
defb &00,&00,&00,&44,&00,&cc,&44,&cc,&cc,&8d,&cc,&0f,&8d,&5f,&0f,&ff
defb &0f,&ff,&ff,&ff,&3f,&3f,&3f,&3f,&3f,&3f,&97,&3f,&c3,&3f,&15,&3f
defb &15,&3f,&3f,&6b,&6b,&c3,&6b,&c7,&c3,&c7,&c3,&cf,&c7,&9f,&cf,&cf
defb &cf,&97,&cf,&3f,&cf,&3f,&cf,&cb,&cf,&9f,&cf,&3f,&3f,&3f,&3f,&3f
defb &0a,&00,&88,&00,&dd,&00,&5f,&00,&5f,&aa,&5f,&aa,&ff,&00,&ff,&00
defb &aa,&00,&00,&00,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&c3,&3f,&c3,&3f,&c7
defb &c3,&c7,&c3,&cf,&cf,&cf,&cf,&3f,&cf,&3f,&9f,&3f,&3f,&6f,&cb,&97
defb &3f,&3f,&3f,&6b,&c7,&cf,&c7,&cf,&c7,&cf,&c7,&8a,&cf,&00,&2a,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&55,&00,&55
defb &55,&ff,&ff,&ff,&3f,&6b,&3f,&c7,&c3,&c7,&c3,&cf,&cf,&cf,&cf,&6f
defb &cf,&3f,&9f,&3f,&9f,&3f,&6f,&3f,&3f,&3f,&3f,&6b,&3f,&c3,&6b,&c7
defb &c3,&cf,&cf,&cf,&cf,&2a,&8a,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&44,&00,&cc,&44,&8d,&cc,&8d,&cc,&0f,&0f,&0f
defb &0f,&4e,&0f,&cc,&c7,&cf,&cf,&cf,&cf,&3f,&9f,&3f,&9f,&3f,&6b,&97
defb &3f,&6b,&3f,&c7,&6b,&cf,&c7,&9f,&c7,&6f,&c7,&6f,&9f,&6f,&cf,&cf
defb &cf,&cf,&cf,&cf,&c7,&cf,&41,&cf,&00,&c7,&00,&41,&00,&00,&00,&00
defb &55,&0f,&cc,&0f,&8d,&0f,&af,&0f,&0f,&0f,&0f,&cc,&4e,&cc,&cc,&cc
defb &cc,&0c,&0c,&0c,&3f,&9f,&3f,&cf,&6f,&9f,&6f,&3f,&9f,&3f,&97,&6f
defb &c3,&cb,&9f,&6f,&6f,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf
defb &cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&c7,&8a,&41,&00
defb &0f,&0f,&0f,&0f,&4e,&cc,&cc,&8c,&cc,&0c,&cc,&0c,&8c,&4c,&4c,&88
defb &aa,&55,&55,&af,&3f,&c7,&3f,&cf,&6b,&cf,&6f,&8a,&cf,&00,&9f,&00
defb &2a,&00,&3f,&00,&3f,&2a,&cf,&3f,&cf,&3f,&cf,&cf,&cf,&9f,&cf,&cf
defb &cf,&cf,&cf,&cf,&cf,&8a,&cf,&00,&8a,&00,&00,&00,&00,&00,&00,&00
defb &0f,&5f,&cc,&5d,&8c,&5d,&0c,&5d,&0e,&5d,&04,&5d,&04,&5d,&ae,&5d
defb &ae,&5d,&8c,&5f,&cf,&15,&8a,&15,&00,&15,&00,&15,&00,&15,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&2a,&00,&3f,&00,&3f,&82,&cf,&00
defb &8a,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&aa,&00,&ee,&00,&ee,&88,&ee,&cc,&ee,&cc,&ee,&cc
defb &ee,&cc,&ee,&cc,&6f,&cf,&6f,&3f,&3f,&3f,&97,&3f,&c7,&3f,&6b,&cf
defb &41,&c3,&00,&c3,&00,&41,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&88,&00,&8c,&00
defb &cc,&88,&8c,&4c,&9f,&3f,&3f,&6f,&6f,&cf,&cf,&cb,&cb,&c3,&c3,&97
defb &c3,&97,&c3,&3f,&97,&3f,&c3,&3f,&41,&97,&00,&c3,&00,&41,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&ff,&0f,&cb,&c3,&cb,&97,&cb,&97,&c3,&3f,&c3,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&97,&3f,&3f,&3f
defb &15,&6b,&15,&6b,&15,&6f,&15,&6f,&15,&6b,&15,&3f,&15,&3f,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&0f,&0f,&c3,&c3,&97,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &3f,&3f,&3f,&3f,&3f,&6b,&3f,&c3,&3f,&c3,&6b,&c3,&6b,&c7,&c3,&cf
defb &c7,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&cf,&3f,&6b,&3f,&2a,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&0f,&0f,&c3,&c3,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &3f,&6b,&c7,&3f,&97,&9f,&97,&2a,&97,&2a,&9f,&2a,&9f,&2a,&cf,&8a
defb &cf,&8a,&c7,&8a,&c7,&82,&cf,&00,&8a,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&05,&00,&0f
defb &05,&5f,&0f,&ff,&3f,&3f,&3f,&3f,&3f,&c3,&c3,&c3,&c3,&cf,&c7,&cf
defb &c3,&cf,&3f,&3f,&3f,&3f,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&05,&00,&0f,&05,&5f,&0f,&ff,&5f,&af,&ff,&af
defb &ff,&0f,&ff,&0f,&6b,&c7,&c7,&cf,&c7,&cf,&cf,&9f,&cf,&9f,&6f,&6f
defb &cf,&6f,&3f,&cf,&3f,&2a,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &55,&08,&4e,&08,&4e,&08,&ae,&08,&0e,&08,&0e,&08,&0e,&08,&0e,&08
defb &8c,&08,&8c,&08,&9f,&2a,&9f,&2a,&3f,&2a,&3f,&2a,&9f,&82,&cf,&00
defb &8a,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&50
defb &00,&e5,&50,&cf,&e5,&cf,&cf,&cf,&c5,&9a,&c7,&35,&c5,&35,&c5,&cf
defb &c5,&cf,&c5,&cf,&c7,&cf,&c7,&cf,&c1,&c3,&e1,&d3,&00,&3f,&00,&15
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&44,&00,&cc,&44,&4c,&ff,&00
defb &00,&00,&00,&00,&00,&00,&00,&50,&00,&e5,&50,&cf,&e5,&cf,&cf,&cf
defb &cf,&cf,&cf,&cf,&cf,&35,&35,&3f,&3f,&3f,&3f,&c5,&6a,&cf,&cf,&cf
defb &cf,&c3,&cf,&d3,&cf,&d3,&c3,&b7,&c3,&b7,&3f,&3f,&3f,&3f,&3f,&3f
defb &00,&14,&00,&8c,&44,&cc,&cc,&4c,&8c,&4c,&0c,&cc,&8c,&cc,&00,&00
defb &00,&00,&00,&00,&00,&00,&c3,&c3,&cf,&c3,&cf,&35,&cf,&35,&35,&3f
defb &35,&3f,&35,&c5,&6a,&cf,&6a,&cf,&c5,&db,&cb,&d3,&cb,&d3,&c3,&c3
defb &c3,&c3,&d1,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &0f,&0f,&af,&0f,&cc,&cc,&cc,&cc,&cc,&cc,&cc,&cc,&cc,&cc,&00,&00
defb &00,&00,&00,&00,&00,&50,&c3,&c3,&c3,&c3,&6a,&cf,&6a,&cf,&6a,&cb
defb &c5,&c3,&cb,&c3,&cb,&d3,&b7,&3f,&3f,&3f,&2a,&00,&a0,&00,&c3,&c3
defb &c3,&c3,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f,&3f
defb &0f,&0f,&0f,&0f,&cc,&cc,&cc,&cc,&cc,&cc,&cc,&cc,&cc,&0c,&00,&54
defb &00,&fd,&bc,&1e,&c3,&cf,&c7,&cb,&cf,&cb,&cf,&cb,&cb,&d3,&c3,&d3
defb &b7,&3f,&b7,&6a,&6a,&c7,&6a,&9a,&3f,&a0,&00,&00,&00,&00,&c3,&c3
defb &c3,&c3,&3f,&c1,&6a,&c3,&6a,&c3,&c1,&c3,&6a,&c3,&3f,&3f,&3f,&3f
defb &0f,&0f,&0f,&0f,&8c,&0c,&cc,&0c,&cc,&0c,&0c,&4c,&0c,&4c,&2c,&cc
defb &cc,&dd,&cc,&af,&cb,&d3,&c3,&d3,&b7,&3f,&b7,&6a,&3f,&c5,&6a,&9a
defb &c5,&20,&9a,&00,&20,&00,&00,&00,&00,&00,&00,&00,&00,&00,&c3,&c3
defb &c3,&c3,&c3,&cf,&c7,&cf,&c7,&cf,&cf,&cf,&cf,&cf,&3f,&3f,&3f,&3f
defb &1e,&00,&0f,&aa,&0c,&88,&0c,&be,&cc,&dd,&dd,&0f,&af,&5f,&af,&5f
defb &0f,&1e,&5f,&ff,&3f,&c5,&6a,&9a,&c5,&20,&9a,&00,&20,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&c3,&c3
defb &c3,&c3,&cf,&cf,&cf,&9a,&cf,&60,&9a,&6a,&9a,&c5,&6a,&9a,&3f,&a0
defb &00,&00,&00,&00,&00,&00,&00,&00,&28,&00,&28,&00,&aa,&00,&ff,&00
defb &6c,&00,&cc,&00,&20,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00
defb &00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&00,&c3,&a2
defb &c7,&20,&c7,&20,&c5,&20,&c7,&a2,&9a,&00,&20,&00,&00,&00,&00,&00
;; font
| 58.07507 | 77 | 0.524472 |
97c7b01d0db704dd3e752960d606ad8a41a09c05 | 6,443 | nasm | Assembly | UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm | ya-enot/edk2 | 40cb1f25d4237a483f53fa435308608095b27d1c | [
"BSD-2-Clause"
] | 4 | 2018-10-19T14:50:16.000Z | 2020-03-26T04:02:05.000Z | UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm | jam3st/edk2 | d477ef9975cc6cdf1fca4d221c3064c2f2d804e8 | [
"BSD-2-Clause"
] | 2 | 2018-10-11T17:17:22.000Z | 2018-10-11T17:18:43.000Z | UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm | jam3st/edk2 | d477ef9975cc6cdf1fca4d221c3064c2f2d804e8 | [
"BSD-2-Clause"
] | 4 | 2018-10-15T13:53:43.000Z | 2021-02-17T11:35:04.000Z | ;------------------------------------------------------------------------------ ;
; Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
; http://opensource.org/licenses/bsd-license.php.
;
; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
;
; Module Name:
;
; SmiEntry.nasm
;
; Abstract:
;
; Code template of the SMI handler for a particular processor
;
;-------------------------------------------------------------------------------
;
; Variables referrenced by C code
;
%define MSR_IA32_MISC_ENABLE 0x1A0
%define MSR_EFER 0xc0000080
%define MSR_EFER_XD 0x800
;
; Constants relating to PROCESSOR_SMM_DESCRIPTOR
;
%define DSC_OFFSET 0xfb00
%define DSC_GDTPTR 0x30
%define DSC_GDTSIZ 0x38
%define DSC_CS 14
%define DSC_DS 16
%define DSC_SS 18
%define DSC_OTHERSEG 20
;
; Constants relating to CPU State Save Area
;
%define SSM_DR6 0xffd0
%define SSM_DR7 0xffc8
%define PROTECT_MODE_CS 0x8
%define PROTECT_MODE_DS 0x20
%define LONG_MODE_CS 0x38
%define TSS_SEGMENT 0x40
%define GDT_SIZE 0x50
extern ASM_PFX(SmiRendezvous)
extern ASM_PFX(gSmiHandlerIdtr)
extern ASM_PFX(CpuSmmDebugEntry)
extern ASM_PFX(CpuSmmDebugExit)
global ASM_PFX(gPatchSmbase)
extern ASM_PFX(mXdSupported)
global ASM_PFX(gPatchXdSupported)
global ASM_PFX(gPatchSmiStack)
global ASM_PFX(gPatchSmiCr3)
global ASM_PFX(gcSmiHandlerTemplate)
global ASM_PFX(gcSmiHandlerSize)
DEFAULT REL
SECTION .text
BITS 16
ASM_PFX(gcSmiHandlerTemplate):
_SmiEntryPoint:
mov bx, _GdtDesc - _SmiEntryPoint + 0x8000
mov ax,[cs:DSC_OFFSET + DSC_GDTSIZ]
dec ax
mov [cs:bx], ax
mov eax, [cs:DSC_OFFSET + DSC_GDTPTR]
mov [cs:bx + 2], eax
o32 lgdt [cs:bx] ; lgdt fword ptr cs:[bx]
mov ax, PROTECT_MODE_CS
mov [cs:bx-0x2],ax
mov edi, strict dword 0 ; source operand will be patched
ASM_PFX(gPatchSmbase):
lea eax, [edi + (@ProtectedMode - _SmiEntryPoint) + 0x8000]
mov [cs:bx-0x6],eax
mov ebx, cr0
and ebx, 0x9ffafff3
or ebx, 0x23
mov cr0, ebx
jmp dword 0x0:0x0
_GdtDesc:
DW 0
DD 0
BITS 32
@ProtectedMode:
mov ax, PROTECT_MODE_DS
o16 mov ds, ax
o16 mov es, ax
o16 mov fs, ax
o16 mov gs, ax
o16 mov ss, ax
mov esp, strict dword 0 ; source operand will be patched
ASM_PFX(gPatchSmiStack):
jmp ProtFlatMode
BITS 64
ProtFlatMode:
mov eax, strict dword 0 ; source operand will be patched
ASM_PFX(gPatchSmiCr3):
mov cr3, rax
mov eax, 0x668 ; as cr4.PGE is not set here, refresh cr3
mov cr4, rax ; in PreModifyMtrrs() to flush TLB.
; Load TSS
sub esp, 8 ; reserve room in stack
sgdt [rsp]
mov eax, [rsp + 2] ; eax = GDT base
add esp, 8
mov dl, 0x89
mov [rax + TSS_SEGMENT + 5], dl ; clear busy flag
mov eax, TSS_SEGMENT
ltr ax
; enable NXE if supported
mov al, strict byte 1 ; source operand may be patched
ASM_PFX(gPatchXdSupported):
cmp al, 0
jz @SkipXd
;
; Check XD disable bit
;
mov ecx, MSR_IA32_MISC_ENABLE
rdmsr
sub esp, 4
push rdx ; save MSR_IA32_MISC_ENABLE[63-32]
test edx, BIT2 ; MSR_IA32_MISC_ENABLE[34]
jz .0
and dx, 0xFFFB ; clear XD Disable bit if it is set
wrmsr
.0:
mov ecx, MSR_EFER
rdmsr
or ax, MSR_EFER_XD ; enable NXE
wrmsr
jmp @XdDone
@SkipXd:
sub esp, 8
@XdDone:
; Switch into @LongMode
push LONG_MODE_CS ; push cs hardcore here
call Base ; push return address for retf later
Base:
add dword [rsp], @LongMode - Base; offset for far retf, seg is the 1st arg
mov ecx, MSR_EFER
rdmsr
or ah, 1 ; enable LME
wrmsr
mov rbx, cr0
or ebx, 0x80010023 ; enable paging + WP + NE + MP + PE
mov cr0, rbx
retf
@LongMode: ; long mode (64-bit code) starts here
mov rax, strict qword 0 ; mov rax, ASM_PFX(gSmiHandlerIdtr)
SmiHandlerIdtrAbsAddr:
lidt [rax]
lea ebx, [rdi + DSC_OFFSET]
mov ax, [rbx + DSC_DS]
mov ds, eax
mov ax, [rbx + DSC_OTHERSEG]
mov es, eax
mov fs, eax
mov gs, eax
mov ax, [rbx + DSC_SS]
mov ss, eax
mov rax, strict qword 0 ; mov rax, _SmiHandler
_SmiHandlerAbsAddr:
jmp rax
_SmiHandler:
mov rbx, [rsp + 0x8] ; rcx <- CpuIndex
;
; Save FP registers
;
sub rsp, 0x200
fxsave64 [rsp]
add rsp, -0x20
mov rcx, rbx
call ASM_PFX(CpuSmmDebugEntry)
mov rcx, rbx
call ASM_PFX(SmiRendezvous)
mov rcx, rbx
call ASM_PFX(CpuSmmDebugExit)
add rsp, 0x20
;
; Restore FP registers
;
fxrstor64 [rsp]
add rsp, 0x200
lea rax, [ASM_PFX(mXdSupported)]
mov al, [rax]
cmp al, 0
jz .1
pop rdx ; get saved MSR_IA32_MISC_ENABLE[63-32]
test edx, BIT2
jz .1
mov ecx, MSR_IA32_MISC_ENABLE
rdmsr
or dx, BIT2 ; set XD Disable bit if it was set before entering into SMM
wrmsr
.1:
rsm
ASM_PFX(gcSmiHandlerSize) DW $ - _SmiEntryPoint
global ASM_PFX(PiSmmCpuSmiEntryFixupAddress)
ASM_PFX(PiSmmCpuSmiEntryFixupAddress):
lea rax, [ASM_PFX(gSmiHandlerIdtr)]
lea rcx, [SmiHandlerIdtrAbsAddr]
mov qword [rcx - 8], rax
lea rax, [_SmiHandler]
lea rcx, [_SmiHandlerAbsAddr]
mov qword [rcx - 8], rax
ret
| 27.534188 | 98 | 0.565575 |
3f89530f9d6ff2778b03a05be67e1e176286730f | 7,140 | asm | Assembly | Projects/SchoolProjects/Project 5/Calculator.asm | Mani9723/X86-MASM-Assembly | 2a29fa34fba0548dc118690a2ab80e5d32675172 | [
"MIT"
] | null | null | null | Projects/SchoolProjects/Project 5/Calculator.asm | Mani9723/X86-MASM-Assembly | 2a29fa34fba0548dc118690a2ab80e5d32675172 | [
"MIT"
] | null | null | null | Projects/SchoolProjects/Project 5/Calculator.asm | Mani9723/X86-MASM-Assembly | 2a29fa34fba0548dc118690a2ab80e5d32675172 | [
"MIT"
] | null | null | null | INCLUDE Irvine32.inc
INCLUDE Macros.inc
.data
x SDWORD ?
y SDWORD ?
result SDWORD ?
menu BYTE " Please choose an operation", 0ah, 0dh
BYTE " 1) X + Y 6) X and Y", 0ah, 0dh
BYTE " 2) X - Y 7) X or Y", 0ah, 0dh
BYTE " 3) X * Y 8) not X", 0ah, 0dh
BYTE " 4) X / Y 9) X xor Y", 0ah, 0dh
BYTE " 5) X mod Y 10) Exit", 0
addIntro BYTE " Please Enter two integers to add",0
subIntro BYTE " Please Enter two integers to subtract",0
multIntro BYTE " Please Enter two integers to multiply",0
divIntro BYTE " Please Enter two integers to divide",0
modIntro BYTE " Please Enter two integers to mod",0
andIntro BYTE " Please Enter two integers to AND",0
orIntro BYTE " Please Enter two integers to OR",0
notIntro BYTE " Please Enter an integer to NOT",0
xorIntro BYTE " Please Enter two integers to XOR",0
answer BYTE " Answer: ", 0
error BYTE " Invalid Input. Program Exits", 0
prog BYTE " Program Ended", 0
.code
main PROC
introLabel:
mWriteString menu
cmp eax, 10
jg l11 ; Invalid Input End Program
cmp eax, 1
je addition ; call addition
cmp eax, 2
je subtraction ; call subtraction
cmp eax, 3
je multiply ; call multiplication
cmp eax, 4
je l4 ; call division
cmp eax, 5
je l5 ; call modulus
cmp eax, 6
je l6 ; call AND
cmp eax, 7
je l7 ; call OR
cmp eax, 8
je l8 ; call NOT
cmp eax, 9
je l9 ; call XOR
cmp eax, 10
je l10 ; End Program
;l1:
; call addition
; jmp introLabel
l2:
call subtraction
jmp introLabel
l3:
call multiply
jmp introLabel
l4:
call intro4
call divide
call print
jmp introLabel
l5:
call modulus
jmp introLabel
l6:
call AndOperation
jmp introLabel
l7:
Call OrOperation
jmp introLabel
l8:
call NotOperation
jmp introLabel
l9:
call XorOperation
jmp introLabel
l11:
mov edx, OFFSET error
call writestring
call crlf
jmp l10
l10:
call exitProg
exit
main endp
;-----------------------------------------------
; INTRODUCTION AND OPTIONS
;-----------------------------------------------
intro PROC
mov edx, OFFSET menu
call writestring
call crlf
call crlf
call readdec
ret
intro endp
;--------------------------------------
; EXITS PROGRAM
;-------------------------------------
exitprog PROC
mov edx, OFFSET Prog
call writestring
call crlf
ret
exitprog endp
;----------------------------------------
; READS USER INPUT FOR X AND Y
;------------------------------------------
readInput PROC
call readdec
mov x, eax
mov ebx, x
call readdec
mov y, eax
ret
readInput endp
;-----------------------------------------------
; PRINTS THE ANSER
;-----------------------------------------------
print PROC
mov edx, OFFSET answer
call writestring
call writedec
call crlf
call crlf
ret
print endp
;-----------------------------------------------
; PRINTS THE SIGNED ANSWER
;-----------------------------------------------
printInt PROC
mov edx, OFFSET answer
call writestring
call writeint
call crlf
call crlf
ret
printInt endp
;-----------------------------------------------
; CHECK SIGNED
;-----------------------------------------------
sign PROC
cmp eax, 0
js l1
call print
jmp l2
l1:
call printint
l2:
ret
ret
sign endp
;-----------------------------------------------
; OPTION 1: X+Y
;------------------------------------------------
addition PROC
call intro1
call readInput
add eax, ebx
mov result, eax
call print
ret
addition endp
;-------------------------------
; OPTION 2: SUBTRACTION X-Y
;-------------------------------
subtraction PROC
call intro2
call readInput
sub ebx, eax
xchg eax, ebx
mov result, eax
call sign
ret
subtraction endp
;-------------------------------
;OPTION 3: MULTIPLICATION X*Y
;------------------------------
multiply PROC
call intro3
call readInput
imul eax, ebx
mov result, eax
call print
ret
multiply endp
;-------------------------------------------
;OPTION 4: DIVIDE X/Y
;--------------------------------------------
divide PROC
mov edx, 0
call readdec
mov x, eax
call readdec
mov y, eax
mov eax, x
mov ecx, y
div ecx
call crlf
ret
divide endp
;----------------------------
; OPTION 5: MODULUS X % Y
;----------------------------
modulus PROC
call intro5
call divide
mov eax, edx
call print
ret
modulus endp
;--------------------------------
; OPTION 6: AND OPERATION
;-----------------------------
AndOperation PROC
call intro6
call readdec
mov x, eax
call readdec
mov y, eax
and eax, x
call print
ret
AndOperation endp
;--------------------------------
; OPTION 7: OR OPERATION
;-----------------------------
OrOperation PROC
call intro7
call readdec
mov x, eax
call readdec
mov y, eax
or eax, x
call print
ret
OrOperation endp
;--------------------------------
; OPTION 8: NOT OPERATION
;-----------------------------
NotOperation PROC
call intro8
call readdec
not eax
mov edx, OFFSET answer
call writestring
call writeint
call crlf
call crlf
ret
NotOperation endp
;--------------------------------
; OPTION 9: XOR OPERATION
;-----------------------------
XorOperation PROC
call intro9
call readdec
mov x, eax
call readdec
mov y, eax
xor eax, x
call print
ret
XorOperation endp
;-------------------------------
; ADD INTRO
;-------------------------------
intro1 PROC
call crlf
mov edx, OFFSET addIntro
call writestring
call crlf
ret
intro1 endp
;---------------------------------------
intro2 PROC
call crlf
mov edx, OFFSET subIntro
call writestring
call crlf
ret
intro2 endp
;------------------------------------------
intro3 PROC
call crlf
mov edx, OFFSET multIntro
call writestring
call crlf
ret
intro3 endp
;--------------------------------
;------------------------------------------
intro4 PROC
call crlf
mov edx, OFFSET divIntro
call writestring
call crlf
ret
intro4 endp
;--------------------------------
;------------------------------------------
intro5 PROC
call crlf
mov edx, OFFSET modIntro
call writestring
call crlf
ret
intro5 endp
;--------------------------------
;------------------------------------------
intro6 PROC
call crlf
mov edx, OFFSET andIntro
call writestring
call crlf
ret
intro6 endp
;--------------------------------
;------------------------------------------
intro7 PROC
call crlf
mov edx, OFFSET orIntro
call writestring
call crlf
ret
intro7 endp
;--------------------------------
;------------------------------------------
intro8 PROC
call crlf
mov edx, OFFSET notIntro
call writestring
call crlf
ret
intro8 endp
;--------------------------------
;------------------------------------------
intro9 PROC
call crlf
mov edx, OFFSET xorIntro
call writestring
call crlf
ret
intro9 endp
;--------------------------------
end main | 20.112676 | 59 | 0.492017 |
9cec7b46ee7b62319d47d3778e054edf3cbf451b | 1,283 | asm | Assembly | loader/windows/src/x64/intrinsic_sds.asm | lusceu/hypervisor | 012a2d16f96dcfc256a3cac9aa22e238c8160a0c | [
"MIT"
] | 1,179 | 2015-11-03T03:30:44.000Z | 2022-03-27T10:11:45.000Z | loader/windows/src/x64/intrinsic_sds.asm | lusceu/hypervisor | 012a2d16f96dcfc256a3cac9aa22e238c8160a0c | [
"MIT"
] | 682 | 2015-10-20T14:51:46.000Z | 2022-03-18T19:16:26.000Z | loader/windows/src/x64/intrinsic_sds.asm | lusceu/hypervisor | 012a2d16f96dcfc256a3cac9aa22e238c8160a0c | [
"MIT"
] | 205 | 2015-10-16T11:56:19.000Z | 2022-03-16T11:41:29.000Z | ; @copyright
; Copyright (C) 2020 Assured Information Security, Inc.
;
; @copyright
; 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:
;
; @copyright
; The above copyright notice and this permission notice shall be included in
; all copies or substantial portions of the Software.
;
; @copyright
; 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.
.code
intrinsic_sds PROC
xor rax, rax
mov ax, ds
ret
int 3
intrinsic_sds ENDP
end
| 35.638889 | 79 | 0.755261 |
fb8917b30724a0de89e4cd7bf54d85e9f2e81851 | 623 | asm | Assembly | Assembler/testString.asm | Rohansi/LoonyVM | 6ef3a3e552875cdbe39c92f66c31c3c5eb3059e0 | [
"Unlicense"
] | 1 | 2019-01-19T14:15:53.000Z | 2019-01-19T14:15:53.000Z | Assembler/testString.asm | Rohansi/LoonyVM | 6ef3a3e552875cdbe39c92f66c31c3c5eb3059e0 | [
"Unlicense"
] | null | null | null | Assembler/testString.asm | Rohansi/LoonyVM | 6ef3a3e552875cdbe39c92f66c31c3c5eb3059e0 | [
"Unlicense"
] | null | null | null | include 'loonyvm.inc'
@@:
rand byte r1
rand byte r2
invoke printString, str1
invoke itoa, byte r1, itoaBuffer1
invoke printString, itoaBuffer1
invoke printString, str2
invoke itoa, byte r2, itoaBuffer2
invoke printString, itoaBuffer2
invoke printString, str3
invoke strcmp, itoaBuffer1, itoaBuffer2
invoke itoa, r0, itoaBuffer1
invoke printString, itoaBuffer1
invoke printChar, 10
jmp @b
str1: db 'strcmp("', 0
str2: db '", "', 0
str3: db '") = ', 0
itoaBuffer1: db '-1234567890', 0
itoaBuffer2: db '-1234567890', 0
include 'lib/string.asm'
include 'lib/term.asm'
| 23.074074 | 43 | 0.685393 |
62176c768f8a4dab17a87152816634a576c00236 | 18,798 | asm | Assembly | Library/Impex/Main/mainThread.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Library/Impex/Main/mainThread.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Library/Impex/Main/mainThread.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Impex/Main
FILE: mainThread.asm
AUTHOR: jimmy lefkowitz
DESCRIPTION:
Code involving thread management. The thread management is
straight forward, but the clean up is a bit involved. An
overview of the lift of a thread is as follows:
* An ImportExportClass object (a subclass, really)
asks to spawn a thread.
* The thread is created, and an entry in the
thread list maintained by the Impex library is
created and initialized.
* An IMPORT or EXPORT message is sent out, and the
import/export process ensues.
* Now, either the app finishes & and sends a MSG_DETACH
to itself
- or -
The application exits, and a DETACH is sent out before
import/export process is complete. An ObjIncDetach is
called on the owning object, to prevent it from leaving
before the thread has exited.
* On receipt of MSG_META_ACK by the ImportExportClass
object, the ImpexThreadInfo block is destroyed, the
entry for the now-dead thread is removed from the
thread list, and a MSG_META_ACK will be sent on to
the superclass of the ImportExport object iff the
application is detaching.
The code managing the thread lists is contained in this file.
The code managing the detaches of the ImportExportClass is
contained in UI/uiImportExport.asm
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
jimmy 7/15/91 Initial version.
don 6/ 3/92 Code & documentation changes
$Id: mainThread.asm,v 1.1 97/04/04 23:29:41 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ProcessCode segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SpawnThread
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Spawn an ImpexThreadProcessClass thread for either
export or import
CALLED BY: ImportControlImport, ExportControlExport
PASS: AX = Message to send to newly spawned thread
BX = ImpexThreadInfo block handle (locked)
DS = Object block owned by application
RETURN: Nothing
DESTROYED: AX, BX, CX, DX, DI, SI, BP, DS, ES
PSEUDOCODE/STRATEGY:
This routine uses MSG_PROCESS_CREATE_EVENT_THREAD which
is call with an MF_CALL, thereby guaranteeing that the
new thread will have been attached to its own event queue
and be ready to receive messages
all routines sent to a spawned thread will be handled by
methods defined under ImpexThreadProcessClass
once the thread is created, I insert an entry into the
ImpexThreadList, this entry is how the Impex library
can keep track of any threads that it spawns. Each entry
contains the thread handle, the owning App's handle and
an ImpexThreadInfo block handle, this ImpexThreadInfo block
contains all information the thread needs to do its job.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jimmy 8/12/91 Initial version
jenny 1/92 Cleaned up
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SpawnThread proc far
; Ignore input, if requested
;
push ax, bx ; save message, ITI block handle
mov cx, ds:[LMBH_handle] ; block owned by app => CX
call MemDerefDS ; ImpexthreadInfo => DS
call InputIgnore
call MemUnlock ; unlock the Info first
; Create an event thread by sending a message to the
; application's thread.
;
mov bx, cx
call MemOwner ; application's process => BX
call GeodeGetDGroupDS ; core block => DS
mov ax, segment ProcessClass
mov es, ax
mov di, offset ProcessClass
mov ax, MSG_PROCESS_CREATE_EVENT_THREAD
mov cx, segment ImpexThreadProcessClass
mov dx, offset ImpexThreadProcessClass
mov bp, IMPEX_THREAD_STACK_SIZE
call ObjCallClassNoLock ; handle of new thread => AX
pop dx, cx ; message => DX
; ImpexThreadInfo => CX
jc errorSpawning ; report error in spawning
; Note that we've created a new thread
;
call ImpexThreadCreated ; store data away
; Now send off our initial message
;
mov_tr bx, ax ; thread handle => BX
mov_tr ax, dx ; initial message => AX
clr di ; MessageFlags => DI
GOTO ObjMessage ; go for it!
; We could not spawn the thread, so tell the user and abort
errorSpawning:
mov bx, cx ; ImpexThreadInfo => BX
call ImpexThreadInfoPLock
mov ax, IE_COULD_NOT_SPAWN_THREAD
call DisplayErrorAndBlock
call CleanUpImpexThreadInfo
call ImpexThreadInfoUnlockV
GOTO MemFree ; free the ThreadInfo
SpawnThread endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ImpexThreadCreated
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Note that an import/export thread has been created
CALLED BY: GLOBAL
PASS: AX = Impex thread handle
BX = Application process handle
CX = ImpexThreadInfo
RETURN: Nothing
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 5/31/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ImpexThreadCreated proc near
uses ds
.enter
; Some set-up work
;
call ThreadListPLock ; lock & own the thread list
; Add another entry, and initialize it
;
call ThreadListAddEntry ; thread list => DS:SI
mov ds:[si].TLE_appProcess, bx
mov ds:[si].TLE_threadInfo, cx
mov ds:[si].TLE_threadHandle, ax
; Clean up
;
call ThreadListUnlockV ; unlock & release thread list
.leave
ret
ImpexThreadCreated endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ImpexThreadDeleted
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Note that an Impex thread list has been deleted
CALLED BY: GLOBAL
PASS: BX = Impex thread handle
RETURN: Nothing
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 5/31/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ImpexThreadDeleted proc near
uses di, si, ds
.enter
; Some set-up work
;
call ThreadListPLock ; lock & own the thread list
; Find the thread, and delete it
;
mov di, offset EnumByThreadHandle
call ThreadListEnum ; search for entry by thread
jc done
call ThreadListDeleteEntry ; remove the entry
done:
call ThreadListUnlockV ; unlock & release thread list
.leave
ret
ImpexThreadDeleted endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ImpexThreadListAppExiting
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Tell all import/export threads run by an application that
they need to exit
CALLED BY: ImportExportDetach
PASS: *DS:SI = ImportExportClass object
RETURN: Nothing
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
This routine goes through the thread list and for each
active thread owned by the App that is detaching, sends
a MSG_META_DETACH to it telling it to clean up and exit.
If the thread is already exiting, another DETACH is
*not* sent out, but the detach count for the
ImportExport object *is* incremented.
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 5/31/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ImpexThreadListAppExiting proc near
uses ax, bx, cx, dx, di, bp, ds
.enter
; Some set-up work
;
mov dx, ds:[LMBH_handle]
mov bp, si ; Import/Export obj => ^lDX:BP
mov bx, dx
call MemOwner ; application thread => BX
call ThreadListPLock ; lock & own the thread list
; Find all threads, and start the detaching
;
mov di, offset EnumAppExiting
call ThreadListEnum ; enumerate though all entries
; Clean up
;
call ThreadListUnlockV ; unlock & release thread list
mov bx, dx
call MemDerefDS
mov si, bp ; Import/Export obj => *DS:SI
.leave
ret
ImpexThreadListAppExiting endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*** Lower-level routines
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ThreadListPLock
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Lock the ThreadList block down, creating one if it didn't
exist before
CALLED BY: INTERNAL
PASS: Nothing
RETURN: DS = ThreadList segment
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 5/31/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ThreadListPLock proc near
uses ax, bx
.enter
; Get the handle, and see if we need to do anything
;
NOFXIP < segmov ds, dgroup, ax >
FXIP < mov bx, handle dgroup >
FXIP < call MemDerefDS ; ds = dgroup >
mov bx, ds:[threadList]
EC < tst bx ; ensure handle exists >
EC < ERROR_Z IMPEX_THREAD_LIST_HANDLE_MUST_EXIST_TO_UNLOCK >
call MemPLock
mov ds, ax
.leave
ret
ThreadListPLock endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ThreadListUnlockV
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Unlock the ThreadList block
CALLED BY: INTERNAL
PASS: DS:0 = ThreadList segment
RETURN: Nothing
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 5/31/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ThreadListUnlockV proc near
uses bx
.enter
mov bx, ds:[TLH_handle] ; thread list handle => BX
EC < tst bx ; ensure handle exists >
EC < ERROR_Z IMPEX_THREAD_LIST_HANDLE_MUST_EXIST_TO_UNLOCK >
call MemUnlockV
.leave
ret
ThreadListUnlockV endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ThreadListAddEntry
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Add an entry to the thread list
CALLED BY: INTERNAL
PASS: DS = ThreadList segment
RETURN: DS:SI = ThreadListEntry to use
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 5/31/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ThreadListAddEntry proc near
uses bx, di
.enter
; See if we have an entry available. If not, create one
;
clr bx
mov di, offset EnumByThreadHandle
call ThreadListEnum ; empty ThreadListEntry => DS:SI
jc appendEntry ; none, found, so append to end
done:
.leave
ret
; Append a ThreadListEntry to the end of the list
appendEntry:
push ax, cx
mov ax, ds:[TLH_size]
mov si, ax ; new ThreadListEntry => DS:SI
add ax, size ThreadListEntry
mov ds:[TLH_size], ax
mov bx, ds:[TLH_handle] ; ThreadList handle => BX
mov ch, mask HAF_NO_ERR ; can't deal with errors
call MemReAlloc ; reallocate block
mov ds, ax
pop ax, cx
jmp done ; we're done
ThreadListAddEntry endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ThreadListDeleteEntry
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Delete a ThreadListEntry
CALLED BY: INTERNAL
PASS: DS:SI = ThreadListEntry
RETURN: Nothing
DESTROYED: DI
PSEUDO CODE/STRATEGY:
Mark the entry as unused, rather than coalescing the block,
as the block will only grow as large as the largest number
of import/exports that occur simultaneously
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 5/31/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ThreadListDeleteEntry proc near
clr di
mov ds:[si].TLE_appProcess, di
mov ds:[si].TLE_threadHandle, di
mov ds:[si].TLE_threadInfo, di
ret
ThreadListDeleteEntry endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*** Enumeration-related routines
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ThreadListEnum
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Enumerate all of the entries in a ThreadList
CALLED BY: INTERNAL
PASS: DS = ThreadList segment
DI = Callback routine to call (near)
Pass: DS:SI = ThreadListEntry
AX, BX, CX, DX, BP = Data
Returns: Carry = Set to stop enumeration
AX, BX, CX, DX, BP = Data
Destroys: Nothing
RETURN: AX, BX, CX, DX, BP = Data returned by callback
DS:SI = ThreadListEntry
Carry = Clear
- or -
Carry = Set (no entries accepted)
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
May not delete or add entries inside of callback routines
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 5/31/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ThreadListEnum proc near
.enter
; Loop through the list of entries
;
mov si, size ThreadListHeader
jmp midLoop
loopAgain:
call di
jc done ; if carry = set, accept
add si, size ThreadListHeader
midLoop:
cmp si, ds:[TLH_size]
jl loopAgain
clc
done:
cmc ; invert that carry!
.leave
ret
ThreadListEnum endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
EnumByThreadHandle
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Callback routine for ThreadListEnum, searching for a
thread handle
CALLED BY: INTERNAL
PASS: DS:SI = ThreadListEntry
BX = Thread handle we're searching for
RETURN: Carry = Set if found
DESTROYED: Nothing
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 5/31/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
EnumByThreadHandle proc near
if FULL_EXECUTE_IN_PLACE
;
; Make sure the fptr passed in is valid
;
EC < push bx >
EC < mov bx, ds >
EC < call ECAssertValidFarPointerXIP >
EC < pop bx >
endif
cmp ds:[si].TLE_threadHandle, bx
stc
jz done
clc
done:
ret
EnumByThreadHandle endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
EnumAppExiting
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: An application is exiting, so we need to tell all of
threads run by the application to exit
CALLED BY: ThreadListEnum
PASS: DS:SI = ThreadListEntry
BX = Application thread handle
DX:BP = Object that is detaching
RETURN: Carry = Clear (continue enumeration)
DESTROYED: AX, CX
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 5/31/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
EnumAppExiting proc near
uses bx, bp, ds, si
.enter
; See if we have the right thread
;
cmp bx, ds:[si].TLE_appProcess
jne exit
mov ax, ds:[si].TLE_threadHandle
mov bx, ds:[si].TLE_threadInfo
call ImpexThreadInfoPLock ; ImpexThreadInfo => DS:0
or ds:[ITI_state], mask ITS_APP_DETACHING
test ds:[ITI_state], mask ITS_THREAD_DETACHING
jnz incDetachCount ; don't sent two DETACH's
; Tell the thread that it better exit soon
;
mov cx, bx ; ImpexThreadInfo handle => CX
mov_tr bx, ax ; thread handle => BX
mov ax, MSG_META_DETACH
mov di, mask MF_FORCE_QUEUE or mask MF_INSERT_AT_FRONT
call ObjMessage
; Increment the detach count on the ImportExport object
incDetachCount:
push ds ; save ImpexThreadInfo
mov bx, dx
call MemDerefDS
mov si, bp ; ImpexObject => *DS:SI
call ObjIncDetach ; increment detach count
pop ds ; retreive ImpexThreadInfo
call ImpexThreadInfoUnlockV ; unlock & release Info block
exit:
.leave
ret
EnumAppExiting endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*** ImpexProcessThread methods
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ITPDetach
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Free all data structures as we're being destroyed
CALLED BY: GLOBAL (MSG_META_DETACH)
PASS: DS = ImpexThreadProcess segment
ES = ImpexThreadProcessClass segment
CX = ImpexThreadInfo handle
DX:BP = Caller's OD
RETURN: Nothing
DESTROYED: BX, DI
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 5/31/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
ITPDetach method dynamic ImpexThreadProcessClass, MSG_META_DETACH
; Clean up the ImpexThreadInfo resources
;
push ds
call GetCurrentThreadHandle ; thread handle => BX
call ImpexThreadDeleted ; remove from the thread list
mov bx, cx
call ImpexThreadInfoPLock
call CleanUpImpexThreadInfo
mov cl, ds:[ITI_state] ; ImpexThreadState => CL
call ImpexThreadInfoUnlockV
call MemFree ; free the ImpexThreadInfo block
pop ds
; Pass message onto superclass
;
mov ax, MSG_META_DETACH
mov di, offset ImpexThreadProcessClass
GOTO ObjCallSuperNoLock
ITPDetach endm
ProcessCode ends
| 25.680328 | 78 | 0.566124 |
c1f6a5c90889330a2e3c784cbd94201513a89b51 | 246 | asm | Assembly | lab5/header.asm | wkcn/OSLabs | 9f88f02dbeee8930e3dadac8b51e54dcaad5175f | [
"MIT"
] | 73 | 2017-10-02T01:24:19.000Z | 2021-12-17T08:50:03.000Z | lab5/header.asm | wkcn/OSLabs | 9f88f02dbeee8930e3dadac8b51e54dcaad5175f | [
"MIT"
] | 4 | 2018-03-21T02:24:19.000Z | 2020-02-15T04:19:34.000Z | lab5/header.asm | wkcn/OSLabs | 9f88f02dbeee8930e3dadac8b51e54dcaad5175f | [
"MIT"
] | 14 | 2016-12-22T23:24:48.000Z | 2021-10-13T08:27:42.000Z | BITS 16
[global _start]
[extern main]
_start:
;mov ax, cs
;mov ds, ax
;mov ss, ax
;mov sp, 100h - 4
call main
;发送程序结束信号,返回Shell
sti
int 20h
;mov ax, 0x00
;mov es, ax
;mov ax, 0x7c00
;mov si, ax
;mov ax, 1
;mov [es:si], ax
jmp $
| 11.181818 | 18 | 0.605691 |
716a9a52a87e6e6b62d865fa543144c455dae851 | 87,033 | asm | Assembly | reports/02_inst_op_1.exp2.asm | arnaudroger/re2j-benchmark | ecfb2d6975948a1fbb53ccf101b285655b850058 | [
"MIT"
] | null | null | null | reports/02_inst_op_1.exp2.asm | arnaudroger/re2j-benchmark | ecfb2d6975948a1fbb53ccf101b285655b850058 | [
"MIT"
] | null | null | null | reports/02_inst_op_1.exp2.asm | arnaudroger/re2j-benchmark | ecfb2d6975948a1fbb53ccf101b285655b850058 | [
"MIT"
] | null | null | null | # JMH version: 1.19
# VM version: JDK 1.8.0_131, VM 25.131-b11
# VM invoker: /usr/lib/jvm/java-8-oracle/jre/bin/java
# VM options: <none>
# Warmup: 20 iterations, 1 s each
# Measurement: 20 iterations, 1 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: com.github.arnaudroger.re2j.Re2jFindRegex.testExp2
# Run progress: 0.00% complete, ETA 00:00:40
# Fork: 1 of 1
# Preparing profilers: LinuxPerfAsmProfiler
# Profilers consume stdout and stderr from target VM, use -v EXTRA to copy to console
# Warmup Iteration 1: 1369.601 ops/s
# Warmup Iteration 2: 2547.487 ops/s
# Warmup Iteration 3: 2582.838 ops/s
# Warmup Iteration 4: 2583.078 ops/s
# Warmup Iteration 5: 2584.354 ops/s
# Warmup Iteration 6: 2580.400 ops/s
# Warmup Iteration 7: 2582.382 ops/s
# Warmup Iteration 8: 2575.290 ops/s
# Warmup Iteration 9: 1957.902 ops/s
# Warmup Iteration 10: 2546.798 ops/s
# Warmup Iteration 11: 2502.078 ops/s
# Warmup Iteration 12: 2568.201 ops/s
# Warmup Iteration 13: 2567.919 ops/s
# Warmup Iteration 14: 2567.953 ops/s
# Warmup Iteration 15: 2568.254 ops/s
# Warmup Iteration 16: 2567.809 ops/s
# Warmup Iteration 17: 2588.345 ops/s
# Warmup Iteration 18: 2579.200 ops/s
# Warmup Iteration 19: 2574.177 ops/s
# Warmup Iteration 20: 2573.774 ops/s
Iteration 1: 2574.073 ops/s
Iteration 2: 2574.502 ops/s
Iteration 3: 2574.714 ops/s
Iteration 4: 2574.147 ops/s
Iteration 5: 2586.616 ops/s
Iteration 6: 2602.418 ops/s
Iteration 7: 2612.585 ops/s
Iteration 8: 2609.117 ops/s
Iteration 9: 2613.934 ops/s
Iteration 10: 2614.057 ops/s
Iteration 11: 2614.096 ops/s
Iteration 12: 2613.591 ops/s
Iteration 13: 2613.871 ops/s
Iteration 14: 2614.654 ops/s
Iteration 15: 2561.799 ops/s
Iteration 16: 2451.594 ops/s
Iteration 17: 2277.669 ops/s
Iteration 18: 2605.688 ops/s
Iteration 19: 2605.450 ops/s
Iteration 20: 2605.914 ops/s
# Processing profiler results: LinuxPerfAsmProfiler
Result "com.github.arnaudroger.re2j.Re2jFindRegex.testExp2":
2575.024 ±(99.9%) 68.791 ops/s [Average]
(min, avg, max) = (2277.669, 2575.024, 2614.654), stdev = 79.220
CI (99.9%): [2506.233, 2643.816] (assumes normal distribution)
Secondary result "com.github.arnaudroger.re2j.Re2jFindRegex.testExp2:·asm":
PrintAssembly processed: 194917 total address lines.
Perf output processed (skipped 23.282 seconds):
Column 1: cycles (20674 events)
Column 2: instructions (20658 events)
Hottest code regions (>10.00% "cycles" events):
....[Hottest Region 1]..............................................................................
C2, level 4, com.google.re2j.Machine::step, version 503 (307 bytes)
; - com.google.re2j.Machine::step@293 (line 300)
0x00007fe77921ff1e: mov 0x28(%rsp),%r10
0x00007fe77921ff23: movb $0x1,0xc(%r10) ;*putfield matched
; - com.google.re2j.Machine::step@298 (line 302)
0x00007fe77921ff28: mov 0x20(%rsp),%ecx
0x00007fe77921ff2c: jmpq 0x00007fe77921f9ac
0x00007fe77921ff31: mov %r8d,0x84(%rsp)
0x00007fe77921ff39: mov %r14d,0x8c(%rsp)
0x00007fe77921ff41: mov %r9,%r13
0x00007fe77921ff44: jmpq 0x00007fe77921f9f5
0.27% 0.30% ↗ 0x00007fe77921ff49: cmp $0x3f,%r8d
│ 0x00007fe77921ff4d: jge 0x00007fe779220829 ;*if_icmpge
│ ; - com.google.re2j.Unicode::simpleFold@48 (line 215)
│ ; - com.google.re2j.Inst::matchRune@50 (line 57)
│ ; - com.google.re2j.Machine::step@308 (line 306)
0.00% │ 0x00007fe77921ff53: cmp $0x3f,%r8d
│ 0x00007fe77921ff57: jae 0x00007fe779220671
0.00% 0.01% │ 0x00007fe77921ff5d: mov 0x10(%r9,%r8,4),%ebp ;*aaload
│ ; - com.google.re2j.Unicode::simpleFold@55 (line 215)
│ ; - com.google.re2j.Inst::matchRune@50 (line 57)
│ ; - com.google.re2j.Machine::step@308 (line 306)
0.21% 0.19% │ 0x00007fe77921ff62: mov 0xc(%r12,%rbp,8),%r11d ; implicit exception: dispatches to 0x00007fe779220e09
0.25% 0.30% │ 0x00007fe77921ff67: test %r11d,%r11d
│ 0x00007fe77921ff6a: jbe 0x00007fe7792206c1
0.00% │ 0x00007fe77921ff70: mov 0x10(%r12,%rbp,8),%ebp ;*iaload
│ ; - com.google.re2j.Unicode::simpleFold@57 (line 215)
│ ; - com.google.re2j.Inst::matchRune@50 (line 57)
│ ; - com.google.re2j.Machine::step@308 (line 306)
│ 0x00007fe77921ff75: cmp %r14d,%ebp
│ 0x00007fe77921ff78: je 0x00007fe779220879 ;*if_icmpne
│ ; - com.google.re2j.Unicode::simpleFold@59 (line 215)
│ ; - com.google.re2j.Inst::matchRune@50 (line 57)
│ ; - com.google.re2j.Machine::step@308 (line 306)
0.19% 0.18% │ 0x00007fe77921ff7e: mov %r14d,%r8d
0.24% 0.32% │ 0x00007fe77921ff81: cmp $0x7f,%r8d
│ 0x00007fe77921ff85: jg 0x00007fe7792208c5 ;*if_icmpgt
│ ; - com.google.re2j.Unicode::toLower@3 (line 177)
│ ; - com.google.re2j.Unicode::simpleFold@71 (line 223)
│ ; - com.google.re2j.Inst::matchRune@50 (line 57)
│ ; - com.google.re2j.Machine::step@308 (line 306)
│ 0x00007fe77921ff8b: cmp $0x41,%r8d
│ 0x00007fe77921ff8f: jl 0x00007fe7792207d9 ;*if_icmpgt
│ ; - com.google.re2j.Unicode::toLower@9 (line 178)
│ ; - com.google.re2j.Unicode::simpleFold@71 (line 223)
│ ; - com.google.re2j.Inst::matchRune@50 (line 57)
│ ; - com.google.re2j.Machine::step@308 (line 306)
0.01% │ 0x00007fe77921ff95: cmp $0x5a,%r8d
╭ │ 0x00007fe77921ff99: jg 0x00007fe77921ffa7 ;*if_icmpgt
│ │ ; - com.google.re2j.Unicode::toLower@15 (line 178)
│ │ ; - com.google.re2j.Unicode::simpleFold@71 (line 223)
│ │ ; - com.google.re2j.Inst::matchRune@50 (line 57)
│ │ ; - com.google.re2j.Machine::step@308 (line 306)
│ │ 0x00007fe77921ff9b: mov %r8d,%r10d
│ │ 0x00007fe77921ff9e: add $0x20,%r10d ;*iinc
│ │ ; - com.google.re2j.Unicode::toLower@18 (line 179)
│ │ ; - com.google.re2j.Unicode::simpleFold@71 (line 223)
│ │ ; - com.google.re2j.Inst::matchRune@50 (line 57)
│ │ ; - com.google.re2j.Machine::step@308 (line 306)
│ │ 0x00007fe77921ffa2: cmp %r8d,%r10d
│╭ │ 0x00007fe77921ffa5: jne 0x00007fe77921ffc2 ;*if_icmpeq
││ │ ; - com.google.re2j.Unicode::simpleFold@77 (line 224)
││ │ ; - com.google.re2j.Inst::matchRune@50 (line 57)
││ │ ; - com.google.re2j.Machine::step@308 (line 306)
0.19% 0.27% ↘│ │ 0x00007fe77921ffa7: cmp $0x61,%r8d
│ │ 0x00007fe77921ffab: jl 0x00007fe779220b1d ;*if_icmpgt
│ │ ; - com.google.re2j.Unicode::toUpper@9 (line 167)
│ │ ; - com.google.re2j.Unicode::simpleFold@83 (line 227)
│ │ ; - com.google.re2j.Inst::matchRune@50 (line 57)
│ │ ; - com.google.re2j.Machine::step@308 (line 306)
0.25% 0.31% │ │ 0x00007fe77921ffb1: cmp $0x7a,%r8d
│ │ 0x00007fe77921ffb5: jg 0x00007fe779220b69 ;*if_icmpgt
│ │ ; - com.google.re2j.Unicode::toUpper@15 (line 167)
│ │ ; - com.google.re2j.Unicode::simpleFold@83 (line 227)
│ │ ; - com.google.re2j.Inst::matchRune@50 (line 57)
│ │ ; - com.google.re2j.Machine::step@308 (line 306)
0.00% │ │ 0x00007fe77921ffbb: mov %r8d,%r10d
│ │ 0x00007fe77921ffbe: add $0xffffffe0,%r10d ; OopMap{r9=Oop rbx=NarrowOop rdi=NarrowOop rdx=NarrowOop r13=Oop xmm0=Oop [8]=Oop [24]=Oop [40]=Oop off=1698}
│ │ ;*goto
│ │ ; - com.google.re2j.Inst::matchRune@54 (line 57)
│ │ ; - com.google.re2j.Machine::step@308 (line 306)
0.16% 0.20% ↘ │ 0x00007fe77921ffc2: test %eax,0x18b6c038(%rip) # 0x00007fe791d8c000
│ ;*goto
│ ; - com.google.re2j.Inst::matchRune@54 (line 57)
│ ; - com.google.re2j.Machine::step@308 (line 306)
│ ; {poll}
0.20% 0.19% │ 0x00007fe77921ffc8: cmp %eax,%r10d
│ 0x00007fe77921ffcb: je 0x00007fe77921fdfa ;*if_icmpeq
│ ; - com.google.re2j.Inst::matchRune@39 (line 56)
│ ; - com.google.re2j.Machine::step@308 (line 306)
│ 0x00007fe77921ffd1: mov %eax,%r11d ;*iload_1
│ ; - com.google.re2j.Inst::matchRune@42 (line 58)
│ ; - com.google.re2j.Machine::step@308 (line 306)
0.04% 0.03% │ 0x00007fe77921ffd4: cmp %r10d,%ecx
│ 0x00007fe77921ffd7: je 0x00007fe7792202c3 ;*if_icmpne
│ ; - com.google.re2j.Inst::matchRune@44 (line 58)
│ ; - com.google.re2j.Machine::step@308 (line 306)
0.12% 0.25% │ 0x00007fe77921ffdd: mov %r10d,%r14d
0.25% 0.30% │ 0x00007fe77921ffe0: mov %r11d,%eax
0.00% │ 0x00007fe77921ffe3: mov $0x1f,%r8d
0.04% 0.03% │ 0x00007fe77921ffe9: mov $0x1f,%r10d
0.15% 0.22% │ 0x00007fe77921ffef: xor %r11d,%r11d
0.21% 0.38% │ 0x00007fe77921fff2: mov $0x3f,%esi
│ 0x00007fe77921fff7: mov %r11d,0x20(%rsp)
0.04% 0.05% │ 0x00007fe77921fffc: vmovd %esi,%xmm1
0.10% 0.25% ╭│ 0x00007fe779220000: jmp 0x00007fe77922003f
0.69% 0.75% ││↗ 0x00007fe779220002: mov 0x20(%rsp),%r8d ; OopMap{r9=Oop rbx=NarrowOop rdi=NarrowOop rdx=NarrowOop r13=Oop xmm0=Oop [8]=Oop [24]=Oop [40]=Oop off=1767}
│││ ;*goto
│││ ; - com.google.re2j.Unicode::simpleFold@40 (line 214)
│││ ; - com.google.re2j.Inst::matchRune@50 (line 57)
│││ ; - com.google.re2j.Machine::step@308 (line 306)
0.62% 0.83% │││↗ 0x00007fe779220007: test %eax,0x18b6bff3(%rip) # 0x00007fe791d8c000
││││ ;*goto
││││ ; - com.google.re2j.Unicode::simpleFold@40 (line 214)
││││ ; - com.google.re2j.Inst::matchRune@50 (line 57)
││││ ; - com.google.re2j.Machine::step@308 (line 306)
││││ ; {poll}
0.79% 0.87% ││││ 0x00007fe77922000d: cmp %r10d,%r8d
│╰││ 0x00007fe779220010: jge 0x00007fe77921ff49 ;*if_icmpge
│ ││ ; - com.google.re2j.Unicode::simpleFold@9 (line 207)
│ ││ ; - com.google.re2j.Inst::matchRune@50 (line 57)
│ ││ ; - com.google.re2j.Machine::step@308 (line 306)
0.39% 0.48% │ ││ 0x00007fe779220016: mov %r8d,0x20(%rsp)
0.64% 0.77% │ ││ 0x00007fe77922001b: vmovd %r10d,%xmm1
0.51% 0.76% │ ││ 0x00007fe779220020: mov %r10d,%r11d
0.63% 0.71% │ ││ 0x00007fe779220023: sub %r8d,%r11d ;*isub
│ ││ ; - com.google.re2j.Unicode::simpleFold@15 (line 208)
│ ││ ; - com.google.re2j.Inst::matchRune@50 (line 57)
│ ││ ; - com.google.re2j.Machine::step@308 (line 306)
0.47% 0.50% │ ││ 0x00007fe779220026: mov %r11d,%r8d
0.81% 0.81% │ ││ 0x00007fe779220029: sar $0x1f,%r8d
0.53% 0.65% │ ││ 0x00007fe77922002d: shr $0x1f,%r8d
0.58% 0.88% │ ││ 0x00007fe779220031: add %r11d,%r8d
0.41% 0.54% │ ││ 0x00007fe779220034: sar %r8d
0.62% 0.78% │ ││ 0x00007fe779220037: mov 0x20(%rsp),%r10d
0.73% 0.67% │ ││ 0x00007fe77922003c: add %r8d,%r10d ;*idiv
│ ││ ; - com.google.re2j.Unicode::simpleFold@17 (line 208)
│ ││ ; - com.google.re2j.Inst::matchRune@50 (line 57)
│ ││ ; - com.google.re2j.Machine::step@308 (line 306)
0.77% 1.12% ↘ ││ 0x00007fe77922003f: cmp $0x3f,%r10d
││ 0x00007fe779220043: jae 0x00007fe7792203dd
0.54% 0.54% ││ 0x00007fe779220049: movslq 0x20(%rsp),%r11
0.79% 1.02% ││ 0x00007fe77922004e: movslq %r8d,%r8
0.72% 0.76% ││ 0x00007fe779220051: add %r8,%r11
0.93% 0.95% ││ 0x00007fe779220054: mov 0x10(%r9,%r11,4),%ebp ;*aaload
││ ; - com.google.re2j.Unicode::simpleFold@24 (line 209)
││ ; - com.google.re2j.Inst::matchRune@50 (line 57)
││ ; - com.google.re2j.Machine::step@308 (line 306)
0.55% 0.48% ││ 0x00007fe779220059: mov 0xc(%r12,%rbp,8),%r11d ; implicit exception: dispatches to 0x00007fe779220d15
2.69% 2.99% ││ 0x00007fe77922005e: test %r11d,%r11d
││ 0x00007fe779220061: jbe 0x00007fe779220435 ;*iaload
││ ; - com.google.re2j.Unicode::simpleFold@26 (line 209)
││ ; - com.google.re2j.Inst::matchRune@50 (line 57)
││ ; - com.google.re2j.Machine::step@308 (line 306)
1.61% 1.89% ││ 0x00007fe779220067: mov 0x10(%r12,%rbp,8),%r11d
0.38% 0.55% ││ 0x00007fe77922006c: cmp %r14d,%r11d
╰│ 0x00007fe77922006f: jge 0x00007fe779220002 ;*if_icmpge
│ ; - com.google.re2j.Unicode::simpleFold@28 (line 209)
│ ; - com.google.re2j.Inst::matchRune@50 (line 57)
│ ; - com.google.re2j.Machine::step@308 (line 306)
0.35% 0.51% │ 0x00007fe779220071: mov %r10d,%r8d
0.05% 0.01% │ 0x00007fe779220074: inc %r8d ;*iadd
│ ; - com.google.re2j.Unicode::simpleFold@33 (line 210)
│ ; - com.google.re2j.Inst::matchRune@50 (line 57)
│ ; - com.google.re2j.Machine::step@308 (line 306)
0.13% 0.22% │ 0x00007fe779220077: vmovd %xmm1,%r10d
0.03% 0.04% ╰ 0x00007fe77922007c: jmp 0x00007fe779220007
0x00007fe77922007e: mov %r10d,%r9d
0x00007fe779220081: sar %r9d
0x00007fe779220084: add %r10d,%r9d ;*iadd
; - java.util.ArrayList::grow@10 (line 255)
; - java.util.ArrayList::ensureExplicitCapacity@22 (line 235)
; - java.util.ArrayList::ensureCapacityInternal@19 (line 227)
; - java.util.ArrayList::add@7 (line 458)
; - com.google.re2j.Machine::step@410 (line 329)
0x00007fe779220087: mov %r9d,%edi
0x00007fe77922008a: sub %esi,%edi
....................................................................................................
20.89% 24.90% <total for region 1>
....[Hottest Region 2]..............................................................................
C2, level 4, com.google.re2j.Machine::step, version 503 (465 bytes)
;*invokespecial add
; - com.google.re2j.Machine::step@394 (line 325)
; {optimized virtual_call}
0x00007fe77921fa20: test %rax,%rax
0x00007fe77921fa23: je 0x00007fe7792202af
0x00007fe77921fa29: mov %rax,0x48(%rsp)
0x00007fe77921fa2e: mov 0x20(%rsp),%ecx
0x00007fe77921fa32: mov 0x84(%rsp),%r8d
0x00007fe77921fa3a: mov 0x8c(%rsp),%r14d ;*aload
; - com.google.re2j.Machine::step@399 (line 327)
0.49% 0.26% 0x00007fe77921fa42: mov 0x28(%rsp),%r10
0x00007fe77921fa47: mov 0x20(%r10),%ebp ;*getfield pool
; - com.google.re2j.Machine::step@405 (line 329)
0.02% 0.01% 0x00007fe77921fa4b: mov 0x8(%r12,%rbp,8),%r10d ; implicit exception: dispatches to 0x00007fe779220d35
0.06% 0.04% 0x00007fe77921fa50: cmp $0xf8002f22,%r10d ; {metadata('java/util/ArrayList')}
0x00007fe77921fa57: jne 0x00007fe7792204c1
0.44% 0.22% 0x00007fe77921fa5d: lea (%r12,%rbp,8),%r11 ;*invokeinterface add
; - com.google.re2j.Machine::step@410 (line 329)
0x00007fe77921fa61: mov 0x14(%r11),%ebx ;*getfield elementData
; - java.util.ArrayList::ensureCapacityInternal@1 (line 223)
; - java.util.ArrayList::add@7 (line 458)
; - com.google.re2j.Machine::step@410 (line 329)
0.02% 0.02% 0x00007fe77921fa65: mov 0x10(%r11),%ebp ;*getfield size
; - java.util.ArrayList::add@16 (line 459)
; - com.google.re2j.Machine::step@410 (line 329)
0.03% 0.01% 0x00007fe77921fa69: mov %ebp,%edi
0.45% 0.29% 0x00007fe77921fa6b: inc %edi ;*iadd
; - java.util.ArrayList::add@21 (line 459)
; - com.google.re2j.Machine::step@410 (line 329)
0.00% 0.01% 0x00007fe77921fa6d: cmp $0xed9f0db7,%ebx ; {oop(a 'java/lang/Object'[0] )}
0x00007fe77921fa73: je 0x00007fe779220283 ;*if_acmpne
; - java.util.ArrayList::ensureCapacityInternal@7 (line 223)
; - java.util.ArrayList::add@7 (line 458)
; - com.google.re2j.Machine::step@410 (line 329)
0.01% 0x00007fe77921fa79: mov %edi,%esi ;*aload_0
; - java.util.ArrayList::ensureCapacityInternal@17 (line 227)
; - java.util.ArrayList::add@7 (line 458)
; - com.google.re2j.Machine::step@410 (line 329)
0.01% 0.02% 0x00007fe77921fa7b: mov 0xc(%r11),%r9d ;*getfield modCount
; - java.util.ArrayList::ensureExplicitCapacity@2 (line 231)
; - java.util.ArrayList::ensureCapacityInternal@19 (line 227)
; - java.util.ArrayList::add@7 (line 458)
; - com.google.re2j.Machine::step@410 (line 329)
0.51% 0.38% 0x00007fe77921fa7f: inc %r9d
0.00% 0.01% 0x00007fe77921fa82: mov %r9d,0xc(%r11) ;*putfield modCount
; - java.util.ArrayList::ensureExplicitCapacity@7 (line 231)
; - java.util.ArrayList::ensureCapacityInternal@19 (line 227)
; - java.util.ArrayList::add@7 (line 458)
; - com.google.re2j.Machine::step@410 (line 329)
0.01% 0x00007fe77921fa86: mov 0xc(%r12,%rbx,8),%r10d ;*arraylength
; - java.util.ArrayList::ensureExplicitCapacity@15 (line 234)
; - java.util.ArrayList::ensureCapacityInternal@19 (line 227)
; - java.util.ArrayList::add@7 (line 458)
; - com.google.re2j.Machine::step@410 (line 329)
; implicit exception: dispatches to 0x00007fe779220d45
0.22% 0.25% 0x00007fe77921fa8b: mov %esi,%edx
0.39% 0.47% 0x00007fe77921fa8d: sub %r10d,%edx
0.17% 0.17% 0x00007fe77921fa90: test %edx,%edx
0x00007fe77921fa92: jg 0x00007fe77922007e ;*ifle
; - java.util.ArrayList::ensureExplicitCapacity@17 (line 234)
; - java.util.ArrayList::ensureCapacityInternal@19 (line 227)
; - java.util.ArrayList::add@7 (line 458)
; - com.google.re2j.Machine::step@410 (line 329)
0.12% 0.14% 0x00007fe77921fa98: mov %edi,0x10(%r11) ;*putfield size
; - java.util.ArrayList::add@22 (line 459)
; - com.google.re2j.Machine::step@410 (line 329)
0.00% 0x00007fe77921fa9c: mov %rbx,%r11
0.38% 0.40% 0x00007fe77921fa9f: shl $0x3,%r11 ;*return
; - java.util.ArrayList::ensureExplicitCapacity@25 (line 236)
; - java.util.ArrayList::ensureCapacityInternal@19 (line 227)
; - java.util.ArrayList::add@7 (line 458)
; - com.google.re2j.Machine::step@410 (line 329)
0x00007fe77921faa3: mov 0xc(%r11),%r9d
0.08% 0.10% 0x00007fe77921faa7: cmp %r9d,%ebp
0x00007fe77921faaa: jae 0x00007fe77922047d
0.00% 0.06% 0x00007fe77921fab0: mov 0x8(%r11),%r9d
0.35% 0.37% 0x00007fe77921fab4: cmp $0xf80022f5,%r9d ; {metadata('java/lang/Object'[])}
0x00007fe77921fabb: jne 0x00007fe7792204fd
0.03% 0.01% 0x00007fe77921fac1: lea 0x10(%r11,%rbp,4),%r10
0.05% 0.09% 0x00007fe77921fac6: mov 0x48(%rsp),%r11
0.02% 0.01% 0x00007fe77921facb: mov %r11,%r8
0.38% 0.38% 0x00007fe77921face: shr $0x3,%r8
0.01% 0.01% 0x00007fe77921fad2: mov %r8d,(%r10)
0.14% 0.13% 0x00007fe77921fad5: shr $0x9,%r10
0.01% 0.00% 0x00007fe77921fad9: movabs $0x7fe78a794000,%r11
0.30% 0.29% 0x00007fe77921fae3: mov %r12b,(%r11,%r10,1) ;*aastore
; - java.util.ArrayList::add@26 (line 459)
; - com.google.re2j.Machine::step@410 (line 329)
0.26% 0.15% 0x00007fe77921fae7: xor %r10d,%r10d ; OopMap{[8]=Oop [24]=Oop [40]=Oop off=458}
;*goto
; - com.google.re2j.Machine::step@419 (line 264)
0.08% 0.04% ↗ 0x00007fe77921faea: test %eax,0x18b6c510(%rip) # 0x00007fe791d8c000
│ ;*goto
│ ; - com.google.re2j.Machine::step@419 (line 264)
│ ; {poll}
0.12% 0.09% │ 0x00007fe77921faf0: mov 0x8(%rsp),%r10
0.52% 0.32% │ 0x00007fe77921faf5: mov 0xc(%r10),%r10d
0.22% 0.23% │ 0x00007fe77921faf9: cmp %r10d,%r14d
│ 0x00007fe77921fafc: jge 0x00007fe77921fce4
0.10% 0.02% │ 0x00007fe77921fb02: mov %ecx,0x20(%rsp)
0.13% 0.14% │ 0x00007fe77921fb06: mov %r14d,%r8d ;*aload_1
│ ; - com.google.re2j.Machine::step@21 (line 265)
0.43% 0.36% │ 0x00007fe77921fb09: mov 0x8(%rsp),%r10
0.21% 0.23% │ 0x00007fe77921fb0e: mov 0x10(%r10),%r10d ;*getfield dense
│ ; - com.google.re2j.Machine::step@22 (line 265)
0.16% 0.12% │ 0x00007fe77921fb12: mov 0xc(%r12,%r10,8),%r9d ; implicit exception: dispatches to 0x00007fe779220cdd
0.55% 0.38% │ 0x00007fe77921fb17: cmp %r9d,%r8d
│ 0x00007fe77921fb1a: jae 0x00007fe779220355
0.40% 0.48% │ 0x00007fe77921fb20: shl $0x3,%r10
0.19% 0.16% │ 0x00007fe77921fb24: mov 0x10(%r10,%r8,4),%r10d ;*aaload
│ ; - com.google.re2j.Machine::step@27 (line 265)
0.14% 0.18% │ 0x00007fe77921fb29: mov 0x10(%r12,%r10,8),%r11d ;*getfield thread
│ ; - com.google.re2j.Machine::step@40 (line 269)
│ ; implicit exception: dispatches to 0x00007fe779220d65
1.04% 1.21% │ 0x00007fe77921fb2e: mov %r8d,%r14d
0.15% 0.27% │ 0x00007fe77921fb31: inc %r14d ;*iadd
│ ; - com.google.re2j.Machine::step@241 (line 293)
0.16% 0.10% │ 0x00007fe77921fb34: test %r11d,%r11d
╭│ 0x00007fe77921fb37: jne 0x00007fe77921fb44 ;*ifnonnull
││ ; - com.google.re2j.Machine::step@47 (line 270)
0.13% 0.14% ││ 0x00007fe77921fb39: mov 0x24(%rsp),%r10d
0.09% 0.06% ││ 0x00007fe77921fb3e: mov 0x20(%rsp),%ecx
0.09% 0.06% │╰ 0x00007fe77921fb42: jmp 0x00007fe77921faea
0.25% 0.34% ↘ 0x00007fe77921fb44: mov 0x24(%rsp),%r10d
0.02% 0.05% 0x00007fe77921fb49: test %r10d,%r10d
0x00007fe77921fb4c: jne 0x00007fe779220615 ;*ifeq
; - com.google.re2j.Machine::step@55 (line 273)
0.08% 0.23% 0x00007fe77921fb52: mov 0x10(%r12,%r11,8),%r10d ;*getfield inst
; - com.google.re2j.Machine::step@107 (line 278)
1.61% 1.73% 0x00007fe77921fb57: mov 0x18(%r12,%r10,8),%edi ;*getfield runes
; - com.google.re2j.Machine::step@320 (line 310)
; implicit exception: dispatches to 0x00007fe779220d25
2.06% 2.54% 0x00007fe77921fb5c: mov 0xc(%r12,%r10,8),%ecx ;*getfield op
; - com.google.re2j.Machine::step@117 (line 280)
0.08% 0.08% 0x00007fe77921fb61: mov 0xc(%r12,%r11,8),%edx ;*getfield cap
; - com.google.re2j.Machine::step@176 (line 287)
0x00007fe77921fb66: lea (%r12,%r11,8),%r9 ;*getfield thread
; - com.google.re2j.Machine::step@40 (line 269)
0.01% 0x00007fe77921fb6a: cmp $0x9,%ecx
0x00007fe77921fb6d: je 0x00007fe77921f98d
0.50% 0.48% 0x00007fe77921fb73: cmp $0x9,%ecx
0x00007fe77921fb76: jg 0x00007fe77921f9b6
0.12% 0.20% 0x00007fe77921fb7c: cmp $0x7,%ecx
0x00007fe77921fb7f: je 0x00007fe779220661 ;*tableswitch
; - com.google.re2j.Machine::step@120 (line 280)
0.48% 0.47% 0x00007fe77921fb85: lea (%r12,%r10,8),%rbx ;*getfield inst
; - com.google.re2j.Machine::step@107 (line 278)
0.01% 0.01% 0x00007fe77921fb89: cmp $0x7,%ecx
╭ 0x00007fe77921fb8c: jle 0x00007fe77921fc18 ;*tableswitch
│ ; - com.google.re2j.Machine::step@120 (line 280)
0.41% 0.44% │ 0x00007fe77921fb92: mov 0xc(%r12,%rdi,8),%ebp ;*arraylength
│ ; - com.google.re2j.Inst::matchRune@4 (line 49)
│ ; - com.google.re2j.Machine::step@308 (line 306)
│ ; implicit exception: dispatches to 0x00007fe779220e19
0.83% 0.91% │ 0x00007fe77921fb97: cmp $0x1,%ebp
│ 0x00007fe77921fb9a: jne 0x00007fe779220915 ;*if_icmpne
│ ; - com.google.re2j.Inst::matchRune@6 (line 49)
│ ; - com.google.re2j.Machine::step@308 (line 306)
0.45% 0.41% │ 0x00007fe77921fba0: test %ebp,%ebp
│ 0x00007fe77921fba2: jbe 0x00007fe779220755
0.08% 0.07% │ 0x00007fe77921fba8: mov 0x10(%r12,%rdi,8),%edi ;*iaload
│ ; - com.google.re2j.Inst::matchRune@14 (line 50)
│ ; - com.google.re2j.Machine::step@308 (line 306)
0.00% 0.00% │ 0x00007fe77921fbad: mov 0x20(%rsp),%ecx
│ 0x00007fe77921fbb1: cmp %edi,%ecx
│ 0x00007fe77921fbb3: je 0x00007fe7792202cf ;*if_icmpne
│ ; - com.google.re2j.Inst::matchRune@18 (line 51)
│ ; - com.google.re2j.Machine::step@308 (line 306)
0.30% 0.39% │ 0x00007fe77921fbb9: mov $0x1,%ebp
0.02% 0.03% │ 0x00007fe77921fbbe: and 0x14(%r12,%r10,8),%ebp ;*iand
│ ; - com.google.re2j.Inst::matchRune@28 (line 54)
│ ; - com.google.re2j.Machine::step@308 (line 306)
0.01% │ 0x00007fe77921fbc3: test %ebp,%ebp
│ 0x00007fe77921fbc5: je 0x00007fe779220a05 ;*ifeq
│ ; - com.google.re2j.Inst::matchRune@29 (line 54)
│ ; - com.google.re2j.Machine::step@308 (line 306)
0.00% 0.01% │ 0x00007fe77921fbcb: mov %edi,0x20(%rsp)
0.38% 0.41% │ 0x00007fe77921fbcf: vmovq %rbx,%xmm0
0.02% 0.01% │ 0x00007fe77921fbd4: mov %r9,%r13
│ 0x00007fe77921fbd7: mov %r10d,%edi
0.00% 0.01% │ 0x00007fe77921fbda: mov %r14d,0x8c(%rsp)
0.38% 0.40% │ 0x00007fe77921fbe2: mov %r11d,%ebx
0.02% 0.00% │ 0x00007fe77921fbe5: mov %r8d,0x84(%rsp)
│ 0x00007fe77921fbed: movabs $0x76dd0c420,%r9 ; {oop(a {type array int}[63] )}
0.00% │ 0x00007fe77921fbf7: mov $0x1f,%eax
0.43% 0.18% │ 0x00007fe77921fbfc: mov $0x1f,%r8d
0.03% │ 0x00007fe77921fc02: xor %r10d,%r10d
│ 0x00007fe77921fc05: mov $0x3f,%r11d
│ 0x00007fe77921fc0b: mov %r10d,0x30(%rsp)
0.47% 0.19% │ 0x00007fe77921fc10: mov %r11d,%r14d
0.00% │ 0x00007fe77921fc13: jmpq 0x00007fe77921fd32
↘ 0x00007fe77921fc18: cmp $0x6,%ecx
0x00007fe77921fc1b: jne 0x00007fe779220661 ;*tableswitch
; - com.google.re2j.Machine::step@120 (line 280)
0x00007fe77921fc21: mov 0x88(%rsp),%edi
0x00007fe77921fc28: cmp $0x2,%edi
0x00007fe77921fc2b: je 0x00007fe779220297 ;*aload
; - com.google.re2j.Machine::step@174 (line 287)
0x00007fe77921fc31: mov 0xc(%r12,%rdx,8),%eax ;*arraylength
; - com.google.re2j.Machine::step@179 (line 287)
; implicit exception: dispatches to 0x00007fe779220e39
....................................................................................................
18.94% 18.56% <total for region 2>
....[Hottest Region 3]..............................................................................
C2, level 4, com.google.re2j.Machine::step, version 503 (229 bytes)
0x00007fe77921fcc6: mov 0x40(%rsp),%rbx ;*iload
; - com.google.re2j.Machine::step@233 (line 291)
0x00007fe77921fccb: mov 0x8(%rsp),%rcx
0x00007fe77921fcd0: mov 0xc(%rcx),%ecx
0x00007fe77921fcd3: cmp %ecx,%r14d
0x00007fe77921fcd6: jge 0x00007fe77921ff15 ;*if_icmpge
; - com.google.re2j.Machine::step@250 (line 293)
0x00007fe77921fcdc: mov %r14d,%ecx
0x00007fe77921fcdf: jmpq 0x00007fe77921fe8c ;*if_icmpge
; - com.google.re2j.Machine::step@18 (line 264)
0.01% 0x00007fe77921fce4: mov 0x8(%rsp),%r10
0x00007fe77921fce9: mov %r12d,0xc(%r10) ;*getfield size
; - com.google.re2j.Machine::step@15 (line 264)
0.08% 0.06% 0x00007fe77921fced: add $0x70,%rsp
0.02% 0.02% 0x00007fe77921fcf1: pop %rbp
0.01% 0.00% 0x00007fe77921fcf2: test %eax,0x18b6c308(%rip) # 0x00007fe791d8c000
; {poll_return}
0.00% 0x00007fe77921fcf8: retq
0x00007fe77921fcf9: nopl 0x0(%rax)
0.77% 1.03% ↗ 0x00007fe77921fd00: mov 0x30(%rsp),%r11d ; OopMap{r9=Oop rbx=NarrowOop rdi=NarrowOop rdx=NarrowOop r13=Oop xmm0=Oop [8]=Oop [24]=Oop [40]=Oop off=997}
│ ;*goto
│ ; - com.google.re2j.Unicode::simpleFold@40 (line 214)
│ ; - com.google.re2j.Inst::matchRune@33 (line 55)
│ ; - com.google.re2j.Machine::step@308 (line 306)
0.82% 0.71% │↗ 0x00007fe77921fd05: test %eax,0x18b6c2f5(%rip) # 0x00007fe791d8c000
││ ;*goto
││ ; - com.google.re2j.Unicode::simpleFold@40 (line 214)
││ ; - com.google.re2j.Inst::matchRune@33 (line 55)
││ ; - com.google.re2j.Machine::step@308 (line 306)
││ ; {poll}
0.70% 0.58% ││ 0x00007fe77921fd0b: cmp %r8d,%r11d
╭││ 0x00007fe77921fd0e: jge 0x00007fe77921fd71 ;*if_icmpge
│││ ; - com.google.re2j.Unicode::simpleFold@9 (line 207)
│││ ; - com.google.re2j.Inst::matchRune@33 (line 55)
│││ ; - com.google.re2j.Machine::step@308 (line 306)
0.44% 0.50% │││ 0x00007fe77921fd10: mov %r8d,%r10d
0.61% 0.79% │││ 0x00007fe77921fd13: mov %r8d,%r14d
0.79% 0.51% │││ 0x00007fe77921fd16: mov %r11d,0x30(%rsp)
0.56% 0.29% │││ 0x00007fe77921fd1b: sub %r11d,%r10d ;*isub
│││ ; - com.google.re2j.Unicode::simpleFold@15 (line 208)
│││ ; - com.google.re2j.Inst::matchRune@33 (line 55)
│││ ; - com.google.re2j.Machine::step@308 (line 306)
0.52% 0.41% │││ 0x00007fe77921fd1e: mov %r10d,%eax
0.61% 0.68% │││ 0x00007fe77921fd21: sar $0x1f,%eax
0.78% 0.47% │││ 0x00007fe77921fd24: shr $0x1f,%eax
0.50% 0.20% │││ 0x00007fe77921fd27: add %r10d,%eax
0.49% 0.46% │││ 0x00007fe77921fd2a: sar %eax
0.72% 0.69% │││ 0x00007fe77921fd2c: mov %r11d,%r8d
0.75% 0.60% │││ 0x00007fe77921fd2f: add %eax,%r8d ;*idiv
│││ ; - com.google.re2j.Unicode::simpleFold@17 (line 208)
│││ ; - com.google.re2j.Inst::matchRune@33 (line 55)
│││ ; - com.google.re2j.Machine::step@308 (line 306)
0.45% 0.19% │││ 0x00007fe77921fd32: cmp $0x3f,%r8d
│││ 0x00007fe77921fd36: jae 0x00007fe779220541
0.56% 0.61% │││ 0x00007fe77921fd3c: movslq 0x30(%rsp),%r10
1.14% 0.99% │││ 0x00007fe77921fd41: movslq %eax,%r11
0.86% 0.80% │││ 0x00007fe77921fd44: add %r11,%r10
0.46% 0.86% │││ 0x00007fe77921fd47: mov 0x10(%r9,%r10,4),%ebp ;*aaload
│││ ; - com.google.re2j.Unicode::simpleFold@24 (line 209)
│││ ; - com.google.re2j.Inst::matchRune@33 (line 55)
│││ ; - com.google.re2j.Machine::step@308 (line 306)
0.50% 0.51% │││ 0x00007fe77921fd4c: mov 0xc(%r12,%rbp,8),%r10d ; implicit exception: dispatches to 0x00007fe779220d55
1.49% 1.56% │││ 0x00007fe77921fd51: test %r10d,%r10d
│││ 0x00007fe77921fd54: jbe 0x00007fe77922058d ;*iaload
│││ ; - com.google.re2j.Unicode::simpleFold@26 (line 209)
│││ ; - com.google.re2j.Inst::matchRune@33 (line 55)
│││ ; - com.google.re2j.Machine::step@308 (line 306)
0.89% 1.26% │││ 0x00007fe77921fd5a: mov 0x10(%r12,%rbp,8),%r10d
0.56% 0.84% │││ 0x00007fe77921fd5f: cmp 0x20(%rsp),%r10d
│╰│ 0x00007fe77921fd64: jge 0x00007fe77921fd00 ;*if_icmpge
│ │ ; - com.google.re2j.Unicode::simpleFold@28 (line 209)
│ │ ; - com.google.re2j.Inst::matchRune@33 (line 55)
│ │ ; - com.google.re2j.Machine::step@308 (line 306)
0.08% 0.12% │ │ 0x00007fe77921fd66: mov %r8d,%r11d
0.02% 0.00% │ │ 0x00007fe77921fd69: inc %r11d ;*iadd
│ │ ; - com.google.re2j.Unicode::simpleFold@33 (line 210)
│ │ ; - com.google.re2j.Inst::matchRune@33 (line 55)
│ │ ; - com.google.re2j.Machine::step@308 (line 306)
0.09% 0.22% │ │ 0x00007fe77921fd6c: mov %r14d,%r8d
0.00% 0.01% │ ╰ 0x00007fe77921fd6f: jmp 0x00007fe77921fd05
0.24% 0.32% ↘ 0x00007fe77921fd71: cmp $0x3f,%r11d
0x00007fe77921fd75: jge 0x00007fe779220a51 ;*if_icmpge
; - com.google.re2j.Unicode::simpleFold@48 (line 215)
; - com.google.re2j.Inst::matchRune@33 (line 55)
; - com.google.re2j.Machine::step@308 (line 306)
0x00007fe77921fd7b: cmp $0x3f,%r11d
0x00007fe77921fd7f: jae 0x00007fe77922070d
0.03% 0.04% 0x00007fe77921fd85: mov 0x10(%r9,%r11,4),%ebp ;*aaload
; - com.google.re2j.Unicode::simpleFold@55 (line 215)
; - com.google.re2j.Inst::matchRune@33 (line 55)
; - com.google.re2j.Machine::step@308 (line 306)
0.15% 0.22% 0x00007fe77921fd8a: mov 0xc(%r12,%rbp,8),%r10d ; implicit exception: dispatches to 0x00007fe779220e29
0.30% 0.29% 0x00007fe77921fd8f: test %r10d,%r10d
0x00007fe77921fd92: jbe 0x00007fe7792207a1
0.00% 0x00007fe77921fd98: mov 0x10(%r12,%rbp,8),%ebp ;*iaload
; - com.google.re2j.Unicode::simpleFold@57 (line 215)
; - com.google.re2j.Inst::matchRune@33 (line 55)
; - com.google.re2j.Machine::step@308 (line 306)
0.04% 0.02% 0x00007fe77921fd9d: cmp 0x20(%rsp),%ebp
0x00007fe77921fda1: je 0x00007fe779220a99 ;*if_icmpne
; - com.google.re2j.Unicode::simpleFold@59 (line 215)
; - com.google.re2j.Inst::matchRune@33 (line 55)
; - com.google.re2j.Machine::step@308 (line 306)
0.13% 0.15% 0x00007fe77921fda7: mov 0x20(%rsp),%r11d
0.24% 0.32% 0x00007fe77921fdac: cmp $0x7f,%r11d
0x00007fe77921fdb0: jg 0x00007fe779220ad1 ;*if_icmpgt
; - com.google.re2j.Unicode::toLower@3 (line 177)
; - com.google.re2j.Unicode::simpleFold@71 (line 223)
; - com.google.re2j.Inst::matchRune@33 (line 55)
; - com.google.re2j.Machine::step@308 (line 306)
0x00007fe77921fdb6: cmp $0x41,%r11d
0x00007fe77921fdba: jl 0x00007fe77922094d ;*if_icmpgt
; - com.google.re2j.Unicode::toLower@9 (line 178)
; - com.google.re2j.Unicode::simpleFold@71 (line 223)
; - com.google.re2j.Inst::matchRune@33 (line 55)
; - com.google.re2j.Machine::step@308 (line 306)
0.02% 0.01% 0x00007fe77921fdc0: cmp $0x5a,%r11d
0x00007fe77921fdc4: jg 0x00007fe77921fdd6 ;*if_icmpgt
; - com.google.re2j.Unicode::toLower@15 (line 178)
; - com.google.re2j.Unicode::simpleFold@71 (line 223)
; - com.google.re2j.Inst::matchRune@33 (line 55)
; - com.google.re2j.Machine::step@308 (line 306)
0.17% 0.21% 0x00007fe77921fdc6: mov %r11d,%r10d
0.27% 0.30% 0x00007fe77921fdc9: add $0x20,%r10d ;*iinc
; - com.google.re2j.Unicode::toLower@18 (line 179)
; - com.google.re2j.Unicode::simpleFold@71 (line 223)
; - com.google.re2j.Inst::matchRune@33 (line 55)
; - com.google.re2j.Machine::step@308 (line 306)
0x00007fe77921fdcd: cmp %r11d,%r10d
0x00007fe77921fdd0: jne 0x00007fe77921ffd4 ;*if_icmpeq
; - com.google.re2j.Unicode::simpleFold@77 (line 224)
; - com.google.re2j.Inst::matchRune@33 (line 55)
; - com.google.re2j.Machine::step@308 (line 306)
0x00007fe77921fdd6: cmp $0x61,%r11d
....................................................................................................
17.90% 17.89% <total for region 3>
....[Hottest Region 4]..............................................................................
C2, level 4, com.google.re2j.Machine::add, version 491 (322 bytes)
# parm4: rdi = int
# parm5: [sp+0x70] = 'com/google/re2j/Machine$Thread' (sp of caller)
0x00007fe779216480: mov 0x8(%rsi),%r10d ; {no_reloc}
0x00007fe779216484: shl $0x3,%r10
0x00007fe779216488: cmp %r10,%rax
0x00007fe77921648b: jne 0x00007fe779045e20 ; {runtime_call}
0x00007fe779216491: data16 xchg %ax,%ax
0x00007fe779216494: nopl 0x0(%rax,%rax,1)
0x00007fe77921649c: data16 data16 xchg %ax,%ax
[Verified Entry Point]
0.81% 0.89% 0x00007fe7792164a0: mov %eax,-0x14000(%rsp)
0.10% 0.18% 0x00007fe7792164a7: push %rbp
0.54% 0.52% 0x00007fe7792164a8: sub $0x60,%rsp ;*synchronization entry
; - com.google.re2j.Machine::add@-1 (line 341)
0.36% 0.41% 0x00007fe7792164ac: mov %edi,0x28(%rsp)
0.09% 0.09% 0x00007fe7792164b0: mov %r9,0x20(%rsp)
0.50% 0.58% 0x00007fe7792164b5: mov %r8d,0x1c(%rsp)
0.28% 0.28% 0x00007fe7792164ba: mov %rsi,0x8(%rsp)
0.09% 0.03% 0x00007fe7792164bf: test %ecx,%ecx
0x00007fe7792164c1: je 0x00007fe779216735 ;*ifne
; - com.google.re2j.Machine::add@1 (line 341)
0.01% 0.02% 0x00007fe7792164c7: mov %rdx,0x40(%rsp)
0.46% 0.57% 0x00007fe7792164cc: mov 0x14(%rdx),%r9d ;*getfield sparse
; - com.google.re2j.Machine$Queue::contains@1 (line 48)
; - com.google.re2j.Machine::add@9 (line 344)
; implicit exception: dispatches to 0x00007fe779216bf1
0.36% 0.24% 0x00007fe7792164d0: mov 0xc(%r12,%r9,8),%edi ; implicit exception: dispatches to 0x00007fe779216c05
0.16% 0.14% 0x00007fe7792164d5: cmp %edi,%ecx
0x00007fe7792164d7: jae 0x00007fe7792165fd ;*iaload
; - com.google.re2j.Machine$Queue::contains@5 (line 48)
; - com.google.re2j.Machine::add@9 (line 344)
0.07% 0.03% 0x00007fe7792164dd: mov 0x10(%rdx),%ebx ;*getfield dense
; - com.google.re2j.Machine$Queue::contains@18 (line 52)
; - com.google.re2j.Machine::add@9 (line 344)
0.53% 0.50% 0x00007fe7792164e0: mov 0xc(%rdx),%r11d ;*getfield size
; - com.google.re2j.Machine$Queue::contains@9 (line 49)
; - com.google.re2j.Machine::add@9 (line 344)
0.20% 0.17% 0x00007fe7792164e4: lea (%r12,%r9,8),%r8
0.08% 0.07% 0x00007fe7792164e8: mov 0x10(%r8,%rcx,4),%ebp ;*iaload
; - com.google.re2j.Machine$Queue::contains@5 (line 48)
; - com.google.re2j.Machine::add@9 (line 344)
0.11% 0.11% 0x00007fe7792164ed: cmp %r11d,%ebp
╭ 0x00007fe7792164f0: jl 0x00007fe7792165c6 ;*invokevirtual contains
│ ; - com.google.re2j.Machine::add@9 (line 344)
0.63% 0.54% │↗ 0x00007fe7792164f6: mov %r11d,%r10d
0.21% 0.24% ││ 0x00007fe7792164f9: inc %r10d
0.09% 0.05% ││ 0x00007fe7792164fc: mov %r10d,0xc(%rdx) ;*putfield size
││ ; - com.google.re2j.Machine$Queue::add@8 (line 59)
││ ; - com.google.re2j.Machine::add@20 (line 347)
0.05% 0.06% ││ 0x00007fe779216500: cmp %edi,%ecx
││ 0x00007fe779216502: jae 0x00007fe77921663d
0.52% 0.55% ││ 0x00007fe779216508: mov %r11d,0x10(%r8,%rcx,4) ;*iastore
││ ; - com.google.re2j.Machine$Queue::add@18 (line 60)
││ ; - com.google.re2j.Machine::add@20 (line 347)
0.19% 0.39% ││ 0x00007fe77921650d: mov 0xc(%r12,%rbx,8),%r10d ; implicit exception: dispatches to 0x00007fe779216c19
0.07% 0.10% ││ 0x00007fe779216512: cmp %r10d,%r11d
││ 0x00007fe779216515: jae 0x00007fe779216689
0.04% 0.04% ││ 0x00007fe77921651b: lea (%r12,%rbx,8),%r10
0.54% 0.50% ││ 0x00007fe77921651f: mov 0x10(%r10,%r11,4),%r13d ;*aaload
││ ; - com.google.re2j.Machine$Queue::add@24 (line 61)
││ ; - com.google.re2j.Machine::add@20 (line 347)
0.21% 0.35% ││ 0x00007fe779216524: test %r13d,%r13d
││ 0x00007fe779216527: je 0x00007fe77921675d ;*ifnonnull
││ ; - com.google.re2j.Machine$Queue::add@27 (line 62)
││ ; - com.google.re2j.Machine::add@20 (line 347)
0.07% 0.07% ││ 0x00007fe77921652d: mov %ecx,0xc(%r12,%r13,8) ;*putfield pc
││ ; - com.google.re2j.Machine$Queue::add@52 (line 66)
││ ; - com.google.re2j.Machine::add@20 (line 347)
0.60% 0.57% ││ 0x00007fe779216532: mov 0x14(%rsi),%r10d ;*getfield prog
││ ; - com.google.re2j.Machine::add@26 (line 348)
0.52% 0.47% ││ 0x00007fe779216536: mov %r12d,0x10(%r12,%r13,8) ;*putfield thread
││ ; - com.google.re2j.Machine$Queue::add@47 (line 65)
││ ; - com.google.re2j.Machine::add@20 (line 347)
0.34% 0.41% ││ 0x00007fe77921653b: mov 0x14(%r12,%r10,8),%ebp ;*getfield inst
││ ; - com.google.re2j.Prog::getInst@1 (line 29)
││ ; - com.google.re2j.Machine::add@30 (line 348)
││ ; implicit exception: dispatches to 0x00007fe779216c2d
0.07% 0.07% ││ 0x00007fe779216540: mov 0x8(%r12,%rbp,8),%r11d ; implicit exception: dispatches to 0x00007fe779216c41
0.09% 0.10% ││ 0x00007fe779216545: cmp $0xf8002f22,%r11d ; {metadata('java/util/ArrayList')}
││ 0x00007fe77921654c: jne 0x00007fe779216709
0.47% 0.53% ││ 0x00007fe779216552: lea (%r12,%rbp,8),%r10 ;*invokeinterface get
││ ; - com.google.re2j.Prog::getInst@5 (line 29)
││ ; - com.google.re2j.Machine::add@30 (line 348)
0.21% 0.16% ││ 0x00007fe779216556: mov 0x10(%r10),%ebp ;*getfield size
││ ; - java.util.ArrayList::rangeCheck@2 (line 652)
││ ; - java.util.ArrayList::get@2 (line 429)
││ ; - com.google.re2j.Prog::getInst@5 (line 29)
││ ; - com.google.re2j.Machine::add@30 (line 348)
0.10% 0.04% ││ 0x00007fe77921655a: cmp %ebp,%ecx
││ 0x00007fe77921655c: jge 0x00007fe7792167a5 ;*if_icmplt
││ ; - java.util.ArrayList::rangeCheck@5 (line 652)
││ ; - java.util.ArrayList::get@2 (line 429)
││ ; - com.google.re2j.Prog::getInst@5 (line 29)
││ ; - com.google.re2j.Machine::add@30 (line 348)
0.09% 0.10% ││ 0x00007fe779216562: mov 0x14(%r10),%ebp ;*getfield elementData
││ ; - java.util.ArrayList::elementData@1 (line 418)
││ ; - java.util.ArrayList::get@7 (line 431)
││ ; - com.google.re2j.Prog::getInst@5 (line 29)
││ ; - com.google.re2j.Machine::add@30 (line 348)
0.46% 0.41% ││ 0x00007fe779216566: mov 0xc(%r12,%rbp,8),%r11d ; implicit exception: dispatches to 0x00007fe779216c55
0.45% 0.43% ││ 0x00007fe77921656b: cmp %r11d,%ecx
││ 0x00007fe77921656e: jae 0x00007fe7792166cd
0.41% 0.30% ││ 0x00007fe779216574: lea (%r12,%rbp,8),%r10
0.04% 0.04% ││ 0x00007fe779216578: mov 0x10(%r10,%rcx,4),%ebp ;*aaload
││ ; - java.util.ArrayList::elementData@5 (line 418)
││ ; - java.util.ArrayList::get@7 (line 431)
││ ; - com.google.re2j.Prog::getInst@5 (line 29)
││ ; - com.google.re2j.Machine::add@30 (line 348)
0.37% 0.39% ││ 0x00007fe77921657d: mov 0x8(%r12,%rbp,8),%r10d ; implicit exception: dispatches to 0x00007fe779216c69
1.56% 1.34% ││ 0x00007fe779216582: cmp $0xf80197c3,%r10d ; {metadata('com/google/re2j/Inst')}
││ 0x00007fe779216589: jne 0x00007fe7792167f9
0.64% 0.50% ││ 0x00007fe77921658f: lea (%r12,%rbp,8),%r10 ;*checkcast
││ ; - com.google.re2j.Prog::getInst@10 (line 29)
││ ; - com.google.re2j.Machine::add@30 (line 348)
0.01% 0.01% ││ 0x00007fe779216593: mov %r10,0x38(%rsp)
0.15% 0.07% ││ 0x00007fe779216598: mov 0xc(%r10),%r8d ;*getfield op
││ ; - com.google.re2j.Machine::add@37 (line 349)
0.54% 0.36% ││ 0x00007fe77921659c: mov %r8d,%r11d
0.22% 0.21% ││ 0x00007fe77921659f: dec %r11d
0.43% 0.33% ││ 0x00007fe7792165a2: cmp $0xb,%r11d
││ 0x00007fe7792165a6: jae 0x00007fe7792166f9 ;*tableswitch
││ ; - com.google.re2j.Machine::add@40 (line 349)
0.63% 0.66% ││ 0x00007fe7792165ac: mov 0x10(%r10),%ecx ;*getfield out
││ ; - com.google.re2j.Machine::add@193 (line 369)
0.02% 0.01% ││ 0x00007fe7792165b0: mov 0x14(%r10),%r11d ;*getfield arg
││ ; - com.google.re2j.Machine::add@156 (line 363)
0.07% 0.08% ││ 0x00007fe7792165b4: movslq %r8d,%r8
0.01% 0.02% ││ 0x00007fe7792165b7: movabs $0x7fe779216420,%r10 ; {section_word}
0.74% 0.54% ││ 0x00007fe7792165c1: jmpq *-0x8(%r10,%r8,8) ;*tableswitch
││ ; - com.google.re2j.Machine::add@40 (line 349)
0.06% 0.06% ↘│ 0x00007fe7792165c6: mov 0xc(%r12,%rbx,8),%r10d ; implicit exception: dispatches to 0x00007fe779216d01
0.06% 0.01% │ 0x00007fe7792165cb: cmp %r10d,%ebp
│ 0x00007fe7792165ce: jae 0x00007fe7792167e1
0.03% 0.02% │ 0x00007fe7792165d4: lea (%r12,%rbx,8),%r10
0.01% 0.00% │ 0x00007fe7792165d8: mov 0x10(%r10,%rbp,4),%r10d ;*aaload
│ ; - com.google.re2j.Machine$Queue::contains@22 (line 52)
│ ; - com.google.re2j.Machine::add@9 (line 344)
0.13% 0.09% │ 0x00007fe7792165dd: mov 0xc(%r12,%r10,8),%ebp ;*getfield pc
│ ; - com.google.re2j.Machine$Queue::contains@29 (line 53)
│ ; - com.google.re2j.Machine::add@9 (line 344)
│ ; implicit exception: dispatches to 0x00007fe779216d21
0.17% 0.26% │ 0x00007fe7792165e2: cmp %ecx,%ebp
╰ 0x00007fe7792165e4: jne 0x00007fe7792164f6 ;*if_icmpne
; - com.google.re2j.Machine$Queue::contains@33 (line 53)
; - com.google.re2j.Machine::add@9 (line 344)
0x00007fe7792165ea: mov $0xffffff65,%esi
0x00007fe7792165ef: mov %ecx,0x2c(%rsp)
0x00007fe7792165f3: callq 0x00007fe7790051a0 ; OopMap{[112]=Oop [8]=Oop [32]=Oop [64]=Oop off=376}
;*if_icmpne
....................................................................................................
17.08% 16.34% <total for region 4>
....[Hottest Region 5]..............................................................................
C2, level 4, com.google.re2j.Machine::add, version 491 (389 bytes)
0x00007fe7792168e9: mov %r10,(%rsp)
0x00007fe7792168ed: xchg %ax,%ax
0x00007fe7792168ef: callq 0x00007fe779046020 ; OopMap{off=1140}
;*invokespecial add
; - com.google.re2j.Machine::add@203 (line 369)
; {optimized virtual_call}
╭ 0x00007fe7792168f4: jmpq 0x00007fe779216a67
│ 0x00007fe7792168f9: mov 0x70(%rsp),%rax
│╭ 0x00007fe7792168fe: jmpq 0x00007fe779216a67 ;*tableswitch
││ ; - com.google.re2j.Machine::add@40 (line 349)
1.56% 1.25% ││ 0x00007fe779216903: mov 0x1c(%rsp),%r8d
││ 0x00007fe779216908: mov 0x20(%rsp),%r9
0.06% ││ 0x00007fe77921690d: mov 0x28(%rsp),%edi
0.00% ││ 0x00007fe779216911: mov 0x70(%rsp),%r10
0.30% 0.30% ││ 0x00007fe779216916: mov %r10,(%rsp)
││ 0x00007fe77921691a: mov %rsi,%rbp
0.04% 0.00% ││ 0x00007fe77921691d: xchg %ax,%ax
0.01% 0.01% ││ 0x00007fe77921691f: callq 0x00007fe779046020 ; OopMap{rbp=Oop [32]=Oop [56]=Oop [64]=Oop off=1188}
││ ;*invokespecial add
││ ; - com.google.re2j.Machine::add@127 (line 358)
││ ; {optimized virtual_call}
0.02% 0.01% ││ 0x00007fe779216924: mov 0x38(%rsp),%r10
0.07% 0.13% ││ 0x00007fe779216929: mov 0x14(%r10),%ecx ;*getfield arg
││ ; - com.google.re2j.Machine::add@136 (line 359)
0.28% 0.43% ││ 0x00007fe77921692d: mov %rbp,%rsi
││ 0x00007fe779216930: mov 0x40(%rsp),%rdx
││ 0x00007fe779216935: mov 0x1c(%rsp),%r8d
0.06% 0.13% ││ 0x00007fe77921693a: mov 0x20(%rsp),%r9
0.34% 0.30% ││ 0x00007fe77921693f: mov 0x28(%rsp),%edi
0.01% 0.02% ││ 0x00007fe779216943: mov %rax,(%rsp)
││ 0x00007fe779216947: callq 0x00007fe779046020 ; OopMap{off=1228}
││ ;*invokespecial add
││ ; - com.google.re2j.Machine::add@146 (line 359)
││ ; {optimized virtual_call}
0.02% 0.02% ││╭ 0x00007fe77921694c: jmpq 0x00007fe779216a67 ;*aload
│││ ; - com.google.re2j.Machine::add@293 (line 388)
1.82% 1.90% │││ 0x00007fe779216951: mov 0x38(%rsp),%r10
0.00% 0.01% │││ 0x00007fe779216956: shr $0x3,%r10 ;*putfield inst
│││ ; - com.google.re2j.Machine::alloc@47 (line 151)
│││ ; - com.google.re2j.Machine::add@301 (line 389)
0.00% │││ 0x00007fe77921695a: mov 0x70(%rsp),%rbx
0.01% │││ 0x00007fe77921695f: test %rbx,%rbx
│││╭ 0x00007fe779216962: jne 0x00007fe779216a73 ;*ifnonnull
││││ ; - com.google.re2j.Machine::add@295 (line 388)
0.39% 0.40% ││││ 0x00007fe779216968: mov 0x20(%rsi),%ebp ;*getfield pool
││││ ; - com.google.re2j.Machine::alloc@1 (line 147)
││││ ; - com.google.re2j.Machine::add@301 (line 389)
0.01% 0.00% ││││ 0x00007fe77921696b: mov 0x8(%r12,%rbp,8),%r8d ; implicit exception: dispatches to 0x00007fe779216ca9
0.00% ││││ 0x00007fe779216970: cmp $0xf8002f22,%r8d ; {metadata('java/util/ArrayList')}
││││ 0x00007fe779216977: jne 0x00007fe779216ad9
0.01% 0.01% ││││ 0x00007fe77921697d: lea (%r12,%rbp,8),%r9 ;*invokeinterface size
││││ ; - com.google.re2j.Machine::alloc@4 (line 147)
││││ ; - com.google.re2j.Machine::add@301 (line 389)
0.36% 0.44% ││││ 0x00007fe779216981: mov 0x10(%r9),%ecx ;*getfield size
││││ ; - java.util.ArrayList::size@1 (line 278)
││││ ; - com.google.re2j.Machine::alloc@4 (line 147)
││││ ; - com.google.re2j.Machine::add@301 (line 389)
││││ 0x00007fe779216985: test %ecx,%ecx
││││ 0x00007fe779216987: jle 0x00007fe779216b3d ;*ifle
││││ ; - com.google.re2j.Machine::alloc@11 (line 148)
││││ ; - com.google.re2j.Machine::add@301 (line 389)
││││ 0x00007fe77921698d: mov %ecx,%r8d
0.01% 0.01% ││││ 0x00007fe779216990: dec %r8d ;*isub
││││ ; - com.google.re2j.Machine::alloc@20 (line 148)
││││ ; - com.google.re2j.Machine::add@301 (line 389)
0.41% 0.37% ││││ 0x00007fe779216993: cmp %ecx,%r8d
││││ 0x00007fe779216996: jge 0x00007fe779216b65 ;*if_icmplt
││││ ; - java.util.ArrayList::rangeCheck@5 (line 652)
││││ ; - java.util.ArrayList::remove@2 (line 492)
││││ ; - com.google.re2j.Machine::alloc@21 (line 149)
││││ ; - com.google.re2j.Machine::add@301 (line 389)
││││ 0x00007fe77921699c: incl 0xc(%r9) ;*putfield modCount
││││ ; - java.util.ArrayList::remove@12 (line 494)
││││ ; - com.google.re2j.Machine::alloc@21 (line 149)
││││ ; - com.google.re2j.Machine::add@301 (line 389)
0.40% 0.46% ││││ 0x00007fe7792169a0: mov 0x14(%r9),%ebp ;*getfield elementData
││││ ; - java.util.ArrayList::elementData@1 (line 418)
││││ ; - java.util.ArrayList::remove@17 (line 495)
││││ ; - com.google.re2j.Machine::alloc@21 (line 149)
││││ ; - com.google.re2j.Machine::add@301 (line 389)
││││ 0x00007fe7792169a4: mov 0xc(%r12,%rbp,8),%r11d ; implicit exception: dispatches to 0x00007fe779216cb9
0.01% ││││ 0x00007fe7792169a9: cmp %r11d,%r8d
││││ 0x00007fe7792169ac: jae 0x00007fe779216aae ;*aaload
││││ ; - java.util.ArrayList::elementData@5 (line 418)
││││ ; - java.util.ArrayList::remove@17 (line 495)
││││ ; - com.google.re2j.Machine::alloc@21 (line 149)
││││ ; - com.google.re2j.Machine::add@301 (line 389)
0.01% 0.00% ││││ 0x00007fe7792169b2: mov %r8d,0x10(%r9) ;*putfield size
││││ ; - java.util.ArrayList::remove@62 (line 501)
││││ ; - com.google.re2j.Machine::alloc@21 (line 149)
││││ ; - com.google.re2j.Machine::add@301 (line 389)
0.43% 0.39% ││││ 0x00007fe7792169b6: lea (%r12,%rbp,8),%r11
0.00% ││││ 0x00007fe7792169ba: mov 0xc(%r11,%rcx,4),%ebp ;*aaload
││││ ; - java.util.ArrayList::elementData@5 (line 418)
││││ ; - java.util.ArrayList::remove@17 (line 495)
││││ ; - com.google.re2j.Machine::alloc@21 (line 149)
││││ ; - com.google.re2j.Machine::add@301 (line 389)
0.00% 0.00% ││││ 0x00007fe7792169bf: mov %r12d,0xc(%r11,%rcx,4) ;*aastore
││││ ; - java.util.ArrayList::remove@66 (line 501)
││││ ; - com.google.re2j.Machine::alloc@21 (line 149)
││││ ; - com.google.re2j.Machine::add@301 (line 389)
0.02% 0.01% ││││ 0x00007fe7792169c4: mov 0x8(%r12,%rbp,8),%r8d ; implicit exception: dispatches to 0x00007fe779216ccd
0.51% 0.27% ││││ 0x00007fe7792169c9: cmp $0xf8019b16,%r8d ; {metadata('com/google/re2j/Machine$Thread')}
││││ 0x00007fe7792169d0: jne 0x00007fe779216bdd
0.00% 0.00% ││││ 0x00007fe7792169d6: lea (%r12,%rbp,8),%rbx ;*checkcast
││││ ; - com.google.re2j.Machine::alloc@26 (line 149)
││││ ; - com.google.re2j.Machine::add@301 (line 389)
0.00% ││││ 0x00007fe7792169da: mov %r10d,0x10(%rbx)
0.01% 0.01% ││││ 0x00007fe7792169de: mov %rbx,%r10
0.34% 0.20% ││││ 0x00007fe7792169e1: shr $0x9,%r10
0.01% ││││ 0x00007fe7792169e5: movabs $0x7fe78a794000,%r11
││││ 0x00007fe7792169ef: mov %r12b,(%r11,%r10,1) ;*aload
││││ ; - com.google.re2j.Machine::add@316 (line 393)
0.05% 0.03% ││││ ↗ 0x00007fe7792169f3: mov 0x20(%rsp),%rdi
0.34% 0.20% ││││ │ 0x00007fe7792169f8: mov 0xc(%rdi),%r10d ;*arraylength
││││ │ ; - com.google.re2j.Machine::add@318 (line 393)
││││ │ ; implicit exception: dispatches to 0x00007fe779216c99
0.02% 0.02% ││││ │ 0x00007fe7792169fc: test %r10d,%r10d
││││ │ 0x00007fe7792169ff: jle 0x00007fe779216b1b ;*ifle
││││ │ ; - com.google.re2j.Machine::add@319 (line 393)
0.01% 0.01% ││││ │ 0x00007fe779216a05: mov 0xc(%rbx),%r11d ;*getfield cap
││││ │ ; - com.google.re2j.Machine::add@324 (line 393)
0.02% 0.00% ││││ │ 0x00007fe779216a09: lea (%r12,%r13,8),%rbp ;*aaload
││││ │ ; - com.google.re2j.Machine$Queue::add@24 (line 61)
││││ │ ; - com.google.re2j.Machine::add@20 (line 347)
0.40% 0.23% ││││ │ 0x00007fe779216a0d: mov %r11,%r8
0.01% 0.01% ││││ │ 0x00007fe779216a10: shl $0x3,%r8
││││ │ 0x00007fe779216a14: cmp %rdi,%r8
││││╭│ 0x00007fe779216a17: je 0x00007fe779216a44 ;*if_acmpeq
││││││ ; - com.google.re2j.Machine::add@329 (line 393)
0.02% 0.01% ││││││ 0x00007fe779216a19: mov 0xc(%r12,%r11,8),%r8d ; implicit exception: dispatches to 0x00007fe779216ce9
0.55% 0.37% ││││││ 0x00007fe779216a1e: lea (%r12,%r11,8),%rcx ;*getfield cap
││││││ ; - com.google.re2j.Machine::add@324 (line 393)
0.00% ││││││ 0x00007fe779216a22: cmp %r10d,%r8d
││││││ 0x00007fe779216a25: jb 0x00007fe779216aed
0.01% 0.01% ││││││ 0x00007fe779216a2b: lea 0x10(%r12,%r11,8),%rsi
0.00% ││││││ 0x00007fe779216a30: add $0x10,%rdi
0.47% 0.24% ││││││ 0x00007fe779216a34: movslq %r10d,%rdx
0.00% ││││││ 0x00007fe779216a37: movabs $0x7fe779052640,%r10
0.02% 0.02% ││││││ 0x00007fe779216a41: callq *%r10 ;*aload
││││││ ; - com.google.re2j.Machine::add@347 (line 396)
0.01% ││││↘│ 0x00007fe779216a44: mov %rbp,%r10
0.04% 0.04% ││││ │ 0x00007fe779216a47: mov %rbx,%r8
0.02% 0.03% ││││ │ 0x00007fe779216a4a: shr $0x3,%r8
0.44% 0.73% ││││ │ 0x00007fe779216a4e: mov %r8d,0x10(%r12,%r13,8)
││││ │ 0x00007fe779216a53: shr $0x9,%r10
0.04% 0.04% ││││ │ 0x00007fe779216a57: movabs $0x7fe78a794000,%r11
0.01% 0.01% ││││ │ 0x00007fe779216a61: mov %r12b,(%r11,%r10,1) ;*putfield thread
││││ │ ; - com.google.re2j.Machine::add@351 (line 396)
0.45% 0.54% ││││ │ 0x00007fe779216a65: xor %eax,%eax ;*synchronization entry
││││ │ ; - com.google.re2j.Machine::add@-1 (line 341)
0.39% 0.54% ↘↘↘│ │ 0x00007fe779216a67: add $0x60,%rsp
0.02% 0.05% │ │ 0x00007fe779216a6b: pop %rbp
0.37% 0.30% │ │ 0x00007fe779216a6c: test %eax,0x18b7558e(%rip) # 0x00007fe791d8c000
│ │ ; {poll_return}
0.38% 0.36% │ │ 0x00007fe779216a72: retq
0.01% 0.01% ↘ │ 0x00007fe779216a73: mov %r10d,0x10(%rbx)
│ 0x00007fe779216a77: mov %rbx,%r10
│ 0x00007fe779216a7a: shr $0x9,%r10
│ 0x00007fe779216a7e: movabs $0x7fe78a794000,%r11
0.02% 0.02% │ 0x00007fe779216a88: mov %r12b,(%r11,%r10,1) ;*putfield inst
│ ; - com.google.re2j.Machine::add@313 (line 391)
╰ 0x00007fe779216a8c: jmpq 0x00007fe7792169f3 ;*tableswitch
; - com.google.re2j.Machine::add@40 (line 349)
0x00007fe779216a91: mov 0x1c(%rsp),%r8d
0x00007fe779216a96: mov 0x20(%rsp),%r9
0x00007fe779216a9b: mov %r10d,%edi
0x00007fe779216a9e: mov 0x70(%rsp),%r10
0x00007fe779216aa3: mov %r10,(%rsp)
0x00007fe779216aa7: callq 0x00007fe779046020 ; OopMap{off=1580}
;*invokespecial add
....................................................................................................
11.76% 10.95% <total for region 5>
....[Hottest Regions]...............................................................................
20.89% 24.90% C2, level 4 com.google.re2j.Machine::step, version 503 (307 bytes)
18.94% 18.56% C2, level 4 com.google.re2j.Machine::step, version 503 (465 bytes)
17.90% 17.89% C2, level 4 com.google.re2j.Machine::step, version 503 (229 bytes)
17.08% 16.34% C2, level 4 com.google.re2j.Machine::add, version 491 (322 bytes)
11.76% 10.95% C2, level 4 com.google.re2j.Machine::add, version 491 (389 bytes)
4.25% 4.49% C2, level 4 com.google.re2j.Machine::match, version 545 (784 bytes)
3.35% 1.56% runtime stub StubRoutines::jint_disjoint_arraycopy (128 bytes)
0.65% 0.40% C2, level 4 com.google.re2j.Machine::step, version 503 (72 bytes)
0.53% 0.52% [kernel.kallsyms] [unknown] (0 bytes)
0.38% 0.36% C2, level 4 com.google.re2j.Machine::match, version 545 (67 bytes)
0.38% 0.46% C2, level 4 com.google.re2j.Machine::step, version 503 (11 bytes)
0.18% 0.22% C2, level 4 com.google.re2j.Machine::step, version 503 (40 bytes)
0.16% 0.03% C2, level 4 com.google.re2j.Machine::init, version 560 (83 bytes)
0.15% 0.03% [kernel.kallsyms] [unknown] (44 bytes)
0.13% 0.03% [kernel.kallsyms] [unknown] (39 bytes)
0.12% 0.03% [kernel.kallsyms] [unknown] (27 bytes)
0.11% 0.02% [kernel.kallsyms] [unknown] (45 bytes)
0.09% 0.19% libjvm.so _ZN13RelocIterator10initializeEP7nmethodPhS2_ (102 bytes)
0.09% 0.07% C2, level 4 com.google.re2j.Machine::step, version 503 (57 bytes)
0.08% 0.03% [kernel.kallsyms] [unknown] (29 bytes)
2.78% 2.91% <...other 542 warm regions...>
....................................................................................................
100.00% 100.00% <totals>
....[Hottest Methods (after inlining)]..............................................................
59.04% 62.54% C2, level 4 com.google.re2j.Machine::step, version 503
28.84% 27.29% C2, level 4 com.google.re2j.Machine::add, version 491
4.67% 4.89% C2, level 4 com.google.re2j.Machine::match, version 545
3.35% 1.56% runtime stub StubRoutines::jint_disjoint_arraycopy
2.39% 1.95% [kernel.kallsyms] [unknown]
0.27% 0.07% C2, level 4 com.google.re2j.Machine::init, version 560
0.10% 0.20% libjvm.so _ZN13RelocIterator10initializeEP7nmethodPhS2_
0.10% 0.06% C2, level 4 com.google.re2j.Matcher::find, version 572
0.08% 0.06% hsdis-amd64.so [unknown]
0.08% 0.19% libc-2.26.so vfprintf
0.06% 0.09% libjvm.so _ZN10fileStream5writeEPKcm
0.05% 0.06% libc-2.26.so __strlen_avx2
0.04% 0.03% C2, level 4 com.github.arnaudroger.re2j.Re2jFindRegex::testExp2, version 588
0.04% 0.01% libc-2.26.so _IO_fflush
0.03% 0.09% libjvm.so _ZN12outputStream15update_positionEPKcm
0.03% 0.04% libjvm.so _ZN13xmlTextStream5writeEPKcm
0.03% 0.01% libpthread-2.26.so __pthread_getspecific
0.02% 0.01% libc-2.26.so __strchr_avx2
0.02% 0.03% libc-2.26.so _IO_fwrite
0.02% 0.00% C2, level 4 java.util.Collections::shuffle, version 587
0.73% 0.54% <...other 101 warm methods...>
....................................................................................................
100.00% 99.74% <totals>
....[Distribution by Source]........................................................................
93.01% 94.91% C2, level 4
3.36% 1.56% runtime stub
2.39% 1.95% [kernel.kallsyms]
0.61% 0.88% libjvm.so
0.38% 0.57% libc-2.26.so
0.08% 0.06% hsdis-amd64.so
0.08% 0.05% libpthread-2.26.so
0.03% 0.01% C1, level 3
0.02% [vdso]
0.01% 0.02% interpreter
0.01% Unknown, level 0
0.00% libjava.so
0.00% perf-10704.map
....................................................................................................
100.00% 100.00% <totals>
# Run complete. Total time: 00:00:45
Benchmark Mode Cnt Score Error Units
Re2jFindRegex.testExp2 thrpt 20 2575.024 ± 68.791 ops/s
Re2jFindRegex.testExp2:·asm thrpt NaN ---
| 86.428004 | 182 | 0.416152 |
a65ffb549d4a9dd793a3b52307a77f70efdce25d | 4,588 | asm | Assembly | scripts/RocketHideoutB4F.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | 1 | 2022-02-15T00:19:44.000Z | 2022-02-15T00:19:44.000Z | scripts/RocketHideoutB4F.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | scripts/RocketHideoutB4F.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | RocketHideoutB4F_Script:
call RocketHideout4Script_45473
call EnableAutoTextBoxDrawing
ld hl, RocketHideout4TrainerHeaders
ld de, RocketHideoutB4F_ScriptPointers
ld a, [wRocketHideoutB4FCurScript]
call ExecuteCurMapScriptInTable
ld [wRocketHideoutB4FCurScript], a
ret
RocketHideout4Script_45473:
ld hl, wCurrentMapScriptFlags
bit 5, [hl]
res 5, [hl]
ret z
CheckEvent EVENT_ROCKET_HIDEOUT_4_DOOR_UNLOCKED
jr nz, .asm_45496
CheckBothEventsSet EVENT_BEAT_ROCKET_HIDEOUT_4_TRAINER_0, EVENT_BEAT_ROCKET_HIDEOUT_4_TRAINER_1, 1
jr z, .asm_4548c
ld a, $2d
jr .asm_45498
.asm_4548c
ld a, SFX_GO_INSIDE
call PlaySound
SetEvent EVENT_ROCKET_HIDEOUT_4_DOOR_UNLOCKED
.asm_45496
ld a, $e
.asm_45498
ld [wNewTileBlockID], a
lb bc, 5, 12
predef_jump ReplaceTileBlock
RocketHideout4Script_454a3:
xor a
ld [wJoyIgnore], a
ld [wRocketHideoutB4FCurScript], a
ld [wCurMapScript], a
ret
RocketHideoutB4F_ScriptPointers:
dw CheckFightingMapTrainers
dw DisplayEnemyTrainerTextAndStartBattle
dw EndTrainerBattle
dw RocketHideout4Script3
RocketHideout4Script3:
ld a, [wIsInBattle]
cp $ff
jp z, RocketHideout4Script_454a3
call UpdateSprites
ld a, $f0
ld [wJoyIgnore], a
SetEvent EVENT_BEAT_ROCKET_HIDEOUT_GIOVANNI
ld a, $a
ldh [hSpriteIndexOrTextID], a
call DisplayTextID
call GBFadeOutToBlack
ld a, HS_ROCKET_HIDEOUT_B4F_GIOVANNI
ld [wMissableObjectIndex], a
predef HideObject
ld a, HS_ROCKET_HIDEOUT_B4F_ITEM_4
ld [wMissableObjectIndex], a
predef ShowObject
call UpdateSprites
call GBFadeInFromBlack
xor a
ld [wJoyIgnore], a
ld hl, wCurrentMapScriptFlags
set 5, [hl]
ld a, $0
ld [wRocketHideoutB4FCurScript], a
ld [wCurMapScript], a
ret
RocketHideoutB4F_TextPointers:
dw RocketHideout4Text1
dw RocketHideout4Text2
dw RocketHideout4Text3
dw RocketHideout4Text4
dw PickUpItemText
dw PickUpItemText
dw PickUpItemText
dw PickUpItemText
dw PickUpItemText
dw RocketHideout4Text10
RocketHideout4TrainerHeaders:
def_trainers 2
RocketHideout4TrainerHeader0:
trainer EVENT_BEAT_ROCKET_HIDEOUT_4_TRAINER_0, 0, RocketHideout4BattleText2, RocketHideout4EndBattleText2, RocketHideout4AfterBattleText2
RocketHideout4TrainerHeader1:
trainer EVENT_BEAT_ROCKET_HIDEOUT_4_TRAINER_1, 0, RocketHideout4BattleText3, RocketHideout4EndBattleText3, RocketHideout4AfterBattleText3
RocketHideout4TrainerHeader2:
trainer EVENT_BEAT_ROCKET_HIDEOUT_4_TRAINER_2, 1, RocketHideout4BattleText4, RocketHideout4EndBattleText4, RocketHideout4AfterBattleText4
db -1 ; end
RocketHideout4Text1:
text_asm
CheckEvent EVENT_BEAT_ROCKET_HIDEOUT_GIOVANNI
jp nz, .asm_545571
ld hl, RocketHideout4Text_4557a
call PrintText
ld hl, wd72d
set 6, [hl]
set 7, [hl]
ld hl, RocketHideout4Text_4557f
ld de, RocketHideout4Text_4557f
call SaveEndBattleTextPointers
ldh a, [hSpriteIndex]
ld [wSpriteIndex], a
call EngageMapTrainer
call InitBattleEnemyParameters
xor a
ldh [hJoyHeld], a
ld a, $3
ld [wRocketHideoutB4FCurScript], a
ld [wCurMapScript], a
jr .asm_209f0
.asm_545571
ld hl, RocketHideout4Text10
call PrintText
.asm_209f0
jp TextScriptEnd
RocketHideout4Text_4557a:
text_far _RocketHideout4Text_4557a
text_end
RocketHideout4Text_4557f:
text_far _RocketHideout4Text_4557f
text_end
RocketHideout4Text10:
text_far _RocketHideout4Text_45584
text_end
RocketHideout4Text2:
text_asm
ld hl, RocketHideout4TrainerHeader0
call TalkToTrainer
jp TextScriptEnd
RocketHideout4BattleText2:
text_far _RocketHideout4BattleText2
text_end
RocketHideout4EndBattleText2:
text_far _RocketHideout4EndBattleText2
text_end
RocketHideout4AfterBattleText2:
text_far _RocketHide4AfterBattleText2
text_end
RocketHideout4Text3:
text_asm
ld hl, RocketHideout4TrainerHeader1
call TalkToTrainer
jp TextScriptEnd
RocketHideout4BattleText3:
text_far _RocketHideout4BattleText3
text_end
RocketHideout4EndBattleText3:
text_far _RocketHideout4EndBattleText3
text_end
RocketHideout4AfterBattleText3:
text_far _RocketHide4AfterBattleText3
text_end
RocketHideout4Text4:
text_asm
ld hl, RocketHideout4TrainerHeader2
call TalkToTrainer
jp TextScriptEnd
RocketHideout4BattleText4:
text_far _RocketHideout4BattleText4
text_end
RocketHideout4EndBattleText4:
text_far _RocketHideout4EndBattleText4
text_end
RocketHideout4AfterBattleText4:
text_asm
ld hl, RocketHideout4Text_455ec
call PrintText
CheckAndSetEvent EVENT_ROCKET_DROPPED_LIFT_KEY
jr nz, .asm_455e9
ld a, HS_ROCKET_HIDEOUT_B4F_ITEM_5
ld [wMissableObjectIndex], a
predef ShowObject
.asm_455e9
jp TextScriptEnd
RocketHideout4Text_455ec:
text_far _RocketHideout4Text_455ec
text_end
| 22.712871 | 138 | 0.845466 |
3e4b8c842bb0078da2d366ae8280e5e67c045c51 | 5,735 | asm | Assembly | engine/events/kurt.asm | AtmaBuster/pokeplat-gen2 | fa83b2e75575949b8f72cb2c48f7a1042e97f70f | [
"blessing"
] | 6 | 2021-06-19T06:41:19.000Z | 2022-02-15T17:12:33.000Z | engine/events/kurt.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | null | null | null | engine/events/kurt.asm | AtmaBuster/pokeplat-gen2-old | 01e42c55db5408d72d89133dc84a46c699d849ad | [
"blessing"
] | 3 | 2021-01-15T18:45:40.000Z | 2021-10-16T03:35:27.000Z | Kurt_PrintTextWhichApricorn:
ld hl, .Text
call PrintText
ret
.Text:
; Which APRICORN should I use?
text_far _WhichApricornText
text_end
Kurt_PrintTextHowMany:
ld hl, .Text
call PrintText
ret
.Text:
; How many should I make?
text_far _HowManyShouldIMakeText
text_end
SelectApricornForKurt:
call LoadStandardMenuHeader
ld c, $1
xor a
ld [wMenuScrollPosition], a
ld [wKurtApricornQuantity], a
.loop
push bc
call Kurt_PrintTextWhichApricorn
pop bc
ld a, c
ld [wMenuSelection], a
call Kurt_SelectApricorn
ld a, c
ld [wScriptVar], a
and a
jr z, .done
ld [wCurItem], a
ld a, [wMenuCursorY]
ld c, a
push bc
call Kurt_PrintTextHowMany
call Kurt_SelectQuantity
pop bc
jr nc, .loop
ld a, [wItemQuantityChangeBuffer]
ld [wKurtApricornQuantity], a
call Kurt_GiveUpSelectedQuantityOfSelectedApricorn
.done
call ExitMenu
ret
Kurt_SelectApricorn:
farcall FindApricornsInBag
jr c, .nope
ld hl, .MenuHeader
call CopyMenuHeader
ld a, [wMenuSelection]
ld [wMenuCursorBuffer], a
xor a
ldh [hBGMapMode], a
call InitScrollingMenu
call UpdateSprites
call ScrollingMenu
ld a, [wMenuJoypad]
cp B_BUTTON
jr z, .nope
ld a, [wMenuSelection]
cp -1
jr nz, .done
.nope
xor a ; FALSE
.done
ld c, a
ret
.MenuHeader:
db MENU_BACKUP_TILES ; flags
menu_coords 1, 1, 13, 10
dw .MenuData
db 1 ; default option
db 0 ; XXX
.MenuData:
db SCROLLINGMENU_DISPLAY_ARROWS ; flags
db 4, 7 ; rows, columns
db SCROLLINGMENU_ITEMS_NORMAL ; item format
dbw 0, wBuffer1
dba .Name
dba .Quantity
dba NULL
.Name:
ld a, [wMenuSelection]
and a
ret z
farcall PlaceMenuItemName
ret
.Quantity:
ld a, [wMenuSelection]
ld [wCurItem], a
call Kurt_GetQuantityOfApricorn
ret z
ld a, [wItemQuantityChangeBuffer]
ld [wMenuSelectionQuantity], a
farcall PlaceMenuItemQuantity
ret
Kurt_SelectQuantity:
ld a, [wCurItem]
ld [wMenuSelection], a
call Kurt_GetQuantityOfApricorn
jr z, .done
ld a, [wItemQuantityChangeBuffer]
ld [wItemQuantityBuffer], a
ld a, $1
ld [wItemQuantityChangeBuffer], a
ld hl, .MenuHeader
call LoadMenuHeader
.loop
xor a
ldh [hBGMapMode], a
call MenuBox
call UpdateSprites
call .PlaceApricornName
call PlaceApricornQuantity
call ApplyTilemap
farcall Kurt_SelectQuantity_InterpretJoypad
jr nc, .loop
push bc
call PlayClickSFX
pop bc
ld a, b
cp -1
jr z, .done
ld a, [wItemQuantityChangeBuffer]
ld [wItemQuantityChangeBuffer], a ; What is the point of this operation?
scf
.done
call CloseWindow
ret
.MenuHeader:
db MENU_BACKUP_TILES ; flags
menu_coords 6, 9, SCREEN_WIDTH - 1, 12
dw NULL
db -1 ; default option
db 0
.PlaceApricornName:
call MenuBoxCoord2Tile
ld de, SCREEN_WIDTH + 1
add hl, de
ld d, h
ld e, l
farcall PlaceMenuItemName
ret
PlaceApricornQuantity:
call MenuBoxCoord2Tile
ld de, 2 * SCREEN_WIDTH + 10
add hl, de
ld [hl], "×"
inc hl
ld de, wItemQuantityChangeBuffer
lb bc, PRINTNUM_LEADINGZEROS | 1, 2
jp PrintNum
Kurt_GetQuantityOfApricorn:
push bc
ld hl, wNumBerries
ld a, [wCurItem]
ld c, a
ld b, $0
.loop
inc hl
ld a, [hli]
cp -1
jr z, .done
cp c
jr nz, .loop
ld a, [hl]
add b
ld b, a
jr nc, .loop
ld b, -1
.done
ld a, b
sub 99
jr c, .done2
ld b, 99
.done2
ld a, b
ld [wItemQuantityChangeBuffer], a
and a
pop bc
ret
Kurt_GiveUpSelectedQuantityOfSelectedApricorn:
; Get the quantity of Apricorns of type [wCurItem]
; in the bag. Compatible with multiple stacks.
; Initialize the search.
push de
push bc
ld hl, wNumBerries
ld a, [wCurItem]
ld c, a
ld e, $0
xor a
ld [wCurItemQuantity], a
ld a, -1
ld [wApricorns], a
; Search for [wCurItem] in the bag.
.loop1
; Increase the total count.
ld a, [wCurItemQuantity]
inc a
ld [wCurItemQuantity], a
; Get the index of the next item.
inc hl
ld a, [hli]
; If we've reached the end of the pocket, break.
cp -1
jr z, .okay1
; If we haven't found what we're looking for, continue.
cp c
jr nz, .loop1
; Increment the result counter and store the bag index of the match.
ld d, $0
push hl
ld hl, wApricorns
add hl, de
inc e
ld a, [wCurItemQuantity]
dec a
ld [hli], a
ld a, -1
ld [hl], a
pop hl
jr .loop1
.okay1
; How many stacks have we found?
ld a, e
and a
jr z, .done
dec a
jr z, .OnlyOne
ld hl, wApricorns
.loop2
ld a, [hl]
ld c, a
push hl
.loop3
inc hl
ld a, [hl]
cp -1
jr z, .okay2
ld b, a
ld a, c
call Kurt_GetAddressOfApricornQuantity
ld e, a
ld a, b
call Kurt_GetAddressOfApricornQuantity
sub e
jr z, .equal
jr c, .less
jr .loop3
.equal
ld a, c
sub b
jr nc, .loop3
.less
ld a, c
ld c, b
ld [hl], a
ld a, c
pop hl
ld [hl], a
push hl
jr .loop3
.okay2
pop hl
inc hl
ld a, [hl]
cp -1
jr nz, .loop2
.OnlyOne:
ld hl, wApricorns
.loop4
ld a, [hl]
cp -1
jr z, .done
push hl
ld [wCurItemQuantity], a
call Kurt_GetRidOfItem
pop hl
ld a, [wItemQuantityChangeBuffer]
and a
jr z, .done
push hl
ld a, [hli]
ld c, a
.loop5
ld a, [hli]
cp -1
jr z, .okay3
cp c
jr c, .loop5
dec a
dec hl
ld [hli], a
jr .loop5
.okay3
pop hl
inc hl
jr .loop4
.done
ld a, [wItemQuantityChangeBuffer]
and a
pop bc
pop de
ret
Kurt_GetAddressOfApricornQuantity:
push hl
push bc
ld hl, wNumBerries
inc hl
ld c, a
ld b, $0
add hl, bc
add hl, bc
inc hl
ld a, [hl]
pop bc
pop hl
ret
Kurt_GetRidOfItem:
push bc
ld hl, wNumBerries
ld a, [wCurItemQuantity]
ld c, a
ld b, $0
inc hl
add hl, bc
add hl, bc
ld a, [wCurItem]
ld c, a
ld a, [hli]
cp -1
jr z, .done
cp c
jr nz, .done
ld a, [wItemQuantityChangeBuffer]
ld c, a
ld a, [hl]
sub c
ld b, c
jr nc, .okay
add c
ld b, a
.okay
push bc
ld hl, wNumBerries
ld a, b
ld [wItemQuantityChangeBuffer], a
call TossItem
pop bc
ld a, c
sub b
.done
ld [wItemQuantityChangeBuffer], a
pop bc
ret
| 14.445844 | 73 | 0.69939 |
5166fa9cd6bf3e3ec2b89102b5ca7ff2a61600f9 | 332 | asm | Assembly | programs/oeis/045/A045889.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/045/A045889.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/045/A045889.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A045889: Partial sums of A045618.
; 1,7,30,102,303,825,2116,5200,12381,28779,65658,147594,327835,721069,1573056,3408084,7340265,15728895,33554710,71303470,150995271,318767457,671089020,1409286552,2952790453,6174015955,12884902386
add $0,3
lpb $0
add $1,$0
mul $1,2
add $2,2
sub $1,$2
add $2,$0
sub $0,1
lpe
mov $0,$1
| 23.714286 | 195 | 0.725904 |
8a32000e27b13391d63f26944476b12bdd88630c | 247 | asm | Assembly | pwnlib/shellcraft/templates/mips/linux/getpgid.asm | zaratec/pwntools | 8793decd1c9b8c822e3db6c27b9cbf6e8cddfeba | [
"MIT"
] | 5 | 2018-05-15T13:00:56.000Z | 2020-02-09T14:29:00.000Z | pwnlib/shellcraft/templates/mips/linux/getpgid.asm | FDlucifer/binjitsu | 999ad632004bfc3e623eead20eb11de98fc1f4dd | [
"MIT"
] | null | null | null | pwnlib/shellcraft/templates/mips/linux/getpgid.asm | FDlucifer/binjitsu | 999ad632004bfc3e623eead20eb11de98fc1f4dd | [
"MIT"
] | 6 | 2017-09-07T02:31:11.000Z | 2021-07-05T16:59:18.000Z |
<%
from pwnlib.shellcraft.mips.linux import syscall
%>
<%page args="pid"/>
<%docstring>
Invokes the syscall getpgid. See 'man 2 getpgid' for more information.
Arguments:
pid(pid_t): pid
</%docstring>
${syscall('SYS_getpgid', pid)}
| 17.642857 | 71 | 0.680162 |
29662e081694a93600d67442bff4ae64538b3e7e | 292 | asm | Assembly | programs/oeis/021/A021433.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/021/A021433.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/021/A021433.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A021433: Decimal expansion of 1/429.
; 0,0,2,3,3,1,0,0,2,3,3,1,0,0,2,3,3,1,0,0,2,3,3,1,0,0,2,3,3,1,0,0,2,3,3,1,0,0,2,3,3,1,0,0,2,3,3,1,0,0,2,3,3,1,0,0,2,3,3,1,0,0,2,3,3,1,0,0,2,3,3,1,0,0,2,3,3,1,0,0,2,3,3,1,0,0,2,3,3,1,0,0,2,3,3,1,0,0,2
seq $0,21147 ; Decimal expansion of 1/143.
div $0,3
| 48.666667 | 199 | 0.561644 |
e4d55a254ebca3f2c5563872f88676aa13e79a1d | 658 | asm | Assembly | Appl/EduApps/Fontmgck/ASMTOOLS/asmtoolsManager.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Appl/EduApps/Fontmgck/ASMTOOLS/asmtoolsManager.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Appl/EduApps/Fontmgck/ASMTOOLS/asmtoolsManager.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | include geos.def ; standard macros
include resource.def ; idata/udata, ProcCallFixedOrMovable etc.
include gstring.def
; public routines defined in this module
global MY_GRMAPCOLORINDEX:far
SetGeosConvention ; set calling convention
ASM_TEXT segment resource
MY_GRMAPCOLORINDEX proc far _gstate:word, _col:word
uses bx,di
.enter
mov di,_gstate
mov ah,{byte}_col
call GrMapColorIndex
mov ah,bl
mov dl,bh
mov dh,{byte}_col
.leave
ret
MY_GRMAPCOLORINDEX endp
ASM_TEXT ends
| 23.5 | 66 | 0.589666 |
292f9099852256697743c81e12eb35bc7ac9e3af | 2,900 | asm | Assembly | exe/outldata.asm | DigitalMars/optlink | 493de158282046641ef2a3a60a88e25e26d88ec4 | [
"BSL-1.0"
] | 28 | 2015-02-03T01:38:24.000Z | 2022-03-23T05:48:24.000Z | exe/outldata.asm | DigitalMars/optlink | 493de158282046641ef2a3a60a88e25e26d88ec4 | [
"BSL-1.0"
] | 20 | 2015-01-02T14:51:20.000Z | 2021-01-09T21:37:19.000Z | exe/outldata.asm | DigitalMars/optlink | 493de158282046641ef2a3a60a88e25e26d88ec4 | [
"BSL-1.0"
] | 9 | 2015-02-11T17:43:56.000Z | 2019-09-05T11:07:02.000Z | TITLE OUTLDATA - Copyright (c) SLR Systems 1994
INCLUDE MACROS
INCLUDE SEGMENTS
PUBLIC EXE_OUT_LDATA,MOVE_LDATA_1,MOVE_LDATA_2,MOVE_LDATA_3
.DATA
EXTERNDEF FIX2_LD_TYPE:BYTE
EXTERNDEF FIX2_LD_LENGTH:WORD
EXTERNDEF EXETABLE:DWORD,FIX2_SM_BASE_SEG_GINDEX:DWORD,HIGH_WATER:DWORD
EXTERNDEF FIX2_LDATA_PTR:DWORD,FIX2_LDATA_LOC:DWORD,FIX2_SM_LEN:DWORD,FIX2_SM_START:DWORD
EXTERNDEF FIX2_STACK_DELTA:DWORD
EXTERNDEF SEGMENT_GARRAY:STD_PTR_S
.CODE PASS2_TEXT
EXTERNDEF LIDATA_PROC:PROC,CONVERT_SUBBX_TO_EAX:PROC,ERR_ASCIZ_RET:PROC
EXTERNDEF DATA_OUTSIDE_SEGMOD_ERR:ABS
LIDATA_TYPE PROC
;
;
;
MOV EAX,FIX2_LDATA_PTR
JMP LIDATA_PROC
LIDATA_TYPE ENDP
EXE_OUT_LDATA PROC
;
;LDATA_PTR ETC IS RECORD TO BE WRITTEN TO SEGMOD-SPACE
;SIMPLY MOVE IT IN ONE OR TWO BLOCK MOVES...
;
if fg_rom
BITT OMITTING_SEGMENT
JNZ 9$
endif
MOV AL,FIX2_LD_TYPE
MOV EDX,FIX2_LDATA_LOC
TEST AL,MASK BIT_LI
JNZ LIDATA_TYPE ;OOPS, SPECIAL
MOV ECX,DPTR FIX2_LD_LENGTH
MOV EAX,FIX2_LDATA_PTR
AND ECX,0FFFFH
MOVE_LDATA_1 LABEL PROC ;FROM INSTRELO, LIDATA, FORREF2
;
;MAKE SURE THIS RECORD DOESN'T
;WRITE OUTSIDE SEGMOD SIZE
;
ADD EDX,ECX
JS OHW ;FOR SHRUNK STACK BELOW ADDRESS 0, IGNORE HIGH-WATER AND LENGTH CHECK
CMP FIX2_SM_LEN,EDX
JC MOVE_LDATA_FAIL
;
;OK, GET READY FOR THE BIG MOVE
;CHECK ON HIGH-WATER MARK
;
CMP HIGH_WATER,EDX
JAE OHW
MOV HIGH_WATER,EDX
OHW:
SUB EDX,ECX
ADD EDX,FIX2_STACK_DELTA ;DELTA IN CASE OF STACK SEGMENT
MOVE_LDATA_2 LABEL PROC ;FROM
;
;EDX IS TARGET ADDRESS
;
SUB EDX,FIX2_SM_START ;DELTA FOR CURRENT SEGMOD...
MOVE_LDATA_3 LABEL PROC ;FROM CVLIN4, FIXDS
;
;EAX IS SOURCE RECORD
;ECX IS # OF BYTES
;
PUSHM EDI,ESI
MOV EDI,EDX
MOV ESI,EAX
SHR EDX,PAGE_BITS
AND EDI,PAGE_SIZE-1
PUSH EBX
MOV EAX,PAGE_SIZE
LEA EBX,EXETABLE[EDX*4]
SUB EAX,EDI ;CAN WE DO THIS IN ONE MOVE?
CMP EAX,ECX
JC TWO ;NOPE, NEED TWO
TWO_1:
CALL CONVERT_SUBBX_TO_EAX ;GET ES PTR
GETT BL,MOVE_BYTES
ADD EDI,EAX
OR BL,BL
JNZ L6$
OPTI_MOVSB
MOV EAX,ESI
POPM EBX,ESI,EDI
RET
L6$:
REP MOVSB
MOV EAX,ESI
POPM EBX,ESI,EDI
L9$:
RET
MOVE_LDATA_FAIL:
ADD EAX,ECX ;UPDATE SI ANYWAY FOR LIDATA...
MOV ECX,FIX2_SM_BASE_SEG_GINDEX
PUSH EAX
CONVERT ECX,ECX,SEGMENT_GARRAY
ADD ECX,SEGMENT_STRUCT._SEG_TEXT
MOV AX,DATA_OUTSIDE_SEGMOD_ERR
CALL ERR_ASCIZ_RET
POP EAX
RET
TWO:
;
;OOPS, CROSSES A 16K BLOCK BOUNDARY... DO TWO MOVES
;
CALL TWO_PROC
JMP TWO_1
EXE_OUT_LDATA ENDP
TWO_PROC PROC NEAR
;
;
;
SUB ECX,EAX
PUSH ECX ;THIS MANY NEXT TIME
MOV ECX,EAX
CALL CONVERT_SUBBX_TO_EAX ;GET ES PTR
GETT DL,MOVE_BYTES
ADD EDI,EAX
OR DL,DL
JNZ L7$
OPTI_MOVSB
L8$:
POP ECX
ADD EBX,4 ;NEXT LOGICAL BLOCK
XOR EDI,EDI
RET
L7$:
REP MOVSB
JMP L8$
TWO_PROC ENDP
END
| 15.025907 | 91 | 0.72 |
8a3a523e24ce5bc1481bc53a347476ab5f31513b | 621 | asm | Assembly | oeis/081/A081656.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/081/A081656.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/081/A081656.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A081656: 2*6^n-2^n.
; Submitted by Jamie Morken(s1)
; 1,10,68,424,2576,15520,93248,559744,3358976,20154880,120931328,725592064,4353560576,26121379840,156728311808,940369936384,5642219749376,33853318758400,203119913074688,1218719479496704,7312316879077376,43873901278658560,263243407680339968,1579460446098817024,9476762676626456576,56860576059825848320,341163456359089307648,2046980738154804281344,12281884428929362558976,73691306573577249095680,442147839441465642057728,2652887036648798147313664,15917322219892797473816576,95503933319356802022768640
mov $2,2
pow $2,$0
mov $3,6
pow $3,$0
mul $3,2
sub $3,$2
mov $0,$3
| 51.75 | 498 | 0.859903 |
d396cea97c15ebeac5a792c67d302d2f870ccd2a | 33,033 | asm | Assembly | sim/inst_level/bin/umulh.asm | cpulabs/mist32e10fa | 268a578d7a61870704a350287837a2074125d958 | [
"BSD-2-Clause"
] | 3 | 2020-08-20T13:48:33.000Z | 2021-05-13T23:33:24.000Z | sim/inst_level/bin/umulh.asm | cpulabs/mist32e10fa | 268a578d7a61870704a350287837a2074125d958 | [
"BSD-2-Clause"
] | null | null | null | sim/inst_level/bin/umulh.asm | cpulabs/mist32e10fa | 268a578d7a61870704a350287837a2074125d958 | [
"BSD-2-Clause"
] | 1 | 2022-01-16T15:32:02.000Z | 2022-01-16T15:32:02.000Z |
./out/umulh.out: file format elf32-mist32
Disassembly of section .text:
00000000 <_start>:
0: 0d 40 00 00 wl16 r0,0x0
4: 0d 60 00 0f wh16 r0,0xf
8: 1c 00 00 00 srspw r0
c: 14 30 00 18 br 6c <check>,#al
00000010 <compare>:
10: 00 c0 01 09 cmp r8,r9
14: 14 41 03 e0 b rret,#eq
00000018 <error>:
18: 0d 40 00 00 wl16 r0,0x0
1c: 0d 60 00 02 wh16 r0,0x2
20: 0e c0 00 20 lil r1,0
24: 10 a0 00 20 st32 r1,r0
28: 0d 40 00 0c wl16 r0,0xc
2c: 0d 60 00 02 wh16 r0,0x2
30: 10 a0 00 40 st32 r2,r0
34: 0d 40 00 08 wl16 r0,0x8
38: 0d 60 00 02 wh16 r0,0x2
3c: 10 a0 00 60 st32 r3,r0
40: 0d 40 00 10 wl16 r0,0x10
44: 0d 60 00 02 wh16 r0,0x2
48: 10 a0 01 00 st32 r8,r0
4c: 0d 40 00 14 wl16 r0,0x14
50: 0d 60 00 02 wh16 r0,0x2
54: 10 a0 01 20 st32 r9,r0
00000058 <finish>:
58: 0d 40 00 04 wl16 r0,0x4
5c: 0d 60 00 02 wh16 r0,0x2
60: 0e c0 00 21 lil r1,1
64: 10 a0 00 20 st32 r1,r0
68: 14 30 00 00 br 68 <finish+0x10>,#al
0000006c <check>:
6c: 0c 40 00 42 xor r2,r2
70: 0c 40 00 63 xor r3,r3
74: 0d 40 01 00 wl16 r8,0x0
78: 0d 60 01 03 wh16 r8,0x3
7c: 10 40 01 08 ld32 r8,r8
80: 0d 40 12 14 wl16 r16,0x94
84: 0d 60 02 03 wh16 r16,0x3
88: 10 40 02 10 ld32 r16,r16
8c: 0d 40 25 28 wl16 r9,0x128
90: 0d 60 01 23 wh16 r9,0x3
94: 10 40 01 29 ld32 r9,r9
98: 01 60 01 10 umulh r8,r16
9c: 20 70 03 e2 movepc rret,8
a0: 14 30 ff dc br 10 <compare>,#al
a4: 00 10 00 41 add r2,1
a8: 0d 40 01 04 wl16 r8,0x4
ac: 0d 60 01 03 wh16 r8,0x3
b0: 10 40 01 08 ld32 r8,r8
b4: 0d 40 12 18 wl16 r16,0x98
b8: 0d 60 02 03 wh16 r16,0x3
bc: 10 40 02 10 ld32 r16,r16
c0: 0d 40 25 2c wl16 r9,0x12c
c4: 0d 60 01 23 wh16 r9,0x3
c8: 10 40 01 29 ld32 r9,r9
cc: 01 60 01 10 umulh r8,r16
d0: 20 70 03 e2 movepc rret,8
d4: 14 30 ff cf br 10 <compare>,#al
d8: 00 10 00 41 add r2,1
dc: 0d 40 01 08 wl16 r8,0x8
e0: 0d 60 01 03 wh16 r8,0x3
e4: 10 40 01 08 ld32 r8,r8
e8: 0d 40 12 1c wl16 r16,0x9c
ec: 0d 60 02 03 wh16 r16,0x3
f0: 10 40 02 10 ld32 r16,r16
f4: 0d 40 25 30 wl16 r9,0x130
f8: 0d 60 01 23 wh16 r9,0x3
fc: 10 40 01 29 ld32 r9,r9
100: 01 60 01 10 umulh r8,r16
104: 20 70 03 e2 movepc rret,8
108: 14 30 ff c2 br 10 <compare>,#al
10c: 00 10 00 41 add r2,1
110: 0d 40 01 0c wl16 r8,0xc
114: 0d 60 01 03 wh16 r8,0x3
118: 10 40 01 08 ld32 r8,r8
11c: 0d 40 16 00 wl16 r16,0xa0
120: 0d 60 02 03 wh16 r16,0x3
124: 10 40 02 10 ld32 r16,r16
128: 0d 40 25 34 wl16 r9,0x134
12c: 0d 60 01 23 wh16 r9,0x3
130: 10 40 01 29 ld32 r9,r9
134: 01 60 01 10 umulh r8,r16
138: 20 70 03 e2 movepc rret,8
13c: 14 30 ff b5 br 10 <compare>,#al
140: 00 10 00 41 add r2,1
144: 0d 40 01 10 wl16 r8,0x10
148: 0d 60 01 03 wh16 r8,0x3
14c: 10 40 01 08 ld32 r8,r8
150: 0d 40 16 04 wl16 r16,0xa4
154: 0d 60 02 03 wh16 r16,0x3
158: 10 40 02 10 ld32 r16,r16
15c: 0d 40 25 38 wl16 r9,0x138
160: 0d 60 01 23 wh16 r9,0x3
164: 10 40 01 29 ld32 r9,r9
168: 01 60 01 10 umulh r8,r16
16c: 20 70 03 e2 movepc rret,8
170: 14 30 ff a8 br 10 <compare>,#al
174: 00 10 00 41 add r2,1
178: 0d 40 01 14 wl16 r8,0x14
17c: 0d 60 01 03 wh16 r8,0x3
180: 10 40 01 08 ld32 r8,r8
184: 0d 40 16 08 wl16 r16,0xa8
188: 0d 60 02 03 wh16 r16,0x3
18c: 10 40 02 10 ld32 r16,r16
190: 0d 40 25 3c wl16 r9,0x13c
194: 0d 60 01 23 wh16 r9,0x3
198: 10 40 01 29 ld32 r9,r9
19c: 01 60 01 10 umulh r8,r16
1a0: 20 70 03 e2 movepc rret,8
1a4: 14 30 ff 9b br 10 <compare>,#al
1a8: 00 10 00 41 add r2,1
1ac: 0d 40 01 18 wl16 r8,0x18
1b0: 0d 60 01 03 wh16 r8,0x3
1b4: 10 40 01 08 ld32 r8,r8
1b8: 0d 40 16 0c wl16 r16,0xac
1bc: 0d 60 02 03 wh16 r16,0x3
1c0: 10 40 02 10 ld32 r16,r16
1c4: 0d 40 29 20 wl16 r9,0x140
1c8: 0d 60 01 23 wh16 r9,0x3
1cc: 10 40 01 29 ld32 r9,r9
1d0: 01 60 01 10 umulh r8,r16
1d4: 20 70 03 e2 movepc rret,8
1d8: 14 30 ff 8e br 10 <compare>,#al
1dc: 00 10 00 41 add r2,1
1e0: 0d 40 01 1c wl16 r8,0x1c
1e4: 0d 60 01 03 wh16 r8,0x3
1e8: 10 40 01 08 ld32 r8,r8
1ec: 0d 40 16 10 wl16 r16,0xb0
1f0: 0d 60 02 03 wh16 r16,0x3
1f4: 10 40 02 10 ld32 r16,r16
1f8: 0d 40 29 24 wl16 r9,0x144
1fc: 0d 60 01 23 wh16 r9,0x3
200: 10 40 01 29 ld32 r9,r9
204: 01 60 01 10 umulh r8,r16
208: 20 70 03 e2 movepc rret,8
20c: 14 30 ff 81 br 10 <compare>,#al
210: 00 10 00 41 add r2,1
214: 0d 40 05 00 wl16 r8,0x20
218: 0d 60 01 03 wh16 r8,0x3
21c: 10 40 01 08 ld32 r8,r8
220: 0d 40 16 14 wl16 r16,0xb4
224: 0d 60 02 03 wh16 r16,0x3
228: 10 40 02 10 ld32 r16,r16
22c: 0d 40 29 28 wl16 r9,0x148
230: 0d 60 01 23 wh16 r9,0x3
234: 10 40 01 29 ld32 r9,r9
238: 01 60 01 10 umulh r8,r16
23c: 20 70 03 e2 movepc rret,8
240: 14 30 ff 74 br 10 <compare>,#al
244: 00 10 00 41 add r2,1
248: 0d 40 05 04 wl16 r8,0x24
24c: 0d 60 01 03 wh16 r8,0x3
250: 10 40 01 08 ld32 r8,r8
254: 0d 40 16 18 wl16 r16,0xb8
258: 0d 60 02 03 wh16 r16,0x3
25c: 10 40 02 10 ld32 r16,r16
260: 0d 40 29 2c wl16 r9,0x14c
264: 0d 60 01 23 wh16 r9,0x3
268: 10 40 01 29 ld32 r9,r9
26c: 01 60 01 10 umulh r8,r16
270: 20 70 03 e2 movepc rret,8
274: 14 30 ff 67 br 10 <compare>,#al
278: 00 10 00 41 add r2,1
27c: 0d 40 05 08 wl16 r8,0x28
280: 0d 60 01 03 wh16 r8,0x3
284: 10 40 01 08 ld32 r8,r8
288: 0d 40 16 1c wl16 r16,0xbc
28c: 0d 60 02 03 wh16 r16,0x3
290: 10 40 02 10 ld32 r16,r16
294: 0d 40 29 30 wl16 r9,0x150
298: 0d 60 01 23 wh16 r9,0x3
29c: 10 40 01 29 ld32 r9,r9
2a0: 01 60 01 10 umulh r8,r16
2a4: 20 70 03 e2 movepc rret,8
2a8: 14 30 ff 5a br 10 <compare>,#al
2ac: 00 10 00 41 add r2,1
2b0: 0d 40 05 0c wl16 r8,0x2c
2b4: 0d 60 01 03 wh16 r8,0x3
2b8: 10 40 01 08 ld32 r8,r8
2bc: 0d 40 1a 00 wl16 r16,0xc0
2c0: 0d 60 02 03 wh16 r16,0x3
2c4: 10 40 02 10 ld32 r16,r16
2c8: 0d 40 29 34 wl16 r9,0x154
2cc: 0d 60 01 23 wh16 r9,0x3
2d0: 10 40 01 29 ld32 r9,r9
2d4: 01 60 01 10 umulh r8,r16
2d8: 20 70 03 e2 movepc rret,8
2dc: 14 30 ff 4d br 10 <compare>,#al
2e0: 00 10 00 41 add r2,1
2e4: 0d 40 05 10 wl16 r8,0x30
2e8: 0d 60 01 03 wh16 r8,0x3
2ec: 10 40 01 08 ld32 r8,r8
2f0: 0d 40 1a 04 wl16 r16,0xc4
2f4: 0d 60 02 03 wh16 r16,0x3
2f8: 10 40 02 10 ld32 r16,r16
2fc: 0d 40 29 38 wl16 r9,0x158
300: 0d 60 01 23 wh16 r9,0x3
304: 10 40 01 29 ld32 r9,r9
308: 01 60 01 10 umulh r8,r16
30c: 20 70 03 e2 movepc rret,8
310: 14 30 ff 40 br 10 <compare>,#al
314: 00 10 00 41 add r2,1
318: 0d 40 05 14 wl16 r8,0x34
31c: 0d 60 01 03 wh16 r8,0x3
320: 10 40 01 08 ld32 r8,r8
324: 0d 40 1a 08 wl16 r16,0xc8
328: 0d 60 02 03 wh16 r16,0x3
32c: 10 40 02 10 ld32 r16,r16
330: 0d 40 29 3c wl16 r9,0x15c
334: 0d 60 01 23 wh16 r9,0x3
338: 10 40 01 29 ld32 r9,r9
33c: 01 60 01 10 umulh r8,r16
340: 20 70 03 e2 movepc rret,8
344: 14 30 ff 33 br 10 <compare>,#al
348: 00 10 00 41 add r2,1
34c: 0d 40 05 18 wl16 r8,0x38
350: 0d 60 01 03 wh16 r8,0x3
354: 10 40 01 08 ld32 r8,r8
358: 0d 40 1a 0c wl16 r16,0xcc
35c: 0d 60 02 03 wh16 r16,0x3
360: 10 40 02 10 ld32 r16,r16
364: 0d 40 2d 20 wl16 r9,0x160
368: 0d 60 01 23 wh16 r9,0x3
36c: 10 40 01 29 ld32 r9,r9
370: 01 60 01 10 umulh r8,r16
374: 20 70 03 e2 movepc rret,8
378: 14 30 ff 26 br 10 <compare>,#al
37c: 00 10 00 41 add r2,1
380: 0d 40 05 1c wl16 r8,0x3c
384: 0d 60 01 03 wh16 r8,0x3
388: 10 40 01 08 ld32 r8,r8
38c: 0d 40 1a 10 wl16 r16,0xd0
390: 0d 60 02 03 wh16 r16,0x3
394: 10 40 02 10 ld32 r16,r16
398: 0d 40 2d 24 wl16 r9,0x164
39c: 0d 60 01 23 wh16 r9,0x3
3a0: 10 40 01 29 ld32 r9,r9
3a4: 01 60 01 10 umulh r8,r16
3a8: 20 70 03 e2 movepc rret,8
3ac: 14 30 ff 19 br 10 <compare>,#al
3b0: 00 10 00 41 add r2,1
3b4: 0d 40 09 00 wl16 r8,0x40
3b8: 0d 60 01 03 wh16 r8,0x3
3bc: 10 40 01 08 ld32 r8,r8
3c0: 0d 40 1a 14 wl16 r16,0xd4
3c4: 0d 60 02 03 wh16 r16,0x3
3c8: 10 40 02 10 ld32 r16,r16
3cc: 0d 40 2d 28 wl16 r9,0x168
3d0: 0d 60 01 23 wh16 r9,0x3
3d4: 10 40 01 29 ld32 r9,r9
3d8: 01 60 01 10 umulh r8,r16
3dc: 20 70 03 e2 movepc rret,8
3e0: 14 30 ff 0c br 10 <compare>,#al
3e4: 00 10 00 41 add r2,1
3e8: 0d 40 09 04 wl16 r8,0x44
3ec: 0d 60 01 03 wh16 r8,0x3
3f0: 10 40 01 08 ld32 r8,r8
3f4: 0d 40 1a 18 wl16 r16,0xd8
3f8: 0d 60 02 03 wh16 r16,0x3
3fc: 10 40 02 10 ld32 r16,r16
400: 0d 40 2d 2c wl16 r9,0x16c
404: 0d 60 01 23 wh16 r9,0x3
408: 10 40 01 29 ld32 r9,r9
40c: 01 60 01 10 umulh r8,r16
410: 20 70 03 e2 movepc rret,8
414: 14 30 fe ff br 10 <compare>,#al
418: 00 10 00 41 add r2,1
41c: 0d 40 09 08 wl16 r8,0x48
420: 0d 60 01 03 wh16 r8,0x3
424: 10 40 01 08 ld32 r8,r8
428: 0d 40 1a 1c wl16 r16,0xdc
42c: 0d 60 02 03 wh16 r16,0x3
430: 10 40 02 10 ld32 r16,r16
434: 0d 40 2d 30 wl16 r9,0x170
438: 0d 60 01 23 wh16 r9,0x3
43c: 10 40 01 29 ld32 r9,r9
440: 01 60 01 10 umulh r8,r16
444: 20 70 03 e2 movepc rret,8
448: 14 30 fe f2 br 10 <compare>,#al
44c: 00 10 00 41 add r2,1
450: 0d 40 09 0c wl16 r8,0x4c
454: 0d 60 01 03 wh16 r8,0x3
458: 10 40 01 08 ld32 r8,r8
45c: 0d 40 1e 00 wl16 r16,0xe0
460: 0d 60 02 03 wh16 r16,0x3
464: 10 40 02 10 ld32 r16,r16
468: 0d 40 2d 34 wl16 r9,0x174
46c: 0d 60 01 23 wh16 r9,0x3
470: 10 40 01 29 ld32 r9,r9
474: 01 60 01 10 umulh r8,r16
478: 20 70 03 e2 movepc rret,8
47c: 14 30 fe e5 br 10 <compare>,#al
480: 00 10 00 41 add r2,1
484: 0d 40 09 10 wl16 r8,0x50
488: 0d 60 01 03 wh16 r8,0x3
48c: 10 40 01 08 ld32 r8,r8
490: 0d 40 1e 04 wl16 r16,0xe4
494: 0d 60 02 03 wh16 r16,0x3
498: 10 40 02 10 ld32 r16,r16
49c: 0d 40 2d 38 wl16 r9,0x178
4a0: 0d 60 01 23 wh16 r9,0x3
4a4: 10 40 01 29 ld32 r9,r9
4a8: 01 60 01 10 umulh r8,r16
4ac: 20 70 03 e2 movepc rret,8
4b0: 14 30 fe d8 br 10 <compare>,#al
4b4: 00 10 00 41 add r2,1
4b8: 0d 40 09 14 wl16 r8,0x54
4bc: 0d 60 01 03 wh16 r8,0x3
4c0: 10 40 01 08 ld32 r8,r8
4c4: 0d 40 1e 08 wl16 r16,0xe8
4c8: 0d 60 02 03 wh16 r16,0x3
4cc: 10 40 02 10 ld32 r16,r16
4d0: 0d 40 2d 3c wl16 r9,0x17c
4d4: 0d 60 01 23 wh16 r9,0x3
4d8: 10 40 01 29 ld32 r9,r9
4dc: 01 60 01 10 umulh r8,r16
4e0: 20 70 03 e2 movepc rret,8
4e4: 14 30 fe cb br 10 <compare>,#al
4e8: 00 10 00 41 add r2,1
4ec: 0d 40 09 18 wl16 r8,0x58
4f0: 0d 60 01 03 wh16 r8,0x3
4f4: 10 40 01 08 ld32 r8,r8
4f8: 0d 40 1e 0c wl16 r16,0xec
4fc: 0d 60 02 03 wh16 r16,0x3
500: 10 40 02 10 ld32 r16,r16
504: 0d 40 31 20 wl16 r9,0x180
508: 0d 60 01 23 wh16 r9,0x3
50c: 10 40 01 29 ld32 r9,r9
510: 01 60 01 10 umulh r8,r16
514: 20 70 03 e2 movepc rret,8
518: 14 30 fe be br 10 <compare>,#al
51c: 00 10 00 41 add r2,1
520: 0d 40 09 1c wl16 r8,0x5c
524: 0d 60 01 03 wh16 r8,0x3
528: 10 40 01 08 ld32 r8,r8
52c: 0d 40 1e 10 wl16 r16,0xf0
530: 0d 60 02 03 wh16 r16,0x3
534: 10 40 02 10 ld32 r16,r16
538: 0d 40 31 24 wl16 r9,0x184
53c: 0d 60 01 23 wh16 r9,0x3
540: 10 40 01 29 ld32 r9,r9
544: 01 60 01 10 umulh r8,r16
548: 20 70 03 e2 movepc rret,8
54c: 14 30 fe b1 br 10 <compare>,#al
550: 00 10 00 41 add r2,1
554: 0d 40 0d 00 wl16 r8,0x60
558: 0d 60 01 03 wh16 r8,0x3
55c: 10 40 01 08 ld32 r8,r8
560: 0d 40 1e 14 wl16 r16,0xf4
564: 0d 60 02 03 wh16 r16,0x3
568: 10 40 02 10 ld32 r16,r16
56c: 0d 40 31 28 wl16 r9,0x188
570: 0d 60 01 23 wh16 r9,0x3
574: 10 40 01 29 ld32 r9,r9
578: 01 60 01 10 umulh r8,r16
57c: 20 70 03 e2 movepc rret,8
580: 14 30 fe a4 br 10 <compare>,#al
584: 00 10 00 41 add r2,1
588: 0d 40 0d 04 wl16 r8,0x64
58c: 0d 60 01 03 wh16 r8,0x3
590: 10 40 01 08 ld32 r8,r8
594: 0d 40 1e 18 wl16 r16,0xf8
598: 0d 60 02 03 wh16 r16,0x3
59c: 10 40 02 10 ld32 r16,r16
5a0: 0d 40 31 2c wl16 r9,0x18c
5a4: 0d 60 01 23 wh16 r9,0x3
5a8: 10 40 01 29 ld32 r9,r9
5ac: 01 60 01 10 umulh r8,r16
5b0: 20 70 03 e2 movepc rret,8
5b4: 14 30 fe 97 br 10 <compare>,#al
5b8: 00 10 00 41 add r2,1
5bc: 0d 40 0d 08 wl16 r8,0x68
5c0: 0d 60 01 03 wh16 r8,0x3
5c4: 10 40 01 08 ld32 r8,r8
5c8: 0d 40 1e 1c wl16 r16,0xfc
5cc: 0d 60 02 03 wh16 r16,0x3
5d0: 10 40 02 10 ld32 r16,r16
5d4: 0d 40 31 30 wl16 r9,0x190
5d8: 0d 60 01 23 wh16 r9,0x3
5dc: 10 40 01 29 ld32 r9,r9
5e0: 01 60 01 10 umulh r8,r16
5e4: 20 70 03 e2 movepc rret,8
5e8: 14 30 fe 8a br 10 <compare>,#al
5ec: 00 10 00 41 add r2,1
5f0: 0d 40 0d 0c wl16 r8,0x6c
5f4: 0d 60 01 03 wh16 r8,0x3
5f8: 10 40 01 08 ld32 r8,r8
5fc: 0d 40 22 00 wl16 r16,0x100
600: 0d 60 02 03 wh16 r16,0x3
604: 10 40 02 10 ld32 r16,r16
608: 0d 40 31 34 wl16 r9,0x194
60c: 0d 60 01 23 wh16 r9,0x3
610: 10 40 01 29 ld32 r9,r9
614: 01 60 01 10 umulh r8,r16
618: 20 70 03 e2 movepc rret,8
61c: 14 30 fe 7d br 10 <compare>,#al
620: 00 10 00 41 add r2,1
624: 0d 40 0d 10 wl16 r8,0x70
628: 0d 60 01 03 wh16 r8,0x3
62c: 10 40 01 08 ld32 r8,r8
630: 0d 40 22 04 wl16 r16,0x104
634: 0d 60 02 03 wh16 r16,0x3
638: 10 40 02 10 ld32 r16,r16
63c: 0d 40 31 38 wl16 r9,0x198
640: 0d 60 01 23 wh16 r9,0x3
644: 10 40 01 29 ld32 r9,r9
648: 01 60 01 10 umulh r8,r16
64c: 20 70 03 e2 movepc rret,8
650: 14 30 fe 70 br 10 <compare>,#al
654: 00 10 00 41 add r2,1
658: 0d 40 0d 14 wl16 r8,0x74
65c: 0d 60 01 03 wh16 r8,0x3
660: 10 40 01 08 ld32 r8,r8
664: 0d 40 22 08 wl16 r16,0x108
668: 0d 60 02 03 wh16 r16,0x3
66c: 10 40 02 10 ld32 r16,r16
670: 0d 40 31 3c wl16 r9,0x19c
674: 0d 60 01 23 wh16 r9,0x3
678: 10 40 01 29 ld32 r9,r9
67c: 01 60 01 10 umulh r8,r16
680: 20 70 03 e2 movepc rret,8
684: 14 30 fe 63 br 10 <compare>,#al
688: 00 10 00 41 add r2,1
68c: 0d 40 0d 18 wl16 r8,0x78
690: 0d 60 01 03 wh16 r8,0x3
694: 10 40 01 08 ld32 r8,r8
698: 0d 40 22 0c wl16 r16,0x10c
69c: 0d 60 02 03 wh16 r16,0x3
6a0: 10 40 02 10 ld32 r16,r16
6a4: 0d 40 35 20 wl16 r9,0x1a0
6a8: 0d 60 01 23 wh16 r9,0x3
6ac: 10 40 01 29 ld32 r9,r9
6b0: 01 60 01 10 umulh r8,r16
6b4: 20 70 03 e2 movepc rret,8
6b8: 14 30 fe 56 br 10 <compare>,#al
6bc: 00 10 00 41 add r2,1
6c0: 0d 40 0d 1c wl16 r8,0x7c
6c4: 0d 60 01 03 wh16 r8,0x3
6c8: 10 40 01 08 ld32 r8,r8
6cc: 0d 40 22 10 wl16 r16,0x110
6d0: 0d 60 02 03 wh16 r16,0x3
6d4: 10 40 02 10 ld32 r16,r16
6d8: 0d 40 35 24 wl16 r9,0x1a4
6dc: 0d 60 01 23 wh16 r9,0x3
6e0: 10 40 01 29 ld32 r9,r9
6e4: 01 60 01 10 umulh r8,r16
6e8: 20 70 03 e2 movepc rret,8
6ec: 14 30 fe 49 br 10 <compare>,#al
6f0: 00 10 00 41 add r2,1
6f4: 0d 40 11 00 wl16 r8,0x80
6f8: 0d 60 01 03 wh16 r8,0x3
6fc: 10 40 01 08 ld32 r8,r8
700: 0d 40 22 14 wl16 r16,0x114
704: 0d 60 02 03 wh16 r16,0x3
708: 10 40 02 10 ld32 r16,r16
70c: 0d 40 35 28 wl16 r9,0x1a8
710: 0d 60 01 23 wh16 r9,0x3
714: 10 40 01 29 ld32 r9,r9
718: 01 60 01 10 umulh r8,r16
71c: 20 70 03 e2 movepc rret,8
720: 14 30 fe 3c br 10 <compare>,#al
724: 00 10 00 41 add r2,1
728: 0d 40 11 04 wl16 r8,0x84
72c: 0d 60 01 03 wh16 r8,0x3
730: 10 40 01 08 ld32 r8,r8
734: 0d 40 22 18 wl16 r16,0x118
738: 0d 60 02 03 wh16 r16,0x3
73c: 10 40 02 10 ld32 r16,r16
740: 0d 40 35 2c wl16 r9,0x1ac
744: 0d 60 01 23 wh16 r9,0x3
748: 10 40 01 29 ld32 r9,r9
74c: 01 60 01 10 umulh r8,r16
750: 20 70 03 e2 movepc rret,8
754: 14 30 fe 2f br 10 <compare>,#al
758: 00 10 00 41 add r2,1
75c: 0d 40 11 08 wl16 r8,0x88
760: 0d 60 01 03 wh16 r8,0x3
764: 10 40 01 08 ld32 r8,r8
768: 0d 40 22 1c wl16 r16,0x11c
76c: 0d 60 02 03 wh16 r16,0x3
770: 10 40 02 10 ld32 r16,r16
774: 0d 40 35 30 wl16 r9,0x1b0
778: 0d 60 01 23 wh16 r9,0x3
77c: 10 40 01 29 ld32 r9,r9
780: 01 60 01 10 umulh r8,r16
784: 20 70 03 e2 movepc rret,8
788: 14 30 fe 22 br 10 <compare>,#al
78c: 00 10 00 41 add r2,1
790: 0d 40 11 0c wl16 r8,0x8c
794: 0d 60 01 03 wh16 r8,0x3
798: 10 40 01 08 ld32 r8,r8
79c: 0d 40 26 00 wl16 r16,0x120
7a0: 0d 60 02 03 wh16 r16,0x3
7a4: 10 40 02 10 ld32 r16,r16
7a8: 0d 40 35 34 wl16 r9,0x1b4
7ac: 0d 60 01 23 wh16 r9,0x3
7b0: 10 40 01 29 ld32 r9,r9
7b4: 01 60 01 10 umulh r8,r16
7b8: 20 70 03 e2 movepc rret,8
7bc: 14 30 fe 15 br 10 <compare>,#al
7c0: 00 10 00 41 add r2,1
7c4: 0d 40 11 10 wl16 r8,0x90
7c8: 0d 60 01 03 wh16 r8,0x3
7cc: 10 40 01 08 ld32 r8,r8
7d0: 0d 40 26 04 wl16 r16,0x124
7d4: 0d 60 02 03 wh16 r16,0x3
7d8: 10 40 02 10 ld32 r16,r16
7dc: 0d 40 35 38 wl16 r9,0x1b8
7e0: 0d 60 01 23 wh16 r9,0x3
7e4: 10 40 01 29 ld32 r9,r9
7e8: 01 60 01 10 umulh r8,r16
7ec: 20 70 03 e2 movepc rret,8
7f0: 14 30 fe 08 br 10 <compare>,#al
7f4: 00 10 00 41 add r2,1
7f8: 0c 40 00 42 xor r2,r2
7fc: 00 10 00 61 add r3,1
800: 0d 40 35 1c wl16 r8,0x1bc
804: 0d 60 01 03 wh16 r8,0x3
808: 10 40 01 08 ld32 r8,r8
80c: 0d 40 41 34 wl16 r9,0x214
810: 0d 60 01 23 wh16 r9,0x3
814: 10 40 01 29 ld32 r9,r9
818: 01 70 01 01 umulh r8,0x1
81c: 20 70 03 e2 movepc rret,8
820: 14 30 fd fc br 10 <compare>,#al
824: 00 10 00 41 add r2,1
828: 0d 40 39 00 wl16 r8,0x1c0
82c: 0d 60 01 03 wh16 r8,0x3
830: 10 40 01 08 ld32 r8,r8
834: 0d 40 41 38 wl16 r9,0x218
838: 0d 60 01 23 wh16 r9,0x3
83c: 10 40 01 29 ld32 r9,r9
840: 01 70 41 00 umulh r8,0x200
844: 20 70 03 e2 movepc rret,8
848: 14 30 fd f2 br 10 <compare>,#al
84c: 00 10 00 41 add r2,1
850: 0d 40 39 04 wl16 r8,0x1c4
854: 0d 60 01 03 wh16 r8,0x3
858: 10 40 01 08 ld32 r8,r8
85c: 0d 40 41 3c wl16 r9,0x21c
860: 0d 60 01 23 wh16 r9,0x3
864: 10 40 01 29 ld32 r9,r9
868: 01 70 81 00 umulh r8,0x400
86c: 20 70 03 e2 movepc rret,8
870: 14 30 fd e8 br 10 <compare>,#al
874: 00 10 00 41 add r2,1
878: 0d 40 39 08 wl16 r8,0x1c8
87c: 0d 60 01 03 wh16 r8,0x3
880: 10 40 01 08 ld32 r8,r8
884: 0d 40 45 20 wl16 r9,0x220
888: 0d 60 01 23 wh16 r9,0x3
88c: 10 40 01 29 ld32 r9,r9
890: 01 70 01 01 umulh r8,0x1
894: 20 70 03 e2 movepc rret,8
898: 14 30 fd de br 10 <compare>,#al
89c: 00 10 00 41 add r2,1
8a0: 0d 40 39 0c wl16 r8,0x1cc
8a4: 0d 60 01 03 wh16 r8,0x3
8a8: 10 40 01 08 ld32 r8,r8
8ac: 0d 40 45 24 wl16 r9,0x224
8b0: 0d 60 01 23 wh16 r9,0x3
8b4: 10 40 01 29 ld32 r9,r9
8b8: 01 70 41 00 umulh r8,0x200
8bc: 20 70 03 e2 movepc rret,8
8c0: 14 30 fd d4 br 10 <compare>,#al
8c4: 00 10 00 41 add r2,1
8c8: 0d 40 39 10 wl16 r8,0x1d0
8cc: 0d 60 01 03 wh16 r8,0x3
8d0: 10 40 01 08 ld32 r8,r8
8d4: 0d 40 45 28 wl16 r9,0x228
8d8: 0d 60 01 23 wh16 r9,0x3
8dc: 10 40 01 29 ld32 r9,r9
8e0: 01 70 81 00 umulh r8,0x400
8e4: 20 70 03 e2 movepc rret,8
8e8: 14 30 fd ca br 10 <compare>,#al
8ec: 00 10 00 41 add r2,1
8f0: 0d 40 39 14 wl16 r8,0x1d4
8f4: 0d 60 01 03 wh16 r8,0x3
8f8: 10 40 01 08 ld32 r8,r8
8fc: 0d 40 45 2c wl16 r9,0x22c
900: 0d 60 01 23 wh16 r9,0x3
904: 10 40 01 29 ld32 r9,r9
908: 01 70 01 01 umulh r8,0x1
90c: 20 70 03 e2 movepc rret,8
910: 14 30 fd c0 br 10 <compare>,#al
914: 00 10 00 41 add r2,1
918: 0d 40 39 18 wl16 r8,0x1d8
91c: 0d 60 01 03 wh16 r8,0x3
920: 10 40 01 08 ld32 r8,r8
924: 0d 40 45 30 wl16 r9,0x230
928: 0d 60 01 23 wh16 r9,0x3
92c: 10 40 01 29 ld32 r9,r9
930: 01 70 41 00 umulh r8,0x200
934: 20 70 03 e2 movepc rret,8
938: 14 30 fd b6 br 10 <compare>,#al
93c: 00 10 00 41 add r2,1
940: 0d 40 39 1c wl16 r8,0x1dc
944: 0d 60 01 03 wh16 r8,0x3
948: 10 40 01 08 ld32 r8,r8
94c: 0d 40 45 34 wl16 r9,0x234
950: 0d 60 01 23 wh16 r9,0x3
954: 10 40 01 29 ld32 r9,r9
958: 01 70 81 00 umulh r8,0x400
95c: 20 70 03 e2 movepc rret,8
960: 14 30 fd ac br 10 <compare>,#al
964: 00 10 00 41 add r2,1
968: 0d 40 3d 00 wl16 r8,0x1e0
96c: 0d 60 01 03 wh16 r8,0x3
970: 10 40 01 08 ld32 r8,r8
974: 0d 40 45 38 wl16 r9,0x238
978: 0d 60 01 23 wh16 r9,0x3
97c: 10 40 01 29 ld32 r9,r9
980: 01 70 01 01 umulh r8,0x1
984: 20 70 03 e2 movepc rret,8
988: 14 30 fd a2 br 10 <compare>,#al
98c: 00 10 00 41 add r2,1
990: 0d 40 3d 04 wl16 r8,0x1e4
994: 0d 60 01 03 wh16 r8,0x3
998: 10 40 01 08 ld32 r8,r8
99c: 0d 40 45 3c wl16 r9,0x23c
9a0: 0d 60 01 23 wh16 r9,0x3
9a4: 10 40 01 29 ld32 r9,r9
9a8: 01 70 41 00 umulh r8,0x200
9ac: 20 70 03 e2 movepc rret,8
9b0: 14 30 fd 98 br 10 <compare>,#al
9b4: 00 10 00 41 add r2,1
9b8: 0d 40 3d 08 wl16 r8,0x1e8
9bc: 0d 60 01 03 wh16 r8,0x3
9c0: 10 40 01 08 ld32 r8,r8
9c4: 0d 40 49 20 wl16 r9,0x240
9c8: 0d 60 01 23 wh16 r9,0x3
9cc: 10 40 01 29 ld32 r9,r9
9d0: 01 70 81 00 umulh r8,0x400
9d4: 20 70 03 e2 movepc rret,8
9d8: 14 30 fd 8e br 10 <compare>,#al
9dc: 00 10 00 41 add r2,1
9e0: 0d 40 3d 0c wl16 r8,0x1ec
9e4: 0d 60 01 03 wh16 r8,0x3
9e8: 10 40 01 08 ld32 r8,r8
9ec: 0d 40 49 24 wl16 r9,0x244
9f0: 0d 60 01 23 wh16 r9,0x3
9f4: 10 40 01 29 ld32 r9,r9
9f8: 01 70 01 03 umulh r8,0x3
9fc: 20 70 03 e2 movepc rret,8
a00: 14 30 fd 84 br 10 <compare>,#al
a04: 00 10 00 41 add r2,1
a08: 0d 40 3d 10 wl16 r8,0x1f0
a0c: 0d 60 01 03 wh16 r8,0x3
a10: 10 40 01 08 ld32 r8,r8
a14: 0d 40 49 28 wl16 r9,0x248
a18: 0d 60 01 23 wh16 r9,0x3
a1c: 10 40 01 29 ld32 r9,r9
a20: 01 70 01 07 umulh r8,0x7
a24: 20 70 03 e2 movepc rret,8
a28: 14 30 fd 7a br 10 <compare>,#al
a2c: 00 10 00 41 add r2,1
a30: 0d 40 3d 14 wl16 r8,0x1f4
a34: 0d 60 01 03 wh16 r8,0x3
a38: 10 40 01 08 ld32 r8,r8
a3c: 0d 40 49 2c wl16 r9,0x24c
a40: 0d 60 01 23 wh16 r9,0x3
a44: 10 40 01 29 ld32 r9,r9
a48: 01 70 01 0f umulh r8,0xf
a4c: 20 70 03 e2 movepc rret,8
a50: 14 30 fd 70 br 10 <compare>,#al
a54: 00 10 00 41 add r2,1
a58: 0d 40 3d 18 wl16 r8,0x1f8
a5c: 0d 60 01 03 wh16 r8,0x3
a60: 10 40 01 08 ld32 r8,r8
a64: 0d 40 49 30 wl16 r9,0x250
a68: 0d 60 01 23 wh16 r9,0x3
a6c: 10 40 01 29 ld32 r9,r9
a70: 01 70 01 1f umulh r8,0x1f
a74: 20 70 03 e2 movepc rret,8
a78: 14 30 fd 66 br 10 <compare>,#al
a7c: 00 10 00 41 add r2,1
a80: 0d 40 3d 1c wl16 r8,0x1fc
a84: 0d 60 01 03 wh16 r8,0x3
a88: 10 40 01 08 ld32 r8,r8
a8c: 0d 40 49 34 wl16 r9,0x254
a90: 0d 60 01 23 wh16 r9,0x3
a94: 10 40 01 29 ld32 r9,r9
a98: 01 70 05 1f umulh r8,0x3f
a9c: 20 70 03 e2 movepc rret,8
aa0: 14 30 fd 5c br 10 <compare>,#al
aa4: 00 10 00 41 add r2,1
aa8: 0d 40 41 00 wl16 r8,0x200
aac: 0d 60 01 03 wh16 r8,0x3
ab0: 10 40 01 08 ld32 r8,r8
ab4: 0d 40 49 38 wl16 r9,0x258
ab8: 0d 60 01 23 wh16 r9,0x3
abc: 10 40 01 29 ld32 r9,r9
ac0: 01 70 0d 1f umulh r8,0x7f
ac4: 20 70 03 e2 movepc rret,8
ac8: 14 30 fd 52 br 10 <compare>,#al
acc: 00 10 00 41 add r2,1
ad0: 0d 40 41 04 wl16 r8,0x204
ad4: 0d 60 01 03 wh16 r8,0x3
ad8: 10 40 01 08 ld32 r8,r8
adc: 0d 40 49 3c wl16 r9,0x25c
ae0: 0d 60 01 23 wh16 r9,0x3
ae4: 10 40 01 29 ld32 r9,r9
ae8: 01 70 1d 1f umulh r8,0xff
aec: 20 70 03 e2 movepc rret,8
af0: 14 30 fd 48 br 10 <compare>,#al
af4: 00 10 00 41 add r2,1
af8: 0d 40 41 08 wl16 r8,0x208
afc: 0d 60 01 03 wh16 r8,0x3
b00: 10 40 01 08 ld32 r8,r8
b04: 0d 40 4d 20 wl16 r9,0x260
b08: 0d 60 01 23 wh16 r9,0x3
b0c: 10 40 01 29 ld32 r9,r9
b10: 01 70 3d 1f umulh r8,0x1ff
b14: 20 70 03 e2 movepc rret,8
b18: 14 30 fd 3e br 10 <compare>,#al
b1c: 00 10 00 41 add r2,1
b20: 0d 40 41 0c wl16 r8,0x20c
b24: 0d 60 01 03 wh16 r8,0x3
b28: 10 40 01 08 ld32 r8,r8
b2c: 0d 40 4d 24 wl16 r9,0x264
b30: 0d 60 01 23 wh16 r9,0x3
b34: 10 40 01 29 ld32 r9,r9
b38: 01 70 7d 1f umulh r8,0x3ff
b3c: 20 70 03 e2 movepc rret,8
b40: 14 30 fd 34 br 10 <compare>,#al
b44: 00 10 00 41 add r2,1
b48: 0d 40 41 10 wl16 r8,0x210
b4c: 0d 60 01 03 wh16 r8,0x3
b50: 10 40 01 08 ld32 r8,r8
b54: 0d 40 4d 28 wl16 r9,0x268
b58: 0d 60 01 23 wh16 r9,0x3
b5c: 10 40 01 29 ld32 r9,r9
b60: 01 70 fd 1f umulh r8,0x7ff
b64: 20 70 03 e2 movepc rret,8
b68: 14 30 fd 2a br 10 <compare>,#al
b6c: 00 10 00 41 add r2,1
b70: 14 30 fd 3a br 58 <finish>,#al
Disassembly of section .assert:
00020000 <CHECK_FLAG>:
20000: 00 00 00 01 add r0,r1
00020004 <CHECK_FINISH>:
20004: 00 00 00 00 add r0,r0
00020008 <ERROR_TYPE>:
20008: 00 00 00 00 add r0,r0
0002000c <ERROR_NUMBER>:
2000c: 00 00 00 00 add r0,r0
00020010 <ERROR_RESULT>:
20010: 00 00 00 00 add r0,r0
00020014 <ERROR_EXPECT>:
20014: 00 00 00 00 add r0,r0
Disassembly of section .data:
00030000 <T_SRC0_0>:
30000: 00 00 00 00 add r0,r0
00030004 <T_SRC0_1>:
30004: 00 00 00 00 add r0,r0
00030008 <T_SRC0_2>:
30008: 00 00 00 01 add r0,r1
0003000c <T_SRC0_3>:
3000c: 00 00 00 01 add r0,r1
00030010 <T_SRC0_4>:
30010: 80 00 00 00 *unknown*
00030014 <T_SRC0_5>:
30014: 80 00 00 00 *unknown*
00030018 <T_SRC0_6>:
30018: 00 00 00 03 add r0,r3
0003001c <T_SRC0_7>:
3001c: 00 00 00 07 add r0,rtmp
00030020 <T_SRC0_8>:
30020: 00 00 00 0f add r0,r15
00030024 <T_SRC0_9>:
30024: 00 00 00 1f add r0,rret
00030028 <T_SRC0_10>:
30028: 00 00 00 3f add r1,rret
0003002c <T_SRC0_11>:
3002c: 00 00 00 7f add r3,rret
00030030 <T_SRC0_12>:
30030: 00 00 00 ff add rtmp,rret
00030034 <T_SRC0_13>:
30034: 00 00 01 ff add r15,rret
00030038 <T_SRC0_14>:
30038: 00 00 03 ff add rret,rret
0003003c <T_SRC0_15>:
3003c: 00 00 07 ff *unknown*
00030040 <T_SRC0_16>:
30040: 00 00 0f ff *unknown*
00030044 <T_SRC0_17>:
30044: 00 00 1f ff *unknown*
00030048 <T_SRC0_18>:
30048: 00 00 3f ff *unknown*
0003004c <T_SRC0_19>:
3004c: 00 00 7f ff *unknown*
00030050 <T_SRC0_20>:
30050: 00 00 ff ff *unknown*
00030054 <T_SRC0_21>:
30054: 00 01 ff ff *unknown*
00030058 <T_SRC0_22>:
30058: 00 03 ff ff *unknown*
0003005c <T_SRC0_23>:
3005c: 00 07 ff ff *unknown*
00030060 <T_SRC0_24>:
30060: 00 0f ff ff *unknown*
00030064 <T_SRC0_25>:
30064: 00 1f ff ff *unknown*
00030068 <T_SRC0_26>:
30068: 00 3f ff ff *unknown*
0003006c <T_SRC0_27>:
3006c: 00 7f ff ff *unknown*
00030070 <T_SRC0_28>:
30070: 00 ff ff ff *unknown*
00030074 <T_SRC0_29>:
30074: 01 ff ff ff *unknown*
00030078 <T_SRC0_30>:
30078: 03 ff ff ff *unknown*
0003007c <T_SRC0_31>:
3007c: 07 ff ff ff *unknown*
00030080 <T_SRC0_32>:
30080: 0f ff ff ff *unknown*
00030084 <T_SRC0_33>:
30084: 1f ff ff ff *unknown*
00030088 <T_SRC0_34>:
30088: 3f ff ff ff *unknown*
0003008c <T_SRC0_35>:
3008c: 7f ff ff ff *unknown*
00030090 <T_SRC0_36>:
30090: ff ff ff ff *unknown*
00030094 <T_SRC1_0>:
30094: 00 00 00 01 add r0,r1
00030098 <T_SRC1_1>:
30098: 80 00 00 00 *unknown*
0003009c <T_SRC1_2>:
3009c: 00 00 00 01 add r0,r1
000300a0 <T_SRC1_3>:
300a0: 80 00 00 00 *unknown*
000300a4 <T_SRC1_4>:
300a4: 00 00 00 01 add r0,r1
000300a8 <T_SRC1_5>:
300a8: 80 00 00 00 *unknown*
000300ac <T_SRC1_6>:
300ac: 00 00 00 03 add r0,r3
000300b0 <T_SRC1_7>:
300b0: 00 00 00 07 add r0,rtmp
000300b4 <T_SRC1_8>:
300b4: 00 00 00 0f add r0,r15
000300b8 <T_SRC1_9>:
300b8: 00 00 00 1f add r0,rret
000300bc <T_SRC1_10>:
300bc: 00 00 00 3f add r1,rret
000300c0 <T_SRC1_11>:
300c0: 00 00 00 7f add r3,rret
000300c4 <T_SRC1_12>:
300c4: 00 00 00 ff add rtmp,rret
000300c8 <T_SRC1_13>:
300c8: 00 00 01 ff add r15,rret
000300cc <T_SRC1_14>:
300cc: 00 00 03 ff add rret,rret
000300d0 <T_SRC1_15>:
300d0: 00 00 07 ff *unknown*
000300d4 <T_SRC1_16>:
300d4: 00 00 0f ff *unknown*
000300d8 <T_SRC1_17>:
300d8: 00 00 1f ff *unknown*
000300dc <T_SRC1_18>:
300dc: 00 00 3f ff *unknown*
000300e0 <T_SRC1_19>:
300e0: 00 00 7f ff *unknown*
000300e4 <T_SRC1_20>:
300e4: 00 00 ff ff *unknown*
000300e8 <T_SRC1_21>:
300e8: 00 01 ff ff *unknown*
000300ec <T_SRC1_22>:
300ec: 00 03 ff ff *unknown*
000300f0 <T_SRC1_23>:
300f0: 00 07 ff ff *unknown*
000300f4 <T_SRC1_24>:
300f4: 00 0f ff ff *unknown*
000300f8 <T_SRC1_25>:
300f8: 00 1f ff ff *unknown*
000300fc <T_SRC1_26>:
300fc: 00 3f ff ff *unknown*
00030100 <T_SRC1_27>:
30100: 00 7f ff ff *unknown*
00030104 <T_SRC1_28>:
30104: 00 ff ff ff *unknown*
00030108 <T_SRC1_29>:
30108: 01 ff ff ff *unknown*
0003010c <T_SRC1_30>:
3010c: 03 ff ff ff *unknown*
00030110 <T_SRC1_31>:
30110: 07 ff ff ff *unknown*
00030114 <T_SRC1_32>:
30114: 0f ff ff ff *unknown*
00030118 <T_SRC1_33>:
30118: 1f ff ff ff *unknown*
0003011c <T_SRC1_34>:
3011c: 3f ff ff ff *unknown*
00030120 <T_SRC1_35>:
30120: 7f ff ff ff *unknown*
00030124 <T_SRC1_36>:
30124: ff ff ff ff *unknown*
00030128 <T_EXPECT0>:
30128: 00 00 00 00 add r0,r0
0003012c <T_EXPECT1>:
3012c: 00 00 00 00 add r0,r0
00030130 <T_EXPECT2>:
30130: 00 00 00 00 add r0,r0
00030134 <T_EXPECT3>:
30134: 00 00 00 00 add r0,r0
00030138 <T_EXPECT4>:
30138: 00 00 00 00 add r0,r0
0003013c <T_EXPECT5>:
3013c: 40 00 00 00 *unknown*
00030140 <T_EXPECT6>:
30140: 00 00 00 00 add r0,r0
00030144 <T_EXPECT7>:
30144: 00 00 00 00 add r0,r0
00030148 <T_EXPECT8>:
30148: 00 00 00 00 add r0,r0
0003014c <T_EXPECT9>:
3014c: 00 00 00 00 add r0,r0
00030150 <T_EXPECT10>:
30150: 00 00 00 00 add r0,r0
00030154 <T_EXPECT11>:
30154: 00 00 00 00 add r0,r0
00030158 <T_EXPECT12>:
30158: 00 00 00 00 add r0,r0
0003015c <T_EXPECT13>:
3015c: 00 00 00 00 add r0,r0
00030160 <T_EXPECT14>:
30160: 00 00 00 00 add r0,r0
00030164 <T_EXPECT15>:
30164: 00 00 00 00 add r0,r0
00030168 <T_EXPECT16>:
30168: 00 00 00 00 add r0,r0
0003016c <T_EXPECT17>:
3016c: 00 00 00 00 add r0,r0
00030170 <T_EXPECT18>:
30170: 00 00 00 00 add r0,r0
00030174 <T_EXPECT19>:
30174: 00 00 00 00 add r0,r0
00030178 <T_EXPECT20>:
30178: 00 00 00 00 add r0,r0
0003017c <T_EXPECT21>:
3017c: 00 00 00 03 add r0,r3
00030180 <T_EXPECT22>:
30180: 00 00 00 0f add r0,r15
00030184 <T_EXPECT23>:
30184: 00 00 00 3f add r1,rret
00030188 <T_EXPECT24>:
30188: 00 00 00 ff add rtmp,rret
0003018c <T_EXPECT25>:
3018c: 00 00 03 ff add rret,rret
00030190 <T_EXPECT26>:
30190: 00 00 0f ff *unknown*
00030194 <T_EXPECT27>:
30194: 00 00 3f ff *unknown*
00030198 <T_EXPECT28>:
30198: 00 00 ff ff *unknown*
0003019c <T_EXPECT29>:
3019c: 00 03 ff ff *unknown*
000301a0 <T_EXPECT30>:
301a0: 00 0f ff ff *unknown*
000301a4 <T_EXPECT31>:
301a4: 00 3f ff ff *unknown*
000301a8 <T_EXPECT32>:
301a8: 00 ff ff ff *unknown*
000301ac <T_EXPECT33>:
301ac: 03 ff ff ff *unknown*
000301b0 <T_EXPECT34>:
301b0: 0f ff ff ff *unknown*
000301b4 <T_EXPECT35>:
301b4: 3f ff ff ff *unknown*
000301b8 <T_EXPECT36>:
301b8: ff ff ff fe *unknown*
000301bc <T_IMM_DST0>:
301bc: 00 00 00 00 add r0,r0
000301c0 <T_IMM_DST1>:
301c0: 00 00 00 00 add r0,r0
000301c4 <T_IMM_DST2>:
301c4: 00 00 00 00 add r0,r0
000301c8 <T_IMM_DST3>:
301c8: 00 00 00 01 add r0,r1
000301cc <T_IMM_DST4>:
301cc: 00 00 00 01 add r0,r1
000301d0 <T_IMM_DST5>:
301d0: 00 00 00 01 add r0,r1
000301d4 <T_IMM_DST6>:
301d4: 00 00 02 00 add r16,r0
000301d8 <T_IMM_DST7>:
301d8: 00 00 02 00 add r16,r0
000301dc <T_IMM_DST8>:
301dc: 00 00 02 00 add r16,r0
000301e0 <T_IMM_DST9>:
301e0: 00 00 04 00 *unknown*
000301e4 <T_IMM_DST10>:
301e4: 00 00 04 00 *unknown*
000301e8 <T_IMM_DST11>:
301e8: 00 00 04 00 *unknown*
000301ec <T_IMM_DST12>:
301ec: 00 00 00 03 add r0,r3
000301f0 <T_IMM_DST13>:
301f0: 00 00 00 07 add r0,rtmp
000301f4 <T_IMM_DST14>:
301f4: 00 00 00 0f add r0,r15
000301f8 <T_IMM_DST15>:
301f8: 00 00 00 1f add r0,rret
000301fc <T_IMM_DST16>:
301fc: 00 00 00 3f add r1,rret
00030200 <T_IMM_DST17>:
30200: 00 00 00 7f add r3,rret
00030204 <T_IMM_DST18>:
30204: 00 00 00 ff add rtmp,rret
00030208 <T_IMM_DST19>:
30208: 00 00 01 ff add r15,rret
0003020c <T_IMM_DST20>:
3020c: 00 00 03 ff add rret,rret
00030210 <T_IMM_DST21>:
30210: 00 00 07 ff *unknown*
00030214 <T_IMM_EXPECT0>:
30214: 00 00 00 00 add r0,r0
00030218 <T_IMM_EXPECT1>:
30218: 00 00 00 00 add r0,r0
0003021c <T_IMM_EXPECT2>:
3021c: 00 00 00 00 add r0,r0
00030220 <T_IMM_EXPECT3>:
30220: 00 00 00 00 add r0,r0
00030224 <T_IMM_EXPECT4>:
30224: 00 00 00 00 add r0,r0
00030228 <T_IMM_EXPECT5>:
30228: 00 00 00 00 add r0,r0
0003022c <T_IMM_EXPECT6>:
3022c: 00 00 00 00 add r0,r0
00030230 <T_IMM_EXPECT7>:
30230: 00 00 00 00 add r0,r0
00030234 <T_IMM_EXPECT8>:
30234: 00 00 00 00 add r0,r0
00030238 <T_IMM_EXPECT9>:
30238: 00 00 00 00 add r0,r0
0003023c <T_IMM_EXPECT10>:
3023c: 00 00 00 00 add r0,r0
00030240 <T_IMM_EXPECT11>:
30240: 00 00 00 00 add r0,r0
00030244 <T_IMM_EXPECT12>:
30244: 00 00 00 00 add r0,r0
00030248 <T_IMM_EXPECT13>:
30248: 00 00 00 00 add r0,r0
0003024c <T_IMM_EXPECT14>:
3024c: 00 00 00 00 add r0,r0
00030250 <T_IMM_EXPECT15>:
30250: 00 00 00 00 add r0,r0
00030254 <T_IMM_EXPECT16>:
30254: 00 00 00 00 add r0,r0
00030258 <T_IMM_EXPECT17>:
30258: 00 00 00 00 add r0,r0
0003025c <T_IMM_EXPECT18>:
3025c: 00 00 00 00 add r0,r0
00030260 <T_IMM_EXPECT19>:
30260: 00 00 00 00 add r0,r0
00030264 <T_IMM_EXPECT20>:
30264: 00 00 00 00 add r0,r0
00030268 <T_IMM_EXPECT21>:
30268: 00 00 00 00 add r0,r0
Disassembly of section .stack:
000f0000 <STACK_INDEX>:
f0000: 00 00 00 00 add r0,r0
| 26.61805 | 45 | 0.650895 |
c5626c17377edad413ee747573292154643e9e3e | 6,201 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_st_4k_sm_/i9-9900K_12_0xca.log_21829_1000.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_st_4k_sm_/i9-9900K_12_0xca.log_21829_1000.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_st_4k_sm_/i9-9900K_12_0xca.log_21829_1000.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x7f11, %rsi
lea addresses_WT_ht+0x1e39, %rdi
nop
xor $39154, %r15
mov $37, %rcx
rep movsb
nop
sub $54745, %rbp
lea addresses_WC_ht+0x391, %r9
nop
nop
nop
sub $59736, %r11
mov $0x6162636465666768, %rcx
movq %rcx, (%r9)
nop
nop
nop
nop
nop
cmp $74, %rdi
lea addresses_WC_ht+0x19dc5, %r15
clflush (%r15)
nop
nop
nop
inc %rdi
movb (%r15), %cl
nop
nop
nop
nop
nop
inc %rsi
lea addresses_D_ht+0x1e7d1, %r11
clflush (%r11)
nop
nop
xor $19317, %rbp
mov $0x6162636465666768, %r15
movq %r15, (%r11)
nop
nop
nop
cmp %r9, %r9
lea addresses_A_ht+0x1b5c9, %r9
nop
xor %rcx, %rcx
movw $0x6162, (%r9)
nop
cmp %r11, %r11
lea addresses_A_ht+0x12811, %rsi
lea addresses_WC_ht+0x8285, %rdi
nop
nop
nop
nop
nop
xor %rax, %rax
mov $104, %rcx
rep movsb
nop
nop
nop
cmp %rax, %rax
lea addresses_D_ht+0xee49, %rsi
lea addresses_normal_ht+0xb3fd, %rdi
nop
nop
nop
add $59929, %r15
mov $83, %rcx
rep movsl
nop
nop
nop
nop
and $32903, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r15
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r8
push %r9
push %rcx
push %rdi
push %rdx
// Store
lea addresses_US+0xe711, %r9
nop
nop
inc %rdi
movw $0x5152, (%r9)
nop
cmp %r9, %r9
// Store
lea addresses_A+0x711, %rdi
nop
nop
nop
sub $15201, %r8
mov $0x5152535455565758, %r13
movq %r13, (%rdi)
inc %rdx
// Faulty Load
lea addresses_A+0x711, %rdx
nop
nop
nop
and %r10, %r10
mov (%rdx), %r13d
lea oracles, %rdi
and $0xff, %r13
shlq $12, %r13
mov (%rdi,%r13,1), %r13
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 2, 'NT': True, 'type': 'addresses_A', 'same': True, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_US', 'same': False, 'AVXalign': False, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_A', 'same': True, 'AVXalign': False, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_A', 'same': True, 'AVXalign': True, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 3}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 1}}
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 1}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 4}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 0}}
{'OP': 'REPM', 'src': {'same': True, 'type': 'addresses_D_ht', 'congruent': 2}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 2}}
{'58': 21829}
58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58
*/
| 37.131737 | 2,999 | 0.657797 |
f10c7033a2b05995daada5e9be974de99c5dbf04 | 305,892 | asm | Assembly | src/preset_data_nmg.asm | Lui37/lttphack | 700aedee447b0e0063015d75e25bed6d0bfc9533 | [
"MIT"
] | null | null | null | src/preset_data_nmg.asm | Lui37/lttphack | 700aedee447b0e0063015d75e25bed6d0bfc9533 | [
"MIT"
] | null | null | null | src/preset_data_nmg.asm | Lui37/lttphack | 700aedee447b0e0063015d75e25bed6d0bfc9533 | [
"MIT"
] | null | null | null | ; Preset locations
preset_nmg_esc_bed:
db $02 ; Dungeon
dw $0104 ; Room Index
dw $2110 ; BG1 Vertical Scroll
dw $2110 ; BG2 Vertical Scroll
dw $0900 ; BG1 Horizontal Scroll
dw $0900 ; BG2 Horizontal Scroll
dw $0940 ; Link X
dw $215A ; Link Y
dw $017F ; Camera X
dw $017F ; Camera Y
dw $0816 ; Door Settings
dw $2100 ; Relative Coords HU
dw $2000 ; Relative Coords FU
dw $2110 ; Relative Coords HD
dw $2110 ; Relative Coords FD
dw $0900 ; Relative Coords HL
dw $0900 ; Relative Coords FL
dw $0900 ; Relative Coords HR
dw $0A00 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0200 ; Quadrant 2
db $03 ; Main Graphics
db $FF ; Music Track
db $00 ; Starting Floor
db $FF ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_esc_bed_after
preset_nmg_esc_courtyard:
db $02 ; Dungeon
dw $0055 ; Room Index
dw $0B10 ; BG1 Vertical Scroll
dw $0B10 ; BG2 Vertical Scroll
dw $0A00 ; BG1 Horizontal Scroll
dw $0A00 ; BG2 Horizontal Scroll
dw $0A78 ; Link X
dw $0BC6 ; Link Y
dw $007F ; Camera X
dw $0188 ; Camera Y
dw $0000 ; Door Settings
dw $0B00 ; Relative Coords HU
dw $0A00 ; Relative Coords FU
dw $0B10 ; Relative Coords HD
dw $0B10 ; Relative Coords FD
dw $0A00 ; Relative Coords HL
dw $0A00 ; Relative Coords FL
dw $0A00 ; Relative Coords HR
dw $0B00 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0200 ; Quadrant 2
db $01 ; Main Graphics
db $03 ; Music Track
db $FF ; Starting Floor
db $FF ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_esc_courtyard_after
preset_nmg_esc_entrance:
db $01 ; Overworld
dw $001B ; Screen Index
dw $07F9 ; Link X
dw $0709 ; Link Y
dw $06C0 ; BG1 Vertical Scroll
dw $06AB ; BG2 Vertical Scroll
dw $39EC ; BG1 Horizontal Scroll
dw $0785 ; BG2 Horizontal Scroll
dw $0804 ; Scroll X
dw $0718 ; Scroll Y
dw $05B2 ; Unknown 1
dw $0005 ; Unknown 2
dw $0009 ; Unknown 3
dw sram_nmg_esc_entrance_after
preset_nmg_esc_1st_keyguard:
db $02 ; Dungeon
dw $0001 ; Room Index
dw $0000 ; BG1 Vertical Scroll
dw $0000 ; BG2 Vertical Scroll
dw $0280 ; BG1 Horizontal Scroll
dw $0280 ; BG2 Horizontal Scroll
dw $02F8 ; Link X
dw $0062 ; Link Y
dw $00FF ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0000 ; Relative Coords HU
dw $0000 ; Relative Coords FU
dw $0010 ; Relative Coords HD
dw $0110 ; Relative Coords FD
dw $0200 ; Relative Coords HL
dw $0200 ; Relative Coords FL
dw $0200 ; Relative Coords HR
dw $0300 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0000 ; Quadrant 2
db $04 ; Main Graphics
db $10 ; Music Track
db $00 ; Starting Floor
db $02 ; Palace No
db $00 ; Door Orientation
db $01 ; Starting Background
dw sram_nmg_esc_1st_keyguard_after
preset_nmg_esc_stealth_room:
db $02 ; Dungeon
dw $0082 ; Room Index
dw $110B ; BG1 Vertical Scroll
dw $110B ; BG2 Vertical Scroll
dw $0400 ; BG1 Horizontal Scroll
dw $0400 ; BG2 Horizontal Scroll
dw $040B ; Link X
dw $1178 ; Link Y
dw $007F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $1100 ; Relative Coords HU
dw $1000 ; Relative Coords FU
dw $1110 ; Relative Coords HD
dw $1110 ; Relative Coords FD
dw $0400 ; Relative Coords HL
dw $0400 ; Relative Coords FL
dw $0400 ; Relative Coords HR
dw $0500 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0200 ; Quadrant 2
db $04 ; Main Graphics
db $10 ; Music Track
db $FF ; Starting Floor
db $02 ; Palace No
db $00 ; Door Orientation
db $01 ; Starting Background
dw sram_nmg_esc_stealth_room_after
preset_nmg_esc_2nd_keyguard:
db $02 ; Dungeon
dw $0071 ; Room Index
dw $0F0B ; BG1 Vertical Scroll
dw $0F0B ; BG2 Vertical Scroll
dw $0200 ; BG1 Horizontal Scroll
dw $0200 ; BG2 Horizontal Scroll
dw $02AD ; Link X
dw $0F78 ; Link Y
dw $007F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $0F00 ; Relative Coords HU
dw $0E00 ; Relative Coords FU
dw $0F10 ; Relative Coords HD
dw $0F10 ; Relative Coords FD
dw $0200 ; Relative Coords HL
dw $0200 ; Relative Coords FL
dw $0200 ; Relative Coords HR
dw $0300 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0200 ; Quadrant 2
db $04 ; Main Graphics
db $10 ; Music Track
db $FF ; Starting Floor
db $02 ; Palace No
db $00 ; Door Orientation
db $01 ; Starting Background
dw sram_nmg_esc_2nd_keyguard_after
preset_nmg_esc_ball_n_chains:
db $02 ; Dungeon
dw $0070 ; Room Index
dw $0E00 ; BG1 Vertical Scroll
dw $0E00 ; BG2 Vertical Scroll
dw $0000 ; BG1 Horizontal Scroll
dw $0000 ; BG2 Horizontal Scroll
dw $0050 ; Link X
dw $0E2D ; Link Y
dw $007F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0E00 ; Relative Coords HU
dw $0E00 ; Relative Coords FU
dw $0E10 ; Relative Coords HD
dw $0F10 ; Relative Coords FD
dw $0000 ; Relative Coords HL
dw $0000 ; Relative Coords FL
dw $0000 ; Relative Coords HR
dw $0100 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0000 ; Quadrant 2
db $04 ; Main Graphics
db $10 ; Music Track
db $FE ; Starting Floor
db $02 ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_esc_ball_n_chains_after
preset_nmg_esc_backtracking:
db $02 ; Dungeon
dw $0080 ; Room Index
dw $1000 ; BG1 Vertical Scroll
dw $1000 ; BG2 Vertical Scroll
dw $0000 ; BG1 Horizontal Scroll
dw $0000 ; BG2 Horizontal Scroll
dw $0050 ; Link X
dw $1026 ; Link Y
dw $007F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $1000 ; Relative Coords HU
dw $1000 ; Relative Coords FU
dw $1010 ; Relative Coords HD
dw $1110 ; Relative Coords FD
dw $0000 ; Relative Coords HL
dw $0000 ; Relative Coords FL
dw $0000 ; Relative Coords HR
dw $0100 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0000 ; Quadrant 2
db $04 ; Main Graphics
db $10 ; Music Track
db $FD ; Starting Floor
db $02 ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_esc_backtracking_after
preset_nmg_esc_keyguard_revisited:
db $02 ; Dungeon
dw $0072 ; Room Index
dw $0F00 ; BG1 Vertical Scroll
dw $0F00 ; BG2 Vertical Scroll
dw $0480 ; BG1 Horizontal Scroll
dw $0480 ; BG2 Horizontal Scroll
dw $04F8 ; Link X
dw $0F2D ; Link Y
dw $00FF ; Camera X
dw $0178 ; Camera Y
dw $0000 ; Door Settings
dw $0F00 ; Relative Coords HU
dw $0E00 ; Relative Coords FU
dw $0F10 ; Relative Coords HD
dw $0F10 ; Relative Coords FD
dw $0400 ; Relative Coords HL
dw $0400 ; Relative Coords FL
dw $0400 ; Relative Coords HR
dw $0500 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0200 ; Quadrant 2
db $04 ; Main Graphics
db $10 ; Music Track
db $FF ; Starting Floor
db $02 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_esc_keyguard_revisited_after
preset_nmg_esc_throne_room:
db $02 ; Dungeon
dw $0051 ; Room Index
dw $0A21 ; BG1 Vertical Scroll
dw $0A21 ; BG2 Vertical Scroll
dw $0280 ; BG1 Horizontal Scroll
dw $0280 ; BG2 Horizontal Scroll
dw $02F8 ; Link X
dw $0A8E ; Link Y
dw $00FF ; Camera X
dw $0099 ; Camera Y
dw $0000 ; Door Settings
dw $0A00 ; Relative Coords HU
dw $0A00 ; Relative Coords FU
dw $0A10 ; Relative Coords HD
dw $0B10 ; Relative Coords FD
dw $0200 ; Relative Coords HL
dw $0200 ; Relative Coords FL
dw $0200 ; Relative Coords HR
dw $0300 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0000 ; Quadrant 2
db $04 ; Main Graphics
db $10 ; Music Track
db $01 ; Starting Floor
db $02 ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_esc_throne_room_after
preset_nmg_esc_snake_avoidance_room:
db $02 ; Dungeon
dw $0041 ; Room Index
dw $0040 ; BG1 Vertical Scroll
dw $0800 ; BG2 Vertical Scroll
dw $FFCF ; BG1 Horizontal Scroll
dw $0300 ; BG2 Horizontal Scroll
dw $03A8 ; Link X
dw $082D ; Link Y
dw $017F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0800 ; Relative Coords HU
dw $0800 ; Relative Coords FU
dw $0810 ; Relative Coords HD
dw $0910 ; Relative Coords FD
dw $0300 ; Relative Coords HL
dw $0200 ; Relative Coords FL
dw $0300 ; Relative Coords HR
dw $0300 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0001 ; Quadrant 2
db $04 ; Main Graphics
db $10 ; Music Track
db $01 ; Starting Floor
db $00 ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_esc_snake_avoidance_room_after
preset_nmg_esc_water_rooms:
db $02 ; Dungeon
dw $0032 ; Room Index
dw $0040 ; BG1 Vertical Scroll
dw $0600 ; BG2 Vertical Scroll
dw $FFFF ; BG1 Horizontal Scroll
dw $0480 ; BG2 Horizontal Scroll
dw $04F8 ; Link X
dw $061F ; Link Y
dw $00FF ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0600 ; Relative Coords HU
dw $0600 ; Relative Coords FU
dw $0610 ; Relative Coords HD
dw $0710 ; Relative Coords FD
dw $0400 ; Relative Coords HL
dw $0400 ; Relative Coords FL
dw $0400 ; Relative Coords HR
dw $0500 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0000 ; Quadrant 2
db $04 ; Main Graphics
db $10 ; Music Track
db $FF ; Starting Floor
db $00 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_esc_water_rooms_after
preset_nmg_esc_keyrat:
db $02 ; Dungeon
dw $0021 ; Room Index
dw $0040 ; BG1 Vertical Scroll
dw $0500 ; BG2 Vertical Scroll
dw $FFFF ; BG1 Horizontal Scroll
dw $0280 ; BG2 Horizontal Scroll
dw $02F8 ; Link X
dw $052D ; Link Y
dw $00FF ; Camera X
dw $0178 ; Camera Y
dw $0000 ; Door Settings
dw $0500 ; Relative Coords HU
dw $0400 ; Relative Coords FU
dw $0510 ; Relative Coords HD
dw $0510 ; Relative Coords FD
dw $0200 ; Relative Coords HL
dw $0200 ; Relative Coords FL
dw $0200 ; Relative Coords HR
dw $0300 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0200 ; Quadrant 2
db $04 ; Main Graphics
db $10 ; Music Track
db $FF ; Starting Floor
db $00 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_esc_keyrat_after
preset_nmg_esc_last_two_screens:
db $02 ; Dungeon
dw $0011 ; Room Index
dw $0200 ; BG1 Vertical Scroll
dw $0200 ; BG2 Vertical Scroll
dw $0300 ; BG1 Horizontal Scroll
dw $0300 ; BG2 Horizontal Scroll
dw $0378 ; Link X
dw $022D ; Link Y
dw $017F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0200 ; Relative Coords HU
dw $0200 ; Relative Coords FU
dw $0210 ; Relative Coords HD
dw $0310 ; Relative Coords FD
dw $0300 ; Relative Coords HL
dw $0200 ; Relative Coords FL
dw $0300 ; Relative Coords HR
dw $0300 ; Relative Coords FR
dw $0200 ; Quadrant 1
dw $0001 ; Quadrant 2
db $04 ; Main Graphics
db $10 ; Music Track
db $FF ; Starting Floor
db $00 ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_esc_last_two_screens_after
preset_nmg_east_before_cutscene:
db $02 ; Dungeon
dw $0002 ; Room Index
dw $0110 ; BG1 Vertical Scroll
dw $0110 ; BG2 Vertical Scroll
dw $0480 ; BG1 Horizontal Scroll
dw $0480 ; BG2 Horizontal Scroll
dw $04F8 ; Link X
dw $01AC ; Link Y
dw $00FF ; Camera X
dw $0188 ; Camera Y
dw $0000 ; Door Settings
dw $0100 ; Relative Coords HU
dw $0000 ; Relative Coords FU
dw $0110 ; Relative Coords HD
dw $0110 ; Relative Coords FD
dw $0400 ; Relative Coords HL
dw $0400 ; Relative Coords FL
dw $0400 ; Relative Coords HR
dw $0500 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0200 ; Quadrant 2
db $04 ; Main Graphics
db $10 ; Music Track
db $00 ; Starting Floor
db $00 ; Palace No
db $01 ; Door Orientation
db $01 ; Starting Background
dw sram_nmg_east_before_cutscene_after
preset_nmg_east_after_cutscene:
db $02 ; Dungeon
dw $0012 ; Room Index
dw $020D ; BG1 Vertical Scroll
dw $020D ; BG2 Vertical Scroll
dw $0480 ; BG1 Horizontal Scroll
dw $0480 ; BG2 Horizontal Scroll
dw $04F8 ; Link X
dw $027A ; Link Y
dw $00FF ; Camera X
dw $0085 ; Camera Y
dw $0000 ; Door Settings
dw $0200 ; Relative Coords HU
dw $0200 ; Relative Coords FU
dw $0210 ; Relative Coords HD
dw $0310 ; Relative Coords FD
dw $0400 ; Relative Coords HL
dw $0400 ; Relative Coords FL
dw $0400 ; Relative Coords HR
dw $0500 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0000 ; Quadrant 2
db $04 ; Main Graphics
db $10 ; Music Track
db $00 ; Starting Floor
db $00 ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_east_after_cutscene_after
preset_nmg_east_octoroc:
db $01 ; Overworld
dw $001D ; Screen Index
dw $0B10 ; Link X
dw $07DC ; Link Y
dw $068F ; BG1 Vertical Scroll
dw $071E ; BG2 Vertical Scroll
dw $0A4F ; BG1 Horizontal Scroll
dw $0A9E ; BG2 Horizontal Scroll
dw $0B1B ; Scroll X
dw $078B ; Scroll Y
dw $0894 ; Unknown 1
dw $0000 ; Unknown 2
dw $0002 ; Unknown 3
dw sram_nmg_east_octoroc_after
preset_nmg_east_outside_palace:
db $01 ; Overworld
dw $002E ; Screen Index
dw $0C70 ; Link X
dw $0A08 ; Link Y
dw $0A00 ; BG1 Vertical Scroll
dw $0A00 ; BG2 Vertical Scroll
dw $0C00 ; BG1 Horizontal Scroll
dw $0C00 ; BG2 Horizontal Scroll
dw $0C7D ; Scroll X
dw $0A6D ; Scroll Y
dw $0000 ; Unknown 1
dw $0000 ; Unknown 2
dw $0000 ; Unknown 3
dw sram_nmg_east_outside_palace_after
preset_nmg_east_entrance:
db $01 ; Overworld
dw $001E ; Screen Index
dw $0F50 ; Link X
dw $0637 ; Link Y
dw $0791 ; BG1 Vertical Scroll
dw $0600 ; BG2 Vertical Scroll
dw $0D6F ; BG1 Horizontal Scroll
dw $0EDE ; BG2 Horizontal Scroll
dw $0F5B ; Scroll X
dw $066F ; Scroll Y
dw $005A ; Unknown 1
dw $0000 ; Unknown 2
dw $FFF2 ; Unknown 3
dw sram_nmg_east_entrance_after
preset_nmg_east_stalfos_room:
db $02 ; Dungeon
dw $00A8 ; Room Index
dw $150A ; BG1 Vertical Scroll
dw $150A ; BG2 Vertical Scroll
dw $1100 ; BG1 Horizontal Scroll
dw $1100 ; BG2 Horizontal Scroll
dw $1128 ; Link X
dw $1577 ; Link Y
dw $017F ; Camera X
dw $0182 ; Camera Y
dw $0000 ; Door Settings
dw $1500 ; Relative Coords HU
dw $1400 ; Relative Coords FU
dw $1510 ; Relative Coords HD
dw $1510 ; Relative Coords FD
dw $1100 ; Relative Coords HL
dw $1000 ; Relative Coords FL
dw $1100 ; Relative Coords HR
dw $1100 ; Relative Coords FR
dw $0200 ; Quadrant 1
dw $0201 ; Quadrant 2
db $05 ; Main Graphics
db $11 ; Music Track
db $00 ; Starting Floor
db $04 ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_east_stalfos_room_after
preset_nmg_east_big_chest_room_1:
db $02 ; Dungeon
dw $00A8 ; Room Index
dw $140B ; BG1 Vertical Scroll
dw $140B ; BG2 Vertical Scroll
dw $1100 ; BG1 Horizontal Scroll
dw $1100 ; BG2 Horizontal Scroll
dw $11C6 ; Link X
dw $1478 ; Link Y
dw $017F ; Camera X
dw $0083 ; Camera Y
dw $0000 ; Door Settings
dw $1400 ; Relative Coords HU
dw $1400 ; Relative Coords FU
dw $1410 ; Relative Coords HD
dw $1510 ; Relative Coords FD
dw $1100 ; Relative Coords HL
dw $1000 ; Relative Coords FL
dw $1100 ; Relative Coords HR
dw $1100 ; Relative Coords FR
dw $0200 ; Quadrant 1
dw $0001 ; Quadrant 2
db $05 ; Main Graphics
db $11 ; Music Track
db $00 ; Starting Floor
db $04 ; Palace No
db $02 ; Door Orientation
db $01 ; Starting Background
dw sram_nmg_east_big_chest_room_1_after
preset_nmg_east_dark_key_room:
db $02 ; Dungeon
dw $00BA ; Room Index
dw $0105 ; BG1 Vertical Scroll
dw $160B ; BG2 Vertical Scroll
dw $00B0 ; BG1 Horizontal Scroll
dw $1400 ; BG2 Horizontal Scroll
dw $14CA ; Link X
dw $1678 ; Link Y
dw $007F ; Camera X
dw $0083 ; Camera Y
dw $0000 ; Door Settings
dw $1600 ; Relative Coords HU
dw $1600 ; Relative Coords FU
dw $1610 ; Relative Coords HD
dw $1710 ; Relative Coords FD
dw $1400 ; Relative Coords HL
dw $1400 ; Relative Coords FL
dw $1400 ; Relative Coords HR
dw $1500 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0000 ; Quadrant 2
db $05 ; Main Graphics
db $11 ; Music Track
db $00 ; Starting Floor
db $04 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_east_dark_key_room_after
preset_nmg_east_big_key_dmg_boost:
db $02 ; Dungeon
dw $00B9 ; Room Index
dw $160B ; BG1 Vertical Scroll
dw $160B ; BG2 Vertical Scroll
dw $1200 ; BG1 Horizontal Scroll
dw $1200 ; BG2 Horizontal Scroll
dw $1225 ; Link X
dw $1678 ; Link Y
dw $007F ; Camera X
dw $0083 ; Camera Y
dw $0000 ; Door Settings
dw $1600 ; Relative Coords HU
dw $1600 ; Relative Coords FU
dw $1610 ; Relative Coords HD
dw $1710 ; Relative Coords FD
dw $1200 ; Relative Coords HL
dw $1200 ; Relative Coords FL
dw $1200 ; Relative Coords HR
dw $1300 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0000 ; Quadrant 2
db $05 ; Main Graphics
db $11 ; Music Track
db $00 ; Starting Floor
db $04 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_east_big_key_dmg_boost_after
preset_nmg_east_big_chest_room_2:
db $02 ; Dungeon
dw $00A8 ; Room Index
dw $140B ; BG1 Vertical Scroll
dw $140B ; BG2 Vertical Scroll
dw $1100 ; BG1 Horizontal Scroll
dw $1100 ; BG2 Horizontal Scroll
dw $11B2 ; Link X
dw $1478 ; Link Y
dw $017F ; Camera X
dw $0083 ; Camera Y
dw $0000 ; Door Settings
dw $1400 ; Relative Coords HU
dw $1400 ; Relative Coords FU
dw $1410 ; Relative Coords HD
dw $1510 ; Relative Coords FD
dw $1100 ; Relative Coords HL
dw $1000 ; Relative Coords FL
dw $1100 ; Relative Coords HR
dw $1100 ; Relative Coords FR
dw $0200 ; Quadrant 1
dw $0001 ; Quadrant 2
db $05 ; Main Graphics
db $11 ; Music Track
db $00 ; Starting Floor
db $04 ; Palace No
db $02 ; Door Orientation
db $01 ; Starting Background
dw sram_nmg_east_big_chest_room_2_after
preset_nmg_east_gwg:
db $02 ; Dungeon
dw $00A9 ; Room Index
dw $1400 ; BG1 Vertical Scroll
dw $1400 ; BG2 Vertical Scroll
dw $1280 ; BG1 Horizontal Scroll
dw $1280 ; BG2 Horizontal Scroll
dw $12F8 ; Link X
dw $142B ; Link Y
dw $00FF ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $1400 ; Relative Coords HU
dw $1400 ; Relative Coords FU
dw $1410 ; Relative Coords HD
dw $1510 ; Relative Coords FD
dw $1200 ; Relative Coords HL
dw $1200 ; Relative Coords FL
dw $1200 ; Relative Coords HR
dw $1300 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0000 ; Quadrant 2
db $05 ; Main Graphics
db $11 ; Music Track
db $00 ; Starting Floor
db $04 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_east_gwg_after
preset_nmg_east_pot_room:
db $02 ; Dungeon
dw $0099 ; Room Index
dw $0040 ; BG1 Vertical Scroll
dw $1300 ; BG2 Vertical Scroll
dw $FFFF ; BG1 Horizontal Scroll
dw $1200 ; BG2 Horizontal Scroll
dw $1278 ; Link X
dw $132D ; Link Y
dw $007F ; Camera X
dw $0178 ; Camera Y
dw $0000 ; Door Settings
dw $1300 ; Relative Coords HU
dw $1200 ; Relative Coords FU
dw $1310 ; Relative Coords HD
dw $1310 ; Relative Coords FD
dw $1200 ; Relative Coords HL
dw $1200 ; Relative Coords FL
dw $1200 ; Relative Coords HR
dw $1300 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0200 ; Quadrant 2
db $05 ; Main Graphics
db $11 ; Music Track
db $00 ; Starting Floor
db $04 ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_east_pot_room_after
preset_nmg_east_zeldagamer_room:
db $02 ; Dungeon
dw $00D9 ; Room Index
dw $1B0B ; BG1 Vertical Scroll
dw $1B0B ; BG2 Vertical Scroll
dw $1200 ; BG1 Horizontal Scroll
dw $1200 ; BG2 Horizontal Scroll
dw $1225 ; Link X
dw $1B78 ; Link Y
dw $007F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $1B00 ; Relative Coords HU
dw $1A00 ; Relative Coords FU
dw $1B10 ; Relative Coords HD
dw $1B10 ; Relative Coords FD
dw $1200 ; Relative Coords HL
dw $1200 ; Relative Coords FL
dw $1200 ; Relative Coords HR
dw $1300 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0200 ; Quadrant 2
db $05 ; Main Graphics
db $11 ; Music Track
db $01 ; Starting Floor
db $04 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_east_zeldagamer_room_after
preset_nmg_east_armos:
db $02 ; Dungeon
dw $00D8 ; Room Index
dw $1A00 ; BG1 Vertical Scroll
dw $1A00 ; BG2 Vertical Scroll
dw $1100 ; BG1 Horizontal Scroll
dw $1100 ; BG2 Horizontal Scroll
dw $1178 ; Link X
dw $1A30 ; Link Y
dw $017F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $1A00 ; Relative Coords HU
dw $1A00 ; Relative Coords FU
dw $1A10 ; Relative Coords HD
dw $1B10 ; Relative Coords FD
dw $1100 ; Relative Coords HL
dw $1000 ; Relative Coords FL
dw $1100 ; Relative Coords HR
dw $1100 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0001 ; Quadrant 2
db $05 ; Main Graphics
db $11 ; Music Track
db $01 ; Starting Floor
db $04 ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_east_armos_after
preset_nmg_desert_outside_eastern_palace:
db $01 ; Overworld
dw $001E ; Screen Index
dw $0F50 ; Link X
dw $0638 ; Link Y
dw $0600 ; BG1 Vertical Scroll
dw $0600 ; BG2 Vertical Scroll
dw $0ED6 ; BG1 Horizontal Scroll
dw $0ED6 ; BG2 Horizontal Scroll
dw $0F5B ; Scroll X
dw $066D ; Scroll Y
dw $005A ; Unknown 1
dw $0000 ; Unknown 2
dw $FFFA ; Unknown 3
dw sram_nmg_desert_outside_eastern_palace_after
preset_nmg_desert_ep_spinspeed:
db $02 ; Dungeon
dw $0105 ; Room Index
dw $2110 ; BG1 Vertical Scroll
dw $2110 ; BG2 Vertical Scroll
dw $0A00 ; BG1 Horizontal Scroll
dw $0A00 ; BG2 Horizontal Scroll
dw $0A78 ; Link X
dw $21C2 ; Link Y
dw $007F ; Camera X
dw $0187 ; Camera Y
dw $0000 ; Door Settings
dw $2100 ; Relative Coords HU
dw $2000 ; Relative Coords FU
dw $2110 ; Relative Coords HD
dw $2110 ; Relative Coords FD
dw $0A00 ; Relative Coords HL
dw $0A00 ; Relative Coords FL
dw $0A00 ; Relative Coords HR
dw $0B00 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0200 ; Quadrant 2
db $0F ; Main Graphics
db $18 ; Music Track
db $00 ; Starting Floor
db $FF ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_desert_ep_spinspeed_after
preset_nmg_desert_bridge_screen:
db $01 ; Overworld
dw $002E ; Screen Index
dw $0C13 ; Link X
dw $0A69 ; Link Y
dw $0A06 ; BG1 Vertical Scroll
dw $0A0B ; BG2 Vertical Scroll
dw $0C3B ; BG1 Horizontal Scroll
dw $0C00 ; BG2 Horizontal Scroll
dw $0C85 ; Scroll X
dw $0A78 ; Scroll Y
dw $0000 ; Unknown 1
dw $FFF5 ; Unknown 2
dw $0000 ; Unknown 3
dw sram_nmg_desert_bridge_screen_after
preset_nmg_desert_unholy_spinspeed:
db $01 ; Overworld
dw $002A ; Screen Index
dw $0407 ; Link X
dw $0B9A ; Link Y
dw $0B20 ; BG1 Vertical Scroll
dw $0B1E ; BG2 Vertical Scroll
dw $0480 ; BG1 Horizontal Scroll
dw $0400 ; BG2 Horizontal Scroll
dw $0485 ; Scroll X
dw $0B8D ; Scroll Y
dw $0900 ; Unknown 1
dw $0000 ; Unknown 2
dw $0000 ; Unknown 3
dw sram_nmg_desert_unholy_spinspeed_after
preset_nmg_desert_water_dash:
db $01 ; Overworld
dw $002C ; Screen Index
dw $08D2 ; Link X
dw $0BE2 ; Link Y
dw $0B20 ; BG1 Vertical Scroll
dw $0B1E ; BG2 Vertical Scroll
dw $0830 ; BG1 Horizontal Scroll
dw $0860 ; BG2 Horizontal Scroll
dw $08DD ; Scroll X
dw $0B8D ; Scroll Y
dw $090C ; Unknown 1
dw $0000 ; Unknown 2
dw $0000 ; Unknown 3
dw sram_nmg_desert_water_dash_after
preset_nmg_desert_outside_desert_palace:
db $01 ; Overworld
dw $003A ; Screen Index
dw $040E ; Link X
dw $0F88 ; Link Y
dw $0E8F ; BG1 Vertical Scroll
dw $0F1E ; BG2 Vertical Scroll
dw $0480 ; BG1 Horizontal Scroll
dw $0400 ; BG2 Horizontal Scroll
dw $0485 ; Scroll X
dw $0F8B ; Scroll Y
dw $0880 ; Unknown 1
dw $0000 ; Unknown 2
dw $0000 ; Unknown 3
dw sram_nmg_desert_outside_desert_palace_after
preset_nmg_desert_desert_entrance:
db $01 ; Overworld
dw $0030 ; Screen Index
dw $0128 ; Link X
dw $0CB8 ; Link Y
dw $0D2B ; BG1 Vertical Scroll
dw $0C56 ; BG2 Vertical Scroll
dw $01D5 ; BG1 Horizontal Scroll
dw $00AA ; BG2 Horizontal Scroll
dw $012F ; Scroll X
dw $0CC3 ; Scroll Y
dw $0294 ; Unknown 1
dw $0008 ; Unknown 2
dw $FFF6 ; Unknown 3
dw sram_nmg_desert_desert_entrance_after
preset_nmg_desert_keybonk:
db $02 ; Dungeon
dw $0073 ; Room Index
dw $0F00 ; BG1 Vertical Scroll
dw $0F00 ; BG2 Vertical Scroll
dw $0700 ; BG1 Horizontal Scroll
dw $0700 ; BG2 Horizontal Scroll
dw $0778 ; Link X
dw $0F22 ; Link Y
dw $017F ; Camera X
dw $0178 ; Camera Y
dw $0000 ; Door Settings
dw $0F00 ; Relative Coords HU
dw $0E00 ; Relative Coords FU
dw $0F10 ; Relative Coords HD
dw $0F10 ; Relative Coords FD
dw $0700 ; Relative Coords HL
dw $0600 ; Relative Coords FL
dw $0700 ; Relative Coords HR
dw $0700 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0201 ; Quadrant 2
db $12 ; Main Graphics
db $11 ; Music Track
db $FF ; Starting Floor
db $06 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_desert_keybonk_after
preset_nmg_desert_pre_cannonball_room:
db $02 ; Dungeon
dw $0085 ; Room Index
dw $100B ; BG1 Vertical Scroll
dw $100B ; BG2 Vertical Scroll
dw $0A00 ; BG1 Horizontal Scroll
dw $0A00 ; BG2 Horizontal Scroll
dw $0ACB ; Link X
dw $1078 ; Link Y
dw $007F ; Camera X
dw $0083 ; Camera Y
dw $0000 ; Door Settings
dw $1000 ; Relative Coords HU
dw $1000 ; Relative Coords FU
dw $1010 ; Relative Coords HD
dw $1110 ; Relative Coords FD
dw $0A00 ; Relative Coords HL
dw $0A00 ; Relative Coords FL
dw $0A00 ; Relative Coords HR
dw $0B00 ; Relative Coords FR
dw $0200 ; Quadrant 1
dw $0000 ; Quadrant 2
db $12 ; Main Graphics
db $11 ; Music Track
db $FF ; Starting Floor
db $06 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_desert_pre_cannonball_room_after
preset_nmg_desert_pot_room:
db $02 ; Dungeon
dw $0073 ; Room Index
dw $0F0B ; BG1 Vertical Scroll
dw $0F0B ; BG2 Vertical Scroll
dw $0700 ; BG1 Horizontal Scroll
dw $0700 ; BG2 Horizontal Scroll
dw $0725 ; Link X
dw $0F78 ; Link Y
dw $017F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $0F00 ; Relative Coords HU
dw $0E00 ; Relative Coords FU
dw $0F10 ; Relative Coords HD
dw $0F10 ; Relative Coords FD
dw $0700 ; Relative Coords HL
dw $0600 ; Relative Coords FL
dw $0700 ; Relative Coords HR
dw $0700 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0201 ; Quadrant 2
db $12 ; Main Graphics
db $11 ; Music Track
db $FF ; Starting Floor
db $06 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_desert_pot_room_after
preset_nmg_desert_desert2_spinspeed:
db $02 ; Dungeon
dw $0083 ; Room Index
dw $1110 ; BG1 Vertical Scroll
dw $1110 ; BG2 Vertical Scroll
dw $0600 ; BG1 Horizontal Scroll
dw $0600 ; BG2 Horizontal Scroll
dw $0678 ; Link X
dw $11C3 ; Link Y
dw $007F ; Camera X
dw $0188 ; Camera Y
dw $0000 ; Door Settings
dw $1100 ; Relative Coords HU
dw $1000 ; Relative Coords FU
dw $1110 ; Relative Coords HD
dw $1110 ; Relative Coords FD
dw $0600 ; Relative Coords HL
dw $0600 ; Relative Coords FL
dw $0600 ; Relative Coords HR
dw $0700 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0200 ; Quadrant 2
db $12 ; Main Graphics
db $11 ; Music Track
db $FF ; Starting Floor
db $06 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_desert_desert2_spinspeed_after
preset_nmg_desert_popo_genocide_room:
db $02 ; Dungeon
dw $0053 ; Room Index
dw $0A10 ; BG1 Vertical Scroll
dw $0A10 ; BG2 Vertical Scroll
dw $0600 ; BG1 Horizontal Scroll
dw $0600 ; BG2 Horizontal Scroll
dw $0678 ; Link X
dw $0AC6 ; Link Y
dw $007F ; Camera X
dw $0088 ; Camera Y
dw $0000 ; Door Settings
dw $0A00 ; Relative Coords HU
dw $0A00 ; Relative Coords FU
dw $0A10 ; Relative Coords HD
dw $0B10 ; Relative Coords FD
dw $0600 ; Relative Coords HL
dw $0600 ; Relative Coords FL
dw $0600 ; Relative Coords HR
dw $0700 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0000 ; Quadrant 2
db $12 ; Main Graphics
db $11 ; Music Track
db $01 ; Starting Floor
db $06 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_desert_popo_genocide_room_after
preset_nmg_desert_torches:
db $02 ; Dungeon
dw $0043 ; Room Index
dw $0900 ; BG1 Vertical Scroll
dw $0900 ; BG2 Vertical Scroll
dw $0700 ; BG1 Horizontal Scroll
dw $0700 ; BG2 Horizontal Scroll
dw $0778 ; Link X
dw $092E ; Link Y
dw $017F ; Camera X
dw $0178 ; Camera Y
dw $0000 ; Door Settings
dw $0900 ; Relative Coords HU
dw $0800 ; Relative Coords FU
dw $0910 ; Relative Coords HD
dw $0910 ; Relative Coords FD
dw $0700 ; Relative Coords HL
dw $0600 ; Relative Coords FL
dw $0700 ; Relative Coords HR
dw $0700 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0201 ; Quadrant 2
db $12 ; Main Graphics
db $11 ; Music Track
db $01 ; Starting Floor
db $06 ; Palace No
db $01 ; Door Orientation
db $01 ; Starting Background
dw sram_nmg_desert_torches_after
preset_nmg_desert_lanmolas:
db $02 ; Dungeon
dw $0043 ; Room Index
dw $0800 ; BG1 Vertical Scroll
dw $0800 ; BG2 Vertical Scroll
dw $064A ; BG1 Horizontal Scroll
dw $0600 ; BG2 Horizontal Scroll
dw $0678 ; Link X
dw $082E ; Link Y
dw $007F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0800 ; Relative Coords HU
dw $0800 ; Relative Coords FU
dw $0810 ; Relative Coords HD
dw $0910 ; Relative Coords FD
dw $0600 ; Relative Coords HL
dw $0600 ; Relative Coords FL
dw $0600 ; Relative Coords HR
dw $0700 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0000 ; Quadrant 2
db $12 ; Main Graphics
db $11 ; Music Track
db $01 ; Starting Floor
db $06 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_desert_lanmolas_after
preset_nmg_hera_outside_desert_palace:
db $01 ; Overworld
dw $0030 ; Screen Index
dw $0128 ; Link X
dw $0C41 ; Link Y
dw $0C00 ; BG1 Vertical Scroll
dw $0C00 ; BG2 Vertical Scroll
dw $00A2 ; BG1 Horizontal Scroll
dw $00A2 ; BG2 Horizontal Scroll
dw $012F ; Scroll X
dw $0C6D ; Scroll Y
dw $0016 ; Unknown 1
dw $0000 ; Unknown 2
dw $000E ; Unknown 3
dw sram_nmg_hera_outside_desert_palace_after
preset_nmg_hera_fake_flippers:
db $01 ; Overworld
dw $003C ; Screen Index
dw $09E0 ; Link X
dw $0F7C ; Link Y
dw $0D8F ; BG1 Vertical Scroll
dw $0F1E ; BG2 Vertical Scroll
dw $0880 ; BG1 Horizontal Scroll
dw $0900 ; BG2 Horizontal Scroll
dw $097D ; Scroll X
dw $0F8B ; Scroll Y
dw $0820 ; Unknown 1
dw $FFF2 ; Unknown 2
dw $0000 ; Unknown 3
dw sram_nmg_hera_fake_flippers_after
preset_nmg_hera_dm:
db $02 ; Dungeon
dw $00F1 ; Room Index
dw $FFC0 ; BG1 Vertical Scroll
dw $1F10 ; BG2 Vertical Scroll
dw $00FF ; BG1 Horizontal Scroll
dw $0300 ; BG2 Horizontal Scroll
dw $0378 ; Link X
dw $1FC1 ; Link Y
dw $017F ; Camera X
dw $0187 ; Camera Y
dw $0000 ; Door Settings
dw $1F00 ; Relative Coords HU
dw $1E00 ; Relative Coords FU
dw $1F10 ; Relative Coords HD
dw $1F10 ; Relative Coords FD
dw $0300 ; Relative Coords HL
dw $0200 ; Relative Coords FL
dw $0300 ; Relative Coords HR
dw $0300 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0201 ; Quadrant 2
db $06 ; Main Graphics
db $12 ; Music Track
db $00 ; Starting Floor
db $FF ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_hera_dm_after
preset_nmg_hera_after_mirror:
db $01 ; Overworld
dw $0003 ; Screen Index
dw $071E ; Link X
dw $03C0 ; Link Y
dw $02D9 ; BG1 Vertical Scroll
dw $031E ; BG2 Vertical Scroll
dw $062D ; BG1 Horizontal Scroll
dw $06AA ; BG2 Horizontal Scroll
dw $0729 ; Scroll X
dw $038D ; Scroll Y
dw $1816 ; Unknown 1
dw $0000 ; Unknown 2
dw $FFF6 ; Unknown 3
dw sram_nmg_hera_after_mirror_after
preset_nmg_hera_quickhop:
db $01 ; Overworld
dw $0003 ; Screen Index
dw $081B ; Link X
dw $0138 ; Link Y
dw $00D4 ; BG1 Vertical Scroll
dw $00D4 ; BG2 Vertical Scroll
dw $07A5 ; BG1 Horizontal Scroll
dw $07A5 ; BG2 Horizontal Scroll
dw $0824 ; Scroll X
dw $0143 ; Scroll Y
dw $0638 ; Unknown 1
dw $000A ; Unknown 2
dw $000B ; Unknown 3
dw sram_nmg_hera_quickhop_after
preset_nmg_hera_entrance:
db $01 ; Overworld
dw $0003 ; Screen Index
dw $08F0 ; Link X
dw $0085 ; Link Y
dw $007A ; BG1 Vertical Scroll
dw $0021 ; BG2 Vertical Scroll
dw $07DB ; BG1 Horizontal Scroll
dw $087C ; BG2 Horizontal Scroll
dw $08FB ; Scroll X
dw $0090 ; Scroll Y
dw $00D0 ; Unknown 1
dw $000D ; Unknown 2
dw $FFF4 ; Unknown 3
dw sram_nmg_hera_entrance_after
preset_nmg_hera_tile_room:
db $02 ; Dungeon
dw $0077 ; Room Index
dw $0E00 ; BG1 Vertical Scroll
dw $0E00 ; BG2 Vertical Scroll
dw $0E00 ; BG1 Horizontal Scroll
dw $0E00 ; BG2 Horizontal Scroll
dw $0E78 ; Link X
dw $0E45 ; Link Y
dw $007F ; Camera X
dw $0077 ; Camera Y
dw $0000 ; Door Settings
dw $0E00 ; Relative Coords HU
dw $0E00 ; Relative Coords FU
dw $0E10 ; Relative Coords HD
dw $0F10 ; Relative Coords FD
dw $0E00 ; Relative Coords HL
dw $0E00 ; Relative Coords FL
dw $0E00 ; Relative Coords HR
dw $0F00 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0000 ; Quadrant 2
db $05 ; Main Graphics
db $11 ; Music Track
db $01 ; Starting Floor
db $14 ; Palace No
db $00 ; Door Orientation
db $01 ; Starting Background
dw sram_nmg_hera_tile_room_after
preset_nmg_hera_torches:
db $02 ; Dungeon
dw $0087 ; Room Index
dw $1010 ; BG1 Vertical Scroll
dw $1010 ; BG2 Vertical Scroll
dw $0F00 ; BG1 Horizontal Scroll
dw $0F00 ; BG2 Horizontal Scroll
dw $0F78 ; Link X
dw $10BC ; Link Y
dw $017F ; Camera X
dw $0087 ; Camera Y
dw $0000 ; Door Settings
dw $1000 ; Relative Coords HU
dw $1000 ; Relative Coords FU
dw $1010 ; Relative Coords HD
dw $1110 ; Relative Coords FD
dw $0F00 ; Relative Coords HL
dw $0E00 ; Relative Coords FL
dw $0F00 ; Relative Coords HR
dw $0F00 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0001 ; Quadrant 2
db $05 ; Main Graphics
db $11 ; Music Track
db $00 ; Starting Floor
db $14 ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_hera_torches_after
preset_nmg_hera_beetles:
db $02 ; Dungeon
dw $0077 ; Room Index
dw $0EE2 ; BG1 Vertical Scroll
dw $0EE2 ; BG2 Vertical Scroll
dw $0EF0 ; BG1 Horizontal Scroll
dw $0EF0 ; BG2 Horizontal Scroll
dw $0F68 ; Link X
dw $0F4E ; Link Y
dw $016F ; Camera X
dw $0159 ; Camera Y
dw $0000 ; Door Settings
dw $0F00 ; Relative Coords HU
dw $0E00 ; Relative Coords FU
dw $0F10 ; Relative Coords HD
dw $0F10 ; Relative Coords FD
dw $0F00 ; Relative Coords HL
dw $0E00 ; Relative Coords FL
dw $0F00 ; Relative Coords HR
dw $0F00 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0201 ; Quadrant 2
db $05 ; Main Graphics
db $11 ; Music Track
db $01 ; Starting Floor
db $14 ; Palace No
db $00 ; Door Orientation
db $01 ; Starting Background
dw sram_nmg_hera_beetles_after
preset_nmg_hera_petting_zoo:
db $02 ; Dungeon
dw $0031 ; Room Index
dw $060F ; BG1 Vertical Scroll
dw $060F ; BG2 Vertical Scroll
dw $0280 ; BG1 Horizontal Scroll
dw $0300 ; BG2 Horizontal Scroll
dw $03B8 ; Link X
dw $067C ; Link Y
dw $017F ; Camera X
dw $0087 ; Camera Y
dw $0000 ; Door Settings
dw $0600 ; Relative Coords HU
dw $0600 ; Relative Coords FU
dw $0610 ; Relative Coords HD
dw $0710 ; Relative Coords FD
dw $0300 ; Relative Coords HL
dw $0200 ; Relative Coords FL
dw $0300 ; Relative Coords HR
dw $0300 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0001 ; Quadrant 2
db $05 ; Main Graphics
db $11 ; Music Track
db $02 ; Starting Floor
db $14 ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_hera_petting_zoo_after
preset_nmg_hera_moldorm:
db $02 ; Dungeon
dw $0017 ; Room Index
dw $0206 ; BG1 Vertical Scroll
dw $020D ; BG2 Vertical Scroll
dw $0E80 ; BG1 Horizontal Scroll
dw $0F00 ; BG2 Horizontal Scroll
dw $0FA8 ; Link X
dw $027A ; Link Y
dw $017F ; Camera X
dw $0085 ; Camera Y
dw $0000 ; Door Settings
dw $0200 ; Relative Coords HU
dw $0200 ; Relative Coords FU
dw $0210 ; Relative Coords HD
dw $0310 ; Relative Coords FD
dw $0F00 ; Relative Coords HL
dw $0E00 ; Relative Coords FL
dw $0F00 ; Relative Coords HR
dw $0F00 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0001 ; Quadrant 2
db $05 ; Main Graphics
db $11 ; Music Track
db $04 ; Starting Floor
db $14 ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_hera_moldorm_after
preset_nmg_aga_outside_hera:
db $01 ; Overworld
dw $0003 ; Screen Index
dw $08F0 ; Link X
dw $007C ; Link Y
dw $0016 ; BG1 Vertical Scroll
dw $0018 ; BG2 Vertical Scroll
dw $087C ; BG1 Horizontal Scroll
dw $087C ; BG2 Horizontal Scroll
dw $08FB ; Scroll X
dw $0087 ; Scroll Y
dw $0050 ; Unknown 1
dw $0006 ; Unknown 2
dw $FFF4 ; Unknown 3
dw sram_nmg_aga_outside_hera_after
preset_nmg_aga_first_rupee_tree:
db $02 ; Dungeon
dw $00E6 ; Room Index
dw $FFC0 ; BG1 Vertical Scroll
dw $1D10 ; BG2 Vertical Scroll
dw $00FF ; BG1 Horizontal Scroll
dw $0C00 ; BG2 Horizontal Scroll
dw $0C78 ; Link X
dw $1DB8 ; Link Y
dw $007F ; Camera X
dw $0187 ; Camera Y
dw $0000 ; Door Settings
dw $1D00 ; Relative Coords HU
dw $1C00 ; Relative Coords FU
dw $1D10 ; Relative Coords HD
dw $1D10 ; Relative Coords FD
dw $0C00 ; Relative Coords HL
dw $0C00 ; Relative Coords FL
dw $0C00 ; Relative Coords HR
dw $0D00 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0200 ; Quadrant 2
db $06 ; Main Graphics
db $12 ; Music Track
db $00 ; Starting Floor
db $FF ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_aga_first_rupee_tree_after
preset_nmg_aga_lost_woods:
db $01 ; Overworld
dw $0002 ; Screen Index
dw $0406 ; Link X
dw $007A ; Link Y
dw $009C ; BG1 Vertical Scroll
dw $0016 ; BG2 Vertical Scroll
dw $0480 ; BG1 Horizontal Scroll
dw $0400 ; BG2 Horizontal Scroll
dw $048D ; Scroll X
dw $0085 ; Scroll Y
dw $0100 ; Unknown 1
dw $0008 ; Unknown 2
dw $0000 ; Unknown 3
dw sram_nmg_aga_lost_woods_after
preset_nmg_aga_after_grove:
db $01 ; Overworld
dw $0000 ; Screen Index
dw $00A0 ; Link X
dw $00CB ; Link Y
dw $0057 ; BG1 Vertical Scroll
dw $006B ; BG2 Vertical Scroll
dw $0022 ; BG1 Horizontal Scroll
dw $0022 ; BG2 Horizontal Scroll
dw $00A7 ; Scroll X
dw $00DA ; Scroll Y
dw $0306 ; Unknown 1
dw $FFF3 ; Unknown 2
dw $000E ; Unknown 3
dw sram_nmg_aga_after_grove_after
preset_nmg_aga_after_lost_woods:
db $01 ; Overworld
dw $0000 ; Screen Index
dw $0388 ; Link X
dw $03D0 ; Link Y
dw $01AF ; BG1 Vertical Scroll
dw $031E ; BG2 Vertical Scroll
dw $00D9 ; BG1 Horizontal Scroll
dw $0300 ; BG2 Horizontal Scroll
dw $0385 ; Scroll X
dw $038D ; Scroll Y
dw $1860 ; Unknown 1
dw $0000 ; Unknown 2
dw $0000 ; Unknown 3
dw sram_nmg_aga_after_lost_woods_after
preset_nmg_aga_castle_screen:
db $01 ; Overworld
dw $001A ; Screen Index
dw $05E5 ; Link X
dw $0728 ; Link Y
dw $0665 ; BG1 Vertical Scroll
dw $06CA ; BG2 Vertical Scroll
dw $0480 ; BG1 Horizontal Scroll
dw $0500 ; BG2 Horizontal Scroll
dw $057D ; Scroll X
dw $0737 ; Scroll Y
dw $0620 ; Unknown 1
dw $FFF6 ; Unknown 2
dw $0000 ; Unknown 3
dw sram_nmg_aga_castle_screen_after
preset_nmg_aga_entrance:
db $01 ; Overworld
dw $001B ; Screen Index
dw $07F8 ; Link X
dw $065C ; Link Y
dw $0600 ; BG1 Vertical Scroll
dw $0600 ; BG2 Vertical Scroll
dw $0716 ; BG1 Horizontal Scroll
dw $077E ; BG2 Horizontal Scroll
dw $0803 ; Scroll X
dw $066D ; Scroll Y
dw $002E ; Unknown 1
dw $0000 ; Unknown 2
dw $FFF2 ; Unknown 3
dw sram_nmg_aga_entrance_after
preset_nmg_aga_fairy_skip:
db $02 ; Dungeon
dw $00E0 ; Room Index
dw $1C0B ; BG1 Vertical Scroll
dw $1C0B ; BG2 Vertical Scroll
dw $0000 ; BG1 Horizontal Scroll
dw $0000 ; BG2 Horizontal Scroll
dw $00DA ; Link X
dw $1C78 ; Link Y
dw $007F ; Camera X
dw $0083 ; Camera Y
dw $0000 ; Door Settings
dw $1C00 ; Relative Coords HU
dw $1C00 ; Relative Coords FU
dw $1C10 ; Relative Coords HD
dw $1D10 ; Relative Coords FD
dw $0000 ; Relative Coords HL
dw $0000 ; Relative Coords FL
dw $0000 ; Relative Coords HR
dw $0100 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0000 ; Quadrant 2
db $04 ; Main Graphics
db $10 ; Music Track
db $01 ; Starting Floor
db $08 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_aga_fairy_skip_after
preset_nmg_aga_dark_room_of_despair:
db $02 ; Dungeon
dw $00D0 ; Room Index
dw $0105 ; BG1 Vertical Scroll
dw $1A0B ; BG2 Vertical Scroll
dw $004E ; BG1 Horizontal Scroll
dw $0100 ; BG2 Horizontal Scroll
dw $0125 ; Link X
dw $1A78 ; Link Y
dw $017F ; Camera X
dw $0083 ; Camera Y
dw $0000 ; Door Settings
dw $1A00 ; Relative Coords HU
dw $1A00 ; Relative Coords FU
dw $1A10 ; Relative Coords HD
dw $1B10 ; Relative Coords FD
dw $0100 ; Relative Coords HL
dw $0000 ; Relative Coords FL
dw $0100 ; Relative Coords HR
dw $0100 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0001 ; Quadrant 2
db $04 ; Main Graphics
db $10 ; Music Track
db $02 ; Starting Floor
db $08 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_aga_dark_room_of_despair_after
preset_nmg_aga_dark_room_of_melancholy:
db $02 ; Dungeon
dw $00C0 ; Room Index
dw $0105 ; BG1 Vertical Scroll
dw $190B ; BG2 Vertical Scroll
dw $004E ; BG1 Horizontal Scroll
dw $0100 ; BG2 Horizontal Scroll
dw $0125 ; Link X
dw $1978 ; Link Y
dw $017F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $1900 ; Relative Coords HU
dw $1800 ; Relative Coords FU
dw $1910 ; Relative Coords HD
dw $1910 ; Relative Coords FD
dw $0100 ; Relative Coords HL
dw $0000 ; Relative Coords FL
dw $0100 ; Relative Coords HR
dw $0100 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0201 ; Quadrant 2
db $04 ; Main Graphics
db $10 ; Music Track
db $03 ; Starting Floor
db $08 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_aga_dark_room_of_melancholy_after
preset_nmg_aga_spear_guards:
db $02 ; Dungeon
dw $00C0 ; Room Index
dw $0040 ; BG1 Vertical Scroll
dw $1800 ; BG2 Vertical Scroll
dw $FFFF ; BG1 Horizontal Scroll
dw $0100 ; BG2 Horizontal Scroll
dw $0178 ; Link X
dw $182C ; Link Y
dw $017F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $1800 ; Relative Coords HU
dw $1800 ; Relative Coords FU
dw $1810 ; Relative Coords HD
dw $1910 ; Relative Coords FD
dw $0100 ; Relative Coords HL
dw $0000 ; Relative Coords FL
dw $0100 ; Relative Coords HR
dw $0100 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0001 ; Quadrant 2
db $04 ; Main Graphics
db $10 ; Music Track
db $03 ; Starting Floor
db $08 ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_aga_spear_guards_after
preset_nmg_aga_circle_of_pots:
db $02 ; Dungeon
dw $00B0 ; Room Index
dw $1610 ; BG1 Vertical Scroll
dw $1610 ; BG2 Vertical Scroll
dw $0000 ; BG1 Horizontal Scroll
dw $0000 ; BG2 Horizontal Scroll
dw $0078 ; Link X
dw $16C4 ; Link Y
dw $007F ; Camera X
dw $0088 ; Camera Y
dw $0000 ; Door Settings
dw $1600 ; Relative Coords HU
dw $1600 ; Relative Coords FU
dw $1610 ; Relative Coords HD
dw $1710 ; Relative Coords FD
dw $0000 ; Relative Coords HL
dw $0000 ; Relative Coords FL
dw $0000 ; Relative Coords HR
dw $0100 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0000 ; Quadrant 2
db $04 ; Main Graphics
db $10 ; Music Track
db $04 ; Starting Floor
db $08 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_aga_circle_of_pots_after
preset_nmg_aga_pit_room:
db $02 ; Dungeon
dw $0040 ; Room Index
dw $090B ; BG1 Vertical Scroll
dw $090B ; BG2 Vertical Scroll
dw $0100 ; BG1 Horizontal Scroll
dw $0100 ; BG2 Horizontal Scroll
dw $012C ; Link X
dw $0978 ; Link Y
dw $017F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $0900 ; Relative Coords HU
dw $0800 ; Relative Coords FU
dw $0910 ; Relative Coords HD
dw $0910 ; Relative Coords FD
dw $0100 ; Relative Coords HL
dw $0000 ; Relative Coords FL
dw $0100 ; Relative Coords HR
dw $0100 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0201 ; Quadrant 2
db $04 ; Main Graphics
db $10 ; Music Track
db $05 ; Starting Floor
db $08 ; Palace No
db $02 ; Door Orientation
db $01 ; Starting Background
dw sram_nmg_aga_pit_room_after
preset_nmg_aga_agahnim:
db $02 ; Dungeon
dw $0030 ; Room Index
dw $0600 ; BG1 Vertical Scroll
dw $0600 ; BG2 Vertical Scroll
dw $0000 ; BG1 Horizontal Scroll
dw $0000 ; BG2 Horizontal Scroll
dw $0078 ; Link X
dw $062D ; Link Y
dw $007F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0600 ; Relative Coords HU
dw $0600 ; Relative Coords FU
dw $0610 ; Relative Coords HD
dw $0710 ; Relative Coords FD
dw $0000 ; Relative Coords HL
dw $0000 ; Relative Coords FL
dw $0000 ; Relative Coords HR
dw $0100 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0000 ; Quadrant 2
db $04 ; Main Graphics
db $10 ; Music Track
db $06 ; Starting Floor
db $08 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_aga_agahnim_after
preset_nmg_pod_pyramid:
db $01 ; Overworld
dw $005B ; Screen Index
dw $07F0 ; Link X
dw $0660 ; Link Y
dw $0601 ; BG1 Vertical Scroll
dw $0602 ; BG2 Vertical Scroll
dw $0778 ; BG1 Horizontal Scroll
dw $0778 ; BG2 Horizontal Scroll
dw $07F7 ; Scroll X
dw $066F ; Scroll Y
dw $002E ; Unknown 1
dw $FFFE ; Unknown 2
dw $FFF8 ; Unknown 3
dw sram_nmg_pod_pyramid_after
preset_nmg_pod_pod_overworld:
db $01 ; Overworld
dw $006E ; Screen Index
dw $0C70 ; Link X
dw $0A0C ; Link Y
dw $0A00 ; BG1 Vertical Scroll
dw $0A00 ; BG2 Vertical Scroll
dw $0C00 ; BG1 Horizontal Scroll
dw $0C00 ; BG2 Horizontal Scroll
dw $0C7D ; Scroll X
dw $0A6D ; Scroll Y
dw $0000 ; Unknown 1
dw $0000 ; Unknown 2
dw $0000 ; Unknown 3
dw sram_nmg_pod_pod_overworld_after
preset_nmg_pod_entrance:
db $01 ; Overworld
dw $005E ; Screen Index
dw $0F50 ; Link X
dw $064C ; Link Y
dw $0791 ; BG1 Vertical Scroll
dw $0600 ; BG2 Vertical Scroll
dw $0D6F ; BG1 Horizontal Scroll
dw $0EDE ; BG2 Horizontal Scroll
dw $0F5B ; Scroll X
dw $066F ; Scroll Y
dw $005A ; Unknown 1
dw $0000 ; Unknown 2
dw $FFF2 ; Unknown 3
dw sram_nmg_pod_entrance_after
preset_nmg_pod_main_hub_small_key:
db $02 ; Dungeon
dw $004A ; Room Index
dw $0800 ; BG1 Vertical Scroll
dw $0800 ; BG2 Vertical Scroll
dw $1480 ; BG1 Horizontal Scroll
dw $1480 ; BG2 Horizontal Scroll
dw $14F8 ; Link X
dw $081B ; Link Y
dw $00FF ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0800 ; Relative Coords HU
dw $0800 ; Relative Coords FU
dw $0810 ; Relative Coords HD
dw $0910 ; Relative Coords FD
dw $1400 ; Relative Coords HL
dw $1400 ; Relative Coords FL
dw $1400 ; Relative Coords HR
dw $1500 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0000 ; Quadrant 2
db $07 ; Main Graphics
db $16 ; Music Track
db $00 ; Starting Floor
db $0C ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_pod_main_hub_small_key_after
preset_nmg_pod_main_hub_bk:
db $02 ; Dungeon
dw $004A ; Room Index
dw $0800 ; BG1 Vertical Scroll
dw $0800 ; BG2 Vertical Scroll
dw $1480 ; BG1 Horizontal Scroll
dw $1480 ; BG2 Horizontal Scroll
dw $14F8 ; Link X
dw $081A ; Link Y
dw $00FF ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0800 ; Relative Coords HU
dw $0800 ; Relative Coords FU
dw $0810 ; Relative Coords HD
dw $0910 ; Relative Coords FD
dw $1400 ; Relative Coords HL
dw $1400 ; Relative Coords FL
dw $1400 ; Relative Coords HR
dw $1500 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0000 ; Quadrant 2
db $07 ; Main Graphics
db $16 ; Music Track
db $00 ; Starting Floor
db $0C ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_pod_main_hub_bk_after
preset_nmg_pod_main_hub_hammeryump:
db $02 ; Dungeon
dw $004A ; Room Index
dw $0800 ; BG1 Vertical Scroll
dw $0800 ; BG2 Vertical Scroll
dw $1480 ; BG1 Horizontal Scroll
dw $1480 ; BG2 Horizontal Scroll
dw $14F8 ; Link X
dw $0818 ; Link Y
dw $00FF ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0800 ; Relative Coords HU
dw $0800 ; Relative Coords FU
dw $0810 ; Relative Coords HD
dw $0910 ; Relative Coords FD
dw $1400 ; Relative Coords HL
dw $1400 ; Relative Coords FL
dw $1400 ; Relative Coords HR
dw $1500 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0000 ; Quadrant 2
db $07 ; Main Graphics
db $16 ; Music Track
db $00 ; Starting Floor
db $0C ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_pod_main_hub_hammeryump_after
preset_nmg_pod_hammeryump:
db $02 ; Dungeon
dw $002A ; Room Index
dw $0400 ; BG1 Vertical Scroll
dw $0400 ; BG2 Vertical Scroll
dw $1400 ; BG1 Horizontal Scroll
dw $1400 ; BG2 Horizontal Scroll
dw $1478 ; Link X
dw $0424 ; Link Y
dw $007F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0400 ; Relative Coords HU
dw $0400 ; Relative Coords FU
dw $0410 ; Relative Coords HD
dw $0510 ; Relative Coords FD
dw $1400 ; Relative Coords HL
dw $1400 ; Relative Coords FL
dw $1400 ; Relative Coords HR
dw $1500 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0000 ; Quadrant 2
db $07 ; Main Graphics
db $16 ; Music Track
db $00 ; Starting Floor
db $0C ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_pod_hammeryump_after
preset_nmg_pod_before_sexy_statue:
db $02 ; Dungeon
dw $003A ; Room Index
dw $0688 ; BG1 Vertical Scroll
dw $0600 ; BG2 Vertical Scroll
dw $14C0 ; BG1 Horizontal Scroll
dw $1500 ; BG2 Horizontal Scroll
dw $1578 ; Link X
dw $062C ; Link Y
dw $017F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0600 ; Relative Coords HU
dw $0600 ; Relative Coords FU
dw $0610 ; Relative Coords HD
dw $0710 ; Relative Coords FD
dw $1500 ; Relative Coords HL
dw $1400 ; Relative Coords FL
dw $1500 ; Relative Coords HR
dw $1500 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0001 ; Quadrant 2
db $07 ; Main Graphics
db $16 ; Music Track
db $00 ; Starting Floor
db $0C ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_pod_before_sexy_statue_after
preset_nmg_pod_sexy_statue_room:
db $02 ; Dungeon
dw $002A ; Room Index
dw $048B ; BG1 Vertical Scroll
dw $048B ; BG2 Vertical Scroll
dw $1500 ; BG1 Horizontal Scroll
dw $1500 ; BG2 Horizontal Scroll
dw $15B4 ; Link X
dw $04F8 ; Link Y
dw $017F ; Camera X
dw $0103 ; Camera Y
dw $0000 ; Door Settings
dw $0400 ; Relative Coords HU
dw $0400 ; Relative Coords FU
dw $0410 ; Relative Coords HD
dw $0510 ; Relative Coords FD
dw $1500 ; Relative Coords HL
dw $1400 ; Relative Coords FL
dw $1500 ; Relative Coords HR
dw $1500 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0001 ; Quadrant 2
db $07 ; Main Graphics
db $16 ; Music Track
db $00 ; Starting Floor
db $0C ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_pod_sexy_statue_room_after
preset_nmg_pod_mimics:
db $02 ; Dungeon
dw $002B ; Room Index
dw $0400 ; BG1 Vertical Scroll
dw $0400 ; BG2 Vertical Scroll
dw $1600 ; BG1 Horizontal Scroll
dw $1600 ; BG2 Horizontal Scroll
dw $1678 ; Link X
dw $0413 ; Link Y
dw $007F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0400 ; Relative Coords HU
dw $0400 ; Relative Coords FU
dw $0410 ; Relative Coords HD
dw $0510 ; Relative Coords FD
dw $1600 ; Relative Coords HL
dw $1600 ; Relative Coords FL
dw $1600 ; Relative Coords HR
dw $1700 ; Relative Coords FR
dw $0200 ; Quadrant 1
dw $0000 ; Quadrant 2
db $07 ; Main Graphics
db $16 ; Music Track
db $00 ; Starting Floor
db $0C ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_pod_mimics_after
preset_nmg_pod_statue:
db $02 ; Dungeon
dw $001B ; Room Index
dw $0300 ; BG1 Vertical Scroll
dw $0300 ; BG2 Vertical Scroll
dw $1600 ; BG1 Horizontal Scroll
dw $1600 ; BG2 Horizontal Scroll
dw $1678 ; Link X
dw $0320 ; Link Y
dw $007F ; Camera X
dw $0178 ; Camera Y
dw $0000 ; Door Settings
dw $0300 ; Relative Coords HU
dw $0200 ; Relative Coords FU
dw $0310 ; Relative Coords HD
dw $0310 ; Relative Coords FD
dw $1600 ; Relative Coords HL
dw $1600 ; Relative Coords FL
dw $1600 ; Relative Coords HR
dw $1700 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0200 ; Quadrant 2
db $07 ; Main Graphics
db $16 ; Music Track
db $00 ; Starting Floor
db $0C ; Palace No
db $01 ; Door Orientation
db $01 ; Starting Background
dw sram_nmg_pod_statue_after
preset_nmg_pod_basement:
db $02 ; Dungeon
dw $001B ; Room Index
dw $0200 ; BG1 Vertical Scroll
dw $0200 ; BG2 Vertical Scroll
dw $1678 ; BG1 Horizontal Scroll
dw $1700 ; BG2 Horizontal Scroll
dw $1790 ; Link X
dw $0251 ; Link Y
dw $017F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0200 ; Relative Coords HU
dw $0200 ; Relative Coords FU
dw $0210 ; Relative Coords HD
dw $0310 ; Relative Coords FD
dw $1700 ; Relative Coords HL
dw $1600 ; Relative Coords FL
dw $1700 ; Relative Coords HR
dw $1700 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0001 ; Quadrant 2
db $07 ; Main Graphics
db $16 ; Music Track
db $00 ; Starting Floor
db $0C ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_pod_basement_after
preset_nmg_pod_turtle_room:
db $02 ; Dungeon
dw $000B ; Room Index
dw $FFC0 ; BG1 Vertical Scroll
dw $0010 ; BG2 Vertical Scroll
dw $00FF ; BG1 Horizontal Scroll
dw $1600 ; BG2 Horizontal Scroll
dw $1678 ; Link X
dw $00C8 ; Link Y
dw $007F ; Camera X
dw $0088 ; Camera Y
dw $0000 ; Door Settings
dw $0000 ; Relative Coords HU
dw $0000 ; Relative Coords FU
dw $0010 ; Relative Coords HD
dw $0110 ; Relative Coords FD
dw $1600 ; Relative Coords HL
dw $1600 ; Relative Coords FL
dw $1600 ; Relative Coords HR
dw $1700 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0000 ; Quadrant 2
db $07 ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0C ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_pod_turtle_room_after
preset_nmg_pod_helma:
db $02 ; Dungeon
dw $006A ; Room Index
dw $0040 ; BG1 Vertical Scroll
dw $0C00 ; BG2 Vertical Scroll
dw $FFFF ; BG1 Horizontal Scroll
dw $1500 ; BG2 Horizontal Scroll
dw $1578 ; Link X
dw $0C24 ; Link Y
dw $017F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0C00 ; Relative Coords HU
dw $0C00 ; Relative Coords FU
dw $0C10 ; Relative Coords HD
dw $0D10 ; Relative Coords FD
dw $1500 ; Relative Coords HL
dw $1400 ; Relative Coords FL
dw $1500 ; Relative Coords HR
dw $1500 ; Relative Coords FR
dw $0200 ; Quadrant 1
dw $0001 ; Quadrant 2
db $07 ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0C ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_pod_helma_after
preset_nmg_thieves_outside_pod:
db $01 ; Overworld
dw $005E ; Screen Index
dw $0F50 ; Link X
dw $063E ; Link Y
dw $0600 ; BG1 Vertical Scroll
dw $0600 ; BG2 Vertical Scroll
dw $0ED6 ; BG1 Horizontal Scroll
dw $0ED6 ; BG2 Horizontal Scroll
dw $0F5B ; Scroll X
dw $066D ; Scroll Y
dw $005A ; Unknown 1
dw $0000 ; Unknown 2
dw $FFFA ; Unknown 3
dw sram_nmg_thieves_outside_pod_after
preset_nmg_thieves_ow_hammerdash:
db $01 ; Overworld
dw $006E ; Screen Index
dw $0C06 ; Link X
dw $0A6A ; Link Y
dw $0A06 ; BG1 Vertical Scroll
dw $0A0C ; BG2 Vertical Scroll
dw $0D6B ; BG1 Horizontal Scroll
dw $0C00 ; BG2 Horizontal Scroll
dw $0C85 ; Scroll X
dw $0A79 ; Scroll Y
dw $0000 ; Unknown 1
dw $FFF4 ; Unknown 2
dw $0000 ; Unknown 3
dw sram_nmg_thieves_ow_hammerdash_after
preset_nmg_thieves_grove:
db $01 ; Overworld
dw $0072 ; Screen Index
dw $04DA ; Link X
dw $0C0C ; Link Y
dw $0C00 ; BG1 Vertical Scroll
dw $0C00 ; BG2 Vertical Scroll
dw $04AE ; BG1 Horizontal Scroll
dw $045C ; BG2 Horizontal Scroll
dw $04E1 ; Scroll X
dw $0C6D ; Scroll Y
dw $000C ; Unknown 1
dw $0000 ; Unknown 2
dw $0004 ; Unknown 3
dw sram_nmg_thieves_grove_after
preset_nmg_thieves_usain_bolt:
db $01 ; Overworld
dw $002A ; Screen Index
dw $0407 ; Link X
dw $0B99 ; Link Y
dw $0B20 ; BG1 Vertical Scroll
dw $0B1E ; BG2 Vertical Scroll
dw $040F ; BG1 Horizontal Scroll
dw $0400 ; BG2 Horizontal Scroll
dw $0485 ; Scroll X
dw $0B8D ; Scroll Y
dw $0900 ; Unknown 1
dw $0000 ; Unknown 2
dw $0000 ; Unknown 3
dw sram_nmg_thieves_usain_bolt_after
preset_nmg_thieves_after_activating_flute:
db $01 ; Overworld
dw $0018 ; Screen Index
dw $01CA ; Link X
dw $0798 ; Link Y
dw $082B ; BG1 Vertical Scroll
dw $0734 ; BG2 Vertical Scroll
dw $0226 ; BG1 Horizontal Scroll
dw $014C ; BG2 Horizontal Scroll
dw $01D1 ; Scroll X
dw $07A3 ; Scroll Y
dw $092A ; Unknown 1
dw $000A ; Unknown 2
dw $0004 ; Unknown 3
dw sram_nmg_thieves_after_activating_flute_after
preset_nmg_thieves_darkworld:
db $01 ; Overworld
dw $0050 ; Screen Index
dw $0161 ; Link X
dw $0553 ; Link Y
dw $04F5 ; BG1 Vertical Scroll
dw $04F5 ; BG2 Vertical Scroll
dw $00E8 ; BG1 Horizontal Scroll
dw $00E3 ; BG2 Horizontal Scroll
dw $0168 ; Scroll X
dw $0562 ; Scroll Y
dw $079E ; Unknown 1
dw $FFFB ; Unknown 2
dw $000D ; Unknown 3
dw sram_nmg_thieves_darkworld_after
preset_nmg_thieves_entrance:
db $01 ; Overworld
dw $0058 ; Screen Index
dw $01F8 ; Link X
dw $07C2 ; Link Y
dw $06B2 ; BG1 Vertical Scroll
dw $0764 ; BG2 Vertical Scroll
dw $0136 ; BG1 Horizontal Scroll
dw $017E ; BG2 Horizontal Scroll
dw $0203 ; Scroll X
dw $07D1 ; Scroll Y
dw $0BAE ; Unknown 1
dw $000C ; Unknown 2
dw $FFF2 ; Unknown 3
dw sram_nmg_thieves_entrance_after
preset_nmg_thieves_after_big_key:
db $02 ; Dungeon
dw $00DB ; Room Index
dw $1AFB ; BG1 Vertical Scroll
dw $1AFB ; BG2 Vertical Scroll
dw $1700 ; BG1 Horizontal Scroll
dw $1700 ; BG2 Horizontal Scroll
dw $17BA ; Link X
dw $1B68 ; Link Y
dw $017F ; Camera X
dw $0173 ; Camera Y
dw $0000 ; Door Settings
dw $1B00 ; Relative Coords HU
dw $1A00 ; Relative Coords FU
dw $1B10 ; Relative Coords HD
dw $1B10 ; Relative Coords FD
dw $1700 ; Relative Coords HL
dw $1600 ; Relative Coords FL
dw $1700 ; Relative Coords HR
dw $1700 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0201 ; Quadrant 2
db $0A ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $16 ; Palace No
db $00 ; Door Orientation
db $01 ; Starting Background
dw sram_nmg_thieves_after_big_key_after
preset_nmg_thieves_blind_hallway:
db $02 ; Dungeon
dw $00CC ; Room Index
dw $1800 ; BG1 Vertical Scroll
dw $1800 ; BG2 Vertical Scroll
dw $1900 ; BG1 Horizontal Scroll
dw $1900 ; BG2 Horizontal Scroll
dw $1978 ; Link X
dw $181D ; Link Y
dw $017F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $1800 ; Relative Coords HU
dw $1800 ; Relative Coords FU
dw $1810 ; Relative Coords HD
dw $1910 ; Relative Coords FD
dw $1900 ; Relative Coords HL
dw $1800 ; Relative Coords FL
dw $1900 ; Relative Coords HR
dw $1900 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0001 ; Quadrant 2
db $0A ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $16 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_thieves_blind_hallway_after
preset_nmg_thieves_conveyor_gibos:
db $02 ; Dungeon
dw $00BC ; Room Index
dw $170B ; BG1 Vertical Scroll
dw $170B ; BG2 Vertical Scroll
dw $1800 ; BG1 Horizontal Scroll
dw $1800 ; BG2 Horizontal Scroll
dw $181D ; Link X
dw $1778 ; Link Y
dw $007F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $1700 ; Relative Coords HU
dw $1600 ; Relative Coords FU
dw $1710 ; Relative Coords HD
dw $1710 ; Relative Coords FD
dw $1800 ; Relative Coords HL
dw $1800 ; Relative Coords FL
dw $1800 ; Relative Coords HR
dw $1900 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0200 ; Quadrant 2
db $0A ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $16 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_thieves_conveyor_gibos_after
preset_nmg_thieves_hellway:
db $02 ; Dungeon
dw $00BB ; Room Index
dw $170B ; BG1 Vertical Scroll
dw $170B ; BG2 Vertical Scroll
dw $1700 ; BG1 Horizontal Scroll
dw $1700 ; BG2 Horizontal Scroll
dw $1716 ; Link X
dw $1778 ; Link Y
dw $017F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $1700 ; Relative Coords HU
dw $1600 ; Relative Coords FU
dw $1710 ; Relative Coords HD
dw $1710 ; Relative Coords FD
dw $1700 ; Relative Coords HL
dw $1600 ; Relative Coords FL
dw $1700 ; Relative Coords HR
dw $1700 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0201 ; Quadrant 2
db $0A ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $16 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_thieves_hellway_after
preset_nmg_thieves_bombable_floor:
db $02 ; Dungeon
dw $0065 ; Room Index
dw $0D0B ; BG1 Vertical Scroll
dw $0D0B ; BG2 Vertical Scroll
dw $0A00 ; BG1 Horizontal Scroll
dw $0A00 ; BG2 Horizontal Scroll
dw $0AE7 ; Link X
dw $0D78 ; Link Y
dw $007F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $0D00 ; Relative Coords HU
dw $0C00 ; Relative Coords FU
dw $0D10 ; Relative Coords HD
dw $0D10 ; Relative Coords FD
dw $0A00 ; Relative Coords HL
dw $0A00 ; Relative Coords FL
dw $0A00 ; Relative Coords HR
dw $0B00 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0200 ; Quadrant 2
db $0A ; Main Graphics
db $16 ; Music Track
db $00 ; Starting Floor
db $16 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_thieves_bombable_floor_after
preset_nmg_thieves_backtracking_1:
db $02 ; Dungeon
dw $0064 ; Room Index
dw $0D00 ; BG1 Vertical Scroll
dw $0D00 ; BG2 Vertical Scroll
dw $0800 ; BG1 Horizontal Scroll
dw $0800 ; BG2 Horizontal Scroll
dw $0878 ; Link X
dw $0D28 ; Link Y
dw $007F ; Camera X
dw $0178 ; Camera Y
dw $0000 ; Door Settings
dw $0D00 ; Relative Coords HU
dw $0C00 ; Relative Coords FU
dw $0D10 ; Relative Coords HD
dw $0D10 ; Relative Coords FD
dw $0800 ; Relative Coords HL
dw $0800 ; Relative Coords FL
dw $0800 ; Relative Coords HR
dw $0900 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0200 ; Quadrant 2
db $0A ; Main Graphics
db $16 ; Music Track
db $00 ; Starting Floor
db $16 ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_thieves_backtracking_1_after
preset_nmg_thieves_basement:
db $02 ; Dungeon
dw $00BC ; Room Index
dw $1600 ; BG1 Vertical Scroll
dw $1600 ; BG2 Vertical Scroll
dw $1800 ; BG1 Horizontal Scroll
dw $1800 ; BG2 Horizontal Scroll
dw $1878 ; Link X
dw $162A ; Link Y
dw $007F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $1600 ; Relative Coords HU
dw $1600 ; Relative Coords FU
dw $1610 ; Relative Coords HD
dw $1710 ; Relative Coords FD
dw $1800 ; Relative Coords HL
dw $1800 ; Relative Coords FL
dw $1800 ; Relative Coords HR
dw $1900 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0000 ; Quadrant 2
db $0A ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $16 ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_thieves_basement_after
preset_nmg_thieves_prison:
db $02 ; Dungeon
dw $0045 ; Room Index
dw $090B ; BG1 Vertical Scroll
dw $090B ; BG2 Vertical Scroll
dw $0A00 ; BG1 Horizontal Scroll
dw $0A00 ; BG2 Horizontal Scroll
dw $0AE4 ; Link X
dw $0978 ; Link Y
dw $007F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $0900 ; Relative Coords HU
dw $0800 ; Relative Coords FU
dw $0910 ; Relative Coords HD
dw $0910 ; Relative Coords FD
dw $0A00 ; Relative Coords HL
dw $0A00 ; Relative Coords FL
dw $0A00 ; Relative Coords HR
dw $0B00 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0200 ; Quadrant 2
db $0A ; Main Graphics
db $16 ; Music Track
db $FE ; Starting Floor
db $16 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_thieves_prison_after
preset_nmg_thieves_after_gloves:
db $02 ; Dungeon
dw $0044 ; Room Index
dw $090B ; BG1 Vertical Scroll
dw $090B ; BG2 Vertical Scroll
dw $0800 ; BG1 Horizontal Scroll
dw $0800 ; BG2 Horizontal Scroll
dw $08DC ; Link X
dw $0978 ; Link Y
dw $007F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $0900 ; Relative Coords HU
dw $0800 ; Relative Coords FU
dw $0910 ; Relative Coords HD
dw $0910 ; Relative Coords FD
dw $0800 ; Relative Coords HL
dw $0800 ; Relative Coords FL
dw $0800 ; Relative Coords HR
dw $0900 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0200 ; Quadrant 2
db $0A ; Main Graphics
db $16 ; Music Track
db $FE ; Starting Floor
db $16 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_thieves_after_gloves_after
preset_nmg_thieves_backtracking_2:
db $02 ; Dungeon
dw $0044 ; Room Index
dw $090B ; BG1 Vertical Scroll
dw $090B ; BG2 Vertical Scroll
dw $0800 ; BG1 Horizontal Scroll
dw $0800 ; BG2 Horizontal Scroll
dw $08E4 ; Link X
dw $0978 ; Link Y
dw $007F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $0900 ; Relative Coords HU
dw $0800 ; Relative Coords FU
dw $0910 ; Relative Coords HD
dw $0910 ; Relative Coords FD
dw $0800 ; Relative Coords HL
dw $0800 ; Relative Coords FL
dw $0800 ; Relative Coords HR
dw $0900 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0200 ; Quadrant 2
db $0A ; Main Graphics
db $16 ; Music Track
db $FE ; Starting Floor
db $16 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_thieves_backtracking_2_after
preset_nmg_thieves_pot_hammerdash:
db $02 ; Dungeon
dw $0045 ; Room Index
dw $0800 ; BG1 Vertical Scroll
dw $0800 ; BG2 Vertical Scroll
dw $0A00 ; BG1 Horizontal Scroll
dw $0A00 ; BG2 Horizontal Scroll
dw $0A78 ; Link X
dw $082C ; Link Y
dw $007F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0800 ; Relative Coords HU
dw $0800 ; Relative Coords FU
dw $0810 ; Relative Coords HD
dw $0910 ; Relative Coords FD
dw $0A00 ; Relative Coords HL
dw $0A00 ; Relative Coords FL
dw $0A00 ; Relative Coords HR
dw $0B00 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0000 ; Quadrant 2
db $0A ; Main Graphics
db $16 ; Music Track
db $FE ; Starting Floor
db $16 ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_thieves_pot_hammerdash_after
preset_nmg_thieves_blind:
db $02 ; Dungeon
dw $00BC ; Room Index
dw $1600 ; BG1 Vertical Scroll
dw $1600 ; BG2 Vertical Scroll
dw $1900 ; BG1 Horizontal Scroll
dw $1900 ; BG2 Horizontal Scroll
dw $1978 ; Link X
dw $1619 ; Link Y
dw $017F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $1600 ; Relative Coords HU
dw $1600 ; Relative Coords FU
dw $1610 ; Relative Coords HD
dw $1710 ; Relative Coords FD
dw $1900 ; Relative Coords HL
dw $1800 ; Relative Coords FL
dw $1900 ; Relative Coords HR
dw $1900 ; Relative Coords FR
dw $0200 ; Quadrant 1
dw $0001 ; Quadrant 2
db $0A ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $16 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_thieves_blind_after
preset_nmg_sw_outside_thieves:
db $01 ; Overworld
dw $0058 ; Screen Index
dw $01F8 ; Link X
dw $07C8 ; Link Y
dw $0762 ; BG1 Vertical Scroll
dw $076A ; BG2 Vertical Scroll
dw $0176 ; BG1 Horizontal Scroll
dw $0176 ; BG2 Horizontal Scroll
dw $0203 ; Scroll X
dw $07D7 ; Scroll Y
dw $0B2E ; Unknown 1
dw $FFF6 ; Unknown 2
dw $FFFA ; Unknown 3
dw sram_nmg_sw_outside_thieves_after
preset_nmg_sw_cursed_dwarf:
db $01 ; Overworld
dw $0058 ; Screen Index
dw $0280 ; Link X
dw $09C0 ; Link Y
dw $0904 ; BG1 Vertical Scroll
dw $091E ; BG2 Vertical Scroll
dw $019A ; BG1 Horizontal Scroll
dw $01FE ; BG2 Horizontal Scroll
dw $028B ; Scroll X
dw $098B ; Scroll Y
dw $183E ; Unknown 1
dw $0000 ; Unknown 2
dw $FFF2 ; Unknown 3
dw sram_nmg_sw_cursed_dwarf_after
preset_nmg_sw_getting_tempered:
db $01 ; Overworld
dw $0058 ; Screen Index
dw $03E1 ; Link X
dw $091A ; Link Y
dw $08EC ; BG1 Vertical Scroll
dw $08B6 ; BG2 Vertical Scroll
dw $021B ; BG1 Horizontal Scroll
dw $0300 ; BG2 Horizontal Scroll
dw $038D ; Scroll X
dw $0925 ; Scroll Y
dw $1560 ; Unknown 1
dw $0008 ; Unknown 2
dw $0000 ; Unknown 3
dw sram_nmg_sw_getting_tempered_after
preset_nmg_sw_fence_dash:
db $01 ; Overworld
dw $0062 ; Screen Index
dw $0408 ; Link X
dw $0909 ; Link Y
dw $085E ; BG1 Vertical Scroll
dw $08A6 ; BG2 Vertical Scroll
dw $0433 ; BG1 Horizontal Scroll
dw $0400 ; BG2 Horizontal Scroll
dw $047D ; Scroll X
dw $0915 ; Scroll Y
dw $0400 ; Unknown 1
dw $FFF8 ; Unknown 2
dw $0000 ; Unknown 3
dw sram_nmg_sw_fence_dash_after
preset_nmg_sw_dash_to_sw:
db $01 ; Overworld
dw $0058 ; Screen Index
dw $0348 ; Link X
dw $0608 ; Link Y
dw $06A2 ; BG1 Vertical Scroll
dw $0600 ; BG2 Vertical Scroll
dw $02CA ; BG1 Horizontal Scroll
dw $02CA ; BG2 Horizontal Scroll
dw $034F ; Scroll X
dw $066F ; Scroll Y
dw $005A ; Unknown 1
dw $0000 ; Unknown 2
dw $0006 ; Unknown 3
dw sram_nmg_sw_dash_to_sw_after
preset_nmg_sw_mummy_room:
db $01 ; Overworld
dw $0040 ; Screen Index
dw $0248 ; Link X
dw $0250 ; Link Y
dw $0367 ; BG1 Vertical Scroll
dw $01F0 ; BG2 Vertical Scroll
dw $032C ; BG1 Horizontal Scroll
dw $01CA ; BG2 Horizontal Scroll
dw $024F ; Scroll X
dw $025F ; Scroll Y
dw $0EBA ; Unknown 1
dw $FFFE ; Unknown 2
dw $0006 ; Unknown 3
dw sram_nmg_sw_mummy_room_after
preset_nmg_sw_bomb_jump:
db $01 ; Overworld
dw $0040 ; Screen Index
dw $02E8 ; Link X
dw $025B ; Link Y
dw $021A ; BG1 Vertical Scroll
dw $01FD ; BG2 Vertical Scroll
dw $01F6 ; BG1 Horizontal Scroll
dw $0266 ; BG2 Horizontal Scroll
dw $02F3 ; Scroll X
dw $026A ; Scroll Y
dw $0F4E ; Unknown 1
dw $0003 ; Unknown 2
dw $000A ; Unknown 3
dw sram_nmg_sw_bomb_jump_after
preset_nmg_sw_key_pot:
db $02 ; Dungeon
dw $0056 ; Room Index
dw $0B0C ; BG1 Vertical Scroll
dw $0B0C ; BG2 Vertical Scroll
dw $0D00 ; BG1 Horizontal Scroll
dw $0D00 ; BG2 Horizontal Scroll
dw $0D1A ; Link X
dw $0B78 ; Link Y
dw $017F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $0B00 ; Relative Coords HU
dw $0A00 ; Relative Coords FU
dw $0B10 ; Relative Coords HD
dw $0B10 ; Relative Coords FD
dw $0D00 ; Relative Coords HL
dw $0C00 ; Relative Coords FL
dw $0D00 ; Relative Coords HR
dw $0D00 ; Relative Coords FR
dw $0200 ; Quadrant 1
dw $0201 ; Quadrant 2
db $09 ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $10 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_sw_key_pot_after
preset_nmg_sw_skull_entrance:
db $01 ; Overworld
dw $0040 ; Screen Index
dw $0098 ; Link X
dw $00C7 ; Link Y
dw $01CA ; BG1 Vertical Scroll
dw $0066 ; BG2 Vertical Scroll
dw $0086 ; BG1 Horizontal Scroll
dw $0012 ; BG2 Horizontal Scroll
dw $009F ; Scroll X
dw $00D3 ; Scroll Y
dw $0282 ; Unknown 1
dw $000A ; Unknown 2
dw $FFFE ; Unknown 3
dw sram_nmg_sw_skull_entrance_after
preset_nmg_sw_mummy_hellway:
db $02 ; Dungeon
dw $0049 ; Room Index
dw $090B ; BG1 Vertical Scroll
dw $090B ; BG2 Vertical Scroll
dw $1200 ; BG1 Horizontal Scroll
dw $1200 ; BG2 Horizontal Scroll
dw $12DC ; Link X
dw $0978 ; Link Y
dw $007F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $0900 ; Relative Coords HU
dw $0800 ; Relative Coords FU
dw $0910 ; Relative Coords HD
dw $0910 ; Relative Coords FD
dw $1200 ; Relative Coords HL
dw $1200 ; Relative Coords FL
dw $1200 ; Relative Coords HR
dw $1300 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0200 ; Quadrant 2
db $09 ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $10 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_sw_mummy_hellway_after
preset_nmg_sw_mummy_key:
db $02 ; Dungeon
dw $0049 ; Room Index
dw $0800 ; BG1 Vertical Scroll
dw $0800 ; BG2 Vertical Scroll
dw $1200 ; BG1 Horizontal Scroll
dw $1200 ; BG2 Horizontal Scroll
dw $1278 ; Link X
dw $0815 ; Link Y
dw $007F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0800 ; Relative Coords HU
dw $0800 ; Relative Coords FU
dw $0810 ; Relative Coords HD
dw $0910 ; Relative Coords FD
dw $1200 ; Relative Coords HL
dw $1200 ; Relative Coords FL
dw $1200 ; Relative Coords HR
dw $1300 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0000 ; Quadrant 2
db $09 ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $10 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_sw_mummy_key_after
preset_nmg_sw_mothula:
db $02 ; Dungeon
dw $0039 ; Room Index
dw $070D ; BG1 Vertical Scroll
dw $070B ; BG2 Vertical Scroll
dw $1200 ; BG1 Horizontal Scroll
dw $1200 ; BG2 Horizontal Scroll
dw $12D0 ; Link X
dw $0778 ; Link Y
dw $007F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $0700 ; Relative Coords HU
dw $0600 ; Relative Coords FU
dw $0710 ; Relative Coords HD
dw $0710 ; Relative Coords FD
dw $1200 ; Relative Coords HL
dw $1200 ; Relative Coords FL
dw $1200 ; Relative Coords HR
dw $1300 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0200 ; Quadrant 2
db $09 ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $10 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_sw_mothula_after
preset_nmg_ice_outside_skull:
db $01 ; Overworld
dw $0040 ; Screen Index
dw $0098 ; Link X
dw $00CB ; Link Y
dw $0066 ; BG1 Vertical Scroll
dw $0069 ; BG2 Vertical Scroll
dw $0016 ; BG1 Horizontal Scroll
dw $0016 ; BG2 Horizontal Scroll
dw $00A3 ; Scroll X
dw $00D6 ; Scroll Y
dw $0282 ; Unknown 1
dw $0007 ; Unknown 2
dw $FFFA ; Unknown 3
dw sram_nmg_ice_outside_skull_after
preset_nmg_ice_bridge_warp:
db $01 ; Overworld
dw $002C ; Screen Index
dw $0898 ; Link X
dw $0A0C ; Link Y
dw $0A5C ; BG1 Vertical Scroll
dw $0A00 ; BG2 Vertical Scroll
dw $0830 ; BG1 Horizontal Scroll
dw $0820 ; BG2 Horizontal Scroll
dw $089F ; Scroll X
dw $0A6D ; Scroll Y
dw $0004 ; Unknown 1
dw $0000 ; Unknown 2
dw $0000 ; Unknown 3
dw sram_nmg_ice_bridge_warp_after
preset_nmg_ice_lottery:
db $01 ; Overworld
dw $0055 ; Screen Index
dw $0BE1 ; Link X
dw $0587 ; Link Y
dw $0520 ; BG1 Vertical Scroll
dw $051E ; BG2 Vertical Scroll
dw $0A80 ; BG1 Horizontal Scroll
dw $0B00 ; BG2 Horizontal Scroll
dw $0B7D ; Scroll X
dw $058D ; Scroll Y
dw $0920 ; Unknown 1
dw $0000 ; Unknown 2
dw $0000 ; Unknown 3
dw sram_nmg_ice_lottery_after
preset_nmg_ice_medallion:
db $01 ; Overworld
dw $0057 ; Screen Index
dw $0F70 ; Link X
dw $040C ; Link Y
dw $0491 ; BG1 Vertical Scroll
dw $0400 ; BG2 Vertical Scroll
dw $0E7F ; BG1 Horizontal Scroll
dw $0EFE ; BG2 Horizontal Scroll
dw $0F7B ; Scroll X
dw $046F ; Scroll Y
dw $009E ; Unknown 1
dw $0000 ; Unknown 2
dw $FFF2 ; Unknown 3
dw sram_nmg_ice_medallion_after
preset_nmg_ice_zoras_domain:
db $01 ; Overworld
dw $000F ; Screen Index
dw $0F40 ; Link X
dw $0215 ; Link Y
dw $0221 ; BG1 Vertical Scroll
dw $0200 ; BG2 Vertical Scroll
dw $0E7A ; BG1 Horizontal Scroll
dw $0ECD ; BG2 Horizontal Scroll
dw $0F4A ; Scroll X
dw $026F ; Scroll Y
dw $0098 ; Unknown 1
dw $0000 ; Unknown 2
dw $FFF3 ; Unknown 3
dw sram_nmg_ice_zoras_domain_after
preset_nmg_ice_tiny_warp:
db $01 ; Overworld
dw $000F ; Screen Index
dw $0F40 ; Link X
dw $0221 ; Link Y
dw $0200 ; BG1 Vertical Scroll
dw $0200 ; BG2 Vertical Scroll
dw $0ECD ; BG1 Horizontal Scroll
dw $0ECD ; BG2 Horizontal Scroll
dw $0F4A ; Scroll X
dw $026F ; Scroll Y
dw $0098 ; Unknown 1
dw $0000 ; Unknown 2
dw $FFF3 ; Unknown 3
dw sram_nmg_ice_tiny_warp_after
preset_nmg_ice_ice_entrance:
db $01 ; Overworld
dw $0075 ; Screen Index
dw $0CB8 ; Link X
dw $0DCB ; Link Y
dw $0D70 ; BG1 Vertical Scroll
dw $0D69 ; BG2 Vertical Scroll
dw $0C2C ; BG1 Horizontal Scroll
dw $0C32 ; BG2 Horizontal Scroll
dw $0CBF ; Scroll X
dw $0DD6 ; Scroll Y
dw $0BC6 ; Unknown 1
dw $0007 ; Unknown 2
dw $FFFE ; Unknown 3
dw sram_nmg_ice_ice_entrance_after
preset_nmg_ice_ice2:
db $02 ; Dungeon
dw $000E ; Room Index
dw $010C ; BG1 Vertical Scroll
dw $010C ; BG2 Vertical Scroll
dw $1D00 ; BG1 Horizontal Scroll
dw $1D00 ; BG2 Horizontal Scroll
dw $1D1E ; Link X
dw $0178 ; Link Y
dw $017F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $0100 ; Relative Coords HU
dw $0000 ; Relative Coords FU
dw $0110 ; Relative Coords HD
dw $0110 ; Relative Coords FD
dw $1D00 ; Relative Coords HL
dw $1C00 ; Relative Coords FL
dw $1D00 ; Relative Coords HR
dw $1D00 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0201 ; Quadrant 2
db $0B ; Main Graphics
db $16 ; Music Track
db $00 ; Starting Floor
db $12 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_ice_ice2_after
preset_nmg_ice_penguin_switch_room:
db $02 ; Dungeon
dw $001E ; Room Index
dw $030D ; BG1 Vertical Scroll
dw $030B ; BG2 Vertical Scroll
dw $1D00 ; BG1 Horizontal Scroll
dw $1D00 ; BG2 Horizontal Scroll
dw $1DD8 ; Link X
dw $0378 ; Link Y
dw $017F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $0300 ; Relative Coords HU
dw $0200 ; Relative Coords FU
dw $0310 ; Relative Coords HD
dw $0310 ; Relative Coords FD
dw $1D00 ; Relative Coords HL
dw $1C00 ; Relative Coords FL
dw $1D00 ; Relative Coords HR
dw $1D00 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0201 ; Quadrant 2
db $0B ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $12 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_ice_penguin_switch_room_after
preset_nmg_ice_bombable_floor:
db $02 ; Dungeon
dw $001E ; Room Index
dw $0306 ; BG1 Vertical Scroll
dw $0300 ; BG2 Vertical Scroll
dw $1D00 ; BG1 Horizontal Scroll
dw $1D00 ; BG2 Horizontal Scroll
dw $1D78 ; Link X
dw $0314 ; Link Y
dw $017F ; Camera X
dw $0178 ; Camera Y
dw $0000 ; Door Settings
dw $0300 ; Relative Coords HU
dw $0200 ; Relative Coords FU
dw $0310 ; Relative Coords HD
dw $0310 ; Relative Coords FD
dw $1D00 ; Relative Coords HL
dw $1C00 ; Relative Coords FL
dw $1D00 ; Relative Coords HR
dw $1D00 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0201 ; Quadrant 2
db $0B ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $12 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_ice_bombable_floor_after
preset_nmg_ice_conveyor_room:
db $02 ; Dungeon
dw $003E ; Room Index
dw $0610 ; BG1 Vertical Scroll
dw $0610 ; BG2 Vertical Scroll
dw $1D60 ; BG1 Horizontal Scroll
dw $1D00 ; BG2 Horizontal Scroll
dw $1D78 ; Link X
dw $06D0 ; Link Y
dw $017F ; Camera X
dw $0088 ; Camera Y
dw $0000 ; Door Settings
dw $0600 ; Relative Coords HU
dw $0600 ; Relative Coords FU
dw $0610 ; Relative Coords HD
dw $0710 ; Relative Coords FD
dw $1D00 ; Relative Coords HL
dw $1C00 ; Relative Coords FL
dw $1D00 ; Relative Coords HR
dw $1D00 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0001 ; Quadrant 2
db $0B ; Main Graphics
db $16 ; Music Track
db $FE ; Starting Floor
db $12 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_ice_conveyor_room_after
preset_nmg_ice_ipbj:
db $02 ; Dungeon
dw $003E ; Room Index
dw $0710 ; BG1 Vertical Scroll
dw $0710 ; BG2 Vertical Scroll
dw $1BD7 ; BG1 Horizontal Scroll
dw $1C00 ; BG2 Horizontal Scroll
dw $1C78 ; Link X
dw $07D3 ; Link Y
dw $007F ; Camera X
dw $0188 ; Camera Y
dw $0000 ; Door Settings
dw $0700 ; Relative Coords HU
dw $0600 ; Relative Coords FU
dw $0710 ; Relative Coords HD
dw $0710 ; Relative Coords FD
dw $1C00 ; Relative Coords HL
dw $1C00 ; Relative Coords FL
dw $1C00 ; Relative Coords HR
dw $1D00 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0200 ; Quadrant 2
db $0B ; Main Graphics
db $16 ; Music Track
db $FE ; Starting Floor
db $12 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_ice_ipbj_after
preset_nmg_ice_penguin_room:
db $02 ; Dungeon
dw $004E ; Room Index
dw $0800 ; BG1 Vertical Scroll
dw $0800 ; BG2 Vertical Scroll
dw $1D00 ; BG1 Horizontal Scroll
dw $1D00 ; BG2 Horizontal Scroll
dw $1DB8 ; Link X
dw $0862 ; Link Y
dw $017F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0800 ; Relative Coords HU
dw $0800 ; Relative Coords FU
dw $0810 ; Relative Coords HD
dw $0910 ; Relative Coords FD
dw $1D00 ; Relative Coords HL
dw $1C00 ; Relative Coords FL
dw $1D00 ; Relative Coords HR
dw $1D00 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0001 ; Quadrant 2
db $0B ; Main Graphics
db $16 ; Music Track
db $FE ; Starting Floor
db $12 ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_ice_penguin_room_after
preset_nmg_ice_lonely_firebar:
db $02 ; Dungeon
dw $005E ; Room Index
dw $0B0D ; BG1 Vertical Scroll
dw $0B0B ; BG2 Vertical Scroll
dw $1D00 ; BG1 Horizontal Scroll
dw $1D00 ; BG2 Horizontal Scroll
dw $1D10 ; Link X
dw $0B78 ; Link Y
dw $017F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $0B00 ; Relative Coords HU
dw $0A00 ; Relative Coords FU
dw $0B10 ; Relative Coords HD
dw $0B10 ; Relative Coords FD
dw $1D00 ; Relative Coords HL
dw $1C00 ; Relative Coords FL
dw $1D00 ; Relative Coords HR
dw $1D00 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0201 ; Quadrant 2
db $0B ; Main Graphics
db $16 ; Music Track
db $FD ; Starting Floor
db $12 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_ice_lonely_firebar_after
preset_nmg_ice_last_two_screens:
db $02 ; Dungeon
dw $009E ; Room Index
dw $130D ; BG1 Vertical Scroll
dw $130B ; BG2 Vertical Scroll
dw $1D00 ; BG1 Horizontal Scroll
dw $1D00 ; BG2 Horizontal Scroll
dw $1D50 ; Link X
dw $1378 ; Link Y
dw $017F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $1300 ; Relative Coords HU
dw $1200 ; Relative Coords FU
dw $1310 ; Relative Coords HD
dw $1310 ; Relative Coords FD
dw $1D00 ; Relative Coords HL
dw $1C00 ; Relative Coords FL
dw $1D00 ; Relative Coords HR
dw $1D00 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0201 ; Quadrant 2
db $0B ; Main Graphics
db $16 ; Music Track
db $FB ; Starting Floor
db $12 ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_ice_last_two_screens_after
preset_nmg_ice_kholdstare:
db $02 ; Dungeon
dw $00CE ; Room Index
dw $1808 ; BG1 Vertical Scroll
dw $1810 ; BG2 Vertical Scroll
dw $1D00 ; BG1 Horizontal Scroll
dw $1D00 ; BG2 Horizontal Scroll
dw $1D40 ; Link X
dw $18AA ; Link Y
dw $017F ; Camera X
dw $0088 ; Camera Y
dw $0000 ; Door Settings
dw $1800 ; Relative Coords HU
dw $1800 ; Relative Coords FU
dw $1810 ; Relative Coords HD
dw $1910 ; Relative Coords FD
dw $1D00 ; Relative Coords HL
dw $1C00 ; Relative Coords FL
dw $1D00 ; Relative Coords HR
dw $1D00 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0001 ; Quadrant 2
db $0B ; Main Graphics
db $16 ; Music Track
db $FA ; Starting Floor
db $12 ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_ice_kholdstare_after
preset_nmg_swamp_outside_ice:
db $01 ; Overworld
dw $0075 ; Screen Index
dw $0CB8 ; Link X
dw $0DCB ; Link Y
dw $0D6B ; BG1 Vertical Scroll
dw $0D6D ; BG2 Vertical Scroll
dw $0C3E ; BG1 Horizontal Scroll
dw $0C3E ; BG2 Horizontal Scroll
dw $0CC3 ; Scroll X
dw $0DDA ; Scroll Y
dw $0BC6 ; Unknown 1
dw $0003 ; Unknown 2
dw $FFF2 ; Unknown 3
dw sram_nmg_swamp_outside_ice_after
preset_nmg_swamp_links_house:
db $01 ; Overworld
dw $002C ; Screen Index
dw $08B8 ; Link X
dw $0B23 ; Link Y
dw $0ABF ; BG1 Vertical Scroll
dw $0AC5 ; BG2 Vertical Scroll
dw $0840 ; BG1 Horizontal Scroll
dw $0840 ; BG2 Horizontal Scroll
dw $08BF ; Scroll X
dw $0B32 ; Scroll Y
dw $0608 ; Unknown 1
dw $FFFB ; Unknown 2
dw $0000 ; Unknown 3
dw sram_nmg_swamp_links_house_after
preset_nmg_swamp_swamp_overworld:
db $01 ; Overworld
dw $0073 ; Screen Index
dw $07AF ; Link X
dw $0DD9 ; Link Y
dw $0C8F ; BG1 Vertical Scroll
dw $0D1E ; BG2 Vertical Scroll
dw $06DF ; BG1 Horizontal Scroll
dw $0700 ; BG2 Horizontal Scroll
dw $0785 ; Scroll X
dw $0D93 ; Scroll Y
dw $08A0 ; Unknown 1
dw $0000 ; Unknown 2
dw $0000 ; Unknown 3
dw sram_nmg_swamp_swamp_overworld_after
preset_nmg_swamp_antifairy_room:
db $01 ; Overworld
dw $003B ; Screen Index
dw $0778 ; Link X
dw $0EF0 ; Link Y
dw $0E9C ; BG1 Vertical Scroll
dw $0E91 ; BG2 Vertical Scroll
dw $06FC ; BG1 Horizontal Scroll
dw $06FA ; BG2 Horizontal Scroll
dw $077F ; Scroll X
dw $0EFE ; Scroll Y
dw $0520 ; Unknown 1
dw $000F ; Unknown 2
dw $0006 ; Unknown 3
dw sram_nmg_swamp_antifairy_room_after
preset_nmg_swamp_entrance:
db $01 ; Overworld
dw $007B ; Screen Index
dw $0778 ; Link X
dw $0EEF ; Link Y
dw $0E99 ; BG1 Vertical Scroll
dw $0E91 ; BG2 Vertical Scroll
dw $06FC ; BG1 Horizontal Scroll
dw $06FA ; BG2 Horizontal Scroll
dw $077F ; Scroll X
dw $0EFE ; Scroll Y
dw $0520 ; Unknown 1
dw $000F ; Unknown 2
dw $0006 ; Unknown 3
dw sram_nmg_swamp_entrance_after
preset_nmg_swamp_first_key_pot:
db $02 ; Dungeon
dw $0028 ; Room Index
dw $0400 ; BG1 Vertical Scroll
dw $0400 ; BG2 Vertical Scroll
dw $1000 ; BG1 Horizontal Scroll
dw $1000 ; BG2 Horizontal Scroll
dw $1078 ; Link X
dw $0426 ; Link Y
dw $007F ; Camera X
dw $0077 ; Camera Y
dw $0000 ; Door Settings
dw $0400 ; Relative Coords HU
dw $0400 ; Relative Coords FU
dw $0410 ; Relative Coords HD
dw $0510 ; Relative Coords FD
dw $1000 ; Relative Coords HL
dw $1000 ; Relative Coords FL
dw $1000 ; Relative Coords HR
dw $1100 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0000 ; Quadrant 2
db $08 ; Main Graphics
db $16 ; Music Track
db $00 ; Starting Floor
db $0A ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_swamp_first_key_pot_after
preset_nmg_swamp_hallway_key_1:
db $02 ; Dungeon
dw $0037 ; Room Index
dw $0700 ; BG1 Vertical Scroll
dw $0700 ; BG2 Vertical Scroll
dw $0E80 ; BG1 Horizontal Scroll
dw $0E80 ; BG2 Horizontal Scroll
dw $0EF8 ; Link X
dw $0728 ; Link Y
dw $00FF ; Camera X
dw $0177 ; Camera Y
dw $0000 ; Door Settings
dw $0700 ; Relative Coords HU
dw $0600 ; Relative Coords FU
dw $0710 ; Relative Coords HD
dw $0710 ; Relative Coords FD
dw $0E00 ; Relative Coords HL
dw $0E00 ; Relative Coords FL
dw $0E00 ; Relative Coords HR
dw $0F00 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0200 ; Quadrant 2
db $08 ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0A ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_swamp_hallway_key_1_after
preset_nmg_swamp_water_lever_1:
db $02 ; Dungeon
dw $0037 ; Room Index
dw $0700 ; BG1 Vertical Scroll
dw $0700 ; BG2 Vertical Scroll
dw $0E00 ; BG1 Horizontal Scroll
dw $0E00 ; BG2 Horizontal Scroll
dw $0E78 ; Link X
dw $071D ; Link Y
dw $007F ; Camera X
dw $0178 ; Camera Y
dw $0000 ; Door Settings
dw $0700 ; Relative Coords HU
dw $0600 ; Relative Coords FU
dw $0710 ; Relative Coords HD
dw $0710 ; Relative Coords FD
dw $0E00 ; Relative Coords HL
dw $0E00 ; Relative Coords FL
dw $0E00 ; Relative Coords HR
dw $0F00 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0200 ; Quadrant 2
db $08 ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0A ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_swamp_water_lever_1_after
preset_nmg_swamp_main_hub:
db $02 ; Dungeon
dw $0037 ; Room Index
dw $070B ; BG1 Vertical Scroll
dw $070B ; BG2 Vertical Scroll
dw $0E00 ; BG1 Horizontal Scroll
dw $0E00 ; BG2 Horizontal Scroll
dw $0E18 ; Link X
dw $0778 ; Link Y
dw $007F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $0700 ; Relative Coords HU
dw $0600 ; Relative Coords FU
dw $0710 ; Relative Coords HD
dw $0710 ; Relative Coords FD
dw $0E00 ; Relative Coords HL
dw $0E00 ; Relative Coords FL
dw $0E00 ; Relative Coords HR
dw $0F00 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0200 ; Quadrant 2
db $08 ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0A ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_swamp_main_hub_after
preset_nmg_swamp_water_lever_2:
db $02 ; Dungeon
dw $0036 ; Room Index
dw $060B ; BG1 Vertical Scroll
dw $060B ; BG2 Vertical Scroll
dw $0C00 ; BG1 Horizontal Scroll
dw $0C00 ; BG2 Horizontal Scroll
dw $0C17 ; Link X
dw $0678 ; Link Y
dw $007F ; Camera X
dw $0083 ; Camera Y
dw $0000 ; Door Settings
dw $0600 ; Relative Coords HU
dw $0600 ; Relative Coords FU
dw $0610 ; Relative Coords HD
dw $0710 ; Relative Coords FD
dw $0C00 ; Relative Coords HL
dw $0C00 ; Relative Coords FL
dw $0C00 ; Relative Coords HR
dw $0D00 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0000 ; Quadrant 2
db $08 ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0A ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_swamp_water_lever_2_after
preset_nmg_swamp_sociable_firebar:
db $02 ; Dungeon
dw $0034 ; Room Index
dw $06BF ; BG1 Vertical Scroll
dw $06BF ; BG2 Vertical Scroll
dw $0800 ; BG1 Horizontal Scroll
dw $0800 ; BG2 Horizontal Scroll
dw $0878 ; Link X
dw $072C ; Link Y
dw $007F ; Camera X
dw $0137 ; Camera Y
dw $0000 ; Door Settings
dw $0700 ; Relative Coords HU
dw $0600 ; Relative Coords FU
dw $0710 ; Relative Coords HD
dw $0710 ; Relative Coords FD
dw $0800 ; Relative Coords HL
dw $0800 ; Relative Coords FL
dw $0800 ; Relative Coords HR
dw $0900 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0200 ; Quadrant 2
db $08 ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0A ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_swamp_sociable_firebar_after
preset_nmg_swamp_backtracking:
db $02 ; Dungeon
dw $0035 ; Room Index
dw $060B ; BG1 Vertical Scroll
dw $060B ; BG2 Vertical Scroll
dw $0A00 ; BG1 Horizontal Scroll
dw $0A00 ; BG2 Horizontal Scroll
dw $0A19 ; Link X
dw $0678 ; Link Y
dw $007F ; Camera X
dw $0083 ; Camera Y
dw $0000 ; Door Settings
dw $0600 ; Relative Coords HU
dw $0600 ; Relative Coords FU
dw $0610 ; Relative Coords HD
dw $0710 ; Relative Coords FD
dw $0A00 ; Relative Coords HL
dw $0A00 ; Relative Coords FL
dw $0A00 ; Relative Coords HR
dw $0B00 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0000 ; Quadrant 2
db $08 ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0A ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_swamp_backtracking_after
preset_nmg_swamp_hook_shot:
db $02 ; Dungeon
dw $0035 ; Room Index
dw $070B ; BG1 Vertical Scroll
dw $070B ; BG2 Vertical Scroll
dw $0B00 ; BG1 Horizontal Scroll
dw $0B00 ; BG2 Horizontal Scroll
dw $0BDA ; Link X
dw $0778 ; Link Y
dw $017F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $0700 ; Relative Coords HU
dw $0600 ; Relative Coords FU
dw $0710 ; Relative Coords HD
dw $0710 ; Relative Coords FD
dw $0B00 ; Relative Coords HL
dw $0A00 ; Relative Coords FL
dw $0B00 ; Relative Coords HR
dw $0B00 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0201 ; Quadrant 2
db $08 ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0A ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_swamp_hook_shot_after
preset_nmg_swamp_hookdash:
db $02 ; Dungeon
dw $0036 ; Room Index
dw $0600 ; BG1 Vertical Scroll
dw $0600 ; BG2 Vertical Scroll
dw $0C80 ; BG1 Horizontal Scroll
dw $0C80 ; BG2 Horizontal Scroll
dw $0CF8 ; Link X
dw $062C ; Link Y
dw $00FF ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0600 ; Relative Coords HU
dw $0600 ; Relative Coords FU
dw $0610 ; Relative Coords HD
dw $0710 ; Relative Coords FD
dw $0C00 ; Relative Coords HL
dw $0C00 ; Relative Coords FL
dw $0C00 ; Relative Coords HR
dw $0D00 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0000 ; Quadrant 2
db $08 ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0A ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_swamp_hookdash_after
preset_nmg_swamp_water_lever_3:
db $02 ; Dungeon
dw $0026 ; Room Index
dw $0400 ; BG1 Vertical Scroll
dw $0400 ; BG2 Vertical Scroll
dw $0D00 ; BG1 Horizontal Scroll
dw $0D00 ; BG2 Horizontal Scroll
dw $0DA8 ; Link X
dw $0426 ; Link Y
dw $017F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0400 ; Relative Coords HU
dw $0400 ; Relative Coords FU
dw $0410 ; Relative Coords HD
dw $0510 ; Relative Coords FD
dw $0D00 ; Relative Coords HL
dw $0C00 ; Relative Coords FL
dw $0D00 ; Relative Coords HR
dw $0D00 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0001 ; Quadrant 2
db $08 ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0A ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_swamp_water_lever_3_after
preset_nmg_swamp_restock:
db $02 ; Dungeon
dw $0066 ; Room Index
dw $0D00 ; BG1 Vertical Scroll
dw $0D00 ; BG2 Vertical Scroll
dw $0D00 ; BG1 Horizontal Scroll
dw $0D00 ; BG2 Horizontal Scroll
dw $0D78 ; Link X
dw $0D2A ; Link Y
dw $017F ; Camera X
dw $0178 ; Camera Y
dw $0000 ; Door Settings
dw $0D00 ; Relative Coords HU
dw $0C00 ; Relative Coords FU
dw $0D10 ; Relative Coords HD
dw $0D10 ; Relative Coords FD
dw $0D00 ; Relative Coords HL
dw $0C00 ; Relative Coords FL
dw $0D00 ; Relative Coords HR
dw $0D00 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0201 ; Quadrant 2
db $08 ; Main Graphics
db $16 ; Music Track
db $FE ; Starting Floor
db $0A ; Palace No
db $01 ; Door Orientation
db $01 ; Starting Background
dw sram_nmg_swamp_restock_after
preset_nmg_swamp_phelps_way:
db $02 ; Dungeon
dw $0016 ; Room Index
dw $0210 ; BG1 Vertical Scroll
dw $0210 ; BG2 Vertical Scroll
dw $0D00 ; BG1 Horizontal Scroll
dw $0D00 ; BG2 Horizontal Scroll
dw $0D78 ; Link X
dw $02D8 ; Link Y
dw $017F ; Camera X
dw $0088 ; Camera Y
dw $0000 ; Door Settings
dw $0200 ; Relative Coords HU
dw $0200 ; Relative Coords FU
dw $0210 ; Relative Coords HD
dw $0310 ; Relative Coords FD
dw $0D00 ; Relative Coords HL
dw $0C00 ; Relative Coords FL
dw $0D00 ; Relative Coords HR
dw $0D00 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0001 ; Quadrant 2
db $08 ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0A ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_swamp_phelps_way_after
preset_nmg_swamp_arrghus:
db $02 ; Dungeon
dw $0016 ; Room Index
dw $0200 ; BG1 Vertical Scroll
dw $0200 ; BG2 Vertical Scroll
dw $0C00 ; BG1 Horizontal Scroll
dw $0C00 ; BG2 Horizontal Scroll
dw $0C78 ; Link X
dw $0212 ; Link Y
dw $007F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0200 ; Relative Coords HU
dw $0200 ; Relative Coords FU
dw $0210 ; Relative Coords HD
dw $0310 ; Relative Coords FD
dw $0C00 ; Relative Coords HL
dw $0C00 ; Relative Coords FL
dw $0C00 ; Relative Coords HR
dw $0D00 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0000 ; Quadrant 2
db $08 ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0A ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_swamp_arrghus_after
preset_nmg_mire_outside_swamp:
db $01 ; Overworld
dw $007B ; Screen Index
dw $077A ; Link X
dw $0EFA ; Link Y
dw $0E94 ; BG1 Vertical Scroll
dw $0E9C ; BG2 Vertical Scroll
dw $06F3 ; BG1 Horizontal Scroll
dw $06F4 ; BG2 Horizontal Scroll
dw $0781 ; Scroll X
dw $0F09 ; Scroll Y
dw $049E ; Unknown 1
dw $FFF4 ; Unknown 2
dw $FFFC ; Unknown 3
dw sram_nmg_mire_outside_swamp_after
preset_nmg_mire_dm:
db $01 ; Overworld
dw $0003 ; Screen Index
dw $067B ; Link X
dw $0328 ; Link Y
dw $02CA ; BG1 Vertical Scroll
dw $02CA ; BG2 Vertical Scroll
dw $060D ; BG1 Horizontal Scroll
dw $060D ; BG2 Horizontal Scroll
dw $0682 ; Scroll X
dw $0337 ; Scroll Y
dw $1600 ; Unknown 1
dw $FFF6 ; Unknown 2
dw $FFF3 ; Unknown 3
dw sram_nmg_mire_dm_after
preset_nmg_mire_free_flutedash:
db $01 ; Overworld
dw $0003 ; Screen Index
dw $06C1 ; Link X
dw $004B ; Link Y
dw $006C ; BG1 Vertical Scroll
dw $0000 ; BG2 Vertical Scroll
dw $0757 ; BG1 Horizontal Scroll
dw $0653 ; BG2 Horizontal Scroll
dw $06C8 ; Scroll X
dw $006D ; Scroll Y
dw $000A ; Unknown 1
dw $0000 ; Unknown 2
dw $FFFD ; Unknown 3
dw sram_nmg_mire_free_flutedash_after
preset_nmg_mire_darkworld_warp:
db $01 ; Overworld
dw $0030 ; Screen Index
dw $008E ; Link X
dw $0FA8 ; Link Y
dw $0F1E ; BG1 Vertical Scroll
dw $0F1E ; BG2 Vertical Scroll
dw $0006 ; BG1 Horizontal Scroll
dw $000C ; BG2 Horizontal Scroll
dw $0099 ; Scroll X
dw $0F8D ; Scroll Y
dw $1880 ; Unknown 1
dw $0000 ; Unknown 2
dw $FFF4 ; Unknown 3
dw sram_nmg_mire_darkworld_warp_after
preset_nmg_mire_entrance:
db $01 ; Overworld
dw $0070 ; Screen Index
dw $0128 ; Link X
dw $0CE6 ; Link Y
dw $F3D0 ; BG1 Vertical Scroll
dw $0C82 ; BG2 Vertical Scroll
dw $8562 ; BG1 Horizontal Scroll
dw $00A6 ; BG2 Horizontal Scroll
dw $0133 ; Scroll X
dw $0CF1 ; Scroll Y
dw $0414 ; Unknown 1
dw $000C ; Unknown 2
dw $FFFA ; Unknown 3
dw sram_nmg_mire_entrance_after
preset_nmg_mire_mire2:
db $02 ; Dungeon
dw $0098 ; Room Index
dw $1300 ; BG1 Vertical Scroll
dw $1300 ; BG2 Vertical Scroll
dw $1100 ; BG1 Horizontal Scroll
dw $1100 ; BG2 Horizontal Scroll
dw $1188 ; Link X
dw $132A ; Link Y
dw $017F ; Camera X
dw $0177 ; Camera Y
dw $0000 ; Door Settings
dw $1300 ; Relative Coords HU
dw $1200 ; Relative Coords FU
dw $1310 ; Relative Coords HD
dw $1310 ; Relative Coords FD
dw $1100 ; Relative Coords HL
dw $1000 ; Relative Coords FL
dw $1100 ; Relative Coords HR
dw $1100 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0201 ; Quadrant 2
db $0C ; Main Graphics
db $16 ; Music Track
db $00 ; Starting Floor
db $0E ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_mire_mire2_after
preset_nmg_mire_main_hub:
db $02 ; Dungeon
dw $00D2 ; Room Index
dw $1A00 ; BG1 Vertical Scroll
dw $1A00 ; BG2 Vertical Scroll
dw $0500 ; BG1 Horizontal Scroll
dw $0500 ; BG2 Horizontal Scroll
dw $0578 ; Link X
dw $1A1C ; Link Y
dw $017F ; Camera X
dw $0077 ; Camera Y
dw $0000 ; Door Settings
dw $1A00 ; Relative Coords HU
dw $1A00 ; Relative Coords FU
dw $1A10 ; Relative Coords HD
dw $1B10 ; Relative Coords FD
dw $0500 ; Relative Coords HL
dw $0400 ; Relative Coords FL
dw $0500 ; Relative Coords HR
dw $0500 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0001 ; Quadrant 2
db $0C ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0E ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_mire_main_hub_after
preset_nmg_mire_beat_the_fireball:
db $02 ; Dungeon
dw $00B2 ; Room Index
dw $1710 ; BG1 Vertical Scroll
dw $1710 ; BG2 Vertical Scroll
dw $0500 ; BG1 Horizontal Scroll
dw $0500 ; BG2 Horizontal Scroll
dw $0578 ; Link X
dw $17E2 ; Link Y
dw $017F ; Camera X
dw $0188 ; Camera Y
dw $0000 ; Door Settings
dw $1700 ; Relative Coords HU
dw $1600 ; Relative Coords FU
dw $1710 ; Relative Coords HD
dw $1710 ; Relative Coords FD
dw $0500 ; Relative Coords HL
dw $0400 ; Relative Coords FL
dw $0500 ; Relative Coords HR
dw $0500 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0201 ; Quadrant 2
db $0C ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0E ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_mire_beat_the_fireball_after
preset_nmg_mire_bari_key:
db $02 ; Dungeon
dw $00C2 ; Room Index
dw $190B ; BG1 Vertical Scroll
dw $190B ; BG2 Vertical Scroll
dw $0400 ; BG1 Horizontal Scroll
dw $0400 ; BG2 Horizontal Scroll
dw $0415 ; Link X
dw $1978 ; Link Y
dw $007F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $1900 ; Relative Coords HU
dw $1800 ; Relative Coords FU
dw $1910 ; Relative Coords HD
dw $1910 ; Relative Coords FD
dw $0400 ; Relative Coords HL
dw $0400 ; Relative Coords FL
dw $0400 ; Relative Coords HR
dw $0500 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0200 ; Quadrant 2
db $0C ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0E ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_mire_bari_key_after
preset_nmg_mire_sluggulas:
db $02 ; Dungeon
dw $00C1 ; Room Index
dw $1910 ; BG1 Vertical Scroll
dw $1910 ; BG2 Vertical Scroll
dw $0200 ; BG1 Horizontal Scroll
dw $0200 ; BG2 Horizontal Scroll
dw $0278 ; Link X
dw $19CF ; Link Y
dw $007F ; Camera X
dw $0188 ; Camera Y
dw $0000 ; Door Settings
dw $1900 ; Relative Coords HU
dw $1800 ; Relative Coords FU
dw $1910 ; Relative Coords HD
dw $1910 ; Relative Coords FD
dw $0200 ; Relative Coords HL
dw $0200 ; Relative Coords FL
dw $0200 ; Relative Coords HR
dw $0300 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0200 ; Quadrant 2
db $0C ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0E ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_mire_sluggulas_after
preset_nmg_mire_torches:
db $02 ; Dungeon
dw $00D1 ; Room Index
dw $1A00 ; BG1 Vertical Scroll
dw $1A00 ; BG2 Vertical Scroll
dw $0200 ; BG1 Horizontal Scroll
dw $0200 ; BG2 Horizontal Scroll
dw $02A8 ; Link X
dw $1A28 ; Link Y
dw $007F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $1A00 ; Relative Coords HU
dw $1A00 ; Relative Coords FU
dw $1A10 ; Relative Coords HD
dw $1B10 ; Relative Coords FD
dw $0200 ; Relative Coords HL
dw $0200 ; Relative Coords FL
dw $0200 ; Relative Coords HR
dw $0300 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0000 ; Quadrant 2
db $0C ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0E ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_mire_torches_after
preset_nmg_mire_spark_gamble:
db $02 ; Dungeon
dw $00C1 ; Room Index
dw $180B ; BG1 Vertical Scroll
dw $180B ; BG2 Vertical Scroll
dw $0300 ; BG1 Horizontal Scroll
dw $0300 ; BG2 Horizontal Scroll
dw $03D6 ; Link X
dw $1878 ; Link Y
dw $017F ; Camera X
dw $0083 ; Camera Y
dw $0000 ; Door Settings
dw $1800 ; Relative Coords HU
dw $1800 ; Relative Coords FU
dw $1810 ; Relative Coords HD
dw $1910 ; Relative Coords FD
dw $0300 ; Relative Coords HL
dw $0200 ; Relative Coords FL
dw $0300 ; Relative Coords HR
dw $0300 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0001 ; Quadrant 2
db $0C ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0E ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_mire_spark_gamble_after
preset_nmg_mire_big_chest_room:
db $02 ; Dungeon
dw $00C3 ; Room Index
dw $190B ; BG1 Vertical Scroll
dw $190B ; BG2 Vertical Scroll
dw $0600 ; BG1 Horizontal Scroll
dw $0600 ; BG2 Horizontal Scroll
dw $06D8 ; Link X
dw $1978 ; Link Y
dw $007F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $1900 ; Relative Coords HU
dw $1800 ; Relative Coords FU
dw $1910 ; Relative Coords HD
dw $1910 ; Relative Coords FD
dw $0600 ; Relative Coords HL
dw $0600 ; Relative Coords FL
dw $0600 ; Relative Coords HR
dw $0700 ; Relative Coords FR
dw $0200 ; Quadrant 1
dw $0200 ; Quadrant 2
db $0C ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0E ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_mire_big_chest_room_after
preset_nmg_mire_spike_key:
db $02 ; Dungeon
dw $00C3 ; Room Index
dw $1800 ; BG1 Vertical Scroll
dw $1800 ; BG2 Vertical Scroll
dw $0600 ; BG1 Horizontal Scroll
dw $0600 ; BG2 Horizontal Scroll
dw $0678 ; Link X
dw $1814 ; Link Y
dw $007F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $1800 ; Relative Coords HU
dw $1800 ; Relative Coords FU
dw $1810 ; Relative Coords HD
dw $1910 ; Relative Coords FD
dw $0600 ; Relative Coords HL
dw $0600 ; Relative Coords FL
dw $0600 ; Relative Coords HR
dw $0700 ; Relative Coords FR
dw $0200 ; Quadrant 1
dw $0000 ; Quadrant 2
db $0C ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0E ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_mire_spike_key_after
preset_nmg_mire_wizzrobe:
db $02 ; Dungeon
dw $00B3 ; Room Index
dw $160B ; BG1 Vertical Scroll
dw $160B ; BG2 Vertical Scroll
dw $0600 ; BG1 Horizontal Scroll
dw $0600 ; BG2 Horizontal Scroll
dw $0624 ; Link X
dw $1678 ; Link Y
dw $007F ; Camera X
dw $0083 ; Camera Y
dw $0000 ; Door Settings
dw $1600 ; Relative Coords HU
dw $1600 ; Relative Coords FU
dw $1610 ; Relative Coords HD
dw $1710 ; Relative Coords FD
dw $0600 ; Relative Coords HL
dw $0600 ; Relative Coords FL
dw $0600 ; Relative Coords HR
dw $0700 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0000 ; Quadrant 2
db $0C ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0E ; Palace No
db $02 ; Door Orientation
db $01 ; Starting Background
dw sram_nmg_mire_wizzrobe_after
preset_nmg_mire_basement:
db $02 ; Dungeon
dw $00A2 ; Room Index
dw $1400 ; BG1 Vertical Scroll
dw $1400 ; BG2 Vertical Scroll
dw $0480 ; BG1 Horizontal Scroll
dw $0480 ; BG2 Horizontal Scroll
dw $04F8 ; Link X
dw $1444 ; Link Y
dw $00FF ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $1400 ; Relative Coords HU
dw $1400 ; Relative Coords FU
dw $1410 ; Relative Coords HD
dw $1510 ; Relative Coords FD
dw $0400 ; Relative Coords HL
dw $0400 ; Relative Coords FL
dw $0400 ; Relative Coords HR
dw $0500 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0000 ; Quadrant 2
db $0C ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0E ; Palace No
db $00 ; Door Orientation
db $01 ; Starting Background
dw sram_nmg_mire_basement_after
preset_nmg_mire_spooky_action_1:
db $02 ; Dungeon
dw $0093 ; Room Index
dw $0105 ; BG1 Vertical Scroll
dw $130B ; BG2 Vertical Scroll
dw $004E ; BG1 Horizontal Scroll
dw $0600 ; BG2 Horizontal Scroll
dw $0612 ; Link X
dw $1378 ; Link Y
dw $007F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $1300 ; Relative Coords HU
dw $1200 ; Relative Coords FU
dw $1310 ; Relative Coords HD
dw $1310 ; Relative Coords FD
dw $0600 ; Relative Coords HL
dw $0600 ; Relative Coords FL
dw $0600 ; Relative Coords HR
dw $0700 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0200 ; Quadrant 2
db $0C ; Main Graphics
db $16 ; Music Track
db $FE ; Starting Floor
db $0E ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_mire_spooky_action_1_after
preset_nmg_mire_spooky_action_2:
db $02 ; Dungeon
dw $0092 ; Room Index
dw $0105 ; BG1 Vertical Scroll
dw $130B ; BG2 Vertical Scroll
dw $004E ; BG1 Horizontal Scroll
dw $0500 ; BG2 Horizontal Scroll
dw $0515 ; Link X
dw $1378 ; Link Y
dw $017F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $1300 ; Relative Coords HU
dw $1200 ; Relative Coords FU
dw $1310 ; Relative Coords HD
dw $1310 ; Relative Coords FD
dw $0500 ; Relative Coords HL
dw $0400 ; Relative Coords FL
dw $0500 ; Relative Coords HR
dw $0500 ; Relative Coords FR
dw $0200 ; Quadrant 1
dw $0201 ; Quadrant 2
db $0C ; Main Graphics
db $16 ; Music Track
db $FE ; Starting Floor
db $0E ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_mire_spooky_action_2_after
preset_nmg_mire_vitty:
db $02 ; Dungeon
dw $00A0 ; Room Index
dw $1400 ; BG1 Vertical Scroll
dw $1400 ; BG2 Vertical Scroll
dw $0000 ; BG1 Horizontal Scroll
dw $0000 ; BG2 Horizontal Scroll
dw $0078 ; Link X
dw $1428 ; Link Y
dw $007F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $1400 ; Relative Coords HU
dw $1400 ; Relative Coords FU
dw $1410 ; Relative Coords HD
dw $1510 ; Relative Coords FD
dw $0000 ; Relative Coords HL
dw $0000 ; Relative Coords FL
dw $0000 ; Relative Coords HR
dw $0100 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0000 ; Quadrant 2
db $0C ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $0E ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_mire_vitty_after
preset_nmg_trock_outside_mire:
db $01 ; Overworld
dw $0070 ; Screen Index
dw $0128 ; Link X
dw $0CDA ; Link Y
dw $0C7D ; BG1 Vertical Scroll
dw $0C7C ; BG2 Vertical Scroll
dw $00A6 ; BG1 Horizontal Scroll
dw $00A6 ; BG2 Horizontal Scroll
dw $0133 ; Scroll X
dw $0CE9 ; Scroll Y
dw $0414 ; Unknown 1
dw $0004 ; Unknown 2
dw $FFFA ; Unknown 3
dw sram_nmg_trock_outside_mire_after
preset_nmg_trock_icerod_overworld:
db $01 ; Overworld
dw $003F ; Screen Index
dw $0F70 ; Link X
dw $0E07 ; Link Y
dw $0E82 ; BG1 Vertical Scroll
dw $0E00 ; BG2 Vertical Scroll
dw $0EB5 ; BG1 Horizontal Scroll
dw $0EF6 ; BG2 Horizontal Scroll
dw $0F7B ; Scroll X
dw $0E6D ; Scroll Y
dw $001E ; Unknown 1
dw $0000 ; Unknown 2
dw $FFFA ; Unknown 3
dw sram_nmg_trock_icerod_overworld_after
preset_nmg_trock_dm:
db $01 ; Overworld
dw $0003 ; Screen Index
dw $067B ; Link X
dw $0328 ; Link Y
dw $02CA ; BG1 Vertical Scroll
dw $02CA ; BG2 Vertical Scroll
dw $060D ; BG1 Horizontal Scroll
dw $060D ; BG2 Horizontal Scroll
dw $0682 ; Scroll X
dw $0337 ; Scroll Y
dw $1600 ; Unknown 1
dw $FFF6 ; Unknown 2
dw $FFF3 ; Unknown 3
dw sram_nmg_trock_dm_after
preset_nmg_trock_squirrels:
db $02 ; Dungeon
dw $00DF ; Room Index
dw $1B10 ; BG1 Vertical Scroll
dw $1B10 ; BG2 Vertical Scroll
dw $1E80 ; BG1 Horizontal Scroll
dw $1E80 ; BG2 Horizontal Scroll
dw $1EF8 ; Link X
dw $1BD9 ; Link Y
dw $00FF ; Camera X
dw $0187 ; Camera Y
dw $0000 ; Door Settings
dw $1B00 ; Relative Coords HU
dw $1A00 ; Relative Coords FU
dw $1B10 ; Relative Coords HD
dw $1B10 ; Relative Coords FD
dw $1E00 ; Relative Coords HL
dw $1E00 ; Relative Coords FL
dw $1E00 ; Relative Coords HR
dw $1F00 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0200 ; Quadrant 2
db $06 ; Main Graphics
db $12 ; Music Track
db $01 ; Starting Floor
db $FF ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_trock_squirrels_after
preset_nmg_trock_peg_puzzle:
db $01 ; Overworld
dw $0005 ; Screen Index
dw $0DE1 ; Link X
dw $0077 ; Link Y
dw $0053 ; BG1 Vertical Scroll
dw $0013 ; BG2 Vertical Scroll
dw $0D00 ; BG1 Horizontal Scroll
dw $0D00 ; BG2 Horizontal Scroll
dw $0D7D ; Scroll X
dw $0082 ; Scroll Y
dw $0060 ; Unknown 1
dw $000B ; Unknown 2
dw $0000 ; Unknown 3
dw sram_nmg_trock_peg_puzzle_after
preset_nmg_trock_entrance:
db $01 ; Overworld
dw $0047 ; Screen Index
dw $0F08 ; Link X
dw $013D ; Link Y
dw $00B3 ; BG1 Vertical Scroll
dw $00DB ; BG2 Vertical Scroll
dw $0E96 ; BG1 Horizontal Scroll
dw $0E96 ; BG2 Horizontal Scroll
dw $0F13 ; Scroll X
dw $014A ; Scroll Y
dw $0614 ; Unknown 1
dw $0003 ; Unknown 2
dw $000A ; Unknown 3
dw sram_nmg_trock_entrance_after
preset_nmg_trock_torches:
db $02 ; Dungeon
dw $00C6 ; Room Index
dw $180B ; BG1 Vertical Scroll
dw $180B ; BG2 Vertical Scroll
dw $0D00 ; BG1 Horizontal Scroll
dw $0D00 ; BG2 Horizontal Scroll
dw $0DCD ; Link X
dw $1878 ; Link Y
dw $017F ; Camera X
dw $0083 ; Camera Y
dw $0000 ; Door Settings
dw $1800 ; Relative Coords HU
dw $1800 ; Relative Coords FU
dw $1810 ; Relative Coords HD
dw $1910 ; Relative Coords FD
dw $0D00 ; Relative Coords HL
dw $0C00 ; Relative Coords FL
dw $0D00 ; Relative Coords HR
dw $0D00 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0001 ; Quadrant 2
db $0D ; Main Graphics
db $16 ; Music Track
db $00 ; Starting Floor
db $18 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_trock_torches_after
preset_nmg_trock_roller_room:
db $02 ; Dungeon
dw $00C7 ; Room Index
dw $1800 ; BG1 Vertical Scroll
dw $1800 ; BG2 Vertical Scroll
dw $0E00 ; BG1 Horizontal Scroll
dw $0E00 ; BG2 Horizontal Scroll
dw $0E78 ; Link X
dw $1820 ; Link Y
dw $007F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $1800 ; Relative Coords HU
dw $1800 ; Relative Coords FU
dw $1810 ; Relative Coords HD
dw $1910 ; Relative Coords FD
dw $0E00 ; Relative Coords HL
dw $0E00 ; Relative Coords FL
dw $0E00 ; Relative Coords HR
dw $0F00 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0000 ; Quadrant 2
db $0D ; Main Graphics
db $16 ; Music Track
db $00 ; Starting Floor
db $18 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_trock_roller_room_after
preset_nmg_trock_pokey_0:
db $02 ; Dungeon
dw $00C6 ; Room Index
dw $1800 ; BG1 Vertical Scroll
dw $1800 ; BG2 Vertical Scroll
dw $0C00 ; BG1 Horizontal Scroll
dw $0C00 ; BG2 Horizontal Scroll
dw $0C78 ; Link X
dw $182B ; Link Y
dw $007F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $1800 ; Relative Coords HU
dw $1800 ; Relative Coords FU
dw $1810 ; Relative Coords HD
dw $1910 ; Relative Coords FD
dw $0C00 ; Relative Coords HL
dw $0C00 ; Relative Coords FL
dw $0C00 ; Relative Coords HR
dw $0D00 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0000 ; Quadrant 2
db $0D ; Main Graphics
db $16 ; Music Track
db $00 ; Starting Floor
db $18 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_trock_pokey_0_after
preset_nmg_trock_chomps:
db $02 ; Dungeon
dw $00B6 ; Room Index
dw $1700 ; BG1 Vertical Scroll
dw $1700 ; BG2 Vertical Scroll
dw $0C00 ; BG1 Horizontal Scroll
dw $0C00 ; BG2 Horizontal Scroll
dw $0C78 ; Link X
dw $1718 ; Link Y
dw $007F ; Camera X
dw $0178 ; Camera Y
dw $0000 ; Door Settings
dw $1700 ; Relative Coords HU
dw $1600 ; Relative Coords FU
dw $1710 ; Relative Coords HD
dw $1710 ; Relative Coords FD
dw $0C00 ; Relative Coords HL
dw $0C00 ; Relative Coords FL
dw $0C00 ; Relative Coords HR
dw $0D00 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0200 ; Quadrant 2
db $0D ; Main Graphics
db $16 ; Music Track
db $00 ; Starting Floor
db $18 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_trock_chomps_after
preset_nmg_trock_pokey_1:
db $02 ; Dungeon
dw $0014 ; Room Index
dw $020B ; BG1 Vertical Scroll
dw $020B ; BG2 Vertical Scroll
dw $0880 ; BG1 Horizontal Scroll
dw $0800 ; BG2 Horizontal Scroll
dw $0819 ; Link X
dw $0278 ; Link Y
dw $007F ; Camera X
dw $0083 ; Camera Y
dw $0000 ; Door Settings
dw $0200 ; Relative Coords HU
dw $0200 ; Relative Coords FU
dw $0210 ; Relative Coords HD
dw $0310 ; Relative Coords FD
dw $0800 ; Relative Coords HL
dw $0800 ; Relative Coords FL
dw $0800 ; Relative Coords HR
dw $0900 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0000 ; Quadrant 2
db $0D ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $18 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_trock_pokey_1_after
preset_nmg_trock_pokeys_2:
db $02 ; Dungeon
dw $0014 ; Room Index
dw $028E ; BG1 Vertical Scroll
dw $0310 ; BG2 Vertical Scroll
dw $0800 ; BG1 Horizontal Scroll
dw $0800 ; BG2 Horizontal Scroll
dw $0878 ; Link X
dw $03C4 ; Link Y
dw $007F ; Camera X
dw $0188 ; Camera Y
dw $0000 ; Door Settings
dw $0300 ; Relative Coords HU
dw $0200 ; Relative Coords FU
dw $0310 ; Relative Coords HD
dw $0310 ; Relative Coords FD
dw $0800 ; Relative Coords HL
dw $0800 ; Relative Coords FL
dw $0800 ; Relative Coords HR
dw $0900 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0200 ; Quadrant 2
db $0D ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $18 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_trock_pokeys_2_after
preset_nmg_trock_crystal_roller:
db $02 ; Dungeon
dw $0014 ; Room Index
dw $0288 ; BG1 Vertical Scroll
dw $0200 ; BG2 Vertical Scroll
dw $0880 ; BG1 Horizontal Scroll
dw $0800 ; BG2 Horizontal Scroll
dw $0878 ; Link X
dw $022B ; Link Y
dw $007F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0200 ; Relative Coords HU
dw $0200 ; Relative Coords FU
dw $0210 ; Relative Coords HD
dw $0310 ; Relative Coords FD
dw $0800 ; Relative Coords HL
dw $0800 ; Relative Coords FL
dw $0800 ; Relative Coords HR
dw $0900 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0000 ; Quadrant 2
db $0D ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $18 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_trock_crystal_roller_after
preset_nmg_trock_dark_room:
db $02 ; Dungeon
dw $0004 ; Room Index
dw $0000 ; BG1 Vertical Scroll
dw $0000 ; BG2 Vertical Scroll
dw $0800 ; BG1 Horizontal Scroll
dw $0800 ; BG2 Horizontal Scroll
dw $0878 ; Link X
dw $0025 ; Link Y
dw $007F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0000 ; Relative Coords HU
dw $0000 ; Relative Coords FU
dw $0010 ; Relative Coords HD
dw $0110 ; Relative Coords FD
dw $0800 ; Relative Coords HL
dw $0800 ; Relative Coords FL
dw $0800 ; Relative Coords HR
dw $0900 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0000 ; Quadrant 2
db $0D ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $18 ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_trock_dark_room_after
preset_nmg_trock_laser_skip:
db $02 ; Dungeon
dw $00C5 ; Room Index
dw $1910 ; BG1 Vertical Scroll
dw $1910 ; BG2 Vertical Scroll
dw $0A00 ; BG1 Horizontal Scroll
dw $0A00 ; BG2 Horizontal Scroll
dw $0A78 ; Link X
dw $19DE ; Link Y
dw $007F ; Camera X
dw $0188 ; Camera Y
dw $0000 ; Door Settings
dw $1900 ; Relative Coords HU
dw $1800 ; Relative Coords FU
dw $1910 ; Relative Coords HD
dw $1910 ; Relative Coords FD
dw $0A00 ; Relative Coords HL
dw $0A00 ; Relative Coords FL
dw $0A00 ; Relative Coords HR
dw $0B00 ; Relative Coords FR
dw $0200 ; Quadrant 1
dw $0200 ; Quadrant 2
db $0D ; Main Graphics
db $16 ; Music Track
db $FE ; Starting Floor
db $18 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_trock_laser_skip_after
preset_nmg_trock_switch_room:
db $02 ; Dungeon
dw $00C5 ; Room Index
dw $190B ; BG1 Vertical Scroll
dw $190B ; BG2 Vertical Scroll
dw $0A00 ; BG1 Horizontal Scroll
dw $0A00 ; BG2 Horizontal Scroll
dw $0A18 ; Link X
dw $1978 ; Link Y
dw $007F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $1900 ; Relative Coords HU
dw $1800 ; Relative Coords FU
dw $1910 ; Relative Coords HD
dw $1910 ; Relative Coords FD
dw $0A00 ; Relative Coords HL
dw $0A00 ; Relative Coords FL
dw $0A00 ; Relative Coords HR
dw $0B00 ; Relative Coords FR
dw $0200 ; Quadrant 1
dw $0200 ; Quadrant 2
db $0D ; Main Graphics
db $16 ; Music Track
db $FE ; Starting Floor
db $18 ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_trock_switch_room_after
preset_nmg_trock_trinexx:
db $02 ; Dungeon
dw $00B4 ; Room Index
dw $1600 ; BG1 Vertical Scroll
dw $1600 ; BG2 Vertical Scroll
dw $0800 ; BG1 Horizontal Scroll
dw $0800 ; BG2 Horizontal Scroll
dw $0878 ; Link X
dw $161D ; Link Y
dw $007F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $1600 ; Relative Coords HU
dw $1600 ; Relative Coords FU
dw $1610 ; Relative Coords HD
dw $1710 ; Relative Coords FD
dw $0800 ; Relative Coords HL
dw $0800 ; Relative Coords FL
dw $0800 ; Relative Coords HR
dw $0900 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0000 ; Quadrant 2
db $0D ; Main Graphics
db $16 ; Music Track
db $FD ; Starting Floor
db $18 ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_trock_trinexx_after
preset_nmg_gtower_outside_trock:
db $01 ; Overworld
dw $0047 ; Screen Index
dw $0F08 ; Link X
dw $013E ; Link Y
dw $00DD ; BG1 Vertical Scroll
dw $00E0 ; BG2 Vertical Scroll
dw $0E96 ; BG1 Horizontal Scroll
dw $0E96 ; BG2 Horizontal Scroll
dw $0F13 ; Scroll X
dw $014D ; Scroll Y
dw $0712 ; Unknown 1
dw $0000 ; Unknown 2
dw $FFFA ; Unknown 3
dw sram_nmg_gtower_outside_trock_after
preset_nmg_gtower_entrance:
db $01 ; Overworld
dw $0043 ; Screen Index
dw $08F8 ; Link X
dw $0037 ; Link Y
dw $9180 ; BG1 Vertical Scroll
dw $0000 ; BG2 Vertical Scroll
dw $087A ; BG1 Horizontal Scroll
dw $087A ; BG2 Horizontal Scroll
dw $08FF ; Scroll X
dw $006D ; Scroll Y
dw $0050 ; Unknown 1
dw $0000 ; Unknown 2
dw $0006 ; Unknown 3
dw sram_nmg_gtower_entrance_after
preset_nmg_gtower_spike_skip:
db $02 ; Dungeon
dw $008B ; Room Index
dw $100C ; BG1 Vertical Scroll
dw $100C ; BG2 Vertical Scroll
dw $1700 ; BG1 Horizontal Scroll
dw $1700 ; BG2 Horizontal Scroll
dw $1715 ; Link X
dw $1078 ; Link Y
dw $017F ; Camera X
dw $0083 ; Camera Y
dw $0000 ; Door Settings
dw $1000 ; Relative Coords HU
dw $1000 ; Relative Coords FU
dw $1010 ; Relative Coords HD
dw $1110 ; Relative Coords FD
dw $1700 ; Relative Coords HL
dw $1600 ; Relative Coords FL
dw $1700 ; Relative Coords HR
dw $1700 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0001 ; Quadrant 2
db $0E ; Main Graphics
db $16 ; Music Track
db $00 ; Starting Floor
db $1A ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_gtower_spike_skip_after
preset_nmg_gtower_pre_firesnakes_room:
db $02 ; Dungeon
dw $009B ; Room Index
dw $120B ; BG1 Vertical Scroll
dw $120B ; BG2 Vertical Scroll
dw $1600 ; BG1 Horizontal Scroll
dw $1600 ; BG2 Horizontal Scroll
dw $16D4 ; Link X
dw $1278 ; Link Y
dw $007F ; Camera X
dw $0083 ; Camera Y
dw $0000 ; Door Settings
dw $1200 ; Relative Coords HU
dw $1200 ; Relative Coords FU
dw $1210 ; Relative Coords HD
dw $1310 ; Relative Coords FD
dw $1600 ; Relative Coords HL
dw $1600 ; Relative Coords FL
dw $1600 ; Relative Coords HR
dw $1700 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0000 ; Quadrant 2
db $0E ; Main Graphics
db $16 ; Music Track
db $00 ; Starting Floor
db $1A ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_gtower_pre_firesnakes_room_after
preset_nmg_gtower_bombable_floor:
db $02 ; Dungeon
dw $009C ; Room Index
dw $1200 ; BG1 Vertical Scroll
dw $1200 ; BG2 Vertical Scroll
dw $1900 ; BG1 Horizontal Scroll
dw $1900 ; BG2 Horizontal Scroll
dw $1978 ; Link X
dw $1224 ; Link Y
dw $017F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $1200 ; Relative Coords HU
dw $1200 ; Relative Coords FU
dw $1210 ; Relative Coords HD
dw $1310 ; Relative Coords FD
dw $1900 ; Relative Coords HL
dw $1800 ; Relative Coords FL
dw $1900 ; Relative Coords HR
dw $1900 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0001 ; Quadrant 2
db $0E ; Main Graphics
db $16 ; Music Track
db $00 ; Starting Floor
db $1A ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_gtower_bombable_floor_after
preset_nmg_gtower_ice_armos:
db $02 ; Dungeon
dw $001C ; Room Index
dw $0310 ; BG1 Vertical Scroll
dw $0310 ; BG2 Vertical Scroll
dw $1900 ; BG1 Horizontal Scroll
dw $1900 ; BG2 Horizontal Scroll
dw $199F ; Link X
dw $03A8 ; Link Y
dw $017F ; Camera X
dw $0188 ; Camera Y
dw $0000 ; Door Settings
dw $0300 ; Relative Coords HU
dw $0200 ; Relative Coords FU
dw $0310 ; Relative Coords HD
dw $0310 ; Relative Coords FD
dw $1900 ; Relative Coords HL
dw $1800 ; Relative Coords FL
dw $1900 ; Relative Coords HR
dw $1900 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0201 ; Quadrant 2
db $0E ; Main Graphics
db $16 ; Music Track
db $FF ; Starting Floor
db $1A ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_gtower_ice_armos_after
preset_nmg_gtower_floor_2:
db $02 ; Dungeon
dw $000C ; Room Index
dw $0000 ; BG1 Vertical Scroll
dw $0000 ; BG2 Vertical Scroll
dw $1880 ; BG1 Horizontal Scroll
dw $1880 ; BG2 Horizontal Scroll
dw $18F8 ; Link X
dw $0026 ; Link Y
dw $00FF ; Camera X
dw $0077 ; Camera Y
dw $0000 ; Door Settings
dw $0000 ; Relative Coords HU
dw $0000 ; Relative Coords FU
dw $0010 ; Relative Coords HD
dw $0110 ; Relative Coords FD
dw $1800 ; Relative Coords HL
dw $1800 ; Relative Coords FL
dw $1800 ; Relative Coords HR
dw $1900 ; Relative Coords FR
dw $0202 ; Quadrant 1
dw $0000 ; Quadrant 2
db $0E ; Main Graphics
db $16 ; Music Track
db $01 ; Starting Floor
db $1A ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_gtower_floor_2_after
preset_nmg_gtower_mimics1:
db $02 ; Dungeon
dw $006B ; Room Index
dw $0C10 ; BG1 Vertical Scroll
dw $0C10 ; BG2 Vertical Scroll
dw $1600 ; BG1 Horizontal Scroll
dw $1600 ; BG2 Horizontal Scroll
dw $1678 ; Link X
dw $0CCC ; Link Y
dw $007F ; Camera X
dw $0087 ; Camera Y
dw $0000 ; Door Settings
dw $0C00 ; Relative Coords HU
dw $0C00 ; Relative Coords FU
dw $0C10 ; Relative Coords HD
dw $0D10 ; Relative Coords FD
dw $1600 ; Relative Coords HL
dw $1600 ; Relative Coords FL
dw $1600 ; Relative Coords HR
dw $1700 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0000 ; Quadrant 2
db $0E ; Main Graphics
db $16 ; Music Track
db $02 ; Starting Floor
db $1A ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_gtower_mimics1_after
preset_nmg_gtower_mimics2:
db $02 ; Dungeon
dw $006B ; Room Index
dw $0D0B ; BG1 Vertical Scroll
dw $0D0B ; BG2 Vertical Scroll
dw $1600 ; BG1 Horizontal Scroll
dw $1600 ; BG2 Horizontal Scroll
dw $16D8 ; Link X
dw $0D78 ; Link Y
dw $007F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $0D00 ; Relative Coords HU
dw $0C00 ; Relative Coords FU
dw $0D10 ; Relative Coords HD
dw $0D10 ; Relative Coords FD
dw $1600 ; Relative Coords HL
dw $1600 ; Relative Coords FL
dw $1600 ; Relative Coords HR
dw $1700 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0200 ; Quadrant 2
db $0E ; Main Graphics
db $16 ; Music Track
db $02 ; Starting Floor
db $1A ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_gtower_mimics2_after
preset_nmg_gtower_spike_room:
db $02 ; Dungeon
dw $006B ; Room Index
dw $0C00 ; BG1 Vertical Scroll
dw $0C00 ; BG2 Vertical Scroll
dw $1700 ; BG1 Horizontal Scroll
dw $1700 ; BG2 Horizontal Scroll
dw $1778 ; Link X
dw $0C1C ; Link Y
dw $017F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0C00 ; Relative Coords HU
dw $0C00 ; Relative Coords FU
dw $0C10 ; Relative Coords HD
dw $0D10 ; Relative Coords FD
dw $1700 ; Relative Coords HL
dw $1600 ; Relative Coords FL
dw $1700 ; Relative Coords HR
dw $1700 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0001 ; Quadrant 2
db $0E ; Main Graphics
db $16 ; Music Track
db $02 ; Starting Floor
db $1A ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_gtower_spike_room_after
preset_nmg_gtower_gauntlet:
db $02 ; Dungeon
dw $005C ; Room Index
dw $0A00 ; BG1 Vertical Scroll
dw $0A00 ; BG2 Vertical Scroll
dw $1900 ; BG1 Horizontal Scroll
dw $1900 ; BG2 Horizontal Scroll
dw $1978 ; Link X
dw $0A23 ; Link Y
dw $017F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0A00 ; Relative Coords HU
dw $0A00 ; Relative Coords FU
dw $0A10 ; Relative Coords HD
dw $0B10 ; Relative Coords FD
dw $1900 ; Relative Coords HL
dw $1800 ; Relative Coords FL
dw $1900 ; Relative Coords HR
dw $1900 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0001 ; Quadrant 2
db $0E ; Main Graphics
db $16 ; Music Track
db $02 ; Starting Floor
db $1A ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_gtower_gauntlet_after
preset_nmg_gtower_gauntlet_3:
db $02 ; Dungeon
dw $005D ; Room Index
dw $0A10 ; BG1 Vertical Scroll
dw $0A10 ; BG2 Vertical Scroll
dw $1A00 ; BG1 Horizontal Scroll
dw $1A00 ; BG2 Horizontal Scroll
dw $1A78 ; Link X
dw $0AE0 ; Link Y
dw $007F ; Camera X
dw $0088 ; Camera Y
dw $0000 ; Door Settings
dw $0A00 ; Relative Coords HU
dw $0A00 ; Relative Coords FU
dw $0A10 ; Relative Coords HD
dw $0B10 ; Relative Coords FD
dw $1A00 ; Relative Coords HL
dw $1A00 ; Relative Coords FL
dw $1A00 ; Relative Coords HR
dw $1B00 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0000 ; Quadrant 2
db $0E ; Main Graphics
db $16 ; Music Track
db $03 ; Starting Floor
db $1A ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_gtower_gauntlet_3_after
preset_nmg_gtower_lanmola2:
db $02 ; Dungeon
dw $006C ; Room Index
dw $0D0B ; BG1 Vertical Scroll
dw $0D0B ; BG2 Vertical Scroll
dw $1900 ; BG1 Horizontal Scroll
dw $1900 ; BG2 Horizontal Scroll
dw $19D5 ; Link X
dw $0D78 ; Link Y
dw $017F ; Camera X
dw $0183 ; Camera Y
dw $0000 ; Door Settings
dw $0D00 ; Relative Coords HU
dw $0C00 ; Relative Coords FU
dw $0D10 ; Relative Coords HD
dw $0D10 ; Relative Coords FD
dw $1900 ; Relative Coords HL
dw $1800 ; Relative Coords FL
dw $1900 ; Relative Coords HR
dw $1900 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0201 ; Quadrant 2
db $0E ; Main Graphics
db $16 ; Music Track
db $03 ; Starting Floor
db $1A ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_gtower_lanmola2_after
preset_nmg_gtower_wizz1:
db $02 ; Dungeon
dw $006C ; Room Index
dw $0C00 ; BG1 Vertical Scroll
dw $0C00 ; BG2 Vertical Scroll
dw $1800 ; BG1 Horizontal Scroll
dw $1800 ; BG2 Horizontal Scroll
dw $1878 ; Link X
dw $0C26 ; Link Y
dw $007F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0C00 ; Relative Coords HU
dw $0C00 ; Relative Coords FU
dw $0C10 ; Relative Coords HD
dw $0D10 ; Relative Coords FD
dw $1800 ; Relative Coords HL
dw $1800 ; Relative Coords FL
dw $1800 ; Relative Coords HR
dw $1900 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0000 ; Quadrant 2
db $0E ; Main Graphics
db $16 ; Music Track
db $03 ; Starting Floor
db $1A ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_gtower_wizz1_after
preset_nmg_gtower_wizz2:
db $02 ; Dungeon
dw $00A5 ; Room Index
dw $1500 ; BG1 Vertical Scroll
dw $1500 ; BG2 Vertical Scroll
dw $0B00 ; BG1 Horizontal Scroll
dw $0B00 ; BG2 Horizontal Scroll
dw $0B78 ; Link X
dw $1524 ; Link Y
dw $017F ; Camera X
dw $0178 ; Camera Y
dw $0000 ; Door Settings
dw $1500 ; Relative Coords HU
dw $1400 ; Relative Coords FU
dw $1510 ; Relative Coords HD
dw $1510 ; Relative Coords FD
dw $0B00 ; Relative Coords HL
dw $0A00 ; Relative Coords FL
dw $0B00 ; Relative Coords HR
dw $0B00 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0201 ; Quadrant 2
db $0E ; Main Graphics
db $16 ; Music Track
db $04 ; Starting Floor
db $1A ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_gtower_wizz2_after
preset_nmg_gtower_torches1:
db $02 ; Dungeon
dw $0095 ; Room Index
dw $120B ; BG1 Vertical Scroll
dw $120B ; BG2 Vertical Scroll
dw $0B00 ; BG1 Horizontal Scroll
dw $0B00 ; BG2 Horizontal Scroll
dw $0BD3 ; Link X
dw $1278 ; Link Y
dw $017F ; Camera X
dw $0083 ; Camera Y
dw $0000 ; Door Settings
dw $1200 ; Relative Coords HU
dw $1200 ; Relative Coords FU
dw $1210 ; Relative Coords HD
dw $1310 ; Relative Coords FD
dw $0B00 ; Relative Coords HL
dw $0A00 ; Relative Coords FL
dw $0B00 ; Relative Coords HR
dw $0B00 ; Relative Coords FR
dw $0200 ; Quadrant 1
dw $0001 ; Quadrant 2
db $0E ; Main Graphics
db $16 ; Music Track
db $04 ; Starting Floor
db $1A ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_gtower_torches1_after
preset_nmg_gtower_torches2:
db $02 ; Dungeon
dw $0096 ; Room Index
dw $1310 ; BG1 Vertical Scroll
dw $1310 ; BG2 Vertical Scroll
dw $0D00 ; BG1 Horizontal Scroll
dw $0D00 ; BG2 Horizontal Scroll
dw $0D78 ; Link X
dw $13A2 ; Link Y
dw $017F ; Camera X
dw $0188 ; Camera Y
dw $0000 ; Door Settings
dw $1300 ; Relative Coords HU
dw $1200 ; Relative Coords FU
dw $1310 ; Relative Coords HD
dw $1310 ; Relative Coords FD
dw $0D00 ; Relative Coords HL
dw $0C00 ; Relative Coords FL
dw $0D00 ; Relative Coords HR
dw $0D00 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0201 ; Quadrant 2
db $0E ; Main Graphics
db $16 ; Music Track
db $04 ; Starting Floor
db $1A ; Palace No
db $00 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_gtower_torches2_after
preset_nmg_gtower_helma_key:
db $02 ; Dungeon
dw $003D ; Room Index
dw $0708 ; BG1 Vertical Scroll
dw $0700 ; BG2 Vertical Scroll
dw $1B00 ; BG1 Horizontal Scroll
dw $1B00 ; BG2 Horizontal Scroll
dw $1B78 ; Link X
dw $0724 ; Link Y
dw $017F ; Camera X
dw $0178 ; Camera Y
dw $0000 ; Door Settings
dw $0700 ; Relative Coords HU
dw $0600 ; Relative Coords FU
dw $0710 ; Relative Coords HD
dw $0710 ; Relative Coords FD
dw $1B00 ; Relative Coords HL
dw $1A00 ; Relative Coords FL
dw $1B00 ; Relative Coords HR
dw $1B00 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0201 ; Quadrant 2
db $0E ; Main Graphics
db $16 ; Music Track
db $05 ; Starting Floor
db $1A ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_gtower_helma_key_after
preset_nmg_gtower_bombable_wall:
db $02 ; Dungeon
dw $003D ; Room Index
dw $060E ; BG1 Vertical Scroll
dw $060B ; BG2 Vertical Scroll
dw $1B00 ; BG1 Horizontal Scroll
dw $1B00 ; BG2 Horizontal Scroll
dw $1B16 ; Link X
dw $0678 ; Link Y
dw $017F ; Camera X
dw $0083 ; Camera Y
dw $0000 ; Door Settings
dw $0600 ; Relative Coords HU
dw $0600 ; Relative Coords FU
dw $0610 ; Relative Coords HD
dw $0710 ; Relative Coords FD
dw $1B00 ; Relative Coords HL
dw $1A00 ; Relative Coords FL
dw $1B00 ; Relative Coords HR
dw $1B00 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0001 ; Quadrant 2
db $0E ; Main Graphics
db $16 ; Music Track
db $05 ; Starting Floor
db $1A ; Palace No
db $02 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_gtower_bombable_wall_after
preset_nmg_gtower_moldorm_2:
db $02 ; Dungeon
dw $003D ; Room Index
dw $0708 ; BG1 Vertical Scroll
dw $0710 ; BG2 Vertical Scroll
dw $1A00 ; BG1 Horizontal Scroll
dw $1A00 ; BG2 Horizontal Scroll
dw $1A78 ; Link X
dw $07D0 ; Link Y
dw $007F ; Camera X
dw $0188 ; Camera Y
dw $0000 ; Door Settings
dw $0700 ; Relative Coords HU
dw $0600 ; Relative Coords FU
dw $0710 ; Relative Coords HD
dw $0710 ; Relative Coords FD
dw $1A00 ; Relative Coords HL
dw $1A00 ; Relative Coords FL
dw $1A00 ; Relative Coords HR
dw $1B00 ; Relative Coords FR
dw $0000 ; Quadrant 1
dw $0200 ; Quadrant 2
db $0E ; Main Graphics
db $16 ; Music Track
db $05 ; Starting Floor
db $1A ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_gtower_moldorm_2_after
preset_nmg_gtower_agahnim_2:
db $02 ; Dungeon
dw $001D ; Room Index
dw $0200 ; BG1 Vertical Scroll
dw $0200 ; BG2 Vertical Scroll
dw $1A00 ; BG1 Horizontal Scroll
dw $1A00 ; BG2 Horizontal Scroll
dw $1A78 ; Link X
dw $0226 ; Link Y
dw $007F ; Camera X
dw $0078 ; Camera Y
dw $0000 ; Door Settings
dw $0200 ; Relative Coords HU
dw $0200 ; Relative Coords FU
dw $0210 ; Relative Coords HD
dw $0310 ; Relative Coords FD
dw $1A00 ; Relative Coords HL
dw $1A00 ; Relative Coords FL
dw $1A00 ; Relative Coords HR
dw $1B00 ; Relative Coords FR
dw $0002 ; Quadrant 1
dw $0000 ; Quadrant 2
db $0E ; Main Graphics
db $16 ; Music Track
db $06 ; Starting Floor
db $1A ; Palace No
db $01 ; Door Orientation
db $00 ; Starting Background
dw sram_nmg_gtower_agahnim_2_after
preset_nmg_ganon_pyramid:
db $01 ; Overworld
dw $005B ; Screen Index
dw $07F0 ; Link X
dw $0668 ; Link Y
dw $0605 ; BG1 Vertical Scroll
dw $060A ; BG2 Vertical Scroll
dw $0778 ; BG1 Horizontal Scroll
dw $0778 ; BG2 Horizontal Scroll
dw $07F7 ; Scroll X
dw $0677 ; Scroll Y
dw $002E ; Unknown 1
dw $FFF6 ; Unknown 2
dw $FFF8 ; Unknown 3
dw sram_nmg_ganon_pyramid_after
preset_nmg_ganon_pyramid_magic:
db $01 ; Overworld
dw $005B ; Screen Index
dw $07F0 ; Link X
dw $0669 ; Link Y
dw $0605 ; BG1 Vertical Scroll
dw $060B ; BG2 Vertical Scroll
dw $0778 ; BG1 Horizontal Scroll
dw $0778 ; BG2 Horizontal Scroll
dw $07F7 ; Scroll X
dw $0678 ; Scroll Y
dw $002E ; Unknown 1
dw $FFF5 ; Unknown 2
dw $FFF8 ; Unknown 3
dw sram_nmg_ganon_pyramid_magic_after
; Preset SRAM changes
sram_nmg_esc_bed:
dl $7E0542 : db $02 : dw $16CA ; Object tilemap state
dl $7EC74A : db $01 : db $7F ; Selected menu gfx, row 1
dl $7EF36F : db $01 : db $FF ; Keys
dl $7EC78A : db $01 : db $7F ; Selected menu gfx, row 2
dl $7EF208 : db $02 : dw $0002 ; Room $0104: Unknown (...............q)
dl $7EF20C : db $02 : dw $F000 ; Room $0106: Unknown (.dddb...........)
dl $7EF36C : db $02 : dw $1818 ; Health (goal)
dl $7EF378 : db $02 : dw $F800 ; ????
dl $7EF3D8 : db $02 : dw $4B00 ;
dl $7EF3DC : db $02 : dw $8C01 ; Player name
dl $7EF3E0 : db $02 : dw $AA01 ; Player name
dl $7EF400 : db $02 : dw $FF00 ; Deaths
dl $7EF20E : db $02 : dw $F000 ; Room $0107: Unknown (.dddb...........)
dl $7EF3DA : db $02 : dw $8C01 ; Player name
dl $7EF3DE : db $02 : dw $8C01 ; Player name
dl $7EF3E2 : db $02 : dw $0055 ; Player name
dl $7EF402 : db $02 : dw $00FF ; Deaths
dl $7EF4FE : db $02 : dw $D0EA ; Inverse checksum
dl $7EC167 : db $01 : db $7D ; Underworld exit cache
dl $7EC74B : db $01 : db $20 ; Selected menu gfx, row 1
dl $7EC78B : db $01 : db $20 ; Selected menu gfx, row 2
dl $7E0468 : db $02 : dw $0001 ; Trap door state
dl $7E0540 : db $02 : dw $15CA ; Object tilemap state
dl $7E0544 : db $02 : dw $17CA ; Object tilemap state
dl $7EC165 : db $01 : db $23 ; Underworld exit cache
dl $7EC74C : db $01 : db $7F ; Selected menu gfx, row 1
dl $7EC78C : db $01 : db $7F ; Selected menu gfx, row 2
dl $7EC142 : db $02 : dw $0015 ; Underworld exit cache
dl $7EC166 : db $01 : db $51 ; Underworld exit cache
dl $7EC74D : db $01 : db $20 ; Selected menu gfx, row 1
dl $7E002F : db $01 : db $02 ; Link's direction
dl $7EC78D : db $01 : db $20 ; Selected menu gfx, row 2
.after
sram_nmg_esc_courtyard:
dl $7E0542 : db $02 : dw $19E6 ; Object tilemap state
dl $7EF2BB : db $01 : db $00 ; Overworld $3B: Unknown (........)
dl $7EF2FB : db $01 : db $00 ; Overworld $7B: Unknown (........)
dl $7EF360 : db $02 : dw $0001 ; Rupees (goal)
dl $7EF3C8 : db $01 : db $03 ; Entrances Phase
dl $7EF359 : db $01 : db $01 ; Sword
dl $7EF3C5 : db $01 : db $01 ; Game Phase 1
dl $7EF0AA : db $02 : dw $000F ; Room $0055: Castle Secret Entrance / Uncle Death Room (.............qqq)
dl $7EF35A : db $01 : db $01 ; Shield
dl $7EF362 : db $02 : dw $0001 ; Rupees (actual)
dl $7EF3C6 : db $01 : db $11 ; Game Phase 2
dl $7FE0EF : db $01 : db $41 ; Room $B7 persistent: Turtle Rock (Map Chest / Key Chest / Roller Room)
dl $7E0303 : db $01 : db $00 ; Selected menu item
dl $7E0540 : db $02 : dw $18E6 ; Object tilemap state
dl $7E0544 : db $02 : dw $1850 ; Object tilemap state
dl $7E0202 : db $01 : db $00 ; Selected menu item
dl $7E0CBB : db $01 : db $00 ; Sprite drop
dl $7E010F : db $01 : db $00 ;
dl $7E0CC7 : db $01 : db $00 ; Sprite drop
dl $7EF051 : db $01 : db $00 ; Room $0028: Swamp Palace (Entrance Room) (................)
dl $7E0CC9 : db $01 : db $00 ; Sprite drop
dl $7E010E : db $01 : db $7D ; Dungeon entrance index
.after
sram_nmg_esc_entrance:
dl $7E0CC1 : db $01 : db $00 ; Sprite drop
dl $7E0CC3 : db $01 : db $00 ; Sprite drop
dl $7E0CC5 : db $01 : db $00 ; Sprite drop
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_esc_1st_keyguard:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7EF36F : db $01 : db $00 ; Keys
dl $7EF0A0 : db $02 : dw $0005 ; Room $0050: Hyrule Castle (West Corridor) (..............q.)
dl $7EF0C0 : db $02 : dw $0005 ; Room $0060: Hyrule Castle (West Entrance Room) (..............q.)
dl $7EF002 : db $02 : dw $000C ; Room $0001: Hyrule Castle (North Corridor) (.............qq.)
dl $7EF0C2 : db $02 : dw $000F ; Room $0061: Hyrule Castle (Main Entrance Room) (.............qqq)
dl $7FE0EF : db $01 : db $00 ; Room $B7 persistent: Turtle Rock (Map Chest / Key Chest / Roller Room)
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E010E : db $01 : db $04 ; Dungeon entrance index
.after
sram_nmg_esc_stealth_room:
dl $7E0542 : db $02 : dw $2532 ; Object tilemap state
dl $7EF0E4 : db $02 : dw $840F ; Room $0072: Hyrule Castle (Map Chest Room) (.d....K......qqq)
dl $7EF104 : db $02 : dw $000F ; Room $0082: Hyrule Castle (Basement Chasm Room) (.............qqq)
dl $7FE064 : db $02 : dw $0001 ; Room $72 persistent: Hyrule Castle (Map Chest Room)
dl $7E0540 : db $02 : dw $324C ; Object tilemap state
dl $7E0544 : db $02 : dw $2A32 ; Object tilemap state
dl $7E0CBD : db $01 : db $00 ; Sprite drop
dl $7E0CBF : db $01 : db $00 ; Sprite drop
dl $7E002F : db $01 : db $04 ; Link's direction
.after
sram_nmg_esc_2nd_keyguard:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7EF0E2 : db $02 : dw $0002 ; Room $0071: Hyrule Castle (Boomerang Chest Room) (...............q)
dl $7EF102 : db $02 : dw $000F ; Room $0081: Hyrule Castle (.............qqq)
dl $7E0468 : db $02 : dw $0000 ; Trap door state
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E0CBB : db $01 : db $01 ; Sprite drop
dl $7FE062 : db $02 : dw $0001 ; Room $71 persistent: Hyrule Castle (Boomerang Chest Room)
dl $7E002F : db $01 : db $06 ; Link's direction
dl $7E0FC7 : db $01 : db $01 ; Prize pack index
.after
sram_nmg_esc_ball_n_chains:
dl $7EC74A : db $02 : dw $2CB8 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $2CF5 ; Selected menu gfx, row 2
dl $7EF0E0 : db $02 : dw $0008 ; Room $0070: Hyrule Castle (Small Corridor to Jail Cells) (.............q..)
dl $7EF341 : db $01 : db $01 ; Boomerang
dl $7EF0E2 : db $02 : dw $841B ; Room $0071: Hyrule Castle (Boomerang Chest Room) (.d....K.....qq.q)
dl $7E0303 : db $01 : db $02 ; Selected menu item
dl $7FE064 : db $02 : dw $0000 ; Room $72 persistent: Hyrule Castle (Map Chest Room)
dl $7E0468 : db $02 : dw $0001 ; Trap door state
dl $7E0202 : db $01 : db $02 ; Selected menu item
dl $7E0CBB : db $01 : db $00 ; Sprite drop
dl $7EC74C : db $02 : dw $2CB9 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $2CC9 ; Selected menu gfx, row 2
dl $7FE062 : db $02 : dw $0003 ; Room $71 persistent: Hyrule Castle (Boomerang Chest Room)
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_esc_backtracking:
dl $7E0542 : db $02 : dw $0434 ; Object tilemap state
dl $7EF3D3 : db $01 : db $00 ; Super Bomb Boom
dl $7EF3FF : db $02 : dw $0000 ; Deaths
dl $7EF100 : db $02 : dw $043C ; Room $0080: Hyrule Castle (Jail Cell Room) (......K....cqqq.)
dl $7EF3C8 : db $01 : db $02 ; Entrances Phase
dl $7EF3CC : db $01 : db $01 ; Tagalong
dl $7EF3E5 : db $02 : dw $0000 ; Validity (checksum)
dl $7EF34A : db $01 : db $01 ; Torch
dl $7EF366 : db $02 : dw $4000 ; BigKey1
dl $7FE080 : db $02 : dw $0004 ; Room $80 persistent: Hyrule Castle (Jail Cell Room)
dl $7E0540 : db $02 : dw $0430 ; Object tilemap state
dl $7E0544 : db $02 : dw $0438 ; Object tilemap state
.after
sram_nmg_esc_keyguard_revisited:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7FE062 : db $02 : dw $0000 ; Room $71 persistent: Hyrule Castle (Boomerang Chest Room)
dl $7E0CBA : db $01 : db $01 ; Sprite drop
.after
sram_nmg_esc_throne_room:
dl $7EF0A2 : db $02 : dw $000F ; Room $0051: Hyrule Castle (Throne Room) (.............qqq)
dl $7FE080 : db $02 : dw $0000 ; Room $80 persistent: Hyrule Castle (Jail Cell Room)
dl $7E0CBA : db $01 : db $00 ; Sprite drop
.after
sram_nmg_esc_snake_avoidance_room:
dl $7E0542 : db $02 : dw $0F34 ; Object tilemap state
dl $7E0546 : db $02 : dw $1694 ; Object tilemap state
dl $7E054A : db $02 : dw $0E70 ; Object tilemap state
dl $7EF3C8 : db $01 : db $04 ; Entrances Phase
dl $7EF082 : db $02 : dw $000F ; Room $0041: Hyrule Castle (First Dark Room) (.............qqq)
dl $7E0540 : db $02 : dw $0A64 ; Object tilemap state
dl $7E0544 : db $02 : dw $1034 ; Object tilemap state
dl $7E0548 : db $02 : dw $053E ; Object tilemap state
dl $7E054C : db $02 : dw $1590 ; Object tilemap state
.after
sram_nmg_esc_water_rooms:
dl $7E0542 : db $02 : dw $0B8A ; Object tilemap state
dl $7E0546 : db $02 : dw $0FF2 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7EF064 : db $02 : dw $801F ; Room $0032: Hyrule Castle (Sewer Key Chest Room) (.d..........qqqq)
dl $7EF084 : db $02 : dw $000C ; Room $0042: Hyrule Castle (6 Ropes Room) (.............qq.)
dl $7E0540 : db $02 : dw $0D1C ; Object tilemap state
dl $7E0544 : db $02 : dw $0BF2 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
.after
sram_nmg_esc_keyrat:
dl $7E0542 : db $02 : dw $1C64 ; Object tilemap state
dl $7E0546 : db $02 : dw $18A8 ; Object tilemap state
dl $7E054A : db $02 : dw $1C30 ; Object tilemap state
dl $7E054E : db $02 : dw $0CEA ; Object tilemap state
dl $7E0552 : db $02 : dw $1C8A ; Object tilemap state
dl $7EF044 : db $02 : dw $8003 ; Room $0022: Hyrule Castle (Sewer Text Trigger Room) (.d.............q)
dl $7EF042 : db $02 : dw $0003 ; Room $0021: Hyrule Castle (Key-rat Room) (...............q)
dl $7E0540 : db $02 : dw $14A0 ; Object tilemap state
dl $7E0544 : db $02 : dw $1C68 ; Object tilemap state
dl $7E0548 : db $02 : dw $1C52 ; Object tilemap state
dl $7E054C : db $02 : dw $0C92 ; Object tilemap state
dl $7E0550 : db $02 : dw $138A ; Object tilemap state
dl $7E0CBA : db $01 : db $01 ; Sprite drop
.after
sram_nmg_esc_last_two_screens:
dl $7E0542 : db $02 : dw $0F98 ; Object tilemap state
dl $7E0546 : db $02 : dw $1390 ; Object tilemap state
dl $7E054A : db $02 : dw $13A0 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7E0552 : db $02 : dw $0000 ; Object tilemap state
dl $7EF022 : db $02 : dw $2005 ; Room $0011: Hyrule Castle (Bombable Stock Room) (...d..........q.)
dl $7EF042 : db $02 : dw $840F ; Room $0021: Hyrule Castle (Key-rat Room) (.d....K......qqq)
dl $7E0540 : db $02 : dw $0F90 ; Object tilemap state
dl $7E0544 : db $02 : dw $0FA0 ; Object tilemap state
dl $7E0548 : db $02 : dw $1398 ; Object tilemap state
dl $7E054C : db $02 : dw $455E ; Object tilemap state
dl $7E0550 : db $02 : dw $0000 ; Object tilemap state
dl $7FDFC2 : db $02 : dw $0001 ; Room $21 persistent: Hyrule Castle (Key-rat Room)
dl $7E0CBA : db $01 : db $00 ; Sprite drop
.after
sram_nmg_east_before_cutscene:
dl $7E0542 : db $02 : dw $2850 ; Object tilemap state
dl $7E0546 : db $02 : dw $2A2C ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7E0642 : db $01 : db $01 ; Room puzzle state (?)
dl $7E0B09 : db $01 : db $B0 ; Arc variable
dl $7E0B31 : db $01 : db $00 ; Arc variable
dl $7E0B35 : db $01 : db $00 ; Arc variable
dl $7E0B39 : db $01 : db $00 ; Arc variable
dl $7E0B3D : db $01 : db $00 ; Arc variable
dl $7E0FC8 : db $01 : db $02 ; Prize pack index
dl $7EF004 : db $02 : dw $000F ; Room $0002: Hyrule Castle (Switch Room) (.............qqq)
dl $7FDF84 : db $02 : dw $000A ; Room $2 persistent: Hyrule Castle (Switch Room)
dl $7E0468 : db $02 : dw $0000 ; Trap door state
dl $7E0540 : db $02 : dw $2650 ; Object tilemap state
dl $7E0544 : db $02 : dw $282C ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E0B33 : db $01 : db $00 ; Arc variable
dl $7E0B37 : db $01 : db $00 ; Arc variable
dl $7E0B3B : db $01 : db $00 ; Arc variable
dl $7E0B3F : db $01 : db $00 ; Arc variable
dl $7E0B0C : db $01 : db $A0 ; Arc variable
dl $7E002F : db $01 : db $02 ; Link's direction
.after
sram_nmg_east_after_cutscene:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7E0642 : db $01 : db $00 ; Room puzzle state (?)
dl $7EF29B : db $01 : db $20 ; Overworld $1B: Unknown (...?....)
dl $7EF3C7 : db $01 : db $01 ; Map Phase
dl $7EF3E3 : db $02 : dw $0000 ; Player name
dl $7EF024 : db $02 : dw $000F ; Room $0012: Sanctuary (.............qqq)
dl $7EF3C8 : db $01 : db $01 ; Entrances Phase
dl $7EF3CC : db $01 : db $00 ; Tagalong
dl $7EF3C5 : db $01 : db $02 ; Game Phase 1
dl $7EF3C6 : db $01 : db $15 ; Game Phase 2
dl $7E0468 : db $02 : dw $0001 ; Trap door state
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
.after
sram_nmg_east_octoroc:
dl $7EF36F : db $01 : db $FF ; Keys
dl $7FE14B : db $01 : db $47 ; Overworld $E5 persistent: UNKNOWN
dl $7FE17B : db $01 : db $47 ; Overworld $FD persistent: UNKNOWN
dl $7FDF84 : db $01 : db $00 ; Overworld $2 persistent: Northeast House
dl $7FDFC2 : db $01 : db $00 ; Overworld $21 persistent: UNKNOWN
dl $7EC172 : db $02 : dw $0006 ; Crystal switch state
dl $7FDFEB : db $01 : db $AD ; Overworld $35 persistent: Lake Hylia
dl $7FE057 : db $01 : db $42 ; Overworld $6B persistent: Outside Haunted Grove
.after
sram_nmg_east_outside_palace:
dl $7FE14B : db $01 : db $00 ; Overworld $E5 persistent: UNKNOWN
dl $7FE167 : db $01 : db $42 ; Overworld $F3 persistent: UNKNOWN
dl $7FE17B : db $01 : db $00 ; Overworld $FD persistent: UNKNOWN
dl $7FE04E : db $01 : db $42 ; Overworld $67 persistent: UNKNOWN
dl $7EC172 : db $02 : dw $0000 ; Crystal switch state
dl $7FDFEB : db $01 : db $00 ; Overworld $35 persistent: Lake Hylia
dl $7FE057 : db $01 : db $00 ; Overworld $6B persistent: Outside Haunted Grove
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_east_entrance:
dl $7E0FC8 : db $01 : db $03 ; Prize pack index
dl $7FE103 : db $01 : db $52 ; Overworld $C1 persistent: UNKNOWN
dl $7FE167 : db $01 : db $00 ; Overworld $F3 persistent: UNKNOWN
dl $7FE04E : db $01 : db $00 ; Overworld $67 persistent: UNKNOWN
dl $7FE06E : db $01 : db $52 ; Overworld $77 persistent: Black Ice Cave
.after
sram_nmg_east_stalfos_room:
dl $7E0542 : db $02 : dw $13B2 ; Object tilemap state
dl $7E0546 : db $02 : dw $1CB2 ; Object tilemap state
dl $7E054A : db $02 : dw $36E0 ; Object tilemap state
dl $7EF36F : db $01 : db $00 ; Keys
dl $7EF150 : db $02 : dw $0005 ; Room $00A8: Eastern Palace (Stalfos Spawn Room) (..............q.)
dl $7EF152 : db $02 : dw $000F ; Room $00A9: Eastern Palace (Big Chest Room) (.............qqq)
dl $7EF172 : db $02 : dw $000F ; Room $00B9: Eastern Palace (Lobby Cannonballs Room) (.............qqq)
dl $7EF192 : db $02 : dw $000F ; Room $00C9: Eastern Palace (Entrance Room) (.............qqq)
dl $7FE103 : db $01 : db $00 ; Room $C1 persistent: Misery Mire (Compass Chest / Tile Room)
dl $7E0540 : db $02 : dw $138A ; Object tilemap state
dl $7E0544 : db $02 : dw $1C8A ; Object tilemap state
dl $7E0548 : db $02 : dw $181E ; Object tilemap state
dl $7FE06E : db $01 : db $00 ; Room $77 persistent: Tower of Hera (Entrance Room)
dl $7E0B0C : db $01 : db $20 ; Arc variable
dl $7E002F : db $01 : db $04 ; Link's direction
dl $7E010E : db $01 : db $08 ; Dungeon entrance index
.after
sram_nmg_east_big_chest_room_1:
dl $7EF373 : db $01 : db $00 ; Magic filler
dl $7E0FCC : db $01 : db $01 ; Prize pack index
dl $7EF150 : db $02 : dw $000F ; Room $00A8: Eastern Palace (Stalfos Spawn Room) (.............qqq)
dl $7EF36E : db $01 : db $10 ; Magic Power
dl $7E002F : db $01 : db $06 ; Link's direction
.after
sram_nmg_east_dark_key_room:
dl $7E0542 : db $02 : dw $0A4C ; Object tilemap state
dl $7E0546 : db $02 : dw $045E ; Object tilemap state
dl $7E054A : db $02 : dw $0864 ; Object tilemap state
dl $7E054E : db $02 : dw $0A70 ; Object tilemap state
dl $7EF154 : db $02 : dw $000A ; Room $00AA: Eastern Palace (Map Chest Room) (.............q.q)
dl $7EF174 : db $02 : dw $0008 ; Room $00BA: Eastern Palace (Dark Antifairy / Key Pot Room) (.............q..)
dl $7E0468 : db $01 : db $00 ; Trap door state
dl $7E0540 : db $02 : dw $064C ; Object tilemap state
dl $7E0544 : db $02 : dw $0858 ; Object tilemap state
dl $7E0548 : db $02 : dw $0C5E ; Object tilemap state
dl $7E054C : db $02 : dw $0670 ; Object tilemap state
.after
sram_nmg_east_big_key_dmg_boost:
dl $7E0542 : db $02 : dw $1260 ; Object tilemap state
dl $7E0546 : db $02 : dw $126C ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7E0FC8 : db $01 : db $05 ; Prize pack index
dl $7EF174 : db $02 : dw $840C ; Room $00BA: Eastern Palace (Dark Antifairy / Key Pot Room) (.d....K......qq.)
dl $7EF360 : db $02 : dw $0015 ; Rupees (goal)
dl $7EF172 : db $02 : dw $800F ; Room $00B9: Eastern Palace (Lobby Cannonballs Room) (.d...........qqq)
dl $7EF362 : db $02 : dw $0015 ; Rupees (actual)
dl $7FE0F4 : db $02 : dw $0050 ; Room $BA persistent: Eastern Palace (Dark Antifairy / Key Pot Room)
dl $7E0468 : db $02 : dw $0001 ; Trap door state
dl $7E0540 : db $02 : dw $125C ; Object tilemap state
dl $7E0544 : db $02 : dw $1268 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E0B37 : db $01 : db $FF ; Arc variable
dl $7E002F : db $01 : db $04 ; Link's direction
.after
sram_nmg_east_big_chest_room_2:
dl $7E0542 : db $02 : dw $13B2 ; Object tilemap state
dl $7E0546 : db $02 : dw $1CB2 ; Object tilemap state
dl $7E054A : db $02 : dw $35E0 ; Object tilemap state
dl $7EF150 : db $02 : dw $200F ; Room $00A8: Eastern Palace (Stalfos Spawn Room) (...d.........qqq)
dl $7EF170 : db $02 : dw $8015 ; Room $00B8: Eastern Palace (Big Key Room) (.d..........q.q.)
dl $7EF36D : db $01 : db $0C ; Health (actual)
dl $7EF366 : db $02 : dw $6000 ; BigKey1
dl $7E0540 : db $02 : dw $138A ; Object tilemap state
dl $7E0544 : db $02 : dw $1C8A ; Object tilemap state
dl $7E0548 : db $02 : dw $181E ; Object tilemap state
dl $7E0B37 : db $01 : db $00 ; Arc variable
dl $7E0641 : db $02 : dw $0001 ; Room puzzle state (?)
dl $7E002F : db $01 : db $06 ; Link's direction
; Manual changes:
dl $7E0CFB : db $02 : dw $041D ; Rupee pull kill and damage counters
.after
sram_nmg_east_gwg:
dl $7E0542 : db $02 : dw $1370 ; Object tilemap state
dl $7E0546 : db $02 : dw $1410 ; Object tilemap state
dl $7E054A : db $02 : dw $2C90 ; Object tilemap state
dl $7E054E : db $02 : dw $2CEC ; Object tilemap state
dl $7EF377 : db $01 : db $0A ; Arrows
dl $7EF340 : db $01 : db $02 ; Bow
dl $7EF152 : db $02 : dw $201F ; Room $00A9: Eastern Palace (Big Chest Room) (...d........qqqq)
dl $7FE0F4 : db $02 : dw $0000 ; Room $BA persistent: Eastern Palace (Dark Antifairy / Key Pot Room)
dl $7E0540 : db $02 : dw $146C ; Object tilemap state
dl $7E0544 : db $02 : dw $130C ; Object tilemap state
dl $7E0548 : db $02 : dw $2B90 ; Object tilemap state
dl $7E054C : db $02 : dw $2BEC ; Object tilemap state
dl $7E0641 : db $01 : db $00 ; Room puzzle state (?)
dl $7E002F : db $01 : db $00 ; Link's direction
; Manual changes:
dl $7EC74C : db $02 : dw $284A ; Selected menu gfx, row 1
dl $7EC74A : db $02 : dw $28BA ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $2849 ; Selected menu gfx, row 2
dl $7EC78C : db $02 : dw $28CB ; Selected menu gfx, row 2
dl $7E0303 : db $01 : db $03 ; Selected menu item
dl $7E0202 : db $01 : db $01 ; Selected menu item
.after
sram_nmg_east_pot_room:
dl $7E0542 : db $02 : dw $1454 ; Object tilemap state
dl $7E0546 : db $02 : dw $1CAA ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7E0FC8 : db $01 : db $00 ; Prize pack index
dl $7EF360 : db $02 : dw $001B ; Rupees (goal)
dl $7EF132 : db $02 : dw $C403 ; Room $0099: Eastern Palace (Eyegore Key Room) (.dd...K........q)
dl $7EF362 : db $02 : dw $001B ; Rupees (actual)
dl $7EF36E : db $01 : db $20 ; Magic Power
dl $7E0540 : db $02 : dw $1428 ; Object tilemap state
dl $7E0544 : db $02 : dw $13BE ; Object tilemap state
dl $7E0548 : db $02 : dw $1CD2 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7FE0B2 : db $02 : dw $00D8 ; Room $99 persistent: Eastern Palace (Eyegore Key Room)
.after
sram_nmg_east_zeldagamer_room:
dl $7E0542 : db $02 : dw $1C5C ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7EF377 : db $01 : db $14 ; Arrows
dl $7EF1B4 : db $02 : dw $0002 ; Room $00DA: Eastern Palace (...............q)
dl $7EF1B2 : db $02 : dw $0003 ; Room $00D9: Eastern Palace (Canonball Room) (...............q)
dl $7E0468 : db $01 : db $00 ; Trap door state
dl $7E0540 : db $02 : dw $145C ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E002F : db $01 : db $04 ; Link's direction
.after
sram_nmg_east_armos:
dl $7E0542 : db $02 : dw $0ACA ; Object tilemap state
dl $7E0546 : db $02 : dw $0AF2 ; Object tilemap state
dl $7E054A : db $02 : dw $08F2 ; Object tilemap state
dl $7E054E : db $02 : dw $1860 ; Object tilemap state
dl $7EC74A : db $02 : dw $28BA ; Selected menu gfx, row 1
dl $7EF34F : db $01 : db $00 ; Bottles
dl $7EF377 : db $01 : db $12 ; Arrows
dl $7EC78A : db $02 : dw $2849 ; Selected menu gfx, row 2
dl $7E0FC8 : db $01 : db $02 ; Prize pack index
dl $7EF1B0 : db $02 : dw $0005 ; Room $00D8: Eastern Palace (Zeldagamer Room / Pre-Armos Knights Room) (..............q.)
dl $7EF360 : db $02 : dw $001C ; Rupees (goal)
dl $7EF362 : db $02 : dw $001C ; Rupees (actual)
dl $7E0303 : db $01 : db $03 ; Selected menu item
dl $7E0540 : db $02 : dw $08CA ; Object tilemap state
dl $7E0544 : db $02 : dw $0CCA ; Object tilemap state
dl $7E0548 : db $02 : dw $0CF2 ; Object tilemap state
dl $7E054C : db $02 : dw $185C ; Object tilemap state
dl $7E0202 : db $01 : db $01 ; Selected menu item
dl $7EC74C : db $02 : dw $284A ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $28CB ; Selected menu gfx, row 2
dl $7E002F : db $01 : db $00 ; Link's direction
dl $7FE130 : db $02 : dw $07FF ; Room $D8 persistent: Eastern Palace (Zeldagamer Room / Pre-Armos Knights Room)
.after
sram_nmg_desert_outside_eastern_palace:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7E0B09 : db $01 : db $00 ; Arc variable
dl $7E0B31 : db $01 : db $30 ; Arc variable
dl $7E0B35 : db $01 : db $30 ; Arc variable
dl $7EF36F : db $01 : db $FF ; Keys
dl $7EF377 : db $01 : db $00 ; Arrows
dl $7EC78A : db $02 : dw $28E8 ; Selected menu gfx, row 2
dl $7EF3E7 : db $02 : dw $0000 ; Deaths
dl $7EF190 : db $02 : dw $0801 ; Room $00C8: Eastern Palace (Armos Knights[Boss]) (.....k..........)
dl $7E0B32 : db $01 : db $30 ; Arc variable
dl $7EF340 : db $01 : db $01 ; Bow
dl $7EF36C : db $01 : db $20 ; Health (goal)
dl $7EF374 : db $01 : db $04 ; Pendants
dl $7EF36D : db $01 : db $20 ; Health (actual)
dl $7EF36E : db $01 : db $80 ; Magic Power
dl $7FE103 : db $01 : db $52 ; Overworld $C1 persistent: UNKNOWN
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E02A1 : db $01 : db $17 ; Arc variable
dl $7E0B33 : db $01 : db $30 ; Arc variable
dl $7E0B37 : db $01 : db $BF ; Arc variable
dl $7EC74C : db $02 : dw $28E9 ; Selected menu gfx, row 1
dl $7FE06E : db $01 : db $52 ; Overworld $77 persistent: Black Ice Cave
dl $7FE0B2 : db $01 : db $00 ; Overworld $99 persistent: UNKNOWN
dl $7E0B08 : db $01 : db $40 ; Arc variable
dl $7E0B30 : db $01 : db $30 ; Arc variable
dl $7E0B34 : db $01 : db $30 ; Arc variable
dl $7E002F : db $01 : db $02 ; Link's direction
dl $7FE130 : db $01 : db $00 ; Overworld $D8 persistent: UNKNOWN
.after
sram_nmg_desert_ep_spinspeed:
dl $7E0542 : db $02 : dw $1520 ; Object tilemap state
dl $7EF3C7 : db $01 : db $03 ; Map Phase
dl $7EF355 : db $01 : db $01 ; Boots
dl $7EF379 : db $01 : db $FC ; Ability Flags
dl $7EF20A : db $02 : dw $0002 ; Room $0105: Unknown (...............q)
dl $7FE103 : db $01 : db $00 ; Room $C1 persistent: Misery Mire (Compass Chest / Tile Room)
dl $7EC167 : db $01 : db $05 ; Underworld exit cache
dl $7EC140 : db $02 : dw $001E ; Underworld exit cache
dl $7EC144 : db $02 : dw $06D7 ; Underworld exit cache
dl $7EC148 : db $02 : dw $0736 ; Underworld exit cache
dl $7EC14C : db $02 : dw $001E ; Underworld exit cache
dl $7EC150 : db $02 : dw $0744 ; Underworld exit cache
dl $7EC154 : db $02 : dw $0600 ; Underworld exit cache
dl $7EC158 : db $02 : dw $0C00 ; Underworld exit cache
dl $7EC15C : db $02 : dw $0520 ; Underworld exit cache
dl $7EC160 : db $02 : dw $0B00 ; Underworld exit cache
dl $7EC16C : db $02 : dw $FFF7 ; Underworld exit cache
dl $7EC170 : db $02 : dw $FFF6 ; Underworld exit cache
dl $7E0468 : db $02 : dw $0001 ; Trap door state
dl $7E0540 : db $02 : dw $151C ; Object tilemap state
dl $7E0544 : db $02 : dw $141E ; Object tilemap state
dl $7EC165 : db $01 : db $20 ; Underworld exit cache
dl $7FE06E : db $01 : db $00 ; Room $77 persistent: Tower of Hera (Entrance Room)
dl $7EC142 : db $02 : dw $0016 ; Underworld exit cache
dl $7EC146 : db $02 : dw $0C76 ; Underworld exit cache
dl $7EC14A : db $02 : dw $0CF0 ; Underworld exit cache
dl $7EC14E : db $02 : dw $0710 ; Underworld exit cache
dl $7EC152 : db $02 : dw $0CFB ; Underworld exit cache
dl $7EC156 : db $02 : dw $091E ; Underworld exit cache
dl $7EC15A : db $02 : dw $0F00 ; Underworld exit cache
dl $7EC15E : db $02 : dw $0A00 ; Underworld exit cache
dl $7EC162 : db $02 : dw $1000 ; Underworld exit cache
dl $7EC166 : db $01 : db $25 ; Underworld exit cache
dl $7EC16A : db $02 : dw $0009 ; Underworld exit cache
dl $7EC16E : db $02 : dw $000A ; Underworld exit cache
dl $7E010E : db $01 : db $45 ; Dungeon entrance index
.after
sram_nmg_desert_bridge_screen:
dl $7FE167 : db $01 : db $42 ; Overworld $F3 persistent: UNKNOWN
dl $7FE04E : db $01 : db $42 ; Overworld $67 persistent: UNKNOWN
dl $7E002F : db $01 : db $04 ; Link's direction
.after
sram_nmg_desert_unholy_spinspeed:
dl $7FE167 : db $01 : db $00 ; Overworld $F3 persistent: UNKNOWN
dl $7FE07C : db $01 : db $A0 ; Overworld $7E persistent: UNKNOWN
dl $7FE019 : db $01 : db $1E ; Overworld $4C persistent: UNKNOWN
dl $7FE06D : db $01 : db $A1 ; Overworld $76 persistent: UNKNOWN
dl $7FE161 : db $01 : db $A1 ; Overworld $F0 persistent: UNKNOWN
dl $7FE04E : db $01 : db $9F ; Overworld $67 persistent: UNKNOWN
dl $7FE06E : db $01 : db $2F ; Overworld $77 persistent: Black Ice Cave
dl $7EC172 : db $02 : dw $0900 ; Crystal switch state
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_desert_water_dash:
dl $7E0542 : db $02 : dw $17DE ; Object tilemap state
dl $7E0546 : db $02 : dw $19D6 ; Object tilemap state
dl $7E054A : db $02 : dw $19E6 ; Object tilemap state
dl $7E054E : db $02 : dw $1BE6 ; Object tilemap state
dl $7EF20E : db $02 : dw $F002 ; Room $0107: Unknown (.dddb..........q)
dl $7EF34E : db $01 : db $01 ; Book of Mudora
dl $7FE07C : db $01 : db $00 ; Overworld $7E persistent: UNKNOWN
dl $7FE019 : db $01 : db $00 ; Overworld $4C persistent: UNKNOWN
dl $7FE06D : db $01 : db $00 ; Overworld $76 persistent: UNKNOWN
dl $7E0540 : db $02 : dw $17D6 ; Object tilemap state
dl $7E0544 : db $02 : dw $17E6 ; Object tilemap state
dl $7E0548 : db $02 : dw $19DE ; Object tilemap state
dl $7E054C : db $02 : dw $1BD6 ; Object tilemap state
dl $7FE161 : db $01 : db $00 ; Overworld $F0 persistent: UNKNOWN
dl $7FE04E : db $01 : db $00 ; Overworld $67 persistent: UNKNOWN
dl $7FE06E : db $01 : db $00 ; Overworld $77 persistent: Black Ice Cave
dl $7E002F : db $01 : db $02 ; Link's direction
dl $7E010E : db $01 : db $49 ; Dungeon entrance index
.after
sram_nmg_desert_outside_desert_palace:
dl $7FE168 : db $01 : db $3F ; Overworld $F4 persistent: UNKNOWN
dl $7FE01E : db $01 : db $01 ; Overworld $4F persistent: Mysterious Pond
dl $7EC172 : db $02 : dw $05A0 ; Crystal switch state
dl $7FE02B : db $01 : db $3F ; Overworld $55 persistent: Dark Waterway
dl $7FE0D7 : db $01 : db $3A ; Overworld $AB persistent: UNKNOWN
dl $7E002F : db $01 : db $04 ; Link's direction
.after
sram_nmg_desert_desert_entrance:
dl $7EC74A : db $02 : dw $3CA5 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $3CD8 ; Selected menu gfx, row 2
dl $7E0303 : db $01 : db $0C ; Selected menu item
dl $7FE168 : db $01 : db $00 ; Overworld $F4 persistent: UNKNOWN
dl $7E0202 : db $01 : db $0F ; Selected menu item
dl $7EC74C : db $02 : dw $3CA6 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $3CD9 ; Selected menu gfx, row 2
dl $7FE01E : db $01 : db $00 ; Overworld $4F persistent: Mysterious Pond
dl $7FE02B : db $01 : db $00 ; Overworld $55 persistent: Dark Waterway
dl $7FE0D7 : db $01 : db $00 ; Overworld $AB persistent: UNKNOWN
dl $7E002F : db $01 : db $00 ; Link's direction
dl $7E010E : db $01 : db $09 ; Dungeon entrance index
.after
sram_nmg_desert_keybonk:
dl $7E0542 : db $02 : dw $159E ; Object tilemap state
dl $7E0546 : db $02 : dw $1890 ; Object tilemap state
dl $7E054A : db $02 : dw $1B9A ; Object tilemap state
dl $7E054E : db $02 : dw $1A24 ; Object tilemap state
dl $7E0552 : db $02 : dw $1724 ; Object tilemap state
dl $7E0556 : db $02 : dw $0CB2 ; Object tilemap state
dl $7EF36F : db $01 : db $00 ; Keys
dl $7EF377 : db $01 : db $05 ; Arrows
dl $7EF0E8 : db $02 : dw $0003 ; Room $0074: Desert Palace (Map Chest Room) (...............q)
dl $7EF108 : db $02 : dw $000F ; Room $0084: Desert Palace (Main Entrance Room) (.............qqq)
dl $7EF340 : db $01 : db $02 ; Bow
dl $7EF0E6 : db $02 : dw $0001 ; Room $0073: Desert Palace (Big Chest Room) (................)
dl $7FE068 : db $02 : dw $0001 ; Room $74 persistent: Desert Palace (Map Chest Room)
dl $7E0540 : db $02 : dw $159A ; Object tilemap state
dl $7E0544 : db $02 : dw $1714 ; Object tilemap state
dl $7E0548 : db $02 : dw $1A14 ; Object tilemap state
dl $7E054C : db $02 : dw $1B9E ; Object tilemap state
dl $7E0550 : db $02 : dw $18A8 ; Object tilemap state
dl $7E0554 : db $02 : dw $0C8A ; Object tilemap state
dl $7EC172 : db $02 : dw $0000 ; Crystal switch state
.after
sram_nmg_desert_pre_cannonball_room:
dl $7E0542 : db $02 : dw $1C30 ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7E0552 : db $02 : dw $0000 ; Object tilemap state
dl $7E0556 : db $02 : dw $0000 ; Object tilemap state
dl $7EF0E6 : db $02 : dw $0405 ; Room $0073: Desert Palace (Big Chest Room) (......K.......q.)
dl $7EF0EA : db $02 : dw $0002 ; Room $0075: Desert Palace (Big Key Chest Room) (...............q)
dl $7EF10A : db $02 : dw $400A ; Room $0085: Desert Palace (East Entrance Room) (..d..........q.q)
dl $7E0540 : db $02 : dw $1C2C ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E0550 : db $02 : dw $0000 ; Object tilemap state
dl $7E0554 : db $02 : dw $0000 ; Object tilemap state
dl $7E002F : db $01 : db $06 ; Link's direction
.after
sram_nmg_desert_pot_room:
dl $7E0542 : db $02 : dw $159E ; Object tilemap state
dl $7E0546 : db $02 : dw $1890 ; Object tilemap state
dl $7E054A : db $02 : dw $1B9A ; Object tilemap state
dl $7E054E : db $02 : dw $1A24 ; Object tilemap state
dl $7E0552 : db $02 : dw $1724 ; Object tilemap state
dl $7E0556 : db $02 : dw $0CB2 ; Object tilemap state
dl $7EF377 : db $01 : db $0A ; Arrows
dl $7E0FC8 : db $01 : db $03 ; Prize pack index
dl $7EF0EA : db $02 : dw $0017 ; Room $0075: Desert Palace (Big Key Chest Room) (............q.qq)
dl $7EF10A : db $02 : dw $400E ; Room $0085: Desert Palace (East Entrance Room) (..d..........qqq)
dl $7EF366 : db $02 : dw $7000 ; BigKey1
dl $7E0540 : db $02 : dw $159A ; Object tilemap state
dl $7E0544 : db $02 : dw $1714 ; Object tilemap state
dl $7E0548 : db $02 : dw $1A14 ; Object tilemap state
dl $7E054C : db $02 : dw $1B9E ; Object tilemap state
dl $7E0550 : db $02 : dw $18A8 ; Object tilemap state
dl $7E0554 : db $02 : dw $0C8A ; Object tilemap state
dl $7FE08A : db $02 : dw $001C ; Room $85 persistent: Desert Palace (East Entrance Room)
dl $7E002F : db $01 : db $04 ; Link's direction
.after
sram_nmg_desert_desert2_spinspeed:
dl $7E0542 : db $02 : dw $0450 ; Object tilemap state
dl $7E0546 : db $02 : dw $1C50 ; Object tilemap state
dl $7E054A : db $02 : dw $1914 ; Object tilemap state
dl $7E054E : db $02 : dw $1928 ; Object tilemap state
dl $7E0552 : db $02 : dw $0000 ; Object tilemap state
dl $7E0556 : db $02 : dw $0000 ; Object tilemap state
dl $7EF377 : db $01 : db $14 ; Arrows
dl $7EF354 : db $01 : db $01 ; Gloves
dl $7EF0E6 : db $02 : dw $041F ; Room $0073: Desert Palace (Big Chest Room) (......K.....qqqq)
dl $7EF106 : db $02 : dw $0007 ; Room $0083: Desert Palace (West Entrance Room) (..............qq)
dl $7FE068 : db $02 : dw $0000 ; Room $74 persistent: Desert Palace (Map Chest Room)
dl $7E0540 : db $02 : dw $044C ; Object tilemap state
dl $7E0544 : db $02 : dw $1C4C ; Object tilemap state
dl $7E0548 : db $02 : dw $1514 ; Object tilemap state
dl $7E054C : db $02 : dw $191E ; Object tilemap state
dl $7E0550 : db $02 : dw $0000 ; Object tilemap state
dl $7E0554 : db $02 : dw $0000 ; Object tilemap state
dl $7E002F : db $01 : db $02 ; Link's direction
.after
sram_nmg_desert_popo_genocide_room:
dl $7E0542 : db $02 : dw $0B60 ; Object tilemap state
dl $7E0546 : db $02 : dw $0B68 ; Object tilemap state
dl $7E054A : db $02 : dw $1368 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7EF37F : db $01 : db $00 ; Key for dungeon $03
dl $7EF0A6 : db $02 : dw $0008 ; Room $0053: Desert Palace (Popos 2 / Beamos Hellway Room) (.............q..)
dl $7EF0C6 : db $02 : dw $840A ; Room $0063: Desert Palace (Final Section Entrance Room) (.d....K......q.q)
dl $7E0540 : db $02 : dw $0B5C ; Object tilemap state
dl $7E0544 : db $02 : dw $0B64 ; Object tilemap state
dl $7E0548 : db $02 : dw $08E2 ; Object tilemap state
dl $7E054C : db $02 : dw $1864 ; Object tilemap state
dl $7E0B37 : db $01 : db $9D ; Arc variable
dl $7FE08A : db $01 : db $00 ; Room $85 persistent: Desert Palace (East Entrance Room)
dl $7E010E : db $01 : db $0C ; Dungeon entrance index
.after
sram_nmg_desert_torches:
dl $7E0542 : db $02 : dw $044E ; Object tilemap state
dl $7E0546 : db $02 : dw $094E ; Object tilemap state
dl $7E054A : db $02 : dw $1470 ; Object tilemap state
dl $7E054E : db $02 : dw $1C70 ; Object tilemap state
dl $7E0552 : db $02 : dw $03B6 ; Object tilemap state
dl $7E0556 : db $02 : dw $09B6 ; Object tilemap state
dl $7EC74A : db $02 : dw $24BC ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $24CC ; Selected menu gfx, row 2
dl $7E0FC8 : db $01 : db $04 ; Prize pack index
dl $7EF086 : db $02 : dw $6401 ; Room $0043: Desert Palace (Torch Puzzle / Moving Wall Room) (..dd..K.........)
dl $7EF0A6 : db $02 : dw $240F ; Room $0053: Desert Palace (Popos 2 / Beamos Hellway Room) (...d..K......qqq)
dl $7E0303 : db $01 : db $09 ; Selected menu item
dl $7E0540 : db $02 : dw $0442 ; Object tilemap state
dl $7E0544 : db $02 : dw $0942 ; Object tilemap state
dl $7E0548 : db $02 : dw $144C ; Object tilemap state
dl $7E054C : db $02 : dw $1C4C ; Object tilemap state
dl $7E0550 : db $02 : dw $03AA ; Object tilemap state
dl $7E0554 : db $02 : dw $09AA ; Object tilemap state
dl $7E0202 : db $01 : db $0B ; Selected menu item
dl $7E0B37 : db $01 : db $A8 ; Arc variable
dl $7EC74C : db $02 : dw $24BD ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $24CD ; Selected menu gfx, row 2
dl $7FE026 : db $02 : dw $06E0 ; Room $53 persistent: Desert Palace (Popos 2 / Beamos Hellway Room)
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_desert_lanmolas:
dl $7E0552 : db $02 : dw $83B6 ; Object tilemap state
dl $7E0556 : db $02 : dw $89B6 ; Object tilemap state
dl $7EF377 : db $01 : db $19 ; Arrows
dl $7EF086 : db $02 : dw $E48D ; Room $0043: Desert Palace (Torch Puzzle / Moving Wall Room) (.ddd..K..c...qq.)
dl $7EF36E : db $01 : db $70 ; Magic Power
dl $7E0550 : db $02 : dw $83AA ; Object tilemap state
dl $7E0554 : db $02 : dw $89AA ; Object tilemap state
dl $7E0B37 : db $01 : db $96 ; Arc variable
.after
sram_nmg_hera_outside_desert_palace:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7E0552 : db $02 : dw $0000 ; Object tilemap state
dl $7E0556 : db $02 : dw $0000 ; Object tilemap state
dl $7EC74A : db $02 : dw $28BA ; Selected menu gfx, row 1
dl $7EF36F : db $01 : db $FF ; Keys
dl $7EF377 : db $01 : db $0C ; Arrows
dl $7EC78A : db $02 : dw $2849 ; Selected menu gfx, row 2
dl $7EF36C : db $01 : db $28 ; Health (goal)
dl $7EF374 : db $01 : db $06 ; Pendants
dl $7EF36D : db $01 : db $28 ; Health (actual)
dl $7EF3E9 : db $02 : dw $0000 ; Deaths
dl $7EF066 : db $02 : dw $0802 ; Room $0033: Desert Palace (Lanmolas[Boss]) (.....k.........q)
dl $7EF36E : db $01 : db $80 ; Magic Power
dl $7E0303 : db $01 : db $03 ; Selected menu item
dl $7E0468 : db $02 : dw $0000 ; Trap door state
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E0550 : db $02 : dw $0000 ; Object tilemap state
dl $7E0554 : db $02 : dw $0000 ; Object tilemap state
dl $7E0202 : db $01 : db $01 ; Selected menu item
dl $7EC74C : db $02 : dw $284A ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $28CB ; Selected menu gfx, row 2
dl $7FE026 : db $01 : db $00 ; Overworld $53 persistent: Dark Sanctuary
dl $7E02A2 : db $01 : db $17 ; Arc variable
dl $7E002F : db $01 : db $02 ; Link's direction
.after
sram_nmg_hera_fake_flippers:
dl $7FE048 : db $01 : db $48 ; Overworld $64 persistent: UNKNOWN
dl $7FE174 : db $01 : db $09 ; Overworld $FA persistent: UNKNOWN
dl $7FE07E : db $01 : db $01 ; Overworld $7F persistent: Dark Waterfall
dl $7EC172 : db $02 : dw $0800 ; Crystal switch state
dl $7E002F : db $01 : db $06 ; Link's direction
.after
sram_nmg_hera_dm:
dl $7EF377 : db $01 : db $0B ; Arrows
dl $7EF1E0 : db $02 : dw $000F ; Room $00F0: Cave (Lost Old Man Starting Cave) (.............qqq)
dl $7EF3C8 : db $01 : db $05 ; Entrances Phase
dl $7EF3CC : db $01 : db $04 ; Tagalong
dl $7EF1E2 : db $02 : dw $000F ; Room $00F1: Cave (Lost Old Man Starting Cave) (.............qqq)
dl $7FE048 : db $01 : db $00 ; Room $64 persistent: Thieves Town (West Attic Room)
dl $7FE174 : db $01 : db $00 ; Room $FA persistent: Cave
dl $7E0468 : db $02 : dw $0001 ; Trap door state
dl $7E0540 : db $02 : dw $0540 ; Object tilemap state
dl $7E0FC9 : db $01 : db $01 ; Prize pack index
dl $7FE07E : db $01 : db $00 ; Room $7F persistent: Ice Palace ( Big Spike Traps Room)
dl $7EC172 : db $02 : dw $0000 ; Crystal switch state
dl $7E002F : db $01 : db $02 ; Link's direction
dl $7E010E : db $01 : db $06 ; Dungeon entrance index
.after
sram_nmg_hera_after_mirror:
dl $7EF353 : db $01 : db $02 ; Magic Mirror
dl $7EF3C8 : db $01 : db $01 ; Entrances Phase
dl $7EF3CC : db $01 : db $00 ; Tagalong
dl $7E0B37 : db $01 : db $00 ; Arc variable
dl $7FDFCB : db $01 : db $F3 ; Overworld $25 persistent: Octorok Area
dl $7E002F : db $01 : db $06 ; Link's direction
.after
sram_nmg_hera_quickhop:
dl $7EC74A : db $02 : dw $2C62 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $2C72 ; Selected menu gfx, row 2
dl $7E1ABF : db $01 : db $1C ; Warp Vortex Coordinate
dl $7E1ACF : db $01 : db $08 ; Warp Vortex Coordinate
dl $7E1ADF : db $01 : db $38 ; Warp Vortex Coordinate
dl $7E1AEF : db $01 : db $01 ; Warp Vortex Coordinate
dl $7E0303 : db $01 : db $14 ; Selected menu item
dl $7E0202 : db $01 : db $14 ; Selected menu item
dl $7EC74C : db $02 : dw $2C63 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $2C73 ; Selected menu gfx, row 2
dl $7E002F : db $01 : db $04 ; Link's direction
.after
sram_nmg_hera_entrance:
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_hera_tile_room:
dl $7EC74A : db $02 : dw $2CB8 ; Selected menu gfx, row 1
dl $7EF36F : db $02 : dw $0000 ; Keys
dl $7EC78A : db $02 : dw $2CF5 ; Selected menu gfx, row 2
dl $7EF0EE : db $02 : dw $800F ; Room $0077: Tower of Hera (Entrance Room) (.d...........qqq)
dl $7EF10E : db $02 : dw $0402 ; Room $0087: Tower of Hera (Tile Room) (......K........q)
dl $7EF386 : db $01 : db $01 ; Key for dungeon $0A
dl $7E0303 : db $01 : db $02 ; Selected menu item
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0202 : db $01 : db $02 ; Selected menu item
dl $7EC74C : db $02 : dw $2CB9 ; Selected menu gfx, row 1
dl $7FDFCB : db $01 : db $00 ; Room $25 persistent: Empty Clone Room
dl $7EC78C : db $02 : dw $2CC9 ; Selected menu gfx, row 2
dl $7E02A2 : db $01 : db $00 ; Arc variable
dl $7E010E : db $01 : db $33 ; Dungeon entrance index
.after
sram_nmg_hera_torches:
dl $7E0542 : db $02 : dw $0B10 ; Object tilemap state
dl $7E0546 : db $02 : dw $0C18 ; Object tilemap state
dl $7E054A : db $02 : dw $0C28 ; Object tilemap state
dl $7E054E : db $02 : dw $1470 ; Object tilemap state
dl $7E0552 : db $02 : dw $186C ; Object tilemap state
dl $7E0556 : db $02 : dw $1B6C ; Object tilemap state
dl $7EF10E : db $02 : dw $040E ; Room $0087: Tower of Hera (Tile Room) (......K......qqq)
dl $7E0540 : db $02 : dw $0B0C ; Object tilemap state
dl $7E0544 : db $02 : dw $0C10 ; Object tilemap state
dl $7E0548 : db $02 : dw $0C20 ; Object tilemap state
dl $7E054C : db $02 : dw $144C ; Object tilemap state
dl $7E0550 : db $02 : dw $1850 ; Object tilemap state
dl $7E0554 : db $02 : dw $1B50 ; Object tilemap state
dl $7E0B37 : db $01 : db $80 ; Arc variable
dl $7E002F : db $01 : db $02 ; Link's direction
.after
sram_nmg_hera_beetles:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7E0552 : db $02 : dw $0000 ; Object tilemap state
dl $7E0556 : db $02 : dw $0000 ; Object tilemap state
dl $7EC74A : db $02 : dw $2C62 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $2C72 ; Selected menu gfx, row 2
dl $7EF10E : db $02 : dw $041F ; Room $0087: Tower of Hera (Tile Room) (......K.....qqqq)
dl $7EF366 : db $02 : dw $7020 ; BigKey1
dl $7EF36E : db $01 : db $70 ; Magic Power
dl $7EF386 : db $01 : db $00 ; Key for dungeon $0A
dl $7E0303 : db $01 : db $14 ; Selected menu item
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E0550 : db $02 : dw $0000 ; Object tilemap state
dl $7E0554 : db $02 : dw $0000 ; Object tilemap state
dl $7E02A1 : db $01 : db $00 ; Arc variable
dl $7E0202 : db $01 : db $14 ; Selected menu item
dl $7EC74C : db $02 : dw $2C63 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $2C73 ; Selected menu gfx, row 2
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_hera_petting_zoo:
dl $7E0542 : db $02 : dw $1C60 ; Object tilemap state
dl $7EF343 : db $01 : db $01 ; Bombs
dl $7E0FCC : db $01 : db $02 ; Prize pack index
dl $7EF375 : db $01 : db $00 ; Bomb filler
dl $7EF062 : db $02 : dw $800F ; Room $0031: Tower of Hera (Hardhat Beetles Room) (.d...........qqq)
dl $7E0540 : db $02 : dw $1C5C ; Object tilemap state
dl $7FDFE2 : db $02 : dw $0580 ; Room $31 persistent: Tower of Hera (Hardhat Beetles Room)
dl $7EC172 : db $01 : db $01 ; Crystal switch state
.after
sram_nmg_hera_moldorm:
dl $7E0542 : db $02 : dw $0E64 ; Object tilemap state
dl $7E0546 : db $02 : dw $1064 ; Object tilemap state
dl $7E054A : db $02 : dw $1264 ; Object tilemap state
dl $7E054E : db $02 : dw $0E68 ; Object tilemap state
dl $7E0552 : db $02 : dw $1068 ; Object tilemap state
dl $7E0556 : db $02 : dw $1268 ; Object tilemap state
dl $7EC74A : db $02 : dw $28BA ; Selected menu gfx, row 1
dl $7EF357 : db $01 : db $01 ; Moon Pearl
dl $7EC78A : db $02 : dw $2849 ; Selected menu gfx, row 2
dl $7E0FC8 : db $01 : db $05 ; Prize pack index
dl $7EF36D : db $01 : db $20 ; Health (actual)
dl $7EF02E : db $02 : dw $000F ; Room $0017: Tower of Hera (Moldorm Fall Room) (.............qqq)
dl $7EF04E : db $02 : dw $001F ; Room $0027: Tower of Hera (Big Chest) (............qqqq)
dl $7E029F : db $01 : db $19 ; Arc variable
dl $7E0303 : db $01 : db $03 ; Selected menu item
dl $7E0540 : db $02 : dw $0D64 ; Object tilemap state
dl $7E0544 : db $02 : dw $0F64 ; Object tilemap state
dl $7E0548 : db $02 : dw $1164 ; Object tilemap state
dl $7E054C : db $02 : dw $0D68 ; Object tilemap state
dl $7E0550 : db $02 : dw $0F68 ; Object tilemap state
dl $7E0554 : db $02 : dw $1168 ; Object tilemap state
dl $7E0202 : db $01 : db $01 ; Selected menu item
dl $7EC74C : db $02 : dw $284A ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $28CB ; Selected menu gfx, row 2
dl $7FDFCE : db $02 : dw $0024 ; Room $27 persistent: Tower of Hera (Big Chest)
.after
sram_nmg_aga_outside_hera:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7E0552 : db $02 : dw $0000 ; Object tilemap state
dl $7E0556 : db $02 : dw $0000 ; Object tilemap state
dl $7EF36F : db $01 : db $FF ; Keys
dl $7EF3C7 : db $01 : db $04 ; Map Phase
dl $7EF3F7 : db $02 : dw $0000 ; Deaths
dl $7EF36C : db $01 : db $30 ; Health (goal)
dl $7EF374 : db $01 : db $07 ; Pendants
dl $7EF36D : db $01 : db $30 ; Health (actual)
dl $7EF00E : db $02 : dw $080F ; Room $0007: Tower of Hera (Moldorm[Boss]) (.....k.......qqq)
dl $7EF36E : db $01 : db $80 ; Magic Power
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E0550 : db $02 : dw $0000 ; Object tilemap state
dl $7E0554 : db $02 : dw $0000 ; Object tilemap state
dl $7FDFCB : db $01 : db $F3 ; Overworld $25 persistent: Octorok Area
dl $7FDFCE : db $01 : db $00 ; Overworld $27 persistent: UNKNOWN
dl $7FDFE2 : db $01 : db $00 ; Overworld $31 persistent: UNKNOWN
dl $7E02A2 : db $01 : db $17 ; Arc variable
dl $7E002F : db $01 : db $02 ; Link's direction
.after
sram_nmg_aga_first_rupee_tree:
dl $7E0542 : db $02 : dw $1058 ; Object tilemap state
dl $7E0546 : db $02 : dw $1838 ; Object tilemap state
dl $7EF1CC : db $02 : dw $000F ; Room $00E6: Cave (.............qqq)
dl $7EF1CE : db $02 : dw $000F ; Room $00E7: Cave (.............qqq)
dl $7E0540 : db $02 : dw $0C6C ; Object tilemap state
dl $7E0544 : db $02 : dw $1448 ; Object tilemap state
dl $7FDFCB : db $01 : db $00 ; Room $25 persistent: Empty Clone Room
dl $7EC172 : db $02 : dw $0000 ; Crystal switch state
dl $7E010E : db $01 : db $2F ; Dungeon entrance index
dl $7FE14E : db $02 : dw $0008 ; Room $E7 persistent: Cave
.after
sram_nmg_aga_lost_woods:
dl $7EF377 : db $01 : db $0A ; Arrows
dl $7EF360 : db $02 : dw $0026 ; Rupees (goal)
dl $7EF362 : db $02 : dw $0026 ; Rupees (actual)
dl $7EC172 : db $02 : dw $0900 ; Crystal switch state
dl $7E002F : db $01 : db $04 ; Link's direction
dl $7FE14E : db $01 : db $00 ; Overworld $E7 persistent: UNKNOWN
; Manual changes:
dl $7E0CFB : db $02 : dw $0001 ; Rupee pull kill and damage counters
.after
sram_nmg_aga_after_grove:
dl $7EF3C7 : db $01 : db $05 ; Map Phase
dl $7EF300 : db $01 : db $40 ; Overworld $80: Unknown (..?.....)
dl $7EF359 : db $01 : db $02 ; Sword
dl $7FE1E8 : db $01 : db $E9 ; Overworld $134 persistent: UNKNOWN
dl $7E002F : db $01 : db $02 ; Link's direction
dl $7FE132 : db $01 : db $01 ; Overworld $D9 persistent: UNKNOWN
; Manual changes:
dl $7E0CFB : db $02 : dw $0003 ; Rupee pull kill and damage counters
.after
sram_nmg_aga_after_lost_woods:
dl $7EF3C7 : db $01 : db $05 ; Map Phase
dl $7EF300 : db $01 : db $40 ; Overworld $80: Unknown (..?.....)
dl $7EF360 : db $02 : dw $0076 ; Rupees (goal)
dl $7EF359 : db $01 : db $02 ; Sword
dl $7EF362 : db $02 : dw $0076 ; Rupees (actual)
dl $7FE1E8 : db $01 : db $E9 ; Overworld $134 persistent: UNKNOWN
dl $7E002F : db $01 : db $02 ; Link's direction
dl $7FE132 : db $01 : db $01 ; Overworld $D9 persistent: UNKNOWN
; Manual changes:
dl $7E0CFB : db $02 : dw $0001 ; Rupee pull kill and damage counters
.after
sram_nmg_aga_castle_screen:
dl $7FE06C : db $01 : db $43 ; Overworld $76 persistent: UNKNOWN
dl $7FE1E8 : db $01 : db $00 ; Overworld $134 persistent: UNKNOWN
dl $7EC172 : db $02 : dw $000A ; Crystal switch state
dl $7E002F : db $01 : db $06 ; Link's direction
dl $7FE132 : db $01 : db $00 ; Overworld $D9 persistent: UNKNOWN
dl $7FE144 : db $01 : db $42 ; Overworld $E2 persistent: UNKNOWN
; Manual changes:
dl $7E0CFB : db $02 : dw $0003 ; Rupee pull kill and damage counters
.after
sram_nmg_aga_entrance:
dl $7E0542 : db $02 : dw $044C ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7EF29B : db $01 : db $60 ; Overworld $1B: Unknown (..??....)
dl $7FE0EF : db $01 : db $41 ; Overworld $B7 persistent: UNKNOWN
dl $7FE06C : db $01 : db $00 ; Overworld $76 persistent: UNKNOWN
dl $7E0540 : db $02 : dw $0470 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7EC172 : db $02 : dw $0000 ; Crystal switch state
dl $7E002F : db $01 : db $00 ; Link's direction
dl $7E010E : db $01 : db $04 ; Dungeon entrance index
dl $7FE144 : db $01 : db $00 ; Overworld $E2 persistent: UNKNOWN
.after
sram_nmg_aga_fairy_skip:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7EF36F : db $01 : db $00 ; Keys
dl $7EF377 : db $01 : db $08 ; Arrows
dl $7E0FC8 : db $01 : db $07 ; Prize pack index
dl $7EF1C0 : db $02 : dw $000A ; Room $00E0: Agahnim's Tower (Entrance Room) (.............q.q)
dl $7FE0EF : db $01 : db $00 ; Room $B7 persistent: Turtle Rock (Map Chest / Key Chest / Roller Room)
dl $7E0468 : db $02 : dw $0000 ; Trap door state
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E002F : db $01 : db $06 ; Link's direction
dl $7E010E : db $01 : db $24 ; Dungeon entrance index
dl $7FE140 : db $02 : dw $0003 ; Room $E0 persistent: Agahnim's Tower (Entrance Room)
.after
sram_nmg_aga_dark_room_of_despair:
dl $7E0542 : db $02 : dw $0B8C ; Object tilemap state
dl $7E0546 : db $02 : dw $1030 ; Object tilemap state
dl $7E054A : db $02 : dw $1792 ; Object tilemap state
dl $7E054E : db $02 : dw $1C16 ; Object tilemap state
dl $7E0552 : db $02 : dw $0D24 ; Object tilemap state
dl $7EF1A0 : db $02 : dw $0004 ; Room $00D0: Agahnim's Tower (Dark Maze) (..............q.)
dl $7EF1C0 : db $02 : dw $201E ; Room $00E0: Agahnim's Tower (Entrance Room) (...d........qqqq)
dl $7E0468 : db $02 : dw $0001 ; Trap door state
dl $7E0540 : db $02 : dw $059E ; Object tilemap state
dl $7E0544 : db $02 : dw $0D2A ; Object tilemap state
dl $7E0548 : db $02 : dw $14B0 ; Object tilemap state
dl $7E054C : db $02 : dw $1C0C ; Object tilemap state
dl $7E0550 : db $02 : dw $0A1E ; Object tilemap state
dl $7E0554 : db $02 : dw $1012 ; Object tilemap state
dl $7E002F : db $01 : db $04 ; Link's direction
dl $7FE140 : db $02 : dw $000F ; Room $E0 persistent: Agahnim's Tower (Entrance Room)
.after
sram_nmg_aga_dark_room_of_melancholy:
dl $7E0542 : db $02 : dw $0E0C ; Object tilemap state
dl $7E0546 : db $02 : dw $1B1C ; Object tilemap state
dl $7E054A : db $02 : dw $06D8 ; Object tilemap state
dl $7E054E : db $02 : dw $0D24 ; Object tilemap state
dl $7E0552 : db $02 : dw $1A10 ; Object tilemap state
dl $7EF180 : db $02 : dw $0001 ; Room $00C0: Agahnim's Tower (Dark Bridge Room) (................)
dl $7EF1A0 : db $02 : dw $801F ; Room $00D0: Agahnim's Tower (Dark Maze) (.d..........qqqq)
dl $7E0540 : db $02 : dw $0A30 ; Object tilemap state
dl $7E0544 : db $02 : dw $1A0C ; Object tilemap state
dl $7E0548 : db $02 : dw $0710 ; Object tilemap state
dl $7E054C : db $02 : dw $06E4 ; Object tilemap state
dl $7E0550 : db $02 : dw $1518 ; Object tilemap state
dl $7E0554 : db $02 : dw $0000 ; Object tilemap state
dl $7E0CBD : db $01 : db $01 ; Sprite drop
dl $7FE120 : db $02 : dw $0020 ; Room $D0 persistent: Agahnim's Tower (Dark Maze)
.after
sram_nmg_aga_spear_guards:
dl $7EF180 : db $02 : dw $240F ; Room $00C0: Agahnim's Tower (Dark Bridge Room) (...d..K......qqq)
dl $7FE100 : db $02 : dw $0018 ; Room $C0 persistent: Agahnim's Tower (Dark Bridge Room)
dl $7E0CBD : db $01 : db $00 ; Sprite drop
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_aga_circle_of_pots:
dl $7E0CC4 : db $01 : db $01 ; Sprite drop
dl $7E0542 : db $02 : dw $151C ; Object tilemap state
dl $7E0546 : db $02 : dw $1528 ; Object tilemap state
dl $7E054A : db $02 : dw $1910 ; Object tilemap state
dl $7E054E : db $02 : dw $1824 ; Object tilemap state
dl $7E0552 : db $02 : dw $1B1C ; Object tilemap state
dl $7E0556 : db $02 : dw $1B28 ; Object tilemap state
dl $7E055A : db $02 : dw $172C ; Object tilemap state
dl $7EF377 : db $01 : db $03 ; Arrows
dl $7EF160 : db $02 : dw $000C ; Room $00B0: Agahnim's Tower (Circle of Pots) (.............qq.)
dl $7FE0E0 : db $02 : dw $003F ; Room $B0 persistent: Agahnim's Tower (Circle of Pots)
dl $7E0468 : db $02 : dw $0000 ; Trap door state
dl $7E0540 : db $02 : dw $1514 ; Object tilemap state
dl $7E0544 : db $02 : dw $1520 ; Object tilemap state
dl $7E0548 : db $02 : dw $1710 ; Object tilemap state
dl $7E054C : db $02 : dw $1818 ; Object tilemap state
dl $7E0550 : db $02 : dw $1B14 ; Object tilemap state
dl $7E0554 : db $02 : dw $1B20 ; Object tilemap state
dl $7E0558 : db $02 : dw $192C ; Object tilemap state
dl $7E002F : db $01 : db $02 ; Link's direction
dl $7E0FC7 : db $01 : db $02 ; Prize pack index
.after
sram_nmg_aga_pit_room:
dl $7E0CC4 : db $01 : db $00 ; Sprite drop
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7E0552 : db $02 : dw $0000 ; Object tilemap state
dl $7E0556 : db $02 : dw $0000 ; Object tilemap state
dl $7E055A : db $02 : dw $0000 ; Object tilemap state
dl $7EC74A : db $02 : dw $2CB8 ; Selected menu gfx, row 1
dl $7EF377 : db $01 : db $07 ; Arrows
dl $7EC78A : db $02 : dw $2CF5 ; Selected menu gfx, row 2
dl $7EF080 : db $02 : dw $0001 ; Room $0040: Agahnim's Tower (Final Bridge Room) (................)
dl $7EF160 : db $02 : dw $240F ; Room $00B0: Agahnim's Tower (Circle of Pots) (...d..K......qqq)
dl $7EF360 : db $02 : dw $0077 ; Rupees (goal)
dl $7EF362 : db $02 : dw $0077 ; Rupees (actual)
dl $7E0303 : db $01 : db $02 ; Selected menu item
dl $7FE0E0 : db $02 : dw $043F ; Room $B0 persistent: Agahnim's Tower (Circle of Pots)
dl $7E0468 : db $02 : dw $0001 ; Trap door state
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E0550 : db $02 : dw $0000 ; Object tilemap state
dl $7E0554 : db $02 : dw $0000 ; Object tilemap state
dl $7E0558 : db $02 : dw $0000 ; Object tilemap state
dl $7E0202 : db $01 : db $02 ; Selected menu item
dl $7EC74C : db $02 : dw $2CB9 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $2CC9 ; Selected menu gfx, row 2
dl $7E002F : db $01 : db $04 ; Link's direction
dl $7FE140 : db $02 : dw $0000 ; Room $E0 persistent: Agahnim's Tower (Entrance Room)
.after
sram_nmg_aga_agahnim:
dl $7EF060 : db $02 : dw $840A ; Room $0030: Agahnim's Tower (Maiden Sacrifice Chamber) (.d....K......q.q)
dl $7EF080 : db $02 : dw $000B ; Room $0040: Agahnim's Tower (Final Bridge Room) (.............q.q)
dl $7FDFE0 : db $02 : dw $0001 ; Room $30 persistent: Agahnim's Tower (Maiden Sacrifice Chamber)
dl $7E02A2 : db $01 : db $00 ; Arc variable
dl $7E002F : db $01 : db $00 ; Link's direction
dl $7FE120 : db $02 : dw $0000 ; Room $D0 persistent: Agahnim's Tower (Dark Maze)
.after
sram_nmg_pod_pyramid:
dl $7EF36F : db $01 : db $FF ; Keys
dl $7EF3C7 : db $01 : db $06 ; Map Phase
dl $7EF3EB : db $02 : dw $0000 ; Deaths
dl $7EF040 : db $02 : dw $0802 ; Room $0020: Agahnim's Tower (Agahnim[Boss]) (.....k.........q)
dl $7EF3C5 : db $01 : db $03 ; Game Phase 1
dl $7EF282 : db $01 : db $20 ; Overworld $02: Unknown (...?....)
dl $7EF3CA : db $01 : db $40 ; LW/DW
dl $7FDFE0 : db $01 : db $00 ; Overworld $30 persistent: Desert of Mystery
dl $7FE0E0 : db $01 : db $00 ; Overworld $B0 persistent: UNKNOWN
dl $7FE100 : db $01 : db $00 ; Overworld $C0 persistent: UNKNOWN
dl $7E002F : db $01 : db $02 ; Link's direction
.after
sram_nmg_pod_pod_overworld:
dl $7FE00C : db $01 : db $DB ; Overworld $46 persistent: UNKNOWN
dl $7FE038 : db $01 : db $42 ; Overworld $5C persistent: UNKNOWN
dl $7FE110 : db $01 : db $7A ; Overworld $C8 persistent: UNKNOWN
dl $7FE160 : db $01 : db $42 ; Overworld $F0 persistent: UNKNOWN
dl $7FE124 : db $01 : db $AD ; Overworld $D2 persistent: UNKNOWN
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_pod_entrance:
dl $7EF360 : db $02 : dw $0009 ; Rupees (goal)
dl $7EF2DE : db $01 : db $20 ; Overworld $5E: Unknown (...?....)
dl $7EF362 : db $02 : dw $0009 ; Rupees (actual)
dl $7FE00C : db $01 : db $00 ; Overworld $46 persistent: UNKNOWN
dl $7FE038 : db $01 : db $00 ; Overworld $5C persistent: UNKNOWN
dl $7FE110 : db $01 : db $00 ; Overworld $C8 persistent: UNKNOWN
dl $7FE160 : db $01 : db $00 ; Overworld $F0 persistent: UNKNOWN
dl $7FDFCD : db $01 : db $23 ; Overworld $26 persistent: UNKNOWN
dl $7FE124 : db $01 : db $00 ; Overworld $D2 persistent: UNKNOWN
.after
sram_nmg_pod_main_hub_small_key:
dl $7E0542 : db $02 : dw $0520 ; Object tilemap state
dl $7E0546 : db $02 : dw $0B20 ; Object tilemap state
dl $7E054A : db $02 : dw $0844 ; Object tilemap state
dl $7E054E : db $02 : dw $056E ; Object tilemap state
dl $7E0552 : db $02 : dw $0B6E ; Object tilemap state
dl $7EF343 : db $01 : db $03 ; Bombs
dl $7EC74A : db $02 : dw $2C62 ; Selected menu gfx, row 1
dl $7EF36F : db $02 : dw $0000 ; Keys
dl $7EC78A : db $02 : dw $2C72 ; Selected menu gfx, row 2
dl $7EF094 : db $02 : dw $200F ; Room $004A: Palace of Darkness (Entrance Room) (...d.........qqq)
dl $7EF012 : db $02 : dw $0018 ; Room $0009: Palace of Darkness (............qq..)
dl $7EF382 : db $01 : db $01 ; Key for dungeon $06
dl $7E0303 : db $01 : db $14 ; Selected menu item
dl $7FDFCD : db $01 : db $00 ; Room $26 persistent: Swamp Palace (Statue Room)
dl $7E0540 : db $02 : dw $050E ; Object tilemap state
dl $7E0544 : db $02 : dw $0B0E ; Object tilemap state
dl $7E0548 : db $02 : dw $0838 ; Object tilemap state
dl $7E054C : db $02 : dw $055C ; Object tilemap state
dl $7E0550 : db $02 : dw $0B5C ; Object tilemap state
dl $7E0202 : db $01 : db $14 ; Selected menu item
dl $7EC74C : db $02 : dw $2C63 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $2C73 ; Selected menu gfx, row 2
dl $7E010E : db $01 : db $26 ; Dungeon entrance index
.after
sram_nmg_pod_main_hub_bk:
dl $7E0B35 : db $01 : db $00 ; Arc variable
dl $7EF343 : db $01 : db $04 ; Bombs
dl $7EF36F : db $01 : db $01 ; Keys
dl $7EF014 : db $02 : dw $001F ; Room $000A: Palace of Darkness (Stalfos Trap Room) (............qqqq)
dl $7EF074 : db $02 : dw $800F ; Room $003A: Palace of Darkness (Bombable Floor Room) (.d...........qqq)
dl $7E0B33 : db $01 : db $00 ; Arc variable
dl $7E0B37 : db $01 : db $00 ; Arc variable
dl $7E0B0C : db $01 : db $D0 ; Arc variable
dl $7E0B34 : db $01 : db $00 ; Arc variable
.after
sram_nmg_pod_main_hub_hammeryump:
dl $7EF36F : db $01 : db $00 ; Keys
dl $7EF014 : db $02 : dw $801F ; Room $000A: Palace of Darkness (Stalfos Trap Room) (.d..........qqqq)
dl $7EF074 : db $02 : dw $801F ; Room $003A: Palace of Darkness (Bombable Floor Room) (.d..........qqqq)
dl $7EF366 : db $02 : dw $7220 ; BigKey1
dl $7EF382 : db $01 : db $00 ; Key for dungeon $06
dl $7E029F : db $01 : db $00 ; Arc variable
.after
sram_nmg_pod_hammeryump:
dl $7E0542 : db $02 : dw $1350 ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7E0552 : db $02 : dw $0000 ; Object tilemap state
dl $7EF054 : db $02 : dw $402F ; Room $002A: Palace of Darkness (Big Hub Room) (..d........c.qqq)
dl $7E0540 : db $02 : dw $0C50 ; Object tilemap state
dl $7E0544 : db $02 : dw $1328 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E0550 : db $02 : dw $0000 ; Object tilemap state
.after
sram_nmg_pod_before_sexy_statue:
dl $7E0542 : db $02 : dw $0B20 ; Object tilemap state
dl $7E0546 : db $02 : dw $0C20 ; Object tilemap state
dl $7EF34B : db $01 : db $01 ; Hammer
dl $7EF36F : db $01 : db $01 ; Keys
dl $7EF034 : db $02 : dw $301A ; Room $001A: Palace of Darkness (Big Chest Room) (...db.......qq.q)
dl $7EF36D : db $01 : db $28 ; Health (actual)
dl $7EF032 : db $02 : dw $802F ; Room $0019: Palace of Darkness (Dark Maze) (.d.........c.qqq)
dl $7EF382 : db $01 : db $01 ; Key for dungeon $06
dl $7E0540 : db $02 : dw $0B1C ; Object tilemap state
dl $7E0544 : db $02 : dw $0C1C ; Object tilemap state
dl $7E0548 : db $02 : dw $4E64 ; Object tilemap state
dl $7E0FCD : db $01 : db $01 ; Prize pack index
dl $7E0B37 : db $01 : db $01 ; Arc variable
dl $7E0B3F : db $01 : db $01 ; Arc variable
.after
sram_nmg_pod_sexy_statue_room:
dl $7E0542 : db $02 : dw $1350 ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7EC74A : db $02 : dw $28BA ; Selected menu gfx, row 1
dl $7EF377 : db $01 : db $06 ; Arrows
dl $7EC78A : db $02 : dw $2849 ; Selected menu gfx, row 2
dl $7E0303 : db $01 : db $03 ; Selected menu item
dl $7E0540 : db $02 : dw $0C50 ; Object tilemap state
dl $7E0544 : db $02 : dw $1328 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E0202 : db $01 : db $01 ; Selected menu item
dl $7EC74C : db $02 : dw $284A ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $28CB ; Selected menu gfx, row 2
dl $7EC172 : db $01 : db $01 ; Crystal switch state
dl $7E002F : db $01 : db $06 ; Link's direction
.after
sram_nmg_pod_mimics:
dl $7E0542 : db $02 : dw $0610 ; Object tilemap state
dl $7E0546 : db $02 : dw $052C ; Object tilemap state
dl $7E054A : db $02 : dw $072C ; Object tilemap state
dl $7E054E : db $02 : dw $1692 ; Object tilemap state
dl $7E0552 : db $02 : dw $16AA ; Object tilemap state
dl $7E0556 : db $02 : dw $151E ; Object tilemap state
dl $7E0642 : db $01 : db $01 ; Room puzzle state (?)
dl $7EF343 : db $01 : db $06 ; Bombs
dl $7EF36D : db $01 : db $30 ; Health (actual)
dl $7EF056 : db $02 : dw $000A ; Room $002B: Palace of Darkness (Map Chest / Fairy Room) (.............q.q)
dl $7E0468 : db $02 : dw $0000 ; Trap door state
dl $7E0540 : db $02 : dw $0510 ; Object tilemap state
dl $7E0544 : db $02 : dw $0710 ; Object tilemap state
dl $7E0548 : db $02 : dw $062C ; Object tilemap state
dl $7E054C : db $02 : dw $1592 ; Object tilemap state
dl $7E0550 : db $02 : dw $15AA ; Object tilemap state
dl $7E0554 : db $02 : dw $151A ; Object tilemap state
dl $7E0558 : db $02 : dw $1522 ; Object tilemap state
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_pod_statue:
dl $7E0542 : db $02 : dw $1728 ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7E0552 : db $02 : dw $0000 ; Object tilemap state
dl $7E0556 : db $02 : dw $0000 ; Object tilemap state
dl $7E0642 : db $01 : db $00 ; Room puzzle state (?)
dl $7EF377 : db $01 : db $07 ; Arrows
dl $7EF036 : db $02 : dw $0002 ; Room $001B: Palace of Darkness (Mimics / Moving Wall Room) (...............q)
dl $7E0540 : db $02 : dw $1714 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E0550 : db $02 : dw $0000 ; Object tilemap state
dl $7E0554 : db $02 : dw $0000 ; Object tilemap state
dl $7E0558 : db $02 : dw $0000 ; Object tilemap state
dl $7FDFB6 : db $02 : dw $0038 ; Room $1B persistent: Palace of Darkness (Mimics / Moving Wall Room)
dl $7E0FCB : db $01 : db $02 ; Prize pack index
.after
sram_nmg_pod_basement:
dl $7EC74A : db $02 : dw $20B6 ; Selected menu gfx, row 1
dl $7EF377 : db $01 : db $06 ; Arrows
dl $7EC78A : db $02 : dw $20C6 ; Selected menu gfx, row 2
dl $7EF036 : db $02 : dw $008E ; Room $001B: Palace of Darkness (Mimics / Moving Wall Room) (.........c...qqq)
dl $7E0303 : db $01 : db $04 ; Selected menu item
dl $7E0468 : db $01 : db $01 ; Trap door state
dl $7E0202 : db $01 : db $0C ; Selected menu item
dl $7EC74C : db $02 : dw $20B7 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $20C7 ; Selected menu gfx, row 2
dl $7EC172 : db $01 : db $00 ; Crystal switch state
dl $7E002F : db $01 : db $02 ; Link's direction
.after
sram_nmg_pod_turtle_room:
dl $7E0542 : db $02 : dw $0966 ; Object tilemap state
dl $7E0546 : db $02 : dw $03CA ; Object tilemap state
dl $7E054A : db $02 : dw $076A ; Object tilemap state
dl $7E054E : db $02 : dw $095E ; Object tilemap state
dl $7E0552 : db $02 : dw $085E ; Object tilemap state
dl $7E0556 : db $02 : dw $1814 ; Object tilemap state
dl $7E055A : db $02 : dw $1854 ; Object tilemap state
dl $7EF36F : db $02 : dw $0000 ; Keys
dl $7EF016 : db $02 : dw $200C ; Room $000B: Palace of Darkness (Turtle Room) (...d.........qq.)
dl $7E0540 : db $02 : dw $0962 ; Object tilemap state
dl $7E0544 : db $02 : dw $096A ; Object tilemap state
dl $7E0548 : db $02 : dw $0CCA ; Object tilemap state
dl $7E054C : db $02 : dw $086A ; Object tilemap state
dl $7E0550 : db $02 : dw $075E ; Object tilemap state
dl $7E0554 : db $02 : dw $5760 ; Object tilemap state
dl $7E0558 : db $02 : dw $1828 ; Object tilemap state
dl $7E055C : db $02 : dw $1864 ; Object tilemap state
dl $7EC172 : db $01 : db $01 ; Crystal switch state
.after
sram_nmg_pod_helma:
dl $7E0542 : db $02 : dw $03F2 ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7E0552 : db $02 : dw $0000 ; Object tilemap state
dl $7E0556 : db $02 : dw $0000 ; Object tilemap state
dl $7E055A : db $02 : dw $0000 ; Object tilemap state
dl $7E0FC8 : db $01 : db $01 ; Prize pack index
dl $7EF0D4 : db $02 : dw $8005 ; Room $006A: Palace of Darkness (Rupee Room) (.d............q.)
dl $7EF016 : db $02 : dw $200F ; Room $000B: Palace of Darkness (Turtle Room) (...d.........qqq)
dl $7FE054 : db $02 : dw $0010 ; Room $6A persistent: Palace of Darkness (Rupee Room)
dl $7E0540 : db $02 : dw $03CA ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E0550 : db $02 : dw $0000 ; Object tilemap state
dl $7E0554 : db $02 : dw $0000 ; Object tilemap state
dl $7E0558 : db $02 : dw $0000 ; Object tilemap state
dl $7E055C : db $02 : dw $0000 ; Object tilemap state
dl $7FDF96 : db $02 : dw $03F0 ; Room $B persistent: Palace of Darkness (Turtle Room)
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_thieves_outside_pod:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7E0ABD : db $01 : db $00 ; Palette swap
dl $7E0B31 : db $01 : db $38 ; Arc variable
dl $7EF36F : db $01 : db $FF ; Keys
dl $7EF3C7 : db $01 : db $07 ; Map Phase
dl $7EF3EF : db $02 : dw $0000 ; Deaths
dl $7EF0B4 : db $02 : dw $0801 ; Room $005A: Palace of Darkness (Helmasaur King[Boss]) (.....k..........)
dl $7E0B32 : db $01 : db $00 ; Arc variable
dl $7EF36C : db $01 : db $38 ; Health (goal)
dl $7EF36D : db $01 : db $38 ; Health (actual)
dl $7EF37A : db $01 : db $02 ; Crystals
dl $7EF382 : db $01 : db $00 ; Key for dungeon $06
dl $7FE054 : db $01 : db $00 ; Overworld $6A persistent: Haunted Grove
dl $7FDFCD : db $01 : db $23 ; Overworld $26 persistent: UNKNOWN
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E02A1 : db $01 : db $17 ; Arc variable
dl $7E0B33 : db $01 : db $0F ; Arc variable
dl $7FDF96 : db $01 : db $00 ; Overworld $B persistent: UNKNOWN
dl $7FDFB6 : db $01 : db $00 ; Overworld $1B persistent: Hyrule Castle
dl $7E0B08 : db $01 : db $08 ; Arc variable
dl $7E0B0C : db $01 : db $8E ; Arc variable
dl $7E0B30 : db $01 : db $0E ; Arc variable
dl $7E002F : db $01 : db $02 ; Link's direction
.after
sram_nmg_thieves_ow_hammerdash:
dl $7FE00C : db $01 : db $DB ; Overworld $46 persistent: UNKNOWN
dl $7FE038 : db $01 : db $42 ; Overworld $5C persistent: UNKNOWN
dl $7FE110 : db $01 : db $7A ; Overworld $C8 persistent: UNKNOWN
dl $7FE160 : db $01 : db $42 ; Overworld $F0 persistent: UNKNOWN
dl $7FDFCD : db $01 : db $00 ; Overworld $26 persistent: UNKNOWN
dl $7FE124 : db $01 : db $AD ; Overworld $D2 persistent: UNKNOWN
dl $7EC172 : db $02 : dw $0004 ; Crystal switch state
dl $7E002F : db $01 : db $04 ; Link's direction
.after
sram_nmg_thieves_grove:
dl $7FE13B : db $01 : db $26 ; Overworld $DD persistent: UNKNOWN
dl $7FE163 : db $01 : db $42 ; Overworld $F1 persistent: UNKNOWN
dl $7FE00C : db $01 : db $00 ; Overworld $46 persistent: UNKNOWN
dl $7FE038 : db $01 : db $00 ; Overworld $5C persistent: UNKNOWN
dl $7FE110 : db $01 : db $00 ; Overworld $C8 persistent: UNKNOWN
dl $7FE150 : db $01 : db $42 ; Overworld $E8 persistent: UNKNOWN
dl $7FE160 : db $01 : db $00 ; Overworld $F0 persistent: UNKNOWN
dl $7FE124 : db $01 : db $00 ; Overworld $D2 persistent: UNKNOWN
dl $7EC172 : db $02 : dw $0020 ; Crystal switch state
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_thieves_usain_bolt:
dl $7EC74A : db $02 : dw $2CD4 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $2CE4 ; Selected menu gfx, row 2
dl $7EF34C : db $01 : db $02 ; Flute
dl $7E1ABF : db $01 : db $9D ; Warp Vortex Coordinate
dl $7E1ACF : db $01 : db $04 ; Warp Vortex Coordinate
dl $7E1ADF : db $01 : db $9C ; Warp Vortex Coordinate
dl $7E1AEF : db $01 : db $0A ; Warp Vortex Coordinate
dl $7EF3CA : db $01 : db $00 ; LW/DW
dl $7FE13B : db $01 : db $00 ; Overworld $DD persistent: UNKNOWN
dl $7FE163 : db $01 : db $00 ; Overworld $F1 persistent: UNKNOWN
dl $7E0303 : db $01 : db $08 ; Selected menu item
dl $7FE07C : db $01 : db $A0 ; Overworld $7E persistent: UNKNOWN
dl $7FE150 : db $01 : db $00 ; Overworld $E8 persistent: UNKNOWN
dl $7FE019 : db $01 : db $1E ; Overworld $4C persistent: UNKNOWN
dl $7FE06D : db $01 : db $A1 ; Overworld $76 persistent: UNKNOWN
dl $7FE161 : db $01 : db $A1 ; Overworld $F0 persistent: UNKNOWN
dl $7E0202 : db $01 : db $0D ; Selected menu item
dl $7EC74C : db $02 : dw $2CD5 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $2CE5 ; Selected menu gfx, row 2
dl $7FE04E : db $01 : db $9F ; Overworld $67 persistent: UNKNOWN
dl $7FE06E : db $01 : db $2F ; Overworld $77 persistent: Black Ice Cave
dl $7EC172 : db $02 : dw $0900 ; Crystal switch state
.after
sram_nmg_thieves_after_activating_flute:
dl $7EF298 : db $01 : db $20 ; Overworld $18: Unknown (...?....)
dl $7EF34C : db $01 : db $03 ; Flute
dl $7FE07C : db $01 : db $00 ; Overworld $7E persistent: UNKNOWN
dl $7FE019 : db $01 : db $00 ; Overworld $4C persistent: UNKNOWN
dl $7FE06D : db $01 : db $00 ; Overworld $76 persistent: UNKNOWN
dl $7FE161 : db $01 : db $00 ; Overworld $F0 persistent: UNKNOWN
dl $7E02A1 : db $01 : db $23 ; Arc variable
dl $7FE04E : db $01 : db $00 ; Overworld $67 persistent: UNKNOWN
dl $7FE06E : db $01 : db $00 ; Overworld $77 persistent: Black Ice Cave
dl $7FE102 : db $01 : db $42 ; Overworld $C1 persistent: UNKNOWN
dl $7EC172 : db $02 : dw $0920 ; Crystal switch state
dl $7E02A2 : db $01 : db $FD ; Arc variable
dl $7E002F : db $01 : db $04 ; Link's direction
dl $7FE128 : db $01 : db $DC ; Overworld $D4 persistent: UNKNOWN
.after
sram_nmg_thieves_darkworld:
dl $7EC74A : db $02 : dw $20B6 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $20C6 ; Selected menu gfx, row 2
dl $7EF3CA : db $01 : db $40 ; LW/DW
dl $7E0303 : db $01 : db $04 ; Selected menu item
dl $7FE068 : db $01 : db $26 ; Overworld $74 persistent: Dark Swamp North
dl $7FE045 : db $01 : db $13 ; Overworld $62 persistent: Locked Chest House
dl $7E0202 : db $01 : db $0C ; Selected menu item
dl $7EC74C : db $02 : dw $20B7 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $20C7 ; Selected menu gfx, row 2
dl $7FE102 : db $01 : db $00 ; Overworld $C1 persistent: UNKNOWN
dl $7EC172 : db $02 : dw $001E ; Crystal switch state
dl $7FE128 : db $01 : db $00 ; Overworld $D4 persistent: UNKNOWN
dl $7FE136 : db $01 : db $1A ; Overworld $DB persistent: UNKNOWN
.after
sram_nmg_thieves_entrance:
dl $7EF2D8 : db $01 : db $20 ; Overworld $58: Unknown (...?....)
dl $7EF360 : db $02 : dw $000A ; Rupees (goal)
dl $7EF362 : db $02 : dw $000A ; Rupees (actual)
dl $7FE068 : db $01 : db $00 ; Overworld $74 persistent: Dark Swamp North
dl $7FE045 : db $01 : db $00 ; Overworld $62 persistent: Locked Chest House
dl $7FE0E3 : db $01 : db $13 ; Overworld $B1 persistent: UNKNOWN
dl $7E002F : db $01 : db $00 ; Link's direction
dl $7FE136 : db $01 : db $00 ; Overworld $DB persistent: UNKNOWN
dl $7FE148 : db $01 : db $26 ; Overworld $E4 persistent: UNKNOWN
.after
sram_nmg_thieves_after_big_key:
dl $7E0542 : db $02 : dw $0470 ; Object tilemap state
dl $7E0546 : db $02 : dw $333E ; Object tilemap state
dl $7EF36F : db $01 : db $00 ; Keys
dl $7EF198 : db $02 : dw $000F ; Room $00CC: Thieves Town (North East Entrance Room) (.............qqq)
dl $7EF1B8 : db $02 : dw $000F ; Room $00DC: Thieves Town (South East Entrance Room) (.............qqq)
dl $7EF196 : db $02 : dw $000F ; Room $00CB: Thieves Town (North West Entrance Room) (.............qqq)
dl $7EF1B6 : db $02 : dw $002F ; Room $00DB: Thieves Town (Main (South West) Entrance Room) (...........c.qqq)
dl $7EF366 : db $02 : dw $7230 ; BigKey1
dl $7E0540 : db $02 : dw $040C ; Object tilemap state
dl $7E0544 : db $02 : dw $1058 ; Object tilemap state
dl $7EC172 : db $02 : dw $0000 ; Crystal switch state
dl $7FE0E3 : db $01 : db $00 ; Room $B1 persistent: Misery Mire (Hourglass Room)
dl $7E002F : db $01 : db $06 ; Link's direction
dl $7E010E : db $01 : db $34 ; Dungeon entrance index
dl $7FE148 : db $01 : db $00 ; Room $E4 persistent: Cave (Lost Old Man Final Cave)
.after
sram_nmg_thieves_blind_hallway:
dl $7E0542 : db $02 : dw $0424 ; Object tilemap state
dl $7E0546 : db $02 : dw $1C70 ; Object tilemap state
dl $7EF198 : db $02 : dw $800F ; Room $00CC: Thieves Town (North East Entrance Room) (.d...........qqq)
dl $7E0540 : db $02 : dw $0470 ; Object tilemap state
dl $7E0544 : db $02 : dw $1C24 ; Object tilemap state
dl $7E002F : db $01 : db $00 ; Link's direction
dl $7FE138 : db $02 : dw $0080 ; Room $DC persistent: Thieves Town (South East Entrance Room)
.after
sram_nmg_thieves_conveyor_gibos:
dl $7E0542 : db $02 : dw $03B2 ; Object tilemap state
dl $7E0546 : db $02 : dw $0CB2 ; Object tilemap state
dl $7E054A : db $02 : dw $1430 ; Object tilemap state
dl $7E054E : db $02 : dw $1C30 ; Object tilemap state
dl $7E0552 : db $02 : dw $1520 ; Object tilemap state
dl $7E0556 : db $02 : dw $1B20 ; Object tilemap state
dl $7E055A : db $02 : dw $0466 ; Object tilemap state
dl $7EF178 : db $02 : dw $C407 ; Room $00BC: Thieves Town (Conveyor Toilet) (.dd...K.......qq)
dl $7FE0F8 : db $02 : dw $0340 ; Room $BC persistent: Thieves Town (Conveyor Toilet)
dl $7E0540 : db $02 : dw $038A ; Object tilemap state
dl $7E0544 : db $02 : dw $0C8A ; Object tilemap state
dl $7E0548 : db $02 : dw $140C ; Object tilemap state
dl $7E054C : db $02 : dw $1C0C ; Object tilemap state
dl $7E0550 : db $02 : dw $151C ; Object tilemap state
dl $7E0554 : db $02 : dw $1B1C ; Object tilemap state
dl $7E0558 : db $02 : dw $0456 ; Object tilemap state
dl $7E002F : db $01 : db $04 ; Link's direction
.after
sram_nmg_thieves_hellway:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7E0552 : db $02 : dw $0000 ; Object tilemap state
dl $7E0556 : db $02 : dw $0000 ; Object tilemap state
dl $7E055A : db $02 : dw $0000 ; Object tilemap state
dl $7E0ABD : db $01 : db $01 ; Palette swap
dl $7EC74A : db $02 : dw $2CB2 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $2CC2 ; Selected menu gfx, row 2
dl $7EF176 : db $02 : dw $0001 ; Room $00BB: Thieves Town (Hellway) (................)
dl $7E0303 : db $01 : db $01 ; Selected menu item
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E0550 : db $02 : dw $0000 ; Object tilemap state
dl $7E0554 : db $02 : dw $0000 ; Object tilemap state
dl $7E0558 : db $02 : dw $0000 ; Object tilemap state
dl $7E0202 : db $01 : db $04 ; Selected menu item
dl $7EC74C : db $02 : dw $2CB3 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $6CC2 ; Selected menu gfx, row 2
.after
sram_nmg_thieves_bombable_floor:
dl $7E0542 : db $02 : dw $1560 ; Object tilemap state
dl $7E0546 : db $02 : dw $1660 ; Object tilemap state
dl $7E054A : db $02 : dw $1C68 ; Object tilemap state
dl $7E0ABD : db $01 : db $00 ; Palette swap
dl $7EF0C8 : db $02 : dw $0003 ; Room $0064: Thieves Town (West Attic Room) (...............q)
dl $7EF0CA : db $02 : dw $0002 ; Room $0065: Thieves Town (East Attic Room) (...............q)
dl $7EF156 : db $02 : dw $8402 ; Room $00AB: Thieves Town (Moving Spikes / Key Pot Room) (.d....K........q)
dl $7EF176 : db $02 : dw $000B ; Room $00BB: Thieves Town (Hellway) (.............q.q)
dl $7FE0F8 : db $02 : dw $0000 ; Room $BC persistent: Thieves Town (Conveyor Toilet)
dl $7E0540 : db $02 : dw $155C ; Object tilemap state
dl $7E0544 : db $02 : dw $165C ; Object tilemap state
dl $7E0548 : db $02 : dw $1C64 ; Object tilemap state
dl $7E0B33 : db $01 : db $00 ; Arc variable
dl $7E0B37 : db $01 : db $00 ; Arc variable
dl $7E0B3F : db $01 : db $00 ; Arc variable
dl $7EC172 : db $01 : db $01 ; Crystal switch state
dl $7E0B0C : db $01 : db $B0 ; Arc variable
dl $7E002F : db $01 : db $06 ; Link's direction
dl $7FE138 : db $02 : dw $0000 ; Room $DC persistent: Thieves Town (South East Entrance Room)
.after
sram_nmg_thieves_backtracking_1:
dl $7E0542 : db $02 : dw $1610 ; Object tilemap state
dl $7E0546 : db $02 : dw $1C24 ; Object tilemap state
dl $7E054A : db $02 : dw $1C2C ; Object tilemap state
dl $7EF343 : db $01 : db $05 ; Bombs
dl $7EF0CA : db $02 : dw $0103 ; Room $0065: Thieves Town (East Attic Room) (........c......q)
dl $7E029F : db $01 : db $01 ; Arc variable
dl $7E0540 : db $02 : dw $160C ; Object tilemap state
dl $7E0544 : db $02 : dw $1614 ; Object tilemap state
dl $7E0548 : db $02 : dw $1C28 ; Object tilemap state
dl $7E054C : db $02 : dw $1C30 ; Object tilemap state
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_thieves_basement:
dl $7E0542 : db $02 : dw $03B2 ; Object tilemap state
dl $7E0546 : db $02 : dw $0CB2 ; Object tilemap state
dl $7E054A : db $02 : dw $1430 ; Object tilemap state
dl $7E054E : db $02 : dw $1C30 ; Object tilemap state
dl $7E0552 : db $02 : dw $1520 ; Object tilemap state
dl $7E0556 : db $02 : dw $1B20 ; Object tilemap state
dl $7E055A : db $02 : dw $0466 ; Object tilemap state
dl $7EF178 : db $02 : dw $C40F ; Room $00BC: Thieves Town (Conveyor Toilet) (.dd...K......qqq)
dl $7EF176 : db $02 : dw $000F ; Room $00BB: Thieves Town (Hellway) (.............qqq)
dl $7E0540 : db $02 : dw $038A ; Object tilemap state
dl $7E0544 : db $02 : dw $0C8A ; Object tilemap state
dl $7E0548 : db $02 : dw $140C ; Object tilemap state
dl $7E054C : db $02 : dw $1C0C ; Object tilemap state
dl $7E0550 : db $02 : dw $151C ; Object tilemap state
dl $7E0554 : db $02 : dw $1B1C ; Object tilemap state
dl $7E0558 : db $02 : dw $0456 ; Object tilemap state
.after
sram_nmg_thieves_prison:
dl $7E0542 : db $02 : dw $07A0 ; Object tilemap state
dl $7E0546 : db $02 : dw $08A0 ; Object tilemap state
dl $7E054A : db $02 : dw $0C30 ; Object tilemap state
dl $7E054E : db $02 : dw $0B6C ; Object tilemap state
dl $7E0552 : db $02 : dw $10EC ; Object tilemap state
dl $7E0556 : db $02 : dw $0000 ; Object tilemap state
dl $7E055A : db $02 : dw $0000 ; Object tilemap state
dl $7EC74A : db $02 : dw $20B6 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $20C6 ; Selected menu gfx, row 2
dl $7EF08A : db $02 : dw $000A ; Room $0045: Thieves Town (Jail Cells Room) (.............q.q)
dl $7E0303 : db $01 : db $04 ; Selected menu item
dl $7E0540 : db $02 : dw $079C ; Object tilemap state
dl $7E0544 : db $02 : dw $089C ; Object tilemap state
dl $7E0548 : db $02 : dw $040C ; Object tilemap state
dl $7E054C : db $02 : dw $0B5C ; Object tilemap state
dl $7E0550 : db $02 : dw $10DC ; Object tilemap state
dl $7E0554 : db $02 : dw $0000 ; Object tilemap state
dl $7E0558 : db $02 : dw $0000 ; Object tilemap state
dl $7E0202 : db $01 : db $0C ; Selected menu item
dl $7EC74C : db $02 : dw $20B7 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $20C7 ; Selected menu gfx, row 2
dl $7FE00A : db $02 : dw $0002 ; Room $45 persistent: Thieves Town (Jail Cells Room)
dl $7E002F : db $01 : db $06 ; Link's direction
.after
sram_nmg_thieves_after_gloves:
dl $7E0542 : db $02 : dw $07D0 ; Object tilemap state
dl $7E0546 : db $02 : dw $08D0 ; Object tilemap state
dl $7E054A : db $02 : dw $1624 ; Object tilemap state
dl $7E054E : db $02 : dw $1828 ; Object tilemap state
dl $7E0552 : db $02 : dw $1A18 ; Object tilemap state
dl $7E0556 : db $02 : dw $1A20 ; Object tilemap state
dl $7EF088 : db $02 : dw $4017 ; Room $0044: Thieves Town (Big Chest Room) (..d.........q.qq)
dl $7EF354 : db $01 : db $02 ; Gloves
dl $7EF3CC : db $01 : db $06 ; Tagalong
dl $7EF08A : db $02 : dw $00FF ; Room $0045: Thieves Town (Jail Cells Room) (.........cccqqqq)
dl $7E0540 : db $02 : dw $07CC ; Object tilemap state
dl $7E0544 : db $02 : dw $08CC ; Object tilemap state
dl $7E0548 : db $02 : dw $1618 ; Object tilemap state
dl $7E054C : db $02 : dw $1728 ; Object tilemap state
dl $7E0550 : db $02 : dw $1928 ; Object tilemap state
dl $7E0554 : db $02 : dw $1A1C ; Object tilemap state
dl $7E0558 : db $02 : dw $1A24 ; Object tilemap state
dl $7E0B37 : db $01 : db $0E ; Arc variable
dl $7E0B3F : db $01 : db $01 ; Arc variable
dl $7FE00A : db $02 : dw $0162 ; Room $45 persistent: Thieves Town (Jail Cells Room)
.after
sram_nmg_thieves_backtracking_2:
dl $7E0B37 : db $01 : db $0C ; Arc variable
.after
sram_nmg_thieves_pot_hammerdash:
dl $7E0542 : db $02 : dw $07A0 ; Object tilemap state
dl $7E0546 : db $02 : dw $08A0 ; Object tilemap state
dl $7E054A : db $02 : dw $0C30 ; Object tilemap state
dl $7E054E : db $02 : dw $0B6C ; Object tilemap state
dl $7E0552 : db $02 : dw $10EC ; Object tilemap state
dl $7E0556 : db $02 : dw $0000 ; Object tilemap state
dl $7EF377 : db $01 : db $0B ; Arrows
dl $7FE008 : db $02 : dw $0080 ; Room $44 persistent: Thieves Town (Big Chest Room)
dl $7E0540 : db $02 : dw $079C ; Object tilemap state
dl $7E0544 : db $02 : dw $089C ; Object tilemap state
dl $7E0548 : db $02 : dw $040C ; Object tilemap state
dl $7E054C : db $02 : dw $0B5C ; Object tilemap state
dl $7E0550 : db $02 : dw $10DC ; Object tilemap state
dl $7E0554 : db $02 : dw $0000 ; Object tilemap state
dl $7E0558 : db $02 : dw $0000 ; Object tilemap state
dl $7E0B37 : db $01 : db $07 ; Arc variable
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_thieves_blind:
dl $7E0542 : db $02 : dw $03B2 ; Object tilemap state
dl $7E0546 : db $02 : dw $0CB2 ; Object tilemap state
dl $7E054A : db $02 : dw $1430 ; Object tilemap state
dl $7E054E : db $02 : dw $1C30 ; Object tilemap state
dl $7E0552 : db $02 : dw $1520 ; Object tilemap state
dl $7E0556 : db $02 : dw $1B20 ; Object tilemap state
dl $7E055A : db $02 : dw $0466 ; Object tilemap state
dl $7FE0F8 : db $02 : dw $0002 ; Room $BC persistent: Thieves Town (Conveyor Toilet)
dl $7E0540 : db $02 : dw $038A ; Object tilemap state
dl $7E0544 : db $02 : dw $0C8A ; Object tilemap state
dl $7E0548 : db $02 : dw $140C ; Object tilemap state
dl $7E054C : db $02 : dw $1C0C ; Object tilemap state
dl $7E0550 : db $02 : dw $151C ; Object tilemap state
dl $7E0554 : db $02 : dw $1B1C ; Object tilemap state
dl $7E0558 : db $02 : dw $0456 ; Object tilemap state
.after
sram_nmg_sw_outside_thieves:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7E0552 : db $02 : dw $0000 ; Object tilemap state
dl $7E0556 : db $02 : dw $0000 ; Object tilemap state
dl $7E055A : db $02 : dw $0000 ; Object tilemap state
dl $7EF36F : db $01 : db $FF ; Keys
dl $7EF158 : db $02 : dw $0A01 ; Room $00AC: Thieves Town (Blind The Thief[Boss]) (.....k.R........)
dl $7EF36C : db $01 : db $40 ; Health (goal)
dl $7EF3CC : db $01 : db $00 ; Tagalong
dl $7EF36D : db $01 : db $40 ; Health (actual)
dl $7EF3F9 : db $02 : dw $0000 ; Deaths
dl $7EF37A : db $01 : db $22 ; Crystals
dl $7FE008 : db $01 : db $00 ; Overworld $44 persistent: UNKNOWN
dl $7FE0F8 : db $01 : db $00 ; Overworld $BC persistent: UNKNOWN
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E0550 : db $02 : dw $0000 ; Object tilemap state
dl $7E0554 : db $02 : dw $0000 ; Object tilemap state
dl $7E0558 : db $02 : dw $0000 ; Object tilemap state
dl $7E02A1 : db $01 : db $17 ; Arc variable
dl $7EF387 : db $01 : db $00 ; Key for dungeon $0B
dl $7FE00A : db $01 : db $00 ; Overworld $45 persistent: Death Mountain East
dl $7E02A2 : db $01 : db $00 ; Arc variable
dl $7FE0E3 : db $01 : db $13 ; Overworld $B1 persistent: UNKNOWN
dl $7E002F : db $01 : db $02 ; Link's direction
dl $7FE148 : db $01 : db $26 ; Overworld $E4 persistent: UNKNOWN
.after
sram_nmg_sw_cursed_dwarf:
dl $7EF343 : db $01 : db $04 ; Bombs
dl $7EC74A : db $02 : dw $2CB2 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $2CC2 ; Selected menu gfx, row 2
dl $7EF20C : db $02 : dw $F012 ; Room $0106: Unknown (.dddb.......q..q)
dl $7EF2D8 : db $01 : db $22 ; Overworld $58: Unknown (...?...?)
dl $7EF360 : db $02 : dw $0136 ; Rupees (goal)
dl $7EF362 : db $02 : dw $0136 ; Rupees (actual)
dl $7E029F : db $01 : db $18 ; Arc variable
dl $7E0303 : db $01 : db $01 ; Selected menu item
dl $7E0540 : db $02 : dw $1B6C ; Object tilemap state
dl $7E0202 : db $01 : db $04 ; Selected menu item
dl $7EC74C : db $02 : dw $2CB3 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $6CC2 ; Selected menu gfx, row 2
dl $7EC172 : db $02 : dw $0000 ; Crystal switch state
dl $7E002F : db $01 : db $06 ; Link's direction
dl $7E010E : db $01 : db $48 ; Dungeon entrance index
.after
sram_nmg_sw_getting_tempered:
dl $7EC74A : db $02 : dw $2C62 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $2C72 ; Selected menu gfx, row 2
dl $7EF3CC : db $01 : db $07 ; Tagalong
dl $7E0303 : db $01 : db $14 ; Selected menu item
dl $7E0202 : db $01 : db $14 ; Selected menu item
dl $7EC74C : db $02 : dw $2C63 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $2C73 ; Selected menu gfx, row 2
dl $7EC172 : db $02 : dw $0018 ; Crystal switch state
.after
sram_nmg_sw_fence_dash:
dl $7EF360 : db $02 : dw $012C ; Rupees (goal)
dl $7EF3CC : db $01 : db $00 ; Tagalong
dl $7E1ABF : db $01 : db $D8 ; Warp Vortex Coordinate
dl $7E1ADF : db $01 : db $78 ; Warp Vortex Coordinate
dl $7E1AEF : db $01 : db $08 ; Warp Vortex Coordinate
dl $7EF359 : db $01 : db $03 ; Sword
dl $7EF3C9 : db $01 : db $20 ; Game Phase 3
dl $7EF242 : db $02 : dw $0002 ; Room $0121: Unknown (...............q)
dl $7EF362 : db $02 : dw $012C ; Rupees (actual)
dl $7FDFDD : db $01 : db $B5 ; Overworld $2E persistent: South of Eastern Palace
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7EC172 : db $02 : dw $0000 ; Crystal switch state
dl $7FE0E3 : db $01 : db $00 ; Overworld $B1 persistent: UNKNOWN
dl $7E002F : db $01 : db $04 ; Link's direction
dl $7E010E : db $01 : db $64 ; Dungeon entrance index
dl $7FE148 : db $01 : db $00 ; Overworld $E4 persistent: UNKNOWN
.after
sram_nmg_sw_dash_to_sw:
dl $7EF238 : db $02 : dw $0011 ; Room $011C: Unknown (............q...)
dl $7EF360 : db $02 : dw $0258 ; Rupees (goal)
dl $7EF362 : db $02 : dw $0258 ; Rupees (actual)
dl $7FDFDD : db $01 : db $00 ; Overworld $2E persistent: South of Eastern Palace
dl $7FE0E3 : db $01 : db $13 ; Overworld $B1 persistent: UNKNOWN
dl $7E002F : db $01 : db $00 ; Link's direction
dl $7E010E : db $01 : db $54 ; Dungeon entrance index
dl $7FE148 : db $01 : db $26 ; Overworld $E4 persistent: UNKNOWN
.after
sram_nmg_sw_mummy_room:
dl $7FE0FA : db $01 : db $23 ; Overworld $BD persistent: UNKNOWN
dl $7EC172 : db $02 : dw $091A ; Crystal switch state
dl $7FE0E3 : db $01 : db $00 ; Overworld $B1 persistent: UNKNOWN
dl $7E002F : db $01 : db $04 ; Link's direction
dl $7FE148 : db $01 : db $00 ; Overworld $E4 persistent: UNKNOWN
.after
sram_nmg_sw_bomb_jump:
dl $7E0542 : db $02 : dw $0420 ; Object tilemap state
dl $7E0546 : db $02 : dw $161E ; Object tilemap state
dl $7E054A : db $02 : dw $1B4C ; Object tilemap state
dl $7E054E : db $02 : dw $175C ; Object tilemap state
dl $7EF377 : db $01 : db $10 ; Arrows
dl $7E0FCC : db $01 : db $04 ; Prize pack index
dl $7EF0AE : db $02 : dw $001A ; Room $0057: Skull Woods (Big Key Room) (............qq.q)
dl $7EF366 : db $02 : dw $72B0 ; BigKey1
dl $7E0540 : db $02 : dw $075C ; Object tilemap state
dl $7E0544 : db $02 : dw $140C ; Object tilemap state
dl $7E0548 : db $02 : dw $1430 ; Object tilemap state
dl $7E054C : db $02 : dw $1954 ; Object tilemap state
dl $7E0550 : db $02 : dw $1764 ; Object tilemap state
dl $7E0B37 : db $01 : db $FB ; Arc variable
dl $7E0B3F : db $01 : db $00 ; Arc variable
dl $7EC172 : db $02 : dw $0000 ; Crystal switch state
dl $7E002F : db $01 : db $00 ; Link's direction
dl $7E010E : db $01 : db $29 ; Dungeon entrance index
.after
sram_nmg_sw_key_pot:
dl $7E0542 : db $02 : dw $140C ; Object tilemap state
dl $7E0546 : db $02 : dw $0A5C ; Object tilemap state
dl $7E054A : db $02 : dw $080C ; Object tilemap state
dl $7E054E : db $02 : dw $0614 ; Object tilemap state
dl $7E0552 : db $02 : dw $0724 ; Object tilemap state
dl $7E0556 : db $02 : dw $0918 ; Object tilemap state
dl $7E055A : db $02 : dw $0924 ; Object tilemap state
dl $7EF343 : db $01 : db $03 ; Bombs
dl $7EC74A : db $02 : dw $2CB2 ; Selected menu gfx, row 1
dl $7EF36F : db $01 : db $00 ; Keys
dl $7EC78A : db $02 : dw $2CC2 ; Selected menu gfx, row 2
dl $7EF0AC : db $02 : dw $0005 ; Room $0056: Skull Woods (Key Pot / Trap Room) (..............q.)
dl $7EF0B0 : db $02 : dw $0012 ; Room $0058: Skull Woods (Big Chest Room) (............q..q)
dl $7E0B36 : db $01 : db $D9 ; Arc variable
dl $7EF345 : db $01 : db $01 ; Fire Rod
dl $7EF36D : db $01 : db $30 ; Health (actual)
dl $7E029F : db $01 : db $00 ; Arc variable
dl $7E0303 : db $01 : db $01 ; Selected menu item
dl $7E0540 : db $02 : dw $1430 ; Object tilemap state
dl $7E0544 : db $02 : dw $0664 ; Object tilemap state
dl $7E0548 : db $02 : dw $0A60 ; Object tilemap state
dl $7E054C : db $02 : dw $0830 ; Object tilemap state
dl $7E0550 : db $02 : dw $0718 ; Object tilemap state
dl $7E0554 : db $02 : dw $0628 ; Object tilemap state
dl $7E0558 : db $02 : dw $0A14 ; Object tilemap state
dl $7E055C : db $02 : dw $0A28 ; Object tilemap state
dl $7E0202 : db $01 : db $04 ; Selected menu item
dl $7E0B37 : db $01 : db $A0 ; Arc variable
dl $7EC74C : db $02 : dw $2CB3 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $6CC2 ; Selected menu gfx, row 2
dl $7FE0FA : db $01 : db $00 ; Room $BD persistent: Empty Clone Room
dl $7E002F : db $01 : db $04 ; Link's direction
; Manual changes:
dl $7EF343 : db $01 : db $04 ; Bombs
.after
sram_nmg_sw_skull_entrance:
dl $7EC74A : db $02 : dw $24B0 ; Selected menu gfx, row 1
dl $7EF36F : db $01 : db $FF ; Keys
dl $7EC78A : db $02 : dw $24C0 ; Selected menu gfx, row 2
dl $7EF0AC : db $02 : dw $0407 ; Room $0056: Skull Woods (Key Pot / Trap Room) (......K.......qq)
dl $7EF2C0 : db $01 : db $20 ; Overworld $40: Unknown (...?....)
dl $7E0B36 : db $01 : db $50 ; Arc variable
dl $7EF384 : db $01 : db $01 ; Key for dungeon $08
dl $7EF36E : db $01 : db $70 ; Magic Power
dl $7E0303 : db $01 : db $05 ; Selected menu item
dl $7E0202 : db $01 : db $06 ; Selected menu item
dl $7EC74C : db $02 : dw $24B1 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $24C1 ; Selected menu gfx, row 2
dl $7FE0FA : db $01 : db $23 ; Overworld $BD persistent: UNKNOWN
dl $7E002F : db $01 : db $00 ; Link's direction
dl $7E010E : db $01 : db $2B ; Dungeon entrance index
.after
sram_nmg_sw_mummy_hellway:
dl $7E0542 : db $02 : dw $1490 ; Object tilemap state
dl $7E0546 : db $02 : dw $1B9C ; Object tilemap state
dl $7E054A : db $02 : dw $14AC ; Object tilemap state
dl $7E054E : db $02 : dw $18AC ; Object tilemap state
dl $7E0552 : db $02 : dw $0F68 ; Object tilemap state
dl $7E0556 : db $02 : dw $055C ; Object tilemap state
dl $7E055A : db $02 : dw $0FEE ; Object tilemap state
dl $7EF36F : db $02 : dw $0000 ; Keys
dl $7EF092 : db $02 : dw $2002 ; Room $0049: Skull Woods (Gibdo Torch Puzzle Room) (...d...........q)
dl $7EF0B2 : db $02 : dw $800A ; Room $0059: Skull Woods (Final Section Entrance Room) (.d...........q.q)
dl $7E0540 : db $02 : dw $1390 ; Object tilemap state
dl $7E0544 : db $02 : dw $1B90 ; Object tilemap state
dl $7E0548 : db $02 : dw $1BA0 ; Object tilemap state
dl $7E054C : db $02 : dw $17AC ; Object tilemap state
dl $7E0550 : db $02 : dw $1CAC ; Object tilemap state
dl $7E0554 : db $02 : dw $1068 ; Object tilemap state
dl $7E0558 : db $02 : dw $0FCE ; Object tilemap state
dl $7E055C : db $02 : dw $1870 ; Object tilemap state
dl $7E0B37 : db $01 : db $AF ; Arc variable
dl $7FE032 : db $02 : dw $0003 ; Room $59 persistent: Skull Woods (Final Section Entrance Room)
dl $7FE0FA : db $01 : db $00 ; Room $BD persistent: Empty Clone Room
dl $7E002F : db $01 : db $06 ; Link's direction
.after
sram_nmg_sw_mummy_key:
dl $7E0556 : db $02 : dw $855C ; Object tilemap state
dl $7E055A : db $02 : dw $8FEE ; Object tilemap state
dl $7EF092 : db $02 : dw $A00F ; Room $0049: Skull Woods (Gibdo Torch Puzzle Room) (.d.d.........qqq)
dl $7EF36E : db $01 : db $30 ; Magic Power
dl $7E0468 : db $02 : dw $0000 ; Trap door state
dl $7E0558 : db $02 : dw $8FCE ; Object tilemap state
dl $7E055C : db $02 : dw $9870 ; Object tilemap state
dl $7E0B37 : db $01 : db $B0 ; Arc variable
dl $7FE012 : db $02 : dw $0801 ; Room $49 persistent: Skull Woods (Gibdo Torch Puzzle Room)
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_sw_mothula:
dl $7E0542 : db $02 : dw $1C30 ; Object tilemap state
dl $7E0546 : db $02 : dw $1A64 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7E0552 : db $02 : dw $0000 ; Object tilemap state
dl $7E0556 : db $02 : dw $0000 ; Object tilemap state
dl $7E055A : db $02 : dw $0000 ; Object tilemap state
dl $7EF072 : db $02 : dw $4402 ; Room $0039: Skull Woods (Gibdo Key / Mothula Hole Room) (..d...K........q)
dl $7E0468 : db $01 : db $01 ; Trap door state
dl $7E0540 : db $02 : dw $140C ; Object tilemap state
dl $7E0544 : db $02 : dw $1664 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E0550 : db $02 : dw $0000 ; Object tilemap state
dl $7E0554 : db $02 : dw $0000 ; Object tilemap state
dl $7E0558 : db $02 : dw $0000 ; Object tilemap state
dl $7E055C : db $02 : dw $0000 ; Object tilemap state
dl $7E0B37 : db $01 : db $8F ; Arc variable
dl $7E002F : db $01 : db $06 ; Link's direction
dl $7FDFF2 : db $02 : dw $0002 ; Room $39 persistent: Skull Woods (Gibdo Key / Mothula Hole Room)
.after
sram_nmg_ice_outside_skull:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7EC74A : db $02 : dw $2C62 ; Selected menu gfx, row 1
dl $7EF36F : db $01 : db $FF ; Keys
dl $7EC78A : db $02 : dw $2C72 ; Selected menu gfx, row 2
dl $7EF3F3 : db $02 : dw $0000 ; Deaths
dl $7EF36C : db $01 : db $48 ; Health (goal)
dl $7EF384 : db $01 : db $00 ; Key for dungeon $08
dl $7E1ABF : db $01 : db $98 ; Warp Vortex Coordinate
dl $7E1ACF : db $01 : db $00 ; Warp Vortex Coordinate
dl $7E1ADF : db $01 : db $CB ; Warp Vortex Coordinate
dl $7E1AEF : db $01 : db $00 ; Warp Vortex Coordinate
dl $7EF36D : db $01 : db $48 ; Health (actual)
dl $7EF052 : db $02 : dw $0801 ; Room $0029: Skull Woods (Mothula[Boss]) (.....k..........)
dl $7EF072 : db $02 : dw $4403 ; Room $0039: Skull Woods (Gibdo Key / Mothula Hole Room) (..d...K........q)
dl $7EF36E : db $01 : db $80 ; Magic Power
dl $7EF37A : db $01 : db $62 ; Crystals
dl $7E0303 : db $01 : db $14 ; Selected menu item
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E0202 : db $01 : db $14 ; Selected menu item
dl $7E0B37 : db $01 : db $19 ; Arc variable
dl $7EC74C : db $02 : dw $2C63 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $2C73 ; Selected menu gfx, row 2
dl $7FE012 : db $01 : db $00 ; Overworld $49 persistent: UNKNOWN
dl $7FE032 : db $01 : db $00 ; Overworld $59 persistent: UNKNOWN
dl $7FE0FA : db $01 : db $23 ; Overworld $BD persistent: UNKNOWN
dl $7E002F : db $01 : db $02 ; Link's direction
dl $7FDFF2 : db $01 : db $00 ; Overworld $39 persistent: UNKNOWN
.after
sram_nmg_ice_bridge_warp:
dl $7EC74A : db $02 : dw $2CD4 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $2CE4 ; Selected menu gfx, row 2
dl $7EF3CA : db $01 : db $00 ; LW/DW
dl $7E0303 : db $01 : db $08 ; Selected menu item
dl $7E0202 : db $01 : db $0D ; Selected menu item
dl $7EC74C : db $02 : dw $2CD5 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $2CE5 ; Selected menu gfx, row 2
dl $7FE0FA : db $01 : db $00 ; Overworld $BD persistent: UNKNOWN
dl $7E02A2 : db $01 : db $D0 ; Arc variable
dl $7E002F : db $01 : db $00 ; Link's direction
; Manual changes:
dl $7E02A2 : db $01 : db $00 ; Altitude
.after
sram_nmg_ice_lottery:
dl $7E0FC8 : db $01 : db $02 ; Prize pack index
dl $7EF3CA : db $01 : db $40 ; LW/DW
dl $7FE17B : db $01 : db $DB ; Overworld $FD persistent: UNKNOWN
dl $7FE168 : db $01 : db $D4 ; Overworld $F4 persistent: UNKNOWN
dl $7EC172 : db $02 : dw $0920 ; Crystal switch state
dl $7FE166 : db $01 : db $12 ; Overworld $F3 persistent: UNKNOWN
dl $7FE111 : db $01 : db $BB ; Overworld $C8 persistent: UNKNOWN
dl $7E002F : db $01 : db $06 ; Link's direction
.after
sram_nmg_ice_medallion:
dl $7EC74A : db $02 : dw $2C62 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $2C72 ; Selected menu gfx, row 2
dl $7FE17B : db $01 : db $00 ; Overworld $FD persistent: UNKNOWN
dl $7E0303 : db $01 : db $14 ; Selected menu item
dl $7FDFCC : db $01 : db $56 ; Overworld $26 persistent: UNKNOWN
dl $7FE168 : db $01 : db $00 ; Overworld $F4 persistent: UNKNOWN
dl $7E0202 : db $01 : db $14 ; Selected menu item
dl $7EC74C : db $02 : dw $2C63 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $2C73 ; Selected menu gfx, row 2
dl $7FE06E : db $01 : db $09 ; Overworld $77 persistent: Black Ice Cave
dl $7FE106 : db $01 : db $09 ; Overworld $C3 persistent: UNKNOWN
dl $7EC172 : db $02 : dw $0280 ; Crystal switch state
dl $7FE166 : db $01 : db $00 ; Overworld $F3 persistent: UNKNOWN
dl $7FE111 : db $01 : db $00 ; Overworld $C8 persistent: UNKNOWN
dl $7E002F : db $01 : db $00 ; Link's direction
dl $7FE128 : db $01 : db $09 ; Overworld $D4 persistent: UNKNOWN
.after
sram_nmg_ice_zoras_domain:
dl $7E1ABF : db $01 : db $9D ; Warp Vortex Coordinate
dl $7E1ACF : db $01 : db $0E ; Warp Vortex Coordinate
dl $7E1ADF : db $01 : db $A6 ; Warp Vortex Coordinate
dl $7E1AEF : db $01 : db $02 ; Warp Vortex Coordinate
dl $7EF349 : db $01 : db $01 ; Quake Medallion
dl $7EF3CA : db $01 : db $00 ; LW/DW
dl $7FDFCC : db $01 : db $00 ; Overworld $26 persistent: UNKNOWN
dl $7FE05D : db $01 : db $59 ; Overworld $6E persistent: Outside Hedge Maze
dl $7FDFA6 : db $01 : db $38 ; Overworld $13 persistent: Sanctuary
dl $7FE06E : db $01 : db $00 ; Overworld $77 persistent: Black Ice Cave
dl $7FE106 : db $01 : db $00 ; Overworld $C3 persistent: UNKNOWN
dl $7EC172 : db $02 : dw $091E ; Crystal switch state
dl $7FE128 : db $01 : db $00 ; Overworld $D4 persistent: UNKNOWN
.after
sram_nmg_ice_tiny_warp:
dl $7EF360 : db $02 : dw $0064 ; Rupees (goal)
dl $7EF379 : db $01 : db $FE ; Ability Flags
dl $7EF356 : db $01 : db $01 ; Flippers
dl $7EF362 : db $02 : dw $0064 ; Rupees (actual)
dl $7E002F : db $01 : db $02 ; Link's direction
.after
sram_nmg_ice_ice_entrance:
dl $7EF3CA : db $01 : db $40 ; LW/DW
dl $7FDFF9 : db $01 : db $42 ; Overworld $3C persistent: Great Swamp SE
dl $7FE05D : db $01 : db $00 ; Overworld $6E persistent: Outside Hedge Maze
dl $7FDFA6 : db $01 : db $00 ; Overworld $13 persistent: Sanctuary
dl $7FDFDA : db $01 : db $D4 ; Overworld $2D persistent: Bridge to Hyrule Castle
dl $7FE01B : db $01 : db $42 ; Overworld $4D persistent: UNKNOWN
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_ice_ice2:
dl $7EC74A : db $02 : dw $24B0 ; Selected menu gfx, row 1
dl $7EF36F : db $01 : db $00 ; Keys
dl $7EC78A : db $02 : dw $24C0 ; Selected menu gfx, row 2
dl $7EF01C : db $02 : dw $0001 ; Room $000E: Ice Palace (Entrance Room) (................)
dl $7EF36E : db $01 : db $70 ; Magic Power
dl $7E0303 : db $01 : db $05 ; Selected menu item
dl $7FDF9C : db $02 : dw $0001 ; Room $E persistent: Ice Palace (Entrance Room)
dl $7FDFF9 : db $01 : db $00 ; Room $3C persistent: Cave
dl $7E0468 : db $02 : dw $0000 ; Trap door state
dl $7E0202 : db $01 : db $06 ; Selected menu item
dl $7E0CBD : db $01 : db $01 ; Sprite drop
dl $7EC74C : db $02 : dw $24B1 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $24C1 ; Selected menu gfx, row 2
dl $7FDFDA : db $01 : db $00 ; Room $2D persistent: Empty Clone Room
dl $7EC172 : db $02 : dw $0000 ; Crystal switch state
dl $7FE01B : db $01 : db $00 ; Room $4D persistent: Ganon's Tower (Moldorm Room)
dl $7E002F : db $01 : db $04 ; Link's direction
dl $7E010E : db $01 : db $2D ; Dungeon entrance index
.after
sram_nmg_ice_penguin_switch_room:
dl $7E0542 : db $02 : dw $0760 ; Object tilemap state
dl $7E0546 : db $02 : dw $0860 ; Object tilemap state
dl $7E054A : db $02 : dw $575E ; Object tilemap state
dl $7E0FCC : db $01 : db $05 ; Prize pack index
dl $7EF01C : db $02 : dw $8403 ; Room $000E: Ice Palace (Entrance Room) (.d....K........q)
dl $7EF03C : db $02 : dw $0003 ; Room $001E: Ice Palace (Bomb Floor / Bari Room) (...............q)
dl $7EF05C : db $02 : dw $0004 ; Room $002E: Ice Palace (Compass Room) (..............q.)
dl $7EF36E : db $01 : db $60 ; Magic Power
dl $7FDF9C : db $02 : dw $000B ; Room $E persistent: Ice Palace (Entrance Room)
dl $7E0540 : db $02 : dw $075C ; Object tilemap state
dl $7E0544 : db $02 : dw $085C ; Object tilemap state
dl $7E0548 : db $02 : dw $0954 ; Object tilemap state
dl $7E0CBD : db $01 : db $00 ; Sprite drop
dl $7E002F : db $01 : db $06 ; Link's direction
.after
sram_nmg_ice_bombable_floor:
dl $7E054A : db $02 : dw $585A ; Object tilemap state
dl $7EF03E : db $02 : dw $0002 ; Room $001F: Ice Palace (Pengator / Big Key Room) (...............q)
dl $7E0FC9 : db $01 : db $02 ; Prize pack index
dl $7FDFBE : db $02 : dw $0071 ; Room $1F persistent: Ice Palace (Pengator / Big Key Room)
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_ice_conveyor_room:
dl $7E0542 : db $02 : dw $0664 ; Object tilemap state
dl $7E0546 : db $02 : dw $0A5C ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7EF343 : db $01 : db $01 ; Bombs
dl $7EC74A : db $02 : dw $2CB2 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $2CC2 ; Selected menu gfx, row 2
dl $7EF03C : db $02 : dw $0007 ; Room $001E: Ice Palace (Bomb Floor / Bari Room) (..............qq)
dl $7EF07C : db $02 : dw $0004 ; Room $003E: Ice Palace (Stalfos Knights / Conveyor Hellway) (..............q.)
dl $7E0FCA : db $01 : db $02 ; Prize pack index
dl $7E0303 : db $01 : db $01 ; Selected menu item
dl $7FDF9C : db $02 : dw $0000 ; Room $E persistent: Ice Palace (Entrance Room)
dl $7FDFFC : db $02 : dw $0006 ; Room $3E persistent: Ice Palace (Stalfos Knights / Conveyor Hellway)
dl $7E0540 : db $02 : dw $0660 ; Object tilemap state
dl $7E0544 : db $02 : dw $0A58 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E0202 : db $01 : db $04 ; Selected menu item
dl $7E0B37 : db $01 : db $00 ; Arc variable
dl $7EC74C : db $02 : dw $2CB3 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $6CC2 ; Selected menu gfx, row 2
dl $7EC172 : db $01 : db $01 ; Crystal switch state
dl $7E002F : db $01 : db $02 ; Link's direction
dl $7E0CC2 : db $01 : db $01 ; Sprite drop
; Manual changes:
dl $7EF343 : db $01 : db $02 ; Bombs
.after
sram_nmg_ice_ipbj:
dl $7EF07C : db $02 : dw $4407 ; Room $003E: Ice Palace (Stalfos Knights / Conveyor Hellway) (..d...K.......qq)
dl $7EF36D : db $01 : db $40 ; Health (actual)
dl $7FDFFC : db $02 : dw $0306 ; Room $3E persistent: Ice Palace (Stalfos Knights / Conveyor Hellway)
dl $7E0468 : db $01 : db $01 ; Trap door state
dl $7E0B37 : db $01 : db $59 ; Arc variable
dl $7E0CC2 : db $01 : db $00 ; Sprite drop
.after
sram_nmg_ice_penguin_room:
dl $7E0542 : db $02 : dw $0B8C ; Object tilemap state
dl $7E0546 : db $02 : dw $0A30 ; Object tilemap state
dl $7EF343 : db $01 : db $00 ; Bombs
dl $7EC74A : db $02 : dw $20B6 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $20C6 ; Selected menu gfx, row 2
dl $7EF09C : db $02 : dw $400C ; Room $004E: Ice Palace (Bomb-Jump Room) (..d..........qq.)
dl $7E0303 : db $01 : db $04 ; Selected menu item
dl $7E0540 : db $02 : dw $078C ; Object tilemap state
dl $7E0544 : db $02 : dw $0C1C ; Object tilemap state
dl $7E0548 : db $02 : dw $0C70 ; Object tilemap state
dl $7E0202 : db $01 : db $0C ; Selected menu item
dl $7E0B37 : db $01 : db $4F ; Arc variable
dl $7EC74C : db $02 : dw $20B7 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $20C7 ; Selected menu gfx, row 2
dl $7E002F : db $01 : db $00 ; Link's direction
; Manual changes:
dl $7EF343 : db $01 : db $01 ; Bombs
.after
sram_nmg_ice_lonely_firebar:
dl $7E0542 : db $02 : dw $0460 ; Object tilemap state
dl $7E0546 : db $02 : dw $0870 ; Object tilemap state
dl $7EF0BC : db $02 : dw $0001 ; Room $005E: Ice Palace (Lonely Firebar) (................)
dl $7EF0DC : db $02 : dw $0004 ; Room $006E: Ice Palace (Pengators Room) (..............q.)
dl $7EF36D : db $01 : db $38 ; Health (actual)
dl $7FE05C : db $02 : dw $001F ; Room $6E persistent: Ice Palace (Pengators Room)
dl $7E0540 : db $02 : dw $045C ; Object tilemap state
dl $7E0544 : db $02 : dw $084C ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E0FC9 : db $01 : db $06 ; Prize pack index
dl $7E0B37 : db $01 : db $A0 ; Arc variable
dl $7FDFBE : db $02 : dw $0000 ; Room $1F persistent: Ice Palace (Pengator / Big Key Room)
dl $7E002F : db $01 : db $04 ; Link's direction
.after
sram_nmg_ice_last_two_screens:
dl $7E0542 : db $02 : dw $1858 ; Object tilemap state
dl $7E0546 : db $02 : dw $1CA4 ; Object tilemap state
dl $7EF0BC : db $02 : dw $0003 ; Room $005E: Ice Palace (Lonely Firebar) (...............q)
dl $7EF0FC : db $02 : dw $0002 ; Room $007E: Ice Palace (Hidden Chest / Bombable Floor Room) (...............q)
dl $7EF13C : db $02 : dw $0003 ; Room $009E: Ice Palace (Big Chest Room) (...............q)
dl $7FDFFC : db $02 : dw $0000 ; Room $3E persistent: Ice Palace (Stalfos Knights / Conveyor Hellway)
dl $7E0540 : db $02 : dw $13A4 ; Object tilemap state
dl $7E0544 : db $02 : dw $179C ; Object tilemap state
dl $7E0548 : db $02 : dw $5764 ; Object tilemap state
dl $7E002F : db $01 : db $06 ; Link's direction
.after
sram_nmg_ice_kholdstare:
dl $7E0542 : db $02 : dw $0850 ; Object tilemap state
dl $7E0546 : db $02 : dw $0BD0 ; Object tilemap state
dl $7E054A : db $02 : dw $0CD0 ; Object tilemap state
dl $7E054E : db $02 : dw $0AD0 ; Object tilemap state
dl $7E0552 : db $02 : dw $0C70 ; Object tilemap state
dl $7E0556 : db $02 : dw $0AF0 ; Object tilemap state
dl $7E055A : db $02 : dw $0870 ; Object tilemap state
dl $7E055E : db $02 : dw $0970 ; Object tilemap state
dl $7EF17C : db $02 : dw $0001 ; Room $00BE: Ice Palace (Block Puzzle Room) (................)
dl $7EF19C : db $02 : dw $0004 ; Room $00CE: Ice Palace (Hole to Kholdstare Room) (..............q.)
dl $7EF36E : db $01 : db $80 ; Magic Power
dl $7FE05C : db $02 : dw $0000 ; Room $6E persistent: Ice Palace (Pengators Room)
dl $7E0540 : db $02 : dw $084C ; Object tilemap state
dl $7E0544 : db $02 : dw $0BCC ; Object tilemap state
dl $7E0548 : db $02 : dw $0CCC ; Object tilemap state
dl $7E054C : db $02 : dw $0ACC ; Object tilemap state
dl $7E0550 : db $02 : dw $0C6C ; Object tilemap state
dl $7E0554 : db $02 : dw $0AEC ; Object tilemap state
dl $7E0558 : db $02 : dw $086C ; Object tilemap state
dl $7E055C : db $02 : dw $096C ; Object tilemap state
dl $7E002F : db $01 : db $02 ; Link's direction
.after
sram_nmg_swamp_outside_ice:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7E0552 : db $02 : dw $0000 ; Object tilemap state
dl $7E0556 : db $02 : dw $0000 ; Object tilemap state
dl $7E055A : db $02 : dw $0000 ; Object tilemap state
dl $7E055E : db $02 : dw $0000 ; Object tilemap state
dl $7EC74A : db $02 : dw $2C62 ; Selected menu gfx, row 1
dl $7EF36F : db $01 : db $FF ; Keys
dl $7EC78A : db $02 : dw $2C72 ; Selected menu gfx, row 2
dl $7EF1BC : db $02 : dw $0804 ; Room $00DE: Ice Palace (Kholdstare[Boss]) (.....k........q.)
dl $7EF36C : db $01 : db $50 ; Health (goal)
dl $7EF36D : db $01 : db $50 ; Health (actual)
dl $7EF385 : db $01 : db $00 ; Key for dungeon $09
dl $7EF3F5 : db $02 : dw $0000 ; Deaths
dl $7EF37A : db $01 : db $66 ; Crystals
dl $7E0303 : db $01 : db $14 ; Selected menu item
dl $7FDFF9 : db $01 : db $42 ; Overworld $3C persistent: Great Swamp SE
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E0550 : db $02 : dw $0000 ; Object tilemap state
dl $7E0554 : db $02 : dw $0000 ; Object tilemap state
dl $7E0558 : db $02 : dw $0000 ; Object tilemap state
dl $7E055C : db $02 : dw $0000 ; Object tilemap state
dl $7E0202 : db $01 : db $14 ; Selected menu item
dl $7EC74C : db $02 : dw $2C63 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $2C73 ; Selected menu gfx, row 2
dl $7FDFDA : db $01 : db $D4 ; Overworld $2D persistent: Bridge to Hyrule Castle
dl $7FE01B : db $01 : db $42 ; Overworld $4D persistent: UNKNOWN
dl $7E02A2 : db $01 : db $00 ; Arc variable
.after
sram_nmg_swamp_links_house:
dl $7EC74A : db $02 : dw $2CD4 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $2CE4 ; Selected menu gfx, row 2
dl $7E1ABF : db $01 : db $B8 ; Warp Vortex Coordinate
dl $7E1ACF : db $01 : db $0C ; Warp Vortex Coordinate
dl $7E1ADF : db $01 : db $CB ; Warp Vortex Coordinate
dl $7E1AEF : db $01 : db $0D ; Warp Vortex Coordinate
dl $7EF3CA : db $01 : db $00 ; LW/DW
dl $7E0303 : db $01 : db $08 ; Selected menu item
dl $7FDFF9 : db $01 : db $00 ; Overworld $3C persistent: Great Swamp SE
dl $7E0202 : db $01 : db $0D ; Selected menu item
dl $7EC74C : db $02 : dw $2CD5 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $2CE5 ; Selected menu gfx, row 2
dl $7FDFDA : db $01 : db $00 ; Overworld $2D persistent: Bridge to Hyrule Castle
dl $7FE01B : db $01 : db $00 ; Overworld $4D persistent: UNKNOWN
dl $7E02A2 : db $01 : db $FC ; Arc variable
.after
sram_nmg_swamp_swamp_overworld:
dl $7EC74A : db $02 : dw $20B6 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $20C6 ; Selected menu gfx, row 2
dl $7EF3CA : db $01 : db $40 ; LW/DW
dl $7FE147 : db $01 : db $AB ; Overworld $E3 persistent: UNKNOWN
dl $7E0303 : db $01 : db $04 ; Selected menu item
dl $7FE164 : db $01 : db $A9 ; Overworld $F2 persistent: UNKNOWN
dl $7FE059 : db $01 : db $13 ; Overworld $6C persistent: Dark Link's House
dl $7E0202 : db $01 : db $0C ; Selected menu item
dl $7EC74C : db $02 : dw $20B7 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $20C7 ; Selected menu gfx, row 2
dl $7EC172 : db $02 : dw $00A0 ; Crystal switch state
dl $7E02A2 : db $01 : db $A8 ; Arc variable
.after
sram_nmg_swamp_antifairy_room:
dl $7EC74A : db $02 : dw $2C62 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $2C72 ; Selected menu gfx, row 2
dl $7E1ABF : db $01 : db $7C ; Warp Vortex Coordinate
dl $7E1ACF : db $01 : db $07 ; Warp Vortex Coordinate
dl $7E1ADF : db $01 : db $07 ; Warp Vortex Coordinate
dl $7E1AEF : db $01 : db $0F ; Warp Vortex Coordinate
dl $7EF3CA : db $01 : db $00 ; LW/DW
dl $7FE147 : db $01 : db $00 ; Overworld $E3 persistent: UNKNOWN
dl $7FE153 : db $01 : db $D3 ; Overworld $E9 persistent: UNKNOWN
dl $7E0303 : db $01 : db $14 ; Selected menu item
dl $7FE07C : db $01 : db $09 ; Overworld $7E persistent: UNKNOWN
dl $7FE164 : db $01 : db $EC ; Overworld $F2 persistent: UNKNOWN
dl $7FE059 : db $01 : db $00 ; Overworld $6C persistent: Dark Link's House
dl $7E0202 : db $01 : db $14 ; Selected menu item
dl $7EC74C : db $02 : dw $2C63 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $2C73 ; Selected menu gfx, row 2
dl $7EC172 : db $02 : dw $0020 ; Crystal switch state
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_swamp_entrance:
dl $7E0542 : db $02 : dw $193E ; Object tilemap state
dl $7EF2BB : db $01 : db $20 ; Overworld $3B: Unknown (...?....)
dl $7EF2FB : db $01 : db $20 ; Overworld $7B: Unknown (...?....)
dl $7E0B36 : db $01 : db $00 ; Arc variable
dl $7EF216 : db $02 : dw $008F ; Room $010B: Unknown (.........c...qqq)
dl $7EF3CA : db $01 : db $40 ; LW/DW
dl $7FE153 : db $01 : db $00 ; Overworld $E9 persistent: UNKNOWN
dl $7FE07C : db $01 : db $00 ; Overworld $7E persistent: UNKNOWN
dl $7FE164 : db $01 : db $00 ; Overworld $F2 persistent: UNKNOWN
dl $7FE07D : db $01 : db $13 ; Overworld $7E persistent: UNKNOWN
dl $7E0540 : db $02 : dw $193A ; Object tilemap state
dl $7E0544 : db $02 : dw $1842 ; Object tilemap state
dl $7FE126 : db $01 : db $AB ; Overworld $D3 persistent: UNKNOWN
dl $7E0B37 : db $01 : db $00 ; Arc variable
dl $7EF051 : db $01 : db $01 ; Room $0028: Swamp Palace (Entrance Room) (................)
dl $7FE0E2 : db $01 : db $AA ; Overworld $B1 persistent: UNKNOWN
dl $7EC172 : db $02 : dw $0000 ; Crystal switch state
dl $7E0B0C : db $01 : db $F0 ; Arc variable
dl $7E010E : db $01 : db $4E ; Dungeon entrance index
.after
sram_nmg_swamp_first_key_pot:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7EF36F : db $02 : dw $0000 ; Keys
dl $7EF050 : db $02 : dw $811F ; Room $0028: Swamp Palace (Entrance Room) (.d......c...qqqq)
dl $7FDFD0 : db $02 : dw $000E ; Room $28 persistent: Swamp Palace (Entrance Room)
dl $7FE07D : db $01 : db $00 ; Room $7E persistent: Ice Palace (Hidden Chest / Bombable Floor Room)
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7FE126 : db $01 : db $00 ; Room $D3 persistent: Empty Clone Room
dl $7FE0E2 : db $01 : db $00 ; Room $B1 persistent: Misery Mire (Hourglass Room)
dl $7E010E : db $01 : db $25 ; Dungeon entrance index
.after
sram_nmg_swamp_hallway_key_1:
dl $7E0542 : db $02 : dw $0520 ; Object tilemap state
dl $7E0546 : db $02 : dw $1430 ; Object tilemap state
dl $7EF343 : db $01 : db $01 ; Bombs
dl $7EC74A : db $02 : dw $20B6 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $20C6 ; Selected menu gfx, row 2
dl $7EF070 : db $02 : dw $440A ; Room $0038: Swamp Palace (Key Pot Room) (..d...K......q.q)
dl $7EF06E : db $02 : dw $1003 ; Room $0037: Swamp Palace (Map Chest / Water Fill Room) (....b..........q)
dl $7E0303 : db $01 : db $04 ; Selected menu item
dl $7E0540 : db $02 : dw $0420 ; Object tilemap state
dl $7E0544 : db $02 : dw $0620 ; Object tilemap state
dl $7E0548 : db $02 : dw $063C ; Object tilemap state
dl $7E0202 : db $01 : db $0C ; Selected menu item
dl $7EC74C : db $02 : dw $20B7 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $20C7 ; Selected menu gfx, row 2
.after
sram_nmg_swamp_water_lever_1:
dl $7EF06E : db $02 : dw $340F ; Room $0037: Swamp Palace (Map Chest / Water Fill Room) (...db.K......qqq)
.after
sram_nmg_swamp_main_hub:
dl $7EF06E : db $02 : dw $348F ; Room $0037: Swamp Palace (Map Chest / Water Fill Room) (...db.K..c...qqq)
dl $7E002F : db $01 : db $04 ; Link's direction
.after
sram_nmg_swamp_water_lever_2:
dl $7E0542 : db $02 : dw $0F9A ; Object tilemap state
dl $7E0546 : db $02 : dw $05C0 ; Object tilemap state
dl $7E054A : db $02 : dw $0470 ; Object tilemap state
dl $7E054E : db $02 : dw $1072 ; Object tilemap state
dl $7E0B35 : db $01 : db $CA ; Arc variable
dl $7EF06C : db $02 : dw $200F ; Room $0036: Swamp Palace (Big Chest Room) (...d.........qqq)
dl $7E0B36 : db $01 : db $C5 ; Arc variable
dl $7EF06A : db $02 : dw $040F ; Room $0035: Swamp Palace (Big Key / BS Room) (......K......qqq)
dl $7FDFD0 : db $02 : dw $0000 ; Room $28 persistent: Swamp Palace (Entrance Room)
dl $7FDFEC : db $02 : dw $0031 ; Room $36 persistent: Swamp Palace (Big Chest Room)
dl $7E0540 : db $02 : dw $100A ; Object tilemap state
dl $7E0544 : db $02 : dw $05BC ; Object tilemap state
dl $7E0548 : db $02 : dw $046C ; Object tilemap state
dl $7E054C : db $02 : dw $0FDE ; Object tilemap state
dl $7E0B33 : db $01 : db $C5 ; Arc variable
dl $7E0B37 : db $01 : db $D3 ; Arc variable
dl $7E0B0C : db $01 : db $A0 ; Arc variable
dl $7E0B34 : db $01 : db $CE ; Arc variable
.after
sram_nmg_swamp_sociable_firebar:
dl $7E0542 : db $02 : dw $085C ; Object tilemap state
dl $7E0546 : db $02 : dw $572A ; Object tilemap state
dl $7E054A : db $02 : dw $5922 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7E0B35 : db $01 : db $B8 ; Arc variable
dl $7EF068 : db $02 : dw $000F ; Room $0034: Swamp Palace (Push Block Puzzle / Pre-Big Key Room) (.............qqq)
dl $7E0B36 : db $01 : db $B9 ; Arc variable
dl $7EF06A : db $02 : dw $848F ; Room $0035: Swamp Palace (Big Key / BS Room) (.d....K..c...qqq)
dl $7E0540 : db $02 : dw $084E ; Object tilemap state
dl $7E0544 : db $02 : dw $5722 ; Object tilemap state
dl $7E0548 : db $02 : dw $5726 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E0B33 : db $01 : db $C3 ; Arc variable
dl $7E0B37 : db $01 : db $BA ; Arc variable
dl $7E0B34 : db $01 : db $BE ; Arc variable
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_swamp_backtracking:
dl $7E0542 : db $02 : dw $0818 ; Object tilemap state
dl $7E0546 : db $02 : dw $0820 ; Object tilemap state
dl $7E054A : db $02 : dw $1430 ; Object tilemap state
dl $7E054E : db $02 : dw $1C4C ; Object tilemap state
dl $7E0552 : db $02 : dw $1B64 ; Object tilemap state
dl $7E0556 : db $02 : dw $1CF2 ; Object tilemap state
dl $7EF0A8 : db $02 : dw $000F ; Room $0054: Swamp Palace (Upstairs Pits Room) (.............qqq)
dl $7EF06A : db $02 : dw $849F ; Room $0035: Swamp Palace (Big Key / BS Room) (.d....K..c..qqqq)
dl $7EF366 : db $02 : dw $76B0 ; BigKey1
dl $7E0540 : db $02 : dw $0814 ; Object tilemap state
dl $7E0544 : db $02 : dw $081C ; Object tilemap state
dl $7E0548 : db $02 : dw $0824 ; Object tilemap state
dl $7E054C : db $02 : dw $174C ; Object tilemap state
dl $7E0550 : db $02 : dw $16F0 ; Object tilemap state
dl $7E0554 : db $02 : dw $1758 ; Object tilemap state
dl $7E0558 : db $02 : dw $063C ; Object tilemap state
dl $7E002F : db $01 : db $04 ; Link's direction
.after
sram_nmg_swamp_hook_shot:
dl $7E0FC8 : db $01 : db $03 ; Prize pack index
dl $7FDFE8 : db $02 : dw $0001 ; Room $34 persistent: Swamp Palace (Push Block Puzzle / Pre-Big Key Room)
dl $7E002F : db $01 : db $06 ; Link's direction
.after
sram_nmg_swamp_hookdash:
dl $7E0542 : db $02 : dw $0F9A ; Object tilemap state
dl $7E0546 : db $02 : dw $05C0 ; Object tilemap state
dl $7E054A : db $02 : dw $0470 ; Object tilemap state
dl $7E054E : db $02 : dw $1072 ; Object tilemap state
dl $7E0552 : db $02 : dw $0000 ; Object tilemap state
dl $7E0556 : db $02 : dw $0000 ; Object tilemap state
dl $7E0B35 : db $01 : db $CD ; Arc variable
dl $7EC74A : db $02 : dw $24F5 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $24C0 ; Selected menu gfx, row 2
dl $7EF06C : db $02 : dw $641F ; Room $0036: Swamp Palace (Big Chest Room) (..dd..K.....qqqq)
dl $7E0B36 : db $01 : db $D4 ; Arc variable
dl $7EF342 : db $01 : db $01 ; Hookshot
dl $7E0303 : db $01 : db $0E ; Selected menu item
dl $7E0540 : db $02 : dw $100A ; Object tilemap state
dl $7E0544 : db $02 : dw $05BC ; Object tilemap state
dl $7E0548 : db $02 : dw $046C ; Object tilemap state
dl $7E054C : db $02 : dw $0FDE ; Object tilemap state
dl $7E0550 : db $02 : dw $0000 ; Object tilemap state
dl $7E0554 : db $02 : dw $0000 ; Object tilemap state
dl $7E0558 : db $02 : dw $0000 ; Object tilemap state
dl $7E0202 : db $01 : db $03 ; Selected menu item
dl $7E0B33 : db $01 : db $E8 ; Arc variable
dl $7E0B37 : db $01 : db $ED ; Arc variable
dl $7EC74C : db $02 : dw $24F6 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $24F5 ; Selected menu gfx, row 2
dl $7E0B34 : db $01 : db $DB ; Arc variable
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_swamp_water_lever_3:
dl $7E0542 : db $02 : dw $041C ; Object tilemap state
dl $7E0546 : db $02 : dw $1A16 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7E0B35 : db $01 : db $BC ; Arc variable
dl $7EF377 : db $01 : db $15 ; Arrows
dl $7EF04C : db $02 : dw $8007 ; Room $0026: Swamp Palace (Statue Room) (.d............qq)
dl $7E0B36 : db $01 : db $C3 ; Arc variable
dl $7FDFCC : db $02 : dw $0400 ; Room $26 persistent: Swamp Palace (Statue Room)
dl $7FDFEC : db $02 : dw $0000 ; Room $36 persistent: Swamp Palace (Big Chest Room)
dl $7E0540 : db $02 : dw $080C ; Object tilemap state
dl $7E0544 : db $02 : dw $1396 ; Object tilemap state
dl $7E0548 : db $02 : dw $1ADC ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E0B33 : db $01 : db $D7 ; Arc variable
dl $7E0B37 : db $01 : db $DC ; Arc variable
dl $7E0B34 : db $01 : db $CA ; Arc variable
.after
sram_nmg_swamp_restock:
dl $7E0542 : db $02 : dw $0654 ; Object tilemap state
dl $7E0546 : db $02 : dw $0668 ; Object tilemap state
dl $7E054A : db $02 : dw $2630 ; Object tilemap state
dl $7E054E : db $02 : dw $2634 ; Object tilemap state
dl $7E0552 : db $02 : dw $2638 ; Object tilemap state
dl $7E0B35 : db $01 : db $2A ; Arc variable
dl $7EF0CC : db $02 : dw $0003 ; Room $0066: Swamp Palace (Hidden Chest / Hidden Door Room) (...............q)
dl $7EF0EC : db $02 : dw $008E ; Room $0076: Swamp Palace (Water Drain Room) (.........c...qqq)
dl $7E0B36 : db $01 : db $24 ; Arc variable
dl $7FDFE8 : db $02 : dw $0000 ; Room $34 persistent: Swamp Palace (Push Block Puzzle / Pre-Big Key Room)
dl $7FE04C : db $02 : dw $0080 ; Room $66 persistent: Swamp Palace (Hidden Chest / Hidden Door Room)
dl $7FE06C : db $02 : dw $0002 ; Room $76 persistent: Swamp Palace (Water Drain Room)
dl $7E0540 : db $02 : dw $0554 ; Object tilemap state
dl $7E0544 : db $02 : dw $0568 ; Object tilemap state
dl $7E0548 : db $02 : dw $2530 ; Object tilemap state
dl $7E054C : db $02 : dw $2534 ; Object tilemap state
dl $7E0550 : db $02 : dw $2538 ; Object tilemap state
dl $7E0554 : db $02 : dw $383C ; Object tilemap state
dl $7E0B37 : db $01 : db $1B ; Arc variable
.after
sram_nmg_swamp_phelps_way:
dl $7E0542 : db $02 : dw $03C0 ; Object tilemap state
dl $7E0546 : db $02 : dw $04C0 ; Object tilemap state
dl $7E054A : db $02 : dw $05C0 ; Object tilemap state
dl $7E054E : db $02 : dw $06C0 ; Object tilemap state
dl $7E0552 : db $02 : dw $0000 ; Object tilemap state
dl $7E0B35 : db $01 : db $A9 ; Arc variable
dl $7EF343 : db $01 : db $02 ; Bombs
dl $7EF02C : db $02 : dw $000C ; Room $0016: Swamp Palace (Swimming Treadmill) (.............qq.)
dl $7EF0CC : db $02 : dw $000F ; Room $0066: Swamp Palace (Hidden Chest / Hidden Door Room) (.............qqq)
dl $7E0B36 : db $01 : db $A3 ; Arc variable
dl $7E0540 : db $02 : dw $03BC ; Object tilemap state
dl $7E0544 : db $02 : dw $04BC ; Object tilemap state
dl $7E0548 : db $02 : dw $05BC ; Object tilemap state
dl $7E054C : db $02 : dw $06BC ; Object tilemap state
dl $7E0550 : db $02 : dw $13F0 ; Object tilemap state
dl $7E0554 : db $02 : dw $0000 ; Object tilemap state
dl $7E0B37 : db $01 : db $9A ; Arc variable
dl $7E002F : db $01 : db $02 ; Link's direction
.after
sram_nmg_swamp_arrghus:
dl $7EF02C : db $02 : dw $440F ; Room $0016: Swamp Palace (Swimming Treadmill) (..d...K......qqq)
dl $7EF36D : db $01 : db $48 ; Health (actual)
dl $7FDFAC : db $02 : dw $0004 ; Room $16 persistent: Swamp Palace (Swimming Treadmill)
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_mire_outside_swamp:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7E0B09 : db $01 : db $03 ; Arc variable
dl $7E0B31 : db $01 : db $94 ; Arc variable
dl $7E0B35 : db $01 : db $71 ; Arc variable
dl $7E0B39 : db $01 : db $88 ; Arc variable
dl $7EC74A : db $02 : dw $24B0 ; Selected menu gfx, row 1
dl $7EF36F : db $01 : db $FF ; Keys
dl $7EF00C : db $02 : dw $0802 ; Room $0006: Swamp Palace (Arrghus[Boss]) (.....k.........q)
dl $7E0B32 : db $01 : db $91 ; Arc variable
dl $7E0B36 : db $01 : db $74 ; Arc variable
dl $7E0B3A : db $01 : db $81 ; Arc variable
dl $7EF36C : db $01 : db $58 ; Health (goal)
dl $7EF36D : db $01 : db $58 ; Health (actual)
dl $7EF381 : db $01 : db $00 ; Key for dungeon $05
dl $7EF3ED : db $02 : dw $0000 ; Deaths
dl $7EF37A : db $01 : db $76 ; Crystals
dl $7E0303 : db $01 : db $05 ; Selected menu item
dl $7FDFAC : db $01 : db $00 ; Overworld $16 persistent: Witch's Hut
dl $7FDFCC : db $01 : db $00 ; Overworld $26 persistent: UNKNOWN
dl $7FE04C : db $01 : db $00 ; Overworld $66 persistent: UNKNOWN
dl $7FE06C : db $01 : db $00 ; Overworld $76 persistent: UNKNOWN
dl $7FE07D : db $01 : db $13 ; Overworld $7E persistent: UNKNOWN
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E0550 : db $02 : dw $0000 ; Object tilemap state
dl $7FE126 : db $01 : db $AB ; Overworld $D3 persistent: UNKNOWN
dl $7E0202 : db $01 : db $06 ; Selected menu item
dl $7E0B33 : db $01 : db $85 ; Arc variable
dl $7E0B37 : db $01 : db $7E ; Arc variable
dl $7E0B3B : db $01 : db $79 ; Arc variable
dl $7EC74C : db $02 : dw $24B1 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $24C1 ; Selected menu gfx, row 2
dl $7FE0E2 : db $01 : db $AA ; Overworld $B1 persistent: UNKNOWN
dl $7E02A2 : db $01 : db $00 ; Arc variable
dl $7E0B08 : db $01 : db $AE ; Arc variable
dl $7E0B0C : db $01 : db $01 ; Arc variable
dl $7E0B30 : db $01 : db $8B ; Arc variable
dl $7E0B34 : db $01 : db $78 ; Arc variable
dl $7E0B38 : db $01 : db $84 ; Arc variable
dl $7E0B3C : db $01 : db $7B ; Arc variable
dl $7E002F : db $01 : db $02 ; Link's direction
.after
sram_nmg_mire_dm:
dl $7EF2BB : db $01 : db $00 ; Overworld $3B: Unknown (........)
dl $7EF2FB : db $01 : db $00 ; Overworld $7B: Unknown (........)
dl $7EC74A : db $02 : dw $24F5 ; Selected menu gfx, row 1
dl $7E1ADF : db $01 : db $FD ; Warp Vortex Coordinate
dl $7E1AEF : db $01 : db $0E ; Warp Vortex Coordinate
dl $7EF216 : db $01 : db $0F ; Room $010B: Unknown (.............qqq)
dl $7EF3CA : db $01 : db $00 ; LW/DW
dl $7E0303 : db $01 : db $0E ; Selected menu item
dl $7FE07D : db $01 : db $00 ; Overworld $7E persistent: UNKNOWN
dl $7FE126 : db $01 : db $00 ; Overworld $D3 persistent: UNKNOWN
dl $7E0202 : db $01 : db $03 ; Selected menu item
dl $7E0B37 : db $01 : db $00 ; Arc variable
dl $7EF051 : db $01 : db $80 ; Room $0028: Swamp Palace (Entrance Room) (.........c......)
dl $7EC74C : db $02 : dw $24F6 ; Selected menu gfx, row 1
dl $7FDFCB : db $01 : db $F3 ; Overworld $25 persistent: Octorok Area
dl $7EC78C : db $02 : dw $24F5 ; Selected menu gfx, row 2
dl $7FE0E2 : db $01 : db $00 ; Overworld $B1 persistent: UNKNOWN
dl $7E02A2 : db $01 : db $FE ; Arc variable
dl $7E002F : db $01 : db $06 ; Link's direction
.after
sram_nmg_mire_free_flutedash:
dl $7EC74A : db $02 : dw $3CA5 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $3CD8 ; Selected menu gfx, row 2
dl $7EF348 : db $01 : db $01 ; Ether Medallion
dl $7E1ABF : db $01 : db $1C ; Warp Vortex Coordinate
dl $7E1ACF : db $01 : db $08 ; Warp Vortex Coordinate
dl $7E1ADF : db $01 : db $3D ; Warp Vortex Coordinate
dl $7E1AEF : db $01 : db $01 ; Warp Vortex Coordinate
dl $7E0303 : db $01 : db $0C ; Selected menu item
dl $7E0202 : db $01 : db $0F ; Selected menu item
dl $7EC74C : db $02 : dw $3CA6 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $3CD9 ; Selected menu gfx, row 2
dl $7E02A2 : db $01 : db $0F ; Arc variable
.after
sram_nmg_mire_darkworld_warp:
dl $7EC74A : db $02 : dw $2CD4 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $2CE4 ; Selected menu gfx, row 2
dl $7E0303 : db $01 : db $08 ; Selected menu item
dl $7E0202 : db $01 : db $0D ; Selected menu item
dl $7EC74C : db $02 : dw $2CD5 ; Selected menu gfx, row 1
dl $7FDFCB : db $01 : db $00 ; Overworld $25 persistent: Octorok Area
dl $7EC78C : db $02 : dw $2CE5 ; Selected menu gfx, row 2
dl $7E02A2 : db $01 : db $F7 ; Arc variable
; Manual changes:
dl $7E02A2 : db $01 : db $8B ; Altitude
dl $7EF346 : db $01 : db $01 ; Ice Rod
.after
sram_nmg_mire_entrance:
dl $7EC74A : db $02 : dw $2876 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $E877 ; Selected menu gfx, row 2
dl $7EF2F0 : db $01 : db $20 ; Overworld $70: Unknown (...?....)
dl $7EF36E : db $01 : db $60 ; Magic Power
dl $7EF3CA : db $01 : db $40 ; LW/DW
dl $7E0303 : db $01 : db $10 ; Selected menu item
dl $7E0202 : db $01 : db $09 ; Selected menu item
dl $7EC74C : db $02 : dw $2877 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $E876 ; Selected menu gfx, row 2
dl $7E02A2 : db $01 : db $8B ; Arc variable
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_mire_mire2:
dl $7EC74A : db $02 : dw $24B0 ; Selected menu gfx, row 1
dl $7EF36F : db $01 : db $00 ; Keys
dl $7EC78A : db $02 : dw $24C0 ; Selected menu gfx, row 2
dl $7EF130 : db $02 : dw $0003 ; Room $0098: Misery Mire (Entrance Room) (...............q)
dl $7E0303 : db $01 : db $05 ; Selected menu item
dl $7E0202 : db $01 : db $06 ; Selected menu item
dl $7EC74C : db $02 : dw $24B1 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $24C1 ; Selected menu gfx, row 2
dl $7E010E : db $01 : db $27 ; Dungeon entrance index
.after
sram_nmg_mire_main_hub:
dl $7E0FC8 : db $01 : db $04 ; Prize pack index
dl $7EF1A4 : db $02 : dw $000F ; Room $00D2: Misery Mire (Mire02 / Wizzrobes Room) (.............qqq)
dl $7EF36E : db $01 : db $50 ; Magic Power
dl $7E0468 : db $02 : dw $0000 ; Trap door state
dl $7FE124 : db $02 : dw $03EF ; Room $D2 persistent: Misery Mire (Mire02 / Wizzrobes Room)
.after
sram_nmg_mire_beat_the_fireball:
dl $7E0542 : db $02 : dw $2930 ; Object tilemap state
dl $7E0546 : db $02 : dw $284C ; Object tilemap state
dl $7E054A : db $02 : dw $2A4C ; Object tilemap state
dl $7EF36F : db $01 : db $01 ; Keys
dl $7EF164 : db $02 : dw $0001 ; Room $00B2: Misery Mire (Slug Room) (................)
dl $7EF184 : db $02 : dw $000F ; Room $00C2: Misery Mire (Big Hub Room) (.............qqq)
dl $7EF166 : db $02 : dw $0402 ; Room $00B3: Misery Mire (Spike Key Chest Room) (......K........q)
dl $7E0468 : db $02 : dw $0001 ; Trap door state
dl $7E0540 : db $02 : dw $2830 ; Object tilemap state
dl $7E0544 : db $02 : dw $2A30 ; Object tilemap state
dl $7E0548 : db $02 : dw $294C ; Object tilemap state
dl $7E054C : db $02 : dw $175E ; Object tilemap state
dl $7E002F : db $01 : db $02 ; Link's direction
.after
sram_nmg_mire_bari_key:
dl $7E0542 : db $02 : dw $3044 ; Object tilemap state
dl $7E0546 : db $02 : dw $07B4 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7EF36F : db $02 : dw $0000 ; Keys
dl $7EF184 : db $02 : dw $400F ; Room $00C2: Misery Mire (Big Hub Room) (..d..........qqq)
dl $7E0540 : db $02 : dw $2E64 ; Object tilemap state
dl $7E0544 : db $02 : dw $3440 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E002F : db $01 : db $04 ; Link's direction
.after
sram_nmg_mire_sluggulas:
dl $7E0542 : db $02 : dw $1430 ; Object tilemap state
dl $7E0546 : db $02 : dw $1C30 ; Object tilemap state
dl $7EF182 : db $02 : dw $C403 ; Room $00C1: Misery Mire (Compass Chest / Tile Room) (.dd...K........q)
dl $7E0540 : db $02 : dw $140C ; Object tilemap state
dl $7E0544 : db $02 : dw $1C0C ; Object tilemap state
dl $7FE124 : db $02 : dw $0000 ; Room $D2 persistent: Misery Mire (Mire02 / Wizzrobes Room)
dl $7E0B37 : db $01 : db $9E ; Arc variable
dl $7FE102 : db $02 : dw $0200 ; Room $C1 persistent: Misery Mire (Compass Chest / Tile Room)
dl $7EC172 : db $01 : db $01 ; Crystal switch state
dl $7E002F : db $01 : db $02 ; Link's direction
.after
sram_nmg_mire_torches:
dl $7E0542 : db $02 : dw $0430 ; Object tilemap state
dl $7E0546 : db $02 : dw $0C70 ; Object tilemap state
dl $7E054A : db $02 : dw $0470 ; Object tilemap state
dl $7EF373 : db $01 : db $6F ; Magic filler
dl $7E0FCA : db $01 : db $03 ; Prize pack index
dl $7EF1A2 : db $02 : dw $0008 ; Room $00D1: Misery Mire (Conveyor Slug / Big Key Room) (.............q..)
dl $7EF36E : db $01 : db $51 ; Magic Power
dl $7E0540 : db $02 : dw $07A8 ; Object tilemap state
dl $7E0544 : db $02 : dw $0C4C ; Object tilemap state
dl $7E0548 : db $02 : dw $044C ; Object tilemap state
dl $7E0B37 : db $01 : db $91 ; Arc variable
dl $7E002F : db $01 : db $00 ; Link's direction
dl $7FE122 : db $02 : dw $0040 ; Room $D1 persistent: Misery Mire (Conveyor Slug / Big Key Room)
.after
sram_nmg_mire_spark_gamble:
dl $7E0542 : db $02 : dw $1430 ; Object tilemap state
dl $7E0546 : db $02 : dw $1C30 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7EF373 : db $01 : db $00 ; Magic filler
dl $7EF12E : db $02 : dw $010F ; Room $0097: Misery Mire (Torch Puzzle / Moving Wall Room) (........c....qqq)
dl $7EF162 : db $02 : dw $0007 ; Room $00B1: Misery Mire (Hourglass Room) (..............qq)
dl $7EF182 : db $02 : dw $C407 ; Room $00C1: Misery Mire (Compass Chest / Tile Room) (.dd...K.......qq)
dl $7EF1A2 : db $02 : dw $001B ; Room $00D1: Misery Mire (Conveyor Slug / Big Key Room) (............qq.q)
dl $7EF366 : db $02 : dw $77B0 ; BigKey1
dl $7EF36E : db $01 : db $40 ; Magic Power
dl $7E0540 : db $02 : dw $140C ; Object tilemap state
dl $7E0544 : db $02 : dw $1C0C ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E0CC3 : db $01 : db $01 ; Sprite drop
dl $7E0B37 : db $01 : db $00 ; Arc variable
dl $7E002F : db $01 : db $06 ; Link's direction
.after
sram_nmg_mire_big_chest_room:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7EC74A : db $02 : dw $24F5 ; Selected menu gfx, row 1
dl $7EF36D : db $01 : db $50 ; Health (actual)
dl $7EF186 : db $02 : dw $000A ; Room $00C3: Misery Mire (Big Chest Room) (.............q.q)
dl $7E0303 : db $01 : db $0E ; Selected menu item
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E0202 : db $01 : db $03 ; Selected menu item
dl $7E0B37 : db $01 : db $A0 ; Arc variable
dl $7EC74C : db $02 : dw $24F6 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $24F5 ; Selected menu gfx, row 2
dl $7FE102 : db $02 : dw $0000 ; Room $C1 persistent: Misery Mire (Compass Chest / Tile Room)
dl $7FE122 : db $02 : dw $0000 ; Room $D1 persistent: Misery Mire (Conveyor Slug / Big Key Room)
.after
sram_nmg_mire_spike_key:
dl $7EF350 : db $01 : db $01 ; Cane of Somaria
dl $7EF186 : db $02 : dw $001F ; Room $00C3: Misery Mire (Big Chest Room) (............qqqq)
dl $7E0B37 : db $01 : db $00 ; Arc variable
dl $7E0B3F : db $01 : db $01 ; Arc variable
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_mire_wizzrobe:
dl $7E0542 : db $02 : dw $1430 ; Object tilemap state
dl $7EF36D : db $01 : db $38 ; Health (actual)
dl $7EF166 : db $02 : dw $841A ; Room $00B3: Misery Mire (Spike Key Chest Room) (.d....K.....qq.q)
dl $7E0540 : db $02 : dw $140C ; Object tilemap state
dl $7E0544 : db $02 : dw $1C30 ; Object tilemap state
dl $7E0CC3 : db $01 : db $00 ; Sprite drop
dl $7E002F : db $01 : db $04 ; Link's direction
.after
sram_nmg_mire_basement:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7EF144 : db $02 : dw $800F ; Room $00A2: Misery Mire (Bridge Key Chest Room) (.d...........qqq)
dl $7EF164 : db $02 : dw $800D ; Room $00B2: Misery Mire (Slug Room) (.d...........qq.)
dl $7EF360 : db $02 : dw $0065 ; Rupees (goal)
dl $7EF362 : db $02 : dw $0065 ; Rupees (actual)
dl $7FE0E4 : db $02 : dw $0001 ; Room $B2 persistent: Misery Mire (Slug Room)
dl $7E0540 : db $02 : dw $1C0C ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_mire_spooky_action_1:
dl $7E0542 : db $02 : dw $0760 ; Object tilemap state
dl $7E0546 : db $02 : dw $17A0 ; Object tilemap state
dl $7E054A : db $02 : dw $18A0 ; Object tilemap state
dl $7EC74A : db $02 : dw $24DC ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $24EC ; Selected menu gfx, row 2
dl $7EF126 : db $02 : dw $000E ; Room $0093: Misery Mire (Dark Cane Floor Switch Puzzle Room) (.............qqq)
dl $7EF36E : db $01 : db $38 ; Magic Power
dl $7E0303 : db $01 : db $12 ; Selected menu item
dl $7E0540 : db $02 : dw $071C ; Object tilemap state
dl $7E0544 : db $02 : dw $179C ; Object tilemap state
dl $7E0548 : db $02 : dw $189C ; Object tilemap state
dl $7E0202 : db $01 : db $11 ; Selected menu item
dl $7EC74C : db $02 : dw $24DD ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $24ED ; Selected menu gfx, row 2
dl $7E02A2 : db $01 : db $00 ; Arc variable
dl $7E002F : db $01 : db $04 ; Link's direction
; Manual changes:
dl $7E02A2 : db $01 : db $8B ; Altitude
dl $7E0202 : db $01 : db $06 ; Selected menu item
dl $7E0303 : db $01 : db $05 ; Selected menu item
dl $7EC74A : db $02 : dw $24B0 ; Selected menu gfx, row 1
dl $7EC74C : db $02 : dw $24B1 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $24C0 ; Selected menu gfx, row 2
dl $7EC78C : db $02 : dw $24C1 ; Selected menu gfx, row 2
.after
sram_nmg_mire_spooky_action_2:
dl $7E0542 : db $02 : dw $175C ; Object tilemap state
dl $7E0546 : db $02 : dw $1768 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7EC74A : db $02 : dw $2CB2 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $2CC2 ; Selected menu gfx, row 2
dl $7EF124 : db $02 : dw $0005 ; Room $0092: Misery Mire (Dark Bomb Wall / Switches Room) (..............q.)
dl $7EF36E : db $01 : db $30 ; Magic Power
dl $7E0303 : db $01 : db $01 ; Selected menu item
dl $7E0540 : db $02 : dw $1756 ; Object tilemap state
dl $7E0544 : db $02 : dw $1762 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E0202 : db $01 : db $04 ; Selected menu item
dl $7E0B37 : db $01 : db $17 ; Arc variable
dl $7E0B3F : db $01 : db $00 ; Arc variable
dl $7EC74C : db $02 : dw $2CB3 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $6CC2 ; Selected menu gfx, row 2
dl $7EC172 : db $01 : db $00 ; Crystal switch state
; Manual changes:
dl $7E02A2 : db $01 : db $8B ; Altitude
dl $7E0202 : db $01 : db $06 ; Selected menu item
dl $7E0303 : db $01 : db $05 ; Selected menu item
dl $7EC74A : db $02 : dw $24B0 ; Selected menu gfx, row 1
dl $7EC74C : db $02 : dw $24B1 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $24C0 ; Selected menu gfx, row 2
dl $7EC78C : db $02 : dw $24C1 ; Selected menu gfx, row 2
.after
sram_nmg_mire_vitty:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7EF343 : db $01 : db $01 ; Bombs
dl $7EC74A : db $02 : dw $28BA ; Selected menu gfx, row 1
dl $7EF377 : db $01 : db $14 ; Arrows
dl $7EC78A : db $02 : dw $2849 ; Selected menu gfx, row 2
dl $7EF124 : db $02 : dw $400F ; Room $0092: Misery Mire (Dark Bomb Wall / Switches Room) (..d..........qqq)
dl $7EF140 : db $02 : dw $800F ; Room $00A0: Misery Mire (Pre-Vitreous Room) (.d...........qqq)
dl $7EF122 : db $02 : dw $0005 ; Room $0091: Misery Mire (Final Switch Room) (..............q.)
dl $7EF36E : db $01 : db $40 ; Magic Power
dl $7E0303 : db $01 : db $03 ; Selected menu item
dl $7FE0A4 : db $02 : dw $0200 ; Room $92 persistent: Misery Mire (Dark Bomb Wall / Switches Room)
dl $7FE0E4 : db $02 : dw $0000 ; Room $B2 persistent: Misery Mire (Slug Room)
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E0202 : db $01 : db $01 ; Selected menu item
dl $7E0B37 : db $01 : db $1D ; Arc variable
dl $7EC74C : db $02 : dw $284A ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $28CB ; Selected menu gfx, row 2
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_trock_outside_mire:
dl $7EC74A : db $02 : dw $2C62 ; Selected menu gfx, row 1
dl $7EF36F : db $01 : db $FF ; Keys
dl $7EF377 : db $01 : db $0C ; Arrows
dl $7EF383 : db $01 : db $00 ; Key for dungeon $07
dl $7EC78A : db $02 : dw $2C72 ; Selected menu gfx, row 2
dl $7EF120 : db $02 : dw $0802 ; Room $0090: Misery Mire (Vitreous[Boss]) (.....k.........q)
dl $7EF36C : db $01 : db $60 ; Health (goal)
dl $7EF36D : db $01 : db $60 ; Health (actual)
dl $7EF3F1 : db $02 : dw $0000 ; Deaths
dl $7EF36E : db $01 : db $80 ; Magic Power
dl $7EF37A : db $01 : db $77 ; Crystals
dl $7E0303 : db $01 : db $14 ; Selected menu item
dl $7FE0A4 : db $01 : db $00 ; Overworld $92 persistent: UNKNOWN
dl $7E0202 : db $01 : db $14 ; Selected menu item
dl $7EC74C : db $02 : dw $2C63 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $2C73 ; Selected menu gfx, row 2
dl $7E002F : db $01 : db $02 ; Link's direction
.after
sram_nmg_trock_icerod_overworld:
dl $7EC74A : db $02 : dw $2CD4 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $2CE4 ; Selected menu gfx, row 2
dl $7E1ABF : db $01 : db $28 ; Warp Vortex Coordinate
dl $7E1ACF : db $01 : db $01 ; Warp Vortex Coordinate
dl $7E1ADF : db $01 : db $DA ; Warp Vortex Coordinate
dl $7E1AEF : db $01 : db $0C ; Warp Vortex Coordinate
dl $7EF3CA : db $01 : db $00 ; LW/DW
dl $7E0303 : db $01 : db $08 ; Selected menu item
dl $7E0202 : db $01 : db $0D ; Selected menu item
dl $7EC74C : db $02 : dw $2CD5 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $2CE5 ; Selected menu gfx, row 2
dl $7FE0D6 : db $01 : db $0B ; Overworld $AB persistent: UNKNOWN
dl $7E02A2 : db $01 : db $38 ; Arc variable
dl $7FE047 : db $01 : db $BB ; Overworld $63 persistent: UNKNOWN
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_trock_dm:
dl $7EF2B7 : db $01 : db $02 ; Overworld $37: Unknown (.......?)
dl $7EF343 : db $01 : db $00 ; Bombs
dl $7EF240 : db $02 : dw $001A ; Room $0120: Unknown (............qq.q)
dl $7EF346 : db $01 : db $01 ; Ice Rod
dl $7E029F : db $01 : db $FF ; Arc variable
dl $7E0B37 : db $01 : db $00 ; Arc variable
dl $7FDFCB : db $01 : db $F3 ; Overworld $25 persistent: Octorok Area
dl $7FE0D6 : db $01 : db $00 ; Overworld $AB persistent: UNKNOWN
dl $7E02A2 : db $01 : db $FE ; Arc variable
dl $7FE047 : db $01 : db $00 ; Overworld $63 persistent: UNKNOWN
dl $7E002F : db $01 : db $06 ; Link's direction
dl $7E010E : db $01 : db $84 ; Dungeon entrance index
.after
sram_nmg_trock_squirrels:
dl $7EC74A : db $02 : dw $24F5 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $24C0 ; Selected menu gfx, row 2
dl $7EF1BE : db $02 : dw $0003 ; Room $00DF: Cave (...............q)
dl $7EF1DE : db $02 : dw $0003 ; Room $00EF: Cave (Crystal Switch / 5 Chests Room) (...............q)
dl $7E0303 : db $01 : db $0E ; Selected menu item
dl $7E0202 : db $01 : db $03 ; Selected menu item
dl $7EC74C : db $02 : dw $24F6 ; Selected menu gfx, row 1
dl $7FDFCB : db $01 : db $00 ; Room $25 persistent: Empty Clone Room
dl $7EC78C : db $02 : dw $24F5 ; Selected menu gfx, row 2
dl $7E02A2 : db $01 : db $84 ; Arc variable
dl $7E002F : db $01 : db $02 ; Link's direction
dl $7E010E : db $01 : db $1F ; Dungeon entrance index
dl $7FE13E : db $02 : dw $0003 ; Room $DF persistent: Cave
.after
sram_nmg_trock_peg_puzzle:
dl $7FE17F : db $01 : db $CA ; Overworld $FF persistent: UNKNOWN
dl $7FE1BF : db $01 : db $EC ; Overworld $11F persistent: UNKNOWN
dl $7FE058 : db $01 : db $CA ; Overworld $6C persistent: Dark Link's House
dl $7FE16E : db $01 : db $28 ; Overworld $F7 persistent: UNKNOWN
dl $7FE037 : db $01 : db $28 ; Overworld $5B persistent: Pyramid of Power
dl $7E002F : db $01 : db $06 ; Link's direction
dl $7FE13E : db $01 : db $00 ; Overworld $DF persistent: UNKNOWN
.after
sram_nmg_trock_entrance:
dl $7EF287 : db $02 : dw $0020 ; Overworld $07: Unknown (...?....)
dl $7EF2C7 : db $01 : db $20 ; Overworld $47: Unknown (...?....)
dl $7EC74A : db $02 : dw $24DC ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $24EC ; Selected menu gfx, row 2
dl $7EF36E : db $01 : db $60 ; Magic Power
dl $7EF3CA : db $01 : db $40 ; LW/DW
dl $7FE17F : db $01 : db $00 ; Overworld $FF persistent: UNKNOWN
dl $7FE1BF : db $01 : db $00 ; Overworld $11F persistent: UNKNOWN
dl $7E0303 : db $01 : db $12 ; Selected menu item
dl $7FE058 : db $01 : db $00 ; Overworld $6C persistent: Dark Link's House
dl $7E0202 : db $01 : db $11 ; Selected menu item
dl $7EC74C : db $02 : dw $24DD ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $24ED ; Selected menu gfx, row 2
dl $7FE16E : db $01 : db $00 ; Overworld $F7 persistent: UNKNOWN
dl $7FE037 : db $01 : db $00 ; Overworld $5B persistent: Pyramid of Power
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_trock_torches:
dl $7E0542 : db $02 : dw $190C ; Object tilemap state
dl $7EF343 : db $01 : db $01 ; Bombs
dl $7EF36F : db $01 : db $00 ; Keys
dl $7E0FCC : db $01 : db $06 ; Prize pack index
dl $7EF18C : db $02 : dw $000F ; Room $00C6: Turtle Rock (.............qqq)
dl $7EF1AC : db $02 : dw $8005 ; Room $00D6: Turtle Rock (Entrance Room) (.d............q.)
dl $7EF36E : db $01 : db $70 ; Magic Power
dl $7FE10C : db $02 : dw $0028 ; Room $C6 persistent: Turtle Rock
dl $7E0540 : db $02 : dw $070C ; Object tilemap state
dl $7E02A2 : db $01 : db $00 ; Arc variable
dl $7E002F : db $01 : db $06 ; Link's direction
dl $7E010E : db $01 : db $35 ; Dungeon entrance index
.after
sram_nmg_trock_roller_room:
dl $7E0542 : db $02 : dw $0B0C ; Object tilemap state
dl $7E0546 : db $02 : dw $160C ; Object tilemap state
dl $7E054A : db $02 : dw $894A ; Object tilemap state
dl $7E054E : db $02 : dw $8DCA ; Object tilemap state
dl $7EC74A : db $02 : dw $24F5 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $24C0 ; Selected menu gfx, row 2
dl $7EF36D : db $01 : db $58 ; Health (actual)
dl $7EF18E : db $02 : dw $000F ; Room $00C7: Turtle Rock (Torch Puzzle) (.............qqq)
dl $7EF36E : db $01 : db $38 ; Magic Power
dl $7E0303 : db $01 : db $0E ; Selected menu item
dl $7E0468 : db $02 : dw $0000 ; Trap door state
dl $7E0540 : db $02 : dw $0A0C ; Object tilemap state
dl $7E0544 : db $02 : dw $1C0C ; Object tilemap state
dl $7E0548 : db $02 : dw $8932 ; Object tilemap state
dl $7E054C : db $02 : dw $8DB2 ; Object tilemap state
dl $7E0202 : db $01 : db $03 ; Selected menu item
dl $7EC74C : db $02 : dw $24F6 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $24F5 ; Selected menu gfx, row 2
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_trock_pokey_0:
dl $7E0542 : db $02 : dw $190C ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7EC74A : db $02 : dw $24DC ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $24EC ; Selected menu gfx, row 2
dl $7EF18C : db $02 : dw $800F ; Room $00C6: Turtle Rock (.d...........qqq)
dl $7EF36D : db $01 : db $40 ; Health (actual)
dl $7EF16E : db $02 : dw $002A ; Room $00B7: Turtle Rock (Map Chest / Key Chest / Roller Room) (...........c.q.q)
dl $7EF36E : db $01 : db $30 ; Magic Power
dl $7E0303 : db $01 : db $12 ; Selected menu item
dl $7E0468 : db $02 : dw $0001 ; Trap door state
dl $7E0540 : db $02 : dw $070C ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E0202 : db $01 : db $11 ; Selected menu item
dl $7EC74C : db $02 : dw $24DD ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $24ED ; Selected menu gfx, row 2
.after
sram_nmg_trock_chomps:
dl $7E0542 : db $02 : dw $0A96 ; Object tilemap state
dl $7EF16C : db $02 : dw $3402 ; Room $00B6: Turtle Rock (Chain Chomps Room) (...db.K........q)
dl $7EF36D : db $01 : db $48 ; Health (actual)
dl $7EF372 : db $01 : db $30 ; Hearts filler
dl $7FE0EC : db $02 : dw $0020 ; Room $B6 persistent: Turtle Rock (Chain Chomps Room)
dl $7E0540 : db $02 : dw $095E ; Object tilemap state
dl $7E0544 : db $02 : dw $0AA6 ; Object tilemap state
dl $7E0FCD : db $01 : db $02 ; Prize pack index
.after
sram_nmg_trock_pokey_1:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7EF377 : db $01 : db $11 ; Arrows
dl $7EF028 : db $02 : dw $000F ; Room $0014: Turtle Rock (Big Key Room) (.............qqq)
dl $7EF16C : db $02 : dw $B41A ; Room $00B6: Turtle Rock (Chain Chomps Room) (.d.db.K.....qq.q)
dl $7EF36D : db $01 : db $60 ; Health (actual)
dl $7EF02A : db $02 : dw $000F ; Room $0015: Turtle Rock (.............qqq)
dl $7EF36E : db $01 : db $28 ; Magic Power
dl $7EF372 : db $01 : db $00 ; Hearts filler
dl $7FE10C : db $02 : dw $0000 ; Room $C6 persistent: Turtle Rock
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7EC172 : db $01 : db $01 ; Crystal switch state
dl $7E002F : db $01 : db $04 ; Link's direction
; Manual changes:
dl $7EC172 : db $01 : db $00 ; Crystal switch state
.after
sram_nmg_trock_pokeys_2:
dl $7EF028 : db $02 : dw $401F ; Room $0014: Turtle Rock (Big Key Room) (..d.........qqqq)
dl $7EF360 : db $02 : dw $0079 ; Rupees (goal)
dl $7EF026 : db $02 : dw $8405 ; Room $0013: Turtle Rock (Hokku-Bokku Key Room 2) (.d....K.......q.)
dl $7EF362 : db $02 : dw $0079 ; Rupees (actual)
dl $7EF366 : db $02 : dw $77B8 ; BigKey1
dl $7EF36E : db $01 : db $78 ; Magic Power
dl $7E0FCD : db $01 : db $04 ; Prize pack index
dl $7FDFA6 : db $02 : dw $0040 ; Room $13 persistent: Turtle Rock (Hokku-Bokku Key Room 2)
dl $7EC172 : db $01 : db $00 ; Crystal switch state
dl $7E002F : db $01 : db $02 ; Link's direction
; Manual changes:
dl $7EC172 : db $01 : db $00 ; Crystal switch state
.after
sram_nmg_trock_crystal_roller:
dl $7EF028 : db $02 : dw $C01F ; Room $0014: Turtle Rock (Big Key Room) (.dd.........qqqq)
dl $7EF048 : db $02 : dw $800C ; Room $0024: Turtle Rock (Double Hokku-Bokku / Big chest Room) (.d...........qq.)
dl $7FDFC8 : db $02 : dw $0028 ; Room $24 persistent: Turtle Rock (Double Hokku-Bokku / Big chest Room)
dl $7FE0EC : db $02 : dw $0000 ; Room $B6 persistent: Turtle Rock (Chain Chomps Room)
dl $7E0FCD : db $01 : db $06 ; Prize pack index
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_trock_dark_room:
dl $7E0542 : db $02 : dw $16A2 ; Object tilemap state
dl $7E0546 : db $02 : dw $19A2 ; Object tilemap state
dl $7E054A : db $02 : dw $13F0 ; Object tilemap state
dl $7E0B35 : db $01 : db $00 ; Arc variable
dl $7EF008 : db $02 : dw $C01A ; Room $0004: Turtle Rock (Crysta-roller Room) (.dd.........qq.q)
dl $7E0B36 : db $01 : db $00 ; Arc variable
dl $7E0540 : db $02 : dw $1698 ; Object tilemap state
dl $7E0544 : db $02 : dw $1998 ; Object tilemap state
dl $7E0548 : db $02 : dw $13CC ; Object tilemap state
dl $7E054C : db $02 : dw $5A5E ; Object tilemap state
dl $7E0B33 : db $01 : db $00 ; Arc variable
dl $7E0B37 : db $01 : db $62 ; Arc variable
dl $7E0B3B : db $01 : db $00 ; Arc variable
dl $7EC172 : db $01 : db $01 ; Crystal switch state
dl $7E0B0C : db $01 : db $A0 ; Arc variable
dl $7E0B34 : db $01 : db $00 ; Arc variable
dl $7E0B3C : db $01 : db $00 ; Arc variable
.after
sram_nmg_trock_laser_skip:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7EF36D : db $01 : db $58 ; Health (actual)
dl $7EF16A : db $02 : dw $000F ; Room $00B5: Turtle Rock (Dark Maze) (.............qqq)
dl $7EF18A : db $02 : dw $000A ; Room $00C5: Turtle Rock (Laser Bridge) (.............q.q)
dl $7EF36E : db $01 : db $70 ; Magic Power
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E0B37 : db $01 : db $5F ; Arc variable
dl $7FDFA6 : db $02 : dw $0000 ; Room $13 persistent: Turtle Rock (Hokku-Bokku Key Room 2)
dl $7FE10A : db $02 : dw $0040 ; Room $C5 persistent: Turtle Rock (Laser Bridge)
dl $7E002F : db $01 : db $02 ; Link's direction
.after
sram_nmg_trock_switch_room:
dl $7EF18A : db $02 : dw $800A ; Room $00C5: Turtle Rock (Laser Bridge) (.d...........q.q)
dl $7EF1AA : db $02 : dw $008A ; Room $00D5: Turtle Rock (Laser Key Room) (.........c...q.q)
dl $7FDFC8 : db $02 : dw $0000 ; Room $24 persistent: Turtle Rock (Double Hokku-Bokku / Big chest Room)
dl $7E002F : db $01 : db $04 ; Link's direction
dl $7FE12A : db $02 : dw $0010 ; Room $D5 persistent: Turtle Rock (Laser Key Room)
.after
sram_nmg_trock_trinexx:
dl $7E0542 : db $02 : dw $1C30 ; Object tilemap state
dl $7EF168 : db $02 : dw $800F ; Room $00B4: Turtle Rock (Pre-Trinexx Room) (.d...........qqq)
dl $7EF188 : db $02 : dw $800F ; Room $00C4: Turtle Rock (Final Crystal Switch Puzzle Room) (.d...........qqq)
dl $7EF36E : db $01 : db $60 ; Magic Power
dl $7E0540 : db $02 : dw $1C2C ; Object tilemap state
dl $7E02A1 : db $01 : db $00 ; Arc variable
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_gtower_outside_trock:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7E0B09 : db $01 : db $60 ; Arc variable
dl $7EC74A : db $02 : dw $24F5 ; Selected menu gfx, row 1
dl $7EF36F : db $01 : db $FF ; Keys
dl $7EC78A : db $02 : dw $24C0 ; Selected menu gfx, row 2
dl $7EF3C7 : db $01 : db $08 ; Map Phase
dl $7EF3FB : db $02 : dw $0000 ; Deaths
dl $7EF148 : db $02 : dw $0802 ; Room $00A4: Turtle Rock (Trinexx[Boss]) (.....k.........q)
dl $7EF36C : db $01 : db $68 ; Health (goal)
dl $7EF36D : db $01 : db $68 ; Health (actual)
dl $7EF36E : db $01 : db $80 ; Magic Power
dl $7EF37A : db $01 : db $7F ; Crystals
dl $7E0303 : db $01 : db $0E ; Selected menu item
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0202 : db $01 : db $03 ; Selected menu item
dl $7EC74C : db $02 : dw $24F6 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $24F5 ; Selected menu gfx, row 2
dl $7FE10A : db $01 : db $00 ; Overworld $C5 persistent: UNKNOWN
dl $7E0B08 : db $01 : db $78 ; Arc variable
dl $7E0B0C : db $01 : db $3C ; Arc variable
dl $7E002F : db $01 : db $02 ; Link's direction
dl $7FE12A : db $01 : db $00 ; Overworld $D5 persistent: UNKNOWN
.after
sram_nmg_gtower_entrance:
dl $7EF2C3 : db $01 : db $20 ; Overworld $43: Unknown (...?....)
dl $7E002F : db $01 : db $00 ; Link's direction
dl $7E010E : db $01 : db $37 ; Dungeon entrance index
.after
sram_nmg_gtower_spike_skip:
dl $7E0542 : db $02 : dw $171C ; Object tilemap state
dl $7E0546 : db $02 : dw $0864 ; Object tilemap state
dl $7E054A : db $02 : dw $085C ; Object tilemap state
dl $7E054E : db $02 : dw $0C4C ; Object tilemap state
dl $7E0552 : db $02 : dw $144C ; Object tilemap state
dl $7E0556 : db $02 : dw $0864 ; Object tilemap state
dl $7EC74A : db $02 : dw $20B6 ; Selected menu gfx, row 1
dl $7EF36F : db $01 : db $01 ; Keys
dl $7EC78A : db $02 : dw $20C6 ; Selected menu gfx, row 2
dl $7EF018 : db $02 : dw $000F ; Room $000C: Ganon's Tower (Entrance Room) (.............qqq)
dl $7EF118 : db $02 : dw $0008 ; Room $008C: Ganon's Tower (East and West Downstairs / Big Chest Room) (.............q..)
dl $7EF116 : db $02 : dw $0404 ; Room $008B: Ganon's Tower (Block Puzzle / Spike Skip / Map Chest Room) (......K.......q.)
dl $7E0303 : db $01 : db $04 ; Selected menu item
dl $7E0468 : db $01 : db $00 ; Trap door state
dl $7E0540 : db $02 : dw $0920 ; Object tilemap state
dl $7E0544 : db $02 : dw $1720 ; Object tilemap state
dl $7E0548 : db $02 : dw $0760 ; Object tilemap state
dl $7E054C : db $02 : dw $0960 ; Object tilemap state
dl $7E0550 : db $02 : dw $0C70 ; Object tilemap state
dl $7E0554 : db $02 : dw $1C4C ; Object tilemap state
dl $7E0202 : db $01 : db $0C ; Selected menu item
dl $7E0B37 : db $01 : db $00 ; Arc variable
dl $7EC74C : db $02 : dw $20B7 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $20C7 ; Selected menu gfx, row 2
dl $7EC172 : db $02 : dw $0000 ; Crystal switch state
dl $7E0641 : db $02 : dw $0001 ; Room puzzle state (?)
dl $7E0B0C : db $01 : db $50 ; Arc variable
dl $7E002F : db $01 : db $04 ; Link's direction
.after
sram_nmg_gtower_pre_firesnakes_room:
dl $7E0542 : db $02 : dw $0C30 ; Object tilemap state
dl $7E0546 : db $02 : dw $1820 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7E0552 : db $02 : dw $0000 ; Object tilemap state
dl $7E0556 : db $02 : dw $0000 ; Object tilemap state
dl $7EC74A : db $02 : dw $2CB8 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $2CF5 ; Selected menu gfx, row 2
dl $7EF116 : db $02 : dw $040E ; Room $008B: Ganon's Tower (Block Puzzle / Spike Skip / Map Chest Room) (......K......qqq)
dl $7EF136 : db $02 : dw $8408 ; Room $009B: Ganon's Tower (Many Spikes / Warp Maze Room) (.d....K......q..)
dl $7E0303 : db $01 : db $02 ; Selected menu item
dl $7E0468 : db $02 : dw $0001 ; Trap door state
dl $7E0540 : db $02 : dw $0430 ; Object tilemap state
dl $7E0544 : db $02 : dw $181C ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E0550 : db $02 : dw $0000 ; Object tilemap state
dl $7E0554 : db $02 : dw $0000 ; Object tilemap state
dl $7E0202 : db $01 : db $02 ; Selected menu item
dl $7EC74C : db $02 : dw $2CB9 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $2CC9 ; Selected menu gfx, row 2
dl $7EC172 : db $01 : db $01 ; Crystal switch state
dl $7E0641 : db $01 : db $00 ; Room puzzle state (?)
dl $7E002F : db $01 : db $06 ; Link's direction
.after
sram_nmg_gtower_bombable_floor:
dl $7E0542 : db $02 : dw $0938 ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7EC74A : db $02 : dw $2CB2 ; Selected menu gfx, row 1
dl $7EF377 : db $01 : db $16 ; Arrows
dl $7EC78A : db $02 : dw $2CC2 ; Selected menu gfx, row 2
dl $7EF138 : db $02 : dw $000F ; Room $009C: Ganon's Tower (Invisible Floor Maze Room) (.............qqq)
dl $7EF36D : db $01 : db $60 ; Health (actual)
dl $7EF0FA : db $02 : dw $201E ; Room $007D: Ganon's Tower (Winder / Warp Maze Room) (...d........qqqq)
dl $7EF136 : db $02 : dw $840F ; Room $009B: Ganon's Tower (Many Spikes / Warp Maze Room) (.d....K......qqq)
dl $7E0303 : db $01 : db $01 ; Selected menu item
dl $7FE0B8 : db $02 : dw $0002 ; Room $9C persistent: Ganon's Tower (Invisible Floor Maze Room)
dl $7E0540 : db $02 : dw $0838 ; Object tilemap state
dl $7E0544 : db $02 : dw $0550 ; Object tilemap state
dl $7E0202 : db $01 : db $04 ; Selected menu item
dl $7EC74C : db $02 : dw $2CB3 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $6CC2 ; Selected menu gfx, row 2
dl $7EC172 : db $01 : db $00 ; Crystal switch state
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_gtower_ice_armos:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7EC74A : db $02 : dw $24B0 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $24C0 ; Selected menu gfx, row 2
dl $7EF038 : db $02 : dw $0001 ; Room $001C: Ganon's Tower (Ice Armos) (................)
dl $7EF118 : db $02 : dw $0009 ; Room $008C: Ganon's Tower (East and West Downstairs / Big Chest Room) (.............q..)
dl $7E029F : db $01 : db $00 ; Arc variable
dl $7E0303 : db $01 : db $05 ; Selected menu item
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E0202 : db $01 : db $06 ; Selected menu item
dl $7EC74C : db $02 : dw $24B1 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $24C1 ; Selected menu gfx, row 2
dl $7E002F : db $01 : db $04 ; Link's direction
.after
sram_nmg_gtower_floor_2:
dl $7E0B09 : db $01 : db $00 ; Arc variable
dl $7E0B31 : db $01 : db $BD ; Arc variable
dl $7E0B35 : db $01 : db $70 ; Arc variable
dl $7EC74A : db $02 : dw $28BA ; Selected menu gfx, row 1
dl $7EF377 : db $01 : db $0E ; Arrows
dl $7EC78A : db $02 : dw $2849 ; Selected menu gfx, row 2
dl $7EF038 : db $02 : dw $0035 ; Room $001C: Ganon's Tower (Ice Armos) (...........cq.q.)
dl $7E0B32 : db $01 : db $90 ; Arc variable
dl $7EF389 : db $01 : db $01 ; Key for dungeon $0D
dl $7EF366 : db $02 : dw $77BC ; BigKey1
dl $7E0303 : db $01 : db $03 ; Selected menu item
dl $7FE0B8 : db $01 : db $00 ; Room $9C persistent: Ganon's Tower (Invisible Floor Maze Room)
dl $7E0202 : db $01 : db $01 ; Selected menu item
dl $7E0B33 : db $01 : db $52 ; Arc variable
dl $7E0B37 : db $01 : db $13 ; Arc variable
dl $7EC74C : db $02 : dw $284A ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $28CB ; Selected menu gfx, row 2
dl $7E0B08 : db $01 : db $40 ; Arc variable
dl $7E0B30 : db $01 : db $AD ; Arc variable
dl $7E0B34 : db $01 : db $42 ; Arc variable
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_gtower_mimics1:
dl $7E0542 : db $02 : dw $052C ; Object tilemap state
dl $7E0546 : db $02 : dw $082C ; Object tilemap state
dl $7E054A : db $02 : dw $0B2C ; Object tilemap state
dl $7E054E : db $02 : dw $1962 ; Object tilemap state
dl $7EF377 : db $01 : db $0D ; Arrows
dl $7EF36D : db $01 : db $48 ; Health (actual)
dl $7EF0D6 : db $02 : dw $000C ; Room $006B: Ganon's Tower (Mimics Rooms) (.............qq.)
dl $7E0468 : db $01 : db $00 ; Trap door state
dl $7E0540 : db $02 : dw $051C ; Object tilemap state
dl $7E0544 : db $02 : dw $081C ; Object tilemap state
dl $7E0548 : db $02 : dw $0B1C ; Object tilemap state
dl $7E054C : db $02 : dw $195A ; Object tilemap state
dl $7E0550 : db $02 : dw $050C ; Object tilemap state
dl $7EC172 : db $01 : db $01 ; Crystal switch state
dl $7E0641 : db $02 : dw $0001 ; Room puzzle state (?)
dl $7E002F : db $01 : db $02 ; Link's direction
.after
sram_nmg_gtower_mimics2:
dl $7EF377 : db $01 : db $0E ; Arrows
dl $7EF0D6 : db $02 : dw $000E ; Room $006B: Ganon's Tower (Mimics Rooms) (.............qqq)
dl $7FE056 : db $02 : dw $0240 ; Room $6B persistent: Ganon's Tower (Mimics Rooms)
dl $7E0641 : db $01 : db $00 ; Room puzzle state (?)
dl $7E002F : db $01 : db $06 ; Link's direction
dl $7E0FCB : db $01 : db $04 ; Prize pack index
.after
sram_nmg_gtower_spike_room:
dl $7EF377 : db $01 : db $0A ; Arrows
dl $7EF0D6 : db $02 : dw $800F ; Room $006B: Ganon's Tower (Mimics Rooms) (.d...........qqq)
dl $7E0468 : db $01 : db $01 ; Trap door state
dl $7FE056 : db $02 : dw $2640 ; Room $6B persistent: Ganon's Tower (Mimics Rooms)
dl $7E002F : db $01 : db $00 ; Link's direction
dl $7E0FCB : db $01 : db $05 ; Prize pack index
.after
sram_nmg_gtower_gauntlet:
dl $7E0542 : db $02 : dw $16D8 ; Object tilemap state
dl $7E0546 : db $02 : dw $19D8 ; Object tilemap state
dl $7E054A : db $02 : dw $19E4 ; Object tilemap state
dl $7E054E : db $02 : dw $16E4 ; Object tilemap state
dl $7EF0B8 : db $02 : dw $000C ; Room $005C: Ganon's Tower (Ganon-Ball Z) (.............qq.)
dl $7EF0B6 : db $02 : dw $8005 ; Room $005B: Ganon's Tower (Spike Pit Room) (.d............q.)
dl $7E0540 : db $02 : dw $165E ; Object tilemap state
dl $7E0544 : db $02 : dw $1854 ; Object tilemap state
dl $7E0548 : db $02 : dw $1A5E ; Object tilemap state
dl $7E054C : db $02 : dw $1868 ; Object tilemap state
dl $7E0550 : db $02 : dw $0000 ; Object tilemap state
dl $7EC172 : db $01 : db $00 ; Crystal switch state
.after
sram_nmg_gtower_gauntlet_3:
dl $7E0542 : db $02 : dw $052C ; Object tilemap state
dl $7E0546 : db $02 : dw $0B2C ; Object tilemap state
dl $7E054A : db $02 : dw $1430 ; Object tilemap state
dl $7E054E : db $02 : dw $1C30 ; Object tilemap state
dl $7EF377 : db $01 : db $08 ; Arrows
dl $7E0FCC : db $01 : db $02 ; Prize pack index
dl $7EF0BA : db $02 : dw $000C ; Room $005D: Ganon's Tower (Gauntlet 1/2/3) (.............qq.)
dl $7E0468 : db $02 : dw $0000 ; Trap door state
dl $7E0540 : db $02 : dw $0510 ; Object tilemap state
dl $7E0544 : db $02 : dw $0B10 ; Object tilemap state
dl $7E0548 : db $02 : dw $140C ; Object tilemap state
dl $7E054C : db $02 : dw $1C0C ; Object tilemap state
dl $7FE03A : db $02 : dw $00FD ; Room $5D persistent: Ganon's Tower (Gauntlet 1/2/3)
dl $7E002F : db $01 : db $02 ; Link's direction
.after
sram_nmg_gtower_lanmola2:
dl $7E0542 : db $02 : dw $0628 ; Object tilemap state
dl $7E0546 : db $02 : dw $0A28 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7EC74A : db $02 : dw $24B0 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $24C0 ; Selected menu gfx, row 2
dl $7E0FCC : db $01 : db $04 ; Prize pack index
dl $7EF0D8 : db $02 : dw $0001 ; Room $006C: Ganon's Tower (Lanmolas Room) (................)
dl $7EF36D : db $01 : db $40 ; Health (actual)
dl $7EF0BA : db $02 : dw $000E ; Room $005D: Ganon's Tower (Gauntlet 1/2/3) (.............qqq)
dl $7EF0DA : db $02 : dw $000A ; Room $006D: Ganon's Tower (Gauntlet 4/5) (.............q.q)
dl $7EF36E : db $01 : db $70 ; Magic Power
dl $7E0303 : db $01 : db $05 ; Selected menu item
dl $7E0468 : db $02 : dw $0001 ; Trap door state
dl $7E0540 : db $02 : dw $0614 ; Object tilemap state
dl $7E0544 : db $02 : dw $0A14 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E0202 : db $01 : db $06 ; Selected menu item
dl $7EC74C : db $02 : dw $24B1 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $24C1 ; Selected menu gfx, row 2
dl $7FE03A : db $02 : dw $0EFD ; Room $5D persistent: Ganon's Tower (Gauntlet 1/2/3)
dl $7FE056 : db $02 : dw $0000 ; Room $6B persistent: Ganon's Tower (Mimics Rooms)
dl $7FE05A : db $02 : dw $00C9 ; Room $6D persistent: Ganon's Tower (Gauntlet 4/5)
dl $7E002F : db $01 : db $04 ; Link's direction
.after
sram_nmg_gtower_wizz1:
dl $7EF0D8 : db $02 : dw $000B ; Room $006C: Ganon's Tower (Lanmolas Room) (.............q.q)
dl $7EF36E : db $01 : db $20 ; Magic Power
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_gtower_wizz2:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7EC74A : db $02 : dw $24DC ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $24EC ; Selected menu gfx, row 2
dl $7EF36D : db $01 : db $48 ; Health (actual)
dl $7EF14A : db $02 : dw $000B ; Room $00A5: Ganon's Tower (Wizzrobes Rooms) (.............q.q)
dl $7EF36E : db $01 : db $18 ; Magic Power
dl $7E0303 : db $01 : db $12 ; Selected menu item
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E0202 : db $01 : db $11 ; Selected menu item
dl $7EC74C : db $02 : dw $24DD ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $24ED ; Selected menu gfx, row 2
dl $7FE0CA : db $02 : dw $008C ; Room $A5 persistent: Ganon's Tower (Wizzrobes Rooms)
dl $7E0FC7 : db $01 : db $04 ; Prize pack index
.after
sram_nmg_gtower_torches1:
dl $7EC74A : db $02 : dw $24BC ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $24CC ; Selected menu gfx, row 2
dl $7EF12A : db $02 : dw $0005 ; Room $0095: Ganon's Tower (Final Collapsing Bridge Room) (..............q.)
dl $7EF14A : db $02 : dw $000F ; Room $00A5: Ganon's Tower (Wizzrobes Rooms) (.............qqq)
dl $7EF36E : db $01 : db $10 ; Magic Power
dl $7E0303 : db $01 : db $09 ; Selected menu item
dl $7E0202 : db $01 : db $0B ; Selected menu item
dl $7E0B37 : db $01 : db $0C ; Arc variable
dl $7E0B3F : db $01 : db $01 ; Arc variable
dl $7EC74C : db $02 : dw $24BD ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $24CD ; Selected menu gfx, row 2
dl $7FE03A : db $02 : dw $0000 ; Room $5D persistent: Ganon's Tower (Gauntlet 1/2/3)
dl $7FE0CA : db $02 : dw $00EF ; Room $A5 persistent: Ganon's Tower (Wizzrobes Rooms)
dl $7E002F : db $01 : db $06 ; Link's direction
dl $7E0FC7 : db $01 : db $06 ; Prize pack index
.after
sram_nmg_gtower_torches2:
dl $7E0542 : db $02 : dw $1570 ; Object tilemap state
dl $7E0546 : db $02 : dw $0B2E ; Object tilemap state
dl $7E054A : db $02 : dw $120E ; Object tilemap state
dl $7E054E : db $02 : dw $1820 ; Object tilemap state
dl $7E0552 : db $02 : dw $8B0C ; Object tilemap state
dl $7E0556 : db $02 : dw $9220 ; Object tilemap state
dl $7EC74A : db $02 : dw $24B0 ; Selected menu gfx, row 1
dl $7EF373 : db $01 : db $25 ; Magic filler
dl $7EC78A : db $02 : dw $24C0 ; Selected menu gfx, row 2
dl $7EF12C : db $02 : dw $000B ; Room $0096: Ganon's Tower (Torches 1 Room) (.............q.q)
dl $7EF36E : db $01 : db $5F ; Magic Power
dl $7E0303 : db $01 : db $05 ; Selected menu item
dl $7E0468 : db $02 : dw $0000 ; Trap door state
dl $7E0540 : db $02 : dw $154C ; Object tilemap state
dl $7E0544 : db $02 : dw $0520 ; Object tilemap state
dl $7E0548 : db $02 : dw $1120 ; Object tilemap state
dl $7E054C : db $02 : dw $180E ; Object tilemap state
dl $7E0550 : db $02 : dw $8420 ; Object tilemap state
dl $7E0554 : db $02 : dw $8B32 ; Object tilemap state
dl $7E0202 : db $01 : db $06 ; Selected menu item
dl $7E0B37 : db $01 : db $0E ; Arc variable
dl $7EC74C : db $02 : dw $24B1 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $24C1 ; Selected menu gfx, row 2
dl $7FE05A : db $02 : dw $0000 ; Room $6D persistent: Ganon's Tower (Gauntlet 4/5)
dl $7E002F : db $01 : db $00 ; Link's direction
.after
sram_nmg_gtower_helma_key:
dl $7E0CBC : db $01 : db $01 ; Sprite drop
dl $7E0542 : db $02 : dw $0C70 ; Object tilemap state
dl $7E0546 : db $02 : dw $1628 ; Object tilemap state
dl $7E054A : db $02 : dw $1A14 ; Object tilemap state
dl $7E054E : db $02 : dw $954C ; Object tilemap state
dl $7E0552 : db $02 : dw $9C50 ; Object tilemap state
dl $7E0556 : db $02 : dw $0000 ; Object tilemap state
dl $7EF373 : db $01 : db $00 ; Magic filler
dl $7EF07A : db $02 : dw $0001 ; Room $003D: Ganon's Tower (Torch Room 2) (................)
dl $7EF36E : db $01 : db $40 ; Magic Power
dl $7E0540 : db $02 : dw $0C4C ; Object tilemap state
dl $7E0544 : db $02 : dw $1618 ; Object tilemap state
dl $7E0548 : db $02 : dw $1820 ; Object tilemap state
dl $7E054C : db $02 : dw $1A24 ; Object tilemap state
dl $7E0550 : db $02 : dw $9570 ; Object tilemap state
dl $7E0554 : db $02 : dw $9C6C ; Object tilemap state
dl $7E0B37 : db $01 : db $06 ; Arc variable
.after
sram_nmg_gtower_bombable_wall:
dl $7E0CBC : db $01 : db $00 ; Sprite drop
dl $7EC74A : db $02 : dw $2CB2 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $2CC2 ; Selected menu gfx, row 2
dl $7EF36D : db $01 : db $40 ; Health (actual)
dl $7EF07A : db $02 : dw $4405 ; Room $003D: Ganon's Tower (Torch Room 2) (..d...K.......q.)
dl $7E0303 : db $01 : db $01 ; Selected menu item
dl $7E0202 : db $01 : db $04 ; Selected menu item
dl $7E0B37 : db $01 : db $0D ; Arc variable
dl $7EC74C : db $02 : dw $2CB3 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $6CC2 ; Selected menu gfx, row 2
dl $7FDFFA : db $02 : dw $000C ; Room $3D persistent: Ganon's Tower (Torch Room 2)
dl $7E002F : db $01 : db $04 ; Link's direction
.after
sram_nmg_gtower_moldorm_2:
dl $7EF343 : db $01 : db $00 ; Bombs
dl $7EC74A : db $02 : dw $24B0 ; Selected menu gfx, row 1
dl $7EF36F : db $02 : dw $0000 ; Keys
dl $7EC78A : db $02 : dw $24C0 ; Selected menu gfx, row 2
dl $7EF36D : db $01 : db $38 ; Health (actual)
dl $7EF07A : db $02 : dw $740F ; Room $003D: Ganon's Tower (Torch Room 2) (..ddb.K......qqq)
dl $7E0303 : db $01 : db $05 ; Selected menu item
dl $7E0202 : db $01 : db $06 ; Selected menu item
dl $7E0B37 : db $01 : db $10 ; Arc variable
dl $7EC74C : db $02 : dw $24B1 ; Selected menu gfx, row 1
dl $7EC78C : db $02 : dw $24C1 ; Selected menu gfx, row 2
dl $7E002F : db $01 : db $02 ; Link's direction
.after
sram_nmg_gtower_agahnim_2:
dl $7E0542 : db $02 : dw $0000 ; Object tilemap state
dl $7E0546 : db $02 : dw $0000 ; Object tilemap state
dl $7E054A : db $02 : dw $0000 ; Object tilemap state
dl $7E054E : db $02 : dw $0000 ; Object tilemap state
dl $7E0552 : db $02 : dw $0000 ; Object tilemap state
dl $7EF098 : db $02 : dw $0005 ; Room $004C: Ganon's Tower (Mini-Helmasaur Conveyor Room) (..............q.)
dl $7EF03A : db $02 : dw $800C ; Room $001D: Ganon's Tower (Final Hallway) (.d...........qq.)
dl $7EF09A : db $02 : dw $800F ; Room $004D: Ganon's Tower (Moldorm Room) (.d...........qqq)
dl $7E0468 : db $02 : dw $0001 ; Trap door state
dl $7E0540 : db $02 : dw $0000 ; Object tilemap state
dl $7E0544 : db $02 : dw $0000 ; Object tilemap state
dl $7E0548 : db $02 : dw $0000 ; Object tilemap state
dl $7E054C : db $02 : dw $0000 ; Object tilemap state
dl $7E0550 : db $02 : dw $0000 ; Object tilemap state
dl $7E0554 : db $02 : dw $0000 ; Object tilemap state
dl $7FE0CA : db $02 : dw $0000 ; Room $A5 persistent: Ganon's Tower (Wizzrobes Rooms)
dl $7E002F : db $01 : db $00 ; Link's direction
; Manual changes:
dl $7E0202 : db $01 : db $03 ; Selected menu item
dl $7E0303 : db $01 : db $0E ; Selected menu item
dl $7EC74A : db $02 : dw $24F5 ; Selected menu gfx, row 1
dl $7EC74C : db $02 : dw $24F6 ; Selected menu gfx, row 1
dl $7EC78A : db $02 : dw $24C0 ; Selected menu gfx, row 2
dl $7EC78C : db $02 : dw $24F5 ; Selected menu gfx, row 2
.after
sram_nmg_ganon_pyramid:
dl $7EF2DB : db $01 : db $20 ; Overworld $5B: Unknown (...?....)
dl $7EF36F : db $01 : db $FF ; Keys
dl $7EF389 : db $01 : db $00 ; Key for dungeon $0D
dl $7EF3FD : db $02 : dw $0000 ; Deaths
dl $7EF01A : db $02 : dw $0802 ; Room $000D: Ganon's Tower (Agahnim2[Boss]) (.....k.........q)
dl $7FDFFA : db $01 : db $00 ; Overworld $3D persistent: UNKNOWN
dl $7E02A2 : db $01 : db $FC ; Arc variable
dl $7E002F : db $01 : db $02 ; Link's direction
.after
sram_nmg_ganon_pyramid_magic:
; Manual changes:
dl $7EF36E : db $01 : db $80 ; Magic Power
.after
| 34.839636 | 122 | 0.682247 |
fb915905e4c4fb5e4b509584e22478c8801ec8e4 | 242 | asm | Assembly | data/moves/flail_reversal_power.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 28 | 2019-11-08T07:19:00.000Z | 2021-12-20T10:17:54.000Z | data/moves/flail_reversal_power.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 13 | 2020-01-11T17:00:40.000Z | 2021-09-14T01:27:38.000Z | data/moves/flail_reversal_power.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 22 | 2020-05-28T17:31:38.000Z | 2022-03-07T20:49:35.000Z | FlailReversalPower:
; hp bar pixels, power
db HP_BAR_LENGTH_PX / 48, 200
db HP_BAR_LENGTH_PX / 12, 150
db HP_BAR_LENGTH_PX / 5, 100
db HP_BAR_LENGTH_PX / 3, 80
db HP_BAR_LENGTH_PX * 2 / 3, 40
db HP_BAR_LENGTH_PX, 20
| 26.888889 | 32 | 0.681818 |
30d935d6372c8a6c3a925820bb2dc4b0c7fc3a1c | 2,655 | asm | Assembly | Epilog/asm/MSVC2010/struct-omitfp.asm | Dovgalyuk/AntiTaint | c27407d8fa35a76d009ca0981f4b55f08a0a1c65 | [
"Apache-2.0"
] | 1 | 2018-12-31T22:11:24.000Z | 2018-12-31T22:11:24.000Z | Epilog/asm/MSVC2010/struct-omitfp.asm | Dovgalyuk/SecurityFlaws | c27407d8fa35a76d009ca0981f4b55f08a0a1c65 | [
"Apache-2.0"
] | null | null | null | Epilog/asm/MSVC2010/struct-omitfp.asm | Dovgalyuk/SecurityFlaws | c27407d8fa35a76d009ca0981f4b55f08a0a1c65 | [
"Apache-2.0"
] | null | null | null | ; Listing generated by Microsoft (R) Optimizing Compiler Version 16.00.40219.01
TITLE D:\Projects\TaintAnalysis\AntiTaint\Epilog\src\struct.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
_DATA SEGMENT
$SG3571 DB '%d %d %d', 00H
ORG $+3
$SG3580 DB '%s %d %d %d', 0aH, 00H
_DATA ENDS
PUBLIC _fill
EXTRN __imp__scanf:PROC
; Function compile flags: /Odtpy
; File d:\projects\taintanalysis\antitaint\epilog\src\struct.c
_TEXT SEGMENT
_c$ = -12 ; size = 4
_b$ = -8 ; size = 4
_a$ = -4 ; size = 4
_s$ = 8 ; size = 4
_fill PROC
; 14 : {
push ebp
mov ebp, esp
sub esp, 12 ; 0000000cH
; 15 : int a, b, c;
; 16 : scanf("%d %d %d", &a, &b, &c);
lea eax, DWORD PTR _c$[ebp]
push eax
lea ecx, DWORD PTR _b$[ebp]
push ecx
lea edx, DWORD PTR _a$[ebp]
push edx
push OFFSET $SG3571
call DWORD PTR __imp__scanf
add esp, 16 ; 00000010H
; 17 : s->a = a;
mov eax, DWORD PTR _a$[ebp]
cdq
mov ecx, DWORD PTR _s$[ebp]
mov DWORD PTR [ecx], eax
mov DWORD PTR [ecx+4], edx
; 18 : s->b = b;
mov eax, DWORD PTR _b$[ebp]
cdq
mov ecx, DWORD PTR _s$[ebp]
mov DWORD PTR [ecx+8], eax
mov DWORD PTR [ecx+12], edx
; 19 : s->c = c;
mov eax, DWORD PTR _c$[ebp]
cdq
mov ecx, DWORD PTR _s$[ebp]
mov DWORD PTR [ecx+16], eax
mov DWORD PTR [ecx+20], edx
; 20 : }
mov esp, ebp
pop ebp
ret 0
_fill ENDP
_TEXT ENDS
PUBLIC _func
EXTRN __imp__printf:PROC
EXTRN __imp__gets:PROC
; Function compile flags: /Odtpy
_TEXT SEGMENT
_buf$ = -32 ; size = 8
_s$ = -24 ; size = 24
_func PROC
; 23 : {
push ebp
mov ebp, esp
sub esp, 32 ; 00000020H
; 24 : struct S s;
; 25 : char buf[8];
; 26 : gets(buf);
lea eax, DWORD PTR _buf$[ebp]
push eax
call DWORD PTR __imp__gets
add esp, 4
; 27 : fill(&s);
lea ecx, DWORD PTR _s$[ebp]
push ecx
call _fill
add esp, 4
; 28 : printf("%s %d %d %d\n", buf, (int)s.a, (int)s.b, (int)s.c);
mov edx, DWORD PTR _s$[ebp+16]
push edx
mov eax, DWORD PTR _s$[ebp+8]
push eax
mov ecx, DWORD PTR _s$[ebp]
push ecx
lea edx, DWORD PTR _buf$[ebp]
push edx
push OFFSET $SG3580
call DWORD PTR __imp__printf
add esp, 20 ; 00000014H
; 29 : }
mov esp, ebp
pop ebp
ret 0
_func ENDP
_TEXT ENDS
PUBLIC _main
; Function compile flags: /Odtpy
_TEXT SEGMENT
_main PROC
; 32 : {
push ebp
mov ebp, esp
; 33 : func();
call _func
; 34 : return 0;
xor eax, eax
; 35 : }
pop ebp
ret 0
_main ENDP
_TEXT ENDS
END
| 17.129032 | 81 | 0.583427 |
b37de71f19c25b977276e04915cc0ab339578c3e | 5,323 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_650.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_650.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_650.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r14
push %r15
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x1963b, %r15
nop
nop
xor $56084, %r14
mov (%r15), %rbp
nop
cmp %r12, %r12
lea addresses_D_ht+0x813b, %rbx
xor %r15, %r15
movb $0x61, (%rbx)
nop
nop
xor $62680, %rsi
lea addresses_UC_ht+0x1b69b, %r15
cmp $24747, %rbx
vmovups (%r15), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $0, %xmm7, %rsi
dec %r15
lea addresses_D_ht+0x11d1b, %r14
nop
nop
nop
xor %r8, %r8
mov (%r14), %ebp
sub %r8, %r8
lea addresses_normal_ht+0x12c3b, %rsi
lea addresses_UC_ht+0xa515, %rdi
cmp $45270, %rbp
mov $52, %rcx
rep movsb
nop
nop
nop
nop
add %rdi, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r8
pop %r15
pop %r14
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r15
push %r8
push %rax
push %rbx
// Store
lea addresses_PSE+0xbfb, %r8
nop
nop
xor $63398, %r15
movl $0x51525354, (%r8)
nop
nop
nop
nop
xor $23625, %r13
// Faulty Load
lea addresses_UC+0x953b, %r11
nop
nop
nop
inc %rax
mov (%r11), %ebx
lea oracles, %r10
and $0xff, %rbx
shlq $12, %rbx
mov (%r10,%rbx,1), %rbx
pop %rbx
pop %rax
pop %r8
pop %r15
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 2, 'NT': True, 'type': 'addresses_UC'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_PSE'}}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 4, 'NT': False, 'type': 'addresses_UC'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_D_ht'}}
{'src': {'congruent': 4, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 6, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_UC_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
*/
| 45.495726 | 2,999 | 0.65696 |
d3156880d96ea48ae385c5d9879f65763248bc4c | 392 | asm | Assembly | programs/oeis/240/A240134.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/240/A240134.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/240/A240134.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A240134: Numerator of (n-1) * ceiling(n/2) / n.
; 0,1,4,3,12,5,24,7,40,9,60,11,84,13,112,15,144,17,180,19,220,21,264,23,312,25,364,27,420,29,480,31,544,33,612,35,684,37,760,39,840,41,924,43,1012,45,1104,47,1200,49,1300,51,1404,53,1512,55,1624,57,1740,59,1860,61,1984,63,2112,65
mov $1,$0
mov $2,$0
lpb $2,1
sub $2,1
lpb $1,1
add $1,$2
sub $1,1
lpe
add $1,$0
trn $2,1
lpe
| 26.133333 | 229 | 0.619898 |
675228aab1dd0fc3aa71bbb33f65af7d3ce7c133 | 407 | asm | Assembly | programs/oeis/124/A124355.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/124/A124355.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/124/A124355.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A124355: Number of (directed) Hamiltonian cycles on the complete graph K_n.
; 0,0,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368000,20922789888000,355687428096000,6402373705728000,121645100408832000,2432902008176640000
seq $0,142 ; Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric group S_n, number of permutations of n letters).
div $0,2
mul $0,2
| 58.142857 | 189 | 0.788698 |
a4aea5f1fe1147217678a1958446cc47a2efac65 | 3,426 | asm | Assembly | Ouroboros/External/libjpegTurbo/simd/jdcolmmx.asm | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | Ouroboros/External/libjpegTurbo/simd/jdcolmmx.asm | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | Ouroboros/External/libjpegTurbo/simd/jdcolmmx.asm | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | ;
; jdcolmmx.asm - colorspace conversion (MMX)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright 2009 D. R. Commander
;
; Based on
; x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in jsimdext.inc
;
; This file should be assembled with NASM (Netwide Assembler),
; can *not* be assembled with Microsoft's MASM or any compatible
; assembler (including Borland's Turbo Assembler).
; NASM is available from http://nasm.sourceforge.net/ or
; http://sourceforge.net/project/showfiles.php?group_id=6208
;
; [TAB8]
%include "jsimdext.inc"
; --------------------------------------------------------------------------
%define SCALEBITS 16
F_0_344 equ 22554 ; FIX(0.34414)
F_0_714 equ 46802 ; FIX(0.71414)
F_1_402 equ 91881 ; FIX(1.40200)
F_1_772 equ 116130 ; FIX(1.77200)
F_0_402 equ (F_1_402 - 65536) ; FIX(1.40200) - FIX(1)
F_0_285 equ ( 65536 - F_0_714) ; FIX(1) - FIX(0.71414)
F_0_228 equ (131072 - F_1_772) ; FIX(2) - FIX(1.77200)
; --------------------------------------------------------------------------
SECTION SEG_CONST
alignz 16
global EXTN(jconst_ycc_rgb_convert_mmx)
EXTN(jconst_ycc_rgb_convert_mmx):
PW_F0402 times 4 dw F_0_402
PW_MF0228 times 4 dw -F_0_228
PW_MF0344_F0285 times 2 dw -F_0_344, F_0_285
PW_ONE times 4 dw 1
PD_ONEHALF times 2 dd 1 << (SCALEBITS-1)
alignz 16
; --------------------------------------------------------------------------
SECTION SEG_TEXT
BITS 32
%include "jdclrmmx.asm"
%undef RGB_RED
%undef RGB_GREEN
%undef RGB_BLUE
%undef RGB_PIXELSIZE
%define RGB_RED EXT_RGB_RED
%define RGB_GREEN EXT_RGB_GREEN
%define RGB_BLUE EXT_RGB_BLUE
%define RGB_PIXELSIZE EXT_RGB_PIXELSIZE
%define jsimd_ycc_rgb_convert_mmx jsimd_ycc_extrgb_convert_mmx
%include "jdclrmmx.asm"
%undef RGB_RED
%undef RGB_GREEN
%undef RGB_BLUE
%undef RGB_PIXELSIZE
%define RGB_RED EXT_RGBX_RED
%define RGB_GREEN EXT_RGBX_GREEN
%define RGB_BLUE EXT_RGBX_BLUE
%define RGB_PIXELSIZE EXT_RGBX_PIXELSIZE
%define jsimd_ycc_rgb_convert_mmx jsimd_ycc_extrgbx_convert_mmx
%include "jdclrmmx.asm"
%undef RGB_RED
%undef RGB_GREEN
%undef RGB_BLUE
%undef RGB_PIXELSIZE
%define RGB_RED EXT_BGR_RED
%define RGB_GREEN EXT_BGR_GREEN
%define RGB_BLUE EXT_BGR_BLUE
%define RGB_PIXELSIZE EXT_BGR_PIXELSIZE
%define jsimd_ycc_rgb_convert_mmx jsimd_ycc_extbgr_convert_mmx
%include "jdclrmmx.asm"
%undef RGB_RED
%undef RGB_GREEN
%undef RGB_BLUE
%undef RGB_PIXELSIZE
%define RGB_RED EXT_BGRX_RED
%define RGB_GREEN EXT_BGRX_GREEN
%define RGB_BLUE EXT_BGRX_BLUE
%define RGB_PIXELSIZE EXT_BGRX_PIXELSIZE
%define jsimd_ycc_rgb_convert_mmx jsimd_ycc_extbgrx_convert_mmx
%include "jdclrmmx.asm"
%undef RGB_RED
%undef RGB_GREEN
%undef RGB_BLUE
%undef RGB_PIXELSIZE
%define RGB_RED EXT_XBGR_RED
%define RGB_GREEN EXT_XBGR_GREEN
%define RGB_BLUE EXT_XBGR_BLUE
%define RGB_PIXELSIZE EXT_XBGR_PIXELSIZE
%define jsimd_ycc_rgb_convert_mmx jsimd_ycc_extxbgr_convert_mmx
%include "jdclrmmx.asm"
%undef RGB_RED
%undef RGB_GREEN
%undef RGB_BLUE
%undef RGB_PIXELSIZE
%define RGB_RED EXT_XRGB_RED
%define RGB_GREEN EXT_XRGB_GREEN
%define RGB_BLUE EXT_XRGB_BLUE
%define RGB_PIXELSIZE EXT_XRGB_PIXELSIZE
%define jsimd_ycc_rgb_convert_mmx jsimd_ycc_extxrgb_convert_mmx
%include "jdclrmmx.asm"
| 28.31405 | 79 | 0.726795 |
9de62dba528f167f9f95342034a7965aabef1747 | 197 | asm | Assembly | Kernel/cpuvendor.asm | heyimnowi/arqui-os | 88118a7f11112d405e06a623755fe1c62828ba21 | [
"BSD-3-Clause"
] | null | null | null | Kernel/cpuvendor.asm | heyimnowi/arqui-os | 88118a7f11112d405e06a623755fe1c62828ba21 | [
"BSD-3-Clause"
] | 1 | 2017-10-09T18:36:31.000Z | 2017-10-09T18:36:31.000Z | Kernel/cpuvendor.asm | heyimnowi/arqui-os | 88118a7f11112d405e06a623755fe1c62828ba21 | [
"BSD-3-Clause"
] | null | null | null | GLOBAL cpuVendor
section .text
cpuVendor:
push rbp
mov rbp, rsp
mov rax, 0
cpuid
mov rax, rdi
mov [rax], ebx
mov [rax+4], edx
mov [rax+8], ecx
mov rsp, rbp
pop rbp
ret | 9.85 | 18 | 0.604061 |
975e2b56f6deddfb3b26f2f07af2a46aef517696 | 227 | asm | Assembly | programs/oeis/017/A017583.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/017/A017583.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/017/A017583.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A017583: (12n+5)^3.
; 125,4913,24389,68921,148877,274625,456533,704969,1030301,1442897,1953125,2571353,3307949,4173281,5177717,6331625,7645373,9129329,10793861,12649337,14706125,16974593,19465109
mul $0,12
add $0,5
pow $0,3
| 32.428571 | 175 | 0.788546 |
e2fdd4835b3ce0d1519c02d42f185764db1b5fa7 | 693 | asm | Assembly | oeis/178/A178577.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/178/A178577.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/178/A178577.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A178577: Partial sums of round(5^n/9).
; 0,1,4,18,87,434,2170,10851,54254,271268,1356337,6781684,33908420,169542101,847710504,4238552518,21192762587,105963812934,529819064670,2649095323351,13245476616754,66227383083768,331136915418837,1655684577094184,8278422885470920,41392114427354601,206960572136773004,1034802860683865018,5174014303419325087,25870071517096625434,129350357585483127170,646751787927415635851,3233758939637078179254,16168794698185390896268,80843973490926954481337,404219867454634772406684,2021099337273173862033420
mov $5,$0
mov $6,$0
lpb $5
mov $0,$6
sub $5,1
sub $0,$5
mov $4,5
pow $4,$0
mov $3,$4
add $3,4
mov $2,$3
div $2,9
add $1,$2
lpe
mov $0,$1
| 36.473684 | 493 | 0.800866 |
3e4b4d2dbdfc9b00011c6ec7b41724f220cb114a | 284 | asm | Assembly | libsrc/_DEVELOPMENT/stdio/c/sdcc_iy/vfscanf_unlocked.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/stdio/c/sdcc_iy/vfscanf_unlocked.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/stdio/c/sdcc_iy/vfscanf_unlocked.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
; int vfscanf_unlocked(FILE *stream, const char *format, void *arg)
SECTION code_stdio
PUBLIC _vfscanf_unlocked
EXTERN asm_vfscanf_unlocked
_vfscanf_unlocked:
pop af
pop ix
pop de
pop bc
push bc
push de
push hl
push af
jp asm_vfscanf_unlocked
| 12.347826 | 67 | 0.704225 |
3b8bb379601bf918f650d14561c543f6aec02f0f | 11,472 | asm | Assembly | vbox/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-bootsector.asm | Nurzamal/rest_api_docker | a9cc01dfc235467d490d9663755b33ef6990bdd8 | [
"MIT"
] | null | null | null | vbox/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-bootsector.asm | Nurzamal/rest_api_docker | a9cc01dfc235467d490d9663755b33ef6990bdd8 | [
"MIT"
] | null | null | null | vbox/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-bootsector.asm | Nurzamal/rest_api_docker | a9cc01dfc235467d490d9663755b33ef6990bdd8 | [
"MIT"
] | null | null | null | ; $Id: bs3-bootsector.asm 69111 2017-10-17 14:26:02Z vboxsync $
;; @file
; Generic bootsector for BS3.
;
; This sets up stack at %fff0 and loads the next sectors from the floppy at
; %10000 (1000:0000 in real mode), then starts executing at cs:ip=1000:0000.
;
;
; Copyright (C) 2007-2017 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;
; you can redistribute it and/or modify it under the terms of the GNU
; General Public License (GPL) as published by the Free Software
; Foundation, in version 2 as it comes in the "COPYING" file of the
; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
;
; The contents of this file may alternatively be used under the terms
; of the Common Development and Distribution License Version 1.0
; (CDDL) only, as it comes in the "COPYING.CDDL" file of the
; VirtualBox OSE distribution, in which case the provisions of the
; CDDL are applicable instead of those of the GPL.
;
; You may elect to license modified versions of this file under the
; terms and conditions of either the GPL or the CDDL or both.
;
;*********************************************************************************************************************************
;* Header Files *
;*********************************************************************************************************************************
%include "bs3kit.mac"
%include "iprt/asmdefs.mac"
%include "iprt/x86.mac"
%ifdef __YASM__
[map all]
%endif
;
; Start with a jump just to follow the convention.
; Also declare all segments/sections to establish them and their order.
;
ORG 07c00h
BITS 16
CPU 8086
start:
jmp short bs3InitCode
db 0ah ; Should be nop, but this looks better.
g_OemId: ; 003h
db 'BS3Kit', 0ah, 0ah
;
; DOS 4.0 Extended Bios Parameter Block:
;
g_cBytesPerSector: ; 00bh
dw 512
g_cSectorsPerCluster: ; 00dh
db 1
g_cReservedSectors: ; 00eh
dw 1
g_cFATs: ; 010h
db 0
g_cRootDirEntries: ; 011h
dw 0
g_cTotalSectors: ; 013h
dw 0
g_bMediaDescriptor: ; 015h
db 0
g_cSectorsPerFAT: ; 016h
dw 0
g_cPhysSectorsPerTrack: ; 018h
dw 18
g_cHeads: ; 01ah
dw 2
g_cHiddentSectors: ; 01ch
dd 1
g_cLargeTotalSectors: ; 020h - We (ab)use this to indicate the number of sectors to load.
dd 0
g_bBootDrv: ; 024h
db 80h
g_bFlagsEtc: ; 025h
db 0
g_bExtendedSignature: ; 026h
db 0x29
g_dwSerialNumber: ; 027h
dd 0x0a458634
g_abLabel: ; 02bh
db 'VirtualBox', 0ah
g_abFSType: ; 036h
db 'RawCode', 0ah
g_BpbEnd: ; 03ch
;
; Where to real init code starts.
;
bs3InitCode:
cli
; save the registers.
mov [cs:BS3_ADDR_REG_SAVE + BS3REGCTX.rax], ax
mov [cs:BS3_ADDR_REG_SAVE + BS3REGCTX.rsp], sp
mov [cs:BS3_ADDR_REG_SAVE + BS3REGCTX.ss], ss
mov [cs:BS3_ADDR_REG_SAVE + BS3REGCTX.ds], ds
; set up the segment reisters and stack.
mov ax, 0
mov ds, ax
mov ss, ax
mov sp, BS3_ADDR_STACK
; Save more registers, without needing cs prefix.
mov [BS3_ADDR_REG_SAVE + BS3REGCTX.rcx], cx
mov [BS3_ADDR_REG_SAVE + BS3REGCTX.rdi], di
mov [BS3_ADDR_REG_SAVE + BS3REGCTX.es], es
mov [BS3_ADDR_REG_SAVE + BS3REGCTX.rbp], bp
; Load es and setup bp frame.
mov es, ax
mov bp, sp
mov [bp], ax ; clear the first 8 bytes (terminates the ebp chain)
mov [bp + 02h], ax
mov [bp + 04h], ax
mov [bp + 06h], ax
; Save flags now that we know that there's a valid stack.
pushf
;
; Clear the register area.
;
mov di, BS3_ADDR_REG_SAVE
mov cx, BS3REGCTX_size/2
cld
rep stosw
;
; Do basic CPU detection.
;
; 1. bit 15-bit was fixed to 1 in pre-286 CPUs, and fixed to 0 in 286+.
mov ax, [bp - 2]
test ah, 080h ; always set on pre 286, clear on 286 and later
jnz .pre_80286
; 2. On a 286 you cannot popf IOPL and NT from real mode.
.detect_286_or_386plus:
CPU 286
mov ah, (X86_EFL_IOPL | X86_EFL_NT) >> 8
push ax
popf
pushf
cmp ah, [bp - 3]
pop ax
je .is_386plus
.is_80286:
CPU 286
smsw [BS3_ADDR_REG_SAVE + BS3REGCTX.cr0]
.pre_80286:
CPU 8086
mov [BS3_ADDR_REG_SAVE + BS3REGCTX.rbx], bx
mov [BS3_ADDR_REG_SAVE + BS3REGCTX.rdx], dx
mov [BS3_ADDR_REG_SAVE + BS3REGCTX.rsi], si
jmp .do_load
; Save 386 registers. We can now skip the CS prefix as DS is flat.
CPU 386
.is_386plus:
shr eax, 16
mov [BS3_ADDR_REG_SAVE + BS3REGCTX.rax+2], ax
mov eax, esp
shr eax, 16
mov [BS3_ADDR_REG_SAVE + BS3REGCTX.rsp+2], ax
mov eax, ebp
shr eax, 16
mov [BS3_ADDR_REG_SAVE + BS3REGCTX.rbp+2], ax
shr edi, 16
mov [BS3_ADDR_REG_SAVE + BS3REGCTX.rdi+2], di
shr ecx, 16
mov [BS3_ADDR_REG_SAVE + BS3REGCTX.rcx+2], cx
mov [BS3_ADDR_REG_SAVE + BS3REGCTX.fs], fs
mov [BS3_ADDR_REG_SAVE + BS3REGCTX.gs], gs
mov [BS3_ADDR_REG_SAVE + BS3REGCTX.rbx], ebx
mov [BS3_ADDR_REG_SAVE + BS3REGCTX.rdx], edx
mov [BS3_ADDR_REG_SAVE + BS3REGCTX.rsi], esi
mov eax, cr2
mov [BS3_ADDR_REG_SAVE + BS3REGCTX.cr2], eax
mov eax, cr3
mov [BS3_ADDR_REG_SAVE + BS3REGCTX.cr3], eax
mov byte [BS3_ADDR_REG_SAVE + BS3REGCTX.bMode], BS3_MODE_RM
mov [cs:BS3_ADDR_REG_SAVE + BS3REGCTX.cs], cs
xor eax, eax
mov ax, start
mov [cs:BS3_ADDR_REG_SAVE + BS3REGCTX.rip], eax
; Pentium/486+: CR4 requires VME/CPUID, so we need to detect that before accessing it.
mov [cs:BS3_ADDR_REG_SAVE + BS3REGCTX.cr4], eax
popf ; (restores IOPL+NT)
pushfd
pop eax
mov [BS3_ADDR_REG_SAVE + BS3REGCTX.rflags], eax
xor eax, X86_EFL_ID
push eax
popfd
pushfd
pop ebx
cmp ebx, eax
jne .no_cr4
mov eax, cr4
mov [BS3_ADDR_REG_SAVE + BS3REGCTX.cr4], eax
.no_cr4:
; Make sure caching is enabled and alignment is off.
mov eax, cr0
mov [BS3_ADDR_REG_SAVE + BS3REGCTX.cr0], eax
and eax, ~(X86_CR0_NW | X86_CR0_CD | X86_CR0_AM)
mov cr0, eax
; Load all the code.
.do_load
mov [g_bBootDrv], dl
call NAME(bs3InitLoadImage)
%if 0
mov al, '='
call NAME(bs3PrintChrInAl)
%endif
;
; Call the user 'main' procedure (shouldn't return).
;
cld
call BS3_SEL_TEXT16:0000h
; Panic/hang.
Bs3Panic:
cli
jmp Bs3Panic
;; For debug and error handling.
; @uses ax
bs3PrintHexInAl:
CPU 286
push ax
shr al, 4
call bs3PrintHexDigitInAl
pop ax
bs3PrintHexDigitInAl:
and al, 0fh
cmp al, 10
jb .decimal
add al, 'a' - '0' - 10
.decimal:
add al, '0'
bs3PrintChrInAl:
push bx
mov ah, 0eh
mov bx, 0ff00h
int 10h
pop bx
ret
;;
; Loads the image off the floppy.
;
; This uses g_cLargeTotalSectors to figure out how much to load.
;
; Clobbers everything except ebp and esp. Panics on failure.
;
; @param dl The boot drive number (from BIOS).
; @uses ax, cx, bx, esi, di
;
BEGINPROC bs3InitLoadImage
push bp
mov bp, sp
push es
%define bSavedDiskNo byte [bp - 04h]
push dx
%define bMaxSector byte [bp - 06h]
xor ax, ax
push ax
%define bMaxHead byte [bp - 08h]
push ax
%define bMaxCylinder byte [bp - 0ah]
push ax
;
; Try figure the geometry.
;
mov ah, 08h
int 13h
jc .failure
mov bMaxSector, cl
mov bMaxHead, dh
mov bMaxCylinder, ch
mov dl, bSavedDiskNo
;
; Reload all the sectors one at a time (avoids problems).
;
mov si, [g_cLargeTotalSectors] ; 16-bit sector count ==> max 512 * 65 535 = 33 553 920 bytes.
dec si
mov di, BS3_ADDR_LOAD / 16 ; The current load segment.
mov cx, 0002h ; ch/cylinder=0 (0-based); cl/sector=2 (1-based)
xor dh, dh ; dh/head=0
.the_load_loop:
%if 0
mov al, 'c'
call bs3PrintChrInAl
mov al, ch
call bs3PrintHexInAl
mov al, 's'
call bs3PrintChrInAl
mov al, cl
call bs3PrintHexInAl
mov al, 'h'
call bs3PrintChrInAl
mov al, dh
call bs3PrintHexInAl
mov al, ';'
call bs3PrintChrInAl
%endif
xor bx, bx
mov es, di ; es:bx -> buffer
mov ax, 0201h ; al=1 sector; ah=read function
int 13h
jc .failure
; advance to the next sector/head/cylinder.
inc cl
cmp cl, bMaxSector
jbe .adv_addr
mov cl, 1
inc dh
cmp dh, bMaxHead
jbe .adv_addr
mov dh, 0
inc ch
.adv_addr:
add di, 512 / 16
dec si
jnz .the_load_loop
%if 0
mov al, 'D'
call bs3PrintChrInAl
%endif
add sp, 3*2
pop dx
pop es
pop bp
ret
;
; Something went wrong, display a message.
;
.failure:
push ax
; print message
mov si, .s_szErrMsg
.failure_next_char:
lodsb
call bs3PrintChrInAl
cmp si, .s_szErrMsgEnd
jb .failure_next_char
; panic
pop ax
%if 1
mov al, ah
push bs3PrintHexInAl
%endif
call Bs3Panic
.s_szErrMsg:
db 13, 10, 'rd err! '
.s_szErrMsgEnd:
;ENDPROC bs3InitLoadImage - don't want the padding.
;
; Pad the remainder of the sector with int3's and end it with the DOS signature.
;
bs3Padding:
times ( 510 - ( (bs3Padding - start) % 512 ) ) db 0cch
db 055h, 0aah
| 28.896725 | 130 | 0.515342 |
29b0bab4706b7152af3220f14e15e5d3d91b6c36 | 153,920 | asm | Assembly | target/cos_117/disasm/iop_overlay1/NSCIO.asm | jrrk2/cray-sim | 52c9639808d6890517092637b188282c00cce4f7 | [
"BSL-1.0"
] | 49 | 2020-10-09T12:29:16.000Z | 2022-03-12T02:33:35.000Z | target/cos_117/disasm/iop_overlay1/NSCIO.asm | jrrk2/cray-sim | 52c9639808d6890517092637b188282c00cce4f7 | [
"BSL-1.0"
] | 1 | 2021-12-29T15:59:25.000Z | 2021-12-29T15:59:25.000Z | target/cos_117/disasm/iop_overlay1/NSCIO.asm | jrrk2/cray-sim | 52c9639808d6890517092637b188282c00cce4f7 | [
"BSL-1.0"
] | 6 | 2021-04-12T06:10:32.000Z | 2022-02-08T23:11:19.000Z | 0x0000 (0x000000) 0x3101- f:00030 d: 257 | A = (OR[257])
0x0001 (0x000002) 0x0A02- f:00005 d: 2 | A = A < 2 (0x0002)
0x0002 (0x000004) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0003 (0x000006) 0x0C02- f:00006 d: 2 | A = A >> 2 (0x0002)
0x0004 (0x000008) 0x3901- f:00034 d: 257 | (OR[257]) = A
0x0005 (0x00000A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0006 (0x00000C) 0x2932- f:00024 d: 306 | OR[306] = A
0x0007 (0x00000E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0008 (0x000010) 0x293C- f:00024 d: 316 | OR[316] = A
0x0009 (0x000012) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x000A (0x000014) 0x2937- f:00024 d: 311 | OR[311] = A
0x000B (0x000016) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x000C (0x000018) 0x2929- f:00024 d: 297 | OR[297] = A
0x000D (0x00001A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x000E (0x00001C) 0x293B- f:00024 d: 315 | OR[315] = A
0x000F (0x00001E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0010 (0x000020) 0x2925- f:00024 d: 293 | OR[293] = A
0x0011 (0x000022) 0x2101- f:00020 d: 257 | A = OR[257]
0x0012 (0x000024) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0013 (0x000026) 0x2908- f:00024 d: 264 | OR[264] = A
0x0014 (0x000028) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0015 (0x00002A) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0016 (0x00002C) 0x2926- f:00024 d: 294 | OR[294] = A
0x0017 (0x00002E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0018 (0x000030) 0x293F- f:00024 d: 319 | OR[319] = A
0x0019 (0x000032) 0x101A- f:00010 d: 26 | A = 26 (0x001A)
0x001A (0x000034) 0x2945- f:00024 d: 325 | OR[325] = A
0x001B (0x000036) 0x1132- f:00010 d: 306 | A = 306 (0x0132)
0x001C (0x000038) 0x2946- f:00024 d: 326 | OR[326] = A
0x001D (0x00003A) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x001E (0x00003C) 0x5800- f:00054 d: 0 | B = A
0x001F (0x00003E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0020 (0x000040) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0021 (0x000042) 0x8602- f:00103 d: 2 | P = P + 2 (0x0023), A # 0
0x0022 (0x000044) 0x7017- f:00070 d: 23 | P = P + 23 (0x0039)
0x0023 (0x000046) 0x213F- f:00020 d: 319 | A = OR[319]
0x0024 (0x000048) 0x160A- f:00013 d: 10 | A = A - 10 (0x000A)
0x0025 (0x00004A) 0x8002- f:00100 d: 2 | P = P + 2 (0x0027), C = 0
0x0026 (0x00004C) 0x700D- f:00070 d: 13 | P = P + 13 (0x0033)
0x0027 (0x00004E) 0x2D3F- f:00026 d: 319 | OR[319] = OR[319] + 1
0x0028 (0x000050) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x0029 (0x000052) 0x2945- f:00024 d: 325 | OR[325] = A
0x002A (0x000054) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x002B (0x000056) 0x2946- f:00024 d: 326 | OR[326] = A
0x002C (0x000058) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x002D (0x00005A) 0x5800- f:00054 d: 0 | B = A
0x002E (0x00005C) 0x1800-0x5B18 f:00014 d: 0 | A = 23320 (0x5B18)
0x0030 (0x000060) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0031 (0x000062) 0x7218- f:00071 d: 24 | P = P - 24 (0x0019)
0x0032 (0x000064) 0x7007- f:00070 d: 7 | P = P + 7 (0x0039)
0x0033 (0x000066) 0x100E- f:00010 d: 14 | A = 14 (0x000E)
0x0034 (0x000068) 0x2920- f:00024 d: 288 | OR[288] = A
0x0035 (0x00006A) 0x7E03-0x0674 f:00077 d: 3 | R = OR[3]+1652 (0x0674)
0x0037 (0x00006E) 0x7A03-0x0703 f:00075 d: 3 | P = OR[3]+1795 (0x0703)
0x0039 (0x000072) 0x2100- f:00020 d: 256 | A = OR[256]
0x003A (0x000074) 0x1428- f:00012 d: 40 | A = A + 40 (0x0028)
0x003B (0x000076) 0x2918- f:00024 d: 280 | OR[280] = A
0x003C (0x000078) 0x2100- f:00020 d: 256 | A = OR[256]
0x003D (0x00007A) 0x142B- f:00012 d: 43 | A = A + 43 (0x002B)
0x003E (0x00007C) 0x2919- f:00024 d: 281 | OR[281] = A
0x003F (0x00007E) 0x2100- f:00020 d: 256 | A = OR[256]
0x0040 (0x000080) 0x1404- f:00012 d: 4 | A = A + 4 (0x0004)
0x0041 (0x000082) 0x291A- f:00024 d: 282 | OR[282] = A
0x0042 (0x000084) 0x2100- f:00020 d: 256 | A = OR[256]
0x0043 (0x000086) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x0044 (0x000088) 0x291B- f:00024 d: 283 | OR[283] = A
0x0045 (0x00008A) 0x2100- f:00020 d: 256 | A = OR[256]
0x0046 (0x00008C) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008)
0x0047 (0x00008E) 0x291F- f:00024 d: 287 | OR[287] = A
0x0048 (0x000090) 0x2100- f:00020 d: 256 | A = OR[256]
0x0049 (0x000092) 0x142D- f:00012 d: 45 | A = A + 45 (0x002D)
0x004A (0x000094) 0x2924- f:00024 d: 292 | OR[292] = A
0x004B (0x000096) 0x2124- f:00020 d: 292 | A = OR[292]
0x004C (0x000098) 0x293F- f:00024 d: 319 | OR[319] = A
0x004D (0x00009A) 0x213F- f:00020 d: 319 | A = OR[319]
0x004E (0x00009C) 0x3924- f:00034 d: 292 | (OR[292]) = A
0x004F (0x00009E) 0x2124- f:00020 d: 292 | A = OR[292]
0x0050 (0x0000A0) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0051 (0x0000A2) 0x2908- f:00024 d: 264 | OR[264] = A
0x0052 (0x0000A4) 0x213F- f:00020 d: 319 | A = OR[319]
0x0053 (0x0000A6) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0054 (0x0000A8) 0x2100- f:00020 d: 256 | A = OR[256]
0x0055 (0x0000AA) 0x142F- f:00012 d: 47 | A = A + 47 (0x002F)
0x0056 (0x0000AC) 0x2923- f:00024 d: 291 | OR[291] = A
0x0057 (0x0000AE) 0x2123- f:00020 d: 291 | A = OR[291]
0x0058 (0x0000B0) 0x293F- f:00024 d: 319 | OR[319] = A
0x0059 (0x0000B2) 0x213F- f:00020 d: 319 | A = OR[319]
0x005A (0x0000B4) 0x3923- f:00034 d: 291 | (OR[291]) = A
0x005B (0x0000B6) 0x2123- f:00020 d: 291 | A = OR[291]
0x005C (0x0000B8) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x005D (0x0000BA) 0x2908- f:00024 d: 264 | OR[264] = A
0x005E (0x0000BC) 0x213F- f:00020 d: 319 | A = OR[319]
0x005F (0x0000BE) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0060 (0x0000C0) 0x2100- f:00020 d: 256 | A = OR[256]
0x0061 (0x0000C2) 0x143D- f:00012 d: 61 | A = A + 61 (0x003D)
0x0062 (0x0000C4) 0x2942- f:00024 d: 322 | OR[322] = A
0x0063 (0x0000C6) 0x2142- f:00020 d: 322 | A = OR[322]
0x0064 (0x0000C8) 0x3942- f:00034 d: 322 | (OR[322]) = A
0x0065 (0x0000CA) 0x2142- f:00020 d: 322 | A = OR[322]
0x0066 (0x0000CC) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0067 (0x0000CE) 0x2908- f:00024 d: 264 | OR[264] = A
0x0068 (0x0000D0) 0x2142- f:00020 d: 322 | A = OR[322]
0x0069 (0x0000D2) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x006A (0x0000D4) 0x2101- f:00020 d: 257 | A = OR[257]
0x006B (0x0000D6) 0x1405- f:00012 d: 5 | A = A + 5 (0x0005)
0x006C (0x0000D8) 0x2908- f:00024 d: 264 | OR[264] = A
0x006D (0x0000DA) 0x3108- f:00030 d: 264 | A = (OR[264])
0x006E (0x0000DC) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x006F (0x0000DE) 0x2934- f:00024 d: 308 | OR[308] = A
0x0070 (0x0000E0) 0x2134- f:00020 d: 308 | A = OR[308]
0x0071 (0x0000E2) 0x1650- f:00013 d: 80 | A = A - 80 (0x0050)
0x0072 (0x0000E4) 0x8202- f:00101 d: 2 | P = P + 2 (0x0074), C = 1
0x0073 (0x0000E6) 0x7004- f:00070 d: 4 | P = P + 4 (0x0077)
0x0074 (0x0000E8) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0075 (0x0000EA) 0x2934- f:00024 d: 308 | OR[308] = A
0x0076 (0x0000EC) 0x7003- f:00070 d: 3 | P = P + 3 (0x0079)
0x0077 (0x0000EE) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0078 (0x0000F0) 0x2934- f:00024 d: 308 | OR[308] = A
0x0079 (0x0000F2) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x007A (0x0000F4) 0x2920- f:00024 d: 288 | OR[288] = A
0x007B (0x0000F6) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x007C (0x0000F8) 0x2925- f:00024 d: 293 | OR[293] = A
0x007D (0x0000FA) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x007E (0x0000FC) 0x292D- f:00024 d: 301 | OR[301] = A
0x007F (0x0000FE) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0080 (0x000100) 0x2939- f:00024 d: 313 | OR[313] = A
0x0081 (0x000102) 0x1010- f:00010 d: 16 | A = 16 (0x0010)
0x0082 (0x000104) 0x293F- f:00024 d: 319 | OR[319] = A
0x0083 (0x000106) 0x1010- f:00010 d: 16 | A = 16 (0x0010)
0x0084 (0x000108) 0x2B3F- f:00025 d: 319 | OR[319] = A + OR[319]
0x0085 (0x00010A) 0x1020- f:00010 d: 32 | A = 32 (0x0020)
0x0086 (0x00010C) 0x2B3F- f:00025 d: 319 | OR[319] = A + OR[319]
0x0087 (0x00010E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0088 (0x000110) 0x2941- f:00024 d: 321 | OR[321] = A
0x0089 (0x000112) 0x1018- f:00010 d: 24 | A = 24 (0x0018)
0x008A (0x000114) 0x2945- f:00024 d: 325 | OR[325] = A
0x008B (0x000116) 0x213F- f:00020 d: 319 | A = OR[319]
0x008C (0x000118) 0x2946- f:00024 d: 326 | OR[326] = A
0x008D (0x00011A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x008E (0x00011C) 0x2947- f:00024 d: 327 | OR[327] = A
0x008F (0x00011E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0090 (0x000120) 0x2948- f:00024 d: 328 | OR[328] = A
0x0091 (0x000122) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0092 (0x000124) 0x2949- f:00024 d: 329 | OR[329] = A
0x0093 (0x000126) 0x1140- f:00010 d: 320 | A = 320 (0x0140)
0x0094 (0x000128) 0x294A- f:00024 d: 330 | OR[330] = A
0x0095 (0x00012A) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x0096 (0x00012C) 0x5800- f:00054 d: 0 | B = A
0x0097 (0x00012E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0098 (0x000130) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0099 (0x000132) 0x8602- f:00103 d: 2 | P = P + 2 (0x009B), A # 0
0x009A (0x000134) 0x7017- f:00070 d: 23 | P = P + 23 (0x00B1)
0x009B (0x000136) 0x2141- f:00020 d: 321 | A = OR[321]
0x009C (0x000138) 0x160A- f:00013 d: 10 | A = A - 10 (0x000A)
0x009D (0x00013A) 0x8002- f:00100 d: 2 | P = P + 2 (0x009F), C = 0
0x009E (0x00013C) 0x700D- f:00070 d: 13 | P = P + 13 (0x00AB)
0x009F (0x00013E) 0x2D41- f:00026 d: 321 | OR[321] = OR[321] + 1
0x00A0 (0x000140) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x00A1 (0x000142) 0x2945- f:00024 d: 325 | OR[325] = A
0x00A2 (0x000144) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x00A3 (0x000146) 0x2946- f:00024 d: 326 | OR[326] = A
0x00A4 (0x000148) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x00A5 (0x00014A) 0x5800- f:00054 d: 0 | B = A
0x00A6 (0x00014C) 0x1800-0x5B18 f:00014 d: 0 | A = 23320 (0x5B18)
0x00A8 (0x000150) 0x7C09- f:00076 d: 9 | R = OR[9]
0x00A9 (0x000152) 0x7220- f:00071 d: 32 | P = P - 32 (0x0089)
0x00AA (0x000154) 0x7007- f:00070 d: 7 | P = P + 7 (0x00B1)
0x00AB (0x000156) 0x100E- f:00010 d: 14 | A = 14 (0x000E)
0x00AC (0x000158) 0x2920- f:00024 d: 288 | OR[288] = A
0x00AD (0x00015A) 0x7E03-0x0674 f:00077 d: 3 | R = OR[3]+1652 (0x0674)
0x00AF (0x00015E) 0x7A03-0x0703 f:00075 d: 3 | P = OR[3]+1795 (0x0703)
0x00B1 (0x000162) 0x2140- f:00020 d: 320 | A = OR[320]
0x00B2 (0x000164) 0x290E- f:00024 d: 270 | OR[270] = A
0x00B3 (0x000166) 0x213F- f:00020 d: 319 | A = OR[319]
0x00B4 (0x000168) 0x290D- f:00024 d: 269 | OR[269] = A
0x00B5 (0x00016A) 0x210D- f:00020 d: 269 | A = OR[269]
0x00B6 (0x00016C) 0x8406- f:00102 d: 6 | P = P + 6 (0x00BC), A = 0
0x00B7 (0x00016E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00B8 (0x000170) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x00B9 (0x000172) 0x2F0D- f:00027 d: 269 | OR[269] = OR[269] - 1
0x00BA (0x000174) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x00BB (0x000176) 0x7206- f:00071 d: 6 | P = P - 6 (0x00B5)
0x00BC (0x000178) 0x2140- f:00020 d: 320 | A = OR[320]
0x00BD (0x00017A) 0x2929- f:00024 d: 297 | OR[297] = A
0x00BE (0x00017C) 0x2129- f:00020 d: 297 | A = OR[297]
0x00BF (0x00017E) 0x1410- f:00012 d: 16 | A = A + 16 (0x0010)
0x00C0 (0x000180) 0x2937- f:00024 d: 311 | OR[311] = A
0x00C1 (0x000182) 0x2137- f:00020 d: 311 | A = OR[311]
0x00C2 (0x000184) 0x1410- f:00012 d: 16 | A = A + 16 (0x0010)
0x00C3 (0x000186) 0x293C- f:00024 d: 316 | OR[316] = A
0x00C4 (0x000188) 0x2100- f:00020 d: 256 | A = OR[256]
0x00C5 (0x00018A) 0x1437- f:00012 d: 55 | A = A + 55 (0x0037)
0x00C6 (0x00018C) 0x2908- f:00024 d: 264 | OR[264] = A
0x00C7 (0x00018E) 0x213C- f:00020 d: 316 | A = OR[316]
0x00C8 (0x000190) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00C9 (0x000192) 0x213C- f:00020 d: 316 | A = OR[316]
0x00CA (0x000194) 0x1404- f:00012 d: 4 | A = A + 4 (0x0004)
0x00CB (0x000196) 0x293E- f:00024 d: 318 | OR[318] = A
0x00CC (0x000198) 0x2101- f:00020 d: 257 | A = OR[257]
0x00CD (0x00019A) 0x1404- f:00012 d: 4 | A = A + 4 (0x0004)
0x00CE (0x00019C) 0x2908- f:00024 d: 264 | OR[264] = A
0x00CF (0x00019E) 0x2129- f:00020 d: 297 | A = OR[297]
0x00D0 (0x0001A0) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00D1 (0x0001A2) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00D2 (0x0001A4) 0x2938- f:00024 d: 312 | OR[312] = A
0x00D3 (0x0001A6) 0x2100- f:00020 d: 256 | A = OR[256]
0x00D4 (0x0001A8) 0x1434- f:00012 d: 52 | A = A + 52 (0x0034)
0x00D5 (0x0001AA) 0x2908- f:00024 d: 264 | OR[264] = A
0x00D6 (0x0001AC) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00D7 (0x0001AE) 0x0E01- f:00007 d: 1 | A = A << 1 (0x0001)
0x00D8 (0x0001B0) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x00D9 (0x0001B2) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x00DA (0x0001B4) 0x0C02- f:00006 d: 2 | A = A >> 2 (0x0002)
0x00DB (0x0001B6) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00DC (0x0001B8) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00DD (0x0001BA) 0x292D- f:00024 d: 301 | OR[301] = A
0x00DE (0x0001BC) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00DF (0x0001BE) 0x292A- f:00024 d: 298 | OR[298] = A
0x00E0 (0x0001C0) 0x10E5- f:00010 d: 229 | A = 229 (0x00E5)
0x00E1 (0x0001C2) 0x2928- f:00024 d: 296 | OR[296] = A
0x00E2 (0x0001C4) 0x7E03-0x06A1 f:00077 d: 3 | R = OR[3]+1697 (0x06A1)
0x00E4 (0x0001C8) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00E5 (0x0001CA) 0x2925- f:00024 d: 293 | OR[293] = A
0x00E6 (0x0001CC) 0x7E03-0x055D f:00077 d: 3 | R = OR[3]+1373 (0x055D)
0x00E8 (0x0001D0) 0x8E15- f:00107 d: 21 | P = P - 21 (0x00D3), A # 0
0x00E9 (0x0001D2) 0x311B- f:00030 d: 283 | A = (OR[283])
0x00EA (0x0001D4) 0x080B- f:00004 d: 11 | A = A > 11 (0x000B)
0x00EB (0x0001D6) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x00EC (0x0001D8) 0x8402- f:00102 d: 2 | P = P + 2 (0x00EE), A = 0
0x00ED (0x0001DA) 0x7027- f:00070 d: 39 | P = P + 39 (0x0114)
0x00EE (0x0001DC) 0x2138- f:00020 d: 312 | A = OR[312]
0x00EF (0x0001DE) 0x8402- f:00102 d: 2 | P = P + 2 (0x00F1), A = 0
0x00F0 (0x0001E0) 0x7010- f:00070 d: 16 | P = P + 16 (0x0100)
0x00F1 (0x0001E2) 0x10A1- f:00010 d: 161 | A = 161 (0x00A1)
0x00F2 (0x0001E4) 0x2928- f:00024 d: 296 | OR[296] = A
0x00F3 (0x0001E6) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x00F4 (0x0001E8) 0x2927- f:00024 d: 295 | OR[295] = A
0x00F5 (0x0001EA) 0x2137- f:00020 d: 311 | A = OR[311]
0x00F6 (0x0001EC) 0x2935- f:00024 d: 309 | OR[309] = A
0x00F7 (0x0001EE) 0x1010- f:00010 d: 16 | A = 16 (0x0010)
0x00F8 (0x0001F0) 0x291C- f:00024 d: 284 | OR[284] = A
0x00F9 (0x0001F2) 0x7E03-0x06A7 f:00077 d: 3 | R = OR[3]+1703 (0x06A7)
0x00FB (0x0001F6) 0x7E03-0x055D f:00077 d: 3 | R = OR[3]+1373 (0x055D)
0x00FD (0x0001FA) 0x1032- f:00010 d: 50 | A = 50 (0x0032)
0x00FE (0x0001FC) 0x2938- f:00024 d: 312 | OR[312] = A
0x00FF (0x0001FE) 0x7002- f:00070 d: 2 | P = P + 2 (0x0101)
0x0100 (0x000200) 0x2F38- f:00027 d: 312 | OR[312] = OR[312] - 1
0x0101 (0x000202) 0x311B- f:00030 d: 283 | A = (OR[283])
0x0102 (0x000204) 0x080B- f:00004 d: 11 | A = A > 11 (0x000B)
0x0103 (0x000206) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0104 (0x000208) 0x8402- f:00102 d: 2 | P = P + 2 (0x0106), A = 0
0x0105 (0x00020A) 0x700F- f:00070 d: 15 | P = P + 15 (0x0114)
0x0106 (0x00020C) 0x2100- f:00020 d: 256 | A = OR[256]
0x0107 (0x00020E) 0x1434- f:00012 d: 52 | A = A + 52 (0x0034)
0x0108 (0x000210) 0x2908- f:00024 d: 264 | OR[264] = A
0x0109 (0x000212) 0x3108- f:00030 d: 264 | A = (OR[264])
0x010A (0x000214) 0x0A02- f:00005 d: 2 | A = A < 2 (0x0002)
0x010B (0x000216) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x010C (0x000218) 0x0C02- f:00006 d: 2 | A = A >> 2 (0x0002)
0x010D (0x00021A) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x010E (0x00021C) 0x10E9- f:00010 d: 233 | A = 233 (0x00E9)
0x010F (0x00021E) 0x2928- f:00024 d: 296 | OR[296] = A
0x0110 (0x000220) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0111 (0x000222) 0x2927- f:00024 d: 295 | OR[295] = A
0x0112 (0x000224) 0x7E03-0x06A3 f:00077 d: 3 | R = OR[3]+1699 (0x06A3)
0x0114 (0x000228) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0115 (0x00022A) 0x2921- f:00024 d: 289 | OR[289] = A
0x0116 (0x00022C) 0x3101- f:00030 d: 257 | A = (OR[257])
0x0117 (0x00022E) 0x080D- f:00004 d: 13 | A = A > 13 (0x000D)
0x0118 (0x000230) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0119 (0x000232) 0xAE03-0x0703 f:00127 d: 3 | P = OR[3]+1795 (0x0703), A # 0
0x011B (0x000236) 0x2100- f:00020 d: 256 | A = OR[256]
0x011C (0x000238) 0x1434- f:00012 d: 52 | A = A + 52 (0x0034)
0x011D (0x00023A) 0x2908- f:00024 d: 264 | OR[264] = A
0x011E (0x00023C) 0x3108- f:00030 d: 264 | A = (OR[264])
0x011F (0x00023E) 0x080F- f:00004 d: 15 | A = A > 15 (0x000F)
0x0120 (0x000240) 0x293F- f:00024 d: 319 | OR[319] = A
0x0121 (0x000242) 0x2121- f:00020 d: 289 | A = OR[289]
0x0122 (0x000244) 0x1604- f:00013 d: 4 | A = A - 4 (0x0004)
0x0123 (0x000246) 0x8404- f:00102 d: 4 | P = P + 4 (0x0127), A = 0
0x0124 (0x000248) 0x213F- f:00020 d: 319 | A = OR[319]
0x0125 (0x00024A) 0x8402- f:00102 d: 2 | P = P + 2 (0x0127), A = 0
0x0126 (0x00024C) 0x700E- f:00070 d: 14 | P = P + 14 (0x0134)
0x0127 (0x00024E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0128 (0x000250) 0x3918- f:00034 d: 280 | (OR[280]) = A
0x0129 (0x000252) 0x2100- f:00020 d: 256 | A = OR[256]
0x012A (0x000254) 0x1434- f:00012 d: 52 | A = A + 52 (0x0034)
0x012B (0x000256) 0x2908- f:00024 d: 264 | OR[264] = A
0x012C (0x000258) 0x3108- f:00030 d: 264 | A = (OR[264])
0x012D (0x00025A) 0x0E01- f:00007 d: 1 | A = A << 1 (0x0001)
0x012E (0x00025C) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x012F (0x00025E) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x0130 (0x000260) 0x0C02- f:00006 d: 2 | A = A >> 2 (0x0002)
0x0131 (0x000262) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0132 (0x000264) 0x707E- f:00070 d: 126 | P = P + 126 (0x01B0)
0x0133 (0x000266) 0x707D- f:00070 d: 125 | P = P + 125 (0x01B0)
0x0134 (0x000268) 0x2121- f:00020 d: 289 | A = OR[289]
0x0135 (0x00026A) 0x1605- f:00013 d: 5 | A = A - 5 (0x0005)
0x0136 (0x00026C) 0x8405- f:00102 d: 5 | P = P + 5 (0x013B), A = 0
0x0137 (0x00026E) 0x3124- f:00030 d: 292 | A = (OR[292])
0x0138 (0x000270) 0x2724- f:00023 d: 292 | A = A - OR[292]
0x0139 (0x000272) 0x8602- f:00103 d: 2 | P = P + 2 (0x013B), A # 0
0x013A (0x000274) 0x702E- f:00070 d: 46 | P = P + 46 (0x0168)
0x013B (0x000276) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x013C (0x000278) 0x3918- f:00034 d: 280 | (OR[280]) = A
0x013D (0x00027A) 0x2100- f:00020 d: 256 | A = OR[256]
0x013E (0x00027C) 0x1434- f:00012 d: 52 | A = A + 52 (0x0034)
0x013F (0x00027E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0140 (0x000280) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0141 (0x000282) 0x0E01- f:00007 d: 1 | A = A << 1 (0x0001)
0x0142 (0x000284) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x0143 (0x000286) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x0144 (0x000288) 0x0C02- f:00006 d: 2 | A = A >> 2 (0x0002)
0x0145 (0x00028A) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0146 (0x00028C) 0x7E03-0x06D0 f:00077 d: 3 | R = OR[3]+1744 (0x06D0)
0x0148 (0x000290) 0x10E5- f:00010 d: 229 | A = 229 (0x00E5)
0x0149 (0x000292) 0x2928- f:00024 d: 296 | OR[296] = A
0x014A (0x000294) 0x7E03-0x06A1 f:00077 d: 3 | R = OR[3]+1697 (0x06A1)
0x014C (0x000298) 0x7E03-0x055D f:00077 d: 3 | R = OR[3]+1373 (0x055D)
0x014E (0x00029C) 0x8E7B- f:00107 d: 123 | P = P - 123 (0x00D3), A # 0
0x014F (0x00029E) 0x311B- f:00030 d: 283 | A = (OR[283])
0x0150 (0x0002A0) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0151 (0x0002A2) 0x2913- f:00024 d: 275 | OR[275] = A
0x0152 (0x0002A4) 0x2D13- f:00026 d: 275 | OR[275] = OR[275] + 1
0x0153 (0x0002A6) 0x2113- f:00020 d: 275 | A = OR[275]
0x0154 (0x0002A8) 0x16E5- f:00013 d: 229 | A = A - 229 (0x00E5)
0x0155 (0x0002AA) 0x8602- f:00103 d: 2 | P = P + 2 (0x0157), A # 0
0x0156 (0x0002AC) 0x700B- f:00070 d: 11 | P = P + 11 (0x0161)
0x0157 (0x0002AE) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x0158 (0x0002B0) 0x2945- f:00024 d: 325 | OR[325] = A
0x0159 (0x0002B2) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x015A (0x0002B4) 0x2946- f:00024 d: 326 | OR[326] = A
0x015B (0x0002B6) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x015C (0x0002B8) 0x5800- f:00054 d: 0 | B = A
0x015D (0x0002BA) 0x1800-0x5B18 f:00014 d: 0 | A = 23320 (0x5B18)
0x015F (0x0002BE) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0160 (0x0002C0) 0x728D- f:00071 d: 141 | P = P - 141 (0x00D3)
0x0161 (0x0002C2) 0x2124- f:00020 d: 292 | A = OR[292]
0x0162 (0x0002C4) 0x2944- f:00024 d: 324 | OR[324] = A
0x0163 (0x0002C6) 0x1005- f:00010 d: 5 | A = 5 (0x0005)
0x0164 (0x0002C8) 0x2928- f:00024 d: 296 | OR[296] = A
0x0165 (0x0002CA) 0x7A03-0x03B1 f:00075 d: 3 | P = OR[3]+945 (0x03B1)
0x0167 (0x0002CE) 0x7049- f:00070 d: 73 | P = P + 73 (0x01B0)
0x0168 (0x0002D0) 0x3142- f:00030 d: 322 | A = (OR[322])
0x0169 (0x0002D2) 0x2742- f:00023 d: 322 | A = A - OR[322]
0x016A (0x0002D4) 0x8602- f:00103 d: 2 | P = P + 2 (0x016C), A # 0
0x016B (0x0002D6) 0x7028- f:00070 d: 40 | P = P + 40 (0x0193)
0x016C (0x0002D8) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x016D (0x0002DA) 0x3918- f:00034 d: 280 | (OR[280]) = A
0x016E (0x0002DC) 0x2100- f:00020 d: 256 | A = OR[256]
0x016F (0x0002DE) 0x1434- f:00012 d: 52 | A = A + 52 (0x0034)
0x0170 (0x0002E0) 0x2908- f:00024 d: 264 | OR[264] = A
0x0171 (0x0002E2) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0172 (0x0002E4) 0x0E01- f:00007 d: 1 | A = A << 1 (0x0001)
0x0173 (0x0002E6) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x0174 (0x0002E8) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x0175 (0x0002EA) 0x0C02- f:00006 d: 2 | A = A >> 2 (0x0002)
0x0176 (0x0002EC) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0177 (0x0002EE) 0x3142- f:00030 d: 322 | A = (OR[322])
0x0178 (0x0002F0) 0x2922- f:00024 d: 290 | OR[290] = A
0x0179 (0x0002F2) 0x1602- f:00013 d: 2 | A = A - 2 (0x0002)
0x017A (0x0002F4) 0x2925- f:00024 d: 293 | OR[293] = A
0x017B (0x0002F6) 0x2125- f:00020 d: 293 | A = OR[293]
0x017C (0x0002F8) 0x1404- f:00012 d: 4 | A = A + 4 (0x0004)
0x017D (0x0002FA) 0x2908- f:00024 d: 264 | OR[264] = A
0x017E (0x0002FC) 0x3108- f:00030 d: 264 | A = (OR[264])
0x017F (0x0002FE) 0x2928- f:00024 d: 296 | OR[296] = A
0x0180 (0x000300) 0x2128- f:00020 d: 296 | A = OR[296]
0x0181 (0x000302) 0x1602- f:00013 d: 2 | A = A - 2 (0x0002)
0x0182 (0x000304) 0x8402- f:00102 d: 2 | P = P + 2 (0x0184), A = 0
0x0183 (0x000306) 0x7004- f:00070 d: 4 | P = P + 4 (0x0187)
0x0184 (0x000308) 0x7A03-0x0522 f:00075 d: 3 | P = OR[3]+1314 (0x0522)
0x0186 (0x00030C) 0x700C- f:00070 d: 12 | P = P + 12 (0x0192)
0x0187 (0x00030E) 0x2128- f:00020 d: 296 | A = OR[296]
0x0188 (0x000310) 0x160C- f:00013 d: 12 | A = A - 12 (0x000C)
0x0189 (0x000312) 0x8402- f:00102 d: 2 | P = P + 2 (0x018B), A = 0
0x018A (0x000314) 0x7004- f:00070 d: 4 | P = P + 4 (0x018E)
0x018B (0x000316) 0x7A03-0x053C f:00075 d: 3 | P = OR[3]+1340 (0x053C)
0x018D (0x00031A) 0x7005- f:00070 d: 5 | P = P + 5 (0x0192)
0x018E (0x00031C) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x018F (0x00031E) 0x292A- f:00024 d: 298 | OR[298] = A
0x0190 (0x000320) 0x7A03-0x0318 f:00075 d: 3 | P = OR[3]+792 (0x0318)
0x0192 (0x000324) 0x701E- f:00070 d: 30 | P = P + 30 (0x01B0)
0x0193 (0x000326) 0x0400- f:00002 d: 0 | I = 0
0x0194 (0x000328) 0x0000- f:00000 d: 0 | PASS
0x0195 (0x00032A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0196 (0x00032C) 0x290D- f:00024 d: 269 | OR[269] = A
0x0197 (0x00032E) 0x3118- f:00030 d: 280 | A = (OR[280])
0x0198 (0x000330) 0x8612- f:00103 d: 18 | P = P + 18 (0x01AA), A # 0
0x0199 (0x000332) 0x1009- f:00010 d: 9 | A = 9 (0x0009)
0x019A (0x000334) 0x2945- f:00024 d: 325 | OR[325] = A
0x019B (0x000336) 0x2118- f:00020 d: 280 | A = OR[280]
0x019C (0x000338) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x019D (0x00033A) 0x2946- f:00024 d: 326 | OR[326] = A
0x019E (0x00033C) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x019F (0x00033E) 0x2947- f:00024 d: 327 | OR[327] = A
0x01A0 (0x000340) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x01A1 (0x000342) 0x5800- f:00054 d: 0 | B = A
0x01A2 (0x000344) 0x1800-0x5B18 f:00014 d: 0 | A = 23320 (0x5B18)
0x01A4 (0x000348) 0x7C09- f:00076 d: 9 | R = OR[9]
0x01A5 (0x00034A) 0x2006- f:00020 d: 6 | A = OR[6]
0x01A6 (0x00034C) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x01A7 (0x00034E) 0x2908- f:00024 d: 264 | OR[264] = A
0x01A8 (0x000350) 0x3108- f:00030 d: 264 | A = (OR[264])
0x01A9 (0x000352) 0x290D- f:00024 d: 269 | OR[269] = A
0x01AA (0x000354) 0x3118- f:00030 d: 280 | A = (OR[280])
0x01AB (0x000356) 0x2921- f:00024 d: 289 | OR[289] = A
0x01AC (0x000358) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01AD (0x00035A) 0x3918- f:00034 d: 280 | (OR[280]) = A
0x01AE (0x00035C) 0x210D- f:00020 d: 269 | A = OR[269]
0x01AF (0x00035E) 0x7299- f:00071 d: 153 | P = P - 153 (0x0116)
0x01B0 (0x000360) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01B1 (0x000362) 0x292F- f:00024 d: 303 | OR[303] = A
0x01B2 (0x000364) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01B3 (0x000366) 0x292D- f:00024 d: 301 | OR[301] = A
0x01B4 (0x000368) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01B5 (0x00036A) 0x2933- f:00024 d: 307 | OR[307] = A
0x01B6 (0x00036C) 0x1025- f:00010 d: 37 | A = 37 (0x0025)
0x01B7 (0x00036E) 0x2928- f:00024 d: 296 | OR[296] = A
0x01B8 (0x000370) 0x211F- f:00020 d: 287 | A = OR[287]
0x01B9 (0x000372) 0x2935- f:00024 d: 309 | OR[309] = A
0x01BA (0x000374) 0x1020- f:00010 d: 32 | A = 32 (0x0020)
0x01BB (0x000376) 0x291C- f:00024 d: 284 | OR[284] = A
0x01BC (0x000378) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x01BD (0x00037A) 0x2927- f:00024 d: 295 | OR[295] = A
0x01BE (0x00037C) 0x7E03-0x06A7 f:00077 d: 3 | R = OR[3]+1703 (0x06A7)
0x01C0 (0x000380) 0x2100- f:00020 d: 256 | A = OR[256]
0x01C1 (0x000382) 0x1435- f:00012 d: 53 | A = A + 53 (0x0035)
0x01C2 (0x000384) 0x2908- f:00024 d: 264 | OR[264] = A
0x01C3 (0x000386) 0x3108- f:00030 d: 264 | A = (OR[264])
0x01C4 (0x000388) 0x2913- f:00024 d: 275 | OR[275] = A
0x01C5 (0x00038A) 0x2113- f:00020 d: 275 | A = OR[275]
0x01C6 (0x00038C) 0x271F- f:00023 d: 287 | A = A - OR[287]
0x01C7 (0x00038E) 0x293F- f:00024 d: 319 | OR[319] = A
0x01C8 (0x000390) 0x7E03-0x055D f:00077 d: 3 | R = OR[3]+1373 (0x055D)
0x01CA (0x000394) 0x8602- f:00103 d: 2 | P = P + 2 (0x01CC), A # 0
0x01CB (0x000396) 0x700D- f:00070 d: 13 | P = P + 13 (0x01D8)
0x01CC (0x000398) 0x211F- f:00020 d: 287 | A = OR[287]
0x01CD (0x00039A) 0x290E- f:00024 d: 270 | OR[270] = A
0x01CE (0x00039C) 0x1020- f:00010 d: 32 | A = 32 (0x0020)
0x01CF (0x00039E) 0x290D- f:00024 d: 269 | OR[269] = A
0x01D0 (0x0003A0) 0x210D- f:00020 d: 269 | A = OR[269]
0x01D1 (0x0003A2) 0x8406- f:00102 d: 6 | P = P + 6 (0x01D7), A = 0
0x01D2 (0x0003A4) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01D3 (0x0003A6) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x01D4 (0x0003A8) 0x2F0D- f:00027 d: 269 | OR[269] = OR[269] - 1
0x01D5 (0x0003AA) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x01D6 (0x0003AC) 0x7206- f:00071 d: 6 | P = P - 6 (0x01D0)
0x01D7 (0x0003AE) 0x7304- f:00071 d: 260 | P = P - 260 (0x00D3)
0x01D8 (0x0003B0) 0x311F- f:00030 d: 287 | A = (OR[287])
0x01D9 (0x0003B2) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x01DA (0x0003B4) 0x292B- f:00024 d: 299 | OR[299] = A
0x01DB (0x0003B6) 0x211F- f:00020 d: 287 | A = OR[287]
0x01DC (0x0003B8) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x01DD (0x0003BA) 0x2908- f:00024 d: 264 | OR[264] = A
0x01DE (0x0003BC) 0x3108- f:00030 d: 264 | A = (OR[264])
0x01DF (0x0003BE) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x01E0 (0x0003C0) 0x2913- f:00024 d: 275 | OR[275] = A
0x01E1 (0x0003C2) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x01E2 (0x0003C4) 0x2945- f:00024 d: 325 | OR[325] = A
0x01E3 (0x0003C6) 0x1800-0x0191 f:00014 d: 0 | A = 401 (0x0191)
0x01E5 (0x0003CA) 0x2946- f:00024 d: 326 | OR[326] = A
0x01E6 (0x0003CC) 0x2101- f:00020 d: 257 | A = OR[257]
0x01E7 (0x0003CE) 0x2947- f:00024 d: 327 | OR[327] = A
0x01E8 (0x0003D0) 0x211F- f:00020 d: 287 | A = OR[287]
0x01E9 (0x0003D2) 0x2948- f:00024 d: 328 | OR[328] = A
0x01EA (0x0003D4) 0x2113- f:00020 d: 275 | A = OR[275]
0x01EB (0x0003D6) 0x2949- f:00024 d: 329 | OR[329] = A
0x01EC (0x0003D8) 0x2123- f:00020 d: 291 | A = OR[291]
0x01ED (0x0003DA) 0x294A- f:00024 d: 330 | OR[330] = A
0x01EE (0x0003DC) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x01EF (0x0003DE) 0x5800- f:00054 d: 0 | B = A
0x01F0 (0x0003E0) 0x1800-0x5B18 f:00014 d: 0 | A = 23320 (0x5B18)
0x01F2 (0x0003E4) 0x7C09- f:00076 d: 9 | R = OR[9]
0x01F3 (0x0003E6) 0x2925- f:00024 d: 293 | OR[293] = A
0x01F4 (0x0003E8) 0x2125- f:00020 d: 293 | A = OR[293]
0x01F5 (0x0003EA) 0x8603- f:00103 d: 3 | P = P + 3 (0x01F8), A # 0
0x01F6 (0x0003EC) 0x7A03-0x022B f:00075 d: 3 | P = OR[3]+555 (0x022B)
0x01F8 (0x0003F0) 0x213F- f:00020 d: 319 | A = OR[319]
0x01F9 (0x0003F2) 0x0802- f:00004 d: 2 | A = A > 2 (0x0002)
0x01FA (0x0003F4) 0x2913- f:00024 d: 275 | OR[275] = A
0x01FB (0x0003F6) 0x2125- f:00020 d: 293 | A = OR[293]
0x01FC (0x0003F8) 0x1407- f:00012 d: 7 | A = A + 7 (0x0007)
0x01FD (0x0003FA) 0x2908- f:00024 d: 264 | OR[264] = A
0x01FE (0x0003FC) 0x2113- f:00020 d: 275 | A = OR[275]
0x01FF (0x0003FE) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0200 (0x000400) 0x2125- f:00020 d: 293 | A = OR[293]
0x0201 (0x000402) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008)
0x0202 (0x000404) 0x292E- f:00024 d: 302 | OR[302] = A
0x0203 (0x000406) 0x211F- f:00020 d: 287 | A = OR[287]
0x0204 (0x000408) 0x290D- f:00024 d: 269 | OR[269] = A
0x0205 (0x00040A) 0x212E- f:00020 d: 302 | A = OR[302]
0x0206 (0x00040C) 0x290E- f:00024 d: 270 | OR[270] = A
0x0207 (0x00040E) 0x1020- f:00010 d: 32 | A = 32 (0x0020)
0x0208 (0x000410) 0x290F- f:00024 d: 271 | OR[271] = A
0x0209 (0x000412) 0x7006- f:00070 d: 6 | P = P + 6 (0x020F)
0x020A (0x000414) 0x310D- f:00030 d: 269 | A = (OR[269])
0x020B (0x000416) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x020C (0x000418) 0x2D0D- f:00026 d: 269 | OR[269] = OR[269] + 1
0x020D (0x00041A) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x020E (0x00041C) 0x2F0F- f:00027 d: 271 | OR[271] = OR[271] - 1
0x020F (0x00041E) 0x210F- f:00020 d: 271 | A = OR[271]
0x0210 (0x000420) 0x8E06- f:00107 d: 6 | P = P - 6 (0x020A), A # 0
0x0211 (0x000422) 0x2125- f:00020 d: 293 | A = OR[293]
0x0212 (0x000424) 0x142B- f:00012 d: 43 | A = A + 43 (0x002B)
0x0213 (0x000426) 0x292E- f:00024 d: 302 | OR[302] = A
0x0214 (0x000428) 0x2125- f:00020 d: 293 | A = OR[293]
0x0215 (0x00042A) 0x1429- f:00012 d: 41 | A = A + 41 (0x0029)
0x0216 (0x00042C) 0x2908- f:00024 d: 264 | OR[264] = A
0x0217 (0x00042E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0218 (0x000430) 0x292F- f:00024 d: 303 | OR[303] = A
0x0219 (0x000432) 0x212F- f:00020 d: 303 | A = OR[303]
0x021A (0x000434) 0x8402- f:00102 d: 2 | P = P + 2 (0x021C), A = 0
0x021B (0x000436) 0x7009- f:00070 d: 9 | P = P + 9 (0x0224)
0x021C (0x000438) 0x212B- f:00020 d: 299 | A = OR[299]
0x021D (0x00043A) 0x8602- f:00103 d: 2 | P = P + 2 (0x021F), A # 0
0x021E (0x00043C) 0x7006- f:00070 d: 6 | P = P + 6 (0x0224)
0x021F (0x00043E) 0x1800-0x4000 f:00014 d: 0 | A = 16384 (0x4000)
0x0221 (0x000442) 0x292F- f:00024 d: 303 | OR[303] = A
0x0222 (0x000444) 0x102F- f:00010 d: 47 | A = 47 (0x002F)
0x0223 (0x000446) 0x292A- f:00024 d: 298 | OR[298] = A
0x0224 (0x000448) 0x700F- f:00070 d: 15 | P = P + 15 (0x0233)
0x0225 (0x00044A) 0x1800-0x4000 f:00014 d: 0 | A = 16384 (0x4000)
0x0227 (0x00044E) 0x292F- f:00024 d: 303 | OR[303] = A
0x0228 (0x000450) 0x2100- f:00020 d: 256 | A = OR[256]
0x0229 (0x000452) 0x143C- f:00012 d: 60 | A = A + 60 (0x003C)
0x022A (0x000454) 0x2908- f:00024 d: 264 | OR[264] = A
0x022B (0x000456) 0x3108- f:00030 d: 264 | A = (OR[264])
0x022C (0x000458) 0x293B- f:00024 d: 315 | OR[315] = A
0x022D (0x00045A) 0x2D3B- f:00026 d: 315 | OR[315] = OR[315] + 1
0x022E (0x00045C) 0x2100- f:00020 d: 256 | A = OR[256]
0x022F (0x00045E) 0x143C- f:00012 d: 60 | A = A + 60 (0x003C)
0x0230 (0x000460) 0x2908- f:00024 d: 264 | OR[264] = A
0x0231 (0x000462) 0x213B- f:00020 d: 315 | A = OR[315]
0x0232 (0x000464) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0233 (0x000466) 0x211F- f:00020 d: 287 | A = OR[287]
0x0234 (0x000468) 0x290E- f:00024 d: 270 | OR[270] = A
0x0235 (0x00046A) 0x1020- f:00010 d: 32 | A = 32 (0x0020)
0x0236 (0x00046C) 0x290D- f:00024 d: 269 | OR[269] = A
0x0237 (0x00046E) 0x210D- f:00020 d: 269 | A = OR[269]
0x0238 (0x000470) 0x8406- f:00102 d: 6 | P = P + 6 (0x023E), A = 0
0x0239 (0x000472) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x023A (0x000474) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x023B (0x000476) 0x2F0D- f:00027 d: 269 | OR[269] = OR[269] - 1
0x023C (0x000478) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x023D (0x00047A) 0x7206- f:00071 d: 6 | P = P - 6 (0x0237)
0x023E (0x00047C) 0x212B- f:00020 d: 299 | A = OR[299]
0x023F (0x00047E) 0x8602- f:00103 d: 2 | P = P + 2 (0x0241), A # 0
0x0240 (0x000480) 0x70D2- f:00070 d: 210 | P = P + 210 (0x0312)
0x0241 (0x000482) 0x212F- f:00020 d: 303 | A = OR[303]
0x0242 (0x000484) 0x1E00-0x0200 f:00017 d: 0 | A = A - 512 (0x0200)
0x0244 (0x000488) 0x8003- f:00100 d: 3 | P = P + 3 (0x0247), C = 0
0x0245 (0x00048A) 0x8402- f:00102 d: 2 | P = P + 2 (0x0247), A = 0
0x0246 (0x00048C) 0x7002- f:00070 d: 2 | P = P + 2 (0x0248)
0x0247 (0x00048E) 0x7005- f:00070 d: 5 | P = P + 5 (0x024C)
0x0248 (0x000490) 0x1800-0x0200 f:00014 d: 0 | A = 512 (0x0200)
0x024A (0x000494) 0x291D- f:00024 d: 285 | OR[285] = A
0x024B (0x000496) 0x7003- f:00070 d: 3 | P = P + 3 (0x024E)
0x024C (0x000498) 0x212F- f:00020 d: 303 | A = OR[303]
0x024D (0x00049A) 0x291D- f:00024 d: 285 | OR[285] = A
0x024E (0x00049C) 0x211A- f:00020 d: 282 | A = OR[282]
0x024F (0x00049E) 0x2936- f:00024 d: 310 | OR[310] = A
0x0250 (0x0004A0) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x0251 (0x0004A2) 0x291E- f:00024 d: 286 | OR[286] = A
0x0252 (0x0004A4) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0253 (0x0004A6) 0x2941- f:00024 d: 321 | OR[321] = A
0x0254 (0x0004A8) 0x211D- f:00020 d: 285 | A = OR[285]
0x0255 (0x0004AA) 0x84A9- f:00102 d: 169 | P = P + 169 (0x02FE), A = 0
0x0256 (0x0004AC) 0x2141- f:00020 d: 321 | A = OR[321]
0x0257 (0x0004AE) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x0258 (0x0004B0) 0x84A6- f:00102 d: 166 | P = P + 166 (0x02FE), A = 0
0x0259 (0x0004B2) 0x212F- f:00020 d: 303 | A = OR[303]
0x025A (0x0004B4) 0x271D- f:00023 d: 285 | A = A - OR[285]
0x025B (0x0004B6) 0x292F- f:00024 d: 303 | OR[303] = A
0x025C (0x0004B8) 0x1029- f:00010 d: 41 | A = 41 (0x0029)
0x025D (0x0004BA) 0x2928- f:00024 d: 296 | OR[296] = A
0x025E (0x0004BC) 0x2132- f:00020 d: 306 | A = OR[306]
0x025F (0x0004BE) 0x2935- f:00024 d: 309 | OR[309] = A
0x0260 (0x0004C0) 0x211D- f:00020 d: 285 | A = OR[285]
0x0261 (0x0004C2) 0x0A02- f:00005 d: 2 | A = A < 2 (0x0002)
0x0262 (0x0004C4) 0x291C- f:00024 d: 284 | OR[284] = A
0x0263 (0x0004C6) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0264 (0x0004C8) 0x2927- f:00024 d: 295 | OR[295] = A
0x0265 (0x0004CA) 0x7E03-0x06AB f:00077 d: 3 | R = OR[3]+1707 (0x06AB)
0x0267 (0x0004CE) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0268 (0x0004D0) 0x2936- f:00024 d: 310 | OR[310] = A
0x0269 (0x0004D2) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x026A (0x0004D4) 0x291E- f:00024 d: 286 | OR[286] = A
0x026B (0x0004D6) 0x2125- f:00020 d: 293 | A = OR[293]
0x026C (0x0004D8) 0x8602- f:00103 d: 2 | P = P + 2 (0x026E), A # 0
0x026D (0x0004DA) 0x7071- f:00070 d: 113 | P = P + 113 (0x02DE)
0x026E (0x0004DC) 0x2125- f:00020 d: 293 | A = OR[293]
0x026F (0x0004DE) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x0270 (0x0004E0) 0x2908- f:00024 d: 264 | OR[264] = A
0x0271 (0x0004E2) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0272 (0x0004E4) 0x080E- f:00004 d: 14 | A = A > 14 (0x000E)
0x0273 (0x0004E6) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0274 (0x0004E8) 0x2913- f:00024 d: 275 | OR[275] = A
0x0275 (0x0004EA) 0x2113- f:00020 d: 275 | A = OR[275]
0x0276 (0x0004EC) 0x8402- f:00102 d: 2 | P = P + 2 (0x0278), A = 0
0x0277 (0x0004EE) 0x7027- f:00070 d: 39 | P = P + 39 (0x029E)
0x0278 (0x0004F0) 0x101D- f:00010 d: 29 | A = 29 (0x001D)
0x0279 (0x0004F2) 0x2945- f:00024 d: 325 | OR[325] = A
0x027A (0x0004F4) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x027B (0x0004F6) 0x2946- f:00024 d: 326 | OR[326] = A
0x027C (0x0004F8) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x027D (0x0004FA) 0x5800- f:00054 d: 0 | B = A
0x027E (0x0004FC) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x027F (0x0004FE) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0280 (0x000500) 0x2006- f:00020 d: 6 | A = OR[6]
0x0281 (0x000502) 0x140C- f:00012 d: 12 | A = A + 12 (0x000C)
0x0282 (0x000504) 0x2908- f:00024 d: 264 | OR[264] = A
0x0283 (0x000506) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0284 (0x000508) 0x2930- f:00024 d: 304 | OR[304] = A
0x0285 (0x00050A) 0x2006- f:00020 d: 6 | A = OR[6]
0x0286 (0x00050C) 0x140D- f:00012 d: 13 | A = A + 13 (0x000D)
0x0287 (0x00050E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0288 (0x000510) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0289 (0x000512) 0x2931- f:00024 d: 305 | OR[305] = A
0x028A (0x000514) 0x2006- f:00020 d: 6 | A = OR[6]
0x028B (0x000516) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x028C (0x000518) 0x2908- f:00024 d: 264 | OR[264] = A
0x028D (0x00051A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x028E (0x00051C) 0x8602- f:00103 d: 2 | P = P + 2 (0x0290), A # 0
0x028F (0x00051E) 0x7007- f:00070 d: 7 | P = P + 7 (0x0296)
0x0290 (0x000520) 0x100E- f:00010 d: 14 | A = 14 (0x000E)
0x0291 (0x000522) 0x2920- f:00024 d: 288 | OR[288] = A
0x0292 (0x000524) 0x7E03-0x0674 f:00077 d: 3 | R = OR[3]+1652 (0x0674)
0x0294 (0x000528) 0x7A03-0x0703 f:00075 d: 3 | P = OR[3]+1795 (0x0703)
0x0296 (0x00052C) 0x2130- f:00020 d: 304 | A = OR[304]
0x0297 (0x00052E) 0x392E- f:00034 d: 302 | (OR[302]) = A
0x0298 (0x000530) 0x212E- f:00020 d: 302 | A = OR[302]
0x0299 (0x000532) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x029A (0x000534) 0x2908- f:00024 d: 264 | OR[264] = A
0x029B (0x000536) 0x2131- f:00020 d: 305 | A = OR[305]
0x029C (0x000538) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x029D (0x00053A) 0x7008- f:00070 d: 8 | P = P + 8 (0x02A5)
0x029E (0x00053C) 0x312E- f:00030 d: 302 | A = (OR[302])
0x029F (0x00053E) 0x2930- f:00024 d: 304 | OR[304] = A
0x02A0 (0x000540) 0x212E- f:00020 d: 302 | A = OR[302]
0x02A1 (0x000542) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x02A2 (0x000544) 0x2908- f:00024 d: 264 | OR[264] = A
0x02A3 (0x000546) 0x3108- f:00030 d: 264 | A = (OR[264])
0x02A4 (0x000548) 0x2931- f:00024 d: 305 | OR[305] = A
0x02A5 (0x00054A) 0x212F- f:00020 d: 303 | A = OR[303]
0x02A6 (0x00054C) 0x8402- f:00102 d: 2 | P = P + 2 (0x02A8), A = 0
0x02A7 (0x00054E) 0x7012- f:00070 d: 18 | P = P + 18 (0x02B9)
0x02A8 (0x000550) 0x1027- f:00010 d: 39 | A = 39 (0x0027)
0x02A9 (0x000552) 0x2945- f:00024 d: 325 | OR[325] = A
0x02AA (0x000554) 0x2130- f:00020 d: 304 | A = OR[304]
0x02AB (0x000556) 0x2946- f:00024 d: 326 | OR[326] = A
0x02AC (0x000558) 0x2131- f:00020 d: 305 | A = OR[305]
0x02AD (0x00055A) 0x2947- f:00024 d: 327 | OR[327] = A
0x02AE (0x00055C) 0x2132- f:00020 d: 306 | A = OR[306]
0x02AF (0x00055E) 0x2948- f:00024 d: 328 | OR[328] = A
0x02B0 (0x000560) 0x211D- f:00020 d: 285 | A = OR[285]
0x02B1 (0x000562) 0x2949- f:00024 d: 329 | OR[329] = A
0x02B2 (0x000564) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x02B3 (0x000566) 0x294A- f:00024 d: 330 | OR[330] = A
0x02B4 (0x000568) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x02B5 (0x00056A) 0x5800- f:00054 d: 0 | B = A
0x02B6 (0x00056C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x02B7 (0x00056E) 0x7C09- f:00076 d: 9 | R = OR[9]
0x02B8 (0x000570) 0x7011- f:00070 d: 17 | P = P + 17 (0x02C9)
0x02B9 (0x000572) 0x1027- f:00010 d: 39 | A = 39 (0x0027)
0x02BA (0x000574) 0x2945- f:00024 d: 325 | OR[325] = A
0x02BB (0x000576) 0x2130- f:00020 d: 304 | A = OR[304]
0x02BC (0x000578) 0x2946- f:00024 d: 326 | OR[326] = A
0x02BD (0x00057A) 0x2131- f:00020 d: 305 | A = OR[305]
0x02BE (0x00057C) 0x2947- f:00024 d: 327 | OR[327] = A
0x02BF (0x00057E) 0x2132- f:00020 d: 306 | A = OR[306]
0x02C0 (0x000580) 0x2948- f:00024 d: 328 | OR[328] = A
0x02C1 (0x000582) 0x211D- f:00020 d: 285 | A = OR[285]
0x02C2 (0x000584) 0x2949- f:00024 d: 329 | OR[329] = A
0x02C3 (0x000586) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x02C4 (0x000588) 0x294A- f:00024 d: 330 | OR[330] = A
0x02C5 (0x00058A) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x02C6 (0x00058C) 0x5800- f:00054 d: 0 | B = A
0x02C7 (0x00058E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x02C8 (0x000590) 0x7C09- f:00076 d: 9 | R = OR[9]
0x02C9 (0x000592) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x02CA (0x000594) 0x2B2E- f:00025 d: 302 | OR[302] = A + OR[302]
0x02CB (0x000596) 0x2100- f:00020 d: 256 | A = OR[256]
0x02CC (0x000598) 0x1435- f:00012 d: 53 | A = A + 53 (0x0035)
0x02CD (0x00059A) 0x2908- f:00024 d: 264 | OR[264] = A
0x02CE (0x00059C) 0x3108- f:00030 d: 264 | A = (OR[264])
0x02CF (0x00059E) 0x293F- f:00024 d: 319 | OR[319] = A
0x02D0 (0x0005A0) 0x213F- f:00020 d: 319 | A = OR[319]
0x02D1 (0x0005A2) 0x2732- f:00023 d: 306 | A = A - OR[306]
0x02D2 (0x0005A4) 0x2940- f:00024 d: 320 | OR[320] = A
0x02D3 (0x0005A6) 0x2140- f:00020 d: 320 | A = OR[320]
0x02D4 (0x0005A8) 0x0802- f:00004 d: 2 | A = A > 2 (0x0002)
0x02D5 (0x0005AA) 0x2B33- f:00025 d: 307 | OR[307] = A + OR[307]
0x02D6 (0x0005AC) 0x2132- f:00020 d: 306 | A = OR[306]
0x02D7 (0x0005AE) 0x251C- f:00022 d: 284 | A = A + OR[284]
0x02D8 (0x0005B0) 0x2908- f:00024 d: 264 | OR[264] = A
0x02D9 (0x0005B2) 0x213F- f:00020 d: 319 | A = OR[319]
0x02DA (0x0005B4) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x02DB (0x0005B6) 0x8602- f:00103 d: 2 | P = P + 2 (0x02DD), A # 0
0x02DC (0x0005B8) 0x7002- f:00070 d: 2 | P = P + 2 (0x02DE)
0x02DD (0x0005BA) 0x7035- f:00070 d: 53 | P = P + 53 (0x0312)
0x02DE (0x0005BC) 0x2100- f:00020 d: 256 | A = OR[256]
0x02DF (0x0005BE) 0x1436- f:00012 d: 54 | A = A + 54 (0x0036)
0x02E0 (0x0005C0) 0x2908- f:00024 d: 264 | OR[264] = A
0x02E1 (0x0005C2) 0x3108- f:00030 d: 264 | A = (OR[264])
0x02E2 (0x0005C4) 0x2913- f:00024 d: 275 | OR[275] = A
0x02E3 (0x0005C6) 0x2113- f:00020 d: 275 | A = OR[275]
0x02E4 (0x0005C8) 0x1A00-0x8000 f:00015 d: 0 | A = A & 32768 (0x8000)
0x02E6 (0x0005CC) 0x2914- f:00024 d: 276 | OR[276] = A
0x02E7 (0x0005CE) 0x2140- f:00020 d: 320 | A = OR[320]
0x02E8 (0x0005D0) 0x1E00-0x0800 f:00017 d: 0 | A = A - 2048 (0x0800)
0x02EA (0x0005D4) 0x8004- f:00100 d: 4 | P = P + 4 (0x02EE), C = 0
0x02EB (0x0005D6) 0x2114- f:00020 d: 276 | A = OR[276]
0x02EC (0x0005D8) 0x8402- f:00102 d: 2 | P = P + 2 (0x02EE), A = 0
0x02ED (0x0005DA) 0x7003- f:00070 d: 3 | P = P + 3 (0x02F0)
0x02EE (0x0005DC) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x02EF (0x0005DE) 0x2941- f:00024 d: 321 | OR[321] = A
0x02F0 (0x0005E0) 0x212F- f:00020 d: 303 | A = OR[303]
0x02F1 (0x0005E2) 0x1E00-0x0200 f:00017 d: 0 | A = A - 512 (0x0200)
0x02F3 (0x0005E6) 0x8003- f:00100 d: 3 | P = P + 3 (0x02F6), C = 0
0x02F4 (0x0005E8) 0x8402- f:00102 d: 2 | P = P + 2 (0x02F6), A = 0
0x02F5 (0x0005EA) 0x7002- f:00070 d: 2 | P = P + 2 (0x02F7)
0x02F6 (0x0005EC) 0x7005- f:00070 d: 5 | P = P + 5 (0x02FB)
0x02F7 (0x0005EE) 0x1800-0x0200 f:00014 d: 0 | A = 512 (0x0200)
0x02F9 (0x0005F2) 0x291D- f:00024 d: 285 | OR[285] = A
0x02FA (0x0005F4) 0x7003- f:00070 d: 3 | P = P + 3 (0x02FD)
0x02FB (0x0005F6) 0x212F- f:00020 d: 303 | A = OR[303]
0x02FC (0x0005F8) 0x291D- f:00024 d: 285 | OR[285] = A
0x02FD (0x0005FA) 0x72A9- f:00071 d: 169 | P = P - 169 (0x0254)
0x02FE (0x0005FC) 0x2125- f:00020 d: 293 | A = OR[293]
0x02FF (0x0005FE) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x0300 (0x000600) 0x2908- f:00024 d: 264 | OR[264] = A
0x0301 (0x000602) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0302 (0x000604) 0x080E- f:00004 d: 14 | A = A > 14 (0x000E)
0x0303 (0x000606) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0304 (0x000608) 0x2913- f:00024 d: 275 | OR[275] = A
0x0305 (0x00060A) 0x2113- f:00020 d: 275 | A = OR[275]
0x0306 (0x00060C) 0x8402- f:00102 d: 2 | P = P + 2 (0x0308), A = 0
0x0307 (0x00060E) 0x700B- f:00070 d: 11 | P = P + 11 (0x0312)
0x0308 (0x000610) 0x2125- f:00020 d: 293 | A = OR[293]
0x0309 (0x000612) 0x8602- f:00103 d: 2 | P = P + 2 (0x030B), A # 0
0x030A (0x000614) 0x7008- f:00070 d: 8 | P = P + 8 (0x0312)
0x030B (0x000616) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x030C (0x000618) 0x392E- f:00034 d: 302 | (OR[302]) = A
0x030D (0x00061A) 0x212E- f:00020 d: 302 | A = OR[302]
0x030E (0x00061C) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x030F (0x00061E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0310 (0x000620) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0311 (0x000622) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0312 (0x000624) 0x2100- f:00020 d: 256 | A = OR[256]
0x0313 (0x000626) 0x1436- f:00012 d: 54 | A = A + 54 (0x0036)
0x0314 (0x000628) 0x2908- f:00024 d: 264 | OR[264] = A
0x0315 (0x00062A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0316 (0x00062C) 0x293F- f:00024 d: 319 | OR[319] = A
0x0317 (0x00062E) 0x1A00-0xC000 f:00015 d: 0 | A = A & 49152 (0xC000)
0x0319 (0x000632) 0x2908- f:00024 d: 264 | OR[264] = A
0x031A (0x000634) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x031B (0x000636) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x031C (0x000638) 0x8602- f:00103 d: 2 | P = P + 2 (0x031E), A # 0
0x031D (0x00063A) 0x702D- f:00070 d: 45 | P = P + 45 (0x034A)
0x031E (0x00063C) 0x213F- f:00020 d: 319 | A = OR[319]
0x031F (0x00063E) 0x1A00-0x8000 f:00015 d: 0 | A = A & 32768 (0x8000)
0x0321 (0x000642) 0x2908- f:00024 d: 264 | OR[264] = A
0x0322 (0x000644) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0323 (0x000646) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x0324 (0x000648) 0x8602- f:00103 d: 2 | P = P + 2 (0x0326), A # 0
0x0325 (0x00064A) 0x7025- f:00070 d: 37 | P = P + 37 (0x034A)
0x0326 (0x00064C) 0x1031- f:00010 d: 49 | A = 49 (0x0031)
0x0327 (0x00064E) 0x292A- f:00024 d: 298 | OR[298] = A
0x0328 (0x000650) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0329 (0x000652) 0x2927- f:00024 d: 295 | OR[295] = A
0x032A (0x000654) 0x2132- f:00020 d: 306 | A = OR[306]
0x032B (0x000656) 0x2935- f:00024 d: 309 | OR[309] = A
0x032C (0x000658) 0x1800-0x0200 f:00014 d: 0 | A = 512 (0x0200)
0x032E (0x00065C) 0x291C- f:00024 d: 284 | OR[284] = A
0x032F (0x00065E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0330 (0x000660) 0x291E- f:00024 d: 286 | OR[286] = A
0x0331 (0x000662) 0x213F- f:00020 d: 319 | A = OR[319]
0x0332 (0x000664) 0x8418- f:00102 d: 24 | P = P + 24 (0x034A), A = 0
0x0333 (0x000666) 0x7E03-0x06AB f:00077 d: 3 | R = OR[3]+1707 (0x06AB)
0x0335 (0x00066A) 0x2100- f:00020 d: 256 | A = OR[256]
0x0336 (0x00066C) 0x1436- f:00012 d: 54 | A = A + 54 (0x0036)
0x0337 (0x00066E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0338 (0x000670) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0339 (0x000672) 0x293F- f:00024 d: 319 | OR[319] = A
0x033A (0x000674) 0x213F- f:00020 d: 319 | A = OR[319]
0x033B (0x000676) 0x1A00-0x8000 f:00015 d: 0 | A = A & 32768 (0x8000)
0x033D (0x00067A) 0x293F- f:00024 d: 319 | OR[319] = A
0x033E (0x00067C) 0x211B- f:00020 d: 283 | A = OR[283]
0x033F (0x00067E) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x0340 (0x000680) 0x2908- f:00024 d: 264 | OR[264] = A
0x0341 (0x000682) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0342 (0x000684) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0343 (0x000686) 0x2940- f:00024 d: 320 | OR[320] = A
0x0344 (0x000688) 0x2140- f:00020 d: 320 | A = OR[320]
0x0345 (0x00068A) 0x16FE- f:00013 d: 254 | A = A - 254 (0x00FE)
0x0346 (0x00068C) 0x8603- f:00103 d: 3 | P = P + 3 (0x0349), A # 0
0x0347 (0x00068E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0348 (0x000690) 0x293F- f:00024 d: 319 | OR[319] = A
0x0349 (0x000692) 0x7218- f:00071 d: 24 | P = P - 24 (0x0331)
0x034A (0x000694) 0x7E03-0x055D f:00077 d: 3 | R = OR[3]+1373 (0x055D)
0x034C (0x000698) 0x8403- f:00102 d: 3 | P = P + 3 (0x034F), A = 0
0x034D (0x00069A) 0x1022- f:00010 d: 34 | A = 34 (0x0022)
0x034E (0x00069C) 0x292A- f:00024 d: 298 | OR[298] = A
0x034F (0x00069E) 0x2125- f:00020 d: 293 | A = OR[293]
0x0350 (0x0006A0) 0x8602- f:00103 d: 2 | P = P + 2 (0x0352), A # 0
0x0351 (0x0006A2) 0x7058- f:00070 d: 88 | P = P + 88 (0x03A9)
0x0352 (0x0006A4) 0x2125- f:00020 d: 293 | A = OR[293]
0x0353 (0x0006A6) 0x1429- f:00012 d: 41 | A = A + 41 (0x0029)
0x0354 (0x0006A8) 0x2908- f:00024 d: 264 | OR[264] = A
0x0355 (0x0006AA) 0x2133- f:00020 d: 307 | A = OR[307]
0x0356 (0x0006AC) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0357 (0x0006AE) 0x2125- f:00020 d: 293 | A = OR[293]
0x0358 (0x0006B0) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x0359 (0x0006B2) 0x2922- f:00024 d: 290 | OR[290] = A
0x035A (0x0006B4) 0x3122- f:00030 d: 290 | A = (OR[290])
0x035B (0x0006B6) 0x290D- f:00024 d: 269 | OR[269] = A
0x035C (0x0006B8) 0x2122- f:00020 d: 290 | A = OR[290]
0x035D (0x0006BA) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x035E (0x0006BC) 0x2908- f:00024 d: 264 | OR[264] = A
0x035F (0x0006BE) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0360 (0x0006C0) 0x290E- f:00024 d: 270 | OR[270] = A
0x0361 (0x0006C2) 0x210D- f:00020 d: 269 | A = OR[269]
0x0362 (0x0006C4) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x0363 (0x0006C6) 0x210D- f:00020 d: 269 | A = OR[269]
0x0364 (0x0006C8) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0365 (0x0006CA) 0x2908- f:00024 d: 264 | OR[264] = A
0x0366 (0x0006CC) 0x210E- f:00020 d: 270 | A = OR[270]
0x0367 (0x0006CE) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0368 (0x0006D0) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0369 (0x0006D2) 0x3922- f:00034 d: 290 | (OR[290]) = A
0x036A (0x0006D4) 0x212A- f:00020 d: 298 | A = OR[298]
0x036B (0x0006D6) 0x8603- f:00103 d: 3 | P = P + 3 (0x036E), A # 0
0x036C (0x0006D8) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x036D (0x0006DA) 0x292A- f:00024 d: 298 | OR[298] = A
0x036E (0x0006DC) 0x2125- f:00020 d: 293 | A = OR[293]
0x036F (0x0006DE) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x0370 (0x0006E0) 0x2908- f:00024 d: 264 | OR[264] = A
0x0371 (0x0006E2) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0372 (0x0006E4) 0x0E01- f:00007 d: 1 | A = A << 1 (0x0001)
0x0373 (0x0006E6) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x0374 (0x0006E8) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x0375 (0x0006EA) 0x0C02- f:00006 d: 2 | A = A >> 2 (0x0002)
0x0376 (0x0006EC) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0377 (0x0006EE) 0x212A- f:00020 d: 298 | A = OR[298]
0x0378 (0x0006F0) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0379 (0x0006F2) 0x292A- f:00024 d: 298 | OR[298] = A
0x037A (0x0006F4) 0x2125- f:00020 d: 293 | A = OR[293]
0x037B (0x0006F6) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x037C (0x0006F8) 0x2908- f:00024 d: 264 | OR[264] = A
0x037D (0x0006FA) 0x3108- f:00030 d: 264 | A = (OR[264])
0x037E (0x0006FC) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x0380 (0x000700) 0x252A- f:00022 d: 298 | A = A + OR[298]
0x0381 (0x000702) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0382 (0x000704) 0x2125- f:00020 d: 293 | A = OR[293]
0x0383 (0x000706) 0x1428- f:00012 d: 40 | A = A + 40 (0x0028)
0x0384 (0x000708) 0x2908- f:00024 d: 264 | OR[264] = A
0x0385 (0x00070A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0386 (0x00070C) 0x2941- f:00024 d: 321 | OR[321] = A
0x0387 (0x00070E) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x0388 (0x000710) 0x2945- f:00024 d: 325 | OR[325] = A
0x0389 (0x000712) 0x2141- f:00020 d: 321 | A = OR[321]
0x038A (0x000714) 0x2946- f:00024 d: 326 | OR[326] = A
0x038B (0x000716) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x038C (0x000718) 0x2947- f:00024 d: 327 | OR[327] = A
0x038D (0x00071A) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x038E (0x00071C) 0x5800- f:00054 d: 0 | B = A
0x038F (0x00071E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0390 (0x000720) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0391 (0x000722) 0x1E00-0x0013 f:00017 d: 0 | A = A - 19 (0x0013)
0x0393 (0x000726) 0x8402- f:00102 d: 2 | P = P + 2 (0x0395), A = 0
0x0394 (0x000728) 0x700E- f:00070 d: 14 | P = P + 14 (0x03A2)
0x0395 (0x00072A) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x0396 (0x00072C) 0x2945- f:00024 d: 325 | OR[325] = A
0x0397 (0x00072E) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x0398 (0x000730) 0x5800- f:00054 d: 0 | B = A
0x0399 (0x000732) 0x1800-0x5B18 f:00014 d: 0 | A = 23320 (0x5B18)
0x039B (0x000736) 0x7C09- f:00076 d: 9 | R = OR[9]
0x039C (0x000738) 0x3101- f:00030 d: 257 | A = (OR[257])
0x039D (0x00073A) 0x080D- f:00004 d: 13 | A = A > 13 (0x000D)
0x039E (0x00073C) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x039F (0x00073E) 0x8C18- f:00106 d: 24 | P = P - 24 (0x0387), A = 0
0x03A0 (0x000740) 0x7A03-0x0703 f:00075 d: 3 | P = OR[3]+1795 (0x0703)
0x03A2 (0x000744) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x03A3 (0x000746) 0x2945- f:00024 d: 325 | OR[325] = A
0x03A4 (0x000748) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x03A5 (0x00074A) 0x5800- f:00054 d: 0 | B = A
0x03A6 (0x00074C) 0x1800-0x5B18 f:00014 d: 0 | A = 23320 (0x5B18)
0x03A8 (0x000750) 0x7C09- f:00076 d: 9 | R = OR[9]
0x03A9 (0x000752) 0x7A03-0x00D9 f:00075 d: 3 | P = OR[3]+217 (0x00D9)
0x03AB (0x000756) 0x3144- f:00030 d: 324 | A = (OR[324])
0x03AC (0x000758) 0x2922- f:00024 d: 290 | OR[290] = A
0x03AD (0x00075A) 0x2122- f:00020 d: 290 | A = OR[290]
0x03AE (0x00075C) 0xB434- f:00132 d: 52 | R = OR[52], A = 0
0x03AF (0x00075E) 0x0000- f:00000 d: 0 | PASS
0x03B0 (0x000760) 0x2744- f:00023 d: 324 | A = A - OR[324]
0x03B1 (0x000762) 0xAC03-0x00D9 f:00126 d: 3 | P = OR[3]+217 (0x00D9), A = 0
0x03B3 (0x000766) 0x2122- f:00020 d: 290 | A = OR[290]
0x03B4 (0x000768) 0x1604- f:00013 d: 4 | A = A - 4 (0x0004)
0x03B5 (0x00076A) 0x2925- f:00024 d: 293 | OR[293] = A
0x03B6 (0x00076C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x03B7 (0x00076E) 0x291D- f:00024 d: 285 | OR[285] = A
0x03B8 (0x000770) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x03B9 (0x000772) 0x292F- f:00024 d: 303 | OR[303] = A
0x03BA (0x000774) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x03BB (0x000776) 0x2933- f:00024 d: 307 | OR[307] = A
0x03BC (0x000778) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x03BD (0x00077A) 0x292D- f:00024 d: 301 | OR[301] = A
0x03BE (0x00077C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x03BF (0x00077E) 0x292A- f:00024 d: 298 | OR[298] = A
0x03C0 (0x000780) 0x2125- f:00020 d: 293 | A = OR[293]
0x03C1 (0x000782) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x03C2 (0x000784) 0x2908- f:00024 d: 264 | OR[264] = A
0x03C3 (0x000786) 0x3108- f:00030 d: 264 | A = (OR[264])
0x03C4 (0x000788) 0x0A02- f:00005 d: 2 | A = A < 2 (0x0002)
0x03C5 (0x00078A) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x03C6 (0x00078C) 0x0C02- f:00006 d: 2 | A = A >> 2 (0x0002)
0x03C7 (0x00078E) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x03C8 (0x000790) 0x2125- f:00020 d: 293 | A = OR[293]
0x03C9 (0x000792) 0x1407- f:00012 d: 7 | A = A + 7 (0x0007)
0x03CA (0x000794) 0x2908- f:00024 d: 264 | OR[264] = A
0x03CB (0x000796) 0x3108- f:00030 d: 264 | A = (OR[264])
0x03CC (0x000798) 0x293A- f:00024 d: 314 | OR[314] = A
0x03CD (0x00079A) 0x2125- f:00020 d: 293 | A = OR[293]
0x03CE (0x00079C) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008)
0x03CF (0x00079E) 0x293D- f:00024 d: 317 | OR[317] = A
0x03D0 (0x0007A0) 0x313D- f:00030 d: 317 | A = (OR[317])
0x03D1 (0x0007A2) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x03D2 (0x0007A4) 0x292B- f:00024 d: 299 | OR[299] = A
0x03D3 (0x0007A6) 0x8602- f:00103 d: 2 | P = P + 2 (0x03D5), A # 0
0x03D4 (0x0007A8) 0x700F- f:00070 d: 15 | P = P + 15 (0x03E3)
0x03D5 (0x0007AA) 0x2125- f:00020 d: 293 | A = OR[293]
0x03D6 (0x0007AC) 0x142B- f:00012 d: 43 | A = A + 43 (0x002B)
0x03D7 (0x0007AE) 0x292E- f:00024 d: 302 | OR[302] = A
0x03D8 (0x0007B0) 0x2125- f:00020 d: 293 | A = OR[293]
0x03D9 (0x0007B2) 0x142A- f:00012 d: 42 | A = A + 42 (0x002A)
0x03DA (0x0007B4) 0x2908- f:00024 d: 264 | OR[264] = A
0x03DB (0x0007B6) 0x3108- f:00030 d: 264 | A = (OR[264])
0x03DC (0x0007B8) 0x292F- f:00024 d: 303 | OR[303] = A
0x03DD (0x0007BA) 0x8402- f:00102 d: 2 | P = P + 2 (0x03DF), A = 0
0x03DE (0x0007BC) 0x7005- f:00070 d: 5 | P = P + 5 (0x03E3)
0x03DF (0x0007BE) 0x1024- f:00010 d: 36 | A = 36 (0x0024)
0x03E0 (0x0007C0) 0x292A- f:00024 d: 298 | OR[298] = A
0x03E1 (0x0007C2) 0x7A03-0x045B f:00075 d: 3 | P = OR[3]+1115 (0x045B)
0x03E3 (0x0007C6) 0x7E03-0x06A1 f:00077 d: 3 | R = OR[3]+1697 (0x06A1)
0x03E5 (0x0007CA) 0x2125- f:00020 d: 293 | A = OR[293]
0x03E6 (0x0007CC) 0x1407- f:00012 d: 7 | A = A + 7 (0x0007)
0x03E7 (0x0007CE) 0x2908- f:00024 d: 264 | OR[264] = A
0x03E8 (0x0007D0) 0x3108- f:00030 d: 264 | A = (OR[264])
0x03E9 (0x0007D2) 0x291E- f:00024 d: 286 | OR[286] = A
0x03EA (0x0007D4) 0x211E- f:00020 d: 286 | A = OR[286]
0x03EB (0x0007D6) 0x0A02- f:00005 d: 2 | A = A < 2 (0x0002)
0x03EC (0x0007D8) 0x291E- f:00024 d: 286 | OR[286] = A
0x03ED (0x0007DA) 0x213D- f:00020 d: 317 | A = OR[317]
0x03EE (0x0007DC) 0x2936- f:00024 d: 310 | OR[310] = A
0x03EF (0x0007DE) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x03F0 (0x0007E0) 0x2927- f:00024 d: 295 | OR[295] = A
0x03F1 (0x0007E2) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x03F2 (0x0007E4) 0x291C- f:00024 d: 284 | OR[284] = A
0x03F3 (0x0007E6) 0x211B- f:00020 d: 283 | A = OR[283]
0x03F4 (0x0007E8) 0x2935- f:00024 d: 309 | OR[309] = A
0x03F5 (0x0007EA) 0x7E03-0x06AB f:00077 d: 3 | R = OR[3]+1707 (0x06AB)
0x03F7 (0x0007EE) 0x7E03-0x055D f:00077 d: 3 | R = OR[3]+1373 (0x055D)
0x03F9 (0x0007F2) 0xAE03-0x04AF f:00127 d: 3 | P = OR[3]+1199 (0x04AF), A # 0
0x03FB (0x0007F6) 0x212F- f:00020 d: 303 | A = OR[303]
0x03FC (0x0007F8) 0x1E00-0x0200 f:00017 d: 0 | A = A - 512 (0x0200)
0x03FE (0x0007FC) 0x8004- f:00100 d: 4 | P = P + 4 (0x0402), C = 0
0x03FF (0x0007FE) 0x8403- f:00102 d: 3 | P = P + 3 (0x0402), A = 0
0x0400 (0x000800) 0x7A03-0x0409 f:00075 d: 3 | P = OR[3]+1033 (0x0409)
0x0402 (0x000804) 0x7005- f:00070 d: 5 | P = P + 5 (0x0407)
0x0403 (0x000806) 0x1800-0x0200 f:00014 d: 0 | A = 512 (0x0200)
0x0405 (0x00080A) 0x291D- f:00024 d: 285 | OR[285] = A
0x0406 (0x00080C) 0x7003- f:00070 d: 3 | P = P + 3 (0x0409)
0x0407 (0x00080E) 0x212F- f:00020 d: 303 | A = OR[303]
0x0408 (0x000810) 0x291D- f:00024 d: 285 | OR[285] = A
0x0409 (0x000812) 0x211D- f:00020 d: 285 | A = OR[285]
0x040A (0x000814) 0x844B- f:00102 d: 75 | P = P + 75 (0x0455), A = 0
0x040B (0x000816) 0x212F- f:00020 d: 303 | A = OR[303]
0x040C (0x000818) 0x1E00-0x0200 f:00017 d: 0 | A = A - 512 (0x0200)
0x040E (0x00081C) 0x8003- f:00100 d: 3 | P = P + 3 (0x0411), C = 0
0x040F (0x00081E) 0x8402- f:00102 d: 2 | P = P + 2 (0x0411), A = 0
0x0410 (0x000820) 0x7002- f:00070 d: 2 | P = P + 2 (0x0412)
0x0411 (0x000822) 0x7004- f:00070 d: 4 | P = P + 4 (0x0415)
0x0412 (0x000824) 0x1009- f:00010 d: 9 | A = 9 (0x0009)
0x0413 (0x000826) 0x2928- f:00024 d: 296 | OR[296] = A
0x0414 (0x000828) 0x7003- f:00070 d: 3 | P = P + 3 (0x0417)
0x0415 (0x00082A) 0x100D- f:00010 d: 13 | A = 13 (0x000D)
0x0416 (0x00082C) 0x2928- f:00024 d: 296 | OR[296] = A
0x0417 (0x00082E) 0x7E03-0x06A1 f:00077 d: 3 | R = OR[3]+1697 (0x06A1)
0x0419 (0x000832) 0x212F- f:00020 d: 303 | A = OR[303]
0x041A (0x000834) 0x271D- f:00023 d: 285 | A = A - OR[285]
0x041B (0x000836) 0x292F- f:00024 d: 303 | OR[303] = A
0x041C (0x000838) 0x211D- f:00020 d: 285 | A = OR[285]
0x041D (0x00083A) 0x0A02- f:00005 d: 2 | A = A < 2 (0x0002)
0x041E (0x00083C) 0x291E- f:00024 d: 286 | OR[286] = A
0x041F (0x00083E) 0x2132- f:00020 d: 306 | A = OR[306]
0x0420 (0x000840) 0x2936- f:00024 d: 310 | OR[310] = A
0x0421 (0x000842) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0422 (0x000844) 0x2927- f:00024 d: 295 | OR[295] = A
0x0423 (0x000846) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x0424 (0x000848) 0x291C- f:00024 d: 284 | OR[284] = A
0x0425 (0x00084A) 0x211B- f:00020 d: 283 | A = OR[283]
0x0426 (0x00084C) 0x2935- f:00024 d: 309 | OR[309] = A
0x0427 (0x00084E) 0x312E- f:00030 d: 302 | A = (OR[302])
0x0428 (0x000850) 0x2930- f:00024 d: 304 | OR[304] = A
0x0429 (0x000852) 0x212E- f:00020 d: 302 | A = OR[302]
0x042A (0x000854) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x042B (0x000856) 0x2908- f:00024 d: 264 | OR[264] = A
0x042C (0x000858) 0x3108- f:00030 d: 264 | A = (OR[264])
0x042D (0x00085A) 0x2931- f:00024 d: 305 | OR[305] = A
0x042E (0x00085C) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x042F (0x00085E) 0x2B2E- f:00025 d: 302 | OR[302] = A + OR[302]
0x0430 (0x000860) 0x1026- f:00010 d: 38 | A = 38 (0x0026)
0x0431 (0x000862) 0x2945- f:00024 d: 325 | OR[325] = A
0x0432 (0x000864) 0x2130- f:00020 d: 304 | A = OR[304]
0x0433 (0x000866) 0x2946- f:00024 d: 326 | OR[326] = A
0x0434 (0x000868) 0x2131- f:00020 d: 305 | A = OR[305]
0x0435 (0x00086A) 0x2947- f:00024 d: 327 | OR[327] = A
0x0436 (0x00086C) 0x2136- f:00020 d: 310 | A = OR[310]
0x0437 (0x00086E) 0x2948- f:00024 d: 328 | OR[328] = A
0x0438 (0x000870) 0x211D- f:00020 d: 285 | A = OR[285]
0x0439 (0x000872) 0x2949- f:00024 d: 329 | OR[329] = A
0x043A (0x000874) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x043B (0x000876) 0x294A- f:00024 d: 330 | OR[330] = A
0x043C (0x000878) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x043D (0x00087A) 0x5800- f:00054 d: 0 | B = A
0x043E (0x00087C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x043F (0x00087E) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0440 (0x000880) 0x7E03-0x06AB f:00077 d: 3 | R = OR[3]+1707 (0x06AB)
0x0442 (0x000884) 0x7515- f:00072 d: 277 | R = P + 277 (0x0557)
0x0443 (0x000886) 0x8666- f:00103 d: 102 | P = P + 102 (0x04A9), A # 0
0x0444 (0x000888) 0x2133- f:00020 d: 307 | A = OR[307]
0x0445 (0x00088A) 0x251D- f:00022 d: 285 | A = A + OR[285]
0x0446 (0x00088C) 0x2933- f:00024 d: 307 | OR[307] = A
0x0447 (0x00088E) 0x212F- f:00020 d: 303 | A = OR[303]
0x0448 (0x000890) 0x1E00-0x0200 f:00017 d: 0 | A = A - 512 (0x0200)
0x044A (0x000894) 0x8003- f:00100 d: 3 | P = P + 3 (0x044D), C = 0
0x044B (0x000896) 0x8402- f:00102 d: 2 | P = P + 2 (0x044D), A = 0
0x044C (0x000898) 0x7002- f:00070 d: 2 | P = P + 2 (0x044E)
0x044D (0x00089A) 0x7005- f:00070 d: 5 | P = P + 5 (0x0452)
0x044E (0x00089C) 0x1800-0x0200 f:00014 d: 0 | A = 512 (0x0200)
0x0450 (0x0008A0) 0x291D- f:00024 d: 285 | OR[285] = A
0x0451 (0x0008A2) 0x7003- f:00070 d: 3 | P = P + 3 (0x0454)
0x0452 (0x0008A4) 0x212F- f:00020 d: 303 | A = OR[303]
0x0453 (0x0008A6) 0x291D- f:00024 d: 285 | OR[285] = A
0x0454 (0x0008A8) 0x724B- f:00071 d: 75 | P = P - 75 (0x0409)
0x0455 (0x0008AA) 0x2125- f:00020 d: 293 | A = OR[293]
0x0456 (0x0008AC) 0x142A- f:00012 d: 42 | A = A + 42 (0x002A)
0x0457 (0x0008AE) 0x2908- f:00024 d: 264 | OR[264] = A
0x0458 (0x0008B0) 0x2133- f:00020 d: 307 | A = OR[307]
0x0459 (0x0008B2) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x045A (0x0008B4) 0x3122- f:00030 d: 290 | A = (OR[290])
0x045B (0x0008B6) 0x8602- f:00103 d: 2 | P = P + 2 (0x045D), A # 0
0x045C (0x0008B8) 0x704B- f:00070 d: 75 | P = P + 75 (0x04A7)
0x045D (0x0008BA) 0x2125- f:00020 d: 293 | A = OR[293]
0x045E (0x0008BC) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x045F (0x0008BE) 0x2908- f:00024 d: 264 | OR[264] = A
0x0460 (0x0008C0) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0461 (0x0008C2) 0x080E- f:00004 d: 14 | A = A > 14 (0x000E)
0x0462 (0x0008C4) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0463 (0x0008C6) 0x2913- f:00024 d: 275 | OR[275] = A
0x0464 (0x0008C8) 0x2113- f:00020 d: 275 | A = OR[275]
0x0465 (0x0008CA) 0x8402- f:00102 d: 2 | P = P + 2 (0x0467), A = 0
0x0466 (0x0008CC) 0x7003- f:00070 d: 3 | P = P + 3 (0x0469)
0x0467 (0x0008CE) 0x7E03-0x06D6 f:00077 d: 3 | R = OR[3]+1750 (0x06D6)
0x0469 (0x0008D2) 0x3122- f:00030 d: 290 | A = (OR[290])
0x046A (0x0008D4) 0x290D- f:00024 d: 269 | OR[269] = A
0x046B (0x0008D6) 0x2122- f:00020 d: 290 | A = OR[290]
0x046C (0x0008D8) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x046D (0x0008DA) 0x2908- f:00024 d: 264 | OR[264] = A
0x046E (0x0008DC) 0x3108- f:00030 d: 264 | A = (OR[264])
0x046F (0x0008DE) 0x290E- f:00024 d: 270 | OR[270] = A
0x0470 (0x0008E0) 0x210D- f:00020 d: 269 | A = OR[269]
0x0471 (0x0008E2) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x0472 (0x0008E4) 0x210D- f:00020 d: 269 | A = OR[269]
0x0473 (0x0008E6) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0474 (0x0008E8) 0x2908- f:00024 d: 264 | OR[264] = A
0x0475 (0x0008EA) 0x210E- f:00020 d: 270 | A = OR[270]
0x0476 (0x0008EC) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0477 (0x0008EE) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0478 (0x0008F0) 0x3922- f:00034 d: 290 | (OR[290]) = A
0x0479 (0x0008F2) 0x212A- f:00020 d: 298 | A = OR[298]
0x047A (0x0008F4) 0x8603- f:00103 d: 3 | P = P + 3 (0x047D), A # 0
0x047B (0x0008F6) 0x100A- f:00010 d: 10 | A = 10 (0x000A)
0x047C (0x0008F8) 0x292A- f:00024 d: 298 | OR[298] = A
0x047D (0x0008FA) 0x212A- f:00020 d: 298 | A = OR[298]
0x047E (0x0008FC) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x047F (0x0008FE) 0x292A- f:00024 d: 298 | OR[298] = A
0x0480 (0x000900) 0x2125- f:00020 d: 293 | A = OR[293]
0x0481 (0x000902) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x0482 (0x000904) 0x2908- f:00024 d: 264 | OR[264] = A
0x0483 (0x000906) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0484 (0x000908) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x0486 (0x00090C) 0x252A- f:00022 d: 298 | A = A + OR[298]
0x0487 (0x00090E) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0488 (0x000910) 0x2125- f:00020 d: 293 | A = OR[293]
0x0489 (0x000912) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x048A (0x000914) 0x2908- f:00024 d: 264 | OR[264] = A
0x048B (0x000916) 0x3108- f:00030 d: 264 | A = (OR[264])
0x048C (0x000918) 0x0E01- f:00007 d: 1 | A = A << 1 (0x0001)
0x048D (0x00091A) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x048E (0x00091C) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x048F (0x00091E) 0x0C02- f:00006 d: 2 | A = A >> 2 (0x0002)
0x0490 (0x000920) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0491 (0x000922) 0x2125- f:00020 d: 293 | A = OR[293]
0x0492 (0x000924) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x0493 (0x000926) 0x2908- f:00024 d: 264 | OR[264] = A
0x0494 (0x000928) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0495 (0x00092A) 0x1A00-0xC7FF f:00015 d: 0 | A = A & 51199 (0xC7FF)
0x0497 (0x00092E) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0498 (0x000930) 0x2125- f:00020 d: 293 | A = OR[293]
0x0499 (0x000932) 0x1428- f:00012 d: 40 | A = A + 40 (0x0028)
0x049A (0x000934) 0x2908- f:00024 d: 264 | OR[264] = A
0x049B (0x000936) 0x3108- f:00030 d: 264 | A = (OR[264])
0x049C (0x000938) 0x2941- f:00024 d: 321 | OR[321] = A
0x049D (0x00093A) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x049E (0x00093C) 0x2945- f:00024 d: 325 | OR[325] = A
0x049F (0x00093E) 0x2141- f:00020 d: 321 | A = OR[321]
0x04A0 (0x000940) 0x2946- f:00024 d: 326 | OR[326] = A
0x04A1 (0x000942) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x04A2 (0x000944) 0x2947- f:00024 d: 327 | OR[327] = A
0x04A3 (0x000946) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x04A4 (0x000948) 0x5800- f:00054 d: 0 | B = A
0x04A5 (0x00094A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x04A6 (0x00094C) 0x7C09- f:00076 d: 9 | R = OR[9]
0x04A7 (0x00094E) 0x7A03-0x00D9 f:00075 d: 3 | P = OR[3]+217 (0x00D9)
0x04A9 (0x000952) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x04AA (0x000954) 0x292D- f:00024 d: 301 | OR[301] = A
0x04AB (0x000956) 0x2139- f:00020 d: 313 | A = OR[313]
0x04AC (0x000958) 0x8602- f:00103 d: 2 | P = P + 2 (0x04AE), A # 0
0x04AD (0x00095A) 0x7006- f:00070 d: 6 | P = P + 6 (0x04B3)
0x04AE (0x00095C) 0x102B- f:00010 d: 43 | A = 43 (0x002B)
0x04AF (0x00095E) 0x292A- f:00024 d: 298 | OR[298] = A
0x04B0 (0x000960) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x04B1 (0x000962) 0x2939- f:00024 d: 313 | OR[313] = A
0x04B2 (0x000964) 0x725D- f:00071 d: 93 | P = P - 93 (0x0455)
0x04B3 (0x000966) 0x211B- f:00020 d: 283 | A = OR[283]
0x04B4 (0x000968) 0x290D- f:00024 d: 269 | OR[269] = A
0x04B5 (0x00096A) 0x213C- f:00020 d: 316 | A = OR[316]
0x04B6 (0x00096C) 0x290E- f:00024 d: 270 | OR[270] = A
0x04B7 (0x00096E) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x04B8 (0x000970) 0x290F- f:00024 d: 271 | OR[271] = A
0x04B9 (0x000972) 0x7006- f:00070 d: 6 | P = P + 6 (0x04BF)
0x04BA (0x000974) 0x310D- f:00030 d: 269 | A = (OR[269])
0x04BB (0x000976) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x04BC (0x000978) 0x2D0D- f:00026 d: 269 | OR[269] = OR[269] + 1
0x04BD (0x00097A) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x04BE (0x00097C) 0x2F0F- f:00027 d: 271 | OR[271] = OR[271] - 1
0x04BF (0x00097E) 0x210F- f:00020 d: 271 | A = OR[271]
0x04C0 (0x000980) 0x8E06- f:00107 d: 6 | P = P - 6 (0x04BA), A # 0
0x04C1 (0x000982) 0x313C- f:00030 d: 316 | A = (OR[316])
0x04C2 (0x000984) 0x0809- f:00004 d: 9 | A = A > 9 (0x0009)
0x04C3 (0x000986) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x04C4 (0x000988) 0x8402- f:00102 d: 2 | P = P + 2 (0x04C6), A = 0
0x04C5 (0x00098A) 0x704C- f:00070 d: 76 | P = P + 76 (0x0511)
0x04C6 (0x00098C) 0x2125- f:00020 d: 293 | A = OR[293]
0x04C7 (0x00098E) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x04C8 (0x000990) 0x290D- f:00024 d: 269 | OR[269] = A
0x04C9 (0x000992) 0x310D- f:00030 d: 269 | A = (OR[269])
0x04CA (0x000994) 0x290E- f:00024 d: 270 | OR[270] = A
0x04CB (0x000996) 0x210E- f:00020 d: 270 | A = OR[270]
0x04CC (0x000998) 0x080B- f:00004 d: 11 | A = A > 11 (0x000B)
0x04CD (0x00099A) 0x1207- f:00011 d: 7 | A = A & 7 (0x0007)
0x04CE (0x00099C) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x04CF (0x00099E) 0x290F- f:00024 d: 271 | OR[271] = A
0x04D0 (0x0009A0) 0x210F- f:00020 d: 271 | A = OR[271]
0x04D1 (0x0009A2) 0x1207- f:00011 d: 7 | A = A & 7 (0x0007)
0x04D2 (0x0009A4) 0x290F- f:00024 d: 271 | OR[271] = A
0x04D3 (0x0009A6) 0x210E- f:00020 d: 270 | A = OR[270]
0x04D4 (0x0009A8) 0x0E03- f:00007 d: 3 | A = A << 3 (0x0003)
0x04D5 (0x0009AA) 0x0A03- f:00005 d: 3 | A = A < 3 (0x0003)
0x04D6 (0x0009AC) 0x250F- f:00022 d: 271 | A = A + OR[271]
0x04D7 (0x0009AE) 0x0C06- f:00006 d: 6 | A = A >> 6 (0x0006)
0x04D8 (0x0009B0) 0x290E- f:00024 d: 270 | OR[270] = A
0x04D9 (0x0009B2) 0x390D- f:00034 d: 269 | (OR[269]) = A
0x04DA (0x0009B4) 0x210F- f:00020 d: 271 | A = OR[271]
0x04DB (0x0009B6) 0x2125- f:00020 d: 293 | A = OR[293]
0x04DC (0x0009B8) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x04DD (0x0009BA) 0x2908- f:00024 d: 264 | OR[264] = A
0x04DE (0x0009BC) 0x3108- f:00030 d: 264 | A = (OR[264])
0x04DF (0x0009BE) 0x080B- f:00004 d: 11 | A = A > 11 (0x000B)
0x04E0 (0x0009C0) 0x1207- f:00011 d: 7 | A = A & 7 (0x0007)
0x04E1 (0x0009C2) 0x1602- f:00013 d: 2 | A = A - 2 (0x0002)
0x04E2 (0x0009C4) 0x8402- f:00102 d: 2 | P = P + 2 (0x04E4), A = 0
0x04E3 (0x0009C6) 0x702E- f:00070 d: 46 | P = P + 46 (0x0511)
0x04E4 (0x0009C8) 0x2122- f:00020 d: 290 | A = OR[290]
0x04E5 (0x0009CA) 0xB434- f:00132 d: 52 | R = OR[52], A = 0
0x04E6 (0x0009CC) 0x0000- f:00000 d: 0 | PASS
0x04E7 (0x0009CE) 0x3122- f:00030 d: 290 | A = (OR[290])
0x04E8 (0x0009D0) 0x290D- f:00024 d: 269 | OR[269] = A
0x04E9 (0x0009D2) 0x2122- f:00020 d: 290 | A = OR[290]
0x04EA (0x0009D4) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x04EB (0x0009D6) 0x2908- f:00024 d: 264 | OR[264] = A
0x04EC (0x0009D8) 0x3108- f:00030 d: 264 | A = (OR[264])
0x04ED (0x0009DA) 0x290E- f:00024 d: 270 | OR[270] = A
0x04EE (0x0009DC) 0x210D- f:00020 d: 269 | A = OR[269]
0x04EF (0x0009DE) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x04F0 (0x0009E0) 0x210D- f:00020 d: 269 | A = OR[269]
0x04F1 (0x0009E2) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x04F2 (0x0009E4) 0x2908- f:00024 d: 264 | OR[264] = A
0x04F3 (0x0009E6) 0x210E- f:00020 d: 270 | A = OR[270]
0x04F4 (0x0009E8) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x04F5 (0x0009EA) 0x2125- f:00020 d: 293 | A = OR[293]
0x04F6 (0x0009EC) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x04F7 (0x0009EE) 0x2908- f:00024 d: 264 | OR[264] = A
0x04F8 (0x0009F0) 0x3108- f:00030 d: 264 | A = (OR[264])
0x04F9 (0x0009F2) 0x1A00-0xC7FF f:00015 d: 0 | A = A & 51199 (0xC7FF)
0x04FB (0x0009F6) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x04FC (0x0009F8) 0x2144- f:00020 d: 324 | A = OR[324]
0x04FD (0x0009FA) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x04FE (0x0009FC) 0x2908- f:00024 d: 264 | OR[264] = A
0x04FF (0x0009FE) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0500 (0x000A00) 0x2913- f:00024 d: 275 | OR[275] = A
0x0501 (0x000A02) 0x3113- f:00030 d: 275 | A = (OR[275])
0x0502 (0x000A04) 0x290D- f:00024 d: 269 | OR[269] = A
0x0503 (0x000A06) 0x2122- f:00020 d: 290 | A = OR[290]
0x0504 (0x000A08) 0x3913- f:00034 d: 275 | (OR[275]) = A
0x0505 (0x000A0A) 0x210D- f:00020 d: 269 | A = OR[269]
0x0506 (0x000A0C) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0507 (0x000A0E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0508 (0x000A10) 0x2122- f:00020 d: 290 | A = OR[290]
0x0509 (0x000A12) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x050A (0x000A14) 0x210D- f:00020 d: 269 | A = OR[269]
0x050B (0x000A16) 0x3922- f:00034 d: 290 | (OR[290]) = A
0x050C (0x000A18) 0x2122- f:00020 d: 290 | A = OR[290]
0x050D (0x000A1A) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x050E (0x000A1C) 0x2908- f:00024 d: 264 | OR[264] = A
0x050F (0x000A1E) 0x2113- f:00020 d: 275 | A = OR[275]
0x0510 (0x000A20) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0511 (0x000A22) 0x2125- f:00020 d: 293 | A = OR[293]
0x0512 (0x000A24) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x0513 (0x000A26) 0x2908- f:00024 d: 264 | OR[264] = A
0x0514 (0x000A28) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0515 (0x000A2A) 0x0E01- f:00007 d: 1 | A = A << 1 (0x0001)
0x0516 (0x000A2C) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x0517 (0x000A2E) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x0518 (0x000A30) 0x0C02- f:00006 d: 2 | A = A >> 2 (0x0002)
0x0519 (0x000A32) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x051A (0x000A34) 0x7A03-0x00D9 f:00075 d: 3 | P = OR[3]+217 (0x00D9)
0x051C (0x000A38) 0x1051- f:00010 d: 81 | A = 81 (0x0051)
0x051D (0x000A3A) 0x2928- f:00024 d: 296 | OR[296] = A
0x051E (0x000A3C) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x051F (0x000A3E) 0x2927- f:00024 d: 295 | OR[295] = A
0x0520 (0x000A40) 0x2132- f:00020 d: 306 | A = OR[306]
0x0521 (0x000A42) 0x2935- f:00024 d: 309 | OR[309] = A
0x0522 (0x000A44) 0x1080- f:00010 d: 128 | A = 128 (0x0080)
0x0523 (0x000A46) 0x291C- f:00024 d: 284 | OR[284] = A
0x0524 (0x000A48) 0x7E03-0x06A7 f:00077 d: 3 | R = OR[3]+1703 (0x06A7)
0x0526 (0x000A4C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0527 (0x000A4E) 0x2933- f:00024 d: 307 | OR[307] = A
0x0528 (0x000A50) 0x2125- f:00020 d: 293 | A = OR[293]
0x0529 (0x000A52) 0x1407- f:00012 d: 7 | A = A + 7 (0x0007)
0x052A (0x000A54) 0x2908- f:00024 d: 264 | OR[264] = A
0x052B (0x000A56) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x052C (0x000A58) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x052D (0x000A5A) 0x2125- f:00020 d: 293 | A = OR[293]
0x052E (0x000A5C) 0x142B- f:00012 d: 43 | A = A + 43 (0x002B)
0x052F (0x000A5E) 0x292E- f:00024 d: 302 | OR[302] = A
0x0530 (0x000A60) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0531 (0x000A62) 0x292F- f:00024 d: 303 | OR[303] = A
0x0532 (0x000A64) 0x1020- f:00010 d: 32 | A = 32 (0x0020)
0x0533 (0x000A66) 0x291D- f:00024 d: 285 | OR[285] = A
0x0534 (0x000A68) 0x7A03-0x0271 f:00075 d: 3 | P = OR[3]+625 (0x0271)
0x0536 (0x000A6C) 0x7E03-0x06D0 f:00077 d: 3 | R = OR[3]+1744 (0x06D0)
0x0538 (0x000A70) 0x10E5- f:00010 d: 229 | A = 229 (0x00E5)
0x0539 (0x000A72) 0x2928- f:00024 d: 296 | OR[296] = A
0x053A (0x000A74) 0x7E03-0x06A1 f:00077 d: 3 | R = OR[3]+1697 (0x06A1)
0x053C (0x000A78) 0x741B- f:00072 d: 27 | R = P + 27 (0x0557)
0x053D (0x000A7A) 0xAE03-0x00D9 f:00127 d: 3 | P = OR[3]+217 (0x00D9), A # 0
0x053F (0x000A7E) 0x311B- f:00030 d: 283 | A = (OR[283])
0x0540 (0x000A80) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0541 (0x000A82) 0x2913- f:00024 d: 275 | OR[275] = A
0x0542 (0x000A84) 0x2D13- f:00026 d: 275 | OR[275] = OR[275] + 1
0x0543 (0x000A86) 0x2113- f:00020 d: 275 | A = OR[275]
0x0544 (0x000A88) 0x16E5- f:00013 d: 229 | A = A - 229 (0x00E5)
0x0545 (0x000A8A) 0x8602- f:00103 d: 2 | P = P + 2 (0x0547), A # 0
0x0546 (0x000A8C) 0x700C- f:00070 d: 12 | P = P + 12 (0x0552)
0x0547 (0x000A8E) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x0548 (0x000A90) 0x2945- f:00024 d: 325 | OR[325] = A
0x0549 (0x000A92) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x054A (0x000A94) 0x2946- f:00024 d: 326 | OR[326] = A
0x054B (0x000A96) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x054C (0x000A98) 0x5800- f:00054 d: 0 | B = A
0x054D (0x000A9A) 0x1800-0x5B18 f:00014 d: 0 | A = 23320 (0x5B18)
0x054F (0x000A9E) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0550 (0x000AA0) 0x7A03-0x00D9 f:00075 d: 3 | P = OR[3]+217 (0x00D9)
0x0552 (0x000AA4) 0x2142- f:00020 d: 322 | A = OR[322]
0x0553 (0x000AA6) 0x2944- f:00024 d: 324 | OR[324] = A
0x0554 (0x000AA8) 0x1011- f:00010 d: 17 | A = 17 (0x0011)
0x0555 (0x000AAA) 0x2928- f:00024 d: 296 | OR[296] = A
0x0556 (0x000AAC) 0x73A0- f:00071 d: 416 | P = P - 416 (0x03B6)
0x0557 (0x000AAE) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0558 (0x000AB0) 0x292C- f:00024 d: 300 | OR[300] = A
0x0559 (0x000AB2) 0x211B- f:00020 d: 283 | A = OR[283]
0x055A (0x000AB4) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x055B (0x000AB6) 0x2908- f:00024 d: 264 | OR[264] = A
0x055C (0x000AB8) 0x3108- f:00030 d: 264 | A = (OR[264])
0x055D (0x000ABA) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x055E (0x000ABC) 0x2913- f:00024 d: 275 | OR[275] = A
0x055F (0x000ABE) 0x2113- f:00020 d: 275 | A = OR[275]
0x0560 (0x000AC0) 0x16FE- f:00013 d: 254 | A = A - 254 (0x00FE)
0x0561 (0x000AC2) 0x8405- f:00102 d: 5 | P = P + 5 (0x0566), A = 0
0x0562 (0x000AC4) 0x2113- f:00020 d: 275 | A = OR[275]
0x0563 (0x000AC6) 0x16FF- f:00013 d: 255 | A = A - 255 (0x00FF)
0x0564 (0x000AC8) 0x8402- f:00102 d: 2 | P = P + 2 (0x0566), A = 0
0x0565 (0x000ACA) 0x702B- f:00070 d: 43 | P = P + 43 (0x0590)
0x0566 (0x000ACC) 0x2113- f:00020 d: 275 | A = OR[275]
0x0567 (0x000ACE) 0x16FE- f:00013 d: 254 | A = A - 254 (0x00FE)
0x0568 (0x000AD0) 0x8402- f:00102 d: 2 | P = P + 2 (0x056A), A = 0
0x0569 (0x000AD2) 0x700A- f:00070 d: 10 | P = P + 10 (0x0573)
0x056A (0x000AD4) 0x2128- f:00020 d: 296 | A = OR[296]
0x056B (0x000AD6) 0x1605- f:00013 d: 5 | A = A - 5 (0x0005)
0x056C (0x000AD8) 0x8402- f:00102 d: 2 | P = P + 2 (0x056E), A = 0
0x056D (0x000ADA) 0x7006- f:00070 d: 6 | P = P + 6 (0x0573)
0x056E (0x000ADC) 0x2100- f:00020 d: 256 | A = OR[256]
0x056F (0x000ADE) 0x1432- f:00012 d: 50 | A = A + 50 (0x0032)
0x0570 (0x000AE0) 0x2908- f:00024 d: 264 | OR[264] = A
0x0571 (0x000AE2) 0x3D08- f:00036 d: 264 | (OR[264]) = (OR[264]) + 1
0x0572 (0x000AE4) 0x7013- f:00070 d: 19 | P = P + 19 (0x0585)
0x0573 (0x000AE6) 0x211B- f:00020 d: 283 | A = OR[283]
0x0574 (0x000AE8) 0x290D- f:00024 d: 269 | OR[269] = A
0x0575 (0x000AEA) 0x213C- f:00020 d: 316 | A = OR[316]
0x0576 (0x000AEC) 0x290E- f:00024 d: 270 | OR[270] = A
0x0577 (0x000AEE) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x0578 (0x000AF0) 0x290F- f:00024 d: 271 | OR[271] = A
0x0579 (0x000AF2) 0x7006- f:00070 d: 6 | P = P + 6 (0x057F)
0x057A (0x000AF4) 0x310D- f:00030 d: 269 | A = (OR[269])
0x057B (0x000AF6) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x057C (0x000AF8) 0x2D0D- f:00026 d: 269 | OR[269] = OR[269] + 1
0x057D (0x000AFA) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x057E (0x000AFC) 0x2F0F- f:00027 d: 271 | OR[271] = OR[271] - 1
0x057F (0x000AFE) 0x210F- f:00020 d: 271 | A = OR[271]
0x0580 (0x000B00) 0x8E06- f:00107 d: 6 | P = P - 6 (0x057A), A # 0
0x0581 (0x000B02) 0x1003- f:00010 d: 3 | A = 3 (0x0003)
0x0582 (0x000B04) 0x2920- f:00024 d: 288 | OR[288] = A
0x0583 (0x000B06) 0x7E03-0x0674 f:00077 d: 3 | R = OR[3]+1652 (0x0674)
0x0585 (0x000B0A) 0x211B- f:00020 d: 283 | A = OR[283]
0x0586 (0x000B0C) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x0587 (0x000B0E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0588 (0x000B10) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0589 (0x000B12) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x058B (0x000B16) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x058C (0x000B18) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x058D (0x000B1A) 0x292C- f:00024 d: 300 | OR[300] = A
0x058E (0x000B1C) 0x7A03-0x0672 f:00075 d: 3 | P = OR[3]+1650 (0x0672)
0x0590 (0x000B20) 0x211A- f:00020 d: 282 | A = OR[282]
0x0591 (0x000B22) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x0592 (0x000B24) 0x2908- f:00024 d: 264 | OR[264] = A
0x0593 (0x000B26) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0594 (0x000B28) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0595 (0x000B2A) 0x2913- f:00024 d: 275 | OR[275] = A
0x0596 (0x000B2C) 0x2113- f:00020 d: 275 | A = OR[275]
0x0597 (0x000B2E) 0x1625- f:00013 d: 37 | A = A - 37 (0x0025)
0x0598 (0x000B30) 0x8405- f:00102 d: 5 | P = P + 5 (0x059D), A = 0
0x0599 (0x000B32) 0x2113- f:00020 d: 275 | A = OR[275]
0x059A (0x000B34) 0x1629- f:00013 d: 41 | A = A - 41 (0x0029)
0x059B (0x000B36) 0x8402- f:00102 d: 2 | P = P + 2 (0x059D), A = 0
0x059C (0x000B38) 0x7003- f:00070 d: 3 | P = P + 3 (0x059F)
0x059D (0x000B3A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x059E (0x000B3C) 0x2913- f:00024 d: 275 | OR[275] = A
0x059F (0x000B3E) 0x2134- f:00020 d: 308 | A = OR[308]
0x05A0 (0x000B40) 0x8404- f:00102 d: 4 | P = P + 4 (0x05A4), A = 0
0x05A1 (0x000B42) 0x2113- f:00020 d: 275 | A = OR[275]
0x05A2 (0x000B44) 0x8402- f:00102 d: 2 | P = P + 2 (0x05A4), A = 0
0x05A3 (0x000B46) 0x7058- f:00070 d: 88 | P = P + 88 (0x05FB)
0x05A4 (0x000B48) 0x211A- f:00020 d: 282 | A = OR[282]
0x05A5 (0x000B4A) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x05A6 (0x000B4C) 0x2908- f:00024 d: 264 | OR[264] = A
0x05A7 (0x000B4E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x05A8 (0x000B50) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x05AA (0x000B54) 0x1441- f:00012 d: 65 | A = A + 65 (0x0041)
0x05AB (0x000B56) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x05AC (0x000B58) 0x1014- f:00010 d: 20 | A = 20 (0x0014)
0x05AD (0x000B5A) 0x2945- f:00024 d: 325 | OR[325] = A
0x05AE (0x000B5C) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x05AF (0x000B5E) 0x2946- f:00024 d: 326 | OR[326] = A
0x05B0 (0x000B60) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x05B1 (0x000B62) 0x2947- f:00024 d: 327 | OR[327] = A
0x05B2 (0x000B64) 0x211B- f:00020 d: 283 | A = OR[283]
0x05B3 (0x000B66) 0x2948- f:00024 d: 328 | OR[328] = A
0x05B4 (0x000B68) 0x2126- f:00020 d: 294 | A = OR[294]
0x05B5 (0x000B6A) 0x2949- f:00024 d: 329 | OR[329] = A
0x05B6 (0x000B6C) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x05B7 (0x000B6E) 0x294A- f:00024 d: 330 | OR[330] = A
0x05B8 (0x000B70) 0x211A- f:00020 d: 282 | A = OR[282]
0x05B9 (0x000B72) 0x294B- f:00024 d: 331 | OR[331] = A
0x05BA (0x000B74) 0x2119- f:00020 d: 281 | A = OR[281]
0x05BB (0x000B76) 0x294C- f:00024 d: 332 | OR[332] = A
0x05BC (0x000B78) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x05BD (0x000B7A) 0x5800- f:00054 d: 0 | B = A
0x05BE (0x000B7C) 0x1800-0x5B18 f:00014 d: 0 | A = 23320 (0x5B18)
0x05C0 (0x000B80) 0x7C09- f:00076 d: 9 | R = OR[9]
0x05C1 (0x000B82) 0x211B- f:00020 d: 283 | A = OR[283]
0x05C2 (0x000B84) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x05C3 (0x000B86) 0x2908- f:00024 d: 264 | OR[264] = A
0x05C4 (0x000B88) 0x3108- f:00030 d: 264 | A = (OR[264])
0x05C5 (0x000B8A) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x05C6 (0x000B8C) 0x2913- f:00024 d: 275 | OR[275] = A
0x05C7 (0x000B8E) 0x2113- f:00020 d: 275 | A = OR[275]
0x05C8 (0x000B90) 0x16FE- f:00013 d: 254 | A = A - 254 (0x00FE)
0x05C9 (0x000B92) 0x8405- f:00102 d: 5 | P = P + 5 (0x05CE), A = 0
0x05CA (0x000B94) 0x2113- f:00020 d: 275 | A = OR[275]
0x05CB (0x000B96) 0x16FF- f:00013 d: 255 | A = A - 255 (0x00FF)
0x05CC (0x000B98) 0x8402- f:00102 d: 2 | P = P + 2 (0x05CE), A = 0
0x05CD (0x000B9A) 0x702E- f:00070 d: 46 | P = P + 46 (0x05FB)
0x05CE (0x000B9C) 0x211B- f:00020 d: 283 | A = OR[283]
0x05CF (0x000B9E) 0x290D- f:00024 d: 269 | OR[269] = A
0x05D0 (0x000BA0) 0x213C- f:00020 d: 316 | A = OR[316]
0x05D1 (0x000BA2) 0x290E- f:00024 d: 270 | OR[270] = A
0x05D2 (0x000BA4) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x05D3 (0x000BA6) 0x290F- f:00024 d: 271 | OR[271] = A
0x05D4 (0x000BA8) 0x7006- f:00070 d: 6 | P = P + 6 (0x05DA)
0x05D5 (0x000BAA) 0x310D- f:00030 d: 269 | A = (OR[269])
0x05D6 (0x000BAC) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x05D7 (0x000BAE) 0x2D0D- f:00026 d: 269 | OR[269] = OR[269] + 1
0x05D8 (0x000BB0) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x05D9 (0x000BB2) 0x2F0F- f:00027 d: 271 | OR[271] = OR[271] - 1
0x05DA (0x000BB4) 0x210F- f:00020 d: 271 | A = OR[271]
0x05DB (0x000BB6) 0x8E06- f:00107 d: 6 | P = P - 6 (0x05D5), A # 0
0x05DC (0x000BB8) 0x1003- f:00010 d: 3 | A = 3 (0x0003)
0x05DD (0x000BBA) 0x2920- f:00024 d: 288 | OR[288] = A
0x05DE (0x000BBC) 0x7E03-0x0674 f:00077 d: 3 | R = OR[3]+1652 (0x0674)
0x05E0 (0x000BC0) 0x2101- f:00020 d: 257 | A = OR[257]
0x05E1 (0x000BC2) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x05E2 (0x000BC4) 0x2908- f:00024 d: 264 | OR[264] = A
0x05E3 (0x000BC6) 0x3108- f:00030 d: 264 | A = (OR[264])
0x05E4 (0x000BC8) 0x0809- f:00004 d: 9 | A = A > 9 (0x0009)
0x05E5 (0x000BCA) 0x123F- f:00011 d: 63 | A = A & 63 (0x003F)
0x05E6 (0x000BCC) 0x2913- f:00024 d: 275 | OR[275] = A
0x05E7 (0x000BCE) 0x102D- f:00010 d: 45 | A = 45 (0x002D)
0x05E8 (0x000BD0) 0x2945- f:00024 d: 325 | OR[325] = A
0x05E9 (0x000BD2) 0x1800-0x0190 f:00014 d: 0 | A = 400 (0x0190)
0x05EB (0x000BD6) 0x2946- f:00024 d: 326 | OR[326] = A
0x05EC (0x000BD8) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x05ED (0x000BDA) 0x2947- f:00024 d: 327 | OR[327] = A
0x05EE (0x000BDC) 0x1800-0xFFFF f:00014 d: 0 | A = 65535 (0xFFFF)
0x05F0 (0x000BE0) 0x2948- f:00024 d: 328 | OR[328] = A
0x05F1 (0x000BE2) 0x2113- f:00020 d: 275 | A = OR[275]
0x05F2 (0x000BE4) 0x2949- f:00024 d: 329 | OR[329] = A
0x05F3 (0x000BE6) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x05F4 (0x000BE8) 0x5800- f:00054 d: 0 | B = A
0x05F5 (0x000BEA) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x05F6 (0x000BEC) 0x7C09- f:00076 d: 9 | R = OR[9]
0x05F7 (0x000BEE) 0xB634- f:00133 d: 52 | R = OR[52], A # 0
0x05F8 (0x000BF0) 0x0000- f:00000 d: 0 | PASS
0x05F9 (0x000BF2) 0x7A03-0x0703 f:00075 d: 3 | P = OR[3]+1795 (0x0703)
0x05FB (0x000BF6) 0x311B- f:00030 d: 283 | A = (OR[283])
0x05FC (0x000BF8) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x05FD (0x000BFA) 0x2913- f:00024 d: 275 | OR[275] = A
0x05FE (0x000BFC) 0x2113- f:00020 d: 275 | A = OR[275]
0x05FF (0x000BFE) 0x1237- f:00011 d: 55 | A = A & 55 (0x0037)
0x0600 (0x000C00) 0x2914- f:00024 d: 276 | OR[276] = A
0x0601 (0x000C02) 0x2114- f:00020 d: 276 | A = OR[276]
0x0602 (0x000C04) 0x8602- f:00103 d: 2 | P = P + 2 (0x0604), A # 0
0x0603 (0x000C06) 0x7069- f:00070 d: 105 | P = P + 105 (0x066C)
0x0604 (0x000C08) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0605 (0x000C0A) 0x292C- f:00024 d: 300 | OR[300] = A
0x0606 (0x000C0C) 0x311B- f:00030 d: 283 | A = (OR[283])
0x0607 (0x000C0E) 0x0809- f:00004 d: 9 | A = A > 9 (0x0009)
0x0608 (0x000C10) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0609 (0x000C12) 0x8602- f:00103 d: 2 | P = P + 2 (0x060B), A # 0
0x060A (0x000C14) 0x7020- f:00070 d: 32 | P = P + 32 (0x062A)
0x060B (0x000C16) 0x311B- f:00030 d: 283 | A = (OR[283])
0x060C (0x000C18) 0x080B- f:00004 d: 11 | A = A > 11 (0x000B)
0x060D (0x000C1A) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x060E (0x000C1C) 0x8602- f:00103 d: 2 | P = P + 2 (0x0610), A # 0
0x060F (0x000C1E) 0x7009- f:00070 d: 9 | P = P + 9 (0x0618)
0x0610 (0x000C20) 0x212D- f:00020 d: 301 | A = OR[301]
0x0611 (0x000C22) 0x8602- f:00103 d: 2 | P = P + 2 (0x0613), A # 0
0x0612 (0x000C24) 0x7006- f:00070 d: 6 | P = P + 6 (0x0618)
0x0613 (0x000C26) 0x2100- f:00020 d: 256 | A = OR[256]
0x0614 (0x000C28) 0x1431- f:00012 d: 49 | A = A + 49 (0x0031)
0x0615 (0x000C2A) 0x2908- f:00024 d: 264 | OR[264] = A
0x0616 (0x000C2C) 0x3D08- f:00036 d: 264 | (OR[264]) = (OR[264]) + 1
0x0617 (0x000C2E) 0x7012- f:00070 d: 18 | P = P + 18 (0x0629)
0x0618 (0x000C30) 0x211B- f:00020 d: 283 | A = OR[283]
0x0619 (0x000C32) 0x290D- f:00024 d: 269 | OR[269] = A
0x061A (0x000C34) 0x213C- f:00020 d: 316 | A = OR[316]
0x061B (0x000C36) 0x290E- f:00024 d: 270 | OR[270] = A
0x061C (0x000C38) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x061D (0x000C3A) 0x290F- f:00024 d: 271 | OR[271] = A
0x061E (0x000C3C) 0x7006- f:00070 d: 6 | P = P + 6 (0x0624)
0x061F (0x000C3E) 0x310D- f:00030 d: 269 | A = (OR[269])
0x0620 (0x000C40) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x0621 (0x000C42) 0x2D0D- f:00026 d: 269 | OR[269] = OR[269] + 1
0x0622 (0x000C44) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x0623 (0x000C46) 0x2F0F- f:00027 d: 271 | OR[271] = OR[271] - 1
0x0624 (0x000C48) 0x210F- f:00020 d: 271 | A = OR[271]
0x0625 (0x000C4A) 0x8E06- f:00107 d: 6 | P = P - 6 (0x061F), A # 0
0x0626 (0x000C4C) 0x1003- f:00010 d: 3 | A = 3 (0x0003)
0x0627 (0x000C4E) 0x2920- f:00024 d: 288 | OR[288] = A
0x0628 (0x000C50) 0x7446- f:00072 d: 70 | R = P + 70 (0x066E)
0x0629 (0x000C52) 0x7043- f:00070 d: 67 | P = P + 67 (0x066C)
0x062A (0x000C54) 0x211B- f:00020 d: 283 | A = OR[283]
0x062B (0x000C56) 0x290D- f:00024 d: 269 | OR[269] = A
0x062C (0x000C58) 0x213E- f:00020 d: 318 | A = OR[318]
0x062D (0x000C5A) 0x290E- f:00024 d: 270 | OR[270] = A
0x062E (0x000C5C) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x062F (0x000C5E) 0x290F- f:00024 d: 271 | OR[271] = A
0x0630 (0x000C60) 0x7006- f:00070 d: 6 | P = P + 6 (0x0636)
0x0631 (0x000C62) 0x310D- f:00030 d: 269 | A = (OR[269])
0x0632 (0x000C64) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x0633 (0x000C66) 0x2D0D- f:00026 d: 269 | OR[269] = OR[269] + 1
0x0634 (0x000C68) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x0635 (0x000C6A) 0x2F0F- f:00027 d: 271 | OR[271] = OR[271] - 1
0x0636 (0x000C6C) 0x210F- f:00020 d: 271 | A = OR[271]
0x0637 (0x000C6E) 0x8E06- f:00107 d: 6 | P = P - 6 (0x0631), A # 0
0x0638 (0x000C70) 0x213C- f:00020 d: 316 | A = OR[316]
0x0639 (0x000C72) 0x141C- f:00012 d: 28 | A = A + 28 (0x001C)
0x063A (0x000C74) 0x2908- f:00024 d: 264 | OR[264] = A
0x063B (0x000C76) 0x213E- f:00020 d: 318 | A = OR[318]
0x063C (0x000C78) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x063D (0x000C7A) 0x8402- f:00102 d: 2 | P = P + 2 (0x063F), A = 0
0x063E (0x000C7C) 0x7005- f:00070 d: 5 | P = P + 5 (0x0643)
0x063F (0x000C7E) 0x213C- f:00020 d: 316 | A = OR[316]
0x0640 (0x000C80) 0x1404- f:00012 d: 4 | A = A + 4 (0x0004)
0x0641 (0x000C82) 0x293E- f:00024 d: 318 | OR[318] = A
0x0642 (0x000C84) 0x7003- f:00070 d: 3 | P = P + 3 (0x0645)
0x0643 (0x000C86) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x0644 (0x000C88) 0x2B3E- f:00025 d: 318 | OR[318] = A + OR[318]
0x0645 (0x000C8A) 0x311B- f:00030 d: 283 | A = (OR[283])
0x0646 (0x000C8C) 0x080A- f:00004 d: 10 | A = A > 10 (0x000A)
0x0647 (0x000C8E) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0648 (0x000C90) 0x8602- f:00103 d: 2 | P = P + 2 (0x064A), A # 0
0x0649 (0x000C92) 0x7012- f:00070 d: 18 | P = P + 18 (0x065B)
0x064A (0x000C94) 0x212D- f:00020 d: 301 | A = OR[301]
0x064B (0x000C96) 0x8602- f:00103 d: 2 | P = P + 2 (0x064D), A # 0
0x064C (0x000C98) 0x700F- f:00070 d: 15 | P = P + 15 (0x065B)
0x064D (0x000C9A) 0x2100- f:00020 d: 256 | A = OR[256]
0x064E (0x000C9C) 0x1431- f:00012 d: 49 | A = A + 49 (0x0031)
0x064F (0x000C9E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0650 (0x000CA0) 0x3D08- f:00036 d: 264 | (OR[264]) = (OR[264]) + 1
0x0651 (0x000CA2) 0x211B- f:00020 d: 283 | A = OR[283]
0x0652 (0x000CA4) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0653 (0x000CA6) 0x2908- f:00024 d: 264 | OR[264] = A
0x0654 (0x000CA8) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0655 (0x000CAA) 0x080F- f:00004 d: 15 | A = A > 15 (0x000F)
0x0656 (0x000CAC) 0x8602- f:00103 d: 2 | P = P + 2 (0x0658), A # 0
0x0657 (0x000CAE) 0x7003- f:00070 d: 3 | P = P + 3 (0x065A)
0x0658 (0x000CB0) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0659 (0x000CB2) 0x2939- f:00024 d: 313 | OR[313] = A
0x065A (0x000CB4) 0x7012- f:00070 d: 18 | P = P + 18 (0x066C)
0x065B (0x000CB6) 0x211B- f:00020 d: 283 | A = OR[283]
0x065C (0x000CB8) 0x290D- f:00024 d: 269 | OR[269] = A
0x065D (0x000CBA) 0x213C- f:00020 d: 316 | A = OR[316]
0x065E (0x000CBC) 0x290E- f:00024 d: 270 | OR[270] = A
0x065F (0x000CBE) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x0660 (0x000CC0) 0x290F- f:00024 d: 271 | OR[271] = A
0x0661 (0x000CC2) 0x7006- f:00070 d: 6 | P = P + 6 (0x0667)
0x0662 (0x000CC4) 0x310D- f:00030 d: 269 | A = (OR[269])
0x0663 (0x000CC6) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x0664 (0x000CC8) 0x2D0D- f:00026 d: 269 | OR[269] = OR[269] + 1
0x0665 (0x000CCA) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x0666 (0x000CCC) 0x2F0F- f:00027 d: 271 | OR[271] = OR[271] - 1
0x0667 (0x000CCE) 0x210F- f:00020 d: 271 | A = OR[271]
0x0668 (0x000CD0) 0x8E06- f:00107 d: 6 | P = P - 6 (0x0662), A # 0
0x0669 (0x000CD2) 0x1003- f:00010 d: 3 | A = 3 (0x0003)
0x066A (0x000CD4) 0x2920- f:00024 d: 288 | OR[288] = A
0x066B (0x000CD6) 0x7403- f:00072 d: 3 | R = P + 3 (0x066E)
0x066C (0x000CD8) 0x212C- f:00020 d: 300 | A = OR[300]
0x066D (0x000CDA) 0x0200- f:00001 d: 0 | EXIT
0x066E (0x000CDC) 0x2101- f:00020 d: 257 | A = OR[257]
0x066F (0x000CDE) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0670 (0x000CE0) 0x2908- f:00024 d: 264 | OR[264] = A
0x0671 (0x000CE2) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0672 (0x000CE4) 0x0809- f:00004 d: 9 | A = A > 9 (0x0009)
0x0673 (0x000CE6) 0x123F- f:00011 d: 63 | A = A & 63 (0x003F)
0x0674 (0x000CE8) 0x2913- f:00024 d: 275 | OR[275] = A
0x0675 (0x000CEA) 0x2125- f:00020 d: 293 | A = OR[293]
0x0676 (0x000CEC) 0x8602- f:00103 d: 2 | P = P + 2 (0x0678), A # 0
0x0677 (0x000CEE) 0x7007- f:00070 d: 7 | P = P + 7 (0x067E)
0x0678 (0x000CF0) 0x211F- f:00020 d: 287 | A = OR[287]
0x0679 (0x000CF2) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x067A (0x000CF4) 0x2908- f:00024 d: 264 | OR[264] = A
0x067B (0x000CF6) 0x3108- f:00030 d: 264 | A = (OR[264])
0x067C (0x000CF8) 0x2914- f:00024 d: 276 | OR[276] = A
0x067D (0x000CFA) 0x7003- f:00070 d: 3 | P = P + 3 (0x0680)
0x067E (0x000CFC) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x067F (0x000CFE) 0x2914- f:00024 d: 276 | OR[276] = A
0x0680 (0x000D00) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0681 (0x000D02) 0x2915- f:00024 d: 277 | OR[277] = A
0x0682 (0x000D04) 0x102D- f:00010 d: 45 | A = 45 (0x002D)
0x0683 (0x000D06) 0x2945- f:00024 d: 325 | OR[325] = A
0x0684 (0x000D08) 0x1800-0x0193 f:00014 d: 0 | A = 403 (0x0193)
0x0686 (0x000D0C) 0x2946- f:00024 d: 326 | OR[326] = A
0x0687 (0x000D0E) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x0688 (0x000D10) 0x2947- f:00024 d: 327 | OR[327] = A
0x0689 (0x000D12) 0x1800-0xFFFF f:00014 d: 0 | A = 65535 (0xFFFF)
0x068B (0x000D16) 0x2948- f:00024 d: 328 | OR[328] = A
0x068C (0x000D18) 0x2120- f:00020 d: 288 | A = OR[288]
0x068D (0x000D1A) 0x2949- f:00024 d: 329 | OR[329] = A
0x068E (0x000D1C) 0x2113- f:00020 d: 275 | A = OR[275]
0x068F (0x000D1E) 0x294A- f:00024 d: 330 | OR[330] = A
0x0690 (0x000D20) 0x2114- f:00020 d: 276 | A = OR[276]
0x0691 (0x000D22) 0x294B- f:00024 d: 331 | OR[331] = A
0x0692 (0x000D24) 0x2115- f:00020 d: 277 | A = OR[277]
0x0693 (0x000D26) 0x294C- f:00024 d: 332 | OR[332] = A
0x0694 (0x000D28) 0x213C- f:00020 d: 316 | A = OR[316]
0x0695 (0x000D2A) 0x294D- f:00024 d: 333 | OR[333] = A
0x0696 (0x000D2C) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x0697 (0x000D2E) 0x5800- f:00054 d: 0 | B = A
0x0698 (0x000D30) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0699 (0x000D32) 0x7C09- f:00076 d: 9 | R = OR[9]
0x069A (0x000D34) 0x0200- f:00001 d: 0 | EXIT
0x069B (0x000D36) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x069C (0x000D38) 0x2927- f:00024 d: 295 | OR[295] = A
0x069D (0x000D3A) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x069E (0x000D3C) 0x291C- f:00024 d: 284 | OR[284] = A
0x069F (0x000D3E) 0x211B- f:00020 d: 283 | A = OR[283]
0x06A0 (0x000D40) 0x2935- f:00024 d: 309 | OR[309] = A
0x06A1 (0x000D42) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x06A2 (0x000D44) 0x291E- f:00024 d: 286 | OR[286] = A
0x06A3 (0x000D46) 0x211A- f:00020 d: 282 | A = OR[282]
0x06A4 (0x000D48) 0x2936- f:00024 d: 310 | OR[310] = A
0x06A5 (0x000D4A) 0x2136- f:00020 d: 310 | A = OR[310]
0x06A6 (0x000D4C) 0x271A- f:00023 d: 282 | A = A - OR[282]
0x06A7 (0x000D4E) 0x8402- f:00102 d: 2 | P = P + 2 (0x06A9), A = 0
0x06A8 (0x000D50) 0x700C- f:00070 d: 12 | P = P + 12 (0x06B4)
0x06A9 (0x000D52) 0x2128- f:00020 d: 296 | A = OR[296]
0x06AA (0x000D54) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x06AB (0x000D56) 0x2928- f:00024 d: 296 | OR[296] = A
0x06AC (0x000D58) 0x2136- f:00020 d: 310 | A = OR[310]
0x06AD (0x000D5A) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x06AE (0x000D5C) 0x2908- f:00024 d: 264 | OR[264] = A
0x06AF (0x000D5E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x06B0 (0x000D60) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x06B2 (0x000D64) 0x2528- f:00022 d: 296 | A = A + OR[296]
0x06B3 (0x000D66) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x06B4 (0x000D68) 0x1014- f:00010 d: 20 | A = 20 (0x0014)
0x06B5 (0x000D6A) 0x2945- f:00024 d: 325 | OR[325] = A
0x06B6 (0x000D6C) 0x2127- f:00020 d: 295 | A = OR[295]
0x06B7 (0x000D6E) 0x2946- f:00024 d: 326 | OR[326] = A
0x06B8 (0x000D70) 0x211C- f:00020 d: 284 | A = OR[284]
0x06B9 (0x000D72) 0x2947- f:00024 d: 327 | OR[327] = A
0x06BA (0x000D74) 0x2135- f:00020 d: 309 | A = OR[309]
0x06BB (0x000D76) 0x2948- f:00024 d: 328 | OR[328] = A
0x06BC (0x000D78) 0x2126- f:00020 d: 294 | A = OR[294]
0x06BD (0x000D7A) 0x2949- f:00024 d: 329 | OR[329] = A
0x06BE (0x000D7C) 0x211E- f:00020 d: 286 | A = OR[286]
0x06BF (0x000D7E) 0x294A- f:00024 d: 330 | OR[330] = A
0x06C0 (0x000D80) 0x2136- f:00020 d: 310 | A = OR[310]
0x06C1 (0x000D82) 0x294B- f:00024 d: 331 | OR[331] = A
0x06C2 (0x000D84) 0x2119- f:00020 d: 281 | A = OR[281]
0x06C3 (0x000D86) 0x294C- f:00024 d: 332 | OR[332] = A
0x06C4 (0x000D88) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x06C5 (0x000D8A) 0x5800- f:00054 d: 0 | B = A
0x06C6 (0x000D8C) 0x1800-0x5B18 f:00014 d: 0 | A = 23320 (0x5B18)
0x06C8 (0x000D90) 0x7C09- f:00076 d: 9 | R = OR[9]
0x06C9 (0x000D92) 0x0200- f:00001 d: 0 | EXIT
0x06CA (0x000D94) 0x1064- f:00010 d: 100 | A = 100 (0x0064)
0x06CB (0x000D96) 0x2913- f:00024 d: 275 | OR[275] = A
0x06CC (0x000D98) 0x8403- f:00102 d: 3 | P = P + 3 (0x06CF), A = 0
0x06CD (0x000D9A) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x06CE (0x000D9C) 0x7202- f:00071 d: 2 | P = P - 2 (0x06CC)
0x06CF (0x000D9E) 0x0200- f:00001 d: 0 | EXIT
0x06D0 (0x000DA0) 0x2125- f:00020 d: 293 | A = OR[293]
0x06D1 (0x000DA2) 0x142B- f:00012 d: 43 | A = A + 43 (0x002B)
0x06D2 (0x000DA4) 0x293F- f:00024 d: 319 | OR[319] = A
0x06D3 (0x000DA6) 0x313F- f:00030 d: 319 | A = (OR[319])
0x06D4 (0x000DA8) 0x2940- f:00024 d: 320 | OR[320] = A
0x06D5 (0x000DAA) 0x213F- f:00020 d: 319 | A = OR[319]
0x06D6 (0x000DAC) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x06D7 (0x000DAE) 0x2908- f:00024 d: 264 | OR[264] = A
0x06D8 (0x000DB0) 0x3108- f:00030 d: 264 | A = (OR[264])
0x06D9 (0x000DB2) 0x2941- f:00024 d: 321 | OR[321] = A
0x06DA (0x000DB4) 0x2140- f:00020 d: 320 | A = OR[320]
0x06DB (0x000DB6) 0x8402- f:00102 d: 2 | P = P + 2 (0x06DD), A = 0
0x06DC (0x000DB8) 0x7003- f:00070 d: 3 | P = P + 3 (0x06DF)
0x06DD (0x000DBA) 0x2141- f:00020 d: 321 | A = OR[321]
0x06DE (0x000DBC) 0x841E- f:00102 d: 30 | P = P + 30 (0x06FC), A = 0
0x06DF (0x000DBE) 0x101E- f:00010 d: 30 | A = 30 (0x001E)
0x06E0 (0x000DC0) 0x2945- f:00024 d: 325 | OR[325] = A
0x06E1 (0x000DC2) 0x2140- f:00020 d: 320 | A = OR[320]
0x06E2 (0x000DC4) 0x2946- f:00024 d: 326 | OR[326] = A
0x06E3 (0x000DC6) 0x2141- f:00020 d: 321 | A = OR[321]
0x06E4 (0x000DC8) 0x2947- f:00024 d: 327 | OR[327] = A
0x06E5 (0x000DCA) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x06E6 (0x000DCC) 0x2948- f:00024 d: 328 | OR[328] = A
0x06E7 (0x000DCE) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x06E8 (0x000DD0) 0x5800- f:00054 d: 0 | B = A
0x06E9 (0x000DD2) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x06EA (0x000DD4) 0x7C09- f:00076 d: 9 | R = OR[9]
0x06EB (0x000DD6) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x06EC (0x000DD8) 0x393F- f:00034 d: 319 | (OR[319]) = A
0x06ED (0x000DDA) 0x213F- f:00020 d: 319 | A = OR[319]
0x06EE (0x000DDC) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x06EF (0x000DDE) 0x2908- f:00024 d: 264 | OR[264] = A
0x06F0 (0x000DE0) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x06F1 (0x000DE2) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x06F2 (0x000DE4) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x06F3 (0x000DE6) 0x2B3F- f:00025 d: 319 | OR[319] = A + OR[319]
0x06F4 (0x000DE8) 0x313F- f:00030 d: 319 | A = (OR[319])
0x06F5 (0x000DEA) 0x2940- f:00024 d: 320 | OR[320] = A
0x06F6 (0x000DEC) 0x213F- f:00020 d: 319 | A = OR[319]
0x06F7 (0x000DEE) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x06F8 (0x000DF0) 0x2908- f:00024 d: 264 | OR[264] = A
0x06F9 (0x000DF2) 0x3108- f:00030 d: 264 | A = (OR[264])
0x06FA (0x000DF4) 0x2941- f:00024 d: 321 | OR[321] = A
0x06FB (0x000DF6) 0x7221- f:00071 d: 33 | P = P - 33 (0x06DA)
0x06FC (0x000DF8) 0x0200- f:00001 d: 0 | EXIT
0x06FD (0x000DFA) 0x2100- f:00020 d: 256 | A = OR[256]
0x06FE (0x000DFC) 0x1434- f:00012 d: 52 | A = A + 52 (0x0034)
0x06FF (0x000DFE) 0x2908- f:00024 d: 264 | OR[264] = A
0x0700 (0x000E00) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0701 (0x000E02) 0x0E01- f:00007 d: 1 | A = A << 1 (0x0001)
0x0702 (0x000E04) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x0703 (0x000E06) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x0704 (0x000E08) 0x0C02- f:00006 d: 2 | A = A >> 2 (0x0002)
0x0705 (0x000E0A) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0706 (0x000E0C) 0x3101- f:00030 d: 257 | A = (OR[257])
0x0707 (0x000E0E) 0x0E01- f:00007 d: 1 | A = A << 1 (0x0001)
0x0708 (0x000E10) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x0709 (0x000E12) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x070A (0x000E14) 0x0C02- f:00006 d: 2 | A = A >> 2 (0x0002)
0x070B (0x000E16) 0x3901- f:00034 d: 257 | (OR[257]) = A
0x070C (0x000E18) 0x2126- f:00020 d: 294 | A = OR[294]
0x070D (0x000E1A) 0x5800- f:00054 d: 0 | B = A
0x070E (0x000E1C) 0xEC00- f:00166 d: 0 | IOB , fn006
0x070F (0x000E1E) 0xE000- f:00160 d: 0 | IOB , fn000
0x0710 (0x000E20) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x0711 (0x000E22) 0x2945- f:00024 d: 325 | OR[325] = A
0x0712 (0x000E24) 0x1800-0x0196 f:00014 d: 0 | A = 406 (0x0196)
0x0714 (0x000E28) 0x2946- f:00024 d: 326 | OR[326] = A
0x0715 (0x000E2A) 0x2126- f:00020 d: 294 | A = OR[294]
0x0716 (0x000E2C) 0x2947- f:00024 d: 327 | OR[327] = A
0x0717 (0x000E2E) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x0718 (0x000E30) 0x5800- f:00054 d: 0 | B = A
0x0719 (0x000E32) 0x1800-0x5B18 f:00014 d: 0 | A = 23320 (0x5B18)
0x071B (0x000E36) 0x7C09- f:00076 d: 9 | R = OR[9]
0x071C (0x000E38) 0x2048- f:00020 d: 72 | A = OR[72]
0x071D (0x000E3A) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x071E (0x000E3C) 0x2908- f:00024 d: 264 | OR[264] = A
0x071F (0x000E3E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0720 (0x000E40) 0x293F- f:00024 d: 319 | OR[319] = A
0x0721 (0x000E42) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0722 (0x000E44) 0x2940- f:00024 d: 320 | OR[320] = A
0x0723 (0x000E46) 0x2140- f:00020 d: 320 | A = OR[320]
0x0724 (0x000E48) 0x842E- f:00102 d: 46 | P = P + 46 (0x0752), A = 0
0x0725 (0x000E4A) 0x313F- f:00030 d: 319 | A = (OR[319])
0x0726 (0x000E4C) 0x080F- f:00004 d: 15 | A = A > 15 (0x000F)
0x0727 (0x000E4E) 0x2913- f:00024 d: 275 | OR[275] = A
0x0728 (0x000E50) 0x213F- f:00020 d: 319 | A = OR[319]
0x0729 (0x000E52) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x072A (0x000E54) 0x2908- f:00024 d: 264 | OR[264] = A
0x072B (0x000E56) 0x3108- f:00030 d: 264 | A = (OR[264])
0x072C (0x000E58) 0x2941- f:00024 d: 321 | OR[321] = A
0x072D (0x000E5A) 0x2141- f:00020 d: 321 | A = OR[321]
0x072E (0x000E5C) 0x1467- f:00012 d: 103 | A = A + 103 (0x0067)
0x072F (0x000E5E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0730 (0x000E60) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0731 (0x000E62) 0x2941- f:00024 d: 321 | OR[321] = A
0x0732 (0x000E64) 0x2113- f:00020 d: 275 | A = OR[275]
0x0733 (0x000E66) 0x8602- f:00103 d: 2 | P = P + 2 (0x0735), A # 0
0x0734 (0x000E68) 0x701A- f:00070 d: 26 | P = P + 26 (0x074E)
0x0735 (0x000E6A) 0x2141- f:00020 d: 321 | A = OR[321]
0x0736 (0x000E6C) 0x2726- f:00023 d: 294 | A = A - OR[294]
0x0737 (0x000E6E) 0x8402- f:00102 d: 2 | P = P + 2 (0x0739), A = 0
0x0738 (0x000E70) 0x7016- f:00070 d: 22 | P = P + 22 (0x074E)
0x0739 (0x000E72) 0x213F- f:00020 d: 319 | A = OR[319]
0x073A (0x000E74) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x073B (0x000E76) 0x2908- f:00024 d: 264 | OR[264] = A
0x073C (0x000E78) 0x3108- f:00030 d: 264 | A = (OR[264])
0x073D (0x000E7A) 0x8602- f:00103 d: 2 | P = P + 2 (0x073F), A # 0
0x073E (0x000E7C) 0x7010- f:00070 d: 16 | P = P + 16 (0x074E)
0x073F (0x000E7E) 0x313F- f:00030 d: 319 | A = (OR[319])
0x0740 (0x000E80) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0741 (0x000E82) 0x2941- f:00024 d: 321 | OR[321] = A
0x0742 (0x000E84) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x0743 (0x000E86) 0x2945- f:00024 d: 325 | OR[325] = A
0x0744 (0x000E88) 0x1800-0x018E f:00014 d: 0 | A = 398 (0x018E)
0x0746 (0x000E8C) 0x2946- f:00024 d: 326 | OR[326] = A
0x0747 (0x000E8E) 0x2141- f:00020 d: 321 | A = OR[321]
0x0748 (0x000E90) 0x2947- f:00024 d: 327 | OR[327] = A
0x0749 (0x000E92) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x074A (0x000E94) 0x5800- f:00054 d: 0 | B = A
0x074B (0x000E96) 0x1800-0x5B18 f:00014 d: 0 | A = 23320 (0x5B18)
0x074D (0x000E9A) 0x7C09- f:00076 d: 9 | R = OR[9]
0x074E (0x000E9C) 0x2F40- f:00027 d: 320 | OR[320] = OR[320] - 1
0x074F (0x000E9E) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x0750 (0x000EA0) 0x2B3F- f:00025 d: 319 | OR[319] = A + OR[319]
0x0751 (0x000EA2) 0x722E- f:00071 d: 46 | P = P - 46 (0x0723)
0x0752 (0x000EA4) 0x2100- f:00020 d: 256 | A = OR[256]
0x0753 (0x000EA6) 0x142D- f:00012 d: 45 | A = A + 45 (0x002D)
0x0754 (0x000EA8) 0x2908- f:00024 d: 264 | OR[264] = A
0x0755 (0x000EAA) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0756 (0x000EAC) 0x2922- f:00024 d: 290 | OR[290] = A
0x0757 (0x000EAE) 0x2122- f:00020 d: 290 | A = OR[290]
0x0758 (0x000EB0) 0x3722- f:00033 d: 290 | A = A - (OR[290])
0x0759 (0x000EB2) 0x8602- f:00103 d: 2 | P = P + 2 (0x075B), A # 0
0x075A (0x000EB4) 0x700D- f:00070 d: 13 | P = P + 13 (0x0767)
0x075B (0x000EB6) 0x2122- f:00020 d: 290 | A = OR[290]
0x075C (0x000EB8) 0x1604- f:00013 d: 4 | A = A - 4 (0x0004)
0x075D (0x000EBA) 0x2925- f:00024 d: 293 | OR[293] = A
0x075E (0x000EBC) 0x2125- f:00020 d: 293 | A = OR[293]
0x075F (0x000EBE) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x0760 (0x000EC0) 0x2908- f:00024 d: 264 | OR[264] = A
0x0761 (0x000EC2) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0762 (0x000EC4) 0x0E01- f:00007 d: 1 | A = A << 1 (0x0001)
0x0763 (0x000EC6) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x0764 (0x000EC8) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x0765 (0x000ECA) 0x0C02- f:00006 d: 2 | A = A >> 2 (0x0002)
0x0766 (0x000ECC) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0767 (0x000ECE) 0x2100- f:00020 d: 256 | A = OR[256]
0x0768 (0x000ED0) 0x142F- f:00012 d: 47 | A = A + 47 (0x002F)
0x0769 (0x000ED2) 0x2908- f:00024 d: 264 | OR[264] = A
0x076A (0x000ED4) 0x3108- f:00030 d: 264 | A = (OR[264])
0x076B (0x000ED6) 0x2922- f:00024 d: 290 | OR[290] = A
0x076C (0x000ED8) 0x2122- f:00020 d: 290 | A = OR[290]
0x076D (0x000EDA) 0x3722- f:00033 d: 290 | A = A - (OR[290])
0x076E (0x000EDC) 0x8602- f:00103 d: 2 | P = P + 2 (0x0770), A # 0
0x076F (0x000EDE) 0x700D- f:00070 d: 13 | P = P + 13 (0x077C)
0x0770 (0x000EE0) 0x2122- f:00020 d: 290 | A = OR[290]
0x0771 (0x000EE2) 0x1602- f:00013 d: 2 | A = A - 2 (0x0002)
0x0772 (0x000EE4) 0x2925- f:00024 d: 293 | OR[293] = A
0x0773 (0x000EE6) 0x2125- f:00020 d: 293 | A = OR[293]
0x0774 (0x000EE8) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x0775 (0x000EEA) 0x2908- f:00024 d: 264 | OR[264] = A
0x0776 (0x000EEC) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0777 (0x000EEE) 0x0E01- f:00007 d: 1 | A = A << 1 (0x0001)
0x0778 (0x000EF0) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x0779 (0x000EF2) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x077A (0x000EF4) 0x0C02- f:00006 d: 2 | A = A >> 2 (0x0002)
0x077B (0x000EF6) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x077C (0x000EF8) 0x2129- f:00020 d: 297 | A = OR[297]
0x077D (0x000EFA) 0x8602- f:00103 d: 2 | P = P + 2 (0x077F), A # 0
0x077E (0x000EFC) 0x7032- f:00070 d: 50 | P = P + 50 (0x07B0)
0x077F (0x000EFE) 0x1800-0x0C28 f:00014 d: 0 | A = 3112 (0x0C28)
0x0781 (0x000F02) 0x2908- f:00024 d: 264 | OR[264] = A
0x0782 (0x000F04) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0783 (0x000F06) 0x1614- f:00013 d: 20 | A = A - 20 (0x0014)
0x0784 (0x000F08) 0x8602- f:00103 d: 2 | P = P + 2 (0x0786), A # 0
0x0785 (0x000F0A) 0x7004- f:00070 d: 4 | P = P + 4 (0x0789)
0x0786 (0x000F0C) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0787 (0x000F0E) 0x2940- f:00024 d: 320 | OR[320] = A
0x0788 (0x000F10) 0x7003- f:00070 d: 3 | P = P + 3 (0x078B)
0x0789 (0x000F12) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x078A (0x000F14) 0x2940- f:00024 d: 320 | OR[320] = A
0x078B (0x000F16) 0x1010- f:00010 d: 16 | A = 16 (0x0010)
0x078C (0x000F18) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x078D (0x000F1A) 0x2908- f:00024 d: 264 | OR[264] = A
0x078E (0x000F1C) 0x2140- f:00020 d: 320 | A = OR[320]
0x078F (0x000F1E) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x0790 (0x000F20) 0x8413- f:00102 d: 19 | P = P + 19 (0x07A3), A = 0
0x0791 (0x000F22) 0x2129- f:00020 d: 297 | A = OR[297]
0x0792 (0x000F24) 0x2540- f:00022 d: 320 | A = A + OR[320]
0x0793 (0x000F26) 0x2941- f:00024 d: 321 | OR[321] = A
0x0794 (0x000F28) 0x3141- f:00030 d: 321 | A = (OR[321])
0x0795 (0x000F2A) 0x8602- f:00103 d: 2 | P = P + 2 (0x0797), A # 0
0x0796 (0x000F2C) 0x700B- f:00070 d: 11 | P = P + 11 (0x07A1)
0x0797 (0x000F2E) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x0798 (0x000F30) 0x2945- f:00024 d: 325 | OR[325] = A
0x0799 (0x000F32) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x079A (0x000F34) 0x2946- f:00024 d: 326 | OR[326] = A
0x079B (0x000F36) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x079C (0x000F38) 0x5800- f:00054 d: 0 | B = A
0x079D (0x000F3A) 0x1800-0x5B18 f:00014 d: 0 | A = 23320 (0x5B18)
0x079F (0x000F3E) 0x7C09- f:00076 d: 9 | R = OR[9]
0x07A0 (0x000F40) 0x720F- f:00071 d: 15 | P = P - 15 (0x0791)
0x07A1 (0x000F42) 0x2D40- f:00026 d: 320 | OR[320] = OR[320] + 1
0x07A2 (0x000F44) 0x7217- f:00071 d: 23 | P = P - 23 (0x078B)
0x07A3 (0x000F46) 0x1019- f:00010 d: 25 | A = 25 (0x0019)
0x07A4 (0x000F48) 0x2945- f:00024 d: 325 | OR[325] = A
0x07A5 (0x000F4A) 0x2129- f:00020 d: 297 | A = OR[297]
0x07A6 (0x000F4C) 0x2946- f:00024 d: 326 | OR[326] = A
0x07A7 (0x000F4E) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x07A8 (0x000F50) 0x5800- f:00054 d: 0 | B = A
0x07A9 (0x000F52) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x07AA (0x000F54) 0x7C09- f:00076 d: 9 | R = OR[9]
0x07AB (0x000F56) 0x2101- f:00020 d: 257 | A = OR[257]
0x07AC (0x000F58) 0x1404- f:00012 d: 4 | A = A + 4 (0x0004)
0x07AD (0x000F5A) 0x2908- f:00024 d: 264 | OR[264] = A
0x07AE (0x000F5C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x07AF (0x000F5E) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x07B0 (0x000F60) 0x2124- f:00020 d: 292 | A = OR[292]
0x07B1 (0x000F62) 0x3724- f:00033 d: 292 | A = A - (OR[292])
0x07B2 (0x000F64) 0x8402- f:00102 d: 2 | P = P + 2 (0x07B4), A = 0
0x07B3 (0x000F66) 0x7004- f:00070 d: 4 | P = P + 4 (0x07B7)
0x07B4 (0x000F68) 0x2123- f:00020 d: 291 | A = OR[291]
0x07B5 (0x000F6A) 0x3723- f:00033 d: 291 | A = A - (OR[291])
0x07B6 (0x000F6C) 0x840B- f:00102 d: 11 | P = P + 11 (0x07C1), A = 0
0x07B7 (0x000F6E) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x07B8 (0x000F70) 0x2945- f:00024 d: 325 | OR[325] = A
0x07B9 (0x000F72) 0x100A- f:00010 d: 10 | A = 10 (0x000A)
0x07BA (0x000F74) 0x2946- f:00024 d: 326 | OR[326] = A
0x07BB (0x000F76) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x07BC (0x000F78) 0x5800- f:00054 d: 0 | B = A
0x07BD (0x000F7A) 0x1800-0x5B18 f:00014 d: 0 | A = 23320 (0x5B18)
0x07BF (0x000F7E) 0x7C09- f:00076 d: 9 | R = OR[9]
0x07C0 (0x000F80) 0x7210- f:00071 d: 16 | P = P - 16 (0x07B0)
0x07C1 (0x000F82) 0x1019- f:00010 d: 25 | A = 25 (0x0019)
0x07C2 (0x000F84) 0x2945- f:00024 d: 325 | OR[325] = A
0x07C3 (0x000F86) 0x2100- f:00020 d: 256 | A = OR[256]
0x07C4 (0x000F88) 0x2946- f:00024 d: 326 | OR[326] = A
0x07C5 (0x000F8A) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x07C6 (0x000F8C) 0x5800- f:00054 d: 0 | B = A
0x07C7 (0x000F8E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x07C8 (0x000F90) 0x7C09- f:00076 d: 9 | R = OR[9]
0x07C9 (0x000F92) 0x2101- f:00020 d: 257 | A = OR[257]
0x07CA (0x000F94) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x07CB (0x000F96) 0x2908- f:00024 d: 264 | OR[264] = A
0x07CC (0x000F98) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x07CD (0x000F9A) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x07CE (0x000F9C) 0x2132- f:00020 d: 306 | A = OR[306]
0x07CF (0x000F9E) 0x8602- f:00103 d: 2 | P = P + 2 (0x07D1), A # 0
0x07D0 (0x000FA0) 0x7009- f:00070 d: 9 | P = P + 9 (0x07D9)
0x07D1 (0x000FA2) 0x101B- f:00010 d: 27 | A = 27 (0x001B)
0x07D2 (0x000FA4) 0x2945- f:00024 d: 325 | OR[325] = A
0x07D3 (0x000FA6) 0x2132- f:00020 d: 306 | A = OR[306]
0x07D4 (0x000FA8) 0x2946- f:00024 d: 326 | OR[326] = A
0x07D5 (0x000FAA) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x07D6 (0x000FAC) 0x5800- f:00054 d: 0 | B = A
0x07D7 (0x000FAE) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x07D8 (0x000FB0) 0x7C09- f:00076 d: 9 | R = OR[9]
0x07D9 (0x000FB2) 0x1003- f:00010 d: 3 | A = 3 (0x0003)
0x07DA (0x000FB4) 0x2945- f:00024 d: 325 | OR[325] = A
0x07DB (0x000FB6) 0x1145- f:00010 d: 325 | A = 325 (0x0145)
0x07DC (0x000FB8) 0x5800- f:00054 d: 0 | B = A
0x07DD (0x000FBA) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x07DE (0x000FBC) 0x7C09- f:00076 d: 9 | R = OR[9]
0x07DF (0x000FBE) 0x0000- f:00000 d: 0 | PASS
0x07E0 (0x000FC0) 0x0000- f:00000 d: 0 | PASS
0x07E1 (0x000FC2) 0x0000- f:00000 d: 0 | PASS
0x07E2 (0x000FC4) 0x0000- f:00000 d: 0 | PASS
0x07E3 (0x000FC6) 0x0000- f:00000 d: 0 | PASS
| 79.958442 | 79 | 0.46491 |
3e86d32ebd17ed4b28f99c2aaa3fca57e7f9d0fb | 343 | asm | Assembly | programs/oeis/107/A107585.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/107/A107585.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/107/A107585.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A107585: a(n) = 5^n - 5*n.
; 1,0,15,110,605,3100,15595,78090,390585,1953080,9765575,48828070,244140565,1220703060,6103515555,30517578050,152587890545,762939453040,3814697265535,19073486328030,95367431640525,476837158203020,2384185791015515,11920928955078010,59604644775390505
mov $1,5
pow $1,$0
mov $2,$0
lpb $2,1
sub $1,5
sub $2,1
lpe
| 31.181818 | 248 | 0.781341 |
30da9f6eb38f7f3c5df828d218430cbb942bab58 | 62,490 | asm | Assembly | source/features/basic (copy).asm | mynameispyo/InpyoOS | b6ddb6d9715b027ab65891bd4c4f46dbe5c9890d | [
"BSD-3-Clause",
"MIT"
] | null | null | null | source/features/basic (copy).asm | mynameispyo/InpyoOS | b6ddb6d9715b027ab65891bd4c4f46dbe5c9890d | [
"BSD-3-Clause",
"MIT"
] | null | null | null | source/features/basic (copy).asm | mynameispyo/InpyoOS | b6ddb6d9715b027ab65891bd4c4f46dbe5c9890d | [
"BSD-3-Clause",
"MIT"
] | null | null | null | ; ==================================================================
; BASIC CODE INTERPRETER (4.5)
; ==================================================================
; ------------------------------------------------------------------
; Token types
%DEFINE VARIABLE 1
%DEFINE STRING_VAR 2
%DEFINE NUMBER 3
%DEFINE STRING 4
%DEFINE QUOTE 5
%DEFINE CHAR 6
%DEFINE UNKNOWN 7
%DEFINE LABEL 8
; ------------------------------------------------------------------
; The BASIC interpreter execution starts here -- a parameter string
; is passed in SI and copied into the first string, unless SI = 0
os_run_basic:
mov byte [0082h], 1
mov word [orig_stack], sp ; Save stack pointer -- we might jump to the
; error printing code and quit in the middle
; some nested loops, and we want to preserve
; the stack
mov word [load_point], ax ; AX was passed as starting location of code
mov word [prog], ax ; prog = pointer to current execution point in code
add bx, ax ; We were passed the .BAS byte size in BX
dec bx
dec bx
mov word [prog_end], bx ; Make note of program end point
call clear_ram ; Clear variables etc. from previous run
; of a BASIC program
cmp si, 0 ; Passed a parameter string?
je mainloop
mov di, string_vars ; If so, copy it into $1
call os_string_copy
mainloop:
call get_token ; Get a token from the start of the line
cmp ax, STRING ; Is the type a string of characters?
je .keyword ; If so, let's see if it's a keyword to process
cmp ax, VARIABLE ; If it's a variable at the start of the line,
je near assign ; this is an assign (eg "X = Y + 5")
cmp ax, STRING_VAR ; Same for a string variable (eg $1)
je near assign
cmp ax, LABEL ; Don't need to do anything here - skip
je mainloop
mov si, err_syntax ; Otherwise show an error and quit
jmp error
.keyword:
mov si, token ; Start trying to match commands
mov di, alert_cmd
call os_string_compare
jc near do_alert
mov di, askfile_cmd
call os_string_compare
jc near do_askfile
mov di, break_cmd
call os_string_compare
jc near do_break
mov di, case_cmd
call os_string_compare
jc near do_case
mov di, call_cmd
call os_string_compare
jc near do_call
mov di, cls_cmd
call os_string_compare
jc near do_cls
mov di, cursor_cmd
call os_string_compare
jc near do_cursor
mov di, curschar_cmd
call os_string_compare
jc near do_curschar
mov di, curscol_cmd
call os_string_compare
jc near do_curscol
mov di, curspos_cmd
call os_string_compare
jc near do_curspos
mov di, delete_cmd
call os_string_compare
jc near do_delete
mov di, do_cmd
call os_string_compare
jc near do_do
mov di, end_cmd
call os_string_compare
jc near do_end
mov di, else_cmd
call os_string_compare
jc near do_else
mov di, files_cmd
call os_string_compare
jc near do_files
mov di, for_cmd
call os_string_compare
jc near do_for
mov di, getkey_cmd
call os_string_compare
jc near do_getkey
mov di, gosub_cmd
call os_string_compare
jc near do_gosub
mov di, goto_cmd
call os_string_compare
jc near do_goto
mov di, if_cmd
call os_string_compare
jc near do_if
mov di, include_cmd
call os_string_compare
jc near do_include
mov di, ink_cmd
call os_string_compare
jc near do_ink
mov di, input_cmd
call os_string_compare
jc near do_input
mov di, len_cmd
call os_string_compare
jc near do_len
mov di, listbox_cmd
call os_string_compare
jc near do_listbox
mov di, load_cmd
call os_string_compare
jc near do_load
mov di, loop_cmd
call os_string_compare
jc near do_loop
mov di, move_cmd
call os_string_compare
jc near do_move
mov di, next_cmd
call os_string_compare
jc near do_next
mov di, number_cmd
call os_string_compare
jc near do_number
mov di, page_cmd
call os_string_compare
jc near do_page
mov di, pause_cmd
call os_string_compare
jc near do_pause
mov di, peek_cmd
call os_string_compare
jc near do_peek
mov di, peekint_cmd
call os_string_compare
jc near do_peekint
mov di, poke_cmd
call os_string_compare
jc near do_poke
mov di, pokeint_cmd
call os_string_compare
jc near do_pokeint
mov di, port_cmd
call os_string_compare
jc near do_port
mov di, print_cmd
call os_string_compare
jc near do_print
mov di, rand_cmd
call os_string_compare
jc near do_rand
mov di, read_cmd
call os_string_compare
jc near do_read
mov di, rem_cmd
call os_string_compare
jc near do_rem
mov di, rename_cmd
call os_string_compare
jc near do_rename
mov di, return_cmd
call os_string_compare
jc near do_return
mov di, save_cmd
call os_string_compare
jc near do_save
mov di, serial_cmd
call os_string_compare
jc near do_serial
mov di, size_cmd
call os_string_compare
jc near do_size
mov di, sound_cmd
call os_string_compare
jc near do_sound
mov di, string_cmd
call os_string_compare
jc near do_string
mov di, waitkey_cmd
call os_string_compare
jc near do_waitkey
mov si, err_cmd_unknown ; Command not found?
jmp error
; ------------------------------------------------------------------
; CLEAR RAM
clear_ram:
pusha
mov al, 0
mov di, variables
mov cx, 52
rep stosb
mov di, for_variables
mov cx, 52
rep stosb
mov di, for_code_points
mov cx, 52
rep stosb
mov di, do_loop_store
mov cx, 10
rep stosb
mov byte [gosub_depth], 0
mov byte [loop_in], 0
mov di, gosub_points
mov cx, 20
rep stosb
mov di, string_vars
mov cx, 1024
rep stosb
mov byte [ink_colour], 7 ; White ink
popa
ret
; ------------------------------------------------------------------
; ASSIGNMENT
assign:
cmp ax, VARIABLE ; Are we starting with a number var?
je .do_num_var
mov di, string_vars ; Otherwise it's a string var
mov ax, 128
mul bx ; (BX = string number, passed back from get_token)
add di, ax
push di
call get_token
mov byte al, [token]
cmp al, '='
jne near .error
call get_token ; See if second is quote
cmp ax, QUOTE
je .second_is_quote
cmp ax, STRING_VAR
jne near .error
mov si, string_vars ; Otherwise it's a string var
mov ax, 128
mul bx ; (BX = string number, passed back from get_token)
add si, ax
pop di
call os_string_copy
jmp .string_check_for_more
.second_is_quote:
mov si, token
pop di
call os_string_copy
.string_check_for_more:
push di
mov word ax, [prog] ; Save code location in case there's no delimiter
mov word [.tmp_loc], ax
call get_token ; Any more to deal with in this assignment?
mov byte al, [token]
cmp al, '+'
je .string_theres_more
mov word ax, [.tmp_loc] ; Not a delimiter, so step back before the token
mov word [prog], ax ; that we just grabbed
pop di
jmp mainloop ; And go back to the code interpreter!
.string_theres_more:
call get_token
cmp ax, STRING_VAR
je .another_string_var
cmp ax, QUOTE
je .another_quote
cmp ax, VARIABLE
je .add_number_var
jmp .error
.another_string_var:
pop di
mov si, string_vars
mov ax, 128
mul bx ; (BX = string number, passed back from get_token)
add si, ax
mov ax, di
mov cx, di
mov bx, si
call os_string_join
jmp .string_check_for_more
.another_quote:
pop di
mov ax, di
mov cx, di
mov bx, token
call os_string_join
jmp .string_check_for_more
.add_number_var:
mov ax, 0
mov byte al, [token]
call get_var
call os_int_to_string
mov bx, ax
pop di
mov ax, di
mov cx, di
call os_string_join
jmp .string_check_for_more
.do_num_var:
mov ax, 0
mov byte al, [token]
mov byte [.tmp], al
call get_token
mov byte al, [token]
cmp al, '='
jne near .error
call get_token
cmp ax, NUMBER
je .second_is_num
cmp ax, VARIABLE
je .second_is_variable
cmp ax, STRING
je near .second_is_string
cmp ax, UNKNOWN
jne near .error
mov byte al, [token] ; Address of string var?
cmp al, '&'
jne near .error
call get_token ; Let's see if there's a string var
cmp ax, STRING_VAR
jne near .error
mov di, string_vars
mov ax, 128
mul bx
add di, ax
mov bx, di
mov byte al, [.tmp]
call set_var
jmp mainloop
.second_is_variable:
mov ax, 0
mov byte al, [token]
call get_var
mov bx, ax
mov byte al, [.tmp]
call set_var
jmp .check_for_more
.second_is_num:
mov si, token
call os_string_to_int
mov bx, ax ; Number to insert in variable table
mov ax, 0
mov byte al, [.tmp]
call set_var
; The assignment could be simply "X = 5" etc. Or it could be
; "X = Y + 5" -- ie more complicated. So here we check to see if
; there's a delimiter...
.check_for_more:
mov word ax, [prog] ; Save code location in case there's no delimiter
mov word [.tmp_loc], ax
call get_token ; Any more to deal with in this assignment?
mov byte al, [token]
cmp al, '+'
je .theres_more
cmp al, '-'
je .theres_more
cmp al, '*'
je .theres_more
cmp al, '/'
je .theres_more
cmp al, '%'
je .theres_more
mov word ax, [.tmp_loc] ; Not a delimiter, so step back before the token
mov word [prog], ax ; that we just grabbed
jmp mainloop ; And go back to the code interpreter!
.theres_more:
mov byte [.delim], al
call get_token
cmp ax, VARIABLE
je .handle_variable
mov si, token
call os_string_to_int
mov bx, ax
mov ax, 0
mov byte al, [.tmp]
call get_var ; This also points SI at right place in variable table
cmp byte [.delim], '+'
jne .not_plus
add ax, bx
jmp .finish
.not_plus:
cmp byte [.delim], '-'
jne .not_minus
sub ax, bx
jmp .finish
.not_minus:
cmp byte [.delim], '*'
jne .not_times
mul bx
jmp .finish
.not_times:
cmp byte [.delim], '/'
jne .not_divide
cmp bx, 0
je .divide_zero
mov dx, 0
div bx
jmp .finish
.not_divide:
mov dx, 0
div bx
mov ax, dx ; Get remainder
.finish:
mov bx, ax
mov byte al, [.tmp]
call set_var
jmp .check_for_more
.divide_zero:
mov si, err_divide_by_zero
jmp error
.handle_variable:
mov ax, 0
mov byte al, [token]
call get_var
mov bx, ax
mov ax, 0
mov byte al, [.tmp]
call get_var
cmp byte [.delim], '+'
jne .vnot_plus
add ax, bx
jmp .vfinish
.vnot_plus:
cmp byte [.delim], '-'
jne .vnot_minus
sub ax, bx
jmp .vfinish
.vnot_minus:
cmp byte [.delim], '*'
jne .vnot_times
mul bx
jmp .vfinish
.vnot_times:
cmp byte [.delim], '/'
jne .vnot_divide
mov dx, 0
div bx
jmp .finish
.vnot_divide:
mov dx, 0
div bx
mov ax, dx ; Get remainder
.vfinish:
mov bx, ax
mov byte al, [.tmp]
call set_var
jmp .check_for_more
.second_is_string: ; These are "X = word" functions
mov di, token
mov si, ink_keyword
call os_string_compare
je .is_ink
mov si, progstart_keyword
call os_string_compare
je .is_progstart
mov si, ramstart_keyword
call os_string_compare
je .is_ramstart
mov si, timer_keyword
call os_string_compare
je .is_timer
mov si, variables_keyword
call os_string_compare
je .is_variables
mov si, version_keyword
call os_string_compare
je .is_version
jmp .error
.is_ink:
mov ax, 0
mov byte al, [.tmp]
mov bx, 0
mov byte bl, [ink_colour]
call set_var
jmp mainloop
.is_progstart:
mov ax, 0
mov byte al, [.tmp]
mov word bx, [load_point]
call set_var
jmp mainloop
.is_ramstart:
mov ax, 0
mov byte al, [.tmp]
mov word bx, [prog_end]
inc bx
inc bx
inc bx
call set_var
jmp mainloop
.is_timer:
mov ah, 0
call os_int_1Ah
mov bx, dx
mov ax, 0
mov byte al, [.tmp]
call set_var
jmp mainloop
.is_variables:
mov bx, vars_loc
mov ax, 0
mov byte al, [.tmp]
call set_var
jmp mainloop
.is_version:
mov al, 255
mov bh, 0
mov bl, al
mov al, [.tmp]
call set_var
jmp mainloop
.error:
mov si, err_syntax
jmp error
.tmp db 0
.tmp_loc dw 0
.delim db 0
; ==================================================================
; SPECIFIC COMMAND CODE STARTS HERE
; ------------------------------------------------------------------
; ALERT
do_alert:
mov bh, [work_page] ; Store the cursor position
mov ah, 03h
int 10h
call get_token
cmp ax, QUOTE
je .is_quote
cmp ax, STRING_VAR
je .is_string
mov si, err_syntax
jmp error
.is_string:
mov si, string_vars
mov ax, 128
mul bx
add ax, si
jmp .display_message
.is_quote:
mov ax, token ; First string for alert box
.display_message:
mov bx, 0 ; Others are blank
mov cx, 0
mov dx, 0 ; One-choice box
call os_dialog_box
mov bh, [work_page] ; Move the cursor back
mov ah, 02h
int 10h
jmp mainloop
;-------------------------------------------------------------------
; ASKFILE
do_askfile:
mov bh, [work_page] ; Store the cursor position
mov ah, 03h
int 10h
call get_token
cmp ax, STRING_VAR
jne .error
mov si, string_vars ; Get the string location
mov ax, 128
mul bx
add ax, si
mov word [.tmp], ax
call os_file_selector ; Present the selector
mov word di, [.tmp] ; Copy the string
mov si, ax
call os_string_copy
mov bh, [work_page] ; Move the cursor back
mov ah, 02h
int 10h
jmp mainloop
.error:
mov si, err_syntax
jmp error
.data:
.tmp dw 0
; ------------------------------------------------------------------
; BREAK
do_break:
mov si, err_break
jmp error
; ------------------------------------------------------------------
; CALL
do_call:
call get_token
cmp ax, NUMBER
je .is_number
mov ax, 0
mov byte al, [token]
call get_var
jmp .execute_call
.is_number:
mov si, token
call os_string_to_int
.execute_call:
mov bx, 0
mov cx, 0
mov dx, 0
mov di, 0
mov si, 0
call ax
jmp mainloop
; ------------------------------------------------------------------
; CASE
do_case:
call get_token
cmp ax, STRING
jne .error
mov si, token
mov di, upper_keyword
call os_string_compare
jc .uppercase
mov di, lower_keyword
call os_string_compare
jc .lowercase
jmp .error
.uppercase:
call get_token
cmp ax, STRING_VAR
jne .error
mov si, string_vars
mov ax, 128
mul bx
add ax, si
call os_string_uppercase
jmp mainloop
.lowercase:
call get_token
cmp ax, STRING_VAR
jne .error
mov si, string_vars
mov ax, 128
mul bx
add ax, si
call os_string_lowercase
jmp mainloop
.error:
mov si, err_syntax
jmp error
; ------------------------------------------------------------------
; CLS
do_cls:
mov ah, 5
mov byte al, [work_page]
int 10h
call os_clear_screen
mov ah, 5
mov byte al, [disp_page]
int 10h
jmp mainloop
; ------------------------------------------------------------------
; CURSOR
do_cursor:
call get_token
mov si, token
mov di, .on_str
call os_string_compare
jc .turn_on
mov si, token
mov di, .off_str
call os_string_compare
jc .turn_off
mov si, err_syntax
jmp error
.turn_on:
call os_show_cursor
jmp mainloop
.turn_off:
call os_hide_cursor
jmp mainloop
.on_str db "ON", 0
.off_str db "OFF", 0
; ------------------------------------------------------------------
; CURSCHAR
do_curschar:
call get_token
cmp ax, VARIABLE
je .is_variable
mov si, err_syntax
jmp error
.is_variable:
mov ax, 0
mov byte al, [token]
push ax ; Store variable we're going to use
mov ah, 08h
mov bx, 0
mov byte bh, [work_page]
int 10h ; Get char at current cursor location
mov bx, 0 ; We only want the lower byte (the char, not attribute)
mov bl, al
pop ax ; Get the variable back
call set_var ; And store the value
jmp mainloop
; ------------------------------------------------------------------
; CURSCOL
do_curscol:
call get_token
cmp ax, VARIABLE
jne .error
mov ah, 0
mov byte al, [token]
push ax
mov ah, 8
mov bx, 0
mov byte bh, [work_page]
int 10h
mov bh, 0
mov bl, ah ; Get colour for higher byte; ignore lower byte (char)
pop ax
call set_var
jmp mainloop
.error:
mov si, err_syntax
jmp error
; ------------------------------------------------------------------
; CURSPOS
do_curspos:
mov byte bh, [work_page]
mov ah, 3
int 10h
call get_token
cmp ax, VARIABLE
jne .error
mov ah, 0 ; Get the column in the first variable
mov byte al, [token]
mov bx, 0
mov bl, dl
call set_var
call get_token
cmp ax, VARIABLE
jne .error
mov ah, 0 ; Get the row to the second
mov byte al, [token]
mov bx, 0
mov bl, dh
call set_var
jmp mainloop
.error:
mov si, err_syntax
jmp error
; ------------------------------------------------------------------
; DELETE
do_delete:
call get_token
cmp ax, QUOTE
je .is_quote
cmp ax, STRING_VAR
jne near .error
mov si, string_vars
mov ax, 128
mul bx
add si, ax
jmp .get_filename
.is_quote:
mov si, token
.get_filename:
mov ax, si
call os_file_exists
jc .no_file
call os_remove_file
jc .del_fail
jmp .returngood
.no_file:
mov ax, 0
mov byte al, 'R'
mov bx, 2
call set_var
jmp mainloop
.returngood:
mov ax, 0
mov byte al, 'R'
mov bx, 0
call set_var
jmp mainloop
.del_fail:
mov ax, 0
mov byte al, 'R'
mov bx, 1
call set_var
jmp mainloop
.error:
mov si, err_syntax
jmp error
; ------------------------------------------------------------------
; DO
do_do:
cmp byte [loop_in], 20
je .loop_max
mov word di, do_loop_store
mov byte al, [loop_in]
mov ah, 0
add di, ax
mov word ax, [prog]
sub ax, 3
stosw
inc byte [loop_in]
inc byte [loop_in]
jmp mainloop
.loop_max:
mov si, err_doloop_maximum
jmp error
;-------------------------------------------------------------------
; ELSE
do_else:
cmp byte [last_if_true], 1
je .last_true
inc word [prog]
jmp mainloop
.last_true:
mov word si, [prog]
.next_line:
lodsb
cmp al, 10
jne .next_line
dec si
mov word [prog], si
jmp mainloop
; ------------------------------------------------------------------
; END
do_end:
mov ah, 5 ; Restore active page
mov al, 0
int 10h
mov byte [work_page], 0
mov byte [disp_page], 0
mov word sp, [orig_stack]
ret
; ------------------------------------------------------------------
; FILES
do_files:
mov ax, .filelist ; get a copy of the filelist
call os_get_file_list
mov si, ax
call os_get_cursor_pos ; move cursor to start of line
mov dl, 0
call os_move_cursor
mov ah, 9 ; print character function
mov bh, [work_page] ; define parameters (page, colour, times)
mov bl, [ink_colour]
mov cx, 1
.file_list_loop:
lodsb ; get a byte from the list
cmp al, ',' ; a comma means the next file, so create a new line for it
je .nextfile
cmp al, 0 ; the list is null terminated
je .end_of_list
int 10h ; okay, it's not a comma or a null so print it
call os_get_cursor_pos ; find the location of the cursor
inc dl ; move the cursor forward
call os_move_cursor
jmp .file_list_loop ; keep going until the list is finished
.nextfile:
call os_get_cursor_pos ; if the column is over 60 we need a new line
cmp dl, 60
jge .newline
.next_column: ; print spaces until the next column
mov al, ' '
int 10h
inc dl
call os_move_cursor
cmp dl, 15
je .file_list_loop
cmp dl, 30
je .file_list_loop
cmp dl, 45
je .file_list_loop
cmp dl, 60
je .file_list_loop
jmp .next_column
.newline:
call os_print_newline ; create a new line
jmp .file_list_loop
.end_of_list:
call os_print_newline
jmp mainloop ; preform next command
.data:
.filelist equ 64000
; ------------------------------------------------------------------
; FOR
do_for:
call get_token ; Get the variable we're using in this loop
cmp ax, VARIABLE
jne near .error
mov ax, 0
mov byte al, [token]
mov byte [.tmp_var], al ; Store it in a temporary location for now
call get_token
mov ax, 0 ; Check it's followed up with '='
mov byte al, [token]
cmp al, '='
jne .error
call get_token ; Next we want a number
cmp ax, VARIABLE
je .first_is_var
cmp ax, NUMBER
jne .error
mov si, token ; Convert it
call os_string_to_int
jmp .continue
.first_is_var:
mov ax, 0 ; It's a variable, so get it's value
mov al, [token]
call get_var
; At this stage, we've read something like "FOR X = 1"
; so let's store that 1 in the variable table
.continue:
mov bx, ax
mov ax, 0
mov byte al, [.tmp_var]
call set_var
call get_token ; Next we're looking for "TO"
cmp ax, STRING
jne .error
mov ax, token
call os_string_uppercase
mov si, token
mov di, .to_string
call os_string_compare
jnc .error
; So now we're at "FOR X = 1 TO"
call get_token
cmp ax, VARIABLE
je .second_is_var
cmp ax, NUMBER
jne .error
.second_is_number:
mov si, token ; Get target number
call os_string_to_int
jmp .continue2
.second_is_var:
mov ax, 0 ; It's a variable, so get it's value
mov al, [token]
call get_var
.continue2:
mov bx, ax
mov ax, 0
mov byte al, [.tmp_var]
sub al, 65 ; Store target number in table
mov di, for_variables
add di, ax
add di, ax
mov ax, bx
stosw
; So we've got the variable, assigned it the starting number, and put into
; our table the limit it should reach. But we also need to store the point in
; code after the FOR line we should return to if NEXT X doesn't complete the loop...
mov ax, 0
mov byte al, [.tmp_var]
sub al, 65 ; Store code position to return to in table
mov di, for_code_points
add di, ax
add di, ax
mov word ax, [prog]
stosw
jmp mainloop
.error:
mov si, err_syntax
jmp error
.tmp_var db 0
.to_string db 'TO', 0
; ------------------------------------------------------------------
; GETKEY
do_getkey:
call get_token
cmp ax, VARIABLE
je .is_variable
mov si, err_syntax
jmp error
.is_variable:
mov ax, 0
mov byte al, [token]
push ax
call os_check_for_key
cmp ax, 48E0h
je .up_pressed
cmp ax, 50E0h
je .down_pressed
cmp ax, 4BE0h
je .left_pressed
cmp ax, 4DE0h
je .right_pressed
.store:
mov bx, 0
mov bl, al
pop ax
call set_var
jmp mainloop
.up_pressed:
mov ax, 1
jmp .store
.down_pressed:
mov ax, 2
jmp .store
.left_pressed:
mov ax, 3
jmp .store
.right_pressed:
mov ax, 4
jmp .store
; ------------------------------------------------------------------
; GOSUB
do_gosub:
call get_token ; Get the number (label)
cmp ax, STRING
je .is_ok
mov si, err_goto_notlabel
jmp error
.is_ok:
mov si, token ; Back up this label
mov di, .tmp_token
call os_string_copy
mov ax, .tmp_token
call os_string_length
mov di, .tmp_token ; Add ':' char to end for searching
add di, ax
mov al, ':'
stosb
mov al, 0
stosb
inc byte [gosub_depth]
mov ax, 0
mov byte al, [gosub_depth] ; Get current GOSUB nest level
cmp al, 9
jle .within_limit
mov si, err_nest_limit
jmp error
.within_limit:
mov di, gosub_points ; Move into our table of pointers
add di, ax ; Table is words (not bytes)
add di, ax
mov word ax, [prog]
stosw ; Store current location before jump
mov word ax, [load_point]
mov word [prog], ax ; Return to start of program to find label
.loop:
call get_token
cmp ax, LABEL
jne .line_loop
mov si, token
mov di, .tmp_token
call os_string_compare
jc mainloop
.line_loop: ; Go to end of line
mov word si, [prog]
mov byte al, [si]
inc word [prog]
cmp al, 10
jne .line_loop
mov word ax, [prog]
mov word bx, [prog_end]
cmp ax, bx
jg .past_end
jmp .loop
.past_end:
mov si, err_label_notfound
jmp error
.tmp_token times 30 db 0
; ------------------------------------------------------------------
; GOTO
do_goto:
call get_token ; Get the next token
cmp ax, STRING
je .is_ok
mov si, err_goto_notlabel
jmp error
.is_ok:
mov si, token ; Back up this label
mov di, .tmp_token
call os_string_copy
mov ax, .tmp_token
call os_string_length
mov di, .tmp_token ; Add ':' char to end for searching
add di, ax
mov al, ':'
stosb
mov al, 0
stosb
mov word ax, [load_point]
mov word [prog], ax ; Return to start of program to find label
.loop:
call get_token
cmp ax, LABEL
jne .line_loop
mov si, token
mov di, .tmp_token
call os_string_compare
jc mainloop
.line_loop: ; Go to end of line
mov word si, [prog]
mov byte al, [si]
inc word [prog]
cmp al, 10
jne .line_loop
mov word ax, [prog]
mov word bx, [prog_end]
cmp ax, bx
jg .past_end
jmp .loop
.past_end:
mov si, err_label_notfound
jmp error
.tmp_token times 30 db 0
; ------------------------------------------------------------------
; IF
do_if:
call get_token
cmp ax, VARIABLE ; If can only be followed by a variable
je .num_var
cmp ax, STRING_VAR
je near .string_var
mov si, err_syntax
jmp error
.num_var:
mov ax, 0
mov byte al, [token]
call get_var
mov dx, ax ; Store value of first part of comparison
call get_token ; Get the delimiter
mov byte al, [token]
cmp al, '='
je .equals
cmp al, '>'
je .greater
cmp al, '<'
je .less
mov si, err_syntax ; If not one of the above, error out
jmp error
.equals:
call get_token ; Is this 'X = Y' (equals another variable?)
cmp ax, CHAR
je .equals_char
mov byte al, [token]
call is_letter
jc .equals_var
mov si, token ; Otherwise it's, eg 'X = 1' (a number)
call os_string_to_int
cmp ax, dx ; On to the THEN bit if 'X = num' matches
je near .on_to_then
jmp .finish_line ; Otherwise skip the rest of the line
.equals_char:
mov ax, 0
mov byte al, [token]
cmp ax, dx
je near .on_to_then
jmp .finish_line
.equals_var:
mov ax, 0
mov byte al, [token]
call get_var
cmp ax, dx ; Do the variables match?
je near .on_to_then ; On to the THEN bit if so
jmp .finish_line ; Otherwise skip the rest of the line
.greater:
call get_token ; Greater than a variable or number?
mov byte al, [token]
call is_letter
jc .greater_var
mov si, token ; Must be a number here...
call os_string_to_int
cmp ax, dx
jl near .on_to_then
jmp .finish_line
.greater_var: ; Variable in this case
mov ax, 0
mov byte al, [token]
call get_var
cmp ax, dx ; Make the comparison!
jl .on_to_then
jmp .finish_line
.less:
call get_token
mov byte al, [token]
call is_letter
jc .less_var
mov si, token
call os_string_to_int
cmp ax, dx
jg .on_to_then
jmp .finish_line
.less_var:
mov ax, 0
mov byte al, [token]
call get_var
cmp ax, dx
jg .on_to_then
jmp .finish_line
.string_var:
mov byte [.tmp_string_var], bl
call get_token
mov byte al, [token]
cmp al, '='
jne .error
call get_token
cmp ax, STRING_VAR
je .second_is_string_var
cmp ax, QUOTE
jne .error
mov si, string_vars
mov ax, 128
mul bx
add si, ax
mov di, token
call os_string_compare
je .on_to_then
jmp .finish_line
.second_is_string_var:
mov si, string_vars
mov ax, 128
mul bx
add si, ax
mov di, string_vars
mov bx, 0
mov byte bl, [.tmp_string_var]
mov ax, 128
mul bx
add di, ax
call os_string_compare
jc .on_to_then
jmp .finish_line
.on_to_then:
call get_token
mov si, token ; Look for AND for more comparison
mov di, and_keyword
call os_string_compare
jc do_if
mov si, token ; Look for THEN to perform more operations
mov di, then_keyword
call os_string_compare
jc .then_present
mov si, err_syntax
jmp error
.then_present: ; Continue rest of line like any other command!
mov byte [last_if_true], 1
jmp mainloop
.finish_line: ; IF wasn't fulfilled, so skip rest of line
mov word si, [prog]
mov byte al, [si]
inc word [prog]
cmp al, 10
jne .finish_line
mov byte [last_if_true], 0
jmp mainloop
.error:
mov si, err_syntax
jmp error
.tmp_string_var db 0
; ------------------------------------------------------------------
; INCLUDE
do_include:
call get_token
cmp ax, QUOTE
je .is_ok
mov si, err_syntax
jmp error
.is_ok:
mov ax, token
mov word cx, [prog_end]
inc cx ; Add a bit of space after original code
inc cx
inc cx
push cx
call os_load_file
jc .load_fail
pop cx
add cx, bx
mov word [prog_end], cx
jmp mainloop
.load_fail:
pop cx
mov si, err_file_notfound
jmp error
; ------------------------------------------------------------------
; INK
do_ink:
call get_token ; Get column
cmp ax, VARIABLE
je .first_is_var
mov si, token
call os_string_to_int
mov byte [ink_colour], al
jmp mainloop
.first_is_var:
mov ax, 0
mov byte al, [token]
call get_var
mov byte [ink_colour], al
jmp mainloop
; ------------------------------------------------------------------
; INPUT
do_input:
mov al, 0 ; Clear string from previous usage
mov di, .tmpstring
mov cx, 128
rep stosb
call get_token
cmp ax, VARIABLE ; We can only INPUT to variables!
je .number_var
cmp ax, STRING_VAR
je .string_var
mov si, err_syntax
jmp error
.number_var:
mov ax, .tmpstring ; Get input from the user
call os_input_string
mov ax, .tmpstring
call os_string_length
cmp ax, 0
jne .char_entered
mov byte [.tmpstring], '0' ; If enter hit, fill variable with zero
mov byte [.tmpstring + 1], 0
.char_entered:
mov si, .tmpstring ; Convert to integer format
call os_string_to_int
mov bx, ax
mov ax, 0
mov byte al, [token] ; Get the variable where we're storing it...
call set_var ; ...and store it!
call os_print_newline
jmp mainloop
.string_var:
push bx
mov ax, .tmpstring
call os_input_string
mov si, .tmpstring
mov di, string_vars
pop bx
mov ax, 128
mul bx
add di, ax
call os_string_copy
call os_print_newline
jmp mainloop
; .tmpstring times 128 db 0
.tmpstring equ 32768-1024-256-128
; -----------------------------------------------------------
; LEN
do_len:
call get_token
cmp ax, STRING_VAR
jne .error
mov si, string_vars
mov ax, 128
mul bx
add si, ax
mov ax, si
call os_string_length
mov word [.num1], ax
call get_token
cmp ax, VARIABLE
je .is_ok
mov si, err_syntax
jmp error
.is_ok:
mov ax, 0
mov byte al, [token]
mov bl, al
jmp .finish
.finish:
mov bx, [.num1]
mov byte al, [token]
call set_var
mov ax, 0
jmp mainloop
.error:
mov si, err_syntax
jmp error
.num1 dw 0
; ------------------------------------------------------------------
; LISTBOX
do_listbox:
mov bh, [work_page] ; Store the cursor position
mov ah, 03h
int 10h
call get_token
cmp ax, STRING_VAR
jne .error
mov si, string_vars
mov ax, 128
mul bx
add si, ax
mov word [.s1], si
call get_token
cmp ax, STRING_VAR
jne .error
mov si, string_vars
mov ax, 128
mul bx
add si, ax
mov word [.s2], si
call get_token
cmp ax, STRING_VAR
jne .error
mov si, string_vars
mov ax, 128
mul bx
add si, ax
mov word [.s3], si
call get_token
cmp ax, VARIABLE
jne .error
mov byte al, [token]
mov byte [.var], al
mov word ax, [.s1]
mov word bx, [.s2]
mov word cx, [.s3]
call os_list_dialog
jc .esc_pressed
pusha
mov bh, [work_page] ; Move the cursor back
mov ah, 02h
int 10h
popa
mov bx, ax
mov ax, 0
mov byte al, [.var]
call set_var
jmp mainloop
.esc_pressed:
mov ax, 0
mov byte al, [.var]
mov bx, 0
call set_var
jmp mainloop
.error:
mov si, err_syntax
jmp error
.s1 dw 0
.s2 dw 0
.s3 dw 0
.var db 0
; ------------------------------------------------------------------
; LOAD
do_load:
call get_token
cmp ax, QUOTE
je .is_quote
cmp ax, STRING_VAR
jne .error
mov si, string_vars
mov ax, 128
mul bx
add si, ax
jmp .get_position
.is_quote:
mov si, token
.get_position:
mov ax, si
call os_file_exists
jc .file_not_exists
mov dx, ax ; Store for now
call get_token
cmp ax, VARIABLE
je .second_is_var
cmp ax, NUMBER
jne .error
mov si, token
call os_string_to_int
.load_part:
mov cx, ax
mov ax, dx
call os_load_file
mov ax, 0
mov byte al, 'S'
call set_var
mov ax, 0
mov byte al, 'R'
mov bx, 0
call set_var
jmp mainloop
.second_is_var:
mov ax, 0
mov byte al, [token]
call get_var
jmp .load_part
.file_not_exists:
mov ax, 0
mov byte al, 'R'
mov bx, 1
call set_var
call get_token ; Skip past the loading point -- unnecessary now
jmp mainloop
.error:
mov si, err_syntax
jmp error
; ------------------------------------------------------------------
; LOOP
do_loop:
cmp byte [loop_in], 0
je .no_do
dec byte [loop_in]
dec byte [loop_in]
mov dx, 0
call get_token
mov di, token
mov si, .endless_word
call os_string_compare
jc .loop_back
mov si, .while_word
call os_string_compare
jc .while_set
mov si, .until_word
call os_string_compare
jnc .error
.get_first_var:
call get_token
cmp ax, VARIABLE
jne .error
mov al, [token]
call get_var
mov cx, ax
.check_equals:
call get_token
cmp ax, UNKNOWN
jne .error
mov ax, [token]
cmp al, '='
je .sign_ok
cmp al, '>'
je .sign_ok
cmp al, '<'
je .sign_ok
jmp .error
.sign_ok:
mov byte [.sign], al
.get_second_var:
call get_token
cmp ax, NUMBER
je .second_is_num
cmp ax, VARIABLE
je .second_is_var
cmp ax, CHAR
jne .error
.second_is_char:
mov ah, 0
mov al, [token]
jmp .check_true
.second_is_var:
mov al, [token]
call get_var
jmp .check_true
.second_is_num:
mov si, token
call os_string_to_int
.check_true:
mov byte bl, [.sign]
cmp bl, '='
je .sign_equals
cmp bl, '>'
je .sign_greater
jmp .sign_lesser
.sign_equals:
cmp ax, cx
jne .false
jmp .true
.sign_greater:
cmp ax, cx
jge .false
jmp .true
.sign_lesser:
cmp ax, cx
jle .false
jmp .true
.true:
cmp dx, 1
je .loop_back
jmp mainloop
.false:
cmp dx, 1
je mainloop
.loop_back:
mov word si, do_loop_store
mov byte al, [loop_in]
mov ah, 0
add si, ax
lodsw
mov word [prog], ax
jmp mainloop
.while_set:
mov dx, 1
jmp .get_first_var
.no_do:
mov si, err_loop
jmp error
.error:
mov si, err_syntax
jmp error
.data:
.while_word db "WHILE", 0
.until_word db "UNTIL", 0
.endless_word db "ENDLESS", 0
.sign db 0
; ------------------------------------------------------------------
; MOVE
do_move:
call get_token
cmp ax, VARIABLE
je .first_is_var
mov si, token
call os_string_to_int
mov dl, al
jmp .onto_second
.first_is_var:
mov ax, 0
mov byte al, [token]
call get_var
mov dl, al
.onto_second:
call get_token
cmp ax, VARIABLE
je .second_is_var
mov si, token
call os_string_to_int
mov dh, al
jmp .finish
.second_is_var:
mov ax, 0
mov byte al, [token]
call get_var
mov dh, al
.finish:
mov byte bh, [work_page]
mov ah, 2
int 10h
jmp mainloop
; ------------------------------------------------------------------
; NEXT
do_next:
call get_token
cmp ax, VARIABLE ; NEXT must be followed by a variable
jne .error
mov ax, 0
mov byte al, [token]
call get_var
inc ax ; NEXT increments the variable, of course!
mov bx, ax
mov ax, 0
mov byte al, [token]
sub al, 65
mov si, for_variables
add si, ax
add si, ax
lodsw ; Get the target number from the table
inc ax ; (Make the loop inclusive of target number)
cmp ax, bx ; Do the variable and target match?
je .loop_finished
mov ax, 0 ; If not, store the updated variable
mov byte al, [token]
call set_var
mov ax, 0 ; Find the code point and go back
mov byte al, [token]
sub al, 65
mov si, for_code_points
add si, ax
add si, ax
lodsw
mov word [prog], ax
jmp mainloop
.loop_finished:
jmp mainloop
.error:
mov si, err_syntax
jmp error
;-------------------------------------------------------------------
; NUMBER
do_number:
call get_token ; Check if it's string to number, or number to string
cmp ax, STRING_VAR
je .is_string
cmp ax, VARIABLE
je .is_variable
jmp .error
.is_string:
mov si, string_vars
mov ax, 128
mul bx
add si, ax
mov [.tmp], si
call get_token
mov si, [.tmp]
cmp ax, VARIABLE
jne .error
call os_string_to_int
mov bx, ax
mov ax, 0
mov byte al, [token]
call set_var
jmp mainloop
.is_variable:
mov ax, 0 ; Get the value of the number
mov byte al, [token]
call get_var
call os_int_to_string ; Convert to a string
mov [.tmp], ax
call get_token ; Get the second parameter
mov si, [.tmp]
cmp ax, STRING_VAR ; Make sure it's a string variable
jne .error
mov di, string_vars ; Locate string variable
mov ax, 128
mul bx
add di, ax
call os_string_copy ; Save converted string
jmp mainloop
.error:
mov si, err_syntax
jmp error
.tmp dw 0
;-------------------------------------------------------------------
; PAGE
do_page:
call get_token
cmp ax, NUMBER
jne .error
mov si, token
call os_string_to_int
mov byte [work_page], al ; Set work page variable
call get_token
cmp ax, NUMBER
jne .error
mov si, token
call os_string_to_int
mov byte [disp_page], al ; Set display page variable
; Change display page -- AL should already be present from the os_string_to_int
mov ah, 5
int 10h
jmp mainloop
.error:
mov si, err_syntax
jmp error
; ------------------------------------------------------------------
; PAUSE
do_pause:
call get_token
cmp ax, VARIABLE
je .is_var
mov si, token
call os_string_to_int
jmp .finish
.is_var:
mov ax, 0
mov byte al, [token]
call get_var
.finish:
call os_pause
jmp mainloop
; ------------------------------------------------------------------
; PEEK
do_peek:
call get_token
cmp ax, VARIABLE
jne .error
mov ax, 0
mov byte al, [token]
mov byte [.tmp_var], al
call get_token
cmp ax, VARIABLE
je .dereference
cmp ax, NUMBER
jne .error
mov si, token
call os_string_to_int
.store:
mov si, ax
mov bx, 0
mov byte bl, [si]
mov ax, 0
mov byte al, [.tmp_var]
call set_var
jmp mainloop
.dereference:
mov byte al, [token]
call get_var
jmp .store
.error:
mov si, err_syntax
jmp error
.tmp_var db 0
; ------------------------------------------------------------------
; PEEKINT
do_peekint:
call get_token
cmp ax, VARIABLE
jne .error
.get_second:
mov al, [token]
mov cx, ax
call get_token
cmp ax, VARIABLE
je .address_is_var
cmp ax, NUMBER
jne .error
.address_is_number:
mov si, token
call os_string_to_int
jmp .load_data
.address_is_var:
mov al, [token]
call get_var
.load_data:
mov si, ax
mov bx, [si]
mov ax, cx
call set_var
jmp mainloop
.error:
mov si, err_syntax
jmp error
; ------------------------------------------------------------------
; POKE
do_poke:
call get_token
cmp ax, VARIABLE
je .first_is_var
cmp ax, NUMBER
jne .error
mov si, token
call os_string_to_int
cmp ax, 255
jg .error
mov byte [.first_value], al
jmp .onto_second
.first_is_var:
mov ax, 0
mov byte al, [token]
call get_var
mov byte [.first_value], al
.onto_second:
call get_token
cmp ax, VARIABLE
je .second_is_var
cmp ax, NUMBER
jne .error
mov si, token
call os_string_to_int
.got_value:
mov di, ax
mov ax, 0
mov byte al, [.first_value]
mov byte [di], al
jmp mainloop
.second_is_var:
mov ax, 0
mov byte al, [token]
call get_var
jmp .got_value
.error:
mov si, err_syntax
jmp error
.first_value db 0
; ------------------------------------------------------------------
; POKEINT
do_pokeint:
call get_token
cmp ax, VARIABLE
je .data_is_var
cmp ax, NUMBER
jne .error
.data_is_num:
mov si, token
call os_string_to_int
jmp .get_second
.data_is_var:
mov al, [token]
call get_var
.get_second:
mov cx, ax
call get_token
cmp ax, VARIABLE
je .address_is_var
cmp ax, NUMBER
jne .error
.address_is_num:
mov si, token
call os_string_to_int
jmp .save_data
.address_is_var:
mov al, [token]
call get_var
.save_data:
mov si, ax
mov [si], cx
jmp mainloop
.error:
mov si, err_syntax
jmp error
; ------------------------------------------------------------------
; PORT
do_port:
call get_token
mov si, token
mov di, .out_cmd
call os_string_compare
jc .do_out_cmd
mov di, .in_cmd
call os_string_compare
jc .do_in_cmd
jmp .error
.do_out_cmd:
call get_token
cmp ax, NUMBER
jne .error
mov si, token
call os_string_to_int ; Now AX = port number
mov dx, ax
call get_token
cmp ax, NUMBER
je .out_is_num
cmp ax, VARIABLE
je .out_is_var
jmp .error
.out_is_num:
mov si, token
call os_string_to_int
out dx, al
jmp mainloop
.out_is_var:
mov ax, 0
mov byte al, [token]
call get_var
out dx, al
jmp mainloop
.do_in_cmd:
call get_token
cmp ax, NUMBER
jne .error
mov si, token
call os_string_to_int
mov dx, ax
call get_token
cmp ax, VARIABLE
jne .error
mov byte cl, [token]
in al, dx
mov bx, 0
mov bl, al
mov al, cl
call set_var
jmp mainloop
.error:
mov si, err_syntax
jmp error
.out_cmd db "OUT", 0
.in_cmd db "IN", 0
; ------------------------------------------------------------------
; PRINT
do_print:
call get_token ; Get part after PRINT
cmp ax, QUOTE ; What type is it?
je .print_quote
cmp ax, VARIABLE ; Numerical variable (eg X)
je .print_var
cmp ax, STRING_VAR ; String variable (eg $1)
je .print_string_var
cmp ax, STRING ; Special keyword (eg CHR or HEX)
je .print_keyword
mov si, err_print_type ; We only print quoted strings and vars!
jmp error
.print_var:
mov ax, 0
mov byte al, [token]
call get_var ; Get its value
call os_int_to_string ; Convert to string
mov si, ax
call os_print_string
jmp .newline_or_not
.print_quote: ; If it's quoted text, print it
mov si, token
.print_quote_loop:
lodsb
cmp al, 0
je .newline_or_not
mov ah, 09h
mov byte bl, [ink_colour]
mov byte bh, [work_page]
mov cx, 1
int 10h
mov ah, 3
int 10h
cmp dl, 79
jge .quote_newline
inc dl
.move_cur_quote:
mov byte bh, [work_page]
mov ah, 02h
int 10h
jmp .print_quote_loop
.quote_newline:
cmp dh, 24
je .move_cur_quote
mov dl, 0
inc dh
jmp .move_cur_quote
.print_string_var:
mov si, string_vars
mov ax, 128
mul bx
add si, ax
jmp .print_quote_loop
.print_keyword:
mov si, token
mov di, chr_keyword
call os_string_compare
jc .is_chr
mov di, hex_keyword
call os_string_compare
jc .is_hex
mov si, err_syntax
jmp error
.is_chr:
call get_token
cmp ax, VARIABLE
je .is_chr_variable
cmp ax, NUMBER
je .is_chr_number
.is_chr_variable:
mov ax, 0
mov byte al, [token]
call get_var
jmp .print_chr
.is_chr_number:
mov si, token
call os_string_to_int
.print_chr:
mov ah, 09h
mov byte bl, [ink_colour]
mov byte bh, [work_page]
mov cx, 1
int 10h
mov ah, 3 ; Move the cursor forward
int 10h
inc dl
cmp dl, 79
jg .end_line ; If it's over the end of the line
.move_cur:
mov ah, 2
int 10h
jmp .newline_or_not
.is_hex:
call get_token
cmp ax, VARIABLE
jne .error
mov ax, 0
mov byte al, [token]
call get_var
call os_print_2hex
jmp .newline_or_not
.end_line:
mov dl, 0
inc dh
cmp dh, 25
jl .move_cur
mov dh, 24
mov dl, 79
jmp .move_cur
.error:
mov si, err_syntax
jmp error
.newline_or_not:
; We want to see if the command ends with ';' -- which means that
; we shouldn't print a newline after it finishes. So we store the
; current program location to pop ahead and see if there's the ';'
; character -- otherwise we put the program location back and resume
; the main loop
mov word ax, [prog]
mov word [.tmp_loc], ax
call get_token
cmp ax, UNKNOWN
jne .ignore
mov ax, 0
mov al, [token]
cmp al, ';'
jne .ignore
jmp mainloop ; And go back to interpreting the code!
.ignore:
mov ah, 5
mov al, [work_page]
int 10h
mov bh, [work_page]
call os_print_newline
mov ah, 5
mov al, [disp_page]
mov word ax, [.tmp_loc]
mov word [prog], ax
jmp mainloop
.tmp_loc dw 0
; ------------------------------------------------------------------
; RAND
do_rand:
call get_token
cmp ax, VARIABLE
jne .error
mov byte al, [token]
mov byte [.tmp], al
call get_token
cmp ax, NUMBER
jne .error
mov si, token
call os_string_to_int
mov word [.num1], ax
call get_token
cmp ax, NUMBER
jne .error
mov si, token
call os_string_to_int
mov word [.num2], ax
mov word ax, [.num1]
mov word bx, [.num2]
call os_get_random
mov bx, cx
mov ax, 0
mov byte al, [.tmp]
call set_var
jmp mainloop
.tmp db 0
.num1 dw 0
.num2 dw 0
.error:
mov si, err_syntax
jmp error
; ------------------------------------------------------------------
; READ
do_read:
call get_token ; Get the next token
cmp ax, STRING ; Check for a label
je .is_ok
mov si, err_goto_notlabel
jmp error
.is_ok:
mov si, token ; Back up this label
mov di, .tmp_token
call os_string_copy
mov ax, .tmp_token
call os_string_length
mov di, .tmp_token ; Add ':' char to end for searching
add di, ax
mov al, ':'
stosb
mov al, 0
stosb
call get_token ; Now get the offset variable
cmp ax, VARIABLE
je .second_part_is_var
mov si, err_syntax
jmp error
.second_part_is_var:
mov ax, 0
mov byte al, [token]
call get_var
cmp ax, 0 ; Want to be searching for at least the first byte!
jg .var_bigger_than_zero
mov si, err_syntax
jmp error
.var_bigger_than_zero:
mov word [.to_skip], ax
call get_token ; And now the var to store result into
cmp ax, VARIABLE
je .third_part_is_var
mov si, err_syntax
jmp error
.third_part_is_var: ; Keep it for later
mov ax, 0
mov byte al, [token]
mov byte [.var_to_use], al
; OK, so now we have all the stuff we need. Let's search for the label
mov word ax, [prog] ; Store current location
mov word [.curr_location], ax
mov word ax, [load_point]
mov word [prog], ax ; Return to start of program to find label
.loop:
call get_token
cmp ax, LABEL
jne .line_loop
mov si, token
mov di, .tmp_token
call os_string_compare
jc .found_label
.line_loop: ; Go to end of line
mov word si, [prog]
mov byte al, [si]
inc word [prog]
cmp al, 10
jne .line_loop
mov word ax, [prog]
mov word bx, [prog_end]
cmp ax, bx
jg .past_end
jmp .loop
.past_end:
mov si, err_label_notfound
jmp error
.found_label:
mov word cx, [.to_skip] ; Skip requested number of data entries
.data_skip_loop:
push cx
call get_token
pop cx
loop .data_skip_loop
cmp ax, NUMBER
je .data_is_num
mov si, err_syntax
jmp error
.data_is_num:
mov si, token
call os_string_to_int
mov bx, ax
mov ax, 0
mov byte al, [.var_to_use]
call set_var
mov word ax, [.curr_location]
mov word [prog], ax
jmp mainloop
.curr_location dw 0
.to_skip dw 0
.var_to_use db 0
; .tmp_token times 30 db 0
.tmp_token equ 32768-1024-256-30
; ------------------------------------------------------------------
; REM
do_rem:
mov word si, [prog]
mov byte al, [si]
inc word [prog]
cmp al, 10 ; Find end of line after REM
jne do_rem
jmp mainloop
; ------------------------------------------------------------------
; RENAME
do_rename:
call get_token
cmp ax, STRING_VAR ; Is it a string or a quote?
je .first_is_string
cmp ax, QUOTE
je .first_is_quote
jmp .error
.first_is_string:
mov si, string_vars ; Locate string
mov ax, 128
mul bx
add si, ax
jmp .save_file1
.first_is_quote:
mov si, token ; The location of quotes is provided
.save_file1:
mov word di, .file1 ; The filename is saved to temporary strings because
call os_string_copy ; getting a second quote will overwrite the previous
.get_second:
call get_token
cmp ax, STRING_VAR
je .second_is_string
cmp ax, QUOTE
je .second_is_quote
jmp .error
.second_is_string:
mov si, string_vars ; Locate second string
mov ax, 128
mul bx
add si, ax
jmp .save_file2
.second_is_quote:
mov si, token
.save_file2:
mov word di, .file2
call os_string_copy
.check_exists:
mov word ax, .file1 ; Check if the source file exists
call os_file_exists
jc .file_not_found ; If it doesn't exists set "R = 1"
clc
mov ax, .file2 ; The second file is the destination and should not exist
call os_file_exists
jnc .file_exists ; If it exists set "R = 3"
.rename:
mov word ax, .file1 ; Seem to be okay, lets rename
mov word bx, .file2
call os_rename_file
jc .rename_failed ; If it failed set "R = 2", usually caused by a read-only disk
mov ax, 0 ; It worked sucessfully, so set "R = 0" to indicate no error
mov byte al, 'R'
mov bx, 0
call set_var
jmp mainloop
.error:
mov si, err_syntax
jmp error
.file_not_found:
mov ax, 0 ; Set R variable to 1
mov byte al, 'R'
mov bx, 1
call set_var
jmp mainloop
.rename_failed:
mov ax, 0 ; Set R variable to 2
mov byte al, 'R'
mov bx, 2
call set_var
jmp mainloop
.file_exists:
mov ax, 0
mov byte al, 'R' ; Set R variable to 3
mov bx, 3
call set_var
jmp mainloop
.data:
.file1 times 12 db 0
.file2 times 12 db 0
; ------------------------------------------------------------------
; RETURN
do_return:
mov ax, 0
mov byte al, [gosub_depth]
cmp al, 0
jne .is_ok
mov si, err_return
jmp error
.is_ok:
mov si, gosub_points
add si, ax ; Table is words (not bytes)
add si, ax
lodsw
mov word [prog], ax
dec byte [gosub_depth]
jmp mainloop
; ------------------------------------------------------------------
; SAVE
do_save:
call get_token
cmp ax, QUOTE
je .is_quote
cmp ax, STRING_VAR
jne near .error
mov si, string_vars
mov ax, 128
mul bx
add si, ax
jmp .get_position
.is_quote:
mov si, token
.get_position:
mov di, .tmp_filename
call os_string_copy
call get_token
cmp ax, VARIABLE
je .second_is_var
cmp ax, NUMBER
jne .error
mov si, token
call os_string_to_int
.set_data_loc:
mov word [.data_loc], ax
call get_token
cmp ax, VARIABLE
je .third_is_var
cmp ax, NUMBER
jne .error
mov si, token
call os_string_to_int
.check_exists:
mov word [.data_size], ax
mov word ax, .tmp_filename
call os_file_exists
jc .write_file
jmp .file_exists_fail
.write_file:
mov word ax, .tmp_filename
mov word bx, [.data_loc]
mov word cx, [.data_size]
call os_write_file
jc .save_failure
mov ax, 0
mov byte al, 'R'
mov bx, 0
call set_var
jmp mainloop
.second_is_var:
mov ax, 0
mov byte al, [token]
call get_var
jmp .set_data_loc
.third_is_var:
mov ax, 0
mov byte al, [token]
call get_var
jmp .check_exists
.file_exists_fail:
mov ax, 0
mov byte al, 'R'
mov bx, 2
call set_var
jmp mainloop
.save_failure:
mov ax, 0
mov byte al, 'R'
mov bx, 1
call set_var
jmp mainloop
.error:
mov si, err_syntax
jmp error
.filename_loc dw 0
.data_loc dw 0
.data_size dw 0
.tmp_filename times 15 db 0
; ------------------------------------------------------------------
; SERIAL
do_serial:
call get_token
mov si, token
mov di, .on_cmd
call os_string_compare
jc .do_on_cmd
mov di, .send_cmd
call os_string_compare
jc .do_send_cmd
mov di, .rec_cmd
call os_string_compare
jc .do_rec_cmd
jmp .error
.do_on_cmd:
call get_token
cmp ax, NUMBER
je .do_on_cmd_ok
jmp .error
.do_on_cmd_ok:
mov si, token
call os_string_to_int
cmp ax, 1200
je .on_cmd_slow_mode
cmp ax, 9600
je .on_cmd_fast_mode
jmp .error
.on_cmd_fast_mode:
mov ax, 0
call os_serial_port_enable
jmp mainloop
.on_cmd_slow_mode:
mov ax, 1
call os_serial_port_enable
jmp mainloop
.do_send_cmd:
call get_token
cmp ax, NUMBER
je .send_number
cmp ax, VARIABLE
je .send_variable
jmp .error
.send_number:
mov si, token
call os_string_to_int
call os_send_via_serial
jmp mainloop
.send_variable:
mov ax, 0
mov byte al, [token]
call get_var
call os_send_via_serial
jmp mainloop
.do_rec_cmd:
call get_token
cmp ax, VARIABLE
jne .error
mov byte al, [token]
mov cx, 0
mov cl, al
call os_get_via_serial
mov bx, 0
mov bl, al
mov al, cl
call set_var
jmp mainloop
.error:
mov si, err_syntax
jmp error
.on_cmd db "ON", 0
.send_cmd db "SEND", 0
.rec_cmd db "REC", 0
; ------------------------------------------------------------------
; SIZE
do_size:
call get_token
cmp ax, STRING_VAR
je .is_string
cmp ax, QUOTE
je .is_quote
jmp .error
.is_string:
mov si, string_vars
mov ax, 128
mul bx
add si, ax
mov ax, si
jmp .get_size
.is_quote:
mov ax, token
.get_size:
call os_get_file_size
jc .file_not_found
mov ax, 0
mov al, 'S'
call set_var
mov ax, 0
mov al, 'R'
mov bx, 0
call set_var
jmp mainloop
.error:
mov si, err_syntax
jmp error
.file_not_found:
mov ax, 0
mov al, [token]
mov bx, 0
call set_var
mov ax, 0
mov al, 'R'
mov bx, 1
call set_var
jmp mainloop
; ------------------------------------------------------------------
; SOUND
do_sound:
call get_token
cmp ax, VARIABLE
je .first_is_var
mov si, token
call os_string_to_int
jmp .done_first
.first_is_var:
mov ax, 0
mov byte al, [token]
call get_var
.done_first:
call os_speaker_tone
call get_token
cmp ax, VARIABLE
je .second_is_var
mov si, token
call os_string_to_int
jmp .finish
.second_is_var:
mov ax, 0
mov byte al, [token]
call get_var
.finish:
call os_pause
call os_speaker_off
jmp mainloop
;-------------------------------------------------------------------
; STRING
do_string:
call get_token ; The first parameter is the word 'GET' or 'SET'
mov si, token
mov di, .get_cmd
call os_string_compare
jc .set_str
mov di, .set_cmd
call os_string_compare
jc .get_str
jmp .error
.set_str:
mov cx, 1
jmp .check_second
.get_str:
mov cx, 2
.check_second:
call get_token ; The next should be a string variable, locate it
cmp ax, STRING_VAR
jne .error
mov si, string_vars
mov ax, 128
mul bx
add si, ax
mov word [.string_loc], si
.check_third:
call get_token ; Now there should be a number
cmp ax, NUMBER
je .third_is_number
cmp ax, VARIABLE
je .third_is_variable
jmp .error
.third_is_number:
mov si, token
call os_string_to_int
jmp .got_number
.third_is_variable:
mov ah, 0
mov al, [token]
call get_var
jmp .got_number
.got_number:
cmp ax, 128
jg .outrange
cmp ax, 0
je .outrange
sub ax, 1
mov dx, ax
.check_forth:
call get_token ; Next a numerical variable
cmp ax, VARIABLE
jne .error
mov byte al, [token]
mov byte [.tmp], al
cmp cx, 2
je .set_var
.get_var:
mov word si, [.string_loc] ; Move to string location
add si, dx ; Add offset
lodsb ; Load data
mov ah, 0
mov bx, ax ; Set data in numerical variable
mov byte al, [.tmp]
call set_var
jmp mainloop
.set_var:
mov byte al, [.tmp] ; Retrieve the variable
call get_var ; Get it's value
mov di, [.string_loc] ; Locate the string
add di, dx ; Add the offset
stosb ; Store data
jmp mainloop
.error:
mov si, err_syntax
jmp error
.outrange:
mov si, err_string_range
jmp error
.data:
.get_cmd db "GET", 0
.set_cmd db "SET", 0
.string_loc dw 0
.tmp db 0
; ------------------------------------------------------------------
; WAITKEY
do_waitkey:
call get_token
cmp ax, VARIABLE
je .is_variable
mov si, err_syntax
jmp error
.is_variable:
mov ax, 0
mov byte al, [token]
push ax
call os_wait_for_key
cmp ah, 48h
je .up_pressed
cmp ah, 50h
je .down_pressed
cmp ah, 4Bh
je .left_pressed
cmp ah, 4Dh
je .right_pressed
.store:
mov bx, 0
mov bl, al
pop ax
call set_var
jmp mainloop
.up_pressed:
mov ax, 1
jmp .store
.down_pressed:
mov ax, 2
jmp .store
.left_pressed:
mov ax, 3
jmp .store
.right_pressed:
mov ax, 4
jmp .store
; ==================================================================
; INTERNAL ROUTINES FOR INTERPRETER
; ------------------------------------------------------------------
; Get value of variable character specified in AL (eg 'A')
get_var:
mov ah, 0
sub al, 65
mov si, variables
add si, ax
add si, ax
lodsw
ret
; ------------------------------------------------------------------
; Set value of variable character specified in AL (eg 'A')
; with number specified in BX
set_var:
mov ah, 0
sub al, 65 ; Remove ASCII codes before 'A'
mov di, variables ; Find position in table (of words)
add di, ax
add di, ax
mov ax, bx
stosw
ret
; ------------------------------------------------------------------
; Get token from current position in prog
get_token:
mov word si, [prog]
lodsb
cmp al, 10
je .newline
cmp al, ' '
je .newline
call is_number
jc get_number_token
cmp al, '"'
je get_quote_token
cmp al, 39 ; Quote mark (')
je get_char_token
cmp al, '$'
je near get_string_var_token
jmp get_string_token
.newline:
inc word [prog]
jmp get_token
get_number_token:
mov word si, [prog]
mov di, token
.loop:
lodsb
cmp al, 10
je .done
cmp al, ' '
je .done
call is_number
jc .fine
mov si, err_char_in_num
jmp error
.fine:
stosb
inc word [prog]
jmp .loop
.done:
mov al, 0 ; Zero-terminate the token
stosb
mov ax, NUMBER ; Pass back the token type
ret
get_char_token:
inc word [prog] ; Move past first quote (')
mov word si, [prog]
lodsb
mov byte [token], al
lodsb
cmp al, 39 ; Needs to finish with another quote
je .is_ok
mov si, err_quote_term
jmp error
.is_ok:
inc word [prog]
inc word [prog]
mov ax, CHAR
ret
get_quote_token:
inc word [prog] ; Move past first quote (") char
mov word si, [prog]
mov di, token
.loop:
lodsb
cmp al, '"'
je .done
cmp al, 10
je .error
stosb
inc word [prog]
jmp .loop
.done:
mov al, 0 ; Zero-terminate the token
stosb
inc word [prog] ; Move past final quote
mov ax, QUOTE ; Pass back token type
ret
.error:
mov si, err_quote_term
jmp error
get_string_var_token:
lodsb
mov bx, 0 ; If it's a string var, pass number of string in BX
mov bl, al
sub bl, 49
inc word [prog]
inc word [prog]
mov ax, STRING_VAR
ret
get_string_token:
mov word si, [prog]
mov di, token
.loop:
lodsb
cmp al, 10
je .done
cmp al, ' '
je .done
stosb
inc word [prog]
jmp .loop
.done:
mov al, 0 ; Zero-terminate the token
stosb
mov ax, token
call os_string_uppercase
mov ax, token
call os_string_length ; How long was the token?
cmp ax, 1 ; If 1 char, it's a variable or delimiter
je .is_not_string
mov si, token ; If the token ends with ':', it's a label
add si, ax
dec si
lodsb
cmp al, ':'
je .is_label
mov ax, STRING ; Otherwise it's a general string of characters
ret
.is_label:
mov ax, LABEL
ret
.is_not_string:
mov byte al, [token]
call is_letter
jc .is_var
mov ax, UNKNOWN
ret
.is_var:
mov ax, VARIABLE ; Otherwise probably a variable
ret
; ------------------------------------------------------------------
; Set carry flag if AL contains ASCII number
is_number:
cmp al, 48
jl .not_number
cmp al, 57
jg .not_number
stc
ret
.not_number:
clc
ret
; ------------------------------------------------------------------
; Set carry flag if AL contains ASCII letter
is_letter:
cmp al, 65
jl .not_letter
cmp al, 90
jg .not_letter
stc
ret
.not_letter:
clc
ret
; ------------------------------------------------------------------
; Print error message and quit out
error:
mov ah, 5 ; Revert display page
mov al, 0
int 10h
mov byte [work_page], 0
mov byte [disp_page], 0
call os_print_newline
call os_print_string ; Print error message
mov si, line_num_starter
call os_print_string
; And now print the line number where the error occurred. We do this
; by working from the start of the program to the current point,
; counting the number of newline characters along the way
mov word si, [load_point]
mov word bx, [prog]
mov cx, 1
.loop:
lodsb
cmp al, 10
jne .not_newline
inc cx
.not_newline:
cmp si, bx
je .finish
jmp .loop
.finish:
mov ax, cx
call os_int_to_string
mov si, ax
call os_print_string
call os_print_newline
mov word sp, [orig_stack] ; Restore the stack to as it was when BASIC started
ret ; And finish
; Error messages text...
err_char_in_num db "Error 00", 0
err_cmd_unknown db "Error 01", 0
err_divide_by_zero db "Error 02", 0
err_doloop_maximum db "Error 03", 0
err_file_notfound db "Error 04", 0
err_goto_notlabel db "Error 05", 0
err_label_notfound db "Error 06", 0
err_nest_limit db "Error 07", 0
err_next db "Error 08", 0
err_loop db "Error 09", 0
err_print_type db "Error 10", 0
err_quote_term db "Error 11", 0
err_return db "Error 12", 0
err_string_range db "Error 13", 0
err_syntax db "Error 14", 0
err_break db "BREAK CALLED", 0
line_num_starter db " - line ", 0
; ==================================================================
; DATA SECTION
orig_stack dw 0 ; Original stack location when BASIC started
prog dw 0 ; Pointer to current location in BASIC code
prog_end dw 0 ; Pointer to final byte of BASIC code
load_point dw 0
token_type db 0 ; Type of last token read (eg NUMBER, VARIABLE)
; token times 255 db 0 ; Storage space for the token
token equ 32768-1024-256
vars_loc:
variables times 26 dw 0 ; Storage space for variables A to Z
for_variables times 26 dw 0 ; Storage for FOR loops
for_code_points times 26 dw 0 ; Storage for code positions where FOR loops start
do_loop_store times 10 dw 0 ; Storage for DO loops
loop_in db 0 ; Loop level
last_if_true db 1 ; Checking for 'ELSE'
ink_colour db 0 ; Text printing colour
work_page db 0 ; Page to print to
disp_page db 0 ; Page to display
alert_cmd db "ALERT", 0
askfile_cmd db "ASKFILE", 0
break_cmd db "BREAK", 0
call_cmd db "CALL", 0
case_cmd db "CASE", 0
cls_cmd db "CLS", 0
cursor_cmd db "CURSOR", 0
curschar_cmd db "CURSCHAR", 0
curscol_cmd db "CURSCOL", 0
curspos_cmd db "CURSPOS", 0
delete_cmd db "DELETE", 0
do_cmd db "DO", 0
else_cmd db "ELSE", 0
end_cmd db "END", 0
files_cmd db "FILES", 0
for_cmd db "FOR", 0
gosub_cmd db "GOSUB", 0
goto_cmd db "GOTO", 0
getkey_cmd db "GETKEY", 0
if_cmd db "IF", 0
include_cmd db "INCLUDE", 0
ink_cmd db "INK", 0
input_cmd db "INPUT", 0
len_cmd db "LEN", 0
listbox_cmd db "LISTBOX", 0
load_cmd db "LOAD", 0
loop_cmd db "LOOP", 0
move_cmd db "MOVE", 0
next_cmd db "NEXT", 0
number_cmd db "NUMBER", 0
page_cmd db "PAGE", 0
pause_cmd db "PAUSE", 0
peek_cmd db "PEEK", 0
peekint_cmd db "PEEKINT", 0
poke_cmd db "POKE", 0
pokeint_cmd db "POKEINT", 0
port_cmd db "PORT", 0
print_cmd db "PRINT", 0
rand_cmd db "RAND", 0
read_cmd db "READ", 0
rem_cmd db "REM", 0
rename_cmd db "RENAME", 0
return_cmd db "RETURN", 0
save_cmd db "SAVE", 0
serial_cmd db "SERIAL", 0
size_cmd db "SIZE", 0
sound_cmd db "SOUND", 0
string_cmd db "STRING", 0
waitkey_cmd db "WAITKEY", 0
and_keyword db "AND", 0
then_keyword db "THEN", 0
chr_keyword db "CHR", 0
hex_keyword db "HEX", 0
lower_keyword db "LOWER", 0
upper_keyword db "UPPER", 0
ink_keyword db "INK", 0
progstart_keyword db "PROGSTART", 0
ramstart_keyword db "RAMSTART", 0
timer_keyword db "TIMER", 0
variables_keyword db "VARIABLES", 0
version_keyword db "VERSION", 0
gosub_depth db 0
gosub_points times 10 dw 0 ; Points in code to RETURN to
; string_vars times 1024 db 0 ; 8 * 128 byte strings
string_vars equ 32768-1024
; ------------------------------------------------------------------
| 14.752125 | 85 | 0.642311 |
3308df3e19071c6de73139ccaed08e3dea199c43 | 320 | asm | Assembly | a/Assembler Z80 TI83calculator.asm | rojenzaman/hello-world | 30b20861a6cdb77a9cb4a7c61a3241a51b71a5dc | [
"MIT"
] | 8,076 | 2015-01-02T04:55:03.000Z | 2022-03-31T16:09:18.000Z | a/Assembler Z80 TI83calculator.asm | rojenzaman/hello-world | 30b20861a6cdb77a9cb4a7c61a3241a51b71a5dc | [
"MIT"
] | 514 | 2015-01-08T21:48:21.000Z | 2022-03-31T11:55:07.000Z | a/Assembler Z80 TI83calculator.asm | rojenzaman/hello-world | 30b20861a6cdb77a9cb4a7c61a3241a51b71a5dc | [
"MIT"
] | 1,978 | 2015-01-01T14:24:01.000Z | 2022-03-31T11:38:08.000Z | .NOLIST
#define EQU .equ
#define equ .equ
#define END .end
#define end .end
#include "ti83plus.inc"
.LIST
.org 9D93h
.db $BB,$6D
ld a,0
ld (CURCOL),a
ld (CURROW),a
ld hl,text
B_CALL(_PutS)
B_CALL(_NewLine)
ret
text:
.db "Hello World",0
.end
end
| 15.238095 | 25 | 0.534375 |
74a3554148a86af927b3ba465fb932f6d72409e0 | 1,144 | asm | Assembly | programs/oeis/100/A100160.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/100/A100160.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/100/A100160.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A100160: Structured disdyakis triacontahedral numbers (vertex structure 5).
; 1,62,299,828,1765,3226,5327,8184,11913,16630,22451,29492,37869,47698,59095,72176,87057,103854,122683,143660,166901,192522,220639,251368,284825,321126,360387,402724,448253,497090,549351,605152,664609,727838,794955,866076,941317,1020794,1104623,1192920,1285801,1383382,1485779,1593108,1705485,1823026,1945847,2074064,2207793,2347150,2492251,2643212,2800149,2963178,3132415,3307976,3489977,3678534,3873763,4075780,4284701,4500642,4723719,4954048,5191745,5436926,5689707,5950204,6218533,6494810,6779151,7071672,7372489,7681718,7999475,8325876,8661037,9005074,9358103,9720240,10091601,10472302,10862459,11262188,11671605,12090826,12519967,12959144,13408473,13868070,14338051,14818532,15309629,15811458,16324135,16847776,17382497,17928414,18485643,19054300
mov $1,$0
mov $2,$0
mov $7,$0
lpb $2
add $0,11
add $0,$1
add $1,$2
sub $2,1
lpe
add $0,1
mov $3,$7
mov $5,$7
lpb $5
sub $5,1
add $6,$3
lpe
mov $3,$6
mov $4,29
lpb $4
add $0,$3
sub $4,1
lpe
mov $5,$7
mov $6,0
lpb $5
sub $5,1
add $6,$3
lpe
mov $3,$6
mov $4,19
lpb $4
add $0,$3
sub $4,1
lpe
| 30.105263 | 752 | 0.763112 |
2127582207e3576903d5e36ca17c8ff7fc01ddc7 | 884 | asm | Assembly | main.asm | Zeturic/bpre-in-game-trades | 2fd2547cc3004ab3fcc5192625fd02bb90281038 | [
"0BSD"
] | 1 | 2020-06-14T18:52:59.000Z | 2020-06-14T18:52:59.000Z | main.asm | Zeturic/bpre-in-game-trades | 2fd2547cc3004ab3fcc5192625fd02bb90281038 | [
"0BSD"
] | null | null | null | main.asm | Zeturic/bpre-in-game-trades | 2fd2547cc3004ab3fcc5192625fd02bb90281038 | [
"0BSD"
] | null | null | null | .gba
.thumb
.open "rom.gba", "test.gba", 0x08000000
// -----------------------------------------------------------------------------
.org allocation
.area allocation_size
.importobj "build/linked.o"
.endarea
// -----------------------------------------------------------------------------
.if INSERT_INGAME_TRADE_HACK
.org 0x08053B48
.area 0x15A, 0xFE
ldr r3, =_CreateInGameTradePokemon |1
bx r3
.pool
.endarea
// skip over constants in the middle of the function
.org 0x08053CB4
.fill 0x1A, 0xFE
.endif
// -----------------------------------------------------------------------------
SIZEOF_INGAME_TRADE equ 0x3C
.org readu32("rom.gba", sInGameTradesPtr & 0x1FFFFFF)
.area NUM_INGAME_TRADES * SIZEOF_INGAME_TRADE
.importobj "build/src/sInGameTrades.o"
.endarea
// -----------------------------------------------------------------------------
.close
| 20.55814 | 80 | 0.468326 |
4aedc1ac0e3ddf3a1dcbbe33946f33244dc6f57c | 575 | asm | Assembly | oeis/035/A035328.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/035/A035328.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/035/A035328.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A035328: a(n) = n*(2*n-1)*(2*n+1).
; 0,3,30,105,252,495,858,1365,2040,2907,3990,5313,6900,8775,10962,13485,16368,19635,23310,27417,31980,37023,42570,48645,55272,62475,70278,78705,87780,97527,107970,119133,131040,143715,157182,171465,186588,202575,219450,237237,255960,275643,296310,317985,340692,364455,389298,415245,442320,470547,499950,530553,562380,595455,629802,665445,702408,740715,780390,821457,863940,907863,953250,1000125,1048512,1098435,1149918,1202985,1257660,1313967,1371930,1431573,1492920,1555995,1620822,1687425,1755828
mov $1,$0
pow $0,3
mul $0,4
sub $0,$1
| 71.875 | 498 | 0.793043 |
87a46c5701843f0f5166661d141e1520ba10ff06 | 471 | asm | Assembly | programs/oeis/081/A081026.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/081/A081026.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/081/A081026.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A081026: Variation on Ulam numbers: a(1) = 1; a(2) = 2; for n>2, a(n) = smallest (n odd) or largest (n even) number > a(n-1) that is a unique sum of two distinct earlier terms.
; 1,2,3,5,6,11,12,23,24,47,48,95,96,191,192,383,384,767,768,1535,1536,3071,3072,6143,6144,12287,12288,24575,24576,49151,49152,98303,98304,196607,196608,393215,393216,786431,786432,1572863,1572864,3145727
lpb $0
mov $1,$2
add $1,$0
trn $0,2
mul $2,2
add $2,3
lpe
add $1,1
mov $0,$1
| 36.230769 | 203 | 0.679406 |
ef79f95387d8c9827d1652ea6314b6a8463c93a8 | 398 | asm | Assembly | oeis/099/A099934.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/099/A099934.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/099/A099934.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A099934: Antidiagonal sums of array A007754.
; Submitted by Jon Maiga
; 1,2,4,11,41,195,1130,7716,60599,537676,5316162,57940107,689965123,8911606493,124072525780,1852176280208,29510747957549,499830538998126,8967438954008720,169881509587167555
mov $2,2
mov $3,2
mov $4,2
lpb $0
sub $0,1
add $1,$4
mul $2,$0
add $4,$3
add $2,$4
mov $4,$1
mov $1,$3
mov $3,$2
lpe
mov $0,$2
div $0,2
| 19.9 | 172 | 0.701005 |
ccf8c9389704eb15354ad35093477af0151aee91 | 4,186 | asm | Assembly | OvmfPkg/ResetVector/Ia32/PageTables64.asm | ray-linn/myedk2 | b6a8574cb6ba49044fe43a748b98f31d417ece07 | [
"Python-2.0",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-2-Clause-Patent",
"BSD-3-Clause"
] | null | null | null | OvmfPkg/ResetVector/Ia32/PageTables64.asm | ray-linn/myedk2 | b6a8574cb6ba49044fe43a748b98f31d417ece07 | [
"Python-2.0",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-2-Clause-Patent",
"BSD-3-Clause"
] | null | null | null | OvmfPkg/ResetVector/Ia32/PageTables64.asm | ray-linn/myedk2 | b6a8574cb6ba49044fe43a748b98f31d417ece07 | [
"Python-2.0",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-2-Clause-Patent",
"BSD-3-Clause"
] | null | null | null | ;------------------------------------------------------------------------------
; @file
; Sets the CR3 register for 64-bit paging
;
; Copyright (c) 2008 - 2013, Intel Corporation. All rights reserved.<BR>
; Copyright (c) 2017 - 2020, Advanced Micro Devices, Inc. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
;------------------------------------------------------------------------------
BITS 32
%define PAGE_PRESENT 0x01
%define PAGE_READ_WRITE 0x02
%define PAGE_USER_SUPERVISOR 0x04
%define PAGE_WRITE_THROUGH 0x08
%define PAGE_CACHE_DISABLE 0x010
%define PAGE_ACCESSED 0x020
%define PAGE_DIRTY 0x040
%define PAGE_PAT 0x080
%define PAGE_GLOBAL 0x0100
%define PAGE_2M_MBO 0x080
%define PAGE_2M_PAT 0x01000
%define PAGE_4K_PDE_ATTR (PAGE_ACCESSED + \
PAGE_DIRTY + \
PAGE_READ_WRITE + \
PAGE_PRESENT)
%define PAGE_2M_PDE_ATTR (PAGE_2M_MBO + \
PAGE_ACCESSED + \
PAGE_DIRTY + \
PAGE_READ_WRITE + \
PAGE_PRESENT)
%define PAGE_PDP_ATTR (PAGE_ACCESSED + \
PAGE_READ_WRITE + \
PAGE_PRESENT)
%define TDX_BSP 1
%define TDX_AP 2
;
; Modified: EAX, EBX, ECX, EDX
;
SetCr3ForPageTables64:
; Check the TDX features.
; If it is TDX APs, then jump to SetCr3 directly.
; In TD guest the initialization is done by BSP, including building
; the page tables. APs will spin on until byte[TDX_WORK_AREA_PGTBL_READY]
; is set.
OneTimeCall CheckTdxFeaturesBeforeBuildPagetables
cmp eax, TDX_BSP
je ClearOvmfPageTables
cmp eax, TDX_AP
je SetCr3
; Check whether the SEV is active and populate the SevEsWorkArea
OneTimeCall CheckSevFeatures
; If SEV is enabled, the C-bit position is always above 31.
; The mask will be saved in the EDX and applied during the
; the page table build below.
OneTimeCall GetSevCBitMaskAbove31
ClearOvmfPageTables:
;
; For OVMF, build some initial page tables at
; PcdOvmfSecPageTablesBase - (PcdOvmfSecPageTablesBase + 0x6000).
;
; This range should match with PcdOvmfSecPageTablesSize which is
; declared in the FDF files.
;
; At the end of PEI, the pages tables will be rebuilt into a
; more permanent location by DxeIpl.
;
mov ecx, 6 * 0x1000 / 4
xor eax, eax
clearPageTablesMemoryLoop:
mov dword[ecx * 4 + PT_ADDR (0) - 4], eax
loop clearPageTablesMemoryLoop
;
; Top level Page Directory Pointers (1 * 512GB entry)
;
mov dword[PT_ADDR (0)], PT_ADDR (0x1000) + PAGE_PDP_ATTR
mov dword[PT_ADDR (4)], edx
;
; Next level Page Directory Pointers (4 * 1GB entries => 4GB)
;
mov dword[PT_ADDR (0x1000)], PT_ADDR (0x2000) + PAGE_PDP_ATTR
mov dword[PT_ADDR (0x1004)], edx
mov dword[PT_ADDR (0x1008)], PT_ADDR (0x3000) + PAGE_PDP_ATTR
mov dword[PT_ADDR (0x100C)], edx
mov dword[PT_ADDR (0x1010)], PT_ADDR (0x4000) + PAGE_PDP_ATTR
mov dword[PT_ADDR (0x1014)], edx
mov dword[PT_ADDR (0x1018)], PT_ADDR (0x5000) + PAGE_PDP_ATTR
mov dword[PT_ADDR (0x101C)], edx
;
; Page Table Entries (2048 * 2MB entries => 4GB)
;
mov ecx, 0x800
pageTableEntriesLoop:
mov eax, ecx
dec eax
shl eax, 21
add eax, PAGE_2M_PDE_ATTR
mov [ecx * 8 + PT_ADDR (0x2000 - 8)], eax
mov [(ecx * 8 + PT_ADDR (0x2000 - 8)) + 4], edx
loop pageTableEntriesLoop
; Clear the C-bit from the GHCB page if the SEV-ES is enabled.
OneTimeCall SevClearPageEncMaskForGhcbPage
; TDX will do some PostBuildPages task, such as setting
; byte[TDX_WORK_AREA_PGTBL_READY].
OneTimeCall TdxPostBuildPageTables
SetCr3:
;
; Set CR3 now that the paging structures are available
;
mov eax, PT_ADDR (0)
mov cr3, eax
OneTimeCallRet SetCr3ForPageTables64
| 32.2 | 82 | 0.599857 |
08260fe236dae57c34fcbfd5190c0e757d53df37 | 582 | asm | Assembly | data/baseStats_original/smeargle.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 16 | 2018-08-28T21:47:01.000Z | 2022-02-20T20:29:59.000Z | data/baseStats_original/smeargle.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 5 | 2019-04-03T19:53:11.000Z | 2022-03-11T22:49:34.000Z | data/baseStats_original/smeargle.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 2 | 2019-12-09T19:46:02.000Z | 2020-12-05T21:36:30.000Z | SmeargleBaseStats::
dw DEX_SMEARGLE ; pokedex id
db 55 ; base hp
db 20 ; base attack
db 35 ; base defense
db 75 ; base speed
db 33 ; base special
db NORMAL ; species type 1
db NORMAL ; species type 2
db 79 ; catch rate
db 106 ; base exp yield
INCBIN "pic/ymon/smeargle.pic",0,1 ; 55, sprite dimensions
dw SmearglePicFront
dw SmearglePicBack
; attacks known at lvl 0
db SPORE
db TRANSFORM
db EXPLOSION
db EXTREME_SPEED
db 4 ; growth rate
; learnset
tmlearn 0
tmlearn 0
tmlearn 0
tmlearn 0
tmlearn 0
tmlearn 0
tmlearn 0
db Bank(SmearglePicFront) ; padding
| 19.4 | 59 | 0.728522 |
33dee72a39defee59ec758543ecd23d0e796eed7 | 655 | asm | Assembly | oeis/137/A137880.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/137/A137880.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/137/A137880.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A137880: Indices k of perfect squares among 17-gonal numbers A051869(k) = k*(15*k - 13)/2.
; Submitted by Christian Krause
; 1,49,225,23409,108241,11282881,52171729,5438325025,25146664929,2621261378961,12120640323841,1263442546333969,5842123489426225,608976686071593889,2815891401263116401,293525499243961920321,1357253813285332678849,141478681658903574000625,654193522112129088088609,68192431034092278706380721,315319920404232935126030481,32868610279750819432901506689,151983547441318162601658603025,15842601962408860874379819843169,73255754546794950141064320627361,7636101277270791190631640262900561
seq $0,137881 ; a(n) = sqrt(A137880(n)).
pow $0,2
| 93.571429 | 478 | 0.871756 |
57c1efc399c10638ec25ba7249d3af26d107d27e | 70 | asm | Assembly | src/main/fragment/mos6502-common/vdum1=vdum2_ror_16.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | 2 | 2022-03-01T02:21:14.000Z | 2022-03-01T04:33:35.000Z | src/main/fragment/mos6502-common/vdum1=vdum2_ror_16.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | src/main/fragment/mos6502-common/vdum1=vdum2_ror_16.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | lda #0
sta {m1}+3
sta {m1}+2
lda {m2}+3
sta {m1}+1
lda {m2}+2
sta {m1} | 10 | 10 | 0.557143 |
5295b207682303aeb188406edf90665eb857f7e0 | 404 | asm | Assembly | programs/oeis/120/A120147.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/120/A120147.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/120/A120147.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A120147: a(1)=23; a(n)=floor((47+sum(a(1) to a(n-1)))/2).
; 23,35,52,78,117,176,264,396,594,891,1336,2004,3006,4509,6764,10146,15219,22828,34242,51363,77045,115567,173351,260026,390039,585059,877588,1316382,1974573,2961860,4442790,6664185,9996277,14994416
add $0,1
mov $3,5
lpb $0,1
mov $2,2
sub $2,$0
sub $0,1
add $3,10
mov $1,$3
div $1,2
add $3,$1
add $1,$2
add $3,6
lpe
add $1,15
| 22.444444 | 197 | 0.65099 |
2207f03968460cd1f3582eadfd694b0729989497 | 1,175 | asm | Assembly | SystemsProgramming/p15.asm | aaiijmrtt/JUCSE | 3413b7280bc4883c056a9444e8dc56144b692e32 | [
"MIT"
] | 6 | 2016-04-21T15:07:02.000Z | 2020-11-26T14:47:13.000Z | SystemsProgramming/p15.asm | aaiijmrtt/JUCSEsem2 | 3413b7280bc4883c056a9444e8dc56144b692e32 | [
"MIT"
] | null | null | null | SystemsProgramming/p15.asm | aaiijmrtt/JUCSEsem2 | 3413b7280bc4883c056a9444e8dc56144b692e32 | [
"MIT"
] | 5 | 2015-08-09T17:31:10.000Z | 2018-03-19T10:45:38.000Z | %include "util.mac"
extern buffer, store, array, inprompt, newline, arraysize, inpromptsize, newlinesize, getnumber, inputarray, printarray
section .data
midprompt: db 'INPUT ELEMENT: '
outprompt: db 'INDEX: '
oopsprompt: db 'ELEMENT NOT FOUND'
mpromptsize: equ 15
outpromptsize: equ 7
oopspromptsize: equ 17
section .text
global _start
_start:
call inputarray
write inprompt, inpromptsize
write newline, newlinesize
call printarray
write newline, newlinesize
write midprompt, mpromptsize
write newline, newlinesize
call getnumber
write newline, newlinesize
mov eax, 0
mov al, [buffer]
mov [store], al
call binary
cmp al, -1
je notfound
write outprompt, outpromptsize
write newline, newlinesize
printword ax, buffer, 1
write newline, newlinesize
exit
notfound:
write oopsprompt, oopspromptsize
write newline, newlinesize
exit
binary:
mov ebx, 1
mov ecx, 0
mov cl, [arraysize]
continue:
cmp ecx, ebx
jb none
mov eax, 0
mov eax, ebx
add eax, ecx
shr eax, 1
mov dl, [array + eax - 1]
cmp [store], dl
jz equal
jb lower
inc eax
mov ebx, eax
jmp continue
lower:
dec eax
mov ecx, eax
jmp continue
none:
mov eax, -1
equal:
ret
| 17.537313 | 119 | 0.739574 |
9a16064b26be979a6cb8595aa90d36cca1f58dba | 383 | asm | Assembly | oeis/346/A346310.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/346/A346310.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/346/A346310.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A346310: Positions of words in A076478 such that #0's - #1's is even.
; Submitted by Jamie Morken(s1)
; 3,4,5,6,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106
add $0,1
mov $1,1
lpb $0
sub $0,$1
mul $1,4
lpe
add $1,$0
mov $0,$1
sub $0,1
| 27.357143 | 196 | 0.644909 |
9afaa9359e4ff72e0de0e17cdb3e6b19e63868fa | 6,111 | asm | Assembly | Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_21829_1288.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_21829_1288.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_21829_1288.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 %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0xeddd, %r15
cmp $3178, %r10
movb (%r15), %r14b
nop
nop
nop
inc %rdi
lea addresses_WC_ht+0xa2dd, %r14
clflush (%r14)
nop
nop
nop
dec %rdx
movl $0x61626364, (%r14)
nop
nop
nop
and $54078, %r10
lea addresses_A_ht+0x1170d, %rbp
nop
nop
nop
nop
cmp $23181, %rsi
vmovups (%rbp), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $0, %xmm2, %r15
nop
sub %r15, %r15
lea addresses_D_ht+0x148dd, %r10
nop
nop
nop
add %rdx, %rdx
movl $0x61626364, (%r10)
dec %rdx
lea addresses_UC_ht+0x48dd, %rdx
nop
sub $50216, %rsi
mov $0x6162636465666768, %rbp
movq %rbp, (%rdx)
nop
nop
nop
nop
nop
sub %rsi, %rsi
lea addresses_normal_ht+0x1582d, %rsi
lea addresses_WT_ht+0x1edd, %rdi
clflush (%rsi)
nop
nop
nop
nop
xor $17340, %rbp
mov $65, %rcx
rep movsw
nop
nop
cmp $52545, %r15
lea addresses_WT_ht+0x8a39, %rsi
nop
nop
nop
nop
nop
add %rdx, %rdx
mov $0x6162636465666768, %rbp
movq %rbp, %xmm2
movups %xmm2, (%rsi)
nop
nop
nop
cmp %rdi, %rdi
lea addresses_UC_ht+0x1b2dd, %rdx
nop
sub %r14, %r14
mov (%rdx), %cx
nop
nop
inc %r15
lea addresses_WT_ht+0x19dd9, %r14
nop
nop
nop
nop
nop
cmp %rdx, %rdx
movb (%r14), %r10b
nop
nop
nop
nop
xor %rcx, %rcx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r15
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r8
push %rax
push %rbp
push %rdx
push %rsi
// Faulty Load
mov $0x679a2200000008dd, %r8
nop
nop
and %rsi, %rsi
mov (%r8), %rbp
lea oracles, %r8
and $0xff, %rbp
shlq $12, %rbp
mov (%r8,%rbp,1), %rbp
pop %rsi
pop %rdx
pop %rbp
pop %rax
pop %r8
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': True}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 8, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 9, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 4, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 11, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 11, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 1, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 9, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': True, 'congruent': 2, 'size': 1, 'same': False, 'NT': False}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 38.433962 | 2,999 | 0.657667 |
5ae8ed389c043ad013c84b92a1191f5d345bf3a4 | 177 | asm | Assembly | data/wildPokemon/unknowndungeonb1.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | null | null | null | data/wildPokemon/unknowndungeonb1.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | null | null | null | data/wildPokemon/unknowndungeonb1.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | null | null | null | DungeonMonsB1:
db $19
db 54,GOLBAT
db 59,GOLBAT
db 55,GOLEM
db 52,RHYHORN
db 62,RHYDON
db 60,DITTO
db 56,CHANSEY
db 65,DITTO
db 55,LICKITUNG
db 50,LICKITUNG
db $00
| 11.8 | 16 | 0.711864 |
c683489076c2c48d083c49d030bed67e24610278 | 689 | asm | Assembly | oeis/056/A056308.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/056/A056308.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/056/A056308.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A056308: Number of reversible strings with n beads using a maximum of six different colors.
; Submitted by Jon Maiga
; 1,6,21,126,666,3996,23436,140616,840456,5042736,30236976,181421856,1088414496,6530486976,39182222016,235093332096,1410555793536,8463334761216,50779983373056,304679900238336,1828079250264576,10968475501587456,65810852102532096,394865112615192576,2369190670249199616,14215144021495197696,85290864096319451136,511745184577916706816,3070471107271589830656,18422826643629538983936,110536959860601771442176,663221759163610628653056,3979330554974610997149696,23875983329847665982898176
mov $3,$0
seq $0,56452 ; a(n) = 6^floor((n+1)/2).
mov $2,6
pow $2,$3
add $0,$2
div $0,2
| 62.636364 | 480 | 0.847605 |
09b1953d2e70ab6fdd19fe8ea91e739ebdb361e5 | 339 | asm | Assembly | programs/oeis/144/A144614.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/144/A144614.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/144/A144614.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A144614: Sum of divisors of 3*n + 1.
; 1,7,8,18,14,31,20,36,31,56,32,54,38,90,44,72,57,98,72,90,62,127,68,144,74,140,80,126,108,180,112,144,98,217,104,162,110,248,144,180,133,224,128,252,160,270,140,216,180,266,152,288,158,378,164,252,183,308
mul $0,3
seq $0,203 ; a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n).
| 56.5 | 205 | 0.681416 |
85626cd920d967d2ce5582c8ac5a2189678c8698 | 3,546 | asm | Assembly | Headset/Firmware/lib/CMSIS/Device/ST/STM32L1xx/Source/Templates/TASKING/cstart_thumb2.asm | vrmad1/RiftDK2-Archive | 42363e7cd246a24816158181ee37aed32703229b | [
"CC-BY-4.0"
] | 207 | 2017-10-09T17:48:54.000Z | 2022-03-30T14:43:26.000Z | Headset/Firmware/lib/CMSIS/Device/ST/STM32L1xx/Source/Templates/TASKING/cstart_thumb2.asm | wglnngt/RiftDK2 | 42363e7cd246a24816158181ee37aed32703229b | [
"CC-BY-4.0"
] | 5 | 2017-09-25T10:31:38.000Z | 2017-09-25T10:32:14.000Z | Headset/Firmware/lib/CMSIS/Device/ST/STM32L1xx/Source/Templates/TASKING/cstart_thumb2.asm | wglnngt/RiftDK2 | 42363e7cd246a24816158181ee37aed32703229b | [
"CC-BY-4.0"
] | 60 | 2017-10-10T16:38:13.000Z | 2022-01-08T14:19:05.000Z |
;; NOTE: To allow the use of this file for both ARMv6M and ARMv7M,
;; we will only use 16-bit Thumb intructions.
.extern _lc_ub_stack ; usr/sys mode stack pointer
.extern _lc_ue_stack ; symbol required by debugger
.extern _lc_ub_table ; ROM to RAM copy table
.extern main
.extern _Exit
.extern exit
.weak exit
.global __get_argcv
.weak __get_argcv
.extern __argcvbuf
.weak __argcvbuf
;;.extern __init_hardware
.extern SystemInit
.if @defined('__PROF_ENABLE__')
.extern __prof_init
.endif
.if @defined('__POSIX__')
.extern posix_main
.extern _posix_boot_stack_top
.endif
.global _START
.section .text.cstart
.thumb
_START:
;; anticipate possible ROM/RAM remapping
;; by loading the 'real' program address
ldr r1,=_Next
bx r1
_Next:
;; initialize the stack pointer
ldr r1,=_lc_ub_stack ; TODO: make this part of the vector table
mov sp,r1
;; call a user function which initializes function.
bl SystemInit
;; copy initialized sections from ROM to RAM
;; and clear uninitialized data sections in RAM
ldr r3,=_lc_ub_table
movs r0,#0
cploop:
ldr r4,[r3,#0] ; load type
ldr r5,[r3,#4] ; dst address
ldr r6,[r3,#8] ; src address
ldr r7,[r3,#12] ; size
cmp r4,#1
beq copy
cmp r4,#2
beq clear
b done
copy:
subs r7,r7,#1
ldrb r1,[r6,r7]
strb r1,[r5,r7]
bne copy
adds r3,r3,#16
b cploop
clear:
subs r7,r7,#1
strb r0,[r5,r7]
bne clear
adds r3,r3,#16
b cploop
done:
.if @defined('__POSIX__')
;; posix stack buffer for system upbringing
ldr r0,=_posix_boot_stack_top
ldr r0, [r0]
mov sp,r0
.else
;; load r10 with end of USR/SYS stack, which is
;; needed in case stack overflow checking is on
;; NOTE: use 16-bit instructions only, for ARMv6M
ldr r0,=_lc_ue_stack
mov r10,r0
.endif
.if @defined('__PROF_ENABLE__')
bl __prof_init
.endif
.if @defined('__POSIX__')
;; call posix_main with no arguments
bl posix_main
.else
;; retrieve argc and argv (default argv[0]==NULL & argc==0)
bl __get_argcv
ldr r1,=__argcvbuf
;; call main
bl main
.endif
;; call exit using the return value from main()
;; Note. Calling exit will also run all functions
;; that were supplied through atexit().
bl exit
__get_argcv: ; weak definition
movs r0,#0
bx lr
.ltorg
.endsec
.calls '_START', ' '
.calls '_START','__init_vector_table'
.if @defined('__PROF_ENABLE__')
.calls '_START','__prof_init'
.endif
.if @defined('__POSIX__')
.calls '_START','posix_main'
.else
.calls '_START','__get_argcv'
.calls '_START','main'
.endif
.calls '_START','exit'
.calls '_START','',0
.end
| 25.148936 | 82 | 0.509024 |
b78889b3640afead72b79964b3d2c2961e58c75c | 949 | asm | Assembly | custom_procs/readnum.asm | YuraIz/tasm-labs | f8722f56adf1571d3c9ae41fbf9cce65ad06f5f2 | [
"WTFPL"
] | null | null | null | custom_procs/readnum.asm | YuraIz/tasm-labs | f8722f56adf1571d3c9ae41fbf9cce65ad06f5f2 | [
"WTFPL"
] | null | null | null | custom_procs/readnum.asm | YuraIz/tasm-labs | f8722f56adf1571d3c9ae41fbf9cce65ad06f5f2 | [
"WTFPL"
] | null | null | null | .model small
.code
main:
call readnum
mov ax, bx
call printnum
exit:
mov ah, 04Ch
mov al, 0
int 21h
readnum:
mov bx, 0
mov ah, 01h
int 21h
cmp al, 2dh
je negative
call analyze
ret
negative:
call rpos
not bx
add bx, 1
ret
rpos:
mov ah, 01h
int 21h
analyze:
cmp al, 0dh
je endl
cmp al, 10
je endl
sub al, 48
mov ah, 0
push ax
mov ax, 10
mul bx
mov bx, ax
pop ax
add bx, ax
call rpos
endl:
ret
printnum:
cmp ax, 0
jz pzero
jnl ppos
mov dl, '-'
push ax
mov ah, 02h
int 21h
pop ax
not ax
add ax, 1
ppos:
;used: ax dx bx
cmp ax, 0
jz zero
mov dx, 0
mov bx, 10
div bx
add dl, 48
push dx
call ppos
pop dx
push ax
mov ah, 02h
int 21h
pop ax
zero:
ret
pzero:
mov dl, 30h
mov ah, 02h
int 21h
ret
end main | 12.324675 | 20 | 0.513172 |
33cf0865176d77b858fd57103cb01ed8f1d33e4e | 413 | asm | Assembly | oeis/171/A171464.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/171/A171464.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/171/A171464.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A171464: a(n) = 0+1+2+...+n in lunar arithmetic in base 4 written in base 10.
; Submitted by Jon Maiga
; 0,1,2,3,7,7,7,7,11,11,11,11,15,15,15,15,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,127,127,127,127,127,127
mov $3,1
lpb $0
mov $2,$0
div $0,4
min $2,3
mul $2,$3
add $3,$2
lpe
mov $0,$3
sub $0,1
| 27.533333 | 209 | 0.619855 |
e273319a598e19163267655e5b877433a3a94cfa | 2,763 | asm | Assembly | Borland/CBuilder5/Source/RTL/source/math/fmod.asm | TrevorDArcyEvans/DivingMagpieSoftware | 7ffcfef653b110e514d5db735d11be0aae9953ec | [
"MIT"
] | 1 | 2021-05-27T10:27:25.000Z | 2021-05-27T10:27:25.000Z | Borland/CBuilder5/Source/RTL/source/math/fmod.asm | TrevorDArcyEvans/Diving-Magpie-Software | 7ffcfef653b110e514d5db735d11be0aae9953ec | [
"MIT"
] | null | null | null | Borland/CBuilder5/Source/RTL/source/math/fmod.asm | TrevorDArcyEvans/Diving-Magpie-Software | 7ffcfef653b110e514d5db735d11be0aae9953ec | [
"MIT"
] | null | null | null | ;[]-----------------------------------------------------------------[]
;| FMOD.ASM -- modulo function |
;[]-----------------------------------------------------------------[]
;
; C/C++ Run Time Library - Version 10.0
;
; Copyright (c) 1991, 2000 by Inprise Corporation
; All Rights Reserved.
;
; $Revision: 9.0 $
;----------------------------------------------------------------------
; function(s)
; fmod - calculates x modulo y, the remainder of x/y
;----------------------------------------------------------------------
include RULES.ASI
include _MATH.INC
; Segments Definitions
Header@
;--------------------------------------------------------------------------
;
;Name fmod - calculates x modulo y, the remainder of x/y
;
;Usage double fmod(double x, double y);
;
;Prototype in math.h
;
;Description fmod calculates x - (y * chop (x / y));
; This difference can be more accurately calculated using the
; FPREM instruction in a repeat loop, though it is slower if
; x/y is large.
;
; while (not finished) result = fprem (x, y)
;
;Return value fmod returns x modulo y as described
;
;--------------------------------------------------------------------------
Code_Seg@
Func@ fmod, _EXPFUNC, _RTLENTRY, <double x>, <double y>
Locals@ <int status>
Link@
FLD y.double
mov ax, y [6]
shl ax, 1 ; ignore the sign bit
jz mod_resultZero ; if the divisor is zero
cmp ax, 0FFE0h
jnb mod_isX ; if y is infinite
FLD x.double
mov ax, x [6]
shl ax, 1
jz mod_xZero ; if x is zero
cmp ax, 0FFE0h
jnb mod_overflow ; if x is infinite
mod_keepTrying:
FPREM
FSTSW status.w0 ; C2 will be set if not yet finished
FWAIT
mov ax,status.w0
sahf
jp mod_keepTrying ; C2 bit maps onto parity flag.
fstp_st1 ; discard the divisor
mod_end:
Unlink@
Return@
; If the divisor is infinite then return the dividend.
mod_isX:
FSTP st(0) ; pop y off the stack
FLD x.double
jmp short mod_end
; All other forms of overflow are mapped onto zero.
mod_xZero:
mod_overflow:
FSTP st(0) ; pop x off the stack
mod_resultZero:
FSTP st(0) ; pop y off the stack
FLDZ
jmp short mod_end
EndFunc@ fmod
Code_Ends@
end
| 26.825243 | 76 | 0.429967 |
f188e8b1e92321b680c5155fad085010a276f55a | 433 | asm | Assembly | samples/dynamic_alloc/x86.asm | rchildre3/Detours | 6782fe6e6ab11ae34ae66182aa5a73b5fdbcd839 | [
"MIT"
] | 2,204 | 2019-05-07T02:53:35.000Z | 2022-03-31T21:46:25.000Z | samples/dynamic_alloc/x86.asm | rchildre3/Detours | 6782fe6e6ab11ae34ae66182aa5a73b5fdbcd839 | [
"MIT"
] | 149 | 2019-05-07T17:12:00.000Z | 2022-03-25T06:11:40.000Z | samples/dynamic_alloc/x86.asm | rchildre3/Detours | 6782fe6e6ab11ae34ae66182aa5a73b5fdbcd839 | [
"MIT"
] | 557 | 2019-05-09T09:15:31.000Z | 2022-03-31T09:33:29.000Z | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; Detours Test Program
;;
;; Microsoft Research Detours Package
;;
;; Copyright (c) Microsoft Corporation. All rights reserved.
;;
.386
.model flat,C
PUBLIC CodeTemplate
PUBLIC CodeTemplate_End
_TEXT SEGMENT
CodeTemplate PROC
nop
nop
nop
mov eax, 0deadbeefh
nop
nop
nop
ret
CodeTemplate_End::
CodeTemplate ENDP
_TEXT ENDS
END
| 13.53125 | 77 | 0.595843 |
680b377a0e6b18aa8075319acc93189855ad8231 | 819 | asm | Assembly | oeis/084/A084769.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/084/A084769.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/084/A084769.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A084769: P_n(9), where P_n is n-th Legendre polynomial; also, a(n) = central coefficient of (1 + 9*x + 20*x^2)^n.
; Submitted by Jon Maiga
; 1,9,121,1809,28401,458649,7544041,125700129,2114588641,35836273449,610897146201,10463745263409,179939616743121,3104680678772409,53721299280288201,931852905510160449,16198821321758152641,282125899180824045129,4921904348860538090041,85995572736068650061649,1504546492386587297396401,26355130677901397130382809,462174549818532834373310121,8113081730503998573231399009,142550148223223547553595652001,2506796056196379540215125158249,44117524464944523856534713705241,776995647122867852278572784566129
mov $1,1
mov $2,1
mov $3,$0
lpb $3
mul $1,8
mul $1,$0
mul $2,$3
mul $2,$3
add $1,$2
sub $3,1
max $3,1
add $0,$3
lpe
mul $1,$0
div $1,$2
mov $0,$1
mul $0,8
add $0,1
| 35.608696 | 496 | 0.79243 |
22eea34f4c0576e16dd602f3784b61b77b03058c | 394 | asm | Assembly | oeis/284/A284922.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/284/A284922.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/284/A284922.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A284922: Numbers with digits 2 and 8 only.
; Submitted by Christian Krause
; 2,8,22,28,82,88,222,228,282,288,822,828,882,888,2222,2228,2282,2288,2822,2828,2882,2888,8222,8228,8282,8288,8822,8828,8882,8888,22222,22228,22282,22288,22822,22828,22882,22888,28222,28228,28282,28288,28822,28828
seq $0,32818 ; Numbers whose set of base-6 digits is {1,4}.
seq $0,7092 ; Numbers in base 6.
mul $0,2
| 49.25 | 213 | 0.748731 |
c9ebb794e5c2473b947927bf8d6b2be74cdab540 | 2,950 | asm | Assembly | wait_functions.asm | chris73it/C64_Scrolling_PAL | 00e64591d6d8618ef27548e02d1b91df4eb788a1 | [
"MIT"
] | 9 | 2019-02-25T13:27:33.000Z | 2022-01-17T23:58:11.000Z | wait_functions.asm | cbmeeks/C64_Scrolling_PAL | 550e07b286b8a04f66276bc91b53e82f79b8e55f | [
"MIT"
] | null | null | null | wait_functions.asm | cbmeeks/C64_Scrolling_PAL | 550e07b286b8a04f66276bc91b53e82f79b8e55f | [
"MIT"
] | 3 | 2019-02-25T13:27:36.000Z | 2020-07-25T07:25:12.000Z | #importonce
#import "helpers.asm"
/*
* Wait functions.
*/
// Waits 23 cycles minus 12 cycles for the caller's jsr and this function's rts.
wait_one_bad_line: //+6
:cycles(-6+23-6) // 23-12
rts //+6
wait_one_bad_line_minus_3: //+6
:cycles(-6+23-3-6) //20-12
rts //+6
// Waits 63 cycles minus 12 cycles for the caller's jsr and this function's rts.
wait_one_good_line: //+6
:cycles(-6+63-6) // 63-12
rts //+6
// Waits 63 cycles minus 12 cycles for the caller's jsr and this function's rts, and
// further minus 12 cycles for the caller's caller's jsr and corresponding rts.
// Basically this wait function is meant to be called from another wait function.
wait_one_good_line_minus_jsr_and_rts: //+6
:cycles(-6-6+63-6-6) // 63-24
rts //+6
// Waits 63 cycles minus 12 cycles for the caller's jsr and this function's rts, and
// further minus 12 cycles for the caller's caller's jsr and corresponding rts.
// Basically this wait function is meant to be called from another wait function.
wait_6_good_lines: //+6
jsr wait_one_good_line // 1: 63-12+6+6 = 63
jsr wait_one_good_line // 2: 63-12+6+6 = 63
jsr wait_one_good_line // 3: 63-12+6+6 = 63
jsr wait_one_good_line // 4: 63-12+6+6 = 63
jsr wait_one_good_line // 5: 63-12+6+6 = 63
// 6: Wait_one_good_line minus 24 cycles for 2 jsrs and 2 rtses.
jsr wait_one_good_line_minus_jsr_and_rts // 6: 63-12
rts //+6
// Wait one entire row worth of cycles minus the 12 cycles to call this function.
wait_1_row_with_20_cycles_bad_line: //+6
jsr wait_one_bad_line_minus_3 // 23-3 = 20
jsr wait_6_good_lines // 63*5 + 63-12+6+6 = 63*6
// Wait_one_good_line minus 24 cycles for 2 jsrs and 2 rtses.
jsr wait_one_good_line_minus_jsr_and_rts // 63-12
rts //+6
// Wait two full rows worth of cycles minus the 12 cycles to call this function.
wait_2_rows_with_20_cycles_bad_lines: //+6
jsr wait_1_row_with_20_cycles_bad_line
jsr wait_one_bad_line_minus_3 // 23-3 = 20
jsr wait_6_good_lines // 63*5 + 63-12+6+6 = 63*6
// Wait_one_good_line minus 24 cycles for 2 jsrs and 2 rtses.
jsr wait_one_good_line_minus_jsr_and_rts // 63-12
rts //+6
wait_4_rows_with_20_cycles_bad_lines: //+6
jsr wait_2_rows_with_20_cycles_bad_lines
jsr wait_1_row_with_20_cycles_bad_line
jsr wait_one_bad_line_minus_3 // 23-3 = 20
jsr wait_6_good_lines // 63*5 + 63-12+6+6 = 63*6
// Wait_one_good_line minus 24 cycles for 2 jsrs and 2 rtses.
jsr wait_one_good_line_minus_jsr_and_rts // 63-12
rts //+6
wait_8_rows_with_20_cycles_bad_lines: //+6
jsr wait_4_rows_with_20_cycles_bad_lines
jsr wait_2_rows_with_20_cycles_bad_lines
jsr wait_1_row_with_20_cycles_bad_line
jsr wait_one_bad_line_minus_3 // 23-3 = 20
jsr wait_6_good_lines // 63*5 + 63-12+6+6 = 63*6
// Wait_one_good_line minus 24 cycles for 2 jsrs and 2 rtses.
jsr wait_one_good_line_minus_jsr_and_rts // 63-12
rts //+6
| 38.311688 | 85 | 0.719322 |
57ddb1aef0156c4e21354f38fb86ed8a37cd585e | 4,588 | asm | Assembly | cli/c64/afli.asm | micheldebree/retropixels | 39913cf1014aa16e7757eed32a54eadeba3c5fbb | [
"MIT"
] | 66 | 2017-10-06T06:38:42.000Z | 2022-02-10T17:21:36.000Z | cli/c64/afli.asm | micheldebree/retropixels | 39913cf1014aa16e7757eed32a54eadeba3c5fbb | [
"MIT"
] | 64 | 2016-09-29T06:16:28.000Z | 2022-02-27T23:21:31.000Z | cli/c64/afli.asm | micheldebree/retropixels | 39913cf1014aa16e7757eed32a54eadeba3c5fbb | [
"MIT"
] | 4 | 2017-11-04T17:04:26.000Z | 2021-06-02T05:09:36.000Z | !include "macros.asm"
!let tab18 = $0e00
!let tab11 = $0f00
!let fli = $4000
!let bgcolor = $7f40
+basic_upstart(begin)
begin:
jmp start
irq0: pha
lda $d019
sta $d019
inc $d012
lda #<irq1
sta $fffe ; set up 2nd IRQ to get a stable IRQ
cli
; Following here: A bunch of NOPs which allow the 2nd IRQ
; to be triggered with either 0 or 1 clock cycle delay
; resulting in an "almost" stable IRQ.
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
irq1:
ntsc1: lda #$ea ; modified to NOP NOP on NTSC
lda #$08
sta $d018 ; setup first color RAM address early
lda #$38
sta $d011 ; setup first DMA access early
pla
pla
pla
lda $d019
sta $d019
lda #$2d
sta $d012
lda #<irq0
sta $fffe ; switch IRQ back to first stabilizer IRQ
lda $d012
cmp $d012 ; stabilize last jittering cycle
beq delay ; if equal, 2 cycles delay. else 3 cycles delay
delay:
stx savex+1
ldx #$0d
wait: dex
bne wait
ntsc2: lda #$ea ; modified to NOP NOP on NTSC
ntsc3: lda #$ea ; modified to NOP NOP on NTSC
; Following here is the main FLI loop which forces the VIC-II to read
; new color data each rasterline. The loop is exactly 23 clock cycles
; long so together with 40 cycles of color DMA this will result in
; 63 clock cycles which is exactly the length of a PAL C64 rasterline.
nop
nop
l0:
lda tab18+1,x
sta $d018 ; set new color RAM address
lda tab11+1,x
sta $d011 ; force new color DMA
inx ; FLI bug $D800 color = 8 (orange)
cpx #199 ; last rasterline?
ntsc4: bne l0 ; branches to l0-1 on NTSC for 2 extra cycles per rasterline
lda #$70
sta $d011 ; open upper/lower border
; lda $d016
; eor #$01 ; IFLI: 1 hires pixel shift every 2nd frame
; sta $d016
; lda $dd00
; eor #$02 ; IFLI: flip between banks $4000 and $C000 every frame
; sta $dd00
savex: ldx #$00
pla
nmi: rti
start:
sei
lda #$35
sta $01 ; disable all ROMs
lda #$7f
sta $dc0d ; no timer IRQs
lda $dc0d ; clear timer IRQ flags
lda #$2b
sta $d011
lda #$2d
sta $d012
lda #<nmi
sta $fffa
lda #>nmi
sta $fffb ; dummy NMI to avoid crashing due to RESTORE
lda #<irq0
sta $fffe
lda #>irq0
sta $ffff
lda #$01
sta $d01a ; enable raster IRQs
jsr initgfx
jsr inittables
jsr ntscfix
lda $d019
dec $d019 ; clear raster IRQ flag
cli
jmp * ; that's it, no more action needed
initgfx:
lda #$00
sta $d015 ; disable sprites
sta $d020 ; border color black
lda bgcolor ; background color
sta $d021
lda #$ff
sta $7fff ; upper/lower border black
lda #$08
sta $d016
lda #$08
sta $d018
lda #$96 ; VIC bank $4000-$7FFF
sta $dd00
rts
inittables: {
ldx #$00
loop: txa
asl
asl
asl
asl
and #$70 ; color RAMs at $4000
ora #$08 ; bitmap data at $6000
sta tab18,x ; calculate $D018 table
txa
and #$07
ora #$38 ; bitmap
sta tab11,x ; calculate $D011 table
inx
bne loop
rts
}
ntscfix: {
bit $d011
bmi ntscfix
waitforrasterline256:
bit $d011 ; wait for rasterline 256
bpl waitforrasterline256
lda #$00
waitforrasterlineupper:
cmp $d012
bcs waitforrasterlinelower
lda $d012 ; get rasterline low byte
waitforrasterlinelower:
bit $d011
bmi waitforrasterlineupper
cmp #$20 ; PAL: $37, NTSC: $05 or $06
bcs done
lda #$ea
sta ntsc1
sta ntsc2
sta ntsc3
dec ntsc4+1
done:
rts
}
!fill fli - * - 2, 0
| 23.055276 | 83 | 0.487358 |
7143a9609b86c834883963a98be80f87e766fff3 | 665 | asm | Assembly | libsrc/_DEVELOPMENT/adt/p_list/z80/asm_p_list_next.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/adt/p_list/z80/asm_p_list_next.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/adt/p_list/z80/asm_p_list_next.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; ===============================================================
; Sep 2014
; ===============================================================
;
; void *p_list_next(void *item)
;
; Return next item in list.
;
; ===============================================================
SECTION code_clib
SECTION code_adt_p_list
PUBLIC asm_p_list_next
EXTERN asm_p_forward_list_next
defc asm_p_list_next = asm_p_forward_list_next
; enter : hl = void *item
;
; exit : success
;
; hl = void *item_next
; nz flag set
;
; fail if no next item
;
; hl = 0
; z flag set
;
; uses : af, hl
| 19.558824 | 65 | 0.398496 |
f7f18d2de6b36979a1827877f9731fc6f3318031 | 2,424 | asm | Assembly | external/source/shellcode/windows/x64/src/block/block_recv.asm | madhavarao-yejarla/VoIP | 3f7d0cdc0bb1423f9e952e411d073a1424ef9f5e | [
"Apache-2.0",
"BSD-3-Clause"
] | 35 | 2015-08-08T07:23:38.000Z | 2021-04-07T18:00:44.000Z | external/source/shellcode/windows/x64/src/block/block_recv.asm | madhavarao-yejarla/VoIP | 3f7d0cdc0bb1423f9e952e411d073a1424ef9f5e | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2019-02-12T12:13:53.000Z | 2019-02-12T12:13:53.000Z | external/source/shellcode/windows/x64/src/block/block_recv.asm | fozavci/metasploit-framework-with-viproy | 3f7d0cdc0bb1423f9e952e411d073a1424ef9f5e | [
"Apache-2.0",
"BSD-3-Clause"
] | 23 | 2015-08-11T05:07:47.000Z | 2020-11-06T03:55:10.000Z | ;-----------------------------------------------------------------------------;
; Author: Stephen Fewer (stephen_fewer[at]harmonysecurity[dot]com)
; Compatible: Windows 7, 2003
; Architecture: x64
;-----------------------------------------------------------------------------;
[BITS 64]
; Compatible: block_bind_tcp, block_reverse_tcp
; Input: RBP must be the address of 'api_call'. RDI must be the socket.
; Output: None.
; Clobbers: RAX, RBX, RCX, RDX, RSI, R8, R9, R15
recv:
; Receive the size of the incoming second stage...
sub rsp, 16 ; alloc some space (16 bytes) on stack for to hold the second stage length
mov rdx, rsp ; set pointer to this buffer
xor r9, r9 ; flags
push byte 4 ;
pop r8 ; length = sizeof( DWORD );
mov rcx, rdi ; the saved socket
mov r10d, 0x5FC8D902 ; hash( "ws2_32.dll", "recv" )
call rbp ; recv( s, &dwLength, 4, 0 );
add rsp, 32 ; we restore RSP from the api_call so we can pop off RSI next
; Alloc a RWX buffer for the second stage
pop rsi ; pop off the second stage length
push byte 0x40 ;
pop r9 ; PAGE_EXECUTE_READWRITE
push 0x1000 ;
pop r8 ; MEM_COMMIT
mov rdx, rsi ; the newly recieved second stage length.
xor rcx, rcx ; NULL as we dont care where the allocation is.
mov r10d, 0xE553A458 ; hash( "kernel32.dll", "VirtualAlloc" )
call rbp ; VirtualAlloc( NULL, dwLength, MEM_COMMIT, PAGE_EXECUTE_READWRITE );
; Receive the second stage and execute it...
mov rbx, rax ; rbx = our new memory address for the new stage
mov r15, rax ; save the address so we can jump into it later
read_more: ;
xor r9, r9 ; flags
mov r8, rsi ; length
mov rdx, rbx ; the current address into our second stages RWX buffer
mov rcx, rdi ; the saved socket
mov r10d, 0x5FC8D902 ; hash( "ws2_32.dll", "recv" )
call rbp ; recv( s, buffer, length, 0 );
add rbx, rax ; buffer += bytes_received
sub rsi, rax ; length -= bytes_received
test rsi, rsi ; test length
jnz short read_more ; continue if we have more to read
jmp r15 ; return into the second stage | 49.469388 | 100 | 0.541254 |
917df9aaf25e30ebd8842fd1b1959625cb72c33d | 19,025 | asm | Assembly | externals/mpir-3.0.0/mpn/x86_64w/k8/mul_basecase.asm | JaminChan/eos_win | c03e57151cfe152d0d3120abb13226f4df74f37e | [
"MIT"
] | 12 | 2021-09-29T14:50:06.000Z | 2022-03-31T15:01:21.000Z | externals/mpir-3.0.0/mpn/x86_64w/k8/mul_basecase.asm | JaminChan/eos_win | c03e57151cfe152d0d3120abb13226f4df74f37e | [
"MIT"
] | 15 | 2021-12-24T22:53:49.000Z | 2021-12-25T10:03:13.000Z | LibSource/mpir/mpn/x86_64w/k8/mul_basecase.asm | ekzyis/CrypTool-2 | 1af234b4f74486fbfeb3b3c49228cc36533a8c89 | [
"Apache-2.0"
] | 10 | 2021-10-17T19:46:51.000Z | 2022-03-18T02:57:57.000Z | ; PROLOGUE(mpn_mul_basecase)
; Copyright 2009 Jason Moxham
;
; Windows Conversion Copyright 2008 Brian Gladman
;
; This file is part of the MPIR Library.
;
; The MPIR Library is free software; you can redistribute it and/or modify
; it under the terms of the GNU Lesser General Public License as published
; by the Free Software Foundation; either version 2.1 of the License, or (at
; your option) any later version.
; The MPIR Library is distributed in the hope that it will be useful, but
; WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
; License for more details.
; You should have received a copy of the GNU Lesser General Public License
; along with the MPIR Library; see the file COPYING.LIB. If not, write
; to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
; Boston, MA 02110-1301, USA.
;
; mp_limb_t mpn_mul_basecase(mp_ptr, mp_ptr, mp_size_t, mp_ptr, mp_size_t)
; rax rdi rsi rdx rcx r8
; rax rcx rdx r8 r9 [rsp+40]
%include "yasm_mac.inc"
%macro addmul2lp 0
xalign 16
%%1:mov rax, [rsi+rbx*8]
mul r8
add r9, rax
mov rax, [rsi+rbx*8+8]
adc r10, rdx
mov r11, 0
mul rcx
add [rdi+rbx*8], r12
adc r9, rax
mov r12, 0
adc r10, rdx
mov rax, [rsi+rbx*8+8]
adc r11, 0
mul r8
add [rdi+rbx*8+8], r9
adc r10, rax
adc r11, rdx
mov rax, [rsi+rbx*8+16]
mul rcx
add r10, rax
mov rax, [rsi+rbx*8+16]
adc r11, rdx
adc r12, 0
mul r8
add [rdi+rbx*8+16], r10
mov r9, 0
adc r11, rax
mov r10, 0
mov rax, [rsi+rbx*8+24]
adc r12, rdx
mov r15, r15
mul rcx
add r11, rax
mov rax, [rsi+rbx*8+24]
adc r12, rdx
adc r9, 0
mul r8
add [rdi+rbx*8+24], r11
adc r12, rax
adc r9, rdx
mov rax, [rsi+rbx*8+32]
mul rcx
add r12, rax
adc r9, rdx
adc r10, 0
add rbx, 4
jnc %%1
%endmacro
%macro addmul2pro0 0
mov rcx, [r13+r15*8]
mul rcx
mov r12, rax
mov r9, rdx
mov r10, 0
mov r8, [r13+r15*8+8]
%endmacro
%macro addmul2epi0 0
mov rbx, r14
mov rax, [rsi+24]
mul r8
add [rdi+24], r12
adc r9, rax
adc r10, rdx
add r15, 2
mov rax, [rsi+r14*8]
mov [rdi+32], r9
lea rdi, [rdi+16]
mov [rdi+24], r10
%endmacro
%macro addmul2pro1 0
mov rcx, [r13+r15*8]
mul rcx
mov r12, rax
mov r10, 0
mov r9, rdx
mov r8, [r13+r15*8+8]
%endmacro
%macro addmul2epi1 0
mov rax, [rsi+16]
lea rdi, [rdi+16]
mul r8
add r9, rax
mov rax, [rsi+24]
mov r11, 0
adc r10, rdx
mul rcx
add [rdi], r12
adc r9, rax
adc r10, rdx
adc r11, 0
mov rax, [rsi+24]
mul r8
add [rdi+8], r9
adc r10, rax
adc r11, rdx
add r15, 2
mov rbx, r14
mov rax, [rsi+r14*8]
mov [rdi+24], r11
mov [rdi+16], r10
%endmacro
%macro addmul2pro2 0
mov rcx, [r13+r15*8]
mul rcx
mov r10, 0
mov r12, rax
mov r9, rdx
mov r8, [r13+r15*8+8]
%endmacro
%macro addmul2epi2 0
mov rax, [rsi+8]
lea rdi, [rdi+16]
mul r8
add r9, rax
mov rax, [rsi+16]
adc r10, rdx
mov r11, 0
mul rcx
add [rdi-8], r12
adc r9, rax
mov r12, 0
adc r10, rdx
mov rax, [rsi+16]
adc r11, 0
mul r8
add [rdi], r9
adc r10, rax
adc r11, rdx
mov rax, [rsi+24]
mul rcx
add r10, rax
mov rax, [rsi+24]
adc r11, rdx
adc r12, 0
mul r8
add [rdi+8], r10
adc r11, rax
adc r12, rdx
mov rax, [rsi+r14*8]
mov [rdi+16], r11
mov [rdi+24], r12
add r15, 2
mov rbx, r14
%endmacro
%macro addmul2pro3 0
mov rcx, [r13+r15*8]
mul rcx
mov r12, rax
mov r9, rdx
mov r8, [r13+r15*8+8]
mov r10, 0
%endmacro
%macro addmul2epi3 0
mov rax, [rsi]
lea rdi, [rdi+16]
mul r8
add r9, rax
mov rax, [rsi+8]
adc r10, rdx
mov r11, 0
mul rcx
add [rdi-16], r12
adc r9, rax
mov r12, 0
adc r10, rdx
mov rax, [rsi+8]
adc r11, 0
mul r8
add [rdi-8], r9
adc r10, rax
adc r11, rdx
mov rax, [rsi+16]
mul rcx
add r10, rax
mov rax, [rsi+16]
adc r11, rdx
adc r12, 0
mul r8
add [rdi], r10
mov r9, 0
adc r11, rax
mov r10, 0
mov rax, [rsi+24]
adc r12, rdx
mov r15, r15
mul rcx
add r11, rax
mov rax, [rsi+24]
adc r12, rdx
adc r9, 0
mul r8
add [rdi+8], r11
adc r12, rax
adc r9, rdx
mov rax, [rsi+r14*8]
mov [rdi+16], r12
mov [rdi+24], r9
add r15, 2
mov rbx, r14
%endmacro
%macro mul2lp 0
xalign 16
%%1:mov rax, [rsi+rbx*8]
mul r8
add r9, rax
mov rax, [rsi+rbx*8+8]
adc r10, rdx
mov r11, 0
mul rcx
mov [rdi+rbx*8], r12
add r9, rax
mov r12, 0
adc r10, rdx
mov rax, [rsi+rbx*8+8]
adc r11, 0
mul r8
mov [rdi+rbx*8+8], r9
add r10, rax
adc r11, rdx
mov rax, [rsi+rbx*8+16]
mul rcx
add r10, rax
mov rax, [rsi+rbx*8+16]
adc r11, rdx
adc r12, 0
mul r8
mov [rdi+rbx*8+16], r10
mov r9, 0
add r11, rax
mov r10, 0
mov rax, [rsi+rbx*8+24]
adc r12, rdx
mov r15, r15
mul rcx
add r11, rax
mov rax, [rsi+rbx*8+24]
adc r12, rdx
adc r9, 0
mul r8
mov [rdi+rbx*8+24], r11
add r12, rax
adc r9, rdx
mov rax, [rsi+rbx*8+32]
mul rcx
add r12, rax
adc r9, rdx
adc r10, 0
add rbx, 4
jnc %%1
%endmacro
%macro mul2pro0 0
mov rcx, [r13+r15*8]
mul rcx
mov r12, rax
mov r9, rdx
mov r10, 0
mov r8, [r13+r15*8+8]
%endmacro
%macro mul2epi0 0
mov rbx, r14
mov rax, [rsi+24]
mul r8
mov [rdi+24], r12
add r9, rax
adc r10, rdx
add r15, 2
mov rax, [rsi+r14*8]
mov [rdi+32], r9
lea rdi, [rdi+16]
mov [rdi+24], r10
%endmacro
%macro mul2pro1 0
mov rcx, [r13+r15*8]
mul rcx
mov r12, rax
mov r10, 0
mov r9, rdx
mov r8, [r13+r15*8+8]
%endmacro
%macro mul2epi1 0
mov rax, [rsi+16]
lea rdi, [rdi+16]
mul r8
add r9, rax
mov rax, [rsi+24]
mov r11, 0
adc r10, rdx
mul rcx
mov [rdi], r12
add r9, rax
adc r10, rdx
adc r11, 0
mov rax, [rsi+24]
mul r8
mov [rdi+8], r9
add r10, rax
adc r11, rdx
add r15, 2
mov rbx, r14
mov rax, [rsi+r14*8]
mov [rdi+24], r11
mov [rdi+16], r10
%endmacro
%macro mul2pro2 0
mov rcx, [r13+r15*8]
mul rcx
mov r10, 0
mov r12, rax
mov r9, rdx
mov r8, [r13+r15*8+8]
%endmacro
%macro mul2epi2 0
mov rax, [rsi+8]
lea rdi, [rdi+16]
mul r8
add r9, rax
mov rax, [rsi+16]
adc r10, rdx
mov r11, 0
mul rcx
mov [rdi-8], r12
add r9, rax
mov r12, 0
adc r10, rdx
mov rax, [rsi+16]
adc r11, 0
mul r8
mov [rdi], r9
add r10, rax
adc r11, rdx
mov rax, [rsi+24]
mul rcx
add r10, rax
mov rax, [rsi+24]
adc r11, rdx
adc r12, 0
mul r8
mov [rdi+8], r10
add r11, rax
adc r12, rdx
mov rax, [rsi+r14*8]
mov [rdi+16], r11
mov [rdi+24], r12
add r15, 2
mov rbx, r14
%endmacro
%macro mul2pro3 0
mov rcx, [r13+r15*8]
mul rcx
mov r12, rax
mov r9, rdx
mov r8, [r13+r15*8+8]
mov r10, 0
%endmacro
%macro mul2epi3 0
mov rax, [rsi]
lea rdi, [rdi+16]
mul r8
add r9, rax
mov rax, [rsi+8]
adc r10, rdx
mov r11, 0
mul rcx
mov [rdi-16], r12
add r9, rax
mov r12, 0
adc r10, rdx
mov rax, [rsi+8]
adc r11, 0
mul r8
mov [rdi-8], r9
add r10, rax
adc r11, rdx
mov rax, [rsi+16]
mul rcx
add r10, rax
mov rax, [rsi+16]
adc r11, rdx
adc r12, 0
mul r8
mov [rdi], r10
mov r9, 0
add r11, rax
mov r10, 0
mov rax, [rsi+24]
adc r12, rdx
mov r15, r15
mul rcx
add r11, rax
mov rax, [rsi+24]
adc r12, rdx
adc r9, 0
mul r8
mov [rdi+8], r11
add r12, rax
adc r9, rdx
mov rax, [rsi+r14*8]
mov [rdi+16], r12
mov [rdi+24], r9
add r15, 2
mov rbx, r14
%endmacro
%macro mul1lp 0
xalign 16
%%1:
mov r10, 0
mul r8
mov [rdi+rbx*8-8], r12
add r9, rax
db 0x26
adc r10, rdx
mov rax, [rsi+rbx*8+8]
mul r8
mov [rdi+rbx*8], r9
add r10, rax
mov r11d, 0
adc r11, rdx
mov rax, [rsi+rbx*8+16]
mov r12, 0
mov r9, 0
mul r8
mov [rdi+rbx*8+8], r10
db 0x26
add r11, rax
db 0x26
adc r12, rdx
mov rax, [rsi+rbx*8+24]
mul r8
mov [rdi+rbx*8+16], r11
db 0x26
add r12, rax
db 0x26
adc r9, rdx
add rbx, 4
mov rax, [rsi+rbx*8]
jnc %%1
%endmacro
; rbx is 0
%macro mulnext0 0
mov rax, [rsi+8]
mul r8
mov [rdi], r9
add r10, rax
mov r11d, 0
adc r11, rdx
mov rax, [rsi+16]
mov r12d, 0
mul r8
mov [rdi+8], r10
add r11, rax
adc r12, rdx
mov rax, [rsi+24]
mul r8
mov [rdi+16], r11
add r12, rax
adc rdx, 0
mov [rdi+24], r12
mov rax, [rsi+r14*8]
mov [rdi+32], rdx
inc r15
lea rdi, [rdi+8]
mov rbx, r14
%endmacro
; rbx is 1
%macro mulnext1 0
mov rax, [rsi+16]
mul r8
mov [rdi+8], r9
add r10, rax
mov r12d, 0
adc r12, rdx
mov rax, [rsi+24]
mul r8
mov [rdi+16], r10
add r12, rax
adc rdx, 0
mov [rdi+24], r12
mov [rdi+32], rdx
inc r15
lea rdi, [rdi+8]
mov rbx, r14
mov rax, [rsi+r14*8]
%endmacro
; rbx is 2
%macro mulnext2 0
mov rax, [rsi+24]
mul r8
mov [rdi+16], r9
add r10, rax
mov r11d, 0
adc r11, rdx
mov [rdi+24], r10
mov [rdi+32], r11
inc r15
lea rdi, [rdi+8]
mov rax, [rsi+r14*8]
mov rbx, r14
%endmacro
; rbx is 3
%macro mulnext3 0
mov [rdi+24], r9
mov [rdi+32], r10
inc r15
lea rdi, [rdi+8]
mov rax, [rsi+r14*8]
mov rbx, r14
%endmacro
%macro mpn_addmul_2_int 1
jz %%2
xalign 16
%%1:addmul2pro%1
addmul2lp
addmul2epi%1
jnz %%1
%%2:
%endmacro
%macro oldmulnext0 0
mov rax, [rsi+r11*8+16]
mul r13
mov [rdi+r11*8+8], r9
add r10, rax
mov ebx, 0
adc rbx, rdx
mov rax, [rsi+r11*8+24]
mov r12d, 0
mul r13
mov [rdi+r11*8+16], r10
add rbx, rax
adc r12, rdx
mov rax, [rsi+r11*8+32]
mul r13
mov [rdi+r11*8+24], rbx
add r12, rax
adc rdx, 0
mov [rdi+r11*8+32], r12
mov rax, [rsi+r14*8]
mov [rdi+r11*8+40], rdx
inc r8
mov r11, r14
%endmacro
%macro oldmulnext1 0
mov rax, [rsi+r11*8+16]
mul r13
mov [rdi+r11*8+8], r9
add r10, rax
mov r12d, 0
adc r12, rdx
mov rax, [rsi+r11*8+24]
mul r13
mov [rdi+r11*8+16], r10
add r12, rax
adc rdx, 0
mov [rdi+r11*8+24], r12
mov [rdi+r11*8+32], rdx
inc r8
lea rdi, [rdi+8]
mov r11, r14
mov rax, [rsi+r14*8]
%endmacro
%macro oldmulnext2 0
mov rax, [rsi+r11*8+16]
mul r13
mov [rdi+r11*8+8], r9
add r10, rax
mov ebx, 0
adc rbx, rdx
mov [rdi+r11*8+16], r10
mov [rdi+r11*8+24], rbx
inc r8
mov rax, [rsi+r14*8]
mov r11, r14
%endmacro
%macro oldmulnext3 0
mov [rdi+r11*8+8], r9
mov [rdi+r11*8+16], r10
inc r8
mov rax, [rsi+r14*8]
mov r11, r14
%endmacro
%macro oldaddmulpro0 0
mov r13, [rcx+r8*8]
db 0x26
mul r13
db 0x26
mov r12, rax
mov rax, [rsi+r14*8+8]
db 0x26
mov r9, rdx
lea rdi, [rdi+8]
%endmacro
%macro oldaddmulnext0 0
mov r10d, 0
mul r13
add [rdi], r12
adc r9, rax
adc r10, rdx
mov rax, [rsi+16]
mul r13
add [rdi+8], r9
adc r10, rax
mov ebx, 0
adc rbx, rdx
mov rax, [rsi+24]
mov r12d, 0
mov r11, r14
mul r13
add [rdi+16], r10
adc rbx, rax
adc r12, rdx
mov rax, [rsi+32]
mul r13
add [rdi+24], rbx
adc r12, rax
adc rdx, 0
add [rdi+32], r12
mov rax, [rsi+r14*8]
adc rdx, 0
inc r8
mov [rdi+40], rdx
%endmacro
%macro oldaddmulpro1 0
mov r13, [rcx+r8*8]
mul r13
mov r12, rax
mov rax, [rsi+r14*8+8]
mov r9, rdx
%endmacro
%macro oldaddmulnext1 0
mov r10d, 0
mul r13
add [rdi+8], r12
adc r9, rax
adc r10, rdx
mov rax, [rsi+24]
mul r13
lea rdi, [rdi+8]
add [rdi+8], r9
adc r10, rax
mov r12d, 0
mov rax, [rsi+32]
adc r12, rdx
mov r11, r14
mul r13
add [rdi+16], r10
adc r12, rax
adc rdx, 0
add [rdi+24], r12
adc rdx, 0
mov [rdi+32], rdx
inc r8
mov rax, [rsi+r14*8]
%endmacro
%macro oldaddmulpro2 0
mov r13, [rcx+r8*8]
lea rdi, [rdi+8]
mul r13
mov r12, rax
mov rax, [rsi+r14*8+8]
mov r9, rdx
%endmacro
%macro oldaddmulnext2 0
mov r10d, 0
mul r13
add [rdi+r11*8], r12
adc r9, rax
adc r10, rdx
mov rax, [rsi+r11*8+16]
mul r13
mov ebx, 0
add [rdi+r11*8+8], r9
adc r10, rax
adc rbx, rdx
mov rax, [rsi+r14*8]
add [rdi+r11*8+16], r10
adc rbx, 0
mov [rdi+r11*8+24], rbx
inc r8
mov r11, r14
%endmacro
%macro oldaddmulpro3 0
mov r13, [rcx+r8*8]
db 0x26
mul r13
db 0x26
mov r12, rax
db 0x26
lea rdi, [rdi+8]
db 0x26
mov r9, rdx
mov rax, [rsi+r14*8+8]
%endmacro
%macro oldaddmulnext3 0
mov r11, r14
mul r13
add [rdi+24], r12
adc r9, rax
adc rdx, 0
add [rdi+32], r9
mov rax, [rsi+r14*8]
adc rdx, 0
inc r8
mov [rdi+40], rdx
%endmacro
%macro oldmpn_muladdmul_1_int 1
oldmulnext%1
jz %%2
xalign 16
%%1:oldaddmulpro%1
oldaddmulnext%1
jnz %%1
%%2:
%endmacro
CPU Core2
BITS 64
; mp_limb_t mpn_mul_basecase(mp_ptr, mp_ptr, mp_size_t, mp_ptr, mp_size_t)
; rax rdi rsi rdx rcx r8
; rax rcx rdx r8 r9 [rsp+40]
%define reg_save_list rbx, rsi, rdi, r12, r13, r14
LEAF_PROC mpn_mul_basecase
; the current mul does not handle case one
cmp r8d, 4
jg fiveormore
cmp r8d, 1
je one
WIN64_GCC_PROC mpn_k8_mbc1, 5, frame
mov r14, 5
sub r14, rdx
lea rdi, [rdi+rdx*8-40]
lea rcx, [rcx+r8*8]
neg r8
lea rsi, [rsi+rdx*8-40]
mov rax, [rsi+r14*8]
mov r13, [rcx+r8*8]
mov r11, r14
mul r13
mov r12, rax
mov rax, [rsi+r14*8+8]
mov r9, rdx
mov r10d, 0
mul r13
mov [rdi+r11*8], r12
add r9, rax
adc r10, rdx
cmp r11, 2
ja .4
jz .3
jp .2
.1: oldmpn_muladdmul_1_int 0
jmp .5
.2: oldmpn_muladdmul_1_int 1
jmp .5
.3: oldmpn_muladdmul_1_int 2
jmp .5
.4: oldmpn_muladdmul_1_int 3
.5: WIN64_GCC_END frame
; rdx >= 5 as we dont have an inner jump
; (rdi,rdx+r8)=(rsi,rdx)*(rcx,r8)
%undef reg_save_list
%define reg_save_list rbx, rsi, rdi, r12, r13, r14, r15
xalign 16
fiveormore:
WIN64_GCC_PROC mpn_k8_mbc2, 5, frame
movsxd rdx, edx
movsxd r8, r8d
mov r14, 4
sub r14, rdx
lea rdi, [rdi+rdx*8-32]
lea rsi, [rsi+rdx*8-32]
mov r13, rcx
mov r15, r8
lea r13, [r13+r15*8]
neg r15
mov rbx, r14
mov rax, [rsi+r14*8]
bt r15, 0
jnc .12
.6: inc rbx
mov r8, [r13+r15*8]
mul r8
mov r12, rax
mov rax, [rsi+r14*8+8]
mov r9, rdx
cmp rbx, 0
jge .7
mul1lp
.7: mov r10d, 0
mul r8
mov [rdi+rbx*8-8], r12
add r9, rax
adc r10, rdx
cmp rbx, 2
ja .11
jz .10
jp .9
.8: mulnext0
jmp .20
.9: mulnext1
jmp .14
.10:mulnext2
jmp .16
.11:mulnext3
jmp .18
; as all the mul2pro? are the same
.12:mul2pro0
mul2lp
cmp rbx, 2
ja .19
jz .17
jp .15
.13:mul2epi3
.14:mpn_addmul_2_int 3
WIN64_GCC_EXIT frame
.15:mul2epi2
.16:mpn_addmul_2_int 2
WIN64_GCC_EXIT frame
.17:mul2epi1
.18:mpn_addmul_2_int 1
WIN64_GCC_EXIT frame
.19:mul2epi0
.20:mpn_addmul_2_int 0
xalign 16
.21:WIN64_GCC_END frame
xalign 16
one:mov rax, [rdx]
mul qword [r9]
mov [rcx], rax
mov [rcx+8], rdx
ret
end
| 20.837897 | 77 | 0.467385 |
57f66eb51e2ce867d6093b89d4a8efdb89b560df | 2,407 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_18_9.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_18_9.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_18_9.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r15
push %rdi
push %rdx
lea addresses_A_ht+0x1b358, %rdi
clflush (%rdi)
xor $47308, %rdx
movw $0x6162, (%rdi)
nop
nop
nop
nop
sub $4041, %rdx
lea addresses_normal_ht+0x8332, %r12
nop
cmp $6272, %r14
mov (%r12), %r15
nop
nop
nop
add $30353, %r10
pop %rdx
pop %rdi
pop %r15
pop %r14
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
// Store
lea addresses_A+0x47f4, %rsi
inc %r9
mov $0x5152535455565758, %rbp
movq %rbp, %xmm5
movups %xmm5, (%rsi)
cmp $19738, %rbp
// Store
lea addresses_WC+0x3580, %r9
nop
nop
and $44777, %r13
movb $0x51, (%r9)
and %r13, %r13
// REPMOV
mov $0x490, %rsi
lea addresses_D+0x14f43, %rdi
nop
nop
cmp %r11, %r11
mov $35, %rcx
rep movsl
nop
nop
nop
nop
nop
cmp %rcx, %rcx
// Store
lea addresses_WC+0x90, %r9
nop
dec %rsi
movw $0x5152, (%r9)
nop
nop
nop
sub $20815, %rdi
// Faulty Load
lea addresses_PSE+0xe490, %r10
nop
nop
cmp $23621, %r13
vmovups (%r10), %ymm7
vextracti128 $1, %ymm7, %xmm7
vpextrq $1, %xmm7, %rcx
lea oracles, %r11
and $0xff, %rcx
shlq $12, %rcx
mov (%r11,%rcx,1), %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 2}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC', 'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 4}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_P'}, 'dst': {'same': False, 'congruent': 0, 'type': 'addresses_D'}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 9}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 1}}
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 1}}
{'33': 18}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
| 19.41129 | 141 | 0.640216 |
c6d0d898bcd166129f5c3e89234578dd8fd1b434 | 3,804 | asm | Assembly | OvmfPkg/ResetVector/Ia32/Flat32ToFlat64.asm | vijayakumar-xlnx/edk2 | cac83b6f3bfa361bb2c561675c3247ff88341067 | [
"Python-2.0",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-2-Clause-Patent",
"BSD-3-Clause"
] | 31 | 2019-05-14T09:00:56.000Z | 2022-03-16T12:36:49.000Z | OvmfPkg/ResetVector/Ia32/Flat32ToFlat64.asm | vijayakumar-xlnx/edk2 | cac83b6f3bfa361bb2c561675c3247ff88341067 | [
"Python-2.0",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-2-Clause-Patent",
"BSD-3-Clause"
] | 21 | 2020-03-09T18:54:14.000Z | 2022-01-01T00:30:53.000Z | OvmfPkg/ResetVector/Ia32/Flat32ToFlat64.asm | spikeburton/edk2 | b8649cf2a3e673a4a8cb6c255e394b354b771550 | [
"Python-2.0",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-2-Clause-Patent",
"BSD-3-Clause"
] | 25 | 2018-09-05T02:46:06.000Z | 2022-03-20T18:58:40.000Z | ;------------------------------------------------------------------------------
; @file
; Transition from 32 bit flat protected mode into 64 bit flat protected mode
;
; Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>
; Copyright (c) 2020, Advanced Micro Devices, Inc. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
;------------------------------------------------------------------------------
BITS 32
;
; Modified: EAX, ECX, EDX
;
Transition32FlatTo64Flat:
OneTimeCall SetCr3ForPageTables64
mov eax, cr4
bts eax, 5 ; enable PAE
mov cr4, eax
mov ecx, 0xc0000080
rdmsr
bts eax, 8 ; set LME
wrmsr
;
; SEV-ES mitigation check support
;
xor ebx, ebx
cmp byte[SEV_ES_WORK_AREA], 0
jz EnablePaging
;
; SEV-ES is active, perform a quick sanity check against the reported
; encryption bit position. This is to help mitigate against attacks where
; the hypervisor reports an incorrect encryption bit position.
;
; This is the first step in a two step process. Before paging is enabled
; writes to memory are encrypted. Using the RDRAND instruction (available
; on all SEV capable processors), write 64-bits of random data to the
; SEV_ES_WORK_AREA and maintain the random data in registers (register
; state is protected under SEV-ES). This will be used in the second step.
;
RdRand1:
rdrand ecx
jnc RdRand1
mov dword[SEV_ES_WORK_AREA_RDRAND], ecx
RdRand2:
rdrand edx
jnc RdRand2
mov dword[SEV_ES_WORK_AREA_RDRAND + 4], edx
;
; Use EBX instead of the SEV_ES_WORK_AREA memory to determine whether to
; perform the second step.
;
mov ebx, 1
EnablePaging:
mov eax, cr0
bts eax, 31 ; set PG
mov cr0, eax ; enable paging
jmp LINEAR_CODE64_SEL:ADDR_OF(jumpTo64BitAndLandHere)
BITS 64
jumpTo64BitAndLandHere:
;
; Check if the second step of the SEV-ES mitigation is to be performed.
;
test ebx, ebx
jz InsnCompare
;
; SEV-ES is active, perform the second step of the encryption bit postion
; mitigation check. The ECX and EDX register contain data from RDRAND that
; was stored to memory in encrypted form. If the encryption bit position is
; valid, the contents of ECX and EDX will match the memory location.
;
cmp dword[SEV_ES_WORK_AREA_RDRAND], ecx
jne SevEncBitHlt
cmp dword[SEV_ES_WORK_AREA_RDRAND + 4], edx
jne SevEncBitHlt
;
; If SEV or SEV-ES is active, perform a quick sanity check against
; the reported encryption bit position. This is to help mitigate
; against attacks where the hypervisor reports an incorrect encryption
; bit position. If SEV is not active, this check will always succeed.
;
; The cmp instruction compares the first four bytes of the cmp instruction
; itself (which will be read decrypted if SEV or SEV-ES is active and the
; encryption bit position is valid) against the immediate within the
; instruction (an instruction fetch is always decrypted correctly by
; hardware) based on RIP relative addressing.
;
InsnCompare:
cmp dword[rel InsnCompare], 0xFFF63D81
je GoodCompare
;
; The hypervisor provided an incorrect encryption bit position, do not
; proceed.
;
SevEncBitHlt:
cli
hlt
jmp SevEncBitHlt
GoodCompare:
debugShowPostCode POSTCODE_64BIT_MODE
OneTimeCallRet Transition32FlatTo64Flat
| 31.966387 | 80 | 0.619611 |
3f366c970d6a9d105e68c831151f67352d6ef972 | 140 | asm | Assembly | libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sccz80/esx_m_getdrv.asm | Toysoft/z88dk | f930bef9ac4feeec91a07303b79ddd9071131a24 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sccz80/esx_m_getdrv.asm | Toysoft/z88dk | f930bef9ac4feeec91a07303b79ddd9071131a24 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sccz80/esx_m_getdrv.asm | Toysoft/z88dk | f930bef9ac4feeec91a07303b79ddd9071131a24 | [
"ClArtistic"
] | null | null | null | ; unsigned char esx_m_getdrv(void)
SECTION code_esxdos
PUBLIC esx_m_getdrv
EXTERN asm_esx_m_getdrv
defc esx_m_getdrv = asm_esx_m_getdrv
| 14 | 36 | 0.842857 |
011f24b0a816a0f0fc42edd3a169cb95add48172 | 2,061 | asm | Assembly | programs/oeis/204/A204557.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/204/A204557.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/204/A204557.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A204557: Right edge of the triangle A045975.
; 1,4,21,36,85,120,217,280,441,540,781,924,1261,1456,1905,2160,2737,3060,3781,4180,5061,5544,6601,7176,8425,9100,10557,11340,13021,13920,15841,16864,19041,20196,22645,23940,26677,28120,31161,32760,36121,37884,41581,43516,47565,49680,54097,56400,61201,63700,68901,71604,77221,80136,86185,89320,95817,99180,106141,109740,117181,121024,128961,133056,141505,145860,154837,159460,168981,173880,183961,189144,199801,205276,216525,222300,234157,240240,252721,259120,272241,278964,292741,299796,314245,321640,336777,344520,360361,368460,385021,393484,410781,419616,437665,446880,465697,475300,494901,504900,525301,535704,556921,567736,589785,601020,623917,635580,659341,671440,696081,708624,734161,747156,773605,787060,814437,828360,856681,871080,900361,915244,945501,960876,992125,1008000,1040257,1056640,1089921,1106820,1141141,1158564,1193941,1211896,1248345,1266840,1304377,1323420,1362061,1381660,1421421,1441584,1482481,1503216,1545265,1566580,1609797,1631700,1676101,1698600,1744201,1767304,1814121,1837836,1885885,1910220,1959517,1984480,2035041,2060640,2112481,2138724,2191861,2218756,2273205,2300760,2356537,2384760,2441881,2470780,2529261,2558844,2618701,2648976,2710225,2741200,2803857,2835540,2899621,2932020,2997541,3030664,3097641,3131496,3199945,3234540,3304477,3339820,3411261,3447360,3520321,3557184,3631681,3669316,3745365,3783780,3861397,3900600,3979801,4019800,4100601,4141404,4223821,4265436,4349485,4391920,4477617,4520880,4608241,4652340,4741381,4786324,4877061,4922856,5015305,5061960,5156137,5203660,5299581,5347980,5445661,5494944,5594401,5644576,5745825,5796900,5899957,5951940,6056821,6109720,6216441,6270264,6378841,6433596,6544045,6599740,6712077,6768720,6882961,6940560,7056721,7115284,7233381,7292916,7412965,7473480,7595497,7657000,7781001,7843500
mov $3,$0
mov $4,$0
add $4,1
lpb $4,1
mov $0,$3
sub $4,1
sub $0,$4
add $0,1
mov $2,$0
mul $2,5
pow $2,2
pow $5,$7
mul $5,$2
mov $6,$0
gcd $6,2
div $5,$6
sub $5,25
div $5,25
mul $5,2
add $5,1
add $1,$5
lpe
| 79.269231 | 1,773 | 0.809316 |
1a175efba7cb11fb63af747a4b3fac759dfa772d | 219 | asm | Assembly | asm/CPUID/hello/hello.asm | BoKoIsMe/J1900_FreeBSD | 19c4f7f01a37f4eda11a64040dad307a06563fb9 | [
"BSD-2-Clause"
] | null | null | null | asm/CPUID/hello/hello.asm | BoKoIsMe/J1900_FreeBSD | 19c4f7f01a37f4eda11a64040dad307a06563fb9 | [
"BSD-2-Clause"
] | null | null | null | asm/CPUID/hello/hello.asm | BoKoIsMe/J1900_FreeBSD | 19c4f7f01a37f4eda11a64040dad307a06563fb9 | [
"BSD-2-Clause"
] | null | null | null | %include 'system.inc'
section .data
hello db 'Hello, world!', 0Ah
hbytes equ $-hello
section .text
global _start
_start:
push dword hbytes
push dword hello
push dword stdout
sys.write
push dword 0
sys.exit
| 12.166667 | 30 | 0.726027 |
15a2c25ff388a0863b575ec71f0c57da42ba6628 | 4,233 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1467.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_1467.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_1467.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 %r14
push %r9
push %rcx
push %rdx
lea addresses_A_ht+0x16d2f, %r11
nop
cmp %r12, %r12
mov (%r11), %edx
nop
nop
xor %r14, %r14
lea addresses_normal_ht+0x2a07, %r9
nop
xor %rdx, %rdx
movw $0x6162, (%r9)
nop
nop
nop
add %rdx, %rdx
pop %rdx
pop %rcx
pop %r9
pop %r14
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r13
push %r15
// Faulty Load
lea addresses_UC+0x1a92f, %r12
nop
nop
and %r10, %r10
mov (%r12), %r13
lea oracles, %r15
and $0xff, %r13
shlq $12, %r13
mov (%r15,%r13,1), %r13
pop %r15
pop %r13
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_UC', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 3}}
{'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
*/
| 61.347826 | 2,999 | 0.660524 |
29f584d35ee208142da1d2f945325e5c99a3e075 | 5,671 | asm | Assembly | roomloading.asm | Catobat/z3randomizer | e82f01ae2f81cfcf2ddd334a93df4a8f953878fb | [
"MIT"
] | null | null | null | roomloading.asm | Catobat/z3randomizer | e82f01ae2f81cfcf2ddd334a93df4a8f953878fb | [
"MIT"
] | null | null | null | roomloading.asm | Catobat/z3randomizer | e82f01ae2f81cfcf2ddd334a93df4a8f953878fb | [
"MIT"
] | null | null | null | LoadRoomHook:
JSL.l IndoorTileTransitionCounter
.noStats
JSL Dungeon_LoadRoom
REP #$10 ; 16 bit XY
LDX $A0 ; Room ID
LDA.l RoomCallbackTable, X
SEP #$10 ; 8 bit XY
JSL UseImplicitRegIndexedLongJumpTable
; Callback routines:
dl NoCallback ; 00
dl IcePalaceBombosSE ; 01
dl IcePalaceBombosSW ; 02
dl IcePalaceBombosNE ; 03
dl CastleEastEntrance ; 04
dl CastleWestEntrance ; 05
NoCallback:
RTL
!RL_TILE = 2
!RL_LINE = 128
macro setTilePointer(roomX, roomY, quadX, quadY)
; Left-to-right math. Should be equivalent to 0x7e2000+(roomX*2)+(roomY*128)+(quadX*64)+(quadY*4096)
LDX.w #<quadY>*32+<roomY>*2+<quadX>*32+<roomX>*2
endmacro
macro writeTile()
STA.l $7E2000,x
INX #2
endmacro
macro writeTileAt(roomX, roomY, quadX, quadY)
STA.l <quadY>*32+<roomY>*2+<quadX>*32+<roomX>*2+$7E2000
endmacro
!BOMBOS_BORDER = #$08D0
!BOMBOS_ICON_1 = #$0CCA
!BOMBOS_ICON_2 = #$0CCB
!BOMBOS_ICON_3 = #$0CDA
!BOMBOS_ICON_4 = #$0CDB
macro DrawBombosPlatform(roomX, roomY, quadX, quadY)
REP #$30 ; 16 AXY
%setTilePointer(<roomX>, <roomY>, <quadX>, <quadY>)
LDA.w !BOMBOS_BORDER
%writeTile()
%writeTile()
%writeTile()
%writeTile()
%setTilePointer(<roomX>, <roomY>+1, <quadX>, <quadY>)
%writeTile()
LDA.w !BOMBOS_ICON_1 : %writeTile()
LDA.w !BOMBOS_ICON_2 : %writeTile()
LDA.w !BOMBOS_BORDER : %writeTile()
%setTilePointer(<roomX>, <roomY>+2, <quadX>, <quadY>)
%writeTile()
LDA.w !BOMBOS_ICON_3 : %writeTile()
LDA.w !BOMBOS_ICON_4 : %writeTile()
LDA.w !BOMBOS_BORDER : %writeTile()
%setTilePointer(<roomX>, <roomY>+3, <quadX>, <quadY>)
%writeTile()
%writeTile()
%writeTile()
%writeTile()
SEP #$30 ; 8 AXY
endMacro
IcePalaceBombosSE:
LDA AllowSwordlessMedallionUse : BNE + : RTL : +
%DrawBombosPlatform(14, 18, 1, 1)
RTL
IcePalaceBombosSW:
LDA AllowSwordlessMedallionUse : BNE + : RTL : +
%DrawBombosPlatform(14, 18, 0, 1)
RTL
IcePalaceBombosNE:
LDA AllowSwordlessMedallionUse : BNE + : RTL : +
%DrawBombosPlatform(14, 18, 1, 0)
RTL
CastleEastEntrance:
LDA $7EF3C5 : CMP.b #$02 : !BLT + : RTL : + ; only apply in rain states (0 or 1)
LDA.l BlockCastleDoorsInRain : BNE + : RTL : +
REP #$20 ; 16 A
LDA.w #$08e1 ; square peg
%writeTileAt(11,21,0,1)
%writeTileAt(11,26,0,1)
%writeTileAt(20,21,0,1)
%writeTileAt(20,26,0,1)
INC ;horizontal rail
%writeTileAt(12,21,0,1)
%writeTileAt(13,21,0,1)
%writeTileAt(14,21,0,1)
%writeTileAt(15,21,0,1)
%writeTileAt(16,21,0,1)
%writeTileAt(17,21,0,1)
%writeTileAt(18,21,0,1)
%writeTileAt(19,21,0,1)
INC ;vertical rail
%writeTileAt(11,22,0,1)
%writeTileAt(11,23,0,1)
%writeTileAt(11,24,0,1)
%writeTileAt(11,25,0,1)
%writeTileAt(20,22,0,1)
%writeTileAt(20,23,0,1)
%writeTileAt(20,24,0,1)
%writeTileAt(20,25,0,1)
SEP #$20 ; 8 A
RTL
CastleWestEntrance:
LDA $7EF3C5 : CMP.b #$02 : !BLT + : RTL : + ; only apply in rain states (0 or 1)
LDA.l BlockCastleDoorsInRain : BNE + : RTL : +
REP #$20 ; 16 A
LDA.w #$08e1 ; square peg
%writeTileAt(11,21,1,1)
%writeTileAt(11,26,1,1)
%writeTileAt(20,21,1,1)
%writeTileAt(20,26,1,1)
INC ;horizontal rail
%writeTileAt(12,21,1,1)
%writeTileAt(13,21,1,1)
%writeTileAt(14,21,1,1)
%writeTileAt(15,21,1,1)
%writeTileAt(16,21,1,1)
%writeTileAt(17,21,1,1)
%writeTileAt(18,21,1,1)
%writeTileAt(19,21,1,1)
INC ;vertical rail
%writeTileAt(11,22,1,1)
%writeTileAt(11,23,1,1)
%writeTileAt(11,24,1,1)
%writeTileAt(11,25,1,1)
%writeTileAt(20,22,1,1)
%writeTileAt(20,23,1,1)
%writeTileAt(20,24,1,1)
%writeTileAt(20,25,1,1)
SEP #$20 ; 8 A
RTL
RoomCallbackTable:
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $01, $00 ; 00x
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 01x
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 02x
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 03x
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 04x
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 05x
db $05, $00, $04, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 06x
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $02, $00 ; 07x
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 08x
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 09x
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 0Ax
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 0Bx
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 0Cx
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $03, $00 ; 0Dx
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 0Ex
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 0Fx
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 0Fx
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 10x
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 11x
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 ; 12x | 33.755952 | 104 | 0.556163 |
c5aa2bbb471b9bc1a89e20303ce9fc284996c8cd | 152 | asm | Assembly | libsrc/video/tms9918/stdio/ansi/f_ansi_dline.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/video/tms9918/stdio/ansi/f_ansi_dline.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/video/tms9918/stdio/ansi/f_ansi_dline.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
SECTION code_clib
PUBLIC ansi_del_line
EXTERN ansi_del_line_generic
defc ansi_del_line = ansi_del_line_generic
| 16.888889 | 53 | 0.657895 |
172f46fd60126cad7745267d6a23407200cb34f2 | 566 | asm | Assembly | programs/oeis/053/A053100.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/053/A053100.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/053/A053100.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A053100: a(n) = ((6*n+7)(!^6))/7, related to A008542 ((6*n+1)(!^6) sextic, or 6-factorials).
; 1,13,247,6175,191425,7082725,304557175,14923301575,820781586625,50067676784125,3354534344536375,244881007151155375,19345599564941274625,1644375963020008343125,149638212634820759224375,14514906625577613644764375,1495035382434494205410730625,162958856685359868389769638125,18740268518816384864823508384375,2267572490776782568643644514509375,287981706328651386217742853342690625
add $0,1
mov $1,2
mov $2,1
lpb $0
sub $0,1
add $2,6
mul $1,$2
lpe
mov $0,$1
div $0,14
| 40.428571 | 377 | 0.805654 |
4bca52dbfd0ddd9b721866fb73a00b133cfb8887 | 3,617 | asm | Assembly | libsrc/stdio/ansi/cpc/f_ansi_attr.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/stdio/ansi/cpc/f_ansi_attr.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/stdio/ansi/cpc/f_ansi_attr.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ;
; ANSI Video handling for the Amstrad CPC
;
; Text Attributes
; m - Set Graphic Rendition
;
; The most difficult thing to port:
; Be careful here...
;
; Stefano Bodrato - Jul. 2004
;
;
; $Id: f_ansi_attr.asm,v 1.6 2016-06-12 16:06:42 dom Exp $
;
SECTION code_clib
PUBLIC ansi_attr
INCLUDE "target/cpc/def/cpcfirm.def"
SECTION bss_clib
PUBLIC UNDRL
.UNDRL defb 0
SECTION code_clib
.ansi_attr
and a
jr nz,noreset
xor a
ld (UNDRL),a ; underline 0
ld a,2 ; ink bright cyan
call firmware
defw txt_set_pen
xor a ; paper blue
call firmware
defw txt_set_paper
ret
.noreset
cp 1
jr nz,nobold
ld a,1 ; ink bright yellow
call firmware
defw txt_set_pen
ret
.nobold
cp 2
jr z,dim
cp 8
jr nz,nodim
.dim ld a,2 ; ink bright cyan
call firmware
defw txt_set_pen
ret
.nodim cp 4
jr nz,nounderline
ld a,1
ld (UNDRL),a ; underline 1
ret
.nounderline
cp 24
jr nz,noCunderline
xor a
ld (UNDRL),a ; underline 0
ret
.noCunderline
cp 5
jr nz,noblink
call firmware
defw txt_get_pen
xor 3
call firmware
defw txt_set_pen
ret
.noblink
cp 25
jr nz,nocblink
call firmware
defw txt_get_pen
xor 3
call firmware
defw txt_set_pen
ret
.nocblink
cp 7
jr nz,noreverse
.callinverse
call firmware
defw txt_inverse
ret
.noreverse
cp 27
jr z,callinverse
.noCreverse
cp 8
jr nz,noinvis
call firmware
defw txt_get_pen
ld (oldattr),a
call firmware
defw txt_get_paper
call firmware
defw txt_set_pen
ret
.oldattr
defb 0
.noinvis
cp 28
jr nz,nocinvis
ld a,(oldattr)
call firmware
defw txt_set_pen
ret
.nocinvis
cp 30
jp m,nofore
cp 37+1
jp p,nofore
sub 30
;'' Palette Handling ''
call dopal
call firmware
defw txt_set_pen
ret
.nofore
cp 40
jp m,noback
cp 47+1
jp p,noback
sub 40
;'' Palette Handling ''
call dopal
call firmware
defw txt_set_paper
.noback ret
.dopal
ld e,a
ld d,0
ld hl,ctable
add hl,de
ld a,(hl)
ret
.ctable defb 5,3,12,1,0,7,2,4
;0 Blue 1
;1 Bright Yellow 24
;2 Bright Cyan 20
;3 Bright Red 6
;4 Bright White 26
;5 Black 0
;6 Bright Blue 2
;7 Bright Magenta 8
;8 Cyan 10
;9 Yellow 12
;10 Pastel blue 14
;11 Pink 16
;12 Bright Green 18
;13 Pastel Green 22
;
;0 black 5
;1 red 3
;2 green 12-13
;3 yellow 1
;4 blue 0
;5 magenta 7
;6 cyan 2
;7 white 4
| 21.276471 | 58 | 0.440144 |
515939a21b97fe77db2048993b0bd540c9accc26 | 7,210 | asm | Assembly | bahamut/source/combat-dragons.asm | higan-emu/bahamut-lagoon-translation-kit | 6f08de5b92b597c0b9ecebd485cc975b99acfc13 | [
"0BSD"
] | 2 | 2021-08-15T04:10:10.000Z | 2021-08-15T20:14:13.000Z | bahamut/source/combat-dragons.asm | higan-emu/bahamut-lagoon-translation-kit | 6f08de5b92b597c0b9ecebd485cc975b99acfc13 | [
"0BSD"
] | 1 | 2022-02-16T02:46:39.000Z | 2022-02-16T04:30:29.000Z | bahamut/source/combat-dragons.asm | higan-emu/bahamut-lagoon-translation-kit | 6f08de5b92b597c0b9ecebd485cc975b99acfc13 | [
"0BSD"
] | 1 | 2021-12-25T11:34:57.000Z | 2021-12-25T11:34:57.000Z | namespace combat {
seek(codeCursor)
//$7e3b7a => item list
namespace dragons {
enqueue pc
seek($c12f13); jml class.hook //write the dragon name and class together
seek($c198b0); jsl values; rts //write all stat labels and values
seek($c1a2c8); jml changes //blink stats to indicate effects of feeding item
seek($c19784); nop #3 //disable 16 dragon-stat tiles from being copied to $d0-$df
seek($c19ad0); nop #2 //always show corruption stat even when timidity is < 100
dequeue pc
namespace positions {
constant hp = $7e48e6
constant mp = $7e48f2
constant fire = $7e4902
constant water = $7e490e
constant thunder = $7e491a
constant recovery = $7e4926
constant poison = $7e4932
constant strength = $7e4942
constant vitality = $7e494e
constant dexterity = $7e495a
constant intelligence = $7e4966
constant wisdom = $7e4972
constant aggression = $7e4982
constant affection = $7e498e
constant timidity = $7e499a
constant corruption = $7e49a6
constant mutation = $7e49b2
}
namespace changes {
constant hp = $7e088b
constant mp = $7e088c
constant strength = $7e088d
constant vitality = $7e088e
constant dexterity = $7e088f
constant intelligence = $7e0890
constant fire = $7e0891
constant water = $7e0892
constant thunder = $7e0893
constant recovery = $7e0894
constant poison = $7e0895
constant corruption = $7e0896
constant timidity = $7e0897
constant wisdom = $7e0898
constant aggression = $7e0899
constant mutation = $7e089a
constant affection = $7e089b
}
namespace tiles {
constant hp = $00d //2 tiles
constant mp = $00b //2 tiles
constant fire = $013 //1 tile
constant water = $014 //1 tile
constant thunder = $017 //1 tile
constant recovery = $0cb //1 tile
constant poison = $015 //1 tile
constant strength = $16a //2 tiles
constant vitality = $16e //2 tiles
constant dexterity = $170 //2 tiles
constant intelligence = $172 //2 tiles
constant wisdom = $174 //2 tiles
constant aggression = $176 //2 tiles
constant affection = $178 //2 tiles
constant timidity = $17a //2 tiles
constant corruption = $17c //2 tiles
constant mutation = $17e //2 tiles
constant separator = $004 //1 tile
}
namespace class {
//------
//c12f13 jsr $2fb5
//c12f16 bra $2eed
//------
function hook {
enter; sep #$20
pha; lda.b #constants.hook; sta $002180
lda.b #constants.dragonClass; sta $002180
pla; sta $002180
lda.b #constants.terminal; sta $002180
leave; jml $c12eed
}
//A => dragon class name
function name {
variable(2, identifier)
enter
and #$00ff; sta identifier
lda player.name.identifier
ldx #$0000; txy; append.name()
append.literal(" - ")
lda name.identifier; append.dragon()
lda #$0012; render.small.bpo4()
index.to18x1(0); lda #$0012; write.bpp4()
txy; ldx #$00c2
lda #$0012; tilemap.write()
leave; rtl
}
}
macro value(variable index, variable separator, variable tiles, define stat) {
if separator {; lda.w #tiles.separator; ora #$3800; sta.w positions.{stat}+0; }
if tiles >= 1 {; lda.w #tiles.{stat}+0; ora #$3800; sta.w positions.{stat}+2; }
if tiles >= 2 {; lda.w #tiles.{stat}+1; ora #$3800; sta.w positions.{stat}+4; }
if index == 0 {
//HP
lda points; tax
lda.l dragons.stats.{stat},x; ldx #$0000
cmp.w #10000; bcc hp1{#}; append.literal("^^^^"); bra hp2{#}; hp1{#}:
append.integer_4(); hp2{#}:
}
if index == 1 {
//MP
lda points; tax
lda.l dragons.stats.{stat},x; ldx #$0000; append.alignRight()
cmp.w #1000; bcc mp1{#}; append.literal("^^^"); bra mp2{#}; mp1{#}:
append.integer_3(); mp2{#}:
}
if index == 0 || index == 1 {
lda #$0003; render.small.bpo4()
index.to3x17(index)
lda #$0003; write.bpp4()
txa; add #$00a0; tax
lda #$0003; render.small.bpo4.to.bpa4(); write.bpp4()
txa; sub #$00a0; tay
} else {
lda stats; tax
lda.l dragons.stats.{stat},x; and #$00ff
mul(3); tay
index.to3x17(index)
lda #$0003; write.bpp4(lists.stats.bpo4)
txa; add #$00a0; tax
lda #$0003; write.bpp4(lists.stats.bpa4)
txa; sub #$00a0; tay
}
lda #$0003; ldx.w #positions.{stat}+6&$3ff; tilemap.write()
}
//X => HP/MP index
function values {
constant statIndex = $0967
variable(2, points)
variable(2, stats)
enter; ldb #$7e
txa; sta points
lda.w statIndex; and #$00ff
sub #$0020; mul(32); sta stats
value( 0,1,2,hp)
value( 1,1,2,mp)
value( 2,0,1,fire)
value( 3,1,1,water)
value( 4,1,1,thunder)
value( 5,1,1,recovery)
value( 6,1,1,poison)
value( 7,0,2,strength)
value( 8,1,2,vitality)
value( 9,1,2,dexterity)
value(10,1,2,intelligence)
value(11,1,2,wisdom)
value(12,0,2,aggression)
value(13,1,2,affection)
value(14,1,2,timidity)
value(15,1,2,corruption)
value(16,1,2,mutation)
leave
lda $3c; ora #$02; sta $3c //request tilemap to VRAM transfer
rtl
}
macro change(define stat) {
lda.w changes.{stat}; and #$00ff
beq finished{#}
cmp #$0080; bcs decrease{#} //8-bit signed value
increase{#}: //white -> yellow text
lda.w positions.{stat}+ 6; add #$00a0; sta.w positions.{stat}+ 6
lda.w positions.{stat}+ 8; add #$00a0; sta.w positions.{stat}+ 8
lda.w positions.{stat}+10; add #$00a0; sta.w positions.{stat}+10
bra finished{#}
decrease{#}: //white -> gray text
lda.w positions.{stat}+ 6; ora #$1c00; sta.w positions.{stat}+ 6
lda.w positions.{stat}+ 8; ora #$1c00; sta.w positions.{stat}+ 8
lda.w positions.{stat}+10; ora #$1c00; sta.w positions.{stat}+10
finished{#}:
}
//------
//c1a2c8 pha
//c1a2c9 jsr $a2de
//------
function changes {
pha
enter; ldb #$7e
change(hp)
change(mp)
change(strength)
change(vitality)
change(dexterity)
change(intelligence)
change(fire)
change(water)
change(thunder)
change(recovery)
change(poison)
change(corruption)
change(timidity)
change(wisdom)
change(aggression)
change(mutation)
change(affection)
leave
lda $3c; ora #$02; sta $3c //request tilemap to VRAM transfer
jml $c1a2cc
}
function feed {
enter
ldy.w #strings.bpo4.feed
index.to9x16(0)
lda #$0003; write.bpp4(lists.strings.bpo4)
txa; ora #$3800
sta $7e4c20; inc
sta $7e4c22; inc
sta $7e4c24
leave; rtl
}
function exit {
enter
ldy.w #strings.bpo4.exit
index.to9x16(1)
lda #$0003; write.bpp4(lists.strings.bpo4)
txa; ora #$3800
sta $7e4ca0; inc
sta $7e4ca2; inc
sta $7e4ca4
leave; rtl
}
}
codeCursor = pc()
}
| 28.611111 | 93 | 0.58405 |
3b535b9b3f0fc58139c6a6d10d75bf7eae0b9c76 | 399 | asm | Assembly | programs/oeis/257/A257213.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/257/A257213.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/257/A257213.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A257213: Least d>0 such that floor(n/d) = floor(n/(d+1)).
; 1,2,3,2,3,3,4,4,3,5,4,4,5,5,5,4,6,6,5,5,7,6,6,6,5,7,7,7,6,6,8,8,7,7,7,6,8,8,8,8,7,7,9,9,9,8,8,8,7,10,9,9,9,9,8,8,10,10,10,10,9,9,9,8,11,11,10,10,10,10,9,9,11,11,11,11,11,10,10,10,9,12,12,12,11,11,11,11,10,10,13,12,12,12,12,12,11,11,11,10
mov $2,$0
lpb $0
mov $0,$2
add $1,1
gcd $3,$1
add $3,1
div $0,$3
lpe
add $1,1
mov $0,$1
| 28.5 | 239 | 0.556391 |
bf0b42cdc73b77dd76b60c10cff42add0b15e729 | 1,194 | asm | Assembly | src/test/ref/sizeof-arrays.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | 2 | 2022-03-01T02:21:14.000Z | 2022-03-01T04:33:35.000Z | src/test/ref/sizeof-arrays.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | src/test/ref/sizeof-arrays.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | // Tests the sizeof() operator on arrays
// Commodore 64 PRG executable file
.file [name="sizeof-arrays.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
.const SIZEOF_CHAR = 1
.const SIZEOF_UNSIGNED_INT = 2
.label SCREEN = $400
.segment Code
main: {
.const sz = 7
// SCREEN[idx++] = '0'+(char)(sizeof(ba)/sizeof(byte))
lda #'0'+3*SIZEOF_CHAR/SIZEOF_CHAR
sta SCREEN
// SCREEN[idx++] = '0'+(char)(sizeof(wa)/sizeof(word))
lda #'0'+3*SIZEOF_UNSIGNED_INT/SIZEOF_UNSIGNED_INT
sta SCREEN+1
// SCREEN[idx++] = '0'+(char)(sizeof(bb)/sizeof(byte))
lda #'0'+(sz+2)*SIZEOF_CHAR/SIZEOF_CHAR
sta SCREEN+2
// SCREEN[idx++] = '0'+(char)(sizeof(wb)/sizeof(word))
lda #'0'+4*SIZEOF_UNSIGNED_INT/SIZEOF_UNSIGNED_INT
sta SCREEN+3
// SCREEN[idx++] = '0'+(char)(sizeof(sa)/sizeof(byte))
lda #'0'+8*SIZEOF_CHAR/SIZEOF_CHAR
sta SCREEN+4
// SCREEN[idx++] = '0'+(char)(sizeof(sb)/sizeof(byte))
lda #'0'+4*SIZEOF_CHAR/SIZEOF_CHAR
sta SCREEN+5
// }
rts
}
| 32.27027 | 64 | 0.646566 |
35e5576f5eac134d941c3f70170fe32fb73f12b2 | 4,166 | asm | Assembly | Appl/GeoCalc/UI/uiGeoCalcContent.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Appl/GeoCalc/UI/uiGeoCalcContent.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Appl/GeoCalc/UI/uiGeoCalcContent.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: GeoCalc
FILE: uiGeoCalcContent.asm
AUTHOR: Gene Anderson, Mar 21, 1991
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
Gene 3/21/91 Initial revision
DESCRIPTION:
GeoCalc subclass of VisContent
$Id: uiGeoCalcContent.asm,v 1.1 97/04/04 15:48:17 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GeoCalcClassStructures segment resource
GeoCalcContentClass
GeoCalcClassStructures ends
if _SPLIT_VIEWS
Document segment resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GeoCalcContentSetMaster
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DESCRIPTION: set the "master" field in the instance data
PASS: *ds:si - GeoCalcContentClass object
ds:di - GeoCalcContentClass instance data
es - dgroup
RETURN: nothing
DESTROYED: nothing
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
chrisb 8/24/94 Initial version.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GeoCalcContentSetMaster method dynamic GeoCalcContentClass,
MSG_GEOCALC_CONTENT_SET_MASTER
movdw ds:[di].GCCI_master, cxdx
ret
GeoCalcContentSetMaster endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GeoCalcContentDraw
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DESCRIPTION: Draw the content
PASS: *ds:si - GeoCalcContentClass object
ds:di - GeoCalcContentClass instance data
bp - gstate
RETURN: nothing
DESTROYED: ax, cx, dx, bp
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
chrisb 7/29/94 Initial version.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GeoCalcContentDraw method dynamic GeoCalcContentClass,
MSG_VIS_DRAW
;
; For Ruler content -- just send this message to the master.
; For document contents, send the special draw message
;
cmp ds:[di].GCCI_type, GCCT_RULER
je sendIt
mov ax, MSG_GEOCALC_DOCUMENT_DRAW_RANGE
sendIt:
movdw bxsi, ds:[di].GCCI_master
mov di, mask MF_CALL
GOTO ObjMessage
GeoCalcContentDraw endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
GeoCalcContentVisVupCreateGstate
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
DESCRIPTION: Do the same machinations that RulerContentClass does
PASS: *ds:si - GeoCalcContentClass object
ds:di - GeoCalcContentClass instance data
es - segment of GeoCalcContentClass
RETURN: nothing
DESTROYED: ax, cx, dx, bp
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
chrisb 8/30/94 Initial version.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
GeoCalcContentVisVupCreateGstate method dynamic GeoCalcContentClass,
MSG_VIS_VUP_CREATE_GSTATE
mov di, offset GeoCalcContentClass
call ObjCallSuperNoLock
mov di, ds:[si]
add di, ds:[di].Vis_offset
cmp ds:[di].GCCI_type, GCCT_RULER
jne done
;
; Now do the same stuff that RulerContentClass does. This is
; a hack.
;
movdw bxax, ds:[di].VCNI_scaleFactor.PF_y
movdw dxcx, 0x10000 ;get 1/scale
call GrUDivWWFixed ;dxcx = y factor
pushdw dxcx
movdw bxax, ds:[di].VCNI_scaleFactor.PF_x
movdw dxcx, 0x10000 ;get 1/scale
call GrUDivWWFixed ;dxcx = x factor
popdw bxax
mov di, bp
call GrApplyScale ;scales back to 1.0
done:
stc
ret
GeoCalcContentVisVupCreateGstate endm
Document ends
endif
| 22.159574 | 79 | 0.56049 |
debbfe95b797ea2ba962a98f138dc6150ecb8189 | 15,336 | asm | Assembly | src/synth-test/synth.asm | trilkk/faemiyah-demoscene_2017-08_4k_intro_primordial_soup | b584ef4d475e1605a3504955c85547998e755d22 | [
"BSD-3-Clause"
] | 5 | 2017-08-06T17:26:39.000Z | 2019-03-27T02:21:49.000Z | src/synth-test/synth.asm | faemiyah/faemiyah-demoscene_2017-08_4k-intro_primordial_soup | b584ef4d475e1605a3504955c85547998e755d22 | [
"BSD-3-Clause"
] | null | null | null | src/synth-test/synth.asm | faemiyah/faemiyah-demoscene_2017-08_4k-intro_primordial_soup | b584ef4d475e1605a3504955c85547998e755d22 | [
"BSD-3-Clause"
] | null | null | null | global synth
%ifdef TRACKER_EMBED
global synth_update
%endif
section .data
;;; filter constants
fc1:
dd 3.296875
fc2:
dd 0.00497436523438
flt_fb:
dd 1.3
flt_co:
dd 0.2
flt_decay:
dd 0.99995
;;; oscillator constants
sq_mult:
dd 100.0
;;; other constants
stereo_mod:
dd 1.003 ; adjustment for 2nd ch
main_tune:
dd 0.00074156906264342 ; synth global tuning
;; main_tune: dd 0.000200
oct_semitones:
dd 12 ; number of notes per octave
%define SONG_TICKLEN 30000
%ifdef TRACKER_EMBED
;; TODO: include empty data for tracker use
%else
;; include tracker-generated asm version
%include "song.asm"
%endif
;;; enabled features
%define ENABLE_OSCILLATOR
%define ENABLE_FILTER
%define ENABLE_ENVELOPE
;; %define ENABLE_COMPRESSOR
%define ENABLE_DELAY
%define NUM_TRACKS 4
;;; oscillator flags
;; %define OSC_FLAG_SINE 0x01
;; %define OSC_FLAG_SQUARE 0x02
%define OSC_FLAG_STEREO 0x80
%define ELEMENT_DATA_SIZE 6
%define ELEMENT_DATA_BYTES ELEMENT_DATA_SIZE * 4
%define ELEMENT_WORK_BYTES 65536
%define MODULE_OUT_OFFSET 4
;; module types
%define MODULE_TYPE_OSC 0x00
%define MODULE_TYPE_FILTER 0x01
%define MODULE_TYPE_ENV 0x02
%define MODULE_TYPE_COMPRESSOR 0x03
%define MODULE_TYPE_DELAY 0x04
;; oscillator params & state
%define OSC_PARAM_GAIN 8
%define OSC_PARAM_FREQ_MOD 12
%define OSC_PARAM_ADD 16
%define OSC_PARAM_DETUNE2 20 ; 2nd osc detune
%define OSC_STATE_CTR1 0
%define OSC_STATE_CTR2 4
;; filter params & state
%define FLT_PARAM_INPUT 8
%define FLT_PARAM_CUTOFF 12
%define FLT_PARAM_FB_GAIN 16
%define FLT_STATE_FB1 0
%define FLT_STATE_FB2 4
;; envelope params & state
%define ENV_PARAM_ATT 8 ; linear attack add
%define ENV_PARAM_SWITCH 12 ; level for A -> D switch (or how about just doing at 1?)
%define ENV_PARAM_DECAY 16 ; multiplier for exp decay
%define ENV_PARAM_STAGE 20 ; env stage A: 0, D: 1
%define ENV_STATE_LEVEL 0 ; current level
%define COMP_VAL_IN 8
%define COMP_VAL_THRESHOLD 12
%define COMP_VAL_ATTACK 16
%define COMP_VAL_RELEASE 20
%define COMP_VAL_GAIN 24 ; current gain value
%define DELAY_PARAM_IN 8
%define DELAY_PARAM_LEN 12
%define DELAY_PARAM_FB 16
%define DELAY_PARAM_WET 20
%define DELAY_STATE_POS 0
;; output ops
%define MODULE_OUT_OP_SET 0
%define MODULE_OUT_OP_ADD 1
%define MODULE_OUT_OP_MULT 2
;;; Element data area
trigger_points:
;; each track can trigger two instruments.
;; triggering happens as follows:
;;
;; - set pitch of osc at module <trigger point>
;; - reset phase of env at module <trigger point + 1>
dd 0
dd 8
dd 0
dd 8
dd 0
dd 8 ; bass
dd 0
dd 5
%ifdef TRACKER_EMBED
instr_data:
%include "lead1.asm"
song:
%include "song.asm"
%endif
;; We replace .bss with g_buffer + N references in converted
;; intro version, so define constants for it. These must match
;; offsets of corresponding vars in bss (as they would be in
;; a build without TRACKER_EMBED)
%define BOFF_ORDER_POS 0
%define BOFF_PATTERN_POS 4
%define BOFF_STEREO_FACTOR 8
%define BOFF_MASTER_OUT 12
%define BOFF_TICK_CTR 16
%define BOFF_TEMP1 20
%define BOFF_MODULES 24
%define BOFF_WORK 24 + NUM_TRACKS * NUM_MODULES * ELEMENT_DATA_BYTES
section .bss
%ifdef TRACKER_EMBED
state_setup_done: resd 1
%endif
g_buffer: ; for non-intro builds from AT&T syntax
bss_order_pos:
resd 1
bss_pattern_pos:
resd 1
bss_stereo_factor:
;; extra modulation source that varies per channel, to create stereo diff
resd 1
bss_master_out:
resd 1
bss_tick_ctr:
resd 1
;; misc temp vars
bss_temp1:
resd 1
;; copy of all elements per track, + work area per channel
%define STATE_BYTES_PER_CHANNEL ELEMENT_WORK_BYTES * NUM_MODULES
;;;
;;; Work area structure:
;;;
;;; NUM_TRACKS * [element set]
;;; NUM_TRACKS * NUM_MODULES * [work area]
;;;
bss_modules:
resd NUM_TRACKS * NUM_MODULES * ELEMENT_DATA_BYTES / 4
bss_work:
resd STATE_BYTES_PER_CHANNEL * 2 * NUM_TRACKS * NUM_MODULES / 4
section .text
;;; calling convention:
;;; in:
;;; esi - ptr to element params & inputs
;;; ebp - ptr to element state
;;; out:
;;; st0 - element output
;;; regs:
;;; ecx, esi, edx, ebp callee-saved
;;; eax, ebx, edi caller-saved
;;; oscillator module
;;;
;;; data area:
;;; 0: type & output op.
;;; 4: dest offset
;;; state area
module_oscillator:
pusha
fld1
fld dword [esi + OSC_PARAM_ADD] ; st0: osc add, st1: 1
;; freq modulation
fld dword [esi + OSC_PARAM_FREQ_MOD]
fadd st2 ; 1
fmulp ; st0: modulated add, st1: 1
;; stereo factor
fld dword [bss_stereo_factor]
fmulp ; st0: modulated add, st1: 1
fxch st0, st1
fld dword [ebp + OSC_STATE_CTR1] ; st0: osc counter, st1: 1, st2: modulated add
fadd st0, st2
fprem1
fstp dword [ebp + OSC_STATE_CTR1] ; st0: 1, st1: modulated add
fld dword [esi + OSC_PARAM_DETUNE2]
fmulp st2, st0 ; st0: 1, st1: modulated + detuned add
fld dword [ebp + OSC_STATE_CTR2]
fadd st0, st2
fprem1
fst dword [ebp + OSC_STATE_CTR2] ; st0: osc2, st1: 1, st2: modulated + detuned add
;; square shaper
;; test dword [esi], OSC_FLAG_SQUARE
;; jz _osc_skip_square
;; fmul dword [sq_mult]
;; fprem1
;; _osc_skip_square:
;; ;; sine shaper
;; test dword [esi], OSC_FLAG_SINE
;; jz _osc_skip_sine
;; fldpi
;; fadd st0
;; fmulp
;; fsin
;; _osc_skip_sine:
;; ;; amp modulation
;; fld dword [esi + 4] ; amp mod
;; fadd st2 ; + 1
;; fmul
fld dword [ebp + OSC_STATE_CTR1]
faddp
;; some shaping?
;; fld st0
;; fabs
;; fmul st1, st0
;; fmulp
fxch st0, st2
fstp st0
fstp st0
fmul dword [esi + OSC_PARAM_GAIN]
;; output in st0
popa
ret
%ifdef ENABLE_FILTER
;;; rez lp filter
;;;
;;; data area:
;;; 0: type & output op.
;;; 4: dest offset
;;; state
;;;
;;; 8: cutoff
;;; 12: feedback gain
;;; 16: fb1 buf
;;; 20: fb2 buf
;;; 24: input
module_filter:
;; feedback coefficient
fld dword [esi + FLT_PARAM_FB_GAIN]
fld dword [esi + FLT_PARAM_CUTOFF]
fmul dword [fc1]
fsub dword [fc2]
fmulp
;; st0: fb_coeff
fld dword [ebp + FLT_STATE_FB1]
fld dword [ebp + FLT_STATE_FB2]
fsubp
fmulp
;; st0: feedback
fsin
fld dword [esi + FLT_PARAM_INPUT] ; input
fld dword [esi + FLT_PARAM_CUTOFF] ; cutoff
fabs ; safety measure: negative cutoff makes unstable
fmulp
;; st0: (in * cutoff), st1: feedback
fld dword [ebp + FLT_STATE_FB1]
fld1
fld dword [esi + FLT_PARAM_CUTOFF] ; cutoff
fabs ; safety
fsubp st1 ; 1 - cutoff
fmulp
;; st0: flt_p1 * (1 - cutoff), st1: (in * cutoff), st2: feedback
faddp
faddp
fst dword [ebp + FLT_STATE_FB1]
;; st0: flt_p1
;; TODO: kill denormals here?
fld dword [esi + FLT_PARAM_CUTOFF]
fabs ; safety
fadd st0
fld1
fsub st0, st1
;; st0: (1 - flt_co * 2), st1: (flt_co * 2), st2: flt_p1
fmul dword [ebp + FLT_STATE_FB2]
fxch st0, st1
fmul st0, st2
;; st0: (1 - flt_co * 2) * flt_p1, st1: (flt_co * 2) * flt_p1, st2: flt_p
faddp
fst dword [ebp + FLT_STATE_FB2]
fxch st0, st1
fstp st0
;; output in st0
ret
%endif ; ENABLE_FILTER
;;; AD envelope generator
;;; - linear attack
;;; - switch at defined gain level
;;; - exponential decay
;;;
;;; data area:
;;; 0: type & output op.
;;; 4: dest offset
module_envelope:
fld dword [ebp + ENV_STATE_LEVEL]
mov eax, [esi + ENV_PARAM_STAGE]
test eax, eax
jnz .in_decay
fld dword [esi + ENV_PARAM_ATT]
faddp
;; test for state switch
fld dword [esi + ENV_PARAM_SWITCH]
fcomip
jnc .no_switch
inc eax
mov [esi + ENV_PARAM_STAGE], eax
.no_switch:
jmp .no_decay
.in_decay:
fld dword [esi + ENV_PARAM_DECAY]
fmulp
.no_decay:
fst dword [ebp + ENV_STATE_LEVEL]
;; output in st0
ret
%ifdef ENABLE_COMPRESSOR
;;; dynamic compressor with threshold, attack & release
;;;
;;; data area:
;;; 0: type & output op
;;; 4: dest offset
;;;
;;; 8: signal in
;;; 12: threshold
;;; 16: attack
;;; 20: release
;;; 24: current gain
module_compressor:
fld dword [esi + COMP_VAL_GAIN]
fld dword [esi + COMP_VAL_IN]
fmul st1
;; st0: output, st1: gain
fld st0
fabs
;; st0: abs(output), st1: output, st2: gain
fld dword [esi + COMP_VAL_THRESHOLD]
;; st0: threshold, st1: abs(output), st2: output, st3: gain
fcomip st1
fstp st0
;; st0: output, st1: gain
fxch st0, st1
;; st0: gain, st1: output
jnc .do_release ; jmp if threshold > abs(output)
fld dword [esi + COMP_VAL_ATTACK]
fmulp
jmp .skip_release
.do_release:
fld dword [esi + COMP_VAL_RELEASE]
faddp
.skip_release:
fld1
fcomip st1
jnc .no_update
.no_update:
;; st0: updated gain, st1: output signal
fstp dword [esi + COMP_VAL_GAIN] ; store new gain
;; st0: output
;; test
;; fstp st0
;; fld dword [esi + COMP_VAL_GAIN]
ret
%endif ; ENABLE_COMPRESSOR
;;; delay with feedback & lp filter
;;; 0: type & output op
;;; 4: dest offset
;;;
;;; 8: signal in
;;; 12: delay len (samples)
;;; 16: delay feedback
;;; 20: delay damping (lp filter coeff)
;;; 24: delay wet ratio
;;; idea: instead of adding single values from past, iterate through buffer,
;;; accumulate sin(diff) * val[diff] (or sin^2 or sin^n for less lp filtering)
module_delay:
fld dword [esi + DELAY_PARAM_IN]
;; update delay buf ptr
mov ebx, [ebp + DELAY_STATE_POS]
add ebx, 4
and ebx, 0x7ffff
mov [ebp + DELAY_STATE_POS], ebx
add ebx, 4
fld dword [ebp + ebx]
fld dword [esi + DELAY_PARAM_FB]
fmulp
faddp
fst dword [ebp + ebx]
;; bler
ret
;;;
;;; synth main
;;;
;;; regparm convention, args:
;;; eax: output addr
;;; edx: frames to render (stereo float, 8 bytes each)
synth:
pusha
;; reorder register args to proper places
;; TODO: make this unnecessary
mov edi, eax
mov ecx, edx
;;;
;;; Synth initial setup
;;;
;;; create copies of elements for each track
pusha
%ifdef TRACKER_EMBED
;; setup must be done only once
mov eax, [state_setup_done]
test eax, eax
jnz skip_setup
%endif
lea edi, [bss_modules]
mov ecx, NUM_TRACKS
setup_loop:
push ecx
;; make one copy of the element set
lea esi, [instr_data]
mov ecx, ELEMENT_DATA_BYTES * NUM_MODULES
rep movsb
pop ecx
loop setup_loop
%ifdef TRACKER_EMBED
skip_setup:
mov eax, 1
mov [state_setup_done], eax
%endif
popa
;;;
;;; Synth main loop
;;;
;;; registers:
synth_loop:
push ecx
fldz ; master out accumulator
;;;
;;; Track loop
;;;
;;; Run once for each track, increments pattern pointer once for each on
;;; new tick, so that a whole pattern row is consumed
;;;
;; load first track's module & area pointer, will stay in esi for duration of loop
lea esi, [bss_modules]
;; work area pointer for module
lea ebp, [bss_work]
mov ecx, NUM_TRACKS
tracks_loop:
push ecx
;;
;; song & pattern stuff here
;;
mov ebx, [bss_tick_ctr]
test ebx, ebx
jnz notick
;;
;; start of tick, can trigger new notes
;;
;; get pattern start
mov ebx, [bss_order_pos]
mov bl, [ebx + order]
imul ebx, 96
;; add pattern offset
mov eax, [bss_pattern_pos]
add ebx, eax
;; add channel
xor eax, eax
mov al, [ebx + patterns]
cmp al, 0
je notrig ; 0 -> emptry cell, don't trigger note at all
;; trigger envelope
;;
;; Set osc pitch for channel
;;
push eax ; save for trigger control
and al, 0x7f ; pitch, bits 0-7, bit 8 alt instr
mov bl, 12
div bl ; quotient to al, remainder to ah
mov [bss_temp1], ah
;; 2 fld:s would work here too because of reasons
fild dword [bss_temp1]
fild dword [oct_semitones]
fdivp
f2xm1
fld1
faddp
;; octave
mov ebx, 1
mov cl, al
shl ebx, cl
mov [bss_temp1], ebx
fild dword [bss_temp1]
fmulp
;; synth main tune
fld dword [main_tune]
fmulp
pop eax ; restore for trigger control
pop ecx ; get track no for trigger control
push ecx
pusha
;;
;; trigger primary or alternate instrument for track
;;
neg ecx
add ecx, 4
imul ecx, 8
test al, 0x80
jz no_alt_instr
add ecx, 4
no_alt_instr:
add ecx, trigger_points
mov ecx, [ecx]
imul ecx, ELEMENT_DATA_BYTES
add esi, ecx
add ebp, ecx
;; set osc pitch
fstp dword [esi + OSC_PARAM_ADD]
;; trigger envelope
mov dword [esi + ELEMENT_DATA_BYTES + ENV_PARAM_STAGE], 0
popa
notrig: ; no trigger note
mov eax, [bss_pattern_pos]
inc eax
cmp eax, 96
jne no_advance
;; advance order
mov eax, [bss_order_pos]
inc eax
mov [bss_order_pos], eax
xor eax, eax
no_advance:
mov [bss_pattern_pos], eax
notick: ; no tick starting
;; process all elements
mov ecx, NUM_MODULES
element_loop:
push ecx
;;; call elements according to types
mov eax, dword [esi] ; load element type
push ebp ; save ebp, in case incremented because of stereo
;; stereo things
test edi, 0x4
fld1
jz .ch_left
;; if stereo effect not enabled in osc flags, run both channels with same param
test al, OSC_FLAG_STEREO
jz .mono_only
fld dword [stereo_mod]
fmulp
.mono_only:
add ebp, STATE_BYTES_PER_CHANNEL
.ch_left:
fstp dword [bss_stereo_factor]
and al, 0x7f ; strp stereo flag
%ifdef ENABLE_OSCILLATOR
cmp al, MODULE_TYPE_OSC
jne no_osc
call module_oscillator
no_osc:
%endif
%ifdef ENABLE_FILTER
cmp al, MODULE_TYPE_FILTER
jne no_filter
call module_filter
no_filter:
%endif
%ifdef ENABLE_ENVELOPE
cmp al, MODULE_TYPE_ENV
jne no_envelope
call module_envelope
no_envelope:
%endif
%ifdef ENABLE_COMPRESSOR
cmp al, MODULE_TYPE_COMPRESSOR
jne no_compressor
call module_compressor
no_compressor:
%endif
%ifdef ENABLE_DELAY
cmp al, MODULE_TYPE_DELAY
jne no_delay
call module_delay
no_delay:
%endif
;; element output now in st0
mov ebx, [esi + MODULE_OUT_OFFSET]
cmp ebx, -1
jne not_master_out
;; add to master (TODO: keep master out in fpu stack?)
faddp
jmp was_master_out
not_master_out:
add ebx, esi
;; set, add or multiply target
cmp ah, MODULE_OUT_OP_SET
je no_op
fld dword [ebx]
cmp ah, MODULE_OUT_OP_MULT
jne no_op_mult
fmulp
no_op_mult:
cmp ah, MODULE_OUT_OP_ADD
jne no_op_add
op_add:
faddp
no_op_add:
no_op:
fstp dword [ebx]
was_master_out:
;; next element
add esi, ELEMENT_DATA_BYTES
pop ebp ; restore ebp in case was adjusted for stereo
add ebp, STATE_BYTES_PER_CHANNEL * 2
;;
;; end element loop
;;
pop ecx
dec ecx
jnz element_loop
;;
;; end tracks loop
;;
pop ecx
dec ecx
jnz tracks_loop
;;;
;;; End track loop
;;;
;; decrement tick counter
;; TODO: would this fit in a reg?
mov esi, [bss_tick_ctr]
dec esi ; update tick counter
jns .no_newtick
mov esi, SONG_TICKLEN
.no_newtick:
mov [bss_tick_ctr], esi
fstp dword [edi]
add edi, 4
pop ecx
dec ecx
jnz synth_loop
popa
ret
%ifdef TRACKER_EMBED
;;;
;;; update synth data from memory
;;;
;;; normal args:
;;; ptr to patterns
;;; pattern bytes
;;; ptr to order
;;; order bytes
;;; ptr to instruments
;;; instrument bytes
synth_update:
mov eax, esp
pusha
mov esi, [eax + 4] ; patterns
mov ecx, [eax + 8]
mov edi, patterns
rep movsb
mov esi, [eax + 12] ; order
mov ecx, [eax + 16]
mov edi, order
rep movsb
mov esi, [eax + 20] ; instruments
mov ecx, [eax + 24]
mov edi, instr_data
rep movsb
xor eax, eax
mov [bss_order_pos], eax
mov [bss_pattern_pos], eax
mov [bss_tick_ctr], eax
;; zero state
mov edi, bss_work
mov ecx, STATE_BYTES_PER_CHANNEL * 2 * NUM_TRACKS * NUM_MODULES
rep stosb
;; need to set up work are again
xor eax, eax
mov [state_setup_done], eax
popa
ret
%endif
| 18.322581 | 88 | 0.690336 |
39c354caa5fd12d33a5173ae16ee80552204dfd0 | 236 | asm | Assembly | libsrc/_DEVELOPMENT/z180/c/sccz80/z180_otdr_callee.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/z180/c/sccz80/z180_otdr_callee.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/z180/c/sccz80/z180_otdr_callee.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; void *z180_otdr(void *src, uint8_t port, uint8_t num)
SECTION code_clib
SECTION code_z180
PUBLIC z180_otdr_callee
EXTERN asm_z180_otdr
z180_otdr_callee:
pop hl
pop de
pop bc
ex (sp),hl
ld b,e
jp asm_z180_otdr
| 11.8 | 55 | 0.720339 |
c5186c0b268b80450bd5848218a78bfc3b42f703 | 5,753 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_273.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_273.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_273.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r14
push %r15
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0xc885, %rsi
lea addresses_WT_ht+0xaa65, %rdi
nop
nop
sub $57973, %r10
mov $53, %rcx
rep movsb
nop
nop
nop
nop
nop
inc %r15
lea addresses_WT_ht+0x1a865, %rsi
lea addresses_UC_ht+0x18e5, %rdi
sub $25639, %r13
mov $82, %rcx
rep movsw
nop
sub $45610, %r15
lea addresses_A_ht+0x1b465, %rsi
lea addresses_D_ht+0xd1a4, %rdi
nop
nop
nop
nop
add $28493, %r13
mov $127, %rcx
rep movsl
nop
nop
nop
nop
nop
and $13423, %rsi
lea addresses_WC_ht+0x12751, %r10
nop
nop
nop
nop
inc %r11
movb $0x61, (%r10)
nop
nop
nop
nop
and $24614, %r10
lea addresses_A_ht+0xd965, %rsi
lea addresses_A_ht+0x1cde5, %rdi
nop
cmp $11420, %r14
mov $120, %rcx
rep movsq
nop
add $35167, %r15
lea addresses_normal_ht+0x32e5, %rsi
lea addresses_D_ht+0x19731, %rdi
sub %r13, %r13
mov $102, %rcx
rep movsq
xor $60923, %r11
lea addresses_WC_ht+0x6d65, %r13
nop
nop
nop
xor %r11, %r11
movw $0x6162, (%r13)
and $30097, %r15
pop %rsi
pop %rdi
pop %rcx
pop %r15
pop %r14
pop %r13
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r8
push %rbx
push %rcx
push %rdx
// Faulty Load
lea addresses_PSE+0x1d865, %r12
nop
nop
nop
nop
nop
xor %rbx, %rbx
mov (%r12), %r10
lea oracles, %rdx
and $0xff, %r10
shlq $12, %r10
mov (%rdx,%r10,1), %r10
pop %rdx
pop %rcx
pop %rbx
pop %r8
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 16, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'33': 21829}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
| 42.301471 | 2,999 | 0.662785 |
412d20d043d91011ac327e4010773aedc1eb7ca7 | 315 | asm | Assembly | libsrc/spectrum/display/zx_py2saddr.asm | grancier/z180 | e83f35e36c9b4d1457e40585019430e901c86ed9 | [
"ClArtistic"
] | null | null | null | libsrc/spectrum/display/zx_py2saddr.asm | grancier/z180 | e83f35e36c9b4d1457e40585019430e901c86ed9 | [
"ClArtistic"
] | null | null | null | libsrc/spectrum/display/zx_py2saddr.asm | grancier/z180 | e83f35e36c9b4d1457e40585019430e901c86ed9 | [
"ClArtistic"
] | 1 | 2019-12-03T23:57:48.000Z | 2019-12-03T23:57:48.000Z | ; uchar __FASTCALL__ *zx_py2saddr(uchar ycoord)
; aralbrec 06.2007
SECTION code_clib
PUBLIC zx_py2saddr
PUBLIC _zx_py2saddr
.zx_py2saddr
._zx_py2saddr
ld a,l
and $07
or $40
ld h,a
ld a,l
rra
rra
rra
and $18
or h
ld h,a
ld a,l
rla
rla
and $e0
ld l,a
ret
| 10.5 | 47 | 0.606349 |
84bf34c4b6cfc8d05334e2f593505738ac4934fe | 623 | asm | Assembly | libsrc/z80_crt0s/crt0/l_asr.asm | grancier/z180 | e83f35e36c9b4d1457e40585019430e901c86ed9 | [
"ClArtistic"
] | 8 | 2017-01-18T12:02:17.000Z | 2021-06-12T09:40:28.000Z | libsrc/z80_crt0s/crt0/l_asr.asm | grancier/z180 | e83f35e36c9b4d1457e40585019430e901c86ed9 | [
"ClArtistic"
] | 1 | 2017-03-06T07:41:56.000Z | 2017-03-06T07:41:56.000Z | libsrc/z80_crt0s/crt0/l_asr.asm | RC2014Z80/z88dk | e5b9447b970e5fae26544b6d8aa5957c98ba0e6a | [
"ClArtistic"
] | 3 | 2017-03-07T03:19:40.000Z | 2021-09-15T17:59:19.000Z | ; Z88 Small C+ Run time Library
; Moved functions over to proper libdefs
; To make startup code smaller and neater!
;
; 6/9/98 djm
;
; 22/3/99 djm Rewritten to be shorter..
SECTION code_crt0_sccz80
PUBLIC l_asr
.l_asr
ex de,hl
.l_asr1
dec e
ret m
sra h
rr l
jp l_asr1
IF ARCHAIC
.l_asr
ex de,hl
.l_asr1
dec e
ret m
ld a,h
rla
ld a,h
rra
ld h,a
ld a,l
rra
ld l,a
jr l_asr1
ENDIF
| 14.833333 | 48 | 0.439807 |
e9a660e912a4945bdbc2bdeb32320f44c604d4c3 | 439 | asm | Assembly | oeis/097/A097335.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/097/A097335.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/097/A097335.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A097335: Sum k=0..n, C(n-k, floor(k/2))3^k.
; Submitted by Christian Krause
; 1,4,4,13,49,85,202,643,1408,3226,9013,21685,50719,131836,327001,783472,1969996,4913005,11964253,29694217,73911262,181589539,448837492,1114038850,2748344701,6787882129,16814231779,41549334088,102640273249
lpb $0
sub $0,1
mul $1,3
add $1,1
mov $3,$1
mul $3,3
add $4,1
mov $1,$4
add $2,$3
mov $4,$2
sub $4,$3
lpe
mov $0,$1
mul $0,3
add $0,1
| 21.95 | 205 | 0.678815 |
e52ea350733eeaf824f93998a102a43f39b688da | 292 | asm | Assembly | oeis/135/A135537.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/135/A135537.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/135/A135537.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A135537: Period 4: repeat [7, 5, 2, 4].
; 7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5,2,4,7,5
mov $1,$0
div $0,2
gcd $0,2
add $0,2
add $1,2
pow $0,$1
add $0,1
mod $0,10
| 24.333333 | 173 | 0.517123 |
1e172b5848dae804849216b9b4d8380da6a542f7 | 36,371 | asm | Assembly | main.asm | jalan/fan_control | 3626c16f053603dbfb96a169fc85ca11526c39bc | [
"MIT"
] | null | null | null | main.asm | jalan/fan_control | 3626c16f053603dbfb96a169fc85ca11526c39bc | [
"MIT"
] | null | null | null | main.asm | jalan/fan_control | 3626c16f053603dbfb96a169fc85ca11526c39bc | [
"MIT"
] | null | null | null | #include <p18F2423.inc> ; Define processor-specific variables
list p=18F2423 ; Include a .lst output
;==============================================================================;
; Configuration bits: see p18F2423.inc for full details ;
;==============================================================================;
CONFIG OSC = INTIO67 ; Use internal oscillator; RA6 and RA7 are used
; for port I/O
CONFIG FCMEN = OFF ; Fail-safe clock monitor disabled
CONFIG IESO = OFF ; Oscillator switchover mode disabled
CONFIG PWRT = OFF ; Power-up timer is disabled
CONFIG BOREN = OFF ; Brown-out reset disabled in hardware and
; software
CONFIG BORV = 2 ; Brown-out voltage is 2V
CONFIG WDT = OFF ; Watchdog timer disabled (control is placed on
; the SWDTEN bit)
CONFIG WDTPS = 32768 ; Watchdog timer postscaler is 1:32768
CONFIG MCLRE = ON ; MCLR pin enabled; RE3 input pin disabled
CONFIG LPT1OSC = OFF ; Timer1 configured for higher power operation
CONFIG PBADEN = OFF ; PORTB<4:0> pins are configured as digital I/O
; on reset
CONFIG CCP2MX = PORTC ; CCP2 input/output is multiplexed with RC1
CONFIG STVREN = ON ; Stack full/underflow will cause reset
CONFIG LVP = ON ; Low-voltage programming is enabled
CONFIG XINST = OFF ; Extended instruction set is disabled
CONFIG DEBUG = ON ; Background debugger enabled, using RB6 and RB7
CONFIG CP0 = OFF ; Block 0 (000800-001FFFh) not code-protected
CONFIG CP1 = OFF ; Block 1 (002000-003FFFh) not code-protected
CONFIG CPB = OFF ; Boot block (000000-0007FFh) not code-protected
CONFIG CPD = OFF ; Data EEPROM not code-protected
CONFIG WRT0 = OFF ; Block 0 (000800-001FFFh) not write-protected
CONFIG WRT1 = OFF ; Block 1 (002000-003FFFh) not write-protected
CONFIG WRTB = OFF ; Boot block (000000-0007FFh) not
; write-protected
CONFIG WRTC = OFF ; Configuration registers (300000-3000FFh) not
; write-protected
CONFIG WRTD = OFF ; Data EEPROM not write-protected
CONFIG EBTR0 = OFF ; Block 0 (000800-001FFFh) not protected from
; table reads
CONFIG EBTR1 = OFF ; Block 1 (002000-003FFFh) not protected from
; table reads
CONFIG EBTRB = OFF ; Boot block (000000-0007FFh) not protected from
; table reads
;==============================================================================;
; Symbol table ;
;==============================================================================;
udata_acs 0x00
duty_cycle res 1 ; (Desired duty cycle)/10%, e.g. 50% -> 5
temp_internal res 1 ; Temperature inside cabinet (F)
temp_external res 1 ; Temperature outside cabinet (F)
temp_diff res 1 ; temp_internal - temp_external (F)
temp_int_tens res 1 ; |
temp_int_ones res 1 ; |
temp_ext_tens res 1 ; |-- We have only two digits on the display for
temp_ext_ones res 1 ; | temperatures
fan_1_period_hi res 1 ; 8 high bits of the 16-bit period for one pulse
fan_1_period_lo res 1 ; 8 low bits of the 16-bit period for one pulse
fan_2_period_hi res 1 ; 8 high bits of the 16-bit period for one pulse
fan_2_period_lo res 1 ; 8 low bits of the 16-bit period for one pulse
fan_1_thousands res 1 ; |
fan_1_hundreds res 1 ; |
fan_2_thousands res 1 ; |-- RPM values to send to the display
fan_2_hundreds res 1 ; |
dividend_hi res 1 ; |-- Dividend for DIVIDE_24BY16 routine, also where
dividend_mid res 1 ; | the quotient ends up, and will serve as input
dividend_lo res 1 ; | to the BIN_TO_BCD routine
divisor_hi res 1 ; |
divisor_lo res 1 ; |-- Divisor for DIVIDE_24BY16 routine
loop_count_24by16 res 1 ; Loop counter used by DIVIDE_24BY16 routine
remainder_hi res 1 ; |
remainder_lo res 1 ; |-- Remainder from DIVIDE_24BY16 routine
bcd_ten_thousands res 1 ; |
bcd_thousands res 1 ; |
bcd_hundreds res 1 ; |
bcd_tens res 1 ; |-- Output from the BIN_TO_BCD routine
bcd_ones res 1 ; |
routine_temp res 1 ; Used by DISP_W
fan_1_error res 1 ; If this is set, fan 1 is stuck
fan_2_error res 1 ; If this is set, fan 2 is stuck
delay_1 res 1 ; |
delay_2 res 1 ; |-- Used in the WAIT_ routines
;==============================================================================;
; Reset and interrupt vectors ;
;==============================================================================;
ORG 0x0000
RESET_VECTOR
BRA MAIN
; These should never happen at this point, but just in case...
ORG 0x0008
HP_INTERRUPT
RETFIE ; High-priority interrupt vector: just return and
; re-enable interrupts
ORG 0x0018
LP_INTERRUPT
RETFIE ; Low-priority interrupt vector: just return and
; re-enable interrupts
;==============================================================================;
; Main routine ;
;==============================================================================;
ORG 0x0028
MAIN
CALL INITIALIZE
MAIN_LOOP_0
CALL CHECK_TV
CALL GET_TEMPS
CALL GET_TEMP_DIGITS
CALL TEMP_TO_DUTY
MAIN_LOOP_1
CALL DUTY_TO_PWM
; Give the fans a moment to get going
CALL WAIT_100_MS
CALL WAIT_100_MS
CALL WAIT_100_MS
CALL WAIT_100_MS
CALL WAIT_100_MS
CALL GET_FAN_PERIODS
; Handle possible stuck fan error
MOVF fan_1_error, W, A
BNZ FAN_ERROR_HANDLE
MOVF fan_2_error, W, A
BNZ FAN_ERROR_HANDLE
BRA NO_ERROR
FAN_ERROR_HANDLE
BSF LATB, RB3, A ; Turn on "error" light
CLRF fan_1_thousands, A ; |
CLRF fan_1_hundreds, A ; |
CLRF fan_2_thousands, A ; |-- We will display '00' on the
CLRF fan_2_hundreds, A ; | RPM display
BTFSC fan_1_error, 1, A
CALL DISP_1 ; Fan 1 is stuck
BTFSC fan_2_error, 1, A
CALL DISP_2 ; Fan 2 is stuck
MOVF duty_cycle, W, A
ADDLW -D'10'
BZ DUTY_IS_MAXED ; duty_cycle is 10 already
CALL INC_DUTY_CYCLE ; Increase duty_cycle
DUTY_IS_MAXED
BRA MAIN_LOOP_1
NO_ERROR
BCF LATB, RB3, A ; Turn off "error" light
CALL GET_RPM_DIGITS
; Display the speed of fan 1 for a second
CALL DISP_1
CALL WAIT_100_MS
CALL WAIT_100_MS
CALL WAIT_100_MS
CALL WAIT_100_MS
CALL WAIT_100_MS
CALL WAIT_100_MS
CALL WAIT_100_MS
CALL WAIT_100_MS
CALL WAIT_100_MS
CALL WAIT_100_MS
; Display the speed of fan 2 for a second
CALL DISP_2
CALL WAIT_100_MS
CALL WAIT_100_MS
CALL WAIT_100_MS
CALL WAIT_100_MS
CALL WAIT_100_MS
CALL WAIT_100_MS
CALL WAIT_100_MS
CALL WAIT_100_MS
CALL WAIT_100_MS
CALL WAIT_100_MS
; Start over
BRA MAIN_LOOP_0
;==============================================================================;
; Other routines ;
;==============================================================================;
INITIALIZE ; Configure pins and peripherals
; The debugger seems to keep enabling interrupts, so this is necessary for now
CLRF INTCON, A
; Clear error indicators
CLRF fan_1_error, A
CLRF fan_2_error, A
;----------------------;
; Set up and start PWM ;
;----------------------;
; Set the period to ~100 Hz by putting 155 in PR2 and setting the TMR2 prescaler
; to 16. The period is given by the following:
; (PWM period) = [(PR2)+1]*4*TOSC*(TMR2 prescaler)
; (TOSC is by default 10^-6 on this chip)
MOVLW D'155'
MOVWF PR2, A
BSF T2CON, T2CKPS1, A
; Record the duty cycle level
MOVLW D'0'
MOVWF duty_cycle, A
; Set the PWM 1 duty cycle to 0% by default
; (PWM duty period) = (CCPR1L:CCP1CON<5:4>)*TOSC*(TMR2 prescaler)
BCF CCP1CON, DC1B1, A ; Just leave these two cleared throughout,
BCF CCP1CON, DC1B0, A ; since we don't need the fine resolution
; Set the PWM 2 duty cycle to 0% by default (requires inversion off-chip)
; (PWM duty period) = (CCPR2L:CCP2CON<5:4>)*TOSC*(TMR2 prescaler)
BCF CCP2CON, DC2B1, A ; Just leave these two cleared throughout,
BCF CCP2CON, DC2B0, A ; since we don't need the fine resolution
CALL DUTY_TO_PWM
; Set the appropriate pins to output
BCF TRISC, CCP1, A
BCF TRISC, RC1, A ; RC1 = CCP2
; Start TIMER2
BSF T2CON, TMR2ON, A
; Start PWM 1
BSF CCP1CON, CCP1M3, A
BSF CCP1CON, CCP1M2, A
; Start PWM 2
BSF CCP2CON, CCP2M3, A
BSF CCP2CON, CCP2M2, A
;------------------------------------------------;
; Configure A/D converter for temperature inputs ;
;------------------------------------------------;
; By default, the power supply voltages (0 and 5V) are used as references
; Make RA0 and RA1 analog inputs
BSF ADCON1, PCFG3, A
BSF ADCON1, PCFG2, A
BCF ADCON1, PCFG1, A
BSF ADCON1, PCFG0, A
; Use left-justified results
BCF ADCON2, ADFM, A
; We'll do slow conversions
BSF ADCON2, ACQT2, A
BSF ADCON2, ACQT1, A
BSF ADCON2, ACQT0, A
; Turn on the converter
BSF ADCON0, ADON, A
;----------------------------------------;
; Prepare MSSP for seven-segment display ;
;----------------------------------------;
; SSPSTAT looks good by default
BSF SSPCON1, SSPM1, A ; Master mode with clock = FOSC/64
BSF SSPCON1, SSPEN, A ; MSSP enabled
BCF TRISC, SDO, A ; Serial data output enabled
BCF TRISC, SCK, A ; Clock output enabled
BCF TRISC, RC7, A ; |
BCF PORTC, RC7, A ; |-- This is for latch control
;---------------------------------------------------------------;
; Prepare outputs for lights, and turn on the "operating" light ;
;---------------------------------------------------------------;
; This "initializes" PORTB? Data sheet is unclear
CLRF PORTB, A
CLRF LATB, A
; Pin 25, for the "operating" light
BCF TRISB, RB4, A ; Set to output
BSF LATB, RB4, A ; It's on by default
; Pin 24, for the "error" light
BCF TRISB, RB3, A ; Set to output
BCF LATB, RB3, A ; It's off by default
;------------------------------------------------------;
; Enable "weak" internal pull-ups on tachometer inputs ;
;------------------------------------------------------;
MOVLW B'00000110' ; |-- Use pull-ups on RB1 and RB2
MOVWF LATB, A ; |
BCF INTCON2, RBPU, A ; Enable pull-ups
RETURN
;-------------------------------------------------------------------------------
CHECK_TV ; If the TV is off, disable PWM and wait for it to come back on
BTFSC PORTB, RB0, A ; Is the TV on?
RETURN ; If yes, don't change anything
TV_IS_OFF
; Disable the fans
CLRF duty_cycle, A
CALL DUTY_TO_PWM
; Clear the display
CALL DISP_OFF
; Turn off the lights
BCF LATB, RB3, A ; Turn off "error" light
BCF LATB, RB4, A ; Turn off "operating" light
; Is the TV still off?
STILL_OFF
BTFSS PORTB, RB0, A ; Is the TV on?
BRA STILL_OFF ; If no, don't do anything
; When the TV comes back on, just reset
RESET
;-------------------------------------------------------------------------------
GET_TEMPS ; Fill in temp_internal, temp_external, and temp_diff
; "The user is responsible for ensuring the required
; acquisition time has passed between selecting the desired
; input channel and setting the GO/!DONE bit"
; I'm only using 8 bits of the converter, so the temperature in F is
; [ADRESH]*500/256. This means the temperature in F is about [ADRESH]*2.
; This is off by about 1.5 at 70 F and about 2.5 at 100 F
; Select channel for temp_internal
BCF ADCON0, CHS3, A
BCF ADCON0, CHS2, A
BCF ADCON0, CHS1, A
BCF ADCON0, CHS0, A
; Wait a bit
CALL WAIT_10_MS
; Start the conversion
BSF ADCON0, GO, A
; Wait for it to finish
WAIT_FOR_TEMP_1
BTFSC ADCON0, GO, A
BRA WAIT_FOR_TEMP_1 ; Not done yet
; Save the temperature in F
RLNCF ADRESH, W, A
MOVWF temp_internal, A
; Select channel for temp_external
BCF ADCON0, CHS3, A
BCF ADCON0, CHS2, A
BCF ADCON0, CHS1, A
BSF ADCON0, CHS0, A
; Wait a bit
CALL WAIT_10_MS
; Start the conversion
BSF ADCON0, GO, A
; Wait for it to finish
WAIT_FOR_TEMP_2
BTFSC ADCON0, GO, A
BRA WAIT_FOR_TEMP_2 ; Not done yet
; Save the temperature in F
RLNCF ADRESH, W, A
MOVWF temp_external, A
; Put -temp_external in W
COMF temp_external, W, A
ADDLW D'1'
; Add temp_internal to W
ADDWF temp_internal, W, A
; Store the result
MOVWF temp_diff, A
RETURN
;-------------------------------------------------------------------------------
GET_TEMP_DIGITS ; Convert the temperatures to BCD for displaying
; Set temp_internal as the input
CLRF dividend_hi, A
CLRF dividend_mid, A
MOVF temp_internal, W, A
MOVWF dividend_lo, A
; Convert to BCD
CALL BIN_TO_BCD
; Save the tens digit
MOVF bcd_tens, W, A
MOVWF temp_int_tens, A
; Save the ones digit
MOVF bcd_ones, W, A
MOVWF temp_int_ones, A
; Set temp_external as the input
CLRF dividend_hi, A
CLRF dividend_mid, A
MOVF temp_external, W, A
MOVWF dividend_lo, A
; Convert to BCD
CALL BIN_TO_BCD
; Save the tens digit
MOVF bcd_tens, W, A
MOVWF temp_ext_tens, A
; Save the ones digit
MOVF bcd_ones, W, A
MOVWF temp_ext_ones, A
RETURN
;-------------------------------------------------------------------------------
TEMP_TO_DUTY ; Based on temp_internal, temp_external, and temp_diff, set
; duty_cycle
MOVF temp_internal, W, A
ADDLW -D'100'
BN TTD_0 ; If it's above 100 F inside, go 100%
MOVLW D'10'
MOVWF duty_cycle, A
RETURN
TTD_0
MOVF temp_internal, W, A
ADDLW -D'75'
BNN TTD_1 ; If it's below 75 F inside, go 0%
MOVLW D'0'
MOVWF duty_cycle, A
RETURN
TTD_1
MOVF temp_diff, W, A
BNN TTD_2 ; If it's above 75 F inside, but it is hotter
MOVLW D'5' ; outside, play it safe with 50%
MOVWF duty_cycle, A
RETURN
TTD_2
; Handle what's left
MOVLW D'5' ; Start with 50%
MOVWF duty_cycle, A
; For each 10 F of difference, add 10%
MOVF temp_diff, W, A
TTD_LOOP
ADDLW -D'10'
BN TTD_CHECK ; If negative, we're done
INCF duty_cycle, F, A
BRA TTD_LOOP
TTD_CHECK
; Make sure duty_cycle doesn't go above ten
MOVF duty_cycle, W, A
ADDLW -D'11'
BN TTD_END
MOVLW D'10'
MOVWF duty_cycle, A
TTD_END
RETURN
;-------------------------------------------------------------------------------
DUTY_TO_PWM ; Provide the PWM modules with values for duty_cycle
; Update the PWM 1 duty cycle
MOVLW high(PWM_1_DUTY_TABLE)
MOVWF PCLATH, A
RLNCF duty_cycle, W, A
CALL PWM_1_DUTY_TABLE
MOVWF CCPR1L, A
; Update the PWM 2 duty cycle
MOVLW high(PWM_2_DUTY_TABLE)
MOVWF PCLATH, A
RLNCF duty_cycle, W, A
CALL PWM_2_DUTY_TABLE
MOVWF CCPR2L, A
RETURN
;-------------------------------------------------------------------------------
GET_FAN_PERIODS ; Use TIMER1 to fill in fan_1_period_hi, fan_1_period_lo,
; fan_2_period_hi, and fan_2_period_lo
; If duty_cycle is 0, just return
MOVF duty_cycle, W, A
BNZ CONTINUE_GET_FAN_PERIODS
CLRF fan_1_error, A
RETURN
CONTINUE_GET_FAN_PERIODS
; Fan 1
; Clear TIMER1
CLRF TMR1L, A
CLRF TMR1H, A
; Hold PWM 1 high
MOVLW D'157'
MOVWF CCPR1L, A
; Wait for the duty cycle change to take effect
CALL WAIT_10_MS
; Start timing
BSF T1CON, TMR1ON, A
; Wait for a low
WAIT_FOR_LO_1_1
BTFSC PIR1, TMR1IF, A ; Did TIMER1 overflow?
BRA DEAD_FAN_1 ; Yes, a fan isn't spinning
BTFSC PORTB, RB1, A ; Is it low?
BRA WAIT_FOR_LO_1_1 ; No, go back and wait
; Clear timer
CLRF TMR1L, A
CLRF TMR1H, A
; Now wait for high
WAIT_FOR_HI_1_1
BTFSC PIR1, TMR1IF, A ; Did TIMER1 overflow?
BRA DEAD_FAN_1 ; Yes, a fan isn't spinning
BTFSS PORTB, RB1, A ; Is it high?
BRA WAIT_FOR_HI_1_1 ; No, go back and wait
; Low-to-high transition occurred, so stop, clear, start timer
BCF T1CON, TMR1ON, A
CLRF TMR1L, A
CLRF TMR1H, A
BSF T1CON, TMR1ON, A
; Now wait for low again
WAIT_FOR_LO_2_1
BTFSC PIR1, TMR1IF, A ; Did TIMER1 overflow?
BRA DEAD_FAN_1 ; Yes, a fan isn't spinning
BTFSC PORTB, RB1, A ; Is it low?
BRA WAIT_FOR_LO_2_1 ; No, go back and wait
; It's low, so stop timing
BCF T1CON, TMR1ON, A
; Save the timing results
MOVF TMR1H, W, A
MOVWF fan_1_period_hi, A
MOVF TMR1L, W, A
MOVWF fan_1_period_lo, A
; Fan 2
; Clear TIMER1
CLRF TMR1L, A
CLRF TMR1H, A
; Hold PWM 2 high
MOVLW D'0'
MOVWF CCPR2L, A
; Wait for the duty cycle change to take effect
CALL WAIT_10_MS
; Start timing
BSF T1CON, TMR1ON, A
; Wait for a low
WAIT_FOR_LO_1_2
BTFSC PIR1, TMR1IF, A ; Did TIMER1 overflow?
BRA DEAD_FAN_2 ; Yes, a fan isn't spinning
BTFSC PORTB, RB2, A ; Is it low?
BRA WAIT_FOR_LO_1_2 ; No, go back and wait
; Clear timer
CLRF TMR1L, A
CLRF TMR1H, A
; Now wait for high
WAIT_FOR_HI_1_2
BTFSC PIR1, TMR1IF, A ; Did TIMER1 overflow?
BRA DEAD_FAN_2 ; Yes, a fan isn't spinning
BTFSS PORTB, RB2, A ; Is it high?
BRA WAIT_FOR_HI_1_2 ; No, go back and wait
; Low-to-high transition occurred, so stop, clear, start timer
BCF T1CON, TMR1ON, A
CLRF TMR1L, A
CLRF TMR1H, A
BSF T1CON, TMR1ON, A
; Now wait for low again
WAIT_FOR_LO_2_2
BTFSC PIR1, TMR1IF, A ; Did TIMER1 overflow?
BRA DEAD_FAN_2 ; Yes, a fan isn't spinning
BTFSC PORTB, RB2, A ; Is it low?
BRA WAIT_FOR_LO_2_2 ; No, go back and wait
; It's low, so stop timing
BCF T1CON, TMR1ON, A
; Save the timing results
MOVF TMR1H, W, A
MOVWF fan_2_period_hi, A
MOVF TMR1L, W, A
MOVWF fan_2_period_lo, A
; If we got here, there was no error
; Re-enable PWM
CALL DUTY_TO_PWM
CLRF fan_1_error
CLRF fan_2_error
BCF PIR1, TMR1IF, A ; Clear TIMER1 interrupt flag
RETURN
DEAD_FAN_1
SETF fan_1_error ; This indicates there is a stuck fan
BCF T1CON, TMR1ON, A ; Turn off TIMER1
BCF PIR1, TMR1IF, A ; Clear TIMER1 interrupt flag
RETURN
DEAD_FAN_2
SETF fan_2_error ; This indicates there is a stuck fan
BCF T1CON, TMR1ON, A ; Turn off TIMER1
BCF PIR1, TMR1IF, A ; Clear TIMER1 interrupt flag
RETURN
;-------------------------------------------------------------------------------
INC_DUTY_CYCLE ; Increase duty_cycle by 1
MOVLW D'1'
ADDWF duty_cycle, F, A
RETURN
;-------------------------------------------------------------------------------
GET_RPM_DIGITS ; Use fan_1_period_hi, fan_1_period_lo, fan_2_period_hi, and
; fan_2_period_lo to set fan_1_thousands, fan_1_hundreds,
; fan_2_thousands, and fan_2_hundreds
; If duty_cycle is 0, just return a bunch of zeroes
MOVF duty_cycle, W, A
BNZ CONTINUE_GET_RPM_DIGITS
CLRF fan_1_thousands, A
CLRF fan_1_hundreds, A
CLRF fan_2_thousands, A
CLRF fan_2_hundreds, A
RETURN
CONTINUE_GET_RPM_DIGITS
; Fan 1
; Put D'3750000'=H'393870' as the dividend
MOVLW H'39'
MOVWF dividend_hi, A
MOVLW H'38'
MOVWF dividend_mid, A
MOVLW H'70'
MOVWF dividend_lo, A
; Supply the divisor
MOVF fan_1_period_hi, W, A
MOVWF divisor_hi, A
MOVF fan_1_period_lo, W, A
MOVWF divisor_lo, A
; Divide it
CALL DIVIDE_24BY16
; Convert the quotient to BCD
CALL BIN_TO_BCD
; Save the thousands digit
MOVF bcd_thousands, W, A
MOVWF fan_1_thousands, A
; Save the hundreds digit
MOVF bcd_hundreds, W, A
MOVWF fan_1_hundreds, A
; Fan 2
; Put D'3750000'=H'393870' as the dividend
MOVLW H'39'
MOVWF dividend_hi, A
MOVLW H'38'
MOVWF dividend_mid, A
MOVLW H'70'
MOVWF dividend_lo, A
; Supply the divisor
MOVF fan_2_period_hi, W, A
MOVWF divisor_hi, A
MOVF fan_2_period_lo, W, A
MOVWF divisor_lo, A
; Divide it
CALL DIVIDE_24BY16
; Convert the quotient to BCD
CALL BIN_TO_BCD
; Save the thousands digit
MOVF bcd_thousands, W, A
MOVWF fan_2_thousands, A
; Save the hundreds digit
MOVF bcd_hundreds, W, A
MOVWF fan_2_hundreds, A
RETURN
;-------------------------------------------------------------------------------
DISP_1 ; Show the speed of fan 1 on the display
; Show the internal temperature on the display
; Display the hundreds digit of fan 1 RPM
MOVF fan_1_hundreds, W, A
CALL DISP_W
; Display the thousands digit of fan 1 RPM
MOVF fan_1_thousands, W, A
CALL DISP_W
; Display a "1" to indicate that this is fan 1
MOVLW D'1'
CALL DISP_W
; Display the ones digit of the internal temperature
MOVF temp_int_ones, W, A
CALL DISP_W
; Display the tens digit of the internal temperature
MOVF temp_int_tens, W, A
CALL DISP_W
; Display an "I" to indicate that this is the internal temperature
MOVLW D'1'
CALL DISP_W
RETURN
;-------------------------------------------------------------------------------
DISP_2 ; Show the speed of fan 2 on the display
; Show the external temperature on the display
; Display the hundreds digit of fan 2 RPM
MOVF fan_2_hundreds, W, A
CALL DISP_W
; Display the thousands digit of fan 2 RPM
MOVF fan_2_thousands, W, A
CALL DISP_W
; Display a "2" to indicate that this is fan 2
MOVLW D'2'
CALL DISP_W
; Display the ones digit of the external temperature
MOVF temp_ext_ones, W, A
CALL DISP_W
; Display the tens digit of the external temperature
MOVF temp_ext_tens, W, A
CALL DISP_W
; Display an "O" to indicate that this is the external (outside) temperature
MOVLW D'0'
CALL DISP_W
RETURN
;-------------------------------------------------------------------------------
DISP_OFF ; Don't display anything on the display
; Set W to all high
MOVLW H'FF'
; Send that to the display six times
CALL DISP_DIRECT
CALL DISP_DIRECT
CALL DISP_DIRECT
CALL DISP_DIRECT
CALL DISP_DIRECT
CALL DISP_DIRECT
RETURN
;-------------------------------------------------------------------------------
DISP_W ; Send the digit (0-9) in W to the display
; Store the digit away
MOVWF routine_temp, A
; Prepare for table call
MOVLW high(DIGIT_TO_CODE)
MOVWF PCLATH, A
; Get digit and convert it via table lookup
RLNCF routine_temp, W, A
CALL DIGIT_TO_CODE
; Send it to the display
MOVWF SSPBUF, A
; Wait for transmission to end
LOOP_DISP_W
BTFSS SSPSTAT, BF, A ; Transmit complete?
BRA LOOP_DISP_W ; No, keep waiting
; Hit the display latch
BSF PORTC, RC7, A
BCF PORTC, RC7, A
RETURN
;-------------------------------------------------------------------------------
DISP_DIRECT ; Send what is in W straight to the display
; Preserves content of W
; Send it to the display
MOVWF SSPBUF, A
; Wait for transmission to end
LOOP_DISP_DIRECT
BTFSS SSPSTAT, BF, A ; Transmit complete?
BRA LOOP_DISP_DIRECT ; No, keep waiting
; Hit the display latch
BSF PORTC, RC7, A
BCF PORTC, RC7, A
RETURN
;-------------------------------------------------------------------------------
DIVIDE_24BY16 ; Divide a 24-bit number by a 16-bit number
; Dividend: dividend_hi:dividend_mid:dividend_lo
; Divisor: divisor_hi:divisor_lo
; A counter is needed: loop_count_24by16
; Temporary storage for remainder: remainder_hi:remainder_lo
; Resulting quotient: dividend_hi:dividend_mid:dividend_lo
; (I found this routine online, license unknown, but obviously
; intended for public use. The author is Nikolai Golovchenko.)
CLRF remainder_hi, A
CLRF remainder_lo, A
MOVLW D'24'
MOVWF loop_count_24by16, A
LOOP_24BY16
RLCF dividend_lo, W, A
RLCF dividend_mid, F, A
RLCF dividend_hi, F, A
RLCF remainder_lo, F, A
RLCF remainder_hi, F, A
RLCF dividend_lo, F, A
MOVF divisor_lo, W, A
SUBWF remainder_lo, F, A
MOVF divisor_hi, W, A
BTFSS STATUS, C, A
INCFSZ divisor_hi, W, A
SUBWF remainder_hi, F, A
BTFSC STATUS, C, A
BSF dividend_lo, 0, A
BTFSC dividend_lo, 0, A
GOTO SKIP_24BY16
ADDWF remainder_hi, F, A
MOVF divisor_lo, W, A
ADDWF remainder_lo, F, A
SKIP_24BY16
DECFSZ loop_count_24by16, F, A
GOTO LOOP_24BY16
RETURN
;-------------------------------------------------------------------------------
BIN_TO_BCD ; Convert 16-bit binary to 5-digit BCD
; Binary input: dividend_mid:dividend_lo
; BCD output: bcd_ten_thousands:bcd_thousands:bcd_hundreds:bcd_tens:
; bcd_ones
; (I found this routine under the same circumstances as above. The
; authors are Juan Mayoral, Scott Dattalo, and John Payson.)
SWAPF dividend_lo, W, A
ADDWF dividend_lo, W, A
ANDLW H'0F'
BTFSC STATUS, DC, A
ADDLW H'16'
BTFSC STATUS, DC, A
ADDLW H'06'
ADDLW H'06'
BTFSS STATUS, DC, A
ADDLW -H'06'
BTFSC dividend_lo, 4, A
ADDLW H'1B'
BTFSS STATUS, DC, A
ADDLW -H'06'
MOVWF bcd_ones, A
SWAPF dividend_mid, W, A
ADDWF dividend_mid, W, A
ANDLW H'0F'
BTFSC STATUS, DC, A
ADDLW H'16'
BTFSC STATUS, DC, A
ADDLW H'06'
ADDLW H'06'
BTFSS STATUS, DC, A
ADDLW -H'06'
BTFSC dividend_mid, 0, A
ADDLW H'0B'
BTFSS STATUS, DC, A
ADDLW -H'06'
BTFSC dividend_mid, 4, A
ADDLW H'1B'
BTFSS STATUS, DC, A
ADDLW -H'06'
ADDLW H'06'
ADDWF bcd_ones, W, A
BTFSS STATUS, DC, A
ADDLW -H'06'
MOVWF bcd_ones, A
MOVWF bcd_tens, A
SWAPF bcd_tens, F, A
MOVLW H'0F'
ANDWF bcd_ones, F, A
ANDWF bcd_tens, F, A
RRCF dividend_mid, W, A
ANDLW H'0F'
ADDLW H'06'
BTFSS STATUS, DC, A
ADDLW -H'06'
ADDLW H'06'
ADDWF bcd_tens, W, A
BTFSS STATUS, DC, A
ADDLW -H'06'
BTFSC dividend_lo, 5, A
ADDLW H'09'
BTFSS STATUS, DC, A
ADDLW -H'06'
BTFSC dividend_lo, 6, A
ADDLW H'0C'
BTFSS STATUS, DC, A
ADDLW -H'06'
BTFSC dividend_lo, 7, A
ADDLW H'18'
BTFSS STATUS, DC, A
ADDLW -H'06'
BTFSC dividend_mid, 0, A
ADDLW H'2B'
BTFSS STATUS, DC, A
ADDLW -H'06'
BTFSC dividend_mid, 5, A
ADDLW H'0F'
BTFSS STATUS, DC, A
ADDLW -H'06'
BTFSC dividend_mid, 6, A
ADDLW H'0E'
BTFSS STATUS, DC, A
ADDLW -H'06'
BTFSC dividend_mid, 7, A
ADDLW H'0C'
BTFSS STATUS, DC, A
ADDLW -H'06'
MOVWF bcd_tens, A
SWAPF bcd_tens, W, A
ANDLW H'0F'
BTFSC dividend_mid, 1, A
ADDLW H'0B'
BTFSS STATUS, DC, A
ADDLW -H'06'
BTFSC dividend_mid, 5, A
ADDLW H'07'
BTFSS STATUS, DC, A
ADDLW -H'06'
BTFSC dividend_mid, 6, A
ADDLW H'09'
BTFSS STATUS, DC, A
ADDLW -H'06'
BTFSC dividend_mid, 7, A
ADDLW H'0D'
BTFSS STATUS, DC, A
ADDLW -H'06'
MOVWF bcd_hundreds, A
SWAPF bcd_hundreds, W, A
MOVWF bcd_thousands, A
MOVLW H'0F'
ANDWF bcd_tens, F, A
ANDWF bcd_hundreds, F, A
ANDWF bcd_thousands, F, A
RRCF dividend_mid, W, A
MOVWF bcd_ten_thousands, A
RRCF bcd_ten_thousands, W, A
ANDLW H'0F'
ADDLW H'06'
BTFSS STATUS, DC, A
ADDLW -H'06'
ADDLW H'06'
ADDWF bcd_thousands, W, A
BTFSS STATUS, DC, A
ADDLW -H'06'
BTFSC dividend_mid, 6, A
ADDLW H'1C'
BTFSS STATUS, DC, A
ADDLW -H'06'
BTFSC dividend_mid, 7, A
ADDLW H'38'
BTFSS STATUS, DC, A
ADDLW -H'06'
MOVWF bcd_thousands, A
MOVWF bcd_ten_thousands, A
SWAPF bcd_ten_thousands, F, A
MOVLW H'0F'
ANDWF bcd_thousands, F, A
ANDWF bcd_ten_thousands, F, A
RETURN
;-------------------------------------------------------------------------------
WAIT_10_MS ; Wait 10 ms without using one of the timers
MOVLW H'F2'
MOVWF delay_1, A
MOVLW H'02'
MOVWF delay_2, A
WAIT_10_MS_0
DECFSZ delay_1, F, A
GOTO $ + 6
DECFSZ delay_2, F, A
GOTO WAIT_10_MS_0
NOP
NOP
NOP
RETURN
;-------------------------------------------------------------------------------
WAIT_100_MS ; Wait 100 ms without using one of the timers
MOVLW H'86'
MOVWF delay_1, A
MOVLW H'14'
MOVWF delay_2, A
WAIT_100_MS_0
DECFSZ delay_1, F, A
GOTO $ + 6
DECFSZ delay_2, F, A
GOTO WAIT_100_MS_0
NOP
NOP
NOP
RETURN
;==============================================================================;
; Tables in program memory: be sure none of these cross page boundaries ;
;==============================================================================;
; How to make a table call, assuming the table starts at 0x0nn00:
; MOVLW high(TABLE)
; MOVWF PCLATH, A
; ; Now get your index into W. Make sure it's even
; CALL TABLE
;-------------------------------------------------------------------------------
; These are just the eight high bits that go in CCPRxL. The low bits are left at
; 0, since we don't need the fine resolution.
ORG 0x2000
PWM_1_DUTY_TABLE
ADDWF PCL, F, A
RETLW D'0' ; 0%, off
RETLW D'16' ; 10%
RETLW D'32' ; 20%
RETLW D'47' ; 30%
RETLW D'63' ; 40%
RETLW D'79' ; 50%
RETLW D'94' ; 60%
RETLW D'110' ; 70%
RETLW D'125' ; 80%
RETLW D'141' ; 90%
RETLW D'157' ; 100%, on
ORG 0x2100
PWM_2_DUTY_TABLE
ADDWF PCL, F, A
RETLW D'157' ; 0%, off
RETLW D'141' ; 10%
RETLW D'125' ; 20%
RETLW D'110' ; 30%
RETLW D'94' ; 40%
RETLW D'79' ; 50%
RETLW D'63' ; 60%
RETLW D'47' ; 70%
RETLW D'32' ; 80%
RETLW D'16' ; 90%
RETLW D'0' ; 100%, on
;-------------------------------------------------------------------------------
ORG 0x2200
DIGIT_TO_CODE
ADDWF PCL, F, A
RETLW ~H'7E' ; 0
RETLW ~H'0C' ; 1
RETLW ~H'B6' ; 2
RETLW ~H'9E' ; 3
RETLW ~H'CC' ; 4
RETLW ~H'DA' ; 5
RETLW ~H'FA' ; 6
RETLW ~H'0E' ; 7
RETLW ~H'FE' ; 8
RETLW ~H'CE' ; 9
END
| 33.306777 | 81 | 0.488191 |
f465eb6a20ea3231273abf666e568004e3d4aec7 | 8,488 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_ht_st_zr_un_/i7-7700_9_0x48.log_21829_2894.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_ht_st_zr_un_/i7-7700_9_0x48.log_21829_2894.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_ht_st_zr_un_/i7-7700_9_0x48.log_21829_2894.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %r8
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x2a3f, %rsi
lea addresses_UC_ht+0x15fbf, %rdi
nop
nop
sub $7401, %r8
mov $34, %rcx
rep movsb
nop
nop
xor $15252, %rdx
lea addresses_WT_ht+0x16fbf, %rsi
lea addresses_WC_ht+0xa73f, %rdi
nop
nop
nop
nop
sub $43127, %r11
mov $31, %rcx
rep movsl
nop
nop
xor $52011, %r11
lea addresses_WC_ht+0x115bf, %r11
nop
nop
inc %r15
movl $0x61626364, (%r11)
nop
xor %r15, %r15
lea addresses_UC_ht+0xf81b, %r8
nop
nop
nop
nop
nop
cmp $4841, %r15
mov (%r8), %ecx
nop
inc %rdi
lea addresses_D_ht+0x1de0f, %rsi
nop
nop
nop
and %r8, %r8
movb $0x61, (%rsi)
nop
nop
xor %rdx, %rdx
lea addresses_UC_ht+0x6d3f, %rdi
nop
nop
add %rdx, %rdx
mov $0x6162636465666768, %rsi
movq %rsi, %xmm1
vmovups %ymm1, (%rdi)
nop
xor $63092, %rdi
lea addresses_A_ht+0x19437, %rsi
lea addresses_A_ht+0x1437f, %rdi
nop
nop
nop
nop
nop
and %rbx, %rbx
mov $64, %rcx
rep movsq
nop
nop
nop
nop
nop
and $29722, %rsi
lea addresses_A_ht+0x1687f, %rsi
lea addresses_A_ht+0xf38c, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
add %r8, %r8
mov $30, %rcx
rep movsw
nop
nop
cmp %r8, %r8
lea addresses_WT_ht+0xe937, %rsi
lea addresses_UC_ht+0x145bf, %rdi
clflush (%rsi)
and %r15, %r15
mov $113, %rcx
rep movsb
nop
nop
nop
add $7202, %r11
lea addresses_D_ht+0x1902f, %rsi
nop
nop
dec %r8
and $0xffffffffffffffc0, %rsi
movaps (%rsi), %xmm3
vpextrq $1, %xmm3, %rcx
add $59441, %r11
lea addresses_WT_ht+0x1beff, %rsi
lea addresses_UC_ht+0xcfbf, %rdi
nop
nop
xor $13753, %rdx
mov $83, %rcx
rep movsq
nop
nop
cmp %r8, %r8
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r15
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r8
push %rax
push %rcx
push %rdi
push %rsi
// Store
lea addresses_A+0x1e875, %r12
nop
sub $32364, %rax
mov $0x5152535455565758, %rdi
movq %rdi, %xmm2
movups %xmm2, (%r12)
nop
nop
dec %rdi
// Load
lea addresses_PSE+0x2545, %r11
nop
nop
sub %rcx, %rcx
mov (%r11), %rdi
xor $9381, %rdi
// Store
lea addresses_US+0x1182b, %r12
nop
nop
xor %rsi, %rsi
movl $0x51525354, (%r12)
nop
nop
cmp %rdi, %rdi
// Store
lea addresses_PSE+0x1e54b, %rax
nop
nop
nop
nop
dec %rcx
mov $0x5152535455565758, %r12
movq %r12, (%rax)
nop
nop
nop
nop
add $51684, %r11
// Store
lea addresses_UC+0x111cf, %rdi
clflush (%rdi)
nop
nop
nop
sub $41252, %rsi
mov $0x5152535455565758, %rcx
movq %rcx, (%rdi)
nop
nop
nop
nop
nop
dec %rax
// Store
lea addresses_D+0x1ffbf, %r8
nop
nop
xor $60231, %rdi
movb $0x51, (%r8)
nop
nop
nop
nop
sub $18888, %rdi
// Faulty Load
lea addresses_D+0x1ffbf, %rsi
nop
nop
nop
nop
cmp $61689, %rdi
movntdqa (%rsi), %xmm2
vpextrq $1, %xmm2, %r11
lea oracles, %r8
and $0xff, %r11
shlq $12, %r11
mov (%r8,%r11,1), %r11
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 1, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 3, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 9, 'size': 4, 'same': False, 'NT': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 2, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 3, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 2, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 9, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': True, 'congruent': 4, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}}
{'35': 1, '08': 8, '46': 15, '3c': 1, '45': 14789, '00': 6831, 'ed': 1, '49': 177, 'f1': 1, 'ff': 3, '25': 2}
00 35 45 45 45 45 45 00 00 45 45 45 00 00 45 45 00 00 45 45 00 45 45 45 00 45 00 45 45 45 45 00 45 00 45 00 00 45 45 45 45 45 45 00 45 45 45 00 45 45 45 00 45 45 45 45 45 00 00 45 45 45 00 00 00 00 45 45 45 45 00 00 45 45 45 45 00 45 45 45 00 45 00 45 45 45 45 45 00 45 45 45 45 45 00 45 45 45 45 45 45 45 45 45 00 00 00 45 45 00 45 45 00 45 00 00 45 00 45 00 45 45 45 00 00 45 45 00 00 45 45 45 45 45 45 45 00 00 45 45 45 45 00 45 45 45 45 45 45 45 45 45 45 45 00 00 45 45 45 00 00 45 45 00 45 45 45 45 45 00 00 45 45 45 45 00 00 00 45 00 45 45 00 45 49 00 45 00 45 45 45 00 45 45 00 45 45 00 00 00 00 45 45 45 49 00 00 45 00 45 45 45 00 45 45 45 45 45 00 00 45 45 45 00 45 00 45 45 00 00 45 45 45 45 45 00 00 00 00 00 45 45 00 45 45 45 00 45 00 45 45 00 00 45 45 45 45 00 45 45 00 45 45 00 00 00 00 00 45 00 00 45 45 00 45 45 45 00 00 00 45 45 00 45 00 00 45 45 49 45 45 45 00 45 45 45 00 45 45 45 45 45 45 45 00 00 45 45 45 49 45 00 00 45 00 45 45 45 45 45 00 45 45 00 45 45 45 45 00 45 00 00 00 45 45 00 45 45 45 45 45 45 00 00 45 45 45 45 45 00 45 00 45 45 45 45 00 45 00 45 45 00 45 45 45 45 00 45 45 45 45 45 49 00 45 45 45 00 45 45 45 00 45 00 00 00 45 45 00 00 00 45 45 00 45 45 00 00 45 45 00 45 45 00 45 45 00 45 45 00 45 45 45 45 00 45 45 45 45 45 45 00 00 45 00 45 45 45 45 00 00 45 45 45 00 00 45 45 45 00 45 00 45 45 45 00 00 45 00 45 45 00 45 45 00 45 00 45 00 45 45 45 00 45 45 45 45 45 45 00 00 45 45 45 45 45 00 45 45 00 45 45 45 00 45 45 45 00 45 00 45 45 45 45 00 45 45 45 45 45 45 00 45 00 00 00 00 00 45 45 00 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 45 00 00 45 00 00 00 00 45 45 45 00 45 00 00 45 45 45 00 45 45 00 00 00 00 45 45 00 45 45 00 00 00 45 45 45 45 45 00 00 00 45 45 45 00 00 45 45 00 00 45 00 45 45 45 45 45 45 00 00 45 00 00 00 45 45 45 45 45 49 45 45 00 00 45 45 45 45 00 45 00 45 45 45 45 45 00 00 00 45 00 45 45 45 00 45 00 00 45 00 45 45 45 00 45 45 45 45 00 45 45 00 45 45 45 00 45 45 00 00 00 00 00 45 45 45 45 45 00 00 00 45 49 45 45 45 00 45 45 00 45 45 45 45 00 45 45 00 45 45 00 00 00 45 45 45 49 45 00 00 45 45 00 45 00 45 45 45 45 00 00 45 45 00 00 45 45 45 00 00 00 00 45 45 00 45 00 45 00 45 00 45 45 00 45 00 45 00 45 45 45 00 00 45 45 00 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 49 45 45 00 45 45 00 00 00 45 00 45 45 45 45 45 49 00 45 45 45 45 00 45 00 00 00 45 00 45 45 45 45 00 45 45 45 45 45 45 00 00 00 45 45 45 45 45 45 45 45 00 00 00 45 45 00 45 45 45 45 00 45 45 45 45 00 00 45 45 00 45 00 45 45 00 45 00 45 45 45 00 00 45 45 45 45 45 45 45 45 45 45 45 45 45 45 00 45 00 45 45 00 45 45 00 00 45 45 45 45 00 45 45 45 00 45 45 45 45 00 45 45 45 00 45 45 00 45 00 45 45 45 00 45 45 00 45 45 45 00 00 45 45 45 00 45 45 00 00 00 45 45 45 00 00 00 45 00 45 45 45 00 45 45 00 00 45 45 45 00 45 45 00 45 00 00 00 00 45 00 00 45 45 45 45 45 00 00 45 45 00 00 00 45 45 45 45 00 45 00 00 45 45 45 45 45 45 45 45 00 00 45 00 45 00 45 45 45 00 00 45 45 45 00 00 45 45 00 45 45 00 45 45 00 00 45 45 00 45 00 49 45 00 00 45 45 00 45 00 45 00 00
*/
| 31.790262 | 2,999 | 0.651744 |
4b226ab51cc0e9204e4bde1be507902a245cfad3 | 283 | asm | Assembly | libsrc/graphics/zx81/clg.asm | grancier/z180 | e83f35e36c9b4d1457e40585019430e901c86ed9 | [
"ClArtistic"
] | null | null | null | libsrc/graphics/zx81/clg.asm | grancier/z180 | e83f35e36c9b4d1457e40585019430e901c86ed9 | [
"ClArtistic"
] | null | null | null | libsrc/graphics/zx81/clg.asm | grancier/z180 | e83f35e36c9b4d1457e40585019430e901c86ed9 | [
"ClArtistic"
] | 1 | 2019-12-03T23:57:48.000Z | 2019-12-03T23:57:48.000Z | SECTION code_clib
PUBLIC clg
PUBLIC _clg
;
; $Id: clg.asm,v 1.5 2016/06/27 20:26:32 dom Exp $
;
; ******************************************************************
;
; Clear graphics area,
;
EXTERN filltxt
.clg
._clg
ld l,0
jp filltxt
;call restore81
;jp 2602
| 12.304348 | 68 | 0.477032 |
bd02dce646eea333289e33335f8ceb157ec0974c | 468 | asm | Assembly | tests/disasm/bytes-redefined.asm | arpruss/z80 | 0729e01a4531515f837ca4f4c985225b8a22239e | [
"MIT"
] | 46 | 2019-05-04T12:32:27.000Z | 2022-03-17T10:04:16.000Z | Libs/Z80/tests/disasm/bytes-redefined.asm | drunkfly/retrotoolkit | 38fc08ce931339948d697a4dcf6f2441bccef7d6 | [
"MIT",
"Unlicense"
] | 44 | 2020-08-19T21:13:30.000Z | 2022-03-15T15:45:46.000Z | Libs/Z80/tests/disasm/bytes-redefined.asm | drunkfly/retrotoolkit | 38fc08ce931339948d697a4dcf6f2441bccef7d6 | [
"MIT",
"Unlicense"
] | 8 | 2020-09-29T01:22:55.000Z | 2022-02-20T17:03:43.000Z | db 0xf3 ; @@ 0x0000 f3 00
db 0xaf ; @@ 0x0001 af
===
db 0xaf ; @@ 0x0001 af
^
disasm/bytes-redefined.asm:2:52: byte tag: Byte redefined.
db 0xf3 ; @@ 0x0000 f3 00
^
disasm/bytes-redefined.asm:1:55: byte tag: Previously defined here.
| 46.8 | 67 | 0.34188 |
0ef147b5afefeae0c10e9ecd381f3deb9fbfc269 | 1,015 | asm | Assembly | programs/oeis/312/A312975.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/312/A312975.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/312/A312975.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A312975: Coordination sequence Gal.5.110.2 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
; 1,4,9,13,19,23,29,33,38,42,46,51,55,61,65,71,75,80,84,88,93,97,103,107,113,117,122,126,130,135,139,145,149,155,159,164,168,172,177,181,187,191,197,201,206,210,214,219,223,229
mov $31,$0
mov $33,$0
add $33,1
lpb $33
mov $0,$31
sub $33,1
sub $0,$33
mov $27,$0
mov $29,2
lpb $29
clr $0,27
mov $0,$27
sub $29,1
add $0,$29
sub $0,1
mul $0,2
add $3,5
sub $3,$0
cal $0,313962 ; Coordination sequence Gal.3.53.2 where G.u.t.v denotes the coordination sequence for a vertex of type v in tiling number t in the Galebach list of u-uniform tilings.
add $0,$3
sub $0,1
mul $0,2
mov $1,$0
mov $30,$29
lpb $30
mov $28,$1
sub $30,1
lpe
lpe
lpb $27
mov $27,0
sub $28,$1
lpe
mov $1,$28
sub $1,10
div $1,2
add $1,1
add $32,$1
lpe
mov $1,$32
| 23.068182 | 185 | 0.606897 |
65550fae5696c21d60223dcb60514856e1db6e05 | 565 | asm | Assembly | oeis/197/A197144.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/197/A197144.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/197/A197144.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A197144: Decimal expansion of the x-intercept of the shortest segment from the x axis through (3,1) to the line y=2x.
; Submitted by Christian Krause
; 3,8,2,8,9,1,1,1,4,1,5,4,2,9,4,3,6,5,3,2,1,9,8,8,2,2,4,1,3,9,6,4,8,6,7,2,1,7,2,4,4,5,0,5,3,9,0,2,8,4,8,7,2,0,0,6,8,2,2,8,6,6,4,6,4,8,7,9,4,9,4,6,6,2,6,1,3,2,4,9,7,5,7,1,7,5,9,4,6,9,1,5,9,2,6,0,8,4,5,7
mov $1,3
mov $3,$0
mul $3,4
lpb $3
add $6,$2
add $1,$6
mul $1,2
add $1,$2
add $2,$1
mul $1,2
mul $2,2
sub $3,1
lpe
mov $4,10
pow $4,$0
div $2,$4
cmp $5,0
add $2,$5
div $1,$2
mov $0,$1
mod $0,10
| 21.730769 | 201 | 0.568142 |
481267d4573f353d546172f9f36f2ddb7ab409b7 | 780 | asm | Assembly | bddisasm_test/special/only_32.asm | andreaswimmer/bddisasm | 960e9eaeee4f87d8269095031cd6cfb8aabb998b | [
"Apache-2.0"
] | 675 | 2020-07-09T12:57:49.000Z | 2022-03-26T15:03:53.000Z | bddisasm_test/special/only_32.asm | andreaswimmer/bddisasm | 960e9eaeee4f87d8269095031cd6cfb8aabb998b | [
"Apache-2.0"
] | 41 | 2020-07-22T07:15:07.000Z | 2022-03-23T08:34:28.000Z | bddisasm_test/special/only_32.asm | andreaswimmer/bddisasm | 960e9eaeee4f87d8269095031cd6cfb8aabb998b | [
"Apache-2.0"
] | 94 | 2020-07-09T14:39:02.000Z | 2022-03-27T10:37:03.000Z | bits 32
db 0x63, 0xC1 ; ARPL cx, ax
db 0x66, 0x63, 0xC1 ; ARPL cx, ax
db 0x06 ; PUSH es
db 0x07 ; POP es
db 0x0E ; PUSH cs
db 0x16 ; PUSH ss
db 0x17 ; POP ss
db 0x1E ; PUSH ds
db 0x1F ; POP ds
db 0x27 ; DAA
db 0x2F ; DAS
db 0x37 ; AAA
db 0x3F ; AAS
db 0xD4, 0x90 ; AAM
db 0xD5, 0x90 ; AAD
db 0x60 ; PUSHA
db 0x61 ; POPA
db 0x9A, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 ; CALL far
db 0xEA, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 ; JMP far
| 35.454545 | 70 | 0.383333 |
18f9f2ee880c589c2553a1d576e1da85b9bd7cf7 | 1,007 | asm | Assembly | programs/oeis/258/A258703.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/258/A258703.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/258/A258703.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A258703: a(n) = floor(n/sqrt(2) - 1/2).
; -1,0,0,1,2,3,3,4,5,5,6,7,7,8,9,10,10,11,12,12,13,14,15,15,16,17,17,18,19,20,20,21,22,22,23,24,24,25,26,27,27,28,29,29,30,31,32,32,33,34,34,35,36,36,37,38,39,39,40,41,41,42,43,44,44,45,46,46,47,48,48,49,50,51,51,52,53,53,54,55,56,56,57,58,58,59,60,61,61,62,63,63,64,65,65,66,67,68,68,69,70,70,71,72,73,73,74,75,75,76,77,77,78,79,80,80,81,82,82,83,84,85,85,86,87,87,88,89,90,90,91,92,92,93,94,94,95,96,97,97,98,99,99,100,101,102,102,103,104,104,105,106,106,107,108,109,109,110,111,111,112,113,114,114,115,116,116,117,118,119,119,120,121,121,122,123,123,124,125,126,126,127,128,128,129,130,131,131,132,133,133,134,135,135,136,137,138,138,139,140,140,141,142,143,143,144,145,145,146,147,147,148,149,150,150,151,152,152,153,154,155,155,156,157,157,158,159,160,160,161,162,162,163,164,164,165,166,167,167,168,169,169,170,171,172,172,173,174,174,175
pow $0,2
add $0,1
mov $1,1
lpb $0
sub $0,$1
sub $0,1
add $1,4
lpe
mov $2,$1
sub $1,4
add $1,$2
sub $1,6
div $1,8
| 59.235294 | 844 | 0.671301 |
a8cbe8f92e7d1fbd11d390b3cdd710b88f510155 | 774 | asm | Assembly | STM8S103F3P6/Project1/RAMVars.asm | edosedgar/stm8s | 9288bdfbcbdbff22e5c6d2d2d450abd30f7e6d0b | [
"Apache-2.0"
] | 2 | 2021-01-13T09:18:01.000Z | 2022-02-09T17:13:35.000Z | STM8S103F3P6/Project1/RAMVars.asm | saimy1684/stm8s | 9288bdfbcbdbff22e5c6d2d2d450abd30f7e6d0b | [
"Apache-2.0"
] | null | null | null | STM8S103F3P6/Project1/RAMVars.asm | saimy1684/stm8s | 9288bdfbcbdbff22e5c6d2d2d450abd30f7e6d0b | [
"Apache-2.0"
] | 2 | 2017-05-30T10:07:10.000Z | 2018-01-08T03:48:54.000Z | ;=======RAMMemory($0000-$07FF)================
Temp EQU $0000
Temp1 EQU $0001
Temp2 EQU $0002
Temp3 EQU $0003
Temp4 EQU $0004
Temp5 EQU $0005
Temp6 EQU $0006
Temp7 EQU $0007
Temp8 EQU $0008
Digit1 EQU $0009
Digit2 EQU $000A
Digit3 EQU $000B
Ms250 EQU $000C
Flags EQU $000D
isShowDigits EQU 0
isClock250mS EQU 1
Min10 EQU $000E
Min1 EQU $000F
Hours10 EQU $0010
Hours1 EQU $0011
Null EQU $0012
Check EQU $0013
Sec1 EQU $0014
Sec10 EQU $0015
CorrectTime EQU $0016
;=============================================
END | 25.8 | 47 | 0.434109 |
dd3b9774327e992924da95c4256eeb5badd6104d | 798 | asm | Assembly | oeis/203/A203848.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/203/A203848.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/203/A203848.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A203848: a(n) = sigma(n)*Fibonacci(n), where sigma(n) = A000203(n), the sum of divisors of n.
; Submitted by Jon Maiga
; 1,3,8,21,30,96,104,315,442,990,1068,4032,3262,9048,14640,30597,28746,100776,83620,284130,350272,637596,687768,2782080,2325775,5098506,7856720,17797416,15426870,59906880,43080608,137233467,169179744,307955898,442918320,1358662032,917997046,2345290140,3541775216,9210073950,6954365922,25719772416,19073755228,58918333572,88522447260,132214457016,142618323504,596133345024,443388296793,1170523019325,1466280797328,3229225449702,2879079723342,10352108552640,10050038096040,27102172046040,29234823692960
mov $2,$0
add $0,1
seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1.
seq $2,274536 ; a(n) = 6 * sigma(n).
mul $0,$2
sub $0,6
div $0,6
add $0,1
| 61.384615 | 500 | 0.77193 |
12953744bb9f2767cdb5539b3dd14e719ae05604 | 4,568 | asm | Assembly | x64/self_defense.asm | EgeBalci/SelfDefense | 685d987d10ca38e8f7cf3a96bed63cf68a762f40 | [
"MIT"
] | 20 | 2019-07-05T10:45:28.000Z | 2022-02-17T01:24:11.000Z | x64/self_defense.asm | listinvest/SelfDefense | 685d987d10ca38e8f7cf3a96bed63cf68a762f40 | [
"MIT"
] | null | null | null | x64/self_defense.asm | listinvest/SelfDefense | 685d987d10ca38e8f7cf3a96bed63cf68a762f40 | [
"MIT"
] | 10 | 2019-07-17T19:18:55.000Z | 2021-09-20T15:00:16.000Z | [BITS 64]
[ORG 0]
self_defense:
cld ; Clear direction flags
call start
%include "./blocks/block_api.asm"; Stephen Fewer's hash API from metasploit project
start:
pop rbp ; Pop the address of hash_api.asm
mov r10d,0x62C64749 ; hash(kernel32.dll, GetCurrentProcessId())
call rbp ; GetCurrentProcessId()
mov r8,rax ; Process ID
mov rdx, qword 0x00 ; FALSE
mov rcx,qword 0x1F00FF ; PROCESS_ALL_ACCESS
mov r10d,0x50B695EE ; hash(kernel32.dll, OpenProcess)
call rbp ; OpenProcess(PROCESS_ALL_ACCESS,FALSE,ECX)
mov rbx, rax ; Move process handle to RBX
push byte 0x00 ; NULL
mov rax, 0x3233697061766461 ; 23ipavda -> RAX
push rax ; 23ipavda -> STACK
mov rcx,rsp ; Move the address of "advapi32" string to RDX
mov r10d,0x0726774C ; hash(kernel32.dll, LoadLibraryA)
call rbp ; LoadLibraryA("advapi32")
push qword 0x00503a44 ; "D:P"
mov rcx,rsp ; Move the address of StringSecurityDescriptor to RCX
mov rdx,qword 0x01 ; SDDL_REVISION_1
push qword 0x00 ; SECURITY_ATTRIBUTES.bInheritHandle = NULL
push qword 0x00 ; SECURITY_ATTRIBUTES.lpSecurityDescriptor = NULL
mov rax,0x0000000000000018 ; SECURITY_ATTRIBUTES.nLength = 0x18
push rax ; ...
lea r8,[rsp+8] ; &(SECURITY_ATTRIBUTES.lpSecurityDescriptor) -> R8
mov rdi,r8 ; Save the address of security descriptor pointer to EDI
mov r9,qword 0x00 ; SecurityDescriptorSize
mov r10d,0xDA6F639A ; hash("advapi32.dll", "ConvertStringSecurityDescriptorToSecurityDescriptorA")
sub rsp,16
call rbp ; ConvertStringSecurityDescriptorToSecurityDescriptorA(&"D:P",StringSDRevision,SecurityDescriptor,SecurityDescriptorSize)
mov rcx,rbx ; Handle
mov rdx,qword 0x00000004 ; SecurityInformation
mov rdi,[rdi] ; Get the lpSecurityDescriptor to RDI
mov r8,rdi ; SecurityDescriptor
mov r10d,0xD63AF8DB ; hash(kernel32.dll, SetKernelObjectSecurity)
call rbp ; SetKernelObjectSecurity(ProcessHandle,DACL_SECURITY_INFORMATION,SecurityDescriptor)
; BlockInput
push 0x006c6c ; 0x00,ll
mov rax,0x642e323372657375 ; d.23resu
push rax ; "user32.dll"
mov rcx,rsp ; Set the &"user32.dll" to RCX
mov r10d,0x0726774C ; hash("KERNEL32.dll" , "LoadLibraryA")
call rbp ; LoadLibraryA("user32.dll")
mov r10d,0x46670AAE ; hash(kernel32.dll, BlockInput())
mov rcx,qword 0x1 ; TRUE
call rbp ; BlockInput(TRUE)
; Save the RtlExitUserThread address
push 0x006c ; 0x00,l
mov rax,0x6c642e6c6c64746e ; l.lldtn
push rax ; "ntdll.dll"
mov rcx,rsp ; Save the &"ntdll.dll" to RCX
mov r10d,0x0726774C ; hash("KERNEL32.dll","LoadLibraryA")
call rbp ; LoadLibraryA("ntdll.dll")
mov rcx,rax ; Save the ntdll.dll handle to RCX
push 0x0064 ; 0x00,d
mov rax,0x6165726854726573 ; aerhTres
push rax ; "serThrea"
mov rax,0x55746978456c7452 ; UtixEltR
push rax ; "RtlExitU"
mov rdx,rsp ; Save the &"RtlExitUserThread" to RDX
mov r10d,0x7802F749 ; hash("KERNEL32.dll", "GetProcAddress")
call rbp ; GetProcAddress(HANDLE,"RtlExitUserThread")
mov rbp,rax ; Save the RtlExitUserThread address to RBP
total_size equ $-self_defense
call $+5 ; Push the current address to stack
pop rax ; Pop the current EIP address to RAX
mov rcx,total_size ; Set the total size of the self defense shellcode to RCX
clean:
mov byte [rax],0x00 ; Wipe 1 byte
dec rax ; Decrease index 1 byte
loop clean ; Loop until all shellcode is wiped from memory
push 0x00 ; 0
call rbp ; RtlUserExitThread(0)
| 55.707317 | 157 | 0.557137 |
d210a0ad7a5f42e683f3c6acd311a4c64240bce3 | 697 | asm | Assembly | programs/oeis/189/A189682.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/189/A189682.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/189/A189682.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A189682: (A189680)/2; from a 3-way partition of the positive integers.
; 1,3,5,6,8,10,11,13,15,16,18,20,22,23,25,27,28,30,32,33,35,37,38,40,42,44,45,47,49,50,52,54,55,57,59,60,62,64,66,67,69,71,72,74,76,77,79,81,83,84,86,88,89,91,93,94,96,98,99,101,103,105,106,108,110,111,113,115,116,118,120,121,123,125,127,128,130,132,133,135,137,138,140,142,143
mov $2,$0
add $2,1
mov $8,$0
lpb $2,1
mov $0,$8
sub $2,1
sub $0,$2
mov $6,$0
mov $7,2
lpb $7,1
mov $0,$6
sub $7,1
add $0,$7
mul $0,34
div $0,49
mov $3,$0
mov $4,$7
lpb $4,1
sub $4,1
mov $5,$3
lpe
lpe
lpb $6,1
sub $5,$3
mov $6,0
lpe
mov $3,$5
add $3,1
add $1,$3
lpe
| 20.5 | 277 | 0.558106 |
85bdff8b78deb952761e91203116711996a04e80 | 860 | asm | Assembly | VS/CPP/ConsoleTest/example_semantic_analysis2.asm | YellowAfterlife/asm-dude | 7aa36587e0480ce0e497f3f0f68853657fad7ecb | [
"MIT"
] | 4,075 | 2016-02-22T08:55:36.000Z | 2022-03-29T20:24:27.000Z | VS/CPP/ConsoleTest/example_semantic_analysis2.asm | YellowAfterlife/asm-dude | 7aa36587e0480ce0e497f3f0f68853657fad7ecb | [
"MIT"
] | 126 | 2016-02-29T07:48:27.000Z | 2022-03-27T12:47:21.000Z | VS/CPP/ConsoleTest/example_semantic_analysis2.asm | YellowAfterlife/asm-dude | 7aa36587e0480ce0e497f3f0f68853657fad7ecb | [
"MIT"
] | 113 | 2016-02-22T08:55:33.000Z | 2022-03-28T16:14:40.000Z | ;mov rax, 10
cmp rax, 0
jz label1
xor rax, rax
mov rcx, rax
add rax, 1
label1:
inc rax
mov rbx, rax
mov rax, rbx
mov rcx, 10
labelx:
dec rcx
jnz labelx
mov rax, rcx
aaa
mov rcx, 10
mov r10, rcx ; store the parameter rcx in r10
;mod3 PROC
; parameter 1: rcx
mov r8, 0aaaaaaaaaaaaaaabH ;; (scaled) reciprocal of 3
mov rax, rcx
mul r8 ;; multiply with reciprocal
shr rdx, 1 ;; quotient
lea r9, QWORD PTR [rdx+rdx*2] ;; back multiply with 3
neg r9
add rcx, r9 ;; subtract from dividend
;mov rax, rcx ;; remainder
; rcx has the result (mod3)
; ret
;mod3 ENDP
mov rax, r10
xor rdx, rdx
mov r8, 3
idiv r8
; rdx has the result (mod3)
| 18.695652 | 69 | 0.513953 |
c5a1a8960c19ad7dc857666e549e29e3e5f55d73 | 32,560 | asm | Assembly | target/cos_117/disasm/iop_overlay1/TTYNIT.asm | jrrk2/cray-sim | 52c9639808d6890517092637b188282c00cce4f7 | [
"BSL-1.0"
] | 49 | 2020-10-09T12:29:16.000Z | 2022-03-12T02:33:35.000Z | target/cos_117/disasm/iop_overlay1/TTYNIT.asm | jrrk2/cray-sim | 52c9639808d6890517092637b188282c00cce4f7 | [
"BSL-1.0"
] | 1 | 2021-12-29T15:59:25.000Z | 2021-12-29T15:59:25.000Z | target/cos_117/disasm/iop_overlay1/TTYNIT.asm | jrrk2/cray-sim | 52c9639808d6890517092637b188282c00cce4f7 | [
"BSL-1.0"
] | 6 | 2021-04-12T06:10:32.000Z | 2022-02-08T23:11:19.000Z | 0x0000 (0x000000) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0001 (0x000002) 0x2919- f:00024 d: 281 | OR[281] = A
0x0002 (0x000004) 0x1800-0x3974 f:00014 d: 0 | A = 14708 (0x3974)
0x0004 (0x000008) 0x291B- f:00024 d: 283 | OR[283] = A
0x0005 (0x00000A) 0x2118- f:00020 d: 280 | A = OR[280]
0x0006 (0x00000C) 0x8402- f:00102 d: 2 | P = P + 2 (0x0008), A = 0
0x0007 (0x00000E) 0x7003- f:00070 d: 3 | P = P + 3 (0x000A)
0x0008 (0x000010) 0x740E- f:00072 d: 14 | R = P + 14 (0x0016)
0x0009 (0x000012) 0x7002- f:00070 d: 2 | P = P + 2 (0x000B)
0x000A (0x000014) 0x7531- f:00072 d: 305 | R = P + 305 (0x013B)
0x000B (0x000016) 0x2005- f:00020 d: 5 | A = OR[5]
0x000C (0x000018) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x000D (0x00001A) 0x2908- f:00024 d: 264 | OR[264] = A
0x000E (0x00001C) 0x2119- f:00020 d: 281 | A = OR[281]
0x000F (0x00001E) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0010 (0x000020) 0x102A- f:00010 d: 42 | A = 42 (0x002A)
0x0011 (0x000022) 0x2920- f:00024 d: 288 | OR[288] = A
0x0012 (0x000024) 0x1120- f:00010 d: 288 | A = 288 (0x0120)
0x0013 (0x000026) 0x5800- f:00054 d: 0 | B = A
0x0014 (0x000028) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0015 (0x00002A) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0016 (0x00002C) 0x211B- f:00020 d: 283 | A = OR[283]
0x0017 (0x00002E) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x0018 (0x000030) 0x2908- f:00024 d: 264 | OR[264] = A
0x0019 (0x000032) 0x3108- f:00030 d: 264 | A = (OR[264])
0x001A (0x000034) 0x8602- f:00103 d: 2 | P = P + 2 (0x001C), A # 0
0x001B (0x000036) 0x7005- f:00070 d: 5 | P = P + 5 (0x0020)
0x001C (0x000038) 0x1800-0x04C1 f:00014 d: 0 | A = 1217 (0x04C1)
0x001E (0x00003C) 0x2919- f:00024 d: 281 | OR[281] = A
0x001F (0x00003E) 0x0200- f:00001 d: 0 | EXIT
0x0020 (0x000040) 0x7460- f:00072 d: 96 | R = P + 96 (0x0080)
0x0021 (0x000042) 0x2119- f:00020 d: 281 | A = OR[281]
0x0022 (0x000044) 0x8402- f:00102 d: 2 | P = P + 2 (0x0024), A = 0
0x0023 (0x000046) 0x0200- f:00001 d: 0 | EXIT
0x0024 (0x000048) 0x1018- f:00010 d: 24 | A = 24 (0x0018)
0x0025 (0x00004A) 0x2920- f:00024 d: 288 | OR[288] = A
0x0026 (0x00004C) 0x110A- f:00010 d: 266 | A = 266 (0x010A)
0x0027 (0x00004E) 0x2921- f:00024 d: 289 | OR[289] = A
0x0028 (0x000050) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0029 (0x000052) 0x2922- f:00024 d: 290 | OR[290] = A
0x002A (0x000054) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x002B (0x000056) 0x2923- f:00024 d: 291 | OR[291] = A
0x002C (0x000058) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x002D (0x00005A) 0x2924- f:00024 d: 292 | OR[292] = A
0x002E (0x00005C) 0x111C- f:00010 d: 284 | A = 284 (0x011C)
0x002F (0x00005E) 0x2925- f:00024 d: 293 | OR[293] = A
0x0030 (0x000060) 0x1120- f:00010 d: 288 | A = 288 (0x0120)
0x0031 (0x000062) 0x5800- f:00054 d: 0 | B = A
0x0032 (0x000064) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0033 (0x000066) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0034 (0x000068) 0x8602- f:00103 d: 2 | P = P + 2 (0x0036), A # 0
0x0035 (0x00006A) 0x7005- f:00070 d: 5 | P = P + 5 (0x003A)
0x0036 (0x00006C) 0x1800-0x04AE f:00014 d: 0 | A = 1198 (0x04AE)
0x0038 (0x000070) 0x2919- f:00024 d: 281 | OR[281] = A
0x0039 (0x000072) 0x0200- f:00001 d: 0 | EXIT
0x003A (0x000074) 0x211C- f:00020 d: 284 | A = OR[284]
0x003B (0x000076) 0x290E- f:00024 d: 270 | OR[270] = A
0x003C (0x000078) 0x110A- f:00010 d: 266 | A = 266 (0x010A)
0x003D (0x00007A) 0x290D- f:00024 d: 269 | OR[269] = A
0x003E (0x00007C) 0x210D- f:00020 d: 269 | A = OR[269]
0x003F (0x00007E) 0x8406- f:00102 d: 6 | P = P + 6 (0x0045), A = 0
0x0040 (0x000080) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0041 (0x000082) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x0042 (0x000084) 0x2F0D- f:00027 d: 269 | OR[269] = OR[269] - 1
0x0043 (0x000086) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x0044 (0x000088) 0x7206- f:00071 d: 6 | P = P - 6 (0x003E)
0x0045 (0x00008A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0046 (0x00008C) 0x291F- f:00024 d: 287 | OR[287] = A
0x0047 (0x00008E) 0x7471- f:00072 d: 113 | R = P + 113 (0x00B8)
0x0048 (0x000090) 0x2119- f:00020 d: 281 | A = OR[281]
0x0049 (0x000092) 0x860A- f:00103 d: 10 | P = P + 10 (0x0053), A # 0
0x004A (0x000094) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x004B (0x000096) 0x291F- f:00024 d: 287 | OR[287] = A
0x004C (0x000098) 0x746C- f:00072 d: 108 | R = P + 108 (0x00B8)
0x004D (0x00009A) 0x2119- f:00020 d: 281 | A = OR[281]
0x004E (0x00009C) 0x8602- f:00103 d: 2 | P = P + 2 (0x0050), A # 0
0x004F (0x00009E) 0x700D- f:00070 d: 13 | P = P + 13 (0x005C)
0x0050 (0x0000A0) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0051 (0x0000A2) 0x291F- f:00024 d: 287 | OR[287] = A
0x0052 (0x0000A4) 0x7520- f:00072 d: 288 | R = P + 288 (0x0172)
0x0053 (0x0000A6) 0x1019- f:00010 d: 25 | A = 25 (0x0019)
0x0054 (0x0000A8) 0x2920- f:00024 d: 288 | OR[288] = A
0x0055 (0x0000AA) 0x211C- f:00020 d: 284 | A = OR[284]
0x0056 (0x0000AC) 0x2921- f:00024 d: 289 | OR[289] = A
0x0057 (0x0000AE) 0x1120- f:00010 d: 288 | A = 288 (0x0120)
0x0058 (0x0000B0) 0x5800- f:00054 d: 0 | B = A
0x0059 (0x0000B2) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x005A (0x0000B4) 0x7C09- f:00076 d: 9 | R = OR[9]
0x005B (0x0000B6) 0x0200- f:00001 d: 0 | EXIT
0x005C (0x0000B8) 0x211C- f:00020 d: 284 | A = OR[284]
0x005D (0x0000BA) 0x14F8- f:00012 d: 248 | A = A + 248 (0x00F8)
0x005E (0x0000BC) 0x2913- f:00024 d: 275 | OR[275] = A
0x005F (0x0000BE) 0x3113- f:00030 d: 275 | A = (OR[275])
0x0060 (0x0000C0) 0x0E0C- f:00007 d: 12 | A = A << 12 (0x000C)
0x0061 (0x0000C2) 0x0A01- f:00005 d: 1 | A = A < 1 (0x0001)
0x0062 (0x0000C4) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0063 (0x0000C6) 0x0C0D- f:00006 d: 13 | A = A >> 13 (0x000D)
0x0064 (0x0000C8) 0x3913- f:00034 d: 275 | (OR[275]) = A
0x0065 (0x0000CA) 0x3113- f:00030 d: 275 | A = (OR[275])
0x0066 (0x0000CC) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x0067 (0x0000CE) 0x143E- f:00012 d: 62 | A = A + 62 (0x003E)
0x0068 (0x0000D0) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x0069 (0x0000D2) 0x3913- f:00034 d: 275 | (OR[275]) = A
0x006A (0x0000D4) 0x211A- f:00020 d: 282 | A = OR[282]
0x006B (0x0000D6) 0x1404- f:00012 d: 4 | A = A + 4 (0x0004)
0x006C (0x0000D8) 0x2908- f:00024 d: 264 | OR[264] = A
0x006D (0x0000DA) 0x3108- f:00030 d: 264 | A = (OR[264])
0x006E (0x0000DC) 0x2914- f:00024 d: 276 | OR[276] = A
0x006F (0x0000DE) 0x2D14- f:00026 d: 276 | OR[276] = OR[276] + 1
0x0070 (0x0000E0) 0x211B- f:00020 d: 283 | A = OR[283]
0x0071 (0x0000E2) 0x1404- f:00012 d: 4 | A = A + 4 (0x0004)
0x0072 (0x0000E4) 0x2908- f:00024 d: 264 | OR[264] = A
0x0073 (0x0000E6) 0x2114- f:00020 d: 276 | A = OR[276]
0x0074 (0x0000E8) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0075 (0x0000EA) 0x2113- f:00020 d: 275 | A = OR[275]
0x0076 (0x0000EC) 0x3914- f:00034 d: 276 | (OR[276]) = A
0x0077 (0x0000EE) 0x211B- f:00020 d: 283 | A = OR[283]
0x0078 (0x0000F0) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x0079 (0x0000F2) 0x2908- f:00024 d: 264 | OR[264] = A
0x007A (0x0000F4) 0x211C- f:00020 d: 284 | A = OR[284]
0x007B (0x0000F6) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x007C (0x0000F8) 0x1800-0x0497 f:00014 d: 0 | A = 1175 (0x0497)
0x007E (0x0000FC) 0x2919- f:00024 d: 281 | OR[281] = A
0x007F (0x0000FE) 0x0200- f:00001 d: 0 | EXIT
0x0080 (0x000100) 0x2048- f:00020 d: 72 | A = OR[72]
0x0081 (0x000102) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x0082 (0x000104) 0x291A- f:00024 d: 282 | OR[282] = A
0x0083 (0x000106) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x0084 (0x000108) 0x2913- f:00024 d: 275 | OR[275] = A
0x0085 (0x00010A) 0x2113- f:00020 d: 275 | A = OR[275]
0x0086 (0x00010C) 0x842E- f:00102 d: 46 | P = P + 46 (0x00B4), A = 0
0x0087 (0x00010E) 0x311A- f:00030 d: 282 | A = (OR[282])
0x0088 (0x000110) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0089 (0x000112) 0x1622- f:00013 d: 34 | A = A - 34 (0x0022)
0x008A (0x000114) 0x8402- f:00102 d: 2 | P = P + 2 (0x008C), A = 0
0x008B (0x000116) 0x7025- f:00070 d: 37 | P = P + 37 (0x00B0)
0x008C (0x000118) 0x311A- f:00030 d: 282 | A = (OR[282])
0x008D (0x00011A) 0x080F- f:00004 d: 15 | A = A > 15 (0x000F)
0x008E (0x00011C) 0x8402- f:00102 d: 2 | P = P + 2 (0x0090), A = 0
0x008F (0x00011E) 0x7020- f:00070 d: 32 | P = P + 32 (0x00AF)
0x0090 (0x000120) 0x102D- f:00010 d: 45 | A = 45 (0x002D)
0x0091 (0x000122) 0x2920- f:00024 d: 288 | OR[288] = A
0x0092 (0x000124) 0x1800-0x018F f:00014 d: 0 | A = 399 (0x018F)
0x0094 (0x000128) 0x2921- f:00024 d: 289 | OR[289] = A
0x0095 (0x00012A) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x0096 (0x00012C) 0x2922- f:00024 d: 290 | OR[290] = A
0x0097 (0x00012E) 0x1800-0xFFFF f:00014 d: 0 | A = 65535 (0xFFFF)
0x0099 (0x000132) 0x2923- f:00024 d: 291 | OR[291] = A
0x009A (0x000134) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x009B (0x000136) 0x2924- f:00024 d: 292 | OR[292] = A
0x009C (0x000138) 0x1120- f:00010 d: 288 | A = 288 (0x0120)
0x009D (0x00013A) 0x5800- f:00054 d: 0 | B = A
0x009E (0x00013C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x009F (0x00013E) 0x7C09- f:00076 d: 9 | R = OR[9]
0x00A0 (0x000140) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x00A1 (0x000142) 0x2920- f:00024 d: 288 | OR[288] = A
0x00A2 (0x000144) 0x1005- f:00010 d: 5 | A = 5 (0x0005)
0x00A3 (0x000146) 0x2921- f:00024 d: 289 | OR[289] = A
0x00A4 (0x000148) 0x1120- f:00010 d: 288 | A = 288 (0x0120)
0x00A5 (0x00014A) 0x5800- f:00054 d: 0 | B = A
0x00A6 (0x00014C) 0x1800-0x1118 f:00014 d: 0 | A = 4376 (0x1118)
0x00A8 (0x000150) 0x7C09- f:00076 d: 9 | R = OR[9]
0x00A9 (0x000152) 0x311A- f:00030 d: 282 | A = (OR[282])
0x00AA (0x000154) 0x080F- f:00004 d: 15 | A = A > 15 (0x000F)
0x00AB (0x000156) 0x8604- f:00103 d: 4 | P = P + 4 (0x00AF), A # 0
0x00AC (0x000158) 0x1800-0x04AE f:00014 d: 0 | A = 1198 (0x04AE)
0x00AE (0x00015C) 0x2919- f:00024 d: 281 | OR[281] = A
0x00AF (0x00015E) 0x0200- f:00001 d: 0 | EXIT
0x00B0 (0x000160) 0x2F13- f:00027 d: 275 | OR[275] = OR[275] - 1
0x00B1 (0x000162) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x00B2 (0x000164) 0x2B1A- f:00025 d: 282 | OR[282] = A + OR[282]
0x00B3 (0x000166) 0x722E- f:00071 d: 46 | P = P - 46 (0x0085)
0x00B4 (0x000168) 0x1800-0x04AE f:00014 d: 0 | A = 1198 (0x04AE)
0x00B6 (0x00016C) 0x2919- f:00024 d: 281 | OR[281] = A
0x00B7 (0x00016E) 0x0200- f:00001 d: 0 | EXIT
0x00B8 (0x000170) 0x211F- f:00020 d: 287 | A = OR[287]
0x00B9 (0x000172) 0x8402- f:00102 d: 2 | P = P + 2 (0x00BB), A = 0
0x00BA (0x000174) 0x700B- f:00070 d: 11 | P = P + 11 (0x00C5)
0x00BB (0x000176) 0x211C- f:00020 d: 284 | A = OR[284]
0x00BC (0x000178) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x00BD (0x00017A) 0x291D- f:00024 d: 285 | OR[285] = A
0x00BE (0x00017C) 0x211C- f:00020 d: 284 | A = OR[284]
0x00BF (0x00017E) 0x1418- f:00012 d: 24 | A = A + 24 (0x0018)
0x00C0 (0x000180) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x00C1 (0x000182) 0x1A00-0xFFFC f:00015 d: 0 | A = A & 65532 (0xFFFC)
0x00C3 (0x000186) 0x291E- f:00024 d: 286 | OR[286] = A
0x00C4 (0x000188) 0x700A- f:00070 d: 10 | P = P + 10 (0x00CE)
0x00C5 (0x00018A) 0x211C- f:00020 d: 284 | A = OR[284]
0x00C6 (0x00018C) 0x140C- f:00012 d: 12 | A = A + 12 (0x000C)
0x00C7 (0x00018E) 0x291D- f:00024 d: 285 | OR[285] = A
0x00C8 (0x000190) 0x211E- f:00020 d: 286 | A = OR[286]
0x00C9 (0x000192) 0x146D- f:00012 d: 109 | A = A + 109 (0x006D)
0x00CA (0x000194) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x00CB (0x000196) 0x1A00-0xFFFC f:00015 d: 0 | A = A & 65532 (0xFFFC)
0x00CD (0x00019A) 0x291E- f:00024 d: 286 | OR[286] = A
0x00CE (0x00019C) 0x211D- f:00020 d: 285 | A = OR[285]
0x00CF (0x00019E) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x00D0 (0x0001A0) 0x2908- f:00024 d: 264 | OR[264] = A
0x00D1 (0x0001A2) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x00D2 (0x0001A4) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00D3 (0x0001A6) 0x211A- f:00020 d: 282 | A = OR[282]
0x00D4 (0x0001A8) 0x1405- f:00012 d: 5 | A = A + 5 (0x0005)
0x00D5 (0x0001AA) 0x2908- f:00024 d: 264 | OR[264] = A
0x00D6 (0x0001AC) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00D7 (0x0001AE) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x00D8 (0x0001B0) 0x2913- f:00024 d: 275 | OR[275] = A
0x00D9 (0x0001B2) 0x2113- f:00020 d: 275 | A = OR[275]
0x00DA (0x0001B4) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x00DB (0x0001B6) 0x2913- f:00024 d: 275 | OR[275] = A
0x00DC (0x0001B8) 0x311E- f:00030 d: 286 | A = (OR[286])
0x00DD (0x0001BA) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x00DE (0x0001BC) 0x2513- f:00022 d: 275 | A = A + OR[275]
0x00DF (0x0001BE) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x00E0 (0x0001C0) 0x391E- f:00034 d: 286 | (OR[286]) = A
0x00E1 (0x0001C2) 0x311E- f:00030 d: 286 | A = (OR[286])
0x00E2 (0x0001C4) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x00E4 (0x0001C8) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x00E5 (0x0001CA) 0x391E- f:00034 d: 286 | (OR[286]) = A
0x00E6 (0x0001CC) 0x211D- f:00020 d: 285 | A = OR[285]
0x00E7 (0x0001CE) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008)
0x00E8 (0x0001D0) 0x2913- f:00024 d: 275 | OR[275] = A
0x00E9 (0x0001D2) 0x211E- f:00020 d: 286 | A = OR[286]
0x00EA (0x0001D4) 0x1428- f:00012 d: 40 | A = A + 40 (0x0028)
0x00EB (0x0001D6) 0x2908- f:00024 d: 264 | OR[264] = A
0x00EC (0x0001D8) 0x2113- f:00020 d: 275 | A = OR[275]
0x00ED (0x0001DA) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00EE (0x0001DC) 0x211F- f:00020 d: 287 | A = OR[287]
0x00EF (0x0001DE) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x00F0 (0x0001E0) 0x8402- f:00102 d: 2 | P = P + 2 (0x00F2), A = 0
0x00F1 (0x0001E2) 0x7028- f:00070 d: 40 | P = P + 40 (0x0119)
0x00F2 (0x0001E4) 0x211E- f:00020 d: 286 | A = OR[286]
0x00F3 (0x0001E6) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008)
0x00F4 (0x0001E8) 0x2913- f:00024 d: 275 | OR[275] = A
0x00F5 (0x0001EA) 0x3113- f:00030 d: 275 | A = (OR[275])
0x00F6 (0x0001EC) 0x0A05- f:00005 d: 5 | A = A < 5 (0x0005)
0x00F7 (0x0001EE) 0x140F- f:00012 d: 15 | A = A + 15 (0x000F)
0x00F8 (0x0001F0) 0x0C05- f:00006 d: 5 | A = A >> 5 (0x0005)
0x00F9 (0x0001F2) 0x3913- f:00034 d: 275 | (OR[275]) = A
0x00FA (0x0001F4) 0x3113- f:00030 d: 275 | A = (OR[275])
0x00FB (0x0001F6) 0x0E05- f:00007 d: 5 | A = A << 5 (0x0005)
0x00FC (0x0001F8) 0x0A04- f:00005 d: 4 | A = A < 4 (0x0004)
0x00FD (0x0001FA) 0x140F- f:00012 d: 15 | A = A + 15 (0x000F)
0x00FE (0x0001FC) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x00FF (0x0001FE) 0x3913- f:00034 d: 275 | (OR[275]) = A
0x0100 (0x000200) 0x211A- f:00020 d: 282 | A = OR[282]
0x0101 (0x000202) 0x1405- f:00012 d: 5 | A = A + 5 (0x0005)
0x0102 (0x000204) 0x2908- f:00024 d: 264 | OR[264] = A
0x0103 (0x000206) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0104 (0x000208) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0105 (0x00020A) 0x2914- f:00024 d: 276 | OR[276] = A
0x0106 (0x00020C) 0x2114- f:00020 d: 276 | A = OR[276]
0x0107 (0x00020E) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0108 (0x000210) 0x2914- f:00024 d: 276 | OR[276] = A
0x0109 (0x000212) 0x2113- f:00020 d: 275 | A = OR[275]
0x010A (0x000214) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x010B (0x000216) 0x2908- f:00024 d: 264 | OR[264] = A
0x010C (0x000218) 0x3108- f:00030 d: 264 | A = (OR[264])
0x010D (0x00021A) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x010E (0x00021C) 0x2514- f:00022 d: 276 | A = A + OR[276]
0x010F (0x00021E) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x0110 (0x000220) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0111 (0x000222) 0x2113- f:00020 d: 275 | A = OR[275]
0x0112 (0x000224) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x0113 (0x000226) 0x2908- f:00024 d: 264 | OR[264] = A
0x0114 (0x000228) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0115 (0x00022A) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x0117 (0x00022E) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0118 (0x000230) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0119 (0x000232) 0x211A- f:00020 d: 282 | A = OR[282]
0x011A (0x000234) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x011B (0x000236) 0x2908- f:00024 d: 264 | OR[264] = A
0x011C (0x000238) 0x3108- f:00030 d: 264 | A = (OR[264])
0x011D (0x00023A) 0x2913- f:00024 d: 275 | OR[275] = A
0x011E (0x00023C) 0x102D- f:00010 d: 45 | A = 45 (0x002D)
0x011F (0x00023E) 0x2920- f:00024 d: 288 | OR[288] = A
0x0120 (0x000240) 0x1800-0x01B7 f:00014 d: 0 | A = 439 (0x01B7)
0x0122 (0x000244) 0x2921- f:00024 d: 289 | OR[289] = A
0x0123 (0x000246) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x0124 (0x000248) 0x2922- f:00024 d: 290 | OR[290] = A
0x0125 (0x00024A) 0x1800-0xFFFF f:00014 d: 0 | A = 65535 (0xFFFF)
0x0127 (0x00024E) 0x2923- f:00024 d: 291 | OR[291] = A
0x0128 (0x000250) 0x211F- f:00020 d: 287 | A = OR[287]
0x0129 (0x000252) 0x2924- f:00024 d: 292 | OR[292] = A
0x012A (0x000254) 0x211D- f:00020 d: 285 | A = OR[285]
0x012B (0x000256) 0x2925- f:00024 d: 293 | OR[293] = A
0x012C (0x000258) 0x211E- f:00020 d: 286 | A = OR[286]
0x012D (0x00025A) 0x2926- f:00024 d: 294 | OR[294] = A
0x012E (0x00025C) 0x2113- f:00020 d: 275 | A = OR[275]
0x012F (0x00025E) 0x2927- f:00024 d: 295 | OR[295] = A
0x0130 (0x000260) 0x1120- f:00010 d: 288 | A = 288 (0x0120)
0x0131 (0x000262) 0x5800- f:00054 d: 0 | B = A
0x0132 (0x000264) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0133 (0x000266) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0134 (0x000268) 0x8602- f:00103 d: 2 | P = P + 2 (0x0136), A # 0
0x0135 (0x00026A) 0x7005- f:00070 d: 5 | P = P + 5 (0x013A)
0x0136 (0x00026C) 0x1800-0x04AE f:00014 d: 0 | A = 1198 (0x04AE)
0x0138 (0x000270) 0x2919- f:00024 d: 281 | OR[281] = A
0x0139 (0x000272) 0x0200- f:00001 d: 0 | EXIT
0x013A (0x000274) 0x0200- f:00001 d: 0 | EXIT
0x013B (0x000276) 0x211B- f:00020 d: 283 | A = OR[283]
0x013C (0x000278) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x013D (0x00027A) 0x2908- f:00024 d: 264 | OR[264] = A
0x013E (0x00027C) 0x3108- f:00030 d: 264 | A = (OR[264])
0x013F (0x00027E) 0x291C- f:00024 d: 284 | OR[284] = A
0x0140 (0x000280) 0x8402- f:00102 d: 2 | P = P + 2 (0x0142), A = 0
0x0141 (0x000282) 0x7005- f:00070 d: 5 | P = P + 5 (0x0146)
0x0142 (0x000284) 0x1800-0x04D0 f:00014 d: 0 | A = 1232 (0x04D0)
0x0144 (0x000288) 0x2919- f:00024 d: 281 | OR[281] = A
0x0145 (0x00028A) 0x0200- f:00001 d: 0 | EXIT
0x0146 (0x00028C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0147 (0x00028E) 0x291F- f:00024 d: 287 | OR[287] = A
0x0148 (0x000290) 0x742A- f:00072 d: 42 | R = P + 42 (0x0172)
0x0149 (0x000292) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x014A (0x000294) 0x291F- f:00024 d: 287 | OR[287] = A
0x014B (0x000296) 0x7427- f:00072 d: 39 | R = P + 39 (0x0172)
0x014C (0x000298) 0x0400- f:00002 d: 0 | I = 0
0x014D (0x00029A) 0x0000- f:00000 d: 0 | PASS
0x014E (0x00029C) 0x211D- f:00020 d: 285 | A = OR[285]
0x014F (0x00029E) 0x1405- f:00012 d: 5 | A = A + 5 (0x0005)
0x0150 (0x0002A0) 0x289D- f:00024 d: 157 | OR[157] = A
0x0151 (0x0002A2) 0x7E00-0x1FFD f:00077 d: 0 | R = OR[0]+8189 (0x1FFD)
0x0153 (0x0002A6) 0x209C- f:00020 d: 156 | A = OR[156]
0x0154 (0x0002A8) 0x2913- f:00024 d: 275 | OR[275] = A
0x0155 (0x0002AA) 0x0600- f:00003 d: 0 | I = 1
0x0156 (0x0002AC) 0x2113- f:00020 d: 275 | A = OR[275]
0x0157 (0x0002AE) 0x8602- f:00103 d: 2 | P = P + 2 (0x0159), A # 0
0x0158 (0x0002B0) 0x700A- f:00070 d: 10 | P = P + 10 (0x0162)
0x0159 (0x0002B2) 0x1017- f:00010 d: 23 | A = 23 (0x0017)
0x015A (0x0002B4) 0x2920- f:00024 d: 288 | OR[288] = A
0x015B (0x0002B6) 0x2113- f:00020 d: 275 | A = OR[275]
0x015C (0x0002B8) 0x2921- f:00024 d: 289 | OR[289] = A
0x015D (0x0002BA) 0x1120- f:00010 d: 288 | A = 288 (0x0120)
0x015E (0x0002BC) 0x5800- f:00054 d: 0 | B = A
0x015F (0x0002BE) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0160 (0x0002C0) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0161 (0x0002C2) 0x7215- f:00071 d: 21 | P = P - 21 (0x014C)
0x0162 (0x0002C4) 0x211B- f:00020 d: 283 | A = OR[283]
0x0163 (0x0002C6) 0x1404- f:00012 d: 4 | A = A + 4 (0x0004)
0x0164 (0x0002C8) 0x2908- f:00024 d: 264 | OR[264] = A
0x0165 (0x0002CA) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0166 (0x0002CC) 0x2914- f:00024 d: 276 | OR[276] = A
0x0167 (0x0002CE) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0168 (0x0002D0) 0x3914- f:00034 d: 276 | (OR[276]) = A
0x0169 (0x0002D2) 0x211B- f:00020 d: 283 | A = OR[283]
0x016A (0x0002D4) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x016B (0x0002D6) 0x2908- f:00024 d: 264 | OR[264] = A
0x016C (0x0002D8) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x016D (0x0002DA) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x016E (0x0002DC) 0x1800-0x04A2 f:00014 d: 0 | A = 1186 (0x04A2)
0x0170 (0x0002E0) 0x2919- f:00024 d: 281 | OR[281] = A
0x0171 (0x0002E2) 0x0200- f:00001 d: 0 | EXIT
0x0172 (0x0002E4) 0x211F- f:00020 d: 287 | A = OR[287]
0x0173 (0x0002E6) 0x8402- f:00102 d: 2 | P = P + 2 (0x0175), A = 0
0x0174 (0x0002E8) 0x7007- f:00070 d: 7 | P = P + 7 (0x017B)
0x0175 (0x0002EA) 0x211C- f:00020 d: 284 | A = OR[284]
0x0176 (0x0002EC) 0x140C- f:00012 d: 12 | A = A + 12 (0x000C)
0x0177 (0x0002EE) 0x291D- f:00024 d: 285 | OR[285] = A
0x0178 (0x0002F0) 0x106D- f:00010 d: 109 | A = 109 (0x006D)
0x0179 (0x0002F2) 0x2B1E- f:00025 d: 286 | OR[286] = A + OR[286]
0x017A (0x0002F4) 0x7007- f:00070 d: 7 | P = P + 7 (0x0181)
0x017B (0x0002F6) 0x211C- f:00020 d: 284 | A = OR[284]
0x017C (0x0002F8) 0x1400- f:00012 d: 0 | A = A + 0 (0x0000)
0x017D (0x0002FA) 0x291D- f:00024 d: 285 | OR[285] = A
0x017E (0x0002FC) 0x211C- f:00020 d: 284 | A = OR[284]
0x017F (0x0002FE) 0x1418- f:00012 d: 24 | A = A + 24 (0x0018)
0x0180 (0x000300) 0x291E- f:00024 d: 286 | OR[286] = A
0x0181 (0x000302) 0x211D- f:00020 d: 285 | A = OR[285]
0x0182 (0x000304) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x0183 (0x000306) 0x2908- f:00024 d: 264 | OR[264] = A
0x0184 (0x000308) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0185 (0x00030A) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0186 (0x00030C) 0x211D- f:00020 d: 285 | A = OR[285]
0x0187 (0x00030E) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008)
0x0188 (0x000310) 0x2913- f:00024 d: 275 | OR[275] = A
0x0189 (0x000312) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x018A (0x000314) 0x2920- f:00024 d: 288 | OR[288] = A
0x018B (0x000316) 0x2113- f:00020 d: 275 | A = OR[275]
0x018C (0x000318) 0x2921- f:00024 d: 289 | OR[289] = A
0x018D (0x00031A) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x018E (0x00031C) 0x2922- f:00024 d: 290 | OR[290] = A
0x018F (0x00031E) 0x1120- f:00010 d: 288 | A = 288 (0x0120)
0x0190 (0x000320) 0x5800- f:00054 d: 0 | B = A
0x0191 (0x000322) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0192 (0x000324) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0193 (0x000326) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0194 (0x000328) 0x2913- f:00024 d: 275 | OR[275] = A
0x0195 (0x00032A) 0x2113- f:00020 d: 275 | A = OR[275]
0x0196 (0x00032C) 0x1E00-0x0002 f:00017 d: 0 | A = A - 2 (0x0002)
0x0198 (0x000330) 0x8410- f:00102 d: 16 | P = P + 16 (0x01A8), A = 0
0x0199 (0x000332) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x019A (0x000334) 0x2920- f:00024 d: 288 | OR[288] = A
0x019B (0x000336) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x019C (0x000338) 0x2921- f:00024 d: 289 | OR[289] = A
0x019D (0x00033A) 0x1120- f:00010 d: 288 | A = 288 (0x0120)
0x019E (0x00033C) 0x5800- f:00054 d: 0 | B = A
0x019F (0x00033E) 0x1800-0x1118 f:00014 d: 0 | A = 4376 (0x1118)
0x01A1 (0x000342) 0x7C09- f:00076 d: 9 | R = OR[9]
0x01A2 (0x000344) 0x211D- f:00020 d: 285 | A = OR[285]
0x01A3 (0x000346) 0x1404- f:00012 d: 4 | A = A + 4 (0x0004)
0x01A4 (0x000348) 0x2908- f:00024 d: 264 | OR[264] = A
0x01A5 (0x00034A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x01A6 (0x00034C) 0x2913- f:00024 d: 275 | OR[275] = A
0x01A7 (0x00034E) 0x7212- f:00071 d: 18 | P = P - 18 (0x0195)
0x01A8 (0x000350) 0x0200- f:00001 d: 0 | EXIT
0x01A9 (0x000352) 0x0000- f:00000 d: 0 | PASS
0x01AA (0x000354) 0x0000- f:00000 d: 0 | PASS
0x01AB (0x000356) 0x0000- f:00000 d: 0 | PASS
| 79.803922 | 79 | 0.461087 |
474a2643fb40df798e1ed83c2fb0274ffb9ef0d3 | 46,524 | asm | Assembly | dos/msproc.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | dos/msproc.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | dos/msproc.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | ; =========================================================================
; SCCSID = @(#)MSproc.asm 1.1 85/04/10
;
; Pseudo EXEC system call for DOS
;
; =========================================================================
.cref
.list
TITLE MSPROC - process maintenance
NAME MSPROC
;
; Microsoft Confidential
; Copyright (C) Microsoft Corporation 1991
; All Rights Reserved.
;
PAGE ,132
; =========================================================================
;** Process related system calls and low level routines for DOS 2.X.
; I/O specs are defined in DISPATCH.
;
; $WAIT
; $EXEC
; $Keep_process
; Stay_resident
; $EXIT
; $ABORT
; abort_inner
;
; Modification history:
;
; Created: ARR 30 March 1983
; AN000 version 4.0 jan. 1988
; A007 PTM 3957 - fake vesrion for IBMCACHE.COM
; A008 PTM 4070 - fake version for MS WINDOWS
;
; M000 added support for loading programs into UMBs 7/9/90
;
; M004 - MS PASCAL 3.2 support. Please see under tag M003 in
; dossym.inc. 7/30/90
; M005 - Support for EXE programs with out STACK segment and
; with resident size < 64K - 256 bytes. A 256 byte
; stack is provided at the end of the program. Note that
; only SP is changed.
; M020 - Fix for Rational bug for details see exepatch.asm
;
; M028 - 4b04 implementation
;
; M029 - Support for EXEs without stack rewritten. If EXE is
; in memory block >= 64K, sp = 0. If memory block
; obtained is <64K, point sp at the end of the memory
; block. For EXEs smaller than 64K, 256 bytes are still
; added for a stack segment which may be needed if it
; is loaded in low memory situations.
;
; M030 - Fixing bug in EXEPACPATCH & changing 4b04 to 4b05
;
; M040 - Bug #3052. The environment sizing code would flag a
; a bad environment if it reached 32767 bytes. Changed
; to allow 32768 bytes of environment.
;
; M047 - Release the allocated UMB when we failed to load a
; COM file high. Also ensure that if the biggest block
; into which we load the com file is less than 64K then
; we provide atleast 256 bytes of stack to the user.
;
; M050 - Made Lie table search CASE insensitive
;
; M060 - Removed special version table from the kernal and
; put it in a device drive which puts the address
; in the DOS DATA area location UU_IFS_DOS_CALL
; as a DWORD.
;
; M063 - Modified UMB support. If the HIGH_ONLY bit is set on
; entry do not try to load low if there is no space in
; UMBs.
;
; M068 - Support for copy protect apps. Call ChkCopyProt to
; set a20off_count. Set bit EXECA20BIT in DOS_FLAG. Also
; change return address to LeaveDos if AL=5.
;
; 20-Jul-1992 bens Added ifdef RESTRICTED_BUILD code that
; controls building a version of MSDOS.SYS that only
; runs programs from a fixed list (defined in the
; file RESTRICT.INC). Search for "RESTRICTED_BUILD"
; for details. This feature is used to build a
; "special" version of DOS that can be handed out to
; OEM/ISV customers as part of a "service" disk.
;
; =========================================================================
.XLIST
.XCREF
INCLUDE version.inc
INCLUDE dosseg.inc
INCLUDE DOSSYM.INC
INCLUDE DEVSYM.INC
INCLUDE exe.inc
INCLUDE sf.inc
INCLUDE curdir.inc
INCLUDE syscall.inc
INCLUDE arena.inc
INCLUDE pdb.inc
INCLUDE vector.inc
.CREF
.LIST
public retexepatch
; =========================================================================
ifdef ROMEXEC
ifndef JAPAN
BDATA segment at 70h
extrn RomStartAddr :word
BDATA ends
endif ; JAPAN
endif ; ROMEXEC
; =========================================================================
DosData SEGMENT WORD PUBLIC 'DATA'
EXTRN CreatePDB :BYTE
EXTRN DidCtrlC :BYTE
EXTRN Exit_type :BYTE
EXTRN ExtErr_Locus :BYTE ; Extended Error Locus
EXTRN InDos :BYTE
EXTRN OpenBuf :BYTE
; EXTRN OpenBuf :128
EXTRN CurrentPDB :WORD
EXTRN Exit_code :WORD
EXTRN DmaAdd :DWORD
; the following includes & i_needs are for exec.asm
; which is included in this source
; **** Fake_count to commented out
EXTRN Fake_Count :BYTE ; Fake version count
EXTRN Special_Entries :WORD ; Address of special entries
EXTRN Special_Version :WORD ; Special version number
EXTRN Temp_Var2 :WORD ; File type from $open
; following i_needs are becuse of moving these vars from
; exec.asm to ../inc/ms_data.asm
EXTRN exec_init_SP :WORD
EXTRN exec_init_SS :WORD
EXTRN exec_init_IP :WORD
EXTRN exec_init_CS :WORD
EXTRN exec_signature :WORD ; Must contain 4D5A (yay zibo!)
EXTRN exec_len_mod_512:WORD ; Low 9 bits of length
EXTRN exec_pages :WORD ; Number of 512b pages in file
EXTRN exec_rle_count :WORD ; Count of reloc entries
EXTRN exec_par_dir :WORD ; Number of paragraphs before image
EXTRN exec_min_BSS :WORD ; Minimum number of para of BSS
EXTRN exec_max_BSS :WORD ; Max number of para of BSS
EXTRN exec_SS :WORD ; Stack of image
EXTRN exec_SP :WORD ; SP of image
EXTRN exec_chksum :WORD ; Checksum of file (ignored)
EXTRN exec_IP :WORD ; IP of entry
EXTRN exec_CS :WORD ; CS of entry
EXTRN exec_rle_table :WORD ; Byte offset of reloc table
EXTRN DOS_FLAG :BYTE ; flag to indicate to redir that open
; came from exec.
EXTRN AllocMethod :BYTE ; how to alloc first(best)last
EXTRN SAVE_AX :WORD ; temp to save ax
EXTRN AllocMsave :BYTE ; M063: temp to save AllocMethod
EXTRN UU_IFS_DOS_CALL :DWORD ; M060 Ptr to version table
EXTRN A20OFF_PSP :WORD ; M068
EXTRN A20OFF_COUNT :BYTE ; M068
; =========================================================================
EXTRN Disa20_Xfer :WORD
allow_getdseg
EXTRN DriverLoad :BYTE
EXTRN BiosDataPtr :DWORD
extrn DosHasHMA :byte ; M021
extrn fixexepatch :word
extrn Rational386PatchPtr:word
extrn ChkCopyProt :word ; M068
extrn LeaveDos :word ; M068
DosData ENDS
; =========================================================================
DOSCODE SEGMENT
ASSUME SS:DOSDATA,CS:DOSCODE
EXTRN ExecReady:near
EXTRN UCase:near ; M050
SAVEXIT EQU 10
BREAK <$WAIT - return previous process error code>
; =========================================================================
; $WAIT - Return previous process error code.
;
; Assembler usage:
;
; MOV AH, WaitProcess
; INT int_command
;
; ENTRY none
; EXIT (ax) = exit code
; USES all
; =========================================================================
ASSUME DS:NOTHING,ES:NOTHING
PROCEDURE $Wait ,NEAR
xor AX,AX
xchg AX,exit_code
transfer Sys_Ret_OK
ENDPROC $Wait
ifdef RESTRICTED_BUILD
;*** IsFileOnGuestList - Check that file name is allowed to execute
;
; This function is called by $Exec just before it attempts to
; $Open the program file.
;
; Entry
; ds:dx = asciiz "guest" file name.
; Must be upper case and have no meta characters.
; CLD
;
; Exit-Success
; returns Carry CLEAR
;
; Exit-Failure
; returns Carry SET
; ax = error_access_denied
IsFileOnGuestList proc near
SaveReg <bx,cx,si,di,ds,es>
;* Compute length of guest name
push ds
pop es
mov di,dx ; es:di -> guest name
invoke StrLen ; cx = length of name including 00
mov bx,cx ; Save length for repeated use
;* Get list of allowed names
push cs
pop es
mov di,offset aszRestrict ; es:di -> allowed name list
;* Set null character and no error in one fell swoop!
xor ax,ax
;* Scan list for matching file name
;
; ax = 0 (used for repne scasb and successful return code)
; bx = length of guest name, including 00 terminator
; ds:dx -> guest name
; es:di -> next name on list
fgl10: cmp byte ptr es:[di],00 ; At end of list?
jz fgle ; YES, file not allowed, go fail
;* Compare names
mov si,dx ; ds:si -> guest name
mov cx,bx ; Length of guest name
repe cmpsb ; Do names match?
jz fglx ; YES, return success
;* Now we either ran past the end of the string in the list, or we are not
; at the end, but found a difference. We back up one character, since
; repe cmpsb advanced one character past the difference, and then scan
; the string in the list to find its end.
dec di ; es:di -> character that did not match
mov cx,-1 ; Make sure we look far enough ahead
repne scasb ; Find tail of name in list
;* Now es:[di] is first character of the next name in the list (or 00)
;
jmp fgl10 ; Go check next name
;* Name not found on list
;
fgle: mov ax,error_access_denied ; Set error code
stc ; Indicate error
fglx: RestoreReg <es,ds,di,si,cx,bx>
ret
IsFileOnGuestList endp
;** rstfile - macro to add file name to list
;
rstfile MACRO name
db name,0
endm
;** aszRestrict - list of files allowed to execute
;
aszRestrict LABEL byte
include restrict.inc ; build table
db 0 ; terminate table
endif ; RESTRICTED_BUILD
; =========================================================================
;BREAK <$exec - load/go a program>
; EXEC.ASM - EXEC System Call
;
;
; Assembler usage:
; lds DX, Name
; les BX, Blk
; mov AH, Exec
; mov AL, FUNC
; int INT_COMMAND
;
; AL Function
; -- --------
; 0 Load and execute the program.
; 1 Load, create the program header but do not
; begin execution.
; 3 Load overlay. No header created.
;
; AL = 0 -> load/execute program
;
; +---------------------------+
; | WORD segment address of |
; | environment. |
; +---------------------------+
; | DWORD pointer to ASCIZ |
; | command line at 80h |
; +---------------------------+
; | DWORD pointer to default |
; | FCB to be passed at 5Ch |
; +---------------------------+
; | DWORD pointer to default |
; | FCB to be passed at 6Ch |
; +---------------------------+
;
; AL = 1 -> load program
;
; +---------------------------+
; | WORD segment address of |
; | environment. |
; +---------------------------+
; | DWORD pointer to ASCIZ |
; | command line at 80h |
; +---------------------------+
; | DWORD pointer to default |
; | FCB to be passed at 5Ch |
; +---------------------------+
; | DWORD pointer to default |
; | FCB to be passed at 6Ch |
; +---------------------------+
; | DWORD returned value of |
; | CS:IP |
; +---------------------------+
; | DWORD returned value of |
; | SS:IP |
; +---------------------------+
;
; AL = 3 -> load overlay
;
; +---------------------------+
; | WORD segment address where|
; | file will be loaded. |
; +---------------------------+
; | WORD relocation factor to |
; | be applied to the image. |
; +---------------------------+
;
; Returns:
; AX = error_invalid_function
; = error_bad_format
; = error_bad_environment
; = error_not_enough_memory
; = error_file_not_found
; =========================================================================
;
; Revision history:
;
; A000 version 4.00 Jan. 1988
;
; =========================================================================
EXTRN Exec_Header_Len :ABS
Exec_Internal_Buffer EQU OpenBuf
Exec_Internal_Buffer_Size EQU (128+128+53+curdirLEN)
; =========================================================================
;IF1 ; warning message on buffers
;%out Please make sure that the following are contiguous and of the
;%out following sizes:
;%out
;%out OpenBuf 128
;%out RenBuf 128
;%out SearchBuf 53
;%out DummyCDS CurDirLen
;ENDIF
; =========================================================================
ifdef ROMEXEC ;SR; Externals from romfind.asm
EXTRN Check_name :NEAR
EXTRN Check_ROM :NEAR
IFDEF JAPAN ; YI 09/05/89
EXTRN ROMSTARTSEG :ABS
EXTRN ROMENDSEG :ABS
ENDIF
EXTRN BioDataSeg :WORD
endif ; ROMEXEC
; =========================================================================
;
; =========================================================================
procedure $Exec,NEAR
PUBLIC EXEC001S
EXEC001S:
LocalVar Exec_Blk ,DWORD
LocalVar Exec_Func ,BYTE
LocalVar Exec_Load_High ,BYTE
LocalVar Exec_FH ,WORD
LocalVar Exec_Rel_Fac ,WORD
LocalVar Exec_Res_Len_Para ,WORD
LocalVar Exec_Environ ,WORD
LocalVar Exec_Size ,WORD
LocalVar Exec_Load_Block ,WORD
LocalVar Exec_DMA ,WORD
LocalVar ExecNameLen ,WORD
LocalVar ExecName ,DWORD
LocalVar Exec_DMA_Save ,WORD
LocalVar Exec_NoStack ,BYTE
ifdef ROMEXEC
; Added 2 local variables to support exec from ROM
LocalVar ExecRomFound ,BYTE
LocalVar ExecRomAddr ,DWORD
endif ; ROMEXEC
; ==================================================================
; validate function
; ==================================================================
PUBLIC EXEC001E
EXEC001E:
;
; M068 - Start
;
; Reset the A20OFF_COUNT to 0. This is done as there is a
; possibility that the count may not be decremented all the way to
; 0. A typical case is if the program for which we intended to keep
; the A20 off for a sufficiently long time (A20OFF_COUNT int 21
; calls), exits pre-maturely due to error conditions.
;
mov [A20OFF_COUNT], 0
;
; If al=5 (ExecReady) we'll change the return address on the stack
; to be LeaveDos in msdisp.asm. This ensures that the EXECA20OFF
; bit set in DOS_FLAG by ExceReady is not cleared in msdisp.asm
;
cmp al, 5 ; Q: is this ExecReady call
jne @f ; N: continue
; Y: change ret addr. to LeaveDos.
pop cx ; Note CX is not input to ExecReady
mov cx, offset DOSCODE:LeaveDos
push cx
@@:
;
; M068 - End
;
Enter
cmp AL,5 ; only 0, 1, 3 or 5 are allowed ;M028
; M030
jna exec_check_2
Exec_Bad_Fun:
mov ExtErr_Locus,ErrLoc_Unk ; Extended Error Locus ;smr;SS Override
mov al,Error_Invalid_Function
Exec_Ret_Err:
Leave
transfer SYS_RET_ERR
ExecReadyJ:
call ExecReady ; M028
jmp norm_ovl ; do a Leave & xfer sysret_OK ; M028
Exec_Check_2:
cmp AL,2
jz Exec_Bad_Fun
cmp al, 4 ; 2 & 4 are not allowed
je Exec_Bad_Fun
cmp al, 5 ; M028 ; M030
je ExecReadyJ ; M028
mov Exec_BlkL,BX ; stash args
mov Exec_BlkH,ES
mov Exec_Func,AL
mov Exec_Load_high,0
mov execNameL,DX ; set up length of exec name
mov execNameH,DS
mov SI,DX ; move pointer to convenient place
invoke DStrLen
mov ExecNameLen,CX ; save length
ifdef ROMEXEC
; Check if ROM program
mov execRomFound,0 ; assume not in ROM
; Do not check for ROM if load overlay
test BYTE PTR Exec_Func,EXEC_FUNC_OVERLAY
jnz Do_Normal
; A ROM program exec should have no
; path or drive specifiers
push DX
push CX
push DS
push SI
push ES
dec CX ; length should not include NUL char
; Check if the program exists in ROM - returns address in
; dx,ax if success
call Check_name ; DS:SI points to string
jc not_rom_name
Exist_ROM:
push DS
mov DS, CS:[BioDataSeg]
IFDEF JAPAN ; YI 09/05/89
mov AX,DS:[ROMSTARTSEG]
ELSE
mov AX,DS:RomStartAddr
ENDIF
pop DS
mov ES,AX
xor AX,AX ; setup start addr for ROM scan
call Check_ROM
jc not_rom_name
mov execRomFound,1 ; flag that program is in ROM
mov execRomAddrL,AX
mov execRomAddrH,ES
pop ES
pop SI ; Skip file opening and checking -
pop DS ; check environment
pop CX
pop DX
jmp short exec_check_environ
not_rom_name:
pop ES
pop SI
pop DS
pop CX
pop DX ; restore dx
do_normal:
endif ; ROMEXEC
mov al, [AllocMethod] ; M063: save alloc method in
mov [AllocMsave], al ; M063: AllocMsave
xor AL,AL ; open for reading
push BP
or [DOS_FLAG], EXECOPEN ; this flag is set to indicate to
; the redir that this open call is
; due to an exec.
ifdef RESTRICTED_BUILD
call IsFileOnGuestList ; Should we execute this?
jc @F ; NO, skip open and fail
endif ; RESTRICTED_BUILD
invoke $OPEN ; is the file there?
ifdef RESTRICTED_BUILD
@@: ;* Come here if file name does not pass muster
endif ; RESTRICTED_BUILD
pushf
and [DOS_FLAG], not EXECOPEN; reset flag
popf
pop BP
ifdef ROMEXEC
jnc @F
jmp Exec_Ret_Err
@@:
else
jc Exec_Ret_Err
endif
mov Exec_Fh,AX
mov BX,AX
xor AL,AL
invoke $Ioctl
jc Exec_BombJ
test DL,DEVID_ISDEV
jz Exec_Check_Environ
mov AL,ERROR_FILE_NOT_FOUND
Exec_bombJ:
jmp Exec_Bomb
BadEnv:
mov AL,ERROR_BAD_ENVIRONMENT
jmp Exec_Bomb
Exec_Check_Environ:
mov Exec_Load_Block,0
mov Exec_Environ,0
; overlays... no environment
test BYTE PTR Exec_Func,EXEC_FUNC_OVERLAY
jnz Exec_Read_Header
lds SI,Exec_Blk ; get block
mov AX,[SI].Exec1_Environ ; address of environ
or AX,AX
jnz exec_scan_env
mov DS,CurrentPDB ;smr;SS Override
mov AX,DS:[PDB_environ]
;---------------------------------------------BUG 92 4/30/90-----------------
;
; Exec_environ is being correctly initialized after the environment has been
; allocated and copied form the parent's env. It must not be initialized here.
; Because if the call to $alloc below fails Exec_dealloc will deallocate the
; parent's environment.
; mov Exec_Environ,AX
;
;----------------------------------------------------------------------------
or AX,AX
jz Exec_Read_Header
Exec_Scan_Env:
mov ES,AX
xor DI,DI
mov CX,8000h ; at most 32k of environment ;M040
xor AL,AL
Exec_Get_Environ_Len:
repnz scasb ; find that nul byte
jnz BadEnv
dec CX ; Dec CX for the next nul byte test
js BadEnv ; gone beyond the end of the environment
scasb ; is there another nul byte?
jnz Exec_Get_Environ_Len ; no, scan some more
push DI
lea BX,[DI+0Fh+2]
add BX,ExecNameLen ; BX <- length of environment
; remember argv[0] length
; round up and remember argc
mov CL,4
shr BX,CL ; number of paragraphs needed
push ES
invoke $Alloc ; can we get the space?
pop DS
pop CX
jnc Exec_Save_Environ
jmp SHORT Exec_No_Mem ; nope... cry and sob
Exec_Save_Environ:
mov ES,AX
mov Exec_Environ,AX ; save him for a rainy day
xor SI,SI
mov DI,SI
rep movsb ; copy the environment
mov AX,1
stosw
lds SI,ExecName
mov CX,ExecNameLen
rep movsb
Exec_Read_Header:
ifdef ROMEXEC
; SR; For a ROM program, we skip reading the program header.
; We assume it to be a .COM program and go ahead.
cmp ExecRomFound,1
jne NoRom
jmp Exec_Com_File ;program is in ROM
NoRom:
endif ; ROMEXEC
; We read in the program header into the above data area and
; determine where in this memory the image will be located.
Context DS
mov CX,Exec_Header_Len ; header size
mov DX,OFFSET DosData:Exec_Signature
push ES
push DS
call ExecRead
pop DS
pop ES
jc Exec_Bad_File
or AX,AX
jz Exec_Bad_File
cmp AX,EXEC_HEADER_LEN ; did we read the right number?
jnz Exec_Com_Filej ; yep... continue
test Exec_Max_BSS,-1 ; indicate load high?
jnz Exec_Check_Sig
mov Exec_Load_High,-1
Exec_Check_Sig:
mov AX,Exec_Signature ; rms;NSS
cmp AX,Exe_Valid_Signature ; zibo arises!
jz Exec_Save_Start ; assume com file if no signature
cmp AX,exe_valid_Old_Signature ; zibo arises!
jz Exec_Save_Start ; assume com file if no signature
Exec_Com_Filej:
jmp Exec_Com_file
; We have the program header... determine memory requirements
Exec_Save_Start:
mov AX,Exec_Pages ; get 512-byte pages ;rms;NSS
mov CL,5 ; convert to paragraphs
shl AX,CL
sub AX,Exec_Par_Dir ; AX = size in paragraphs;rms;NSS
mov Exec_Res_Len_Para,AX
; Do we need to allocate memory?
; Yes if function is not load-overlay
test BYTE PTR exec_func,exec_func_overlay
jz exec_allocate ; allocation of space
; get load address from block
les DI,Exec_Blk
mov AX,ES:[DI].Exec3_Load_Addr
mov exec_dma,AX
mov AX,ES:[DI].Exec3_Reloc_Fac
mov Exec_Rel_Fac,AX
jmp Exec_Find_Res ; M000
Exec_No_Mem:
mov AL,Error_Not_Enough_Memory
jmp SHORT Exec_Bomb
Exec_Bad_File:
mov AL,Error_Bad_Format
Exec_Bomb:
ASSUME DS:NOTHING,ES:NOTHING
mov BX,Exec_fh
call Exec_Dealloc
LeaveCrit CritMem
save <AX,BP>
invoke $CLOSE
restore <BP,AX>
jmp Exec_Ret_Err
Exec_Chk_Mem:
; M063 - Start
mov al, [AllocMethod] ; save current alloc method in ax
mov bl, [AllocMsave]
mov [AllocMethod], bl ; restore original allocmethod
test bl, HIGH_ONLY ; Q: was the HIGH_ONLY bit already set
jnz Exec_No_Mem ; Y: no space in UMBs. Quit
; N: continue
test al, HIGH_ONLY ; Q: did we set the HIGH_ONLY bit
jz Exec_No_Mem ; N: no memory
mov ax, [save_ax] ; Y: restore ax and
jmp short Exec_Norm_Alloc ; Try again
; M063 - End
Exec_Allocate:
DOSAssume <DS>,"exec_allocate"
; M005 - START
; If there is no STACK segment for this exe file and if this
; not an overlay and the resident size is less than 64K -
; 256 bytes we shall add 256bytes bytes to the programs
; resident memory requirement and set Exec_SP to this value.
mov Exec_NoStack,0
cmp Exec_SS, 0 ; Q: is there a stack seg
jne @f ; Y: continue normal processing
cmp Exec_SP, 0 ; Q: is there a stack ptr
jne @f ; Y: continue normal processing
inc Exec_NoStack
cmp ax, 01000h-10h ; Q: is this >= 64K-256 bytes
jae @f ; Y: don't set Exec_SP
add ax, 010h ; add 10h paras to mem requirement
@@:
; M005 - END
; M000 - start
test byte ptr [AllocMethod], HIGH_FIRST
; Q: is the alloc strat high_first
jz Exec_Norm_Alloc ; N: normal allocate
; Y: set high_only bit
or byte ptr [AllocMethod], HIGH_ONLY
; M000 - end
Exec_Norm_Alloc:
mov [save_ax], ax ; M000: save ax for possible 2nd
; M000: attempt at allocating memory
; push ax ; M000
mov BX,0ffffh ; see how much room in arena
push DS
invoke $Alloc ; should have carry set and BX has max
pop DS
mov ax, [save_ax] ; M000
; pop AX ; M000
add AX,10h ; room for header
cmp BX,11h ; enough room for a header
jb Exec_Chk_Mem ; M000
; jb Exec_No_Mem ; M000
cmp AX,BX ; is there enough for bare image?
ja Exec_Chk_Mem ; M000
; ja Exec_No_Mem ; M000
test Exec_Load_High,-1 ; if load high, use max
jnz Exec_BX_Max ; use max
add AX,Exec_Min_BSS ; go for min allocation;rms;NSS
jc Exec_Chk_Mem ; M000
; jc Exec_No_Mem ; M000: oops! carry
cmp AX,BX ; enough space?
ja Exec_Chk_Mem ; M000: nope...
; ja Exec_No_Mem ; M000: nope...
sub AX,Exec_Min_BSS ; rms;NSS
add AX,Exec_Max_BSS ; go for the MAX
jc Exec_BX_Max
cmp AX,BX
jbe Exec_Got_Block
Exec_BX_Max:
mov AX,BX
Exec_Got_Block:
push DS
mov BX,AX
mov exec_size,BX
invoke $Alloc ; get the space
pop DS
ljc exec_chk_mem ; M000
mov cl, [AllocMsave] ; M063:
mov [AllocMethod], cl ; M063: restore allocmethod
;M029; Begin changes
; This code does special handling for programs with no stack segment. If so,
;check if the current block is larger than 64K. If so, we do not modify
;Exec_SP. If smaller than 64K, we make Exec_SP = top of block. In either
;case Exec_SS is not changed.
;
cmp Exec_NoStack,0
je @f
cmp bx,1000h ; Q: >= 64K memory block
jae @f ; Y: Exec_SP = 0
;
;Make Exec_SP point at the top of the memory block
;
mov cl,4
shl bx,cl ; get byte offset
sub bx,100h ; take care of PSP
mov Exec_SP,bx ; Exec_SP = top of block
@@:
;
;M029; end changes
;
mov exec_load_block,AX
add AX,10h
test exec_load_high,-1
jz exec_use_ax ; use ax for load info
add AX,exec_size ; go to end
sub AX,exec_res_len_para ; drop off header
sub AX,10h ; drop off pdb
Exec_Use_AX:
mov Exec_Rel_Fac,AX ; new segment
mov Exec_Dma,AX ; beginning of dma
; Determine the location in the file of the beginning of
; the resident
Exec_Find_Res:
mov DX, exec_dma
mov exec_dma_save, DX
mov DX,Exec_Par_Dir
push DX
mov CL,4
shl DX,CL ; low word of location
pop AX
mov CL,12
shr AX,CL ; high word of location
mov CX,AX ; CX <- high
; Read in the resident image (first, seek to it)
mov BX,Exec_FH
push DS
xor AL,AL
invoke $Lseek ; Seek to resident
pop DS
jnc exec_big_read
jmp exec_bomb
Exec_Big_Read: ; Read resident into memory
mov BX,Exec_Res_Len_Para
cmp BX,1000h ; Too many bytes to read?
jb Exec_Read_OK
mov BX,0fe0h ; Max in one chunk FE00 bytes
Exec_Read_OK:
sub Exec_Res_Len_Para,BX ; We read (soon) this many
push BX
mov CL,4
shl BX,CL ; Get count in bytes from paras
mov CX,BX ; Count in correct register
push DS
mov DS,Exec_DMA ; Set up read buffer
ASSUME DS:NOTHING
xor DX,DX
push CX ; Save our count
call ExecRead
pop CX ; Get old count to verify
pop DS
jc Exec_Bad_FileJ
DOSAssume <DS>,"exec_read_ok"
cmp CX,AX ; Did we read enough?
pop BX ; Get paragraph count back
jz ExecCheckEnd ; and do reloc if no more to read
; The read did not match the request. If we are off by 512
; bytes or more then the header lied and we have an error.
sub CX,AX
cmp CX,512
jae Exec_Bad_FileJ
; We've read in CX bytes... bump DTA location
ExecCheckEnd:
add Exec_DMA,BX ; Bump dma address
test Exec_Res_Len_Para,-1
jnz Exec_Big_Read
; The image has now been read in. We must perform relocation
; to the current location.
ifdef ROMDOS
cmp [DosHasHMA], 0 ; DOS using HMA? (M021)
je exec_do_reloc ; if not, then no patch needed.
endif
exec_do_reloc:
mov CX,Exec_Rel_Fac
mov AX,Exec_SS ; get initial SS ;rms;NSS
add AX,CX ; and relocate him
mov Exec_Init_SS,AX ; rms;NSS
mov AX,Exec_SP ; initial SP ;rms;NSS
mov Exec_Init_SP,AX ; rms;NSS
les AX,DWORD PTR exec_IP ; rms;NSS
mov Exec_Init_IP,AX ; rms;NSS
mov AX,ES ; rms;NSS
add AX,CX ; relocated...
mov Exec_Init_CS,AX ; rms;NSS
xor CX,CX
mov DX,Exec_RLE_Table ; rms;NSS
mov BX,Exec_FH
push DS
xor AX,AX
invoke $Lseek
pop DS
jnc Exec_Get_Entries
exec_bad_filej:
jmp Exec_Bad_File
exec_get_entries:
mov DX,Exec_RLE_Count ; Number of entries left ;rms;NSS
exec_read_reloc:
ASSUME DS:NOTHING
push DX
mov DX,OFFSET DOSDATA:Exec_Internal_Buffer
mov CX,((EXEC_INTERNAL_BUFFER_SIZE)/4)*4
push DS
call ExecRead
pop ES
pop DX
jc Exec_Bad_FileJ
mov CX,(EXEC_INTERNAL_BUFFER_SIZE)/4
; Pointer to byte location in header
mov DI,OFFSET DOSDATA:exec_internal_buffer
mov SI,Exec_Rel_Fac ; Relocate a single address
exec_reloc_one:
or DX,DX ; Any more entries?
je Exec_Set_PDBJ
exec_get_addr:
lds BX,DWORD PTR ES:[DI] ; Get ra/sa of entry
mov AX,DS ; Relocate address of item
;;;;;; add AX,SI
add AX, exec_dma_save
mov DS,AX
add [BX],SI
add DI,4
dec DX
loop Exec_Reloc_One ; End of internal buffer?
; We've exhausted a single buffer's worth. Read in the next
; piece of the relocation table.
push ES
pop DS
jmp Exec_Read_Reloc
Exec_Set_PDBJ:
;
; We now determine if this is a buggy exe packed file and if
; so we patch in the right code. Note that fixexepatch will
; point to a ret if dos loads low. The load segment as
; determined above will be in exec_dma_save
;
push es
push ax ; M030
push cx ; M030
mov es, exec_dma_save
mov ax, exec_init_CS ; M030
mov cx, exec_init_IP ; M030
call word ptr [fixexepatch]
call word ptr [Rational386PatchPtr]
pop cx ; M030
pop ax ; M030
pop es
jmp Exec_Set_PDB
Exec_No_Memj:
jmp Exec_No_Mem
; we have a .COM file. First, determine if we are merely
; loading an overlay.
Exec_Com_File:
test BYTE PTR Exec_Func,EXEC_FUNC_OVERLAY
jz Exec_Alloc_Com_File
lds SI,Exec_Blk ; get arg block
lodsw ; get load address
mov Exec_DMA,AX
mov AX,0ffffh
jmp SHORT Exec_Read_Block ; read it all!
Exec_Chk_Com_Mem:
; M063 - Start
mov al, [AllocMethod] ; save current alloc method in ax
mov bl, [AllocMsave]
mov [AllocMethod], bl ; restore original allocmethod
test bl, HIGH_ONLY ; Q: was the HIGH_ONLY bit already set
jnz Exec_No_Memj ; Y: no space in UMBs. Quit
; N: continue
test al, HIGH_ONLY ; Q: did we set the HIGH_ONLY bit
jz Exec_No_Memj ; N: no memory
mov ax, exec_load_block ; M047: ax = block we just allocated
xor bx, bx ; M047: bx => free arena
call ChangeOwner ; M047: free this block
jmp short Exec_Norm_Com_Alloc
; M063 - End
; We must allocate the max possible size block (ick!)
; and set up CS=DS=ES=SS=PDB pointer, IP=100, SP=max
; size of block.
Exec_Alloc_Com_File:
; M000 -start
test byte ptr [AllocMethod], HIGH_FIRST
; Q: is the alloc strat high_first
jz Exec_Norm_Com_Alloc ; N: normal allocate
; Y: set high_only bit
or byte ptr [AllocMethod], HIGH_ONLY
; M000 - end
Exec_Norm_Com_Alloc: ; M000
mov BX,0FFFFh
invoke $Alloc ; largest piece available as error
or BX,BX
jz Exec_Chk_Com_Mem ; M000
; jz Exec_No_Memj ; M000
mov Exec_Size,BX ; save size of allocation block
push BX
invoke $ALLOC ; largest piece available as error
pop BX ; get size of block...
mov Exec_Load_Block,AX
add AX,10h ; increment for header
mov Exec_DMA,AX
xor AX,AX ; presume 64K read...
cmp BX,1000h ; 64k or more in block?
jae Exec_Read_Com ; yes, read only 64k
mov AX,BX ; convert size to bytes
mov CL,4
shl AX,CL
cmp AX,200h ; enough memory for PSP and stack?
jbe Exec_Chk_Com_Mem ; M000: jump if not
; jbe Exec_No_Memj ; M000: jump if not
; M047: size of the block is < 64K
sub ax, 100h ; M047: reserve 256 bytes for stack
Exec_Read_Com:
sub AX,100h ; remember size of psp
ifdef ROMEXEC
; If ROM program, do not read in file - start building header
cmp execRomFound,1
jne Exec_Read_Block ; not found, read file
jmp exec_build_header ; skip reading of file
endif
Exec_Read_Block:
push AX ; save number to read
mov BX,Exec_FH ; of com file
xor CX,CX ; but seek to 0:0
mov DX,CX
xor AX,AX ; seek relative to beginning
invoke $Lseek ; back to beginning of file
pop CX ; number to read
mov DS,Exec_DMA
xor DX,DX
push CX
call ExecRead
pop SI ; get number of bytes to read
jnc OkRead
jmp Exec_Bad_File
OkRead:
cmp AX,SI ; did we read them all?
ljz Exec_Chk_Com_Mem ; M00: exactly the wrong number...no
; ljz Exec_No_Memj ; M00: exactly the wrong number...
mov bl, [AllocMsave] ; M063
mov [AllocMethod], bl ; M063: restore allocmethod
test BYTE PTR Exec_Func,EXEC_FUNC_OVERLAY
jnz Exec_Set_PDB ; no starto, chumo!
mov AX,Exec_DMA
sub AX,10h
mov Exec_Init_CS,AX
mov Exec_Init_IP,100h ; initial IP is 100
; SI is AT MOST FF00h. Add FE to account for PSP - word
; of 0 on stack.
add SI,0feh ; make room for stack
cmp si, 0fffeh ; M047: Q: was there >= 64K available
je Exec_St_Ok ; M047: Y: stack is fine
add si, 100h ; M047: N: add the xtra 100h for stack
Exec_St_Ok:
mov Exec_Init_SP,SI ; max value for read is also SP!;smr;SS Override
mov Exec_Init_SS,AX ;smr;SS Override
mov DS,AX
mov WORD PTR [SI],0 ; 0 for return
;
; M068
;
; We now determine if this is a Copy Protected App. If so the
; A20OFF_COUNT is set to 6. Note that ChkCopyProt will point to a
; a ret if DOS is loaded low. Also DS contains the load segment.
call word ptr [ChkCopyProt]
Exec_Set_PDB:
mov BX,Exec_FH ; we are finished with the file.
call Exec_Dealloc
push BP
invoke $Close ; release the jfn
pop BP
call Exec_Alloc
test BYTE PTR Exec_Func,EXEC_FUNC_OVERLAY
jz Exec_Build_Header
call Scan_Execname
call Scan_Special_Entries
;SR;
;The current lie strategy uses the PSP to store the lie version. However,
;device drivers are loaded as overlays and have no PSP. To handle them, we
;use the Sysinit flag provided by the BIOS as part of a structure pointed at
;by BiosDataPtr. If this flag is set, the overlay call has been issued from
;Sysinit and therefore must be a device driver load. We then get the lie
;version for this driver and put it into the Sysinit PSP. When the driver
;issues the version check, it gets the lie version until the next overlay
;call is issued.
;
cmp DriverLoad,0 ;was Sysinit processing done?
je norm_ovl ;yes, no special handling
push si
push es
les si,BiosDataPtr ;get ptr to BIOS data block
cmp byte ptr es:[si],0 ;in Sysinit?
je sysinit_done ;no, Sysinit is finished
mov es,CurrentPDB ;es = current PSP (Sysinit PSP)
push Special_Version
pop es:PDB_Version ;store lie version in Sysinit PSP
jmp short setver_done
sysinit_done:
mov DriverLoad,0 ;Sysinit done,special handling off
setver_done:
pop es
pop si
norm_ovl:
leave
transfer Sys_Ret_OK ; overlay load -> done
Exec_Build_Header:
ifdef ROMEXEC
; Set up cs:ip and ss:sp for the ROM program; ax contains
; offset of stack 100h for PSP
cmp ExecRomFound,1
jnz Not_ROM_Exec
; AX is at most FF00h. Add FE to account for PSP - word of
; 0 on stack.
add AX,0feh
mov SI,AX ;store sp value
mov Exec_Init_SP, AX
mov AX,Exec_load_block ;address of PSP
mov Exec_Init_SS, AX ;set up ss
;Set up word of 0 on stack for return
mov DS,AX ;PSP segment
mov WORD PTR [SI],0
mov AX, ExecRomAddrL ;get IP
mov Exec_init_IP, AX
mov AX,ExecRomAddrH ;get CS
mov Exec_Init_CS, AX
Not_ROM_Exec:
endif ; ROMEXEC
mov DX,Exec_Load_Block
; assign the space to the process
mov SI,Arena_Owner ; pointer to owner field
mov AX,Exec_Environ ; get environ pointer
or AX,AX
jz No_Owner ; no environment
dec AX ; point to header
mov DS,AX
mov [SI],DX ; assign ownership
No_Owner:
mov AX,Exec_Load_Block ; get load block pointer
dec AX
mov DS,AX ; point to header
mov [SI],DX ; assign ownership
push DS ;AN000;MS. make ES=DS
pop ES ;AN000;MS.
mov DI,Arena_Name ;AN000;MS. ES:DI points to destination
call Scan_Execname ;AN007;MS. parse execname
; ds:si->name, cx=name length
push CX ;AN007;;MS. save for fake version
push SI ;AN007;;MS. save for fake version
MoveName: ;AN000;
lodsb ;AN000;;MS. get char
cmp AL,'.' ;AN000;;MS. is '.' ,may be name.exe
jz Mem_Done ;AN000;;MS. no, move to header
;AN000;
stosb ;AN000;;MS. move char
; MSKK bug fix - limit length copied
cmp di,16 ; end of memory arena block?
jae mem_done ; jump if so
loop movename ;AN000;;MS. continue
Mem_Done: ;AN000;
xor AL,AL ;AN000;;MS. make ASCIIZ
cmp DI,SIZE ARENA ;AN000;MS. if not all filled
jae Fill8 ;AN000;MS.
stosb ;AN000;MS.
Fill8: ;AN000;
pop SI ;AN007;MS. ds:si -> file name
pop CX ;AN007;MS.
call Scan_Special_Entries ;AN007;MS.
push DX
mov SI,exec_size
add SI,DX
Invoke $Dup_PDB ; ES is now PDB
pop DX
push exec_environ
pop ES:[PDB_environ]
; *** Added for DOS 5.00
; version number in PSP
push [Special_Version] ; Set the DOS version number to
pop ES:[PDB_Version] ; to be used for this application
; set up proper command line stuff
lds SI,Exec_Blk ; get the block
push DS ; save its location
push SI
lds SI,[SI.EXEC0_5C_FCB] ; get the 5c fcb
; DS points to user space 5C FCB
mov CX,12 ; copy drive, name and ext
push CX
mov DI,5Ch
mov BL,[SI]
rep movsb
; DI = 5Ch + 12 = 5Ch + 0Ch = 68h
xor AX,AX ; zero extent, etc for CPM
stosw
stosw
; DI = 5Ch + 12 + 4 = 5Ch + 10h = 6Ch
pop CX
pop SI ; get block
pop DS
push DS ; save (again)
push SI
lds SI,[SI.exec0_6C_FCB] ; get 6C FCB
; DS points to user space 6C FCB
mov BH,[SI] ; do same as above
rep movsb
stosw
stosw
pop SI ; get block (last time)
pop DS
lds SI,[SI.exec0_com_line] ; command line
; DS points to user space 80 command line
or CL,80h
mov DI,CX
rep movsb ; Wham!
; Process BX into default AX (validity of drive specs on args).
; We no longer care about DS:SI.
dec CL ; get 0FFh in CL
mov AL,BH
xor BH,BH
invoke GetVisDrv
jnc Exec_BL
mov BH,CL
Exec_BL:
mov AL,BL
xor BL,BL
invoke GetVisDrv
jnc exec_Set_Return
mov BL,CL
Exec_Set_Return:
invoke get_user_stack ; get his return address
push [SI.user_CS] ; suck out the CS and IP
push [SI.user_IP]
push [SI.user_CS] ; suck out the CS and IP
push [SI.user_IP]
pop WORD PTR ES:[PDB_Exit]
pop WORD PTR ES:[PDB_Exit+2]
xor AX,AX
mov DS,AX
; save them where we can get them
; later when the child exits.
pop DS:[ADDR_INT_TERMINATE]
pop DS:[ADDR_INT_TERMINATE+2]
mov WORD PTR DMAADD,80h ; SS Override
mov DS,CurrentPDB ; SS Override
mov WORD PTR DMAADD+2,DS ; SS Override
test BYTE PTR exec_func,exec_func_no_execute
jz exec_go
lds SI,DWORD PTR Exec_Init_SP ; get stack SS Override
les DI,Exec_Blk ; and block for return
mov ES:[DI].EXEC1_SS,DS ; return SS
dec SI ; 'push' default AX
dec SI
mov [SI],BX ; save default AX reg
mov ES:[DI].Exec1_SP,SI ; return 'SP'
lds AX,DWORD PTR Exec_Init_IP ; SS Override
mov ES:[DI].Exec1_CS,DS ; initial entry stuff
mov ES:[DI].Exec1_IP,AX
leave
transfer Sys_Ret_OK
exec_go:
lds SI,DWORD PTR Exec_Init_IP ; get entry point SS Override
les DI,DWORD PTR Exec_Init_SP ; new stack SS Override
mov AX,ES
cmp [DosHasHMA], 0 ; Q: is dos in HMA (M021)
je Xfer_To_User ; N: transfer control to user
push ds ; Y: control must go to low mem stub
getdseg <ds> ; where we disable a20 and Xfer
; control to user
or [DOS_FLAG], EXECA20OFF ; M068:
; M004: Set bit to signal int 21
; ah = 25 & ah= 49. See dossym.inc
; under TAG M003 & M009 for
; explanation
mov [A20OFF_PSP], dx ; M068: set the PSP for which A20 is
; M068: going to be turned OFF.
mov ax, ds ; ax = segment of low mem stub
pop ds
assume ds:nothing
push ax ; ret far into the low mem stub
mov ax, OFFSET Disa20_Xfer
push ax
mov AX,ES ; restore ax
retf
Xfer_To_User:
; DS:SI points to entry point
; AX:DI points to initial stack
; DX has PDB pointer
; BX has initial AX value
cli
mov BYTE PTR InDos,0 ; SS Override
ASSUME SS:NOTHING
mov SS,AX ; set up user's stack
mov SP,DI ; and SP
sti
push DS ; fake long call to entry
push SI
mov ES,DX ; set up proper seg registers
mov DS,DX
mov AX,BX ; set up proper AX
retf
EndProc $Exec
; =========================================================================
;
; =========================================================================
Procedure ExecRead,NEAR
CALL exec_dealloc
MOV bx,exec_fh
PUSH BP
invoke $READ
POP BP
CALL exec_alloc
return
EndProc ExecRead
; =========================================================================
;
; =========================================================================
procedure exec_dealloc,near
push BX
.errnz arena_owner_system
sub BX,BX ; (bx) = ARENA_OWNER_SYSTEM
EnterCrit CritMEM
call ChangeOwners
pop BX
return
EndProc exec_dealloc
; =========================================================================
;
; =========================================================================
procedure exec_alloc,near
ASSUME SS:DOSDATA
push BX
mov BX,CurrentPDB ; SS Override
call ChangeOwners
LeaveCrit CritMEM
pop BX
return
EndProc exec_alloc
; =========================================================================
;
; =========================================================================
PROCEDURE ChangeOwners,NEAR
pushf
push AX
mov AX,exec_environ
call ChangeOwner
mov AX,exec_load_block
call ChangeOwner
pop AX
popf
return
ENDPROC ChangeOwners
; =========================================================================
;
; =========================================================================
PROCEDURE ChangeOwner,NEAR
or AX,AX ; is area allocated?
retz ; no, do nothing
dec AX
push DS
mov DS,AX
mov DS:[ARENA_OWNER],BX
pop DS
return
EndProc ChangeOwner
; =========================================================================
;
; =========================================================================
Procedure Scan_Execname,near
ASSUME SS:DosData
lds SI,ExecName ; DS:SI points to name
Entry Scan_Execname1 ; M028
Save_Begin: ;
mov CX,SI ; CX= starting addr
Scan0: ;
lodsb ; get char
IFDEF DBCS ; MSKK01 07/14/89
invoke TESTKANJ ; Is Character lead byte of DBCS?
jz @F ; jump if not
lodsb ; skip over DBCS character
jmp short scan0 ; do scan again
@@:
ENDIF
cmp AL,':' ; is ':' , may be A:name
jz save_begin ; yes, save si
cmp AL,'\' ; is '\', may be A:\name
jz save_begin ; yes, save si
cmp AL,0 ; is end of name
jnz scan0 ; no, continue scanning
sub SI,CX ; get name's length
xchg SI,CX ; cx= length, si= starting addr
return
EndProc Scan_Execname
; =========================================================================
;
; =========================================================================
Procedure Scan_Special_Entries,near
assume SS:DOSDATA
dec CX ; cx= name length
;M060 mov DI,[Special_Entries] ; es:di -> addr of special entries
;reset to current version
mov [Special_Version],(Minor_Version SHL 8) + Major_Version
;*** call Reset_Version
;M060 push SS
;M060 pop ES
les DI,SS:UU_IFS_DOS_CALL ;M060; ES:DI --> Table in SETVER.SYS
mov AX,ES ;M060; First do a NULL ptr check to
or AX,DI ;M060; be sure the table exists
jz End_List ;M060; If ZR then no table
GetEntries:
mov AL,ES:[DI] ; end of list
or AL,AL
jz End_List ; yes
mov [Temp_Var2],DI ; save di
cmp AL,CL ; same length ?
jnz SkipOne ; no
inc DI ; es:di -> special name
push CX ; save length and name addr
push SI
;
; M050 - BEGIN
;
push ax ; save len
sse_next_char:
lodsb
call UCase
scasb
jne Not_Matched
loop sse_next_char
;
; repz cmpsb ; same name ?
;
; jnz Not_Matched ; no
;
pop ax ; take len off the stack
;
; M050 - END
;
mov AX,ES:[DI] ; get special version
mov [Special_Version],AX ; save it
;*** mov AL,ES:[DI+2] ; get fake count
;*** mov [Fake_Count],AL ; save it
pop SI
pop CX
jmp SHORT end_list
Not_Matched:
pop ax ; get len from stack ; M050
pop SI ; restore si,cx
pop CX
SkipOne:
mov DI,[Temp_Var2] ; restore old di use SS Override
xor AH,AH ; position to next entry
add DI,AX
add DI,3 ; DI -> next entry length
;*** add DI,4 ; DI -> next entry length
jmp Getentries
End_List:
return
EndProc Scan_Special_Entries
; =========================================================================
;
; =========================================================================
;
;Procedure Reset_Version,near
; assume SS:DOSDATA
;
; cmp [Fake_Count],0ffh
; jnz @F
; mov [Special_Version],0 ;reset to current version
;@@:
; return
;
;EndProc Reset_Version,near
PAGE
; =========================================================================
;SUBTTL Terminate and stay resident handler
;
; Input: DX is an offset from CurrentPDB at which to
; truncate the current block.
;
; output: The current block is truncated (expanded) to be [DX+15]/16
; paragraphs long. An exit is simulated via resetting CurrentPDB
; and restoring the vectors.
;
; =========================================================================
PROCEDURE $Keep_process ,NEAR
ASSUME DS:NOTHING,ES:NOTHING,SS:DosData
push AX ; keep exit code around
mov BYTE PTR Exit_type,EXIT_KEEP_PROCESS
mov ES,CurrentPDB
cmp DX,6h ; keep enough space around for system
jae Keep_shrink ; info
mov DX,6h
Keep_Shrink:
mov BX,DX
push BX
push ES
invoke $SETBLOCK ; ignore return codes.
pop DS
pop BX
jc keep_done ; failed on modification
mov AX,DS
add AX,BX
mov DS:PDB_block_len,AX ;PBUGBUG
Keep_Done:
pop AX
jmp SHORT exit_inner ; and let abort take care of the rest
EndProc $Keep_process
; =========================================================================
;
; =========================================================================
PROCEDURE Stay_Resident,NEAR
ASSUME DS:NOTHING,ES:NOTHING,SS:NOTHING
mov AX,(Keep_process SHL 8) + 0 ; Lower part is return code;PBUGBUG
add DX,15
rcr DX,1
mov CL,3
shr DX,CL
transfer COMMAND
ENDPROC Stay_resident
PAGE
; =========================================================================
;SUBTTL $EXIT - return to parent process
; Assembler usage:
; MOV AL, code
; MOV AH, Exit
; INT int_command
; Error return:
; None.
;
; =========================================================================
PROCEDURE $Exit ,NEAR
ASSUME DS:NOTHING,ES:NOTHING,SS:DosData
xor AH,AH
xchg AH,BYTE PTR DidCtrlC
or AH,AH
mov BYTE PTR Exit_Type,EXIT_TERMINATE
jz exit_inner
mov BYTE PTR Exit_type,exit_ctrl_c
entry Exit_inner
invoke get_user_stack ;PBUGBUG
ASSUME DS:NOTHING
push CurrentPDB
pop [SI.User_CS] ;PBUGBUG
jmp SHORT Abort_Inner
EndProc $EXIT
BREAK <$ABORT -- Terminate a process>
; =========================================================================
; Inputs:
; user_CS:00 must point to valid program header block
; Function:
; Restore terminate and Cntrl-C addresses, flush buffers and transfer to
; the terminate address
; Returns:
; TO THE TERMINATE ADDRESS
; =========================================================================
PROCEDURE $Abort ,NEAR
ASSUME DS:NOTHING,ES:NOTHING ;PBUGBUG
xor AL,AL
mov exit_type,exit_abort
; abort_inner must have AL set as the exit code! The exit type
; is retrieved from exit_type. Also, the PDB at user_CS needs
; to be correct as the one that is terminating.
PUBLIC Abort_Inner
Abort_Inner:
mov AH,Exit_Type
mov Exit_Code,AX
invoke Get_User_Stack
ASSUME DS:NOTHING
mov DS,[SI.User_CS] ; set up old interrupts ;PBUGBUG
xor AX,AX
mov ES,AX
mov SI,SavExit
mov DI,Addr_Int_Terminate
movsw
movsw
movsw
movsw
movsw
movsw
transfer reset_environment
ENDPROC $ABORT
;==========================================================================
;
; fixexepatch will poin to this is DOS loads low.
;
;=========================================================================
retexepatch proc near
ret
retexepatch endp
; =========================================================================
DOSCODE ENDS
; =========================================================================
END
| 23.520728 | 79 | 0.62572 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.