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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
45b89c0b2606f8fdcdfe9d19166ffa5b61407100 | 148 | asm | Assembly | x64/dll/add.asm | januwA/nasm-scaffold | e3bcd6a33c4d5642838cac0de958b40e1fde685c | [
"MIT"
] | null | null | null | x64/dll/add.asm | januwA/nasm-scaffold | e3bcd6a33c4d5642838cac0de958b40e1fde685c | [
"MIT"
] | null | null | null | x64/dll/add.asm | januwA/nasm-scaffold | e3bcd6a33c4d5642838cac0de958b40e1fde685c | [
"MIT"
] | null | null | null | global dllmain
section .text
dllmain:
mov eax,1
ret
add:
push rbp
mov rbp,rsp
mov rax,rcx
add rax,rdx
mov rsp,rbp
pop rbp
ret | 8.222222 | 14 | 0.648649 |
d23671806052d30d1fb1dae968558ca80352e227 | 9,602 | asm | Assembly | programs/pong.asm | SimonFJ20/jdh-8 | 33fb336858f3253bca3a3e5e7ce2970c402fbbee | [
"MIT"
] | 911 | 2021-06-13T15:11:54.000Z | 2022-03-31T16:43:01.000Z | programs/pong.asm | SimonFJ20/jdh-8 | 33fb336858f3253bca3a3e5e7ce2970c402fbbee | [
"MIT"
] | 33 | 2021-06-13T16:40:47.000Z | 2022-01-31T15:33:17.000Z | programs/pong.asm | SimonFJ20/jdh-8 | 33fb336858f3253bca3a3e5e7ce2970c402fbbee | [
"MIT"
] | 88 | 2021-06-13T17:34:49.000Z | 2022-03-29T14:04:40.000Z | ; ========
; = PONG =
; ========
@include "os/arch.asm"
@include "os/oscall.asm"
@org ADDR_RAM
; sizes
@define PADDLE_HEIGHT 16
@define BALL_SIZE 1
; paddles
@define PLEFT 0
@define PRIGHT 1
; run out of characters after this
@define MAX_SCORE 9
; keyboard port
@define KBPRT 2
jmp [main]
; dirty flags
@define dirty_scores 0x01
@define dirty_BORDER 0x02
@define dirty_PLEFT 0x04
@define dirty_PRIGHT 0x08
; key scancodes
@define SCAN_LU 0x1A
@define SCAN_LD 0x16
@define SCAN_RU 0x52
@define SCAN_RD 0x51
; key flags
@define KEY_LU 0x01
@define KEY_LD 0x02
@define KEY_RU 0x04
@define KEY_RD 0x08
; variables
paddles:
@dd 0x0000
pball:
@dd 0x0000
vball:
@dd 0x0000
scores:
@dd 0x0000
randn:
@db 0x00
dirty:
@dd 0x00
plball:
@dd 0x0000
keys:
@db 0x00
; TEXT
; places random number in z
rand:
push a
lw z, [randn]
mw a, 113
add a, z
sw [randn], a
pop a
ret
; resets the game
; a: last to score
reset:
pusha
; any score > 9? reset scores
lw a, [(scores + 0)]
lw b, [(scores + 1)]
cmp a, MAX_SCORE
mw h, f
cmp b, MAX_SCORE
and f, h
jle [.no_score_reset]
sw [(scores + 0)], 0
sw [(scores + 1)], 0
.no_score_reset:
; reset paddles
@define reset_PADDLE_HEIGHT ((SCREEN_HEIGHT - PADDLE_HEIGHT) / 2)
sw [(paddles + 0)], reset_PADDLE_HEIGHT
sw [(paddles + 1)], reset_PADDLE_HEIGHT
; reset ball
sw [(pball + 0)], ((SCREEN_WIDTH - BALL_SIZE) / 2)
call [rand]
and z, 0x7F
add z, ((SCREEN_HEIGHT - 0x7F) / 2)
sw [(pball + 1)], z
lw a, [(pball + 0)]
lw b, [(pball + 1)]
sw [(plball + 0)], a
sw [(plball + 1)], b
; ball velocity -> towards last to lose
jeq a, PRIGHT, [.neg_x]
sw [(vball + 0)], 1
jmp [.y]
.neg_x:
sw [(vball + 0)], (-1)
.y:
call [rand]
jms z, 0x1, [.neg_y]
sw [(vball + 1)], 1
jmp [.done]
.neg_y:
sw [(vball + 1)], (-1)
.done:
; reset screen
lda a, b, [ADDR_BANK]
lda c, d, [(SCANLINE_WIDTH_BYTES * SCREEN_HEIGHT)]
mw z, 0
call [memset]
sw [dirty], 0xFF
call [draw]
sw [dirty], 0x00
popa
ret
; draws a paddle
; a: which paddle to draw
; b: which byte to draw
draw_paddle:
pusha
mw d, a
mw z, b
; c <- paddle y
lda [paddles]
add16 h, l, a
lw c
; [ab] -> first byte
mw a, 0
mw b, SCANLINE_WIDTH_BYTES
call [mul16_8]
; add paddle offset
jeq d, PRIGHT, [.right]
mw d, (SCANLINE_OFFSET_BYTES + 1)
jmp [.cont]
.right:
mw d, ((SCANLINE_OFFSET_BYTES + SCREEN_WIDTH_BYTES) - 1)
.cont:
add16 a, b, d
; point into video RAM
add16 a, b, ADDR_BANK
; [cd] -> last byte
mw c, a
mw d, b
; add (stride * PADDLE_HEIGHT)
clb
push z
mw z, PADDLE_HEIGHT
.add:
add16 c, d, SCANLINE_WIDTH_BYTES
dec z
jnz z, [.add]
pop z
.loop:
sw a, b, z
add16 a, b, SCANLINE_WIDTH_BYTES
eq16 a, b, c, d
jz f, [.loop]
.done:
popa
ret
; draws the border
draw_border:
pusha
lda a, b, (ADDR_BANK + (SCANLINE_WIDTH_BYTES / 2))
mw c, 0
.loop:
mw z, c
and z, 0x01
jnz z, [.next]
lw d, a, b
or d, 0x80
sw a, b, d
inc16 a, b
lw d, a, b
or d, 0x01
sw a, b, d
dec16 a, b
.next:
add16 a, b, (SCANLINE_WIDTH_BYTES * 3)
add c, 3
jlt c, SCREEN_HEIGHT, [.loop]
.done:
popa
ret
; draws scores
draw_scores:
push a, c, d
mw d, 4
lw a, [(scores + 0)]
add a, '0'
mw c, ((SCREEN_WIDTH_BYTES / 2) - 2)
call [draw_char]
lw a, [(scores + 1)]
add a, '0'
mw c, ((SCREEN_WIDTH_BYTES / 2) + 1)
call [draw_char]
pop d, c, a
ret
; clears scores
clear_scores:
push a, c, d
mw a, ' '
mw d, 4
mw c, ((SCREEN_WIDTH_BYTES / 2) - 2)
call [draw_char]
mw c, ((SCREEN_WIDTH_BYTES / 2) + 1)
call [draw_char]
pop d, c, a
ret
; draws ball
; a: fill (>0) or clear (0)
draw_ball:
pusha
mw z, a
mw c, 0
.loop_c:
mw d, 0
.loop_d:
lw a, [(pball + 0)]
lw b, [(pball + 1)]
add a, c
add b, d
push c
mw c, z
call [set_pixel]
pop c
inc d
jne d, 2, [.loop_d]
inc c
jne c, 2, [.loop_c]
popa
ret
; dirty things according to ball's location
dirty_ball:
push a, b, c
lw a, [(pball + 0)]
lw b, [(pball + 1)]
lw c, [dirty]
; ball in middle? redraw border
jlt a, ((SCREEN_WIDTH / 2) - 2), [.dscores]
jgt a, ((SCREEN_WIDTH / 2) + 2), [.dscores]
or c, dirty_BORDER
.dscores:
jgt b, 16, [.dleft]
or c, dirty_scores
.dleft:
jgt a, 16, [.dright]
or c, dirty_PLEFT
.dright:
jlt a, (SCREEN_WIDTH - 16), [.done]
or c, dirty_PRIGHT
.done:
sw [dirty], c
pop c, b, a
ret
; renders everything which is dirty
draw:
pusha
; clear ball
lw a, [(pball + 0)]
lw b, [(pball + 1)]
lw c, [(plball + 0)]
lw d, [(plball + 1)]
sw [(pball + 0)], c
sw [(pball + 1)], d
push a, b
mw a, 0
call [draw_ball]
pop b, a
sw [(pball + 0)], a
sw [(pball + 1)], b
; draw dirty screen elements
lw c, [dirty]
jmn c, dirty_BORDER, [.dscores]
call [draw_border]
.dscores:
jmn c, dirty_scores, [.dleft]
call [draw_scores]
.dleft:
jmn c, dirty_PLEFT, [.dright]
mw a, PLEFT
mw b, 0xF0
call [draw_paddle]
.dright:
jmn c, dirty_PRIGHT, [.done]
mw a, PRIGHT
mw b, 0x0F
call [draw_paddle]
.done:
sw [dirty], 0
mw a, 1
call [draw_ball]
popa
ret
; updates keys with current keyboard data
check_keys:
push a, b, c
lw c, [keys]
inb a, KBPRT
; b <- pure scancode
mw b, a
and b, 0x7F
; determine key from scancode
.left_up:
jne b, SCAN_LU, [.left_down]
mw b, KEY_LU
jmp [.cont]
.left_down:
jne b, SCAN_LD, [.right_up]
mw b, KEY_LD
jmp [.cont]
.right_up:
jne b, SCAN_RU, [.right_down]
mw b, KEY_RU
jmp [.cont]
.right_down:
jne b, SCAN_RD, [.done]
mw b, KEY_RD
.cont:
jmn a, 0x80, [.down]
; clear bit (key up)
not b
and c, b
jmp [.done]
.down:
; set bit (key down)
or c, b
.done:
sw [keys], c
pop c, b, a
ret
; move a paddle
; a: which paddle
; b: direction (-1 or 1)
move_paddle:
pusha
; z <- ([cd] -> paddle byte)
lda c, d, [paddles]
add16 c, d, a
lw z, c, d
; check that movement is OK
jeq b, 1, [.down]
jeq z, 0, [.done]
jmp [.clear]
.down:
jgt z, (SCREEN_HEIGHT - PADDLE_HEIGHT), [.done]
.clear:
; clear paddle
push b
mw b, 0x00
call [draw_paddle]
pop b
; add and store
add z, b
sw c, d, z
; mark dirty
lw c, [dirty]
jeq a, PRIGHT, [.right]
or c, dirty_PLEFT
jmp [.mark]
.right:
or c, dirty_PRIGHT
.mark:
sw [dirty], c
.done:
popa
ret
; move_ball z flags
@define MB_INV_X 0x01
@define MB_INV_Y 0x02
@define MB_RESET_L 0x04
@define MB_RESET_R 0x08
; moves the ball
; returns z, combination of above flags according to move
move_ball:
push a, b, c, d
mw z, 0
; try movement by velocity
lw a, [(pball + 0)]
lw b, [(pball + 1)]
lw c, [(vball + 0)]
lw d, [(vball + 1)]
sw [(plball + 0)], a
sw [(plball + 1)], b
add a, c
add b, d
.left_paddle:
jgt a, (12 + BALL_SIZE), [.right_paddle]
jlt a, (12 + BALL_SIZE - 4), [.right_paddle]
lw c, [(paddles + 0)]
mw d, c
add d, PADDLE_HEIGHT
jlt b, c, [.right_paddle]
jgt b, d, [.right_paddle]
mw z, MB_INV_X
lw c, [keys]
and c, (KEY_LU | KEY_LD)
jz c, [.left_noinv]
jeq c, KEY_LD, [.left_down]
mw c, (-1)
jmp [.left_check]
.left_down:
mw c, 1
.left_check:
lw d, [(vball + 1)]
jeq c, d, [.left_noinv]
or z, MB_INV_Y
.left_noinv:
jmp [.apply]
.right_paddle:
jlt a, (SCREEN_WIDTH - 8 - BALL_SIZE), [.top_bound]
jgt a, (SCREEN_WIDTH - 8 - BALL_SIZE + 4), [.top_bound]
lw c, [(paddles + 1)]
mw d, c
add d, PADDLE_HEIGHT
jlt b, c, [.top_bound]
jgt b, d, [.top_bound]
mw z, MB_INV_X
lw c, [keys]
and c, (KEY_RU | KEY_RD)
jz c, [.right_noinv]
jeq c, KEY_RD, [.right_down]
mw c, (-1)
jmp [.right_check]
.right_down:
mw c, 1
.right_check:
lw d, [(vball + 1)]
jeq c, d, [.right_noinv]
or z, MB_INV_Y
.right_noinv:
jmp [.apply]
.top_bound:
jne b, 0, [.bottom_bound]
mw z, MB_INV_Y
jmp [.apply]
.bottom_bound:
jne b, (SCREEN_HEIGHT - BALL_SIZE), [.left_bound]
mw z, MB_INV_Y
jmp [.apply]
.left_bound:
jne a, 0, [.right_bound]
lw a, [(scores + 1)]
inc a
sw [(scores + 1)], a
mw z, MB_RESET_L
jmp [.apply]
.right_bound:
jne a, (SCREEN_WIDTH - BALL_SIZE), [.apply]
lw a, [(scores + 0)]
inc a
sw [(scores + 0)], a
mw z, MB_RESET_R
.apply:
jz z, [.store]
mw f, z
and f, (MB_RESET_L | MB_RESET_R)
jz f, [.invert]
jeq z, MB_RESET_R, [.right_score]
mw a, PLEFT
jmp [.do_reset]
.right_score:
mw a, PRIGHT
.do_reset:
call [reset]
jmp [.done]
.invert:
; invert according to z
jmn z, MB_INV_X, [.invert_y]
lw a, [(vball + 0)]
mw b, 0
sub b, a
sw [(vball + 0)], b
.invert_y:
jmn z, MB_INV_Y, [.done]
lw a, [(vball + 1)]
mw b, 0
sub b, a
sw [(vball + 1)], b
jmp [.done]
.store:
sw [(pball + 0)], a
sw [(pball + 1)], b
.done:
pop d, c, b, a
ret
main:
; memory bank -> screen
sw [ADDR_MB], 1
; seed random number generator
sw [randn], 13
call [reset]
mw z, 0
.loop:
call [check_keys]
; busy-wait, expects 1 MHz clock
mw c, 16
call [mul16_8]
inc z
jne z, 255, [.loop]
mw z, 0
; paddle movement
lw c, [keys]
.move_lu:
mw a, PLEFT
jmn c, KEY_LU, [.move_ld]
mw b, (-1)
call [move_paddle]
.move_ld:
jmn c, KEY_LD, [.move_ru]
mw b, 1
call [move_paddle]
.move_ru:
mw a, PRIGHT
jmn c, KEY_RU, [.move_rd]
mw b, (-1)
call [move_paddle]
.move_rd:
jmn c, KEY_RD, [.move_done]
mw b, 1
call [move_paddle]
.move_done:
; update
call [move_ball]
; loop again, do not render, if there was a reset
jms z, (MB_RESET_L | MB_RESET_R), [.loop]
; render
call [dirty_ball]
call [draw]
jmp [.loop]
ret
| 15.976705 | 65 | 0.59373 |
c14f51014e2e2e6ac84043245d2704e741564d97 | 51,931 | asm | Assembly | zombie.asm | tphan022/CS153assn2_p1 | 55210e54ba0d62a989fcfdbb897827eab955fa1e | [
"MIT-0"
] | null | null | null | zombie.asm | tphan022/CS153assn2_p1 | 55210e54ba0d62a989fcfdbb897827eab955fa1e | [
"MIT-0"
] | null | null | null | zombie.asm | tphan022/CS153assn2_p1 | 55210e54ba0d62a989fcfdbb897827eab955fa1e | [
"MIT-0"
] | null | null | null |
_zombie: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
#include "stat.h"
#include "user.h"
int
main(void)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 e4 f0 and $0xfffffff0,%esp
6: 83 ec 10 sub $0x10,%esp
if(fork() > 0)
9: e8 72 02 00 00 call 280 <fork>
e: 85 c0 test %eax,%eax
10: 7e 0c jle 1e <main+0x1e>
sleep(5); // Let child exit before parent.
12: c7 04 24 05 00 00 00 movl $0x5,(%esp)
19: e8 fa 02 00 00 call 318 <sleep>
exit();
1e: e8 65 02 00 00 call 288 <exit>
23: 90 nop
00000024 <stosb>:
"cc");
}
static inline void
stosb(void *addr, int data, int cnt)
{
24: 55 push %ebp
25: 89 e5 mov %esp,%ebp
27: 57 push %edi
28: 53 push %ebx
asm volatile("cld; rep stosb" :
29: 8b 4d 08 mov 0x8(%ebp),%ecx
2c: 8b 55 10 mov 0x10(%ebp),%edx
2f: 8b 45 0c mov 0xc(%ebp),%eax
32: 89 cb mov %ecx,%ebx
34: 89 df mov %ebx,%edi
36: 89 d1 mov %edx,%ecx
38: fc cld
39: f3 aa rep stos %al,%es:(%edi)
3b: 89 ca mov %ecx,%edx
3d: 89 fb mov %edi,%ebx
3f: 89 5d 08 mov %ebx,0x8(%ebp)
42: 89 55 10 mov %edx,0x10(%ebp)
"=D" (addr), "=c" (cnt) :
"0" (addr), "1" (cnt), "a" (data) :
"memory", "cc");
}
45: 5b pop %ebx
46: 5f pop %edi
47: 5d pop %ebp
48: c3 ret
00000049 <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, char *t)
{
49: 55 push %ebp
4a: 89 e5 mov %esp,%ebp
4c: 83 ec 10 sub $0x10,%esp
char *os;
os = s;
4f: 8b 45 08 mov 0x8(%ebp),%eax
52: 89 45 fc mov %eax,-0x4(%ebp)
while((*s++ = *t++) != 0)
55: 8b 45 0c mov 0xc(%ebp),%eax
58: 0f b6 10 movzbl (%eax),%edx
5b: 8b 45 08 mov 0x8(%ebp),%eax
5e: 88 10 mov %dl,(%eax)
60: 8b 45 08 mov 0x8(%ebp),%eax
63: 0f b6 00 movzbl (%eax),%eax
66: 84 c0 test %al,%al
68: 0f 95 c0 setne %al
6b: 83 45 08 01 addl $0x1,0x8(%ebp)
6f: 83 45 0c 01 addl $0x1,0xc(%ebp)
73: 84 c0 test %al,%al
75: 75 de jne 55 <strcpy+0xc>
;
return os;
77: 8b 45 fc mov -0x4(%ebp),%eax
}
7a: c9 leave
7b: c3 ret
0000007c <strcmp>:
int
strcmp(const char *p, const char *q)
{
7c: 55 push %ebp
7d: 89 e5 mov %esp,%ebp
while(*p && *p == *q)
7f: eb 08 jmp 89 <strcmp+0xd>
p++, q++;
81: 83 45 08 01 addl $0x1,0x8(%ebp)
85: 83 45 0c 01 addl $0x1,0xc(%ebp)
}
int
strcmp(const char *p, const char *q)
{
while(*p && *p == *q)
89: 8b 45 08 mov 0x8(%ebp),%eax
8c: 0f b6 00 movzbl (%eax),%eax
8f: 84 c0 test %al,%al
91: 74 10 je a3 <strcmp+0x27>
93: 8b 45 08 mov 0x8(%ebp),%eax
96: 0f b6 10 movzbl (%eax),%edx
99: 8b 45 0c mov 0xc(%ebp),%eax
9c: 0f b6 00 movzbl (%eax),%eax
9f: 38 c2 cmp %al,%dl
a1: 74 de je 81 <strcmp+0x5>
p++, q++;
return (uchar)*p - (uchar)*q;
a3: 8b 45 08 mov 0x8(%ebp),%eax
a6: 0f b6 00 movzbl (%eax),%eax
a9: 0f b6 d0 movzbl %al,%edx
ac: 8b 45 0c mov 0xc(%ebp),%eax
af: 0f b6 00 movzbl (%eax),%eax
b2: 0f b6 c0 movzbl %al,%eax
b5: 89 d1 mov %edx,%ecx
b7: 29 c1 sub %eax,%ecx
b9: 89 c8 mov %ecx,%eax
}
bb: 5d pop %ebp
bc: c3 ret
000000bd <strlen>:
uint
strlen(char *s)
{
bd: 55 push %ebp
be: 89 e5 mov %esp,%ebp
c0: 83 ec 10 sub $0x10,%esp
int n;
for(n = 0; s[n]; n++)
c3: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
ca: eb 04 jmp d0 <strlen+0x13>
cc: 83 45 fc 01 addl $0x1,-0x4(%ebp)
d0: 8b 45 fc mov -0x4(%ebp),%eax
d3: 03 45 08 add 0x8(%ebp),%eax
d6: 0f b6 00 movzbl (%eax),%eax
d9: 84 c0 test %al,%al
db: 75 ef jne cc <strlen+0xf>
;
return n;
dd: 8b 45 fc mov -0x4(%ebp),%eax
}
e0: c9 leave
e1: c3 ret
000000e2 <memset>:
void*
memset(void *dst, int c, uint n)
{
e2: 55 push %ebp
e3: 89 e5 mov %esp,%ebp
e5: 83 ec 0c sub $0xc,%esp
stosb(dst, c, n);
e8: 8b 45 10 mov 0x10(%ebp),%eax
eb: 89 44 24 08 mov %eax,0x8(%esp)
ef: 8b 45 0c mov 0xc(%ebp),%eax
f2: 89 44 24 04 mov %eax,0x4(%esp)
f6: 8b 45 08 mov 0x8(%ebp),%eax
f9: 89 04 24 mov %eax,(%esp)
fc: e8 23 ff ff ff call 24 <stosb>
return dst;
101: 8b 45 08 mov 0x8(%ebp),%eax
}
104: c9 leave
105: c3 ret
00000106 <strchr>:
char*
strchr(const char *s, char c)
{
106: 55 push %ebp
107: 89 e5 mov %esp,%ebp
109: 83 ec 04 sub $0x4,%esp
10c: 8b 45 0c mov 0xc(%ebp),%eax
10f: 88 45 fc mov %al,-0x4(%ebp)
for(; *s; s++)
112: eb 14 jmp 128 <strchr+0x22>
if(*s == c)
114: 8b 45 08 mov 0x8(%ebp),%eax
117: 0f b6 00 movzbl (%eax),%eax
11a: 3a 45 fc cmp -0x4(%ebp),%al
11d: 75 05 jne 124 <strchr+0x1e>
return (char*)s;
11f: 8b 45 08 mov 0x8(%ebp),%eax
122: eb 13 jmp 137 <strchr+0x31>
}
char*
strchr(const char *s, char c)
{
for(; *s; s++)
124: 83 45 08 01 addl $0x1,0x8(%ebp)
128: 8b 45 08 mov 0x8(%ebp),%eax
12b: 0f b6 00 movzbl (%eax),%eax
12e: 84 c0 test %al,%al
130: 75 e2 jne 114 <strchr+0xe>
if(*s == c)
return (char*)s;
return 0;
132: b8 00 00 00 00 mov $0x0,%eax
}
137: c9 leave
138: c3 ret
00000139 <gets>:
char*
gets(char *buf, int max)
{
139: 55 push %ebp
13a: 89 e5 mov %esp,%ebp
13c: 83 ec 28 sub $0x28,%esp
int i, cc;
char c;
for(i=0; i+1 < max; ){
13f: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
146: eb 44 jmp 18c <gets+0x53>
cc = read(0, &c, 1);
148: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
14f: 00
150: 8d 45 ef lea -0x11(%ebp),%eax
153: 89 44 24 04 mov %eax,0x4(%esp)
157: c7 04 24 00 00 00 00 movl $0x0,(%esp)
15e: e8 3d 01 00 00 call 2a0 <read>
163: 89 45 f4 mov %eax,-0xc(%ebp)
if(cc < 1)
166: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
16a: 7e 2d jle 199 <gets+0x60>
break;
buf[i++] = c;
16c: 8b 45 f0 mov -0x10(%ebp),%eax
16f: 03 45 08 add 0x8(%ebp),%eax
172: 0f b6 55 ef movzbl -0x11(%ebp),%edx
176: 88 10 mov %dl,(%eax)
178: 83 45 f0 01 addl $0x1,-0x10(%ebp)
if(c == '\n' || c == '\r')
17c: 0f b6 45 ef movzbl -0x11(%ebp),%eax
180: 3c 0a cmp $0xa,%al
182: 74 16 je 19a <gets+0x61>
184: 0f b6 45 ef movzbl -0x11(%ebp),%eax
188: 3c 0d cmp $0xd,%al
18a: 74 0e je 19a <gets+0x61>
gets(char *buf, int max)
{
int i, cc;
char c;
for(i=0; i+1 < max; ){
18c: 8b 45 f0 mov -0x10(%ebp),%eax
18f: 83 c0 01 add $0x1,%eax
192: 3b 45 0c cmp 0xc(%ebp),%eax
195: 7c b1 jl 148 <gets+0xf>
197: eb 01 jmp 19a <gets+0x61>
cc = read(0, &c, 1);
if(cc < 1)
break;
199: 90 nop
buf[i++] = c;
if(c == '\n' || c == '\r')
break;
}
buf[i] = '\0';
19a: 8b 45 f0 mov -0x10(%ebp),%eax
19d: 03 45 08 add 0x8(%ebp),%eax
1a0: c6 00 00 movb $0x0,(%eax)
return buf;
1a3: 8b 45 08 mov 0x8(%ebp),%eax
}
1a6: c9 leave
1a7: c3 ret
000001a8 <stat>:
int
stat(char *n, struct stat *st)
{
1a8: 55 push %ebp
1a9: 89 e5 mov %esp,%ebp
1ab: 83 ec 28 sub $0x28,%esp
int fd;
int r;
fd = open(n, O_RDONLY);
1ae: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
1b5: 00
1b6: 8b 45 08 mov 0x8(%ebp),%eax
1b9: 89 04 24 mov %eax,(%esp)
1bc: e8 07 01 00 00 call 2c8 <open>
1c1: 89 45 f0 mov %eax,-0x10(%ebp)
if(fd < 0)
1c4: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
1c8: 79 07 jns 1d1 <stat+0x29>
return -1;
1ca: b8 ff ff ff ff mov $0xffffffff,%eax
1cf: eb 23 jmp 1f4 <stat+0x4c>
r = fstat(fd, st);
1d1: 8b 45 0c mov 0xc(%ebp),%eax
1d4: 89 44 24 04 mov %eax,0x4(%esp)
1d8: 8b 45 f0 mov -0x10(%ebp),%eax
1db: 89 04 24 mov %eax,(%esp)
1de: e8 fd 00 00 00 call 2e0 <fstat>
1e3: 89 45 f4 mov %eax,-0xc(%ebp)
close(fd);
1e6: 8b 45 f0 mov -0x10(%ebp),%eax
1e9: 89 04 24 mov %eax,(%esp)
1ec: e8 bf 00 00 00 call 2b0 <close>
return r;
1f1: 8b 45 f4 mov -0xc(%ebp),%eax
}
1f4: c9 leave
1f5: c3 ret
000001f6 <atoi>:
int
atoi(const char *s)
{
1f6: 55 push %ebp
1f7: 89 e5 mov %esp,%ebp
1f9: 83 ec 10 sub $0x10,%esp
int n;
n = 0;
1fc: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
while('0' <= *s && *s <= '9')
203: eb 24 jmp 229 <atoi+0x33>
n = n*10 + *s++ - '0';
205: 8b 55 fc mov -0x4(%ebp),%edx
208: 89 d0 mov %edx,%eax
20a: c1 e0 02 shl $0x2,%eax
20d: 01 d0 add %edx,%eax
20f: 01 c0 add %eax,%eax
211: 89 c2 mov %eax,%edx
213: 8b 45 08 mov 0x8(%ebp),%eax
216: 0f b6 00 movzbl (%eax),%eax
219: 0f be c0 movsbl %al,%eax
21c: 8d 04 02 lea (%edx,%eax,1),%eax
21f: 83 e8 30 sub $0x30,%eax
222: 89 45 fc mov %eax,-0x4(%ebp)
225: 83 45 08 01 addl $0x1,0x8(%ebp)
atoi(const char *s)
{
int n;
n = 0;
while('0' <= *s && *s <= '9')
229: 8b 45 08 mov 0x8(%ebp),%eax
22c: 0f b6 00 movzbl (%eax),%eax
22f: 3c 2f cmp $0x2f,%al
231: 7e 0a jle 23d <atoi+0x47>
233: 8b 45 08 mov 0x8(%ebp),%eax
236: 0f b6 00 movzbl (%eax),%eax
239: 3c 39 cmp $0x39,%al
23b: 7e c8 jle 205 <atoi+0xf>
n = n*10 + *s++ - '0';
return n;
23d: 8b 45 fc mov -0x4(%ebp),%eax
}
240: c9 leave
241: c3 ret
00000242 <memmove>:
void*
memmove(void *vdst, void *vsrc, int n)
{
242: 55 push %ebp
243: 89 e5 mov %esp,%ebp
245: 83 ec 10 sub $0x10,%esp
char *dst, *src;
dst = vdst;
248: 8b 45 08 mov 0x8(%ebp),%eax
24b: 89 45 f8 mov %eax,-0x8(%ebp)
src = vsrc;
24e: 8b 45 0c mov 0xc(%ebp),%eax
251: 89 45 fc mov %eax,-0x4(%ebp)
while(n-- > 0)
254: eb 13 jmp 269 <memmove+0x27>
*dst++ = *src++;
256: 8b 45 fc mov -0x4(%ebp),%eax
259: 0f b6 10 movzbl (%eax),%edx
25c: 8b 45 f8 mov -0x8(%ebp),%eax
25f: 88 10 mov %dl,(%eax)
261: 83 45 f8 01 addl $0x1,-0x8(%ebp)
265: 83 45 fc 01 addl $0x1,-0x4(%ebp)
{
char *dst, *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
269: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
26d: 0f 9f c0 setg %al
270: 83 6d 10 01 subl $0x1,0x10(%ebp)
274: 84 c0 test %al,%al
276: 75 de jne 256 <memmove+0x14>
*dst++ = *src++;
return vdst;
278: 8b 45 08 mov 0x8(%ebp),%eax
}
27b: c9 leave
27c: c3 ret
27d: 90 nop
27e: 90 nop
27f: 90 nop
00000280 <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
280: b8 01 00 00 00 mov $0x1,%eax
285: cd 40 int $0x40
287: c3 ret
00000288 <exit>:
SYSCALL(exit)
288: b8 02 00 00 00 mov $0x2,%eax
28d: cd 40 int $0x40
28f: c3 ret
00000290 <wait>:
SYSCALL(wait)
290: b8 03 00 00 00 mov $0x3,%eax
295: cd 40 int $0x40
297: c3 ret
00000298 <pipe>:
SYSCALL(pipe)
298: b8 04 00 00 00 mov $0x4,%eax
29d: cd 40 int $0x40
29f: c3 ret
000002a0 <read>:
SYSCALL(read)
2a0: b8 05 00 00 00 mov $0x5,%eax
2a5: cd 40 int $0x40
2a7: c3 ret
000002a8 <write>:
SYSCALL(write)
2a8: b8 10 00 00 00 mov $0x10,%eax
2ad: cd 40 int $0x40
2af: c3 ret
000002b0 <close>:
SYSCALL(close)
2b0: b8 15 00 00 00 mov $0x15,%eax
2b5: cd 40 int $0x40
2b7: c3 ret
000002b8 <kill>:
SYSCALL(kill)
2b8: b8 06 00 00 00 mov $0x6,%eax
2bd: cd 40 int $0x40
2bf: c3 ret
000002c0 <exec>:
SYSCALL(exec)
2c0: b8 07 00 00 00 mov $0x7,%eax
2c5: cd 40 int $0x40
2c7: c3 ret
000002c8 <open>:
SYSCALL(open)
2c8: b8 0f 00 00 00 mov $0xf,%eax
2cd: cd 40 int $0x40
2cf: c3 ret
000002d0 <mknod>:
SYSCALL(mknod)
2d0: b8 11 00 00 00 mov $0x11,%eax
2d5: cd 40 int $0x40
2d7: c3 ret
000002d8 <unlink>:
SYSCALL(unlink)
2d8: b8 12 00 00 00 mov $0x12,%eax
2dd: cd 40 int $0x40
2df: c3 ret
000002e0 <fstat>:
SYSCALL(fstat)
2e0: b8 08 00 00 00 mov $0x8,%eax
2e5: cd 40 int $0x40
2e7: c3 ret
000002e8 <link>:
SYSCALL(link)
2e8: b8 13 00 00 00 mov $0x13,%eax
2ed: cd 40 int $0x40
2ef: c3 ret
000002f0 <mkdir>:
SYSCALL(mkdir)
2f0: b8 14 00 00 00 mov $0x14,%eax
2f5: cd 40 int $0x40
2f7: c3 ret
000002f8 <chdir>:
SYSCALL(chdir)
2f8: b8 09 00 00 00 mov $0x9,%eax
2fd: cd 40 int $0x40
2ff: c3 ret
00000300 <dup>:
SYSCALL(dup)
300: b8 0a 00 00 00 mov $0xa,%eax
305: cd 40 int $0x40
307: c3 ret
00000308 <getpid>:
SYSCALL(getpid)
308: b8 0b 00 00 00 mov $0xb,%eax
30d: cd 40 int $0x40
30f: c3 ret
00000310 <sbrk>:
SYSCALL(sbrk)
310: b8 0c 00 00 00 mov $0xc,%eax
315: cd 40 int $0x40
317: c3 ret
00000318 <sleep>:
SYSCALL(sleep)
318: b8 0d 00 00 00 mov $0xd,%eax
31d: cd 40 int $0x40
31f: c3 ret
00000320 <uptime>:
SYSCALL(uptime)
320: b8 0e 00 00 00 mov $0xe,%eax
325: cd 40 int $0x40
327: c3 ret
00000328 <clone>:
SYSCALL(clone)
328: b8 16 00 00 00 mov $0x16,%eax
32d: cd 40 int $0x40
32f: c3 ret
00000330 <texit>:
SYSCALL(texit)
330: b8 17 00 00 00 mov $0x17,%eax
335: cd 40 int $0x40
337: c3 ret
00000338 <tsleep>:
SYSCALL(tsleep)
338: b8 18 00 00 00 mov $0x18,%eax
33d: cd 40 int $0x40
33f: c3 ret
00000340 <twakeup>:
SYSCALL(twakeup)
340: b8 19 00 00 00 mov $0x19,%eax
345: cd 40 int $0x40
347: c3 ret
00000348 <putc>:
#include "stat.h"
#include "user.h"
static void
putc(int fd, char c)
{
348: 55 push %ebp
349: 89 e5 mov %esp,%ebp
34b: 83 ec 28 sub $0x28,%esp
34e: 8b 45 0c mov 0xc(%ebp),%eax
351: 88 45 f4 mov %al,-0xc(%ebp)
write(fd, &c, 1);
354: c7 44 24 08 01 00 00 movl $0x1,0x8(%esp)
35b: 00
35c: 8d 45 f4 lea -0xc(%ebp),%eax
35f: 89 44 24 04 mov %eax,0x4(%esp)
363: 8b 45 08 mov 0x8(%ebp),%eax
366: 89 04 24 mov %eax,(%esp)
369: e8 3a ff ff ff call 2a8 <write>
}
36e: c9 leave
36f: c3 ret
00000370 <printint>:
static void
printint(int fd, int xx, int base, int sgn)
{
370: 55 push %ebp
371: 89 e5 mov %esp,%ebp
373: 53 push %ebx
374: 83 ec 44 sub $0x44,%esp
static char digits[] = "0123456789ABCDEF";
char buf[16];
int i, neg;
uint x;
neg = 0;
377: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
if(sgn && xx < 0){
37e: 83 7d 14 00 cmpl $0x0,0x14(%ebp)
382: 74 17 je 39b <printint+0x2b>
384: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
388: 79 11 jns 39b <printint+0x2b>
neg = 1;
38a: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp)
x = -xx;
391: 8b 45 0c mov 0xc(%ebp),%eax
394: f7 d8 neg %eax
396: 89 45 f4 mov %eax,-0xc(%ebp)
char buf[16];
int i, neg;
uint x;
neg = 0;
if(sgn && xx < 0){
399: eb 06 jmp 3a1 <printint+0x31>
neg = 1;
x = -xx;
} else {
x = xx;
39b: 8b 45 0c mov 0xc(%ebp),%eax
39e: 89 45 f4 mov %eax,-0xc(%ebp)
}
i = 0;
3a1: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
do{
buf[i++] = digits[x % base];
3a8: 8b 4d ec mov -0x14(%ebp),%ecx
3ab: 8b 5d 10 mov 0x10(%ebp),%ebx
3ae: 8b 45 f4 mov -0xc(%ebp),%eax
3b1: ba 00 00 00 00 mov $0x0,%edx
3b6: f7 f3 div %ebx
3b8: 89 d0 mov %edx,%eax
3ba: 0f b6 80 8c 0a 00 00 movzbl 0xa8c(%eax),%eax
3c1: 88 44 0d dc mov %al,-0x24(%ebp,%ecx,1)
3c5: 83 45 ec 01 addl $0x1,-0x14(%ebp)
}while((x /= base) != 0);
3c9: 8b 45 10 mov 0x10(%ebp),%eax
3cc: 89 45 d4 mov %eax,-0x2c(%ebp)
3cf: 8b 45 f4 mov -0xc(%ebp),%eax
3d2: ba 00 00 00 00 mov $0x0,%edx
3d7: f7 75 d4 divl -0x2c(%ebp)
3da: 89 45 f4 mov %eax,-0xc(%ebp)
3dd: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
3e1: 75 c5 jne 3a8 <printint+0x38>
if(neg)
3e3: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
3e7: 74 28 je 411 <printint+0xa1>
buf[i++] = '-';
3e9: 8b 45 ec mov -0x14(%ebp),%eax
3ec: c6 44 05 dc 2d movb $0x2d,-0x24(%ebp,%eax,1)
3f1: 83 45 ec 01 addl $0x1,-0x14(%ebp)
while(--i >= 0)
3f5: eb 1a jmp 411 <printint+0xa1>
putc(fd, buf[i]);
3f7: 8b 45 ec mov -0x14(%ebp),%eax
3fa: 0f b6 44 05 dc movzbl -0x24(%ebp,%eax,1),%eax
3ff: 0f be c0 movsbl %al,%eax
402: 89 44 24 04 mov %eax,0x4(%esp)
406: 8b 45 08 mov 0x8(%ebp),%eax
409: 89 04 24 mov %eax,(%esp)
40c: e8 37 ff ff ff call 348 <putc>
buf[i++] = digits[x % base];
}while((x /= base) != 0);
if(neg)
buf[i++] = '-';
while(--i >= 0)
411: 83 6d ec 01 subl $0x1,-0x14(%ebp)
415: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
419: 79 dc jns 3f7 <printint+0x87>
putc(fd, buf[i]);
}
41b: 83 c4 44 add $0x44,%esp
41e: 5b pop %ebx
41f: 5d pop %ebp
420: c3 ret
00000421 <printf>:
// Print to the given fd. Only understands %d, %x, %p, %s.
void
printf(int fd, char *fmt, ...)
{
421: 55 push %ebp
422: 89 e5 mov %esp,%ebp
424: 83 ec 38 sub $0x38,%esp
char *s;
int c, i, state;
uint *ap;
state = 0;
427: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
ap = (uint*)(void*)&fmt + 1;
42e: 8d 45 0c lea 0xc(%ebp),%eax
431: 83 c0 04 add $0x4,%eax
434: 89 45 f4 mov %eax,-0xc(%ebp)
for(i = 0; fmt[i]; i++){
437: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp)
43e: e9 7e 01 00 00 jmp 5c1 <printf+0x1a0>
c = fmt[i] & 0xff;
443: 8b 55 0c mov 0xc(%ebp),%edx
446: 8b 45 ec mov -0x14(%ebp),%eax
449: 8d 04 02 lea (%edx,%eax,1),%eax
44c: 0f b6 00 movzbl (%eax),%eax
44f: 0f be c0 movsbl %al,%eax
452: 25 ff 00 00 00 and $0xff,%eax
457: 89 45 e8 mov %eax,-0x18(%ebp)
if(state == 0){
45a: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
45e: 75 2c jne 48c <printf+0x6b>
if(c == '%'){
460: 83 7d e8 25 cmpl $0x25,-0x18(%ebp)
464: 75 0c jne 472 <printf+0x51>
state = '%';
466: c7 45 f0 25 00 00 00 movl $0x25,-0x10(%ebp)
46d: e9 4b 01 00 00 jmp 5bd <printf+0x19c>
} else {
putc(fd, c);
472: 8b 45 e8 mov -0x18(%ebp),%eax
475: 0f be c0 movsbl %al,%eax
478: 89 44 24 04 mov %eax,0x4(%esp)
47c: 8b 45 08 mov 0x8(%ebp),%eax
47f: 89 04 24 mov %eax,(%esp)
482: e8 c1 fe ff ff call 348 <putc>
487: e9 31 01 00 00 jmp 5bd <printf+0x19c>
}
} else if(state == '%'){
48c: 83 7d f0 25 cmpl $0x25,-0x10(%ebp)
490: 0f 85 27 01 00 00 jne 5bd <printf+0x19c>
if(c == 'd'){
496: 83 7d e8 64 cmpl $0x64,-0x18(%ebp)
49a: 75 2d jne 4c9 <printf+0xa8>
printint(fd, *ap, 10, 1);
49c: 8b 45 f4 mov -0xc(%ebp),%eax
49f: 8b 00 mov (%eax),%eax
4a1: c7 44 24 0c 01 00 00 movl $0x1,0xc(%esp)
4a8: 00
4a9: c7 44 24 08 0a 00 00 movl $0xa,0x8(%esp)
4b0: 00
4b1: 89 44 24 04 mov %eax,0x4(%esp)
4b5: 8b 45 08 mov 0x8(%ebp),%eax
4b8: 89 04 24 mov %eax,(%esp)
4bb: e8 b0 fe ff ff call 370 <printint>
ap++;
4c0: 83 45 f4 04 addl $0x4,-0xc(%ebp)
4c4: e9 ed 00 00 00 jmp 5b6 <printf+0x195>
} else if(c == 'x' || c == 'p'){
4c9: 83 7d e8 78 cmpl $0x78,-0x18(%ebp)
4cd: 74 06 je 4d5 <printf+0xb4>
4cf: 83 7d e8 70 cmpl $0x70,-0x18(%ebp)
4d3: 75 2d jne 502 <printf+0xe1>
printint(fd, *ap, 16, 0);
4d5: 8b 45 f4 mov -0xc(%ebp),%eax
4d8: 8b 00 mov (%eax),%eax
4da: c7 44 24 0c 00 00 00 movl $0x0,0xc(%esp)
4e1: 00
4e2: c7 44 24 08 10 00 00 movl $0x10,0x8(%esp)
4e9: 00
4ea: 89 44 24 04 mov %eax,0x4(%esp)
4ee: 8b 45 08 mov 0x8(%ebp),%eax
4f1: 89 04 24 mov %eax,(%esp)
4f4: e8 77 fe ff ff call 370 <printint>
ap++;
4f9: 83 45 f4 04 addl $0x4,-0xc(%ebp)
}
} else if(state == '%'){
if(c == 'd'){
printint(fd, *ap, 10, 1);
ap++;
} else if(c == 'x' || c == 'p'){
4fd: e9 b4 00 00 00 jmp 5b6 <printf+0x195>
printint(fd, *ap, 16, 0);
ap++;
} else if(c == 's'){
502: 83 7d e8 73 cmpl $0x73,-0x18(%ebp)
506: 75 46 jne 54e <printf+0x12d>
s = (char*)*ap;
508: 8b 45 f4 mov -0xc(%ebp),%eax
50b: 8b 00 mov (%eax),%eax
50d: 89 45 e4 mov %eax,-0x1c(%ebp)
ap++;
510: 83 45 f4 04 addl $0x4,-0xc(%ebp)
if(s == 0)
514: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp)
518: 75 27 jne 541 <printf+0x120>
s = "(null)";
51a: c7 45 e4 59 0a 00 00 movl $0xa59,-0x1c(%ebp)
while(*s != 0){
521: eb 1f jmp 542 <printf+0x121>
putc(fd, *s);
523: 8b 45 e4 mov -0x1c(%ebp),%eax
526: 0f b6 00 movzbl (%eax),%eax
529: 0f be c0 movsbl %al,%eax
52c: 89 44 24 04 mov %eax,0x4(%esp)
530: 8b 45 08 mov 0x8(%ebp),%eax
533: 89 04 24 mov %eax,(%esp)
536: e8 0d fe ff ff call 348 <putc>
s++;
53b: 83 45 e4 01 addl $0x1,-0x1c(%ebp)
53f: eb 01 jmp 542 <printf+0x121>
} else if(c == 's'){
s = (char*)*ap;
ap++;
if(s == 0)
s = "(null)";
while(*s != 0){
541: 90 nop
542: 8b 45 e4 mov -0x1c(%ebp),%eax
545: 0f b6 00 movzbl (%eax),%eax
548: 84 c0 test %al,%al
54a: 75 d7 jne 523 <printf+0x102>
54c: eb 68 jmp 5b6 <printf+0x195>
putc(fd, *s);
s++;
}
} else if(c == 'c'){
54e: 83 7d e8 63 cmpl $0x63,-0x18(%ebp)
552: 75 1d jne 571 <printf+0x150>
putc(fd, *ap);
554: 8b 45 f4 mov -0xc(%ebp),%eax
557: 8b 00 mov (%eax),%eax
559: 0f be c0 movsbl %al,%eax
55c: 89 44 24 04 mov %eax,0x4(%esp)
560: 8b 45 08 mov 0x8(%ebp),%eax
563: 89 04 24 mov %eax,(%esp)
566: e8 dd fd ff ff call 348 <putc>
ap++;
56b: 83 45 f4 04 addl $0x4,-0xc(%ebp)
56f: eb 45 jmp 5b6 <printf+0x195>
} else if(c == '%'){
571: 83 7d e8 25 cmpl $0x25,-0x18(%ebp)
575: 75 17 jne 58e <printf+0x16d>
putc(fd, c);
577: 8b 45 e8 mov -0x18(%ebp),%eax
57a: 0f be c0 movsbl %al,%eax
57d: 89 44 24 04 mov %eax,0x4(%esp)
581: 8b 45 08 mov 0x8(%ebp),%eax
584: 89 04 24 mov %eax,(%esp)
587: e8 bc fd ff ff call 348 <putc>
58c: eb 28 jmp 5b6 <printf+0x195>
} else {
// Unknown % sequence. Print it to draw attention.
putc(fd, '%');
58e: c7 44 24 04 25 00 00 movl $0x25,0x4(%esp)
595: 00
596: 8b 45 08 mov 0x8(%ebp),%eax
599: 89 04 24 mov %eax,(%esp)
59c: e8 a7 fd ff ff call 348 <putc>
putc(fd, c);
5a1: 8b 45 e8 mov -0x18(%ebp),%eax
5a4: 0f be c0 movsbl %al,%eax
5a7: 89 44 24 04 mov %eax,0x4(%esp)
5ab: 8b 45 08 mov 0x8(%ebp),%eax
5ae: 89 04 24 mov %eax,(%esp)
5b1: e8 92 fd ff ff call 348 <putc>
}
state = 0;
5b6: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp)
int c, i, state;
uint *ap;
state = 0;
ap = (uint*)(void*)&fmt + 1;
for(i = 0; fmt[i]; i++){
5bd: 83 45 ec 01 addl $0x1,-0x14(%ebp)
5c1: 8b 55 0c mov 0xc(%ebp),%edx
5c4: 8b 45 ec mov -0x14(%ebp),%eax
5c7: 8d 04 02 lea (%edx,%eax,1),%eax
5ca: 0f b6 00 movzbl (%eax),%eax
5cd: 84 c0 test %al,%al
5cf: 0f 85 6e fe ff ff jne 443 <printf+0x22>
putc(fd, c);
}
state = 0;
}
}
}
5d5: c9 leave
5d6: c3 ret
5d7: 90 nop
000005d8 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
5d8: 55 push %ebp
5d9: 89 e5 mov %esp,%ebp
5db: 83 ec 10 sub $0x10,%esp
Header *bp, *p;
bp = (Header*)ap - 1;
5de: 8b 45 08 mov 0x8(%ebp),%eax
5e1: 83 e8 08 sub $0x8,%eax
5e4: 89 45 f8 mov %eax,-0x8(%ebp)
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
5e7: a1 ac 0a 00 00 mov 0xaac,%eax
5ec: 89 45 fc mov %eax,-0x4(%ebp)
5ef: eb 24 jmp 615 <free+0x3d>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
5f1: 8b 45 fc mov -0x4(%ebp),%eax
5f4: 8b 00 mov (%eax),%eax
5f6: 3b 45 fc cmp -0x4(%ebp),%eax
5f9: 77 12 ja 60d <free+0x35>
5fb: 8b 45 f8 mov -0x8(%ebp),%eax
5fe: 3b 45 fc cmp -0x4(%ebp),%eax
601: 77 24 ja 627 <free+0x4f>
603: 8b 45 fc mov -0x4(%ebp),%eax
606: 8b 00 mov (%eax),%eax
608: 3b 45 f8 cmp -0x8(%ebp),%eax
60b: 77 1a ja 627 <free+0x4f>
free(void *ap)
{
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
60d: 8b 45 fc mov -0x4(%ebp),%eax
610: 8b 00 mov (%eax),%eax
612: 89 45 fc mov %eax,-0x4(%ebp)
615: 8b 45 f8 mov -0x8(%ebp),%eax
618: 3b 45 fc cmp -0x4(%ebp),%eax
61b: 76 d4 jbe 5f1 <free+0x19>
61d: 8b 45 fc mov -0x4(%ebp),%eax
620: 8b 00 mov (%eax),%eax
622: 3b 45 f8 cmp -0x8(%ebp),%eax
625: 76 ca jbe 5f1 <free+0x19>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
break;
if(bp + bp->s.size == p->s.ptr){
627: 8b 45 f8 mov -0x8(%ebp),%eax
62a: 8b 40 04 mov 0x4(%eax),%eax
62d: c1 e0 03 shl $0x3,%eax
630: 89 c2 mov %eax,%edx
632: 03 55 f8 add -0x8(%ebp),%edx
635: 8b 45 fc mov -0x4(%ebp),%eax
638: 8b 00 mov (%eax),%eax
63a: 39 c2 cmp %eax,%edx
63c: 75 24 jne 662 <free+0x8a>
bp->s.size += p->s.ptr->s.size;
63e: 8b 45 f8 mov -0x8(%ebp),%eax
641: 8b 50 04 mov 0x4(%eax),%edx
644: 8b 45 fc mov -0x4(%ebp),%eax
647: 8b 00 mov (%eax),%eax
649: 8b 40 04 mov 0x4(%eax),%eax
64c: 01 c2 add %eax,%edx
64e: 8b 45 f8 mov -0x8(%ebp),%eax
651: 89 50 04 mov %edx,0x4(%eax)
bp->s.ptr = p->s.ptr->s.ptr;
654: 8b 45 fc mov -0x4(%ebp),%eax
657: 8b 00 mov (%eax),%eax
659: 8b 10 mov (%eax),%edx
65b: 8b 45 f8 mov -0x8(%ebp),%eax
65e: 89 10 mov %edx,(%eax)
660: eb 0a jmp 66c <free+0x94>
} else
bp->s.ptr = p->s.ptr;
662: 8b 45 fc mov -0x4(%ebp),%eax
665: 8b 10 mov (%eax),%edx
667: 8b 45 f8 mov -0x8(%ebp),%eax
66a: 89 10 mov %edx,(%eax)
if(p + p->s.size == bp){
66c: 8b 45 fc mov -0x4(%ebp),%eax
66f: 8b 40 04 mov 0x4(%eax),%eax
672: c1 e0 03 shl $0x3,%eax
675: 03 45 fc add -0x4(%ebp),%eax
678: 3b 45 f8 cmp -0x8(%ebp),%eax
67b: 75 20 jne 69d <free+0xc5>
p->s.size += bp->s.size;
67d: 8b 45 fc mov -0x4(%ebp),%eax
680: 8b 50 04 mov 0x4(%eax),%edx
683: 8b 45 f8 mov -0x8(%ebp),%eax
686: 8b 40 04 mov 0x4(%eax),%eax
689: 01 c2 add %eax,%edx
68b: 8b 45 fc mov -0x4(%ebp),%eax
68e: 89 50 04 mov %edx,0x4(%eax)
p->s.ptr = bp->s.ptr;
691: 8b 45 f8 mov -0x8(%ebp),%eax
694: 8b 10 mov (%eax),%edx
696: 8b 45 fc mov -0x4(%ebp),%eax
699: 89 10 mov %edx,(%eax)
69b: eb 08 jmp 6a5 <free+0xcd>
} else
p->s.ptr = bp;
69d: 8b 45 fc mov -0x4(%ebp),%eax
6a0: 8b 55 f8 mov -0x8(%ebp),%edx
6a3: 89 10 mov %edx,(%eax)
freep = p;
6a5: 8b 45 fc mov -0x4(%ebp),%eax
6a8: a3 ac 0a 00 00 mov %eax,0xaac
}
6ad: c9 leave
6ae: c3 ret
000006af <morecore>:
static Header*
morecore(uint nu)
{
6af: 55 push %ebp
6b0: 89 e5 mov %esp,%ebp
6b2: 83 ec 28 sub $0x28,%esp
char *p;
Header *hp;
if(nu < 4096)
6b5: 81 7d 08 ff 0f 00 00 cmpl $0xfff,0x8(%ebp)
6bc: 77 07 ja 6c5 <morecore+0x16>
nu = 4096;
6be: c7 45 08 00 10 00 00 movl $0x1000,0x8(%ebp)
p = sbrk(nu * sizeof(Header));
6c5: 8b 45 08 mov 0x8(%ebp),%eax
6c8: c1 e0 03 shl $0x3,%eax
6cb: 89 04 24 mov %eax,(%esp)
6ce: e8 3d fc ff ff call 310 <sbrk>
6d3: 89 45 f0 mov %eax,-0x10(%ebp)
if(p == (char*)-1)
6d6: 83 7d f0 ff cmpl $0xffffffff,-0x10(%ebp)
6da: 75 07 jne 6e3 <morecore+0x34>
return 0;
6dc: b8 00 00 00 00 mov $0x0,%eax
6e1: eb 22 jmp 705 <morecore+0x56>
hp = (Header*)p;
6e3: 8b 45 f0 mov -0x10(%ebp),%eax
6e6: 89 45 f4 mov %eax,-0xc(%ebp)
hp->s.size = nu;
6e9: 8b 45 f4 mov -0xc(%ebp),%eax
6ec: 8b 55 08 mov 0x8(%ebp),%edx
6ef: 89 50 04 mov %edx,0x4(%eax)
free((void*)(hp + 1));
6f2: 8b 45 f4 mov -0xc(%ebp),%eax
6f5: 83 c0 08 add $0x8,%eax
6f8: 89 04 24 mov %eax,(%esp)
6fb: e8 d8 fe ff ff call 5d8 <free>
return freep;
700: a1 ac 0a 00 00 mov 0xaac,%eax
}
705: c9 leave
706: c3 ret
00000707 <malloc>:
void*
malloc(uint nbytes)
{
707: 55 push %ebp
708: 89 e5 mov %esp,%ebp
70a: 83 ec 28 sub $0x28,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
70d: 8b 45 08 mov 0x8(%ebp),%eax
710: 83 c0 07 add $0x7,%eax
713: c1 e8 03 shr $0x3,%eax
716: 83 c0 01 add $0x1,%eax
719: 89 45 f4 mov %eax,-0xc(%ebp)
if((prevp = freep) == 0){
71c: a1 ac 0a 00 00 mov 0xaac,%eax
721: 89 45 f0 mov %eax,-0x10(%ebp)
724: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
728: 75 23 jne 74d <malloc+0x46>
base.s.ptr = freep = prevp = &base;
72a: c7 45 f0 a4 0a 00 00 movl $0xaa4,-0x10(%ebp)
731: 8b 45 f0 mov -0x10(%ebp),%eax
734: a3 ac 0a 00 00 mov %eax,0xaac
739: a1 ac 0a 00 00 mov 0xaac,%eax
73e: a3 a4 0a 00 00 mov %eax,0xaa4
base.s.size = 0;
743: c7 05 a8 0a 00 00 00 movl $0x0,0xaa8
74a: 00 00 00
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
74d: 8b 45 f0 mov -0x10(%ebp),%eax
750: 8b 00 mov (%eax),%eax
752: 89 45 ec mov %eax,-0x14(%ebp)
if(p->s.size >= nunits){
755: 8b 45 ec mov -0x14(%ebp),%eax
758: 8b 40 04 mov 0x4(%eax),%eax
75b: 3b 45 f4 cmp -0xc(%ebp),%eax
75e: 72 4d jb 7ad <malloc+0xa6>
if(p->s.size == nunits)
760: 8b 45 ec mov -0x14(%ebp),%eax
763: 8b 40 04 mov 0x4(%eax),%eax
766: 3b 45 f4 cmp -0xc(%ebp),%eax
769: 75 0c jne 777 <malloc+0x70>
prevp->s.ptr = p->s.ptr;
76b: 8b 45 ec mov -0x14(%ebp),%eax
76e: 8b 10 mov (%eax),%edx
770: 8b 45 f0 mov -0x10(%ebp),%eax
773: 89 10 mov %edx,(%eax)
775: eb 26 jmp 79d <malloc+0x96>
else {
p->s.size -= nunits;
777: 8b 45 ec mov -0x14(%ebp),%eax
77a: 8b 40 04 mov 0x4(%eax),%eax
77d: 89 c2 mov %eax,%edx
77f: 2b 55 f4 sub -0xc(%ebp),%edx
782: 8b 45 ec mov -0x14(%ebp),%eax
785: 89 50 04 mov %edx,0x4(%eax)
p += p->s.size;
788: 8b 45 ec mov -0x14(%ebp),%eax
78b: 8b 40 04 mov 0x4(%eax),%eax
78e: c1 e0 03 shl $0x3,%eax
791: 01 45 ec add %eax,-0x14(%ebp)
p->s.size = nunits;
794: 8b 45 ec mov -0x14(%ebp),%eax
797: 8b 55 f4 mov -0xc(%ebp),%edx
79a: 89 50 04 mov %edx,0x4(%eax)
}
freep = prevp;
79d: 8b 45 f0 mov -0x10(%ebp),%eax
7a0: a3 ac 0a 00 00 mov %eax,0xaac
return (void*)(p + 1);
7a5: 8b 45 ec mov -0x14(%ebp),%eax
7a8: 83 c0 08 add $0x8,%eax
7ab: eb 38 jmp 7e5 <malloc+0xde>
}
if(p == freep)
7ad: a1 ac 0a 00 00 mov 0xaac,%eax
7b2: 39 45 ec cmp %eax,-0x14(%ebp)
7b5: 75 1b jne 7d2 <malloc+0xcb>
if((p = morecore(nunits)) == 0)
7b7: 8b 45 f4 mov -0xc(%ebp),%eax
7ba: 89 04 24 mov %eax,(%esp)
7bd: e8 ed fe ff ff call 6af <morecore>
7c2: 89 45 ec mov %eax,-0x14(%ebp)
7c5: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
7c9: 75 07 jne 7d2 <malloc+0xcb>
return 0;
7cb: b8 00 00 00 00 mov $0x0,%eax
7d0: eb 13 jmp 7e5 <malloc+0xde>
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
if((prevp = freep) == 0){
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
7d2: 8b 45 ec mov -0x14(%ebp),%eax
7d5: 89 45 f0 mov %eax,-0x10(%ebp)
7d8: 8b 45 ec mov -0x14(%ebp),%eax
7db: 8b 00 mov (%eax),%eax
7dd: 89 45 ec mov %eax,-0x14(%ebp)
return (void*)(p + 1);
}
if(p == freep)
if((p = morecore(nunits)) == 0)
return 0;
}
7e0: e9 70 ff ff ff jmp 755 <malloc+0x4e>
}
7e5: c9 leave
7e6: c3 ret
7e7: 90 nop
000007e8 <xchg>:
asm volatile("sti");
}
static inline uint
xchg(volatile uint *addr, uint newval)
{
7e8: 55 push %ebp
7e9: 89 e5 mov %esp,%ebp
7eb: 83 ec 10 sub $0x10,%esp
uint result;
// The + in "+m" denotes a read-modify-write operand.
asm volatile("lock; xchgl %0, %1" :
7ee: 8b 55 08 mov 0x8(%ebp),%edx
7f1: 8b 45 0c mov 0xc(%ebp),%eax
7f4: 8b 4d 08 mov 0x8(%ebp),%ecx
7f7: f0 87 02 lock xchg %eax,(%edx)
7fa: 89 45 fc mov %eax,-0x4(%ebp)
"+m" (*addr), "=a" (result) :
"1" (newval) :
"cc");
return result;
7fd: 8b 45 fc mov -0x4(%ebp),%eax
}
800: c9 leave
801: c3 ret
00000802 <lock_init>:
#include "x86.h"
#include "proc.h"
unsigned long rands = 1;
void lock_init(lock_t *lock){
802: 55 push %ebp
803: 89 e5 mov %esp,%ebp
lock->locked = 0;
805: 8b 45 08 mov 0x8(%ebp),%eax
808: c7 00 00 00 00 00 movl $0x0,(%eax)
}
80e: 5d pop %ebp
80f: c3 ret
00000810 <lock_acquire>:
void lock_acquire(lock_t *lock){
810: 55 push %ebp
811: 89 e5 mov %esp,%ebp
813: 83 ec 08 sub $0x8,%esp
while(xchg(&lock->locked,1) != 0);
816: 8b 45 08 mov 0x8(%ebp),%eax
819: c7 44 24 04 01 00 00 movl $0x1,0x4(%esp)
820: 00
821: 89 04 24 mov %eax,(%esp)
824: e8 bf ff ff ff call 7e8 <xchg>
829: 85 c0 test %eax,%eax
82b: 75 e9 jne 816 <lock_acquire+0x6>
}
82d: c9 leave
82e: c3 ret
0000082f <lock_release>:
void lock_release(lock_t *lock){
82f: 55 push %ebp
830: 89 e5 mov %esp,%ebp
832: 83 ec 08 sub $0x8,%esp
xchg(&lock->locked,0);
835: 8b 45 08 mov 0x8(%ebp),%eax
838: c7 44 24 04 00 00 00 movl $0x0,0x4(%esp)
83f: 00
840: 89 04 24 mov %eax,(%esp)
843: e8 a0 ff ff ff call 7e8 <xchg>
}
848: c9 leave
849: c3 ret
0000084a <thread_create>:
void *thread_create(void(*start_routine)(void*), void *arg){
84a: 55 push %ebp
84b: 89 e5 mov %esp,%ebp
84d: 83 ec 28 sub $0x28,%esp
int tid;
void * stack = malloc(2 * 4096);
850: c7 04 24 00 20 00 00 movl $0x2000,(%esp)
857: e8 ab fe ff ff call 707 <malloc>
85c: 89 45 f0 mov %eax,-0x10(%ebp)
void *garbage_stack = stack;
85f: 8b 45 f0 mov -0x10(%ebp),%eax
862: 89 45 f4 mov %eax,-0xc(%ebp)
// printf(1,"start routine addr : %d\n",(uint)start_routine);
if((uint)stack % 4096){
865: 8b 45 f0 mov -0x10(%ebp),%eax
868: 25 ff 0f 00 00 and $0xfff,%eax
86d: 85 c0 test %eax,%eax
86f: 74 15 je 886 <thread_create+0x3c>
stack = stack + (4096 - (uint)stack % 4096);
871: 8b 45 f0 mov -0x10(%ebp),%eax
874: 89 c2 mov %eax,%edx
876: 81 e2 ff 0f 00 00 and $0xfff,%edx
87c: b8 00 10 00 00 mov $0x1000,%eax
881: 29 d0 sub %edx,%eax
883: 01 45 f0 add %eax,-0x10(%ebp)
}
if (stack == 0){
886: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
88a: 75 1b jne 8a7 <thread_create+0x5d>
printf(1,"malloc fail \n");
88c: c7 44 24 04 60 0a 00 movl $0xa60,0x4(%esp)
893: 00
894: c7 04 24 01 00 00 00 movl $0x1,(%esp)
89b: e8 81 fb ff ff call 421 <printf>
return 0;
8a0: b8 00 00 00 00 mov $0x0,%eax
8a5: eb 6f jmp 916 <thread_create+0xcc>
}
tid = clone((uint)stack,PSIZE,(uint)start_routine,(int)arg);
8a7: 8b 4d 0c mov 0xc(%ebp),%ecx
8aa: 8b 55 08 mov 0x8(%ebp),%edx
8ad: 8b 45 f0 mov -0x10(%ebp),%eax
8b0: 89 4c 24 0c mov %ecx,0xc(%esp)
8b4: 89 54 24 08 mov %edx,0x8(%esp)
8b8: c7 44 24 04 00 10 00 movl $0x1000,0x4(%esp)
8bf: 00
8c0: 89 04 24 mov %eax,(%esp)
8c3: e8 60 fa ff ff call 328 <clone>
8c8: 89 45 ec mov %eax,-0x14(%ebp)
if(tid < 0){
8cb: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
8cf: 79 1b jns 8ec <thread_create+0xa2>
printf(1,"clone fails\n");
8d1: c7 44 24 04 6e 0a 00 movl $0xa6e,0x4(%esp)
8d8: 00
8d9: c7 04 24 01 00 00 00 movl $0x1,(%esp)
8e0: e8 3c fb ff ff call 421 <printf>
return 0;
8e5: b8 00 00 00 00 mov $0x0,%eax
8ea: eb 2a jmp 916 <thread_create+0xcc>
}
if(tid > 0){
8ec: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
8f0: 7e 05 jle 8f7 <thread_create+0xad>
//store threads on thread table
return garbage_stack;
8f2: 8b 45 f4 mov -0xc(%ebp),%eax
8f5: eb 1f jmp 916 <thread_create+0xcc>
}
if(tid == 0){
8f7: 83 7d ec 00 cmpl $0x0,-0x14(%ebp)
8fb: 75 14 jne 911 <thread_create+0xc7>
printf(1,"tid = 0 return \n");
8fd: c7 44 24 04 7b 0a 00 movl $0xa7b,0x4(%esp)
904: 00
905: c7 04 24 01 00 00 00 movl $0x1,(%esp)
90c: e8 10 fb ff ff call 421 <printf>
}
// wait();
// free(garbage_stack);
return 0;
911: b8 00 00 00 00 mov $0x0,%eax
}
916: c9 leave
917: c3 ret
00000918 <random>:
// generate 0 -> max random number exclude max.
int random(int max){
918: 55 push %ebp
919: 89 e5 mov %esp,%ebp
rands = rands * 1664525 + 1013904233;
91b: a1 a0 0a 00 00 mov 0xaa0,%eax
920: 69 c0 0d 66 19 00 imul $0x19660d,%eax,%eax
926: 05 69 f3 6e 3c add $0x3c6ef369,%eax
92b: a3 a0 0a 00 00 mov %eax,0xaa0
return (int)(rands % max);
930: a1 a0 0a 00 00 mov 0xaa0,%eax
935: 8b 4d 08 mov 0x8(%ebp),%ecx
938: ba 00 00 00 00 mov $0x0,%edx
93d: f7 f1 div %ecx
93f: 89 d0 mov %edx,%eax
}
941: 5d pop %ebp
942: c3 ret
943: 90 nop
00000944 <init_q>:
#include "queue.h"
#include "types.h"
#include "user.h"
void init_q(struct queue *q){
944: 55 push %ebp
945: 89 e5 mov %esp,%ebp
q->size = 0;
947: 8b 45 08 mov 0x8(%ebp),%eax
94a: c7 00 00 00 00 00 movl $0x0,(%eax)
q->head = 0;
950: 8b 45 08 mov 0x8(%ebp),%eax
953: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax)
q->tail = 0;
95a: 8b 45 08 mov 0x8(%ebp),%eax
95d: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
}
964: 5d pop %ebp
965: c3 ret
00000966 <add_q>:
void add_q(struct queue *q, int v){
966: 55 push %ebp
967: 89 e5 mov %esp,%ebp
969: 83 ec 28 sub $0x28,%esp
struct node * n = malloc(sizeof(struct node));
96c: c7 04 24 08 00 00 00 movl $0x8,(%esp)
973: e8 8f fd ff ff call 707 <malloc>
978: 89 45 f4 mov %eax,-0xc(%ebp)
n->next = 0;
97b: 8b 45 f4 mov -0xc(%ebp),%eax
97e: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax)
n->value = v;
985: 8b 45 f4 mov -0xc(%ebp),%eax
988: 8b 55 0c mov 0xc(%ebp),%edx
98b: 89 10 mov %edx,(%eax)
if(q->head == 0){
98d: 8b 45 08 mov 0x8(%ebp),%eax
990: 8b 40 04 mov 0x4(%eax),%eax
993: 85 c0 test %eax,%eax
995: 75 0b jne 9a2 <add_q+0x3c>
q->head = n;
997: 8b 45 08 mov 0x8(%ebp),%eax
99a: 8b 55 f4 mov -0xc(%ebp),%edx
99d: 89 50 04 mov %edx,0x4(%eax)
9a0: eb 0c jmp 9ae <add_q+0x48>
}else{
q->tail->next = n;
9a2: 8b 45 08 mov 0x8(%ebp),%eax
9a5: 8b 40 08 mov 0x8(%eax),%eax
9a8: 8b 55 f4 mov -0xc(%ebp),%edx
9ab: 89 50 04 mov %edx,0x4(%eax)
}
q->tail = n;
9ae: 8b 45 08 mov 0x8(%ebp),%eax
9b1: 8b 55 f4 mov -0xc(%ebp),%edx
9b4: 89 50 08 mov %edx,0x8(%eax)
q->size++;
9b7: 8b 45 08 mov 0x8(%ebp),%eax
9ba: 8b 00 mov (%eax),%eax
9bc: 8d 50 01 lea 0x1(%eax),%edx
9bf: 8b 45 08 mov 0x8(%ebp),%eax
9c2: 89 10 mov %edx,(%eax)
}
9c4: c9 leave
9c5: c3 ret
000009c6 <empty_q>:
int empty_q(struct queue *q){
9c6: 55 push %ebp
9c7: 89 e5 mov %esp,%ebp
if(q->size == 0)
9c9: 8b 45 08 mov 0x8(%ebp),%eax
9cc: 8b 00 mov (%eax),%eax
9ce: 85 c0 test %eax,%eax
9d0: 75 07 jne 9d9 <empty_q+0x13>
return 1;
9d2: b8 01 00 00 00 mov $0x1,%eax
9d7: eb 05 jmp 9de <empty_q+0x18>
else
return 0;
9d9: b8 00 00 00 00 mov $0x0,%eax
}
9de: 5d pop %ebp
9df: c3 ret
000009e0 <pop_q>:
int pop_q(struct queue *q){
9e0: 55 push %ebp
9e1: 89 e5 mov %esp,%ebp
9e3: 83 ec 28 sub $0x28,%esp
int val;
struct node *destroy;
if(!empty_q(q)){
9e6: 8b 45 08 mov 0x8(%ebp),%eax
9e9: 89 04 24 mov %eax,(%esp)
9ec: e8 d5 ff ff ff call 9c6 <empty_q>
9f1: 85 c0 test %eax,%eax
9f3: 75 5d jne a52 <pop_q+0x72>
val = q->head->value;
9f5: 8b 45 08 mov 0x8(%ebp),%eax
9f8: 8b 40 04 mov 0x4(%eax),%eax
9fb: 8b 00 mov (%eax),%eax
9fd: 89 45 f0 mov %eax,-0x10(%ebp)
destroy = q->head;
a00: 8b 45 08 mov 0x8(%ebp),%eax
a03: 8b 40 04 mov 0x4(%eax),%eax
a06: 89 45 f4 mov %eax,-0xc(%ebp)
q->head = q->head->next;
a09: 8b 45 08 mov 0x8(%ebp),%eax
a0c: 8b 40 04 mov 0x4(%eax),%eax
a0f: 8b 50 04 mov 0x4(%eax),%edx
a12: 8b 45 08 mov 0x8(%ebp),%eax
a15: 89 50 04 mov %edx,0x4(%eax)
free(destroy);
a18: 8b 45 f4 mov -0xc(%ebp),%eax
a1b: 89 04 24 mov %eax,(%esp)
a1e: e8 b5 fb ff ff call 5d8 <free>
q->size--;
a23: 8b 45 08 mov 0x8(%ebp),%eax
a26: 8b 00 mov (%eax),%eax
a28: 8d 50 ff lea -0x1(%eax),%edx
a2b: 8b 45 08 mov 0x8(%ebp),%eax
a2e: 89 10 mov %edx,(%eax)
if(q->size == 0){
a30: 8b 45 08 mov 0x8(%ebp),%eax
a33: 8b 00 mov (%eax),%eax
a35: 85 c0 test %eax,%eax
a37: 75 14 jne a4d <pop_q+0x6d>
q->head = 0;
a39: 8b 45 08 mov 0x8(%ebp),%eax
a3c: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax)
q->tail = 0;
a43: 8b 45 08 mov 0x8(%ebp),%eax
a46: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
}
return val;
a4d: 8b 45 f0 mov -0x10(%ebp),%eax
a50: eb 05 jmp a57 <pop_q+0x77>
}
return -1;
a52: b8 ff ff ff ff mov $0xffffffff,%eax
}
a57: c9 leave
a58: c3 ret
| 33.986257 | 64 | 0.431226 |
4bafdb41f2879479a8e97ef10981fda31026def0 | 29,300 | asm | Assembly | kernel/fonts/glaux-mono.asm | ssebs/xos | 8c50cb7753690ad67696131a8b9935947e1a8075 | [
"MIT"
] | 15 | 2020-05-02T22:04:24.000Z | 2021-08-31T16:56:59.000Z | kernel/fonts/glaux-mono.asm | JamesLinus/xos | 3fba0cb15e84b5f7cd08e0a29ed5f86087192d2e | [
"MIT"
] | null | null | null | kernel/fonts/glaux-mono.asm | JamesLinus/xos | 3fba0cb15e84b5f7cd08e0a29ed5f86087192d2e | [
"MIT"
] | 1 | 2019-07-20T10:10:36.000Z | 2019-07-20T10:10:36.000Z | ; ==============================================================================
; file: "source/system/fonts/glaux-mono.asm"
; use: to be compiled into "system/fonts/glaux-mono.sys"
; ==============================================================================
unicode_0000:
times 528 db 0
;times 16 db 0
unicode_0033:
db 00000000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00000000b
db 00000000b
db 00001000b
db 00001000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0034:
db 00000000b
db 00010100b
db 00010100b
db 00010100b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0035:
db 00000000b
db 00100100b
db 00100100b
db 01111110b
db 00100100b
db 00100100b
db 00100100b
db 00100100b
db 01111110b
db 00100100b
db 00100100b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0036:
db 00000000b
db 00001000b
db 00011100b
db 00101010b
db 00101000b
db 00011000b
db 00001100b
db 00001010b
db 00101010b
db 00011100b
db 00001000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0037:
db 00000000b
db 00100010b
db 01010100b
db 00100100b
db 00001000b
db 00001000b
db 00010000b
db 00010000b
db 00100100b
db 00101010b
db 01000100b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0038:
db 00000000b
db 00011000b
db 00100100b
db 01000100b
db 01001000b
db 01010000b
db 00100000b
db 01010000b
db 01001010b
db 01000100b
db 00111010b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0039:
db 00000000b
db 00001000b
db 00001000b
db 00001000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0040:
db 00000000b
db 00000100b
db 00001000b
db 00001000b
db 00010000b
db 00010000b
db 00010000b
db 00010000b
db 00010000b
db 00010000b
db 00010000b
db 00010000b
db 00001000b
db 00001000b
db 00000100b
db 00000000b
unicode_0041:
db 00000000b
db 00100000b
db 00010000b
db 00010000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00010000b
db 00010000b
db 00100000b
db 00000000b
unicode_0042:
db 00000000b
db 00001000b
db 00101010b
db 00011100b
db 00101010b
db 00001000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0043:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00001000b
db 00001000b
db 00111110b
db 00001000b
db 00001000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0044:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00001000b
db 00001000b
db 00010000b
db 00100000b
db 00000000b
db 00000000b
db 00000000b
unicode_0045:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00111110b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0046:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00001000b
db 00001000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0047:
db 00000000b
db 00000010b
db 00000010b
db 00000100b
db 00000100b
db 00001000b
db 00001000b
db 00010000b
db 00010000b
db 00100000b
db 00100000b
db 01000000b
db 01000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0048:
db 00000000b
db 00011000b
db 00100100b
db 01000010b
db 01000010b
db 01001010b
db 01010010b
db 01000010b
db 01000010b
db 00100100b
db 00011000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0049:
db 00000000b
db 00001000b
db 00001000b
db 00011000b
db 00101000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00011100b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0050:
db 00000000b
db 00111000b
db 01000100b
db 00000010b
db 00000010b
db 00000100b
db 00001000b
db 00010000b
db 00100000b
db 01000000b
db 01111110b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0051:
db 00000000b
db 00111000b
db 01000100b
db 00000010b
db 00000100b
db 00011000b
db 00000100b
db 00000010b
db 00000010b
db 01000100b
db 00111000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0052:
db 00000000b
db 00000100b
db 00000100b
db 00001100b
db 00010100b
db 00100100b
db 01000100b
db 01111110b
db 00000100b
db 00000100b
db 00000100b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0053:
db 00000000b
db 01111110b
db 01000000b
db 01000000b
db 01000000b
db 01111000b
db 00000100b
db 00000010b
db 00000010b
db 01000100b
db 00111000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0054:
db 00000000b
db 00011100b
db 00100010b
db 01000000b
db 01000000b
db 01011000b
db 01100100b
db 01000010b
db 01000010b
db 00100100b
db 00011000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0055:
db 00000000b
db 01111110b
db 00000010b
db 00000100b
db 00000100b
db 00001000b
db 00001000b
db 00010000b
db 00010000b
db 00100000b
db 00100000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0056:
db 00000000b
db 00011000b
db 00100100b
db 01000010b
db 00100100b
db 00011000b
db 00100100b
db 01000010b
db 01000010b
db 00100100b
db 00011000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0057:
db 00000000b
db 00011000b
db 00100100b
db 01000010b
db 01000010b
db 00100110b
db 00011010b
db 00000010b
db 00000010b
db 01000100b
db 00111000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0058:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00001000b
db 00001000b
db 00000000b
db 00000000b
db 00001000b
db 00001000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0059:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00001000b
db 00001000b
db 00000000b
db 00000000b
db 00001000b
db 00001000b
db 00010000b
db 00100000b
db 00000000b
db 00000000b
db 00000000b
unicode_0060:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000100b
db 00001000b
db 00010000b
db 00100000b
db 00010000b
db 00001000b
db 00000100b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0061:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00111110b
db 00000000b
db 00111110b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0062:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00100000b
db 00010000b
db 00001000b
db 00000100b
db 00001000b
db 00010000b
db 00100000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0063:
db 00000000b
db 00111000b
db 01000100b
db 00000010b
db 00000010b
db 00000100b
db 00001000b
db 00010000b
db 00000000b
db 00010000b
db 00010000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0064:
db 00000000b
db 00011000b
db 00100100b
db 01000010b
db 01000010b
db 01001110b
db 01010010b
db 01010010b
db 01001110b
db 00100000b
db 00011100b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0065:
db 00000000b
db 00001000b
db 00001000b
db 00010100b
db 00010100b
db 00100010b
db 00111110b
db 00100010b
db 01000001b
db 01000001b
db 01000001b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0066:
db 00000000b
db 01111000b
db 01000100b
db 01000010b
db 01000100b
db 01111000b
db 01000100b
db 01000010b
db 01000010b
db 01000100b
db 01111000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0067:
db 00000000b
db 00011100b
db 00100010b
db 01000000b
db 01000000b
db 01000000b
db 01000000b
db 01000000b
db 01000000b
db 00100010b
db 00011100b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0068:
db 00000000b
db 01111000b
db 01000100b
db 01000010b
db 01000010b
db 01000010b
db 01000010b
db 01000010b
db 01000010b
db 01000100b
db 01111000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0069:
db 00000000b
db 01111110b
db 01000000b
db 01000000b
db 01000000b
db 01111100b
db 01000000b
db 01000000b
db 01000000b
db 01000000b
db 01111110b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0070:
db 00000000b
db 01111110b
db 01000000b
db 01000000b
db 01000000b
db 01111100b
db 01000000b
db 01000000b
db 01000000b
db 01000000b
db 01000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0071:
db 00000000b
db 00011100b
db 00100010b
db 01000000b
db 01000000b
db 01000000b
db 01001110b
db 01000010b
db 01000010b
db 00100010b
db 00011100b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0072:
db 00000000b
db 01000010b
db 01000010b
db 01000010b
db 01000010b
db 01111110b
db 01000010b
db 01000010b
db 01000010b
db 01000010b
db 01000010b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0073:
db 00000000b
db 00011100b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00011100b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0074:
db 00000000b
db 00000100b
db 00000100b
db 00000100b
db 00000100b
db 00000100b
db 00000100b
db 00000100b
db 00000100b
db 01001000b
db 00110000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0075:
db 00000000b
db 01000010b
db 01000100b
db 01001000b
db 01010000b
db 01100000b
db 01010000b
db 01001000b
db 01000100b
db 01000010b
db 01000001b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0076:
db 00000000b
db 01000000b
db 01000000b
db 01000000b
db 01000000b
db 01000000b
db 01000000b
db 01000000b
db 01000000b
db 01000000b
db 01111110b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0077:
db 00000000b
db 01000001b
db 01000001b
db 01100011b
db 01010101b
db 01010101b
db 01001001b
db 01001001b
db 01000001b
db 01000001b
db 01000001b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0078:
db 00000000b
db 01000010b
db 01000010b
db 01100010b
db 01010010b
db 01010010b
db 01001010b
db 01001010b
db 01000110b
db 01000010b
db 01000010b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0079:
db 00000000b
db 00011100b
db 00100010b
db 01000001b
db 01000001b
db 01000001b
db 01000001b
db 01000001b
db 01000001b
db 00100010b
db 00011100b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0080:
db 00000000b
db 01111000b
db 01000100b
db 01000010b
db 01000010b
db 01000100b
db 01111000b
db 01000000b
db 01000000b
db 01000000b
db 01000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0081:
db 00000000b
db 00011100b
db 00100010b
db 01000001b
db 01000001b
db 01000001b
db 01000001b
db 01000001b
db 01000101b
db 00100010b
db 00011101b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0082:
db 00000000b
db 01111000b
db 01000100b
db 01000010b
db 01000010b
db 01000100b
db 01111000b
db 01010000b
db 01001000b
db 01000100b
db 01000010b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0083:
db 00000000b
db 00011100b
db 00100010b
db 01000000b
db 01000000b
db 00110000b
db 00001100b
db 00000010b
db 00000010b
db 01000100b
db 00111000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0084:
db 00000000b
db 00111110b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0085:
db 00000000b
db 01000001b
db 01000001b
db 01000001b
db 01000001b
db 01000001b
db 01000001b
db 01000001b
db 01000001b
db 00100010b
db 00011100b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0086:
db 00000000b
db 01000001b
db 01000001b
db 01000001b
db 00100010b
db 00100010b
db 00100010b
db 00010100b
db 00010100b
db 00001000b
db 00001000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0087:
db 00000000b
db 01000001b
db 01000001b
db 01000001b
db 01001001b
db 01001001b
db 01010101b
db 01010101b
db 01100011b
db 01000001b
db 01000001b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0088:
db 00000000b
db 00100010b
db 00100010b
db 00010100b
db 00010100b
db 00001000b
db 00001000b
db 00010100b
db 00010100b
db 00100010b
db 00100010b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0089:
db 00000000b
db 00100010b
db 00100010b
db 00100010b
db 00010100b
db 00010100b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0090:
db 00000000b
db 00111110b
db 00000010b
db 00000100b
db 00000100b
db 00001000b
db 00001000b
db 00010000b
db 00010000b
db 00100000b
db 00111110b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0091:
db 00000000b
db 00011110b
db 00010000b
db 00010000b
db 00010000b
db 00010000b
db 00010000b
db 00010000b
db 00010000b
db 00010000b
db 00010000b
db 00010000b
db 00010000b
db 00010000b
db 00011110b
db 00000000b
unicode_0092:
db 00000000b
db 01000000b
db 01000000b
db 00100000b
db 00100000b
db 00010000b
db 00010000b
db 00001000b
db 00001000b
db 00000100b
db 00000100b
db 00000010b
db 00000010b
db 00000000b
db 00000000b
db 00000000b
unicode_0093:
db 00000000b
db 01111000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 01111000b
db 00000000b
unicode_0094:
db 00000000b
db 00001000b
db 00010100b
db 00100010b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0095:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 11111111b
db 00000000b
unicode_0096:
db 00000000b
db 00010000b
db 00001000b
db 00000100b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0097:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00111000b
db 00000100b
db 00111100b
db 01000100b
db 01000100b
db 00111010b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0098:
db 00000000b
db 01000000b
db 01000000b
db 01000000b
db 01000000b
db 01011000b
db 01100100b
db 01000010b
db 01000010b
db 01100100b
db 01011000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0099:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00011100b
db 00100010b
db 01000000b
db 01000000b
db 00100010b
db 00011100b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0100:
db 00000000b
db 00000010b
db 00000010b
db 00000010b
db 00000010b
db 00011010b
db 00100110b
db 01000010b
db 01000010b
db 00100110b
db 00011010b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0101:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00111100b
db 01000010b
db 01111100b
db 01000000b
db 00100010b
db 00011100b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0102:
db 00000000b
db 00000110b
db 00001000b
db 00010000b
db 00010000b
db 00111110b
db 00010000b
db 00010000b
db 00010000b
db 00010000b
db 00010000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0103:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00011010b
db 00100110b
db 01000010b
db 01000010b
db 00100110b
db 00011010b
db 00000010b
db 00000010b
db 01000100b
db 00111000b
db 00000000b
unicode_0104:
db 00000000b
db 01000000b
db 01000000b
db 01000000b
db 01000000b
db 01011000b
db 01100100b
db 01000010b
db 01000010b
db 01000010b
db 01000010b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0105:
db 00000000b
db 00000000b
db 00000000b
db 00001000b
db 00000000b
db 00111000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00000110b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0106:
db 00000000b
db 00000000b
db 00000000b
db 00000100b
db 00000000b
db 00011100b
db 00000100b
db 00000100b
db 00000100b
db 00000100b
db 00000100b
db 00000100b
db 00000100b
db 01001000b
db 00110000b
db 00000000b
unicode_0107:
db 00000000b
db 00100000b
db 00100000b
db 00100000b
db 00100000b
db 00100100b
db 00101000b
db 00110000b
db 00101000b
db 00100100b
db 00100010b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0108:
db 00000000b
db 00111000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00000110b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0109:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 01010100b
db 01101010b
db 01001001b
db 01001001b
db 01001001b
db 01001001b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0110:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 01011000b
db 01100100b
db 01000010b
db 01000010b
db 01000010b
db 01000010b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0111:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00011000b
db 00100100b
db 01000010b
db 01000010b
db 00100100b
db 00011000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0112:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 01011000b
db 01100100b
db 01000010b
db 01000010b
db 01100100b
db 01011000b
db 01000000b
db 01000000b
db 01000000b
db 01000000b
db 00000000b
unicode_0113:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00011010b
db 00100110b
db 01000010b
db 01000010b
db 00100110b
db 00011010b
db 00000010b
db 00000010b
db 00000010b
db 00000010b
db 00000000b
unicode_0114:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 01011100b
db 01100010b
db 01000000b
db 01000000b
db 01000000b
db 01000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0115:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00111100b
db 01000010b
db 00110000b
db 00001100b
db 01000010b
db 00111100b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0116:
db 00000000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00111110b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00000110b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0117:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 01000010b
db 01000010b
db 01000010b
db 01000010b
db 00100110b
db 00011010b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0118:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 01000001b
db 01000001b
db 00100010b
db 00100010b
db 00010100b
db 00001000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0119:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 01000001b
db 01000001b
db 01001001b
db 01001001b
db 01010101b
db 00100010b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0120:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00100010b
db 00010100b
db 00001000b
db 00001000b
db 00010100b
db 00100010b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0121:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 01000010b
db 01000010b
db 00100010b
db 00100100b
db 00010100b
db 00001000b
db 00001000b
db 00010000b
db 00010000b
db 01100000b
db 00000000b
unicode_0122:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 01111110b
db 00000100b
db 00001000b
db 00010000b
db 00100000b
db 01111110b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0123:
db 00000000b
db 00000110b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00010000b
db 01100000b
db 00010000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00000110b
db 00000000b
unicode_0124:
db 00000000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00001000b
db 00000000b
db 00000000b
db 00000000b
unicode_0125:
db 00000000b
db 01100000b
db 00010000b
db 00010000b
db 00010000b
db 00010000b
db 00001000b
db 00000110b
db 00001000b
db 00010000b
db 00010000b
db 00010000b
db 00010000b
db 00010000b
db 01100000b
db 00000000b
unicode_0126:
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00110010b
db 01001100b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
db 00000000b
unicode_0127:
db 00000000b
db 01111110b
db 01000010b
db 01000010b
db 01000010b
db 01000010b
db 01000010b
db 01000010b
db 01000010b
db 01000010b
db 01000010b
db 01000010b
db 01000010b
db 01000010b
db 01111110b
db 00000000b
| 17.044793 | 81 | 0.613242 |
a06f453ab77d8b756747981364c8a0fbe481df66 | 988 | asm | Assembly | HW-1/ASMfiles/printB.asm | AlperMulayim/OperatingSystem | 8f3e697428dfebbc55046a842e8487aaa3dae200 | [
"MIT"
] | 3 | 2018-04-01T12:11:40.000Z | 2018-06-28T18:35:47.000Z | HW-1/ASMfiles/printB.asm | AlperMulayim/OperatingSystem | 8f3e697428dfebbc55046a842e8487aaa3dae200 | [
"MIT"
] | null | null | null | HW-1/ASMfiles/printB.asm | AlperMulayim/OperatingSystem | 8f3e697428dfebbc55046a842e8487aaa3dae200 | [
"MIT"
] | null | null | null | ; 8080 assembler code
.hexfile sum.hex
.binfile printB.com
; try "hex" for downloading in hex format
.download bin
.objcopy gobjcopy
.postbuild echo "OK!"
;.nodump
; OS call list
PRINT_B equ 1
PRINT_MEM equ 2
READ_B equ 3
READ_MEM equ 4
PRINT_STR equ 5
READ_STR equ 6
; Position for stack pointer
stack equ 0F000h
org 000H
jmp begin
; Start of our Operating System
GTU_OS: PUSH D
push D
push H
push psw
nop ; This is where we run our OS in C++, see the CPU8080::isSystemCall()
; function for the detail.
pop psw
pop h
pop d
pop D
ret
; ---------------------------------------------------------------
; YOU SHOULD NOT CHANGE ANYTHING ABOVE THIS LINE
;This program adds numbers from 0 to 10. The result is stored at variable
; sum. The results is also printed on the screen.
sum ds 2 ; will keep the sum
begin:
MVI a,READ_B
call GTU_OS
MVI a,PRINT_B
call GTU_OS
hlt ; end program | 20.163265 | 74 | 0.623482 |
28bf807b7a46e0a4f47f317755da8abd86ed83d7 | 428 | asm | Assembly | oeis/090/A090613.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/090/A090613.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/090/A090613.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A090613: Numbers k such that the k-th prime is congruent to 3 mod 7.
; Submitted by Jamie Morken(s1)
; 2,7,11,17,21,26,37,46,49,53,57,61,64,71,73,80,92,98,103,106,114,118,121,137,138,145,148,160,166,168,175,186,188,190,196,204,206,210,215,218,232,236,243,248,255,258,263,265,273,281,289,292,296,316,321,334
seq $0,45437 ; Primes congruent to 3 mod 7.
sub $0,1
seq $0,230980 ; Number of primes <= n, starting at n=0.
add $0,1
| 47.555556 | 205 | 0.705607 |
1464e0bc5b8d848bab2a955bf6b7d147fc803e01 | 532 | asm | Assembly | Basics and Integer Operations/Sum and Difference.asm | MrR0B0T777/MIPS_Programming | 5bbb84c8cf15b9e254f19b47a9e0b365ed7ca7d4 | [
"MIT"
] | null | null | null | Basics and Integer Operations/Sum and Difference.asm | MrR0B0T777/MIPS_Programming | 5bbb84c8cf15b9e254f19b47a9e0b365ed7ca7d4 | [
"MIT"
] | null | null | null | Basics and Integer Operations/Sum and Difference.asm | MrR0B0T777/MIPS_Programming | 5bbb84c8cf15b9e254f19b47a9e0b365ed7ca7d4 | [
"MIT"
] | null | null | null | .data
first: .asciiz "\nEnter the first integer please:"
second: .asciiz "\nEnter the second integer please:"
Sum: .asciiz "\nThe sum is ="
Difference: .asciiz "\nThe difference is ="
.text
main:
#first number
la $a0, first
li $v0, 4
syscall
li $v0, 5
syscall
move $t0, $v0
li $v0, 4
la $a0, second
syscall
li $v0,5
syscall
move $t1,$v0
add $t2, $t1, $t0
la $a0, Sum
li $v0, 4
syscall
move $a0, $t2
li $v0,1
syscall
sub $t2, $t0, $t1
la $a0, Difference
li $v0, 4
syscall
move $a0, $t2
li $v0,1
syscall
li $v0, 10
syscall
| 13.641026 | 52 | 0.657895 |
d796b916796eb06e474554d3a56e6a041a694fc9 | 346 | asm | Assembly | oeis/154/A154287.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/154/A154287.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/154/A154287.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A154287: (L)-sieve transform of {1,4,9,16,...,n^2,...}=A000290.
; Submitted by Jon Maiga
; 1,3,6,9,13,18,23,29,35,42,49,57,66,75,85,95,106,117,129,141,154,167,181,195,210,225,241,258,275,293,311,330,349,369,389,410,431,453,475,498,521,545,569
mov $1,$0
lpb $1
mov $1,$0
add $0,1
add $2,1
div $1,$2
sub $1,$2
add $0,$1
lpe
add $0,1
| 23.066667 | 153 | 0.615607 |
c4402cc2301fd2f25a2d35f1b394ae5936e3c78e | 665 | asm | Assembly | programs/oeis/000/A000975.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/000/A000975.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/000/A000975.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A000975: a(2n) = 2*a(2n-1), a(2n+1) = 2*a(2n)+1 (also a(n) is the n-th number without consecutive equal binary digits).
; 0,1,2,5,10,21,42,85,170,341,682,1365,2730,5461,10922,21845,43690,87381,174762,349525,699050,1398101,2796202,5592405,11184810,22369621,44739242,89478485,178956970,357913941,715827882,1431655765,2863311530,5726623061,11453246122,22906492245,45812984490,91625968981,183251937962,366503875925,733007751850,1466015503701,2932031007402,5864062014805,11728124029610,23456248059221,46912496118442,93824992236885,187649984473770,375299968947541,750599937895082,1501199875790165,3002399751580330,6004799503160661
mov $1,2
pow $1,$0
mul $1,2
div $1,3
| 83.125 | 504 | 0.82406 |
ee503f9d19e49c7ce930ae979df5e8080f5b8ac9 | 18,395 | asm | Assembly | Object/Optimized/kernel/KeyBoard.asm | collinsmichael/spartan | e0f85504d45fea8337cc3f87c357e6ac4034d3ba | [
"MIT"
] | 16 | 2018-04-24T20:50:57.000Z | 2022-01-09T22:51:35.000Z | Object/Optimized/kernel/KeyBoard.asm | collinsmichael/spartan | e0f85504d45fea8337cc3f87c357e6ac4034d3ba | [
"MIT"
] | 1 | 2019-08-11T12:27:45.000Z | 2019-12-02T12:25:41.000Z | Object/Optimized/kernel/KeyBoard.asm | collinsmichael/spartan | e0f85504d45fea8337cc3f87c357e6ac4034d3ba | [
"MIT"
] | 4 | 2018-07-23T20:10:19.000Z | 2021-09-29T17:23:15.000Z | ; Listing generated by Microsoft (R) Optimizing Compiler Version 18.00.40629.0
TITLE C:\Users\cex123\Desktop\FYP\develop\spartan\Source\Kernel\Device\Drivers\KeyBoard.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB OLDNAMES
PUBLIC ??_C@_06MMPHGNOC@Qwerty?$AA@ ; `string'
PUBLIC ??_C@_06BKOEAEMH@Dvorak?$AA@ ; `string'
PUBLIC ??_C@_07FGLBLJOD@Not?5Set?$AA@ ; `string'
PUBLIC ??_C@_04NBAFAEBM@?9r?9?9?$AA@ ; `string'
PUBLIC ??_C@_0BK@KIEHNOFM@Config?1KeyMaps?1Filter?4bin?$AA@ ; `string'
PUBLIC ??_C@_0BK@DOELONIE@Config?1KeyMaps?1LookUp?4bin?$AA@ ; `string'
PUBLIC ??_C@_0BK@NHEPGGCK@Config?1KeyMaps?1Qwerty?4bin?$AA@ ; `string'
PUBLIC ??_C@_0BK@JPKPPPK@Config?1KeyMaps?1Dvorak?4bin?$AA@ ; `string'
PUBLIC _KEYMAP
PUBLIC _Keyboard
EXTRN __imp__StrCmp:PROC
; COMDAT ??_C@_0BK@JPKPPPK@Config?1KeyMaps?1Dvorak?4bin?$AA@
CONST SEGMENT
??_C@_0BK@JPKPPPK@Config?1KeyMaps?1Dvorak?4bin?$AA@ DB 'Config/KeyMaps/Dv'
DB 'orak.bin', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BK@NHEPGGCK@Config?1KeyMaps?1Qwerty?4bin?$AA@
CONST SEGMENT
??_C@_0BK@NHEPGGCK@Config?1KeyMaps?1Qwerty?4bin?$AA@ DB 'Config/KeyMaps/Q'
DB 'werty.bin', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BK@DOELONIE@Config?1KeyMaps?1LookUp?4bin?$AA@
CONST SEGMENT
??_C@_0BK@DOELONIE@Config?1KeyMaps?1LookUp?4bin?$AA@ DB 'Config/KeyMaps/L'
DB 'ookUp.bin', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_0BK@KIEHNOFM@Config?1KeyMaps?1Filter?4bin?$AA@
CONST SEGMENT
??_C@_0BK@KIEHNOFM@Config?1KeyMaps?1Filter?4bin?$AA@ DB 'Config/KeyMaps/F'
DB 'ilter.bin', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_04NBAFAEBM@?9r?9?9?$AA@
CONST SEGMENT
??_C@_04NBAFAEBM@?9r?9?9?$AA@ DB '-r--', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_07FGLBLJOD@Not?5Set?$AA@
CONST SEGMENT
??_C@_07FGLBLJOD@Not?5Set?$AA@ DB 'Not Set', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_06BKOEAEMH@Dvorak?$AA@
CONST SEGMENT
??_C@_06BKOEAEMH@Dvorak?$AA@ DB 'Dvorak', 00H ; `string'
CONST ENDS
; COMDAT ??_C@_06MMPHGNOC@Qwerty?$AA@
CONST SEGMENT
??_C@_06MMPHGNOC@Qwerty?$AA@ DB 'Qwerty', 00H ; `string'
_KEYMAP DD 01H
_keyboard DD FLAT:_IKeyboard_Flush
DD FLAT:_IKeyboard_KeyDown
DD FLAT:_IKeyboard_GetLed
DD FLAT:_IKeyboard_SetLed
DD FLAT:_IKeyboard_GetKeyMap
DD FLAT:_IKeyboard_SetKeyMap
_Keyboard DD FLAT:_keyboard
PUBLIC _IKeyboard_SetKeyMap
PUBLIC _IKeyboard_GetKeyMap
PUBLIC _IKeyboard_GetLed
PUBLIC _IKeyboard_KeyDown
PUBLIC _IKeyboard_Flush
PUBLIC _IKeyboard_SetLed
PUBLIC _InstallKeyboard
PUBLIC _EnableKeyboard
ALIGN 4
_lookup DD 01H DUP (?)
_prnt DB 01H DUP (?)
ALIGN 4
_alt DB 01H DUP (?)
ALIGN 4
_pipe DD 01H DUP (?)
_caplock DB 01H DUP (?)
ALIGN 4
_filter DD 01H DUP (?)
?buf@?1??KeyboardIsr@@9@9 DB 04H DUP (?) ; `KeyboardIsr'::`2'::buf
_scrlock DB 01H DUP (?)
ALIGN 4
_shift DB 01H DUP (?)
ALIGN 4
_dvorak DD 01H DUP (?)
_numlock DB 01H DUP (?)
ALIGN 4
_qwerty DD 01H DUP (?)
_keybrd DB 0100H DUP (?)
_led DB 01H DUP (?)
ALIGN 4
_ctrl DB 01H DUP (?)
ALIGN 4
_win DB 01H DUP (?)
_BSS ENDS
; Function compile flags: /Ogspy
; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\device\drivers\keyboard.c
_TEXT SEGMENT
_base$ = 8 ; size = 4
_size$ = 12 ; size = 4
_EnableKeyboard PROC
; 179 : Device->Latch(IRQ_KBD, KeyboardIsr);
mov eax, DWORD PTR _Device
push OFFSET _KeyboardIsr
push 33 ; 00000021H
call DWORD PTR [eax]
pop ecx
; 180 : return true;
xor eax, eax
pop ecx
inc eax
; 181 : }
ret 0
_EnableKeyboard ENDP
_TEXT ENDS
; Function compile flags: /Ogspy
; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\device\drivers\keyboard.c
_TEXT SEGMENT
_base$ = 8 ; size = 4
_size$ = 12 ; size = 4
_InstallKeyboard PROC
; 136 : pipe = (CPipeAsync*)base;
mov eax, DWORD PTR _base$[esp-4]
push esi
push edi
; 137 : Pipe->CreateAsync(pipe, null, null);
xor esi, esi
mov DWORD PTR _pipe, eax
push esi
push esi
push eax
mov eax, DWORD PTR _Pipe
call DWORD PTR [eax+4]
; 138 :
; 139 : stosd(keybrd, 0, 256/4);
push 64 ; 00000040H
push esi
push OFFSET _keybrd
call _stosd
; 140 : pipe->Capacity -= 256;
mov eax, DWORD PTR _pipe
; 141 : pipe->Pointer += 256;
; 142 :
; 143 : CFile *file = 0;
; 144 : file = FileIO->Open("Config/KeyMaps/Filter.bin", "-r--");
mov edi, OFFSET ??_C@_04NBAFAEBM@?9r?9?9?$AA@
push edi
push OFFSET ??_C@_0BK@KIEHNOFM@Config?1KeyMaps?1Filter?4bin?$AA@
add DWORD PTR [eax+8], -256 ; ffffff00H
add DWORD PTR [eax], 256 ; 00000100H
mov eax, DWORD PTR _FileIO
call DWORD PTR [eax+12]
mov esi, eax
add esp, 32 ; 00000020H
; 145 : if (!file) {
test esi, esi
jne SHORT $LN16@InstallKey
$LN19@InstallKey:
; 146 : Logger(" [FAIL] FileIO->Open(Config/KeyMaps/Filter.bin, -r--);");
; 147 : return false;
xor eax, eax
jmp $LN17@InstallKey
$LN16@InstallKey:
; 148 : }
; 149 : filter = FileIO->Base(file);
mov eax, DWORD PTR _FileIO
push esi
call DWORD PTR [eax+36]
mov DWORD PTR _filter, eax
; 150 : FileIO->Close(file);
mov eax, DWORD PTR _FileIO
push esi
call DWORD PTR [eax+16]
; 151 :
; 152 : file = FileIO->Open("Config/KeyMaps/LookUp.bin", "-r--");
mov eax, DWORD PTR _FileIO
push edi
push OFFSET ??_C@_0BK@DOELONIE@Config?1KeyMaps?1LookUp?4bin?$AA@
call DWORD PTR [eax+12]
mov esi, eax
add esp, 16 ; 00000010H
; 153 : if (!file) {
test esi, esi
je SHORT $LN19@InstallKey
; 154 : Logger(" [FAIL] FileIO->Open(Config/KeyMaps/LookUp.bin, -r--);");
; 155 : return false;
; 156 : }
; 157 : lookup = FileIO->Base(file);
mov eax, DWORD PTR _FileIO
push esi
call DWORD PTR [eax+36]
mov DWORD PTR _lookup, eax
; 158 : FileIO->Close(file);
mov eax, DWORD PTR _FileIO
push esi
call DWORD PTR [eax+16]
; 159 :
; 160 : file = FileIO->Open("Config/KeyMaps/Qwerty.bin", "-r--");
mov eax, DWORD PTR _FileIO
push edi
push OFFSET ??_C@_0BK@NHEPGGCK@Config?1KeyMaps?1Qwerty?4bin?$AA@
call DWORD PTR [eax+12]
mov esi, eax
add esp, 16 ; 00000010H
; 161 : if (!file) {
test esi, esi
je SHORT $LN19@InstallKey
; 162 : Logger(" [FAIL] FileIO->Open(Config/KeyMaps/Qwerty.bin, -r--);");
; 163 : return false;
; 164 : }
; 165 : qwerty = FileIO->Base(file);
mov eax, DWORD PTR _FileIO
push esi
call DWORD PTR [eax+36]
mov DWORD PTR _qwerty, eax
; 166 : FileIO->Close(file);
mov eax, DWORD PTR _FileIO
push esi
call DWORD PTR [eax+16]
; 167 :
; 168 : file = FileIO->Open("Config/KeyMaps/Dvorak.bin", "-r--");
mov eax, DWORD PTR _FileIO
push edi
push OFFSET ??_C@_0BK@JPKPPPK@Config?1KeyMaps?1Dvorak?4bin?$AA@
call DWORD PTR [eax+12]
mov esi, eax
add esp, 16 ; 00000010H
; 169 : if (!file) {
test esi, esi
je $LN19@InstallKey
; 170 : Logger(" [FAIL] FileIO->Open(Config/KeyMaps/Dvorak.bin, -r--);");
; 171 : return false;
; 172 : }
; 173 : dvorak = FileIO->Base(file);
mov eax, DWORD PTR _FileIO
push esi
call DWORD PTR [eax+36]
mov DWORD PTR _dvorak, eax
; 174 : FileIO->Close(file);
mov eax, DWORD PTR _FileIO
push esi
call DWORD PTR [eax+16]
pop ecx
; 175 : return true;
xor eax, eax
pop ecx
inc eax
$LN17@InstallKey:
; 176 : }
pop edi
pop esi
ret 0
_InstallKeyboard ENDP
_TEXT ENDS
; Function compile flags: /Ogspy
; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\device\drivers\keyboard.c
_TEXT SEGMENT
_toggle$ = 8 ; size = 4
_IKeyboard_SetLed PROC
; 38 : Ps2Command(0xED, led = toggle & 7);
mov eax, DWORD PTR _toggle$[esp-4]
and al, 7
mov BYTE PTR _led, al
call _Ps2Command
; 39 : return true;
xor eax, eax
inc eax
; 40 : }
ret 0
_IKeyboard_SetLed ENDP
_TEXT ENDS
; Function compile flags: /Ogspy
; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\device\drivers\keyboard.c
_TEXT SEGMENT
_IKeyboard_Flush PROC
; 43 : if (~inb(PS2_STATUS) & PS2_DATA_FULL) return;
push 100 ; 00000064H
call _inb
not eax
pop ecx
test al, 1
jne SHORT $LN14@IKeyboard_
; 44 : char scan = inb(PS2_DATA);
push edi
push 96 ; 00000060H
call _inb
; 45 : if (scan != 0xE0) return;
movsx eax, al
mov edi, 224 ; 000000e0H
pop ecx
cmp eax, edi
jne SHORT $LN15@IKeyboard_
; 46 : for (int i = 0; i < 1*KHz; i++) {
push esi
xor esi, esi
$LL4@IKeyboard_:
; 47 : if (inb(PS2_DATA) != 0xE0) break;
push 96 ; 00000060H
call _inb
pop ecx
cmp eax, edi
jne SHORT $LN16@IKeyboard_
; 46 : for (int i = 0; i < 1*KHz; i++) {
inc esi
cmp esi, 1000 ; 000003e8H
jl SHORT $LL4@IKeyboard_
$LN16@IKeyboard_:
pop esi
$LN15@IKeyboard_:
pop edi
$LN14@IKeyboard_:
; 48 : }
; 49 : }
ret 0
_IKeyboard_Flush ENDP
_TEXT ENDS
; Function compile flags: /Ogspy
; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\device\drivers\keyboard.c
_TEXT SEGMENT
_scancode$ = 8 ; size = 4
_IKeyboard_KeyDown PROC
; 52 : return true;
xor eax, eax
inc eax
; 53 : }
ret 0
_IKeyboard_KeyDown ENDP
_TEXT ENDS
; Function compile flags: /Ogspy
; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\device\drivers\keyboard.c
_TEXT SEGMENT
_IKeyboard_GetLed PROC
; 56 : return led;
movzx eax, BYTE PTR _led
; 57 : }
ret 0
_IKeyboard_GetLed ENDP
_TEXT ENDS
; Function compile flags: /Ogspy
; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\device\drivers\keyboard.c
_TEXT SEGMENT
_IKeyboard_GetKeyMap PROC
; 61 : if (KEYMAP == 0x01) return "Qwerty";
mov eax, DWORD PTR _KEYMAP
cmp eax, 1
jne SHORT $LN2@IKeyboard_
mov eax, OFFSET ??_C@_06MMPHGNOC@Qwerty?$AA@
; 64 : }
ret 0
$LN2@IKeyboard_:
; 62 : if (KEYMAP == 0x02) return "Dvorak";
cmp eax, 2
mov eax, OFFSET ??_C@_06BKOEAEMH@Dvorak?$AA@
je SHORT $LN3@IKeyboard_
; 63 : return "Not Set";
mov eax, OFFSET ??_C@_07FGLBLJOD@Not?5Set?$AA@
$LN3@IKeyboard_:
; 64 : }
ret 0
_IKeyboard_GetKeyMap ENDP
_TEXT ENDS
; Function compile flags: /Ogspy
; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\device\drivers\keyboard.c
_TEXT SEGMENT
_layout$ = 8 ; size = 4
_IKeyboard_SetKeyMap PROC
; 67 : if (StrCmp(layout, "Qwerty") == 0) KEYMAP = 0x01;
push OFFSET ??_C@_06MMPHGNOC@Qwerty?$AA@
push DWORD PTR _layout$[esp]
call DWORD PTR __imp__StrCmp
pop ecx
pop ecx
test eax, eax
jne SHORT $LN2@IKeyboard_
mov DWORD PTR _KEYMAP, 1
$LN2@IKeyboard_:
; 68 : if (StrCmp(layout, "Dvorak") == 0) KEYMAP = 0x02;
push OFFSET ??_C@_06BKOEAEMH@Dvorak?$AA@
push DWORD PTR _layout$[esp]
call DWORD PTR __imp__StrCmp
pop ecx
pop ecx
test eax, eax
jne SHORT $LN1@IKeyboard_
mov DWORD PTR _KEYMAP, 2
$LN1@IKeyboard_:
; 69 : return true;
xor eax, eax
inc eax
; 70 : }
ret 0
_IKeyboard_SetKeyMap ENDP
_TEXT ENDS
; Function compile flags: /Ogspy
; File c:\users\cex123\desktop\fyp\develop\spartan\source\kernel\device\drivers\keyboard.c
_TEXT SEGMENT
_ctrl$1$ = -13 ; size = 1
_down$1$ = -13 ; size = 1
_scan$1$ = -12 ; size = 1
_key$2$ = -11 ; size = 1
_shift$1$ = -10 ; size = 1
_alt$1$ = -9 ; size = 1
_packet$ = -8 ; size = 8
_err$ = 8 ; size = 4
_esp$ = 12 ; size = 4
_KeyboardIsr PROC
; 72 : static u32 KeyboardIsr(u32 err, u32 esp) {
sub esp, 16 ; 00000010H
; 73 : static u8 buf[4];
; 74 : buf[3] = buf[2];
mov al, BYTE PTR ?buf@?1??KeyboardIsr@@9@9+2
mov BYTE PTR ?buf@?1??KeyboardIsr@@9@9+3, al
; 75 : buf[2] = buf[1];
mov al, BYTE PTR ?buf@?1??KeyboardIsr@@9@9+1
mov BYTE PTR ?buf@?1??KeyboardIsr@@9@9+2, al
; 76 : buf[1] = buf[0];
mov al, BYTE PTR ?buf@?1??KeyboardIsr@@9@9
; 77 : buf[0] = inb(PS2_DATA);
push 96 ; 00000060H
mov BYTE PTR ?buf@?1??KeyboardIsr@@9@9+1, al
call _inb
pop ecx
mov cl, al
mov BYTE PTR _scan$1$[esp+16], cl
mov BYTE PTR ?buf@?1??KeyboardIsr@@9@9, cl
; 78 :
; 79 : switch (buf[0]) {
cmp cl, 224 ; 000000e0H
jb SHORT $LN12@KeyboardIs
cmp cl, 225 ; 000000e1H
jbe $LN10@KeyboardIs
cmp cl, 250 ; 000000faH
jne SHORT $LN12@KeyboardIs
; 80 : case 0xFA: outb(PS2_DATA, 0xFA);
push 250 ; 000000faH
push 96 ; 00000060H
call _outb
pop ecx
pop ecx
; 81 : case 0xE0:
; 82 : case 0xE1: return esp;
jmp $LN10@KeyboardIs
$LN12@KeyboardIs:
; 83 : }
; 84 : if (buf[1] == 0xE1) return esp;
mov dl, BYTE PTR ?buf@?1??KeyboardIsr@@9@9+1
cmp dl, 225 ; 000000e1H
je $LN10@KeyboardIs
; 85 :
; 86 : u8 scan = buf[0];
; 87 : u8 down = (scan & 0x80) ? 0 : 1;
push ebx
mov al, cl
; 88 : u8 key = (scan & 0x7F);
mov bh, cl
shr al, 7
and bh, 127 ; 0000007fH
push ebp
not al
and al, 1
mov BYTE PTR _down$1$[esp+24], al
push esi
push edi
; 89 : if (buf[1] == 0xE0) key += 0x80;
cmp dl, 224 ; 000000e0H
jne SHORT $LN8@KeyboardIs
sub bh, -128 ; ffffff80H
$LN8@KeyboardIs:
; 90 : if (buf[2] == 0xE1) key = 0xC0;
cmp BYTE PTR ?buf@?1??KeyboardIsr@@9@9+2, 225 ; 000000e1H
jne SHORT $LN7@KeyboardIs
mov bh, 192 ; 000000c0H
$LN7@KeyboardIs:
; 91 :
; 92 : u8 toggle = led;
mov cl, BYTE PTR _led
mov bl, cl
; 93 : if (down) {
test al, al
je SHORT $LN2@KeyboardIs
; 94 : if (key == 0x3A) toggle ^= PS2_CAPLOCK;
cmp bh, 58 ; 0000003aH
jne SHORT $LN5@KeyboardIs
xor bl, 4
$LN5@KeyboardIs:
; 95 : if (key == 0x45) toggle ^= PS2_NUMLOCK;
cmp bh, 69 ; 00000045H
jne SHORT $LN4@KeyboardIs
xor bl, 2
$LN4@KeyboardIs:
; 96 : if (key == 0x46) toggle ^= PS2_SCRLOCK;
cmp bh, 70 ; 00000046H
jne SHORT $LN3@KeyboardIs
xor bl, 1
$LN3@KeyboardIs:
; 97 : if (led != toggle) IKeyboard_SetLed(led = toggle);
cmp cl, bl
je SHORT $LN2@KeyboardIs
movzx eax, bl
push eax
mov BYTE PTR _led, bl
call _IKeyboard_SetLed
pop ecx
$LN2@KeyboardIs:
; 98 : }
; 99 : key = filter[key];
mov eax, DWORD PTR _filter
; 100 : keybrd[key] = down;
; 101 :
; 102 : keybrd[KEY_NUMLOCK] = (toggle & PS2_NUMLOCK) ? 1 : 0;
xor edx, edx
movzx ecx, bh
inc edx
mov bh, BYTE PTR _down$1$[esp+32]
; 103 : keybrd[KEY_CAPSLOCK] = (toggle & PS2_CAPLOCK) ? 1 : 0;
; 104 : keybrd[KEY_SCRLLOCK] = (toggle & PS2_SCRLOCK) ? 1 : 0;
; 105 :
; 106 : numlock = keybrd[KEY_NUMLOCK ];
; 107 : caplock = keybrd[KEY_CAPSLOCK];
; 108 : scrlock = keybrd[KEY_SCRLLOCK];
; 109 : ctrl = keybrd[KEY_LCTRL ] | keybrd[KEY_RCTRL ];
; 110 : shift = keybrd[KEY_LSHIFT] | keybrd[KEY_RSHIFT];
; 111 : alt = keybrd[KEY_LALT ] | keybrd[KEY_RALT ];
; 112 : win = keybrd[KEY_LWIN ] | keybrd[KEY_RWIN ];
; 113 : prnt = keybrd[KEY_PRINT ];
; 114 :
; 115 : u8 *keymap = (KEYMAP == 0x01) ? qwerty : dvorak;
mov esi, DWORD PTR _qwerty
mov al, BYTE PTR [ecx+eax]
mov cl, bl
movzx ebp, al
mov ch, bl
mov BYTE PTR _key$2$[esp+32], al
and bl, dl
mov BYTE PTR _scrlock, bl
shr cl, 1
mov BYTE PTR _keybrd[ebp], bh
and cl, dl
mov al, BYTE PTR _keybrd+79
or al, BYTE PTR _keybrd+78
mov BYTE PTR _ctrl$1$[esp+32], al
mov BYTE PTR _ctrl, al
mov al, BYTE PTR _keybrd+75
or al, BYTE PTR _keybrd+74
mov BYTE PTR _alt$1$[esp+32], al
mov BYTE PTR _alt, al
mov al, BYTE PTR _keybrd+73
or al, BYTE PTR _keybrd+72
mov BYTE PTR _keybrd+83, bl
mov bl, BYTE PTR _keybrd+77
or bl, BYTE PTR _keybrd+76
shr ch, 2
and ch, dl
mov BYTE PTR _win, al
mov al, BYTE PTR _keybrd+80
mov BYTE PTR _keybrd+82, cl
mov BYTE PTR _keybrd+81, ch
mov BYTE PTR _numlock, cl
mov BYTE PTR _caplock, ch
mov BYTE PTR _shift$1$[esp+32], bl
mov BYTE PTR _shift, bl
mov BYTE PTR _prnt, al
cmp DWORD PTR _KEYMAP, edx
je SHORT $LN17@KeyboardIs
mov esi, DWORD PTR _dvorak
$LN17@KeyboardIs:
; 116 : char ascii = keymap[key + shift*128 + numlock*256];
movzx edx, cl
add edx, edx
movzx edi, bl
lea eax, DWORD PTR [edx+edi]
shl eax, 7
add eax, ebp
mov bl, BYTE PTR [eax+esi]
; 117 : if (caplock && (lookup[ascii] & (UPPER|LOWER))) {
test ch, ch
je SHORT $LN1@KeyboardIs
mov eax, DWORD PTR _lookup
movsx ecx, bl
test BYTE PTR [ecx+eax], 6
je SHORT $LN1@KeyboardIs
; 118 : ascii = keymap[key + (1-shift)*128 + numlock*256];
sub edx, edi
inc edx
shl edx, 7
add edx, ebp
mov bl, BYTE PTR [edx+esi]
$LN1@KeyboardIs:
; 119 : }
; 120 :
; 121 : //Debug(" [KBD] S=%X K=%X A=%X (%c)\n", scan, key, ascii, ascii);
; 122 : u8 packet[8];
; 123 : packet[0] = scan;
mov al, BYTE PTR _scan$1$[esp+32]
mov BYTE PTR _packet$[esp+32], al
; 124 : packet[1] = down;
; 125 : packet[2] = key;
mov al, BYTE PTR _key$2$[esp+32]
mov BYTE PTR _packet$[esp+34], al
; 126 : packet[3] = ascii;
; 127 : packet[4] = ctrl;
mov al, BYTE PTR _ctrl$1$[esp+32]
mov BYTE PTR _packet$[esp+36], al
; 128 : packet[5] = shift;
mov al, BYTE PTR _shift$1$[esp+32]
mov BYTE PTR _packet$[esp+37], al
; 129 : packet[6] = alt;
mov al, BYTE PTR _alt$1$[esp+32]
mov BYTE PTR _packet$[esp+38], al
; 130 : packet[7] = led;
mov al, BYTE PTR _led
mov BYTE PTR _packet$[esp+39], al
; 131 : Pipe->WriteAsync(pipe, packet, 8);
lea eax, DWORD PTR _packet$[esp+32]
push 8
push eax
mov eax, DWORD PTR _Pipe
push DWORD PTR _pipe
mov BYTE PTR _packet$[esp+45], bh
mov BYTE PTR _packet$[esp+47], bl
call DWORD PTR [eax+32]
add esp, 12 ; 0000000cH
pop edi
pop esi
pop ebp
pop ebx
$LN10@KeyboardIs:
; 132 : return esp;
mov eax, DWORD PTR _esp$[esp+12]
; 133 : }
add esp, 16 ; 00000010H
ret 0
_KeyboardIsr ENDP
_TEXT ENDS
END
| 22.59828 | 91 | 0.616146 |
cba88e559bcb674146ec0af6e5487ef60bda790e | 191 | asm | Assembly | putchar.asm | imneme/spectrum-minilib | e3b999f209f8cf1014aeb240accff8b7b15270d6 | [
"MIT"
] | 1 | 2020-09-22T09:18:19.000Z | 2020-09-22T09:18:19.000Z | putchar.asm | imneme/spectrum-minilib | e3b999f209f8cf1014aeb240accff8b7b15270d6 | [
"MIT"
] | null | null | null | putchar.asm | imneme/spectrum-minilib | e3b999f209f8cf1014aeb240accff8b7b15270d6 | [
"MIT"
] | null | null | null | INCLUDE "romdefs.inc"
SECTION code_clib
GLOBAL _putchar
GLOBAL putchar_a
_putchar:
ld a,l
putchar_a:
cp '\n'
jr nz, printit
ld a,13
printit:
rst $10
ret
| 11.9375 | 22 | 0.612565 |
2c60d6867c9dc43c8e0da493bdbedf0226b22e12 | 24,439 | asm | Assembly | sound/musicasm/Continue.asm | NatsumiFox/Sonic-3-93-Nov-03 | 032e4fc25f243636d458639c4a4311caca898f96 | [
"MIT"
] | 7 | 2019-12-05T00:35:57.000Z | 2022-02-27T20:00:33.000Z | sound/musicasm/Continue.asm | NatsumiFox/Sonic-3-93-Nov-03 | 032e4fc25f243636d458639c4a4311caca898f96 | [
"MIT"
] | null | null | null | sound/musicasm/Continue.asm | NatsumiFox/Sonic-3-93-Nov-03 | 032e4fc25f243636d458639c4a4311caca898f96 | [
"MIT"
] | null | null | null | Continue_Header:
sHeaderInit ; Z80 offset is $BA99
sHeaderPatch Continue_Patches
sHeaderCh $06, $03
sHeaderTempo $01, $43
sHeaderDAC Continue_DAC
sHeaderFM Continue_FM1, $18, $16
sHeaderFM Continue_FM2, $18, $14
sHeaderFM Continue_FM3, $0C, $12
sHeaderFM Continue_FM4, $0C, $12
sHeaderFM Continue_FM5, $0C, $18
sHeaderPSG Continue_PSG1, $F4, $04, $00, v0C
sHeaderPSG Continue_PSG2, $F4, $04, $00, v0C
sHeaderPSG Continue_PSG3, $00, $03, $00, v0C
dc.b $F2, $F2 ; Unused
Continue_DAC:
dc.b dKick, $04, nRst, dKick, dSnare, nRst, dSnare, nRst
dc.b $08, dSnare, $02, dSnare, dSnare, $04, dSnare, dSnare
Continue_Jump9:
dc.b dKick, nRst, dKick, dSnare, nRst, $08, dKick, $04
dc.b nRst, dKick, dSnare, nRst, dKick, nRst, $08, dKick
dc.b $04, dSnare, nRst, $08, dKick, $04, nRst, dKick
dc.b dSnare, nRst, $08, dKick, $04, nRst, dKick, dSnare
dc.b nRst, $08, dKick, $04, nRst, dKick, dSnare, nRst
dc.b dKick, nRst, $08, dKick, $04, dSnare, nRst, $08
dc.b dKick, $04, nRst, dKick, dSnare, nRst, $08, dKick
dc.b $04, nRst, dKick, dSnare, nRst, $08, dKick, $04
dc.b nRst, dKick, dSnare, nRst, dKick, nRst, $08, dKick
dc.b $04, dSnare, nRst, $08, dKick, $04, nRst, dKick
dc.b dSnare, nRst, $08, dKick, $04, nRst, dKick, dSnare
dc.b nRst, $08, dKick, $04, nRst, dKick, dSnare, nRst
dc.b $08, dKick, $04, nRst, dKick, dSnare, nRst, dSnare
dc.b nRst, $08, dSnare, $02, dSnare, dSnare, $04, dSnare
dc.b dSnare
sJump Continue_Jump9
dc.b $80, $7F, $80, $80, $80, $53, $F2 ; Unused
Continue_FM1:
sPatFM $03
ssDetune $FE
ssModZ80 $0F, $01, $06, $06
ssDetune $01
sPan spRight
dc.b nRst, $08, nEb4, $04, nE4, $08, nC4, $04
dc.b nD4, $08, nC4, $04, nA3, $08, nC4, $04
Continue_Jump1:
dc.b nRst, $14, nBb3, $02, nC4, $0E, nA3, $04
dc.b nRst, $08, nG3, $0C, nA3, $08, nEb3, $02
dc.b nE3, nG3, $08, nA3, $04, nRst, $20, nBb3
dc.b $02, nC4, $0E, nA3, $04, nRst, $08, nEb3
dc.b $0C, nD3, $08, nC3, $04, nRst, $24, nA2
dc.b $0C, nC3, nD3, $08, nEb3, $0C, nD3, $04
dc.b nEb3, $08, nD3, $04, nEb3, $08, nD3, $04
dc.b nC3, $08, nRst, $0C, nEb4, $04, nE4, $08
dc.b nC4, $04, nD4, $08, nC4, $04, nRst, $08
dc.b nEb4, $04, nRst, $08, nEb4, $04, nE4, $08
dc.b nC4, $04, nD4, $08, nC4, $04, nA3, $08
dc.b nC4, $04
sJump Continue_Jump1
dc.b $80, $7F, $80, $80, $80, $80, $4C, $F2 ; Unused
Continue_FM2:
sPatFM $14
ssDetune $00
ssModZ80 $02, $01, $01, $02
dc.b nF1, $0B, nRst, $01, nFs1, $07, nRst, $01
dc.b nG1, $03, nRst, $09, nG0, $03, nRst, $01
dc.b nG0, $0B, nRst, $01
Continue_Jump2:
dc.b nC1, $0B, nRst, $01, nE1, $0B, nRst, $01
dc.b nF1, $0B, nRst, $01, nFs1, $07, nRst, $01
dc.b nG1, $03, nRst, $09, nG1, $03, nRst, $01
dc.b nC1, $0B, nRst, $01, nE1, $0B, nRst, $01
dc.b nC1, $0B, nRst, $01, nA0, $0B, nRst, $01
dc.b nC1, $0B, nRst, $01, nD1, $0B, nRst, $01
dc.b nEb1, $07, nRst, $01, nE1, $03, nRst, $09
dc.b nE1, $03, nRst, $01, nA0, $0B, nRst, $01
dc.b nC1, $0B, nRst, $01, nA0, $0B, nRst, $01
dc.b nF0, $0B, nRst, $01, nA0, $0B, nRst, $01
dc.b nC1, $0B, nRst, $01, nD1, $07, nRst, $01
dc.b nEb1, $03, nRst, $09, nEb1, $03, nRst, $01
dc.b nC1, $0B, nRst, $01, nA0, $0B, nRst, $01
dc.b nF0, $0B, nRst, $01, nD1, $07, nRst, $01
dc.b nD1, $03, nRst, $01, nD1, $0B, nRst, $01
dc.b nE1, $07, nRst, $01, nE1, $03, nRst, $01
dc.b nE1, $0B, nRst, $01, nF1, $0B, nRst, $01
dc.b nFs1, $07, nRst, $01, nG1, $03, nRst, $09
dc.b nG0, $03, nRst, $01, nG0, $0B, nRst, $01
sJump Continue_Jump2
dc.b $80, $7F, $80, $80, $80, $80, $80, $41 ; Unused
dc.b $F2 ; Unused
Continue_FM3:
sPatFM $06
ssDetune $01
ssModZ80 $0A, $01, $03, $06
dc.b nRst, $2C, nG3, $03, nRst, $01
Continue_Jump3:
dc.b nRst, $08, nG3, $0A, nF3, $01, nE3, nD3
dc.b nC3, nBb2, nA2, nG2, nF2, nE2, nD2, nRst
dc.b $38, nG3, $08, nE3, $03, nRst, $09, nE3
dc.b $0A, nD3, $01, nC3, nBb2, nA2, nG2, nF2
dc.b nE2, nD2, nC2, nBb1, nRst, $38, nE3, $08
dc.b nC3, $03, nRst, $09, nC3, $0A, nBb2, $01
dc.b nA2, nG2, nF2, nE2, nD2, nC2, nBb1, nA1
dc.b nG1, nRst, $38, nA3, $0C, nF3, $18, nG3
dc.b nA3, $0C, nA3, $08, nB3, $04, nRst, $14
dc.b nG3, $04
sJump Continue_Jump3
dc.b $80, $7F, $80, $80, $5C, $F2 ; Unused
Continue_FM4:
sPatFM $06
ssDetune $FF
ssModZ80 $0A, $01, $03, $06
dc.b nRst, $2C, nC4, $03, nRst, $01
Continue_Jump4:
dc.b nRst, $08, nC4, $0A, nBb3, $01, nA3, nG3
dc.b nF3, nE3, nD3, nC3, nBb2, nA2, nG2, nRst
dc.b $38, nC4, $08, nA3, $03, nRst, $09, nA3
dc.b $0A, nG3, $01, nF3, nE3, nD3, nC3, nBb2
dc.b nA2, nG2, nF2, nE2, nRst, $38, nA3, $08
dc.b nF3, $03, nRst, $09, nF3, $0A, nEb3, $01
dc.b nD3, nC3, nBb2, nA2, nG2, nF2, nEb2, nD2
dc.b nC2, nRst, $38, nC4, $0C, nA3, $18, nB3
dc.b nC4, $0C, nC4, $08, nD4, $04, nRst, $14
dc.b nC4, $04
sJump Continue_Jump4
dc.b $80, $7F, $80, $80, $5C, $F2 ; Unused
Continue_FM5:
sPatFM $08
ssDetune $01
ssModZ80 $0F, $01, $06, $06
ssDetune $FF
sPan spLeft
dc.b nRst, $01, nRst, $08, nEb4, $04, nE4, $08
dc.b nC4, $04, nD4, $08, nC4, $04, nA3, $08
dc.b nC4, $04
Continue_Jump5:
dc.b nRst, $14, nBb3, $02, nC4, $0E, nA3, $04
dc.b nRst, $08, nG3, $0C, nA3, $08, nEb3, $02
dc.b nE3, nG3, $08, nA3, $04, nRst, $20, nBb3
dc.b $02, nC4, $0E, nA3, $04, nRst, $08, nEb3
dc.b $0C, nD3, $08, nC3, $04, nRst, $24, nA2
dc.b $0C, nC3, nD3, $08, nEb3, $0C, nD3, $04
dc.b nEb3, $08, nD3, $04, nEb3, $08, nD3, $04
dc.b nC3, $08, nRst, $0C, nEb4, $04, nE4, $08
dc.b nC4, $04, nD4, $08, nC4, $04, nRst, $08
dc.b nEb4, $04, nRst, $08, nEb4, $04, nE4, $08
dc.b nC4, $04, nD4, $08, nC4, $04, nA3, $08
dc.b nC4, $04
sJump Continue_Jump5
dc.b $80, $7F, $80, $80, $80, $80, $4C, $F2 ; Unused
Continue_PSG1:
sVolEnvPSG v04
dc.b nRst, $30
Continue_Jump6:
dc.b nRst, $08, nC4, $02, nRst, nC5, nRst, $06
dc.b nC4, $02, nRst, nC5, nRst, $0A, nC4, $02
dc.b nRst, $06, nC5, $02, nRst, $16, nC4, $02
dc.b nRst, nC5, nRst, $12, nC5, $02, nRst, $0A
dc.b nA3, $02, nRst, nA4, nRst, $06, nA3, $02
dc.b nRst, nA4, nRst, $0A, nA3, $02, nRst, $06
dc.b nA4, $02, nRst, $0A, nEb4, $02, nRst, nE4
dc.b nRst, $06, nG4, $02, nRst, nA4, nRst, $06
dc.b nE4, $02, nRst, $0A, nE4, $02, nRst, $0A
dc.b nF3, $02, nRst, nF4, nRst, $06, nF3, $02
dc.b nRst, nF4, nRst, $0A, nF3, $02, nRst, $06
dc.b nF4, $02, nRst, $16, nF3, $02, nRst, nF4
dc.b nRst, $12, nF4, $02, nRst, $0E, nF4, $02
dc.b nRst, $06, nE4, $02, nRst, $1A, nF4, $02
dc.b nRst, $0A, nFs4, $02, nRst, $06, nG4, $02
dc.b nRst, $1A
sJump Continue_Jump6
dc.b $F2 ; Unused
Continue_PSG2:
sVolEnvPSG v04
dc.b nRst, $30
Continue_Jump7:
dc.b nRst, $08, nE3, $02, nRst, nE4, nRst, $06
dc.b nE3, $02, nRst, nE4, nRst, $0A, nE3, $02
dc.b nRst, $06, nE4, $02, nRst, $16, nE3, $02
dc.b nRst, nE4, nRst, $12, nE4, $02, nRst, $0A
dc.b nC3, $02, nRst, nC4, nRst, $06, nC3, $02
dc.b nRst, nC4, nRst, $0A, nC3, $02, nRst, $06
dc.b nC4, $02, nRst, $0A, nC3, $02, nRst, nC4
dc.b nRst, $06, nC3, $02, nRst, nC4, nRst, $0A
dc.b nC3, $02, nRst, $06, nC4, $02, nRst, $0A
dc.b nA2, $02, nRst, nA3, nRst, $06, nA2, $02
dc.b nRst, nA3, nRst, $0A, nA2, $02, nRst, $06
dc.b nA3, $02, nRst, $16, nA2, $02, nRst, nA3
dc.b nRst, $12, nA3, $02, nRst, $0E, nA3, $02
dc.b nRst, $06, nG3, $02, nRst, $1A, nA3, $02
dc.b nRst, $0A, nBb3, $02, nRst, $06, nB3, $02
dc.b nRst, $1A
sJump Continue_Jump7
dc.b $F2 ; Unused
Continue_PSG3:
sNoisePSG $E7
Continue_Jump8:
sVolEnvPSG v04
dc.b nB6, $10
sVolEnvPSG v01
dc.b nB6, $08
sVolEnvPSG v04
dc.b nB6, $10
sVolEnvPSG v01
dc.b nB6, $08
sVolEnvPSG v04
dc.b nB6, $10
sVolEnvPSG v01
dc.b nB6, $08
sVolEnvPSG v04
dc.b nB6, $10
sVolEnvPSG v01
dc.b nB6, $08
sVolEnvPSG v04
dc.b nB6, $10
sVolEnvPSG v01
dc.b nB6, $08
sVolEnvPSG v04
dc.b nB6, $10
sVolEnvPSG v01
dc.b nB6, $08
sVolEnvPSG v04
dc.b nB6, $10
sVolEnvPSG v01
dc.b nB6, $08
sVolEnvPSG v04
dc.b nB6, $18
sJump Continue_Jump8
dc.b $F2, $F2 ; Unused
Continue_Patches:
; Patch $00
; $3C
; $01, $00, $00, $00, $1F, $1F, $15, $1F
; $11, $0D, $12, $05, $07, $04, $09, $02
; $55, $3A, $25, $1A, $1A, $80, $07, $80
spAlgorithm $04
spFeedback $07
spDetune $00, $00, $00, $00
spMultiple $01, $00, $00, $00
spRateScale $00, $00, $00, $00
spAttackRt $1F, $15, $1F, $1F
spAmpMod $00, $00, $00, $00
spSustainRt $11, $12, $0D, $05
spSustainLv $05, $02, $03, $01
spDecayRt $07, $09, $04, $02
spReleaseRt $05, $05, $0A, $0A
spTotalLv $1A, $07, $00, $00
; Patch $01
; $3D
; $01, $01, $01, $01, $94, $19, $19, $19
; $0F, $0D, $0D, $0D, $07, $04, $04, $04
; $25, $1A, $1A, $1A, $15, $80, $80, $80
spAlgorithm $05
spFeedback $07
spDetune $00, $00, $00, $00
spMultiple $01, $01, $01, $01
spRateScale $02, $00, $00, $00
spAttackRt $14, $19, $19, $19
spAmpMod $00, $00, $00, $00
spSustainRt $0F, $0D, $0D, $0D
spSustainLv $02, $01, $01, $01
spDecayRt $07, $04, $04, $04
spReleaseRt $05, $0A, $0A, $0A
spTotalLv $15, $00, $00, $00
; Patch $02
; $03
; $00, $D7, $33, $02, $5F, $9F, $5F, $1F
; $13, $0F, $0A, $0A, $10, $0F, $02, $09
; $35, $15, $25, $1A, $13, $16, $15, $80
spAlgorithm $03
spFeedback $00
spDetune $00, $03, $0D, $00
spMultiple $00, $03, $07, $02
spRateScale $01, $01, $02, $00
spAttackRt $1F, $1F, $1F, $1F
spAmpMod $00, $00, $00, $00
spSustainRt $13, $0A, $0F, $0A
spSustainLv $03, $02, $01, $01
spDecayRt $10, $02, $0F, $09
spReleaseRt $05, $05, $05, $0A
spTotalLv $13, $15, $16, $00
; Patch $03
; $34
; $70, $72, $31, $31, $1F, $1F, $1F, $1F
; $10, $06, $06, $06, $01, $06, $06, $06
; $35, $1A, $15, $1A, $10, $80, $18, $80
spAlgorithm $04
spFeedback $06
spDetune $07, $03, $07, $03
spMultiple $00, $01, $02, $01
spRateScale $00, $00, $00, $00
spAttackRt $1F, $1F, $1F, $1F
spAmpMod $00, $00, $00, $00
spSustainRt $10, $06, $06, $06
spSustainLv $03, $01, $01, $01
spDecayRt $01, $06, $06, $06
spReleaseRt $05, $05, $0A, $0A
spTotalLv $10, $18, $00, $00
; Patch $04
; $3E
; $77, $71, $32, $31, $1F, $1F, $1F, $1F
; $0D, $06, $00, $00, $08, $06, $00, $00
; $15, $0A, $0A, $0A, $1B, $80, $80, $80
spAlgorithm $06
spFeedback $07
spDetune $07, $03, $07, $03
spMultiple $07, $02, $01, $01
spRateScale $00, $00, $00, $00
spAttackRt $1F, $1F, $1F, $1F
spAmpMod $00, $00, $00, $00
spSustainRt $0D, $00, $06, $00
spSustainLv $01, $00, $00, $00
spDecayRt $08, $00, $06, $00
spReleaseRt $05, $0A, $0A, $0A
spTotalLv $1B, $00, $00, $00
; Patch $05
; $34
; $33, $41, $7E, $74, $5B, $9F, $5F, $1F
; $04, $07, $07, $08, $00, $00, $00, $00
; $FF, $FF, $EF, $FF, $23, $80, $29, $87
spAlgorithm $04
spFeedback $06
spDetune $03, $07, $04, $07
spMultiple $03, $0E, $01, $04
spRateScale $01, $01, $02, $00
spAttackRt $1B, $1F, $1F, $1F
spAmpMod $00, $00, $00, $00
spSustainRt $04, $07, $07, $08
spSustainLv $0F, $0E, $0F, $0F
spDecayRt $00, $00, $00, $00
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $23, $29, $00, $07
; Patch $06
; $3A
; $01, $07, $01, $01, $8E, $8E, $8D, $53
; $0E, $0E, $0E, $03, $00, $00, $00, $07
; $1F, $FF, $1F, $0F, $18, $28, $27, $80
spAlgorithm $02
spFeedback $07
spDetune $00, $00, $00, $00
spMultiple $01, $01, $07, $01
spRateScale $02, $02, $02, $01
spAttackRt $0E, $0D, $0E, $13
spAmpMod $00, $00, $00, $00
spSustainRt $0E, $0E, $0E, $03
spSustainLv $01, $01, $0F, $00
spDecayRt $00, $00, $00, $07
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $18, $27, $28, $00
; Patch $07
; $3C
; $32, $32, $71, $42, $1F, $18, $1F, $1E
; $07, $1F, $07, $1F, $00, $00, $00, $00
; $1F, $0F, $1F, $0F, $1E, $80, $0C, $80
spAlgorithm $04
spFeedback $07
spDetune $03, $07, $03, $04
spMultiple $02, $01, $02, $02
spRateScale $00, $00, $00, $00
spAttackRt $1F, $1F, $18, $1E
spAmpMod $00, $00, $00, $00
spSustainRt $07, $07, $1F, $1F
spSustainLv $01, $01, $00, $00
spDecayRt $00, $00, $00, $00
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $1E, $0C, $00, $00
; Patch $08
; $3C
; $71, $72, $3F, $34, $8D, $52, $9F, $1F
; $09, $00, $00, $0D, $00, $00, $00, $00
; $23, $08, $02, $F7, $15, $80, $1D, $87
spAlgorithm $04
spFeedback $07
spDetune $07, $03, $07, $03
spMultiple $01, $0F, $02, $04
spRateScale $02, $02, $01, $00
spAttackRt $0D, $1F, $12, $1F
spAmpMod $00, $00, $00, $00
spSustainRt $09, $00, $00, $0D
spSustainLv $02, $00, $00, $0F
spDecayRt $00, $00, $00, $00
spReleaseRt $03, $02, $08, $07
spTotalLv $15, $1D, $00, $07
; Patch $09
; $3D
; $01, $01, $00, $00, $8E, $52, $14, $4C
; $08, $08, $0E, $03, $00, $00, $00, $00
; $1F, $1F, $1F, $1F, $1B, $80, $80, $9B
spAlgorithm $05
spFeedback $07
spDetune $00, $00, $00, $00
spMultiple $01, $00, $01, $00
spRateScale $02, $00, $01, $01
spAttackRt $0E, $14, $12, $0C
spAmpMod $00, $00, $00, $00
spSustainRt $08, $0E, $08, $03
spSustainLv $01, $01, $01, $01
spDecayRt $00, $00, $00, $00
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $1B, $00, $00, $1B
; Patch $0A
; $3A
; $31, $53, $31, $41, $8D, $4F, $15, $52
; $06, $08, $07, $04, $02, $00, $00, $00
; $1F, $1F, $2F, $2F, $19, $20, $2A, $80
spAlgorithm $02
spFeedback $07
spDetune $03, $03, $05, $04
spMultiple $01, $01, $03, $01
spRateScale $02, $00, $01, $01
spAttackRt $0D, $15, $0F, $12
spAmpMod $00, $00, $00, $00
spSustainRt $06, $07, $08, $04
spSustainLv $01, $02, $01, $02
spDecayRt $02, $00, $00, $00
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $19, $2A, $20, $00
; Patch $0B
; $3C
; $36, $31, $76, $71, $94, $9F, $96, $9F
; $12, $00, $14, $0F, $04, $0A, $04, $0D
; $2F, $0F, $4F, $2F, $33, $80, $1A, $80
spAlgorithm $04
spFeedback $07
spDetune $03, $07, $03, $07
spMultiple $06, $06, $01, $01
spRateScale $02, $02, $02, $02
spAttackRt $14, $16, $1F, $1F
spAmpMod $00, $00, $00, $00
spSustainRt $12, $14, $00, $0F
spSustainLv $02, $04, $00, $02
spDecayRt $04, $04, $0A, $0D
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $33, $1A, $00, $00
; Patch $0C
; $34
; $33, $41, $7E, $74, $5B, $9F, $5F, $1F
; $04, $07, $07, $08, $00, $00, $00, $00
; $FF, $FF, $EF, $FF, $23, $90, $29, $97
spAlgorithm $04
spFeedback $06
spDetune $03, $07, $04, $07
spMultiple $03, $0E, $01, $04
spRateScale $01, $01, $02, $00
spAttackRt $1B, $1F, $1F, $1F
spAmpMod $00, $00, $00, $00
spSustainRt $04, $07, $07, $08
spSustainLv $0F, $0E, $0F, $0F
spDecayRt $00, $00, $00, $00
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $23, $29, $10, $17
; Patch $0D
; $38
; $63, $31, $31, $31, $10, $13, $1A, $1B
; $0E, $00, $00, $00, $00, $00, $00, $00
; $3F, $0F, $0F, $0F, $1A, $19, $1A, $80
spAlgorithm $00
spFeedback $07
spDetune $06, $03, $03, $03
spMultiple $03, $01, $01, $01
spRateScale $00, $00, $00, $00
spAttackRt $10, $1A, $13, $1B
spAmpMod $00, $00, $00, $00
spSustainRt $0E, $00, $00, $00
spSustainLv $03, $00, $00, $00
spDecayRt $00, $00, $00, $00
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $1A, $1A, $19, $00
; Patch $0E
; $3A
; $31, $25, $73, $41, $5F, $1F, $1F, $9C
; $08, $05, $04, $1E, $03, $04, $02, $06
; $2F, $2F, $1F, $0F, $29, $27, $1F, $80
spAlgorithm $02
spFeedback $07
spDetune $03, $07, $02, $04
spMultiple $01, $03, $05, $01
spRateScale $01, $00, $00, $02
spAttackRt $1F, $1F, $1F, $1C
spAmpMod $00, $00, $00, $00
spSustainRt $08, $04, $05, $1E
spSustainLv $02, $01, $02, $00
spDecayRt $03, $02, $04, $06
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $29, $1F, $27, $00
; Patch $0F
; $04
; $71, $41, $31, $31, $12, $12, $12, $12
; $00, $00, $00, $00, $00, $00, $00, $00
; $0F, $0F, $0F, $0F, $23, $80, $23, $80
spAlgorithm $04
spFeedback $00
spDetune $07, $03, $04, $03
spMultiple $01, $01, $01, $01
spRateScale $00, $00, $00, $00
spAttackRt $12, $12, $12, $12
spAmpMod $00, $00, $00, $00
spSustainRt $00, $00, $00, $00
spSustainLv $00, $00, $00, $00
spDecayRt $00, $00, $00, $00
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $23, $23, $00, $00
; Patch $10
; $14
; $75, $72, $35, $32, $9F, $9F, $9F, $9F
; $05, $05, $00, $0A, $05, $05, $07, $05
; $2F, $FF, $0F, $2F, $1E, $80, $14, $80
spAlgorithm $04
spFeedback $02
spDetune $07, $03, $07, $03
spMultiple $05, $05, $02, $02
spRateScale $02, $02, $02, $02
spAttackRt $1F, $1F, $1F, $1F
spAmpMod $00, $00, $00, $00
spSustainRt $05, $00, $05, $0A
spSustainLv $02, $00, $0F, $02
spDecayRt $05, $07, $05, $05
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $1E, $14, $00, $00
; Patch $11
; $3D
; $01, $00, $01, $02, $12, $1F, $1F, $14
; $07, $02, $02, $0A, $05, $05, $05, $05
; $2F, $2F, $2F, $AF, $1C, $80, $82, $80
spAlgorithm $05
spFeedback $07
spDetune $00, $00, $00, $00
spMultiple $01, $01, $00, $02
spRateScale $00, $00, $00, $00
spAttackRt $12, $1F, $1F, $14
spAmpMod $00, $00, $00, $00
spSustainRt $07, $02, $02, $0A
spSustainLv $02, $02, $02, $0A
spDecayRt $05, $05, $05, $05
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $1C, $02, $00, $00
; Patch $12
; $1C
; $73, $72, $33, $32, $94, $99, $94, $99
; $08, $0A, $08, $0A, $00, $05, $00, $05
; $3F, $4F, $3F, $4F, $1E, $80, $19, $80
spAlgorithm $04
spFeedback $03
spDetune $07, $03, $07, $03
spMultiple $03, $03, $02, $02
spRateScale $02, $02, $02, $02
spAttackRt $14, $14, $19, $19
spAmpMod $00, $00, $00, $00
spSustainRt $08, $08, $0A, $0A
spSustainLv $03, $03, $04, $04
spDecayRt $00, $00, $05, $05
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $1E, $19, $00, $00
; Patch $13
; $31
; $33, $01, $00, $00, $9F, $1F, $1F, $1F
; $0D, $0A, $0A, $0A, $0A, $07, $07, $07
; $FF, $AF, $AF, $AF, $1E, $1E, $1E, $80
spAlgorithm $01
spFeedback $06
spDetune $03, $00, $00, $00
spMultiple $03, $00, $01, $00
spRateScale $02, $00, $00, $00
spAttackRt $1F, $1F, $1F, $1F
spAmpMod $00, $00, $00, $00
spSustainRt $0D, $0A, $0A, $0A
spSustainLv $0F, $0A, $0A, $0A
spDecayRt $0A, $07, $07, $07
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $1E, $1E, $1E, $00
; Patch $14
; $3A
; $70, $76, $30, $71, $1F, $95, $1F, $1F
; $0E, $0F, $05, $0C, $07, $06, $06, $07
; $2F, $4F, $1F, $5F, $21, $12, $28, $80
spAlgorithm $02
spFeedback $07
spDetune $07, $03, $07, $07
spMultiple $00, $00, $06, $01
spRateScale $00, $00, $02, $00
spAttackRt $1F, $1F, $15, $1F
spAmpMod $00, $00, $00, $00
spSustainRt $0E, $05, $0F, $0C
spSustainLv $02, $01, $04, $05
spDecayRt $07, $06, $06, $07
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $21, $28, $12, $00
; Patch $15
; $28
; $71, $00, $30, $01, $1F, $1F, $1D, $1F
; $13, $13, $06, $05, $03, $03, $02, $05
; $4F, $4F, $2F, $3F, $0E, $14, $1E, $80
spAlgorithm $00
spFeedback $05
spDetune $07, $03, $00, $00
spMultiple $01, $00, $00, $01
spRateScale $00, $00, $00, $00
spAttackRt $1F, $1D, $1F, $1F
spAmpMod $00, $00, $00, $00
spSustainRt $13, $06, $13, $05
spSustainLv $04, $02, $04, $03
spDecayRt $03, $02, $03, $05
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $0E, $1E, $14, $00
; Patch $16
; $3E
; $38, $01, $7A, $34, $59, $D9, $5F, $9C
; $0F, $04, $0F, $0A, $02, $02, $05, $05
; $AF, $AF, $66, $66, $28, $80, $A3, $80
spAlgorithm $06
spFeedback $07
spDetune $03, $07, $00, $03
spMultiple $08, $0A, $01, $04
spRateScale $01, $01, $03, $02
spAttackRt $19, $1F, $19, $1C
spAmpMod $00, $00, $00, $00
spSustainRt $0F, $0F, $04, $0A
spSustainLv $0A, $06, $0A, $06
spDecayRt $02, $05, $02, $05
spReleaseRt $0F, $06, $0F, $06
spTotalLv $28, $23, $00, $00
; Patch $17
; $39
; $32, $31, $72, $71, $1F, $1F, $1F, $1F
; $00, $00, $00, $00, $00, $00, $00, $00
; $0F, $0F, $0F, $0F, $1B, $32, $28, $80
spAlgorithm $01
spFeedback $07
spDetune $03, $07, $03, $07
spMultiple $02, $02, $01, $01
spRateScale $00, $00, $00, $00
spAttackRt $1F, $1F, $1F, $1F
spAmpMod $00, $00, $00, $00
spSustainRt $00, $00, $00, $00
spSustainLv $00, $00, $00, $00
spDecayRt $00, $00, $00, $00
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $1B, $28, $32, $00
; Patch $18
; $07
; $34, $74, $32, $71, $1F, $1F, $1F, $1F
; $0A, $0A, $05, $03, $00, $00, $00, $00
; $3F, $3F, $2F, $2F, $8A, $8A, $80, $80
spAlgorithm $07
spFeedback $00
spDetune $03, $03, $07, $07
spMultiple $04, $02, $04, $01
spRateScale $00, $00, $00, $00
spAttackRt $1F, $1F, $1F, $1F
spAmpMod $00, $00, $00, $00
spSustainRt $0A, $05, $0A, $03
spSustainLv $03, $02, $03, $02
spDecayRt $00, $00, $00, $00
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $0A, $00, $0A, $00
; Patch $19
; $3A
; $31, $37, $31, $31, $8D, $8D, $8E, $53
; $0E, $0E, $0E, $03, $00, $00, $00, $00
; $1F, $FF, $1F, $0F, $17, $28, $26, $80
spAlgorithm $02
spFeedback $07
spDetune $03, $03, $03, $03
spMultiple $01, $01, $07, $01
spRateScale $02, $02, $02, $01
spAttackRt $0D, $0E, $0D, $13
spAmpMod $00, $00, $00, $00
spSustainRt $0E, $0E, $0E, $03
spSustainLv $01, $01, $0F, $00
spDecayRt $00, $00, $00, $00
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $17, $26, $28, $00
; Patch $1A
; $3B
; $3A, $31, $71, $74, $DF, $1F, $1F, $DF
; $00, $0A, $0A, $05, $00, $05, $05, $03
; $0F, $5F, $1F, $5F, $32, $1E, $0F, $80
spAlgorithm $03
spFeedback $07
spDetune $03, $07, $03, $07
spMultiple $0A, $01, $01, $04
spRateScale $03, $00, $00, $03
spAttackRt $1F, $1F, $1F, $1F
spAmpMod $00, $00, $00, $00
spSustainRt $00, $0A, $0A, $05
spSustainLv $00, $01, $05, $05
spDecayRt $00, $05, $05, $03
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $32, $0F, $1E, $00
; Patch $1B
; $3A
; $32, $56, $32, $42, $8D, $4F, $15, $52
; $06, $08, $07, $04, $02, $00, $00, $00
; $1F, $1F, $2F, $2F, $19, $20, $2A, $80
spAlgorithm $02
spFeedback $07
spDetune $03, $03, $05, $04
spMultiple $02, $02, $06, $02
spRateScale $02, $00, $01, $01
spAttackRt $0D, $15, $0F, $12
spAmpMod $00, $00, $00, $00
spSustainRt $06, $07, $08, $04
spSustainLv $01, $02, $01, $02
spDecayRt $02, $00, $00, $00
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $19, $2A, $20, $00
; Patch $1C
; $2C
; $71, $74, $32, $32, $1F, $12, $1F, $12
; $00, $0A, $00, $0A, $00, $00, $00, $00
; $0F, $1F, $0F, $1F, $16, $80, $17, $80
spAlgorithm $04
spFeedback $05
spDetune $07, $03, $07, $03
spMultiple $01, $02, $04, $02
spRateScale $00, $00, $00, $00
spAttackRt $1F, $1F, $12, $12
spAmpMod $00, $00, $00, $00
spSustainRt $00, $00, $0A, $0A
spSustainLv $00, $00, $01, $01
spDecayRt $00, $00, $00, $00
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $16, $17, $00, $00
; Patch $1D
; $3A
; $01, $07, $01, $01, $8E, $8E, $8D, $53
; $0E, $0E, $0E, $03, $00, $00, $00, $07
; $1F, $FF, $1F, $0F, $18, $28, $27, $8F
spAlgorithm $02
spFeedback $07
spDetune $00, $00, $00, $00
spMultiple $01, $01, $07, $01
spRateScale $02, $02, $02, $01
spAttackRt $0E, $0D, $0E, $13
spAmpMod $00, $00, $00, $00
spSustainRt $0E, $0E, $0E, $03
spSustainLv $01, $01, $0F, $00
spDecayRt $00, $00, $00, $07
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $18, $27, $28, $0F
; Patch $1E
; $36
; $7A, $32, $51, $11, $1F, $1F, $59, $1C
; $0A, $0D, $06, $0A, $07, $00, $02, $02
; $AF, $5F, $5F, $5F, $1E, $8B, $81, $80
spAlgorithm $06
spFeedback $06
spDetune $07, $05, $03, $01
spMultiple $0A, $01, $02, $01
spRateScale $00, $01, $00, $00
spAttackRt $1F, $19, $1F, $1C
spAmpMod $00, $00, $00, $00
spSustainRt $0A, $06, $0D, $0A
spSustainLv $0A, $05, $05, $05
spDecayRt $07, $02, $00, $02
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $1E, $01, $0B, $00
; Patch $1F
; $3C
; $71, $72, $3F, $34, $8D, $52, $9F, $1F
; $09, $00, $00, $0D, $00, $00, $00, $00
; $23, $08, $02, $F7, $15, $85, $1D, $8A
spAlgorithm $04
spFeedback $07
spDetune $07, $03, $07, $03
spMultiple $01, $0F, $02, $04
spRateScale $02, $02, $01, $00
spAttackRt $0D, $1F, $12, $1F
spAmpMod $00, $00, $00, $00
spSustainRt $09, $00, $00, $0D
spSustainLv $02, $00, $00, $0F
spDecayRt $00, $00, $00, $00
spReleaseRt $03, $02, $08, $07
spTotalLv $15, $1D, $05, $0A
; Patch $20
; $3E
; $77, $71, $32, $31, $1F, $1F, $1F, $1F
; $0D, $06, $00, $00, $08, $06, $00, $00
; $15, $0A, $0A, $0A, $1B, $8F, $8F, $8F
spAlgorithm $06
spFeedback $07
spDetune $07, $03, $07, $03
spMultiple $07, $02, $01, $01
spRateScale $00, $00, $00, $00
spAttackRt $1F, $1F, $1F, $1F
spAmpMod $00, $00, $00, $00
spSustainRt $0D, $00, $06, $00
spSustainLv $01, $00, $00, $00
spDecayRt $08, $00, $06, $00
spReleaseRt $05, $0A, $0A, $0A
spTotalLv $1B, $0F, $0F, $0F
; Patch $21
; $07
; $34, $74, $32, $71, $1F, $1F, $1F, $1F
; $0A, $0A, $05, $03, $00, $00, $00, $00
; $3F, $3F, $2F, $2F, $8A, $8A, $8A, $8A
spAlgorithm $07
spFeedback $00
spDetune $03, $03, $07, $07
spMultiple $04, $02, $04, $01
spRateScale $00, $00, $00, $00
spAttackRt $1F, $1F, $1F, $1F
spAmpMod $00, $00, $00, $00
spSustainRt $0A, $05, $0A, $03
spSustainLv $03, $02, $03, $02
spDecayRt $00, $00, $00, $00
spReleaseRt $0F, $0F, $0F, $0F
spTotalLv $0A, $0A, $0A, $0A
| 28.384437 | 59 | 0.552559 |
abfe2d1abb4602554f993f1994e98f812a496a5d | 143 | asm | Assembly | other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/window.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/window.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/window.asm | prismotizm/gigaleak | d082854866186a05fec4e2fdf1def0199e7f3098 | [
"MIT"
] | null | null | null | Name: window.asm
Type: file
Size: 7803
Last-Modified: '1992-04-28T12:18:21Z'
SHA-1: 5C60618CE23E0EE6656CE1143704D0489FCD39E5
Description: null
| 20.428571 | 47 | 0.811189 |
e278b7eea4a07fb0b0e0adcb5c4995c25762d5a9 | 576 | asm | Assembly | programs/oeis/337/A337624.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/337/A337624.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/337/A337624.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A337624: a(n) is the least positive integer in base n that when multiplied by 2n-1 will contain only the digits 0 and 1.
; 1,1,2,3,14,23,27,39,386,579,703,983,1143,1525,1754,2255,43026,56987,67107,86359,99623,125311,143312,176783,199299,241929,271106,324491,359860,425609,469835,549791,19868738,23734923,26663279,31534199,35147631,41203019,45728786,53177519
sub $0,1
mov $1,322
lpb $1
add $0,2
mov $3,4
lpb $3
mov $1,$3
mov $2,$0
add $3,5
div $3,9
lpe
sub $2,1
lpe
lpb $2
mul $1,$0
sub $1,$2
div $2,2
lpe
mul $1,2
sub $1,2
div $1,2
add $1,1
| 22.153846 | 236 | 0.678819 |
e720e4f3a51a890e540cd3802011b355f44d5d55 | 709 | asm | Assembly | oeis/061/A061253.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/061/A061253.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/061/A061253.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A061253: Let G_n be the elementary Abelian group G_n = (C_3)^n; a(n) is the number of times the number 1 appears in the character table of G_n.
; 5,33,261,2241,19845,177633,1595781,14353281,129153285,1162300833,10460471301,94143533121,847289672325,7625600673633,68630386930821,617673424981761,5559060652648965,50031545357280033,450283906665838341,4052555155343499201,36472996384144355205,328256967415457784033,2954312706613595817861,26588814359145789645441,239299329231182388663045,2153693963077252343529633,19383245667685103628453381,174449211009135430266140481,1570042899082127365225444485,14130386091738871765519540833
add $0,1
mov $1,3
pow $1,$0
add $1,1
pow $1,2
sub $1,16
div $1,3
add $1,5
mov $0,$1
| 54.538462 | 477 | 0.846262 |
8dba40c7288ed20a485379f95b911d75083292de | 1,145 | asm | Assembly | books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/9_17.asm | gxw1/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 640 | 2019-03-30T11:32:43.000Z | 2022-03-31T14:05:18.000Z | books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/9_17.asm | yyzVegst/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 6 | 2019-07-22T01:57:24.000Z | 2022-01-20T15:03:16.000Z | books_and_notes/professional_courses/Assembly_language_and_programming/sources/汇编语言程序设计教程第四版/codes/9_17.asm | yyzVegst/review_the_national_post-graduate_entrance_examination | 8812779a7a4ce185a531d120562d5194b697c0c9 | [
"MIT"
] | 212 | 2019-04-10T02:31:50.000Z | 2022-03-30T02:32:47.000Z | WWIDTH =40
WTOP =10
WLEFT =15
WBOTTOM =20
WRIGHT =WLEFT+WWIDTH-1
CODE SEGMENT
ASSUME CS:CODE
START: MOV AL,0
MOV AH,5
INT 10H
MOV CH,WTOP
MOV CL,WLEFT
MOV DH,WBOTTOM
MOV DL,WRIGHT
MOV BH,74H
MOV AL,0
MOV AH,6
INT 10H
MOV BH,0
MOV DH,WBOTTOM
MOV DL,WLEFT
MOV AH,2
INT 10H
NEXT: MOV AH,0
INT 16H
CMP AL,03H
JZ DONE
MOV BH,0
MOV CX,1
MOV AH,0AH
INT 10H
INC DL
CMP DL,WRIGHT+1
JNZ DOCR
MOV CH,WTOP
MOV CL,WLEFT
MOV DH,WBOTTOM
MOV DL,WRIGHT
MOV BH,74H
MOV AL,1
MOV AH,6
INT 10H
MOV DL,WLEFT
DOCR: MOV BH,0
MOV AH,2
INT 10H
JMP NEXT
DONE: MOV AH,4CH
INT 21H
CODE ENDS
END START
| 22.019231 | 29 | 0.369432 |
112c4b5236089b249d9d442fafc6485509def88b | 368 | asm | Assembly | programs/oeis/046/A046819.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/046/A046819.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/046/A046819.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A046819: Number of 1's in binary expansion of 3n+2.
; 1,2,1,3,3,2,2,4,3,4,1,3,3,3,3,5,3,4,3,5,5,2,2,4,3,4,2,4,4,4,4,6,3,4,3,5,5,4,4,6,5,6,1,3,3,3,3,5,3,4,3,5,5,3,3,5,4,5,3,5,5,5,5,7,3,4,3,5,5,4,4,6,5,6,3,5,5,5,5,7,5,6,5,7,7,2,2,4,3,4,2,4,4
add $0,1
mov $2,$0
lpb $2
mul $2,12
mov $1,$2
sub $2,3
lpb $1
div $2,2
sub $1,$2
lpe
lpe
trn $1,5
add $1,1
| 21.647059 | 187 | 0.521739 |
bc500c99a4f21c333485d58eb8d9d85deea88678 | 746 | asm | Assembly | code/YeWenting/T23.asm | KongoHuster/assembly-exercise | 1c4a44c60c0e93a1350ed4f887aeaf1414702a51 | [
"0BSD"
] | 1 | 2021-08-20T03:57:29.000Z | 2021-08-20T03:57:29.000Z | code/YeWenting/T23.asm | KongoHuster/assembly-exercise | 1c4a44c60c0e93a1350ed4f887aeaf1414702a51 | [
"0BSD"
] | null | null | null | code/YeWenting/T23.asm | KongoHuster/assembly-exercise | 1c4a44c60c0e93a1350ed4f887aeaf1414702a51 | [
"0BSD"
] | null | null | null | ;; Created by Ywt.
;; Date: 11/22/2016
TITLE T23_YWT
DATA SEGMENT
M DW 1, -1, 2, 3, 6 DUP (0), ?, ?
N EQU 10
ENDS
CODE SEGMENT
ASSUME CS:CODE, DS:DATA
START: MOV AX, DATA
MOV DS, AX
;; BX->INDEX CX->MAX_ABS
;; DI->MAX_INDEX
;; DX->MAX_NUM
XOR BX, BX
XOR CX, CX
LOOP1: MOV AX, M[BX]
TEST AX, 8000H
JZ ABS
XOR AX, 0FFFFH
INC AX
ABS: CMP AX, CX
JNA NEXT
MOV CX, AX
MOV DI, BX
MOV DX, M[BX]
NEXT: ADD BX, 2
CMP BX, 2*N
JNZ LOOP1
END: MOV M[2*N], DX
MOV M[2*N+2], DI
;; FINISH
MOV AH, 4CH
INT 21H
ENDS
END START | 16.954545 | 41 | 0.442359 |
fa4697168f17b6092aa871b67015f4c9d806b3cb | 430 | asm | Assembly | Lab6/Read a character and display it 50 times on the next line. Hints use LOOP instructions and put cx = 50.asm | Deboraj-roy/COMPUTER-ORGANIZATION-AND-ARCHITECTURE-C- | 7ad0268edada61a648499557948d174ae1faea8b | [
"MIT"
] | null | null | null | Lab6/Read a character and display it 50 times on the next line. Hints use LOOP instructions and put cx = 50.asm | Deboraj-roy/COMPUTER-ORGANIZATION-AND-ARCHITECTURE-C- | 7ad0268edada61a648499557948d174ae1faea8b | [
"MIT"
] | 1 | 2022-03-16T14:31:47.000Z | 2022-03-16T14:31:47.000Z | Lab6/Read a character and display it 50 times on the next line. Hints use LOOP instructions and put cx = 50.asm | Deboraj-roy/COMPUTER-ORGANIZATION-AND-ARCHITECTURE-C- | 7ad0268edada61a648499557948d174ae1faea8b | [
"MIT"
] | null | null | null | .MODEL SMALL
.STACK 100H
.CODE
MAIN PROC
MOV AH,1
INT 21H
MOV BL,AL
MOV AH,2
MOV DL,0DH
INT 21H
MOV DL,0AH
INT 21H
MOV CX,50
MOV AH,2
MOV DL,BL
JCXZ SKIP
TOP:
INT 21H
LOOP TOP
SKIP: ;DOS EXIT
MOV AH,4CH
INT 21H
MAIN ENDP
END MAIN | 10.75 | 21 | 0.390698 |
d8bfec1314393153b851ccac5346850a24a32bad | 393 | asm | Assembly | oeis/195/A195256.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/195/A195256.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/195/A195256.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A195256: O.g.f.: Sum_{n>=0} 4*(n+4)^(n-1)*x^n/(1+n*x)^n.
; Submitted by Jamie Morken(s2)
; 1,4,20,104,568,3296,20576,139840,1044416,8617472,78605824,790252544,8709555200,104581771264,1359831461888,19038714208256,285585008091136,4569377309327360,77679482978041856,1398230968482660352,26566389500682174464
mov $2,1
lpb $0
sub $0,1
add $1,$2
mul $1,4
mul $2,$0
lpe
add $2,$1
mov $0,$2
| 28.071429 | 214 | 0.725191 |
935f56bc9b8f937279a37e6f78617339b4e4c343 | 5,971 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_2318.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_2318.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_zr_/i7-7700_9_0x48.log_21829_2318.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r12
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x14ff3, %r11
clflush (%r11)
nop
nop
nop
nop
nop
xor %rsi, %rsi
vmovups (%r11), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $1, %xmm4, %r12
nop
nop
nop
cmp $33548, %rbx
lea addresses_normal_ht+0x1b04d, %rsi
lea addresses_normal_ht+0x1db73, %rdi
nop
nop
dec %rbx
mov $57, %rcx
rep movsl
nop
nop
nop
add $19186, %r11
lea addresses_D_ht+0xbef3, %rbx
nop
nop
nop
nop
nop
sub $58014, %r10
mov (%rbx), %r11
dec %r12
lea addresses_D_ht+0xf6f3, %rsi
lea addresses_UC_ht+0xad0f, %rdi
nop
xor $52434, %rbp
mov $127, %rcx
rep movsl
nop
nop
nop
nop
cmp $23609, %r11
lea addresses_normal_ht+0x42f3, %r10
nop
nop
and %r12, %r12
movb (%r10), %r11b
nop
nop
dec %rbp
lea addresses_WT_ht+0x52b3, %rdi
dec %r10
mov $0x6162636465666768, %rbx
movq %rbx, %xmm4
movups %xmm4, (%rdi)
nop
nop
add $49033, %rbx
lea addresses_UC_ht+0xcdf3, %rsi
mfence
movups (%rsi), %xmm5
vpextrq $1, %xmm5, %rbp
nop
nop
nop
xor %rsi, %rsi
lea addresses_A_ht+0x14d53, %r12
nop
inc %rbx
mov $0x6162636465666768, %rcx
movq %rcx, (%r12)
nop
nop
nop
nop
sub %rbx, %rbx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r12
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r8
push %r9
push %rbx
// Faulty Load
lea addresses_WC+0x22f3, %r10
nop
nop
nop
nop
nop
add %r8, %r8
movaps (%r10), %xmm6
vpextrq $0, %xmm6, %rbx
lea oracles, %r10
and $0xff, %rbx
shlq $12, %rbx
mov (%r10,%rbx,1), %rbx
pop %rbx
pop %r9
pop %r8
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': True, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 8, 'size': 32, 'same': True, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 10, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 11, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 5, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 8, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 2, 'size': 8, '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
*/
| 40.344595 | 2,999 | 0.661196 |
3df53c93bcc2c0bc283a6111c8bb76a037229ee5 | 1,989 | asm | Assembly | programs/oeis/051/A051959.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/051/A051959.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/051/A051959.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A051959: Expansion of (1+6x)/( (1-2x-x^2)(1-x)^2).
; 1,10,36,104,273,686,1688,4112,9969,24114,58268,140728,339809,820438,1980784,4782112,11545121,27872474,67290196,162453000,392196337,946845822,2285888136,5518622256,13323132817,32164888066,77652909132,187470706520,452594322369,1092659351462,2637913025504,6368485402688,15374883831105,37118253065130,89611389961604,216341032988584,522293455939025,1260927944866894,3044149345673080,7349226636213328,17742602618100017,42834431872413650,103411466362927612,249657364598269176,602726195559466273,1455109755717202038,3512945706993870672,8481001169704943712,20474948046403758433,49430897262512460922,119336742571428680628,288104382405369822536,695545507382168326065,1679195397169706475038,4053936301721581276520,9787068000612869028464,23628072302947319333841,57043212606507507696546,137714497515962334727340,332472207638432177151640,802658912792826689031041,1937790033224085555214150,4678238979240997799459776,11294267991706081154134144,27266774962653160107728513,65827817917012401369591626,158922410796677962846912228,383672639510368327063416552,926267689817414616973745809,2236208019145197561010908654,5398683728107809738995563608,13033575475360817039002036368,31465834678829443816999636849,75965244833019704673001310578,183396324344868853163002258524,442757893522757410999005828152,1068912111390383675161013915361,2580582116303524761321033659414,6230076343997433197803081234736,15040734804298391156927196129440,36311545952594215511657473494177,87663826709486822180242143118362,211639199371567859872141759731476,510942225452622541924525662581896,1233523650276812943721193084895857,2977989526006248429366911832374206,7189502702289309802455016749644872,17356994930584868034276945331664560,41903492563459045871008907412974609,101163980057502959776294760157614402,244231452678464965423598427728204044,589626885414432890623491615614023128
lpb $0
mov $2,$0
sub $0,1
seq $2,48771 ; Partial sums of A048695.
add $1,$2
lpe
add $1,1
mov $0,$1
| 165.75 | 1,827 | 0.917044 |
5f4c0551caee24185b3ea251ffd8369ea93ca13c | 39,264 | asm | Assembly | Gsanity.asm | Ghazal-S/Project2 | daccdc4a2df7464412109758741aa497a7d23b7e | [
"MIT-0"
] | null | null | null | Gsanity.asm | Ghazal-S/Project2 | daccdc4a2df7464412109758741aa497a7d23b7e | [
"MIT-0"
] | null | null | null | Gsanity.asm | Ghazal-S/Project2 | daccdc4a2df7464412109758741aa497a7d23b7e | [
"MIT-0"
] | null | null | null |
_Gsanity: file format elf32-i386
Disassembly of section .text:
00000000 <main>:
int
main(void)
{
0: 8d 4c 24 04 lea 0x4(%esp),%ecx
4: 83 e4 f0 and $0xfffffff0,%esp
7: ff 71 fc pushl -0x4(%ecx)
a: 55 push %ebp
b: 89 e5 mov %esp,%ebp
d: 51 push %ecx
e: 83 ec 04 sub $0x4,%esp
Gsanity();
11: e8 4a 00 00 00 call 60 <Gsanity>
16: 66 90 xchg %ax,%ax
18: 66 90 xchg %ax,%ax
1a: 66 90 xchg %ax,%ax
1c: 66 90 xchg %ax,%ax
1e: 66 90 xchg %ax,%ax
00000020 <foo>:
{
20: 55 push %ebp
21: 89 e5 mov %esp,%ebp
23: 53 push %ebx
for (i=0;i<50;i++){
24: 31 db xor %ebx,%ebx
{
26: 83 ec 04 sub $0x4,%esp
29: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
printf(2, "process %d is printing for the %d time \n",getpid(),i);
30: e8 7d 03 00 00 call 3b2 <getpid>
35: 53 push %ebx
36: 50 push %eax
for (i=0;i<50;i++){
37: 83 c3 01 add $0x1,%ebx
printf(2, "process %d is printing for the %d time \n",getpid(),i);
3a: 68 d8 07 00 00 push $0x7d8
3f: 6a 02 push $0x2
41: e8 3a 04 00 00 call 480 <printf>
for (i=0;i<50;i++){
46: 83 c4 10 add $0x10,%esp
49: 83 fb 32 cmp $0x32,%ebx
4c: 75 e2 jne 30 <foo+0x10>
}
4e: 8b 5d fc mov -0x4(%ebp),%ebx
51: c9 leave
52: c3 ret
53: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
59: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000060 <Gsanity>:
{
60: 55 push %ebp
61: 89 e5 mov %esp,%ebp
63: 83 ec 10 sub $0x10,%esp
printf(1, "Gsanity\n");
66: 68 04 08 00 00 push $0x804
6b: 6a 01 push $0x1
6d: e8 0e 04 00 00 call 480 <printf>
printf(1, "Father pid is %d \n",getpid());
72: e8 3b 03 00 00 call 3b2 <getpid>
77: 83 c4 0c add $0xc,%esp
7a: 50 push %eax
7b: 68 0d 08 00 00 push $0x80d
80: 6a 01 push $0x1
82: e8 f9 03 00 00 call 480 <printf>
sleep(10);
87: c7 04 24 0a 00 00 00 movl $0xa,(%esp)
8e: e8 37 03 00 00 call 3ca <sleep>
pid = fork ();
93: e8 82 02 00 00 call 31a <fork>
if ( pid < 0 ) {
98: 83 c4 10 add $0x10,%esp
9b: 85 c0 test %eax,%eax
9d: 78 0a js a9 <Gsanity+0x49>
foo();
9f: e8 7c ff ff ff call 20 <foo>
exit();
a4: e8 79 02 00 00 call 322 <exit>
printf(1, "%d failed in fork!\n", getpid());
a9: e8 04 03 00 00 call 3b2 <getpid>
ae: 52 push %edx
af: 50 push %eax
b0: 68 21 08 00 00 push $0x821
b5: 6a 01 push $0x1
b7: e8 c4 03 00 00 call 480 <printf>
exit();
bc: e8 61 02 00 00 call 322 <exit>
c1: 66 90 xchg %ax,%ax
c3: 66 90 xchg %ax,%ax
c5: 66 90 xchg %ax,%ax
c7: 66 90 xchg %ax,%ax
c9: 66 90 xchg %ax,%ax
cb: 66 90 xchg %ax,%ax
cd: 66 90 xchg %ax,%ax
cf: 90 nop
000000d0 <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, const char *t)
{
d0: 55 push %ebp
d1: 89 e5 mov %esp,%ebp
d3: 53 push %ebx
d4: 8b 45 08 mov 0x8(%ebp),%eax
d7: 8b 4d 0c mov 0xc(%ebp),%ecx
char *os;
os = s;
while((*s++ = *t++) != 0)
da: 89 c2 mov %eax,%edx
dc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
e0: 83 c1 01 add $0x1,%ecx
e3: 0f b6 59 ff movzbl -0x1(%ecx),%ebx
e7: 83 c2 01 add $0x1,%edx
ea: 84 db test %bl,%bl
ec: 88 5a ff mov %bl,-0x1(%edx)
ef: 75 ef jne e0 <strcpy+0x10>
;
return os;
}
f1: 5b pop %ebx
f2: 5d pop %ebp
f3: c3 ret
f4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
fa: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
00000100 <strcmp>:
int
strcmp(const char *p, const char *q)
{
100: 55 push %ebp
101: 89 e5 mov %esp,%ebp
103: 53 push %ebx
104: 8b 55 08 mov 0x8(%ebp),%edx
107: 8b 4d 0c mov 0xc(%ebp),%ecx
while(*p && *p == *q)
10a: 0f b6 02 movzbl (%edx),%eax
10d: 0f b6 19 movzbl (%ecx),%ebx
110: 84 c0 test %al,%al
112: 75 1c jne 130 <strcmp+0x30>
114: eb 2a jmp 140 <strcmp+0x40>
116: 8d 76 00 lea 0x0(%esi),%esi
119: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
p++, q++;
120: 83 c2 01 add $0x1,%edx
while(*p && *p == *q)
123: 0f b6 02 movzbl (%edx),%eax
p++, q++;
126: 83 c1 01 add $0x1,%ecx
129: 0f b6 19 movzbl (%ecx),%ebx
while(*p && *p == *q)
12c: 84 c0 test %al,%al
12e: 74 10 je 140 <strcmp+0x40>
130: 38 d8 cmp %bl,%al
132: 74 ec je 120 <strcmp+0x20>
return (uchar)*p - (uchar)*q;
134: 29 d8 sub %ebx,%eax
}
136: 5b pop %ebx
137: 5d pop %ebp
138: c3 ret
139: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
140: 31 c0 xor %eax,%eax
return (uchar)*p - (uchar)*q;
142: 29 d8 sub %ebx,%eax
}
144: 5b pop %ebx
145: 5d pop %ebp
146: c3 ret
147: 89 f6 mov %esi,%esi
149: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000150 <strlen>:
uint
strlen(const char *s)
{
150: 55 push %ebp
151: 89 e5 mov %esp,%ebp
153: 8b 4d 08 mov 0x8(%ebp),%ecx
int n;
for(n = 0; s[n]; n++)
156: 80 39 00 cmpb $0x0,(%ecx)
159: 74 15 je 170 <strlen+0x20>
15b: 31 d2 xor %edx,%edx
15d: 8d 76 00 lea 0x0(%esi),%esi
160: 83 c2 01 add $0x1,%edx
163: 80 3c 11 00 cmpb $0x0,(%ecx,%edx,1)
167: 89 d0 mov %edx,%eax
169: 75 f5 jne 160 <strlen+0x10>
;
return n;
}
16b: 5d pop %ebp
16c: c3 ret
16d: 8d 76 00 lea 0x0(%esi),%esi
for(n = 0; s[n]; n++)
170: 31 c0 xor %eax,%eax
}
172: 5d pop %ebp
173: c3 ret
174: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
17a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
00000180 <memset>:
void*
memset(void *dst, int c, uint n)
{
180: 55 push %ebp
181: 89 e5 mov %esp,%ebp
183: 57 push %edi
184: 8b 55 08 mov 0x8(%ebp),%edx
}
static inline void
stosb(void *addr, int data, int cnt)
{
asm volatile("cld; rep stosb" :
187: 8b 4d 10 mov 0x10(%ebp),%ecx
18a: 8b 45 0c mov 0xc(%ebp),%eax
18d: 89 d7 mov %edx,%edi
18f: fc cld
190: f3 aa rep stos %al,%es:(%edi)
stosb(dst, c, n);
return dst;
}
192: 89 d0 mov %edx,%eax
194: 5f pop %edi
195: 5d pop %ebp
196: c3 ret
197: 89 f6 mov %esi,%esi
199: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
000001a0 <strchr>:
char*
strchr(const char *s, char c)
{
1a0: 55 push %ebp
1a1: 89 e5 mov %esp,%ebp
1a3: 53 push %ebx
1a4: 8b 45 08 mov 0x8(%ebp),%eax
1a7: 8b 5d 0c mov 0xc(%ebp),%ebx
for(; *s; s++)
1aa: 0f b6 10 movzbl (%eax),%edx
1ad: 84 d2 test %dl,%dl
1af: 74 1d je 1ce <strchr+0x2e>
if(*s == c)
1b1: 38 d3 cmp %dl,%bl
1b3: 89 d9 mov %ebx,%ecx
1b5: 75 0d jne 1c4 <strchr+0x24>
1b7: eb 17 jmp 1d0 <strchr+0x30>
1b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
1c0: 38 ca cmp %cl,%dl
1c2: 74 0c je 1d0 <strchr+0x30>
for(; *s; s++)
1c4: 83 c0 01 add $0x1,%eax
1c7: 0f b6 10 movzbl (%eax),%edx
1ca: 84 d2 test %dl,%dl
1cc: 75 f2 jne 1c0 <strchr+0x20>
return (char*)s;
return 0;
1ce: 31 c0 xor %eax,%eax
}
1d0: 5b pop %ebx
1d1: 5d pop %ebp
1d2: c3 ret
1d3: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
1d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
000001e0 <gets>:
char*
gets(char *buf, int max)
{
1e0: 55 push %ebp
1e1: 89 e5 mov %esp,%ebp
1e3: 57 push %edi
1e4: 56 push %esi
1e5: 53 push %ebx
int i, cc;
char c;
for(i=0; i+1 < max; ){
1e6: 31 f6 xor %esi,%esi
1e8: 89 f3 mov %esi,%ebx
{
1ea: 83 ec 1c sub $0x1c,%esp
1ed: 8b 7d 08 mov 0x8(%ebp),%edi
for(i=0; i+1 < max; ){
1f0: eb 2f jmp 221 <gets+0x41>
1f2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
cc = read(0, &c, 1);
1f8: 8d 45 e7 lea -0x19(%ebp),%eax
1fb: 83 ec 04 sub $0x4,%esp
1fe: 6a 01 push $0x1
200: 50 push %eax
201: 6a 00 push $0x0
203: e8 42 01 00 00 call 34a <read>
if(cc < 1)
208: 83 c4 10 add $0x10,%esp
20b: 85 c0 test %eax,%eax
20d: 7e 1c jle 22b <gets+0x4b>
break;
buf[i++] = c;
20f: 0f b6 45 e7 movzbl -0x19(%ebp),%eax
213: 83 c7 01 add $0x1,%edi
216: 88 47 ff mov %al,-0x1(%edi)
if(c == '\n' || c == '\r')
219: 3c 0a cmp $0xa,%al
21b: 74 23 je 240 <gets+0x60>
21d: 3c 0d cmp $0xd,%al
21f: 74 1f je 240 <gets+0x60>
for(i=0; i+1 < max; ){
221: 83 c3 01 add $0x1,%ebx
224: 3b 5d 0c cmp 0xc(%ebp),%ebx
227: 89 fe mov %edi,%esi
229: 7c cd jl 1f8 <gets+0x18>
22b: 89 f3 mov %esi,%ebx
break;
}
buf[i] = '\0';
return buf;
}
22d: 8b 45 08 mov 0x8(%ebp),%eax
buf[i] = '\0';
230: c6 03 00 movb $0x0,(%ebx)
}
233: 8d 65 f4 lea -0xc(%ebp),%esp
236: 5b pop %ebx
237: 5e pop %esi
238: 5f pop %edi
239: 5d pop %ebp
23a: c3 ret
23b: 90 nop
23c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
240: 8b 75 08 mov 0x8(%ebp),%esi
243: 8b 45 08 mov 0x8(%ebp),%eax
246: 01 de add %ebx,%esi
248: 89 f3 mov %esi,%ebx
buf[i] = '\0';
24a: c6 03 00 movb $0x0,(%ebx)
}
24d: 8d 65 f4 lea -0xc(%ebp),%esp
250: 5b pop %ebx
251: 5e pop %esi
252: 5f pop %edi
253: 5d pop %ebp
254: c3 ret
255: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
259: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
00000260 <stat>:
int
stat(const char *n, struct stat *st)
{
260: 55 push %ebp
261: 89 e5 mov %esp,%ebp
263: 56 push %esi
264: 53 push %ebx
int fd;
int r;
fd = open(n, O_RDONLY);
265: 83 ec 08 sub $0x8,%esp
268: 6a 00 push $0x0
26a: ff 75 08 pushl 0x8(%ebp)
26d: e8 00 01 00 00 call 372 <open>
if(fd < 0)
272: 83 c4 10 add $0x10,%esp
275: 85 c0 test %eax,%eax
277: 78 27 js 2a0 <stat+0x40>
return -1;
r = fstat(fd, st);
279: 83 ec 08 sub $0x8,%esp
27c: ff 75 0c pushl 0xc(%ebp)
27f: 89 c3 mov %eax,%ebx
281: 50 push %eax
282: e8 03 01 00 00 call 38a <fstat>
close(fd);
287: 89 1c 24 mov %ebx,(%esp)
r = fstat(fd, st);
28a: 89 c6 mov %eax,%esi
close(fd);
28c: e8 c9 00 00 00 call 35a <close>
return r;
291: 83 c4 10 add $0x10,%esp
}
294: 8d 65 f8 lea -0x8(%ebp),%esp
297: 89 f0 mov %esi,%eax
299: 5b pop %ebx
29a: 5e pop %esi
29b: 5d pop %ebp
29c: c3 ret
29d: 8d 76 00 lea 0x0(%esi),%esi
return -1;
2a0: be ff ff ff ff mov $0xffffffff,%esi
2a5: eb ed jmp 294 <stat+0x34>
2a7: 89 f6 mov %esi,%esi
2a9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
000002b0 <atoi>:
int
atoi(const char *s)
{
2b0: 55 push %ebp
2b1: 89 e5 mov %esp,%ebp
2b3: 53 push %ebx
2b4: 8b 4d 08 mov 0x8(%ebp),%ecx
int n;
n = 0;
while('0' <= *s && *s <= '9')
2b7: 0f be 11 movsbl (%ecx),%edx
2ba: 8d 42 d0 lea -0x30(%edx),%eax
2bd: 3c 09 cmp $0x9,%al
n = 0;
2bf: b8 00 00 00 00 mov $0x0,%eax
while('0' <= *s && *s <= '9')
2c4: 77 1f ja 2e5 <atoi+0x35>
2c6: 8d 76 00 lea 0x0(%esi),%esi
2c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
n = n*10 + *s++ - '0';
2d0: 8d 04 80 lea (%eax,%eax,4),%eax
2d3: 83 c1 01 add $0x1,%ecx
2d6: 8d 44 42 d0 lea -0x30(%edx,%eax,2),%eax
while('0' <= *s && *s <= '9')
2da: 0f be 11 movsbl (%ecx),%edx
2dd: 8d 5a d0 lea -0x30(%edx),%ebx
2e0: 80 fb 09 cmp $0x9,%bl
2e3: 76 eb jbe 2d0 <atoi+0x20>
return n;
}
2e5: 5b pop %ebx
2e6: 5d pop %ebp
2e7: c3 ret
2e8: 90 nop
2e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
000002f0 <memmove>:
void*
memmove(void *vdst, const void *vsrc, int n)
{
2f0: 55 push %ebp
2f1: 89 e5 mov %esp,%ebp
2f3: 56 push %esi
2f4: 53 push %ebx
2f5: 8b 5d 10 mov 0x10(%ebp),%ebx
2f8: 8b 45 08 mov 0x8(%ebp),%eax
2fb: 8b 75 0c mov 0xc(%ebp),%esi
char *dst;
const char *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
2fe: 85 db test %ebx,%ebx
300: 7e 14 jle 316 <memmove+0x26>
302: 31 d2 xor %edx,%edx
304: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
*dst++ = *src++;
308: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx
30c: 88 0c 10 mov %cl,(%eax,%edx,1)
30f: 83 c2 01 add $0x1,%edx
while(n-- > 0)
312: 39 d3 cmp %edx,%ebx
314: 75 f2 jne 308 <memmove+0x18>
return vdst;
}
316: 5b pop %ebx
317: 5e pop %esi
318: 5d pop %ebp
319: c3 ret
0000031a <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
31a: b8 01 00 00 00 mov $0x1,%eax
31f: cd 40 int $0x40
321: c3 ret
00000322 <exit>:
SYSCALL(exit)
322: b8 02 00 00 00 mov $0x2,%eax
327: cd 40 int $0x40
329: c3 ret
0000032a <wait>:
SYSCALL(wait)
32a: b8 03 00 00 00 mov $0x3,%eax
32f: cd 40 int $0x40
331: c3 ret
00000332 <getPerformanceData>:
SYSCALL(getPerformanceData) // calculates process run time and wait time
332: b8 16 00 00 00 mov $0x16,%eax
337: cd 40 int $0x40
339: c3 ret
0000033a <nice>:
SYSCALL(nice)
33a: b8 17 00 00 00 mov $0x17,%eax
33f: cd 40 int $0x40
341: c3 ret
00000342 <pipe>:
SYSCALL(pipe)
342: b8 04 00 00 00 mov $0x4,%eax
347: cd 40 int $0x40
349: c3 ret
0000034a <read>:
SYSCALL(read)
34a: b8 05 00 00 00 mov $0x5,%eax
34f: cd 40 int $0x40
351: c3 ret
00000352 <write>:
SYSCALL(write)
352: b8 10 00 00 00 mov $0x10,%eax
357: cd 40 int $0x40
359: c3 ret
0000035a <close>:
SYSCALL(close)
35a: b8 15 00 00 00 mov $0x15,%eax
35f: cd 40 int $0x40
361: c3 ret
00000362 <kill>:
SYSCALL(kill)
362: b8 06 00 00 00 mov $0x6,%eax
367: cd 40 int $0x40
369: c3 ret
0000036a <exec>:
SYSCALL(exec)
36a: b8 07 00 00 00 mov $0x7,%eax
36f: cd 40 int $0x40
371: c3 ret
00000372 <open>:
SYSCALL(open)
372: b8 0f 00 00 00 mov $0xf,%eax
377: cd 40 int $0x40
379: c3 ret
0000037a <mknod>:
SYSCALL(mknod)
37a: b8 11 00 00 00 mov $0x11,%eax
37f: cd 40 int $0x40
381: c3 ret
00000382 <unlink>:
SYSCALL(unlink)
382: b8 12 00 00 00 mov $0x12,%eax
387: cd 40 int $0x40
389: c3 ret
0000038a <fstat>:
SYSCALL(fstat)
38a: b8 08 00 00 00 mov $0x8,%eax
38f: cd 40 int $0x40
391: c3 ret
00000392 <link>:
SYSCALL(link)
392: b8 13 00 00 00 mov $0x13,%eax
397: cd 40 int $0x40
399: c3 ret
0000039a <mkdir>:
SYSCALL(mkdir)
39a: b8 14 00 00 00 mov $0x14,%eax
39f: cd 40 int $0x40
3a1: c3 ret
000003a2 <chdir>:
SYSCALL(chdir)
3a2: b8 09 00 00 00 mov $0x9,%eax
3a7: cd 40 int $0x40
3a9: c3 ret
000003aa <dup>:
SYSCALL(dup)
3aa: b8 0a 00 00 00 mov $0xa,%eax
3af: cd 40 int $0x40
3b1: c3 ret
000003b2 <getpid>:
SYSCALL(getpid)
3b2: b8 0b 00 00 00 mov $0xb,%eax
3b7: cd 40 int $0x40
3b9: c3 ret
000003ba <getppid>:
SYSCALL(getppid)
3ba: b8 18 00 00 00 mov $0x18,%eax
3bf: cd 40 int $0x40
3c1: c3 ret
000003c2 <sbrk>:
SYSCALL(sbrk)
3c2: b8 0c 00 00 00 mov $0xc,%eax
3c7: cd 40 int $0x40
3c9: c3 ret
000003ca <sleep>:
SYSCALL(sleep)
3ca: b8 0d 00 00 00 mov $0xd,%eax
3cf: cd 40 int $0x40
3d1: c3 ret
000003d2 <uptime>:
SYSCALL(uptime)
3d2: b8 0e 00 00 00 mov $0xe,%eax
3d7: cd 40 int $0x40
3d9: c3 ret
3da: 66 90 xchg %ax,%ax
3dc: 66 90 xchg %ax,%ax
3de: 66 90 xchg %ax,%ax
000003e0 <printint>:
3e0: 55 push %ebp
3e1: 89 e5 mov %esp,%ebp
3e3: 57 push %edi
3e4: 56 push %esi
3e5: 53 push %ebx
3e6: 83 ec 3c sub $0x3c,%esp
3e9: 85 d2 test %edx,%edx
3eb: 89 45 c0 mov %eax,-0x40(%ebp)
3ee: 89 d0 mov %edx,%eax
3f0: 79 76 jns 468 <printint+0x88>
3f2: f6 45 08 01 testb $0x1,0x8(%ebp)
3f6: 74 70 je 468 <printint+0x88>
3f8: f7 d8 neg %eax
3fa: c7 45 c4 01 00 00 00 movl $0x1,-0x3c(%ebp)
401: 31 f6 xor %esi,%esi
403: 8d 5d d7 lea -0x29(%ebp),%ebx
406: eb 0a jmp 412 <printint+0x32>
408: 90 nop
409: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
410: 89 fe mov %edi,%esi
412: 31 d2 xor %edx,%edx
414: 8d 7e 01 lea 0x1(%esi),%edi
417: f7 f1 div %ecx
419: 0f b6 92 3c 08 00 00 movzbl 0x83c(%edx),%edx
420: 85 c0 test %eax,%eax
422: 88 14 3b mov %dl,(%ebx,%edi,1)
425: 75 e9 jne 410 <printint+0x30>
427: 8b 45 c4 mov -0x3c(%ebp),%eax
42a: 85 c0 test %eax,%eax
42c: 74 08 je 436 <printint+0x56>
42e: c6 44 3d d8 2d movb $0x2d,-0x28(%ebp,%edi,1)
433: 8d 7e 02 lea 0x2(%esi),%edi
436: 8d 74 3d d7 lea -0x29(%ebp,%edi,1),%esi
43a: 8b 7d c0 mov -0x40(%ebp),%edi
43d: 8d 76 00 lea 0x0(%esi),%esi
440: 0f b6 06 movzbl (%esi),%eax
443: 83 ec 04 sub $0x4,%esp
446: 83 ee 01 sub $0x1,%esi
449: 6a 01 push $0x1
44b: 53 push %ebx
44c: 57 push %edi
44d: 88 45 d7 mov %al,-0x29(%ebp)
450: e8 fd fe ff ff call 352 <write>
455: 83 c4 10 add $0x10,%esp
458: 39 de cmp %ebx,%esi
45a: 75 e4 jne 440 <printint+0x60>
45c: 8d 65 f4 lea -0xc(%ebp),%esp
45f: 5b pop %ebx
460: 5e pop %esi
461: 5f pop %edi
462: 5d pop %ebp
463: c3 ret
464: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
468: c7 45 c4 00 00 00 00 movl $0x0,-0x3c(%ebp)
46f: eb 90 jmp 401 <printint+0x21>
471: eb 0d jmp 480 <printf>
473: 90 nop
474: 90 nop
475: 90 nop
476: 90 nop
477: 90 nop
478: 90 nop
479: 90 nop
47a: 90 nop
47b: 90 nop
47c: 90 nop
47d: 90 nop
47e: 90 nop
47f: 90 nop
00000480 <printf>:
480: 55 push %ebp
481: 89 e5 mov %esp,%ebp
483: 57 push %edi
484: 56 push %esi
485: 53 push %ebx
486: 83 ec 2c sub $0x2c,%esp
489: 8b 75 0c mov 0xc(%ebp),%esi
48c: 0f b6 1e movzbl (%esi),%ebx
48f: 84 db test %bl,%bl
491: 0f 84 b3 00 00 00 je 54a <printf+0xca>
497: 8d 45 10 lea 0x10(%ebp),%eax
49a: 83 c6 01 add $0x1,%esi
49d: 31 ff xor %edi,%edi
49f: 89 45 d4 mov %eax,-0x2c(%ebp)
4a2: eb 2f jmp 4d3 <printf+0x53>
4a4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
4a8: 83 f8 25 cmp $0x25,%eax
4ab: 0f 84 a7 00 00 00 je 558 <printf+0xd8>
4b1: 8d 45 e2 lea -0x1e(%ebp),%eax
4b4: 83 ec 04 sub $0x4,%esp
4b7: 88 5d e2 mov %bl,-0x1e(%ebp)
4ba: 6a 01 push $0x1
4bc: 50 push %eax
4bd: ff 75 08 pushl 0x8(%ebp)
4c0: e8 8d fe ff ff call 352 <write>
4c5: 83 c4 10 add $0x10,%esp
4c8: 83 c6 01 add $0x1,%esi
4cb: 0f b6 5e ff movzbl -0x1(%esi),%ebx
4cf: 84 db test %bl,%bl
4d1: 74 77 je 54a <printf+0xca>
4d3: 85 ff test %edi,%edi
4d5: 0f be cb movsbl %bl,%ecx
4d8: 0f b6 c3 movzbl %bl,%eax
4db: 74 cb je 4a8 <printf+0x28>
4dd: 83 ff 25 cmp $0x25,%edi
4e0: 75 e6 jne 4c8 <printf+0x48>
4e2: 83 f8 64 cmp $0x64,%eax
4e5: 0f 84 05 01 00 00 je 5f0 <printf+0x170>
4eb: 81 e1 f7 00 00 00 and $0xf7,%ecx
4f1: 83 f9 70 cmp $0x70,%ecx
4f4: 74 72 je 568 <printf+0xe8>
4f6: 83 f8 73 cmp $0x73,%eax
4f9: 0f 84 99 00 00 00 je 598 <printf+0x118>
4ff: 83 f8 63 cmp $0x63,%eax
502: 0f 84 08 01 00 00 je 610 <printf+0x190>
508: 83 f8 25 cmp $0x25,%eax
50b: 0f 84 ef 00 00 00 je 600 <printf+0x180>
511: 8d 45 e7 lea -0x19(%ebp),%eax
514: 83 ec 04 sub $0x4,%esp
517: c6 45 e7 25 movb $0x25,-0x19(%ebp)
51b: 6a 01 push $0x1
51d: 50 push %eax
51e: ff 75 08 pushl 0x8(%ebp)
521: e8 2c fe ff ff call 352 <write>
526: 83 c4 0c add $0xc,%esp
529: 8d 45 e6 lea -0x1a(%ebp),%eax
52c: 88 5d e6 mov %bl,-0x1a(%ebp)
52f: 6a 01 push $0x1
531: 50 push %eax
532: ff 75 08 pushl 0x8(%ebp)
535: 83 c6 01 add $0x1,%esi
538: 31 ff xor %edi,%edi
53a: e8 13 fe ff ff call 352 <write>
53f: 0f b6 5e ff movzbl -0x1(%esi),%ebx
543: 83 c4 10 add $0x10,%esp
546: 84 db test %bl,%bl
548: 75 89 jne 4d3 <printf+0x53>
54a: 8d 65 f4 lea -0xc(%ebp),%esp
54d: 5b pop %ebx
54e: 5e pop %esi
54f: 5f pop %edi
550: 5d pop %ebp
551: c3 ret
552: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
558: bf 25 00 00 00 mov $0x25,%edi
55d: e9 66 ff ff ff jmp 4c8 <printf+0x48>
562: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
568: 83 ec 0c sub $0xc,%esp
56b: b9 10 00 00 00 mov $0x10,%ecx
570: 6a 00 push $0x0
572: 8b 7d d4 mov -0x2c(%ebp),%edi
575: 8b 45 08 mov 0x8(%ebp),%eax
578: 8b 17 mov (%edi),%edx
57a: e8 61 fe ff ff call 3e0 <printint>
57f: 89 f8 mov %edi,%eax
581: 83 c4 10 add $0x10,%esp
584: 31 ff xor %edi,%edi
586: 83 c0 04 add $0x4,%eax
589: 89 45 d4 mov %eax,-0x2c(%ebp)
58c: e9 37 ff ff ff jmp 4c8 <printf+0x48>
591: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
598: 8b 45 d4 mov -0x2c(%ebp),%eax
59b: 8b 08 mov (%eax),%ecx
59d: 83 c0 04 add $0x4,%eax
5a0: 89 45 d4 mov %eax,-0x2c(%ebp)
5a3: 85 c9 test %ecx,%ecx
5a5: 0f 84 8e 00 00 00 je 639 <printf+0x1b9>
5ab: 0f b6 01 movzbl (%ecx),%eax
5ae: 31 ff xor %edi,%edi
5b0: 89 cb mov %ecx,%ebx
5b2: 84 c0 test %al,%al
5b4: 0f 84 0e ff ff ff je 4c8 <printf+0x48>
5ba: 89 75 d0 mov %esi,-0x30(%ebp)
5bd: 89 de mov %ebx,%esi
5bf: 8b 5d 08 mov 0x8(%ebp),%ebx
5c2: 8d 7d e3 lea -0x1d(%ebp),%edi
5c5: 8d 76 00 lea 0x0(%esi),%esi
5c8: 83 ec 04 sub $0x4,%esp
5cb: 83 c6 01 add $0x1,%esi
5ce: 88 45 e3 mov %al,-0x1d(%ebp)
5d1: 6a 01 push $0x1
5d3: 57 push %edi
5d4: 53 push %ebx
5d5: e8 78 fd ff ff call 352 <write>
5da: 0f b6 06 movzbl (%esi),%eax
5dd: 83 c4 10 add $0x10,%esp
5e0: 84 c0 test %al,%al
5e2: 75 e4 jne 5c8 <printf+0x148>
5e4: 8b 75 d0 mov -0x30(%ebp),%esi
5e7: 31 ff xor %edi,%edi
5e9: e9 da fe ff ff jmp 4c8 <printf+0x48>
5ee: 66 90 xchg %ax,%ax
5f0: 83 ec 0c sub $0xc,%esp
5f3: b9 0a 00 00 00 mov $0xa,%ecx
5f8: 6a 01 push $0x1
5fa: e9 73 ff ff ff jmp 572 <printf+0xf2>
5ff: 90 nop
600: 83 ec 04 sub $0x4,%esp
603: 88 5d e5 mov %bl,-0x1b(%ebp)
606: 8d 45 e5 lea -0x1b(%ebp),%eax
609: 6a 01 push $0x1
60b: e9 21 ff ff ff jmp 531 <printf+0xb1>
610: 8b 7d d4 mov -0x2c(%ebp),%edi
613: 83 ec 04 sub $0x4,%esp
616: 8b 07 mov (%edi),%eax
618: 6a 01 push $0x1
61a: 83 c7 04 add $0x4,%edi
61d: 88 45 e4 mov %al,-0x1c(%ebp)
620: 8d 45 e4 lea -0x1c(%ebp),%eax
623: 50 push %eax
624: ff 75 08 pushl 0x8(%ebp)
627: e8 26 fd ff ff call 352 <write>
62c: 89 7d d4 mov %edi,-0x2c(%ebp)
62f: 83 c4 10 add $0x10,%esp
632: 31 ff xor %edi,%edi
634: e9 8f fe ff ff jmp 4c8 <printf+0x48>
639: bb 35 08 00 00 mov $0x835,%ebx
63e: b8 28 00 00 00 mov $0x28,%eax
643: e9 72 ff ff ff jmp 5ba <printf+0x13a>
648: 66 90 xchg %ax,%ax
64a: 66 90 xchg %ax,%ax
64c: 66 90 xchg %ax,%ax
64e: 66 90 xchg %ax,%ax
00000650 <free>:
static Header base;
static Header *freep;
void
free(void *ap)
{
650: 55 push %ebp
Header *bp, *p;
bp = (Header*)ap - 1;
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
651: a1 20 0b 00 00 mov 0xb20,%eax
{
656: 89 e5 mov %esp,%ebp
658: 57 push %edi
659: 56 push %esi
65a: 53 push %ebx
65b: 8b 5d 08 mov 0x8(%ebp),%ebx
bp = (Header*)ap - 1;
65e: 8d 4b f8 lea -0x8(%ebx),%ecx
661: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
for(p = freep; !(bp > p && bp < p->s.ptr); p = p->s.ptr)
668: 39 c8 cmp %ecx,%eax
66a: 8b 10 mov (%eax),%edx
66c: 73 32 jae 6a0 <free+0x50>
66e: 39 d1 cmp %edx,%ecx
670: 72 04 jb 676 <free+0x26>
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
672: 39 d0 cmp %edx,%eax
674: 72 32 jb 6a8 <free+0x58>
break;
if(bp + bp->s.size == p->s.ptr){
676: 8b 73 fc mov -0x4(%ebx),%esi
679: 8d 3c f1 lea (%ecx,%esi,8),%edi
67c: 39 fa cmp %edi,%edx
67e: 74 30 je 6b0 <free+0x60>
bp->s.size += p->s.ptr->s.size;
bp->s.ptr = p->s.ptr->s.ptr;
} else
bp->s.ptr = p->s.ptr;
680: 89 53 f8 mov %edx,-0x8(%ebx)
if(p + p->s.size == bp){
683: 8b 50 04 mov 0x4(%eax),%edx
686: 8d 34 d0 lea (%eax,%edx,8),%esi
689: 39 f1 cmp %esi,%ecx
68b: 74 3a je 6c7 <free+0x77>
p->s.size += bp->s.size;
p->s.ptr = bp->s.ptr;
} else
p->s.ptr = bp;
68d: 89 08 mov %ecx,(%eax)
freep = p;
68f: a3 20 0b 00 00 mov %eax,0xb20
}
694: 5b pop %ebx
695: 5e pop %esi
696: 5f pop %edi
697: 5d pop %ebp
698: c3 ret
699: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
if(p >= p->s.ptr && (bp > p || bp < p->s.ptr))
6a0: 39 d0 cmp %edx,%eax
6a2: 72 04 jb 6a8 <free+0x58>
6a4: 39 d1 cmp %edx,%ecx
6a6: 72 ce jb 676 <free+0x26>
{
6a8: 89 d0 mov %edx,%eax
6aa: eb bc jmp 668 <free+0x18>
6ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
bp->s.size += p->s.ptr->s.size;
6b0: 03 72 04 add 0x4(%edx),%esi
6b3: 89 73 fc mov %esi,-0x4(%ebx)
bp->s.ptr = p->s.ptr->s.ptr;
6b6: 8b 10 mov (%eax),%edx
6b8: 8b 12 mov (%edx),%edx
6ba: 89 53 f8 mov %edx,-0x8(%ebx)
if(p + p->s.size == bp){
6bd: 8b 50 04 mov 0x4(%eax),%edx
6c0: 8d 34 d0 lea (%eax,%edx,8),%esi
6c3: 39 f1 cmp %esi,%ecx
6c5: 75 c6 jne 68d <free+0x3d>
p->s.size += bp->s.size;
6c7: 03 53 fc add -0x4(%ebx),%edx
freep = p;
6ca: a3 20 0b 00 00 mov %eax,0xb20
p->s.size += bp->s.size;
6cf: 89 50 04 mov %edx,0x4(%eax)
p->s.ptr = bp->s.ptr;
6d2: 8b 53 f8 mov -0x8(%ebx),%edx
6d5: 89 10 mov %edx,(%eax)
}
6d7: 5b pop %ebx
6d8: 5e pop %esi
6d9: 5f pop %edi
6da: 5d pop %ebp
6db: c3 ret
6dc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
000006e0 <malloc>:
return freep;
}
void*
malloc(uint nbytes)
{
6e0: 55 push %ebp
6e1: 89 e5 mov %esp,%ebp
6e3: 57 push %edi
6e4: 56 push %esi
6e5: 53 push %ebx
6e6: 83 ec 0c sub $0xc,%esp
Header *p, *prevp;
uint nunits;
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
6e9: 8b 45 08 mov 0x8(%ebp),%eax
if((prevp = freep) == 0){
6ec: 8b 15 20 0b 00 00 mov 0xb20,%edx
nunits = (nbytes + sizeof(Header) - 1)/sizeof(Header) + 1;
6f2: 8d 78 07 lea 0x7(%eax),%edi
6f5: c1 ef 03 shr $0x3,%edi
6f8: 83 c7 01 add $0x1,%edi
if((prevp = freep) == 0){
6fb: 85 d2 test %edx,%edx
6fd: 0f 84 9d 00 00 00 je 7a0 <malloc+0xc0>
703: 8b 02 mov (%edx),%eax
705: 8b 48 04 mov 0x4(%eax),%ecx
base.s.ptr = freep = prevp = &base;
base.s.size = 0;
}
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
if(p->s.size >= nunits){
708: 39 cf cmp %ecx,%edi
70a: 76 6c jbe 778 <malloc+0x98>
70c: 81 ff 00 10 00 00 cmp $0x1000,%edi
712: bb 00 10 00 00 mov $0x1000,%ebx
717: 0f 43 df cmovae %edi,%ebx
p = sbrk(nu * sizeof(Header));
71a: 8d 34 dd 00 00 00 00 lea 0x0(,%ebx,8),%esi
721: eb 0e jmp 731 <malloc+0x51>
723: 90 nop
724: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
for(p = prevp->s.ptr; ; prevp = p, p = p->s.ptr){
728: 8b 02 mov (%edx),%eax
if(p->s.size >= nunits){
72a: 8b 48 04 mov 0x4(%eax),%ecx
72d: 39 f9 cmp %edi,%ecx
72f: 73 47 jae 778 <malloc+0x98>
p->s.size = nunits;
}
freep = prevp;
return (void*)(p + 1);
}
if(p == freep)
731: 39 05 20 0b 00 00 cmp %eax,0xb20
737: 89 c2 mov %eax,%edx
739: 75 ed jne 728 <malloc+0x48>
p = sbrk(nu * sizeof(Header));
73b: 83 ec 0c sub $0xc,%esp
73e: 56 push %esi
73f: e8 7e fc ff ff call 3c2 <sbrk>
if(p == (char*)-1)
744: 83 c4 10 add $0x10,%esp
747: 83 f8 ff cmp $0xffffffff,%eax
74a: 74 1c je 768 <malloc+0x88>
hp->s.size = nu;
74c: 89 58 04 mov %ebx,0x4(%eax)
free((void*)(hp + 1));
74f: 83 ec 0c sub $0xc,%esp
752: 83 c0 08 add $0x8,%eax
755: 50 push %eax
756: e8 f5 fe ff ff call 650 <free>
return freep;
75b: 8b 15 20 0b 00 00 mov 0xb20,%edx
if((p = morecore(nunits)) == 0)
761: 83 c4 10 add $0x10,%esp
764: 85 d2 test %edx,%edx
766: 75 c0 jne 728 <malloc+0x48>
return 0;
}
}
768: 8d 65 f4 lea -0xc(%ebp),%esp
return 0;
76b: 31 c0 xor %eax,%eax
}
76d: 5b pop %ebx
76e: 5e pop %esi
76f: 5f pop %edi
770: 5d pop %ebp
771: c3 ret
772: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
if(p->s.size == nunits)
778: 39 cf cmp %ecx,%edi
77a: 74 54 je 7d0 <malloc+0xf0>
p->s.size -= nunits;
77c: 29 f9 sub %edi,%ecx
77e: 89 48 04 mov %ecx,0x4(%eax)
p += p->s.size;
781: 8d 04 c8 lea (%eax,%ecx,8),%eax
p->s.size = nunits;
784: 89 78 04 mov %edi,0x4(%eax)
freep = prevp;
787: 89 15 20 0b 00 00 mov %edx,0xb20
}
78d: 8d 65 f4 lea -0xc(%ebp),%esp
return (void*)(p + 1);
790: 83 c0 08 add $0x8,%eax
}
793: 5b pop %ebx
794: 5e pop %esi
795: 5f pop %edi
796: 5d pop %ebp
797: c3 ret
798: 90 nop
799: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
base.s.ptr = freep = prevp = &base;
7a0: c7 05 20 0b 00 00 24 movl $0xb24,0xb20
7a7: 0b 00 00
7aa: c7 05 24 0b 00 00 24 movl $0xb24,0xb24
7b1: 0b 00 00
base.s.size = 0;
7b4: b8 24 0b 00 00 mov $0xb24,%eax
7b9: c7 05 28 0b 00 00 00 movl $0x0,0xb28
7c0: 00 00 00
7c3: e9 44 ff ff ff jmp 70c <malloc+0x2c>
7c8: 90 nop
7c9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
prevp->s.ptr = p->s.ptr;
7d0: 8b 08 mov (%eax),%ecx
7d2: 89 0a mov %ecx,(%edx)
7d4: eb b1 jmp 787 <malloc+0xa7>
| 35.565217 | 72 | 0.414196 |
e66fc32cabb251382d82d3c16d166e494bf0c440 | 6,535 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_481.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_481.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_481.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r14
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x1183b, %rbp
nop
nop
nop
sub $49093, %r14
movl $0x61626364, (%rbp)
nop
cmp $8206, %rsi
lea addresses_UC_ht+0x1d03b, %rbp
nop
nop
sub %r14, %r14
movl $0x61626364, (%rbp)
nop
nop
nop
nop
nop
dec %r13
lea addresses_UC_ht+0x67fb, %rsi
lea addresses_WT_ht+0x1c62f, %rdi
nop
nop
nop
add $43812, %rax
mov $80, %rcx
rep movsq
nop
and %rdi, %rdi
lea addresses_D_ht+0x1683b, %rsi
lea addresses_D_ht+0x1903b, %rdi
clflush (%rsi)
clflush (%rdi)
nop
nop
nop
nop
nop
cmp $19218, %r9
mov $25, %rcx
rep movsw
nop
nop
nop
nop
dec %r14
lea addresses_WC_ht+0x4c3b, %rbp
nop
nop
nop
nop
nop
inc %r14
mov (%rbp), %r9
nop
nop
nop
add %rbp, %rbp
lea addresses_UC_ht+0x13585, %rcx
nop
cmp $34943, %r13
movl $0x61626364, (%rcx)
nop
nop
sub $28941, %rax
lea addresses_A_ht+0x1ec3b, %rsi
lea addresses_normal_ht+0xf32b, %rdi
clflush (%rsi)
nop
sub $27023, %r13
mov $120, %rcx
rep movsb
nop
nop
sub $5548, %rsi
lea addresses_normal_ht+0x1562b, %rsi
lea addresses_A_ht+0x1aa5f, %rdi
nop
nop
nop
nop
nop
sub $3648, %r9
mov $123, %rcx
rep movsw
nop
nop
xor %rax, %rax
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r14
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r14
push %r15
push %rbp
push %rbx
push %rsi
// Store
lea addresses_D+0x19fcb, %rbx
nop
nop
nop
nop
cmp %rsi, %rsi
movl $0x51525354, (%rbx)
add $2884, %rbp
// Store
lea addresses_normal+0x1a63b, %r14
nop
nop
nop
nop
and $26524, %r11
movw $0x5152, (%r14)
nop
nop
nop
nop
and $41694, %r15
// Faulty Load
lea addresses_PSE+0x1483b, %r12
nop
dec %rbp
movups (%r12), %xmm7
vpextrq $0, %xmm7, %rsi
lea oracles, %r14
and $0xff, %rsi
shlq $12, %rsi
mov (%r14,%rsi,1), %rsi
pop %rsi
pop %rbx
pop %rbp
pop %r15
pop %r14
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_PSE', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_D', 'same': False, 'size': 4, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_normal', 'same': False, 'size': 2, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_PSE', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 4, 'congruent': 11, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_UC_ht', 'same': True, 'size': 4, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 8, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 4, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM'}
{'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
*/
| 35.906593 | 2,999 | 0.660291 |
9a8ccb44dec08b1df71534a7a5b7c7f1faab5b07 | 3,398 | asm | Assembly | RTCSys/asm/main.asm | Threetwosevensixseven/CSpectPlugins | fde1601aa153276cab3855cca9014bde9bca552f | [
"Apache-2.0"
] | 4 | 2020-01-13T12:54:11.000Z | 2020-10-10T14:04:13.000Z | RTCSys/asm/main.asm | Threetwosevensixseven/CSpectPlugins | fde1601aa153276cab3855cca9014bde9bca552f | [
"Apache-2.0"
] | null | null | null | RTCSys/asm/main.asm | Threetwosevensixseven/CSpectPlugins | fde1601aa153276cab3855cca9014bde9bca552f | [
"Apache-2.0"
] | 1 | 2020-04-19T18:45:36.000Z | 2020-04-19T18:45:36.000Z | ; main.asm
; Copyright 2019-2020 Robin Verhagen-Guest
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
; Assembles with Next version of Zeus
zeusemulate "Next", "RAW", "NOROM" ; from http://www.desdes.com/products/oldfiles/zeustest.exe
zxnextmap -1,DotBank1,-1,-1,-1,-1,-1,-1 ; Assemble into Next RAM bank but displace back down to $2000
zoSupportStringEscapes = true;
optionsize 5
CSpect optionbool 15, -15, "CSpect", false ; Option in Zeus GUI to launch CSpect
org $2700 ; RTC.SYS always starts at $2700
Start proc
nextreg 0, $12 ; Write first magic value to read-only register
nextreg 14, $34 ; Write second magic value to read-only register
ld bc, $243B
call ReadReg ; Read date LSB
ld l, a ; into L register
call ReadReg ; Read date MSB
ld h, a ; into H register
push hl ; Save date on stack
call ReadReg ; Read time LSB
ld e, a ; into E register
call ReadReg ; Read time MSB
ld d, a ; into D register
call ReadReg ; Read whole seconds
ld h, a ; into H register
ld l, $FF ; Signal no milliseconds
pop bc ; Restore date from stack
ccf ; Signal success
ret ; Return from RTC.SYS
pend
ReadReg proc
ld a, $7F
out (c), a
inc b
in a, (c)
dec b
ret
pend
include "constants.asm" ; Global constants
include "macros.asm" ; Zeus macros
Length equ $-Start
zeusprinthex "Command size: ", Length
zeusassert zeusver>=75, "Upgrade to Zeus v4.00 (TEST ONLY) or above, available at http://www.desdes.com/products/oldfiles/zeustest.exe"
if (Length > $2000)
zeuserror "DOT command is too large to assemble!"
endif
output_bin "..\\bin\\RTC.SYS", zeusmmu(DotBank1)+$700, Length
if enabled CSpect
zeusinvoke "..\\build\\cspect.bat", "", false
else
//zeusinvoke "..\\..\\build\\builddot.bat"
endif
| 46.547945 | 135 | 0.473514 |
563c787b6f5a3e6582c33504006fc57dcd12c9ac | 3,362 | asm | Assembly | data/actors/seagull-3.asm | sinusoid-studios/rhythm-land | 6471f1d7b7d885bbb898888645ac291d45125134 | [
"MIT"
] | 11 | 2021-08-10T20:31:11.000Z | 2021-12-28T11:57:03.000Z | data/actors/seagull-3.asm | sinusoid-studios/rhythm-land | 6471f1d7b7d885bbb898888645ac291d45125134 | [
"MIT"
] | null | null | null | data/actors/seagull-3.asm | sinusoid-studios/rhythm-land | 6471f1d7b7d885bbb898888645ac291d45125134 | [
"MIT"
] | 1 | 2021-10-02T17:49:10.000Z | 2021-10-02T17:49:10.000Z | INCLUDE "constants/hardware.inc"
INCLUDE "constants/games/seagull-serenade.inc"
INCLUDE "constants/actors.inc"
INCLUDE "macros/actors.inc"
SECTION "Seagull Serenade Seagull 3 Actor Animation Data", ROMX
xActorSeagull3Animation::
animation Seagull3
set_tiles resting, 6
.bobLoop
cel resting4, 5
cel resting2, MUSIC_SEAGULL_SERENADE_SPEED * 2 - 5
goto_cel .bobLoop
.groove
set_tiles resting, 6
.grooveLoop
cel resting1, MUSIC_SEAGULL_SERENADE_SPEED * 2 - 5
cel resting2, 5
cel resting3, MUSIC_SEAGULL_SERENADE_SPEED * 2 - 5
cel resting2, 5
goto_cel .grooveLoop
.high
cel resting2, 3
cel resting1, 3
set_tiles high1, 6
cel high1, 3
set_tiles high2, 6
cel high2, MUSIC_SEAGULL_SERENADE_SPEED * 2 - 3 * 4
set_tiles high1, 6
cel high1, 3
override_end .groove
.mid
cel resting1, 3
cel resting2, 3
set_tiles mid1, 6
cel mid1, 3
set_tiles mid2, 6
cel mid2, MUSIC_SEAGULL_SERENADE_SPEED * 2 - 3 * 4
set_tiles mid1, 6
cel mid1, 3
override_end .groove
.low
cel resting2, 3
cel resting3, 3
set_tiles low1, 8
cel low1, 3
set_tiles low2, 8
cel low2, MUSIC_SEAGULL_SERENADE_SPEED * 2 - 3 * 4
set_tiles low1, 8
cel low1, 3
override_end .groove
.missedNote
set_tiles missedNote, 6
override_end
xActorSeagull3Tiles:
.resting
INCBIN "res/seagull-serenade/seagull-3/resting.obj.2bpp"
.missedNote
INCBIN "res/seagull-serenade/seagull-3/missed-note.obj.2bpp"
.high1
INCBIN "res/seagull-serenade/seagull-3/high-1.obj.2bpp"
.high2
INCBIN "res/seagull-serenade/seagull-3/high-2.obj.2bpp"
.mid1
INCBIN "res/seagull-serenade/seagull-3/mid-1.obj.2bpp"
.mid2
INCBIN "res/seagull-serenade/seagull-3/mid-2.obj.2bpp"
.low1
INCBIN "res/seagull-serenade/seagull-3/low-1.obj.2bpp"
.low2
INCBIN "res/seagull-serenade/seagull-3/low-2.obj.2bpp"
SECTION "Seagull Serenade Seagull 3 Actor Meta-Sprite Data", ROMX
xActorSeagull3Metasprites::
metasprite .resting1
metasprite .resting2
metasprite .resting3
metasprite .resting4
metasprite .high1
metasprite .high2
metasprite .mid1
metasprite .mid2
metasprite .low1
metasprite .low2
.resting1
; Also used for missed note (data happens to be identical)
obj 0, -1, $00, 0
obj 0, 7, $02, 0
obj 0, 15, $04, 0
DB METASPRITE_END
.resting2
obj -1, 0, $00, 0
obj -1, 8, $02, 0
obj -1, 16, $04, 0
DB METASPRITE_END
.resting3
obj 0, 1, $00, 0
obj 0, 9, $02, 0
obj 0, 17, $04, 0
DB METASPRITE_END
.resting4
obj 0, 0, $00, 0
obj 0, 8, $02, 0
obj 0, 16, $04, 0
DB METASPRITE_END
.high1
obj 1, 1, $00, 0
obj 1, 9, $02, 0
obj 1, 17, $04, 0
DB METASPRITE_END
.high2
obj -1, 5, $00, 0
obj 1, 13, $02, 0
obj 0, 21, $04, 0
DB METASPRITE_END
.mid1
obj 0, 0, $00, 0
obj 0, 8, $02, 0
obj 0, 16, $04, 0
DB METASPRITE_END
.mid2
obj 0, 1, $00, 0
obj 0, 9, $02, 0
obj 0, 17, $04, 0
DB METASPRITE_END
.low1
obj 3, -3, $00, 0
obj 1, 5, $02, 0
obj 0, 12, $04, 0
DB METASPRITE_END
.low2
obj 6, -3, $00, 0
obj 1, 5, $02, 0
obj 1, 13, $04, 0
obj 17, 5, $06, 0
DB METASPRITE_END
.missedNote
obj 0, -6, $00, 0
obj 0, 2, $02, 0
obj 0, 10, $04, 0
DB METASPRITE_END
| 21.551282 | 65 | 0.640393 |
2674c2aeb1d7ab6df981856455bb0cf82d8294fb | 444 | asm | Assembly | libsrc/_DEVELOPMENT/arch/zx/esxdos/c/sccz80/esxdos_disk_read_callee.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/arch/zx/esxdos/c/sccz80/esxdos_disk_read_callee.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/arch/zx/esxdos/c/sccz80/esxdos_disk_read_callee.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ; int esxdos_disk_read(uchar device, ulong position, void *dst)
SECTION code_clib
SECTION code_esxdos
PUBLIC esxdos_disk_read_callee
EXTERN asm_esxdos_disk_read
esxdos_disk_read_callee:
pop hl
pop ix
pop de
pop bc
ex (sp),hl
ld a,l
push ix
pop hl
jp asm_esxdos_disk_read
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _esxdos_disk_read_callee
defc _esxdos_disk_read_callee = esxdos_disk_read_callee
ENDIF
| 14.322581 | 63 | 0.77027 |
095f7dabdc5ce7801a3f428e3e076e3d047006ae | 334 | asm | Assembly | programs/oeis/272/A272470.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/272/A272470.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/272/A272470.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A272470: 7 times the primes.
; 14,21,35,49,77,91,119,133,161,203,217,259,287,301,329,371,413,427,469,497,511,553,581,623,679,707,721,749,763,791,889,917,959,973,1043,1057,1099,1141,1169,1211,1253,1267,1337,1351,1379,1393,1477,1561,1589,1603,1631,1673,1687,1757,1799,1841,1883,1897
cal $0,40 ; The prime numbers.
mul $0,7
mov $1,$0
| 47.714286 | 251 | 0.733533 |
d41122bc155124392fd6db69bace0e08c4628eeb | 7,337 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_41.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_41.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_41.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 %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x1b07f, %r13
nop
nop
nop
nop
xor $38886, %r8
movb (%r13), %r11b
nop
nop
nop
nop
nop
cmp %rdx, %rdx
lea addresses_WT_ht+0x14eb4, %r10
clflush (%r10)
nop
nop
and %rdx, %rdx
movb (%r10), %r9b
nop
nop
and $46926, %rdx
lea addresses_D_ht+0x1cdce, %rsi
lea addresses_D_ht+0x7c6e, %rdi
nop
nop
nop
nop
sub $21649, %r13
mov $101, %rcx
rep movsq
nop
nop
add %r10, %r10
lea addresses_D_ht+0x1786e, %rdx
nop
dec %r11
movups (%rdx), %xmm0
vpextrq $0, %xmm0, %rdi
cmp %rdi, %rdi
lea addresses_A_ht+0x1d5fe, %rcx
nop
nop
nop
and $44666, %rsi
mov (%rcx), %r13w
nop
nop
nop
nop
xor %r9, %r9
lea addresses_WC_ht+0x90ae, %rsi
lea addresses_D_ht+0x5446, %rdi
nop
nop
cmp %r9, %r9
mov $62, %rcx
rep movsw
nop
nop
nop
sub %r11, %r11
lea addresses_WT_ht+0x1626e, %rsi
lea addresses_normal_ht+0x4685, %rdi
nop
mfence
mov $19, %rcx
rep movsl
nop
nop
nop
nop
nop
sub $14036, %r8
lea addresses_D_ht+0xdc6e, %rdx
nop
nop
nop
sub %r9, %r9
mov $0x6162636465666768, %r13
movq %r13, %xmm7
and $0xffffffffffffffc0, %rdx
movaps %xmm7, (%rdx)
nop
nop
nop
sub %rdi, %rdi
lea addresses_WT_ht+0x15cee, %rcx
nop
add %rdi, %rdi
mov (%rcx), %rsi
cmp %r10, %r10
lea addresses_D_ht+0x886e, %r9
nop
nop
nop
nop
xor %r10, %r10
mov $0x6162636465666768, %rdx
movq %rdx, (%r9)
nop
nop
nop
nop
dec %r13
lea addresses_D_ht+0xd46e, %rsi
lea addresses_D_ht+0x19f6e, %rdi
nop
nop
nop
nop
sub $427, %r9
mov $66, %rcx
rep movsq
nop
nop
nop
nop
add $1818, %r10
lea addresses_normal_ht+0x1e418, %rdx
nop
cmp $34217, %r9
mov (%rdx), %edi
nop
nop
nop
nop
nop
sub $20001, %rdx
lea addresses_WC_ht+0x1970a, %rsi
lea addresses_WT_ht+0x1723b, %rdi
nop
nop
nop
nop
nop
add %r13, %r13
mov $38, %rcx
rep movsq
nop
nop
nop
nop
nop
add %rdi, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r13
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r15
push %r9
push %rax
push %rcx
push %rdx
// Faulty Load
lea addresses_A+0x1546e, %r13
nop
nop
nop
cmp $54531, %rdx
movups (%r13), %xmm2
vpextrq $0, %xmm2, %r15
lea oracles, %rcx
and $0xff, %r15
shlq $12, %r15
mov (%rcx,%r15,1), %r15
pop %rdx
pop %rcx
pop %rax
pop %r9
pop %r15
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_A', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': True}}
{'35': 21829}
35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35
*/
| 33.35 | 2,999 | 0.658307 |
eb598a51aad60ccae323531880bb59b4a635739c | 28 | asm | Assembly | tools/yasm/tests/nasm/reloc2.asm | fasttr-org/ftr | ddba517fb53062d5dc919c94526607bb39bff4b9 | [
"BSD-3-Clause-Clear"
] | null | null | null | tools/yasm/tests/nasm/reloc2.asm | fasttr-org/ftr | ddba517fb53062d5dc919c94526607bb39bff4b9 | [
"BSD-3-Clause-Clear"
] | null | null | null | tools/yasm/tests/nasm/reloc2.asm | fasttr-org/ftr | ddba517fb53062d5dc919c94526607bb39bff4b9 | [
"BSD-3-Clause-Clear"
] | null | null | null | SECTION .text
.text db 5
| 4.666667 | 13 | 0.642857 |
2e60eb506556d5f60b729f1cd8058e2ea3e08b9d | 2,112 | asm | Assembly | programs/oeis/200/A200748.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/200/A200748.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/200/A200748.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A200748: Smallest number requiring n terms to be expressed as a sum of factorials.
; 0,1,3,5,11,17,23,47,71,95,119,239,359,479,599,719,1439,2159,2879,3599,4319,5039,10079,15119,20159,25199,30239,35279,40319,80639,120959,161279,201599,241919,282239,322559,362879,725759,1088639,1451519,1814399,2177279,2540159,2903039,3265919,3628799,7257599,10886399,14515199,18143999,21772799,25401599,29030399,32659199,36287999,39916799,79833599,119750399,159667199,199583999,239500799,279417599,319334399,359251199,399167999,439084799,479001599,958003199,1437004799,1916006399,2395007999,2874009599,3353011199,3832012799,4311014399,4790015999,5269017599,5748019199,6227020799,12454041599,18681062399,24908083199,31135103999,37362124799,43589145599,49816166399,56043187199,62270207999,68497228799,74724249599,80951270399,87178291199,174356582399,261534873599,348713164799,435891455999,523069747199,610248038399,697426329599,784604620799,871782911999,958961203199,1046139494399,1133317785599,1220496076799,1307674367999,2615348735999,3923023103999,5230697471999,6538371839999,7846046207999,9153720575999,10461394943999,11769069311999,13076743679999,14384418047999,15692092415999,16999766783999,18307441151999,19615115519999,20922789887999,41845579775999,62768369663999,83691159551999,104613949439999,125536739327999,146459529215999,167382319103999,188305108991999,209227898879999,230150688767999,251073478655999,271996268543999,292919058431999,313841848319999,334764638207999,355687428095999,711374856191999,1067062284287999,1422749712383999,1778437140479999,2134124568575999,2489811996671999,2845499424767999,3201186852863999,3556874280959999,3912561709055999,4268249137151999,4623936565247999,4979623993343999,5335311421439999,5690998849535999,6046686277631999,6402373705727999
mov $9,$0
mov $11,$0
lpb $11,1
clr $0,9
mov $0,$9
sub $11,1
sub $0,$11
mov $2,$0
lpb $2,1
mov $6,$0
lpb $4,1
mov $2,$8
trn $4,$3
lpe
lpb $6,1
add $5,1
mov $0,$5
mov $3,$5
fac $3
trn $6,$5
add $8,$2
mov $4,$8
lpe
sub $2,1
lpe
add $10,$3
lpe
mov $1,$10
| 66 | 1,680 | 0.818655 |
bcf3d432ccfd0234e18f4bb92a2a670d52b589be | 4,525 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_21829_337.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_21829_337.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_21829_337.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r14
push %r9
push %rbp
push %rdi
lea addresses_D_ht+0x13ca8, %r9
clflush (%r9)
dec %r14
mov (%r9), %r11
nop
nop
and $12075, %rdi
lea addresses_WT_ht+0x528, %rbp
nop
nop
cmp %r11, %r11
movups (%rbp), %xmm6
vpextrq $0, %xmm6, %rdi
nop
nop
nop
nop
nop
add %r14, %r14
pop %rdi
pop %rbp
pop %r9
pop %r14
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %r15
push %rax
push %rbp
push %rbx
push %rdi
// Store
lea addresses_PSE+0x19718, %rax
nop
nop
nop
xor %rdi, %rdi
movl $0x51525354, (%rax)
nop
and %rbp, %rbp
// Faulty Load
lea addresses_D+0x1f4a8, %r14
nop
nop
nop
add $41211, %rbx
movb (%r14), %r13b
lea oracles, %rdi
and $0xff, %r13
shlq $12, %r13
mov (%rdi,%r13,1), %r13
pop %rdi
pop %rbx
pop %rbp
pop %rax
pop %r15
pop %r14
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_PSE', 'size': 4, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_D', 'size': 1, 'AVXalign': True}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': True, 'congruent': 11, 'NT': False, 'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
| 52.011494 | 2,999 | 0.658564 |
6e6cbb8e5dff37930792c8694d3e9656f86d1efd | 1,237 | asm | Assembly | waterbackground/_includes/subroutines/gradientFade.asm | ArcadeTV/megadrive-samples | bb00902a844f63d55c6f449d50b0ae8a72c3c05e | [
"CC0-1.0"
] | 5 | 2021-05-15T21:47:38.000Z | 2022-03-27T19:33:15.000Z | wireframe/_includes/subroutines/gradientFade.asm | ArcadeTV/megadrive-samples | bb00902a844f63d55c6f449d50b0ae8a72c3c05e | [
"CC0-1.0"
] | 1 | 2021-06-09T10:17:41.000Z | 2021-06-09T15:07:37.000Z | wireframe/_includes/subroutines/gradientFade.asm | ArcadeTV/megadrive-samples | bb00902a844f63d55c6f449d50b0ae8a72c3c05e | [
"CC0-1.0"
] | null | null | null | gradientFade:
movem.l d0-a6,-(sp)
WaitVBlank
move.w #$2700,sr ; Interrupts off
; set gradient to initial position:
move.w #($FFFF-192),(ram_plane_a_scroll_x).l
SetVRAMWrite vram_addr_hscroll
move.w #($FFFF-192),vdp_data
; replace Plane A map (logos) with gradient map:
SetVRAMWrite vram_addr_plane_a
lea (Tilemap_Gradient),a0 ; Move the address of the first map entry into a0
move.l #(64*32)-1,d0 ; Loop counter (-1 for DBRA loop)
gradientFade_writeTileMap_Loop: ; Start of loop
move.w (a0)+,d1 ; Write tile line (4 bytes per line), and post-increment address
or.w #$6000,d1 ; Set Palette Index to 3 (0000:0, 2000:1, 4000:2, 6000:3)
addi.w #(tile_count_menu-21),d1 ; set beginning of gradient tiledata
move.w d1,vdp_data
dbra d0,gradientFade_writeTileMap_Loop ; Decrement d0 and loop until finished (when d0 reaches -1)
move.w #(64-1),(RAM_GRADIENT_BLANK).l ; set next column index to be blanked
move.w #$2300,sr ; Interrupts on
WaitVBlank
movem.l (sp)+,d0-a6
rts | 42.655172 | 105 | 0.587712 |
c99a150d49dafeac361be94e9401f63e8fffd1be | 508 | asm | Assembly | src/test/ref/preprocessor-8.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | 2 | 2022-03-01T02:21:14.000Z | 2022-03-01T04:33:35.000Z | src/test/ref/preprocessor-8.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | src/test/ref/preprocessor-8.asm | jbrandwood/kickc | d4b68806f84f8650d51b0e3ef254e40f38b0ffad | [
"MIT"
] | null | null | null | // Test the preprocessor
// Macro generating inline kickasm
// Commodore 64 PRG executable file
.file [name="preprocessor-8.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(main)
.label SCREEN = $400
.segment Code
main: {
// SEI
sei
// SCREEN[idx++] = 'x'
lda #'x'
sta SCREEN
// CLI
cli
// }
rts
}
| 21.166667 | 65 | 0.645669 |
3987090774f7d8068f1222db3df029a2c92c9cce | 2,225 | asm | Assembly | audio/music/pokemonchannel.asm | AtmaBuster/pokecrystal16-493-plus | 0c8cd4d187c246fe1debc07f89e278fd702595d7 | [
"blessing"
] | 1 | 2021-01-19T04:15:45.000Z | 2021-01-19T04:15:45.000Z | audio/music/pokemonchannel.asm | AtmaBuster/pokecrystal16-493-plus | 0c8cd4d187c246fe1debc07f89e278fd702595d7 | [
"blessing"
] | null | null | null | audio/music/pokemonchannel.asm | AtmaBuster/pokecrystal16-493-plus | 0c8cd4d187c246fe1debc07f89e278fd702595d7 | [
"blessing"
] | 1 | 2021-01-16T00:12:08.000Z | 2021-01-16T00:12:08.000Z | Music_PokemonChannel:
channel_count 4
channel 1, Music_PokemonChannel_Ch1
channel 2, Music_PokemonChannel_Ch2
channel 3, Music_PokemonChannel_Ch3
channel 4, Music_PokemonChannel_Ch4
Music_PokemonChannel_Ch1::
tempo 155
volume 7, 7
stereo_panning TRUE, FALSE
duty_cycle 1
note_type 12, 5, 6
.loop
octave 4
note D_, 1
rest 3
note D_, 1
rest 1
note D_, 4
note D_, 1
rest 1
note D_, 1
note D_, 1
rest 2
octave 3
note A_, 1
rest 3
note A_, 1
rest 1
note A_, 4
note A_, 1
rest 1
note A_, 1
note A_, 1
rest 2
octave 4
note F_, 1
note F_, 1
note F_, 1
rest 1
note F_, 1
note F_, 1
note D_, 1
rest 3
note D_, 1
rest 1
note F_, 1
note F_, 1
rest 2
note E_, 4
note E_, 1
note E_, 1
rest 4
note C_, 4
note E_, 2
sound_loop 0, .loop
Music_PokemonChannel_Ch2::
stereo_panning FALSE, TRUE
duty_cycle 2
note_type 12, 12, 3
.loop
volume_envelope 12, 2
octave 4
note G_, 2
octave 3
note A_, 2
octave 4
note G_, 2
note F_, 4
note G_, 2
note A_, 2
note C_, 2
note D#, 2
note D_, 2
note C#, 2
note D_, 4
note C_, 2
note D_, 2
note F#, 2
note A_, 2
note G#, 2
note A_, 2
octave 5
note C_, 4
octave 4
note G#, 2
note A_, 2
note C_, 2
volume_envelope 12, 4
note G#, 6
note G#, 4
volume_envelope 12, 2
note G#, 2
note A_, 2
note C_, 2
sound_loop 0, .loop
Music_PokemonChannel_Ch3::
vibrato 8, 3, 4
note_type 12, 2, 5
.loop
octave 3
note F_, 4
rest 2
note F_, 2
octave 4
note C_, 4
rest 2
note C_, 2
note D_, 4
rest 2
note D_, 2
octave 3
note F#, 4
rest 2
note F#, 2
note G_, 1
rest 1
note G_, 1
rest 1
note G_, 1
rest 5
note G_, 1
rest 1
note G_, 2
rest 2
octave 4
note C_, 1
rest 1
note C_, 1
rest 3
octave 3
note C_, 1
rest 3
note C_, 1
rest 1
note G_, 2
note C_, 2
sound_loop 0, .loop
Music_PokemonChannel_Ch4_sub_0:
drum_note 4, 2
drum_note 4, 2
drum_note 3, 2
drum_note 4, 2
drum_note 4, 2
drum_note 3, 2
drum_note 3, 2
drum_note 4, 2
sound_ret
Music_PokemonChannel_Ch4::
toggle_noise 3
drum_speed 12
.loop
sound_call Music_PokemonChannel_Ch4_sub_0
sound_call Music_PokemonChannel_Ch4_sub_0
sound_call Music_PokemonChannel_Ch4_sub_0
sound_call Music_PokemonChannel_Ch4_sub_0
sound_loop 0, .loop | 14.082278 | 42 | 0.693034 |
313bd09211591bbfbb458c97e5e4da47e28ec465 | 967 | asm | Assembly | oeis/260/A260483.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/260/A260483.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/260/A260483.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A260483: Beatty sequence for e^(1/Pi) = A179706.
; Submitted by Christian Krause
; 1,2,4,5,6,8,9,10,12,13,15,16,17,19,20,21,23,24,26,27,28,30,31,32,34,35,37,38,39,41,42,43,45,46,48,49,50,52,53,54,56,57,59,60,61,63,64,65,67,68,70,71,72,74,75,76,78,79,81,82,83,85,86,87,89,90,92,93,94,96,97,98,100,101,103,104,105,107,108,109,111,112,114,115,116,118,119,120,122,123,125,126,127,129,130,131,133,134,136,137
mov $4,$0
add $4,1
mov $12,$0
lpb $4
mov $0,$12
sub $4,1
sub $0,$4
mov $8,$0
mov $9,0
mov $10,2
lpb $10
mov $0,$8
mov $1,0
mov $5,0
mov $6,0
sub $10,1
add $0,$10
sub $0,1
mov $3,$0
mul $3,3
lpb $3
add $2,1
add $6,$2
add $1,$6
mod $1,2
mov $2,$1
mul $2,2
sub $3,1
add $5,$2
lpe
mov $1,$5
div $1,8
mov $0,$1
mov $11,$10
mul $11,$1
add $9,$11
lpe
min $8,1
mul $8,$0
mov $0,$9
sub $0,$8
add $0,1
add $7,$0
lpe
mov $0,$7
| 19.34 | 322 | 0.525336 |
bcc24fbdef995841a22affe87219ec10498488db | 357 | asm | Assembly | oeis/093/A093140.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/093/A093140.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/093/A093140.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A093140: Expansion of (1-6*x)/((1-x)*(1-10*x)).
; Submitted by Jamie Morken(m1)
; 1,5,45,445,4445,44445,444445,4444445,44444445,444444445,4444444445,44444444445,444444444445,4444444444445,44444444444445,444444444444445,4444444444444445,44444444444444445,444444444444444445
seq $0,42 ; Unary representation of natural numbers.
div $0,10
mul $0,4
add $0,1
| 39.666667 | 192 | 0.784314 |
e0957382aed20ac573b3d653adaebaaf3e3fb0eb | 699 | asm | Assembly | oeis/276/A276602.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/276/A276602.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/276/A276602.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A276602: Values of k such that k^2 + 10 is a triangular number (A000217).
; Submitted by Jamie Morken(s1.)
; 0,9,54,315,1836,10701,62370,363519,2118744,12348945,71974926,419500611,2445028740,14250671829,83059002234,484103341575,2821561047216,16445262941721,95850016603110,558654836676939,3256079003458524,18977819184074205,110610836100986706,644687197421846031,3757512348430089480,21900386893158690849,127644809010522055614,743968467169973642835,4336165994009319801396,25273027496885945165541,147301998987306351191850,858538966426952161985559,5003931799574406620721504,29165051831019487562343465
lpb $0
sub $0,1
add $2,$1
add $1,$2
add $1,$2
add $1,1
add $2,$1
lpe
mov $0,$1
mul $0,9
| 46.6 | 488 | 0.826896 |
b9faed94e8b74928a4804cff45162edc905fc1dd | 1,514 | asm | Assembly | Snippeturi/modele/2/2/goldbach.asm | DanBrezeanu/IOCLA | 1a22cc2949afc72818289f47288e32004f633fd1 | [
"MIT"
] | 2 | 2019-11-18T15:56:21.000Z | 2020-01-18T01:22:37.000Z | Snippeturi/modele/2/2/goldbach.asm | zatbogdan99/IOCLA | 3d499ad18624f571e6c49ff891649a05ac9908e4 | [
"MIT"
] | null | null | null | Snippeturi/modele/2/2/goldbach.asm | zatbogdan99/IOCLA | 3d499ad18624f571e6c49ff891649a05ac9908e4 | [
"MIT"
] | null | null | null | %include "io.inc"
extern fgets
extern stdin
extern printf
section .data
n dd 7
format_str db "Number: %d", 13, 10, 0
prime_format db "isPrime: %d", 13, 10, 0
section .bss
number resb 9
section .text
global main
;TODO b: Implement stringToNumber
stringToNumber:
push ebp
mov ebp, esp
push ebx
mov ecx, 10
mov edi, [ebp + 8]
xor eax, eax
xor edx, edx
make_number:
mov bl, [edi]
cmp bl, 10
jbe return
mul ecx
sub ebx, 0x30
add eax, ebx
inc edi
jmp make_number
return:
pop ebx
leave
ret
;TODO c.: Add missing code bits
isPrime:
push ebp
mov ebp, esp
mov ecx, 2
mov eax, [ebp+8]
xor edx, edx
div ecx
mov ebx, eax
mov eax, [ebp+8]
loop:
div ecx
cmp edx, 0
je not_prime
inc ecx
mov eax, [ebp+8]
xor edx, edx
cmp ecx, ebx
jne loop
mov eax, 1
jmp done
not_prime:
xor eax, eax
done:
leave
ret
CMAIN:
push ebp
mov ebp, esp
;TODO a.: allocate space on stack and call fgets
push dword [stdin]
push dword [n]
push number
call fgets
;TODO b.: call stringToNumber and print it using printf
push number
call stringToNumber
push eax
push format_str
call printf
;TODO c.: call isPrime and print result
add esp, 4
call isPrime
test eax, eax
jz exit
push prime_format
call printf
exit:
leave
ret
| 13.63964 | 59 | 0.575297 |
9fb5e06f63aa00a5204a31aceb96757e26a0346f | 5,890 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_2026.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_0x48.log_21829_2026.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_0x48.log_21829_2026.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x2d51, %rsi
lea addresses_UC_ht+0x1ca81, %rdi
nop
nop
nop
nop
add $41195, %rbx
mov $67, %rcx
rep movsw
nop
nop
nop
and %rdx, %rdx
lea addresses_A_ht+0x8f01, %r9
nop
cmp $20166, %rdi
movb (%r9), %bl
nop
nop
add $37412, %rsi
lea addresses_WC_ht+0xf997, %rsi
lea addresses_UC_ht+0x18841, %rdi
xor $4487, %r13
mov $86, %rcx
rep movsw
nop
nop
nop
add %rsi, %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r9
push %rax
push %rbx
push %rdi
push %rdx
// Store
lea addresses_normal+0x1b101, %r9
nop
nop
cmp %rbx, %rbx
mov $0x5152535455565758, %rdi
movq %rdi, (%r9)
nop
nop
nop
sub %rbx, %rbx
// Store
lea addresses_WC+0x15ad1, %r10
nop
xor $19775, %r13
mov $0x5152535455565758, %rax
movq %rax, %xmm1
vmovups %ymm1, (%r10)
nop
nop
and $17677, %r9
// Store
lea addresses_PSE+0x1b4ad, %r13
xor $12853, %r9
mov $0x5152535455565758, %rax
movq %rax, (%r13)
nop
nop
nop
nop
nop
inc %r9
// Store
lea addresses_A+0x7c81, %rdi
nop
nop
nop
nop
xor $52705, %rax
movw $0x5152, (%rdi)
nop
nop
nop
nop
nop
sub $33724, %rbx
// Load
lea addresses_WT+0xbb01, %r13
add %r10, %r10
mov (%r13), %bx
sub %rbx, %rbx
// Faulty Load
lea addresses_WC+0x6301, %r10
nop
dec %rbx
mov (%r10), %r13
lea oracles, %rbx
and $0xff, %r13
shlq $12, %r13
mov (%rbx,%r13,1), %r13
pop %rdx
pop %rdi
pop %rbx
pop %rax
pop %r9
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 9, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 4, 'size': 32, '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_A', 'AVXalign': True, 'congruent': 6, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 10, 'size': 2, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 39.266667 | 2,999 | 0.655857 |
fdb34f4441e4a813ab2d8fb0201905c478d3c7e5 | 23 | asm | Assembly | Assembly Microbenchmarks/mulTest.asm | idn0971/HLS_Benchmarking | 1dccf2c83d8e7bb4f2a50bc2b7e464bb7c270f65 | [
"MIT"
] | null | null | null | Assembly Microbenchmarks/mulTest.asm | idn0971/HLS_Benchmarking | 1dccf2c83d8e7bb4f2a50bc2b7e464bb7c270f65 | [
"MIT"
] | null | null | null | Assembly Microbenchmarks/mulTest.asm | idn0971/HLS_Benchmarking | 1dccf2c83d8e7bb4f2a50bc2b7e464bb7c270f65 | [
"MIT"
] | null | null | null | li t0, 3
mul s6, t0 ,t0 | 11.5 | 14 | 0.608696 |
63195b6ce3ab138f68231761df11500818940689 | 1,888 | asm | Assembly | programs/oeis/157/A157517.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/157/A157517.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/157/A157517.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A157517: a(n) = 7 + 12*n - 6*n^2.
; 7,13,7,-11,-41,-83,-137,-203,-281,-371,-473,-587,-713,-851,-1001,-1163,-1337,-1523,-1721,-1931,-2153,-2387,-2633,-2891,-3161,-3443,-3737,-4043,-4361,-4691,-5033,-5387,-5753,-6131,-6521,-6923,-7337,-7763,-8201,-8651,-9113,-9587,-10073,-10571,-11081,-11603,-12137,-12683,-13241,-13811,-14393,-14987,-15593,-16211,-16841,-17483,-18137,-18803,-19481,-20171,-20873,-21587,-22313,-23051,-23801,-24563,-25337,-26123,-26921,-27731,-28553,-29387,-30233,-31091,-31961,-32843,-33737,-34643,-35561,-36491,-37433,-38387,-39353,-40331,-41321,-42323,-43337,-44363,-45401,-46451,-47513,-48587,-49673,-50771,-51881,-53003,-54137,-55283,-56441,-57611,-58793,-59987,-61193,-62411,-63641,-64883,-66137,-67403,-68681,-69971,-71273,-72587,-73913,-75251,-76601,-77963,-79337,-80723,-82121,-83531,-84953,-86387,-87833,-89291,-90761,-92243,-93737,-95243,-96761,-98291,-99833,-101387,-102953,-104531,-106121,-107723,-109337,-110963,-112601,-114251,-115913,-117587,-119273,-120971,-122681,-124403,-126137,-127883,-129641,-131411,-133193,-134987,-136793,-138611,-140441,-142283,-144137,-146003,-147881,-149771,-151673,-153587,-155513,-157451,-159401,-161363,-163337,-165323,-167321,-169331,-171353,-173387,-175433,-177491,-179561,-181643,-183737,-185843,-187961,-190091,-192233,-194387,-196553,-198731,-200921,-203123,-205337,-207563,-209801,-212051,-214313,-216587,-218873,-221171,-223481,-225803,-228137,-230483,-232841,-235211,-237593,-239987,-242393,-244811,-247241,-249683,-252137,-254603,-257081,-259571,-262073,-264587,-267113,-269651,-272201,-274763,-277337,-279923,-282521,-285131,-287753,-290387,-293033,-295691,-298361,-301043,-303737,-306443,-309161,-311891,-314633,-317387,-320153,-322931,-325721,-328523,-331337,-334163,-337001,-339851,-342713,-345587,-348473,-351371,-354281,-357203,-360137,-363083,-366041,-369011
mov $1,2
sub $1,$0
mul $1,$0
mul $1,6
add $1,7
| 209.777778 | 1,803 | 0.712924 |
837a3249987d21508baac1c2f398a10b3e72d75b | 6,107 | asm | Assembly | Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2.log_21829_1715.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2.log_21829_1715.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2.log_21829_1715.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 %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0x16761, %r11
nop
nop
cmp $31714, %r13
mov $0x6162636465666768, %r10
movq %r10, (%r11)
nop
nop
nop
nop
nop
sub %rdx, %rdx
lea addresses_UC_ht+0x1d649, %rsi
lea addresses_UC_ht+0x1a7e1, %rdi
nop
nop
nop
inc %r13
mov $2, %rcx
rep movsw
nop
nop
dec %r13
lea addresses_A_ht+0x1d0a1, %r13
nop
nop
nop
nop
add %r10, %r10
movw $0x6162, (%r13)
nop
and %rcx, %rcx
lea addresses_A_ht+0xc961, %rdi
nop
sub %rdx, %rdx
movb (%rdi), %r10b
nop
nop
and $29398, %rdi
lea addresses_WT_ht+0x14401, %rdi
nop
nop
nop
add %r11, %r11
vmovups (%rdi), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $1, %xmm5, %rdx
nop
nop
xor $24230, %rcx
lea addresses_D_ht+0x7f61, %r11
nop
nop
nop
nop
and %rdi, %rdi
mov $0x6162636465666768, %r10
movq %r10, %xmm5
movups %xmm5, (%r11)
nop
nop
and %rdi, %rdi
lea addresses_UC_ht+0xdb61, %r10
nop
nop
nop
nop
nop
cmp $8678, %rsi
movl $0x61626364, (%r10)
nop
nop
nop
nop
nop
and %rcx, %rcx
lea addresses_UC_ht+0x12429, %r13
xor $15387, %r11
mov (%r13), %cx
nop
nop
nop
nop
inc %r10
lea addresses_WT_ht+0x18481, %rsi
nop
nop
add $30582, %r13
mov (%rsi), %dx
nop
nop
add %r13, %r13
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r13
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r9
push %rax
push %rbx
push %rcx
push %rdx
// Faulty Load
mov $0x36902c0000000761, %r13
nop
nop
nop
xor $52206, %rax
movups (%r13), %xmm2
vpextrq $0, %xmm2, %rdx
lea oracles, %rcx
and $0xff, %rdx
shlq $12, %rdx
mov (%rcx,%rdx,1), %rdx
pop %rdx
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 5, 'same': False}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 38.408805 | 2,999 | 0.656951 |
235d9ec59e6a9372d55041938b204dc6d17fca76 | 3,970 | asm | Assembly | engine/battle/moveEffects/reflect_light_screen_effect.asm | longlostsoul/EvoYellow | fe5d0d372c4e90d384c4005a93f19d7968f2ff13 | [
"Unlicense"
] | 16 | 2018-08-28T21:47:01.000Z | 2022-02-20T20:29:59.000Z | engine/battle/moveEffects/reflect_light_screen_effect.asm | longlostsoul/EvoYellow | fe5d0d372c4e90d384c4005a93f19d7968f2ff13 | [
"Unlicense"
] | 5 | 2019-04-03T19:53:11.000Z | 2022-03-11T22:49:34.000Z | engine/battle/moveEffects/reflect_light_screen_effect.asm | longlostsoul/EvoYellow | fe5d0d372c4e90d384c4005a93f19d7968f2ff13 | [
"Unlicense"
] | 2 | 2019-12-09T19:46:02.000Z | 2020-12-05T21:36:30.000Z | ReflectLightScreenEffect_:
ld hl, wPlayerBattleStatus3
ld de, wPlayerMoveEffect
ld a, [H_WHOSETURN]
and a
jr z, .reflectLightScreenEffect
ld hl, wEnemyBattleStatus3
ld de, wEnemyMoveEffect
.reflectLightScreenEffect
ld a, [de]
cp SPIKES_EFFECT
jr nz, .light
set SpikesStatusUp, [hl]
ld a,[H_WHOSETURN]
and a
jr z, .player
ld a,1
ld [wSurfingMinigameTrickFlags],a
jr .spikes
.player
ld a,1
ld [wPrinterStatusFlags],a;temp flag I guess
.spikes
ld hl, SpikesText
jr .playAnim
.light
cp LIGHT_SCREEN_EFFECT
jr nz, .reflect
bit HasLightScreenUp, [hl] ; is mon already protected by light screen?
jr nz, .moveFailed
set HasLightScreenUp, [hl] ; mon is now protected by light screen
ld hl, LightScreenProtectedText
jr .playAnim
.reflect
bit HasReflectUp, [hl] ; is mon already protected by reflect?
jr nz, .moveFailed
set HasReflectUp, [hl] ; mon is now protected by reflect
ld hl, ReflectGainedArmorText
.playAnim
push hl
ld hl, PlayCurrentMoveAnimation
call Bankswitch3DtoF
pop hl
jp PrintText
.moveFailed
ld c, 50
call DelayFrames
ld hl, PrintButItFailedText_
jp Bankswitch3DtoF
DoEnemySpikes::
; ld hl, wEnemyBattleStatus3
; bit SpikesStatusUp, [hl] ; check for Spikes from the enemy to hurt you. couldn't get it to work properly this way ehh.
;jr nz, .no
ld a, [wSurfingMinigameTrickFlags] ;temp flag I guess
cp 1
jr nz, .no
; res SpikesStatusUp, [hl]
ld a, 25
ld b,a
ld a,[wBattleMonHP + 1]
sub b
ld [wBattleMonHP + 1],a
ld [wHPBarNewHP],a
ld hl, SpikesText
jp PrintText
.no
ret
DoSpikes:: ;hurts enemy, or should
;ld hl, wPlayerBattleStatus3
;bit SpikesStatusUp, [hl] ; check for Spikes
;jr z, .check1
ld a, [wPrinterStatusFlags];crappy temp flag.
cp 1
jr nz, .no
;.check1
;ld a, 0
;ld [wPrinterStatusFlags],a ;0ing out if we want
; ld a, [H_WHOSETURN]
; and a
; jr z, .Player
; jp .no
;enemy did the switch and not the player, hopefully?
; ld a, 15
; ld b, a
; ld a, [wEnemyMonHP + 1]
; sub b
; ld [wEnemyMonHP + 1],a
ld hl, SpikesText
call PrintText
callba selfdamage ;hm, would need to mirror this above for link battles.
jp .no
.no
ret
;####WEATHER~! Rain Dance, Sunny Day
GetWeather::
ld de, wPlayerSelectedMove
ld a, [H_WHOSETURN]
and a
jr z, .SunnyorRain
ld de, wEnemySelectedMove
.SunnyorRain
ld a, [de]
cp SPLASH
jr nz, .light
ld a,7;it starts raining yay.
ld [wUnusedD366],a;just some flag I repurposed.
ret
.light
ld a,3
ld [wUnusedD366],a
;do another one for sunny day.
ret
;DoWeather:: ;accuracy over-ride not actually present/correctly working yet.
; ld a,[wUnusedD366]
; cp 0
; jr nz, .cont
; ret
;.cont
; ld a,[wMoveType]
; cp ELECTRIC
; ret
WeatherBonus::
ld a,[wUnusedD366]
cp 0
jr z,.ret
cp 4
jr c, .sun
ld a,[wMoveType]
cp WATER
jr z, .cont
cp ELECTRIC
jr z, .cont
cp FLYING
jr z, .cont
.sun
ld a,[wMoveType]
cp FIRE
jr z, .cont
cp GRASS
jr z, .cont
.cont
;bonus dmg
ld hl,wDamage + 1
ld a,[hld]
ld h,[hl]
ld l,a ; hl = damage
ld b,h
ld c,l ; bc = damage
srl b
rr c ; bc = floor(0.5 * damage)
add hl,bc ; hl = floor(1.5 * damage)
; store damage
ld a,h
ld [wDamage],a
ld a,l
ld [wDamage + 1],a
ld hl,wDamageMultipliers
set 7,[hl]
.ret
ret
SubWeather:: ;last three turns?
ld a,1
ld b,a
ld a,[wUnusedD366] ;rainy
cp 4
jr c, .check ;if it is bigger than this, it's rainy. smaller is sunny.
sub b
ld [wUnusedD366],a
cp 4
jr nz, .rain ;if it is 4, 0 it out
ld a,0
ld [wUnusedD366],a
jr .rain
.check
ld a, [wUnusedD366];sunny?
cp 0
jr z, .end
sub b ;subtract b from a
ld [wUnusedD366],a
ld hl, SunnyText
jp PrintText
.rain
ld hl, WeatherRages
jp PrintText
.end
ret
WeatherRages:
TX_FAR _RainingText
db "@"
SunnyText
TX_FAR _SunnyText
db "@"
SpikesText:
TX_FAR _SpikesText
db "@"
LightScreenProtectedText:
TX_FAR _LightScreenProtectedText
db "@"
ReflectGainedArmorText:
TX_FAR _ReflectGainedArmorText
db "@"
Bankswitch3DtoF:
ld b, BANK(BattleCore)
jp Bankswitch
| 17.644444 | 120 | 0.699496 |
b4fab9d4cc2445e42f29d4ae14779ffa325491c5 | 2,283 | asm | Assembly | samples/sprites/initializer/boo_ring_gen.asm | boldowa/GIEPY | 5aa326b264ef19f71d2e0ab5513b08fac7bca941 | [
"MIT"
] | 8 | 2018-03-15T22:01:35.000Z | 2019-07-13T18:04:41.000Z | samples/sprites/initializer/boo_ring_gen.asm | telinc1/GIEPY | 9c87ad1070e519637fc4b11b6bef01f998961678 | [
"MIT"
] | 21 | 2018-02-18T06:25:40.000Z | 2018-07-13T17:54:40.000Z | samples/sprites/initializer/boo_ring_gen.asm | telinc1/GIEPY | 9c87ad1070e519637fc4b11b6bef01f998961678 | [
"MIT"
] | 2 | 2018-07-25T21:04:23.000Z | 2022-01-01T08:40:13.000Z | ;-------------------------------------------------
; Cluster sprite initialize code
; (boo ring generator)
;
; [Initializer's Scratch Memory Usage]
; $00 ... Screen boundary X(Y) + offset
; $01 ... Screen boundary X(Y) + offset
; $02 ... 's' bit (#$10 or #$00)
; $03 ... Sprite data index
; $04 ... free to use
; $05 ... Sprite number
; $06 ... Sprite group (Extra bits >> 2)
; $07 ... Extra bits
; $08 - $0f ... free to use
;
; [etc]
; $98 ... extra bytes pointer (if you enabled it)
;-------------------------------------------------
;!NumOfGenerate = 10
GenCluster:
%putdebug("ClusterGen")
;--- Get extra byte
if !true == !EXTRA_BYTES_EXT
lda.b [$98]
dec
else
; lda.b #!NumOfGenerate-1
xba ; get unique info
bne + ; if 0 is specified, nothing to do.
rts
+ dec
endif
sta.b $0e ; set cluster sprite number
;--- check generation
ldy.w $18ba|!base2 ; boo ring inx
cpy.b #$02
bcs .return ; already exists 2 rings, can't generate.
ldy.b #$01 ;\
lda.b $05 ; | ... $05 = sprite number
and.b #$01 ; |
beq + ; | $0f = Rotational direction of boo ring
ldy.b #$ff ; |
+ sty.b $0f ;/
;--- generate cluster boo looop
ldx.b #$13 ; Cluster sprite max
.generateLoop
;--- search empty slot of cluster sprite
lda.w !cluster_num,x
bne .SearchNextSlot
;--- set cluster sprite parameter
lda.b #$04 ; cluster sprite 04 = ring boo
sta.w !cluster_num,x
lda.w $18ba|!base2
sta.w $0f86|!base2,x
lda $0e
sta.w $0f72|!base2,x
lda.b $0f
sta.w $0f4a|!base2,x
stz $0f
beq .skip
ldy.b $03
lda [$ce],y ; Byte format: YYYYEEsy
ldy.w $18ba|!base2
pha
and.b #$f0
sta.w $0fb6|!base2,y
pla
and.b #$01
sta.w $0fb8|!base2,y
lda $00
sta.w $0fb2|!base2,y
lda $01
sta.w $0fb4|!base2,y
lda.b #$00
sta.w $0fba|!base2,y
lda $02
sta.w $0fbc|!base2,y
.skip
dec.b $0e
bmi .done
.SearchNextSlot
dex
bpl .generateLoop
.done
inc.w $18ba|!base2
.return
rts ; return
;---------------------------------------
; Entry point
;---------------------------------------
print "INIT ", pc
phb
phk
plb
jsr GenCluster
plb
rtl
| 21.138889 | 58 | 0.51336 |
4c46a4fd73fc5b7d44d5edf0a1a418686e27a7c6 | 25,235 | asm | Assembly | Library/Kernel/Thread/threadSem.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Library/Kernel/Thread/threadSem.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Library/Kernel/Thread/threadSem.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @-----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Thread
FILE: threadSem.asm
ROUTINES:
Name Description
---- -----------
GLB ThreadBlockOnQueue Block on a queue (application entry
point)
GLB ThreadWakeUpQueue Wake up a queue (application entry
point)
EXT BlockOnLongQueue Block on a queue (general routine)
EXT WakeUpLongQueue Wake up a queue (general routine)
EXT WakeUpRunQueue Wake up the run queue
EXT WakeUpSI Wake up thread SI
INT WakeUpRunQueue Wake up the run queue
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 4/88 Initial version
DESCRIPTION:
This file implements the semaphore handling routines.
$Id: threadSem.asm,v 1.1 97/04/05 01:15:22 newdeal Exp $
-------------------------------------------------------------------------------@
COMMENT @----------------------------------------------------------------------
FUNCTION: ThreadAllocThreadLock
DESCRIPTION: Allocate a semaphore
CALLED BY: GLOBAL
PASS:
none
RETURN:
bx - handle of semaphore
DESTROYED:
none
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 1/91 Initial version
------------------------------------------------------------------------------@
ThreadAllocThreadLock proc far
mov bx, 1
FALL_THRU ThreadAllocSem
ThreadAllocThreadLock endp
COMMENT @----------------------------------------------------------------------
FUNCTION: ThreadAllocSem
DESCRIPTION: Allocate a semaphore
CALLED BY: GLOBAL
PASS:
bx - value for semaphore
RETURN:
bx - handle of semaphore
DESTROYED:
none
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 1/91 Initial version
------------------------------------------------------------------------------@
ThreadAllocSem proc far uses ds
.enter
push bx
LoadVarSeg ds
mov bx, ss:[TPD_processHandle] ;owner
call AllocateHandle ;all fields set to zero
mov ds:[bx].HS_type, SIG_SEMAPHORE
mov ds:[bx].HS_moduleLock.TL_owner, -1
pop ds:[bx].HS_moduleLock.TL_sem.Sem_value
.leave
ret
ThreadAllocSem endp
COMMENT @----------------------------------------------------------------------
FUNCTION: ThreadFreeSem
DESCRIPTION: Allocate a semaphore
CALLED BY: GLOBAL
PASS:
bx - handle of semaphore
RETURN:
none
DESTROYED:
none
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 1/91 Initial version
------------------------------------------------------------------------------@
ThreadFreeSem proc far uses ds
.enter
EC < call CheckLegalSemaphoreHandle >
LoadVarSeg ds
call FreeHandle
.leave
ret
ThreadFreeSem endp
if ERROR_CHECK
CheckLegalSemaphoreHandle proc near
pushf ; flags presevered, remember?
push ds ; -- todd 08/15/94
LoadVarSeg ds
call CheckHandleLegal
cmp ds:[bx].HS_type, SIG_SEMAPHORE
ERROR_NZ NON_SEMAPHORE_PASSED_TO_SEM_ROUTINE
pop ds
call SafePopf ; can be called with INTs off.
ret ; -- todd 08/15/94
CheckLegalSemaphoreHandle endp
endif
COMMENT @----------------------------------------------------------------------
C FUNCTION: ThreadPSem
C DECLARATION: extern SemaphoreError
_far _pascal ThreadPSem(SemaphoreHandle sem);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
SetGeosConvention
THREADPSEM proc far ; mh:hptr
C_GetOneWordArg bx, ax,cx ;bx = handle
FALL_THRU ThreadPSem
THREADPSEM endp
SetDefaultConvention
COMMENT @----------------------------------------------------------------------
FUNCTION: ThreadPSem
DESCRIPTION: P a semaphore
CALLED BY: GLOBAL
PASS:
bx - handle of semaphore
RETURN:
ax - SemaphoreError
DESTROYED:
none (carry flag preserved)
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 1/91 Initial version
------------------------------------------------------------------------------@
ThreadPSem proc far
call _dopsem
clr ax
ret
ThreadPSem endp
_dopsem proc near
push bx
EC < call CheckLegalSemaphoreHandle >
lea bx, ds:[bx].HS_moduleLock.TL_sem ;preserve flags
jmp SysPSemCommon
_dopsem endp
COMMENT @----------------------------------------------------------------------
C FUNCTION: ThreadVSem
C DECLARATION: extern SemaphoreError
C DECLARATION: extern Boolean
_far _pascal ThreadVSem(SemaphoreHandle sem);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
SetGeosConvention
THREADVSEM proc far ; mh:hptr
C_GetOneWordArg bx, ax,cx ;bx = handle
FALL_THRU ThreadVSem
THREADVSEM endp
SetDefaultConvention
COMMENT @----------------------------------------------------------------------
FUNCTION: ThreadVSem
DESCRIPTION: V a semaphore
CALLED BY: GLOBAL
PASS:
bx - handle of semaphore
RETURN:
ax - SemaphoreError
DESTROYED:
none (flags preserved)
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 1/91 Initial version
------------------------------------------------------------------------------@
ThreadVSem proc far
call _dovsem
mov ax, 0 ;preserve flags
ret
ThreadVSem endp
_dovsem proc near
EC < call CheckLegalSemaphoreHandle >
push bx
lea bx, ds:[bx].HS_moduleLock.TL_sem ;preserve flags
jmp SysVSemCommon
_dovsem endp
COMMENT @----------------------------------------------------------------------
C FUNCTION: ThreadPTimedSem
C DECLARATION: extern SemaphoreError
_far _pascal ThreadPTimedSem(SemaphoreHandle sem,
word timeout);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
SetGeosConvention
THREADPTIMEDSEM proc far ; mh:hptr
C_GetTwoWordArgs bx, cx, ax,dx ;bx = handle, cx = timeout
FALL_THRU ThreadPTimedSem
THREADPTIMEDSEM endp
SetDefaultConvention
COMMENT @----------------------------------------------------------------------
FUNCTION: ThreadPTimedSem
DESCRIPTION: P a semaphore with a timeout value
CALLED BY: GLOBAL
PASS:
bx - handle of semaphore
cx - timeout value
RETURN:
ax - SemaphoreError (SE_TIMEOUT if timeout)
DESTROYED:
none
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 1/91 Initial version
------------------------------------------------------------------------------@
ThreadPTimedSem proc far uses ds
.enter
clr ax
LoadVarSeg ds
EC < call CheckLegalSemaphoreHandle >
PTimedSem ds, [bx].HS_moduleLock.TL_sem, cx
jnc done
mov ax, SE_TIMEOUT
done:
.leave
ret
ThreadPTimedSem endp
COMMENT @----------------------------------------------------------------------
C FUNCTION: ThreadGrabThreadLock
C DECLARATION: extern void
_far _pascal ThreadGrabThreadLock(
ThreadLockHandle sem);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
SetGeosConvention
THREADGRABTHREADLOCK proc far ; mh:hptr
C_GetOneWordArg bx, ax,cx ;bx = handle
FALL_THRU ThreadGrabThreadLock
THREADGRABTHREADLOCK endp
SetDefaultConvention
COMMENT @----------------------------------------------------------------------
FUNCTION: ThreadGrabThreadLock
DESCRIPTION: Grab a thread lock
CALLED BY: GLOBAL
PASS:
bx - handle of semaphore
RETURN:
none
DESTROYED:
none
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 1/91 Initial version
------------------------------------------------------------------------------@
ThreadGrabThreadLock proc far
call _dolock
ret
ThreadGrabThreadLock endp
_dolock proc near
push bx
EC < call CheckHandleLegal >
add bx, offset HS_moduleLock
jmp SysLockCommon
_dolock endp
COMMENT @----------------------------------------------------------------------
C FUNCTION: ThreadReleaseThreadLock
C DECLARATION: extern void
_far _pascal ThreadReleaseThreadLock(
ThreadLockHandle sem);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
SetGeosConvention
THREADRELEASETHREADLOCK proc far ; mh:hptr
C_GetOneWordArg bx, ax,cx ;bx = handle
FALL_THRU ThreadReleaseThreadLock
THREADRELEASETHREADLOCK endp
SetDefaultConvention
COMMENT @----------------------------------------------------------------------
FUNCTION: ThreadReleaseThreadLock
DESCRIPTION: Release a thread lock
CALLED BY: GLOBAL
PASS:
bx - handle of semaphore
RETURN:
none
DESTROYED:
none
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 1/91 Initial version
------------------------------------------------------------------------------@
ThreadReleaseThreadLock proc far
call _dounlock
ret
ThreadReleaseThreadLock endp
_dounlock proc near
push bx
EC < call CheckHandleLegal >
add bx, offset HS_moduleLock
jmp SysUnlockCommon
_dounlock endp
COMMENT @-----------------------------------------------------------------------
FUNCTION: ThreadBlockOnQueue
DESCRIPTION: Block on a queue (application entry point)
CALLED BY: GLOBAL
PASS:
ax - segment of queue
bx - offset of queue
RETURN:
ax, bx - destroyed
DESTROYED:
none (flags preserved)
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 4/88 Initial version
-------------------------------------------------------------------------------@
ThreadBlockOnQueue proc far
call BlockOnLongQueue ;call real routine
ret
ThreadBlockOnQueue endp
COMMENT @-----------------------------------------------------------------------
FUNCTION: ThreadWakeUpQueue
DESCRIPTION: Wake up a queue (application entry point)
CALLED BY: GLOBAL
PASS:
ax - segment of queue
bx - offset of queue
RETURN:
ax, bx - destroyed
DESTROYED:
none (carry flag preserved)
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 4/88 Initial version
-------------------------------------------------------------------------------@
ThreadWakeUpQueue proc far
call WakeUpLongQueue ;call real routine
ret
ThreadWakeUpQueue endp
COMMENT @-----------------------------------------------------------------------
FUNCTION: WakeUpSI
DESCRIPTION: Wake up thread SI if it is higher priority than current
thread. Otherwise, put SI on the run queue.
CALLED BY: EXTERNAL
ThreadCreate
PASS:
si - handle of thread
RETURN:
si - same
DESTROYED:
ax, bx
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 6/88 Initial version
-------------------------------------------------------------------------------@
FarWakeUpSI proc far
call WakeUpSI
ret
FarWakeUpSI endp
WakeUpSI proc near
if SUPPORT_32BIT_DATA_REGS
push ds
push esi
push edi
push ecx
pushf
push edx
mov ecx, eax ; ecx.high = eax.high
rol ebx, 16 ; bx = orig ebx.high
mov cx, bx ; cx = orig ebx.high
ror ebx, 16 ; restore ebx
push ecx ; push eax.high, ebx.high
push es
push fs
push gs
else
push ds
push si
push di
push cx
pushf
push dx
push es
endif ; SUPPORT_32BIT_DATA_REGS
LoadVarSeg ds
INT_OFF
jmp WakeUpCommon
WakeUpSI endp
COMMENT @-----------------------------------------------------------------------
FUNCTION: WakeUpRunQueue
DESCRIPTION: Wake up any higher-priority thread that is runnable.
CALLED BY: EXTERNAL
TimerInterrupt, ThreadModify, SysExitInterrupt
PASS:
ds = idata
RETURN:
none
DESTROYED:
ax
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 7/88 Initial version
ardeb 5/90 Changed to check for empty run queue and save bx
(2 of the 3 places that called this
saved bx around it; 2 of 3 places had to check
for a non-zero run queue)
-------------------------------------------------------------------------------@
WakeUpRunQueue proc near
push bx
mov bx,offset runQueue
tst {word}ds:[bx]
jz noOneElse
mov ax,ds
call WakeUpLongQueue
noOneElse:
pop bx
ret
WakeUpRunQueue endp
COMMENT @-----------------------------------------------------------------------
FUNCTION: WakeUpLongQueue
DESCRIPTION: Wake up a queue (kernel entry point)
CALLED BY: EXTERNAL
WakeUpCSQueue, ThreadWakeUpQueue
PASS:
ax - segment of queue
bx - offset of queue
RETURN:
ax, bx - destroyed
carry flag - SAME
DESTROYED:
none
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
Take first thread off of queue and put it on run queue. If new
thread is higher priority than current thread, then block the current
thread and run the new thread.
If in interrupt code or in in the kernel's thread then do not context
switch.
Since the PSem and VSem macros do not turn off interrupts, a little
bit of special syncronization code is required in BlockOnLongQueue
and in WakeUpLongQueue:
BlockOnLongQueue:
INT_OFF
test queue,15
jz BOLQ_block
dec queue
ret
BOLQ_block:
** Block on the queue
WakeUpLongQueue:
INT_OFF
test queue,15
jbe WULQ_wakeUp
inc queue
ret
WULQ_wakeUp:
** Wake up the queue
The problem is that PSem might decrement the semaphore from 0 to -1
but before the thread can block, a context switch causes another
thread to do a VSem and increment from -1 to 0. This causes
WakeUpLongQueue to be called which normally expects to wake up a
thread. This is impossible since the first thread has not yet blocked.
In this case WakeUpLongQueue will set the queue to 1 which signals
BlockOnLongQueue to not actually block.
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 4/88 Initial version
-------------------------------------------------------------------------------@
WakeUpLongQueue proc near
if SUPPORT_32BIT_DATA_REGS
push ds
push esi
push edi
push ecx
pushf
push edx
mov ecx, eax
rol ebx, 16 ; ecx.high = eax.high
mov cx, bx ; cx = orig ebx.high
ror ebx, 16 ; restore ebx
push ecx ; push eax.high, ebx.high
push es
push fs
push gs
else
push ds
push si
push di
push cx
pushf
push dx
push es
endif ; SUPPORT_32BIT_DATA_REGS
LoadVarSeg ds
INT_OFF
mov es,ax
; test for nothing to wake up
cmp word ptr es:[bx],16
jae 10$
inc word ptr es:[bx]
jmp RecoverFromPartialBlock
10$:
call RemoveFromQueue ;get highest priority thread from queue
;compare priorities
WakeUpCommon label near
cmp si,KERNEL_INIT_BLOCK ;is kernel blocked in init code ?
jz kernelInit
cmp ds:[interruptCount],0 ;are we running interrupt code ?
jnz intNoWakeUp ;if so then do not context switch
mov bx,ds:[currentThread]
tst bx ;test for kernel mode
jz noWakeUp
mov al,ds:[bx][HT_curPriority] ;load priority of current
cmp al,ds:[si][HT_curPriority] ;compare to newly runnable
jae BlockAndDispatchSI ;if current process is lower or
;equal then branch to block it
; else put new thread on run queue and exit
noWakeUp:
mov ax,ds:[runQueue]
mov ds:[si][HT_nextQThread],ax
mov ds:[runQueue],si
jmp RecoverFromPartialBlock
; waking up kernel thread
kernelInit:
inc ds:[initWaitFlag]
jmp RecoverFromPartialBlock
; not waking up because running interrupt code
intNoWakeUp:
mov ds:[intWakeUpAborted],TRUE
jmp noWakeUp
WakeUpLongQueue endp
COMMENT @-----------------------------------------------------------------------
FUNCTION: BlockAndDispatchSI
DESCRIPTION: Block on the run queue and run the given thread
CALLED BY: EXTERNAL
WakeUpCommon
PASS:
interrupts off
si - handle of thread to run
ds - kernel variable segment
stack - registers pushed in this order:
ds, si, di, cx, flags, dx, es
RETURN:
ax, bx - destroyed
DESTROYED:
none
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 6/88 Initial version
-------------------------------------------------------------------------------@
BlockAndDispatchSI proc near jmp
if SUPPORT_32BIT_DATA_REGS
push ebp ;push the rest of the registerse
else
push bp ;push the rest of the registers
endif ; SUPPORT_32BIT_DATA_REGS
if UTILITY_MAPPING_WINDOW
;
; save current utility mapping windows
;
call UtilWindowSaveMapping
endif
if TRACK_INTER_RESOURCE_CALLS
FXIP < push ds:[curXIPResourceHandle] ;Save the current XIP >
;resource handle
endif
FXIP < push ds:[curXIPPage] ;Save the current XIP page >
EC < mov dx,ss >
EC < cmp dx, seg dgroup >
EC < ERROR_Z BLOCK_IN_KERNEL >
mov bx,ds:[currentThread] ;insert proc in queue
mov ax,ds:[runQueue] ;get old start of queue
mov ds:[bx][HT_nextQThread],ax
mov ds:[runQueue],bx
mov ds:[bx][HT_saveSS],ss
mov ds:[bx][HT_saveSP],sp
;switch to kernel context
call SwitchToKernel ;ds <- idata
jmp DispatchSI
BlockAndDispatchSI endp
COMMENT @-----------------------------------------------------------------------
FUNCTION: BlockOnLongQueue
DESCRIPTION: Block on a queue (kernel entry point)
CALLED BY: EXTERNAL
ThreadBlockOnQueue, various and sundry
PASS:
interrupts off
ax - segment of queue
bx - offset of queue
RETURN:
ax, bx - destroyed
flags - same
DESTROYED:
none
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
Special code is needed since PSem and VSem do not turn off interrupts.
This is detailed in WakeUpLongQueue.
BlockOnLongQueue:
INT_OFF
test queue,15
jz BOLQ_block
dec queue
ret
BOLQ_block:
** Block on the queue
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 4/88 Initial version
-------------------------------------------------------------------------------@
BlockOnLongQueue proc near
if SUPPORT_32BIT_DATA_REGS
push ds
push esi
push edi
push ecx
pushf
push edx
mov ecx, eax ; ecx.high = eax.high
rol ebx, 16 ; bx = orig ebx.high
mov cx, bx ; cx = orig ebx.high
ror ebx, 16 ; restore ebx
push ecx ; push eax.high, ebx.high
push es
push fs
push gs
push ebp
else
push ds ;save registers, both to save state and to
push si ;give us some working space
push di
push cx
pushf
push dx
push es
push bp
endif ; SUPPORT_32BIT_DATA_REGS
LoadVarSeg ds ;ds = idata
mov es,ax ;es = queue
; If blocked in kernel then assume init code and don't reset stack
; this allows blocking in init code
INT_OFF
; Test for WakeUp already happened
mov ax,es:[bx] ;get old start of queue
test ax,15
jz 10$
dec word ptr es:[bx] ;wake up already happened, continue
jmp RecoverFromFullBlock
10$:
tst ds:[interruptCount]
jnz blockInInterrupt
mov si,ds:[currentThread] ;insert proc in queue
tst si
jz kernel
mov es:[bx],si
mov ds:[si][HT_nextQThread],ax
if UTILITY_MAPPING_WINDOW
;
; save current utility mapping windows
;
call UtilWindowSaveMapping
endif
if TRACK_INTER_RESOURCE_CALLS
FXIP < push ds:[curXIPResourceHandle] ;Save the current XIP >
;resource handle
endif
FXIP < push ds:[curXIPPage] >
mov ds:[si][HT_saveSS],ss
mov ds:[si][HT_saveSP],sp
jmp Dispatch ;context is switched to kernel in
;this routine. Returning from BOLQ
;is also handled by Dispatch
;when this thread is woken up.
; Blocking in kernel thread or during an interrupt -- use special wait
; loop
kernel:
; EC CODE REMOVED 1/7/93: this can happen if wait/post is enabled and the
; machine is acting as a server for a peer-to-peer network. In this case,
; the int 28h issued by the primary IFS driver will be echoed as an
; int 2ah::84h which can cause disk access and lead to a wait/post
; invocation. The primary IFS driver doesn't do a SysEnterCritical, as it
; has no need to, other than this EC code... -- ardeb
EC < cmp ds:[initFlag],0 >
EC < ERROR_Z BLOCK_IN_KERNEL >
blockInInterrupt:
mov ax, sp
mov si, ss
xchg ds:[initStack].offset, ax
xchg ds:[initStack].segment, si
push ax
push si
push {word}es:[bx] ;allow other threads to be blocked on
; the same queue
mov word ptr es:[bx],KERNEL_INIT_BLOCK ;mark as special block
clr ax
mov ds:[initWaitFlag],al
INT_ON
BOLQ_loop:
call Idle
xchg al,ds:[initWaitFlag]
tst al
jz BOLQ_loop
pop {word}es:[bx] ; recover previously queued threads
pop ds:[initStack].segment ; and previous initStack in case
pop ds:[initStack].offset ; we're nesting these things...
jmp RecoverFromFullBlock
BlockOnLongQueue endp
COMMENT @-----------------------------------------------------------------------
FUNCTION: RemoveFromQueue
DESCRIPTION: Remove the highest priority thread from the given queue
CALLED BY: INTERNAL
WakeUpLongQueue, Dispatch
PASS:
interupts off
es:bx - queue
ds - kernel variable segment
RETURN:
si - handle of highest priority thread (0 if none in queue)
DESTROYED:
ax, bx, cx, dx, di
REGISTER/STACK USAGE:
cl - highest priority so far
si - handle of highest priority thread
PSEUDO CODE/STRATEGY:
Move through queue keeping to find highest priority thread
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 6/88 Initial version
-------------------------------------------------------------------------------@
RemoveFromQueue proc near
; es:bx = queue
mov si,es:[bx] ;get first proc on queue
; test for waking up thread blocked in init code
cmp si,KERNEL_INIT_BLOCK
jz kernelInit
EC < call CheckThreadSI >
cmp ds:[si][HT_nextQThread],0 ;test for only one thread
jnz moreThanOne
; only one thread
mov word ptr es:[bx],0 ;zero queue
ret ;return thread in si
kernelInit:
mov word ptr es:[bx],0
ret
moreThanOne:
mov dx,bx
mov cl,ds:[si][HT_curPriority]
mov bx,si
clr si
; bx = current thread
; si = handle BEFORE highest priority thread so far
; cl = priority of highest priority thread so far
threadLoop:
mov di,ds:[bx][HT_nextQThread] ;di = next thread
or di,di ;(thread to test)
jz atEnd ;if at end then branch
EC < call CheckThreadDI >
cmp cl,ds:[di][HT_curPriority] ;compare priority of current
jb noNewWinner ;winner to priority of thread
;on queue. If current is higher
;then branch
mov si,bx
mov cl,ds:[di][HT_curPriority]
noNewWinner:
mov bx,di
jmp threadLoop
atEnd:
or si,si ;test for removing first thread
jz removeFirst
mov bx,si
mov si,ds:[si][HT_nextQThread] ;si = thread to return
clr di ;make si's not point to anything
xchg di,ds:[si][HT_nextQThread]
mov ds:[bx][HT_nextQThread],di
EC < call CheckThreadSI >
ret
removeFirst:
mov bx,dx
mov si,es:[bx]
clr di
xchg di,ds:[si][HT_nextQThread]
mov es:[bx],di
EC < call CheckThreadSI >
ret
RemoveFromQueue endp
| 20.976725 | 81 | 0.598019 |
8ceaee384e053b078cca052fd5df551f1a0185e3 | 453 | asm | Assembly | src/radar_event_hacks.asm | mvdhout1992/ts-patches | a426970abeb6993eea6703d1a756fd74489ffed2 | [
"MIT"
] | 33 | 2016-07-30T14:17:28.000Z | 2021-12-19T15:45:19.000Z | src/radar_event_hacks.asm | A-Productions/ts-patches | 326db731f7226d9e803feab475777c730688634e | [
"MIT"
] | 73 | 2018-08-17T00:25:19.000Z | 2021-05-10T08:31:15.000Z | src/radar_event_hacks.asm | A-Productions/ts-patches | 326db731f7226d9e803feab475777c730688634e | [
"MIT"
] | 18 | 2017-05-16T11:28:06.000Z | 2022-03-20T20:41:03.000Z | %include "macros/patch.inc"
%include "macros/datatypes.inc"
%include "TiberianSun.inc"
;;; Don't create a radar event for a new unit or building being placed
@CLEAR 0x004BED18, 0x90, 0x004BED1E
@LJZ 0x004BD438, _HouseClass__Attacked_spectator_events
cextern IsSpectatorArray
section .text
_HouseClass__Attacked_spectator_events:
mov edx, [eax+0x20]
cmp dword [IsSpectatorArray+edx*4], 1
jz 0x004BD43E
jmp 0x004BD4C5
| 25.166667 | 70 | 0.748344 |
c3b0f508dd99c7ce2491b28782cc9d345ed3bb16 | 677 | asm | Assembly | oeis/229/A229283.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/229/A229283.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/229/A229283.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A229283: Number of ascending runs in {1,...,9}^n.
; Submitted by Jon Maiga
; 0,9,126,1539,17496,190269,2007666,20726199,210450636,2109289329,20920706406,205720279659,2008387814976,19487638017189,188098071296346,1807266603941919,17294855095950516,164918796807813849,1567655079768657486,14859368894402912979,140488578637991177256,1325185535037205239309,12473764760992408949826,117187737359849736712839,1099004326836910135895196,10289871156916553772373569,96198330350708246895213366,898090382602507588551581499,8373562128437768595416184336,77978797321076720044813216629
mov $1,1
add $1,$0
mov $2,$0
lpb $0
sub $0,1
mul $1,4
add $1,$2
mov $2,$1
mul $1,2
lpe
mov $0,$2
| 42.3125 | 491 | 0.833087 |
adf9bf336a0caecd55b7ab30efedd9863ced30a0 | 503 | asm | Assembly | oeis/166/A166621.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/166/A166621.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/166/A166621.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A166621: a(n) = 10*n - a(n-1), with n>1, a(1)=5.
; Submitted by Christian Krause
; 5,15,15,25,25,35,35,45,45,55,55,65,65,75,75,85,85,95,95,105,105,115,115,125,125,135,135,145,145,155,155,165,165,175,175,185,185,195,195,205,205,215,215,225,225,235,235,245,245,255,255,265,265,275,275,285,285,295,295,305,305,315,315,325,325,335,335,345,345,355,355,365,365,375,375,385,385,395,395,405,405,415,415,425,425,435,435,445,445,455,455,465,465,475,475,485,485,495,495,505
add $0,1
div $0,2
mul $0,10
add $0,5
| 55.888889 | 381 | 0.697813 |
77f4232fdd1416cca76de48a1775155e1ea56614 | 707 | asm | Assembly | oeis/041/A041030.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/041/A041030.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/041/A041030.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A041030: Numerators of continued fraction convergents to sqrt(20).
; Submitted by Jon Maiga
; 4,9,76,161,1364,2889,24476,51841,439204,930249,7881196,16692641,141422324,299537289,2537720636,5374978561,45537549124,96450076809,817138163596,1730726404001,14662949395604,31056625195209,263115950957276,557288527109761,4721424167835364,10000136862780489,84722519070079276,179445175002939041,1520283919093591604,3220013013190122249,27280388024614569596,57780789062419261441,489526700523968661124,1036834190110356583689,8784200221406821330636,18605234632923999244961,157626077284798815290324
add $0,1
mov $3,1
lpb $0
sub $0,1
add $2,$3
mov $3,$1
mov $1,$2
dif $2,4
mul $2,4
add $3,$2
lpe
mov $0,$3
| 41.588235 | 491 | 0.826025 |
588b9b3f6b409230783fa3c8c31e4533c73f6e8a | 363 | asm | Assembly | programs/oeis/051/A051405.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/051/A051405.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/051/A051405.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A051405: a(n) = (3^n+1)*(3^(n+1)+1)/4.
; 2,10,70,574,5002,44530,399310,3589414,32291602,290585050,2615147350,23535971854,211822683802,1906400965570,17157599124190,154418363419894,1389765184685602,12507886403890090
mov $2,3
pow $2,$0
mul $2,3
pow $0,0
mul $0,7
mov $1,1
lpb $0,1
sub $0,1
add $1,1
lpe
add $1,$2
sub $1,6
pow $1,2
div $1,48
mul $1,4
add $1,2
| 18.15 | 174 | 0.69146 |
ddb2ed98fe92722a1c5f8ce964e0106fbb80a621 | 624 | asm | Assembly | oeis/155/A155557.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/155/A155557.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/155/A155557.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A155557: A proximate-prime polynomial sequence generated by 2*n^2 - 2*n + 53089.
; 53089,53093,53101,53113,53129,53149,53173,53201,53233,53269,53309,53353,53401,53453,53509,53569,53633,53701,53773,53849,53929,54013,54101,54193,54289,54389,54493,54601,54713,54829,54949,55073,55201,55333,55469,55609,55753,55901,56053,56209,56369,56533,56701,56873,57049,57229,57413,57601,57793,57989,58189,58393,58601,58813,59029,59249,59473,59701,59933,60169,60409,60653,60901,61153,61409,61669,61933,62201,62473,62749,63029,63313,63601,63893,64189,64489,64793,65101,65413,65729,66049,66373,66701
add $0,1
bin $0,2
mul $0,4
add $0,53089
| 78 | 499 | 0.801282 |
92e4629fc6a41defba440c40335321d9e679e141 | 1,207 | asm | Assembly | programs/oeis/008/A008594.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/008/A008594.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/008/A008594.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A008594: Multiples of 12.
; 0,12,24,36,48,60,72,84,96,108,120,132,144,156,168,180,192,204,216,228,240,252,264,276,288,300,312,324,336,348,360,372,384,396,408,420,432,444,456,468,480,492,504,516,528,540,552,564,576,588,600,612,624,636,648,660,672,684,696,708,720,732,744,756,768,780,792,804,816,828,840,852,864,876,888,900,912,924,936,948,960,972,984,996,1008,1020,1032,1044,1056,1068,1080,1092,1104,1116,1128,1140,1152,1164,1176,1188,1200,1212,1224,1236,1248,1260,1272,1284,1296,1308,1320,1332,1344,1356,1368,1380,1392,1404,1416,1428,1440,1452,1464,1476,1488,1500,1512,1524,1536,1548,1560,1572,1584,1596,1608,1620,1632,1644,1656,1668,1680,1692,1704,1716,1728,1740,1752,1764,1776,1788,1800,1812,1824,1836,1848,1860,1872,1884,1896,1908,1920,1932,1944,1956,1968,1980,1992,2004,2016,2028,2040,2052,2064,2076,2088,2100,2112,2124,2136,2148,2160,2172,2184,2196,2208,2220,2232,2244,2256,2268,2280,2292,2304,2316,2328,2340,2352,2364,2376,2388,2400,2412,2424,2436,2448,2460,2472,2484,2496,2508,2520,2532,2544,2556,2568,2580,2592,2604,2616,2628,2640,2652,2664,2676,2688,2700,2712,2724,2736,2748,2760,2772,2784,2796,2808,2820,2832,2844,2856,2868,2880,2892,2904,2916,2928,2940,2952,2964,2976,2988
mov $1,$0
mul $1,12
| 201.166667 | 1,157 | 0.776305 |
e12af978c5d379d3ba7c2fb78226d05ff9997c58 | 456 | asm | Assembly | oeis/133/A133091.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/133/A133091.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/133/A133091.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A133091: A133080 * A002260.
; Submitted by Jon Maiga
; 1,2,2,1,2,3,2,4,6,4,1,2,3,4,5,2,4,6,8,10,6,1,2,3,4,5,6,7,2,4,6,8,10,12,14,8,1,2,3,4,5,6,7,8,9,2,4,6,8,10,12,14,16,18,10,1,2,3,4,5,6,7,8,9,10,11,2,4,6,8,10,12,14,16,18,20,22,12,1,2,3,4,5,6,7,8,9,10,11,12,13,2,4,6,8,10,12,14,16,18
add $0,1
mov $2,$0
lpb $0
add $4,1
mov $1,$4
mov $3,$4
cmp $3,$2
sub $2,$4
mul $3,$0
mov $0,$2
add $1,1
gcd $1,2
mul $1,$2
add $1,$3
lpe
mov $0,$1
| 21.714286 | 230 | 0.539474 |
6d1485b4eae47836a525c52eaa77470a744638cd | 11,686 | asm | Assembly | src/intel/tools/tests/gen8/mov.asm | SoftReaper/Mesa-Renoir-deb | 8d1de1f66058d62b41fe55d36522efea2bdf996d | [
"MIT"
] | null | null | null | src/intel/tools/tests/gen8/mov.asm | SoftReaper/Mesa-Renoir-deb | 8d1de1f66058d62b41fe55d36522efea2bdf996d | [
"MIT"
] | null | null | null | src/intel/tools/tests/gen8/mov.asm | SoftReaper/Mesa-Renoir-deb | 8d1de1f66058d62b41fe55d36522efea2bdf996d | [
"MIT"
] | null | null | null | mov(8) g123<1>UD g1<8,8,1>UD { align1 WE_all 1Q };
mov(8) g124<1>F 0x40c00000F /* 6F */ { align1 1Q };
mov(8) g14<1>UD 0x00000000UD { align1 1Q };
mov(8) g17<1>F g12<8,8,1>F { align1 1Q };
mov.sat(8) g124<1>F g8<8,8,1>F { align1 1Q };
mov(8) g61<2>D g22<8,8,1>D { align1 1Q };
mov(8) g21<1>D g59<8,4,2>UD { align1 1Q };
mov(8) g4<1>D -1D { align1 1Q };
mov.nz.f0.0(8) null<1>D g4<8,8,1>D { align1 1Q };
mov(1) g2.2<1>UD 0x00000000UD { align1 WE_all 1N };
mov(4) g114<1>F g2.3<8,2,4>F { align1 WE_all 1N };
mov(8) g125<1>F -g7<8,8,1>D { align1 1Q };
mov(16) g124<1>F 0x0F /* 0F */ { align1 1H };
mov(16) g122<1>F -g11<8,8,1>D { align1 1H };
mov(16) g124<1>D 1065353216D { align1 1H };
mov.nz.f0.0(16) null<1>D g2<0,1,0>D { align1 1H };
mov(8) g10<1>UW 0x76543210V { align1 WE_all 1Q };
mov(16) g27<1>UD g0.1<0,1,0>UD { align1 1H };
mov(8) g3<1>UD 0D { align1 WE_all 1Q };
mov(1) g3.7<1>UD -1D { align1 WE_all 1N };
mov(16) g13<1>D g10<8,8,1>UW { align1 1H };
mov(8) g1<1>UD 0D { align1 WE_all 2Q };
mov(8) g2<1>D g15<8,8,1>D { align1 2Q };
mov(8) g6<1>D 0D { align1 2Q };
mov(1) g1.7<1>UD -1D { align1 WE_all 3N };
mov(8) g2<1>F g6<8,4,1>UW { align1 1Q };
mov(8) g7<1>D g2<8,8,1>F { align1 1Q };
mov(16) g16<1>F g9.3<0,1,0>F { align1 1H };
mov(16) g25<1>F g18<8,4,1>UW { align1 1H };
mov(16) g19<1>D g25<8,8,1>F { align1 1H };
mov(8) g74<1>DF g5<0,1,0>DF { align1 1Q };
mov(8) g92<2>UD g6.4<0,1,0>UD { align1 1Q };
mov(8) g62<1>Q 0xbff0000000000000Q { align1 1Q };
mov(8) g92<2>F g92<4,4,1>DF { align1 1Q };
mov(8) g92<1>DF g95<4,4,1>F { align1 1Q };
mov(8) g106<1>DF g2<0,1,0>F { align1 2Q };
mov(8) g48<1>Q 0xbff0000000000000Q { align1 2Q };
mov(8) g127<1>UD g106.1<8,4,2>UD { align1 2Q };
mov(8) g11<2>F g7<4,4,1>DF { align1 2Q };
mov(8) g33<1>D g34<8,4,2>UD { align1 2Q };
mov(8) g6<2>UD 0x00000000UD { align1 2Q };
mov(8) g2<1>UW 0x76543210UV { align1 1Q };
mov(8) g12<1>UD g2<8,8,1>UW { align1 1Q };
mov(8) g7<1>UD 0x00080000UD { align1 WE_all 1Q };
mov(1) g2<1>F 0x3e800000F /* 0.25F */ { align1 WE_all 1N };
mov(8) g15<1>F g26<8,8,1>UD { align1 1Q };
mov(1) f0.1<1>UW g1.14<0,1,0>UW { align1 WE_all 1N };
mov(8) g18<1>UD g2<8,8,1>D { align1 1Q };
mov(16) g18<1>UD g26<8,8,1>D { align1 1H };
mov(16) g120<1>D g34<8,8,1>D { align1 1H };
mov(8) g8<1>Q g13<4,4,1>Q { align1 1Q };
mov(8) g21<1>UD g0<8,8,1>UD { align1 WE_all 2Q };
mov(8) g23<1>F g6<0,1,0>F { align1 2Q };
mov(1) g21.2<1>UD 0x000003f2UD { align1 WE_all 3N };
mov.nz.f0.0(8) g19<1>D g3<8,4,2>UD { align1 1Q };
mov(8) g3<1>UD 0D { align1 1Q };
mov(16) g4<1>UD 0D { align1 1H };
mov(1) f1<1>UD g1.7<0,1,0>UD { align1 WE_all 1N };
mov.sat(8) g126<1>F 0x0F /* 0F */ { align1 1Q };
mov.sat(8) g124<1>F -g36<8,8,1>D { align1 1Q };
mov(16) g86<1>UD g88<8,8,1>UD { align1 WE_all 1H };
mov.sat(16) g120<1>F g2<0,1,0>F { align1 1H };
mov(16) g2<1>F g18<8,8,1>UD { align1 1H };
mov(8) g4<1>UD 0x0F /* 0F */ { align1 1Q };
mov(8) g8<1>DF g2<0,1,0>D { align1 1Q };
mov(16) g5<1>UD 0x00000000UD { align1 1H };
mov.nz.f0.0(8) g4<1>F -(abs)g2<0,1,0>F { align1 1Q };
(+f0.0) mov(8) g4<1>F 0xbf800000F /* -1F */ { align1 1Q };
mov.nz.f0.0(16) g4<1>F -(abs)g2<0,1,0>F { align1 1H };
(+f0.0) mov(16) g4<1>F 0xbf800000F /* -1F */ { align1 1H };
mov(1) g14.7<1>UD g1.7<0,1,0>UD { align1 WE_all 1N };
mov(1) g7.7<1>UD g1.7<0,1,0>UD { align1 WE_all 3N };
mov(8) g32<1>DF g2<0,1,0>DF { align1 2Q };
mov(8) g5<1>F g2<0,1,0>HF { align1 1Q };
mov(16) g6<1>F g2<0,1,0>HF { align1 1H };
mov(8) g7<1>UD g2<0,1,0>F { align1 1Q };
mov(8) g123<1>UW g2<16,8,2>UW { align1 WE_all 1Q };
mov(16) g119<1>UW g2<16,8,2>UW { align1 WE_all 1H };
mov(16) g15<1>UD g11<8,8,1>F { align1 1H };
mov(16) g19<1>UD g15<16,8,2>UW { align1 1H };
mov(8) g7<1>D 0x00000000UD { align1 1Q };
mov(16) g75<1>D 0x00000000UD { align1 1H };
mov(16) g79<1>D g18<8,8,1>UD { align1 1H };
mov(16) g29<1>UD g27<32,8,4>UB { align1 1H };
mov(8) g7<1>DF 0x0000000000000000DF /* 0DF */ { align1 1Q };
mov(8) g14<1>F 0x3f000000F /* 0.5F */ { align1 2Q };
mov(8) g5<1>F 0x0F /* 0F */ { align1 WE_all 1Q };
mov(16) g4<1>UD 0x00000000UD { align1 WE_all 1H };
mov(8) g5<2>UD g2<0,1,0>DF { align1 1Q };
mov(8) g10<2>UD g2<0,1,0>DF { align1 2Q };
mov(8) g3<1>DF g2<0,1,0>UD { align1 1Q };
mov(8) g3<1>DF g2<0,1,0>UD { align1 2Q };
mov(1) f0<1>UW 0x0000UW { align1 WE_all 1N };
mov(1) g1<1>D 0D { align1 WE_all 1N };
(+f0.0.any16h) mov(1) g1<1>D -1D { align1 WE_all 1N };
mov(8) g9<1>F g2<0,1,0>W { align1 1Q };
mov(8) g7<1>UQ g4<4,4,1>UQ { align1 1Q };
mov(16) g11<1>UD 0x0F /* 0F */ { align1 1H };
mov(8) g5<2>D g2<0,1,0>DF { align1 1Q };
mov(8) g10<2>D g2<0,1,0>DF { align1 2Q };
mov(1) g24.7<1>UD f0.1<0,1,0>UW { align1 WE_all 1N };
mov(1) g2.7<1>UD f0.1<0,1,0>UW { align1 WE_all 3N };
mov(16) g6<1>D 0D { align1 2H };
mov(8) g14<1>UD g13<32,8,4>UB { align1 1Q };
mov(16) g38<1>D g2<8,8,1>UW { align1 2H };
mov(16) g124<1>UD g44<8,8,1>UD { align1 2H };
mov(16) g4<1>UD 0x00000001UD { align1 2H };
mov(1) g4<2>UW 0x00000000UD { align1 WE_all 1N };
mov(8) g4<1>UD f0<0,1,0>UW { align1 1Q };
mov(8) g8<1>D g2<8,8,1>UW { align1 1Q };
mov(16) g4<1>UD f0<0,1,0>UW { align1 1H };
mov(8) g3<1>DF -g2<0,1,0>D { align1 2Q };
mov(8) g5<1>F g2<0,1,0>B { align1 1Q };
mov(16) g6<1>F g2<0,1,0>B { align1 1H };
mov(8) g4<1>DF 0x0000000000000000DF /* 0DF */ { align1 2Q };
mov.nz.f0.0(8) g16<1>D g17<8,4,2>UD { align1 2Q };
mov(8) g34<1>UW 0x76543210V { align1 1Q };
mov(8) g7<2>HF g2.1<0,1,0>F { align1 1Q };
mov(1) g5<1>D g[a0 96]<0,1,0>D { align1 WE_all 1N };
mov(1) f1<1>UW f0.1<0,1,0>UW { align1 WE_all 1N };
(+f0.0.any8h) mov(1) g2<1>D -1D { align1 WE_all 1N };
mov(8) g2<2>UW g9<8,8,1>F { align1 1Q };
mov(8) g3<1>UW g2<16,8,2>UW { align1 1Q };
mov.sat(16) g13<1>F 0x3f800000F /* 1F */ { align1 1H };
mov(16) g19<2>UW g17<8,8,1>F { align1 1H };
mov.nz.f0.0(8) null<1>D 0x00000000UD { align1 1Q };
mov.nz.f0.0(16) null<1>D 0x00000000UD { align1 1H };
mov(4) g3<1>UD tm0<4,4,1>UD { align1 WE_all 1N };
(+f0.0.all16h) mov(1) g1<1>D -1D { align1 WE_all 1N };
mov(8) g9<1>F g2<0,1,0>UB { align1 1Q };
mov(16) g6<1>F g2<0,1,0>UB { align1 1H };
mov(16) g10<2>HF g4<8,8,1>F { align1 1H };
mov.z.f0.0(8) null<1>UD g2<8,8,1>UD { align1 1Q };
mov.sat(8) g125<1>F g9<8,8,1>UD { align1 1Q };
mov.z.f0.0(16) g1<1>UD g0.7<0,1,0>UD { align1 1H };
mov.z.f0.0(8) g18<1>D g17<8,8,1>F { align1 1Q };
mov(8) g2<1>D g12<16,8,2>W { align1 1Q };
mov(16) g40<1>D g18<16,8,2>W { align1 1H };
mov(8) g2<1>D g12<32,8,4>B { align1 1Q };
mov(16) g40<1>D g18<32,8,4>B { align1 1H };
mov(16) g42<1>F g4<16,8,2>W { align1 1H };
mov(8) g23<1>Q g26<4,4,1>Q { align1 2Q };
(+f0.0.all8h) mov(1) g7<1>D -1D { align1 WE_all 1N };
mov.z.f0.0(8) null<1>D g21<8,8,1>F { align1 1Q };
mov.z.f0.0(16) null<1>D g65<8,8,1>F { align1 1H };
| 80.041096 | 85 | 0.342547 |
991c0a864bccb96a6c6267b16043afc6297845a1 | 300 | asm | Assembly | programs/oeis/131/A131506.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/131/A131506.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/131/A131506.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A131506: 2n+1 appears 2n-1 times.
; 3,5,5,5,7,7,7,7,7,9,9,9,9,9,9,9,11,11,11,11,11,11,11,11,11,13,13,13,13,13,13,13,13,13,13,13,15,15,15,15,15,15,15,15,15,15,15,15,15,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,19,19,19,19,19,19,19,19,19,19,19
add $0,1
lpb $0
add $1,2
sub $0,$1
lpe
add $1,3
| 30 | 210 | 0.62 |
6b71be57f26e8c1f0c3028c6c8b1b8067ef65717 | 452 | asm | Assembly | libsrc/fcntl/spectrum/plus3/fdtell.asm | RC2014Z80/z88dk | e5b9447b970e5fae26544b6d8aa5957c98ba0e6a | [
"ClArtistic"
] | 8 | 2017-01-18T12:02:17.000Z | 2021-06-12T09:40:28.000Z | libsrc/fcntl/spectrum/plus3/fdtell.asm | RC2014Z80/z88dk | e5b9447b970e5fae26544b6d8aa5957c98ba0e6a | [
"ClArtistic"
] | 1 | 2017-03-06T07:41:56.000Z | 2017-03-06T07:41:56.000Z | libsrc/fcntl/spectrum/plus3/fdtell.asm | RC2014Z80/z88dk | e5b9447b970e5fae26544b6d8aa5957c98ba0e6a | [
"ClArtistic"
] | 3 | 2017-03-07T03:19:40.000Z | 2021-09-15T17:59:19.000Z | ;
; long fdtell(int fd)
;
; Return position in file
;
; Not written as yet!
;
; $Id: fdtell.asm,v 1.8 2017-01-02 21:02:22 aralbrec Exp $
SECTION code_clib
PUBLIC fdtell
PUBLIC _fdtell
INCLUDE "p3dos.def"
EXTERN dodos
.fdtell
._fdtell
pop hl ;ret address
pop bc ;lower 8 is file handle
push bc
push hl
push ix
ld b,c
ld iy,DOS_GET_POSITION ;corrupts ix
call dodos
pop ix
ld d,0
ret c
ld hl,-1
ld d,h
ld e,l
ret
| 12.914286 | 58 | 0.65708 |
cb6d86dff79e6d83f0953c319bf5d30f7e1c9089 | 865 | asm | Assembly | programs/oeis/177/A177082.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/177/A177082.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/177/A177082.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A177082: a(n) = 2*n*A071148(n).
; 6,32,90,208,390,672,1050,1568,2286,3160,4290,5664,7254,9128,11370,14016,16966,20376,24206,28400,33138,38368,44206,50784,57950,65624,73926,82768,92278,103080,114638,127104,140250,154632,169750,185904,203130,221312,240630,261120,282490,305424,329294,354288,380250,408112,437946,469056,501270,534800,569874,606112,644374,684288,725890,769216,813846,860256,908246,957600,1009306,1063920,1120266,1178112,1237730,1300464,1365326,1432896,1502130,1573320,1646774,1722816,1801202,1881968,1964850,2050176,2138290,2228616,2321810,2418240,2516670,2618424,2722234,2828784,2937770,3049560,3164538,3282048,3401758,3524040,3650374,3780096,3912510,4048392,4187030,4328832,4474998,4623640,4777938,4935600
mov $2,$0
seq $0,71148 ; Partial sums of sequence of odd primes (A065091); a(n) = sum of the first n odd primes.
add $2,1
mul $0,$2
mul $0,2
| 96.111111 | 688 | 0.808092 |
dc9affcfac69c10d3a456d7dad868f1306448245 | 644 | asm | Assembly | oeis/129/A129009.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/129/A129009.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/129/A129009.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A129009: (n^3+n^2)*9^n.
; Submitted by Jamie Morken(s3)
; 18,972,26244,524880,8857350,133923132,1874923848,24794911296,313810596090,3835462841100,45565298552268,528708092292432,6014054549826414,67257769817585340,741208075540736400,8064343861883212032,86754699201665491938,923982574888326588876,9753149401599002882580,102124389856078201928400,1061583032553932909045718,10962469683107960244431292,112523862367108153913914584,1148636780306964142032398400,11665842299992604567516546250,117927666642165241052111262732,1186952431706053698400244129628
add $0,1
mov $1,3
pow $1,$0
pow $1,2
sub $2,$0
mul $1,$2
sub $2,1
mul $0,$2
mul $1,$0
mov $0,$1
| 42.933333 | 488 | 0.849379 |
caa5a6be814b25154211adae443b11c894ad7bb3 | 6,601 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_163.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_163.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i9-9900K_12_0xca.log_21829_163.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 %r8
push %r9
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x7717, %r11
nop
nop
nop
nop
add $5253, %rax
movb $0x61, (%r11)
nop
nop
inc %r8
lea addresses_WT_ht+0x4c37, %r12
nop
nop
nop
nop
nop
cmp $65473, %r11
mov (%r12), %ecx
nop
and %r12, %r12
lea addresses_normal_ht+0x12597, %rcx
add $24153, %rdi
mov $0x6162636465666768, %rax
movq %rax, %xmm7
and $0xffffffffffffffc0, %rcx
movaps %xmm7, (%rcx)
nop
dec %r12
lea addresses_D_ht+0xee37, %rcx
nop
nop
dec %r9
movups (%rcx), %xmm4
vpextrq $1, %xmm4, %r11
nop
nop
nop
nop
dec %rcx
lea addresses_WT_ht+0x7637, %rdi
nop
nop
cmp $61365, %rcx
mov (%rdi), %rax
cmp $42839, %r9
lea addresses_UC_ht+0x2017, %r9
nop
nop
nop
sub %r8, %r8
movb $0x61, (%r9)
nop
nop
sub $2039, %r8
lea addresses_A_ht+0x1c4af, %rcx
nop
cmp $25318, %r8
movb (%rcx), %r12b
nop
nop
sub $40434, %r9
lea addresses_A_ht+0x3a37, %r11
nop
nop
nop
inc %r12
mov $0x6162636465666768, %rcx
movq %rcx, %xmm1
vmovups %ymm1, (%r11)
nop
nop
nop
nop
nop
add %r11, %r11
lea addresses_UC_ht+0x13ac7, %rsi
lea addresses_WT_ht+0x7637, %rdi
clflush (%rdi)
nop
nop
inc %r9
mov $69, %rcx
rep movsl
nop
nop
nop
nop
dec %rcx
lea addresses_normal_ht+0x5a37, %rsi
lea addresses_normal_ht+0x18a37, %rdi
clflush (%rsi)
nop
nop
dec %r8
mov $41, %rcx
rep movsl
nop
nop
sub %r11, %r11
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r8
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r15
push %r8
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
// Load
lea addresses_RW+0x17237, %rbp
inc %r15
mov (%rbp), %r8d
nop
nop
and %r15, %r15
// Faulty Load
lea addresses_UC+0x1d237, %rbp
nop
cmp %rcx, %rcx
mov (%rbp), %rdi
lea oracles, %rcx
and $0xff, %rdi
shlq $12, %rdi
mov (%rcx,%rdi,1), %rdi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r8
pop %r15
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 4, 'NT': True, 'type': 'addresses_RW', 'same': False, 'AVXalign': False, 'congruent': 11}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_UC', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_D_ht', 'same': True, 'AVXalign': False, 'congruent': 4}}
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_normal_ht', 'same': True, 'AVXalign': True, 'congruent': 5}}
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 10}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'OP': 'LOAD', 'src': {'size': 1, 'NT': True, 'type': 'addresses_A_ht', 'same': True, 'AVXalign': False, 'congruent': 3}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 4}, 'dst': {'same': True, 'type': 'addresses_WT_ht', 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 10}}
{'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
*/
| 37.293785 | 2,999 | 0.656416 |
e7898668ee629785ba1039a31722bccf62b05aaf | 1,133 | asm | Assembly | programs/oeis/059/A059545.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/059/A059545.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/059/A059545.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A059545: Beatty sequence for log(10).
; 2,4,6,9,11,13,16,18,20,23,25,27,29,32,34,36,39,41,43,46,48,50,52,55,57,59,62,64,66,69,71,73,75,78,80,82,85,87,89,92,94,96,99,101,103,105,108,110,112,115,117,119,122,124,126,128,131,133,135,138,140,142,145,147,149,151,154,156,158,161,163,165,168,170,172,174,177,179,181,184,186,188,191,193,195,198,200,202,204,207,209,211,214,216,218,221,223,225,227,230,232,234,237,239,241,244,246,248,250,253,255,257,260,262,264,267,269,271,274,276,278,280,283,285,287,290,292,294,297,299,301,303,306,308,310,313,315,317,320,322,324,326,329,331,333,336,338,340,343,345,347,349,352,354,356,359,361,363,366,368,370,373,375,377,379,382,384,386,389,391,393,396,398,400,402,405,407,409,412,414,416,419,421,423,425,428,430,432,435,437,439,442,444,446,449,451,453,455,458,460,462,465,467,469,472,474,476,478,481,483,485,488,490,492,495,497,499,501,504,506,508,511,513,515,518,520,522,524,527,529,531,534,536,538,541,543,545,548,550,552,554,557,559,561,564,566,568,571,573,575
mov $2,$0
mul $0,5
add $0,5
mul $0,644
lpb $0
div $0,2472
mov $3,$0
mov $0,1
add $3,1
lpe
add $0,$3
mov $1,$0
sub $1,1
add $1,$2
| 62.944444 | 954 | 0.70962 |
addf672c56b797a08b41f8882d975b1e8fe2dc05 | 366 | asm | Assembly | oeis/347/A347838.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/347/A347838.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/347/A347838.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A347838: Positive numbers that are congruent to 2, 5, or 11 modulo 12.
; Submitted by Christian Krause
; 2,5,11,14,17,23,26,29,35,38,41,47,50,53,59,62,65,71,74,77,83,86,89,95,98,101,107,110,113,119,122,125,131,134,137,143,146,149,155,158,161,167,170,173,179,182,185,191,194,197,203,206,209,215,218,221,227,230,233,239
mul $0,8
add $0,2
div $0,6
mul $0,3
add $0,2
| 36.6 | 214 | 0.704918 |
98bb9a6b7a669d50123c5fb0a7bb496df55bc197 | 1,704 | asm | Assembly | solutions/22-fibonacci visitor/precomputed series - speed optimized.asm | Ernesto-Alvarez/HRM-Puzzles | 2ec938341dbf67cd186a1d7f1e794a3acd63155f | [
"Unlicense"
] | null | null | null | solutions/22-fibonacci visitor/precomputed series - speed optimized.asm | Ernesto-Alvarez/HRM-Puzzles | 2ec938341dbf67cd186a1d7f1e794a3acd63155f | [
"Unlicense"
] | null | null | null | solutions/22-fibonacci visitor/precomputed series - speed optimized.asm | Ernesto-Alvarez/HRM-Puzzles | 2ec938341dbf67cd186a1d7f1e794a3acd63155f | [
"Unlicense"
] | null | null | null | -- HUMAN RESOURCE MACHINE PROGRAM --
COMMENT 0
BUMPUP 9
COPYTO 0
COPYTO 1
ADD 0
COPYTO 2
ADD 1
COPYTO 3
ADD 2
COPYTO 4
ADD 3
COPYTO 5
ADD 4
COPYTO 6
ADD 5
COPYTO 7
ADD 6
COPYTO 8
COMMENT 1
a:
b:
c:
d:
e:
f:
g:
h:
i:
INBOX
COPYTO 9
SUB 1
JUMPN i
COPYFROM 0
OUTBOX
COPYFROM 1
OUTBOX
COPYFROM 9
SUB 2
JUMPN h
COPYFROM 2
OUTBOX
COPYFROM 9
SUB 3
JUMPN f
COPYFROM 3
OUTBOX
COPYFROM 9
SUB 4
JUMPN e
COPYFROM 4
OUTBOX
COPYFROM 9
SUB 5
JUMPN g
COPYFROM 5
OUTBOX
COPYFROM 9
SUB 6
JUMPN d
COPYFROM 6
OUTBOX
COPYFROM 9
SUB 7
JUMPN c
COPYFROM 7
OUTBOX
COPYFROM 9
SUB 8
JUMPN b
COPYFROM 8
OUTBOX
JUMP a
DEFINE COMMENT 0
eJyzYWBgEDB67G6jt9TZWm2aU63MEdcACSavzYJvIufyRyS+5vuSncp1rWcTZ9RyXV6TbS78TbvniUef
4pWqOvNGLvu0pPK/w4Ea7w491m3aPVUveAfQOIYdjpmtuVGRLaJJyzt3J4pumRXXtDsp8v7Bo0F8R//4
/zvc6ztxj4nvt41NIZUr5aO9l4H0OJdZxs8py2xdXq48KbVy/5x9laJblKoP7L9SveMCSH7BvKRpZ2ZN
mFk86938bTN0lvycVrTr5zTZYzdmZ5/uXpJ9+sNa3ePZG98dAqmNWyAycdpSkYlrln/tA/HnlCUEzCnr
NXhVGq/LMApGwShAAQAsUmvi;
DEFINE COMMENT 1
eJyzYmBgWClRdWalhPeyB6IsEx6ISjcoi7yJbBfd6tIu2mvwXZwBDJYoMzCwaAqwFmvX8oD4p6U9bLcq
LnU+rbzU+Yy2oS9I7LDTwr0yzmkyGi7uUus83KXs/STE//i/EjYN/SnyKUxDwiFMUAOk7ojXsrT1AUcz
coKOZpQHL0vTDLmaCRJ/kfok60XquoovaTz1ERney0Sznm0QzQreAZIrqGJSP1l1NEO35m2Nbs2xbpe6
oKkuddu7/Ou3d6U1VrSdaqpo02vxaj7dFdmi0j2jQ6WbZcLr2hVrLGujllvWLpjFMApGwSjACgDSR1Yn
;
| 18.725275 | 80 | 0.655516 |
55962834349c9b13fe29300afc5d13d41e731027 | 523 | asm | Assembly | oeis/298/A298752.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/298/A298752.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/298/A298752.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A298752: Decimal expansion of (1/2)(1 + sqrt(-7 + 4*sqrt(5))).
; Submitted by Christian Krause
; 1,1,9,7,1,8,5,7,5,5,3,7,6,4,2,0,2,4,9,1,9,7,0,6,0,4,4,8,2,0,5,5,8,5,5,7,4,8,5,0,5,5,7,0,7,1,9,9,0,3,9,7,8,7,2,9,5,2,2,2,5,0,5,7,7,3,9,7,4,1,8,0,3,4,0,4,5,0,0,1,0,3,1,9,4,5,2,8,3,2,5,4,3,2,0,5,9,0,2,3
mov $1,1
mov $3,$0
mul $3,4
lpb $3
add $6,$2
add $1,$6
add $1,$2
add $2,$1
mul $1,2
sub $3,1
add $5,$2
sub $1,$5
mul $6,2
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
| 19.37037 | 201 | 0.523901 |
f0e70528f9b171be349922f43bd1221059b41a72 | 704 | asm | Assembly | oeis/130/A130563.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/130/A130563.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/130/A130563.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A130563: Fourth column (m=3) of the Laguerre-Sonin a=1/2 coefficient triangle.
; Submitted by Jon Maiga
; 1,36,990,25740,675675,18378360,523783260,15713497800,496939367925,16564645597500,581419060472250,21459648959248500,831561397170879375,33774185977401870000,1435402904039579475000,63731888939357328690000,2951583106503986284955625,142370479254898161980212500,7142252375954057792673993750,372148939589185116565644937500,20114650184795455550373108871875,1126420410348545510820894096825000,65281182872472523922574544247812500,3911194347750745128926422694499375000,242005150267077354852322404222148828125
add $0,1
mov $2,$0
seq $0,1881 ; Coefficients of Bessel polynomials y_n (x).
mul $0,$2
div $0,21
| 70.4 | 499 | 0.87642 |
b0d0ee06e895f000967853c1a718470a32015637 | 1,711 | asm | Assembly | programs/oeis/195/A195321.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/195/A195321.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/195/A195321.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A195321: a(n) = 18*n^2.
; 0,18,72,162,288,450,648,882,1152,1458,1800,2178,2592,3042,3528,4050,4608,5202,5832,6498,7200,7938,8712,9522,10368,11250,12168,13122,14112,15138,16200,17298,18432,19602,20808,22050,23328,24642,25992,27378,28800,30258,31752,33282,34848,36450,38088,39762,41472,43218,45000,46818,48672,50562,52488,54450,56448,58482,60552,62658,64800,66978,69192,71442,73728,76050,78408,80802,83232,85698,88200,90738,93312,95922,98568,101250,103968,106722,109512,112338,115200,118098,121032,124002,127008,130050,133128,136242,139392,142578,145800,149058,152352,155682,159048,162450,165888,169362,172872,176418,180000,183618,187272,190962,194688,198450,202248,206082,209952,213858,217800,221778,225792,229842,233928,238050,242208,246402,250632,254898,259200,263538,267912,272322,276768,281250,285768,290322,294912,299538,304200,308898,313632,318402,323208,328050,332928,337842,342792,347778,352800,357858,362952,368082,373248,378450,383688,388962,394272,399618,405000,410418,415872,421362,426888,432450,438048,443682,449352,455058,460800,466578,472392,478242,484128,490050,496008,502002,508032,514098,520200,526338,532512,538722,544968,551250,557568,563922,570312,576738,583200,589698,596232,602802,609408,616050,622728,629442,636192,642978,649800,656658,663552,670482,677448,684450,691488,698562,705672,712818,720000,727218,734472,741762,749088,756450,763848,771282,778752,786258,793800,801378,808992,816642,824328,832050,839808,847602,855432,863298,871200,879138,887112,895122,903168,911250,919368,927522,935712,943938,952200,960498,968832,977202,985608,994050,1002528,1011042,1019592,1028178,1036800,1045458,1054152,1062882,1071648,1080450,1089288,1098162,1107072,1116018
pow $0,2
mul $0,18
mov $1,$0
| 244.428571 | 1,654 | 0.836937 |
8cab0500caf08778d08dfcf3a1431ea27b96e2e5 | 3,076 | asm | Assembly | libsrc/_DEVELOPMENT/math/integer/fast/l_fast_divu_8_8x8.asm | teknoplop/z88dk | bb03fbfd6b2ab0f397a1358559089f9cd3706485 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/math/integer/fast/l_fast_divu_8_8x8.asm | teknoplop/z88dk | bb03fbfd6b2ab0f397a1358559089f9cd3706485 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/math/integer/fast/l_fast_divu_8_8x8.asm | teknoplop/z88dk | bb03fbfd6b2ab0f397a1358559089f9cd3706485 | [
"ClArtistic"
] | 1 | 2019-12-03T23:57:48.000Z | 2019-12-03T23:57:48.000Z |
INCLUDE "clib_cfg.asm"
SECTION code_clib
SECTION code_math
PUBLIC l_fast_divu_8_8x8, l0_fast_divu_8_8x8
EXTERN error_divide_by_zero_mc
; alternate entry to swap dividend / divisor
ex de,hl
l_fast_divu_8_8x8:
; unsigned division of two 8-bit numbers
;
; enter : l = 8-bit dividend
; e = 8-bit divisor
;
; exit : h = 0
; d = 0
;
; success
;
; a = 0
; l = l / e
; e = l % e
; carry reset
;
; divide by zero
;
; hl = $ffff = UCHAR_MAX
; e = dividend
; carry set, errno = EDOM
;
; uses : af, b, de, hl
; test for divide by zero
inc e
dec e
jr z, divide_by_zero
l0_fast_divu_8_8x8:
; check divisor size
ld a,l
cp e
jr c, result_zero
xor a
ld d,a
ld h,a
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_IMATH_FAST & $01
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ENABLE LOOP UNROLLING ;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_IMATH_FAST & $02
; eliminate leading zeroes
loop_00:
sla l
jr c, loop_10
sla l
jr c, loop_20
sla l
jr c, loop_30
sla l
jr c, loop_40
sla l
jr c, loop_50
sla l
jr c, loop_60
sla l
jr c, loop_70
jp loop_17
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ELSE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
sla l
ENDIF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; general divide loop
loop_10:
rla
cp e
jr c, loop_11
sub e
inc l
loop_11:
sla l
loop_20:
rla
cp e
jr c, loop_12
sub e
inc l
loop_12:
sla l
loop_30:
rla
cp e
jr c, loop_13
sub e
inc l
loop_13:
sla l
loop_40:
rla
cp e
jr c, loop_14
sub e
inc l
loop_14:
sla l
loop_50:
rla
cp e
jr c, loop_15
sub e
inc l
loop_15:
sla l
loop_60:
rla
cp e
jr c, loop_16
sub e
inc l
loop_16:
sla l
loop_70:
rla
cp e
jr c, loop_17
sub e
inc l
loop_17:
sla l
rla
cp e
jr c, exit_loop
sub e
inc l
exit_loop:
; a = remainder
; l = quotient
ld e,a
xor a
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ELSE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; DISABLE LOOP UNROLLING ;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ld b,8
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_IMATH_FAST & $02
; eliminate leading zeroes
loop_00:
sla l
jr c, loop_01
djnz loop_00
; will never get here
ENDIF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; general divide loop
loop_11:
sla l
loop_01:
rla
cp e
jr c, loop_02
sub e
inc l
loop_02:
djnz loop_11
; a = remainder
; l = quotient
ld e,a
xor a
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ENDIF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
divide_by_zero:
ld d,e
ld e,l
jp error_divide_by_zero_mc
result_zero:
; dividend < divisor
xor a
ld h,a
ld d,a
ld e,l
ld l,a
ret
| 10.391892 | 47 | 0.447984 |
e708113fd44f9ce01feab5509b77b9469610f4f5 | 1,215 | asm | Assembly | engine/load_mon_data.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 16 | 2018-08-28T21:47:01.000Z | 2022-02-20T20:29:59.000Z | engine/load_mon_data.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 5 | 2019-04-03T19:53:11.000Z | 2022-03-11T22:49:34.000Z | engine/load_mon_data.asm | adhi-thirumala/EvoYellow | 6fb1b1d6a1fa84b02e2d982f270887f6c63cdf4c | [
"Unlicense"
] | 2 | 2019-12-09T19:46:02.000Z | 2020-12-05T21:36:30.000Z | LoadMonData_:
; Load monster [wWhichPokemon] from list [wMonDataLocation]:
; 0: partymon
; 1: enemymon
; 2: boxmon
; 3: daycaremon
; Return monster id at wcf91 and its data at wLoadedMon.
; Also load base stats at wMonHeader for convenience.
ld a, [wDayCareMonSpecies]
ld [wcf91], a
ld a, [wMonDataLocation]
cp DAYCARE_DATA
jr z, .GetMonHeader
ld a, [wWhichPokemon]
ld e, a
call GetMonSpecies
.GetMonHeader
ld a, [wcf91]
ld [wd0b5], a ; input for GetMonHeader
call GetMonHeader
ld hl, wPartyMons
ld bc, wPartyMon2 - wPartyMon1
ld a, [wMonDataLocation]
cp ENEMY_PARTY_DATA
jr c, .getMonEntry
ld hl, wEnemyMons
jr z, .getMonEntry
cp 2
ld hl, wBoxMons
ld bc, wBoxMon2 - wBoxMon1
jr z, .getMonEntry
ld hl, wDayCareMon
jr .copyMonData
.getMonEntry
ld a, [wWhichPokemon]
call AddNTimes
.copyMonData
ld de, wLoadedMon
ld bc, wPartyMon2 - wPartyMon1
jp CopyData
; get species of mon e in list [wMonDataLocation] for LoadMonData
GetMonSpecies:
ld hl, wPartySpecies
ld a, [wMonDataLocation]
and a
jr z, .getSpecies
dec a
jr z, .enemyParty
ld hl, wBoxSpecies
jr .getSpecies
.enemyParty
ld hl, wEnemyPartyMons
.getSpecies
ld d, 0
add hl, de
ld a, [hl]
ld [wcf91], a
ret
| 17.608696 | 65 | 0.725926 |
80529e0fdd56bb8ca6738f00cc09d893e0876b99 | 364 | asm | Assembly | _maps/obj5Eballs.asm | NatsumiFox/AMPS-Sonic-1-2005 | ac8730799f1b96291358c77a4b64529de94ce8a4 | [
"Apache-2.0"
] | 2 | 2020-04-09T19:36:35.000Z | 2021-01-05T14:20:17.000Z | _maps/obj5Eballs.asm | NatsumiFox/AMPS-Sonic-1-2005 | ac8730799f1b96291358c77a4b64529de94ce8a4 | [
"Apache-2.0"
] | null | null | null | _maps/obj5Eballs.asm | NatsumiFox/AMPS-Sonic-1-2005 | ac8730799f1b96291358c77a4b64529de94ce8a4 | [
"Apache-2.0"
] | 1 | 2020-06-17T14:16:35.000Z | 2020-06-17T14:16:35.000Z | ; ---------------------------------------------------------------------------
; Sprite mappings - spiked balls on the seesaws (SLZ)
; ---------------------------------------------------------------------------
dc.w byte_119EA-Map_obj5Ea
dc.w byte_119F0-Map_obj5Ea
byte_119EA: dc.b 1
dc.b $F4, $A, 0, 0, $F4
byte_119F0: dc.b 1
dc.b $F4, $A, 0, 9, $F4
even | 36.4 | 77 | 0.379121 |
530e84a54eaceb69db1ef754ae15ca9b802f905c | 498 | asm | Assembly | programs/oeis/178/A178222.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/178/A178222.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/178/A178222.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A178222: Partial sums of floor(3^n/4).
; 0,2,8,28,88,270,816,2456,7376,22138,66424,199284,597864,1793606,5380832,16142512,48427552,145282674,435848040,1307544140,3922632440,11767897342,35303692048,105911076168,317733228528,953199685610,2859599056856,8578797170596,25736391511816,77209174535478,231627523606464,694882570819424,2084647712458304,6253943137374946
mov $2,$0
mov $3,$0
lpb $2
mov $0,$3
sub $2,1
sub $0,$2
mov $4,$0
add $4,1
mov $5,3
pow $5,$4
div $5,4
add $1,$5
lpe
| 29.294118 | 320 | 0.753012 |
d1f18dbb3ff06156b49d7b4976d49e68fd16708b | 677 | asm | Assembly | oeis/071/A071721.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/071/A071721.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/071/A071721.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A071721: Expansion of (1+x^2*C^2)*C^2, where C = (1-(1-4*x)^(1/2))/(2*x) is g.f. for Catalan numbers, A000108.
; 1,2,6,18,56,180,594,2002,6864,23868,83980,298452,1069776,3863080,14040810,51325650,188574240,695987820,2579248980,9593714460,35804293200,134032593240,503154100020,1893689067348,7144084508256,27010813341400,102332395687704,388428801668712,1476988529802016,5625488570881872,21459299074269210,81978857675642578,313604131070389824,1201215823474975308,4606682905515140996,17687025781906304460,67982011877522577744,261566116924769918072,1007383017885938197980,3883403341093032616860
seq $0,245 ; a(n) = 3*(2*n)!/((n+2)!*(n-1)!).
mul $0,2
mov $1,1
max $1,$0
mov $0,$1
| 75.222222 | 478 | 0.797637 |
e7f3a140f5e83ff4a94428a40b14efd4cda4b958 | 3,291 | asm | Assembly | next_level/demosrc/ibpcaablocks.asm | viznut/demoscene | 0a9b663a18ce5c31a1243fbdb85794325eeed1d8 | [
"CC0-1.0"
] | 14 | 2021-01-06T12:13:48.000Z | 2021-02-10T20:39:48.000Z | next_level/demosrc/ibpcaablocks.asm | viznut/demoscene | 0a9b663a18ce5c31a1243fbdb85794325eeed1d8 | [
"CC0-1.0"
] | null | null | null | next_level/demosrc/ibpcaablocks.asm | viznut/demoscene | 0a9b663a18ce5c31a1243fbdb85794325eeed1d8 | [
"CC0-1.0"
] | null | null | null | ;,; ibpcaablocks .align=1024 .pos=$1400
;,; -> ch0000183C3C180000
;,; -> ch000018183C3C3C3C
;,; -> ch3C3C3C3C18180000
;,; -> ch3C3C3C3C3C3C3C3C
;,; -> ch0000F0FCFCF00000
;,; -> ch0080C0E0F0F8FCFE
;,; -> chFEFCF8F0E0C08000
;,; -> chFCFCFCFCFCFCFCFC
;,; -> ch00000F3F3F0F0000
;,; -> ch000103070F1F3F7F
;,; -> ch7F3F1F0F07030100
;,; -> ch3F3F3F3F3F3F3F3F
;,; -> ch0000FFFFFFFF0000
;,; -> ch0000FFFFFFFFFFFF
;,; -> chFFFFFFFFFFFF0000
;,; -> chFFFFFFFFFFFFFFFF
;,; -> ch0000000000000000
ch0000183C3C180000=0
ch000018183C3C3C3C=1
ch3C3C3C3C18180000=2
ch3C3C3C3C3C3C3C3C=3
ch0000F0FCFCF00000=4
ch0080C0E0F0F8FCFE=5 ; WHY DOES NOT FIND DUPE
chFEFCF8F0E0C08000=6
chFCFCFCFCFCFCFCFC=7
ch00000F3F3F0F0000=8
ch000103070F1F3F7F=9
ch7F3F1F0F07030100=10
ch3F3F3F3F3F3F3F3F=11 ; !?!?
ch0000FFFFFFFF0000=12
ch0000FFFFFFFFFFFF=13
chFFFFFFFFFFFF0000=14
chFFFFFFFFFFFFFFFF=15
ch0000000000000000=16
!byte %00000000 ; rlud
!byte %00000000
!byte %00011000
!byte %00111100
!byte %00111100
!byte %00011000
!byte %00000000
!byte %00000000
!byte %00000000 ; rlu-
!byte %00000000
!byte %00011000
!byte %00011000
!byte %00111100
!byte %00111100
!byte %00111100
!byte %00111100
!byte %00111100 ; rl-d
!byte %00111100
!byte %00111100
!byte %00111100
!byte %00011000
!byte %00011000
!byte %00000000
!byte %00000000
!byte %00111100 ; rl--
!byte %00111100
!byte %00111100
!byte %00111100
!byte %00111100
!byte %00111100
!byte %00111100
!byte %00111100
!byte %00000000 ; r-ud
!byte %00000000
!byte %11110000
!byte %11111100
!byte %11111100
!byte %11110000
!byte %00000000
!byte %00000000
!byte %00000000 ; r-u-
!byte %10000000
!byte %11000000
!byte %11100000
!byte %11110000
!byte %11111000
!byte %11111100
!byte %11111110
!byte %11111110 ; r--d
!byte %11111100
!byte %11111000
!byte %11110000
!byte %11100000
!byte %11000000
!byte %10000000
!byte %00000000
!byte %11111100 ; r---
!byte %11111100
!byte %11111100
!byte %11111100
!byte %11111100
!byte %11111100
!byte %11111100
!byte %11111100
!byte %00000000 ; -lud
!byte %00000000
!byte %00001111
!byte %00111111
!byte %00111111
!byte %00001111
!byte %00000000
!byte %00000000
!byte %00000000 ; -lu-
!byte %00000001
!byte %00000011
!byte %00000111
!byte %00001111
!byte %00011111
!byte %00111111
!byte %01111111
!byte %01111111 ; -l-d
!byte %00111111
!byte %00011111
!byte %00001111
!byte %00000111
!byte %00000011
!byte %00000001
!byte %00000000
!byte %00111111 ; -l--
!byte %00111111
!byte %00111111
!byte %00111111
!byte %00111111
!byte %00111111
!byte %00111111
!byte %00111111
!byte %00000000 ; --ud
!byte %00000000
!byte %11111111
!byte %11111111
!byte %11111111
!byte %11111111
!byte %00000000
!byte %00000000
!byte %00000000 ; --u-
!byte %00000000
!byte %11111111
!byte %11111111
!byte %11111111
!byte %11111111
!byte %11111111
!byte %11111111
!byte %11111111 ; ---d
!byte %11111111
!byte %11111111
!byte %11111111
!byte %11111111
!byte %11111111
!byte %00000000
!byte %00000000
!byte %11111111 ; ----
!byte %11111111
!byte %11111111
!byte %11111111
!byte %11111111
!byte %11111111
!byte %11111111
!byte %11111111
!byte %00000000
!byte %00000000
!byte %00000000
!byte %00000000
!byte %00000000
!byte %00000000
!byte %00000000
!byte %00000000
| 17.140625 | 46 | 0.712853 |
7d44f1bad8b2e654e2cdf5e3d89bd529d51d56ba | 2,507 | asm | Assembly | programs/oeis/220/A220212.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/220/A220212.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/220/A220212.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A220212: Convolution of natural numbers (A000027) with tetradecagonal numbers (A051866).
; 0,1,16,70,200,455,896,1596,2640,4125,6160,8866,12376,16835,22400,29240,37536,47481,59280,73150,89320,108031,129536,154100,182000,213525,248976,288666,332920,382075,436480,496496,562496,634865,714000,800310,894216,996151,1106560,1225900,1354640,1493261,1642256,1802130,1973400,2156595,2352256,2560936,2783200,3019625,3270800,3537326,3819816,4118895,4435200,4769380,5122096,5494021,5885840,6298250,6731960,7187691,7666176,8168160,8694400,9245665,9822736,10426406,11057480,11716775,12405120,13123356,13872336,14652925,15466000,16312450,17193176,18109091,19061120,20050200,21077280,22143321,23249296,24396190,25585000,26816735,28092416,29413076,30779760,32193525,33655440,35166586,36728056,38340955,40006400,41725520,43499456,45329361,47216400,49161750,51166600,53232151,55359616,57550220,59805200,62125805,64513296,66968946,69494040,72089875,74757760,77499016,80314976,83206985,86176400,89224590,92352936,95562831,98855680,102232900,105695920,109246181,112885136,116614250,120435000,124348875,128357376,132462016,136664320,140965825,145368080,149872646,154481096,159195015,164016000,168945660,173985616,179137501,184402960,189783650,195281240,200897411,206633856,212492280,218474400,224581945,230816656,237180286,243674600,250301375,257062400,263959476,270994416,278169045,285485200,292944730,300549496,308301371,316202240,324254000,332458560,340817841,349333776,358008310,366843400,375841015,385003136,394331756,403828880,413496525,423336720,433351506,443542936,453913075,464464000,475197800,486116576,497222441,508517520,520003950,531683880,543559471,555632896,567906340,580382000,593062085,605948816,619044426,632351160,645871275,659607040,673560736,687734656,702131105,716752400,731600870,746678856,761988711,777532800,793313500,809333200,825594301,842099216,858850370,875850200,893101155,910605696,928366296,946385440,964665625,983209360,1002019166,1021097576,1040447135,1060070400,1079969940,1100148336,1120608181,1141352080,1162382650,1183702520,1205314331,1227220736,1249424400,1271928000,1294734225,1317845776,1341265366,1364995720,1389039575,1413399680,1438078796,1463079696,1488405165,1514058000,1540041010,1566357016,1593008851,1619999360,1647331400,1675007840,1703031561,1731405456,1760132430,1789215400,1818657295,1848461056,1878629636,1909166000,1940073125
mov $2,$0
lpb $0
lpb $0
sub $0,1
add $4,$2
lpe
mov $3,$4
lpb $2
add $5,$3
add $1,$5
sub $2,1
add $3,4
lpe
lpe
| 139.277778 | 2,270 | 0.858795 |
5cfce141ae8aba92873364d90a26bcfc01c76949 | 88 | asm | Assembly | src/Bayonetta2/Mods/DisableVsync/patch_vsync.asm | lilystudent2016/cemu_graphic_packs | a7aaa6d07df0d5ca3f6475d741fb8b80fadd1a46 | [
"CC0-1.0"
] | 1,002 | 2017-01-10T13:10:55.000Z | 2020-11-20T18:34:19.000Z | src/Bayonetta2/Mods/DisableVsync/patch_vsync.asm | lilystudent2016/cemu_graphic_packs | a7aaa6d07df0d5ca3f6475d741fb8b80fadd1a46 | [
"CC0-1.0"
] | 347 | 2017-01-11T21:13:20.000Z | 2020-11-27T11:33:05.000Z | src/Bayonetta2/Mods/DisableVsync/patch_vsync.asm | lilystudent2016/cemu_graphic_packs | a7aaa6d07df0d5ca3f6475d741fb8b80fadd1a46 | [
"CC0-1.0"
] | 850 | 2017-01-10T06:06:43.000Z | 2020-11-06T21:16:49.000Z | [Bayo2USv0]
moduleMatches = 0xAF5D1A85
.origin = codecave
0x034461C4 = nop #Kill Vsync
| 14.666667 | 28 | 0.772727 |
be76c7bbe555c6b3ac2854e8069fbfdbf25c35ae | 4,341 | asm | Assembly | ugbc/src/hw/6809/cpu_math_div_16bit_to_16bit.asm | spotlessmind1975/ugbasic | 1df3c8fde8e80b479ece86b4ff2b97b599d57ff4 | [
"Apache-2.0"
] | 10 | 2021-10-03T13:44:25.000Z | 2022-03-10T23:53:32.000Z | ugbc/src/hw/6809/cpu_math_div_16bit_to_16bit.asm | spotlessmind1975/ugbasic | 1df3c8fde8e80b479ece86b4ff2b97b599d57ff4 | [
"Apache-2.0"
] | 379 | 2021-08-12T09:46:09.000Z | 2022-03-27T11:29:12.000Z | ugbc/src/hw/6809/cpu_math_div_16bit_to_16bit.asm | spotlessmind1975/ugbasic | 1df3c8fde8e80b479ece86b4ff2b97b599d57ff4 | [
"Apache-2.0"
] | 2 | 2021-11-08T19:37:50.000Z | 2021-11-20T22:27:12.000Z | ; /*****************************************************************************
; * ugBASIC - an isomorphic BASIC language compiler for retrocomputers *
; *****************************************************************************
; * Copyright 2021-2022 Marco Spedaletti (asimov@mclink.it)
; *
; * Licensed under the Apache License, Version 2.0 (the "License");
; * you may not use this file except in compliance with the License.
; * You may obtain a copy of the License at
; *
; * http://www.apache.org/licenses/LICENSE-2.0
; *
; * Unless required by applicable law or agreed to in writing, software
; * distributed under the License is distributed on an "AS IS" BASIS,
; * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; * See the License for the specific language governing permissions and
; * limitations under the License.
; *----------------------------------------------------------------------------
; * Concesso in licenza secondo i termini della Licenza Apache, versione 2.0
; * (la "Licenza"); è proibito usare questo file se non in conformità alla
; * Licenza. Una copia della Licenza è disponibile all'indirizzo:
; *
; * http://www.apache.org/licenses/LICENSE-2.0
; *
; * Se non richiesto dalla legislazione vigente o concordato per iscritto,
; * il software distribuito nei termini della Licenza è distribuito
; * "COSì COM'è", SENZA GARANZIE O CONDIZIONI DI ALCUN TIPO, esplicite o
; * implicite. Consultare la Licenza per il testo specifico che regola le
; * autorizzazioni e le limitazioni previste dalla medesima.
; ****************************************************************************/
; unsigned division
; D=D/X X=D.mod.X
; http://www.logicielsmoto.com/phpBB/viewtopic.php?p=1090#p1090
CPUMATHDIV16BITTO16BIT_fast
PSHS X
STB ,S
LDB 1,S
DECB
BITB #1
BNE CPUMATHDIV16BITTO16BIT_remainder
LDB ,S
CPUMATHDIV16BITTO16BIT_slow
STD ,S
BRA CPUMATHDIV16BITTO16BIT0
CPUMATHDIV16BITTO16BIT_remainder
ANDB ,S
STB 1,S
LDB ,S
CLR ,S
JMP [CPUMATHDIV16BITTO16BIT_tab-2,X]
CPUMATHDIV16BITTO16BIT_fast32
LSRA
RORB
CPUMATHDIV16BITTO16BIT_fast16
LSRA
RORB
CPUMATHDIV16BITTO16BIT_fast8
LSRA
RORB
CPUMATHDIV16BITTO16BIT_fast4
LSRA
RORB
CPUMATHDIV16BITTO16BIT_fast2
LSRA
RORB
PULS X,PC
CPUMATHDIV16BITTO16BIT_tab
FDB CPUMATHDIV16BITTO16BIT_fast2
FDB CPUMATHDIV16BITTO16BIT_fast4
FDB CPUMATHDIV16BITTO16BIT_slow
FDB CPUMATHDIV16BITTO16BIT_fast8
FDB CPUMATHDIV16BITTO16BIT_slow
FDB CPUMATHDIV16BITTO16BIT_slow
FDB CPUMATHDIV16BITTO16BIT_slow
FDB CPUMATHDIV16BITTO16BIT_fast16
FDB CPUMATHDIV16BITTO16BIT_slow
FDB CPUMATHDIV16BITTO16BIT_slow
FDB CPUMATHDIV16BITTO16BIT_slow
FDB CPUMATHDIV16BITTO16BIT_slow
FDB CPUMATHDIV16BITTO16BIT_slow
FDB CPUMATHDIV16BITTO16BIT_slow
FDB CPUMATHDIV16BITTO16BIT_slow
FDB CPUMATHDIV16BITTO16BIT_fast32
CPUMATHDIV16BITTO16BIT
CMPX #32
BLS CPUMATHDIV16BITTO16BIT_fast
PSHS D
CPUMATHDIV16BITTO16BIT0
STX CPUMATHDIV16BITTO16BITL2-2
STX CPUMATHDIV16BITTO16BITL2-7
LEAY 1,S
CLRA
CLRB
LDX #16
CPUMATHDIV16BITTO16BITL1
ROL ,Y
ROL ,S
ROLB
ROLA
CMPD #$5555
BCS CPUMATHDIV16BITTO16BITL2
SUBD #$5555
CPUMATHDIV16BITTO16BITL2
LEAX -1,X
BNE CPUMATHDIV16BITTO16BITL1
TFR D,X
PULS D
ROLB
ROLA
COMB
COMA
RTS
CPUMATHDIV16BITTO16BIT_SIGNED
STD <MATHPTR0
STX <MATHPTR2
EORA <MATHPTR2 ; compute sign of result
STA <MATHPTR5 ; store it on stack
LDD #0 ; D=-X
SUBD <MATHPTR2 ; X < 0 ?
BMI CPUMATHDIV16BITTO16BIT_SIGNED1
STD <MATHPTR2 ; yes ==> repmace with -X
CPUMATHDIV16BITTO16BIT_SIGNED1
LDX <MATHPTR2
LDD <MATHPTR0 ; D < 0 ?
BPL CPUMATHDIV16BITTO16BIT_SIGNED2
NEGA ; yes => negate D
NEGB
SBCA #0
CPUMATHDIV16BITTO16BIT_SIGNED2
BSR CPUMATHDIV16BITTO16BIT
TST <MATHPTR5 ; get sign of result
BPL CPUMATHDIV16BITTO16BIT_SIGNED3
NEGA ; negative ?
NEGB ; yes => negate D
SBCA #0
CPUMATHDIV16BITTO16BIT_SIGNED3
RTS
| 29.732877 | 80 | 0.645013 |
36d259473de96c576af528e5ac3ccabc6d892ef2 | 778 | asm | Assembly | examples/fib_recursive.asm | Dreistein/toyvm | 0a3697ec46a746ccb47cd4903e1b111fa59e1f28 | [
"MIT"
] | 2 | 2021-01-25T14:34:13.000Z | 2021-05-19T01:16:30.000Z | examples/fib_recursive.asm | Dreistein/toyvm | 0a3697ec46a746ccb47cd4903e1b111fa59e1f28 | [
"MIT"
] | 6 | 2018-03-01T19:48:31.000Z | 2018-10-18T07:52:34.000Z | examples/fib_recursive.asm | Dreistein/toyvm | 0a3697ec46a746ccb47cd4903e1b111fa59e1f28 | [
"MIT"
] | 2 | 2018-05-18T02:55:04.000Z | 2020-10-02T21:57:31.000Z | # Sample prog that implements the fibonacci sequence
MOV R0 10
PUSH R0
CALL $FIB
POP R0
OUT R0, 0
MOV PC 0xFFFF
DW 0 #also hlt instruction, safety first
# Recursive fibonacci implementation
FIB:
# prolog
PUSH SB
MOV SB SP
# get argument
MOV R0 SB
ADD R0 2
MOV R1 @R0
# if arg == 0 or arg == 1, return 1
JZ $FIB_RET1
DEC R1
JZ $FIB_RET1
# save registers
PUSH R0
PUSH R1
PUSH R1 # save argument (arg-1 because of dec)
CALL $FIB # call first time
POP R2
POP R1
POP R0
# R1 = arg-2
DEC R1
# save registers
PUSH R0
PUSH R2
PUSH R1
CALL $FIB
POP R2
POP R1
POP R0
ADD R1 R2
MOV @R0 R1
JMP $FIB_EPI
FIB_RET1:
MOV @R0 1
FIB_EPI:
MOV SP SB
POP SB
RET
# END FIBONACCI | 12.548387 | 53 | 0.613111 |
3c9b155a177911d3ad03f4031549686221958b2a | 1,194 | asm | Assembly | x86-Win-NASM/src/Tables/sum_of_elements.asm | gramai/school-related | 152d67b4e475c3ba7c9370d6de39b38fc453392d | [
"MIT"
] | null | null | null | x86-Win-NASM/src/Tables/sum_of_elements.asm | gramai/school-related | 152d67b4e475c3ba7c9370d6de39b38fc453392d | [
"MIT"
] | null | null | null | x86-Win-NASM/src/Tables/sum_of_elements.asm | gramai/school-related | 152d67b4e475c3ba7c9370d6de39b38fc453392d | [
"MIT"
] | null | null | null | ;English
;Print on the screen the sum of the elements
;of a table
;Example:
;x DW 1,2,2,3,3
;n DW 5
;The value that has to be printed is : 11
;French
;Affichage sur l'écran de l'émulateur la
;somme des éléments d'un tableau.
;Exemple:
;x DW 1,2,2,3,3
;n DW 5
;La valeur doit être imprimé est: 11
org 100h
include "emu8086.inc"
.data
:
x DW 1,2,2,3,3 ;define the table as a word
msgsum db 0dh, 0ah, "Sum is ",0
msgstop db 0dh, 0ah, "Stopping...",0
.code
MOV CX, 5 ; number of the elements of the table
MOV AX, 0 ; will hold the sum of the elements
LEA SI, x ; points SI to x (to its first element)
looper:
ADD AX, [SI] ;adds the value of the element to AX
ADD SI,2 ; increases SI by two, so that it will point to the next element ( WORD -> increase by 2, BYTE -> increase by 1)
LOOP looper
LEA SI, msgsum
call print_string
call print_num ; prints AX to the screen
stop:
LEA SI, msgstop
call print_string
MOV AH, 0
INT 16h
RET
DEFINE_GET_STRING
DEFINE_PRINT_STRING
DEFINE_PRINT_NUM
DEFINE_PRINT_NUM_UNS
DEFINE_SCAN_NUM
END | 20.586207 | 126 | 0.627303 |
8dcdfae3d68e2cba11a47f17008032bc60ba8fcd | 425 | asm | Assembly | libsrc/_DEVELOPMENT/temp/sp1/zx/c/sccz80/sp1_PrintString.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/temp/sp1/zx/c/sccz80/sp1_PrintString.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/temp/sp1/zx/c/sccz80/sp1_PrintString.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ; void sp1_PrintString(struct sp1_pss *ps, uchar *s)
; CALLER linkage for function pointers
SECTION code_clib
SECTION code_temp_sp1
PUBLIC sp1_PrintString
EXTERN asm_sp1_PrintString
sp1_PrintString:
ld hl,2
add hl,sp
ld e,(hl)
inc hl
ld d,(hl) ; de = & string
inc hl
ld a,(hl)
inc hl
ld h,(hl)
ld l,a ; hl = & struct sp1_pss
jp asm_sp1_PrintString
| 17 | 52 | 0.621176 |
befdd342b278543ec95bb9c8b46c5fde1f87f7c3 | 364 | asm | Assembly | programs/oeis/327/A327376.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/327/A327376.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/327/A327376.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A327376: BII-numbers of set-systems with vertex-connectivity 3.
; 2868,2869,2870,2871,2876,2877,2878,2879,2880,2881,2882,2883,2884,2885,2886,2887,2888,2889,2890,2891,2892,2893,2894,2895,2896,2897,2898,2899,2900,2901,2902,2903,2904,2905,2906,2907,2908,2909,2910,2911,2912,2913,2914
mov $5,4
clr $2,$0
add $2,$0
add $2,7
sub $2,$5
mov $1,$2
add $1,2865
mov $0,$1
| 30.333333 | 216 | 0.733516 |
5f02bf6edca96345b57f5db6c734da66a7c231ec | 1,257 | asm | Assembly | Practice/Final/Lab 5/4. Write an ASM code to read a letter and print if it is Upper case or Lower case.asm | WardunIslam/CSE331L_Section_7_Summer_2020_NSU | 4f36bf223c44afd2233a243a2f8ba92df18f5545 | [
"MIT"
] | null | null | null | Practice/Final/Lab 5/4. Write an ASM code to read a letter and print if it is Upper case or Lower case.asm | WardunIslam/CSE331L_Section_7_Summer_2020_NSU | 4f36bf223c44afd2233a243a2f8ba92df18f5545 | [
"MIT"
] | null | null | null | Practice/Final/Lab 5/4. Write an ASM code to read a letter and print if it is Upper case or Lower case.asm | WardunIslam/CSE331L_Section_7_Summer_2020_NSU | 4f36bf223c44afd2233a243a2f8ba92df18f5545 | [
"MIT"
] | null | null | null | .MODEL SMALL
.STACK 100H
.DATA
PROMPT DB 'Enter the letter : $'
MSG_1 DB 'The input letter is: $'
MSG_2 DB 'The input is not letter!$'
MSG_3 DB "'Uppercase'$"
MSG_4 DB "'Lowercase'$"
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
JMP @INPUT
@ERROR_PRINT:
CALL NEWLINE
MOV AH, 09H
MOV DX, OFFSET MSG_2
INT 21H
CALL NEWLINE
@INPUT:
MOV AH, 09H
LEA DX, PROMPT
INT 21H
MOV AH, 01H
INT 21H
CMP AL, 41H
JL @ERROR_PRINT
CMP AL, 5AH
JLE @UPPERCASE
CMP AL, 61H
JL @ERROR_PRINT
CMP AL, 7AH
JLE @LOWERCASE
@UPPERCASE:
MOV BX, OFFSET MSG_3
JMP @DISPLAY
@LOWERCASE:
LEA BX, MSG_4
@DISPLAY:
CALL NEWLINE
MOV AH, 09H
MOV DX, OFFSET MSG_1
INT 21H
MOV DX, BX
INT 21H
MOV AH, 4CH
INT 21H
MAIN ENDP
NEWLINE PROC
PUSH AX
PUSH DX
MOV AH, 02H
MOV DL, 0DH
INT 21H
MOV DL, 0AH
INT 21H
POP DX
POP AX
RET
NEWLINE ENDP
END MAIN | 15.329268 | 40 | 0.459825 |
f66613209ebc4004fa1f9659bf41c25e6daee7b7 | 611 | asm | Assembly | oeis/003/A003951.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/003/A003951.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/003/A003951.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A003951: Expansion of g.f.: (1+x)/(1-8*x).
; 1,9,72,576,4608,36864,294912,2359296,18874368,150994944,1207959552,9663676416,77309411328,618475290624,4947802324992,39582418599936,316659348799488,2533274790395904,20266198323167232,162129586585337856,1297036692682702848,10376293541461622784,83010348331692982272,664082786653543858176,5312662293228350865408,42501298345826806923264,340010386766614455386112,2720083094132915643088896,21760664753063325144711168,174085318024506601157689344,1392682544196052809261514752,11141460353568422474092118016
mov $1,8
pow $1,$0
mul $1,9
sub $1,6
div $1,8
add $1,1
mov $0,$1
| 55.545455 | 499 | 0.860884 |
3c2133b9ad9b8c2c52065e96421976ce4818337c | 60,816 | asm | Assembly | target/cos_117/disasm/iop_overlay1/D4LOG.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/D4LOG.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/D4LOG.asm | jrrk2/cray-sim | 52c9639808d6890517092637b188282c00cce4f7 | [
"BSL-1.0"
] | 6 | 2021-04-12T06:10:32.000Z | 2022-02-08T23:11:19.000Z | 0x0000 (0x000000) 0x2047- f:00020 d: 71 | A = OR[71]
0x0001 (0x000002) 0x1207- f:00011 d: 7 | A = A & 7 (0x0007)
0x0002 (0x000004) 0x2847- f:00024 d: 71 | OR[71] = A
0x0003 (0x000006) 0x3102- f:00030 d: 258 | A = (OR[258])
0x0004 (0x000008) 0x0E08- f:00007 d: 8 | A = A << 8 (0x0008)
0x0005 (0x00000A) 0x0A03- f:00005 d: 3 | A = A < 3 (0x0003)
0x0006 (0x00000C) 0x2447- f:00022 d: 71 | A = A + OR[71]
0x0007 (0x00000E) 0x0C0B- f:00006 d: 11 | A = A >> 11 (0x000B)
0x0008 (0x000010) 0x3902- f:00034 d: 258 | (OR[258]) = A
0x0009 (0x000012) 0x2100- f:00020 d: 256 | A = OR[256]
0x000A (0x000014) 0x123F- f:00011 d: 63 | A = A & 63 (0x003F)
0x000B (0x000016) 0x2900- f:00024 d: 256 | OR[256] = A
0x000C (0x000018) 0x3102- f:00030 d: 258 | A = (OR[258])
0x000D (0x00001A) 0x1A00-0xFFC0 f:00015 d: 0 | A = A & 65472 (0xFFC0)
0x000F (0x00001E) 0x2500- f:00022 d: 256 | A = A + OR[256]
0x0010 (0x000020) 0x3902- f:00034 d: 258 | (OR[258]) = A
0x0011 (0x000022) 0x2119- f:00020 d: 281 | A = OR[281]
0x0012 (0x000024) 0x1A00-0x0FFF f:00015 d: 0 | A = A & 4095 (0x0FFF)
0x0014 (0x000028) 0x2919- f:00024 d: 281 | OR[281] = A
0x0015 (0x00002A) 0x2102- f:00020 d: 258 | A = OR[258]
0x0016 (0x00002C) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0017 (0x00002E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0018 (0x000030) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0019 (0x000032) 0x1A00-0xF000 f:00015 d: 0 | A = A & 61440 (0xF000)
0x001B (0x000036) 0x2519- f:00022 d: 281 | A = A + OR[281]
0x001C (0x000038) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x001D (0x00003A) 0x211A- f:00020 d: 282 | A = OR[282]
0x001E (0x00003C) 0x1207- f:00011 d: 7 | A = A & 7 (0x0007)
0x001F (0x00003E) 0x291A- f:00024 d: 282 | OR[282] = A
0x0020 (0x000040) 0x2102- f:00020 d: 258 | A = OR[258]
0x0021 (0x000042) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x0022 (0x000044) 0x2908- f:00024 d: 264 | OR[264] = A
0x0023 (0x000046) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0024 (0x000048) 0x0E05- f:00007 d: 5 | A = A << 5 (0x0005)
0x0025 (0x00004A) 0x0A03- f:00005 d: 3 | A = A < 3 (0x0003)
0x0026 (0x00004C) 0x251A- f:00022 d: 282 | A = A + OR[282]
0x0027 (0x00004E) 0x0C08- f:00006 d: 8 | A = A >> 8 (0x0008)
0x0028 (0x000050) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0029 (0x000052) 0x211B- f:00020 d: 283 | A = OR[283]
0x002A (0x000054) 0x13FF- f:00011 d: 511 | A = A & 511 (0x01FF)
0x002B (0x000056) 0x291B- f:00024 d: 283 | OR[283] = A
0x002C (0x000058) 0x2102- f:00020 d: 258 | A = OR[258]
0x002D (0x00005A) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x002E (0x00005C) 0x2908- f:00024 d: 264 | OR[264] = A
0x002F (0x00005E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0030 (0x000060) 0x1A00-0xFE00 f:00015 d: 0 | A = A & 65024 (0xFE00)
0x0032 (0x000064) 0x251B- f:00022 d: 283 | A = A + OR[283]
0x0033 (0x000066) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0034 (0x000068) 0x2104- f:00020 d: 260 | A = OR[260]
0x0035 (0x00006A) 0x120F- f:00011 d: 15 | A = A & 15 (0x000F)
0x0036 (0x00006C) 0x2904- f:00024 d: 260 | OR[260] = A
0x0037 (0x00006E) 0x2102- f:00020 d: 258 | A = OR[258]
0x0038 (0x000070) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0039 (0x000072) 0x2908- f:00024 d: 264 | OR[264] = A
0x003A (0x000074) 0x3108- f:00030 d: 264 | A = (OR[264])
0x003B (0x000076) 0x0A05- f:00005 d: 5 | A = A < 5 (0x0005)
0x003C (0x000078) 0x2504- f:00022 d: 260 | A = A + OR[260]
0x003D (0x00007A) 0x0C05- f:00006 d: 5 | A = A >> 5 (0x0005)
0x003E (0x00007C) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x003F (0x00007E) 0x2105- f:00020 d: 261 | A = OR[261]
0x0040 (0x000080) 0x120F- f:00011 d: 15 | A = A & 15 (0x000F)
0x0041 (0x000082) 0x2905- f:00024 d: 261 | OR[261] = A
0x0042 (0x000084) 0x2102- f:00020 d: 258 | A = OR[258]
0x0043 (0x000086) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x0044 (0x000088) 0x2908- f:00024 d: 264 | OR[264] = A
0x0045 (0x00008A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0046 (0x00008C) 0x0A05- f:00005 d: 5 | A = A < 5 (0x0005)
0x0047 (0x00008E) 0x2505- f:00022 d: 261 | A = A + OR[261]
0x0048 (0x000090) 0x0C05- f:00006 d: 5 | A = A >> 5 (0x0005)
0x0049 (0x000092) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x004A (0x000094) 0x2101- f:00020 d: 257 | A = OR[257]
0x004B (0x000096) 0x1407- f:00012 d: 7 | A = A + 7 (0x0007)
0x004C (0x000098) 0x2908- f:00024 d: 264 | OR[264] = A
0x004D (0x00009A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x004E (0x00009C) 0x0809- f:00004 d: 9 | A = A > 9 (0x0009)
0x004F (0x00009E) 0x121F- f:00011 d: 31 | A = A & 31 (0x001F)
0x0050 (0x0000A0) 0x291F- f:00024 d: 287 | OR[287] = A
0x0051 (0x0000A2) 0x211F- f:00020 d: 287 | A = OR[287]
0x0052 (0x0000A4) 0x127F- f:00011 d: 127 | A = A & 127 (0x007F)
0x0053 (0x0000A6) 0x291F- f:00024 d: 287 | OR[287] = A
0x0054 (0x0000A8) 0x3102- f:00030 d: 258 | A = (OR[258])
0x0055 (0x0000AA) 0x0A08- f:00005 d: 8 | A = A < 8 (0x0008)
0x0056 (0x0000AC) 0x251F- f:00022 d: 287 | A = A + OR[287]
0x0057 (0x0000AE) 0x0C08- f:00006 d: 8 | A = A >> 8 (0x0008)
0x0058 (0x0000B0) 0x3902- f:00034 d: 258 | (OR[258]) = A
0x0059 (0x0000B2) 0x2103- f:00020 d: 259 | A = OR[259]
0x005A (0x0000B4) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x005B (0x0000B6) 0x2908- f:00024 d: 264 | OR[264] = A
0x005C (0x0000B8) 0x3108- f:00030 d: 264 | A = (OR[264])
0x005D (0x0000BA) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x005E (0x0000BC) 0x2913- f:00024 d: 275 | OR[275] = A
0x005F (0x0000BE) 0x2113- f:00020 d: 275 | A = OR[275]
0x0060 (0x0000C0) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0061 (0x0000C2) 0x2913- f:00024 d: 275 | OR[275] = A
0x0062 (0x0000C4) 0x2102- f:00020 d: 258 | A = OR[258]
0x0063 (0x0000C6) 0x1403- f:00012 d: 3 | A = A + 3 (0x0003)
0x0064 (0x0000C8) 0x2908- f:00024 d: 264 | OR[264] = A
0x0065 (0x0000CA) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0066 (0x0000CC) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x0068 (0x0000D0) 0x2513- f:00022 d: 275 | A = A + OR[275]
0x0069 (0x0000D2) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x006A (0x0000D4) 0x2101- f:00020 d: 257 | A = OR[257]
0x006B (0x0000D6) 0x1430- f:00012 d: 48 | A = A + 48 (0x0030)
0x006C (0x0000D8) 0x2908- f:00024 d: 264 | OR[264] = A
0x006D (0x0000DA) 0x3108- f:00030 d: 264 | A = (OR[264])
0x006E (0x0000DC) 0x13FF- f:00011 d: 511 | A = A & 511 (0x01FF)
0x006F (0x0000DE) 0x2913- f:00024 d: 275 | OR[275] = A
0x0070 (0x0000E0) 0x2101- f:00020 d: 257 | A = OR[257]
0x0071 (0x0000E2) 0x1432- f:00012 d: 50 | A = A + 50 (0x0032)
0x0072 (0x0000E4) 0x2908- f:00024 d: 264 | OR[264] = A
0x0073 (0x0000E6) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0074 (0x0000E8) 0x2914- f:00024 d: 276 | OR[276] = A
0x0075 (0x0000EA) 0x211B- f:00020 d: 283 | A = OR[283]
0x0076 (0x0000EC) 0x2714- f:00023 d: 276 | A = A - OR[276]
0x0077 (0x0000EE) 0x8202- f:00101 d: 2 | P = P + 2 (0x0079), C = 1
0x0078 (0x0000F0) 0x2513- f:00022 d: 275 | A = A + OR[275]
0x0079 (0x0000F2) 0x2914- f:00024 d: 276 | OR[276] = A
0x007A (0x0000F4) 0x2114- f:00020 d: 276 | A = OR[276]
0x007B (0x0000F6) 0x13FF- f:00011 d: 511 | A = A & 511 (0x01FF)
0x007C (0x0000F8) 0x2914- f:00024 d: 276 | OR[276] = A
0x007D (0x0000FA) 0x2102- f:00020 d: 258 | A = OR[258]
0x007E (0x0000FC) 0x141F- f:00012 d: 31 | A = A + 31 (0x001F)
0x007F (0x0000FE) 0x2908- f:00024 d: 264 | OR[264] = A
0x0080 (0x000100) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0081 (0x000102) 0x0E05- f:00007 d: 5 | A = A << 5 (0x0005)
0x0082 (0x000104) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x0083 (0x000106) 0x2514- f:00022 d: 276 | A = A + OR[276]
0x0084 (0x000108) 0x0C0E- f:00006 d: 14 | A = A >> 14 (0x000E)
0x0085 (0x00010A) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0086 (0x00010C) 0x2118- f:00020 d: 280 | A = OR[280]
0x0087 (0x00010E) 0x8602- f:00103 d: 2 | P = P + 2 (0x0089), A # 0
0x0088 (0x000110) 0x7031- f:00070 d: 49 | P = P + 49 (0x00B9)
0x0089 (0x000112) 0x2118- f:00020 d: 280 | A = OR[280]
0x008A (0x000114) 0x140D- f:00012 d: 13 | A = A + 13 (0x000D)
0x008B (0x000116) 0x2908- f:00024 d: 264 | OR[264] = A
0x008C (0x000118) 0x3108- f:00030 d: 264 | A = (OR[264])
0x008D (0x00011A) 0x080F- f:00004 d: 15 | A = A > 15 (0x000F)
0x008E (0x00011C) 0x8602- f:00103 d: 2 | P = P + 2 (0x0090), A # 0
0x008F (0x00011E) 0x701F- f:00070 d: 31 | P = P + 31 (0x00AE)
0x0090 (0x000120) 0x2118- f:00020 d: 280 | A = OR[280]
0x0091 (0x000122) 0x1412- f:00012 d: 18 | A = A + 18 (0x0012)
0x0092 (0x000124) 0x2908- f:00024 d: 264 | OR[264] = A
0x0093 (0x000126) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0094 (0x000128) 0x0807- f:00004 d: 7 | A = A > 7 (0x0007)
0x0095 (0x00012A) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x0096 (0x00012C) 0x8602- f:00103 d: 2 | P = P + 2 (0x0098), A # 0
0x0097 (0x00012E) 0x700E- f:00070 d: 14 | P = P + 14 (0x00A5)
0x0098 (0x000130) 0x2118- f:00020 d: 280 | A = OR[280]
0x0099 (0x000132) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008)
0x009A (0x000134) 0x2908- f:00024 d: 264 | OR[264] = A
0x009B (0x000136) 0x3108- f:00030 d: 264 | A = (OR[264])
0x009C (0x000138) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x009D (0x00013A) 0x291C- f:00024 d: 284 | OR[284] = A
0x009E (0x00013C) 0x2118- f:00020 d: 280 | A = OR[280]
0x009F (0x00013E) 0x1413- f:00012 d: 19 | A = A + 19 (0x0013)
0x00A0 (0x000140) 0x2908- f:00024 d: 264 | OR[264] = A
0x00A1 (0x000142) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00A2 (0x000144) 0x2924- f:00024 d: 292 | OR[292] = A
0x00A3 (0x000146) 0x7E03-0x0269 f:00077 d: 3 | R = OR[3]+617 (0x0269)
0x00A5 (0x00014A) 0x2118- f:00020 d: 280 | A = OR[280]
0x00A6 (0x00014C) 0x1412- f:00012 d: 18 | A = A + 18 (0x0012)
0x00A7 (0x00014E) 0x2908- f:00024 d: 264 | OR[264] = A
0x00A8 (0x000150) 0x3108- f:00030 d: 264 | A = (OR[264])
0x00A9 (0x000152) 0x0805- f:00004 d: 5 | A = A > 5 (0x0005)
0x00AA (0x000154) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x00AB (0x000156) 0xAE03-0x0248 f:00127 d: 3 | P = OR[3]+584 (0x0248), A # 0
0x00AD (0x00015A) 0x700C- f:00070 d: 12 | P = P + 12 (0x00B9)
0x00AE (0x00015C) 0x2105- f:00020 d: 261 | A = OR[261]
0x00AF (0x00015E) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x00B0 (0x000160) 0x8405- f:00102 d: 5 | P = P + 5 (0x00B5), A = 0
0x00B1 (0x000162) 0x2105- f:00020 d: 261 | A = OR[261]
0x00B2 (0x000164) 0x160B- f:00013 d: 11 | A = A - 11 (0x000B)
0x00B3 (0x000166) 0x8402- f:00102 d: 2 | P = P + 2 (0x00B5), A = 0
0x00B4 (0x000168) 0x7005- f:00070 d: 5 | P = P + 5 (0x00B9)
0x00B5 (0x00016A) 0x2118- f:00020 d: 280 | A = OR[280]
0x00B6 (0x00016C) 0x140F- f:00012 d: 15 | A = A + 15 (0x000F)
0x00B7 (0x00016E) 0x2908- f:00024 d: 264 | OR[264] = A
0x00B8 (0x000170) 0x3D08- f:00036 d: 264 | (OR[264]) = (OR[264]) + 1
0x00B9 (0x000172) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00BA (0x000174) 0x291C- f:00024 d: 284 | OR[284] = A
0x00BB (0x000176) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x00BC (0x000178) 0x2924- f:00024 d: 292 | OR[292] = A
0x00BD (0x00017A) 0x7E03-0x0269 f:00077 d: 3 | R = OR[3]+617 (0x0269)
0x00BF (0x00017E) 0x2101- f:00020 d: 257 | A = OR[257]
0x00C0 (0x000180) 0x141C- f:00012 d: 28 | A = A + 28 (0x001C)
0x00C1 (0x000182) 0x2908- f:00024 d: 264 | OR[264] = A
0x00C2 (0x000184) 0x3D08- f:00036 d: 264 | (OR[264]) = (OR[264]) + 1
0x00C3 (0x000186) 0x2105- f:00020 d: 261 | A = OR[261]
0x00C4 (0x000188) 0x160D- f:00013 d: 13 | A = A - 13 (0x000D)
0x00C5 (0x00018A) 0x8405- f:00102 d: 5 | P = P + 5 (0x00CA), A = 0
0x00C6 (0x00018C) 0x2105- f:00020 d: 261 | A = OR[261]
0x00C7 (0x00018E) 0x160C- f:00013 d: 12 | A = A - 12 (0x000C)
0x00C8 (0x000190) 0x8402- f:00102 d: 2 | P = P + 2 (0x00CA), A = 0
0x00C9 (0x000192) 0x7007- f:00070 d: 7 | P = P + 7 (0x00D0)
0x00CA (0x000194) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00CB (0x000196) 0x291C- f:00024 d: 284 | OR[284] = A
0x00CC (0x000198) 0x1035- f:00010 d: 53 | A = 53 (0x0035)
0x00CD (0x00019A) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x00CE (0x00019C) 0x291D- f:00024 d: 285 | OR[285] = A
0x00CF (0x00019E) 0x7005- f:00070 d: 5 | P = P + 5 (0x00D4)
0x00D0 (0x0001A0) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x00D1 (0x0001A2) 0x291C- f:00024 d: 284 | OR[284] = A
0x00D2 (0x0001A4) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x00D3 (0x0001A6) 0x291D- f:00024 d: 285 | OR[285] = A
0x00D4 (0x0001A8) 0x1018- f:00010 d: 24 | A = 24 (0x0018)
0x00D5 (0x0001AA) 0x2925- f:00024 d: 293 | OR[293] = A
0x00D6 (0x0001AC) 0x211D- f:00020 d: 285 | A = OR[285]
0x00D7 (0x0001AE) 0x2926- f:00024 d: 294 | OR[294] = A
0x00D8 (0x0001B0) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00D9 (0x0001B2) 0x2927- f:00024 d: 295 | OR[295] = A
0x00DA (0x0001B4) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00DB (0x0001B6) 0x2928- f:00024 d: 296 | OR[296] = A
0x00DC (0x0001B8) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00DD (0x0001BA) 0x2929- f:00024 d: 297 | OR[297] = A
0x00DE (0x0001BC) 0x1124- f:00010 d: 292 | A = 292 (0x0124)
0x00DF (0x0001BE) 0x292A- f:00024 d: 298 | OR[298] = A
0x00E0 (0x0001C0) 0x1125- f:00010 d: 293 | A = 293 (0x0125)
0x00E1 (0x0001C2) 0x5800- f:00054 d: 0 | B = A
0x00E2 (0x0001C4) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00E3 (0x0001C6) 0x7C09- f:00076 d: 9 | R = OR[9]
0x00E4 (0x0001C8) 0x8602- f:00103 d: 2 | P = P + 2 (0x00E6), A # 0
0x00E5 (0x0001CA) 0x700B- f:00070 d: 11 | P = P + 11 (0x00F0)
0x00E6 (0x0001CC) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x00E7 (0x0001CE) 0x2925- f:00024 d: 293 | OR[293] = A
0x00E8 (0x0001D0) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x00E9 (0x0001D2) 0x2926- f:00024 d: 294 | OR[294] = A
0x00EA (0x0001D4) 0x1125- f:00010 d: 293 | A = 293 (0x0125)
0x00EB (0x0001D6) 0x5800- f:00054 d: 0 | B = A
0x00EC (0x0001D8) 0x1800-0x1B18 f:00014 d: 0 | A = 6936 (0x1B18)
0x00EE (0x0001DC) 0x7C09- f:00076 d: 9 | R = OR[9]
0x00EF (0x0001DE) 0x721B- f:00071 d: 27 | P = P - 27 (0x00D4)
0x00F0 (0x0001E0) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x00F1 (0x0001E2) 0x2925- f:00024 d: 293 | OR[293] = A
0x00F2 (0x0001E4) 0x1800-0x0041 f:00014 d: 0 | A = 65 (0x0041)
0x00F4 (0x0001E8) 0x2926- f:00024 d: 294 | OR[294] = A
0x00F5 (0x0001EA) 0x1800-0x0000 f:00014 d: 0 | A = 0 (0x0000)
0x00F7 (0x0001EE) 0x2927- f:00024 d: 295 | OR[295] = A
0x00F8 (0x0001F0) 0x2124- f:00020 d: 292 | A = OR[292]
0x00F9 (0x0001F2) 0x2928- f:00024 d: 296 | OR[296] = A
0x00FA (0x0001F4) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00FB (0x0001F6) 0x2929- f:00024 d: 297 | OR[297] = A
0x00FC (0x0001F8) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00FD (0x0001FA) 0x292A- f:00024 d: 298 | OR[298] = A
0x00FE (0x0001FC) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00FF (0x0001FE) 0x292B- f:00024 d: 299 | OR[299] = A
0x0100 (0x000200) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0101 (0x000202) 0x292C- f:00024 d: 300 | OR[300] = A
0x0102 (0x000204) 0x1125- f:00010 d: 293 | A = 293 (0x0125)
0x0103 (0x000206) 0x5800- f:00054 d: 0 | B = A
0x0104 (0x000208) 0x1800-0x1B18 f:00014 d: 0 | A = 6936 (0x1B18)
0x0106 (0x00020C) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0107 (0x00020E) 0x2124- f:00020 d: 292 | A = OR[292]
0x0108 (0x000210) 0x1404- f:00012 d: 4 | A = A + 4 (0x0004)
0x0109 (0x000212) 0x2908- f:00024 d: 264 | OR[264] = A
0x010A (0x000214) 0x211F- f:00020 d: 287 | A = OR[287]
0x010B (0x000216) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x010C (0x000218) 0x1800-0x0D16 f:00014 d: 0 | A = 3350 (0x0D16)
0x010E (0x00021C) 0x2916- f:00024 d: 278 | OR[278] = A
0x010F (0x00021E) 0x3116- f:00030 d: 278 | A = (OR[278])
0x0110 (0x000220) 0x2920- f:00024 d: 288 | OR[288] = A
0x0111 (0x000222) 0x2D16- f:00026 d: 278 | OR[278] = OR[278] + 1
0x0112 (0x000224) 0x3116- f:00030 d: 278 | A = (OR[278])
0x0113 (0x000226) 0x2921- f:00024 d: 289 | OR[289] = A
0x0114 (0x000228) 0x1800-0x0D14 f:00014 d: 0 | A = 3348 (0x0D14)
0x0116 (0x00022C) 0x2908- f:00024 d: 264 | OR[264] = A
0x0117 (0x00022E) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0118 (0x000230) 0x291D- f:00024 d: 285 | OR[285] = A
0x0119 (0x000232) 0x2120- f:00020 d: 288 | A = OR[288]
0x011A (0x000234) 0x2922- f:00024 d: 290 | OR[290] = A
0x011B (0x000236) 0x2121- f:00020 d: 289 | A = OR[289]
0x011C (0x000238) 0x251D- f:00022 d: 285 | A = A + OR[285]
0x011D (0x00023A) 0x2923- f:00024 d: 291 | OR[291] = A
0x011E (0x00023C) 0x8002- f:00100 d: 2 | P = P + 2 (0x0120), C = 0
0x011F (0x00023E) 0x2D22- f:00026 d: 290 | OR[290] = OR[290] + 1
0x0120 (0x000240) 0x1027- f:00010 d: 39 | A = 39 (0x0027)
0x0121 (0x000242) 0x2925- f:00024 d: 293 | OR[293] = A
0x0122 (0x000244) 0x2122- f:00020 d: 290 | A = OR[290]
0x0123 (0x000246) 0x2926- f:00024 d: 294 | OR[294] = A
0x0124 (0x000248) 0x2123- f:00020 d: 291 | A = OR[291]
0x0125 (0x00024A) 0x2927- f:00024 d: 295 | OR[295] = A
0x0126 (0x00024C) 0x2124- f:00020 d: 292 | A = OR[292]
0x0127 (0x00024E) 0x2928- f:00024 d: 296 | OR[296] = A
0x0128 (0x000250) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x0129 (0x000252) 0x2929- f:00024 d: 297 | OR[297] = A
0x012A (0x000254) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x012B (0x000256) 0x292A- f:00024 d: 298 | OR[298] = A
0x012C (0x000258) 0x1125- f:00010 d: 293 | A = 293 (0x0125)
0x012D (0x00025A) 0x5800- f:00054 d: 0 | B = A
0x012E (0x00025C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x012F (0x00025E) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0130 (0x000260) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x0131 (0x000262) 0x2B23- f:00025 d: 291 | OR[291] = A + OR[291]
0x0132 (0x000264) 0x8002- f:00100 d: 2 | P = P + 2 (0x0134), C = 0
0x0133 (0x000266) 0x2D22- f:00026 d: 290 | OR[290] = OR[290] + 1
0x0134 (0x000268) 0x1027- f:00010 d: 39 | A = 39 (0x0027)
0x0135 (0x00026A) 0x2925- f:00024 d: 293 | OR[293] = A
0x0136 (0x00026C) 0x2122- f:00020 d: 290 | A = OR[290]
0x0137 (0x00026E) 0x2926- f:00024 d: 294 | OR[294] = A
0x0138 (0x000270) 0x2123- f:00020 d: 291 | A = OR[291]
0x0139 (0x000272) 0x2927- f:00024 d: 295 | OR[295] = A
0x013A (0x000274) 0x2102- f:00020 d: 258 | A = OR[258]
0x013B (0x000276) 0x2928- f:00024 d: 296 | OR[296] = A
0x013C (0x000278) 0x1014- f:00010 d: 20 | A = 20 (0x0014)
0x013D (0x00027A) 0x2929- f:00024 d: 297 | OR[297] = A
0x013E (0x00027C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x013F (0x00027E) 0x292A- f:00024 d: 298 | OR[298] = A
0x0140 (0x000280) 0x1125- f:00010 d: 293 | A = 293 (0x0125)
0x0141 (0x000282) 0x5800- f:00054 d: 0 | B = A
0x0142 (0x000284) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0143 (0x000286) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0144 (0x000288) 0x1016- f:00010 d: 22 | A = 22 (0x0016)
0x0145 (0x00028A) 0x2B1D- f:00025 d: 285 | OR[285] = A + OR[285]
0x0146 (0x00028C) 0x1E00-0x0200 f:00017 d: 0 | A = A - 512 (0x0200)
0x0148 (0x000290) 0x8003- f:00100 d: 3 | P = P + 3 (0x014B), C = 0
0x0149 (0x000292) 0x1006- f:00010 d: 6 | A = 6 (0x0006)
0x014A (0x000294) 0x291D- f:00024 d: 285 | OR[285] = A
0x014B (0x000296) 0x1800-0x0D14 f:00014 d: 0 | A = 3348 (0x0D14)
0x014D (0x00029A) 0x2916- f:00024 d: 278 | OR[278] = A
0x014E (0x00029C) 0x211D- f:00020 d: 285 | A = OR[285]
0x014F (0x00029E) 0x3916- f:00034 d: 278 | (OR[278]) = A
0x0150 (0x0002A0) 0x2D16- f:00026 d: 278 | OR[278] = OR[278] + 1
0x0151 (0x0002A2) 0x3116- f:00030 d: 278 | A = (OR[278])
0x0152 (0x0002A4) 0x271D- f:00023 d: 285 | A = A - OR[285]
0x0153 (0x0002A6) 0x8603- f:00103 d: 3 | P = P + 3 (0x0156), A # 0
0x0154 (0x0002A8) 0x1016- f:00010 d: 22 | A = 22 (0x0016)
0x0155 (0x0002AA) 0x3B16- f:00035 d: 278 | (OR[278]) = A + (OR[278])
0x0156 (0x0002AC) 0x3116- f:00030 d: 278 | A = (OR[278])
0x0157 (0x0002AE) 0x1E00-0x0200 f:00017 d: 0 | A = A - 512 (0x0200)
0x0159 (0x0002B2) 0x8003- f:00100 d: 3 | P = P + 3 (0x015C), C = 0
0x015A (0x0002B4) 0x1006- f:00010 d: 6 | A = 6 (0x0006)
0x015B (0x0002B6) 0x3916- f:00034 d: 278 | (OR[278]) = A
0x015C (0x0002B8) 0x1027- f:00010 d: 39 | A = 39 (0x0027)
0x015D (0x0002BA) 0x2925- f:00024 d: 293 | OR[293] = A
0x015E (0x0002BC) 0x2120- f:00020 d: 288 | A = OR[288]
0x015F (0x0002BE) 0x2926- f:00024 d: 294 | OR[294] = A
0x0160 (0x0002C0) 0x2121- f:00020 d: 289 | A = OR[289]
0x0161 (0x0002C2) 0x2927- f:00024 d: 295 | OR[295] = A
0x0162 (0x0002C4) 0x1800-0x0D14 f:00014 d: 0 | A = 3348 (0x0D14)
0x0164 (0x0002C8) 0x2928- f:00024 d: 296 | OR[296] = A
0x0165 (0x0002CA) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0166 (0x0002CC) 0x2929- f:00024 d: 297 | OR[297] = A
0x0167 (0x0002CE) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0168 (0x0002D0) 0x292A- f:00024 d: 298 | OR[298] = A
0x0169 (0x0002D2) 0x1125- f:00010 d: 293 | A = 293 (0x0125)
0x016A (0x0002D4) 0x5800- f:00054 d: 0 | B = A
0x016B (0x0002D6) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x016C (0x0002D8) 0x7C09- f:00076 d: 9 | R = OR[9]
0x016D (0x0002DA) 0x211C- f:00020 d: 284 | A = OR[284]
0x016E (0x0002DC) 0x8403- f:00102 d: 3 | P = P + 3 (0x0171), A = 0
0x016F (0x0002DE) 0x7A03-0x0240 f:00075 d: 3 | P = OR[3]+576 (0x0240)
0x0171 (0x0002E2) 0x2101- f:00020 d: 257 | A = OR[257]
0x0172 (0x0002E4) 0x141D- f:00012 d: 29 | A = A + 29 (0x001D)
0x0173 (0x0002E6) 0x2908- f:00024 d: 264 | OR[264] = A
0x0174 (0x0002E8) 0x3D08- f:00036 d: 264 | (OR[264]) = (OR[264]) + 1
0x0175 (0x0002EA) 0x2124- f:00020 d: 292 | A = OR[292]
0x0176 (0x0002EC) 0x1435- f:00012 d: 53 | A = A + 53 (0x0035)
0x0177 (0x0002EE) 0x291E- f:00024 d: 286 | OR[286] = A
0x0178 (0x0002F0) 0x2003- f:00020 d: 3 | A = OR[3]
0x0179 (0x0002F2) 0x1C00-0x02E0 f:00016 d: 0 | A = A + 736 (0x02E0)
0x017B (0x0002F6) 0x2913- f:00024 d: 275 | OR[275] = A
0x017C (0x0002F8) 0x2113- f:00020 d: 275 | A = OR[275]
0x017D (0x0002FA) 0x290D- f:00024 d: 269 | OR[269] = A
0x017E (0x0002FC) 0x2124- f:00020 d: 292 | A = OR[292]
0x017F (0x0002FE) 0x1404- f:00012 d: 4 | A = A + 4 (0x0004)
0x0180 (0x000300) 0x290E- f:00024 d: 270 | OR[270] = A
0x0181 (0x000302) 0x1031- f:00010 d: 49 | A = 49 (0x0031)
0x0182 (0x000304) 0x290F- f:00024 d: 271 | OR[271] = A
0x0183 (0x000306) 0x7006- f:00070 d: 6 | P = P + 6 (0x0189)
0x0184 (0x000308) 0x310D- f:00030 d: 269 | A = (OR[269])
0x0185 (0x00030A) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x0186 (0x00030C) 0x2D0D- f:00026 d: 269 | OR[269] = OR[269] + 1
0x0187 (0x00030E) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x0188 (0x000310) 0x2F0F- f:00027 d: 271 | OR[271] = OR[271] - 1
0x0189 (0x000312) 0x210F- f:00020 d: 271 | A = OR[271]
0x018A (0x000314) 0x8E06- f:00107 d: 6 | P = P - 6 (0x0184), A # 0
0x018B (0x000316) 0x211F- f:00020 d: 287 | A = OR[287]
0x018C (0x000318) 0x1603- f:00013 d: 3 | A = A - 3 (0x0003)
0x018D (0x00031A) 0x8602- f:00103 d: 2 | P = P + 2 (0x018F), A # 0
0x018E (0x00031C) 0x7037- f:00070 d: 55 | P = P + 55 (0x01C5)
0x018F (0x00031E) 0x1035- f:00010 d: 53 | A = 53 (0x0035)
0x0190 (0x000320) 0x2913- f:00024 d: 275 | OR[275] = A
0x0191 (0x000322) 0x2113- f:00020 d: 275 | A = OR[275]
0x0192 (0x000324) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0193 (0x000326) 0x290D- f:00024 d: 269 | OR[269] = A
0x0194 (0x000328) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x0195 (0x00032A) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x0196 (0x00032C) 0x2524- f:00022 d: 292 | A = A + OR[292]
0x0197 (0x00032E) 0x290E- f:00024 d: 270 | OR[270] = A
0x0198 (0x000330) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x0199 (0x000332) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x019A (0x000334) 0x2908- f:00024 d: 264 | OR[264] = A
0x019B (0x000336) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x019C (0x000338) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x019D (0x00033A) 0x8607- f:00103 d: 7 | P = P + 7 (0x01A4), A # 0
0x019E (0x00033C) 0x310E- f:00030 d: 270 | A = (OR[270])
0x019F (0x00033E) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x01A0 (0x000340) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x01A1 (0x000342) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x01A2 (0x000344) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x01A3 (0x000346) 0x7006- f:00070 d: 6 | P = P + 6 (0x01A9)
0x01A4 (0x000348) 0x310E- f:00030 d: 270 | A = (OR[270])
0x01A5 (0x00034A) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x01A7 (0x00034E) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x01A8 (0x000350) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x01A9 (0x000352) 0x1030- f:00010 d: 48 | A = 48 (0x0030)
0x01AA (0x000354) 0x2913- f:00024 d: 275 | OR[275] = A
0x01AB (0x000356) 0x2113- f:00020 d: 275 | A = OR[275]
0x01AC (0x000358) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x01AD (0x00035A) 0x290D- f:00024 d: 269 | OR[269] = A
0x01AE (0x00035C) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x01AF (0x00035E) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x01B0 (0x000360) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x01B1 (0x000362) 0x2524- f:00022 d: 292 | A = A + OR[292]
0x01B2 (0x000364) 0x290E- f:00024 d: 270 | OR[270] = A
0x01B3 (0x000366) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x01B4 (0x000368) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x01B5 (0x00036A) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x01B6 (0x00036C) 0x2908- f:00024 d: 264 | OR[264] = A
0x01B7 (0x00036E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01B8 (0x000370) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x01B9 (0x000372) 0x8607- f:00103 d: 7 | P = P + 7 (0x01C0), A # 0
0x01BA (0x000374) 0x310E- f:00030 d: 270 | A = (OR[270])
0x01BB (0x000376) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x01BC (0x000378) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x01BD (0x00037A) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x01BE (0x00037C) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x01BF (0x00037E) 0x7006- f:00070 d: 6 | P = P + 6 (0x01C5)
0x01C0 (0x000380) 0x310E- f:00030 d: 270 | A = (OR[270])
0x01C1 (0x000382) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x01C3 (0x000386) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x01C4 (0x000388) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x01C5 (0x00038A) 0x2100- f:00020 d: 256 | A = OR[256]
0x01C6 (0x00038C) 0x2913- f:00024 d: 275 | OR[275] = A
0x01C7 (0x00038E) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x01C8 (0x000390) 0x2914- f:00024 d: 276 | OR[276] = A
0x01C9 (0x000392) 0x1017- f:00010 d: 23 | A = 23 (0x0017)
0x01CA (0x000394) 0x2915- f:00024 d: 277 | OR[277] = A
0x01CB (0x000396) 0x7E03-0x024E f:00077 d: 3 | R = OR[3]+590 (0x024E)
0x01CD (0x00039A) 0x2119- f:00020 d: 281 | A = OR[281]
0x01CE (0x00039C) 0x2913- f:00024 d: 275 | OR[275] = A
0x01CF (0x00039E) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x01D0 (0x0003A0) 0x2914- f:00024 d: 276 | OR[276] = A
0x01D1 (0x0003A2) 0x101E- f:00010 d: 30 | A = 30 (0x001E)
0x01D2 (0x0003A4) 0x2915- f:00024 d: 277 | OR[277] = A
0x01D3 (0x0003A6) 0x7E03-0x024E f:00077 d: 3 | R = OR[3]+590 (0x024E)
0x01D5 (0x0003AA) 0x211A- f:00020 d: 282 | A = OR[282]
0x01D6 (0x0003AC) 0x2913- f:00024 d: 275 | OR[275] = A
0x01D7 (0x0003AE) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x01D8 (0x0003B0) 0x2914- f:00024 d: 276 | OR[276] = A
0x01D9 (0x0003B2) 0x1026- f:00010 d: 38 | A = 38 (0x0026)
0x01DA (0x0003B4) 0x2915- f:00024 d: 277 | OR[277] = A
0x01DB (0x0003B6) 0x7E03-0x024E f:00077 d: 3 | R = OR[3]+590 (0x024E)
0x01DD (0x0003BA) 0x2102- f:00020 d: 258 | A = OR[258]
0x01DE (0x0003BC) 0x1404- f:00012 d: 4 | A = A + 4 (0x0004)
0x01DF (0x0003BE) 0x2908- f:00024 d: 264 | OR[264] = A
0x01E0 (0x0003C0) 0x3108- f:00030 d: 264 | A = (OR[264])
0x01E1 (0x0003C2) 0x2913- f:00024 d: 275 | OR[275] = A
0x01E2 (0x0003C4) 0x1006- f:00010 d: 6 | A = 6 (0x0006)
0x01E3 (0x0003C6) 0x2914- f:00024 d: 276 | OR[276] = A
0x01E4 (0x0003C8) 0x102C- f:00010 d: 44 | A = 44 (0x002C)
0x01E5 (0x0003CA) 0x2915- f:00024 d: 277 | OR[277] = A
0x01E6 (0x0003CC) 0x7E03-0x024E f:00077 d: 3 | R = OR[3]+590 (0x024E)
0x01E8 (0x0003D0) 0x2102- f:00020 d: 258 | A = OR[258]
0x01E9 (0x0003D2) 0x1405- f:00012 d: 5 | A = A + 5 (0x0005)
0x01EA (0x0003D4) 0x2908- f:00024 d: 264 | OR[264] = A
0x01EB (0x0003D6) 0x3108- f:00030 d: 264 | A = (OR[264])
0x01EC (0x0003D8) 0x2913- f:00024 d: 275 | OR[275] = A
0x01ED (0x0003DA) 0x1006- f:00010 d: 6 | A = 6 (0x0006)
0x01EE (0x0003DC) 0x2914- f:00024 d: 276 | OR[276] = A
0x01EF (0x0003DE) 0x1037- f:00010 d: 55 | A = 55 (0x0037)
0x01F0 (0x0003E0) 0x2915- f:00024 d: 277 | OR[277] = A
0x01F1 (0x0003E2) 0x7E03-0x024E f:00077 d: 3 | R = OR[3]+590 (0x024E)
0x01F3 (0x0003E6) 0x2003- f:00020 d: 3 | A = OR[3]
0x01F4 (0x0003E8) 0x1C00-0x030E f:00016 d: 0 | A = A + 782 (0x030E)
0x01F6 (0x0003EC) 0x2504- f:00022 d: 260 | A = A + OR[260]
0x01F7 (0x0003EE) 0x2917- f:00024 d: 279 | OR[279] = A
0x01F8 (0x0003F0) 0x3117- f:00030 d: 279 | A = (OR[279])
0x01F9 (0x0003F2) 0x2403- f:00022 d: 3 | A = A + OR[3]
0x01FA (0x0003F4) 0x2913- f:00024 d: 275 | OR[275] = A
0x01FB (0x0003F6) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x01FC (0x0003F8) 0x290F- f:00024 d: 271 | OR[271] = A
0x01FD (0x0003FA) 0x103E- f:00010 d: 62 | A = 62 (0x003E)
0x01FE (0x0003FC) 0x2910- f:00024 d: 272 | OR[272] = A
0x01FF (0x0003FE) 0x1006- f:00010 d: 6 | A = 6 (0x0006)
0x0200 (0x000400) 0x2911- f:00024 d: 273 | OR[273] = A
0x0201 (0x000402) 0x702E- f:00070 d: 46 | P = P + 46 (0x022F)
0x0202 (0x000404) 0x210F- f:00020 d: 271 | A = OR[271]
0x0203 (0x000406) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x0204 (0x000408) 0x2513- f:00022 d: 275 | A = A + OR[275]
0x0205 (0x00040A) 0x290D- f:00024 d: 269 | OR[269] = A
0x0206 (0x00040C) 0x310D- f:00030 d: 269 | A = (OR[269])
0x0207 (0x00040E) 0x290D- f:00024 d: 269 | OR[269] = A
0x0208 (0x000410) 0x210F- f:00020 d: 271 | A = OR[271]
0x0209 (0x000412) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x020A (0x000414) 0x2908- f:00024 d: 264 | OR[264] = A
0x020B (0x000416) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x020C (0x000418) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x020D (0x00041A) 0x8604- f:00103 d: 4 | P = P + 4 (0x0211), A # 0
0x020E (0x00041C) 0x210D- f:00020 d: 269 | A = OR[269]
0x020F (0x00041E) 0x0808- f:00004 d: 8 | A = A > 8 (0x0008)
0x0210 (0x000420) 0x290D- f:00024 d: 269 | OR[269] = A
0x0211 (0x000422) 0x210D- f:00020 d: 269 | A = OR[269]
0x0212 (0x000424) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0213 (0x000426) 0x2912- f:00024 d: 274 | OR[274] = A
0x0214 (0x000428) 0x2D0F- f:00026 d: 271 | OR[271] = OR[271] + 1
0x0215 (0x00042A) 0x2112- f:00020 d: 274 | A = OR[274]
0x0216 (0x00042C) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x0217 (0x00042E) 0x290D- f:00024 d: 269 | OR[269] = A
0x0218 (0x000430) 0x2110- f:00020 d: 272 | A = OR[272]
0x0219 (0x000432) 0x0801- f:00004 d: 1 | A = A > 1 (0x0001)
0x021A (0x000434) 0x2524- f:00022 d: 292 | A = A + OR[292]
0x021B (0x000436) 0x290E- f:00024 d: 270 | OR[270] = A
0x021C (0x000438) 0x2110- f:00020 d: 272 | A = OR[272]
0x021D (0x00043A) 0x1201- f:00011 d: 1 | A = A & 1 (0x0001)
0x021E (0x00043C) 0x2908- f:00024 d: 264 | OR[264] = A
0x021F (0x00043E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0220 (0x000440) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x0221 (0x000442) 0x8607- f:00103 d: 7 | P = P + 7 (0x0228), A # 0
0x0222 (0x000444) 0x310E- f:00030 d: 270 | A = (OR[270])
0x0223 (0x000446) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x0224 (0x000448) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x0225 (0x00044A) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x0226 (0x00044C) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x0227 (0x00044E) 0x7006- f:00070 d: 6 | P = P + 6 (0x022D)
0x0228 (0x000450) 0x310E- f:00030 d: 270 | A = (OR[270])
0x0229 (0x000452) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x022B (0x000456) 0x250D- f:00022 d: 269 | A = A + OR[269]
0x022C (0x000458) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x022D (0x00045A) 0x2D10- f:00026 d: 272 | OR[272] = OR[272] + 1
0x022E (0x00045C) 0x2F11- f:00027 d: 273 | OR[273] = OR[273] - 1
0x022F (0x00045E) 0x2111- f:00020 d: 273 | A = OR[273]
0x0230 (0x000460) 0x8E2E- f:00107 d: 46 | P = P - 46 (0x0202), A # 0
0x0231 (0x000462) 0x1010- f:00010 d: 16 | A = 16 (0x0010)
0x0232 (0x000464) 0x2925- f:00024 d: 293 | OR[293] = A
0x0233 (0x000466) 0x2124- f:00020 d: 292 | A = OR[292]
0x0234 (0x000468) 0x2926- f:00024 d: 294 | OR[294] = A
0x0235 (0x00046A) 0x1125- f:00010 d: 293 | A = 293 (0x0125)
0x0236 (0x00046C) 0x5800- f:00054 d: 0 | B = A
0x0237 (0x00046E) 0x1800-0x1B18 f:00014 d: 0 | A = 6936 (0x1B18)
0x0239 (0x000472) 0x7C09- f:00076 d: 9 | R = OR[9]
0x023A (0x000474) 0x1019- f:00010 d: 25 | A = 25 (0x0019)
0x023B (0x000476) 0x2925- f:00024 d: 293 | OR[293] = A
0x023C (0x000478) 0x2124- f:00020 d: 292 | A = OR[292]
0x023D (0x00047A) 0x2926- f:00024 d: 294 | OR[294] = A
0x023E (0x00047C) 0x1125- f:00010 d: 293 | A = 293 (0x0125)
0x023F (0x00047E) 0x5800- f:00054 d: 0 | B = A
0x0240 (0x000480) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0241 (0x000482) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0242 (0x000484) 0x102A- f:00010 d: 42 | A = 42 (0x002A)
0x0243 (0x000486) 0x2925- f:00024 d: 293 | OR[293] = A
0x0244 (0x000488) 0x1125- f:00010 d: 293 | A = 293 (0x0125)
0x0245 (0x00048A) 0x5800- f:00054 d: 0 | B = A
0x0246 (0x00048C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0247 (0x00048E) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0248 (0x000490) 0x2113- f:00020 d: 275 | A = OR[275]
0x0249 (0x000492) 0x391E- f:00034 d: 286 | (OR[286]) = A
0x024A (0x000494) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x024B (0x000496) 0x2925- f:00024 d: 293 | OR[293] = A
0x024C (0x000498) 0x1800-0x0011 f:00014 d: 0 | A = 17 (0x0011)
0x024E (0x00049C) 0x2926- f:00024 d: 294 | OR[294] = A
0x024F (0x00049E) 0x211E- f:00020 d: 286 | A = OR[286]
0x0250 (0x0004A0) 0x2927- f:00024 d: 295 | OR[295] = A
0x0251 (0x0004A2) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0252 (0x0004A4) 0x2928- f:00024 d: 296 | OR[296] = A
0x0253 (0x0004A6) 0x1010- f:00010 d: 16 | A = 16 (0x0010)
0x0254 (0x0004A8) 0x2929- f:00024 d: 297 | OR[297] = A
0x0255 (0x0004AA) 0x2124- f:00020 d: 292 | A = OR[292]
0x0256 (0x0004AC) 0x292A- f:00024 d: 298 | OR[298] = A
0x0257 (0x0004AE) 0x2115- f:00020 d: 277 | A = OR[277]
0x0258 (0x0004B0) 0x292B- f:00024 d: 299 | OR[299] = A
0x0259 (0x0004B2) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x025A (0x0004B4) 0x292C- f:00024 d: 300 | OR[300] = A
0x025B (0x0004B6) 0x2114- f:00020 d: 276 | A = OR[276]
0x025C (0x0004B8) 0x292D- f:00024 d: 301 | OR[301] = A
0x025D (0x0004BA) 0x1125- f:00010 d: 293 | A = 293 (0x0125)
0x025E (0x0004BC) 0x5800- f:00054 d: 0 | B = A
0x025F (0x0004BE) 0x1800-0x1B18 f:00014 d: 0 | A = 6936 (0x1B18)
0x0261 (0x0004C2) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0262 (0x0004C4) 0x0200- f:00001 d: 0 | EXIT
0x0263 (0x0004C6) 0x101D- f:00010 d: 29 | A = 29 (0x001D)
0x0264 (0x0004C8) 0x2925- f:00024 d: 293 | OR[293] = A
0x0265 (0x0004CA) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0266 (0x0004CC) 0x2926- f:00024 d: 294 | OR[294] = A
0x0267 (0x0004CE) 0x1125- f:00010 d: 293 | A = 293 (0x0125)
0x0268 (0x0004D0) 0x5800- f:00054 d: 0 | B = A
0x0269 (0x0004D2) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x026A (0x0004D4) 0x7C09- f:00076 d: 9 | R = OR[9]
0x026B (0x0004D6) 0x2006- f:00020 d: 6 | A = OR[6]
0x026C (0x0004D8) 0x140C- f:00012 d: 12 | A = A + 12 (0x000C)
0x026D (0x0004DA) 0x2908- f:00024 d: 264 | OR[264] = A
0x026E (0x0004DC) 0x3108- f:00030 d: 264 | A = (OR[264])
0x026F (0x0004DE) 0x2922- f:00024 d: 290 | OR[290] = A
0x0270 (0x0004E0) 0x2006- f:00020 d: 6 | A = OR[6]
0x0271 (0x0004E2) 0x140D- f:00012 d: 13 | A = A + 13 (0x000D)
0x0272 (0x0004E4) 0x2908- f:00024 d: 264 | OR[264] = A
0x0273 (0x0004E6) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0274 (0x0004E8) 0x2923- f:00024 d: 291 | OR[291] = A
0x0275 (0x0004EA) 0x2006- f:00020 d: 6 | A = OR[6]
0x0276 (0x0004EC) 0x140B- f:00012 d: 11 | A = A + 11 (0x000B)
0x0277 (0x0004EE) 0x2908- f:00024 d: 264 | OR[264] = A
0x0278 (0x0004F0) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0279 (0x0004F2) 0x8602- f:00103 d: 2 | P = P + 2 (0x027B), A # 0
0x027A (0x0004F4) 0x700B- f:00070 d: 11 | P = P + 11 (0x0285)
0x027B (0x0004F6) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x027C (0x0004F8) 0x2925- f:00024 d: 293 | OR[293] = A
0x027D (0x0004FA) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x027E (0x0004FC) 0x2926- f:00024 d: 294 | OR[294] = A
0x027F (0x0004FE) 0x1125- f:00010 d: 293 | A = 293 (0x0125)
0x0280 (0x000500) 0x5800- f:00054 d: 0 | B = A
0x0281 (0x000502) 0x1800-0x1B18 f:00014 d: 0 | A = 6936 (0x1B18)
0x0283 (0x000506) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0284 (0x000508) 0x7221- f:00071 d: 33 | P = P - 33 (0x0263)
0x0285 (0x00050A) 0x1027- f:00010 d: 39 | A = 39 (0x0027)
0x0286 (0x00050C) 0x2925- f:00024 d: 293 | OR[293] = A
0x0287 (0x00050E) 0x2122- f:00020 d: 290 | A = OR[290]
0x0288 (0x000510) 0x2926- f:00024 d: 294 | OR[294] = A
0x0289 (0x000512) 0x2123- f:00020 d: 291 | A = OR[291]
0x028A (0x000514) 0x2927- f:00024 d: 295 | OR[295] = A
0x028B (0x000516) 0x2102- f:00020 d: 258 | A = OR[258]
0x028C (0x000518) 0x2928- f:00024 d: 296 | OR[296] = A
0x028D (0x00051A) 0x1014- f:00010 d: 20 | A = 20 (0x0014)
0x028E (0x00051C) 0x2929- f:00024 d: 297 | OR[297] = A
0x028F (0x00051E) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0290 (0x000520) 0x292A- f:00024 d: 298 | OR[298] = A
0x0291 (0x000522) 0x1125- f:00010 d: 293 | A = 293 (0x0125)
0x0292 (0x000524) 0x5800- f:00054 d: 0 | B = A
0x0293 (0x000526) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0294 (0x000528) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0295 (0x00052A) 0x1800-0x0C98 f:00014 d: 0 | A = 3224 (0x0C98)
0x0297 (0x00052E) 0x2913- f:00024 d: 275 | OR[275] = A
0x0298 (0x000530) 0x2113- f:00020 d: 275 | A = OR[275]
0x0299 (0x000532) 0x290E- f:00024 d: 270 | OR[270] = A
0x029A (0x000534) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x029B (0x000536) 0x1418- f:00012 d: 24 | A = A + 24 (0x0018)
0x029C (0x000538) 0x290D- f:00024 d: 269 | OR[269] = A
0x029D (0x00053A) 0x210D- f:00020 d: 269 | A = OR[269]
0x029E (0x00053C) 0x8406- f:00102 d: 6 | P = P + 6 (0x02A4), A = 0
0x029F (0x00053E) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x02A0 (0x000540) 0x390E- f:00034 d: 270 | (OR[270]) = A
0x02A1 (0x000542) 0x2F0D- f:00027 d: 269 | OR[269] = OR[269] - 1
0x02A2 (0x000544) 0x2D0E- f:00026 d: 270 | OR[270] = OR[270] + 1
0x02A3 (0x000546) 0x7206- f:00071 d: 6 | P = P - 6 (0x029D)
0x02A4 (0x000548) 0x2113- f:00020 d: 275 | A = OR[275]
0x02A5 (0x00054A) 0x141C- f:00012 d: 28 | A = A + 28 (0x001C)
0x02A6 (0x00054C) 0x2908- f:00024 d: 264 | OR[264] = A
0x02A7 (0x00054E) 0x2122- f:00020 d: 290 | A = OR[290]
0x02A8 (0x000550) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x02A9 (0x000552) 0x2113- f:00020 d: 275 | A = OR[275]
0x02AA (0x000554) 0x141D- f:00012 d: 29 | A = A + 29 (0x001D)
0x02AB (0x000556) 0x2908- f:00024 d: 264 | OR[264] = A
0x02AC (0x000558) 0x2123- f:00020 d: 291 | A = OR[291]
0x02AD (0x00055A) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x02AE (0x00055C) 0x2113- f:00020 d: 275 | A = OR[275]
0x02AF (0x00055E) 0x140C- f:00012 d: 12 | A = A + 12 (0x000C)
0x02B0 (0x000560) 0x2908- f:00024 d: 264 | OR[264] = A
0x02B1 (0x000562) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x02B2 (0x000564) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x02B3 (0x000566) 0x2113- f:00020 d: 275 | A = OR[275]
0x02B4 (0x000568) 0x140A- f:00012 d: 10 | A = A + 10 (0x000A)
0x02B5 (0x00056A) 0x2908- f:00024 d: 264 | OR[264] = A
0x02B6 (0x00056C) 0x2124- f:00020 d: 292 | A = OR[292]
0x02B7 (0x00056E) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x02B8 (0x000570) 0x2113- f:00020 d: 275 | A = OR[275]
0x02B9 (0x000572) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x02BA (0x000574) 0x2908- f:00024 d: 264 | OR[264] = A
0x02BB (0x000576) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x02BC (0x000578) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x02BD (0x00057A) 0x2113- f:00020 d: 275 | A = OR[275]
0x02BE (0x00057C) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008)
0x02BF (0x00057E) 0x2908- f:00024 d: 264 | OR[264] = A
0x02C0 (0x000580) 0x3108- f:00030 d: 264 | A = (OR[264])
0x02C1 (0x000582) 0x1A00-0xFF00 f:00015 d: 0 | A = A & 65280 (0xFF00)
0x02C3 (0x000586) 0x1457- f:00012 d: 87 | A = A + 87 (0x0057)
0x02C4 (0x000588) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x02C5 (0x00058A) 0x211C- f:00020 d: 284 | A = OR[284]
0x02C6 (0x00058C) 0x12FF- f:00011 d: 255 | A = A & 255 (0x00FF)
0x02C7 (0x00058E) 0x291C- f:00024 d: 284 | OR[284] = A
0x02C8 (0x000590) 0x2113- f:00020 d: 275 | A = OR[275]
0x02C9 (0x000592) 0x1408- f:00012 d: 8 | A = A + 8 (0x0008)
0x02CA (0x000594) 0x2908- f:00024 d: 264 | OR[264] = A
0x02CB (0x000596) 0x3108- f:00030 d: 264 | A = (OR[264])
0x02CC (0x000598) 0x0A09- f:00005 d: 9 | A = A < 9 (0x0009)
0x02CD (0x00059A) 0x251C- f:00022 d: 284 | A = A + OR[284]
0x02CE (0x00059C) 0x0C09- f:00006 d: 9 | A = A >> 9 (0x0009)
0x02CF (0x00059E) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x02D0 (0x0005A0) 0x0400- f:00002 d: 0 | I = 0
0x02D1 (0x0005A2) 0x0000- f:00000 d: 0 | PASS
0x02D2 (0x0005A4) 0x2113- f:00020 d: 275 | A = OR[275]
0x02D3 (0x0005A6) 0x2896- f:00024 d: 150 | OR[150] = A
0x02D4 (0x0005A8) 0x7E00-0x19E9 f:00077 d: 0 | R = OR[0]+6633 (0x19E9)
0x02D6 (0x0005AC) 0x7E00-0x19DD f:00077 d: 0 | R = OR[0]+6621 (0x19DD)
0x02D8 (0x0005B0) 0x0600- f:00003 d: 0 | I = 1
0x02D9 (0x0005B2) 0x0200- f:00001 d: 0 | EXIT
0x02DA (0x0005B4) 0x2044- f:00020 d: 68 | A = OR[68]
0x02DB (0x0005B6) 0x4434- f:00042 d: 52 | C = 1, IOB = DN | **** non-standard encoding with D:0x0034 ****
0x02DC (0x0005B8) 0x3920- f:00034 d: 288 | (OR[288]) = A
0x02DD (0x0005BA) 0x4552- f:00042 d: 338 | C = 1, IOB = DN | **** non-standard encoding with D:0x0152 ****
0x02DE (0x0005BC) 0x524F- f:00051 d: 79 | A = A & B | **** non-standard encoding with D:0x004F ****
0x02DF (0x0005BE) 0x5220- f:00051 d: 32 | A = A & B | **** non-standard encoding with D:0x0020 ****
0x02E0 (0x0005C0) 0x4348- f:00041 d: 328 | C = 1, io 0510 = BZ
0x02E1 (0x0005C2) 0x2030- f:00020 d: 48 | A = OR[48]
0x02E2 (0x0005C4) 0x3020- f:00030 d: 32 | A = (OR[32])
0x02E3 (0x0005C6) 0x4359- f:00041 d: 345 | C = 1, io 0531 = BZ
0x02E4 (0x0005C8) 0x4C20- f:00046 d: 32 | A = A >> B | **** non-standard encoding with D:0x0020 ****
0x02E5 (0x0005CA) 0x3030- f:00030 d: 48 | A = (OR[48])
0x02E6 (0x0005CC) 0x3030- f:00030 d: 48 | A = (OR[48])
0x02E7 (0x0005CE) 0x2048- f:00020 d: 72 | A = OR[72]
0x02E8 (0x0005D0) 0x4420- f:00042 d: 32 | C = 1, IOB = DN | **** non-standard encoding with D:0x0020 ****
0x02E9 (0x0005D2) 0x3020- f:00030 d: 32 | A = (OR[32])
0x02EA (0x0005D4) 0x4354- f:00041 d: 340 | C = 1, io 0524 = BZ
0x02EB (0x0005D6) 0x4C20- f:00046 d: 32 | A = A >> B | **** non-standard encoding with D:0x0020 ****
0x02EC (0x0005D8) 0x3030- f:00030 d: 48 | A = (OR[48])
0x02ED (0x0005DA) 0x3030- f:00030 d: 48 | A = (OR[48])
0x02EE (0x0005DC) 0x3030- f:00030 d: 48 | A = (OR[48])
0x02EF (0x0005DE) 0x2047- f:00020 d: 71 | A = OR[71]
0x02F0 (0x0005E0) 0x454E- f:00042 d: 334 | C = 1, IOB = DN | **** non-standard encoding with D:0x014E ****
0x02F1 (0x0005E2) 0x2030- f:00020 d: 48 | A = OR[48]
0x02F2 (0x0005E4) 0x3030- f:00030 d: 48 | A = (OR[48])
0x02F3 (0x0005E6) 0x3030- f:00030 d: 48 | A = (OR[48])
0x02F4 (0x0005E8) 0x3020- f:00030 d: 32 | A = (OR[32])
0x02F5 (0x0005EA) 0x2020- f:00020 d: 32 | A = OR[32]
0x02F6 (0x0005EC) 0x2020- f:00020 d: 32 | A = OR[32]
0x02F7 (0x0005EE) 0x2020- f:00020 d: 32 | A = OR[32]
0x02F8 (0x0005F0) 0x0000- f:00000 d: 0 | PASS
0x02F9 (0x0005F2) 0x534C- f:00051 d: 332 | A = A & B | **** non-standard encoding with D:0x014C ****
0x02FA (0x0005F4) 0x4354- f:00041 d: 340 | C = 1, io 0524 = BZ
0x02FB (0x0005F6) 0x2020- f:00020 d: 32 | A = OR[32]
0x02FC (0x0005F8) 0x5345- f:00051 d: 325 | A = A & B | **** non-standard encoding with D:0x0145 ****
0x02FD (0x0005FA) 0x454B- f:00042 d: 331 | C = 1, IOB = DN | **** non-standard encoding with D:0x014B ****
0x02FE (0x0005FC) 0x2020- f:00020 d: 32 | A = OR[32]
0x02FF (0x0005FE) 0x5245- f:00051 d: 69 | A = A & B | **** non-standard encoding with D:0x0045 ****
0x0300 (0x000600) 0x4144- f:00040 d: 324 | C = 1, io 0504 = DN
0x0301 (0x000602) 0x2020- f:00020 d: 32 | A = OR[32]
0x0302 (0x000604) 0x5752- f:00053 d: 338 | A = A - B | **** non-standard encoding with D:0x0152 ****
0x0303 (0x000606) 0x4954- f:00044 d: 340 | A = A > B | **** non-standard encoding with D:0x0154 ****
0x0304 (0x000608) 0x4520- f:00042 d: 288 | C = 1, IOB = DN | **** non-standard encoding with D:0x0120 ****
0x0305 (0x00060A) 0x524C- f:00051 d: 76 | A = A & B | **** non-standard encoding with D:0x004C ****
0x0306 (0x00060C) 0x5345- f:00051 d: 325 | A = A & B | **** non-standard encoding with D:0x0145 ****
0x0307 (0x00060E) 0x2020- f:00020 d: 32 | A = OR[32]
0x0308 (0x000610) 0x02FF- f:00001 d: 255 | EXIT | **** non-standard encoding with D:0x00FF ****
0x0309 (0x000612) 0x0302- f:00001 d: 258 | EXIT | **** non-standard encoding with D:0x0102 ****
0x030A (0x000614) 0x0305- f:00001 d: 261 | EXIT | **** non-standard encoding with D:0x0105 ****
0x030B (0x000616) 0x0308- f:00001 d: 264 | EXIT | **** non-standard encoding with D:0x0108 ****
0x030C (0x000618) 0x030B- f:00001 d: 267 | EXIT | **** non-standard encoding with D:0x010B ****
0x030D (0x00061A) 0x0000- f:00000 d: 0 | PASS
0x030E (0x00061C) 0x0000- f:00000 d: 0 | PASS
0x030F (0x00061E) 0x0000- f:00000 d: 0 | PASS
| 81.304813 | 127 | 0.463579 |
02b98f46a5df67ae65495cf19ad0e9c5da8265cc | 133 | asm | Assembly | sw/552tests/inst_tests/xori_11.asm | JPShen-UWM/ThreadKraken | 849c510531f28e36d3469535737b2120bd774935 | [
"MIT"
] | 1 | 2022-02-15T16:03:25.000Z | 2022-02-15T16:03:25.000Z | sw/552tests/inst_tests/xori_11.asm | JPShen-UWM/ThreadKraken | 849c510531f28e36d3469535737b2120bd774935 | [
"MIT"
] | null | null | null | sw/552tests/inst_tests/xori_11.asm | JPShen-UWM/ThreadKraken | 849c510531f28e36d3469535737b2120bd774935 | [
"MIT"
] | null | null | null | // Original test: ./shojaei/hw4/problem6/xori_4.asm
// Author: shojaei
// Test source code follows
lbi r1, 255
xori r1, r1, 0
halt
| 14.777778 | 51 | 0.706767 |
bcd800ee5e0c101230d3b77ff2d92949b3200f1f | 6,238 | asm | Assembly | display.asm | polluks/scorch_src | 3839f822b1f50c6da6807c02ecb8e813ae61a3e4 | [
"Unlicense"
] | 6 | 2020-05-14T00:17:13.000Z | 2022-03-31T18:35:06.000Z | display.asm | polluks/scorch_src | 3839f822b1f50c6da6807c02ecb8e813ae61a3e4 | [
"Unlicense"
] | 26 | 2021-06-17T01:11:17.000Z | 2022-03-28T22:02:52.000Z | display.asm | polluks/scorch_src | 3839f822b1f50c6da6807c02ecb8e813ae61a3e4 | [
"Unlicense"
] | 7 | 2018-10-28T07:36:10.000Z | 2022-03-23T13:55:02.000Z | ; @com.wudsn.ide.asm.mainsourcefile=program.asm
.IF *>0 ;this is a trick that prevents compiling this file alone
;-----------------------------------------------------
;-------------display-lists---------------------------
;-----------------------------------------------------
PurchaseDL
.byte $70,$70,$20
.byte $42
.word textbuffer2
.byte $02,$10,$42
MoreUpdl
.word EmptyLine
.byte 0,$42
WeaponsListDL
.word ListOfWeapons
.byte 0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0
.byte $42
MoreDownDL
.word EmptyLine
.byte $10,$42
.word WeaponsDescription
.byte 2
.byte $41
.word PurchaseDL
;------------------------
OptionsDL
.byte $70,$70,$70,$70,$70
.byte $42
.word OptionsScreen
.byte $02,$02,$70,$02,0,$02,0,$2,0,$2
.byte $41
.word OptionsDL
;------------------------
;Enter names of tanks DL
NameDL
.byte $70,$70,$70,$70,$70
.byte $42
.word NameScreen
.byte $30
.byte $02,$30,$2
.byte $10,2,2,2,$30,2,2
.byte $41
.word NameDL
; -------------------------------------------------
dl ; MAIN game display list
.byte $70,$00
.byte $42
.word textbuffer
.byte $02 +$80 ;DLI
.byte $00
.byte $4f
.word WhiteLine
.byte $4f
.word PlotLine
.byte $4f
.word WhiteLine
.byte $4f
.word display
:100 .by $0f
.by $0f
.by $4f
.wo display+$0ff0
:97 .byte $0f
.byte $41
.word dl
; horizontal line
WhiteLine
:screenBytes .by $ff
PlotLine = display + screenHeight*screenBytes ; the last line is plot pointer
;-----------------------------------------------
;Screen displays go first to avoid crossing 4kb barrier
;-----------------------------------------------
OptionsScreen
dta d"Welcome to Scorch ver. 124 (cc)2000-2013"
dta d" Please select option with cursor keys "
dta d" and press (Return) to proceed "
OptionsHere
; 0123456789012345678901234567890123456789
dta d"Players : 2 3 4 5 6 "
dta d"Cash : none 2K 5K 8K 10K "
dta d"Gravity : 0.2G 0.5G 1G 2G 4G "
dta d"Wind : 1B 3B 5B 7B 9B "
OptionsScreenEnd
; -------------------------------------------------
NameScreen
dta d" Enter names of players "
dta d" Tank 01 Name:"
NameAdr
dta d" "
dta d" Human/Atari (difficulty level) "
dta d" "
NamesOfLevels
dta d" HUMAN Moron Shooter "
dta d" Poolshark Toosser Chooser "
dta d" Spoiler Cyborg Unknown "
dta d" "
dta d"Tab"*
dta d" - Player/Difficulty level "
dta d" "
dta d"Return"*
dta d" - Proceed "
;---------------------------------------------------
MoreUp
dta d" "
dta 92,92,92
dta d" more "
dta 92,92,92
dta d" "
MoreDown
dta d" "
dta 93,93,93
dta d" more "
dta 93,93,93
dta d" "
ListOfWeapons
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
ListOfWeapons1End
ListOfDefensiveWeapons
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
dta d" "
ListOfDefensiveWeaponsEnd ;constant useful when clearing
WeaponsDescription
dta d" "
dta d"Tab"*
dta d" - Defensive/Offensive weapon "
dta d" "
dta d"Space"*
dta d" - Purchase "
dta d"Return"*
dta d" - Finish "
EmptyLine
dta d" "
;-----------------------------------------------
textbuffer
dta d"Player: "
dta d" "
textbuffer2
dta d"Player: ******** Cash: 00000 "
dta d"----------------------------------------"
.endif
| 31.505051 | 78 | 0.306348 |
07024472650590ef48d7e3678ff450e22f1abb17 | 45,575 | asm | Assembly | tests/pong-game/asm/Ball.asm | DimitarYordanov17/jack-compiler | 166f034a5405552842a90a39059bd0fa69b2d991 | [
"MIT"
] | 5 | 2021-05-03T19:13:43.000Z | 2021-05-24T07:07:42.000Z | tests/pong-game/asm/Ball.asm | DimitarYordanov17/jack-compiler | 166f034a5405552842a90a39059bd0fa69b2d991 | [
"MIT"
] | null | null | null | tests/pong-game/asm/Ball.asm | DimitarYordanov17/jack-compiler | 166f034a5405552842a90a39059bd0fa69b2d991 | [
"MIT"
] | null | null | null | // function Ball.new 0
(Ball.new)
// push constant 15
@15
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Memory.alloc 1
@Ball:Memory.alloc:12:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@1
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Memory.alloc
0;JMP
(Ball:Memory.alloc:12:RETURN)
// pop pointer 0
@THIS
D=A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push argument 0
@ARG
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop this 0
@THIS
D=M
@0
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push argument 1
@ARG
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop this 1
@THIS
D=M
@1
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push argument 2
@ARG
D=M
@2
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop this 10
@THIS
D=M
@10
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push argument 3
@ARG
D=M
@3
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 6
@6
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// sub
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@SP
A=M
M=D
@SP
M=M+1
// pop this 11
@THIS
D=M
@11
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push argument 4
@ARG
D=M
@4
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop this 12
@THIS
D=M
@12
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push argument 5
@ARG
D=M
@5
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 6
@6
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// sub
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@SP
A=M
M=D
@SP
M=M+1
// pop this 13
@THIS
D=M
@13
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push constant 0
@0
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop this 14
@THIS
D=M
@14
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push pointer 0
@THIS
D=A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Ball.show 1
@Ball:Ball.show:347:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@1
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Ball.show
0;JMP
(Ball:Ball.show:347:RETURN)
// pop temp 0
@5
D=A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push pointer 0
@THIS
D=A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// return
@LCL
D=M
@R13
M=D
@R13
D=M
@5
D=D-A
A=D
D=M
@R14
M=D
@SP
M=M-1
@SP
A=M
D=M
@ARG
A=M
M=D
@ARG
D=M+1
@SP
M=D
@R13
D=M
@1
D=D-A
A=D
D=M
@THAT
M=D
@R13
D=M
@2
D=D-A
A=D
D=M
@THIS
M=D
@R13
D=M
@3
D=D-A
A=D
D=M
@ARG
M=D
@R13
D=M
@4
D=D-A
A=D
D=M
@LCL
M=D
@R14
A=M
0;JMP
// function Ball.dispose 0
(Ball.dispose)
// push argument 0
@ARG
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop pointer 0
@THIS
D=A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push pointer 0
@THIS
D=A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Memory.deAlloc 1
@Ball:Memory.deAlloc:535:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@1
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Memory.deAlloc
0;JMP
(Ball:Memory.deAlloc:535:RETURN)
// pop temp 0
@5
D=A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push constant 0
@0
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// return
@LCL
D=M
@R13
M=D
@R13
D=M
@5
D=D-A
A=D
D=M
@R14
M=D
@SP
M=M-1
@SP
A=M
D=M
@ARG
A=M
M=D
@ARG
D=M+1
@SP
M=D
@R13
D=M
@1
D=D-A
A=D
D=M
@THAT
M=D
@R13
D=M
@2
D=D-A
A=D
D=M
@THIS
M=D
@R13
D=M
@3
D=D-A
A=D
D=M
@ARG
M=D
@R13
D=M
@4
D=D-A
A=D
D=M
@LCL
M=D
@R14
A=M
0;JMP
// function Ball.show 0
(Ball.show)
// push argument 0
@ARG
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop pointer 0
@THIS
D=A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push constant 1
@1
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// neg
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=-D
@SP
M=M+1
// call Screen.setColor 1
@Ball:Screen.setColor:731:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@1
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Screen.setColor
0;JMP
(Ball:Screen.setColor:731:RETURN)
// pop temp 0
@5
D=A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push pointer 0
@THIS
D=A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Ball.draw 1
@Ball:Ball.draw:821:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@1
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Ball.draw
0;JMP
(Ball:Ball.draw:821:RETURN)
// pop temp 0
@5
D=A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push constant 0
@0
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// return
@LCL
D=M
@R13
M=D
@R13
D=M
@5
D=D-A
A=D
D=M
@R14
M=D
@SP
M=M-1
@SP
A=M
D=M
@ARG
A=M
M=D
@ARG
D=M+1
@SP
M=D
@R13
D=M
@1
D=D-A
A=D
D=M
@THAT
M=D
@R13
D=M
@2
D=D-A
A=D
D=M
@THIS
M=D
@R13
D=M
@3
D=D-A
A=D
D=M
@ARG
M=D
@R13
D=M
@4
D=D-A
A=D
D=M
@LCL
M=D
@R14
A=M
0;JMP
// function Ball.hide 0
(Ball.hide)
// push argument 0
@ARG
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop pointer 0
@THIS
D=A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push constant 0
@0
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Screen.setColor 1
@Ball:Screen.setColor:1007:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@1
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Screen.setColor
0;JMP
(Ball:Screen.setColor:1007:RETURN)
// pop temp 0
@5
D=A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push pointer 0
@THIS
D=A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Ball.draw 1
@Ball:Ball.draw:1097:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@1
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Ball.draw
0;JMP
(Ball:Ball.draw:1097:RETURN)
// pop temp 0
@5
D=A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push constant 0
@0
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// return
@LCL
D=M
@R13
M=D
@R13
D=M
@5
D=D-A
A=D
D=M
@R14
M=D
@SP
M=M-1
@SP
A=M
D=M
@ARG
A=M
M=D
@ARG
D=M+1
@SP
M=D
@R13
D=M
@1
D=D-A
A=D
D=M
@THAT
M=D
@R13
D=M
@2
D=D-A
A=D
D=M
@THIS
M=D
@R13
D=M
@3
D=D-A
A=D
D=M
@ARG
M=D
@R13
D=M
@4
D=D-A
A=D
D=M
@LCL
M=D
@R14
A=M
0;JMP
// function Ball.draw 0
(Ball.draw)
// push argument 0
@ARG
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop pointer 0
@THIS
D=A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push this 0
@THIS
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push this 1
@THIS
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push this 0
@THIS
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 5
@5
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// add
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M+D
@SP
A=M
M=D
@SP
M=M+1
// push this 1
@THIS
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 5
@5
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// add
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M+D
@SP
A=M
M=D
@SP
M=M+1
// call Screen.drawRectangle 4
@Ball:Screen.drawRectangle:1380:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@4
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Screen.drawRectangle
0;JMP
(Ball:Screen.drawRectangle:1380:RETURN)
// pop temp 0
@5
D=A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push constant 0
@0
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// return
@LCL
D=M
@R13
M=D
@R13
D=M
@5
D=D-A
A=D
D=M
@R14
M=D
@SP
M=M-1
@SP
A=M
D=M
@ARG
A=M
M=D
@ARG
D=M+1
@SP
M=D
@R13
D=M
@1
D=D-A
A=D
D=M
@THAT
M=D
@R13
D=M
@2
D=D-A
A=D
D=M
@THIS
M=D
@R13
D=M
@3
D=D-A
A=D
D=M
@ARG
M=D
@R13
D=M
@4
D=D-A
A=D
D=M
@LCL
M=D
@R14
A=M
0;JMP
// function Ball.getLeft 0
(Ball.getLeft)
// push argument 0
@ARG
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop pointer 0
@THIS
D=A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push this 0
@THIS
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// return
@LCL
D=M
@R13
M=D
@R13
D=M
@5
D=D-A
A=D
D=M
@R14
M=D
@SP
M=M-1
@SP
A=M
D=M
@ARG
A=M
M=D
@ARG
D=M+1
@SP
M=D
@R13
D=M
@1
D=D-A
A=D
D=M
@THAT
M=D
@R13
D=M
@2
D=D-A
A=D
D=M
@THIS
M=D
@R13
D=M
@3
D=D-A
A=D
D=M
@ARG
M=D
@R13
D=M
@4
D=D-A
A=D
D=M
@LCL
M=D
@R14
A=M
0;JMP
// function Ball.getRight 0
(Ball.getRight)
// push argument 0
@ARG
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop pointer 0
@THIS
D=A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push this 0
@THIS
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 5
@5
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// add
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M+D
@SP
A=M
M=D
@SP
M=M+1
// return
@LCL
D=M
@R13
M=D
@R13
D=M
@5
D=D-A
A=D
D=M
@R14
M=D
@SP
M=M-1
@SP
A=M
D=M
@ARG
A=M
M=D
@ARG
D=M+1
@SP
M=D
@R13
D=M
@1
D=D-A
A=D
D=M
@THAT
M=D
@R13
D=M
@2
D=D-A
A=D
D=M
@THIS
M=D
@R13
D=M
@3
D=D-A
A=D
D=M
@ARG
M=D
@R13
D=M
@4
D=D-A
A=D
D=M
@LCL
M=D
@R14
A=M
0;JMP
// function Ball.setDestination 3
(Ball.setDestination)
@0
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@0
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@0
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// push argument 0
@ARG
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop pointer 0
@THIS
D=A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push argument 1
@ARG
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push this 0
@THIS
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// sub
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@SP
A=M
M=D
@SP
M=M+1
// pop this 2
@THIS
D=M
@2
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push argument 2
@ARG
D=M
@2
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push this 1
@THIS
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// sub
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@SP
A=M
M=D
@SP
M=M+1
// pop this 3
@THIS
D=M
@3
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push this 2
@THIS
D=M
@2
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Math.abs 1
@Ball:Math.abs:1942:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@1
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Math.abs
0;JMP
(Ball:Math.abs:1942:RETURN)
// pop local 0
@LCL
D=M
@0
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push this 3
@THIS
D=M
@3
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Math.abs 1
@Ball:Math.abs:2036:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@1
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Math.abs
0;JMP
(Ball:Math.abs:2036:RETURN)
// pop local 1
@LCL
D=M
@1
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push local 0
@LCL
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push local 1
@LCL
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// lt
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@Ball::2161:WRITENONE
D;JLT
@SP
A=M
M=0
@Ball::2164:INCREMENTSP
0;JMP
(Ball::2161:WRITENONE)
@SP
A=M
M=-1
(Ball::2164:INCREMENTSP)
@SP
M=M+1
// pop this 7
@THIS
D=M
@7
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push this 7
@THIS
D=M
@7
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// not
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=!D
@SP
M=M+1
// if-goto setDestination:ifStatement:27:EXECUTE_SECOND_STATEMENT
@SP
M=M-1
@SP
A=M
D=M
@setDestination:ifStatement:27:EXECUTE_SECOND_STATEMENT
D;JNE
// push local 0
@LCL
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop local 2
@LCL
D=M
@2
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push local 1
@LCL
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop local 0
@LCL
D=M
@0
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push local 2
@LCL
D=M
@2
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop local 1
@LCL
D=M
@1
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push this 1
@THIS
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push argument 2
@ARG
D=M
@2
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// lt
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@Ball::2342:WRITENONE
D;JLT
@SP
A=M
M=0
@Ball::2345:INCREMENTSP
0;JMP
(Ball::2342:WRITENONE)
@SP
A=M
M=-1
(Ball::2345:INCREMENTSP)
@SP
M=M+1
// pop this 8
@THIS
D=M
@8
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push this 0
@THIS
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push argument 1
@ARG
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// lt
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@Ball::2408:WRITENONE
D;JLT
@SP
A=M
M=0
@Ball::2411:INCREMENTSP
0;JMP
(Ball::2408:WRITENONE)
@SP
A=M
M=-1
(Ball::2411:INCREMENTSP)
@SP
M=M+1
// pop this 9
@THIS
D=M
@9
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// goto setDestination:ifStatement:27:END
@setDestination:ifStatement:27:END
0;JMP
// label setDestination:ifStatement:27:EXECUTE_SECOND_STATEMENT
(setDestination:ifStatement:27:EXECUTE_SECOND_STATEMENT)
// push this 0
@THIS
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push argument 1
@ARG
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// lt
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@Ball::2477:WRITENONE
D;JLT
@SP
A=M
M=0
@Ball::2480:INCREMENTSP
0;JMP
(Ball::2477:WRITENONE)
@SP
A=M
M=-1
(Ball::2480:INCREMENTSP)
@SP
M=M+1
// pop this 8
@THIS
D=M
@8
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push this 1
@THIS
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push argument 2
@ARG
D=M
@2
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// lt
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@Ball::2543:WRITENONE
D;JLT
@SP
A=M
M=0
@Ball::2546:INCREMENTSP
0;JMP
(Ball::2543:WRITENONE)
@SP
A=M
M=-1
(Ball::2546:INCREMENTSP)
@SP
M=M+1
// pop this 9
@THIS
D=M
@9
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// label setDestination:ifStatement:27:END
(setDestination:ifStatement:27:END)
// push constant 2
@2
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// push local 1
@LCL
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Math.multiply 2
@Ball:Math.multiply:2590:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@2
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Math.multiply
0;JMP
(Ball:Math.multiply:2590:RETURN)
// push local 0
@LCL
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// sub
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@SP
A=M
M=D
@SP
M=M+1
// pop this 4
@THIS
D=M
@4
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push constant 2
@2
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// push local 1
@LCL
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Math.multiply 2
@Ball:Math.multiply:2724:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@2
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Math.multiply
0;JMP
(Ball:Math.multiply:2724:RETURN)
// pop this 5
@THIS
D=M
@5
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push constant 2
@2
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// push local 1
@LCL
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push local 0
@LCL
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// sub
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@SP
A=M
M=D
@SP
M=M+1
// call Math.multiply 2
@Ball:Math.multiply:2858:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@2
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Math.multiply
0;JMP
(Ball:Math.multiply:2858:RETURN)
// pop this 6
@THIS
D=M
@6
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push constant 0
@0
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// return
@LCL
D=M
@R13
M=D
@R13
D=M
@5
D=D-A
A=D
D=M
@R14
M=D
@SP
M=M-1
@SP
A=M
D=M
@ARG
A=M
M=D
@ARG
D=M+1
@SP
M=D
@R13
D=M
@1
D=D-A
A=D
D=M
@THAT
M=D
@R13
D=M
@2
D=D-A
A=D
D=M
@THIS
M=D
@R13
D=M
@3
D=D-A
A=D
D=M
@ARG
M=D
@R13
D=M
@4
D=D-A
A=D
D=M
@LCL
M=D
@R14
A=M
0;JMP
// function Ball.move 0
(Ball.move)
// push argument 0
@ARG
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop pointer 0
@THIS
D=A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push pointer 0
@THIS
D=A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Ball.hide 1
@Ball:Ball.hide:3047:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@1
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Ball.hide
0;JMP
(Ball:Ball.hide:3047:RETURN)
// pop temp 0
@5
D=A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push this 4
@THIS
D=M
@4
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 0
@0
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// lt
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@Ball::3167:WRITENONE
D;JLT
@SP
A=M
M=0
@Ball::3170:INCREMENTSP
0;JMP
(Ball::3167:WRITENONE)
@SP
A=M
M=-1
(Ball::3170:INCREMENTSP)
@SP
M=M+1
// not
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=!D
@SP
M=M+1
// if-goto move:ifStatement:40:EXECUTE_SECOND_STATEMENT
@SP
M=M-1
@SP
A=M
D=M
@move:ifStatement:40:EXECUTE_SECOND_STATEMENT
D;JNE
// push this 4
@THIS
D=M
@4
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push this 5
@THIS
D=M
@5
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// add
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M+D
@SP
A=M
M=D
@SP
M=M+1
// pop this 4
@THIS
D=M
@4
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// goto move:ifStatement:40:END
@move:ifStatement:40:END
0;JMP
// label move:ifStatement:40:EXECUTE_SECOND_STATEMENT
(move:ifStatement:40:EXECUTE_SECOND_STATEMENT)
// push this 4
@THIS
D=M
@4
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push this 6
@THIS
D=M
@6
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// add
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M+D
@SP
A=M
M=D
@SP
M=M+1
// pop this 4
@THIS
D=M
@4
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push this 9
@THIS
D=M
@9
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// not
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=!D
@SP
M=M+1
// if-goto move:ifStatement:43:EXECUTE_SECOND_STATEMENT
@SP
M=M-1
@SP
A=M
D=M
@move:ifStatement:43:EXECUTE_SECOND_STATEMENT
D;JNE
// push this 7
@THIS
D=M
@7
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// not
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=!D
@SP
M=M+1
// if-goto move:ifStatement:44:EXECUTE_SECOND_STATEMENT
@SP
M=M-1
@SP
A=M
D=M
@move:ifStatement:44:EXECUTE_SECOND_STATEMENT
D;JNE
// push this 0
@THIS
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 4
@4
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// add
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M+D
@SP
A=M
M=D
@SP
M=M+1
// pop this 0
@THIS
D=M
@0
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// goto move:ifStatement:44:END
@move:ifStatement:44:END
0;JMP
// label move:ifStatement:44:EXECUTE_SECOND_STATEMENT
(move:ifStatement:44:EXECUTE_SECOND_STATEMENT)
// push this 1
@THIS
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 4
@4
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// add
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M+D
@SP
A=M
M=D
@SP
M=M+1
// pop this 1
@THIS
D=M
@1
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// label move:ifStatement:44:END
(move:ifStatement:44:END)
// goto move:ifStatement:43:END
@move:ifStatement:43:END
0;JMP
// label move:ifStatement:43:EXECUTE_SECOND_STATEMENT
(move:ifStatement:43:EXECUTE_SECOND_STATEMENT)
// push this 7
@THIS
D=M
@7
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// not
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=!D
@SP
M=M+1
// if-goto move:ifStatement:47:EXECUTE_SECOND_STATEMENT
@SP
M=M-1
@SP
A=M
D=M
@move:ifStatement:47:EXECUTE_SECOND_STATEMENT
D;JNE
// push this 0
@THIS
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 4
@4
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// sub
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@SP
A=M
M=D
@SP
M=M+1
// pop this 0
@THIS
D=M
@0
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// goto move:ifStatement:47:END
@move:ifStatement:47:END
0;JMP
// label move:ifStatement:47:EXECUTE_SECOND_STATEMENT
(move:ifStatement:47:EXECUTE_SECOND_STATEMENT)
// push this 1
@THIS
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 4
@4
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// sub
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@SP
A=M
M=D
@SP
M=M+1
// pop this 1
@THIS
D=M
@1
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// label move:ifStatement:47:END
(move:ifStatement:47:END)
// label move:ifStatement:43:END
(move:ifStatement:43:END)
// label move:ifStatement:40:END
(move:ifStatement:40:END)
// push this 8
@THIS
D=M
@8
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// not
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=!D
@SP
M=M+1
// if-goto move:ifStatement:50:EXECUTE_SECOND_STATEMENT
@SP
M=M-1
@SP
A=M
D=M
@move:ifStatement:50:EXECUTE_SECOND_STATEMENT
D;JNE
// push this 7
@THIS
D=M
@7
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// not
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=!D
@SP
M=M+1
// if-goto move:ifStatement:51:EXECUTE_SECOND_STATEMENT
@SP
M=M-1
@SP
A=M
D=M
@move:ifStatement:51:EXECUTE_SECOND_STATEMENT
D;JNE
// push this 1
@THIS
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 4
@4
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// add
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M+D
@SP
A=M
M=D
@SP
M=M+1
// pop this 1
@THIS
D=M
@1
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// goto move:ifStatement:51:END
@move:ifStatement:51:END
0;JMP
// label move:ifStatement:51:EXECUTE_SECOND_STATEMENT
(move:ifStatement:51:EXECUTE_SECOND_STATEMENT)
// push this 0
@THIS
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 4
@4
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// add
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M+D
@SP
A=M
M=D
@SP
M=M+1
// pop this 0
@THIS
D=M
@0
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// label move:ifStatement:51:END
(move:ifStatement:51:END)
// goto move:ifStatement:50:END
@move:ifStatement:50:END
0;JMP
// label move:ifStatement:50:EXECUTE_SECOND_STATEMENT
(move:ifStatement:50:EXECUTE_SECOND_STATEMENT)
// push this 7
@THIS
D=M
@7
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// not
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=!D
@SP
M=M+1
// if-goto move:ifStatement:54:EXECUTE_SECOND_STATEMENT
@SP
M=M-1
@SP
A=M
D=M
@move:ifStatement:54:EXECUTE_SECOND_STATEMENT
D;JNE
// push this 1
@THIS
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 4
@4
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// sub
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@SP
A=M
M=D
@SP
M=M+1
// pop this 1
@THIS
D=M
@1
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// goto move:ifStatement:54:END
@move:ifStatement:54:END
0;JMP
// label move:ifStatement:54:EXECUTE_SECOND_STATEMENT
(move:ifStatement:54:EXECUTE_SECOND_STATEMENT)
// push this 0
@THIS
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 4
@4
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// sub
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@SP
A=M
M=D
@SP
M=M+1
// pop this 0
@THIS
D=M
@0
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// label move:ifStatement:54:END
(move:ifStatement:54:END)
// label move:ifStatement:50:END
(move:ifStatement:50:END)
// push this 0
@THIS
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push this 10
@THIS
D=M
@10
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// gt
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@Ball::3996:WRITENONE
D;JGT
@SP
A=M
M=0
@Ball::3999:INCREMENTSP
0;JMP
(Ball::3996:WRITENONE)
@SP
A=M
M=-1
(Ball::3999:INCREMENTSP)
@SP
M=M+1
// not
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=!D
@SP
M=M+1
// not
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=!D
@SP
M=M+1
// if-goto move:ifStatement:57:END
@SP
M=M-1
@SP
A=M
D=M
@move:ifStatement:57:END
D;JNE
// push constant 1
@1
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop this 14
@THIS
D=M
@14
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push this 10
@THIS
D=M
@10
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop this 0
@THIS
D=M
@0
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// label move:ifStatement:57:END
(move:ifStatement:57:END)
// push this 0
@THIS
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push this 11
@THIS
D=M
@11
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// lt
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@Ball::4129:WRITENONE
D;JLT
@SP
A=M
M=0
@Ball::4132:INCREMENTSP
0;JMP
(Ball::4129:WRITENONE)
@SP
A=M
M=-1
(Ball::4132:INCREMENTSP)
@SP
M=M+1
// not
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=!D
@SP
M=M+1
// not
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=!D
@SP
M=M+1
// if-goto move:ifStatement:60:END
@SP
M=M-1
@SP
A=M
D=M
@move:ifStatement:60:END
D;JNE
// push constant 2
@2
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop this 14
@THIS
D=M
@14
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push this 11
@THIS
D=M
@11
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop this 0
@THIS
D=M
@0
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// label move:ifStatement:60:END
(move:ifStatement:60:END)
// push this 1
@THIS
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push this 12
@THIS
D=M
@12
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// gt
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@Ball::4262:WRITENONE
D;JGT
@SP
A=M
M=0
@Ball::4265:INCREMENTSP
0;JMP
(Ball::4262:WRITENONE)
@SP
A=M
M=-1
(Ball::4265:INCREMENTSP)
@SP
M=M+1
// not
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=!D
@SP
M=M+1
// not
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=!D
@SP
M=M+1
// if-goto move:ifStatement:63:END
@SP
M=M-1
@SP
A=M
D=M
@move:ifStatement:63:END
D;JNE
// push constant 3
@3
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop this 14
@THIS
D=M
@14
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push this 12
@THIS
D=M
@12
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop this 1
@THIS
D=M
@1
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// label move:ifStatement:63:END
(move:ifStatement:63:END)
// push this 1
@THIS
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push this 13
@THIS
D=M
@13
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// lt
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@Ball::4395:WRITENONE
D;JLT
@SP
A=M
M=0
@Ball::4398:INCREMENTSP
0;JMP
(Ball::4395:WRITENONE)
@SP
A=M
M=-1
(Ball::4398:INCREMENTSP)
@SP
M=M+1
// not
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=!D
@SP
M=M+1
// not
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=!D
@SP
M=M+1
// if-goto move:ifStatement:66:END
@SP
M=M-1
@SP
A=M
D=M
@move:ifStatement:66:END
D;JNE
// push constant 4
@4
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop this 14
@THIS
D=M
@14
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push this 13
@THIS
D=M
@13
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop this 1
@THIS
D=M
@1
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// label move:ifStatement:66:END
(move:ifStatement:66:END)
// push pointer 0
@THIS
D=A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Ball.show 1
@Ball:Ball.show:4495:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@1
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Ball.show
0;JMP
(Ball:Ball.show:4495:RETURN)
// pop temp 0
@5
D=A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push this 14
@THIS
D=M
@14
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// return
@LCL
D=M
@R13
M=D
@R13
D=M
@5
D=D-A
A=D
D=M
@R14
M=D
@SP
M=M-1
@SP
A=M
D=M
@ARG
A=M
M=D
@ARG
D=M+1
@SP
M=D
@R13
D=M
@1
D=D-A
A=D
D=M
@THAT
M=D
@R13
D=M
@2
D=D-A
A=D
D=M
@THIS
M=D
@R13
D=M
@3
D=D-A
A=D
D=M
@ARG
M=D
@R13
D=M
@4
D=D-A
A=D
D=M
@LCL
M=D
@R14
A=M
0;JMP
// function Ball.bounce 5
(Ball.bounce)
@0
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@0
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@0
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@0
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@0
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// push argument 0
@ARG
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop pointer 0
@THIS
D=A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push this 2
@THIS
D=M
@2
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 10
@10
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Math.divide 2
@Ball:Math.divide:4753:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@2
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Math.divide
0;JMP
(Ball:Math.divide:4753:RETURN)
// pop local 2
@LCL
D=M
@2
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push this 3
@THIS
D=M
@3
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 10
@10
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Math.divide 2
@Ball:Math.divide:4858:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@2
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Math.divide
0;JMP
(Ball:Math.divide:4858:RETURN)
// pop local 3
@LCL
D=M
@3
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push argument 1
@ARG
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 0
@0
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// eq
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@Ball::4980:WRITENONE
D;JEQ
@SP
A=M
M=0
@Ball::4983:INCREMENTSP
0;JMP
(Ball::4980:WRITENONE)
@SP
A=M
M=-1
(Ball::4983:INCREMENTSP)
@SP
M=M+1
// not
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=!D
@SP
M=M+1
// if-goto bounce:ifStatement:73:EXECUTE_SECOND_STATEMENT
@SP
M=M-1
@SP
A=M
D=M
@bounce:ifStatement:73:EXECUTE_SECOND_STATEMENT
D;JNE
// push constant 10
@10
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop local 4
@LCL
D=M
@4
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// goto bounce:ifStatement:73:END
@bounce:ifStatement:73:END
0;JMP
// label bounce:ifStatement:73:EXECUTE_SECOND_STATEMENT
(bounce:ifStatement:73:EXECUTE_SECOND_STATEMENT)
// push this 2
@THIS
D=M
@2
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 0
@0
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// lt
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@Ball::5074:WRITENONE
D;JLT
@SP
A=M
M=0
@Ball::5077:INCREMENTSP
0;JMP
(Ball::5074:WRITENONE)
@SP
A=M
M=-1
(Ball::5077:INCREMENTSP)
@SP
M=M+1
// not
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=!D
@SP
M=M+1
// push argument 1
@ARG
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 1
@1
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// eq
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@Ball::5133:WRITENONE
D;JEQ
@SP
A=M
M=0
@Ball::5136:INCREMENTSP
0;JMP
(Ball::5133:WRITENONE)
@SP
A=M
M=-1
(Ball::5136:INCREMENTSP)
@SP
M=M+1
// and
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M&D
@SP
A=M
M=D
@SP
M=M+1
// push this 2
@THIS
D=M
@2
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 0
@0
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// lt
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@Ball::5197:WRITENONE
D;JLT
@SP
A=M
M=0
@Ball::5200:INCREMENTSP
0;JMP
(Ball::5197:WRITENONE)
@SP
A=M
M=-1
(Ball::5200:INCREMENTSP)
@SP
M=M+1
// push argument 1
@ARG
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 1
@1
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// neg
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=-D
@SP
M=M+1
// eq
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@Ball::5256:WRITENONE
D;JEQ
@SP
A=M
M=0
@Ball::5259:INCREMENTSP
0;JMP
(Ball::5256:WRITENONE)
@SP
A=M
M=-1
(Ball::5259:INCREMENTSP)
@SP
M=M+1
// and
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M&D
@SP
A=M
M=D
@SP
M=M+1
// or
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M|D
@SP
A=M
M=D
@SP
M=M+1
// not
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=!D
@SP
M=M+1
// if-goto bounce:ifStatement:75:EXECUTE_SECOND_STATEMENT
@SP
M=M-1
@SP
A=M
D=M
@bounce:ifStatement:75:EXECUTE_SECOND_STATEMENT
D;JNE
// push constant 20
@20
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop local 4
@LCL
D=M
@4
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// goto bounce:ifStatement:75:END
@bounce:ifStatement:75:END
0;JMP
// label bounce:ifStatement:75:EXECUTE_SECOND_STATEMENT
(bounce:ifStatement:75:EXECUTE_SECOND_STATEMENT)
// push constant 5
@5
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop local 4
@LCL
D=M
@4
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// label bounce:ifStatement:75:END
(bounce:ifStatement:75:END)
// label bounce:ifStatement:73:END
(bounce:ifStatement:73:END)
// push this 14
@THIS
D=M
@14
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 1
@1
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// eq
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@Ball::5407:WRITENONE
D;JEQ
@SP
A=M
M=0
@Ball::5410:INCREMENTSP
0;JMP
(Ball::5407:WRITENONE)
@SP
A=M
M=-1
(Ball::5410:INCREMENTSP)
@SP
M=M+1
// not
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=!D
@SP
M=M+1
// if-goto bounce:ifStatement:78:EXECUTE_SECOND_STATEMENT
@SP
M=M-1
@SP
A=M
D=M
@bounce:ifStatement:78:EXECUTE_SECOND_STATEMENT
D;JNE
// push constant 506
@506
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop local 0
@LCL
D=M
@0
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push local 3
@LCL
D=M
@3
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 50
@50
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// neg
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=-D
@SP
M=M+1
// call Math.multiply 2
@Ball:Math.multiply:5491:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@2
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Math.multiply
0;JMP
(Ball:Math.multiply:5491:RETURN)
// push local 2
@LCL
D=M
@2
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Math.divide 2
@Ball:Math.divide:5571:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@2
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Math.divide
0;JMP
(Ball:Math.divide:5571:RETURN)
// pop local 1
@LCL
D=M
@1
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push this 1
@THIS
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push local 1
@LCL
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push local 4
@LCL
D=M
@4
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Math.multiply 2
@Ball:Math.multiply:5693:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@2
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Math.multiply
0;JMP
(Ball:Math.multiply:5693:RETURN)
// add
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M+D
@SP
A=M
M=D
@SP
M=M+1
// pop local 1
@LCL
D=M
@1
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// goto bounce:ifStatement:78:END
@bounce:ifStatement:78:END
0;JMP
// label bounce:ifStatement:78:EXECUTE_SECOND_STATEMENT
(bounce:ifStatement:78:EXECUTE_SECOND_STATEMENT)
// push this 14
@THIS
D=M
@14
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 2
@2
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// eq
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@Ball::5833:WRITENONE
D;JEQ
@SP
A=M
M=0
@Ball::5836:INCREMENTSP
0;JMP
(Ball::5833:WRITENONE)
@SP
A=M
M=-1
(Ball::5836:INCREMENTSP)
@SP
M=M+1
// not
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=!D
@SP
M=M+1
// if-goto bounce:ifStatement:82:EXECUTE_SECOND_STATEMENT
@SP
M=M-1
@SP
A=M
D=M
@bounce:ifStatement:82:EXECUTE_SECOND_STATEMENT
D;JNE
// push constant 0
@0
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop local 0
@LCL
D=M
@0
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push local 3
@LCL
D=M
@3
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 50
@50
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Math.multiply 2
@Ball:Math.multiply:5907:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@2
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Math.multiply
0;JMP
(Ball:Math.multiply:5907:RETURN)
// push local 2
@LCL
D=M
@2
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Math.divide 2
@Ball:Math.divide:5987:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@2
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Math.divide
0;JMP
(Ball:Math.divide:5987:RETURN)
// pop local 1
@LCL
D=M
@1
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push this 1
@THIS
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push local 1
@LCL
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push local 4
@LCL
D=M
@4
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Math.multiply 2
@Ball:Math.multiply:6109:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@2
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Math.multiply
0;JMP
(Ball:Math.multiply:6109:RETURN)
// add
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M+D
@SP
A=M
M=D
@SP
M=M+1
// pop local 1
@LCL
D=M
@1
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// goto bounce:ifStatement:82:END
@bounce:ifStatement:82:END
0;JMP
// label bounce:ifStatement:82:EXECUTE_SECOND_STATEMENT
(bounce:ifStatement:82:EXECUTE_SECOND_STATEMENT)
// push this 14
@THIS
D=M
@14
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 3
@3
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// eq
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M-D
@Ball::6249:WRITENONE
D;JEQ
@SP
A=M
M=0
@Ball::6252:INCREMENTSP
0;JMP
(Ball::6249:WRITENONE)
@SP
A=M
M=-1
(Ball::6252:INCREMENTSP)
@SP
M=M+1
// not
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=!D
@SP
M=M+1
// if-goto bounce:ifStatement:86:EXECUTE_SECOND_STATEMENT
@SP
M=M-1
@SP
A=M
D=M
@bounce:ifStatement:86:EXECUTE_SECOND_STATEMENT
D;JNE
// push constant 250
@250
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop local 1
@LCL
D=M
@1
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push local 2
@LCL
D=M
@2
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 25
@25
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// neg
@SP
M=M-1
@SP
A=M
D=M
@SP
A=M
M=-D
@SP
M=M+1
// call Math.multiply 2
@Ball:Math.multiply:6333:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@2
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Math.multiply
0;JMP
(Ball:Math.multiply:6333:RETURN)
// push local 3
@LCL
D=M
@3
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Math.divide 2
@Ball:Math.divide:6413:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@2
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Math.divide
0;JMP
(Ball:Math.divide:6413:RETURN)
// pop local 0
@LCL
D=M
@0
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push this 0
@THIS
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push local 0
@LCL
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push local 4
@LCL
D=M
@4
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Math.multiply 2
@Ball:Math.multiply:6535:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@2
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Math.multiply
0;JMP
(Ball:Math.multiply:6535:RETURN)
// add
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M+D
@SP
A=M
M=D
@SP
M=M+1
// pop local 0
@LCL
D=M
@0
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// goto bounce:ifStatement:86:END
@bounce:ifStatement:86:END
0;JMP
// label bounce:ifStatement:86:EXECUTE_SECOND_STATEMENT
(bounce:ifStatement:86:EXECUTE_SECOND_STATEMENT)
// push constant 0
@0
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop local 1
@LCL
D=M
@1
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push local 2
@LCL
D=M
@2
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 25
@25
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Math.multiply 2
@Ball:Math.multiply:6683:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@2
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Math.multiply
0;JMP
(Ball:Math.multiply:6683:RETURN)
// push local 3
@LCL
D=M
@3
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Math.divide 2
@Ball:Math.divide:6763:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@2
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Math.divide
0;JMP
(Ball:Math.divide:6763:RETURN)
// pop local 0
@LCL
D=M
@0
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push this 0
@THIS
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push local 0
@LCL
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push local 4
@LCL
D=M
@4
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Math.multiply 2
@Ball:Math.multiply:6885:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@2
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Math.multiply
0;JMP
(Ball:Math.multiply:6885:RETURN)
// add
@SP
M=M-1
@SP
A=M
D=M
@SP
M=M-1
@SP
A=M
D=M+D
@SP
A=M
M=D
@SP
M=M+1
// pop local 0
@LCL
D=M
@0
D=D+A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// label bounce:ifStatement:86:END
(bounce:ifStatement:86:END)
// label bounce:ifStatement:82:END
(bounce:ifStatement:82:END)
// label bounce:ifStatement:78:END
(bounce:ifStatement:78:END)
// push pointer 0
@THIS
D=A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push local 0
@LCL
D=M
@0
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// push local 1
@LCL
D=M
@1
D=D+A
@R13
M=D
@R13
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
// call Ball.setDestination 3
@Ball:Ball.setDestination:7023:RETURN
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
D=M
@5
D=D-A
@3
D=D-A
@ARG
M=D
@SP
D=M
@LCL
M=D
@Ball.setDestination
0;JMP
(Ball:Ball.setDestination:7023:RETURN)
// pop temp 0
@5
D=A
@R13
M=D
@SP
M=M-1
@SP
A=M
D=M
@R13
A=M
M=D
// push constant 0
@0
D=A
@R13
M=D
@R13
D=M
@SP
A=M
M=D
@SP
M=M+1
// return
@LCL
D=M
@R13
M=D
@R13
D=M
@5
D=D-A
A=D
D=M
@R14
M=D
@SP
M=M-1
@SP
A=M
D=M
@ARG
A=M
M=D
@ARG
D=M+1
@SP
M=D
@R13
D=M
@1
D=D-A
A=D
D=M
@THAT
M=D
@R13
D=M
@2
D=D-A
A=D
D=M
@THIS
M=D
@R13
D=M
@3
D=D-A
A=D
D=M
@ARG
M=D
@R13
D=M
@4
D=D-A
A=D
D=M
@LCL
M=D
@R14
A=M
0;JMP
| 5.9975 | 65 | 0.589819 |
8d2e1b8dcac2325fe925135adea457b83182bbcd | 293 | asm | Assembly | programs/oeis/011/A011658.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/011/A011658.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/011/A011658.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A011658: Period 5: repeat [0, 0, 0, 1, 1]; also expansion of 1/(x^4 + x^3 + x^2 + x + 1) (mod 2).
; 0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0,0,0,1,1,0
mov $1,$0
mod $1,5
div $1,3
| 41.857143 | 163 | 0.508532 |
c0c32844b667fa4a80fb717c2af0f4fa2f0f4b46 | 663 | asm | Assembly | programs/oeis/051/A051870.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/051/A051870.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/051/A051870.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A051870: 18-gonal (or octadecagonal) numbers: a(n) = n*(8*n-7).
; 0,1,18,51,100,165,246,343,456,585,730,891,1068,1261,1470,1695,1936,2193,2466,2755,3060,3381,3718,4071,4440,4825,5226,5643,6076,6525,6990,7471,7968,8481,9010,9555,10116,10693,11286,11895,12520,13161,13818,14491,15180,15885,16606,17343,18096,18865,19650,20451,21268,22101,22950,23815,24696,25593,26506,27435,28380,29341,30318,31311,32320,33345,34386,35443,36516,37605,38710,39831,40968,42121,43290,44475,45676,46893,48126,49375,50640,51921,53218,54531,55860,57205,58566,59943,61336,62745,64170,65611,67068,68541,70030,71535,73056,74593,76146,77715
mov $1,8
mul $1,$0
sub $1,7
mul $1,$0
mov $0,$1
| 73.666667 | 547 | 0.773756 |
0231b281182e6b6769653a774ba45f92b8bcab19 | 729 | asm | Assembly | programs/oeis/157/A157919.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/157/A157919.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/157/A157919.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A157919: a(n) = 50*n^2 - 1.
; 49,199,449,799,1249,1799,2449,3199,4049,4999,6049,7199,8449,9799,11249,12799,14449,16199,18049,19999,22049,24199,26449,28799,31249,33799,36449,39199,42049,44999,48049,51199,54449,57799,61249,64799,68449,72199,76049,79999,84049,88199,92449,96799,101249,105799,110449,115199,120049,124999,130049,135199,140449,145799,151249,156799,162449,168199,174049,179999,186049,192199,198449,204799,211249,217799,224449,231199,238049,244999,252049,259199,266449,273799,281249,288799,296449,304199,312049,319999,328049,336199,344449,352799,361249,369799,378449,387199,396049,404999,414049,423199,432449,441799,451249,460799,470449,480199,490049,499999
mov $1,2
add $1,$0
mul $1,$0
mul $1,50
add $1,49
mov $0,$1
| 72.9 | 638 | 0.799726 |
7e4e1cccdf5e6946fd167591d0373cf5beb42a95 | 542 | asm | Assembly | programs/oeis/134/A134309.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/134/A134309.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/134/A134309.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A134309: Triangle read by rows, where row n consists of n zeros followed by 2^(n-1).
; 1,0,1,0,0,2,0,0,0,4,0,0,0,0,8,0,0,0,0,0,16,0,0,0,0,0,0,32,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,128,0,0,0,0,0,0,0,0,0,256,0,0,0,0,0,0,0,0,0,0,512,0,0,0,0,0,0,0,0,0,0,0,1024,0,0,0,0,0,0,0,0,0,0,0,0,2048,0,0,0,0,0,0,0
mov $4,2
mov $6,$0
lpb $4
mov $0,$6
mov $3,0
sub $4,1
add $0,$4
sub $0,1
mov $5,1
lpb $0
sub $0,1
add $3,1
sub $0,$3
mul $5,2
lpe
mov $2,$4
mul $2,$5
add $1,$2
lpe
min $6,1
mul $6,$5
sub $1,$6
mov $0,$1
| 20.074074 | 212 | 0.52583 |
3c1295ee5499ca97a9e3416dfc8114f776d7df78 | 304 | asm | Assembly | oeis/101/A101000.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/101/A101000.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/101/A101000.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A101000: Periodic sequence with period 3.
; Submitted by Christian Krause
; 0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3,0,1,3
mod $0,3
mul $0,7
div $0,4
| 38 | 199 | 0.572368 |
b0ce7c239820bda71d5e25c202d6a1d143d34ce4 | 6,114 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1366.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1366.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_1366.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r13
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x1d8a2, %r13
nop
nop
nop
nop
add %r10, %r10
mov (%r13), %rax
nop
nop
nop
nop
nop
dec %rdx
lea addresses_D_ht+0xbca2, %rsi
lea addresses_WC_ht+0x44a2, %rdi
clflush (%rdi)
nop
nop
nop
nop
sub $44863, %r13
mov $13, %rcx
rep movsl
nop
nop
and %rcx, %rcx
lea addresses_A_ht+0x1aa2, %rsi
nop
nop
xor %rdi, %rdi
mov (%rsi), %eax
and $42719, %r10
lea addresses_WC_ht+0x6a0e, %rdx
nop
nop
and $36424, %rdi
movw $0x6162, (%rdx)
nop
nop
nop
nop
nop
and $21775, %r13
lea addresses_normal_ht+0x22a2, %r10
nop
nop
nop
sub %rdi, %rdi
mov (%r10), %ecx
nop
nop
xor %rdi, %rdi
lea addresses_A_ht+0x14e22, %rdx
nop
nop
nop
nop
cmp $3076, %r13
movb $0x61, (%rdx)
nop
nop
nop
add $7752, %rcx
lea addresses_A_ht+0xbf62, %rdi
nop
nop
cmp %rdx, %rdx
mov $0x6162636465666768, %rcx
movq %rcx, %xmm1
and $0xffffffffffffffc0, %rdi
movaps %xmm1, (%rdi)
nop
nop
nop
nop
nop
cmp %r10, %r10
lea addresses_A_ht+0x13d1c, %rcx
nop
nop
nop
nop
nop
dec %r10
movb $0x61, (%rcx)
inc %r13
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r15
push %rax
push %rcx
push %rdx
// Store
lea addresses_A+0x16cd2, %r12
nop
inc %rdx
mov $0x5152535455565758, %r10
movq %r10, (%r12)
nop
add %r10, %r10
// Faulty Load
lea addresses_RW+0x60a2, %r10
nop
nop
xor %rcx, %rcx
movups (%r10), %xmm1
vpextrq $0, %xmm1, %r12
lea oracles, %r15
and $0xff, %r12
shlq $12, %r12
mov (%r15,%r12,1), %r12
pop %rdx
pop %rcx
pop %rax
pop %r15
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_RW', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 4}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_RW', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 10}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_D_ht', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 9}}
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_WC_ht', 'same': False, 'AVXalign': True, 'congruent': 1}}
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': True, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 1}}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
| 37.509202 | 2,999 | 0.65718 |
ca14d6709c0c85a02d6e190c72b5d8d65e8241f6 | 246 | asm | Assembly | programs/oeis/180/A180602.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/180/A180602.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/180/A180602.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A180602: (2^(n+1) - 1)^n.
; 1,3,49,3375,923521,992436543,4195872914689,70110209207109375,4649081944211090042881,1227102111503512992112190463,1291749870339606615892191271170049
mov $1,2
mov $2,$0
add $2,1
pow $1,$2
sub $1,1
pow $1,$0
mov $0,$1
| 22.363636 | 149 | 0.747967 |
58238f303bce9c0e515b580de56942744421fd7c | 1,743 | asm | Assembly | programs/oeis/195/A195323.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/195/A195323.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/195/A195323.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A195323: a(n) = 22*n^2.
; 0,22,88,198,352,550,792,1078,1408,1782,2200,2662,3168,3718,4312,4950,5632,6358,7128,7942,8800,9702,10648,11638,12672,13750,14872,16038,17248,18502,19800,21142,22528,23958,25432,26950,28512,30118,31768,33462,35200,36982,38808,40678,42592,44550,46552,48598,50688,52822,55000,57222,59488,61798,64152,66550,68992,71478,74008,76582,79200,81862,84568,87318,90112,92950,95832,98758,101728,104742,107800,110902,114048,117238,120472,123750,127072,130438,133848,137302,140800,144342,147928,151558,155232,158950,162712,166518,170368,174262,178200,182182,186208,190278,194392,198550,202752,206998,211288,215622,220000,224422,228888,233398,237952,242550,247192,251878,256608,261382,266200,271062,275968,280918,285912,290950,296032,301158,306328,311542,316800,322102,327448,332838,338272,343750,349272,354838,360448,366102,371800,377542,383328,389158,395032,400950,406912,412918,418968,425062,431200,437382,443608,449878,456192,462550,468952,475398,481888,488422,495000,501622,508288,514998,521752,528550,535392,542278,549208,556182,563200,570262,577368,584518,591712,598950,606232,613558,620928,628342,635800,643302,650848,658438,666072,673750,681472,689238,697048,704902,712800,720742,728728,736758,744832,752950,761112,769318,777568,785862,794200,802582,811008,819478,827992,836550,845152,853798,862488,871222,880000,888822,897688,906598,915552,924550,933592,942678,951808,960982,970200,979462,988768,998118,1007512,1016950,1026432,1035958,1045528,1055142,1064800,1074502,1084248,1094038,1103872,1113750,1123672,1133638,1143648,1153702,1163800,1173942,1184128,1194358,1204632,1214950,1225312,1235718,1246168,1256662,1267200,1277782,1288408,1299078,1309792,1320550,1331352,1342198,1353088,1364022
mov $1,$0
pow $1,2
mul $1,22
| 249 | 1,686 | 0.839931 |
8105a55fd88cf9292325a138538f701863aa5a3a | 231 | asm | Assembly | libsupcs/x86_64_arith.asm | jncronin/tysila | 5ebb13b7a6b32cac30e87505e34cf910c1604e8f | [
"MIT"
] | 6 | 2019-04-02T20:57:11.000Z | 2022-03-25T14:03:08.000Z | libsupcs/x86_64_arith.asm | jncronin/tysila | 5ebb13b7a6b32cac30e87505e34cf910c1604e8f | [
"MIT"
] | 1 | 2020-10-06T06:02:39.000Z | 2021-09-04T15:24:09.000Z | libsupcs/x86_64_arith.asm | jncronin/tysila | 5ebb13b7a6b32cac30e87505e34cf910c1604e8f | [
"MIT"
] | 1 | 2019-04-02T22:28:11.000Z | 2019-04-02T22:28:11.000Z | global __signbits_r8
global __signbits_r4
global _conv_u4_r8
extern __halt
__signbits_r8: dq 0x8000000000000000, 0x8000000000000000
__signbits_r4: dq 0x8000000080000000, 0x8000000080000000
_conv_u4_r8:
call __halt
| 17.769231 | 57 | 0.822511 |
ad4bf72e2f5ec0921e401ee55bb78841b7ee996f | 503 | asm | Assembly | programs/oeis/009/A009986.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/009/A009986.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/009/A009986.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A009986: Powers of 42.
; 1,42,1764,74088,3111696,130691232,5489031744,230539333248,9682651996416,406671383849472,17080198121677824,717368321110468608,30129469486639681536,1265437718438866624512,53148384174432398229504,2232232135326160725639168,93753749683698750476845056,3937657486715347520027492352,165381614442044595841154678784,6946027806565873025328496508928,291733167875766667063796853374976,12252793050782200016679467841748992,514617308132852400700537649353457664
mov $1,42
pow $1,$0
mov $0,$1
| 71.857143 | 446 | 0.904573 |
3464debf35908395159656f6523c8040526592bf | 1,523 | asm | Assembly | programs/oeis/182/A182097.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/182/A182097.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/182/A182097.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A182097: Expansion of 1/(1-x^2-x^3).
; 1,0,1,1,1,2,2,3,4,5,7,9,12,16,21,28,37,49,65,86,114,151,200,265,351,465,616,816,1081,1432,1897,2513,3329,4410,5842,7739,10252,13581,17991,23833,31572,41824,55405,73396,97229,128801,170625,226030,299426,396655,525456,696081,922111,1221537,1618192,2143648,2839729,3761840,4983377,6601569,8745217,11584946,15346786,20330163,26931732,35676949,47261895,62608681,82938844,109870576,145547525,192809420,255418101,338356945,448227521,593775046,786584466,1042002567,1380359512,1828587033,2422362079,3208946545,4250949112,5631308624,7459895657,9882257736,13091204281,17342153393,22973462017,30433357674,40315615410,53406819691,70748973084,93722435101,124155792775,164471408185,217878227876,288627200960,382349636061,506505428836,670976837021,888855064897,1177482265857,1559831901918,2066337330754,2737314167775,3626169232672,4803651498529,6363483400447,8429820731201,11167134898976,14793304131648,19596955630177,25960439030624,34390259761825,45557394660801,60350698792449,79947654422626,105908093453250,140298353215075,185855747875876,246206446668325,326154101090951,432062194544201,572360547759276,758216295635152,1004422742303477,1330576843394428,1762639037938629,2334999585697905,3093215881333057,4097638623636534,5428215467030962,7190854504969591
mov $3,2
mov $5,$0
lpb $3
sub $3,1
add $0,$3
sub $0,1
mov $4,$0
add $4,1
cal $4,23434 ; Dying rabbits: a(n) = a(n-1) + a(n-2) - a(n-4).
mov $2,$3
lpb $2
mov $1,$4
sub $2,1
lpe
lpe
lpb $5
sub $1,$4
mov $5,0
lpe
| 66.217391 | 1,242 | 0.816809 |
36bfaf0b6da122d8b8f97413900439f1dfc0203d | 507 | asm | Assembly | verify/lxp32/src/firmware/test014.asm | roneissu/bonfire-cpu | a2e3d84f719936bd8e8272b9cfe33c342684c841 | [
"MIT"
] | 38 | 2016-06-14T01:58:10.000Z | 2022-02-01T02:58:08.000Z | verify/lxp32/src/firmware/test014.asm | roneissu/bonfire-cpu | a2e3d84f719936bd8e8272b9cfe33c342684c841 | [
"MIT"
] | 2 | 2016-09-30T19:12:49.000Z | 2017-03-06T15:15:27.000Z | verify/lxp32/src/firmware/test014.asm | roneissu/bonfire-cpu | a2e3d84f719936bd8e8272b9cfe33c342684c841 | [
"MIT"
] | 5 | 2018-01-20T20:53:43.000Z | 2021-06-16T10:14:46.000Z | /*
* Test "hlt" instruction
*/
lc r100, 0x10000000 // test result output pointer
lc r101, halt
lc r103, 0x20000000 // timer: number of pulses (0xFFFFFFFF - infinite)
lc r104, 0x20000004 // timer: delay between pulses (in cycles)
lc iv0, timer_handler
mov r10, 2
mov cr, 1 // enable interrupt 0
lc r0, 1000
sw r104, r0
sw r103, 1
hlt
sw r100, r10 // r10 will be 2 if interrupt hasn't been called, which is a failure code
halt:
hlt
jmp r101 // halt
timer_handler:
mov r10, 1
iret
| 18.107143 | 87 | 0.682446 |
77eae681ba7f5b90e5fb1a82074decdc48c963e8 | 1,612 | asm | Assembly | programs/oeis/265/A265724.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/265/A265724.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/265/A265724.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A265724: Total number of OFF (white) cells after n iterations of the "Rule 1" elementary cellular automaton starting with a single ON (black) cell.
; 0,3,7,10,18,21,33,36,52,55,75,78,102,105,133,136,168,171,207,210,250,253,297,300,348,351,403,406,462,465,525,528,592,595,663,666,738,741,817,820,900,903,987,990,1078,1081,1173,1176,1272,1275,1375,1378,1482,1485,1593,1596,1708,1711,1827,1830,1950,1953,2077,2080,2208,2211,2343,2346,2482,2485,2625,2628,2772,2775,2923,2926,3078,3081,3237,3240,3400,3403,3567,3570,3738,3741,3913,3916,4092,4095,4275,4278,4462,4465,4653,4656,4848,4851,5047,5050,5250,5253,5457,5460,5668,5671,5883,5886,6102,6105,6325,6328,6552,6555,6783,6786,7018,7021,7257,7260,7500,7503,7747,7750,7998,8001,8253,8256,8512,8515,8775,8778,9042,9045,9313,9316,9588,9591,9867,9870,10150,10153,10437,10440,10728,10731,11023,11026,11322,11325,11625,11628,11932,11935,12243,12246,12558,12561,12877,12880,13200,13203,13527,13530,13858,13861,14193,14196,14532,14535,14875,14878,15222,15225,15573,15576,15928,15931,16287,16290,16650,16653,17017,17020,17388,17391,17763,17766,18142,18145,18525,18528,18912,18915,19303,19306,19698,19701,20097,20100,20500,20503,20907,20910,21318,21321,21733,21736,22152,22155,22575,22578,23002,23005,23433,23436,23868,23871,24307,24310,24750,24753,25197,25200,25648,25651,26103,26106,26562,26565,27025,27028,27492,27495,27963,27966,28438,28441,28917,28920,29400,29403,29887,29890,30378,30381,30873,30876,31372,31375
mov $4,6
lpb $0
add $3,$0
add $1,$3
add $1,2
mov $2,$1
mov $3,0
sub $4,3
mov $1,$4
add $2,6
mov $4,$0
sub $0,1
sub $2,2
add $4,$2
lpe
| 84.842105 | 1,302 | 0.76861 |
12c0a7137ae67684905fa90539cd11719982d9d3 | 128 | asm | Assembly | a/assembler_6502appleII.asm | venusing1998/hello-world | 4b5ff1ef90ceb442f5633fc9e5d28297ac0f69ff | [
"MIT"
] | 3 | 2016-04-03T03:41:18.000Z | 2016-04-18T20:29:10.000Z | a/assembler_6502appleII.asm | venusing1998/hello-world | 4b5ff1ef90ceb442f5633fc9e5d28297ac0f69ff | [
"MIT"
] | 6 | 2019-01-27T06:06:31.000Z | 2019-02-22T04:30:12.000Z | a/assembler_6502appleII.asm | venusing1998/hello-world | 4b5ff1ef90ceb442f5633fc9e5d28297ac0f69ff | [
"MIT"
] | 1 | 2018-10-28T11:06:52.000Z | 2018-10-28T11:06:52.000Z | STROUT EQU $DB3A ;OUTPUTS AY-POINTED NULL TERMINATED STRING
LDY #>HELLO
LDA #<HELLO
JMP STROUT
HELLO ASC "HELLO WORLD!",00
| 18.285714 | 60 | 0.734375 |
3753914bac2eef5f9b461ff9e511efcae9cecd46 | 475 | asm | Assembly | programs/oeis/008/A008599.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/008/A008599.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/008/A008599.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A008599: Multiples of 17.
; 0,17,34,51,68,85,102,119,136,153,170,187,204,221,238,255,272,289,306,323,340,357,374,391,408,425,442,459,476,493,510,527,544,561,578,595,612,629,646,663,680,697,714,731,748,765,782,799,816,833,850,867,884,901,918,935,952,969,986,1003,1020,1037,1054,1071,1088,1105,1122,1139,1156,1173,1190,1207,1224,1241,1258,1275,1292,1309,1326,1343,1360,1377,1394,1411,1428,1445,1462,1479,1496,1513,1530,1547,1564,1581,1598,1615,1632,1649,1666,1683
mul $0,17
| 95 | 435 | 0.757895 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.