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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
781502847658c91b9a061cbc5fd936da86086157 | 660 | asm | Assembly | programs/vesa2.asm | informer2016/MichalOS | bfa2b660e8a2e4143c94891ad44f724e9fa3f117 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | programs/vesa2.asm | informer2016/MichalOS | bfa2b660e8a2e4143c94891ad44f724e9fa3f117 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | programs/vesa2.asm | informer2016/MichalOS | bfa2b660e8a2e4143c94891ad44f724e9fa3f117 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ; ------------------------------------------------------------------
; MichalOS VESA tester no.2
; ------------------------------------------------------------------
BITS 16
%INCLUDE "michalos.inc"
ORG 100h
start:
mov byte [0082h], 1
mov ax, 280 ; 1024x768, 24-bit color
mov cx, 1024 * 3 ; 1 pixel = 3 bytes
mov dx, 768
call os_vesa_mode
mov cx, 0
mov dx, 0
mov bl, 0 ; Red channel
mov bh, 0 ; Green channel
.loop:
inc cx
mov al, bh
call os_vesa_pixel
inc cx
mov al, bl
call os_vesa_pixel
inc cx
inc bl
cmp cx, 256 * 3
jne .loop
mov cx, 0
inc bh
inc dx
cmp dx, 256
jne .loop
call os_wait_for_key
ret
| 14.666667 | 68 | 0.498485 |
82cc867cf53fe273222d991fbfee1dff4c9592ec | 25,486 | asm | Assembly | src/vmm.asm | DosWorld/zrdx | 18acbf115d150a96809c42799f496b94f903545f | [
"CC0-1.0"
] | 12 | 2021-11-04T14:52:39.000Z | 2022-03-17T10:13:23.000Z | src/vmm.asm | DosWorld/zrdx | 18acbf115d150a96809c42799f496b94f903545f | [
"CC0-1.0"
] | 1 | 2021-11-10T00:11:31.000Z | 2021-11-10T00:11:31.000Z | src/vmm.asm | DosWorld/zrdx | 18acbf115d150a96809c42799f496b94f903545f | [
"CC0-1.0"
] | null | null | null | ; This file is part of the ZRDX 0.50 project
; (C) 1998, Sergey Belyakov
AllocPages equ alloc_pages
;XAllocPages equ alloc_pages
FreePages equ free_pages
;XFreePages equ free_pages
P_W = 2
P_P = 1
P_D = 40h
P_U = 4
;P_S =
P_S0 = 0200h
P_S0_LOG2 = 9
P_S_BEGIN = 4 shl P_S0_LOG2
P_S_MINCOUNT = 2 shl P_S0_LOG2
P_SA = 0E00h
P_A = 20h
P_A_LOG2 = 5
P_DISCARDED = P_D+P_W
P_LOCKED = P_P+P_U+P_A+P_D+(1 shl P_S0_LOG2)
P_INVALID = P_A+P_D
PE_VCPI = 800h
P_LOCK_COUNT_MASK = 3F8h
P_LOCK_COUNT_INC = 8
segm Text
assume cs:Text
; we are handle several events:
; 1) page not prezent, but:
; a) may be loaded from disk
; b) may be initalized first
; 2) page present but setted to r/o by server, because it not modified
; sinse last page_ins()
;this is a ring0 code!
DPROC Exception0EHandler
cmp esp, OffKernelStack-6*4
je InterruptHL
pushad
;push eax ebx ecx edx esi edi
mov eax, Data1Selector
push ds es
F = 10*4
@@err_code equ byte ptr ss:[esp+F+4] ;skip pushad, ds, es, num
mov ds, eax
mov es, eax
@@pti equ esi
@@pi equ edi
@@p equ edx
@@t equ ecx
@@x equ ebx
InvalidateTLB
mov @@pti, cr2
mov @@pi, @@pti
shr @@pti, 22
shr @@pi, 12
cmp @@pi, 1077h
$ifnot jne
mov eax, cr2
mov ebx, dword ptr @@err_code
;Log
;call RegDump
$endif
cmp @@pti, 4
jb @@Unhandled
test PageDir[@@pti*4], P_P ;nEntriesInTable[@@pti*4], 0
jz @@Unhandled
mov @@p, PageTables[@@pi*4]
test @@p, P_P
$ifnot jz
;jmp @@Unhandled
test @@p, P_D
jnz @@Unhandled
mov @@t, @@p
shr @@p, 12
or @@t, P_W+P_D
mov @@p, PageExtinfo[@@p*4]
;test @@p, P_W
;jz @@Unhandled
mov PageTables[@@pi*4], @@t
push @@p
call d_fast_free
jmp @@restart_page_fault
$else ;page is not present
test @@p, P_D
$ifnot jnz
;jmp @@Unhandled
;test @@p, P_W
;$ifnot jnz ;is write permitted ?
; test @@err_code, P_W
; jnz @@Unhandled
;$endif
call SwitchTo1
jc @@Unhandled
call alloc_page
jc @@Unhandled
mov al, P_A+P_P+P_W+P_D
mov FreePageEntry, eax
mov al, 0
InvalidateTLB
;invlpg free_page
push OffFreePageWin
mov @@t, not 0FFFh
and @@t, @@p
push @@t
call d_read_page
test @@err_code, P_W
$ifnot ;jz
push @@p
call d_fast_free
or eax, P_A+P_D+P_P+P_W+P_U+P_S_BEGIN
$else jmp
mov @@t, eax
mov @@x, PE_VCPI
shr @@t, 10
and @@x, PageExtinfo[@@t]
or @@x, @@p
mov PageExtinfo[@@t], @@x
or eax, P_A+P_P+P_U+P_S_BEGIN
$endif
;mov PageTables[@@pi*4], eax
$else jmp ;page descarded(p or w != 0)
test @@p, P_A ;if page is invalid, A = 1
jnz @@Unhandled
call alloc_page
jc @@Unhandled
or eax, P_A+P_P+P_W+P_D+P_U+P_S_BEGIN
$endif
mov PageTables[@@pi*4], eax
call SwitchTo0
$endif
@@restart_page_fault:
.486P
InvalidateTLB
;shl @@pi, 12
;invlpg byte ptr ds:[@@pi]
;mov eax, SwitchTableCR3
;RRT
;mov cr3, eax
.386P
pop es ds
popad
;pop edi esi edx ecx ebx eax
add esp, 8 ;drop exception number and
iretd
@@Unhandled:
call SwitchTo0
push 15
call RegDump
mov eax, cr2
push eax
shr eax, 22
push PageDir[eax*4]
mov eax, cr2
shr eax, 12
test byte ptr [esp], P_P
$ifnot jz
push dword ptr PageTables[eax*4]
$else jmp
push 0
$endif
push esp 6 16
call MemDump
add esp, 3*4
pop es ds
;pop edi esi edx ecx ebx eax
popad
jmp ExceptionWithCodeHL
ENDP
comment #
u1 page_exception(u3 err_code, u32 cr2)(
u10 pti = cr2 >> 22;
u32 t, pe;
if nEntriesInTable[pti]; (
u20 pi = cr2>>12;
p = page_tables[pi];
if p&P_P; (
if! p & (P_W|P_D); (
pe = PageExtinfo[p>>12];
if pe & PE_W; (
page_tables[pi] = p|P_W|P_D;
d_fast_free(pe);
return 1;
)
)
)else(
if! p & (P_W|P_D); (
if p & P_W0 || ! errcode & P_W; (
t = alloc_page();
if errcode & P_W; (
d_fast_free(p);
t |= P_D|P_P|P_W|P_U|P_S;
)else(
PageExtinfo[t>>12] = PageExtinfo[t>>12]&PE_VCPI|p;
t |= P_P|P_U|P_S;
)
page_tables[pi] = t;
return 1;
)
)else if p == P_DISCARDED; (
t = alloc_page();
page_tables[pi] = t|P_P|P_W|P_D|P_U|P_S;
return 1;
)
)
)
)
present:
loop counter:
0 - mapped
1 - locked
2-7 - available for access counter
P_W P_D PE_W P_A P_I P_P
- r/o by client request with mirror 0 0 0 x N 1
- r/o by client request w/o mirror 0 1 N x N 1
- clean writable 0 0 1 x N 1
- dirty 1 1 0 x N 1
- swapped out v 0 N 0 0 0
- discarded v 1 N 0 0 0
- invalid(uncommitted) v 1 N 1 0 0
- invalid(not exist in a memory block)0 1 N 1 1 0
#
;------------------------------- Free Page -----------------------------------
;free page, always succeful
free_page PROC ;page pointer
push eax ebx
F = 3*4
mov eax, [esp+F][0]
mov ebx, nEntriesInFplist
and ah, 0F0h
inc ebx
mov al, P_A+P_D+P_W+P_P
$ifnot jle
xchg eax, FpListPte
InvalidateTLB
mov ebx, -1023
inc n_fplists
$endif
mov fplist[ebx*4+1023*4], eax
mov nEntriesInFplist, ebx
pop ebx eax
retn 4
ENDP
;------------------------------ Alloc Page ----------------------------------
;allocate one page using free pool, vcpi, swap
;return eax->page, CF -> status
;when called from ring 0, may put ring 0 esp to ebp
alloc_page PROC
push edx
cmp n_fplists, 0
je @@AllocVCPI
mov edx, nEntriesInFplist
mov eax, fplist[edx*4+1023*4]
dec edx
cmp edx, -1024
$ifnot jg
dec n_fplists
xchg FpListPte, eax
InvalidateTLB
xor edx, edx
$endif
mov nEntriesInFplist, edx
jmp @@Success
$do
mov eax, edx
shr edx, 22
cmp PageExtinfoTable[edx*4], 0
$ifnot je
mov edx, eax
shr edx, 12
mov PageExtinfo[edx*4], eax
jmp @@Success
$endif
mov PageExtinfoTable[edx*4], eax
InvalidateTLB
@@AllocVCPI:
cmp Seed, 512+15
ja @@rrrr
;inc Seed
call Alloc1Page ;alloc page with vcpi/xms/raw
$enddo jc ;if alloc1page succeed
;stc
;jmp @@FailRet
@@rrrr:
call SwitchTo1
jc @@FailRet
;sti
call page_out
cli
jc @@FailRet
@@Success:
and eax, not 0FFFh
@@FailRet:
pop edx
retn
ENDP
;------------------------------ SwitchTo1 -----------------------------------
;switch to ring 1, when at ring 0
;put ring 0 stack frame size to ebp
;interrupts must be disabled
DPROC SwitchTo1
cmp LockedMode, 0
jne @@FailRet
push ecx
mov ecx, cs
test cl, 3
$ifnot jnz
push esi edi
mov edi, KernelStack1
cmp word ptr [ecx][-4], Data1Selector ;exception from ring 1?
$ifnot jne
mov edi, [ecx][-8] ;using ring 1 stack top
$endif
mov esi, esp
mov ecx, OffKernelStack
sub ecx, esp
sub edi, ecx
mov ebp, ecx
shr ecx, 2
push Data1Selector
push edi
cld
rep movsd
push Code1Selector
push OffSwitchTo1X
retf
LLabel SwitchTo1X
pop edi esi
$endif
clc
pop ecx
retn
@@FailRet:
stc
retn
ENDP
;switch to ring 0, when at ring 1
;using ring 0 frame size in ebp
DPROC SwitchTo0
push ecx
mov ecx, cs
test cl, 3
$ifnot jz
push esi edi
mov esi, esp
DB CallFarCode
DD 0
DW SwitchTo0GateSelector
LLabel SwitchTo00
add esp, 16
mov ecx, ebp
sub esp, ebp
shr ecx, 2
mov edi, esp
cld
rep movsd
pop edi esi
$endif
pop ecx
retn
ENDP
;------------------------------- Page Out -----------------------------------
page_out PROC
push ebx ecx edx
;cmp n_unlocked_pages, 2 ;must keep at least 2 unlocked pages
;jb @@Fail
@@pti equ ecx
@@pdi equ edx
mov @@pti, sw_pti
$do
@@dir_loop:
mov @@pdi, @@pti
shr @@pdi, 10
and @@pdi, 3FFh
$ifnot jz
;cmp nEntriesInTable[@@pdi*4], 0
;mov eax, nEntriesInTable[@@pdi*4]
test PageDir[@@pdi*4], P_P
$ifnot jz
$do
mov eax, PageTables[@@pti*4] ;1
inc @@pti ;+
mov ebx, eax ;1
and eax, P_A+P_SA ;+
cmp eax, P_S_MINCOUNT ;1
$ifnot jbe ;+
;Log
cmp eax, P_A+P_SA ;1
$ifnot je ;+
;Log
and eax, P_A ;1
shl eax, P_S0_LOG2-P_A_LOG2+1;1
add ebx, -P_S0 ;+
add ebx, eax ;1
$endif ;
and ebx, not P_A ;1
;Log
test @@pti, 03FFh ;+
mov PageTables[@@pti*4-4], ebx;1
$loop jnz ;+
jmp @@dir_loop
$else
je @@swap_out ;1
;test eax, P_SA
;$ifnot jz
; Log
;$endif
test @@pti, 03FFh ;1
$loop jnz ;+
jmp @@dir_loop
$endif
$enddo
$else
add @@pti, 400h
jmp @@dir_loop
$endif
$endif
mov @@pti, OffClientPages shr 12
$enddo jmp
@@swap_out:
mov sw_pti, @@pti
dec @@pti
mov ebx, PageTables[@@pti*4] ;reload page entry
test ebx, P_D
$ifnot jz ;is page dirty ?
mov eax, @@pti
shl eax, 12 ;linear address of swapped page
push eax
call d_alloc_page ;allocate new page in swap file
push eax
call d_write_page ;store dirty page to swap file
mov dl, P_W
and dl, bl ;set writeble attribute for this page
or al, dl
$else jmp
;Log
mov eax, ebx ;load address in swap, saved in extinfo
shr eax, 12
mov eax, PageExtinfo[eax*4]
and eax, not 0FFFh or P_W
$endif
mov PageTables[@@pti*4], eax ;save address in swap to main page table
xchg eax, ebx
clc
pop edx ecx ebx
retn
ENDP
;la and n must be page aligned
alloc_pages PROC ;(u32 la, s, m)
pushad
@@pi0 equ edx
@@pi1 equ ebx
@@nt equ ecx
@@t equ eax
@@pti equ esi
F = 9*4
mov @@pi0, [esp+F][4]
add @@pi0, 0FFFh
mov @@pi1, [esp+F][8] ;s
add @@pi1 , @@pi0
shr @@pi0, 12
push @@pi0
F = F+4
shr @@pi1, 12 ;convert la to pi
$do
mov @@t, 3FFh
mov @@nt, @@t
and @@t, @@pi0
sub @@nt, @@t
mov @@t, @@pi1
inc @@nt
sub @@t, @@pi0
$break jz
cmp @@nt, @@t
$ifnot jb
mov @@nt, @@t
$endif
mov @@pti, @@pi0
shr @@pti, 10
add nEntriesInTable[@@pti*4], @@nt
cmp nEntriesInTable[@@pti*4], @@nt
$ifnot jne
call alloc_page
jc @@fail1
mov al, 67h
mov PageDir[@@pti*4], eax
mov PageDirAlias[@@pti*4], eax
InvalidateTLB
cmp @@nt, 1024
$ifnot je
mov eax, P_INVALID
imul edi, @@pti, 4096
add edi, OffPageTables
push ecx
mov ecx, 1024
rep stosd
pop ecx
InvalidateTLB
$endif
$endif
;cmp @@pi0, 1077h
;je @@Lok
cmp byte ptr [esp+F][0], 0
$ifnot je
mov eax, P_DISCARDED
lea edi, PageTables[@@pi0*4]
add @@pi0, ecx
cld
rep stosd
InvalidateTLB
$loop jmp
$else
@@Lok:
$do
call alloc_page
jc @@fail
or eax, P_LOCKED or P_W
mov PageTables[@@pi0*4], eax
InvalidateTLB
inc @@pi0
$enddo loop
$endif
$enddo jmp
pop eax
clc
@@ret:
InvalidateTLB
popad
retn 12
@@fail:
sub nEntriesInTable[@@pti*4], @@nt
$ifnot jne
push PageDirAlias[@@pti*4]
mov PageDir[@@pti*4], 0
mov PageDirAlias[@@pti*4], 0
call free_page
$endif
@@fail1:push @@pi0
call free_pages_n
stc
jmp @@ret
ENDP
comment #
u1 alloc_vpages(u20 la, n)(
pi0 = la+0xFFF;
pi1 = pi0+n;
pi0 >>= 12;
pi1 >>= 12;
while; (
if! nt = min(0x400 - (pi0 & 0x3FF), pi1-pi0); break;
pti = pi0>>10;
//if nt != 1024; disable();
if! nEntriesInTable[pti]; (
t = alloc_page();
PageDirAlias[pti] = PageDir[pti] = t|P_ALL; inv_tlb();
if mode; (
)else(
enable();
)
nEntriesInTable[pti] += nt;
if mode; (
)else(
do (
t = alloc_page();
if ! t; ( free_pages_n(lpi0, pi0); )
page_tables[pi0] = t | P_ALL;
)while --nt;
)
)
)
if !alloc_page_tables(pi0, pi1); return 0;
while pi0 != pi1; (
page_tables[pi0++] = PA_L|PA_UA|PA_D|PA_P; //set all new pages as discarded
)
return 1;
)
#
free_pages PROC ;(u32 la, n; u1 m)
@@pi0 equ eax
@@pi1 equ edx
push @@pi0 @@pi1
F = 3*4
mov @@pi0, [esp+F][4]
mov @@pi1, [esp+F][8]
add @@pi0, 0FFFh
add @@pi1, @@pi0
shr @@pi0, 12
shr @@pi1, 12
push @@pi0 @@pi1
push dword ptr [esp+F+8][0]
call free_pages_n
pop @@pi1 @@pi0
retn 12
ENDP
free_pages_n PROC ;(u20 pi0, pi1; u1 m)
pushad
F = 9*4
@@pi0 equ ebx
@@pi1 equ edx
@@nt equ ecx
@@t equ edi
@@pti equ esi
@@p equ eax
mov @@pi0, [esp+F][8]
mov @@pi1, [esp+F][4]
$do
mov @@t, 3FFh
mov @@nt, @@t
and @@t, @@pi0
sub @@nt, @@t
mov @@t, @@pi1
inc @@nt
sub @@t, @@pi0
$break jz
cmp @@nt, @@t
$ifnot jb
mov @@nt, @@t
$endif
mov @@t, @@nt
mov @@pti, @@pi0
shr @@pti, 10
$do
mov @@p, PageTables[@@pi0*4]
mov PageTables[@@pi0*4], P_INVALID
test @@p, P_SA
$ifnot jz
push @@p
call free_page
$endif
test @@p, P_D
$ifnot jnz
test @@p, P_P
$ifnot jz
shr @@p, 12
mov @@p, PageExtinfo[@@p*4]
$endif
push @@p
call d_fast_free
$endif
inc @@pi0
dec @@t
$enddo jnz
sub nEntriesInTable[@@pti*4], @@nt
$ifnot jne
push PageDir[@@pti*4]
call free_page
mov PageDir[@@pti*4], 0
mov PageDirAlias[@@pti*4], 0
$endif
InvalidateTLB
$enddo jmp
popad
retn 12
ENDP
DPROC ReturnFreePool
retn
ENDP
comment #
free_vpages(u32 la, s)(
lpi0 = pi0 = la>>12;
pi1 = (la+s)>>12;
for; pi0 != pi1; pi++; (
page: locked or unlocked:
p = PageTables[pi0];
if p & P_W; ( //is page mirrored ?
d_fast_free(p>>12);
)
if p & P_SA != 0; ( //is page allocated ?
free_page(p);
)
PageTables[pi0] = P_INVALID; //invalidate page
)
free_page_entries(lpi0, pi1);
)
#
DPROC d_alloc_page
push edi ecx
mov edi, free_swap_cluster
shr edi, 5
xor eax, eax
mov ecx, swap_file_size
add ecx, 31
shr ecx, 5
sub ecx, edi
lea edi, swap_file_bitmap[edi*4]
cld
repe scasd
$ifnot jz
bsf eax, dword ptr ds:[edi-4]
mov ecx, [edi-4]
lea eax, [edi*8+eax-Offswap_file_bitmap*8-4*8]
$else jmp
;extend swap file
mov eax, swap_file_size
add swap_file_size, 32
$endif
mov free_swap_cluster, eax
btr swap_file_bitmap, eax
shl eax, 12
pop ecx edi
retn
ENDP
DPROC d_write_page ;(swap_offset, page_offset)
pushad
F = 9*4
mov esi, [esp+F][4]
mov edi, OffSwapBuffer
RRT
mov ecx, 400h
cld
rep movsd
mov ah, 40h ;dos write
call d_swap_io
popad
retn 8
ENDP
DPROC d_read_page ;(swap_offset, page_offset)
pushad
F = 9*4
mov ah, 3Fh
call d_swap_io
mov esi, OffSwapBuffer
RRT
mov edi, [esp+F][4]
mov ecx, 400h
cld
rep movsd
popad
retn 8
ENDP
DPROC d_swap_io
push eax
mov ax, 4200h
mov edx, dword ptr [esp+9*4+2*4][0] ;load swap index
shld ecx, edx, 16
mov ebx, swap_file_handle
call dos_io
pop eax
mov dx, ROffSwapBuffer
mov si, seg DGroup16
mov cx, 1000h
call dos_io
retn
ENDP
;eax, ebx, ecx, edx - registers transferred to dos
;esi, edi - dos ds, es
DPROC dos_io
;push fs gs
call Dos1Call
;pop gs fs
retn
ENDP
DPROC d_fast_free
push eax
F = 2*4
mov eax, [esp+F][0]
shr eax, 12
bts swap_file_bitmap, eax
cmp eax, free_swap_cluster
$ifnot jae
mov free_swap_cluster, eax
$endif
pop eax
retn 4
ENDP
DPROC Pause1
pushad
Log
mov ah, 0
push dword ptr ds:[16h*4]
call DosPCall
cmp al, 1Bh
$ifnot jnz
hlt
$endif
popad
retn
ENDP
;comment ^
DPROC LockPages
DPMIFn 6 0 ;Page lock
;Log
pushad
call set_page_region
@@Limit equ esi
@@pei equ ecx
@@pee equ eax
@@pdi equ @@pei
;$ifnot jc
;push OffPageDir 8 12
;call MemDump
;hlt
push ebx
$do ;lock all present pages from area
mov @@pdi, ebx
shr @@pdi, 10
cli
test PageDir[@@pdi*4], P_P
$ifnot jz
;call Pause1
mov edx, PageTables[ebx*4]
;Log
test dl, P_P
$ifnot jz
test dh, P_SA shr 8 ;physical map page?
$toendif jz
mov @@pei, edx
shr @@pei, 12
mov @@pee, PageExtinfo[@@pei*4]
test dh, 6 shr (P_S0_LOG2-8) ;already locked page ?
$ifnot jz
and dh, (not P_SA) shr 8
or dh, P_S0 shr 8
and @@pee, not P_LOCK_COUNT_MASK ;set lock counter to zero(one lock)
$else jmp
add @@pee, P_LOCK_COUNT_INC ;inc lock counter
test @@pee, P_LOCK_COUNT_MASK
jz @@LockError ;lock counter overflow?
$endif
mov PageExtinfo[@@pei*4], @@pee
mov PageTables[ebx*4], edx
InvalidateTLB
$endif
$endif
@@LockError:
sti
inc ebx
cmp ebx, @@Limit
$enddo jb
pop ebx
;call Pause1
push ebx
$do ;allocate all not present pages in the area
mov @@pdi, ebx
cli
shr @@pdi, 10
test PageDir[@@pdi*4], P_P
$ifnot jz
mov edx, PageTables[ebx*4]
test dl, P_P
$ifnot jnz
call load_page
;jc @@LockError
or ah, P_S0 shr 8
mov PageTables[ebx*4], eax
InvalidateTLB
$endif
$endif
inc ebx
sti
cmp ebx, @@Limit
$enddo jb
pop ebx
;$endif
popad
FnRet
ENDP
;bx:cx - first LA, si:di - region size
;exit - ebx: index of first page
;esi - index of last page+1
DPROC set_page_region
mov esi, [esp+9*4].DPMIFrame_ESI
;Log
shl ebx, 16
mov bx, cx ;ebx - first la
shl esi, 16
mov si, di
lea esi, [esi+ebx+0FFFh]
shr ebx, 12
cmp ebx, OffClientPages shr 12
$ifnot jae
mov ebx, OffClientPages shr 12
$endif
shr esi, 12
cmp esi, ebx
$ifnot ja
mov esi, ebx
inc esi
$endif
;Log
retn
ENDP
;edx - page descriptor
DPROC load_page ;(pi, pv, wp), return pv and error flag
push ebx ecx
@@p equ edx
@@t equ ecx
@@x equ ebx
test @@p, P_D
$ifnot jnz
call alloc_page
jc @@err
mov al, P_A+P_P+P_W+P_D
mov FreePageEntry, eax
mov al, 0
InvalidateTLB
push OffFreePageWin
mov @@t, not 0FFFh
and @@t, @@p
push @@t
call d_read_page
mov @@t, eax
mov @@x, PE_VCPI
shr @@t, 10
and @@x, PageExtinfo[@@t]
or @@x, @@p
and @@x, not P_LOCK_COUNT_MASK
mov PageExtinfo[@@t], @@x
or eax, P_A+P_P+P_U
$else jmp ;page descarded(p or w != 0)
test @@p, P_A ;if page is invalid, A = 1
jnz @@err
call alloc_page
jc @@err
or eax, P_A+P_P+P_W+P_D+P_U
$endif
;clc
@@ret:
pop ecx ebx
retn
@@err: stc
jmp @@ret
ENDP
eseg Text
| 27.170576 | 88 | 0.418975 |
0db4aaa98f9cc1e82cae7f0f527f4f1ea2a0c0ed | 279 | asm | Assembly | programs/oeis/174/A174091.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/174/A174091.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/174/A174091.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A174091: a(n) = n OR 2.
; 2,3,2,3,6,7,6,7,10,11,10,11,14,15,14,15,18,19,18,19,22,23,22,23,26,27,26,27,30,31,30,31,34,35,34,35,38,39,38,39,42,43,42,43,46,47,46,47,50,51,50,51,54,55,54,55,58,59,58,59,62,63,62,63,66,67,66
mov $1,$0
div $1,2
mod $1,2
sub $0,$1
sub $0,$1
add $0,2
| 27.9 | 194 | 0.605735 |
3707a126e3d5a0e4bdf41d67991039cdde39e0c7 | 8,070 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_1766.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_1766.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_1766.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0xaae5, %r15
nop
nop
nop
nop
nop
add %rdx, %rdx
movl $0x61626364, (%r15)
nop
sub $20199, %rcx
lea addresses_WC_ht+0x1a1e5, %rsi
lea addresses_normal_ht+0x1c5e5, %rdi
nop
nop
inc %rbp
mov $45, %rcx
rep movsb
nop
nop
nop
nop
nop
xor $4994, %r15
lea addresses_D_ht+0x16ce3, %rsi
cmp %r15, %r15
mov $0x6162636465666768, %rdx
movq %rdx, (%rsi)
nop
nop
inc %rbp
lea addresses_A_ht+0x9bbd, %r15
nop
nop
nop
nop
inc %rsi
movups (%r15), %xmm3
vpextrq $0, %xmm3, %rbp
nop
nop
nop
nop
add $61482, %r14
lea addresses_WC_ht+0x5be5, %rsi
nop
and %rdx, %rdx
movups (%rsi), %xmm3
vpextrq $0, %xmm3, %rbp
nop
nop
nop
nop
nop
cmp %rsi, %rsi
lea addresses_WC_ht+0x13f25, %rcx
nop
add %rsi, %rsi
mov $0x6162636465666768, %r14
movq %r14, %xmm4
movups %xmm4, (%rcx)
nop
nop
nop
nop
sub $11214, %rsi
lea addresses_WT_ht+0x1b1e5, %rsi
lea addresses_WT_ht+0x18ea5, %rdi
nop
nop
nop
nop
nop
dec %r10
mov $98, %rcx
rep movsw
nop
inc %rsi
lea addresses_WT_ht+0x1dfe5, %r14
nop
add $1173, %rdx
mov $0x6162636465666768, %r10
movq %r10, (%r14)
nop
nop
nop
nop
nop
cmp $29245, %rdi
lea addresses_WT_ht+0xede5, %r10
nop
nop
nop
and $50850, %rdi
movw $0x6162, (%r10)
nop
nop
nop
nop
nop
cmp $13246, %rdx
lea addresses_WT_ht+0x8271, %rsi
lea addresses_UC_ht+0x5ea5, %rdi
nop
nop
nop
and $3886, %r15
mov $65, %rcx
rep movsl
nop
nop
nop
nop
nop
add %rcx, %rcx
lea addresses_WT_ht+0x9fe5, %rsi
lea addresses_WC_ht+0x1ca39, %rdi
nop
sub %r14, %r14
mov $59, %rcx
rep movsb
xor %rbp, %rbp
lea addresses_WC_ht+0x15465, %rsi
lea addresses_WC_ht+0xbc65, %rdi
add %rbp, %rbp
mov $127, %rcx
rep movsq
nop
dec %r14
lea addresses_A_ht+0x51e5, %r10
xor %r14, %r14
movb (%r10), %cl
nop
nop
dec %r10
lea addresses_A_ht+0x169e5, %rsi
lea addresses_WC_ht+0x119e5, %rdi
nop
nop
nop
nop
nop
cmp %r10, %r10
mov $61, %rcx
rep movsl
add $43097, %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r15
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r8
push %r9
push %rax
push %rbp
push %rdi
push %rsi
// Store
lea addresses_WC+0xee5, %rax
nop
nop
nop
nop
nop
and $27399, %rbp
movw $0x5152, (%rax)
and %rdi, %rdi
// Store
lea addresses_D+0x15e5, %rdi
nop
nop
nop
nop
nop
add %rbp, %rbp
mov $0x5152535455565758, %rax
movq %rax, %xmm4
vmovups %ymm4, (%rdi)
xor $60831, %rbp
// Faulty Load
lea addresses_WT+0x1f1e5, %r9
sub %r10, %r10
mov (%r9), %di
lea oracles, %r8
and $0xff, %rdi
shlq $12, %rdi
mov (%r8,%rdi,1), %rdi
pop %rsi
pop %rdi
pop %rbp
pop %rax
pop %r9
pop %r8
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_WC'}}
{'OP': 'STOR', 'dst': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_D'}}
[Faulty Load]
{'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 2, 'NT': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'congruent': 7, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_A_ht'}}
{'src': {'congruent': 7, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_normal_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 1, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_D_ht'}}
{'src': {'congruent': 3, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_WC_ht'}}
{'src': {'congruent': 7, 'same': True, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_WT_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_WT_ht'}}
{'OP': 'STOR', 'dst': {'congruent': 9, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_WT_ht'}}
{'src': {'congruent': 0, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_UC_ht'}}
{'src': {'congruent': 6, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_WC_ht'}}
{'src': {'congruent': 6, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'dst': {'congruent': 7, 'same': True, 'type': 'addresses_WC_ht'}}
{'src': {'congruent': 10, 'AVXalign': True, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 11, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_WC_ht'}}
{'00': 21829}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 33.209877 | 2,999 | 0.657249 |
d1dc8dd375a7c670eceb4bd3b53c86978e62796f | 2,324 | asm | Assembly | source/cynthsubroutines.asm | brijohn/cynthcart | c2f4c72f90ca26a5209e08f5006db31b4737d4e7 | [
"MIT"
] | 25 | 2019-02-05T03:06:22.000Z | 2022-03-03T12:51:34.000Z | source/cynthsubroutines.asm | brijohn/cynthcart | c2f4c72f90ca26a5209e08f5006db31b4737d4e7 | [
"MIT"
] | null | null | null | source/cynthsubroutines.asm | brijohn/cynthcart | c2f4c72f90ca26a5209e08f5006db31b4737d4e7 | [
"MIT"
] | 7 | 2019-03-13T12:36:59.000Z | 2021-10-03T13:33:01.000Z | ;sorting subroutine coded by mats rosengren (mats.rosengren@esa.int)
;
; input:
;zpadd - start address of sequence to be sorted shall be put in zpadd, zpadd+1 (zero page)
; should point to the byte just before the first byte to be sorted
; ( "lda (zpadd),y" with 1<=y<=255)
;nval - number of values, 1<= nval <= 255
; value will be destroyed (set to zero)
;
;*=$6000 ;code anywhere in ram or rom
;=====================================================================
; CUSTOM SORT FOR NOTE ARRAY
doSort:
lda #8
sta nval
sort:
ldy nval ;start of subroutine sort
lda noteNumArray-1,y ;last value in (what is left of) sequence to be sorted
sta work3 ;save value. will be over-written by largest number
jmp l2
l1:
dey
beq l3
lda noteNumArray-1,y
cmp work2
bcc l1
l2:
sty work1 ;index of potentially largest value
sta work2 ;potentially largest value
jmp l1
l3:
ldy nval ;where the largest value shall be put
lda work2 ;the largest value
sta noteNumArray-1,y ;put largest value in place
ldy work1 ;index of free space
lda work3 ;the over-written value
sta noteNumArray-1,y ;put the over-written value in the free space
dec nval ;end of the shorter sequence still left
bne sort ;start working with the shorter sequence
rts
;=====================================================================
;=====================================================================
; ORIGINAL VERSION
;originalSort:
;ldy nval ;start of subroutine sort
;;lda (zpadd),y ;last value in (what is left of) sequence to be sorted
;sta work3 ;save value. will be over-written by largest number
;jmp l2
;l1:
;dey
;beq l3
;;lda (zpadd),y
;cmp work2
;bcc l1
;l2:
;sty work1 ;index of potentially largest value
;sta work2 ;potentially largest value
;jmp l1
;l3:
;ldy nval ;where the largest value shall be put
;lda work2 ;the largest value
;;sta (zpadd),y ;put largest value in place
;ldy work1 ;index of free space
;lda work3 ;the over-written value
;;sta (zpadd),y ;put the over-written value in the free space
;dec nval ;end of the shorter sequence still left
;bne sort ;start working with the shorter sequence
;rts
;=====================================================================
| 29.794872 | 91 | 0.604991 |
1066c3acadbee27ef9af36ea33a273d7d7ff94bc | 751 | asm | Assembly | oeis/001/A001993.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/001/A001993.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/001/A001993.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A001993: Number of two-rowed partitions of length 3.
; Submitted by Christian Krause
; 1,1,3,5,9,13,22,30,45,61,85,111,150,190,247,309,390,478,593,715,870,1038,1243,1465,1735,2023,2368,2740,3175,3643,4189,4771,5443,6163,6982,7858,8852,9908,11098,12366,13780,15284,16958,18730,20692,22772,25058,27478,30133,32933,35993,39223,42733,46433,50448,54668,59233,64033,69203,74633,80474,86594,93161,100043,107402,115106,123335,131933,141098,150674,160853,171479,182763,194523,206990,219982,233723,248031,263151,278873,295463,312711,330876,349748,369608,390216,411876,434348,457928,482376,508012
lpb $0
mov $2,$0
sub $0,2
seq $2,213506 ; Number of nonisomorphic 2-generator p-groups of class at most 2 and order p^n.
add $1,$2
lpe
add $1,1
mov $0,$1
| 57.769231 | 500 | 0.772304 |
124cff6f54322b391b9eb75b04ff953ae3da68d9 | 2,595 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_53_391.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_53_391.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_53_391.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r15
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0xf68, %rdx
clflush (%rdx)
nop
nop
nop
nop
sub %r12, %r12
movw $0x6162, (%rdx)
nop
inc %rax
lea addresses_D_ht+0xf3e8, %rsi
lea addresses_WC_ht+0x14768, %rdi
inc %r15
mov $45, %rcx
rep movsb
nop
nop
nop
inc %r15
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r15
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r14
push %r15
push %rbp
push %rcx
push %rsi
// Store
mov $0xf68, %rsi
xor $40325, %rbp
movw $0x5152, (%rsi)
nop
nop
nop
nop
nop
cmp $17100, %r15
// Load
lea addresses_US+0x5168, %r15
nop
dec %r14
vmovups (%r15), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $1, %xmm3, %rsi
nop
nop
nop
xor %r14, %r14
// Load
lea addresses_PSE+0x2f68, %r13
nop
nop
cmp %rsi, %rsi
vmovups (%r13), %ymm4
vextracti128 $1, %ymm4, %xmm4
vpextrq $0, %xmm4, %r15
nop
add %r11, %r11
// Store
lea addresses_RW+0x1d4e8, %r15
nop
sub %r14, %r14
movb $0x51, (%r15)
sub $65176, %rsi
// Faulty Load
lea addresses_WT+0xa768, %r15
clflush (%r15)
nop
nop
nop
nop
nop
and $29655, %r11
vmovups (%r15), %ymm5
vextracti128 $1, %ymm5, %xmm5
vpextrq $0, %xmm5, %r14
lea oracles, %r15
and $0xff, %r14
shlq $12, %r14
mov (%r15,%r14,1), %r14
pop %rsi
pop %rcx
pop %rbp
pop %r15
pop %r14
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 7, 'same': False, 'type': 'addresses_P'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 9, 'same': False, 'type': 'addresses_US'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 11, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'}
{'dst': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 6, 'same': False, 'type': 'addresses_RW'}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': True, 'type': 'addresses_WT'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 7, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 5, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'39': 53}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
| 19.961538 | 158 | 0.642775 |
e3d98ccac228041d21b73ec56fc3e65bde2ebf43 | 1,125 | asm | Assembly | libsrc/stdio_new/file/fgetpos_callee.asm | andydansby/z88dk-mk2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | 1 | 2020-09-15T08:35:49.000Z | 2020-09-15T08:35:49.000Z | libsrc/stdio_new/file/fgetpos_callee.asm | andydansby/z88dk-MK2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | null | null | null | libsrc/stdio_new/file/fgetpos_callee.asm | andydansby/z88dk-MK2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | null | null | null | ; int __CALLEE__ fgetpos_callee(FILE *stream, fpos_t *pos)
; an fpos_t is a long
; 06.2008 aralbrec
XLIB fgetpos_callee
XDEF ASMDISP_FGETPOS_CALLEE
LIB l_declong, l_jpix
LIB stdio_error_mc, stdio_success_znc
INCLUDE "../stdio.def"
.fgetpos_callee
pop de
pop hl
pop ix
push de
.asmentry
; enter : ix = FILE *stream
; hl = long *pos
; exit : hl = 0 and no carry for success
; -1 and carry for fail
push hl ; save & pos
ld c,STDIO_SEEK_REP ; report file pos, no change
ld a,STDIO_MSG_SEEK
call l_jpix
jp c, stdio_error_mc - 1 ; device driver error
; dehl = file position
bit 0,(ix+3) ; if an unget char is available
call nz, l_declong ; the device fp is actually one less
ex de,hl ; fp = hlde
ex (sp),hl ; hl = & pos
ld (hl),e ; write fp into pos*
inc hl
ld (hl),d
inc hl
pop de
ld (hl),e
inc hl
ld (hl),d
jp stdio_success_znc
defc ASMDISP_FGETPOS_CALLEE = asmentry - fgetpos_callee
| 20.833333 | 67 | 0.573333 |
14d348a5371c26aa9dcbb177cb623067fec959fd | 778 | asm | Assembly | programs/oeis/259/A259243.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/259/A259243.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/259/A259243.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A259243: Number of (n+1) X (1+1) 0..1 arrays with each 2 X 2 subblock having clockwise pattern 0000 0011 or 0111.
; 9,21,48,111,255,588,1353,3117,7176,16527,38055,87636,201801,464709,1070112,2464239,5674575,13067292,30091017,69292893,159565944,367444623,846142455,1948476324,4486903689,10332332661,23793043728,54790041711,126169172895,290539298028,669046816713,1540664710797,3547805160936,8169799293327,18813214776135,43322612656116,99762256984521,229730094952869,529016865906432,1218207150765039,2805257748484335,6459879200779452
mov $1,$0
add $1,1
cal $1,162740 ; Number of reduced words of length n in Coxeter group on 4 generators S_i with relations (S_i)^2 = (S_i S_j)^3 = I.
cmp $0,$1
add $0,1
mul $0,4
pow $0,2
add $1,2
mul $1,$0
sub $1,96
div $1,32
mul $1,3
add $1,9
| 45.764706 | 416 | 0.786632 |
a87d3948d25372bfdc097b3a898429aa827bbb54 | 666 | asm | Assembly | libsrc/graphics/setxy.asm | andydansby/z88dk-mk2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | 1 | 2020-09-15T08:35:49.000Z | 2020-09-15T08:35:49.000Z | libsrc/graphics/setxy.asm | dex4er/deb-z88dk | 9ee4f23444fa6f6043462332a1bff7ae20a8504b | [
"ClArtistic"
] | null | null | null | libsrc/graphics/setxy.asm | dex4er/deb-z88dk | 9ee4f23444fa6f6043462332a1bff7ae20a8504b | [
"ClArtistic"
] | null | null | null | INCLUDE "graphics/grafix.inc"
XLIB setxy
XREF COORDS
;
; $Id: setxy.asm,v 1.3 2001/04/18 13:21:37 stefano Exp $
;
; ******************************************************************
;
; Move current pixel coordinate to (x0,y0). Only legal coordinates
; are accepted.
;
; Design & programming by Gunther Strube, Copyright (C) InterLogic 1995
;
; X-range is always legal (0-255). Y-range must be 0 - 63.
;
; in: hl = (x,y) coordinate
;
; registers changed after return:
; ..bcdehl/ixiy same
; af....../.... different
;
.setxy
IF maxx <> 256
ld a,h
cp maxx
ret nc
ENDIF
ld a,l
cp maxy
ret nc ; out of range...
ld (COORDS),hl
ret
| 18.5 | 71 | 0.566066 |
f6b7fa76b42864ecf8d3d1505ec651893e8e53f4 | 579 | asm | Assembly | oeis/172/A172044.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/172/A172044.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/172/A172044.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A172044: 5*n^2+11*n+1.
; 1,17,43,79,125,181,247,323,409,505,611,727,853,989,1135,1291,1457,1633,1819,2015,2221,2437,2663,2899,3145,3401,3667,3943,4229,4525,4831,5147,5473,5809,6155,6511,6877,7253,7639,8035,8441,8857,9283,9719,10165,10621,11087,11563,12049,12545,13051,13567,14093,14629,15175,15731,16297,16873,17459,18055,18661,19277,19903,20539,21185,21841,22507,23183,23869,24565,25271,25987,26713,27449,28195,28951,29717,30493,31279,32075,32881,33697,34523,35359,36205,37061,37927,38803,39689,40585,41491,42407,43333
add $0,1
mov $1,$0
mul $0,5
add $0,1
mul $0,$1
sub $0,5
| 57.9 | 496 | 0.770294 |
7c27cdb2d336ff4af1c7b2601c1f1fdb56c6b2cf | 540 | asm | Assembly | data/baseStats/grimer.asm | etdv-thevoid/pokemon-rgb-enhanced | 5b244c1cf46aab98b9c820d1b7888814eb7fa53f | [
"MIT"
] | 1 | 2022-01-09T05:28:52.000Z | 2022-01-09T05:28:52.000Z | data/baseStats/grimer.asm | ETDV-TheVoid/pokemon-rgb-enhanced | 5b244c1cf46aab98b9c820d1b7888814eb7fa53f | [
"MIT"
] | null | null | null | data/baseStats/grimer.asm | ETDV-TheVoid/pokemon-rgb-enhanced | 5b244c1cf46aab98b9c820d1b7888814eb7fa53f | [
"MIT"
] | null | null | null | db GRIMER ; pokedex id
db 80 ; base hp
db 80 ; base attack
db 50 ; base defense
db 25 ; base speed
db 40 ; base special
db POISON ; species type 1
db POISON ; species type 2
db 190 ; catch rate
db 90 ; base exp yield
INCBIN "pic/gsmon/grimer.pic",0,1 ; 55, sprite dimensions
dw GrimerPicFront
dw GrimerPicBack
; attacks known at lvl 0
db POUND
db POISON_GAS
db 0
db 0
db 0 ; growth rate
; learnset
tmlearn 6,8
tmlearn 12
tmlearn 20,21,24
tmlearn 25,28,31,32
tmlearn 34,36,37,38
tmlearn 44,47,48
tmlearn 50,54
db BANK(GrimerPicFront)
| 18.62069 | 57 | 0.735185 |
119fb4bb983b6589af66262d8c95756987280996 | 314 | asm | Assembly | programs/oeis/059/A059939.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/059/A059939.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/059/A059939.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A059939: a(n) = floor(log_2(n+1) - 1).
; 0,0,1,1,1,1,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5
div $0,2
add $0,1
lpb $0
div $0,2
add $1,1
lpe
sub $1,1
mov $0,$1
| 26.166667 | 201 | 0.506369 |
0fc3d02da5c488e2ab90c74f95725af6b66e62c6 | 771 | asm | Assembly | PRG/objects/W2A.asm | narfman0/smb3_pp1 | 38a58adafff67a403591e38875e9fae943a5fe76 | [
"Unlicense"
] | null | null | null | PRG/objects/W2A.asm | narfman0/smb3_pp1 | 38a58adafff67a403591e38875e9fae943a5fe76 | [
"Unlicense"
] | null | null | null | PRG/objects/W2A.asm | narfman0/smb3_pp1 | 38a58adafff67a403591e38875e9fae943a5fe76 | [
"Unlicense"
] | null | null | null | .byte $00 ; Unknown purpose
.byte OBJ_AUTOSCROLL, $00, $04
.byte OBJ_CLOUDSINBGBEGIN, $01, $03
.byte OBJ_CFIRE_BULLETBILL, $15, $0D
.byte OBJ_CFIRE_BULLETBILL, $18, $0B
.byte OBJ_CFIRE_ULCANNON2, $21, $0A
.byte OBJ_CFIRE_BULLETBILL, $29, $0B
.byte OBJ_CFIRE_BULLETBILL, $2F, $0D
.byte OBJ_CFIRE_BULLETBILL, $33, $0A
.byte OBJ_CFIRE_BULLETBILL, $36, $0F
.byte OBJ_CFIRE_BULLETBILL, $42, $11
.byte OBJ_CFIRE_BULLETBILL, $42, $13
.byte OBJ_CFIRE_BULLETBILL, $42, $15
.byte OBJ_CFIRE_BULLETBILL, $53, $10
.byte OBJ_CFIRE_BULLETBILL, $53, $12
.byte OBJ_CFIRE_ROCKYWRENCH, $63, $0F
.byte OBJ_CFIRE_ROCKYWRENCH, $65, $0F
.byte OBJ_CFIRE_ROCKYWRENCH, $67, $0F
.byte OBJ_CFIRE_BULLETBILL, $6E, $0C
.byte OBJ_CFIRE_BULLETBILL, $71, $0B
.byte $FF ; Terminator
| 33.521739 | 38 | 0.73022 |
a18f1168d6df6b994c5cc4b659d93a628a096f83 | 7,636 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_843.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_843.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0_notsx.log_21829_843.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 %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WT_ht+0x15377, %r14
nop
add %rax, %rax
mov (%r14), %r15d
nop
nop
nop
nop
and $65268, %rax
lea addresses_WT_ht+0x4473, %rsi
lea addresses_WC_ht+0x14377, %rdi
nop
nop
nop
cmp $2900, %rbx
mov $0, %rcx
rep movsb
nop
nop
nop
and %rax, %rax
lea addresses_WT_ht+0x1e377, %rsi
inc %rbx
movb (%rsi), %r15b
nop
nop
nop
xor $19686, %r14
lea addresses_A_ht+0xbd77, %rbx
nop
nop
nop
nop
nop
xor %r15, %r15
movups (%rbx), %xmm2
vpextrq $0, %xmm2, %rdi
nop
nop
nop
nop
sub $61393, %rdi
lea addresses_WT_ht+0xf2c0, %rsi
lea addresses_WC_ht+0x1d77, %rdi
nop
nop
cmp $46841, %r13
mov $111, %rcx
rep movsq
cmp %rsi, %rsi
lea addresses_WC_ht+0xf7e7, %r15
clflush (%r15)
nop
nop
nop
nop
inc %rcx
mov $0x6162636465666768, %rax
movq %rax, %xmm1
movups %xmm1, (%r15)
cmp $52778, %rcx
lea addresses_WC_ht+0x1bb3f, %rsi
lea addresses_normal_ht+0xe857, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
add %rax, %rax
mov $6, %rcx
rep movsq
nop
nop
nop
add $20790, %r14
lea addresses_normal_ht+0x1f77, %rsi
lea addresses_D_ht+0x19977, %rdi
nop
xor %rax, %rax
mov $62, %rcx
rep movsw
nop
nop
nop
nop
dec %rbx
lea addresses_normal_ht+0x586f, %rdi
nop
nop
xor $56998, %rsi
and $0xffffffffffffffc0, %rdi
movntdqa (%rdi), %xmm1
vpextrq $0, %xmm1, %r13
nop
nop
nop
nop
sub %rsi, %rsi
lea addresses_WC_ht+0x5f2b, %rbx
nop
nop
cmp $18939, %rax
movw $0x6162, (%rbx)
nop
nop
nop
xor %rsi, %rsi
lea addresses_WT_ht+0xf777, %rcx
nop
nop
nop
nop
nop
sub $38275, %rsi
mov $0x6162636465666768, %r13
movq %r13, %xmm7
vmovups %ymm7, (%rcx)
nop
nop
and %rax, %rax
lea addresses_UC_ht+0x5ac3, %rcx
nop
nop
nop
sub $28874, %rdi
vmovups (%rcx), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $0, %xmm2, %r13
nop
nop
nop
nop
and %r13, %r13
lea addresses_WT_ht+0x6977, %r15
clflush (%r15)
nop
nop
xor $18028, %r14
movb (%r15), %r13b
nop
nop
nop
sub %rcx, %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r15
pop %r14
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r14
push %r8
push %r9
push %rbx
push %rsi
// Store
lea addresses_WT+0x80a7, %r8
clflush (%r8)
nop
nop
nop
xor %r9, %r9
mov $0x5152535455565758, %r12
movq %r12, (%r8)
sub %r9, %r9
// Faulty Load
lea addresses_WT+0x3777, %r8
nop
nop
and $26893, %rbx
mov (%r8), %r9w
lea oracles, %r8
and $0xff, %r9
shlq $12, %r9
mov (%r8,%r9,1), %r9
pop %rsi
pop %rbx
pop %r9
pop %r8
pop %r14
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 2, 'NT': True, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 4}}
[Faulty Load]
{'src': {'type': 'addresses_WT', 'AVXalign': False, 'size': 2, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WT_ht', 'AVXalign': True, 'size': 4, 'NT': False, 'same': False, 'congruent': 7}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 10, 'same': False}}
{'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1, 'NT': True, 'same': False, 'congruent': 10}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 8}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 16, 'NT': False, 'same': False, 'congruent': 4}}
{'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}}
{'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16, 'NT': True, 'same': False, 'congruent': 2}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 9}}
{'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'size': 32, 'NT': False, 'same': False, 'congruent': 1}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 9}, 'OP': 'LOAD'}
{'39': 21829}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
| 33.638767 | 2,999 | 0.657543 |
2b2a93c47395fd50334fdb678afcfb38565fed27 | 1,000 | asm | Assembly | wireframe/_includes/subroutines/VDP_LoadRegisters.asm | ArcadeTV/megadrive-samples | bb00902a844f63d55c6f449d50b0ae8a72c3c05e | [
"CC0-1.0"
] | 5 | 2021-05-15T21:47:38.000Z | 2022-03-27T19:33:15.000Z | whitenoise/_includes/subroutines/VDP_LoadRegisters.asm | ArcadeTV/megadrive-samples | bb00902a844f63d55c6f449d50b0ae8a72c3c05e | [
"CC0-1.0"
] | 1 | 2021-06-09T10:17:41.000Z | 2021-06-09T15:07:37.000Z | wireframe/_includes/subroutines/VDP_LoadRegisters.asm | ArcadeTV/megadrive-samples | bb00902a844f63d55c6f449d50b0ae8a72c3c05e | [
"CC0-1.0"
] | null | null | null | VDP_LoadRegisters:
; To initialise the VDP, we write all of its initial register values from
; the table at the top of the file, using a loop.
;
; To write a register, we write a word to the control port.
; The top bit must be set to 1 (so $8000), bits 8-12 specify the register
; number to write to, and the bottom byte is the value to set.
;
; In binary:
; 100X XXXX YYYY YYYY
; X = register number
; Y = value to write
; Set VDP registers
lea VDPRegisters,a0 ; Load address of register table into a0
move.w #$18-1,d0 ; 24 registers to write (-1 for loop counter)
move.w #$8000,d1 ; 'Set register 0' command to d1
@CopyRegLp:
move.b (a0)+,d1 ; Move register value from table to lower byte of d1 (and post-increment the table address for next time)
move.w d1,vdp_control ; Write command and value to VDP control port
addi.w #$0100,d1 ; Increment register #
dbra d0,@CopyRegLp ; Decrement d0, and jump back to top of loop if d0 is still >= 0
rts
| 37.037037 | 125 | 0.691 |
1367858a4f1dbc92053191fd5746431aa4821b45 | 789 | asm | Assembly | PRG/objects/3-9.asm | narfman0/smb3_pp1 | 38a58adafff67a403591e38875e9fae943a5fe76 | [
"Unlicense"
] | null | null | null | PRG/objects/3-9.asm | narfman0/smb3_pp1 | 38a58adafff67a403591e38875e9fae943a5fe76 | [
"Unlicense"
] | null | null | null | PRG/objects/3-9.asm | narfman0/smb3_pp1 | 38a58adafff67a403591e38875e9fae943a5fe76 | [
"Unlicense"
] | null | null | null | .byte $01 ; Unknown purpose
.byte OBJ_PARATROOPAGREENHOP, $12, $07
.byte OBJ_GREENPIRANHA_FLIPPED, $16, $08
.byte OBJ_CFIRE_BULLETBILL, $20, $09
.byte OBJ_PARAGOOMBAWITHMICROS, $22, $04
.byte OBJ_BOBOMB, $2D, $0A
.byte OBJ_BOBOMB, $33, $0A
.byte OBJ_GREENCHEEP, $36, $18
.byte OBJ_CFIRE_BULLETBILL, $3A, $0A
.byte OBJ_BOBOMB, $3D, $0A
.byte OBJ_BOBOMB, $46, $06
.byte OBJ_CFIRE_BULLETBILL, $46, $0A
.byte OBJ_BOBOMB, $4E, $04
.byte OBJ_BOBOMB, $56, $0A
.byte OBJ_BOBOMB, $5A, $0A
.byte OBJ_GREENCHEEP, $5B, $15
.byte OBJ_BOBOMB, $69, $0A
.byte OBJ_GREENCHEEP, $6D, $14
.byte OBJ_GREENTROOPA, $6F, $0A
.byte OBJ_PARATROOPAGREENHOP, $7A, $0A
.byte OBJ_PARATROOPAGREENHOP, $7E, $05
.byte OBJ_GREENCHEEP, $83, $18
.byte OBJ_GREENCHEEP, $8A, $14
.byte $FF ; Terminator
| 30.346154 | 41 | 0.698352 |
0fab7071d89cf55d18bce68dc436c8ceda290811 | 518 | asm | Assembly | oeis/222/A222404.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/222/A222404.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/222/A222404.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A222404: Triangle read by rows: left and right edges are A002378, interior entries are filled in using the Pascal triangle rule.
; Submitted by Jon Maiga
; 0,2,2,6,4,6,12,10,10,12,20,22,20,22,20,30,42,42,42,42,30,42,72,84,84,84,72,42,56,114,156,168,168,156,114,56,72,170,270,324,336,324,270,170,72,90,242,440,594,660,660,594,440,242,90,110,332,682,1034,1254,1320,1254,1034,682,332,110
mov $1,1
lpb $0
add $2,1
sub $0,$2
add $1,1
lpe
add $0,2
bin $1,$0
sub $0,3
add $2,1
bin $2,$0
add $2,$1
mov $0,$2
mul $0,2
| 27.263158 | 230 | 0.681467 |
34b6d4cf42b9d924f09b39490a28592842b4f372 | 1,563 | asm | Assembly | source/command/dim.asm | mega65dev/rom-assembler | 1670a56a8246dcdcc18e83b345d577eba686cf32 | [
"MIT"
] | null | null | null | source/command/dim.asm | mega65dev/rom-assembler | 1670a56a8246dcdcc18e83b345d577eba686cf32 | [
"MIT"
] | null | null | null | source/command/dim.asm | mega65dev/rom-assembler | 1670a56a8246dcdcc18e83b345d577eba686cf32 | [
"MIT"
] | null | null | null | ; ********************************************************************************************
; ********************************************************************************************
;
; Name : dim.asm
; Purpose : ..
; Created : 15th Nov 1991
; Updated : 4th Jan 2021
; Authors : Fred Bowen
;
; ********************************************************************************************
; ********************************************************************************************
; The DIMension code sets DIMFLG and then falls into the variable search
; routine, which looks at DIMFLG at 3 different points:
;
; 1) If an entry is found, DIMFLG being on indicates a
; doubly-defined variable.
; 2) When a new entry is being built, DIMFLG being on indicates
; the indices should be used for the size of each index.
; Otherwise the default of ten is used.
; 3) When the build entry code finishes, indexing will be done
; only if DIMFLG is off.
dim3 jsr chkcom ; must be a comma
dim tax ; make .x non-zero (.a must be non-zero to work correctly)
jsr ptrgt1
jsr chrgot ; get last character
bne dim3
rts
;.end
; ********************************************************************************************
;
; Date Changes
; ==== =======
;
; ********************************************************************************************
| 36.348837 | 114 | 0.349968 |
7033ed80b9a9da6bdc8bd3ff5e5f72bd5c5ddca7 | 2,238 | asm | Assembly | src/andtable.asm | Gip-Gip/VePseu | 44e89cd70cab8c9e24ddb024b953cfa842ed54c7 | [
"0BSD"
] | 5 | 2018-04-20T01:00:01.000Z | 2020-08-18T23:31:50.000Z | src/andtable.asm | Gip-Gip/VePseu | 44e89cd70cab8c9e24ddb024b953cfa842ed54c7 | [
"0BSD"
] | 3 | 2018-06-25T14:07:03.000Z | 2018-06-29T00:56:36.000Z | src/andtable.asm | Gip-Gip/VePseu | 44e89cd70cab8c9e24ddb024b953cfa842ed54c7 | [
"0BSD"
] | null | null | null | ; The AND-tables for the shadows
and_1a:
DC %10000000
DC %10000000
DC %10000000
DC %11000000
DC %11000000
DC %11000000
DC %11100000
DC %11100000
DC %11100000
DC %11110000
DC %11110000
DC %11110000
DC %11111000
DC %11111000
DC %11111000
DC %11111100
DC %11111100
DC %11111100
DC %11111110
DC %11111110
DC %11111110
DC %11111111
DC %11111111
DC %11111111
DC %11111111
DC %11111111
DC %11111111
DC %11111111
DC %11111111
DC %11111111
and_1b:
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000001
DC %00000001
DC %00000001
DC %00000011
DC %00000011
DC %00000011
and_1c:
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000000
DC %00000001
DC %00000001
DC %00000001
DC %00000011
DC %00000011
DC %00000011
DC %00000111
DC %00000111
DC %00000111
DC %00001111
DC %00001111
DC %00001111
DC %00011111
DC %00011111
DC %00011111
DC %00111111
DC %00111111
DC %00111111
DC %01111111
DC %01111111
DC %01111111
DC %11111111
DC %11111111
DC %11111111
and_1d:
DC %00000010
DC %00000010
DC %00000010
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
DC %00000011
| 17.215385 | 33 | 0.558088 |
2431ddb02b6af10cec12c846578ab840ff3e5e15 | 4,054 | asm | Assembly | Examples/error-checking-correcting/checkparitybit.asm | agguro/linux-nasm | 3e72083c3db6d7118eb2aa430b73e0d20e88456b | [
"Unlicense"
] | 6 | 2020-07-19T18:34:43.000Z | 2022-03-26T10:21:09.000Z | Examples/error-checking-correcting/checkparitybit.asm | NrdyBhu1/linux-nasm | 3e72083c3db6d7118eb2aa430b73e0d20e88456b | [
"Unlicense"
] | null | null | null | Examples/error-checking-correcting/checkparitybit.asm | NrdyBhu1/linux-nasm | 3e72083c3db6d7118eb2aa430b73e0d20e88456b | [
"Unlicense"
] | 3 | 2020-07-19T18:35:10.000Z | 2021-07-25T17:34:50.000Z | ;name: checkparitybit.asm
;
;description: check the parity bit against a databit string with the parity variant
; taken into account. There is a difference in the parity flag (PF) of
; a CPU (x86 in this case) and the parity bit of a databit string.
;
; !!! This routine can only be used to check if a bitstring is wrong.
; You cannot use this routine to check if a databit string is correct
;
; because of the nature of the algorithm for calculating parity bits.
; (when two bits changes of value for example)
;example: data send is: 0110111 -> parity bit = 1 for variant EVEN -> 01101111
; 0 for variant ODD -> 01101110
; but when the data received is 00111111 then parity bit for 0011111 is 1 for variant EVEN
; and 0 for variant ODD
; the bitstrings 01101111 and 00111111 are legal ones taken the parity bit into account but
; only the first one is the correct one.
; same goes up for variant parity ODD
;update: 17/04/2021
bits 64
%include "unistd.inc"
%include "sys/termios.inc"
%define VARIANT_EVEN 0
%define VARIANT_ODD 1
global _start
section .bss
;uninitialized read-write data
section .data
;initialized read-write data
section .rodata
;read-only data
;bit 0 is parity bit
databits1: dq 01101110b
databits2: dq 01101111b
;some messages to have some interaction...
bitstring1: db "checking 01101110...",10
.len: equ $-bitstring1
bitstring2: db "checking 01101111...",10
.len: equ $-bitstring2
variant1: db "for parity variant EVEN: result: "
.len: equ $-variant1
variant2: db "for parity variant ODD: result: "
.len: equ $-variant2
right: db "data seems ok.", 10
.len: equ $-right
wrong: db "data is definitely wrong.", 10
.len: equ $-wrong
section .text
_start:
;we cannot check the parity of the entire 64 bit word on a Intel x86
;therefor this routine
syscall write,stdout,bitstring1,bitstring1.len
syscall write,stdout,variant1,variant1.len
mov rdi,qword[databits1]
mov rsi,VARIANT_EVEN
call checkparitybit
call decision
syscall write,stdout,variant2,variant2.len
mov rdi,qword[databits1]
mov rsi,VARIANT_ODD
call checkparitybit
call decision
syscall write,stdout,bitstring2,bitstring2.len
syscall write,stdout,variant1,variant1.len
mov rdi,qword[databits2]
mov rsi,VARIANT_EVEN
call checkparitybit
call decision
syscall write,stdout,variant2,variant2.len
mov rdi,qword[databits2]
mov rsi,VARIANT_ODD
call checkparitybit
call decision
syscall exit,0
decision:
test rax,rax
jz .wrong
syscall write,stdout,right,right.len
ret
.wrong:
syscall write,stdout,wrong,wrong.len
ret
checkparitybit:
push rdx
mov rax,rdi
shr rax,1 ;rule out all but the parity-bit
add rax,0 ;check parity of databits with p-flag
;0 when odd, 1 when even
pushf ;push flags on stack
pop rdx ;get flags from stack
and rdx,100b ;mask all but p-flag
shr rdx,2 ;p-flag in lower bit of rdx
xor rdx,1 ;invert result, p-flag = not(p-bit) however
xor rdx,rsi ;take variant into account
shl rax,1 ;make place for parity bit
add rdx,rax ;put p-flag in place and in rdx
xor rax,rax ;assume data is wrong
cmp rdx,rdi ;test calculated data against given databits
jne .done ;data is wrong
inc rax ;data seems ok
.done:
pop rdx
ret
| 33.783333 | 99 | 0.592255 |
98e43b44bfdf27e481e0cfe2b0f653ac7b0e802e | 636 | asm | Assembly | 3rdParties/src/nasm/nasm-2.15.02/travis/test/elif.asm | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | 1 | 2020-06-20T07:35:25.000Z | 2020-06-20T07:35:25.000Z | 3rdParties/src/nasm/nasm-2.15.02/travis/test/elif.asm | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | 3rdParties/src/nasm/nasm-2.15.02/travis/test/elif.asm | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | %macro DosPrintMsg 1+
%ifnid %1
section .data
%%str_to_print:db %1
section .text
mov dx,%%str_to_print
mov ah,9
int 0x21
%else
mov dx,(%1)
mov ah,9
int 0x21
%endif
%endmacro
%macro DosExit 1
%if (%1) == 0
;use short-form return 0 exit
int 0x20
%elif ((%1) < 256) && ((%1) > 0)
mov ax,0x4C00 | (%1)
int 0x21
%else
%error Invalid return value
%endif
%endmacro
section .text
DosPrintMsg predefined_str
DosPrintMsg "Using string with macro-defined label",10,0
DosExit 0
DosExit 1
section .data
predefined_str:db "Using string with predefined label",10,0
| 16.307692 | 61 | 0.628931 |
2c4ba4d55683809d94ef796d1e18e6b4fbfd9a48 | 6,016 | asm | Assembly | patch.asm | jvisser/msu-md-ga2 | 8b484c4289358354c2df5d36adfc646eb4a05f98 | [
"CC0-1.0"
] | 2 | 2021-06-22T14:17:09.000Z | 2022-01-17T16:08:14.000Z | patch.asm | jvisser/msu-md-ga2 | 8b484c4289358354c2df5d36adfc646eb4a05f98 | [
"CC0-1.0"
] | null | null | null | patch.asm | jvisser/msu-md-ga2 | 8b484c4289358354c2df5d36adfc646eb4a05f98 | [
"CC0-1.0"
] | null | null | null | ; Mega CD MMIO addresses used for communicating with msu-md driver on the mega cd (mode 1)
MSU_COMM_CMD equ $a12010 ; Comm command 0 (high byte)
MSU_COMM_ARG equ $a12011 ; Comm command 0 (low byte)
MSU_COMM_ARG32 equ $a12012 ; Comm command 1/2
MSU_COMM_CMD_CK equ $a1201f ; Comm command 7 (low byte)
MSU_COMM_STATUS equ $a12020 ; Comm status 0 (0-ready, 1-init, 2-cmd busy)
; msu-md commands
MSU_PLAY equ $1100 ; PLAY decimal no. of track (1-99) playback will be stopped in the end of track
MSU_PLAY_LOOP equ $1200 ; PLAY LOOP decimal no. of track (1-99) playback will restart the track when end is reached
MSU_PAUSE equ $1300 ; PAUSE vol fading time. 1/75 of sec. (75 equal to 1 sec) instant stop if 0 pause playback
MSU_RESUME equ $1400 ; RESUME none. resume playback
MSU_VOL equ $1500 ; VOL volume 0-255. set cdda volume
MSU_NOSEEK equ $1600 ; NOSEEK 0-on(default state), 1-off(no seek delays) seek time emulation switch
MSU_PLAYOF equ $1a00 ; PLAYOF #1 = decimal no. of track (1-99) #2 = offset in sectors from the start of the track to apply when looping play cdda track and loop from specified sector offset
YM2612_ADDR_2 equ $a04002
YM2612_VALUE_2 equ $a04003
; Where to put the code
ROM_END equ $80000
; MACROS: ------------------------------------------------------------------------------------------
macro MSU_WAIT
.\@
tst.b MSU_COMM_STATUS
bne.s .\@
endm
macro MSU_COMMAND cmd, param
MSU_WAIT
move.w #(\1|\2),MSU_COMM_CMD ; Send msu cmd
addq.b #1,MSU_COMM_CMD_CK ; Increment command clock
endm
; MEGA DRIVE OVERRIDES : ------------------------------------------------------------------------------------------
; M68000 Reset vector
org $4
dc.l ENTRY_POINT ; Custom entry point for redirecting
org $72b80 ; Original ENTRY POINT
Game
org $76582
jmp pause_on
org $765cc ; Hooks after z80 bus request so we can update YM2612 registers. Actual base address = $765bc.
jmp pause_off
org $766f4
jmp play_music_track
org $76c10
jmp stop_sound
org $76b14
jmp fade_out
; MSU-MD Init: -------------------------------------------------------------------------------------
org ROM_END
ENTRY_POINT
bsr.s audio_init
jmp Game
audio_init
jsr msu_driver_init
tst.b d0 ; if 1: no CD Hardware found
.audio_init_fail
bne.s .audio_init_fail ; Loop forever
MSU_COMMAND MSU_NOSEEK, 1
MSU_COMMAND MSU_VOL, 255
rts
; Sound: -------------------------------------------------------------------------------------
pause_on
MSU_COMMAND MSU_PAUSE, 0
; Run original code
moveq #2,d2
move.b #$b4,d0
jmp $76588
pause_off
MSU_COMMAND MSU_RESUME, 0
; Workaround for failing sample playback after resume
; Enable left/right audio for fm channel 6 (DAC)
move.b #$b6,YM2612_ADDR_2 ; Select channel 6 stereo control
move.b #$c0,YM2612_VALUE_2 ; Enable left/right audio
; Run original code
btst #7,(a5)
bne .fall_through
jmp $765e4
.fall_through
jmp $765d2
play_music_track
MSU_WAIT
movem.l d7/a0,-(sp)
sub.b #$81,d7
ext.w d7
add.w d7,d7
lea AUDIO_TBL,a0
move.w (a0,d7),MSU_COMM_CMD ; Send msu cmd
addq.b #1,MSU_COMM_CMD_CK ; Increment command clock
movem.l (sp)+,d7/a0
rts
stop_sound
MSU_COMMAND MSU_PAUSE, 0
; Run original code
moveq #$2b,d0
move.b #$80,d1
jmp $76c16
fade_out
MSU_COMMAND MSU_PAUSE, 75 ; Seems to be like a 3s fadeout in the original game which in practice is way too long. Make it 1s.
; Explicitly do not run original code!
; Fade out expires only after the next song has already started and then calls stop_sound.
; Does not happen in the original game because the original play_music_track code resets all 68k sound RAM area (fadeout timer included)
rts
; TABLES: ------------------------------------------------------------------------------------------
align 2
AUDIO_TBL ; #Track Name
dc.w MSU_PLAY_LOOP|02 ; 02 - Ravaged Village
dc.w MSU_PLAY_LOOP|01 ; 01 - Title Theme
dc.w MSU_PLAY_LOOP|04 ; 04 - Boss Theme 1
dc.w MSU_PLAY_LOOP|12 ; 12 - Castle
dc.w MSU_PLAY_LOOP|10 ; 10 - Boss Theme 2
dc.w MSU_PLAY_LOOP|07 ; 07 - Ruins
dc.w MSU_PLAY_LOOP|08 ; 08 - Tower
dc.w MSU_PLAY_LOOP|15 ; 15 - Credits
dc.w MSU_PLAY_LOOP|09 ; 09 - Dragon's Throat Cave
dc.w MSU_PLAY_LOOP|11 ; 11 - Castle Gates
dc.w MSU_PLAY_LOOP|13 ; 13 - Dark Guld's Chamber
dc.w MSU_PLAY|14 ; 14 - Ending
dc.w MSU_PLAY|16 ; 16 - Final Score
dc.w MSU_PLAY|03 ; 03 - Game Over
dc.w MSU_PLAY_LOOP|06 ; 06 - Intermission
dc.w MSU_PLAY_LOOP|05 ; 05 - Bonus Stage
; MSU-MD DRIVER: -----------------------------------------------------------------------------------
align 2
msu_driver_init
incbin "msu-drv.bin"
| 36.682927 | 219 | 0.498005 |
4f7a8e75bb674709843f88d49bebc143494b3328 | 832 | asm | Assembly | oeis/142/A142119.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/142/A142119.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/142/A142119.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A142119: Primes congruent to 10 mod 37.
; Submitted by Jon Maiga
; 47,269,491,787,1009,1231,1453,1601,1823,2267,2341,2711,3229,3673,3821,4339,4561,4783,4931,5153,5227,5449,6263,6337,6781,7151,7669,7817,8039,8779,9001,9371,10037,10111,10259,10333,11369,11443,11813,11887,12109,12479,12553,12923,13219,13367,13441,14033,14107,14551,14699,15217,15439,15661,15809,16253,16993,17659,17807,17881,18251,18917,19139,19213,19583,20101,20249,20323,20693,21211,21433,21803,22247,22469,22543,22691,23209,23357,23431,23801,24023,24097,24763,25577,25799,25873,26021,26317,26539
mov $2,$0
add $2,2
pow $2,2
lpb $2
mul $1,$4
mov $3,$1
add $1,9
add $3,46
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,65
sub $2,1
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
lpe
mov $0,$1
sub $0,27
| 34.666667 | 498 | 0.72476 |
6b70ba59da700580f532da295207c73ad5a7426b | 658 | asm | Assembly | programs/oeis/143/A143157.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/143/A143157.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/143/A143157.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A143157: Partial sums of A091512.
; 0,1,5,8,20,25,37,44,76,85,105,116,152,165,193,208,288,305,341,360,420,441,485,508,604,629,681,708,792,821,881,912,1104,1137,1205,1240,1348,1385,1461,1500,1660,1701,1785,1828,1960,2005,2097,2144,2384,2433,2533,2584,2740,2793,2901,2956,3180,3237,3353,3412,3592,3653,3777,3840,4288,4353,4485,4552,4756,4825,4965,5036,5324,5397,5545,5620,5848,5925,6081,6160,6560,6641,6805,6888,7140,7225,7397,7484,7836,7925,8105,8196,8472,8565,8753,8848,9424,9521,9717,9816
mov $4,$0
mov $5,$0
lpb $4
mov $0,$5
sub $4,1
sub $0,$4
mov $2,$0
mov $3,$0
pow $0,3
lpb $0
dif $0,8
add $2,$3
lpe
add $1,$2
lpe
mov $0,$1
| 32.9 | 455 | 0.691489 |
a802e7292feb00feb94edfc3d7aa4af110932dc0 | 15,257 | asm | Assembly | deps/openssl/asm/x86-win32-masm/bf/bf-686.asm | sgallagher/node | 008daf8719068760de4e04c40783740a328d15c0 | [
"BSD-2-Clause"
] | 2 | 2019-05-23T20:37:37.000Z | 2019-05-24T14:06:34.000Z | deps/openssl/asm/x86-win32-masm/bf/bf-686.asm | sgallagher/node | 008daf8719068760de4e04c40783740a328d15c0 | [
"BSD-2-Clause"
] | null | null | null | deps/openssl/asm/x86-win32-masm/bf/bf-686.asm | sgallagher/node | 008daf8719068760de4e04c40783740a328d15c0 | [
"BSD-2-Clause"
] | 1 | 2021-03-24T12:52:37.000Z | 2021-03-24T12:52:37.000Z | TITLE bf-686.asm
IF @Version LT 800
ECHO MASM version 8.00 or later is strongly recommended.
ENDIF
.586
.MODEL FLAT
OPTION DOTNAME
IF @Version LT 800
.text$ SEGMENT PAGE 'CODE'
ELSE
.text$ SEGMENT ALIGN(64) 'CODE'
ENDIF
ALIGN 16
_BF_encrypt PROC PUBLIC
$L_BF_encrypt_begin::
push ebp
push ebx
push esi
push edi
;
; Load the 2 words
mov eax,DWORD PTR 20[esp]
mov ecx,DWORD PTR [eax]
mov edx,DWORD PTR 4[eax]
;
; P pointer, s and enc flag
mov edi,DWORD PTR 24[esp]
xor eax,eax
xor ebx,ebx
xor ecx,DWORD PTR [edi]
;
; Round 0
ror ecx,16
mov esi,DWORD PTR 4[edi]
mov al,ch
mov bl,cl
ror ecx,16
xor edx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,ch
mov bl,cl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor edx,esi
;
; Round 1
ror edx,16
mov esi,DWORD PTR 8[edi]
mov al,dh
mov bl,dl
ror edx,16
xor ecx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,dh
mov bl,dl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor ecx,esi
;
; Round 2
ror ecx,16
mov esi,DWORD PTR 12[edi]
mov al,ch
mov bl,cl
ror ecx,16
xor edx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,ch
mov bl,cl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor edx,esi
;
; Round 3
ror edx,16
mov esi,DWORD PTR 16[edi]
mov al,dh
mov bl,dl
ror edx,16
xor ecx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,dh
mov bl,dl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor ecx,esi
;
; Round 4
ror ecx,16
mov esi,DWORD PTR 20[edi]
mov al,ch
mov bl,cl
ror ecx,16
xor edx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,ch
mov bl,cl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor edx,esi
;
; Round 5
ror edx,16
mov esi,DWORD PTR 24[edi]
mov al,dh
mov bl,dl
ror edx,16
xor ecx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,dh
mov bl,dl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor ecx,esi
;
; Round 6
ror ecx,16
mov esi,DWORD PTR 28[edi]
mov al,ch
mov bl,cl
ror ecx,16
xor edx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,ch
mov bl,cl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor edx,esi
;
; Round 7
ror edx,16
mov esi,DWORD PTR 32[edi]
mov al,dh
mov bl,dl
ror edx,16
xor ecx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,dh
mov bl,dl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor ecx,esi
;
; Round 8
ror ecx,16
mov esi,DWORD PTR 36[edi]
mov al,ch
mov bl,cl
ror ecx,16
xor edx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,ch
mov bl,cl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor edx,esi
;
; Round 9
ror edx,16
mov esi,DWORD PTR 40[edi]
mov al,dh
mov bl,dl
ror edx,16
xor ecx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,dh
mov bl,dl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor ecx,esi
;
; Round 10
ror ecx,16
mov esi,DWORD PTR 44[edi]
mov al,ch
mov bl,cl
ror ecx,16
xor edx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,ch
mov bl,cl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor edx,esi
;
; Round 11
ror edx,16
mov esi,DWORD PTR 48[edi]
mov al,dh
mov bl,dl
ror edx,16
xor ecx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,dh
mov bl,dl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor ecx,esi
;
; Round 12
ror ecx,16
mov esi,DWORD PTR 52[edi]
mov al,ch
mov bl,cl
ror ecx,16
xor edx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,ch
mov bl,cl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor edx,esi
;
; Round 13
ror edx,16
mov esi,DWORD PTR 56[edi]
mov al,dh
mov bl,dl
ror edx,16
xor ecx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,dh
mov bl,dl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor ecx,esi
;
; Round 14
ror ecx,16
mov esi,DWORD PTR 60[edi]
mov al,ch
mov bl,cl
ror ecx,16
xor edx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,ch
mov bl,cl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor edx,esi
;
; Round 15
ror edx,16
mov esi,DWORD PTR 64[edi]
mov al,dh
mov bl,dl
ror edx,16
xor ecx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,dh
mov bl,dl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor ecx,esi
xor edx,DWORD PTR 68[edi]
mov eax,DWORD PTR 20[esp]
mov DWORD PTR [eax],edx
mov DWORD PTR 4[eax],ecx
pop edi
pop esi
pop ebx
pop ebp
ret
_BF_encrypt ENDP
ALIGN 16
_BF_decrypt PROC PUBLIC
$L_BF_decrypt_begin::
push ebp
push ebx
push esi
push edi
;
; Load the 2 words
mov eax,DWORD PTR 20[esp]
mov ecx,DWORD PTR [eax]
mov edx,DWORD PTR 4[eax]
;
; P pointer, s and enc flag
mov edi,DWORD PTR 24[esp]
xor eax,eax
xor ebx,ebx
xor ecx,DWORD PTR 68[edi]
;
; Round 16
ror ecx,16
mov esi,DWORD PTR 64[edi]
mov al,ch
mov bl,cl
ror ecx,16
xor edx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,ch
mov bl,cl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor edx,esi
;
; Round 15
ror edx,16
mov esi,DWORD PTR 60[edi]
mov al,dh
mov bl,dl
ror edx,16
xor ecx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,dh
mov bl,dl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor ecx,esi
;
; Round 14
ror ecx,16
mov esi,DWORD PTR 56[edi]
mov al,ch
mov bl,cl
ror ecx,16
xor edx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,ch
mov bl,cl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor edx,esi
;
; Round 13
ror edx,16
mov esi,DWORD PTR 52[edi]
mov al,dh
mov bl,dl
ror edx,16
xor ecx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,dh
mov bl,dl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor ecx,esi
;
; Round 12
ror ecx,16
mov esi,DWORD PTR 48[edi]
mov al,ch
mov bl,cl
ror ecx,16
xor edx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,ch
mov bl,cl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor edx,esi
;
; Round 11
ror edx,16
mov esi,DWORD PTR 44[edi]
mov al,dh
mov bl,dl
ror edx,16
xor ecx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,dh
mov bl,dl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor ecx,esi
;
; Round 10
ror ecx,16
mov esi,DWORD PTR 40[edi]
mov al,ch
mov bl,cl
ror ecx,16
xor edx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,ch
mov bl,cl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor edx,esi
;
; Round 9
ror edx,16
mov esi,DWORD PTR 36[edi]
mov al,dh
mov bl,dl
ror edx,16
xor ecx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,dh
mov bl,dl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor ecx,esi
;
; Round 8
ror ecx,16
mov esi,DWORD PTR 32[edi]
mov al,ch
mov bl,cl
ror ecx,16
xor edx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,ch
mov bl,cl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor edx,esi
;
; Round 7
ror edx,16
mov esi,DWORD PTR 28[edi]
mov al,dh
mov bl,dl
ror edx,16
xor ecx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,dh
mov bl,dl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor ecx,esi
;
; Round 6
ror ecx,16
mov esi,DWORD PTR 24[edi]
mov al,ch
mov bl,cl
ror ecx,16
xor edx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,ch
mov bl,cl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor edx,esi
;
; Round 5
ror edx,16
mov esi,DWORD PTR 20[edi]
mov al,dh
mov bl,dl
ror edx,16
xor ecx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,dh
mov bl,dl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor ecx,esi
;
; Round 4
ror ecx,16
mov esi,DWORD PTR 16[edi]
mov al,ch
mov bl,cl
ror ecx,16
xor edx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,ch
mov bl,cl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor edx,esi
;
; Round 3
ror edx,16
mov esi,DWORD PTR 12[edi]
mov al,dh
mov bl,dl
ror edx,16
xor ecx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,dh
mov bl,dl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor ecx,esi
;
; Round 2
ror ecx,16
mov esi,DWORD PTR 8[edi]
mov al,ch
mov bl,cl
ror ecx,16
xor edx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,ch
mov bl,cl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor edx,esi
;
; Round 1
ror edx,16
mov esi,DWORD PTR 4[edi]
mov al,dh
mov bl,dl
ror edx,16
xor ecx,esi
mov esi,DWORD PTR 72[eax*4+edi]
mov ebp,DWORD PTR 1096[ebx*4+edi]
mov al,dh
mov bl,dl
add esi,ebp
mov eax,DWORD PTR 2120[eax*4+edi]
xor esi,eax
mov ebp,DWORD PTR 3144[ebx*4+edi]
add esi,ebp
xor eax,eax
xor ecx,esi
xor edx,DWORD PTR [edi]
mov eax,DWORD PTR 20[esp]
mov DWORD PTR [eax],edx
mov DWORD PTR 4[eax],ecx
pop edi
pop esi
pop ebx
pop ebp
ret
_BF_decrypt ENDP
ALIGN 16
_BF_cbc_encrypt PROC PUBLIC
$L_BF_cbc_encrypt_begin::
;
push ebp
push ebx
push esi
push edi
mov ebp,DWORD PTR 28[esp]
; getting iv ptr from parameter 4
mov ebx,DWORD PTR 36[esp]
mov esi,DWORD PTR [ebx]
mov edi,DWORD PTR 4[ebx]
push edi
push esi
push edi
push esi
mov ebx,esp
mov esi,DWORD PTR 36[esp]
mov edi,DWORD PTR 40[esp]
; getting encrypt flag from parameter 5
mov ecx,DWORD PTR 56[esp]
; get and push parameter 3
mov eax,DWORD PTR 48[esp]
push eax
push ebx
cmp ecx,0
jz $L000decrypt
and ebp,4294967288
mov eax,DWORD PTR 8[esp]
mov ebx,DWORD PTR 12[esp]
jz $L001encrypt_finish
$L002encrypt_loop:
mov ecx,DWORD PTR [esi]
mov edx,DWORD PTR 4[esi]
xor eax,ecx
xor ebx,edx
bswap eax
bswap ebx
mov DWORD PTR 8[esp],eax
mov DWORD PTR 12[esp],ebx
call $L_BF_encrypt_begin
mov eax,DWORD PTR 8[esp]
mov ebx,DWORD PTR 12[esp]
bswap eax
bswap ebx
mov DWORD PTR [edi],eax
mov DWORD PTR 4[edi],ebx
add esi,8
add edi,8
sub ebp,8
jnz $L002encrypt_loop
$L001encrypt_finish:
mov ebp,DWORD PTR 52[esp]
and ebp,7
jz $L003finish
call $L004PIC_point
$L004PIC_point:
pop edx
lea ecx,DWORD PTR ($L005cbc_enc_jmp_table-$L004PIC_point)[edx]
mov ebp,DWORD PTR [ebp*4+ecx]
add ebp,edx
xor ecx,ecx
xor edx,edx
jmp ebp
$L006ej7:
mov dh,BYTE PTR 6[esi]
shl edx,8
$L007ej6:
mov dh,BYTE PTR 5[esi]
$L008ej5:
mov dl,BYTE PTR 4[esi]
$L009ej4:
mov ecx,DWORD PTR [esi]
jmp $L010ejend
$L011ej3:
mov ch,BYTE PTR 2[esi]
shl ecx,8
$L012ej2:
mov ch,BYTE PTR 1[esi]
$L013ej1:
mov cl,BYTE PTR [esi]
$L010ejend:
xor eax,ecx
xor ebx,edx
bswap eax
bswap ebx
mov DWORD PTR 8[esp],eax
mov DWORD PTR 12[esp],ebx
call $L_BF_encrypt_begin
mov eax,DWORD PTR 8[esp]
mov ebx,DWORD PTR 12[esp]
bswap eax
bswap ebx
mov DWORD PTR [edi],eax
mov DWORD PTR 4[edi],ebx
jmp $L003finish
$L000decrypt:
and ebp,4294967288
mov eax,DWORD PTR 16[esp]
mov ebx,DWORD PTR 20[esp]
jz $L014decrypt_finish
$L015decrypt_loop:
mov eax,DWORD PTR [esi]
mov ebx,DWORD PTR 4[esi]
bswap eax
bswap ebx
mov DWORD PTR 8[esp],eax
mov DWORD PTR 12[esp],ebx
call $L_BF_decrypt_begin
mov eax,DWORD PTR 8[esp]
mov ebx,DWORD PTR 12[esp]
bswap eax
bswap ebx
mov ecx,DWORD PTR 16[esp]
mov edx,DWORD PTR 20[esp]
xor ecx,eax
xor edx,ebx
mov eax,DWORD PTR [esi]
mov ebx,DWORD PTR 4[esi]
mov DWORD PTR [edi],ecx
mov DWORD PTR 4[edi],edx
mov DWORD PTR 16[esp],eax
mov DWORD PTR 20[esp],ebx
add esi,8
add edi,8
sub ebp,8
jnz $L015decrypt_loop
$L014decrypt_finish:
mov ebp,DWORD PTR 52[esp]
and ebp,7
jz $L003finish
mov eax,DWORD PTR [esi]
mov ebx,DWORD PTR 4[esi]
bswap eax
bswap ebx
mov DWORD PTR 8[esp],eax
mov DWORD PTR 12[esp],ebx
call $L_BF_decrypt_begin
mov eax,DWORD PTR 8[esp]
mov ebx,DWORD PTR 12[esp]
bswap eax
bswap ebx
mov ecx,DWORD PTR 16[esp]
mov edx,DWORD PTR 20[esp]
xor ecx,eax
xor edx,ebx
mov eax,DWORD PTR [esi]
mov ebx,DWORD PTR 4[esi]
$L016dj7:
ror edx,16
mov BYTE PTR 6[edi],dl
shr edx,16
$L017dj6:
mov BYTE PTR 5[edi],dh
$L018dj5:
mov BYTE PTR 4[edi],dl
$L019dj4:
mov DWORD PTR [edi],ecx
jmp $L020djend
$L021dj3:
ror ecx,16
mov BYTE PTR 2[edi],cl
shl ecx,16
$L022dj2:
mov BYTE PTR 1[esi],ch
$L023dj1:
mov BYTE PTR [esi],cl
$L020djend:
jmp $L003finish
$L003finish:
mov ecx,DWORD PTR 60[esp]
add esp,24
mov DWORD PTR [ecx],eax
mov DWORD PTR 4[ecx],ebx
pop edi
pop esi
pop ebx
pop ebp
ret
ALIGN 64
$L005cbc_enc_jmp_table:
DD 0
DD $L013ej1-$L004PIC_point
DD $L012ej2-$L004PIC_point
DD $L011ej3-$L004PIC_point
DD $L009ej4-$L004PIC_point
DD $L008ej5-$L004PIC_point
DD $L007ej6-$L004PIC_point
DD $L006ej7-$L004PIC_point
ALIGN 64
_BF_cbc_encrypt ENDP
.text$ ENDS
END
| 16.802863 | 63 | 0.691093 |
c35c9c6d3186b2216d41d65fb4f1ac489b217c0b | 456 | asm | Assembly | lab_05/outputs2.asm | MrLIVB/BMSTU_MDPL | 37060559dee9c168f38b5f0a406a71eefc599e32 | [
"MIT"
] | null | null | null | lab_05/outputs2.asm | MrLIVB/BMSTU_MDPL | 37060559dee9c168f38b5f0a406a71eefc599e32 | [
"MIT"
] | null | null | null | lab_05/outputs2.asm | MrLIVB/BMSTU_MDPL | 37060559dee9c168f38b5f0a406a71eefc599e32 | [
"MIT"
] | null | null | null | EXTRN num: word
STK SEGMENT para STACK 'STACK'
db 100 dup(0)
STK ENDS
CSEG SEGMENT para public 'CODE'
assume CS: CSEG
outputs2:
mov dl, 0ah
mov ah, 02
int 21h
xor ax, ax
mov ax, num
xor cx, cx
mov bx, 2
transform1:
xor dx, dx
div bx
push dx
inc cx
test ax, ax
jnz transform1
mov ah, 2
output2:
pop bx
add bx, 30h
mov dl, bl
int 21h
loop output2
mov dl, 0ah
mov ah, 02
int 21h
ret
CSEG ENDS
PUBLIC outputs2
END outputs2 | 10.604651 | 31 | 0.673246 |
ad80697401c465aa3a3d538f392d920c6d037230 | 448 | asm | Assembly | oeis/065/A065516.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/065/A065516.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/065/A065516.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A065516: Differences between products of 2 primes.
; Submitted by Jon Maiga
; 2,3,1,4,1,6,1,3,1,7,1,1,3,1,7,3,2,4,2,1,4,3,4,5,3,5,3,1,1,4,2,1,1,11,5,4,3,1,2,1,1,6,4,1,7,1,1,2,1,9,3,1,2,5,3,8,1,5,2,2,7,7,1,1,2,1,3,4,1,1,2,1,1,2,5,9,2,10,2,4,1,5,3,3,2,7,4,9,2,2,4,3,1,2,1,1,2,4,5,5
mov $2,$0
mov $3,2
lpb $3
mov $0,$2
add $1,$4
sub $3,1
add $0,$3
seq $0,88707 ; Semiprimes + 1.
sub $0,1
gcd $2,$1
mov $4,$0
lpe
sub $1,$0
mov $0,$1
| 23.578947 | 203 | 0.546875 |
0bc5a268663dff992045ef32d69b49f1d7a0fcea | 49,084 | asm | Assembly | P6/data_P6/testpoint/testpoint66.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | 1 | 2022-01-23T09:24:47.000Z | 2022-01-23T09:24:47.000Z | P6/data_P6/testpoint/testpoint66.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | null | null | null | P6/data_P6/testpoint/testpoint66.asm | alxzzhou/BUAA_CO_2020 | b54bf367081a5a11701ebc3fc78a23494aecca9e | [
"Apache-2.0"
] | null | null | null | ori $1, $0, 4
ori $2, $0, 11
ori $3, $0, 5
ori $4, $0, 1
sw $1, 0($0)
sw $2, 4($0)
sw $3, 8($0)
sw $2, 12($0)
sw $1, 16($0)
sw $1, 20($0)
sw $1, 24($0)
sw $4, 28($0)
sw $4, 32($0)
sw $2, 36($0)
sw $1, 40($0)
sw $1, 44($0)
sw $2, 48($0)
sw $1, 52($0)
sw $3, 56($0)
sw $3, 60($0)
sw $4, 64($0)
sw $3, 68($0)
sw $4, 72($0)
sw $3, 76($0)
sw $2, 80($0)
sw $1, 84($0)
sw $2, 88($0)
sw $3, 92($0)
sw $2, 96($0)
sw $4, 100($0)
sw $2, 104($0)
sw $1, 108($0)
sw $3, 112($0)
sw $4, 116($0)
sw $1, 120($0)
sw $1, 124($0)
lui $3, 1
mfhi $2
mthi $2
multu $2, $2
TAG1:
bne $2, $2, TAG2
lui $1, 10
beq $1, $2, TAG2
mthi $1
TAG2:
bgez $1, TAG3
mfhi $1
sb $1, 0($1)
nor $3, $1, $1
TAG3:
lui $4, 9
multu $4, $4
sll $0, $0, 0
bltz $1, TAG4
TAG4:
andi $2, $1, 9
subu $3, $2, $2
sh $2, 0($2)
blez $3, TAG5
TAG5:
multu $3, $3
multu $3, $3
mult $3, $3
mtlo $3
TAG6:
beq $3, $3, TAG7
subu $3, $3, $3
mtlo $3
andi $4, $3, 4
TAG7:
mfhi $4
blez $4, TAG8
lw $3, 0($4)
lbu $3, 0($4)
TAG8:
multu $3, $3
mfhi $1
sll $1, $3, 12
sb $1, 0($1)
TAG9:
mult $1, $1
lbu $1, 0($1)
and $3, $1, $1
sw $3, 0($1)
TAG10:
bne $3, $3, TAG11
lbu $2, 0($3)
multu $2, $2
lh $1, 0($3)
TAG11:
mfhi $1
bgtz $1, TAG12
multu $1, $1
mthi $1
TAG12:
srlv $4, $1, $1
lh $1, 0($4)
sw $1, 0($1)
lb $3, 0($1)
TAG13:
srl $2, $3, 14
mfhi $4
sh $2, 0($4)
mthi $3
TAG14:
mfhi $4
mfhi $4
sb $4, 0($4)
sh $4, 0($4)
TAG15:
xor $3, $4, $4
mflo $2
bne $4, $4, TAG16
mthi $2
TAG16:
multu $2, $2
lui $2, 14
divu $2, $2
div $2, $2
TAG17:
mult $2, $2
lui $2, 10
andi $2, $2, 3
lui $4, 10
TAG18:
beq $4, $4, TAG19
sll $0, $0, 0
lui $3, 2
lhu $1, 0($3)
TAG19:
lui $1, 15
lui $3, 14
multu $3, $3
srlv $4, $3, $1
TAG20:
andi $2, $4, 7
sll $0, $0, 0
beq $4, $3, TAG21
mthi $4
TAG21:
blez $3, TAG22
mult $3, $3
srl $3, $3, 11
div $3, $3
TAG22:
multu $3, $3
sw $3, -448($3)
bgtz $3, TAG23
xori $1, $3, 3
TAG23:
sltiu $3, $1, 12
blez $3, TAG24
lui $4, 10
mfhi $1
TAG24:
mthi $1
mfhi $4
andi $4, $4, 11
lui $1, 9
TAG25:
blez $1, TAG26
slt $4, $1, $1
bne $4, $1, TAG26
mthi $4
TAG26:
mflo $2
mfhi $4
mthi $4
mult $2, $4
TAG27:
or $2, $4, $4
lbu $3, 0($4)
lb $3, -192($3)
ori $4, $3, 10
TAG28:
mthi $4
mthi $4
sb $4, 54($4)
mthi $4
TAG29:
lui $3, 1
sll $0, $0, 0
xori $3, $3, 9
sb $4, 54($4)
TAG30:
sll $0, $0, 0
mflo $4
bltz $4, TAG31
sll $0, $0, 0
TAG31:
mthi $1
lui $2, 4
srlv $1, $1, $1
sll $3, $2, 2
TAG32:
ori $3, $3, 15
bne $3, $3, TAG33
lui $3, 14
bne $3, $3, TAG33
TAG33:
and $3, $3, $3
beq $3, $3, TAG34
addu $2, $3, $3
or $3, $2, $3
TAG34:
multu $3, $3
beq $3, $3, TAG35
lui $2, 1
subu $1, $2, $3
TAG35:
sll $0, $0, 0
addiu $4, $1, 10
mthi $1
mult $4, $1
TAG36:
mflo $3
sll $0, $0, 0
mtlo $3
bltz $3, TAG37
TAG37:
lui $1, 13
divu $1, $1
bne $1, $1, TAG38
mfhi $4
TAG38:
sh $4, 0($4)
mflo $2
lw $1, 0($4)
bltz $4, TAG39
TAG39:
mthi $1
mflo $4
multu $4, $1
mtlo $4
TAG40:
blez $4, TAG41
mthi $4
bltz $4, TAG41
lui $3, 1
TAG41:
bgtz $3, TAG42
sll $0, $0, 0
ori $2, $3, 13
lw $2, 0($3)
TAG42:
andi $2, $2, 12
mult $2, $2
add $4, $2, $2
lw $3, 0($4)
TAG43:
lui $3, 8
lui $1, 4
blez $1, TAG44
and $2, $3, $1
TAG44:
bgtz $2, TAG45
mfhi $4
mthi $2
mflo $3
TAG45:
or $1, $3, $3
mfhi $2
bgez $3, TAG46
lui $2, 5
TAG46:
mfhi $3
sh $3, 0($3)
sw $3, 0($3)
beq $2, $2, TAG47
TAG47:
sh $3, 0($3)
mflo $4
lw $1, 0($3)
bgtz $3, TAG48
TAG48:
xor $4, $1, $1
mthi $4
lui $3, 12
lhu $3, 0($4)
TAG49:
blez $3, TAG50
lui $3, 13
sltiu $4, $3, 5
beq $3, $4, TAG50
TAG50:
lui $2, 2
sllv $1, $2, $4
sll $0, $0, 0
sll $0, $0, 0
TAG51:
lui $4, 11
sll $0, $0, 0
sll $0, $0, 0
bne $3, $3, TAG52
TAG52:
divu $2, $2
bne $2, $2, TAG53
lui $2, 11
nor $1, $2, $2
TAG53:
subu $2, $1, $1
multu $1, $2
add $1, $2, $1
lbu $4, 0($2)
TAG54:
multu $4, $4
mthi $4
beq $4, $4, TAG55
lui $4, 15
TAG55:
bne $4, $4, TAG56
sll $0, $0, 0
mflo $4
lui $3, 10
TAG56:
sll $0, $0, 0
bgez $3, TAG57
sll $0, $0, 0
mfhi $3
TAG57:
mfhi $4
sll $0, $0, 0
lhu $4, 0($4)
beq $4, $4, TAG58
TAG58:
lui $4, 4
addiu $1, $4, 14
sll $0, $0, 0
mfhi $2
TAG59:
bgtz $2, TAG60
sb $2, 0($2)
mflo $3
sw $2, 0($3)
TAG60:
sra $3, $3, 8
lui $1, 15
ori $2, $3, 0
bgez $2, TAG61
TAG61:
lui $2, 11
sll $0, $0, 0
bne $2, $2, TAG62
srl $1, $2, 5
TAG62:
or $3, $1, $1
mflo $2
sw $1, 0($2)
lh $4, -22528($3)
TAG63:
lui $4, 11
mfhi $1
nor $2, $4, $4
sll $0, $0, 0
TAG64:
bltz $4, TAG65
mtlo $4
lui $4, 14
srlv $2, $4, $4
TAG65:
divu $2, $2
mfhi $4
mthi $2
mtlo $2
TAG66:
lui $1, 11
slti $1, $4, 1
lui $3, 8
mtlo $1
TAG67:
div $3, $3
mflo $4
mthi $3
sra $2, $4, 10
TAG68:
mtlo $2
lb $4, 0($2)
mthi $4
bltz $4, TAG69
TAG69:
mthi $4
mult $4, $4
bgtz $4, TAG70
sra $3, $4, 2
TAG70:
bltz $3, TAG71
sh $3, 0($3)
lh $2, 0($3)
mult $3, $3
TAG71:
sh $2, 0($2)
mfhi $1
bgez $2, TAG72
lui $1, 11
TAG72:
lui $3, 11
addiu $2, $1, 0
mfhi $1
lhu $3, 0($1)
TAG73:
lh $2, 0($3)
bltz $2, TAG74
lb $3, 0($3)
lhu $2, 0($3)
TAG74:
add $4, $2, $2
blez $2, TAG75
srav $4, $2, $2
mfhi $4
TAG75:
multu $4, $4
lui $3, 3
mtlo $4
lui $1, 4
TAG76:
addiu $4, $1, 15
mflo $2
bltz $4, TAG77
mflo $2
TAG77:
srlv $1, $2, $2
lw $3, 0($2)
lhu $2, 0($3)
mfhi $4
TAG78:
multu $4, $4
bgtz $4, TAG79
addi $2, $4, 12
sh $2, 0($4)
TAG79:
sb $2, 0($2)
mtlo $2
sb $2, 0($2)
divu $2, $2
TAG80:
lui $1, 0
bgtz $1, TAG81
multu $2, $1
mtlo $1
TAG81:
ori $2, $1, 14
srav $3, $2, $1
or $1, $2, $1
mtlo $1
TAG82:
sh $1, 0($1)
bltz $1, TAG83
mult $1, $1
divu $1, $1
TAG83:
lui $4, 5
xor $3, $4, $4
mthi $4
lhu $2, 0($3)
TAG84:
srlv $2, $2, $2
sb $2, 0($2)
mult $2, $2
andi $1, $2, 10
TAG85:
sh $1, 0($1)
sub $1, $1, $1
mult $1, $1
mfhi $2
TAG86:
bltz $2, TAG87
lui $1, 15
beq $2, $2, TAG87
andi $3, $1, 0
TAG87:
lui $1, 12
mthi $3
or $1, $1, $3
mfhi $1
TAG88:
lui $1, 2
mtlo $1
addiu $1, $1, 2
addiu $1, $1, 10
TAG89:
lui $1, 14
sll $1, $1, 13
sll $0, $0, 0
mflo $2
TAG90:
lui $2, 14
ori $2, $2, 14
sll $0, $0, 0
mthi $2
TAG91:
bltz $4, TAG92
mult $4, $4
mult $4, $4
mtlo $4
TAG92:
srl $4, $4, 9
lui $4, 7
sll $0, $0, 0
mflo $2
TAG93:
lui $3, 3
beq $2, $2, TAG94
mtlo $2
addi $1, $3, 13
TAG94:
slt $2, $1, $1
sra $2, $2, 9
bltz $2, TAG95
and $4, $2, $2
TAG95:
bne $4, $4, TAG96
srlv $2, $4, $4
mfhi $3
lh $1, 0($4)
TAG96:
sll $3, $1, 1
mflo $3
ori $2, $3, 10
slt $3, $3, $2
TAG97:
or $3, $3, $3
lui $3, 3
sll $0, $0, 0
sltu $4, $4, $3
TAG98:
lui $2, 2
beq $4, $4, TAG99
mthi $4
sra $2, $4, 14
TAG99:
andi $3, $2, 13
bgtz $3, TAG100
mfhi $4
sll $0, $0, 0
TAG100:
mthi $4
lui $1, 3
srl $4, $1, 4
mfhi $4
TAG101:
bne $4, $4, TAG102
sb $4, 0($4)
lbu $1, 0($4)
multu $1, $4
TAG102:
lb $2, 0($1)
lb $3, 0($2)
or $2, $2, $1
lbu $1, 0($3)
TAG103:
lui $2, 3
sra $4, $1, 15
sltu $1, $1, $1
subu $3, $1, $1
TAG104:
lui $3, 14
subu $2, $3, $3
mtlo $2
multu $2, $3
TAG105:
mflo $2
mult $2, $2
mtlo $2
sh $2, 0($2)
TAG106:
sb $2, 0($2)
mflo $1
lb $2, 0($2)
bne $2, $1, TAG107
TAG107:
multu $2, $2
beq $2, $2, TAG108
nor $3, $2, $2
beq $3, $3, TAG108
TAG108:
sb $3, 1($3)
sh $3, 1($3)
subu $3, $3, $3
mflo $2
TAG109:
lui $3, 1
sll $0, $0, 0
bltz $3, TAG110
lbu $3, 0($2)
TAG110:
subu $3, $3, $3
sltiu $3, $3, 7
bgez $3, TAG111
mflo $2
TAG111:
lw $3, 0($2)
multu $2, $2
beq $3, $2, TAG112
lui $3, 5
TAG112:
mthi $3
sll $0, $0, 0
mflo $3
mthi $3
TAG113:
multu $3, $3
mfhi $2
mfhi $3
lw $3, 0($3)
TAG114:
mthi $3
div $3, $3
mthi $3
sll $0, $0, 0
TAG115:
addiu $4, $3, 7
srl $3, $4, 10
lw $4, 0($3)
sh $3, 0($3)
TAG116:
beq $4, $4, TAG117
mthi $4
addiu $2, $4, 14
multu $4, $4
TAG117:
sw $2, 0($2)
bne $2, $2, TAG118
mfhi $1
mfhi $1
TAG118:
beq $1, $1, TAG119
lui $1, 11
lh $1, 0($1)
lh $1, 0($1)
TAG119:
sll $0, $0, 0
beq $1, $1, TAG120
sll $1, $1, 9
beq $1, $1, TAG120
TAG120:
sll $0, $0, 0
lui $4, 7
mtlo $4
sll $0, $0, 0
TAG121:
lui $2, 15
multu $2, $4
mtlo $2
sll $0, $0, 0
TAG122:
mtlo $4
addu $4, $4, $4
bne $4, $4, TAG123
subu $3, $4, $4
TAG123:
lw $1, 0($3)
mthi $1
lb $3, 0($3)
mult $3, $3
TAG124:
mflo $2
mthi $3
mtlo $2
addu $1, $3, $3
TAG125:
multu $1, $1
lui $1, 8
srlv $3, $1, $1
lui $2, 8
TAG126:
beq $2, $2, TAG127
mult $2, $2
lb $3, 0($2)
bltz $3, TAG127
TAG127:
lui $4, 0
addiu $3, $3, 7
addu $3, $4, $3
sll $3, $3, 10
TAG128:
srl $1, $3, 2
beq $1, $1, TAG129
sll $0, $0, 0
beq $2, $1, TAG129
TAG129:
and $2, $2, $2
beq $2, $2, TAG130
lui $3, 6
mfhi $3
TAG130:
bgez $3, TAG131
mflo $4
bne $3, $3, TAG131
mflo $4
TAG131:
addu $1, $4, $4
mtlo $1
lui $2, 10
blez $2, TAG132
TAG132:
sll $0, $0, 0
multu $2, $1
lui $2, 2
bgez $2, TAG133
TAG133:
sll $0, $0, 0
div $2, $2
slti $4, $2, 11
mfhi $3
TAG134:
mflo $2
bltz $2, TAG135
mflo $4
mflo $2
TAG135:
lb $1, 0($2)
beq $2, $1, TAG136
mflo $1
bne $2, $2, TAG136
TAG136:
sb $1, 0($1)
lui $4, 10
div $4, $4
lui $3, 13
TAG137:
sll $0, $0, 0
lui $4, 2
mtlo $4
divu $4, $4
TAG138:
sll $0, $0, 0
sll $0, $0, 0
mfhi $4
mult $2, $2
TAG139:
bne $4, $4, TAG140
multu $4, $4
xor $4, $4, $4
sw $4, 0($4)
TAG140:
sh $4, 0($4)
slt $1, $4, $4
mflo $4
bgez $1, TAG141
TAG141:
srl $1, $4, 4
xori $3, $1, 7
mult $3, $4
slti $2, $1, 10
TAG142:
mthi $2
mflo $2
bgtz $2, TAG143
slti $3, $2, 15
TAG143:
or $2, $3, $3
sltu $2, $3, $3
sb $3, 0($2)
bne $3, $2, TAG144
TAG144:
sllv $2, $2, $2
bne $2, $2, TAG145
addi $3, $2, 2
lui $2, 8
TAG145:
or $1, $2, $2
bltz $1, TAG146
mthi $2
beq $1, $1, TAG146
TAG146:
mflo $1
lb $1, 0($1)
beq $1, $1, TAG147
mthi $1
TAG147:
mflo $4
lui $3, 6
bltz $1, TAG148
srav $1, $1, $1
TAG148:
mult $1, $1
sh $1, 0($1)
sltiu $4, $1, 8
bgtz $1, TAG149
TAG149:
mthi $4
mtlo $4
sra $3, $4, 0
lui $4, 5
TAG150:
mtlo $4
mult $4, $4
sll $0, $0, 0
sltu $3, $2, $4
TAG151:
mult $3, $3
sh $3, 0($3)
multu $3, $3
lhu $4, 0($3)
TAG152:
mfhi $1
beq $4, $4, TAG153
addi $4, $4, 14
divu $4, $1
TAG153:
bgez $4, TAG154
divu $4, $4
bgtz $4, TAG154
srl $1, $4, 0
TAG154:
mthi $1
addiu $2, $1, 1
bne $2, $1, TAG155
sb $2, 0($2)
TAG155:
beq $2, $2, TAG156
divu $2, $2
mfhi $1
sh $2, 0($2)
TAG156:
mflo $2
mthi $1
mtlo $2
multu $2, $1
TAG157:
beq $2, $2, TAG158
slt $4, $2, $2
andi $1, $4, 6
beq $4, $4, TAG158
TAG158:
lui $3, 15
sll $0, $0, 0
sw $3, 0($1)
xori $4, $1, 12
TAG159:
div $4, $4
lui $3, 12
lui $2, 6
sw $4, 0($4)
TAG160:
sll $0, $0, 0
lui $4, 12
mthi $2
bgtz $3, TAG161
TAG161:
sll $0, $0, 0
lui $4, 15
lui $1, 11
lui $1, 9
TAG162:
lui $1, 13
mfhi $2
lui $1, 9
sltu $3, $1, $2
TAG163:
bgez $3, TAG164
slti $3, $3, 8
lui $4, 8
mfhi $4
TAG164:
sll $0, $0, 0
mtlo $4
sltiu $3, $4, 11
bne $3, $3, TAG165
TAG165:
mfhi $4
mtlo $3
sllv $2, $3, $3
bne $4, $2, TAG166
TAG166:
multu $2, $2
xori $4, $2, 3
sh $4, 0($2)
mthi $2
TAG167:
bltz $4, TAG168
addu $3, $4, $4
mult $3, $3
bne $3, $3, TAG168
TAG168:
mfhi $3
sw $3, 0($3)
mflo $2
slti $3, $2, 2
TAG169:
sh $3, 0($3)
bgez $3, TAG170
sb $3, 0($3)
lui $1, 11
TAG170:
sll $0, $0, 0
bgez $1, TAG171
sll $0, $0, 0
ori $2, $2, 3
TAG171:
mthi $2
lhu $1, 0($2)
lui $1, 1
beq $2, $1, TAG172
TAG172:
sll $0, $0, 0
sllv $4, $1, $1
sll $0, $0, 0
mtlo $1
TAG173:
bgez $4, TAG174
mtlo $4
addi $1, $4, 4
lbu $3, 0($4)
TAG174:
bgtz $3, TAG175
sw $3, 0($3)
xori $4, $3, 13
xori $2, $3, 5
TAG175:
div $2, $2
subu $3, $2, $2
mult $2, $3
bne $3, $2, TAG176
TAG176:
mfhi $4
mtlo $4
mfhi $1
or $2, $3, $1
TAG177:
lw $4, 0($2)
sb $2, 0($4)
lhu $2, 0($2)
sltu $3, $4, $2
TAG178:
lw $2, 0($3)
lh $2, 0($3)
addiu $3, $2, 8
sw $2, 0($3)
TAG179:
addiu $4, $3, 5
sb $3, 0($4)
div $4, $4
mflo $1
TAG180:
beq $1, $1, TAG181
or $3, $1, $1
mflo $1
mtlo $3
TAG181:
xor $1, $1, $1
lbu $1, 0($1)
sw $1, 0($1)
sltiu $2, $1, 15
TAG182:
div $2, $2
sb $2, 0($2)
mtlo $2
bne $2, $2, TAG183
TAG183:
mthi $2
beq $2, $2, TAG184
mflo $3
bne $2, $2, TAG184
TAG184:
lbu $2, 0($3)
lui $4, 9
mthi $2
divu $3, $3
TAG185:
bne $4, $4, TAG186
mflo $4
lui $2, 7
lui $2, 0
TAG186:
bgez $2, TAG187
multu $2, $2
bltz $2, TAG187
div $2, $2
TAG187:
lb $1, 0($2)
mult $2, $1
srlv $1, $2, $1
bne $2, $1, TAG188
TAG188:
sb $1, 0($1)
sw $1, 0($1)
mult $1, $1
lui $4, 11
TAG189:
xori $4, $4, 10
multu $4, $4
mult $4, $4
blez $4, TAG190
TAG190:
mthi $4
mult $4, $4
addiu $1, $4, 6
multu $4, $4
TAG191:
sll $0, $0, 0
srl $4, $1, 6
sll $2, $4, 9
mthi $4
TAG192:
bne $2, $2, TAG193
mtlo $2
sll $4, $2, 8
divu $4, $4
TAG193:
bltz $4, TAG194
sll $0, $0, 0
sll $0, $0, 0
lui $4, 7
TAG194:
sltiu $4, $4, 10
sltiu $1, $4, 14
mthi $4
lh $1, 0($4)
TAG195:
lui $4, 3
mtlo $4
sll $0, $0, 0
bne $1, $4, TAG196
TAG196:
addu $3, $4, $4
beq $4, $4, TAG197
mtlo $4
sll $2, $4, 10
TAG197:
bltz $2, TAG198
lui $3, 14
mtlo $2
sll $0, $0, 0
TAG198:
bgtz $4, TAG199
addu $4, $4, $4
beq $4, $4, TAG199
mthi $4
TAG199:
sra $2, $4, 11
beq $2, $2, TAG200
mthi $4
bne $2, $4, TAG200
TAG200:
mfhi $2
sll $0, $0, 0
srl $2, $2, 6
nor $3, $2, $2
TAG201:
addiu $2, $3, 8
sw $3, 6137($2)
sll $2, $2, 12
lui $3, 8
TAG202:
beq $3, $3, TAG203
sll $0, $0, 0
bltz $3, TAG203
mflo $4
TAG203:
mfhi $3
sltiu $1, $4, 10
multu $4, $3
mtlo $3
TAG204:
mthi $1
beq $1, $1, TAG205
multu $1, $1
mtlo $1
TAG205:
lui $3, 10
lui $2, 3
lui $3, 9
beq $3, $2, TAG206
TAG206:
addiu $1, $3, 1
srl $1, $1, 2
beq $1, $3, TAG207
divu $3, $3
TAG207:
lui $2, 4
sra $1, $1, 2
lui $1, 6
bgez $1, TAG208
TAG208:
mflo $4
andi $1, $1, 10
multu $1, $1
xor $1, $1, $1
TAG209:
sra $1, $1, 2
bne $1, $1, TAG210
lb $4, 0($1)
sw $1, 0($1)
TAG210:
sb $4, 1($4)
mthi $4
lui $4, 13
mult $4, $4
TAG211:
mflo $3
mflo $1
sw $3, 0($1)
mfhi $4
TAG212:
mthi $4
addiu $4, $4, 15
sltiu $4, $4, 9
beq $4, $4, TAG213
TAG213:
lb $4, 0($4)
mfhi $1
sb $4, 0($4)
mtlo $4
TAG214:
sll $0, $0, 0
lui $3, 0
mthi $4
srav $1, $1, $1
TAG215:
blez $1, TAG216
ori $2, $1, 14
multu $1, $2
bne $1, $2, TAG216
TAG216:
lui $2, 5
mthi $2
mtlo $2
slt $1, $2, $2
TAG217:
mult $1, $1
lw $2, 0($1)
mthi $1
sb $2, 0($1)
TAG218:
sub $3, $2, $2
sb $3, 0($2)
srlv $1, $3, $2
sb $1, 0($1)
TAG219:
sh $1, 0($1)
mflo $2
multu $1, $1
blez $1, TAG220
TAG220:
lw $3, 0($2)
sw $2, 0($2)
sll $2, $2, 11
mult $2, $3
TAG221:
blez $2, TAG222
lh $1, 0($2)
mult $1, $2
mthi $1
TAG222:
mfhi $1
multu $1, $1
blez $1, TAG223
addi $4, $1, 13
TAG223:
bne $4, $4, TAG224
div $4, $4
lui $1, 8
sb $4, 0($4)
TAG224:
beq $1, $1, TAG225
sll $0, $0, 0
lh $1, 0($1)
bgtz $1, TAG225
TAG225:
lui $3, 0
bgez $3, TAG226
sll $0, $0, 0
div $3, $1
TAG226:
sh $3, 0($3)
mult $3, $3
bne $3, $3, TAG227
mthi $3
TAG227:
lui $3, 8
mult $3, $3
lui $1, 4
sll $0, $0, 0
TAG228:
sll $0, $0, 0
multu $1, $1
sll $0, $0, 0
multu $2, $1
TAG229:
bne $2, $2, TAG230
srav $2, $2, $2
sltu $4, $2, $2
mult $2, $2
TAG230:
lb $4, 0($4)
lui $4, 8
divu $4, $4
sll $0, $0, 0
TAG231:
lui $1, 1
bltz $1, TAG232
sltu $3, $1, $4
nor $1, $4, $4
TAG232:
sll $0, $0, 0
divu $1, $1
sll $0, $0, 0
sll $0, $0, 0
TAG233:
slti $2, $4, 10
bltz $2, TAG234
sllv $3, $4, $4
lui $2, 13
TAG234:
subu $4, $2, $2
mtlo $2
lui $1, 6
bgez $4, TAG235
TAG235:
sll $0, $0, 0
sll $0, $0, 0
slt $4, $1, $1
mfhi $2
TAG236:
bne $2, $2, TAG237
mtlo $2
lhu $1, 0($2)
multu $1, $2
TAG237:
xor $2, $1, $1
addiu $4, $1, 6
mflo $4
lui $1, 4
TAG238:
lui $1, 5
sll $0, $0, 0
bltz $1, TAG239
andi $3, $1, 0
TAG239:
bgez $3, TAG240
slti $1, $3, 10
bltz $3, TAG240
sh $1, 0($1)
TAG240:
addiu $1, $1, 14
divu $1, $1
mthi $1
beq $1, $1, TAG241
TAG241:
addu $4, $1, $1
div $1, $1
slt $3, $4, $4
mult $1, $4
TAG242:
xor $1, $3, $3
lw $4, 0($3)
ori $1, $4, 0
mfhi $4
TAG243:
mflo $1
lui $2, 2
mthi $4
blez $2, TAG244
TAG244:
sll $0, $0, 0
xor $2, $3, $2
subu $4, $3, $2
mfhi $4
TAG245:
sw $4, 0($4)
mflo $1
sh $4, 0($4)
mult $1, $1
TAG246:
mult $1, $1
xori $2, $1, 10
bltz $1, TAG247
lui $1, 9
TAG247:
mtlo $1
sll $0, $0, 0
sb $1, -456($2)
bne $2, $2, TAG248
TAG248:
divu $2, $2
addu $2, $2, $2
mflo $2
sltu $3, $2, $2
TAG249:
nor $1, $3, $3
sll $4, $3, 7
mult $4, $4
sw $1, 1($1)
TAG250:
sb $4, 0($4)
sw $4, 0($4)
sw $4, 0($4)
sltu $4, $4, $4
TAG251:
multu $4, $4
srav $3, $4, $4
addiu $1, $3, 9
add $3, $4, $3
TAG252:
mfhi $3
slt $3, $3, $3
mthi $3
lui $4, 8
TAG253:
bgez $4, TAG254
div $4, $4
multu $4, $4
beq $4, $4, TAG254
TAG254:
divu $4, $4
beq $4, $4, TAG255
sllv $3, $4, $4
lui $3, 13
TAG255:
sll $0, $0, 0
sllv $3, $3, $3
mtlo $3
sll $0, $0, 0
TAG256:
multu $3, $3
subu $4, $3, $3
sll $0, $0, 0
multu $3, $3
TAG257:
addu $1, $4, $4
mthi $4
sltiu $1, $1, 14
lbu $2, 0($1)
TAG258:
bne $2, $2, TAG259
mthi $2
sltu $3, $2, $2
mtlo $3
TAG259:
blez $3, TAG260
subu $3, $3, $3
beq $3, $3, TAG260
divu $3, $3
TAG260:
lui $1, 0
lbu $2, 0($3)
lui $2, 7
bgtz $2, TAG261
TAG261:
div $2, $2
lui $3, 9
sll $0, $0, 0
sll $0, $0, 0
TAG262:
sltiu $1, $2, 15
mthi $2
blez $2, TAG263
subu $4, $2, $2
TAG263:
mtlo $4
ori $2, $4, 13
mult $2, $4
addiu $4, $2, 2
TAG264:
bltz $4, TAG265
slti $2, $4, 15
sh $4, 0($2)
lw $2, 0($2)
TAG265:
lui $3, 11
divu $2, $3
div $2, $3
lui $2, 0
TAG266:
sb $2, 0($2)
beq $2, $2, TAG267
mthi $2
srlv $3, $2, $2
TAG267:
sll $0, $0, 0
sll $0, $0, 0
lui $2, 14
multu $2, $2
TAG268:
bltz $2, TAG269
mflo $4
sll $0, $0, 0
bne $4, $2, TAG269
TAG269:
mflo $1
sb $1, 0($1)
add $4, $1, $3
mflo $2
TAG270:
mtlo $2
mflo $4
mflo $4
multu $4, $2
TAG271:
sh $4, 0($4)
sh $4, 0($4)
sh $4, 0($4)
sw $4, 0($4)
TAG272:
lui $2, 10
lui $1, 5
mult $2, $4
blez $4, TAG273
TAG273:
sll $0, $0, 0
divu $1, $1
bgez $1, TAG274
andi $4, $1, 9
TAG274:
subu $4, $4, $4
lui $3, 3
multu $3, $4
srav $1, $4, $3
TAG275:
mtlo $1
sh $1, 0($1)
bne $1, $1, TAG276
lui $4, 4
TAG276:
lui $1, 9
sll $0, $0, 0
bne $4, $1, TAG277
mult $4, $4
TAG277:
andi $2, $4, 7
bgez $4, TAG278
divu $2, $4
lw $4, 0($2)
TAG278:
sra $2, $4, 13
subu $2, $4, $4
andi $1, $4, 3
xor $1, $4, $1
TAG279:
mflo $3
bgtz $1, TAG280
mult $1, $3
sb $1, 0($3)
TAG280:
mtlo $3
slti $3, $3, 10
bgtz $3, TAG281
mflo $2
TAG281:
lw $4, 0($2)
mthi $2
mflo $2
mthi $2
TAG282:
lbu $3, 0($2)
srlv $4, $3, $3
mtlo $3
bne $3, $3, TAG283
TAG283:
mthi $4
lui $3, 10
mflo $1
bgez $3, TAG284
TAG284:
multu $1, $1
blez $1, TAG285
lw $1, 0($1)
mtlo $1
TAG285:
mflo $4
lh $4, 0($4)
mult $1, $1
mult $4, $1
TAG286:
sll $2, $4, 1
mthi $2
sw $4, 0($4)
beq $4, $4, TAG287
TAG287:
mflo $3
sw $2, 0($2)
mfhi $2
mthi $2
TAG288:
addiu $2, $2, 14
bgez $2, TAG289
nor $2, $2, $2
bne $2, $2, TAG289
TAG289:
sw $2, 15($2)
sh $2, 15($2)
beq $2, $2, TAG290
lui $1, 6
TAG290:
mfhi $4
div $4, $1
sllv $4, $4, $1
lh $2, 0($4)
TAG291:
ori $4, $2, 9
lhu $2, 7($4)
slti $1, $4, 13
andi $2, $2, 0
TAG292:
mthi $2
slti $2, $2, 0
multu $2, $2
lw $1, 0($2)
TAG293:
lui $4, 5
beq $4, $1, TAG294
lui $1, 2
multu $4, $1
TAG294:
slti $2, $1, 15
or $4, $1, $2
beq $4, $1, TAG295
sll $1, $4, 12
TAG295:
mfhi $3
bgez $1, TAG296
mtlo $3
sw $1, 0($3)
TAG296:
mtlo $3
lh $4, 0($3)
lui $2, 9
sll $0, $0, 0
TAG297:
mtlo $2
bgtz $2, TAG298
mfhi $1
srl $3, $1, 11
TAG298:
srlv $2, $3, $3
sb $3, 0($2)
multu $3, $2
sw $2, 0($2)
TAG299:
lb $4, 0($2)
mfhi $2
srlv $2, $2, $4
sh $2, 0($2)
TAG300:
nor $3, $2, $2
mthi $2
bgez $3, TAG301
lui $4, 15
TAG301:
sll $0, $0, 0
mtlo $1
sll $0, $0, 0
slti $1, $4, 13
TAG302:
addiu $4, $1, 6
mfhi $1
bgtz $1, TAG303
slt $3, $1, $1
TAG303:
multu $3, $3
multu $3, $3
lui $1, 8
lui $2, 4
TAG304:
mfhi $2
sltu $3, $2, $2
mtlo $3
sw $2, 0($2)
TAG305:
lui $4, 7
mflo $1
blez $3, TAG306
lb $3, 0($3)
TAG306:
sh $3, 0($3)
sb $3, 0($3)
mfhi $4
addi $2, $4, 8
TAG307:
div $2, $2
sh $2, 0($2)
or $1, $2, $2
addiu $3, $1, 11
TAG308:
divu $3, $3
mtlo $3
sb $3, 0($3)
mtlo $3
TAG309:
lui $2, 12
addu $2, $3, $2
bltz $3, TAG310
sll $0, $0, 0
TAG310:
sll $0, $0, 0
mtlo $4
blez $2, TAG311
lw $3, 0($4)
TAG311:
mfhi $1
mult $3, $1
lbu $2, 0($1)
lui $3, 10
TAG312:
bgtz $3, TAG313
nor $3, $3, $3
bne $3, $3, TAG313
lb $3, 0($3)
TAG313:
mthi $3
sll $0, $0, 0
lui $2, 0
sll $0, $0, 0
TAG314:
addu $1, $2, $2
multu $1, $2
mthi $2
bne $2, $2, TAG315
TAG315:
lw $1, 0($1)
lh $3, 0($1)
beq $1, $3, TAG316
sltiu $1, $3, 15
TAG316:
lui $2, 8
mfhi $3
lui $3, 7
bne $3, $3, TAG317
TAG317:
lui $1, 4
and $2, $3, $3
bltz $3, TAG318
mtlo $2
TAG318:
xori $3, $2, 8
bgtz $3, TAG319
addiu $4, $2, 3
lhu $4, 0($4)
TAG319:
slti $1, $4, 15
slti $3, $4, 12
lui $4, 8
mfhi $1
TAG320:
mtlo $1
mtlo $1
beq $1, $1, TAG321
sh $1, 0($1)
TAG321:
lui $3, 2
mflo $1
sllv $4, $1, $1
mflo $2
TAG322:
subu $3, $2, $2
lui $2, 12
addiu $3, $2, 4
lui $3, 12
TAG323:
multu $3, $3
sll $0, $0, 0
divu $4, $3
srlv $2, $4, $4
TAG324:
bgtz $2, TAG325
lhu $2, 0($2)
mult $2, $2
mthi $2
TAG325:
mflo $2
sltiu $3, $2, 15
lui $2, 14
mfhi $1
TAG326:
mflo $2
mtlo $2
sh $1, 0($1)
lhu $3, 0($1)
TAG327:
addi $3, $3, 11
beq $3, $3, TAG328
lui $1, 13
lui $1, 2
TAG328:
mtlo $1
beq $1, $1, TAG329
subu $1, $1, $1
subu $3, $1, $1
TAG329:
mthi $3
bltz $3, TAG330
slti $3, $3, 15
sltiu $2, $3, 2
TAG330:
slt $1, $2, $2
mflo $1
mflo $2
sll $0, $0, 0
TAG331:
sll $0, $0, 0
sll $0, $0, 0
mthi $2
srlv $4, $2, $2
TAG332:
sll $0, $0, 0
lui $1, 9
beq $4, $4, TAG333
mtlo $1
TAG333:
divu $1, $1
lui $3, 11
mtlo $1
mflo $3
TAG334:
mthi $3
beq $3, $3, TAG335
sll $0, $0, 0
lb $1, 0($3)
TAG335:
multu $1, $1
mult $1, $1
sll $0, $0, 0
mthi $1
TAG336:
blez $1, TAG337
xori $4, $1, 14
sll $0, $0, 0
mtlo $1
TAG337:
beq $1, $1, TAG338
sll $0, $0, 0
lui $2, 5
bne $1, $1, TAG338
TAG338:
addu $4, $2, $2
beq $2, $4, TAG339
mtlo $2
bgtz $4, TAG339
TAG339:
addiu $1, $4, 4
mtlo $1
sll $0, $0, 0
sllv $2, $1, $4
TAG340:
divu $2, $2
mult $2, $2
divu $2, $2
sll $0, $0, 0
TAG341:
mfhi $3
mult $3, $2
mfhi $4
mtlo $4
TAG342:
sll $3, $4, 12
lui $4, 2
beq $3, $4, TAG343
mfhi $4
TAG343:
blez $4, TAG344
mflo $1
mthi $4
sb $1, 0($4)
TAG344:
mult $1, $1
mult $1, $1
mthi $1
mult $1, $1
TAG345:
subu $1, $1, $1
sw $1, 0($1)
slti $3, $1, 3
beq $3, $1, TAG346
TAG346:
mflo $4
mflo $4
mult $4, $4
sb $3, 0($3)
TAG347:
lui $1, 9
subu $4, $4, $1
div $1, $4
blez $1, TAG348
TAG348:
multu $4, $4
mtlo $4
sll $0, $0, 0
beq $3, $3, TAG349
TAG349:
mflo $2
bne $2, $3, TAG350
sll $0, $0, 0
mfhi $4
TAG350:
bgtz $4, TAG351
mthi $4
sll $0, $0, 0
sll $2, $3, 9
TAG351:
bne $2, $2, TAG352
lh $3, -512($2)
blez $2, TAG352
sh $2, -256($3)
TAG352:
div $3, $3
bgez $3, TAG353
div $3, $3
lw $4, 0($3)
TAG353:
bltz $4, TAG354
mthi $4
blez $4, TAG354
mtlo $4
TAG354:
bne $4, $4, TAG355
sll $0, $0, 0
bgtz $4, TAG355
slti $2, $4, 5
TAG355:
div $2, $2
mtlo $2
bne $2, $2, TAG356
slti $2, $2, 4
TAG356:
lui $2, 13
xori $3, $2, 9
lui $4, 14
srlv $2, $4, $2
TAG357:
srl $3, $2, 8
srl $2, $2, 5
beq $3, $2, TAG358
lb $3, -28672($2)
TAG358:
add $1, $3, $3
mfhi $4
mult $1, $3
slt $2, $3, $3
TAG359:
mult $2, $2
lbu $4, 0($2)
srl $2, $2, 2
lui $3, 6
TAG360:
divu $3, $3
mult $3, $3
bne $3, $3, TAG361
ori $2, $3, 12
TAG361:
srl $4, $2, 6
beq $4, $4, TAG362
mthi $4
mflo $4
TAG362:
beq $4, $4, TAG363
mfhi $3
bltz $4, TAG363
lui $4, 14
TAG363:
sll $0, $0, 0
bgtz $4, TAG364
addu $1, $4, $4
bgtz $4, TAG364
TAG364:
multu $1, $1
sltiu $1, $1, 14
mthi $1
and $3, $1, $1
TAG365:
sltu $3, $3, $3
mtlo $3
andi $4, $3, 3
sw $3, 0($3)
TAG366:
addiu $1, $4, 10
lhu $4, 0($4)
addiu $1, $4, 0
bltz $4, TAG367
TAG367:
srav $3, $1, $1
sb $1, 0($3)
mflo $3
mflo $4
TAG368:
lui $1, 7
mtlo $4
mfhi $1
mult $1, $4
TAG369:
mflo $1
and $1, $1, $1
mfhi $3
mult $3, $1
TAG370:
lhu $3, 0($3)
lhu $1, 0($3)
multu $3, $1
sra $1, $1, 0
TAG371:
mfhi $2
lhu $2, 0($1)
mflo $1
mult $2, $2
TAG372:
sb $1, 0($1)
lb $3, 0($1)
bgtz $3, TAG373
srlv $3, $3, $1
TAG373:
sb $3, 0($3)
bne $3, $3, TAG374
lhu $3, 0($3)
mfhi $2
TAG374:
sb $2, 0($2)
sh $2, 0($2)
sw $2, 0($2)
bgtz $2, TAG375
TAG375:
sb $2, 0($2)
sw $2, 0($2)
srav $1, $2, $2
mflo $1
TAG376:
mflo $2
mthi $1
lui $1, 11
lui $3, 6
TAG377:
sll $0, $0, 0
addu $4, $3, $3
sll $0, $0, 0
sllv $2, $1, $2
TAG378:
slt $4, $2, $2
bgez $4, TAG379
mfhi $2
div $2, $4
TAG379:
mfhi $1
or $2, $1, $2
mthi $2
beq $2, $1, TAG380
TAG380:
slti $3, $2, 9
bne $2, $3, TAG381
lbu $3, 0($3)
srl $1, $3, 10
TAG381:
sltiu $4, $1, 8
mflo $4
bne $1, $4, TAG382
mflo $2
TAG382:
mult $2, $2
addiu $2, $2, 5
and $1, $2, $2
bgez $1, TAG383
TAG383:
div $1, $1
blez $1, TAG384
lui $1, 7
mthi $1
TAG384:
sltiu $3, $1, 13
mfhi $4
bltz $1, TAG385
divu $1, $4
TAG385:
sll $0, $0, 0
srav $2, $3, $3
lui $1, 15
sll $0, $0, 0
TAG386:
bgez $1, TAG387
xor $3, $1, $1
sw $3, 0($3)
lb $4, 0($1)
TAG387:
blez $4, TAG388
sll $0, $0, 0
mfhi $2
bne $4, $2, TAG388
TAG388:
lui $4, 13
mfhi $4
mfhi $3
mfhi $3
TAG389:
mfhi $2
lb $4, 0($3)
multu $3, $2
lui $3, 7
TAG390:
mult $3, $3
mult $3, $3
bgez $3, TAG391
addiu $2, $3, 14
TAG391:
lui $2, 10
sll $0, $0, 0
mult $2, $2
lui $4, 9
TAG392:
bne $4, $4, TAG393
lui $2, 15
lui $3, 12
srav $4, $4, $3
TAG393:
beq $4, $4, TAG394
ori $2, $4, 3
div $4, $4
lui $2, 0
TAG394:
slt $2, $2, $2
subu $3, $2, $2
ori $1, $2, 2
sra $1, $3, 0
TAG395:
beq $1, $1, TAG396
multu $1, $1
lui $2, 14
slti $1, $1, 13
TAG396:
lbu $1, 0($1)
beq $1, $1, TAG397
srl $2, $1, 13
div $1, $1
TAG397:
lh $3, 0($2)
sh $3, 0($2)
mflo $1
lui $1, 6
TAG398:
sll $0, $0, 0
subu $2, $1, $1
mfhi $1
bgez $2, TAG399
TAG399:
mtlo $1
mtlo $1
lui $4, 3
mflo $3
TAG400:
sb $3, 0($3)
or $4, $3, $3
sllv $2, $4, $4
sll $1, $4, 9
TAG401:
beq $1, $1, TAG402
sw $1, 0($1)
multu $1, $1
sw $1, 0($1)
TAG402:
lui $4, 10
mthi $1
mflo $2
addi $3, $2, 15
TAG403:
sb $3, 0($3)
mflo $2
sra $3, $2, 4
sw $2, 0($3)
TAG404:
addiu $4, $3, 12
beq $4, $4, TAG405
lui $1, 13
xori $3, $3, 3
TAG405:
bltz $3, TAG406
mthi $3
beq $3, $3, TAG406
mult $3, $3
TAG406:
sub $4, $3, $3
sltu $3, $3, $4
add $4, $4, $3
lui $3, 0
TAG407:
mfhi $3
lui $4, 2
bne $4, $4, TAG408
subu $4, $3, $4
TAG408:
multu $4, $4
sra $4, $4, 6
sb $4, 2048($4)
lui $3, 3
TAG409:
sll $0, $0, 0
lui $2, 2
sh $4, 2048($4)
sll $0, $0, 0
TAG410:
mtlo $2
sll $0, $0, 0
subu $2, $2, $2
mtlo $2
TAG411:
mtlo $2
lbu $1, 0($2)
bgtz $2, TAG412
mflo $2
TAG412:
lui $2, 14
mfhi $3
sll $0, $0, 0
subu $2, $2, $3
TAG413:
bne $2, $2, TAG414
xor $4, $2, $2
sb $2, 0($4)
divu $2, $2
TAG414:
addiu $3, $4, 7
bne $3, $3, TAG415
sb $3, 0($3)
blez $3, TAG415
TAG415:
mthi $3
lbu $2, 0($3)
lbu $1, 0($2)
lbu $4, 0($1)
TAG416:
lui $2, 14
mfhi $3
mthi $4
lui $3, 1
TAG417:
bgez $3, TAG418
sll $0, $0, 0
bgez $3, TAG418
lui $4, 7
TAG418:
mflo $2
mthi $4
sltiu $4, $4, 2
lui $3, 10
TAG419:
bne $3, $3, TAG420
xor $2, $3, $3
andi $2, $2, 7
mflo $1
TAG420:
beq $1, $1, TAG421
lui $4, 12
or $4, $1, $1
mthi $4
TAG421:
beq $4, $4, TAG422
lui $3, 12
bne $3, $3, TAG422
lui $2, 5
TAG422:
bgez $2, TAG423
lui $1, 10
beq $2, $2, TAG423
lui $3, 14
TAG423:
mflo $1
lui $1, 13
sll $0, $0, 0
mfhi $2
TAG424:
mfhi $2
slti $3, $2, 10
lbu $3, 0($2)
blez $3, TAG425
TAG425:
multu $3, $3
lb $4, 0($3)
bgez $4, TAG426
mfhi $1
TAG426:
lb $1, 0($1)
lw $2, 4($1)
mthi $1
lui $4, 3
TAG427:
srav $3, $4, $4
sll $0, $0, 0
sll $0, $0, 0
srl $3, $4, 3
TAG428:
bgtz $3, TAG429
mfhi $1
bltz $1, TAG429
mult $3, $3
TAG429:
sll $0, $0, 0
mfhi $2
addiu $1, $2, 6
mfhi $3
TAG430:
mthi $3
lb $3, 4($3)
nor $1, $3, $3
sw $3, 4($3)
TAG431:
addiu $1, $1, 15
mult $1, $1
mthi $1
bgtz $1, TAG432
TAG432:
lbu $3, 0($1)
lbu $2, 0($3)
div $3, $1
sb $3, 0($3)
TAG433:
sb $2, -252($2)
lui $1, 6
slti $4, $1, 3
mult $4, $4
TAG434:
mflo $3
mtlo $3
bgez $4, TAG435
lh $1, 0($4)
TAG435:
mtlo $1
lui $3, 15
lui $3, 1
lui $2, 8
TAG436:
sll $0, $0, 0
mfhi $1
lui $1, 10
bne $2, $1, TAG437
TAG437:
sll $0, $0, 0
blez $1, TAG438
multu $1, $1
mfhi $3
TAG438:
lui $1, 7
bltz $3, TAG439
addiu $3, $1, 11
srl $3, $3, 2
TAG439:
slt $3, $3, $3
lh $2, 0($3)
lbu $3, 0($3)
lb $1, -252($3)
TAG440:
sll $0, $0, 0
beq $1, $1, TAG441
div $1, $1
sh $1, 0($1)
TAG441:
mthi $1
sb $1, 4($1)
mthi $1
sb $1, 4($1)
TAG442:
lui $4, 7
and $1, $1, $1
mflo $3
mtlo $1
TAG443:
mthi $3
bne $3, $3, TAG444
mfhi $2
lui $3, 8
TAG444:
multu $3, $3
slt $1, $3, $3
addiu $1, $1, 1
bgtz $3, TAG445
TAG445:
lui $3, 13
sra $2, $3, 4
blez $2, TAG446
sll $0, $0, 0
TAG446:
sll $0, $0, 0
mtlo $3
mult $3, $3
sll $4, $3, 6
TAG447:
mthi $4
sll $0, $0, 0
bne $4, $4, TAG448
sll $0, $0, 0
TAG448:
sll $0, $0, 0
sra $4, $4, 6
lui $2, 5
lui $1, 10
TAG449:
mtlo $1
beq $1, $1, TAG450
lui $1, 8
mthi $1
TAG450:
sll $0, $0, 0
sll $0, $0, 0
nor $1, $1, $1
lui $2, 0
TAG451:
multu $2, $2
srl $2, $2, 0
lbu $4, 0($2)
beq $2, $2, TAG452
TAG452:
mtlo $4
sh $4, -252($4)
sll $3, $4, 4
sltu $4, $4, $3
TAG453:
lui $1, 14
lui $2, 8
bne $2, $2, TAG454
sll $0, $0, 0
TAG454:
andi $2, $2, 9
sh $2, 0($2)
beq $2, $2, TAG455
lui $4, 7
TAG455:
sll $0, $0, 0
divu $4, $4
sll $0, $0, 0
divu $3, $4
TAG456:
blez $4, TAG457
mtlo $4
sltu $4, $4, $4
lui $3, 10
TAG457:
mult $3, $3
beq $3, $3, TAG458
mtlo $3
lbu $2, 0($3)
TAG458:
mthi $2
mthi $2
bgez $2, TAG459
sltiu $4, $2, 5
TAG459:
subu $1, $4, $4
bne $1, $1, TAG460
lui $2, 9
lui $3, 6
TAG460:
blez $3, TAG461
or $3, $3, $3
bne $3, $3, TAG461
nor $1, $3, $3
TAG461:
divu $1, $1
sll $0, $0, 0
mthi $3
bne $1, $1, TAG462
TAG462:
andi $3, $3, 15
srl $2, $3, 3
bltz $2, TAG463
sb $3, 0($3)
TAG463:
addu $4, $2, $2
multu $2, $4
lbu $2, 0($2)
lbu $4, 0($2)
TAG464:
lui $1, 3
bgez $1, TAG465
sll $0, $0, 0
mfhi $2
TAG465:
beq $2, $2, TAG466
multu $2, $2
mthi $2
beq $2, $2, TAG466
TAG466:
subu $1, $2, $2
mthi $2
mthi $1
multu $1, $1
TAG467:
nor $1, $1, $1
lui $2, 13
beq $2, $2, TAG468
addiu $3, $2, 0
TAG468:
bltz $3, TAG469
mthi $3
addiu $2, $3, 7
beq $3, $3, TAG469
TAG469:
sll $0, $0, 0
subu $3, $3, $3
bne $2, $3, TAG470
mfhi $1
TAG470:
lui $4, 7
andi $1, $1, 3
mult $1, $1
bne $1, $4, TAG471
TAG471:
lhu $1, 0($1)
sw $1, 0($1)
lui $1, 15
bgez $1, TAG472
TAG472:
mthi $1
mflo $1
lui $3, 13
bgtz $3, TAG473
TAG473:
andi $3, $3, 5
mtlo $3
beq $3, $3, TAG474
addi $1, $3, 3
TAG474:
mthi $1
mfhi $2
bgtz $1, TAG475
mtlo $2
TAG475:
mfhi $2
lb $4, 0($2)
sw $2, 0($4)
bltz $2, TAG476
TAG476:
mtlo $4
mflo $1
mtlo $4
lui $4, 0
TAG477:
srav $4, $4, $4
mtlo $4
bne $4, $4, TAG478
lh $4, 0($4)
TAG478:
lui $3, 6
sll $0, $0, 0
lb $3, 0($4)
mfhi $1
TAG479:
mflo $3
beq $3, $1, TAG480
slt $2, $3, $1
lhu $3, 0($3)
TAG480:
multu $3, $3
mthi $3
bgez $3, TAG481
lui $2, 3
TAG481:
bltz $2, TAG482
mtlo $2
mflo $4
mtlo $4
TAG482:
mfhi $2
bne $2, $2, TAG483
sll $0, $0, 0
lbu $4, 0($2)
TAG483:
mult $4, $4
mflo $3
sw $4, 0($4)
beq $4, $3, TAG484
TAG484:
lh $1, 0($3)
mtlo $1
lui $2, 5
blez $3, TAG485
TAG485:
lui $1, 9
mflo $2
mfhi $2
andi $2, $2, 8
TAG486:
lui $1, 2
mthi $2
bne $2, $2, TAG487
divu $1, $1
TAG487:
bltz $1, TAG488
sll $0, $0, 0
mfhi $2
lui $1, 0
TAG488:
lw $4, 0($1)
lui $2, 2
mult $4, $1
mult $1, $2
TAG489:
sll $0, $0, 0
mult $2, $2
sltu $3, $2, $2
mflo $1
TAG490:
lb $4, 0($1)
bltz $4, TAG491
mtlo $1
mthi $4
TAG491:
beq $4, $4, TAG492
mfhi $4
bne $4, $4, TAG492
lw $3, 0($4)
TAG492:
bgtz $3, TAG493
lui $4, 7
mtlo $3
mthi $4
TAG493:
beq $4, $4, TAG494
andi $1, $4, 15
mult $4, $4
lui $3, 13
TAG494:
mthi $3
beq $3, $3, TAG495
mflo $3
mfhi $4
TAG495:
sll $0, $0, 0
mthi $4
beq $4, $4, TAG496
lui $4, 1
TAG496:
bne $4, $4, TAG497
lui $3, 7
lui $1, 8
slt $3, $3, $4
TAG497:
blez $3, TAG498
lui $2, 15
bltz $3, TAG498
sh $3, 0($3)
TAG498:
subu $1, $2, $2
srav $1, $1, $2
div $1, $2
sb $2, 0($1)
TAG499:
mflo $2
blez $1, TAG500
lui $1, 15
divu $1, $1
TAG500:
andi $3, $1, 5
sll $0, $0, 0
lui $1, 14
bltz $1, TAG501
TAG501:
multu $1, $1
blez $1, TAG502
sra $2, $1, 12
mfhi $3
TAG502:
mtlo $3
lui $2, 1
sll $0, $0, 0
mtlo $2
TAG503:
sll $0, $0, 0
mthi $2
lui $2, 2
mflo $3
TAG504:
beq $3, $3, TAG505
lui $3, 11
bgez $3, TAG505
lui $3, 11
TAG505:
bltz $3, TAG506
mfhi $1
sll $0, $0, 0
mtlo $3
TAG506:
mult $1, $1
mtlo $1
beq $1, $1, TAG507
sll $0, $0, 0
TAG507:
lui $4, 2
slt $2, $1, $4
divu $2, $2
subu $1, $4, $1
TAG508:
multu $1, $1
srav $1, $1, $1
sll $0, $0, 0
sll $3, $1, 2
TAG509:
and $1, $3, $3
mfhi $1
mtlo $1
sll $0, $0, 0
TAG510:
blez $1, TAG511
lbu $4, 0($1)
lb $2, 0($4)
mult $1, $4
TAG511:
xor $3, $2, $2
bne $3, $3, TAG512
lui $4, 6
multu $3, $3
TAG512:
sll $0, $0, 0
mfhi $2
slti $3, $4, 2
mtlo $3
TAG513:
lbu $4, 0($3)
mfhi $4
beq $4, $4, TAG514
mfhi $1
TAG514:
mthi $1
mthi $1
sw $1, 0($1)
mflo $1
TAG515:
bltz $1, TAG516
slti $1, $1, 2
mfhi $4
sb $1, 0($1)
TAG516:
multu $4, $4
sw $4, 0($4)
mtlo $4
mtlo $4
TAG517:
blez $4, TAG518
slti $4, $4, 13
sw $4, 0($4)
mflo $3
TAG518:
multu $3, $3
bgez $3, TAG519
mtlo $3
multu $3, $3
TAG519:
bne $3, $3, TAG520
lb $2, 0($3)
bne $3, $3, TAG520
andi $3, $2, 14
TAG520:
bne $3, $3, TAG521
lui $2, 1
lbu $1, 0($3)
beq $3, $1, TAG521
TAG521:
lui $1, 11
lui $3, 6
mfhi $2
mfhi $2
TAG522:
nor $4, $2, $2
multu $4, $2
multu $4, $2
beq $4, $2, TAG523
TAG523:
addu $3, $4, $4
srl $3, $4, 11
mflo $2
srl $2, $3, 5
TAG524:
divu $2, $2
lui $1, 4
sll $0, $0, 0
lui $4, 4
TAG525:
blez $4, TAG526
mflo $1
bne $4, $4, TAG526
mfhi $1
TAG526:
sll $3, $1, 8
lh $1, 0($3)
blez $1, TAG527
mthi $1
TAG527:
sb $1, 0($1)
mtlo $1
blez $1, TAG528
multu $1, $1
TAG528:
lw $3, 0($1)
mthi $1
add $2, $1, $3
sh $1, 0($2)
TAG529:
add $2, $2, $2
mult $2, $2
beq $2, $2, TAG530
sw $2, 0($2)
TAG530:
lh $1, 0($2)
subu $2, $1, $1
addi $3, $2, 1
mtlo $2
TAG531:
lui $1, 0
bne $3, $3, TAG532
lui $4, 11
bltz $3, TAG532
TAG532:
sll $0, $0, 0
div $4, $4
sll $0, $0, 0
beq $4, $4, TAG533
TAG533:
lui $1, 8
mflo $2
beq $1, $2, TAG534
mfhi $3
TAG534:
sh $3, 0($3)
addiu $2, $3, 9
bgtz $2, TAG535
mtlo $3
TAG535:
mthi $2
divu $2, $2
bne $2, $2, TAG536
srlv $3, $2, $2
TAG536:
bltz $3, TAG537
mthi $3
bne $3, $3, TAG537
multu $3, $3
TAG537:
mflo $3
xor $1, $3, $3
mtlo $1
and $3, $3, $1
TAG538:
andi $4, $3, 15
lhu $1, 0($4)
multu $1, $4
multu $4, $4
TAG539:
andi $2, $1, 10
multu $2, $2
sb $2, 0($2)
lw $1, 0($2)
TAG540:
sub $3, $1, $1
sh $3, 0($3)
mfhi $2
lui $4, 10
TAG541:
and $2, $4, $4
beq $4, $4, TAG542
sllv $2, $4, $2
beq $2, $2, TAG542
TAG542:
srl $2, $2, 5
mflo $1
mthi $2
bgez $2, TAG543
TAG543:
mult $1, $1
bltz $1, TAG544
lhu $2, 0($1)
multu $1, $1
TAG544:
lui $4, 4
blez $2, TAG545
lui $3, 15
lui $1, 2
TAG545:
mflo $4
sw $1, 0($1)
mfhi $2
andi $1, $1, 6
TAG546:
mflo $3
blez $1, TAG547
sra $3, $1, 0
sb $3, 0($1)
TAG547:
nor $3, $3, $3
addiu $1, $3, 7
bne $3, $3, TAG548
sh $3, 0($1)
TAG548:
lui $2, 13
bne $2, $1, TAG549
mflo $1
bltz $1, TAG549
TAG549:
lui $1, 14
sll $0, $0, 0
sll $0, $0, 0
sw $1, 1($3)
TAG550:
lui $3, 8
mtlo $3
ori $2, $3, 9
divu $3, $2
TAG551:
srav $4, $2, $2
srav $2, $2, $4
beq $2, $2, TAG552
divu $4, $2
TAG552:
mtlo $2
sra $4, $2, 13
divu $2, $4
beq $2, $4, TAG553
TAG553:
mflo $2
sh $2, 0($4)
sll $3, $4, 12
beq $2, $4, TAG554
TAG554:
sll $0, $0, 0
srl $4, $3, 9
mthi $4
lui $3, 3
TAG555:
bgez $3, TAG556
div $3, $3
mfhi $1
addu $4, $1, $3
TAG556:
sra $2, $4, 15
slti $2, $4, 10
bltz $2, TAG557
mult $2, $4
TAG557:
bltz $2, TAG558
mflo $1
add $1, $2, $2
lui $2, 7
TAG558:
sll $1, $2, 11
lui $3, 3
or $4, $2, $3
bltz $4, TAG559
TAG559:
lui $4, 8
sll $0, $0, 0
sll $0, $0, 0
xori $4, $4, 12
TAG560:
mthi $4
and $3, $4, $4
mtlo $4
sllv $1, $4, $3
TAG561:
bltz $1, TAG562
mult $1, $1
sb $1, 0($1)
sw $1, 0($1)
TAG562:
sll $0, $0, 0
sll $0, $0, 0
srav $4, $1, $1
blez $4, TAG563
TAG563:
mfhi $4
mfhi $3
mflo $2
lui $4, 10
TAG564:
mult $4, $4
sll $0, $0, 0
mflo $3
sltu $3, $4, $4
TAG565:
mflo $4
mult $4, $4
bgez $3, TAG566
multu $3, $3
TAG566:
lui $2, 4
beq $4, $2, TAG567
sw $2, 0($4)
mfhi $2
TAG567:
lui $4, 3
addiu $3, $2, 14
blez $3, TAG568
lbu $2, 0($2)
TAG568:
addi $2, $2, 7
sb $2, 0($2)
slti $4, $2, 9
bltz $2, TAG569
TAG569:
lb $2, 0($4)
lui $2, 3
addu $4, $4, $4
sll $0, $0, 0
TAG570:
lui $4, 8
slti $4, $3, 2
blez $3, TAG571
subu $2, $3, $3
TAG571:
bne $2, $2, TAG572
mult $2, $2
mult $2, $2
srlv $1, $2, $2
TAG572:
bne $1, $1, TAG573
lw $4, 0($1)
mfhi $3
bltz $4, TAG573
TAG573:
mflo $2
beq $2, $2, TAG574
mflo $2
mthi $2
TAG574:
sw $2, 0($2)
bgez $2, TAG575
mflo $2
sll $2, $2, 3
TAG575:
lui $2, 13
xor $3, $2, $2
addiu $4, $2, 1
bne $4, $3, TAG576
TAG576:
mtlo $4
andi $3, $4, 3
lui $1, 6
lui $1, 6
TAG577:
mflo $1
mtlo $1
mult $1, $1
mflo $3
TAG578:
mfhi $1
sltiu $2, $1, 0
sw $3, -169($1)
div $2, $1
TAG579:
bgez $2, TAG580
lui $1, 6
subu $1, $2, $1
bgtz $1, TAG580
TAG580:
mthi $1
mfhi $1
mult $1, $1
subu $3, $1, $1
TAG581:
bne $3, $3, TAG582
mthi $3
mthi $3
sh $3, 0($3)
TAG582:
mthi $3
beq $3, $3, TAG583
sw $3, 0($3)
mult $3, $3
TAG583:
beq $3, $3, TAG584
lui $3, 0
mflo $1
beq $3, $1, TAG584
TAG584:
lui $3, 3
lui $4, 10
beq $4, $3, TAG585
sll $0, $0, 0
TAG585:
sll $0, $0, 0
addu $3, $4, $1
lui $4, 10
sll $0, $0, 0
TAG586:
mflo $3
lhu $2, 0($3)
ori $1, $3, 3
lui $4, 14
TAG587:
div $4, $4
mfhi $4
mflo $4
sb $4, 0($4)
TAG588:
mtlo $4
sra $1, $4, 12
bgez $1, TAG589
sb $1, 0($4)
TAG589:
mtlo $1
sh $1, 0($1)
beq $1, $1, TAG590
mult $1, $1
TAG590:
xori $2, $1, 9
mfhi $2
sll $3, $1, 8
bgez $3, TAG591
TAG591:
sh $3, 0($3)
bltz $3, TAG592
mfhi $2
srlv $2, $3, $3
TAG592:
lh $3, 0($2)
xor $1, $2, $2
sra $2, $2, 7
slt $1, $2, $2
TAG593:
sll $1, $1, 12
mtlo $1
mtlo $1
multu $1, $1
TAG594:
lui $3, 2
mthi $1
sll $0, $0, 0
sll $1, $3, 13
TAG595:
subu $4, $1, $1
xori $3, $4, 8
sll $3, $4, 9
mfhi $1
TAG596:
mfhi $3
beq $3, $3, TAG597
sw $3, 0($3)
slti $3, $3, 1
TAG597:
sh $3, 0($3)
multu $3, $3
sll $1, $3, 13
lui $1, 5
TAG598:
lui $2, 1
xor $1, $1, $1
sh $1, 0($1)
lh $2, 0($1)
TAG599:
bne $2, $2, TAG600
multu $2, $2
lui $4, 1
lui $2, 15
TAG600:
mfhi $3
multu $2, $2
beq $2, $2, TAG601
lui $4, 9
TAG601:
divu $4, $4
xor $1, $4, $4
mfhi $3
addiu $1, $1, 15
TAG602:
bgez $1, TAG603
div $1, $1
beq $1, $1, TAG603
lh $4, 0($1)
TAG603:
lui $1, 13
mthi $4
mthi $1
or $2, $4, $4
TAG604:
multu $2, $2
lui $2, 10
lui $4, 8
subu $1, $2, $2
TAG605:
mflo $3
sh $3, 0($1)
bne $3, $1, TAG606
lhu $4, 0($1)
TAG606:
mfhi $3
sb $3, 0($3)
lb $2, 0($3)
beq $4, $4, TAG607
TAG607:
lui $4, 15
lui $3, 8
beq $3, $2, TAG608
multu $3, $3
TAG608:
bne $3, $3, TAG609
sll $0, $0, 0
lui $3, 2
div $3, $3
TAG609:
srav $3, $3, $3
mthi $3
nor $3, $3, $3
sll $0, $0, 0
TAG610:
bgtz $3, TAG611
lui $1, 5
div $3, $1
mthi $3
TAG611:
sllv $4, $1, $1
mthi $4
sltu $4, $4, $1
xori $3, $1, 10
TAG612:
div $3, $3
bgtz $3, TAG613
sll $0, $0, 0
bne $3, $3, TAG613
TAG613:
mfhi $4
mflo $4
beq $3, $4, TAG614
multu $3, $4
TAG614:
sb $4, 0($4)
blez $4, TAG615
ori $3, $4, 13
mthi $3
TAG615:
or $1, $3, $3
srav $3, $1, $1
beq $3, $1, TAG616
div $1, $1
TAG616:
multu $3, $3
sh $3, 0($3)
multu $3, $3
mfhi $1
TAG617:
mfhi $4
mflo $4
mthi $4
lbu $1, 0($4)
TAG618:
lhu $1, 0($1)
blez $1, TAG619
addiu $4, $1, 2
srav $3, $4, $1
TAG619:
lw $1, 0($3)
mflo $1
srlv $3, $1, $1
sh $3, 0($3)
TAG620:
mult $3, $3
sh $3, 0($3)
and $1, $3, $3
lui $2, 13
TAG621:
bne $2, $2, TAG622
sll $0, $0, 0
sll $0, $0, 0
subu $1, $3, $3
TAG622:
bgez $1, TAG623
xori $4, $1, 7
mfhi $3
beq $1, $4, TAG623
TAG623:
mthi $3
multu $3, $3
sh $3, 0($3)
sw $3, 0($3)
TAG624:
bne $3, $3, TAG625
mfhi $4
lui $2, 2
beq $3, $3, TAG625
TAG625:
addu $4, $2, $2
addiu $3, $4, 11
mtlo $2
sll $0, $0, 0
TAG626:
addiu $4, $2, 2
mfhi $4
sw $4, 0($4)
mfhi $2
TAG627:
sw $2, 0($2)
slt $4, $2, $2
lw $4, 0($2)
mfhi $2
TAG628:
lhu $3, 0($2)
srl $3, $3, 4
bgez $3, TAG629
mthi $2
TAG629:
lui $3, 9
sll $0, $0, 0
mtlo $3
lui $2, 7
TAG630:
mflo $4
lui $3, 5
beq $3, $3, TAG631
sll $0, $0, 0
TAG631:
divu $3, $3
lui $3, 15
bgtz $3, TAG632
multu $3, $3
TAG632:
andi $2, $3, 14
sll $0, $0, 0
mthi $2
lui $2, 7
TAG633:
bgtz $2, TAG634
multu $2, $2
mthi $2
nor $1, $2, $2
TAG634:
sll $1, $1, 15
sltu $4, $1, $1
mflo $2
lui $3, 12
TAG635:
mult $3, $3
bne $3, $3, TAG636
lui $4, 0
mtlo $3
TAG636:
mthi $4
lui $4, 9
mflo $2
sra $1, $4, 4
TAG637:
mthi $1
beq $1, $1, TAG638
andi $4, $1, 3
multu $1, $1
TAG638:
xori $1, $4, 13
addu $3, $1, $4
and $3, $4, $1
sra $4, $3, 1
TAG639:
sh $4, 0($4)
lui $4, 12
mfhi $2
nor $1, $4, $4
TAG640:
subu $1, $1, $1
lh $3, 0($1)
bltz $1, TAG641
srl $1, $1, 2
TAG641:
multu $1, $1
andi $3, $1, 7
mflo $2
lui $3, 8
TAG642:
mult $3, $3
bne $3, $3, TAG643
sll $0, $0, 0
lui $1, 4
TAG643:
bltz $1, TAG644
lui $1, 2
sll $0, $0, 0
mflo $1
TAG644:
add $4, $1, $1
multu $1, $1
beq $1, $1, TAG645
multu $4, $1
TAG645:
lhu $3, 0($4)
mult $4, $3
bgtz $4, TAG646
or $3, $4, $3
TAG646:
lui $3, 2
sll $0, $0, 0
sll $0, $0, 0
mthi $3
TAG647:
multu $2, $2
mflo $3
srl $1, $2, 3
bltz $1, TAG648
TAG648:
mfhi $3
slti $3, $3, 12
lui $3, 14
sll $0, $0, 0
TAG649:
mthi $3
mtlo $3
bltz $3, TAG650
mtlo $3
TAG650:
bltz $3, TAG651
srlv $1, $3, $3
lui $2, 9
sltiu $1, $1, 4
TAG651:
bne $1, $1, TAG652
lui $4, 5
blez $1, TAG652
lhu $2, 0($1)
TAG652:
subu $2, $2, $2
srav $3, $2, $2
bne $2, $2, TAG653
lui $2, 4
TAG653:
bltz $2, TAG654
mtlo $2
subu $3, $2, $2
mflo $1
TAG654:
div $1, $1
srl $1, $1, 0
bne $1, $1, TAG655
xori $4, $1, 10
TAG655:
beq $4, $4, TAG656
srlv $1, $4, $4
sltiu $2, $4, 8
sllv $2, $2, $4
TAG656:
slti $4, $2, 13
sll $0, $0, 0
beq $2, $4, TAG657
multu $2, $2
TAG657:
mfhi $3
addu $1, $3, $4
lui $4, 15
lw $2, 0($1)
TAG658:
mthi $2
sll $0, $0, 0
srl $2, $2, 14
sh $2, -19456($2)
TAG659:
blez $2, TAG660
sra $2, $2, 14
and $3, $2, $2
addu $1, $2, $2
TAG660:
div $1, $1
bne $1, $1, TAG661
sh $1, 0($1)
bgtz $1, TAG661
TAG661:
sh $1, 0($1)
xori $4, $1, 5
andi $2, $4, 4
sllv $4, $4, $2
TAG662:
mfhi $2
bltz $4, TAG663
lhu $3, 0($4)
mult $4, $2
TAG663:
ori $4, $3, 13
andi $1, $4, 11
mthi $4
lb $2, 0($4)
TAG664:
lbu $2, 0($2)
addiu $2, $2, 6
mult $2, $2
lui $1, 12
TAG665:
or $2, $1, $1
lui $2, 9
nor $4, $2, $2
sll $0, $0, 0
TAG666:
mfhi $2
or $2, $2, $2
lui $2, 3
bltz $2, TAG667
TAG667:
mfhi $1
mthi $2
mthi $2
beq $2, $1, TAG668
TAG668:
lb $1, 0($1)
sll $1, $1, 3
lhu $1, 0($1)
blez $1, TAG669
TAG669:
sh $1, -19456($1)
bltz $1, TAG670
sh $1, -19456($1)
bgtz $1, TAG670
TAG670:
sll $0, $0, 0
beq $4, $1, TAG671
subu $1, $1, $4
blez $4, TAG671
TAG671:
mtlo $1
lui $3, 14
bltz $1, TAG672
lui $2, 3
TAG672:
sra $2, $2, 0
addiu $1, $2, 15
sll $0, $0, 0
sll $0, $0, 0
TAG673:
xor $1, $1, $1
mtlo $1
bgez $1, TAG674
lui $2, 3
TAG674:
beq $2, $2, TAG675
sll $0, $0, 0
lhu $1, 0($2)
multu $2, $1
TAG675:
beq $1, $1, TAG676
mult $1, $1
mfhi $1
bgtz $1, TAG676
TAG676:
sll $2, $1, 15
sb $2, 0($1)
mult $1, $1
mthi $1
TAG677:
lui $1, 1
srl $3, $1, 7
mthi $2
lhu $3, 0($2)
TAG678:
mfhi $3
bne $3, $3, TAG679
lui $4, 4
sra $4, $3, 1
TAG679:
mflo $3
lh $3, 0($3)
bltz $3, TAG680
ori $2, $3, 2
TAG680:
mtlo $2
bgtz $2, TAG681
lw $4, -19458($2)
sb $4, 0($4)
TAG681:
sll $0, $0, 0
mthi $4
blez $4, TAG682
sll $0, $0, 0
TAG682:
or $1, $3, $3
mflo $4
bgtz $1, TAG683
lui $4, 10
TAG683:
lui $1, 1
xor $2, $1, $4
blez $4, TAG684
mthi $4
TAG684:
bltz $2, TAG685
lui $4, 1
lui $4, 4
bltz $4, TAG685
TAG685:
mtlo $4
mtlo $4
mflo $1
sll $0, $0, 0
TAG686:
subu $4, $1, $1
mfhi $2
sll $0, $0, 0
divu $2, $2
TAG687:
divu $2, $2
lui $2, 1
sll $0, $0, 0
bltz $2, TAG688
TAG688:
addu $2, $2, $2
mtlo $2
lui $4, 2
sra $2, $4, 8
TAG689:
sll $0, $0, 0
mflo $2
lui $3, 0
mtlo $2
TAG690:
bgez $3, TAG691
sllv $3, $3, $3
add $3, $3, $3
bne $3, $3, TAG691
TAG691:
sh $3, 0($3)
bltz $3, TAG692
mthi $3
mflo $4
TAG692:
divu $4, $4
sll $1, $4, 14
sll $0, $0, 0
bne $4, $1, TAG693
TAG693:
slti $3, $2, 5
lui $2, 0
sh $2, 0($2)
sw $2, 0($3)
TAG694:
mfhi $3
mtlo $3
lhu $1, 0($3)
lui $1, 10
TAG695:
beq $1, $1, TAG696
lui $3, 1
xori $3, $1, 8
sh $1, 0($3)
TAG696:
bgtz $3, TAG697
sll $0, $0, 0
bne $3, $3, TAG697
sh $3, 0($3)
TAG697:
xori $3, $3, 15
sra $3, $3, 8
mtlo $3
mtlo $3
TAG698:
lui $2, 10
and $3, $3, $3
mult $2, $2
blez $3, TAG699
TAG699:
lui $2, 0
divu $3, $3
bltz $2, TAG700
sw $2, -256($3)
TAG700:
mthi $2
multu $2, $2
srl $1, $2, 2
add $4, $1, $2
TAG701:
multu $4, $4
lui $2, 3
lui $2, 11
sra $2, $4, 8
TAG702:
sb $2, 0($2)
bne $2, $2, TAG703
lw $2, 0($2)
multu $2, $2
TAG703:
lui $4, 8
sh $2, 0($2)
srl $3, $4, 10
mflo $4
TAG704:
lui $3, 10
div $3, $3
bne $3, $4, TAG705
nor $4, $4, $4
TAG705:
sll $0, $0, 0
subu $4, $4, $2
mflo $3
blez $4, TAG706
TAG706:
slt $2, $3, $3
beq $2, $2, TAG707
mthi $2
lui $1, 6
TAG707:
bltz $1, TAG708
mfhi $3
bgez $1, TAG708
lhu $1, 0($1)
TAG708:
mult $1, $1
sb $1, 0($1)
lui $4, 12
lui $4, 8
TAG709:
mfhi $4
lui $4, 3
sll $0, $0, 0
sltiu $3, $4, 3
TAG710:
multu $3, $3
lbu $3, 0($3)
mflo $1
lui $2, 0
TAG711:
lh $3, 0($2)
bgez $3, TAG712
srlv $3, $2, $2
beq $3, $3, TAG712
TAG712:
mfhi $3
blez $3, TAG713
mflo $4
ori $1, $4, 10
TAG713:
lh $3, 0($1)
bltz $1, TAG714
lui $3, 14
multu $3, $3
TAG714:
addu $1, $3, $3
sll $0, $0, 0
sll $2, $3, 0
sll $0, $0, 0
TAG715:
subu $3, $2, $2
sll $0, $0, 0
mtlo $2
lui $1, 5
TAG716:
sll $0, $0, 0
srl $4, $1, 9
andi $2, $1, 9
sll $0, $0, 0
TAG717:
sb $4, -640($4)
lw $4, -640($4)
bgtz $4, TAG718
srav $2, $4, $4
TAG718:
blez $2, TAG719
lb $2, 0($2)
bne $2, $2, TAG719
andi $1, $2, 7
TAG719:
mult $1, $1
sltiu $2, $1, 6
lui $2, 4
lui $3, 14
TAG720:
sll $0, $0, 0
lui $1, 6
mfhi $1
sll $2, $1, 6
TAG721:
lh $2, 0($2)
bltz $2, TAG722
lhu $2, 0($2)
bgez $2, TAG722
TAG722:
sll $2, $2, 5
blez $2, TAG723
sub $3, $2, $2
mflo $3
TAG723:
lui $2, 2
mult $3, $3
lui $3, 10
addiu $1, $2, 15
TAG724:
sll $0, $0, 0
sll $0, $0, 0
lui $4, 4
beq $1, $1, TAG725
TAG725:
sll $0, $0, 0
mfhi $1
srlv $4, $4, $4
blez $4, TAG726
TAG726:
sll $0, $0, 0
lui $2, 2
blez $4, TAG727
ori $2, $4, 5
TAG727:
sll $0, $0, 0
bltz $2, TAG728
div $2, $2
bne $2, $2, TAG728
TAG728:
sll $0, $0, 0
bgez $2, TAG729
sll $0, $0, 0
bgtz $4, TAG729
TAG729:
sll $0, $0, 0
sltu $2, $1, $4
srl $1, $4, 12
mflo $1
TAG730:
bgez $1, TAG731
sb $1, 0($1)
mfhi $1
mthi $1
TAG731:
blez $1, TAG732
sb $1, 0($1)
nor $4, $1, $1
mtlo $4
TAG732:
sll $0, $0, 0
bne $1, $4, TAG733
lw $1, 2($4)
mflo $2
TAG733:
lb $3, 0($2)
mfhi $2
blez $2, TAG734
mthi $3
TAG734:
mtlo $2
lui $1, 13
mthi $1
lui $3, 3
TAG735:
addiu $3, $3, 14
mfhi $3
mthi $3
lui $2, 10
TAG736:
div $2, $2
sll $0, $0, 0
subu $1, $2, $2
mult $1, $2
TAG737:
sb $1, 0($1)
add $3, $1, $1
lui $3, 4
bgez $3, TAG738
TAG738:
lui $1, 13
bltz $1, TAG739
srl $1, $3, 6
addu $1, $1, $1
TAG739:
sb $1, -8192($1)
srl $3, $1, 1
beq $3, $1, TAG740
lhu $3, -4096($3)
TAG740:
nor $3, $3, $3
divu $3, $3
mult $3, $3
sb $3, 257($3)
TAG741:
sll $0, $0, 0
bne $3, $3, TAG742
sb $3, 257($3)
bne $2, $2, TAG742
TAG742:
lui $4, 4
sll $0, $0, 0
mfhi $4
sll $0, $0, 0
TAG743:
bltz $4, TAG744
mflo $4
mult $4, $4
sll $0, $0, 0
TAG744:
andi $3, $1, 0
mfhi $3
addiu $4, $3, 15
divu $3, $3
TAG745:
multu $4, $4
srlv $3, $4, $4
lw $3, 0($4)
sll $0, $0, 0
TAG746:
mult $1, $1
lw $1, -8192($1)
lb $3, -511($1)
beq $3, $1, TAG747
TAG747:
sltu $1, $3, $3
beq $3, $1, TAG748
mflo $4
srlv $1, $3, $4
TAG748:
sltu $2, $1, $1
blez $1, TAG749
slti $1, $1, 11
lui $2, 4
TAG749:
mtlo $2
mtlo $2
beq $2, $2, TAG750
multu $2, $2
TAG750:
nop
nop
test_end:
beq $0, $0, test_end
nop | 12.947507 | 22 | 0.503402 |
78c5c6356cebc7724aefcd0b8254564305d392ad | 2,023 | asm | Assembly | source/Cosmos.Debug.DebugStub/Consts.asm | mmkhmmkh/Cosmos | 417df82cf7ee4ed841f82ee4704cbd8d72fe84f7 | [
"BSD-3-Clause"
] | 1 | 2021-06-27T07:20:36.000Z | 2021-06-27T07:20:36.000Z | source/Cosmos.Debug.DebugStub/Consts.asm | mmkhmmkh/Cosmos | 417df82cf7ee4ed841f82ee4704cbd8d72fe84f7 | [
"BSD-3-Clause"
] | null | null | null | source/Cosmos.Debug.DebugStub/Consts.asm | mmkhmmkh/Cosmos | 417df82cf7ee4ed841f82ee4704cbd8d72fe84f7 | [
"BSD-3-Clause"
] | null | null | null | ; Generated at 28-7-2015 17:33:40
DebugStub_Const_Signature equ 0x19740807
DebugStub_Const_Tracing_Off equ 0
DebugStub_Const_Tracing_On equ 1
DebugStub_Const_Status_Run equ 0
DebugStub_Const_Status_Break equ 1
DebugStub_Const_StepTrigger_None equ 0
DebugStub_Const_StepTrigger_Into equ 1
DebugStub_Const_StepTrigger_Over equ 2
DebugStub_Const_StepTrigger_Out equ 3
DebugStub_Const_Vs2Ds_Noop equ 0
DebugStub_Const_Vs2Ds_TraceOff equ 1
DebugStub_Const_Vs2Ds_TraceOn equ 2
DebugStub_Const_Vs2Ds_Break equ 3
DebugStub_Const_Vs2Ds_Continue equ 4
DebugStub_Const_Vs2Ds_BreakOnAddress equ 6
DebugStub_Const_Vs2Ds_BatchBegin equ 7
DebugStub_Const_Vs2Ds_BatchEnd equ 8
DebugStub_Const_Vs2Ds_StepInto equ 5
DebugStub_Const_Vs2Ds_StepOver equ 11
DebugStub_Const_Vs2Ds_StepOut equ 12
DebugStub_Const_Vs2Ds_SendMethodContext equ 9
DebugStub_Const_Vs2Ds_SendMemory equ 10
DebugStub_Const_Vs2Ds_SendRegisters equ 13
DebugStub_Const_Vs2Ds_SendFrame equ 14
DebugStub_Const_Vs2Ds_SendStack equ 15
DebugStub_Const_Vs2Ds_SetAsmBreak equ 16
DebugStub_Const_Vs2Ds_Ping equ 17
DebugStub_Const_Vs2Ds_AsmStepInto equ 18
DebugStub_Const_Vs2Ds_SetINT3 equ 19
DebugStub_Const_Vs2Ds_ClearINT3 equ 20
DebugStub_Const_Vs2Ds_Max equ 21
DebugStub_Const_Ds2Vs_Noop equ 0
DebugStub_Const_Ds2Vs_TracePoint equ 1
DebugStub_Const_Ds2Vs_Message equ 192
DebugStub_Const_Ds2Vs_BreakPoint equ 3
DebugStub_Const_Ds2Vs_Error equ 4
DebugStub_Const_Ds2Vs_Pointer equ 5
DebugStub_Const_Ds2Vs_Started equ 6
DebugStub_Const_Ds2Vs_MethodContext equ 7
DebugStub_Const_Ds2Vs_MemoryData equ 8
DebugStub_Const_Ds2Vs_CmdCompleted equ 9
DebugStub_Const_Ds2Vs_Registers equ 10
DebugStub_Const_Ds2Vs_Frame equ 11
DebugStub_Const_Ds2Vs_Stack equ 12
DebugStub_Const_Ds2Vs_Pong equ 13
DebugStub_Const_Ds2Vs_BreakPointAsm equ 14
DebugStub_Const_Ds2Vs_StackCorruptionOccurred equ 15
DebugStub_Const_Ds2Vs_MessageBox equ 16
DebugStub_Const_Ds2Vs_NullReferenceOccurred equ 17
DebugStub_Const_Ds2Vs_SimpleNumber equ 18
| 33.163934 | 53 | 0.886802 |
36a07a900d9ce20a0470bee286825ff4daf37204 | 4,300 | asm | Assembly | Test.asm | hailong-lu/LearnGit | f8cde0c1f52abfebe2814091f43e84d59fadfc65 | [
"MIT"
] | null | null | null | Test.asm | hailong-lu/LearnGit | f8cde0c1f52abfebe2814091f43e84d59fadfc65 | [
"MIT"
] | null | null | null | Test.asm | hailong-lu/LearnGit | f8cde0c1f52abfebe2814091f43e84d59fadfc65 | [
"MIT"
] | null | null | null | Base::Base() [base object constructor]:
push rbp
mov rbp, rsp
mov QWORD PTR [rbp-8], rdi
nop
pop rbp
ret
Base::Base(Base const&):
push rbp
mov rbp, rsp
mov QWORD PTR [rbp-8], rdi
mov QWORD PTR [rbp-16], rsi
nop
pop rbp
ret
Base::operator=(Base const&):
push rbp
mov rbp, rsp
mov QWORD PTR [rbp-8], rdi
mov QWORD PTR [rbp-16], rsi
mov rax, QWORD PTR [rbp-8]
pop rbp
ret
Base::~Base() [base object destructor]:
push rbp
mov rbp, rsp
mov QWORD PTR [rbp-8], rdi
nop
pop rbp
ret
Test::Test() [base object constructor]:
push rbp
mov rbp, rsp
sub rsp, 16
mov QWORD PTR [rbp-8], rdi
mov rax, QWORD PTR [rbp-8]
mov rdi, rax
call Base::Base() [base object constructor]
mov rax, QWORD PTR [rbp-8]
add rax, 16
mov rdi, rax
call std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string() [complete object constructor]
nop
leave
ret
Test::Test(Test const&):
push rbp
mov rbp, rsp
push rbx
sub rsp, 24
mov QWORD PTR [rbp-24], rdi
mov QWORD PTR [rbp-32], rsi
mov rdx, QWORD PTR [rbp-32]
mov rax, QWORD PTR [rbp-24]
mov rsi, rdx
mov rdi, rax
call Base::Base(Base const&)
mov rax, QWORD PTR [rbp-32]
mov edx, DWORD PTR [rax]
mov rax, QWORD PTR [rbp-24]
mov DWORD PTR [rax], edx
mov rax, QWORD PTR [rbp-32]
mov rdx, QWORD PTR [rax+8]
mov rax, QWORD PTR [rbp-24]
mov QWORD PTR [rax+8], rdx
mov rax, QWORD PTR [rbp-24]
add rax, 16
mov rdx, QWORD PTR [rbp-32]
add rdx, 16
mov rsi, rdx
mov rdi, rax
call std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
jmp .L19
mov rbx, rax
mov rax, QWORD PTR [rbp-24]
mov rdi, rax
call Base::~Base() [base object destructor]
mov rax, rbx
mov rdi, rax
call _Unwind_Resume
.L19:
mov rbx, QWORD PTR [rbp-8]
leave
ret
Test::operator=(Test const&):
push rbp
mov rbp, rsp
sub rsp, 16
mov QWORD PTR [rbp-8], rdi
mov QWORD PTR [rbp-16], rsi
mov rdx, QWORD PTR [rbp-16]
mov rax, QWORD PTR [rbp-8]
mov rsi, rdx
mov rdi, rax
call Base::operator=(Base const&)
mov rax, QWORD PTR [rbp-16]
mov edx, DWORD PTR [rax]
mov rax, QWORD PTR [rbp-8]
mov DWORD PTR [rax], edx
mov rax, QWORD PTR [rbp-16]
mov rdx, QWORD PTR [rax+8]
mov rax, QWORD PTR [rbp-8]
mov QWORD PTR [rax+8], rdx
mov rax, QWORD PTR [rbp-16]
lea rdx, [rax+16]
mov rax, QWORD PTR [rbp-8]
add rax, 16
mov rsi, rdx
mov rdi, rax
call std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
mov rax, QWORD PTR [rbp-8]
leave
ret
Test::~Test() [base object destructor]:
push rbp
mov rbp, rsp
sub rsp, 16
mov QWORD PTR [rbp-8], rdi
mov rax, QWORD PTR [rbp-8]
add rax, 16
mov rdi, rax
call std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string() [complete object destructor]
mov rax, QWORD PTR [rbp-8]
mov rdi, rax
call Base::~Base() [base object destructor]
nop
leave
ret
| 33.333333 | 197 | 0.486047 |
775220f722ec7ab075cb33a49ad20fd94b5e9ab5 | 788 | asm | Assembly | oeis/080/A080982.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/080/A080982.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/080/A080982.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A080982: Smallest k such that the k-th triangular number has n^2 as divisor.
; Submitted by Christian Krause
; 1,7,8,31,24,8,48,127,80,24,120,63,168,48,99,511,288,80,360,224,98,120,528,512,624,168,728,735,840,224,960,2047,242,288,49,1215,1368,360,675,1024,1680,440,1848,1088,324,528,2208,512,2400,624,288,1183,2808,728,725,2303,360,840,3480,224,3720,960,1862,8191,675,1088,4488,288,2115,1175,5040,3968,5328,1368,1250,2527,2057,1520,6240,1024,6560,1680,6888,2303,2600,1848,1682,6655,7920,2024,3380,7935,3843,2208,3249,4095,9408,2400,242,9375
add $0,1
pow $0,2
mov $3,$0
mul $3,3
mov $4,$0
lpb $3
add $0,$3
lpb $5
mov $2,$0
mod $2,$4
cmp $2,0
add $3,$5
mov $4,10
sub $5,$2
lpe
mov $2,$0
cmp $2,1
cmp $2,0
sub $3,$2
add $5,2
lpe
mov $0,$5
div $0,2
| 28.142857 | 431 | 0.667513 |
9ea4566919be3841ccd86d6e89ed236b0aaee6d0 | 425 | asm | Assembly | oeis/349/A349513.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/349/A349513.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/349/A349513.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A349513: a(n) = n! * Sum_{k=0..n} (2*k)! / (k!)^3.
; Submitted by Jon Maiga
; 1,3,12,56,294,1722,11256,82224,670662,6084578,61030536,672041328,8067200092,104884001796,1468416141744,22026397243680,352422956979270,5991192602253810,107841475915703880,2048988077743637520,40979761692719279220,860574996085362738060
mov $3,1
lpb $0
sub $0,1
add $1,1
mov $2,$1
mul $2,2
bin $2,$1
mul $3,$1
add $3,$2
lpe
mov $0,$3
| 26.5625 | 234 | 0.712941 |
446c5ebe411a1e43caba0bb2913da26af8304669 | 172 | asm | Assembly | libsrc/_DEVELOPMENT/adt/p_queue/c/sccz80/p_queue_empty.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/adt/p_queue/c/sccz80/p_queue_empty.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/adt/p_queue/c/sccz80/p_queue_empty.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
; int p_queue_empty(p_queue_t *q)
SECTION code_adt_p_queue
PUBLIC p_queue_empty
defc p_queue_empty = asm_p_queue_empty
INCLUDE "adt/p_queue/z80/asm_p_queue_empty.asm"
| 15.636364 | 47 | 0.825581 |
8bc0ea6a4507a8a46ba0168bd65917fb3f46e63a | 475 | asm | Assembly | libsrc/spectrum/zxmmc/mmc_getpage.asm | andydansby/z88dk-mk2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | 1 | 2020-09-15T08:35:49.000Z | 2020-09-15T08:35:49.000Z | libsrc/spectrum/zxmmc/mmc_getpage.asm | andydansby/z88dk-MK2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | null | null | null | libsrc/spectrum/zxmmc/mmc_getpage.asm | andydansby/z88dk-MK2 | 51c15f1387293809c496f5eaf7b196f8a0e9b66b | [
"ClArtistic"
] | null | null | null | ;
; ZX Spectrum ZXMMC specific routines
; ported to z88dk by Stefano Bodrato - Feb 2010
;
; $Id: mmc_getpage.asm,v 1.1 2010/03/27 18:59:25 stefano Exp $
;
;-----------------------------------------------------------------------------------------
; Get the current ZXMMC+ page setting
;-----------------------------------------------------------------------------------------
;
XLIB mmc_getpage
INCLUDE "zxmmc.def"
mmc_getpage:
in a,(FASTPAGE)
ld h,0
ld l,a
ret
| 22.619048 | 90 | 0.425263 |
a1cd29c1b56f58d9ca95471a4919e66d8fe288c2 | 1,766 | asm | Assembly | ee/hk/poll.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | ee/hk/poll.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | ee/hk/poll.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | ; HOTKEY polling routine V2.01 1988 Tony Tebby QJUMP
section hotkey
xdef hk_poll
xref hk_sstbf
xref hk_rjob
xref hk_fitmk
include 'dev8_keys_qu'
include 'dev8_keys_sys'
include 'dev8_keys_qlv'
include 'dev8_ee_hk_data'
include 'dev8_mac_assert'
;+++
; Hotkey polling routine.
; (Transfers old stuffer buffer to new stuffer buffer)
; Invokes Hotkey program on recognised ALT keystroke
;---
hk_poll
btst #sys..shk,sys_klock(a6) ; suppressed?
bne.s hkp_rts
tst.l hkd_jbid(a3) ; job id
beq.s hkp_rts ; ... none
move.w hkd_sbfc(a3),d2 ; anything put into old HOT buffer
beq.s hkp_ckq
lea hkd_sbfc(a3),a1 ; set pointer
clr.w (a1)+ ; and clear old buffer
jsr hk_sstbf ; stuff new style
hkp_ckq
move.l sys_ckyq(a6),a2 ; set keyboard queue pointer
move.l a3,a4
move.w ioq.test,a3 ; test the queue
jsr (a3)
move.l a4,a3
bne.s hkp_ckrq ; ... nothing there
addq.b #1,d1 ; something, is it $FF
bne.s hkp_ckrq ; ... no, check request
; found ALT
move.l qu_nexto(a2),a1 ; now check the next character
addq.l #1,a1
cmp.l qu_endq(a2),a1 ; off end?
blt.s hkp_tempty ; ... no, test empty
lea qu_strtq(a2),a1 ; ... yes, reset out pointer
hkp_tempty
move.l qu_nexti(a2),d2 ; keep nextin pointer
cmp.l d2,a1 ; in and out the same?
beq.s hkp_ckrq ; ... yes, can't read next character
moveq #0,d1
move.b (a1),d1 ; get next character
jsr hk_fitmk ; and item
tst.w d2
ble.s hkp_rts ; ... none, (or off)
move.w d1,hkd_key(a3) ; set (or overwrite) key action
move.l qu_nexto(a2),qu_nexti(a2); remove pending
st hkd_req(a3) ; request action
hkp_ckrq
assert hkd_act+1,hkd_req
tst.w hkd_act(a3) ; busy?
bgt.l hk_rjob ; ... should be, release hotkey job
hkp_rts
rts
end
| 24.873239 | 63 | 0.680068 |
4fba729cebbf84b157fb552dac1e5067ac58368b | 474 | asm | Assembly | programs/oeis/325/A325313.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/325/A325313.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/325/A325313.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A325313: a(n) = A048250(n) - n, where A048250(n) is the sum of squarefree divisors of n.
; 0,1,1,-1,1,6,1,-5,-5,8,1,0,1,10,9,-13,1,-6,1,-2,11,14,1,-12,-19,16,-23,-4,1,42,1,-29,15,20,13,-24,1,22,17,-22,1,54,1,-8,-21,26,1,-36,-41,-32,21,-10,1,-42,17,-32,23,32,1,12,1,34,-31,-61,19,78,1,-14,27,74,1,-60,1,40,-51,-16,19,90,1,-62,-77,44,1,12,23,46,33,-52,1,-18,21,-20,35,50,25,-84,1,-74,-51,-82
mov $2,$0
seq $0,48250 ; Sum of the squarefree divisors of n.
sub $0,$2
sub $0,1
| 59.25 | 300 | 0.586498 |
5b233200baf8b0b30d91ee7ff14fbf102c6859f7 | 3,844 | asm | Assembly | libsrc/sprites/software/sp1/zx81hr/zx81hr-customize.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/sprites/software/sp1/zx81hr/zx81hr-customize.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/sprites/software/sp1/zx81hr/zx81hr-customize.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; CUSTOMIZATION TEMPLATE FOR SP1
; 02.2008 aralbrec, Sprite Pack v3.0
; zx81 hi-res-graphics version
; This customization file is intended for a 64k
; zx96 computer with memory map as follows:
;
; 0000 - 1fff : 8k : ROM
; 2000 - 3fff : 8k : RAM or EPROM/EEPROM (m/c possible)
; 4000 - 7fff : 16k : RAM (basic, m/c possible)
; 8000 - bfff : 16k : RAM (basic, m/c possible)
; c000 - ffff : 16k : RAM/RAM-echo (only data, no m/c)
;
; For other targets you must select a different
; and appropriate memory map by making changes below.
; At least 32k RAM is recommended.
;
; Keep in mind that the "struct sp1_ss" and "struct sp1_cs"
; that the library allocates when creating sprites contain
; executable code, meaning they must be allocated out of a
; memory block capable of executing m/c.
; ///////////////////////
; Display Characteristics
; ///////////////////////
defc SP1V_DISPORIGX = 0 ; x coordinate of top left corner of area managed by sp1 in characters
defc SP1V_DISPORIGY = 0 ; y coordinate of top left corner of area managed by sp1 in characters
defc SP1V_DISPWIDTH = 32 ; width of area managed by sp1 in characters (16, 24, 32 ok as of now)
defc SP1V_DISPHEIGHT = 24 ; height of area managed by sp1 in characters (anything reasonable ok)
; ///////////////////////
; Buffers
; ///////////////////////
defc SP1V_PIXELBUFFER = $bcf8 ; address of an 8-byte buffer to hold intermediate pixel-draw results
; ///////////////////////
; Temp Variables
; ///////////////////////
defc SP1V_TEMP_AF = $bcf2
defc SP1V_TEMP_IX = $bcf6
defc SP1V_TEMP_IY = $bced
; ///////////////////////
; Data Structures
; ///////////////////////
defc SP1V_TILEARRAY = $f000 ; address of the 512-byte tile array associating character codes with tile graphics, must lie on 256-byte boundary (LSB=0)
defc SP1V_UPDATEARRAY = $d500 ; address of the 9*SP1V_DISPWIDTH*SP1V_DISPHEIGHT byte update array
defc SP1V_ROTTBL = $f000 ; location of the 3584-byte rotation table. Must lie on 256-byte boundary (LSB=0). Table begins $0200 bytes ahead of this
; pointer ($f200-$ffff in this default case). Set to $0000 if the table is not needed (if, for example, all sprites
; are drawn at exact horizontal character coordinates or you use pre-shifted sprites only).
; ///////////////////////
; SP1 Variables
; ///////////////////////
defc SP1V_UPDATELISTH = $bcef ; address of 9-byte area holding a dummy struct_sp1_update that is always the "first" in list of screen tiles to be drawn
defc SP1V_UPDATELISTT = $bcf0 ; address of 2-byte variable holding the address of the last struct_sp1_update in list of screen tiles to be drawn
; NOTE: SP1V_UPDATELISTT is located inside the dummy struct_sp1_update pointed at by SP1V_UPDATELISTH
; ///////////////////////
; DEFAULT MEMORY MAP
; ///////////////////////
; With these default settings the memory map is:
;
; ADDRESS (HEX) LIBRARY DESCRIPTION
;
; f200 - ffff SP1.LIB horizontal rotation tables
; f000 - f1ff SP1.LIB tile array
; d500 - efff SP1.LIB update array for 32x24 display
; bd00 - d4ff ZX81HRG 256x192 display file (suggested, least significant 5 bits of address must be 0)
; bcf8 - bcff SP1.LIB pixel buffer
; bcef - bcf7 SP1.LIB update list head - a dummy struct sp1_update acting as first in invalidated list
; * bcf0 - bcf1 SP1.LIB update list tail pointer (inside dummy struct sp1_update)
; * bcf2 - bcf3 SP1.LIB SP1V_TEMP_AF (inside dummy struct sp1_update)
; * bcf6 - bcf7 SP1.LIB SP1V_TEMP_IX (inside dummy struct sp1_update)
; bced - bcee SP1.LIB SP1V_TEMP_IY
| 46.313253 | 166 | 0.631374 |
8f6a7cfd3326e8406f9e3aded2655c230f6983dd | 337 | asm | Assembly | oeis/097/A097202.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/097/A097202.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/097/A097202.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A097202: Numbers of the form 5^p - p^5 for p prime.
; Submitted by Jamie Morken(s2)
; -7,-118,0,61318,48667074,1220331832,762938033268,19073483852026,11920928948641782,186264514923075191976,4656612873077363948974,72759576141834258963859168,45474735088646411895636096924
seq $0,40 ; The prime numbers.
seq $0,24054 ; a(n) = 5^n - n^5.
| 48.142857 | 185 | 0.78635 |
c1efce644eb79625d1a24e3aa0fbe26961be386a | 807 | asm | Assembly | oeis/142/A142378.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/142/A142378.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/142/A142378.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A142378: Primes congruent to 27 mod 47.
; Submitted by Jon Maiga
; 967,1061,1249,1531,1907,2377,2659,2753,3881,5009,5197,5479,5573,6043,6607,6701,6983,7547,7829,8017,8111,8581,8863,9239,9521,9803,10273,10837,11119,11213,11777,13093,13187,13469,13751,14033,14221,14503,14879,15161,15349,15443,15913,16007,16477,16759,17041,17417,17981,18169,18451,19391,19861,20143,20707,21647,21929,22963,23057,23339,24091,24373,24749,25031,25219,26347,26723,27851,28603,28697,28979,29167,30013,30389,30577,30671,30859,31517,31799,32363,32833,33679,33773,33961,34337,34807,35089
mov $2,$0
add $2,6
pow $2,2
lpb $2
mov $3,$4
add $3,26
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
mov $1,$0
max $1,0
cmp $1,$0
mul $2,$1
sub $2,1
add $4,47
lpe
mov $0,$4
add $0,27
| 36.681818 | 496 | 0.73482 |
9131357633da5fdd5065fd7757e43ea9e1d38d4d | 729 | asm | Assembly | shellcode/test1.asm | JBFATHR2DU/python-x86-obfuscator | 17ccccc5954ec9f8e5160410e287bf54771ea38e | [
"MIT"
] | 202 | 2016-05-12T11:02:18.000Z | 2022-03-28T02:40:46.000Z | shellcode/test1.asm | samyoyo/python-x86-obfuscator | 17ccccc5954ec9f8e5160410e287bf54771ea38e | [
"MIT"
] | 8 | 2016-05-12T11:08:24.000Z | 2016-08-26T14:31:36.000Z | shellcode/test1.asm | samyoyo/python-x86-obfuscator | 17ccccc5954ec9f8e5160410e287bf54771ea38e | [
"MIT"
] | 81 | 2016-05-13T00:07:32.000Z | 2022-01-07T10:45:25.000Z | use32
org 0h
cld
mov cl, 5
cmp ah, 2
jnz start
mov ax, 8888h
push 0cafebabeh
push 0
push 22h
push 8888h
start:
mov edx, 11223344h
mov edi, [fs:eax+30h]
mov dl, byte [ecx+2]
mov edx, [ecx+2]
mov edx, [ecx+4444h]
mov dx, word [ecx+4444h]
mov ecx, [edx+esi+88h]
mov ecx, [edx+esi-88h]
mov ecx, [edx+esi-12h]
mov ecx, [edx+esi+8888h]
mov ecx, [edx+esi*2+88h]
nop
cmp byte [edx+esi*4+80], bl
cmp byte [edx+esi*4+80], 0ffh
cmp word [edx+esi*4+80], 0ff88h
cmp dword [edx+esi*4+80], 0ffffh
cmp dword [edx+esi*4+80], 80h
cmp dword [edx+esi*4+80], -12h
cmp dword [edx+esi*4], 0ffffh
cmp dword [edx+esi], 0ffffh
cmp dword [edx], 0ffffh
cmp edx, 88h
loop start
; xor edx, edx | 19.702703 | 34 | 0.624143 |
ccef14f3de815ed4a3541af796688fd45002ef27 | 660 | asm | Assembly | programs/oeis/065/A065311.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/065/A065311.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/065/A065311.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A065311: Primes which occur exactly twice in the sequence of a(n) = prime(n) - prime(n - pi(n)) = A065308(n).
; 3,5,13,17,29,31,43,67,71,97,107,109,131,157,181,191,223,233,239,269,281,313,359,379,383,401,409,431,503,523,569,571,619,631,659,691,719,751,787,797,857,859,881,883,971,1039,1061,1063,1091,1117,1123,1201,1231,1279,1301,1303,1361,1381,1399,1453,1549,1567,1571,1597,1693,1723,1789,1801,1831,1873,1931,1979,2003,2027,2069,2113,2137,2207,2273,2281,2347,2351,2383,2399,2441,2521,2543,2549,2579,2671,2707,2719,2777,2797,2837,2927,2939,3083,3137,3217
add $0,2
seq $0,65890 ; Number of composites less than the n-th prime.
seq $0,40 ; The prime numbers.
| 94.285714 | 444 | 0.742424 |
daecaace75d6a879c98bcf161b0ebed02dbdff5e | 172 | asm | Assembly | 3.expr/generated-asm/380.primitive.asm | takenobu-hs/haskell-ghc-cmm-examples | 20938925f242648598b33db1a6a33f9f9562788c | [
"BSD-3-Clause"
] | 1 | 2021-07-05T00:21:19.000Z | 2021-07-05T00:21:19.000Z | 3.expr/generated-asm/380.primitive.asm | takenobu-hs/haskell-ghc-cmm-examples | 20938925f242648598b33db1a6a33f9f9562788c | [
"BSD-3-Clause"
] | null | null | null | 3.expr/generated-asm/380.primitive.asm | takenobu-hs/haskell-ghc-cmm-examples | 20938925f242648598b33db1a6a33f9f9562788c | [
"BSD-3-Clause"
] | null | null | null |
==================== Asm code ====================
.section .text
.align 8
.globl func1
.type func1, @function
func1:
_c1:
negq %rbx
jmp *(%rbp)
.size func1, .-func1
| 12.285714 | 50 | 0.5 |
6c61585d5143db94a687e3383ef9bb5e270b06ab | 232 | asm | Assembly | libsrc/_DEVELOPMENT/target/zx/driver/terminal/zx_01_output_char_32_tty_z88dk/zx_01_output_char_32_tty_z88dk_15_background_attr.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/target/zx/driver/terminal/zx_01_output_char_32_tty_z88dk/zx_01_output_char_32_tty_z88dk_15_background_attr.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/target/zx/driver/terminal/zx_01_output_char_32_tty_z88dk/zx_01_output_char_32_tty_z88dk_15_background_attr.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
SECTION code_fcntl
PUBLIC zx_01_output_char_32_tty_z88dk_15_background_attr
zx_01_output_char_32_tty_z88dk_15_background_attr:
; change background colour
; de = parameters *
ld a,(de)
ld (ix+25),a
ret
| 14.5 | 56 | 0.732759 |
15f995c202ca09babb043c45e75fe33e121cd439 | 240 | asm | Assembly | libsrc/_DEVELOPMENT/alloc/obstack/c/sdcc_iy/obstack_object_size.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/alloc/obstack/c/sdcc_iy/obstack_object_size.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/alloc/obstack/c/sdcc_iy/obstack_object_size.asm | meesokim/z88dk | 5763c7778f19a71d936b3200374059d267066bb2 | [
"ClArtistic"
] | null | null | null |
; size_t obstack_object_size(struct obstack *ob)
SECTION code_alloc_obstack
PUBLIC _obstack_object_size
EXTERN asm_obstack_object_size
_obstack_object_size:
pop af
pop hl
push hl
push af
jp asm_obstack_object_size
| 12.631579 | 48 | 0.779167 |
0a728ae85622c7b165fa09fbebf73a2a0c689648 | 774 | asm | Assembly | artwork/barbaro_espada.asm | fjpena/sword-of-ianna-zx | fdd6bdb5775933756e75402a7c6be80d5334702d | [
"Apache-2.0"
] | 67 | 2017-10-07T18:48:05.000Z | 2022-02-01T20:37:40.000Z | artwork/barbaro_espada.asm | fjpena/sword-of-ianna-zx | fdd6bdb5775933756e75402a7c6be80d5334702d | [
"Apache-2.0"
] | null | null | null | artwork/barbaro_espada.asm | fjpena/sword-of-ianna-zx | fdd6bdb5775933756e75402a7c6be80d5334702d | [
"Apache-2.0"
] | 9 | 2017-10-06T21:02:55.000Z | 2022-01-06T03:11:58.000Z | ; ASM source file created by SevenuP v1.21
; SevenuP (C) Copyright 2002-2007 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Sort Priorities: X char, Char line, Y char
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
barbaro_espada:
DEFB 96, 0, 0, 96, 31, 0, 96, 32
DEFB 128, 96, 64, 64, 96, 74, 64, 96
DEFB 143, 0, 96, 15, 0, 49,134, 0
DEFB 51,192,128, 51,222, 64, 55,255
DEFB 0, 55,174, 72, 49,191, 20,133
DEFB 61, 72, 48, 66, 20, 56, 61, 8
DEFB 56, 2, 0, 0, 0, 0, 0, 0
DEFB 0, 0, 0, 0, 0, 0, 0, 0
DEFB 6, 0, 0, 31, 0, 0, 79,128
DEFB 0,167,192, 0, 65,192, 2, 0
DEFB 32, 5, 1,192, 10, 3,128, 20
DEFB 3,192, 10, 7,240, 5, 0, 0 | 32.25 | 72 | 0.550388 |
03e87423333872a193257c54a66ee7703e1d689e | 1,644 | asm | Assembly | projects/vmt/test/ProgramFlow/FibonacciSeries/FibonacciSeries.asm | RobertCurry0216/nand2tetris | 5be3e68b921561f9358b28876e1573b093f1244b | [
"MIT"
] | null | null | null | projects/vmt/test/ProgramFlow/FibonacciSeries/FibonacciSeries.asm | RobertCurry0216/nand2tetris | 5be3e68b921561f9358b28876e1573b093f1244b | [
"MIT"
] | null | null | null | projects/vmt/test/ProgramFlow/FibonacciSeries/FibonacciSeries.asm | RobertCurry0216/nand2tetris | 5be3e68b921561f9358b28876e1573b093f1244b | [
"MIT"
] | null | null | null | // push argument 1
@ARG
D=M
@1
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
// pop pointer 1
@THIS
D=A
@1
D=D+A
@R15
M=D
@SP
AM=M-1
D=M
@R15
A=M
M=D
// push constant 0
@0
D=A
@SP
A=M
M=D
@SP
M=M+1
// pop that 0
@THAT
D=M
@0
D=D+A
@R15
M=D
@SP
AM=M-1
D=M
@R15
A=M
M=D
// push constant 1
@1
D=A
@SP
A=M
M=D
@SP
M=M+1
// pop that 1
@THAT
D=M
@1
D=D+A
@R15
M=D
@SP
AM=M-1
D=M
@R15
A=M
M=D
// push argument 0
@ARG
D=M
@0
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 2
@2
D=A
@SP
A=M
M=D
@SP
M=M+1
// sub
@SP
AM=M-1
D=M
A=A-1
M=M-D
// pop argument 0
@ARG
D=M
@0
D=D+A
@R15
M=D
@SP
AM=M-1
D=M
@R15
A=M
M=D
// label MAIN_LOOP_START
(MAIN_LOOP_START)
// push argument 0
@ARG
D=M
@0
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
// if-goto COMPUTE_ELEMENT
@SP
AM=M-1
D=M
@COMPUTE_ELEMENT-FALSE-26
D;JEQ
@COMPUTE_ELEMENT
0;JMP
(COMPUTE_ELEMENT-FALSE-26)
// goto END_PROGRAM
@END_PROGRAM
0;JMP
// label COMPUTE_ELEMENT
(COMPUTE_ELEMENT)
// push that 0
@THAT
D=M
@0
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
// push that 1
@THAT
D=M
@1
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
// add
@SP
AM=M-1
D=M
A=A-1
M=D+M
// pop that 2
@THAT
D=M
@2
D=D+A
@R15
M=D
@SP
AM=M-1
D=M
@R15
A=M
M=D
// push pointer 1
@THIS
D=A
@1
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 1
@1
D=A
@SP
A=M
M=D
@SP
M=M+1
// add
@SP
AM=M-1
D=M
A=A-1
M=D+M
// pop pointer 1
@THIS
D=A
@1
D=D+A
@R15
M=D
@SP
AM=M-1
D=M
@R15
A=M
M=D
// push argument 0
@ARG
D=M
@0
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
// push constant 1
@1
D=A
@SP
A=M
M=D
@SP
M=M+1
// sub
@SP
AM=M-1
D=M
A=A-1
M=M-D
// pop argument 0
@ARG
D=M
@0
D=D+A
@R15
M=D
@SP
AM=M-1
D=M
@R15
A=M
M=D
// goto MAIN_LOOP_START
@MAIN_LOOP_START
0;JMP
// label END_PROGRAM
(END_PROGRAM)
| 6.472441 | 26 | 0.596715 |
03b126fe78e9d63910f656f15dc2b669212ddf93 | 1,339 | asm | Assembly | programs/oeis/035/A035104.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/035/A035104.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/035/A035104.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A035104: First differences give (essentially) A028242.
; 1,4,9,13,19,24,31,37,45,52,61,69,79,88,99,109,121,132,145,157,171,184,199,213,229,244,261,277,295,312,331,349,369,388,409,429,451,472,495,517,541,564,589,613,639,664,691,717,745,772,801,829,859,888,919,949,981,1012,1045,1077,1111,1144,1179,1213,1249,1284,1321,1357,1395,1432,1471,1509,1549,1588,1629,1669,1711,1752,1795,1837,1881,1924,1969,2013,2059,2104,2151,2197,2245,2292,2341,2389,2439,2488,2539,2589,2641,2692,2745,2797,2851,2904,2959,3013,3069,3124,3181,3237,3295,3352,3411,3469,3529,3588,3649,3709,3771,3832,3895,3957,4021,4084,4149,4213,4279,4344,4411,4477,4545,4612,4681,4749,4819,4888,4959,5029,5101,5172,5245,5317,5391,5464,5539,5613,5689,5764,5841,5917,5995,6072,6151,6229,6309,6388,6469,6549,6631,6712,6795,6877,6961,7044,7129,7213,7299,7384,7471,7557,7645,7732,7821,7909,7999,8088,8179,8269,8361,8452,8545,8637,8731,8824,8919,9013,9109,9204,9301,9397,9495,9592,9691,9789,9889,9988,10089,10189,10291,10392,10495,10597,10701,10804,10909,11013,11119,11224,11331,11437,11545,11652,11761,11869,11979,12088,12199,12309,12421,12532,12645,12757,12871,12984,13099,13213,13329,13444,13561,13677,13795,13912,14031,14149,14269,14388,14509,14629,14751,14872,14995,15117,15241,15364,15489,15613,15739,15864,15991,16117,16245,16372
mov $1,$0
add $1,14
mul $1,$0
div $1,4
add $1,1
| 148.777778 | 1,232 | 0.785661 |
0aa9c896e1f8f2689ca49d87bebe22a6554e18c2 | 37,294 | asm | Assembly | tmp1/c55x-sim2/foo/Debug/flash.asm | jwestmoreland/eZdsp-DBG-sim | f6eacd75d4f928dec9c751545e9e919d052e4ade | [
"MIT"
] | 1 | 2020-08-27T11:31:13.000Z | 2020-08-27T11:31:13.000Z | tmp1/c55x-sim2/foo/Debug/flash.asm | jwestmoreland/eZdsp-DBG-sim | f6eacd75d4f928dec9c751545e9e919d052e4ade | [
"MIT"
] | null | null | null | tmp1/c55x-sim2/foo/Debug/flash.asm | jwestmoreland/eZdsp-DBG-sim | f6eacd75d4f928dec9c751545e9e919d052e4ade | [
"MIT"
] | null | null | null | ;*******************************************************************************
;* TMS320C55x C/C++ Codegen PC v4.4.1 *
;* Date/Time created: Sat Oct 06 06:38:44 2018 *
;*******************************************************************************
.compiler_opts --hll_source=on --mem_model:code=flat --mem_model:data=large --object_format=coff --silicon_core_3_3 --symdebug:dwarf
.mmregs
.cpl_on
.arms_on
.c54cm_off
.asg AR6, FP
.asg XAR6, XFP
.asg DPH, MDP
.model call=c55_std
.model mem=large
.noremark 5002 ; code respects overwrite rules
;*******************************************************************************
;* GLOBAL FILE PARAMETERS *
;* *
;* Architecture : TMS320C55x *
;* Optimizing for : Speed *
;* Memory : Large Model (23-Bit Data Pointers) *
;* Calls : Normal Library ASM calls *
;* Debug Info : Standard TI Debug Information *
;*******************************************************************************
$C$DW$CU .dwtag DW_TAG_compile_unit
.dwattr $C$DW$CU, DW_AT_name("../FreeRTOS/Demo/Common/Minimal/flash.c")
.dwattr $C$DW$CU, DW_AT_producer("TMS320C55x C/C++ Codegen PC v4.4.1 Copyright (c) 1996-2012 Texas Instruments Incorporated")
.dwattr $C$DW$CU, DW_AT_TI_version(0x01)
.dwattr $C$DW$CU, DW_AT_comp_dir("F:\eZdsp_DBG\tmp1\c55x-sim2\foo\Debug")
;******************************************************************************
;* CINIT RECORDS *
;******************************************************************************
.sect ".cinit"
.align 1
.field 1,16
.field _uxFlashTaskNumber+0,24
.field 0,8
.field 0,16 ; _uxFlashTaskNumber @ 0
.sect ".cinit"
.align 1
.field 2,16
.field _LED_Blink_ctr+0,24
.field 0,8
.field 0,32 ; _LED_Blink_ctr @ 0
$C$DW$1 .dwtag DW_TAG_subprogram, DW_AT_name("xTaskCreate")
.dwattr $C$DW$1, DW_AT_TI_symbol_name("_xTaskCreate")
.dwattr $C$DW$1, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$1, DW_AT_declaration
.dwattr $C$DW$1, DW_AT_external
$C$DW$2 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$2, DW_AT_type(*$C$DW$T$23)
$C$DW$3 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$3, DW_AT_type(*$C$DW$T$35)
$C$DW$4 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$4, DW_AT_type(*$C$DW$T$37)
$C$DW$5 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$5, DW_AT_type(*$C$DW$T$20)
$C$DW$6 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$6, DW_AT_type(*$C$DW$T$28)
$C$DW$7 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$7, DW_AT_type(*$C$DW$T$41)
.dwendtag $C$DW$1
$C$DW$8 .dwtag DW_TAG_subprogram, DW_AT_name("vTaskDelay")
.dwattr $C$DW$8, DW_AT_TI_symbol_name("_vTaskDelay")
.dwattr $C$DW$8, DW_AT_declaration
.dwattr $C$DW$8, DW_AT_external
$C$DW$9 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$9, DW_AT_type(*$C$DW$T$25)
.dwendtag $C$DW$8
$C$DW$10 .dwtag DW_TAG_subprogram, DW_AT_name("xTaskGetTickCount")
.dwattr $C$DW$10, DW_AT_TI_symbol_name("_xTaskGetTickCount")
.dwattr $C$DW$10, DW_AT_type(*$C$DW$T$24)
.dwattr $C$DW$10, DW_AT_declaration
.dwattr $C$DW$10, DW_AT_external
$C$DW$11 .dwtag DW_TAG_subprogram, DW_AT_name("vParTestToggleLED")
.dwattr $C$DW$11, DW_AT_TI_symbol_name("_vParTestToggleLED")
.dwattr $C$DW$11, DW_AT_declaration
.dwattr $C$DW$11, DW_AT_external
$C$DW$12 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$12, DW_AT_type(*$C$DW$T$28)
.dwendtag $C$DW$11
.bss _uxFlashTaskNumber,1,0,0
$C$DW$13 .dwtag DW_TAG_variable, DW_AT_name("uxFlashTaskNumber")
.dwattr $C$DW$13, DW_AT_TI_symbol_name("_uxFlashTaskNumber")
.dwattr $C$DW$13, DW_AT_type(*$C$DW$T$44)
.dwattr $C$DW$13, DW_AT_location[DW_OP_addr _uxFlashTaskNumber]
.global _LED_Blink_ctr
.bss _LED_Blink_ctr,2,0,2
$C$DW$14 .dwtag DW_TAG_variable, DW_AT_name("LED_Blink_ctr")
.dwattr $C$DW$14, DW_AT_TI_symbol_name("_LED_Blink_ctr")
.dwattr $C$DW$14, DW_AT_location[DW_OP_addr _LED_Blink_ctr]
.dwattr $C$DW$14, DW_AT_type(*$C$DW$T$13)
.dwattr $C$DW$14, DW_AT_external
$C$DW$15 .dwtag DW_TAG_variable, DW_AT_name("usCriticalNesting")
.dwattr $C$DW$15, DW_AT_TI_symbol_name("_usCriticalNesting")
.dwattr $C$DW$15, DW_AT_type(*$C$DW$T$45)
.dwattr $C$DW$15, DW_AT_declaration
.dwattr $C$DW$15, DW_AT_external
; F:\t\cc5p5\ccsv5\tools\compiler\c5500_4.4.1\bin\acp55.exe -@f:\\AppData\\Local\\Temp\\1702012
.sect ".text"
.align 4
.global _vStartLEDFlashTasks
$C$DW$16 .dwtag DW_TAG_subprogram, DW_AT_name("vStartLEDFlashTasks")
.dwattr $C$DW$16, DW_AT_low_pc(_vStartLEDFlashTasks)
.dwattr $C$DW$16, DW_AT_high_pc(0x00)
.dwattr $C$DW$16, DW_AT_TI_symbol_name("_vStartLEDFlashTasks")
.dwattr $C$DW$16, DW_AT_external
.dwattr $C$DW$16, DW_AT_TI_begin_file("../FreeRTOS/Demo/Common/Minimal/flash.c")
.dwattr $C$DW$16, DW_AT_TI_begin_line(0x43)
.dwattr $C$DW$16, DW_AT_TI_begin_column(0x06)
.dwattr $C$DW$16, DW_AT_TI_max_frame_size(0x04)
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 68,column 1,is_stmt,address _vStartLEDFlashTasks
.dwfde $C$DW$CIE, _vStartLEDFlashTasks
$C$DW$17 .dwtag DW_TAG_formal_parameter, DW_AT_name("uxPriority")
.dwattr $C$DW$17, DW_AT_TI_symbol_name("_uxPriority")
.dwattr $C$DW$17, DW_AT_type(*$C$DW$T$28)
.dwattr $C$DW$17, DW_AT_location[DW_OP_reg12]
;*******************************************************************************
;* FUNCTION NAME: vStartLEDFlashTasks *
;* *
;* Function Uses Regs : AC0,AC0,T0,T1,AR0,XAR0,AR1,XAR1,AR2,XAR2,SP,CARRY, *
;* TC1,M40,SATA,SATD,RDM,FRCT,SMUL *
;* Stack Frame : Compact (No Frame Pointer, w/ debug) *
;* Total Frame Size : 4 words *
;* (2 return address/alignment) *
;* (2 local values) *
;* Min System Stack : 1 word *
;*******************************************************************************
_vStartLEDFlashTasks:
.dwcfi cfa_offset, 1
.dwcfi save_reg_to_mem, 91, -1
AADD #-3, SP
.dwcfi cfa_offset, 4
$C$DW$18 .dwtag DW_TAG_variable, DW_AT_name("uxPriority")
.dwattr $C$DW$18, DW_AT_TI_symbol_name("_uxPriority")
.dwattr $C$DW$18, DW_AT_type(*$C$DW$T$28)
.dwattr $C$DW$18, DW_AT_location[DW_OP_bregx 0x24 0]
$C$DW$19 .dwtag DW_TAG_variable, DW_AT_name("xLEDTask")
.dwattr $C$DW$19, DW_AT_TI_symbol_name("_xLEDTask")
.dwattr $C$DW$19, DW_AT_type(*$C$DW$T$31)
.dwattr $C$DW$19, DW_AT_location[DW_OP_bregx 0x24 1]
MOV T0, *SP(#0) ; |68|
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 72,column 7,is_stmt
MOV #0, *SP(#1) ; |72|
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 72,column 21,is_stmt
MOV *SP(#1), AR1 ; |72|
|| MOV #5, AR2
CMP AR1 >= AR2, TC1 ; |72|
BCC $C$L2,TC1 ; |72|
; branchcc occurs ; |72|
$C$L1:
$C$DW$L$_vStartLEDFlashTasks$2$B:
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 75,column 3,is_stmt
MOV #(_vLEDFlashTask >> 16) << #16, AC0 ; |75|
MOV *SP(#0), T1 ; |75|
AMOV #0, XAR2 ; |75|
AMOV #0, XAR1 ; |75|
AMOV #$C$FSL1, XAR0 ; |75|
MOV #256, T0 ; |75|
OR #(_vLEDFlashTask & 0xffff), AC0, AC0 ; |75|
$C$DW$20 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$20, DW_AT_low_pc(0x00)
.dwattr $C$DW$20, DW_AT_name("_xTaskCreate")
.dwattr $C$DW$20, DW_AT_TI_call
CALL #_xTaskCreate ; |75|
; call occurs [#_xTaskCreate] ; |75|
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 72,column 51,is_stmt
ADD #1, *SP(#1) ; |72|
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 72,column 21,is_stmt
MOV #5, AR2
MOV *SP(#1), AR1 ; |72|
CMP AR1 < AR2, TC1 ; |72|
BCC $C$L1,TC1 ; |72|
; branchcc occurs ; |72|
$C$DW$L$_vStartLEDFlashTasks$2$E:
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 77,column 1,is_stmt
$C$L2:
AADD #3, SP
.dwcfi cfa_offset, 1
$C$DW$21 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$21, DW_AT_low_pc(0x00)
.dwattr $C$DW$21, DW_AT_TI_return
RET
; return occurs
$C$DW$22 .dwtag DW_TAG_TI_loop
.dwattr $C$DW$22, DW_AT_name("F:\eZdsp_DBG\tmp1\c55x-sim2\foo\Debug\flash.asm:$C$L1:1:1538833125")
.dwattr $C$DW$22, DW_AT_TI_begin_file("../FreeRTOS/Demo/Common/Minimal/flash.c")
.dwattr $C$DW$22, DW_AT_TI_begin_line(0x48)
.dwattr $C$DW$22, DW_AT_TI_end_line(0x4c)
$C$DW$23 .dwtag DW_TAG_TI_loop_range
.dwattr $C$DW$23, DW_AT_low_pc($C$DW$L$_vStartLEDFlashTasks$2$B)
.dwattr $C$DW$23, DW_AT_high_pc($C$DW$L$_vStartLEDFlashTasks$2$E)
.dwendtag $C$DW$22
.dwattr $C$DW$16, DW_AT_TI_end_file("../FreeRTOS/Demo/Common/Minimal/flash.c")
.dwattr $C$DW$16, DW_AT_TI_end_line(0x4d)
.dwattr $C$DW$16, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$16
.sect ".text"
.align 4
$C$DW$24 .dwtag DW_TAG_subprogram, DW_AT_name("vLEDFlashTask")
.dwattr $C$DW$24, DW_AT_low_pc(_vLEDFlashTask)
.dwattr $C$DW$24, DW_AT_high_pc(0x00)
.dwattr $C$DW$24, DW_AT_TI_symbol_name("_vLEDFlashTask")
.dwattr $C$DW$24, DW_AT_TI_begin_file("../FreeRTOS/Demo/Common/Minimal/flash.c")
.dwattr $C$DW$24, DW_AT_TI_begin_line(0x50)
.dwattr $C$DW$24, DW_AT_TI_begin_column(0x08)
.dwattr $C$DW$24, DW_AT_TI_max_frame_size(0x08)
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 81,column 1,is_stmt,address _vLEDFlashTask
.dwfde $C$DW$CIE, _vLEDFlashTask
$C$DW$25 .dwtag DW_TAG_formal_parameter, DW_AT_name("pvParameters")
.dwattr $C$DW$25, DW_AT_TI_symbol_name("_pvParameters")
.dwattr $C$DW$25, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$25, DW_AT_location[DW_OP_reg17]
;*******************************************************************************
;* FUNCTION NAME: vLEDFlashTask *
;* *
;* Function Uses Regs : AC0,AC0,AC1,AC1,T0,AR0,XAR0,AR1,AR3,XAR3,SP,CARRY, *
;* M40,SATA,SATD,RDM,FRCT,SMUL *
;* Stack Frame : Compact (No Frame Pointer, w/ debug) *
;* Total Frame Size : 8 words *
;* (1 return address/alignment) *
;* (7 local values) *
;* Min System Stack : 1 word *
;*******************************************************************************
_vLEDFlashTask:
.dwcfi cfa_offset, 1
.dwcfi save_reg_to_mem, 91, -1
AADD #-7, SP
.dwcfi cfa_offset, 8
$C$DW$26 .dwtag DW_TAG_variable, DW_AT_name("pvParameters")
.dwattr $C$DW$26, DW_AT_TI_symbol_name("_pvParameters")
.dwattr $C$DW$26, DW_AT_type(*$C$DW$T$3)
.dwattr $C$DW$26, DW_AT_location[DW_OP_bregx 0x24 0]
$C$DW$27 .dwtag DW_TAG_variable, DW_AT_name("xFlashRate")
.dwattr $C$DW$27, DW_AT_TI_symbol_name("_xFlashRate")
.dwattr $C$DW$27, DW_AT_type(*$C$DW$T$24)
.dwattr $C$DW$27, DW_AT_location[DW_OP_bregx 0x24 2]
$C$DW$28 .dwtag DW_TAG_variable, DW_AT_name("xLastFlashTime")
.dwattr $C$DW$28, DW_AT_TI_symbol_name("_xLastFlashTime")
.dwattr $C$DW$28, DW_AT_type(*$C$DW$T$24)
.dwattr $C$DW$28, DW_AT_location[DW_OP_bregx 0x24 4]
$C$DW$29 .dwtag DW_TAG_variable, DW_AT_name("uxLED")
.dwattr $C$DW$29, DW_AT_TI_symbol_name("_uxLED")
.dwattr $C$DW$29, DW_AT_type(*$C$DW$T$28)
.dwattr $C$DW$29, DW_AT_location[DW_OP_bregx 0x24 6]
MOV XAR0, dbl(*SP(#0))
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 86,column 2,is_stmt
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 89,column 2,is_stmt
nop
bset INTM
ADD #1, *(#_usCriticalNesting) ; |89|
NOP
NOP
NOP
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 92,column 3,is_stmt
MOV *(#_uxFlashTaskNumber), AR1 ; |92|
MOV AR1, *SP(#6) ; |92|
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 95,column 3,is_stmt
ADD #1, *(#_uxFlashTaskNumber) ; |95|
NOP
NOP
NOP
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 97,column 2,is_stmt
MOV *(#_usCriticalNesting), AR1 ; |97|
BCC $C$L3,AR1 == #0 ; |97|
; branchcc occurs ; |97|
SUB #1, *(#_usCriticalNesting) ; |97|
NOP
NOP
NOP
MOV *(#_usCriticalNesting), AR1 ; |97|
BCC $C$L3,AR1 != #0 ; |97|
; branchcc occurs ; |97|
nop
bclr INTM
$C$L3:
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 99,column 2,is_stmt
AMOV #500000, XAR3 ; |99|
MOV uns(*SP(#6)), AC0 ; |99|
MOV XAR3, AC1
$C$DW$30 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$30, DW_AT_low_pc(0x00)
.dwattr $C$DW$30, DW_AT_name("__mpyli")
.dwattr $C$DW$30, DW_AT_TI_call
CALL #__mpyli ; |99|
; call occurs [#__mpyli] ; |99|
MOV XAR3, AC1
ADD AC0, AC1 ; |99|
MOV AC1, dbl(*SP(#2)) ; |99|
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 100,column 2,is_stmt
MOV dbl(*SP(#2)), AC0 ; |100|
MOV AC0, dbl(*SP(#2)) ; |100|
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 104,column 2,is_stmt
MOV dbl(*SP(#2)), AC0 ; |104|
SFTL AC0, #-1 ; |104|
MOV AC0, dbl(*SP(#2)) ; |104|
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 108,column 2,is_stmt
$C$DW$31 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$31, DW_AT_low_pc(0x00)
.dwattr $C$DW$31, DW_AT_name("_xTaskGetTickCount")
.dwattr $C$DW$31, DW_AT_TI_call
CALL #_xTaskGetTickCount ; |108|
; call occurs [#_xTaskGetTickCount] ; |108|
MOV AC0, dbl(*SP(#4)) ; |108|
$C$L4:
$C$DW$L$_vLEDFlashTask$5$B:
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 115,column 3,is_stmt
MOV *SP(#6), T0 ; |115|
$C$DW$32 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$32, DW_AT_low_pc(0x00)
.dwattr $C$DW$32, DW_AT_name("_vParTestToggleLED")
.dwattr $C$DW$32, DW_AT_TI_call
CALL #_vParTestToggleLED ; |115|
; call occurs [#_vParTestToggleLED] ; |115|
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 116,column 3,is_stmt
MOV #500, AC0 ; |116|
$C$DW$33 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$33, DW_AT_low_pc(0x00)
.dwattr $C$DW$33, DW_AT_name("_vTaskDelay")
.dwattr $C$DW$33, DW_AT_TI_call
CALL #_vTaskDelay ; |116|
; call occurs [#_vTaskDelay] ; |116|
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 120,column 3,is_stmt
MOV *SP(#6), T0 ; |120|
$C$DW$34 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$34, DW_AT_low_pc(0x00)
.dwattr $C$DW$34, DW_AT_name("_vParTestToggleLED")
.dwattr $C$DW$34, DW_AT_TI_call
CALL #_vParTestToggleLED ; |120|
; call occurs [#_vParTestToggleLED] ; |120|
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 121,column 3,is_stmt
MOV #500, AC0 ; |121|
$C$DW$35 .dwtag DW_TAG_TI_branch
.dwattr $C$DW$35, DW_AT_low_pc(0x00)
.dwattr $C$DW$35, DW_AT_name("_vTaskDelay")
.dwattr $C$DW$35, DW_AT_TI_call
CALL #_vTaskDelay ; |121|
; call occurs [#_vTaskDelay] ; |121|
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 122,column 3,is_stmt
MOV dbl(*(#_LED_Blink_ctr)), AC0 ; |122|
ADD #1, AC0 ; |122|
MOV AC0, dbl(*(#_LED_Blink_ctr)) ; |122|
.dwpsn file "../FreeRTOS/Demo/Common/Minimal/flash.c",line 123,column 2,is_stmt
B $C$L4 ; |123|
; branch occurs ; |123|
$C$DW$L$_vLEDFlashTask$5$E:
.dwcfi cfa_offset, 1
$C$DW$36 .dwtag DW_TAG_TI_loop
.dwattr $C$DW$36, DW_AT_name("F:\eZdsp_DBG\tmp1\c55x-sim2\foo\Debug\flash.asm:$C$L4:1:1538833125")
.dwattr $C$DW$36, DW_AT_TI_begin_file("../FreeRTOS/Demo/Common/Minimal/flash.c")
.dwattr $C$DW$36, DW_AT_TI_begin_line(0x6e)
.dwattr $C$DW$36, DW_AT_TI_end_line(0x7b)
$C$DW$37 .dwtag DW_TAG_TI_loop_range
.dwattr $C$DW$37, DW_AT_low_pc($C$DW$L$_vLEDFlashTask$5$B)
.dwattr $C$DW$37, DW_AT_high_pc($C$DW$L$_vLEDFlashTask$5$E)
.dwendtag $C$DW$36
.dwattr $C$DW$24, DW_AT_TI_end_file("../FreeRTOS/Demo/Common/Minimal/flash.c")
.dwattr $C$DW$24, DW_AT_TI_end_line(0x7c)
.dwattr $C$DW$24, DW_AT_TI_end_column(0x01)
.dwendentry
.dwendtag $C$DW$24
;*******************************************************************************
;* FAR STRINGS *
;*******************************************************************************
.sect ".const:.string"
.align 2
$C$FSL1: .string "LEDx",0
;******************************************************************************
;* UNDEFINED EXTERNAL REFERENCES *
;******************************************************************************
.global _xTaskCreate
.global _vTaskDelay
.global _xTaskGetTickCount
.global _vParTestToggleLED
.global _usCriticalNesting
.global __mpyli
;*******************************************************************************
;* TYPE INFORMATION *
;*******************************************************************************
$C$DW$T$3 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$3, DW_AT_address_class(0x17)
$C$DW$38 .dwtag DW_TAG_TI_far_type
.dwattr $C$DW$38, DW_AT_type(*$C$DW$T$3)
$C$DW$T$20 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$20, DW_AT_type(*$C$DW$38)
$C$DW$T$21 .dwtag DW_TAG_subroutine_type
.dwattr $C$DW$T$21, DW_AT_language(DW_LANG_C)
$C$DW$39 .dwtag DW_TAG_formal_parameter
.dwattr $C$DW$39, DW_AT_type(*$C$DW$T$3)
.dwendtag $C$DW$T$21
$C$DW$T$22 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$22, DW_AT_type(*$C$DW$T$21)
.dwattr $C$DW$T$22, DW_AT_address_class(0x20)
$C$DW$T$23 .dwtag DW_TAG_typedef, DW_AT_name("TaskFunction_t")
.dwattr $C$DW$T$23, DW_AT_type(*$C$DW$T$22)
.dwattr $C$DW$T$23, DW_AT_language(DW_LANG_C)
$C$DW$T$4 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$4, DW_AT_encoding(DW_ATE_boolean)
.dwattr $C$DW$T$4, DW_AT_name("bool")
.dwattr $C$DW$T$4, DW_AT_byte_size(0x01)
$C$DW$T$5 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$5, DW_AT_encoding(DW_ATE_signed_char)
.dwattr $C$DW$T$5, DW_AT_name("signed char")
.dwattr $C$DW$T$5, DW_AT_byte_size(0x01)
$C$DW$T$6 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$6, DW_AT_encoding(DW_ATE_unsigned_char)
.dwattr $C$DW$T$6, DW_AT_name("unsigned char")
.dwattr $C$DW$T$6, DW_AT_byte_size(0x01)
$C$DW$T$7 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$7, DW_AT_encoding(DW_ATE_signed_char)
.dwattr $C$DW$T$7, DW_AT_name("wchar_t")
.dwattr $C$DW$T$7, DW_AT_byte_size(0x01)
$C$DW$T$8 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$8, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$8, DW_AT_name("short")
.dwattr $C$DW$T$8, DW_AT_byte_size(0x01)
$C$DW$T$31 .dwtag DW_TAG_typedef, DW_AT_name("BaseType_t")
.dwattr $C$DW$T$31, DW_AT_type(*$C$DW$T$8)
.dwattr $C$DW$T$31, DW_AT_language(DW_LANG_C)
$C$DW$T$9 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$9, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$9, DW_AT_name("unsigned short")
.dwattr $C$DW$T$9, DW_AT_byte_size(0x01)
$C$DW$T$28 .dwtag DW_TAG_typedef, DW_AT_name("UBaseType_t")
.dwattr $C$DW$T$28, DW_AT_type(*$C$DW$T$9)
.dwattr $C$DW$T$28, DW_AT_language(DW_LANG_C)
$C$DW$40 .dwtag DW_TAG_TI_far_type
.dwattr $C$DW$40, DW_AT_type(*$C$DW$T$28)
$C$DW$T$44 .dwtag DW_TAG_volatile_type
.dwattr $C$DW$T$44, DW_AT_type(*$C$DW$40)
$C$DW$T$10 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$10, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$10, DW_AT_name("int")
.dwattr $C$DW$T$10, DW_AT_byte_size(0x01)
$C$DW$T$11 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$11, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$11, DW_AT_name("unsigned int")
.dwattr $C$DW$T$11, DW_AT_byte_size(0x01)
$C$DW$41 .dwtag DW_TAG_TI_far_type
.dwattr $C$DW$41, DW_AT_type(*$C$DW$T$11)
$C$DW$T$45 .dwtag DW_TAG_volatile_type
.dwattr $C$DW$T$45, DW_AT_type(*$C$DW$41)
$C$DW$T$36 .dwtag DW_TAG_typedef, DW_AT_name("uint16_t")
.dwattr $C$DW$T$36, DW_AT_type(*$C$DW$T$11)
.dwattr $C$DW$T$36, DW_AT_language(DW_LANG_C)
$C$DW$42 .dwtag DW_TAG_TI_far_type
.dwattr $C$DW$42, DW_AT_type(*$C$DW$T$36)
$C$DW$T$37 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$37, DW_AT_type(*$C$DW$42)
$C$DW$T$12 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$12, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$12, DW_AT_name("long")
.dwattr $C$DW$T$12, DW_AT_byte_size(0x02)
$C$DW$T$13 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$13, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$13, DW_AT_name("unsigned long")
.dwattr $C$DW$T$13, DW_AT_byte_size(0x02)
$C$DW$T$24 .dwtag DW_TAG_typedef, DW_AT_name("TickType_t")
.dwattr $C$DW$T$24, DW_AT_type(*$C$DW$T$13)
.dwattr $C$DW$T$24, DW_AT_language(DW_LANG_C)
$C$DW$43 .dwtag DW_TAG_TI_far_type
.dwattr $C$DW$43, DW_AT_type(*$C$DW$T$24)
$C$DW$T$25 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$25, DW_AT_type(*$C$DW$43)
$C$DW$T$14 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$14, DW_AT_encoding(DW_ATE_signed)
.dwattr $C$DW$T$14, DW_AT_name("long long")
.dwattr $C$DW$T$14, DW_AT_byte_size(0x04)
.dwattr $C$DW$T$14, DW_AT_bit_size(0x28)
.dwattr $C$DW$T$14, DW_AT_bit_offset(0x18)
$C$DW$T$15 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$15, DW_AT_encoding(DW_ATE_unsigned)
.dwattr $C$DW$T$15, DW_AT_name("unsigned long long")
.dwattr $C$DW$T$15, DW_AT_byte_size(0x04)
.dwattr $C$DW$T$15, DW_AT_bit_size(0x28)
.dwattr $C$DW$T$15, DW_AT_bit_offset(0x18)
$C$DW$T$16 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$16, DW_AT_encoding(DW_ATE_float)
.dwattr $C$DW$T$16, DW_AT_name("float")
.dwattr $C$DW$T$16, DW_AT_byte_size(0x02)
$C$DW$T$17 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$17, DW_AT_encoding(DW_ATE_float)
.dwattr $C$DW$T$17, DW_AT_name("double")
.dwattr $C$DW$T$17, DW_AT_byte_size(0x02)
$C$DW$T$18 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$18, DW_AT_encoding(DW_ATE_float)
.dwattr $C$DW$T$18, DW_AT_name("long double")
.dwattr $C$DW$T$18, DW_AT_byte_size(0x02)
$C$DW$T$32 .dwtag DW_TAG_base_type
.dwattr $C$DW$T$32, DW_AT_encoding(DW_ATE_signed_char)
.dwattr $C$DW$T$32, DW_AT_name("signed char")
.dwattr $C$DW$T$32, DW_AT_byte_size(0x01)
$C$DW$44 .dwtag DW_TAG_TI_far_type
.dwattr $C$DW$44, DW_AT_type(*$C$DW$T$32)
$C$DW$T$33 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$33, DW_AT_type(*$C$DW$44)
$C$DW$T$34 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$34, DW_AT_type(*$C$DW$T$33)
.dwattr $C$DW$T$34, DW_AT_address_class(0x17)
$C$DW$45 .dwtag DW_TAG_TI_far_type
.dwattr $C$DW$45, DW_AT_type(*$C$DW$T$34)
$C$DW$T$35 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$35, DW_AT_type(*$C$DW$45)
$C$DW$T$19 .dwtag DW_TAG_structure_type
.dwattr $C$DW$T$19, DW_AT_name("tskTaskControlBlock")
.dwattr $C$DW$T$19, DW_AT_declaration
.dwendtag $C$DW$T$19
$C$DW$T$38 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$38, DW_AT_type(*$C$DW$T$19)
.dwattr $C$DW$T$38, DW_AT_address_class(0x17)
$C$DW$T$39 .dwtag DW_TAG_typedef, DW_AT_name("TaskHandle_t")
.dwattr $C$DW$T$39, DW_AT_type(*$C$DW$T$38)
.dwattr $C$DW$T$39, DW_AT_language(DW_LANG_C)
$C$DW$T$40 .dwtag DW_TAG_pointer_type
.dwattr $C$DW$T$40, DW_AT_type(*$C$DW$T$39)
.dwattr $C$DW$T$40, DW_AT_address_class(0x17)
$C$DW$46 .dwtag DW_TAG_TI_far_type
.dwattr $C$DW$46, DW_AT_type(*$C$DW$T$40)
$C$DW$T$41 .dwtag DW_TAG_const_type
.dwattr $C$DW$T$41, DW_AT_type(*$C$DW$46)
.dwattr $C$DW$CU, DW_AT_language(DW_LANG_C)
;***************************************************************
;* DWARF CIE ENTRIES *
;***************************************************************
$C$DW$CIE .dwcie 91
.dwcfi cfa_register, 36
.dwcfi cfa_offset, 0
.dwcfi undefined, 0
.dwcfi undefined, 1
.dwcfi undefined, 2
.dwcfi undefined, 3
.dwcfi undefined, 4
.dwcfi undefined, 5
.dwcfi undefined, 6
.dwcfi undefined, 7
.dwcfi undefined, 8
.dwcfi undefined, 9
.dwcfi undefined, 10
.dwcfi undefined, 11
.dwcfi undefined, 12
.dwcfi undefined, 13
.dwcfi same_value, 14
.dwcfi same_value, 15
.dwcfi undefined, 16
.dwcfi undefined, 17
.dwcfi undefined, 18
.dwcfi undefined, 19
.dwcfi undefined, 20
.dwcfi undefined, 21
.dwcfi undefined, 22
.dwcfi undefined, 23
.dwcfi undefined, 24
.dwcfi undefined, 25
.dwcfi same_value, 26
.dwcfi same_value, 27
.dwcfi same_value, 28
.dwcfi same_value, 29
.dwcfi same_value, 30
.dwcfi same_value, 31
.dwcfi undefined, 32
.dwcfi undefined, 33
.dwcfi undefined, 34
.dwcfi undefined, 35
.dwcfi undefined, 36
.dwcfi undefined, 37
.dwcfi undefined, 38
.dwcfi undefined, 39
.dwcfi undefined, 40
.dwcfi undefined, 41
.dwcfi undefined, 42
.dwcfi undefined, 43
.dwcfi undefined, 44
.dwcfi undefined, 45
.dwcfi undefined, 46
.dwcfi undefined, 47
.dwcfi undefined, 48
.dwcfi undefined, 49
.dwcfi undefined, 50
.dwcfi undefined, 51
.dwcfi undefined, 52
.dwcfi undefined, 53
.dwcfi undefined, 54
.dwcfi undefined, 55
.dwcfi undefined, 56
.dwcfi undefined, 57
.dwcfi undefined, 58
.dwcfi undefined, 59
.dwcfi undefined, 60
.dwcfi undefined, 61
.dwcfi undefined, 62
.dwcfi undefined, 63
.dwcfi undefined, 64
.dwcfi undefined, 65
.dwcfi undefined, 66
.dwcfi undefined, 67
.dwcfi undefined, 68
.dwcfi undefined, 69
.dwcfi undefined, 70
.dwcfi undefined, 71
.dwcfi undefined, 72
.dwcfi undefined, 73
.dwcfi undefined, 74
.dwcfi undefined, 75
.dwcfi undefined, 76
.dwcfi undefined, 77
.dwcfi undefined, 78
.dwcfi undefined, 79
.dwcfi undefined, 80
.dwcfi undefined, 81
.dwcfi undefined, 82
.dwcfi undefined, 83
.dwcfi undefined, 84
.dwcfi undefined, 85
.dwcfi undefined, 86
.dwcfi undefined, 87
.dwcfi undefined, 88
.dwcfi undefined, 89
.dwcfi undefined, 90
.dwcfi undefined, 91
.dwendentry
;***************************************************************
;* DWARF REGISTER MAP *
;***************************************************************
$C$DW$47 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC0")
.dwattr $C$DW$47, DW_AT_location[DW_OP_reg0]
$C$DW$48 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC0")
.dwattr $C$DW$48, DW_AT_location[DW_OP_reg1]
$C$DW$49 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC0_G")
.dwattr $C$DW$49, DW_AT_location[DW_OP_reg2]
$C$DW$50 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC1")
.dwattr $C$DW$50, DW_AT_location[DW_OP_reg3]
$C$DW$51 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC1")
.dwattr $C$DW$51, DW_AT_location[DW_OP_reg4]
$C$DW$52 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC1_G")
.dwattr $C$DW$52, DW_AT_location[DW_OP_reg5]
$C$DW$53 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC2")
.dwattr $C$DW$53, DW_AT_location[DW_OP_reg6]
$C$DW$54 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC2")
.dwattr $C$DW$54, DW_AT_location[DW_OP_reg7]
$C$DW$55 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC2_G")
.dwattr $C$DW$55, DW_AT_location[DW_OP_reg8]
$C$DW$56 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC3")
.dwattr $C$DW$56, DW_AT_location[DW_OP_reg9]
$C$DW$57 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC3")
.dwattr $C$DW$57, DW_AT_location[DW_OP_reg10]
$C$DW$58 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC3_G")
.dwattr $C$DW$58, DW_AT_location[DW_OP_reg11]
$C$DW$59 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T0")
.dwattr $C$DW$59, DW_AT_location[DW_OP_reg12]
$C$DW$60 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T1")
.dwattr $C$DW$60, DW_AT_location[DW_OP_reg13]
$C$DW$61 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T2")
.dwattr $C$DW$61, DW_AT_location[DW_OP_reg14]
$C$DW$62 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T3")
.dwattr $C$DW$62, DW_AT_location[DW_OP_reg15]
$C$DW$63 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR0")
.dwattr $C$DW$63, DW_AT_location[DW_OP_reg16]
$C$DW$64 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR0")
.dwattr $C$DW$64, DW_AT_location[DW_OP_reg17]
$C$DW$65 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR1")
.dwattr $C$DW$65, DW_AT_location[DW_OP_reg18]
$C$DW$66 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR1")
.dwattr $C$DW$66, DW_AT_location[DW_OP_reg19]
$C$DW$67 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR2")
.dwattr $C$DW$67, DW_AT_location[DW_OP_reg20]
$C$DW$68 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR2")
.dwattr $C$DW$68, DW_AT_location[DW_OP_reg21]
$C$DW$69 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR3")
.dwattr $C$DW$69, DW_AT_location[DW_OP_reg22]
$C$DW$70 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR3")
.dwattr $C$DW$70, DW_AT_location[DW_OP_reg23]
$C$DW$71 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR4")
.dwattr $C$DW$71, DW_AT_location[DW_OP_reg24]
$C$DW$72 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR4")
.dwattr $C$DW$72, DW_AT_location[DW_OP_reg25]
$C$DW$73 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR5")
.dwattr $C$DW$73, DW_AT_location[DW_OP_reg26]
$C$DW$74 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR5")
.dwattr $C$DW$74, DW_AT_location[DW_OP_reg27]
$C$DW$75 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR6")
.dwattr $C$DW$75, DW_AT_location[DW_OP_reg28]
$C$DW$76 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR6")
.dwattr $C$DW$76, DW_AT_location[DW_OP_reg29]
$C$DW$77 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR7")
.dwattr $C$DW$77, DW_AT_location[DW_OP_reg30]
$C$DW$78 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR7")
.dwattr $C$DW$78, DW_AT_location[DW_OP_reg31]
$C$DW$79 .dwtag DW_TAG_TI_assign_register, DW_AT_name("FP")
.dwattr $C$DW$79, DW_AT_location[DW_OP_regx 0x20]
$C$DW$80 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XFP")
.dwattr $C$DW$80, DW_AT_location[DW_OP_regx 0x21]
$C$DW$81 .dwtag DW_TAG_TI_assign_register, DW_AT_name("PC")
.dwattr $C$DW$81, DW_AT_location[DW_OP_regx 0x22]
$C$DW$82 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SP")
.dwattr $C$DW$82, DW_AT_location[DW_OP_regx 0x23]
$C$DW$83 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XSP")
.dwattr $C$DW$83, DW_AT_location[DW_OP_regx 0x24]
$C$DW$84 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BKC")
.dwattr $C$DW$84, DW_AT_location[DW_OP_regx 0x25]
$C$DW$85 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BK03")
.dwattr $C$DW$85, DW_AT_location[DW_OP_regx 0x26]
$C$DW$86 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BK47")
.dwattr $C$DW$86, DW_AT_location[DW_OP_regx 0x27]
$C$DW$87 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST0")
.dwattr $C$DW$87, DW_AT_location[DW_OP_regx 0x28]
$C$DW$88 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST1")
.dwattr $C$DW$88, DW_AT_location[DW_OP_regx 0x29]
$C$DW$89 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST2")
.dwattr $C$DW$89, DW_AT_location[DW_OP_regx 0x2a]
$C$DW$90 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST3")
.dwattr $C$DW$90, DW_AT_location[DW_OP_regx 0x2b]
$C$DW$91 .dwtag DW_TAG_TI_assign_register, DW_AT_name("MDP")
.dwattr $C$DW$91, DW_AT_location[DW_OP_regx 0x2c]
$C$DW$92 .dwtag DW_TAG_TI_assign_register, DW_AT_name("MDP05")
.dwattr $C$DW$92, DW_AT_location[DW_OP_regx 0x2d]
$C$DW$93 .dwtag DW_TAG_TI_assign_register, DW_AT_name("MDP67")
.dwattr $C$DW$93, DW_AT_location[DW_OP_regx 0x2e]
$C$DW$94 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BRC0")
.dwattr $C$DW$94, DW_AT_location[DW_OP_regx 0x2f]
$C$DW$95 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA0")
.dwattr $C$DW$95, DW_AT_location[DW_OP_regx 0x30]
$C$DW$96 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA0_H")
.dwattr $C$DW$96, DW_AT_location[DW_OP_regx 0x31]
$C$DW$97 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA0")
.dwattr $C$DW$97, DW_AT_location[DW_OP_regx 0x32]
$C$DW$98 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA0_H")
.dwattr $C$DW$98, DW_AT_location[DW_OP_regx 0x33]
$C$DW$99 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BRS1")
.dwattr $C$DW$99, DW_AT_location[DW_OP_regx 0x34]
$C$DW$100 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BRC1")
.dwattr $C$DW$100, DW_AT_location[DW_OP_regx 0x35]
$C$DW$101 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA1")
.dwattr $C$DW$101, DW_AT_location[DW_OP_regx 0x36]
$C$DW$102 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA1_H")
.dwattr $C$DW$102, DW_AT_location[DW_OP_regx 0x37]
$C$DW$103 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA1")
.dwattr $C$DW$103, DW_AT_location[DW_OP_regx 0x38]
$C$DW$104 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA1_H")
.dwattr $C$DW$104, DW_AT_location[DW_OP_regx 0x39]
$C$DW$105 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CSR")
.dwattr $C$DW$105, DW_AT_location[DW_OP_regx 0x3a]
$C$DW$106 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RPTC")
.dwattr $C$DW$106, DW_AT_location[DW_OP_regx 0x3b]
$C$DW$107 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CDP")
.dwattr $C$DW$107, DW_AT_location[DW_OP_regx 0x3c]
$C$DW$108 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XCDP")
.dwattr $C$DW$108, DW_AT_location[DW_OP_regx 0x3d]
$C$DW$109 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TRN0")
.dwattr $C$DW$109, DW_AT_location[DW_OP_regx 0x3e]
$C$DW$110 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TRN1")
.dwattr $C$DW$110, DW_AT_location[DW_OP_regx 0x3f]
$C$DW$111 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA01")
.dwattr $C$DW$111, DW_AT_location[DW_OP_regx 0x40]
$C$DW$112 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA23")
.dwattr $C$DW$112, DW_AT_location[DW_OP_regx 0x41]
$C$DW$113 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA45")
.dwattr $C$DW$113, DW_AT_location[DW_OP_regx 0x42]
$C$DW$114 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA67")
.dwattr $C$DW$114, DW_AT_location[DW_OP_regx 0x43]
$C$DW$115 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSAC")
.dwattr $C$DW$115, DW_AT_location[DW_OP_regx 0x44]
$C$DW$116 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CARRY")
.dwattr $C$DW$116, DW_AT_location[DW_OP_regx 0x45]
$C$DW$117 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TC1")
.dwattr $C$DW$117, DW_AT_location[DW_OP_regx 0x46]
$C$DW$118 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TC2")
.dwattr $C$DW$118, DW_AT_location[DW_OP_regx 0x47]
$C$DW$119 .dwtag DW_TAG_TI_assign_register, DW_AT_name("M40")
.dwattr $C$DW$119, DW_AT_location[DW_OP_regx 0x48]
$C$DW$120 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SXMD")
.dwattr $C$DW$120, DW_AT_location[DW_OP_regx 0x49]
$C$DW$121 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ARMS")
.dwattr $C$DW$121, DW_AT_location[DW_OP_regx 0x4a]
$C$DW$122 .dwtag DW_TAG_TI_assign_register, DW_AT_name("C54CM")
.dwattr $C$DW$122, DW_AT_location[DW_OP_regx 0x4b]
$C$DW$123 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SATA")
.dwattr $C$DW$123, DW_AT_location[DW_OP_regx 0x4c]
$C$DW$124 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SATD")
.dwattr $C$DW$124, DW_AT_location[DW_OP_regx 0x4d]
$C$DW$125 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RDM")
.dwattr $C$DW$125, DW_AT_location[DW_OP_regx 0x4e]
$C$DW$126 .dwtag DW_TAG_TI_assign_register, DW_AT_name("FRCT")
.dwattr $C$DW$126, DW_AT_location[DW_OP_regx 0x4f]
$C$DW$127 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SMUL")
.dwattr $C$DW$127, DW_AT_location[DW_OP_regx 0x50]
$C$DW$128 .dwtag DW_TAG_TI_assign_register, DW_AT_name("INTM")
.dwattr $C$DW$128, DW_AT_location[DW_OP_regx 0x51]
$C$DW$129 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR0LC")
.dwattr $C$DW$129, DW_AT_location[DW_OP_regx 0x52]
$C$DW$130 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR1LC")
.dwattr $C$DW$130, DW_AT_location[DW_OP_regx 0x53]
$C$DW$131 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR2LC")
.dwattr $C$DW$131, DW_AT_location[DW_OP_regx 0x54]
$C$DW$132 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR3LC")
.dwattr $C$DW$132, DW_AT_location[DW_OP_regx 0x55]
$C$DW$133 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR4LC")
.dwattr $C$DW$133, DW_AT_location[DW_OP_regx 0x56]
$C$DW$134 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR5LC")
.dwattr $C$DW$134, DW_AT_location[DW_OP_regx 0x57]
$C$DW$135 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR6LC")
.dwattr $C$DW$135, DW_AT_location[DW_OP_regx 0x58]
$C$DW$136 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR7LC")
.dwattr $C$DW$136, DW_AT_location[DW_OP_regx 0x59]
$C$DW$137 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CDPLC")
.dwattr $C$DW$137, DW_AT_location[DW_OP_regx 0x5a]
$C$DW$138 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CIE_RETA")
.dwattr $C$DW$138, DW_AT_location[DW_OP_regx 0x5b]
.dwendtag $C$DW$CU
| 44.292162 | 134 | 0.650319 |
956457b186cc4e3ec6d4bdfd511297545f9ec952 | 25,416 | asm | Assembly | AMPS/code/macro.asm | NatsumiFox/AMPS-Sonic-3-Knuckles | af951b39f0ca103a905d7492448ac5245a2e8104 | [
"Apache-2.0"
] | 5 | 2021-07-09T08:17:56.000Z | 2022-02-27T19:57:47.000Z | AMPS/code/macro.asm | NatsumiFox/AMPS-Sonic-3-Knuckles | af951b39f0ca103a905d7492448ac5245a2e8104 | [
"Apache-2.0"
] | null | null | null | AMPS/code/macro.asm | NatsumiFox/AMPS-Sonic-3-Knuckles | af951b39f0ca103a905d7492448ac5245a2e8104 | [
"Apache-2.0"
] | null | null | null | ; ===========================================================================
; ---------------------------------------------------------------------------
; Register usage throughout the AMPS codebase in most situations
; ---------------------------------------------------------------------------
; a0 - Dual PCM cue
; a1 - Current channel
; a2 - Tracker
; a3 - Special address (channels), target channel (playsnd), scratch
; a4 - Music channel (dcStop), other various uses, scratch
; a5-a6 - Scratch, use lower number when possible
; d0 - Channel dbf counter, other dbf counters
; d1 - Various things read from the tracker, scratch
; d2 - Volume or pitch when calculating it
; d3-d6 - Scatch, use lower number when possible
; d7 - Never used for anything.
; ===========================================================================
; ---------------------------------------------------------------------------
; Various assembly flags
; ---------------------------------------------------------------------------
FEATURE_SAFE_PSGFREQ = 0 ; set to 1 to enable safety checks for PSG frequency. Some S3K SFX require this to be 0
FEATURE_SFX_MASTERVOL = 0 ; set to 1 to make SFX be affected by master volumes
FEATURE_MODULATION = 1 ; set to 1 to enable software modulation effect
FEATURE_PORTAMENTO = 0 ; set to 1 to enable portamento effect
FEATURE_MODENV = 1 ; set to 1 to enable modulation envelopes
FEATURE_UNDERWATER = 1 ; set to 1 to enable underwater mode flag
FEATURE_BACKUP = 1 ; set to 1 to enable back-up channels. Used for the 1-up sound in Sonic 1, 2 and 3K
FEATURE_BACKUPNOSFX = 1 ; set to 1 to disable SFX while a song is backed up. Used for the 1-up sound
FEATURE_FM6 = 1 ; set to 1 to enable FM6 to be used in music
FEATURE_QUEUESIZE = 4 ; number of sound queue slots for the driver
FEATURE_SOUNDTEST = 0 ; set to 1 to enable changes which make AMPS compatible with custom sound test
; ---------------------------------------------------------------------------
; if safe mode is enabled (1), then the driver will attempt to find any issues
; if Vladik's error debugger is installed, then the error will be displayed
; else, the CPU is trapped
safe = 1
; ===========================================================================
; ---------------------------------------------------------------------------
; Channel configuration
; ---------------------------------------------------------------------------
phase 0
cFlags ds.b 1 ; various channel flags, see below
cType ds.b 1 ; hardware type for the channel
cSoundID = * ; channel sound ID. SFX only. Used for continuous SFX
cData ds.l 1 ; tracker address for the channel
cStatPSG4 = * ; PSG4 type value. PSG3 only
cPanning ds.b 1 ; channel panning and LFO. FM and DAC only
cDetune ds.b 1 ; frequency detune (offset)
cPitch ds.b 1 ; pitch (transposition) offset
cVolume ds.b 1 ; channel volume
cTick ds.b 1 ; channel tick multiplier
cSample = * ; channel sample ID, DAC only
cVoice ds.b 1 ; YM2612 voice ID. FM only
cDuration ds.b 1 ; current note duration
cLastDur ds.b 1 ; last note duration
cFreq ds.w 1 ; channel note frequency
if FEATURE_MODULATION
cModDelay = * ; delay before modulation starts
cMod ds.l 1 ; modulation data address
cModFreq ds.w 1 ; modulation frequency offset
cModSpeed ds.b 1 ; number of frames til next modulation step
cModStep ds.b 1 ; modulation frequency offset per step
cModCount ds.b 1 ; number of modulation steps until reversal
endif
if FEATURE_PORTAMENTO
cPortaSpeed ds.b 1 ; number of frames for portamento to complete. 0 means it is disabled
even
cPortaFreq ds.w 1 ; frequency offset for portamento
cPortaDisp ds.w 1 ; frequency displacement per frame for portamento
endif
cVolEnv ds.b 1 ; volume envelope ID
cEnvPos ds.b 1 ; volume envelope position
if FEATURE_MODENV
cModEnv ds.b 1 ; modulation envelope ID
cModEnvPos ds.b 1 ; modulation envelope position
cModEnvSens ds.b 1 ; sensitivity of modulation envelope
endif
if FEATURE_SOUNDTEST
even
cChipFreq ds.w 1 ; frequency sent to the chip
cChipVol ds.b 1 ; volume sent to the chip
endif
cLoop ds.b 3 ; loop counter values
even
cSizeSFX = * ; size of each SFX track (this also sneakily makes sure the memory is aligned to word always. Additional loop counter may be added if last byte is odd byte)
cPrio = *-1 ; sound effect channel priority. SFX only
; ---------------------------------------------------------------------------
cGateCur ds.b 1 ; number of frames until note-off. Music only
cGateMain ds.b 1 ; amount of frames for gate effect. Music only
cStack ds.b 1 ; channel stack pointer. Music only
ds.b 1 ; unused. Music only
ds.l 3 ; channel stack data. Music only
even
cSize = * ; size of each music track
; ===========================================================================
; ---------------------------------------------------------------------------
; Bits for cFlags
; ---------------------------------------------------------------------------
cfbInt = $00 ; set if interrupted by SFX. Music only. Must be bit 0
cfbHold = $01 ; set if note is being held. Must be bit 1
cfbRest = $02 ; set if channel is resting. FM and PSG only. Must be bit 2
cfbMode = $02 ; set if in pitch mode, clear if in sample mode. DAC only. Must be bit 2
phase cfbRest+1
cfbMod ds.b 1 ; set if modulation is enabled
cfbCond ds.b 1 ; set if condition is false
cfbVol ds.b 1 ; set if channel should update volume
cfbWater ds.b 1 ; set if underwater mode is disabled
cfbRun = $07 ; set if channel is running a tracker
; ===========================================================================
; ---------------------------------------------------------------------------
; Misc variables for channel modes
; ---------------------------------------------------------------------------
ctbPt2 = $02 ; bit part 2 - FM 4-6
ctFM1 = $00 ; FM 1
ctFM2 = $01 ; FM 2
ctFM3 = $02 ; FM 3 - Valid for SFX
ctFM4 = $04 ; FM 4 - Valid for SFX
ctFM5 = $05 ; FM 5 - Valid for SFX
if FEATURE_FM6
ctFM6 = $06 ; FM 6
endif
ctbDAC = $04 ; DAC bit
ctDAC1 = (1<<ctbDAC)|$03 ; DAC 1 - Valid for SFX
ctDAC2 = (1<<ctbDAC)|$06 ; DAC 2
ctPSG1 = $80 ; PSG 1 - Valid for SFX
ctPSG2 = $A0 ; PSG 2 - Valid for SFX
ctPSG3 = $C0 ; PSG 3 - Valid for SFX
ctPSG4 = $E0 ; PSG 4
; ===========================================================================
; ---------------------------------------------------------------------------
; Misc flags
; ---------------------------------------------------------------------------
Mus_DAC = 2 ; number of DAC channels
Mus_FM = 5+((FEATURE_FM6<>0)&1); number of FM channels (5 or 6)
Mus_PSG = 3 ; number of PSG channels
Mus_Ch = Mus_DAC+Mus_FM+Mus_PSG; total number of music channels
SFX_DAC = 1 ; number of DAC SFX channels
SFX_FM = 3 ; number of FM SFX channels
SFX_PSG = 3 ; number of PSG SFX channels
SFX_Ch = SFX_DAC+SFX_FM+SFX_PSG; total number of SFX channels
VoiceRegs = 29 ; total number of registers inside of a voice
VoiceTL = VoiceRegs-4 ; location of voice TL levels
MaxPitch = $1000 ; this is the maximum pitch Dual PCM is capable of processing
Z80E_Read = $0018 ; this is used by Dual PCM internally but we need this for macros
; ---------------------------------------------------------------------------
; NOTE: There is no magic trick to making Dual PCM play samples at higher rates.
; These values are only here to allow you to give lower pitch samples higher
; quality, and playing samples at higher rates than Dual PCM can process them
; may decrease the perceived quality by the end user. Use these equates only
; if you know what you are doing.
; ---------------------------------------------------------------------------
sr17 = $0140 ; 5 Quarter sample rate 17500 Hz
sr15 = $0120 ; 9 Eights sample rate 15750 Hz
sr14 = $0100 ; Default sample rate 14000 Hz
sr12 = $00E0 ; 7 Eights sample rate 12250 Hz
sr10 = $00C0 ; 3 Quarter sample rate 10500 Hz
sr8 = $00A0 ; 5 Eights sample rate 8750 Hz
sr7 = $0080 ; Half sample rate 7000 HZ
sr5 = $0060 ; 3 Eights sample rate 5250 Hz
sr3 = $0040 ; 1 Quarter sample rate 3500 Hz
; ===========================================================================
; ---------------------------------------------------------------------------
; Sound driver RAM configuration
; ---------------------------------------------------------------------------
dZ80 = $A00000 ; quick reference to Z80 RAM
dPSG = $C00011 ; quick reference to PSG port
phase Drvmem ; insert your sound driver RAM address here!
mFlags ds.b 1 ; various driver flags, see below
mCtrPal ds.b 1 ; frame counter fo 50hz fix
mComm ds.b 8 ; communications bytes
mMasterVolPSG ds.b 1 ; master volume for PSG channels
mMasterVolDAC ds.b 1 ; master volume for DAC channels
mMasterVolFM = * ; master volume for FM channels
mFadeAddr ds.l 1 ; fading program address
mSpeed ds.b 1 ; music speed shoes tempo
mSpeedAcc ds.b 1 ; music speed shoes tempo accumulator
mTempo ds.b 1 ; music normal tempo
mTempoAcc ds.b 1 ; music normal tempo accumulator
mVctMus ds.l 1 ; address of voice table for music
mSpindash ds.b 1 ; spindash rev counter
mContCtr ds.b 1 ; continous sfx loop counter
mContLast ds.b 1 ; last continous sfx played
mLastCue ds.b 1 ; last YM Cue the sound driver was accessing
mQueue ds.b FEATURE_QUEUESIZE; sound queue
if 1&(*)
ds.b 1 ; even's are broke in 64-bit values?
endif ; align data
; ---------------------------------------------------------------------------
mBackUpArea = * ; this is where the area to be backed up starts
mDAC1 ds.b cSize ; DAC 1 data
mDAC2 ds.b cSize ; DAC 2 data
mFM1 ds.b cSize ; FM 1 data
mFM2 ds.b cSize ; FM 2 data
mFM3 ds.b cSize ; FM 3 data
mFM4 ds.b cSize ; FM 4 data
mFM5 ds.b cSize ; FM 5 data
if FEATURE_FM6
mFM6 ds.b cSize ; FM 6 data
endif
mPSG1 ds.b cSize ; PSG 1 data
mPSG2 ds.b cSize ; PSG 2 data
mPSG3 ds.b cSize ; PSG 3 data
mSFXDAC1 ds.b cSizeSFX ; SFX DAC 1 data
mSFXFM3 ds.b cSizeSFX ; SFX FM 3 data
mSFXFM4 ds.b cSizeSFX ; SFX FM 4 data
mSFXFM5 ds.b cSizeSFX ; SFX FM 5 data
mSFXPSG1 ds.b cSizeSFX ; SFX PSG 1 data
mSFXPSG2 ds.b cSizeSFX ; SFX PSG 2 data
mSFXPSG3 ds.b cSizeSFX ; SFX PSG 3 data
mChannelEnd = * ; used to determine where channel RAM ends
; ---------------------------------------------------------------------------
if FEATURE_BACKUP
mBackUpLoc = * ; this is where the area for loading a backed up song starts
mBackDAC1 ds.b cSize ; back-up DAC 1 data
mBackDAC2 ds.b cSize ; back-up DAC 2 data
mBackFM1 ds.b cSize ; back-up FM 1 data
mBackFM2 ds.b cSize ; back-up FM 2 data
mBackFM3 ds.b cSize ; back-up FM 3 data
mBackFM4 ds.b cSize ; back-up FM 4 data
mBackFM5 ds.b cSize ; back-up FM 5 data
if FEATURE_FM6
mBackFM6 ds.b cSize ; back-up FM 6 data
endif
mBackPSG1 ds.b cSize ; back-up PSG 1 data
mBackPSG2 ds.b cSize ; back-up PSG 2 data
mBackPSG3 ds.b cSize ; back-up PSG 3 data
mBackSpeed ds.b 1 ; back-up music speed shoes tempo
mBackSpeedAcc ds.b 1 ; back-up music speed shoes tempo accumulator
mBackTempo ds.b 1 ; back-up music normal tempo
mBackTempoAcc ds.b 1 ; back-up music normal tempo accumulator
mBackVctMus ds.l 1 ; back-up address of voice table for music
mBackFlags ds.b 1 ; back-up various driver flags, see below
endif
; ---------------------------------------------------------------------------
if safe=1
msChktracker ds.b 1 ; safe mode only: If set, bring up debugger
endif
if 1&(*)
ds.b 1 ; even's are broke in 64-bit values?
endif ; align data
mSize = * ; end of the driver RAM
; ===========================================================================
; ---------------------------------------------------------------------------
; Bits for mFlags
; ---------------------------------------------------------------------------
phase 0
mfbSwap ds.b 1 ; if set, the next swap-sfx will be swapped
mfbSpeed ds.b 1 ; if set, speed shoes are active
mfbWater ds.b 1 ; if set, underwater mode is active
mfbNoPAL ds.b 1 ; if set, play songs slowly in PAL region
mfbBacked ds.b 1 ; if set, a song has been backed up
mfbExec ds.b 1 ; if set, AMPS is currently running
mfbRunTwice ds.b 1 ; if set, AMPS should be updated twice at some point
mfbPaused = $07 ; if set, sound driver is paused
; ===========================================================================
; ---------------------------------------------------------------------------
; Sound ID equates
; ---------------------------------------------------------------------------
phase 1
Mus_Reset ds.b 1 ; reset underwater and speed shoes flags, update volume for all channels
Mus_FadeOut ds.b 1 ; initialize a music fade out
Mus_Stop ds.b 1 ; stop all music
Mus_ShoesOn ds.b 1 ; enable speed shoes mode
Mus_ShoesOff ds.b 1 ; disable speed shoes mode
Mus_ToWater ds.b 1 ; enable underwater mode
Mus_OutWater ds.b 1 ; disable underwater mode
Mus_Pause ds.b 1 ; pause the music
Mus_Unpause ds.b 1 ; unpause the music
Mus_StopSFX ds.b 1 ; stop all sfx
MusOff = * ; first music ID
; ===========================================================================
; ---------------------------------------------------------------------------
; Condition modes
; ---------------------------------------------------------------------------
phase 0
dcoT ds.b 1 ; condition T ; True
dcoF ds.b 1 ; condition F ; False
dcoHI ds.b 1 ; condition HI ; HIgher (unsigned)
dcoLS ds.b 1 ; condition LS ; Less or Same (unsigned)
dcoHS = * ; condition HS ; Higher or Sane (unsigned)
dcoCC ds.b 1 ; condition CC ; Carry Clear (unsigned)
dcoLO = * ; condition LO ; LOwer (unsigned)
dcoCS ds.b 1 ; condition CS ; Carry Set (unsigned)
dcoNE ds.b 1 ; condition NE ; Not Equal
dcoEQ ds.b 1 ; condition EQ ; EQual
dcoVC ds.b 1 ; condition VC ; oVerflow Clear (signed)
dcoVS ds.b 1 ; condition VS ; oVerflow Set (signed)
dcoPL ds.b 1 ; condition PL ; Positive (PLus)
dcoMI ds.b 1 ; condition MI ; Negamite (MInus)
dcoGE ds.b 1 ; condition GE ; Greater or Equal (signed)
dcoLT ds.b 1 ; condition LT ; Less Than (signed)
dcoGT ds.b 1 ; condition GT ; GreaTer (signed)
dcoLE ds.b 1 ; condition LE ; Less or Equal (signed)
; ===========================================================================
; ---------------------------------------------------------------------------
; Envelope commands equates
; ---------------------------------------------------------------------------
phase $80
eReset ds.w 1 ; 80 - Restart from position 0
eHold ds.w 1 ; 82 - Hold volume at current level
eLoop ds.w 1 ; 84 - Jump back/forwards according to next byte
eStop ds.w 1 ; 86 - Stop current note and envelope
; these next ones are only valid for modulation envelopes. These are ignored for volume envelopes.
esSens ds.w 1 ; 88 - Set the sensitivity of the modulation envelope
eaSens ds.w 1 ; 8A - Add to the sensitivity of the modulation envelope
eLast = * ; safe mode equate
; ===========================================================================
; ---------------------------------------------------------------------------
; Fade out end commands
; ---------------------------------------------------------------------------
phase $80
fEnd ds.l 1 ; 80 - Do nothing
fStop ds.l 1 ; 84 - Stop all music
fResVol ds.l 1 ; 88 - Reset volume and update
fReset ds.l 1 ; 8C - Stop music playing and reset volume
fLast = * ; safe mode equate
; ===========================================================================
; ---------------------------------------------------------------------------
; Quickly clear some memory in certain block sizes
;
; input:
; a4 - Destination address
; len - Length of clear
; block - Size of clear block
;
; thrashes:
; d6 - Set to $xxxxFFFF
; a4 - Destination address
; ---------------------------------------------------------------------------
dCLEAR_MEM macro len, block
move.w #((len)/(block))-1,d6; load repeat count to d6
.loop
rept (block)/4
clr.l (a4)+ ; clear driver and music channel memory
endm
dbf d6, .loop ; loop for each longword to clear it
rept ((len)#(block))/4
clr.l (a4)+ ; clear extra longs of memory
endm
if (len)&2
clr.w (a4)+ ; if there is an extra word, clear it too
endif
endm
; ===========================================================================
; ---------------------------------------------------------------------------
; Quickly read a word from odd address. 28 cycles
; ---------------------------------------------------------------------------
dREAD_WORD macro areg, dreg
move.b (areg)+,(sp) ; read the next byte into stack
move.w (sp),dreg ; get word back from stack (shift byte by 8 bits)
move.b (areg)+,dreg ; get the next byte into register
endm
; ===========================================================================
; ---------------------------------------------------------------------------
; Used to calculate the address of the FM voice bank
;
; input:
; a1 - Channel address
; output:
; a4 - Voice table address
; ---------------------------------------------------------------------------
dCALC_BANK macro off
lea VoiceBank+off(pc),a4 ; load sound effects voice table into a6
cmp.w #mSFXDAC1,a1 ; check if this is a SFX channel
bhs.s .bank ; if so, branch
move.l mVctMus.w,a4 ; load music voice table into a1
if off<>0
add.w #off,a4 ; add offset into a1
endif
.bank
endm
; ===========================================================================
; ---------------------------------------------------------------------------
; Used to calculate the address of the FM voice
;
; input:
; d4 - Voice ID
; a4 - Voice table address
; output:
; a4 - Voice address
; ---------------------------------------------------------------------------
dCALC_VOICE macro off
lsl.w #5,d4 ; multiply voice ID by $20
if "off"<>""
add.w #off,d4 ; if have had extra argument, add it to offset
endif
add.w d4,a4 ; add offset to voice table address
endm
; ===========================================================================
; ---------------------------------------------------------------------------
; Tells the Z80 to stop, and waits for it to finish stopping
; ---------------------------------------------------------------------------
stopZ80 macro
move.w #$100,$A11100 ; stop the Z80
.loop
btst #0,$A11100
bne.s .loop ; loop until it says it's stopped
endm
; ===========================================================================
; ---------------------------------------------------------------------------
; Tells the Z80 to start again
; ---------------------------------------------------------------------------
startZ80 macro
move.w #0,$A11100 ; start the Z80
endm
; ===========================================================================
; ---------------------------------------------------------------------------
; Initializes YM writes
;
; output:
; d6 - YM part
; d5 - channel type
; ---------------------------------------------------------------------------
InitChYM macro
move.b cType(a1),d6 ; get channel type to d6
move.b d6,d5 ; copy to d5
and.b #3,d5 ; get only the important part
lsr.b #1,d6 ; halve part value
and.b #2,d6 ; clear extra bits away
endm
; ===========================================================================
; ---------------------------------------------------------------------------
; Write data to channel-specific YM part
;
; input:
; d6 - YM part
; d5 - channel type
; reg - YM register to write
; value - value to write
;
; thrashes:
; d4 - used for register calculation
; ---------------------------------------------------------------------------
WriteChYM macro reg, value
move.b d6,(a0)+ ; write part
move.b value,(a0)+ ; write register value to cue
move.b d5,d4 ; get the channel offset into d4
or.b reg,d4 ; or the actual register value
move.b d4,(a0)+ ; write register to cue
endm
; ===========================================================================
; ---------------------------------------------------------------------------
; Write data to YM part 1
; ---------------------------------------------------------------------------
WriteYM1 macro reg, value
clr.b (a0)+ ; write to part 1
move.b value,(a0)+ ; write value to cue
move.b reg,(a0)+ ; write register to cue
endm
; ===========================================================================
; ---------------------------------------------------------------------------
; Write data to YM part 2
; ---------------------------------------------------------------------------
WriteYM2 macro reg, value
move.b #2,(a0)+ ; write to part 2
move.b value,(a0)+ ; write value to cue
move.b reg,(a0)+ ; write register to cue
endm
; ===========================================================================
; ---------------------------------------------------------------------------
; Macro to check cue address
; ---------------------------------------------------------------------------
CheckCue macro
if safe=1
AMPS_Debug_CuePtr Gen ; check if cue pointer is valid
endif
endm
; ===========================================================================
; ---------------------------------------------------------------------------
; Macro for pausing music
; ---------------------------------------------------------------------------
AMPS_MUSPAUSE macro ; enable request pause and paused flags
move.b #Mus_Pause,mQueue+2.w
endm
; ===========================================================================
; ---------------------------------------------------------------------------
; Macro for unpausing music
; ---------------------------------------------------------------------------
AMPS_MUSUNPAUSE macro ; enable request unpause flag
move.b #Mus_Unpause,mQueue+2.w
endm
; ===========================================================================
; ---------------------------------------------------------------------------
; Create volume envelope table, and SMPS2ASM equates
; ---------------------------------------------------------------------------
volenv macro name
if "name"<>""
v{"name"} = __venv ; create SMPS2ASM equate
dc.l vd{"name"} ; create pointer
__venv := __venv+1 ; increase ID
shift ; shift next argument into view
volenv ALLARGS ; process next item
endif
endm
; ===========================================================================
; ---------------------------------------------------------------------------
; Create modulation envelope table, and SMPS2ASM equates
; ---------------------------------------------------------------------------
modenv macro name
if "name"<>"" ; repeate for all arguments
m{"name"} = __menv ; create SMPS2ASM equate
if FEATURE_MODENV
dc.l md{"name"} ; create pointer
endif
__menv := __menv+1 ; increase ID
shift ; shift next argument into view
modenv ALLARGS ; process next item
endif
endm
; ===========================================================================
; ---------------------------------------------------------------------------
; Include PCM data file
; ---------------------------------------------------------------------------
incSWF macro file
if "file"<>"" ; repeat for all arguments
SWF_file equ *
binclude "AMPS/DAC/incswf/file.swf"; include PCM data
SWFR_file equ *
asdata Z80E_Read*(MaxPitch/$100), $00; add end markers (for Dual PCM)
shift ; shift next argument into view
incSWF ALLARGS ; process next item
endif
endm
; ===========================================================================
; ---------------------------------------------------------------------------
; Create pointers for a sample
; ---------------------------------------------------------------------------
sample macro freq, start, loop, name
if "name"<>"" ; if we have 4 arguments, we'd like a custom name
d{"name"} = __samp ; use the extra argument to create SMPS2ASM equate
else
d{"start"} = __samp ; else, use the first one!
endif
__samp := __samp+1 ; increase sample ID
; create offsets for the sample normal, reverse, loop normal, loop reverse.
if ("start"="Stop")|("start"="STOP")|("start"="stop")
dc.b [6] 0
else
dc.b SWF_start&$FF,((SWF_start>>$08)&$7F)|$80,(SWF_start>>$0F)&$FF
dc.b (SWFR_start-1)&$FF,(((SWFR_start-1)>>$08)&$7F)|$80,((SWFR_start-1)>>$0F)&$FF
endif
if ("loop"="Stop")|("loop"="STOP")|("loop"="stop")
dc.b [6] 0
else
dc.b SWF_loop&$FF,((SWF_loop>>$08)&$7F)|$80, (SWF_loop>>$0F)&$FF
dc.b (SWFR_loop-1)&$FF,(((SWFR_loop-1)>>$08)&$7F)|$80,((SWFR_loop-1)>>$0F)&$FF
endif
dc.w freq-$100 ; sample frequency (actually offset, so we remove $100)
dc.w 0 ; unused!
endm
; ===========================================================================
; ---------------------------------------------------------------------------
; Workaround the ASS bug where you ca only put 1024 bytes per line of code
; ---------------------------------------------------------------------------
asdata macro count, byte
.c := (count)
while .c > $400
dc.b [$400] byte
.c := .c - $400
endm
if .c > 0
dc.b [.c] byte
endif
endm
; ---------------------------------------------------------------------------
!org 0
phase 0
| 40.21519 | 170 | 0.492288 |
c2d156c8556cda58ed5c33b11723bfe9ad23f62b | 203 | asm | Assembly | programs/oeis/105/A105676.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/105/A105676.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/105/A105676.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A105676: Highest minimal Hamming distance of any Type 3 ternary self-dual code of length 4n.
; 3,3,6,6,6,9,9,9,12,12,12,15,15,15,18,18
add $0,2
lpb $0,1
sub $0,2
add $2,3
sub $0,1
lpe
add $1,$2
| 18.454545 | 94 | 0.650246 |
fbef438a3032b59c5d02444e8255d86b9c3106a8 | 1,361 | nasm | Assembly | kernel/setjmp.nasm | r-tty/radios | fdfaaadd256564ea3ed1b7fc408e7aecf648ae2b | [
"BSD-3-Clause"
] | null | null | null | kernel/setjmp.nasm | r-tty/radios | fdfaaadd256564ea3ed1b7fc408e7aecf648ae2b | [
"BSD-3-Clause"
] | null | null | null | kernel/setjmp.nasm | r-tty/radios | fdfaaadd256564ea3ed1b7fc408e7aecf648ae2b | [
"BSD-3-Clause"
] | null | null | null | ;-------------------------------------------------------------------------------
; setjmp.nasm - setjmp/longjmp pair, VSTa based.
;-------------------------------------------------------------------------------
module kernel.setjmp
%include "cpu/setjmp.ah"
publicproc K_SetJmp, K_LongJmp
section .text
; K_SetJmp - save context, returning 0.
; Input: EDI=address of tJmpBuf structure.
; Output: EAX=0.
proc K_SetJmp
mov eax,[esp] ; Return address
mov [edi+tJmpBuf.R_EIP],eax
mov [edi+tJmpBuf.R_EDI],edi
mov [edi+tJmpBuf.R_ESI],esi
mov [edi+tJmpBuf.R_EBP],ebp
mov [edi+tJmpBuf.R_ESP],esp
mov [edi+tJmpBuf.R_EBX],ebx
mov [edi+tJmpBuf.R_EDX],edx
mov [edi+tJmpBuf.R_ECX],ecx
xor eax,eax
ret
endp ;---------------------------------------------------------------
; K_LongJmp - restore context, returning a specified result.
; Input: EDI=address of tJmpBuf structure,
; EAX=value (0 or 1).
; Output: none.
proc K_LongJmp
mov [edi+tJmpBuf.R_EAX],eax
mov esp,[edi+tJmpBuf.R_ESP]
mov eax,[edi+tJmpBuf.R_EIP]
mov [esp],eax
mov esi,[edi+tJmpBuf.R_ESI]
mov ebp,[edi+tJmpBuf.R_EBP]
mov ebx,[edi+tJmpBuf.R_EBX]
mov edx,[edi+tJmpBuf.R_EDX]
mov ecx,[edi+tJmpBuf.R_ECX]
mov eax,[edi+tJmpBuf.R_EAX]
mov edi,[edi+tJmpBuf.R_EDI]
sti
ret
endp ;---------------------------------------------------------------
| 26.686275 | 80 | 0.547392 |
bd9d7acbd7464ab490f7d7b41f824676669e39e4 | 1,292 | asm | Assembly | tests/altium_crap/Soft Designs/Processor Examples/TSK3000 Trace/Embedded/hardware.asm | hanun2999/Altium-Schematic-Parser | a9bd5b1a865f92f2e3f749433fb29107af528498 | [
"MIT"
] | 1 | 2020-06-08T11:17:46.000Z | 2020-06-08T11:17:46.000Z | tests/altium_crap/Soft Designs/Processor Examples/TSK3000 Trace/Embedded/hardware.asm | hanun2999/Altium-Schematic-Parser | a9bd5b1a865f92f2e3f749433fb29107af528498 | [
"MIT"
] | null | null | null | tests/altium_crap/Soft Designs/Processor Examples/TSK3000 Trace/Embedded/hardware.asm | hanun2999/Altium-Schematic-Parser | a9bd5b1a865f92f2e3f749433fb29107af528498 | [
"MIT"
] | null | null | null | ;...............................................................................
; Automatically generated header file.
; Generated: 4:37:59 PM 27/11/2008
; This file should not be edited.
;...............................................................................
;...............................................................................
Base_Port32 .equ 0xFF000000
Size_Port32 .equ 0x00000004
;...............................................................................
;...............................................................................
Base_Internal .equ 0x00000000
Size_Internal .equ 0x00002000
;...............................................................................
;...............................................................................
Base_DB_SRAM .equ 0x01000000
Size_DB_SRAM .equ 0x00200000
;...............................................................................
;...............................................................................
Base_TraceMem .equ 0x02000000
Size_TraceMem .equ 0x00004000
;...............................................................................
| 47.851852 | 80 | 0.21904 |
d56c9e2b77752beaa8da3f9fd7b5b3ee89122cf6 | 1,462 | asm | Assembly | programs/oeis/193/A193911.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/193/A193911.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/193/A193911.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A193911: Sums of the diagonals of the matrix formed by listing the h-Stohr sequences in increasing order.
; 1,3,7,14,25,43,69,110,167,255,375,558,805,1179,1681,2438,3451,4975,7011,10070,14153,20283,28461,40734,57103,81663,114415,163550,229069,327355,458409,654998,917123,1310319,1834587,2620998,3669553,5242395,7339525,10485230,14679511,20970943,29359527,41942414,58719605,83885403,117439809,167771430,234880267,335543535,469761235,671087798,939523225,1342176379,1879047261,2684353598,3758095391,5368708095,7516191711,10737417150,15032384413,21474835323,30064769881,42949671734,60129540883,85899344623,120259082955,171798690470,240518167169,343597382235,481036335669,687194765838,962072672743,1374389533119,1924145346967,2748779067758,3848290695493,5497558137115,7696581392625,10995116275910,15393162786971,21990232553583,30786325575747,43980465109014,61572651153385,87960930219963,123145302308749,175921860441950,246290604619567,351843720886015,492581209241295,703687441774238,985162418484845,1407374883550779,1970324836972041,2814749767103958,3940649673946531,5629499534210415,7881299347895611
mov $10,$0
mov $12,$0
add $12,1
lpb $12
clr $0,10
mov $0,$10
sub $12,1
sub $0,$12
mov $7,$0
mov $9,$0
add $9,1
lpb $9
mov $0,$7
sub $9,1
sub $0,$9
mov $4,$0
lpb $0
sub $4,$0
sub $0,1
mov $5,$0
trn $0,1
add $5,$4
add $4,$5
lpe
add $4,1
add $8,$4
lpe
add $11,$8
lpe
mov $1,$11
| 43 | 989 | 0.770178 |
5bb84abfe56f9e1b95ec2d25150f114e0ae653b6 | 5,530 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1241.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_1241.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_1241.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %rax
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0xd07a, %r11
inc %rdx
mov $0x6162636465666768, %rax
movq %rax, %xmm5
vmovups %ymm5, (%r11)
nop
nop
nop
nop
nop
cmp $48156, %rbx
lea addresses_WT_ht+0xaf30, %rsi
lea addresses_WC_ht+0x82e0, %rdi
nop
add $58408, %rdx
mov $86, %rcx
rep movsb
nop
nop
nop
cmp $29729, %rbx
lea addresses_WT_ht+0x5db0, %r11
clflush (%r11)
nop
nop
nop
nop
nop
inc %rbx
mov (%r11), %dx
nop
cmp %rsi, %rsi
lea addresses_UC_ht+0x13780, %rsi
lea addresses_WC_ht+0x122b0, %rdi
nop
mfence
mov $83, %rcx
rep movsq
nop
nop
nop
nop
cmp $57919, %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r15
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r9
push %rax
push %rcx
push %rdi
// Store
lea addresses_RW+0x8cf8, %rcx
nop
nop
add $17379, %rdi
mov $0x5152535455565758, %r9
movq %r9, (%rcx)
nop
nop
nop
nop
cmp %r11, %r11
// Load
lea addresses_RW+0x18f50, %rcx
nop
nop
nop
nop
nop
add $55898, %rax
vmovups (%rcx), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $0, %xmm3, %r10
nop
nop
nop
nop
nop
and $45369, %rdi
// Faulty Load
lea addresses_PSE+0x1e30, %r12
nop
nop
nop
nop
nop
and %rcx, %rcx
mov (%r12), %r9d
lea oracles, %r10
and $0xff, %r9
shlq $12, %r9
mov (%r10,%r9,1), %r9
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_PSE', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_RW', 'same': False, 'size': 8, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_RW', 'same': False, 'size': 32, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_PSE', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 2, 'congruent': 7, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, '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
*/
| 38.671329 | 2,999 | 0.660579 |
f40beab1a3482c8b00d726a133024e22b22a00cc | 735 | asm | Assembly | oeis/032/A032810.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/032/A032810.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/032/A032810.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A032810: Numbers using only digits 2 and 3.
; Submitted by Jamie Morken(s4)
; 2,3,22,23,32,33,222,223,232,233,322,323,332,333,2222,2223,2232,2233,2322,2323,2332,2333,3222,3223,3232,3233,3322,3323,3332,3333,22222,22223,22232,22233,22322,22323,22332,22333,23222,23223,23232,23233,23322,23323,23332,23333,32222,32223,32232,32233,32322,32323,32332,32333,33222,33223,33232,33233,33322,33323,33332,33333,222222,222223,222232,222233,222322,222323,222332,222333,223222,223223,223232,223233,223322,223323,223332,223333,232222,232223,232232,232233,232322,232323,232332,232333,233222
add $0,1
mov $2,1
lpb $0
mov $3,$0
mul $0,2
sub $0,1
div $0,4
mod $3,2
mul $3,$2
add $1,$3
mul $2,10
lpe
mul $1,3
sub $2,$1
mov $0,$2
div $0,3
| 35 | 496 | 0.740136 |
c222dd53210bec886cc8123ceaf0d28fe668137b | 1,241 | asm | Assembly | contaLettereRICORSIVO.asm | edoardottt/Asm_mars_examples | 4c763ef94a7345a03313b1626aed9642e07e0dad | [
"Unlicense"
] | 21 | 2019-06-29T19:56:20.000Z | 2021-09-08T08:06:52.000Z | contaLettereRICORSIVO.asm | edoardottt/Asm_mars_examples | 4c763ef94a7345a03313b1626aed9642e07e0dad | [
"Unlicense"
] | null | null | null | contaLettereRICORSIVO.asm | edoardottt/Asm_mars_examples | 4c763ef94a7345a03313b1626aed9642e07e0dad | [
"Unlicense"
] | 7 | 2019-10-11T19:30:48.000Z | 2022-02-11T08:08:53.000Z | # CONTA I CARATTERI DI UNA STRINGA DATA IN INPUT RICORSIVAMENTE E STAMPA LA TERNA <#LETTERE,#NUMERI,#ALTRO>
.data
richiesta: .asciiz "inserire una stringa (max 100 caratteri)\n"
stringa: .space 101
.text
li $v0,4
la $a0,richiesta
syscall
li $v0,8
la $a0,stringa
li $a1,100
syscall
len:
lb $s0,stringa($s1)
beq $s0,10,main
addi $s2,$s2,1
addi $s1,$s1,1
j len
main:
li $a1,0
subi $s2,$s2,1
li $t0,0
jal conta
li $v0,1
move $a0,$a1
syscall
li $v0,11
li $a0,'\t'
syscall
li $v0,1
move $a0,$a2
syscall
li $v0,11
li $a0,'\t'
syscall
li $v0,1
move $a0,$a3
syscall
li $v0,11
li $a0,'\t'
syscall
li $v0,10
syscall
conta:
subi $sp,$sp,8
sw $ra,0($sp)
sw $t0,4($sp)
bgt $t0,$s2,casobase
lb $t1,stringa($t0)
#controllo lettera
sle $s3,$t1,'z'
sge $s4,$t1,'a'
and $s5,$s3,$s4
sle $s3,$t1,'Z'
sge $s4,$t1,'A'
and $s6,$s3,$s4
or $s6,$s5,$s6
# controllo numeri
sge $s3,$t1,'0'
sle $s4,$t1,'9'
and $s7,$s3,$s4
jal verifica
addi $t0,$t0,1
jal conta
lw $ra,0($sp)
lw $t0,4($sp)
addi $sp,$sp,8
jr $ra
verifica:
beq $s6,1,lettere
beq $s7,1,numeri
addi $a3,$a3,1
jr $ra
numeri:
addi $a2,$a2,1
jr $ra
lettere:
addi $a1,$a1,1
jr $ra
casobase:
lw $ra,0($sp)
lw $t0,4($sp)
addi $sp,$sp,8
jr $ra | 14.430233 | 107 | 0.614827 |
95bebee8b2a1f267758a4dc22f8d2d7bb46eea5e | 664 | asm | Assembly | Assignment-1/Assignment1/supporting_files/prime.asm | abhiisshheekk/CS311-COA-Lab | c5effdc22bd7c1c35ba44fe3a6f8998c8189554e | [
"MIT"
] | null | null | null | Assignment-1/Assignment1/supporting_files/prime.asm | abhiisshheekk/CS311-COA-Lab | c5effdc22bd7c1c35ba44fe3a6f8998c8189554e | [
"MIT"
] | null | null | null | Assignment-1/Assignment1/supporting_files/prime.asm | abhiisshheekk/CS311-COA-Lab | c5effdc22bd7c1c35ba44fe3a6f8998c8189554e | [
"MIT"
] | 1 | 2021-09-29T20:47:23.000Z | 2021-09-29T20:47:23.000Z | .data
a:
65537
.text
main:
load %x0, $a, %x4 ; x4 = a
divi %x4, 2, %x16 ; x16 = x4/2
addi %x16, 1, %x16 ; x16 += 1 (check divisibility till x4/2)
subi %x0, 0, %x31 ; x31 = 0
addi %x5, 2, %x5 ; x5 = 2 (i = 2)
bgt %x4, 1, isPrime ; if x4 > 1, then goto isPrime
jmp false
isPrime:
beq %x16, %x5, true ; if x16 == x5 (i == a/2 + 1), then goto true
div %x4, %x5, %x17 ; x17 = x4/x5, x31 = x4 mod x5
beq %x0, %x31, false ; if x31 == 0, then goto false
addi %x5, 1, %x5 ; x5 += 1 (i += 1)
jmp isPrime
false:
subi %x0, 0, %x10 ; x10 = 0
subi %x10, 1, %x10 ; x10 = -1
end
true:
subi %x0, 0, %x10 ; x10 = 0
addi %x10, 1, %x10 ; x10 = 1
end | 25.538462 | 67 | 0.53012 |
fb8d898fe8366fe20f1ec1cd47289bc6c9513360 | 507 | asm | Assembly | 01/helloworld/hello.asm | DaviNakamuraCardoso/assembly | 47ce8eeb253122f2d601c6d5bec276566e2df5cf | [
"MIT"
] | null | null | null | 01/helloworld/hello.asm | DaviNakamuraCardoso/assembly | 47ce8eeb253122f2d601c6d5bec276566e2df5cf | [
"MIT"
] | null | null | null | 01/helloworld/hello.asm | DaviNakamuraCardoso/assembly | 47ce8eeb253122f2d601c6d5bec276566e2df5cf | [
"MIT"
] | null | null | null | global _start
section .data
msg db "Hello, World!", 0x0a ; Stores the string
len equ $ - msg ; Subracts the current location to get the string length
section .text
_start:
mov eax, 4 ; Sys call to write
mov ebx, 1 ; Standard Output
mov ecx, msg ; bytes to write
mov edx, len ; number of bytes
int 0x80
mov eax, 1 ; Sys exit status
mov ebx, 0 ; Return status is 0
int 0x80
| 29.823529 | 92 | 0.532544 |
9a277ddd38b620c369db780851382f27ee4c14d6 | 530 | asm | Assembly | oeis/003/A003153.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/003/A003153.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/003/A003153.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A003153: a(n) = integer nearest n*(1+sqrt(2)).
; Submitted by Christian Krause
; 2,5,7,10,12,14,17,19,22,24,27,29,31,34,36,39,41,43,46,48,51,53,56,58,60,63,65,68,70,72,75,77,80,82,84,87,89,92,94,97,99,101,104,106,109,111,113,116,118,121,123,126,128,130,133,135,138,140,142,145,147,150,152,155,157,159,162,164,167,169,171,174,176,179,181,183,186,188,191,193,196,198,200,203,205,208,210,212,215,217,220,222,225,227,229,232,234,237,239,241
add $0,1
mov $1,$0
pow $1,2
lpb $1
add $2,1
trn $1,$2
lpe
add $0,1
add $0,$2
sub $0,1
| 35.333333 | 357 | 0.677358 |
3a9d2f104362e6264c93b4129c13cc0d2b8cbac7 | 399 | asm | Assembly | oeis/065/A065855.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/065/A065855.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/065/A065855.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A065855: Number of composites <= n.
; Submitted by Jon Maiga
; 0,0,0,1,1,2,2,3,4,5,5,6,6,7,8,9,9,10,10,11,12,13,13,14,15,16,17,18,18,19,19,20,21,22,23,24,24,25,26,27,27,28,28,29,30,31,31,32,33,34,35,36,36,37,38,39,40,41,41,42,42,43,44,45,46,47,47,48,49,50,50,51,51,52,53,54,55,56,56,57,58,59,59,60,61,62,63,64,64,65,66,67,68,69,70,71,71,72,73,74
seq $0,62298 ; Number of nonprimes <= n.
sub $0,1
| 57 | 284 | 0.651629 |
4d5dbbead5b7d283711e7799c1fa4116a7da50ed | 170 | asm | Assembly | tests/data/src/test_ld_iyn_2.asm | protoCall7/PZ80emu | 2ff78d206bda4a173bfca0700462cd5f1cb3d637 | [
"BSD-3-Clause"
] | 1 | 2016-03-07T23:18:59.000Z | 2016-03-07T23:18:59.000Z | tests/data/src/test_ld_iyn_2.asm | protoCall7/PZ80emu | 2ff78d206bda4a173bfca0700462cd5f1cb3d637 | [
"BSD-3-Clause"
] | 3 | 2015-12-13T00:27:06.000Z | 2017-10-20T18:39:25.000Z | tests/data/src/test_ld_iyn_2.asm | protoCall7/PZ80emu | 2ff78d206bda4a173bfca0700462cd5f1cb3d637 | [
"BSD-3-Clause"
] | null | null | null | ld iy,0x0070
ld a,0x01
ld b,0x02
ld c,0x03
ld d,0x04
ld e,0x05
ld h,0x06
ld l,0x07
ld (iy+0),a
ld (iy+1),b
ld (iy+2),c
ld (iy+3),d
ld (iy+4),e
ld (iy+5),h
ld (iy+6),l
| 9.444444 | 12 | 0.594118 |
b3a818d4dea8f9adaea462720776ead81ff70e7c | 635 | asm | Assembly | source/jni/u2/twist/twist.asm | Falken42/SecondReality | b998d193a066523cb4ca2b86c8041bea1bddfcb4 | [
"Unlicense"
] | 9 | 2015-05-13T21:02:00.000Z | 2018-04-15T16:32:27.000Z | source/jni/u2/twist/twist.asm | falken42/SecondReality | b998d193a066523cb4ca2b86c8041bea1bddfcb4 | [
"Unlicense"
] | null | null | null | source/jni/u2/twist/twist.asm | falken42/SecondReality | b998d193a066523cb4ca2b86c8041bea1bddfcb4 | [
"Unlicense"
] | null | null | null | tcode SEGMENT para public 'CODE'
ASSUME cs:tcode
.386
LOCALS
include twstloop.inc
PUBLIC _twistvram
_twistvram dw 0,0
ALIGN 16
PUBLIC _twist
_twist dw 200 dup(0,0,0,0)
PUBLIC _twister
_twister PROC FAR
push bp
mov bp,sp
push si
push di
push ds
mov ds,cs:_twistvram[2]
mov si,OFFSET _twist
xor di,di
mov cx,200
@@1: mov bx,cs:[si]
@@4: cmp bx,0
jge @@2
add bx,200
jmp @@4
@@2: cmp bx,200
jl @@3
sub bx,200
jmp @@2
@@3: shl bx,2
call cs:twistt[bx]
call cs:twistt[bx+2]
add di,80
add si,8
loop @@1
pop ds
pop di
pop si
pop bp
ret
_twister ENDP
tcode ENDS
END
| 12.7 | 33 | 0.631496 |
8dfdc799b08d1d605aec2c306757f6cfd027add0 | 239 | asm | Assembly | MEMZ/NyanMBR/Source/Stage2/Interrupts/keyboardHandler.asm | johnmelodyme/viruses | c8c4b628a6ae725a45312b4365fa8a6876509706 | [
"BSD-2-Clause"
] | 4 | 2018-11-15T08:23:06.000Z | 2019-04-29T13:30:44.000Z | MEMZ/NyanMBR/Source/Stage2/Interrupts/keyboardHandler.asm | johnmelodyme/Viruses | c8c4b628a6ae725a45312b4365fa8a6876509706 | [
"BSD-2-Clause"
] | null | null | null | MEMZ/NyanMBR/Source/Stage2/Interrupts/keyboardHandler.asm | johnmelodyme/Viruses | c8c4b628a6ae725a45312b4365fa8a6876509706 | [
"BSD-2-Clause"
] | 2 | 2019-02-13T19:53:26.000Z | 2021-05-30T19:04:43.000Z | %macro onKey 2
cmp al, %1
jne %%notPressed
call %2
%%notPressed:
%endmacro
keyboardHandler:
startInterrupt
in al, 60h ; Read keyboard state
onKey 0x1F, speedUp ; Speed up the main timer when S is pressed
finishInterrupt
| 13.277778 | 64 | 0.711297 |
3b602ada7fadfe73b97e7ba48be95e29a864eed6 | 7,157 | asm | Assembly | Transynther/x86/_processed/NC/_ht_zr_/i7-7700_9_0xca_notsx.log_21829_159.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_ht_zr_/i7-7700_9_0xca_notsx.log_21829_159.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_ht_zr_/i7-7700_9_0xca_notsx.log_21829_159.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r8
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WT_ht+0x14a02, %r8
nop
nop
nop
and %rbx, %rbx
vmovups (%r8), %ymm4
vextracti128 $0, %ymm4, %xmm4
vpextrq $1, %xmm4, %r11
nop
nop
nop
nop
nop
cmp %r11, %r11
lea addresses_UC_ht+0x15262, %r12
clflush (%r12)
nop
nop
nop
cmp $35584, %rdx
mov (%r12), %r13
dec %rbx
lea addresses_WC_ht+0x8b62, %rbx
nop
nop
nop
nop
add $37908, %r11
mov $0x6162636465666768, %r13
movq %r13, %xmm3
movups %xmm3, (%rbx)
nop
nop
nop
xor %rbx, %rbx
lea addresses_UC_ht+0x1e62, %rsi
lea addresses_UC_ht+0x17634, %rdi
xor $38682, %rbx
mov $81, %rcx
rep movsq
cmp $52743, %rbx
lea addresses_WT_ht+0x1936a, %r13
nop
nop
nop
nop
nop
xor $63577, %rbx
mov $0x6162636465666768, %r12
movq %r12, (%r13)
nop
nop
nop
nop
inc %r13
lea addresses_WT_ht+0x1c462, %rsi
lea addresses_WC_ht+0x19962, %rdi
nop
nop
nop
add %rbx, %rbx
mov $113, %rcx
rep movsq
nop
nop
cmp %r11, %r11
lea addresses_A_ht+0x16562, %rdx
nop
dec %r12
movl $0x61626364, (%rdx)
nop
and %rdi, %rdi
lea addresses_WT_ht+0xc062, %rsi
lea addresses_WC_ht+0x4c72, %rdi
lfence
mov $118, %rcx
rep movsq
nop
nop
cmp $36834, %r8
lea addresses_WC_ht+0xd362, %rsi
lea addresses_WT_ht+0x1d3c2, %rdi
nop
nop
nop
nop
nop
xor %r12, %r12
mov $2, %rcx
rep movsq
nop
xor $58438, %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r8
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r15
push %r8
push %r9
push %rbp
push %rbx
// Load
mov $0xe82, %rbp
clflush (%rbp)
nop
nop
nop
xor $25802, %r8
movups (%rbp), %xmm7
vpextrq $0, %xmm7, %r12
nop
nop
nop
nop
nop
cmp %rbx, %rbx
// Load
lea addresses_RW+0x9b62, %rbx
nop
nop
nop
add %r15, %r15
mov (%rbx), %r12w
nop
cmp %r8, %r8
// Store
lea addresses_US+0x15662, %r10
nop
nop
nop
nop
nop
and $16380, %rbx
mov $0x5152535455565758, %r15
movq %r15, (%r10)
nop
nop
nop
nop
nop
xor %r9, %r9
// Faulty Load
mov $0x63a6f30000000b62, %r15
nop
nop
nop
nop
nop
xor %r12, %r12
vmovups (%r15), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $1, %xmm6, %r9
lea oracles, %rbx
and $0xff, %r9
shlq $12, %r9
mov (%rbx,%r9,1), %r9
pop %rbx
pop %rbp
pop %r9
pop %r8
pop %r15
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 5, 'same': False, 'type': 'addresses_P'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 10, 'same': False, 'type': 'addresses_RW'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 7, 'same': False, 'type': 'addresses_US'}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': True, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 5, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 8, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 11, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 7, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 8, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 4, 'same': True, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'}
{'00': 18367, '49': 3462}
49 00 00 00 00 00 49 00 00 00 00 00 00 49 00 00 00 00 00 49 00 00 00 00 00 49 00 00 49 00 00 00 00 00 00 00 49 00 49 00 49 00 00 49 00 00 49 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 49 00 49 00 00 49 00 00 00 00 00 49 00 00 00 00 49 00 00 00 00 00 49 00 49 00 49 00 00 00 00 49 00 00 00 00 00 49 00 00 00 00 00 00 00 49 00 00 00 00 00 00 49 00 49 00 00 49 00 00 00 49 00 00 00 00 00 00 49 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 49 49 00 00 49 00 00 49 00 00 00 00 00 00 00 00 49 00 00 00 49 00 00 00 00 00 49 00 00 00 49 00 00 00 00 49 00 00 00 49 00 00 00 49 00 49 00 00 49 00 00 49 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 49 00 00 00 49 00 00 00 00 00 00 00 49 00 00 00 00 00 00 49 00 49 00 49 00 49 00 00 00 00 49 00 49 00 00 49 00 00 49 00 00 00 00 00 00 49 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 49 00 49 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 49 00 00 49 00 00 00 49 00 00 49 00 00 00 00 49 00 00 00 00 49 00 00 00 00 00 49 00 00 00 00 49 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 49 00 00 49 00 00 49 00 49 00 00 49 00 49 00 00 00 00 49 00 00 49 00 49 00 00 00 49 00 49 00 49 00 49 00 00 00 49 00 49 00 00 49 00 00 49 00 00 00 00 00 00 00 00 00 00 49 00 00 00 49 00 00 49 00 00 00 00 00 00 00 49 00 00 00 00 00 00 49 00 00 00 00 49 00 00 49 00 00 00 49 00 49 00 00 49 00 49 00 49 00 00 00 00 00 49 00 00 49 00 00 49 00 00 49 00 00 00 00 49 00 00 00 49 00 00 00 00 49 00 00 00 49 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 49 00 00 49 00 00 00 00 00 49 00 00 00 00 00 00 00 49 00 49 00 00 49 00 00 49 00 00 00 00 49 00 00 00 00 49 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 49 00 00 00 00 00 00 49 00 49 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 49 00 49 00 00 49 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 49 00 00 49 00 00 00 00 49 00 00 49 00 00 00 00 00 00 49 00 00 00 49 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 49 00 49 00 00 00 00 49 49 00 00 00 49 00 00 00 00 49 00 00 49 00 00 00 49 00 00 49 00 00 00 49 00 49 00 00 49 00 00 00 00 49 00 00 00 00 49 49 00 00 00 49 00 00 00 49 00 00 00 49 00 00 49 00 49 00 49 00 00 49 00 49 00 00 49 00 00 49 00 49 00 00 00 00 49 00 49 00 00 00 49 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 49 00 00 00 00 00 00 00 49 00 49 00 00 49 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 49 00 00 00 00 00 00 00 49 00 00 00 00 49 00 00 00 49 00 49 00 00 00 00 00 49 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 49 00 00 00 00 00 00 49 00 00 00 00 00
*/
| 33.443925 | 2,999 | 0.65642 |
25505674da7cb9d9120ff21895ce5f96d9483c09 | 545 | asm | Assembly | programs/oeis/008/A008739.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/008/A008739.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/008/A008739.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A008739: Molien series for 3-dimensional group [2+,n] = 2*(n/2).
; 1,2,3,4,6,8,10,13,16,19,22,26,30,34,39,44,49,54,60,66,72,79,86,93,100,108,116,124,133,142,151,160,170,180,190,201,212,223,234,246,258,270,283,296,309,322,336,350,364,379,394,409,424,440,456,472,489,506,523,540,558,576,594,613,632,651,670,690,710,730,751,772,793,814,836,858,880,903,926,949,972,996,1020,1044,1069,1094,1119,1144,1170,1196,1222,1249,1276,1303,1330,1358,1386,1414,1443,1472
mov $1,$0
lpb $1
sub $1,1
pow $1,2
div $1,7
add $0,$1
mov $1,$2
lpe
add $0,1
| 41.923077 | 389 | 0.686239 |
89851f292b7bc4b4ac21840cd2c037a11cbe5213 | 1,141 | asm | Assembly | programs/oeis/287/A287437.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/287/A287437.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/287/A287437.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A287437: Positions of 2 in A053838.
; 3,5,7,11,13,18,19,24,26,29,31,36,37,42,44,48,50,52,55,60,62,66,68,70,74,76,81,83,85,90,91,96,98,102,104,106,109,114,116,120,122,124,128,130,135,138,140,142,146,148,153,154,159,161,163,168,170,174,176,178,182,184,189,192,194,196,200,202,207,208,213,215,218,220,225,226,231,233,237,239,241,245,247,252,253,258,260,264,266,268,271,276,278,282,284,286,290,292,297,300,302,304,308,310,315,316,321,323,325,330,332,336,338,340,344,346,351,354,356,358,362,364,369,370,375,377,380,382,387,388,393,395,399,401,403,408,410,412,416,418,423,424,429,431,434,436,441,442,447,449,453,455,457,460,465,467,471,473,475,479,481,486,487,492,494,498,500,502,506,508,513,516,518,520,524,526,531,532,537,539,542,544,549,550,555,557,561,563,565,570,572,574,578,580,585,586,591,593,596,598,603,604,609,611,615,617,619,622,627,629,633,635,637,641,643,648,650,652,657,658,663,665,669,671,673,676,681,683,687,689,691,695,697,702,705,707,709,713,715,720,721,726,728,731,733,738,739,744,746,750
mov $2,$0
mov $3,1
lpb $0,1
add $3,$0
div $0,3
lpe
mul $3,5
lpb $3,1
mod $3,3
lpe
mov $1,$3
add $1,1
mov $4,$2
mul $4,3
add $1,$4
| 60.052632 | 965 | 0.712533 |
c8f65681cd5b1964f023c6851561d676bd42fe21 | 1,644 | asm | Assembly | drivers/interrupts.asm | ProgMiner/memOS | ea441ccb23ed0e6bafa1d9a6a50519f206693198 | [
"MIT"
] | 6 | 2021-04-30T11:11:07.000Z | 2022-01-24T12:20:05.000Z | drivers/interrupts.asm | ProgMiner/memOS | ea441ccb23ed0e6bafa1d9a6a50519f206693198 | [
"MIT"
] | 3 | 2021-06-21T22:01:00.000Z | 2021-07-26T17:54:06.000Z | drivers/interrupts.asm | ProgMiner/memOS | ea441ccb23ed0e6bafa1d9a6a50519f206693198 | [
"MIT"
] | 2 | 2021-07-26T16:34:40.000Z | 2021-07-26T17:20:50.000Z | %macro ISR_NOERRCODE 1
global isr%1
isr%1:
cli
push byte 0
push byte %1
jmp isr_common_stub
%endmacro
%macro ISR_ERRCODE 1
global isr%1
isr%1:
cli
push byte %1
jmp isr_common_stub
%endmacro
%macro IRQ 2
global irq%1
irq%1:
cli
push byte 0
push byte %2
jmp irq_common_stub
%endmacro
ISR_NOERRCODE 0
ISR_NOERRCODE 1
ISR_NOERRCODE 2
ISR_NOERRCODE 3
ISR_NOERRCODE 4
ISR_NOERRCODE 5
ISR_NOERRCODE 6
ISR_NOERRCODE 7
ISR_ERRCODE 8
ISR_NOERRCODE 9
ISR_ERRCODE 10
ISR_ERRCODE 11
ISR_ERRCODE 12
ISR_ERRCODE 13
ISR_ERRCODE 14
ISR_NOERRCODE 15
ISR_NOERRCODE 16
ISR_NOERRCODE 17
ISR_NOERRCODE 18
ISR_NOERRCODE 19
ISR_NOERRCODE 20
ISR_NOERRCODE 21
ISR_NOERRCODE 22
ISR_NOERRCODE 23
ISR_NOERRCODE 24
ISR_NOERRCODE 25
ISR_NOERRCODE 26
ISR_NOERRCODE 27
ISR_NOERRCODE 28
ISR_NOERRCODE 29
ISR_NOERRCODE 30
ISR_NOERRCODE 31
IRQ 0, 32
IRQ 1, 33
IRQ 2, 34
IRQ 3, 35
IRQ 4, 36
IRQ 5, 37
IRQ 6, 38
IRQ 7, 39
IRQ 8, 40
IRQ 9, 41
IRQ 10, 42
IRQ 11, 43
IRQ 12, 44
IRQ 13, 45
IRQ 14, 46
IRQ 15, 47
extern isr_handler
isr_common_stub:
pusha
mov ax, ds
push eax
mov ax, 0x10
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
call isr_handler
pop ebx
mov ds, bx
mov es, bx
mov fs, bx
mov gs, bx
popa
add esp, 8
sti
iret
extern irq_handler
irq_common_stub:
pusha
mov ax, ds
push eax
mov ax, 0x10
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
call irq_handler
pop ebx
mov ds, bx
mov es, bx
mov fs, bx
mov gs, bx
popa
add esp, 8
sti
iret
| 12.646154 | 27 | 0.662409 |
7313e33c0f737f89dc8ea472dd80e81a4525bd82 | 669 | asm | Assembly | system/d52/tests/test.asm | panosmdma/SlackOnly-SlackBuilds | 91682df0a8f14aed276b7e27f63a7bde2acc0a34 | [
"MIT"
] | 8 | 2016-01-07T18:53:17.000Z | 2020-06-07T09:51:12.000Z | system/d52/tests/test.asm | panosmdma/SlackOnly-SlackBuilds | 91682df0a8f14aed276b7e27f63a7bde2acc0a34 | [
"MIT"
] | 2 | 2017-02-07T06:39:27.000Z | 2017-04-29T18:15:36.000Z | system/d52/tests/test.asm | panosmdma/SlackOnly-SlackBuilds | 91682df0a8f14aed276b7e27f63a7bde2acc0a34 | [
"MIT"
] | 2 | 2018-02-01T07:02:12.000Z | 2020-11-04T07:17:28.000Z | ;
; Test file for D52.
; This, with the associated test.ctl file, demonstrates the
; use of control file directives.
;
accum equ 0e0h
;
org 0
;
start: nop
ajmp main
ljmp subrt
;
main: rr a
inc accum
inc 12h
inc @r0
inc @r1
inc r0
jbc acc.3,label
acall subrt
lcall subrt
label: rrc a
dec a
dec 10h
dec @r0
dec @r1
dec r0
cjne a,#12h,label
mov dptr,#vectbl
jmp @a+dptr
;
subrt: nop
nop
nop
nop
nop
ret
;
vectbl: dw subrt
dw 0
;
mesg: db 'This is text',0
;
bindat: db 0,1,2,3
wordat: dw 10h,20h,30h
;
; random junk to fake out the disassembler
;
db 80h,29h,44h,33h
;
; valid code:
;
delay: mov r0,#5
delay1: clr 20h
djnz r0,delay1
ret
;
end
;
| 10.967213 | 59 | 0.668161 |
68a71e2968f5b4221c41b3bb4a8fc4465cf35e75 | 927 | asm | Assembly | c6ers/interlnk/ctype.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | c6ers/interlnk/ctype.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | c6ers/interlnk/ctype.asm | minblock/msdos | 479ffd237d9bb7cc83cb06361db2c4ef42dfbac0 | [
"Apache-2.0"
] | null | null | null | ;***
;* $Workfile: calcreq.asm $
;* $Revision: 1.0 $
;* $Author: Dave Sewell $
;* $Date: 13 Oct 1989 11:28:00 $
;*
;*****************************************************************************
% .MODEL memmodel
.CODE
;int _fastcall fc_toupper(int value);
@fc_toupper PROC
PUBLIC @fc_toupper
cmp al, 'a'
jb upper_done
cmp ax, 'z'
ja upper_done
sub al, 'a' - 'A'
upper_done: ret
@fc_toupper ENDP
@isdigit PROC
PUBLIC @isdigit
cmp al, '0'
jb false
cmp al, '9'
ja false
true: mov ax, 1
ret
false: xor ax, ax
ret
@isdigit ENDP
END
| 18.54 | 78 | 0.325782 |
647573e8e03192d28411421b411ee8d84b91cb0b | 594 | asm | Assembly | libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/heap_free_callee.asm | teknoplop/z88dk | bb03fbfd6b2ab0f397a1358559089f9cd3706485 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/heap_free_callee.asm | teknoplop/z88dk | bb03fbfd6b2ab0f397a1358559089f9cd3706485 | [
"ClArtistic"
] | null | null | null | libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/heap_free_callee.asm | teknoplop/z88dk | bb03fbfd6b2ab0f397a1358559089f9cd3706485 | [
"ClArtistic"
] | 1 | 2019-12-03T23:57:48.000Z | 2019-12-03T23:57:48.000Z |
; void heap_free_callee(void *heap, void *p)
INCLUDE "clib_cfg.asm"
SECTION code_clib
SECTION code_alloc_malloc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $01
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _heap_free_callee
EXTERN asm_heap_free
_heap_free_callee:
pop hl
pop de
ex (sp),hl
jp asm_heap_free
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ELSE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC _heap_free_callee
EXTERN _heap_free_unlocked_callee
defc _heap_free_callee = _heap_free_unlocked_callee
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ENDIF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
| 15.631579 | 51 | 0.535354 |
e93aec0d25af2134d770d536dbd8daf039543488 | 388 | asm | Assembly | programs/oeis/039/A039985.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/039/A039985.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/039/A039985.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A039985: An example of a d-perfect sequence.
; 1,1,0,0,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,0,1,0,0,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,0,0,1,0,1,1,1,1,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,1,1,1,1,0,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,1
lpb $0
mov $2,$0
add $0,2
mod $0,3
seq $2,39983 ; An example of a d-perfect sequence.
add $1,$2
lpe
add $1,1
mod $1,2
mov $0,$1
| 27.714286 | 201 | 0.551546 |
5a965ca29e01b0275b7045f5abc1caa4e64a0dc9 | 246,537 | asm | Assembly | test/hack_programs/ArrayTest.asm | mbalestrini/hack_soc | 157428ee6856a9e4cee5953b8b3c144b4f57f5ee | [
"Apache-2.0"
] | 1 | 2021-12-18T18:31:53.000Z | 2021-12-18T18:31:53.000Z | test/hack_programs/ArrayTest.asm | mbalestrini/hack_soc | 157428ee6856a9e4cee5953b8b3c144b4f57f5ee | [
"Apache-2.0"
] | null | null | null | test/hack_programs/ArrayTest.asm | mbalestrini/hack_soc | 157428ee6856a9e4cee5953b8b3c144b4f57f5ee | [
"Apache-2.0"
] | null | null | null | // ............................................
// program: OS_0.asm
// ............................................
@256 // bootstrap code
D=A
@SP
M=D
@Sys.init
D=A
@R13
M=D
D=0
@R14
M=D
@Sys.init_RETURN_0 // global call
D=A
(GLOBAL_CALL)
@SP
A=M
M=D
@SP
M=M+1
@LCL
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS
D=M
@SP
A=M
M=D
@SP
M=M+1
@THAT
D=M
@SP
A=M
M=D
@SP
M=M+1
@R14
D=M
@5
D=D+A
@SP
D=M-D
@ARG
M=D
@SP
D=M
@LCL
M=D
@R13
A=M
0;JMP
(Sys.init_RETURN_0)
(BOOTSTRAP_OS_0$GUARD_LOOP)
@BOOTSTRAP_OS_0$GUARD_LOOP
0;JMP
// ............................................
// module: Array
// from file: Array.vm
// ............................................
@SKIP_GLOBAL_FUNCTIONS // global functions
0;JMP
(GLOBAL_EQ)
@R15
M=D
@SP
AM=M-1
D=M
@SP
AM=M-1
D=M-D
@JUMP_EQ
D;JEQ
D=1
(JUMP_EQ)
D=D-1
@SP
A=M
M=D
@SP
M=M+1
@R15
A=M
0;JMP
(GLOBAL_GT)
@R15
M=D
@SP
AM=M-1
D=M
@SP
AM=M-1
D=M-D
@JUMP_GT
D;JGT
D=0
@JUMP_GT_END
0; JMP
(JUMP_GT)
D=-1
(JUMP_GT_END)
@SP
A=M
M=D
@SP
M=M+1
@R15
A=M
0;JMP
(GLOBAL_LT)
@R15
M=D
@SP
AM=M-1
D=M
@SP
AM=M-1
D=M-D
@JUMP_LT
D;JLT
D=0
@JUMP_LT_END
0; JMP
(JUMP_LT)
D=-1
(JUMP_LT_END)
@SP
A=M
M=D
@SP
M=M+1
@R15
A=M
0;JMP
(SKIP_GLOBAL_FUNCTIONS)
(Array.new) // function Array.new 0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_GT_RETURN_0 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_0)
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Array.new$IF_TRUE0
D;JNE
@Array.new$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Array.new$IF_TRUE0) // label IF_TRUE0
@SP
A=M
M=1
M=M+1
@SP
M=M+1
@Sys.error // call Sys.error 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Sys.error_RETURN_1
D=A
@GLOBAL_CALL
0;JMP
(Sys.error_RETURN_1)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(Array.new$IF_FALSE0) // label IF_FALSE0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Memory.alloc // call Memory.alloc 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Memory.alloc_RETURN_2
D=A
@GLOBAL_CALL
0;JMP
(Memory.alloc_RETURN_2)
(GLOBAL_RETURN) // global return
@LCL // global return
D=M
@R13
M=D
@5
A=D-A
D=M
@R14
M=D
@SP
AM=M-1
D=M
@ARG
A=M
M=D
D=A
@SP
M=D+1
@R13
AM=M-1
D=M
@THAT
M=D
@R13
AM=M-1
D=M
@THIS
M=D
@R13
AM=M-1
D=M
@ARG
M=D
@R13
AM=M-1
D=M
@LCL
M=D
@R14
A=M
0;JMP
(Array.dispose) // function Array.dispose 0
@ARG // seq 2: push argument 0 + pop pointer 0
A=M
D=M
@R3
M=D
@R3 // push pointer 0
D=M
@SP
A=M
M=D
@SP
M=M+1
@Memory.deAlloc // call Memory.deAlloc 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Memory.deAlloc_RETURN_3
D=A
@GLOBAL_CALL
0;JMP
(Memory.deAlloc_RETURN_3)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
// ............................................
// module: Keyboard
// from file: Keyboard.vm
// ............................................
(Keyboard.init) // function Keyboard.init 0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Keyboard.keyPressed) // function Keyboard.keyPressed 0
@24576 // push constant 24576
D=A
@SP
A=M
M=D
@SP
M=M+1
@Memory.peek // call Memory.peek 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Memory.peek_RETURN_4
D=A
@GLOBAL_CALL
0;JMP
(Memory.peek_RETURN_4)
@GLOBAL_RETURN // return
0;JMP
(Keyboard.readChar) // function Keyboard.readChar 2
@0
D=A
@SP
A=M
M=D
A=A+1
M=D
D=A+1
@SP
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.printChar // call Output.printChar 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Output.printChar_RETURN_5
D=A
@GLOBAL_CALL
0;JMP
(Output.printChar_RETURN_5)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(Keyboard.readChar$WHILE_EXP0) // label WHILE_EXP0
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_EQ_RETURN_1 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_1)
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_GT_RETURN_2 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_2)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END0
AM=M-1
D=M
@Keyboard.readChar$WHILE_END0
D;JNE
@Keyboard.keyPressed // call Keyboard.keyPressed 0
D=A
@R13
M=D
@0
D=A
@R14
M=D
@Keyboard.keyPressed_RETURN_6
D=A
@GLOBAL_CALL
0;JMP
(Keyboard.keyPressed_RETURN_6)
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_GT_RETURN_3 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_3)
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Keyboard.readChar$IF_TRUE0
D;JNE
@Keyboard.readChar$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Keyboard.readChar$IF_TRUE0) // label IF_TRUE0
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Keyboard.readChar$IF_FALSE0) // label IF_FALSE0
@Keyboard.readChar$WHILE_EXP0 // goto WHILE_EXP0
0;JMP
(Keyboard.readChar$WHILE_END0) // label WHILE_END0
@String.backSpace // call String.backSpace 0
D=A
@R13
M=D
@0
D=A
@R14
M=D
@String.backSpace_RETURN_7
D=A
@GLOBAL_CALL
0;JMP
(String.backSpace_RETURN_7)
@Output.printChar // call Output.printChar 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Output.printChar_RETURN_8
D=A
@GLOBAL_CALL
0;JMP
(Output.printChar_RETURN_8)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@Output.printChar // call Output.printChar 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Output.printChar_RETURN_9
D=A
@GLOBAL_CALL
0;JMP
(Output.printChar_RETURN_9)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Keyboard.readLine) // function Keyboard.readLine 5
@0
D=A
@SP
A=M
M=D
A=A+1
M=D
A=A+1
M=D
A=A+1
M=D
A=A+1
M=D
D=A+1
@SP
M=D
@80 // push constant 80
D=A
@SP
A=M
M=D
@SP
M=M+1
@String.new // call String.new 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@String.new_RETURN_10
D=A
@GLOBAL_CALL
0;JMP
(String.new_RETURN_10)
@LCL // pop local 3
D=M
@3
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Output.printString // call Output.printString 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Output.printString_RETURN_11
D=A
@GLOBAL_CALL
0;JMP
(Output.printString_RETURN_11)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@String.newLine // call String.newLine 0
D=A
@R13
M=D
@0
D=A
@R14
M=D
@String.newLine_RETURN_12
D=A
@GLOBAL_CALL
0;JMP
(String.newLine_RETURN_12)
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@String.backSpace // call String.backSpace 0
D=A
@R13
M=D
@0
D=A
@R14
M=D
@String.backSpace_RETURN_13
D=A
@GLOBAL_CALL
0;JMP
(String.backSpace_RETURN_13)
@LCL // pop local 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Keyboard.readLine$WHILE_EXP0) // label WHILE_EXP0
@LCL // push local 4
D=M
@4
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // not
A=M
A=A-1
M=!M
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END0
AM=M-1
D=M
@Keyboard.readLine$WHILE_END0
D;JNE
@Keyboard.readChar // call Keyboard.readChar 0
D=A
@R13
M=D
@0
D=A
@R14
M=D
@Keyboard.readChar_RETURN_14
D=A
@GLOBAL_CALL
0;JMP
(Keyboard.readChar_RETURN_14)
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_EQ_RETURN_4 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_4)
@LCL // pop local 4
D=M
@4
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 4
D=M
@4
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Keyboard.readLine$IF_TRUE0
D;JNE
@Keyboard.readLine$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Keyboard.readLine$IF_TRUE0) // label IF_TRUE0
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_EQ_RETURN_5 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_5)
@SP // if-goto IF_TRUE1
AM=M-1
D=M
@Keyboard.readLine$IF_TRUE1
D;JNE
@Keyboard.readLine$IF_FALSE1 // goto IF_FALSE1
0;JMP
(Keyboard.readLine$IF_TRUE1) // label IF_TRUE1
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@String.eraseLastChar // call String.eraseLastChar 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@String.eraseLastChar_RETURN_15
D=A
@GLOBAL_CALL
0;JMP
(String.eraseLastChar_RETURN_15)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@Keyboard.readLine$IF_END1 // goto IF_END1
0;JMP
(Keyboard.readLine$IF_FALSE1) // label IF_FALSE1
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@String.appendChar // call String.appendChar 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@String.appendChar_RETURN_16
D=A
@GLOBAL_CALL
0;JMP
(String.appendChar_RETURN_16)
@LCL // pop local 3
D=M
@3
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Keyboard.readLine$IF_END1) // label IF_END1
(Keyboard.readLine$IF_FALSE0) // label IF_FALSE0
@Keyboard.readLine$WHILE_EXP0 // goto WHILE_EXP0
0;JMP
(Keyboard.readLine$WHILE_END0) // label WHILE_END0
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Keyboard.readInt) // function Keyboard.readInt 2
@0
D=A
@SP
A=M
M=D
A=A+1
M=D
D=A+1
@SP
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Keyboard.readLine // call Keyboard.readLine 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Keyboard.readLine_RETURN_17
D=A
@GLOBAL_CALL
0;JMP
(Keyboard.readLine_RETURN_17)
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@String.intValue // call String.intValue 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@String.intValue_RETURN_18
D=A
@GLOBAL_CALL
0;JMP
(String.intValue_RETURN_18)
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@String.dispose // call String.dispose 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@String.dispose_RETURN_19
D=A
@GLOBAL_CALL
0;JMP
(String.dispose_RETURN_19)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
// ............................................
// module: Main
// from file: Main.vm
// ............................................
(Main.main) // function Main.main 0
@8000 // push constant 8000
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@Array.new // call Array.new 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Array.new_RETURN_20
D=A
@GLOBAL_CALL
0;JMP
(Array.new_RETURN_20)
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // seq 3: push constant 2 + push local 1 + add
A=M+1
D=M
@2
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@222 // push constant 222
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // seq 3: push constant 0 + push local 0 + add
A=M
D=M
@0
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 3: push constant 2 + push local 1 + add
A=M+1
D=M
@2
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@Array.new // call Array.new 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Array.new_RETURN_21
D=A
@GLOBAL_CALL
0;JMP
(Array.new_RETURN_21)
@LCL // pop local 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // seq 3: push constant 1 + push local 2 + add
D=M
@2
A=A+D
D=M
@1
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 3: push constant 2 + push local 1 + add
A=M+1
D=M
@2
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 100 + sub
A=M-1
D=M
@100
D=D-A
@SP
A=M-1
M=D
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // seq 3: push constant 1 + push local 0 + add
A=M
D=M
@1
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 3: push constant 1 + push local 2 + add
D=M
@2
A=A+D
D=M
@1
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@500 // push constant 500
D=A
@SP
A=M
M=D
@SP
M=M+1
@Array.new // call Array.new 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Array.new_RETURN_22
D=A
@GLOBAL_CALL
0;JMP
(Array.new_RETURN_22)
@LCL // pop local 3
D=M
@3
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // seq 3: push constant 499 + push local 3 + add
D=M
@3
A=A+D
D=M
@499
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 3: push constant 2 + push local 1 + add
A=M+1
D=M
@2
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 3: push constant 1 + push local 2 + add
D=M
@2
A=A+D
D=M
@1
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // seq 2: push that 0 + sub
A=M
D=M
@SP
A=M-1
M=M-D
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // seq 3: push constant 2 + push local 0 + add
A=M
D=M
@2
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 3: push constant 499 + push local 3 + add
D=M
@3
A=A+D
D=M
@499
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@Array.dispose // call Array.dispose 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Array.dispose_RETURN_23
D=A
@GLOBAL_CALL
0;JMP
(Array.dispose_RETURN_23)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@Array.dispose // call Array.dispose 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Array.dispose_RETURN_24
D=A
@GLOBAL_CALL
0;JMP
(Array.dispose_RETURN_24)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@Array.new // call Array.new 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Array.new_RETURN_25
D=A
@GLOBAL_CALL
0;JMP
(Array.new_RETURN_25)
@LCL // pop local 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // seq 3: push constant 0 + push local 2 + add
D=M
@2
A=A+D
D=M
@0
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 3: push constant 499 + push local 3 + add
D=M
@3
A=A+D
D=M
@499
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 90 + sub
A=M-1
D=M
@90
D=D-A
@SP
A=M-1
M=D
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // seq 3: push constant 3 + push local 0 + add
A=M
D=M
@3
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 3: push constant 0 + push local 2 + add
D=M
@2
A=A+D
D=M
@0
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@Array.dispose // call Array.dispose 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Array.dispose_RETURN_26
D=A
@GLOBAL_CALL
0;JMP
(Array.dispose_RETURN_26)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@Array.dispose // call Array.dispose 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Array.dispose_RETURN_27
D=A
@GLOBAL_CALL
0;JMP
(Array.dispose_RETURN_27)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
// ............................................
// module: Math
// from file: Math.vm
// ............................................
(Math.init) // function Math.init 1
@0
D=A
@SP
A=M
M=D
@SP
M=M+1
@16 // push constant 16
D=A
@SP
A=M
M=D
@SP
M=M+1
@Array.new // call Array.new 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Array.new_RETURN_28
D=A
@GLOBAL_CALL
0;JMP
(Array.new_RETURN_28)
@SP // pop static 1
AM=M-1
D=M
@Math.1
M=D
@16 // push constant 16
D=A
@SP
A=M
M=D
@SP
M=M+1
@Array.new // call Array.new 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Array.new_RETURN_29
D=A
@GLOBAL_CALL
0;JMP
(Array.new_RETURN_29)
@SP // pop static 0
AM=M-1
D=M
@Math.0
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Math.0 // seq 2: push static 0 + add
D=M
@SP
A=M-1
M=D+M
@SP // push constant 1
A=M
M=1
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
(Math.init$WHILE_EXP0) // label WHILE_EXP0
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@15 // push constant 15
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_6 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_6)
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END0
AM=M-1
D=M
@Math.init$WHILE_END0
D;JNE
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Math.0 // seq 2: push static 0 + add
D=M
@SP
A=M-1
M=D+M
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@Math.0 // seq 2: push static 0 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@Math.0 // seq 2: push static 0 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // seq 2: push that 0 + add
A=M
D=M
@SP
A=M-1
M=M+D
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@Math.init$WHILE_EXP0 // goto WHILE_EXP0
0;JMP
(Math.init$WHILE_END0) // label WHILE_END0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Math.abs) // function Math.abs 0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_7 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_7)
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Math.abs$IF_TRUE0
D;JNE
@Math.abs$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Math.abs$IF_TRUE0) // label IF_TRUE0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // neg
A=M
A=A-1
M=-M
@ARG // pop argument 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Math.abs$IF_FALSE0) // label IF_FALSE0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Math.multiply) // function Math.multiply 5
@0
D=A
@SP
A=M
M=D
A=A+1
M=D
A=A+1
M=D
A=A+1
M=D
A=A+1
M=D
D=A+1
@SP
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_8 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_8)
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_GT_RETURN_9 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_9)
@SP // and
AM=M-1
D=M
A=A-1
M=D&M
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_GT_RETURN_10 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_10)
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_11 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_11)
@SP // and
AM=M-1
D=M
A=A-1
M=D&M
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@LCL // pop local 4
D=M
@4
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Math.abs // call Math.abs 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Math.abs_RETURN_30
D=A
@GLOBAL_CALL
0;JMP
(Math.abs_RETURN_30)
@ARG // pop argument 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@Math.abs // call Math.abs 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Math.abs_RETURN_31
D=A
@GLOBAL_CALL
0;JMP
(Math.abs_RETURN_31)
@ARG // pop argument 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_12 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_12)
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Math.multiply$IF_TRUE0
D;JNE
@Math.multiply$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Math.multiply$IF_TRUE0) // label IF_TRUE0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // pop argument 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // pop argument 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Math.multiply$IF_FALSE0) // label IF_FALSE0
(Math.multiply$WHILE_EXP0) // label WHILE_EXP0
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@GLOBAL_LT_RETURN_13 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_13)
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END0
AM=M-1
D=M
@Math.multiply$WHILE_END0
D;JNE
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@Math.0 // seq 2: push static 0 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // and
AM=M-1
D=M
A=A-1
M=D&M
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_EQ_RETURN_14 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_14)
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto IF_TRUE1
AM=M-1
D=M
@Math.multiply$IF_TRUE1
D;JNE
@Math.multiply$IF_FALSE1 // goto IF_FALSE1
0;JMP
(Math.multiply$IF_TRUE1) // label IF_TRUE1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 0 + add
A=M
D=M
@SP
A=M-1
M=M+D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@Math.0 // seq 2: push static 0 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // seq 2: push that 0 + add
A=M
D=M
@SP
A=M-1
M=M+D
@LCL // pop local 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Math.multiply$IF_FALSE1) // label IF_FALSE1
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 0 + add
A=M
D=M
@SP
A=M-1
M=M+D
@ARG // pop argument 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@LCL // pop local 3
D=M
@3
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@Math.multiply$WHILE_EXP0 // goto WHILE_EXP0
0;JMP
(Math.multiply$WHILE_END0) // label WHILE_END0
@LCL // push local 4
D=M
@4
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // if-goto IF_TRUE2
AM=M-1
D=M
@Math.multiply$IF_TRUE2
D;JNE
@Math.multiply$IF_FALSE2 // goto IF_FALSE2
0;JMP
(Math.multiply$IF_TRUE2) // label IF_TRUE2
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // neg
A=M
A=A-1
M=-M
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Math.multiply$IF_FALSE2) // label IF_FALSE2
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Math.divide) // function Math.divide 4
@0
D=A
@SP
A=M
M=D
A=A+1
M=D
A=A+1
M=D
A=A+1
M=D
D=A+1
@SP
M=D
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_EQ_RETURN_15 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_15)
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Math.divide$IF_TRUE0
D;JNE
@Math.divide$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Math.divide$IF_TRUE0) // label IF_TRUE0
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@Sys.error // call Sys.error 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Sys.error_RETURN_32
D=A
@GLOBAL_CALL
0;JMP
(Sys.error_RETURN_32)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(Math.divide$IF_FALSE0) // label IF_FALSE0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_16 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_16)
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_GT_RETURN_17 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_17)
@SP // and
AM=M-1
D=M
A=A-1
M=D&M
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_GT_RETURN_18 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_18)
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_19 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_19)
@SP // and
AM=M-1
D=M
A=A-1
M=D&M
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@LCL // pop local 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Math.1 // seq 2: push static 1 + add
D=M
@SP
A=M-1
M=D+M
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@Math.abs // call Math.abs 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Math.abs_RETURN_33
D=A
@GLOBAL_CALL
0;JMP
(Math.abs_RETURN_33)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Math.abs // call Math.abs 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Math.abs_RETURN_34
D=A
@GLOBAL_CALL
0;JMP
(Math.abs_RETURN_34)
@ARG // pop argument 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Math.divide$WHILE_EXP0) // label WHILE_EXP0
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@15 // push constant 15
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_20 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_20)
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // not
A=M
A=A-1
M=!M
@SP // and
AM=M-1
D=M
A=A-1
M=D&M
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END0
AM=M-1
D=M
@Math.divide$WHILE_END0
D;JNE
@32767 // push constant 32767
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Math.1 // seq 2: push static 1 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@SP // sub
AM=M-1
D=M
A=A-1
M=M-D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Math.1 // seq 2: push static 1 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@GLOBAL_LT_RETURN_21 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_21)
@LCL // pop local 3
D=M
@3
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto IF_TRUE1
AM=M-1
D=M
@Math.divide$IF_TRUE1
D;JNE
@Math.divide$IF_FALSE1 // goto IF_FALSE1
0;JMP
(Math.divide$IF_TRUE1) // label IF_TRUE1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@Math.1 // seq 2: push static 1 + add
D=M
@SP
A=M-1
M=D+M
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Math.1 // seq 2: push static 1 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Math.1 // seq 2: push static 1 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // seq 2: push that 0 + add
A=M
D=M
@SP
A=M-1
M=M+D
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@Math.1 // seq 2: push static 1 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@GLOBAL_GT_RETURN_22 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_22)
@LCL // pop local 3
D=M
@3
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto IF_TRUE2
AM=M-1
D=M
@Math.divide$IF_TRUE2
D;JNE
@Math.divide$IF_FALSE2 // goto IF_FALSE2
0;JMP
(Math.divide$IF_TRUE2) // label IF_TRUE2
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Math.divide$IF_FALSE2) // label IF_FALSE2
(Math.divide$IF_FALSE1) // label IF_FALSE1
@Math.divide$WHILE_EXP0 // goto WHILE_EXP0
0;JMP
(Math.divide$WHILE_END0) // label WHILE_END0
(Math.divide$WHILE_EXP1) // label WHILE_EXP1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + neg
A=M
M=-1
@SP
M=M+1
@GLOBAL_GT_RETURN_23 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_23)
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END1
AM=M-1
D=M
@Math.divide$WHILE_END1
D;JNE
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Math.1 // seq 2: push static 1 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@GLOBAL_GT_RETURN_24 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_24)
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto IF_TRUE3
AM=M-1
D=M
@Math.divide$IF_TRUE3
D;JNE
@Math.divide$IF_FALSE3 // goto IF_FALSE3
0;JMP
(Math.divide$IF_TRUE3) // label IF_TRUE3
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Math.0 // seq 2: push static 0 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // seq 2: push that 0 + add
A=M
D=M
@SP
A=M-1
M=M+D
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Math.1 // seq 2: push static 1 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // seq 2: push that 0 + sub
A=M
D=M
@SP
A=M-1
M=M-D
@ARG // pop argument 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Math.divide$IF_FALSE3) // label IF_FALSE3
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@Math.divide$WHILE_EXP1 // goto WHILE_EXP1
0;JMP
(Math.divide$WHILE_END1) // label WHILE_END1
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // if-goto IF_TRUE4
AM=M-1
D=M
@Math.divide$IF_TRUE4
D;JNE
@Math.divide$IF_FALSE4 // goto IF_FALSE4
0;JMP
(Math.divide$IF_TRUE4) // label IF_TRUE4
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // neg
A=M
A=A-1
M=-M
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Math.divide$IF_FALSE4) // label IF_FALSE4
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Math.sqrt) // function Math.sqrt 4
@0
D=A
@SP
A=M
M=D
A=A+1
M=D
A=A+1
M=D
A=A+1
M=D
D=A+1
@SP
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_25 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_25)
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Math.sqrt$IF_TRUE0
D;JNE
@Math.sqrt$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Math.sqrt$IF_TRUE0) // label IF_TRUE0
@4 // push constant 4
D=A
@SP
A=M
M=D
@SP
M=M+1
@Sys.error // call Sys.error 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Sys.error_RETURN_35
D=A
@GLOBAL_CALL
0;JMP
(Sys.error_RETURN_35)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(Math.sqrt$IF_FALSE0) // label IF_FALSE0
@7 // push constant 7
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Math.sqrt$WHILE_EXP0) // label WHILE_EXP0
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + neg
A=M
M=-1
@SP
M=M+1
@GLOBAL_GT_RETURN_26 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_26)
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END0
AM=M-1
D=M
@Math.sqrt$WHILE_END0
D;JNE
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Math.0 // seq 2: push static 0 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // seq 2: push that 0 + add
A=M
D=M
@SP
A=M-1
M=M+D
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@Math.multiply // call Math.multiply 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.multiply_RETURN_36
D=A
@GLOBAL_CALL
0;JMP
(Math.multiply_RETURN_36)
@LCL // pop local 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_27 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_27)
@SP // not
A=M
A=A-1
M=!M
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_28 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_28)
@SP // not
A=M
A=A-1
M=!M
@SP // and
AM=M-1
D=M
A=A-1
M=D&M
@SP // if-goto IF_TRUE1
AM=M-1
D=M
@Math.sqrt$IF_TRUE1
D;JNE
@Math.sqrt$IF_FALSE1 // goto IF_FALSE1
0;JMP
(Math.sqrt$IF_TRUE1) // label IF_TRUE1
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 3
D=M
@3
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Math.sqrt$IF_FALSE1) // label IF_FALSE1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@Math.sqrt$WHILE_EXP0 // goto WHILE_EXP0
0;JMP
(Math.sqrt$WHILE_END0) // label WHILE_END0
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Math.max) // function Math.max 0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_29 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_29)
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Math.max$IF_TRUE0
D;JNE
@Math.max$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Math.max$IF_TRUE0) // label IF_TRUE0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // pop argument 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Math.max$IF_FALSE0) // label IF_FALSE0
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Math.min) // function Math.min 0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_30 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_30)
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Math.min$IF_TRUE0
D;JNE
@Math.min$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Math.min$IF_TRUE0) // label IF_TRUE0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // pop argument 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Math.min$IF_FALSE0) // label IF_FALSE0
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
// ............................................
// module: Memory
// from file: Memory.vm
// ............................................
(Memory.init) // function Memory.init 0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // pop static 0
AM=M-1
D=M
@Memory.0
M=D
@2048 // push constant 2048
D=A
@SP
A=M
M=D
@SP
M=M+1
@Memory.0 // seq 2: push static 0 + add
D=M
@SP
A=M-1
M=D+M
@14334 // push constant 14334
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@2049 // push constant 2049
D=A
@SP
A=M
M=D
@SP
M=M+1
@Memory.0 // seq 2: push static 0 + add
D=M
@SP
A=M-1
M=D+M
@2050 // push constant 2050
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Memory.peek) // function Memory.peek 0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Memory.0 // seq 2: push static 0 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Memory.poke) // function Memory.poke 0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Memory.0 // seq 2: push static 0 + add
D=M
@SP
A=M-1
M=D+M
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Memory.alloc) // function Memory.alloc 2
@0
D=A
@SP
A=M
M=D
A=A+1
M=D
D=A+1
@SP
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_31 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_31)
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Memory.alloc$IF_TRUE0
D;JNE
@Memory.alloc$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Memory.alloc$IF_TRUE0) // label IF_TRUE0
@5 // push constant 5
D=A
@SP
A=M
M=D
@SP
M=M+1
@Sys.error // call Sys.error 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Sys.error_RETURN_37
D=A
@GLOBAL_CALL
0;JMP
(Sys.error_RETURN_37)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(Memory.alloc$IF_FALSE0) // label IF_FALSE0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_EQ_RETURN_32 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_32)
@SP // if-goto IF_TRUE1
AM=M-1
D=M
@Memory.alloc$IF_TRUE1
D;JNE
@Memory.alloc$IF_FALSE1 // goto IF_FALSE1
0;JMP
(Memory.alloc$IF_TRUE1) // label IF_TRUE1
@SP // push constant 1
A=M
M=1
@SP
M=M+1
@ARG // pop argument 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Memory.alloc$IF_FALSE1) // label IF_FALSE1
@2048 // push constant 2048
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Memory.alloc$WHILE_EXP0) // label WHILE_EXP0
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@16383 // push constant 16383
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_33 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_33)
@LCL // seq 3: push constant 0 + push local 0 + add
A=M
D=M
@0
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_34 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_34)
@SP // and
AM=M-1
D=M
A=A-1
M=D&M
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END0
AM=M-1
D=M
@Memory.alloc$WHILE_END0
D;JNE
@LCL // seq 3: push constant 1 + push local 0 + add
A=M
D=M
@1
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // seq 3: push constant 0 + push local 0 + add
A=M
D=M
@0
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_EQ_RETURN_35 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_35)
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@16382 // push constant 16382
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_36 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_36)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@LCL // seq 3: push constant 0 + push local 1 + add
A=M+1
D=M
@0
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_EQ_RETURN_37 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_37)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@SP // if-goto IF_TRUE2
AM=M-1
D=M
@Memory.alloc$IF_TRUE2
D;JNE
@Memory.alloc$IF_FALSE2 // goto IF_FALSE2
0;JMP
(Memory.alloc$IF_TRUE2) // label IF_TRUE2
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@Memory.alloc$IF_END2 // goto IF_END2
0;JMP
(Memory.alloc$IF_FALSE2) // label IF_FALSE2
@LCL // seq 3: push constant 0 + push local 0 + add
A=M
D=M
@0
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 3: push constant 1 + push local 0 + add
A=M
D=M
@1
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 2: push local 0 + sub
A=M
D=M
@SP
A=M-1
M=M-D
@LCL // seq 3: push constant 0 + push local 1 + add
A=M+1
D=M
@0
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // seq 2: push that 0 + add
A=M
D=M
@SP
A=M-1
M=M+D
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // seq 3: push constant 1 + push local 1 + add
A=M+1
D=M
@1
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 2 + add
A=M-1
D=M
@2
D=D+A
@SP
A=M-1
M=D
@GLOBAL_EQ_RETURN_38 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_38)
@SP // if-goto IF_TRUE3
AM=M-1
D=M
@Memory.alloc$IF_TRUE3
D;JNE
@Memory.alloc$IF_FALSE3 // goto IF_FALSE3
0;JMP
(Memory.alloc$IF_TRUE3) // label IF_TRUE3
@LCL // seq 3: push constant 1 + push local 0 + add
A=M
D=M
@1
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 2 + add
A=M-1
D=M
@2
D=D+A
@SP
A=M-1
M=D
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@Memory.alloc$IF_END3 // goto IF_END3
0;JMP
(Memory.alloc$IF_FALSE3) // label IF_FALSE3
@LCL // seq 3: push constant 1 + push local 0 + add
A=M
D=M
@1
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 3: push constant 1 + push local 1 + add
A=M+1
D=M
@1
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
(Memory.alloc$IF_END3) // label IF_END3
(Memory.alloc$IF_END2) // label IF_END2
@Memory.alloc$WHILE_EXP0 // goto WHILE_EXP0
0;JMP
(Memory.alloc$WHILE_END0) // label WHILE_END0
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 0 + add
A=M
D=M
@SP
A=M-1
M=M+D
@16379 // push constant 16379
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_39 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_39)
@SP // if-goto IF_TRUE4
AM=M-1
D=M
@Memory.alloc$IF_TRUE4
D;JNE
@Memory.alloc$IF_FALSE4 // goto IF_FALSE4
0;JMP
(Memory.alloc$IF_TRUE4) // label IF_TRUE4
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@Sys.error // call Sys.error 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Sys.error_RETURN_38
D=A
@GLOBAL_CALL
0;JMP
(Sys.error_RETURN_38)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(Memory.alloc$IF_FALSE4) // label IF_FALSE4
@LCL // seq 3: push constant 0 + push local 0 + add
A=M
D=M
@0
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 2 + add
A=M-1
D=M
@2
D=D+A
@SP
A=M-1
M=D
@GLOBAL_GT_RETURN_40 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_40)
@SP // if-goto IF_TRUE5
AM=M-1
D=M
@Memory.alloc$IF_TRUE5
D;JNE
@Memory.alloc$IF_FALSE5 // goto IF_FALSE5
0;JMP
(Memory.alloc$IF_TRUE5) // label IF_TRUE5
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 2 + add
A=M-1
D=M
@2
D=D+A
@SP
A=M-1
M=D
@LCL // seq 2: push local 0 + add
A=M
D=M
@SP
A=M-1
M=M+D
@LCL // seq 3: push constant 0 + push local 0 + add
A=M
D=M
@0
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 0 + sub
A=M
D=M
@SP
A=M-1
M=M-D
@SP // seq 2: push constant 2 + sub
A=M-1
D=M
@2
D=D-A
@SP
A=M-1
M=D
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // seq 3: push constant 1 + push local 0 + add
A=M
D=M
@1
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 2 + add
A=M-1
D=M
@2
D=D+A
@SP
A=M-1
M=D
@GLOBAL_EQ_RETURN_41 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_41)
@SP // if-goto IF_TRUE6
AM=M-1
D=M
@Memory.alloc$IF_TRUE6
D;JNE
@Memory.alloc$IF_FALSE6 // goto IF_FALSE6
0;JMP
(Memory.alloc$IF_TRUE6) // label IF_TRUE6
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 3 + add
A=M-1
D=M
@3
D=D+A
@SP
A=M-1
M=D
@LCL // seq 2: push local 0 + add
A=M
D=M
@SP
A=M-1
M=M+D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 0 + add
A=M
D=M
@SP
A=M-1
M=M+D
@SP // seq 2: push constant 4 + add
A=M-1
D=M
@4
D=D+A
@SP
A=M-1
M=D
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@Memory.alloc$IF_END6 // goto IF_END6
0;JMP
(Memory.alloc$IF_FALSE6) // label IF_FALSE6
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 3 + add
A=M-1
D=M
@3
D=D+A
@SP
A=M-1
M=D
@LCL // seq 2: push local 0 + add
A=M
D=M
@SP
A=M-1
M=M+D
@LCL // seq 3: push constant 1 + push local 0 + add
A=M
D=M
@1
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
(Memory.alloc$IF_END6) // label IF_END6
@LCL // seq 3: push constant 1 + push local 0 + add
A=M
D=M
@1
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 0 + add
A=M
D=M
@SP
A=M-1
M=M+D
@SP // seq 2: push constant 2 + add
A=M-1
D=M
@2
D=D+A
@SP
A=M-1
M=D
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
(Memory.alloc$IF_FALSE5) // label IF_FALSE5
@LCL // seq 3: push constant 0 + push local 0 + add
A=M
D=M
@0
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 2 + add
A=M-1
D=M
@2
D=D+A
@SP
A=M-1
M=D
@GLOBAL_RETURN // return
0;JMP
(Memory.deAlloc) // function Memory.deAlloc 2
@0
D=A
@SP
A=M
M=D
A=A+1
M=D
D=A+1
@SP
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 2 + sub
A=M-1
D=M
@2
D=D-A
@SP
A=M-1
M=D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // seq 3: push constant 1 + push local 0 + add
A=M
D=M
@1
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // seq 3: push constant 0 + push local 1 + add
A=M+1
D=M
@0
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_EQ_RETURN_42 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_42)
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Memory.deAlloc$IF_TRUE0
D;JNE
@Memory.deAlloc$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Memory.deAlloc$IF_TRUE0) // label IF_TRUE0
@LCL // seq 3: push constant 0 + push local 0 + add
A=M
D=M
@0
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 3: push constant 1 + push local 0 + add
A=M
D=M
@1
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 2: push local 0 + sub
A=M
D=M
@SP
A=M-1
M=M-D
@SP // seq 2: push constant 2 + sub
A=M-1
D=M
@2
D=D-A
@SP
A=M-1
M=D
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@Memory.deAlloc$IF_END0 // goto IF_END0
0;JMP
(Memory.deAlloc$IF_FALSE0) // label IF_FALSE0
@LCL // seq 3: push constant 0 + push local 0 + add
A=M
D=M
@0
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 3: push constant 1 + push local 0 + add
A=M
D=M
@1
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 2: push local 0 + sub
A=M
D=M
@SP
A=M-1
M=M-D
@LCL // seq 3: push constant 0 + push local 1 + add
A=M+1
D=M
@0
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // seq 2: push that 0 + add
A=M
D=M
@SP
A=M-1
M=M+D
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // seq 3: push constant 1 + push local 1 + add
A=M+1
D=M
@1
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 2 + add
A=M-1
D=M
@2
D=D+A
@SP
A=M-1
M=D
@GLOBAL_EQ_RETURN_43 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_43)
@SP // if-goto IF_TRUE1
AM=M-1
D=M
@Memory.deAlloc$IF_TRUE1
D;JNE
@Memory.deAlloc$IF_FALSE1 // goto IF_FALSE1
0;JMP
(Memory.deAlloc$IF_TRUE1) // label IF_TRUE1
@LCL // seq 3: push constant 1 + push local 0 + add
A=M
D=M
@1
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 2 + add
A=M-1
D=M
@2
D=D+A
@SP
A=M-1
M=D
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@Memory.deAlloc$IF_END1 // goto IF_END1
0;JMP
(Memory.deAlloc$IF_FALSE1) // label IF_FALSE1
@LCL // seq 3: push constant 1 + push local 0 + add
A=M
D=M
@1
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 3: push constant 1 + push local 1 + add
A=M+1
D=M
@1
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
(Memory.deAlloc$IF_END1) // label IF_END1
(Memory.deAlloc$IF_END0) // label IF_END0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
// ............................................
// module: Output
// from file: Output.vm
// ............................................
(Output.init) // function Output.init 0
@16384 // push constant 16384
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop static 4
AM=M-1
D=M
@Output.4
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // not
A=M
A=A-1
M=!M
@SP // pop static 2
AM=M-1
D=M
@Output.2
M=D
@32 // push constant 32
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop static 1
AM=M-1
D=M
@Output.1
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // pop static 0
AM=M-1
D=M
@Output.0
M=D
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@String.new // call String.new 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@String.new_RETURN_39
D=A
@GLOBAL_CALL
0;JMP
(String.new_RETURN_39)
@SP // pop static 3
AM=M-1
D=M
@Output.3
M=D
@Output.initMap // call Output.initMap 0
D=A
@R13
M=D
@0
D=A
@R14
M=D
@Output.initMap_RETURN_40
D=A
@GLOBAL_CALL
0;JMP
(Output.initMap_RETURN_40)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@Output.createShiftedMap // call Output.createShiftedMap 0
D=A
@R13
M=D
@0
D=A
@R14
M=D
@Output.createShiftedMap_RETURN_41
D=A
@GLOBAL_CALL
0;JMP
(Output.createShiftedMap_RETURN_41)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Output.initMap) // function Output.initMap 0
@127 // push constant 127
D=A
@SP
A=M
M=D
@SP
M=M+1
@Array.new // call Array.new 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Array.new_RETURN_42
D=A
@GLOBAL_CALL
0;JMP
(Array.new_RETURN_42)
@SP // pop static 5
AM=M-1
D=M
@Output.5
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_43
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_43)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@32 // push constant 32
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_44
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_44)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@33 // push constant 33
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_45
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_45)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@34 // push constant 34
D=A
@SP
A=M
M=D
@SP
M=M+1
@54 // push constant 54
D=A
@SP
A=M
M=D
@SP
M=M+1
@54 // push constant 54
D=A
@SP
A=M
M=D
@SP
M=M+1
@20 // push constant 20
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_46
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_46)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@35 // push constant 35
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@18 // push constant 18
D=A
@SP
A=M
M=D
@SP
M=M+1
@18 // push constant 18
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@18 // push constant 18
D=A
@SP
A=M
M=D
@SP
M=M+1
@18 // push constant 18
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@18 // push constant 18
D=A
@SP
A=M
M=D
@SP
M=M+1
@18 // push constant 18
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_47
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_47)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@36 // push constant 36
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_48
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_48)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@37 // push constant 37
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@35 // push constant 35
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@49 // push constant 49
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_49
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_49)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@38 // push constant 38
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@54 // push constant 54
D=A
@SP
A=M
M=D
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@54 // push constant 54
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_50
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_50)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@39 // push constant 39
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_51
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_51)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@40 // push constant 40
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_52
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_52)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@41 // push constant 41
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_53
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_53)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@42 // push constant 42
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_54
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_54)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@43 // push constant 43
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_55
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_55)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@44 // push constant 44
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_56
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_56)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@45 // push constant 45
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_57
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_57)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@46 // push constant 46
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_58
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_58)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@47 // push constant 47
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@32 // push constant 32
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 1
A=M
M=1
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_59
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_59)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_60
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_60)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@49 // push constant 49
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@14 // push constant 14
D=A
@SP
A=M
M=D
@SP
M=M+1
@15 // push constant 15
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_61
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_61)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@50 // push constant 50
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_62
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_62)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@28 // push constant 28
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_63
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_63)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@52 // push constant 52
D=A
@SP
A=M
M=D
@SP
M=M+1
@16 // push constant 16
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@28 // push constant 28
D=A
@SP
A=M
M=D
@SP
M=M+1
@26 // push constant 26
D=A
@SP
A=M
M=D
@SP
M=M+1
@25 // push constant 25
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@60 // push constant 60
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_64
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_64)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@53 // push constant 53
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@31 // push constant 31
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_65
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_65)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@54 // push constant 54
D=A
@SP
A=M
M=D
@SP
M=M+1
@28 // push constant 28
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@31 // push constant 31
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_66
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_66)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@55 // push constant 55
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@49 // push constant 49
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_67
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_67)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@56 // push constant 56
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_68
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_68)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@57 // push constant 57
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@62 // push constant 62
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@14 // push constant 14
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_69
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_69)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@58 // push constant 58
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_70
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_70)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@59 // push constant 59
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_71
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_71)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@60 // push constant 60
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_72
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_72)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@61 // push constant 61
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_73
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_73)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@62 // push constant 62
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_74
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_74)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@64 // push constant 64
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@59 // push constant 59
D=A
@SP
A=M
M=D
@SP
M=M+1
@59 // push constant 59
D=A
@SP
A=M
M=D
@SP
M=M+1
@59 // push constant 59
D=A
@SP
A=M
M=D
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_75
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_75)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_76
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_76)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@65 // push constant 65
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_77
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_77)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@66 // push constant 66
D=A
@SP
A=M
M=D
@SP
M=M+1
@31 // push constant 31
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@31 // push constant 31
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@31 // push constant 31
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_78
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_78)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@67 // push constant 67
D=A
@SP
A=M
M=D
@SP
M=M+1
@28 // push constant 28
D=A
@SP
A=M
M=D
@SP
M=M+1
@54 // push constant 54
D=A
@SP
A=M
M=D
@SP
M=M+1
@35 // push constant 35
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@35 // push constant 35
D=A
@SP
A=M
M=D
@SP
M=M+1
@54 // push constant 54
D=A
@SP
A=M
M=D
@SP
M=M+1
@28 // push constant 28
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_79
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_79)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@68 // push constant 68
D=A
@SP
A=M
M=D
@SP
M=M+1
@15 // push constant 15
D=A
@SP
A=M
M=D
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@15 // push constant 15
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_80
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_80)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@69 // push constant 69
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@35 // push constant 35
D=A
@SP
A=M
M=D
@SP
M=M+1
@11 // push constant 11
D=A
@SP
A=M
M=D
@SP
M=M+1
@15 // push constant 15
D=A
@SP
A=M
M=D
@SP
M=M+1
@11 // push constant 11
D=A
@SP
A=M
M=D
@SP
M=M+1
@35 // push constant 35
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_81
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_81)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@70 // push constant 70
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@35 // push constant 35
D=A
@SP
A=M
M=D
@SP
M=M+1
@11 // push constant 11
D=A
@SP
A=M
M=D
@SP
M=M+1
@15 // push constant 15
D=A
@SP
A=M
M=D
@SP
M=M+1
@11 // push constant 11
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_82
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_82)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@71 // push constant 71
D=A
@SP
A=M
M=D
@SP
M=M+1
@28 // push constant 28
D=A
@SP
A=M
M=D
@SP
M=M+1
@54 // push constant 54
D=A
@SP
A=M
M=D
@SP
M=M+1
@35 // push constant 35
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@59 // push constant 59
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@54 // push constant 54
D=A
@SP
A=M
M=D
@SP
M=M+1
@44 // push constant 44
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_83
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_83)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@72 // push constant 72
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_84
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_84)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@73 // push constant 73
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_85
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_85)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@74 // push constant 74
D=A
@SP
A=M
M=D
@SP
M=M+1
@60 // push constant 60
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@14 // push constant 14
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_86
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_86)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@75 // push constant 75
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@15 // push constant 15
D=A
@SP
A=M
M=D
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_87
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_87)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@76 // push constant 76
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@35 // push constant 35
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_88
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_88)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@77 // push constant 77
D=A
@SP
A=M
M=D
@SP
M=M+1
@33 // push constant 33
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_89
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_89)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@78 // push constant 78
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@55 // push constant 55
D=A
@SP
A=M
M=D
@SP
M=M+1
@55 // push constant 55
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@59 // push constant 59
D=A
@SP
A=M
M=D
@SP
M=M+1
@59 // push constant 59
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_90
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_90)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@79 // push constant 79
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_91
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_91)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@80 // push constant 80
D=A
@SP
A=M
M=D
@SP
M=M+1
@31 // push constant 31
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@31 // push constant 31
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_92
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_92)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@81 // push constant 81
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@59 // push constant 59
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_93
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_93)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@82 // push constant 82
D=A
@SP
A=M
M=D
@SP
M=M+1
@31 // push constant 31
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@31 // push constant 31
D=A
@SP
A=M
M=D
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_94
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_94)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@83 // push constant 83
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@28 // push constant 28
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_95
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_95)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@84 // push constant 84
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@45 // push constant 45
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_96
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_96)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@85 // push constant 85
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_97
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_97)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@86 // push constant 86
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_98
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_98)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@87 // push constant 87
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@18 // push constant 18
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_99
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_99)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@88 // push constant 88
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_100
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_100)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@89 // push constant 89
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_101
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_101)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@90 // push constant 90
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@49 // push constant 49
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@35 // push constant 35
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_102
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_102)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@91 // push constant 91
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_103
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_103)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@92 // push constant 92
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 1
A=M
M=1
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@32 // push constant 32
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_104
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_104)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@93 // push constant 93
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_105
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_105)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@94 // push constant 94
D=A
@SP
A=M
M=D
@SP
M=M+1
@8 // push constant 8
D=A
@SP
A=M
M=D
@SP
M=M+1
@28 // push constant 28
D=A
@SP
A=M
M=D
@SP
M=M+1
@54 // push constant 54
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_106
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_106)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@95 // push constant 95
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_107
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_107)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@96 // push constant 96
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_108
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_108)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@97 // push constant 97
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@14 // push constant 14
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@54 // push constant 54
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_109
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_109)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@98 // push constant 98
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@15 // push constant 15
D=A
@SP
A=M
M=D
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_110
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_110)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@99 // push constant 99
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_111
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_111)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@100 // push constant 100
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@60 // push constant 60
D=A
@SP
A=M
M=D
@SP
M=M+1
@54 // push constant 54
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_112
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_112)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@101 // push constant 101
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_113
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_113)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@102 // push constant 102
D=A
@SP
A=M
M=D
@SP
M=M+1
@28 // push constant 28
D=A
@SP
A=M
M=D
@SP
M=M+1
@54 // push constant 54
D=A
@SP
A=M
M=D
@SP
M=M+1
@38 // push constant 38
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@15 // push constant 15
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@15 // push constant 15
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_114
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_114)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@103 // push constant 103
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@62 // push constant 62
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_115
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_115)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@104 // push constant 104
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@55 // push constant 55
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_116
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_116)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@105 // push constant 105
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@14 // push constant 14
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_117
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_117)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@106 // push constant 106
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@56 // push constant 56
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_118
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_118)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@107 // push constant 107
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@15 // push constant 15
D=A
@SP
A=M
M=D
@SP
M=M+1
@15 // push constant 15
D=A
@SP
A=M
M=D
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_119
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_119)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@108 // push constant 108
D=A
@SP
A=M
M=D
@SP
M=M+1
@14 // push constant 14
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_120
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_120)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@109 // push constant 109
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@29 // push constant 29
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@43 // push constant 43
D=A
@SP
A=M
M=D
@SP
M=M+1
@43 // push constant 43
D=A
@SP
A=M
M=D
@SP
M=M+1
@43 // push constant 43
D=A
@SP
A=M
M=D
@SP
M=M+1
@43 // push constant 43
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_121
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_121)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@110 // push constant 110
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@29 // push constant 29
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_122
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_122)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@111 // push constant 111
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_123
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_123)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@112 // push constant 112
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@31 // push constant 31
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_124
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_124)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@113 // push constant 113
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@62 // push constant 62
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_125
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_125)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@114 // push constant 114
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@29 // push constant 29
D=A
@SP
A=M
M=D
@SP
M=M+1
@55 // push constant 55
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@7 // push constant 7
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_126
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_126)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@115 // push constant 115
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_127
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_127)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@116 // push constant 116
D=A
@SP
A=M
M=D
@SP
M=M+1
@4 // push constant 4
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@15 // push constant 15
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@54 // push constant 54
D=A
@SP
A=M
M=D
@SP
M=M+1
@28 // push constant 28
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_128
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_128)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@117 // push constant 117
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@54 // push constant 54
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_129
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_129)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@118 // push constant 118
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_130
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_130)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@119 // push constant 119
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@18 // push constant 18
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_131
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_131)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@120 // push constant 120
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@30 // push constant 30
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_132
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_132)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@121 // push constant 121
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@62 // push constant 62
D=A
@SP
A=M
M=D
@SP
M=M+1
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@24 // push constant 24
D=A
@SP
A=M
M=D
@SP
M=M+1
@15 // push constant 15
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_133
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_133)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@122 // push constant 122
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@27 // push constant 27
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@51 // push constant 51
D=A
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_134
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_134)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@123 // push constant 123
D=A
@SP
A=M
M=D
@SP
M=M+1
@56 // push constant 56
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@7 // push constant 7
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@56 // push constant 56
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_135
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_135)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@124 // push constant 124
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_136
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_136)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@125 // push constant 125
D=A
@SP
A=M
M=D
@SP
M=M+1
@7 // push constant 7
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@56 // push constant 56
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@7 // push constant 7
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_137
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_137)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@126 // push constant 126
D=A
@SP
A=M
M=D
@SP
M=M+1
@38 // push constant 38
D=A
@SP
A=M
M=D
@SP
M=M+1
@45 // push constant 45
D=A
@SP
A=M
M=D
@SP
M=M+1
@25 // push constant 25
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Output.create // call Output.create 12
D=A
@R13
M=D
@12
D=A
@R14
M=D
@Output.create_RETURN_138
D=A
@GLOBAL_CALL
0;JMP
(Output.create_RETURN_138)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Output.create) // function Output.create 1
@0
D=A
@SP
A=M
M=D
@SP
M=M+1
@11 // push constant 11
D=A
@SP
A=M
M=D
@SP
M=M+1
@Array.new // call Array.new 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Array.new_RETURN_139
D=A
@GLOBAL_CALL
0;JMP
(Array.new_RETURN_139)
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Output.5 // seq 2: push static 5 + add
D=M
@SP
A=M-1
M=D+M
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // seq 3: push constant 0 + push local 0 + add
A=M
D=M
@0
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // seq 3: push constant 1 + push local 0 + add
A=M
D=M
@1
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // seq 3: push constant 2 + push local 0 + add
A=M
D=M
@2
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // seq 3: push constant 3 + push local 0 + add
A=M
D=M
@3
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 4
D=M
@4
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // seq 3: push constant 4 + push local 0 + add
A=M
D=M
@4
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 5
D=M
@5
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // seq 3: push constant 5 + push local 0 + add
A=M
D=M
@5
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 6
D=M
@6
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // seq 3: push constant 6 + push local 0 + add
A=M
D=M
@6
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 7
D=M
@7
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // seq 3: push constant 7 + push local 0 + add
A=M
D=M
@7
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 8
D=M
@8
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // seq 3: push constant 8 + push local 0 + add
A=M
D=M
@8
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 9
D=M
@9
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // seq 3: push constant 9 + push local 0 + add
A=M
D=M
@9
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 10
D=M
@10
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // seq 3: push constant 10 + push local 0 + add
A=M
D=M
@10
D=D+A
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 11
D=M
@11
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Output.createShiftedMap) // function Output.createShiftedMap 4
@0
D=A
@SP
A=M
M=D
A=A+1
M=D
A=A+1
M=D
A=A+1
M=D
D=A+1
@SP
M=D
@127 // push constant 127
D=A
@SP
A=M
M=D
@SP
M=M+1
@Array.new // call Array.new 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Array.new_RETURN_140
D=A
@GLOBAL_CALL
0;JMP
(Array.new_RETURN_140)
@SP // pop static 6
AM=M-1
D=M
@Output.6
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@LCL // pop local 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Output.createShiftedMap$WHILE_EXP0) // label WHILE_EXP0
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@127 // push constant 127
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_44 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_44)
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END0
AM=M-1
D=M
@Output.createShiftedMap$WHILE_END0
D;JNE
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@Output.5 // seq 2: push static 5 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@11 // push constant 11
D=A
@SP
A=M
M=D
@SP
M=M+1
@Array.new // call Array.new 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Array.new_RETURN_141
D=A
@GLOBAL_CALL
0;JMP
(Array.new_RETURN_141)
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@Output.6 // seq 2: push static 6 + add
D=M
@SP
A=M-1
M=D+M
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@LCL // pop local 3
D=M
@3
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Output.createShiftedMap$WHILE_EXP1) // label WHILE_EXP1
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@11 // push constant 11
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_45 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_45)
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END1
AM=M-1
D=M
@Output.createShiftedMap$WHILE_END1
D;JNE
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 2: push local 1 + add
A=M+1
D=M
@SP
A=M-1
M=M+D
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 2: push local 0 + add
A=M
D=M
@SP
A=M-1
M=M+D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@256 // push constant 256
D=A
@SP
A=M
M=D
@SP
M=M+1
@Math.multiply // call Math.multiply 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.multiply_RETURN_142
D=A
@GLOBAL_CALL
0;JMP
(Math.multiply_RETURN_142)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@LCL // pop local 3
D=M
@3
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@Output.createShiftedMap$WHILE_EXP1 // goto WHILE_EXP1
0;JMP
(Output.createShiftedMap$WHILE_END1) // label WHILE_END1
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_EQ_RETURN_46 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_46)
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Output.createShiftedMap$IF_TRUE0
D;JNE
@Output.createShiftedMap$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Output.createShiftedMap$IF_TRUE0) // label IF_TRUE0
@32 // push constant 32
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@Output.createShiftedMap$IF_END0 // goto IF_END0
0;JMP
(Output.createShiftedMap$IF_FALSE0) // label IF_FALSE0
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@LCL // pop local 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Output.createShiftedMap$IF_END0) // label IF_END0
@Output.createShiftedMap$WHILE_EXP0 // goto WHILE_EXP0
0;JMP
(Output.createShiftedMap$WHILE_END0) // label WHILE_END0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Output.getMap) // function Output.getMap 1
@0
D=A
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@32 // push constant 32
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_47 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_47)
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@126 // push constant 126
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_48 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_48)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Output.getMap$IF_TRUE0
D;JNE
@Output.getMap$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Output.getMap$IF_TRUE0) // label IF_TRUE0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@ARG // pop argument 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Output.getMap$IF_FALSE0) // label IF_FALSE0
@Output.2 // push static 2
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // if-goto IF_TRUE1
AM=M-1
D=M
@Output.getMap$IF_TRUE1
D;JNE
@Output.getMap$IF_FALSE1 // goto IF_FALSE1
0;JMP
(Output.getMap$IF_TRUE1) // label IF_TRUE1
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Output.5 // seq 2: push static 5 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@Output.getMap$IF_END1 // goto IF_END1
0;JMP
(Output.getMap$IF_FALSE1) // label IF_FALSE1
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Output.6 // seq 2: push static 6 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Output.getMap$IF_END1) // label IF_END1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Output.drawChar) // function Output.drawChar 4
@0
D=A
@SP
A=M
M=D
A=A+1
M=D
A=A+1
M=D
A=A+1
M=D
D=A+1
@SP
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Output.getMap // call Output.getMap 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Output.getMap_RETURN_143
D=A
@GLOBAL_CALL
0;JMP
(Output.getMap_RETURN_143)
@LCL // pop local 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@Output.1 // push static 1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Output.drawChar$WHILE_EXP0) // label WHILE_EXP0
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@11 // push constant 11
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_49 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_49)
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END0
AM=M-1
D=M
@Output.drawChar$WHILE_END0
D;JNE
@Output.2 // push static 2
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Output.drawChar$IF_TRUE0
D;JNE
@Output.drawChar$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Output.drawChar$IF_TRUE0) // label IF_TRUE0
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Output.4 // seq 2: push static 4 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@256
D=-A
@SP
A=M
M=D
@SP
M=M+1
@SP // and
AM=M-1
D=M
A=A-1
M=D&M
@LCL // pop local 3
D=M
@3
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@Output.drawChar$IF_END0 // goto IF_END0
0;JMP
(Output.drawChar$IF_FALSE0) // label IF_FALSE0
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Output.4 // seq 2: push static 4 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@255 // push constant 255
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // and
AM=M-1
D=M
A=A-1
M=D&M
@LCL // pop local 3
D=M
@3
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Output.drawChar$IF_END0) // label IF_END0
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Output.4 // seq 2: push static 4 + add
D=M
@SP
A=M-1
M=D+M
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 2: push local 2 + add
A=M+1
A=A+1
D=M
@SP
A=M-1
M=M+D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 32 + add
A=M-1
D=M
@32
D=D+A
@SP
A=M-1
M=D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@Output.drawChar$WHILE_EXP0 // goto WHILE_EXP0
0;JMP
(Output.drawChar$WHILE_END0) // label WHILE_END0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Output.moveCursor) // function Output.moveCursor 0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_50 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_50)
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@22 // push constant 22
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_51 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_51)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_52 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_52)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@63 // push constant 63
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_53 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_53)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Output.moveCursor$IF_TRUE0
D;JNE
@Output.moveCursor$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Output.moveCursor$IF_TRUE0) // label IF_TRUE0
@20 // push constant 20
D=A
@SP
A=M
M=D
@SP
M=M+1
@Sys.error // call Sys.error 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Sys.error_RETURN_144
D=A
@GLOBAL_CALL
0;JMP
(Sys.error_RETURN_144)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(Output.moveCursor$IF_FALSE0) // label IF_FALSE0
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
A=M
M=1
M=M+1
@SP
M=M+1
@Math.divide // call Math.divide 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.divide_RETURN_145
D=A
@GLOBAL_CALL
0;JMP
(Math.divide_RETURN_145)
@SP // pop static 0
AM=M-1
D=M
@Output.0
M=D
@32 // push constant 32
D=A
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@352 // push constant 352
D=A
@SP
A=M
M=D
@SP
M=M+1
@Math.multiply // call Math.multiply 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.multiply_RETURN_146
D=A
@GLOBAL_CALL
0;JMP
(Math.multiply_RETURN_146)
@SP // add
AM=M-1
D=M
A=A-1
M=D+M
@Output.0 // seq 2: push static 0 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop static 1
AM=M-1
D=M
@Output.1
M=D
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@Output.0 // push static 0
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
A=M
M=1
M=M+1
@SP
M=M+1
@Math.multiply // call Math.multiply 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.multiply_RETURN_147
D=A
@GLOBAL_CALL
0;JMP
(Math.multiply_RETURN_147)
@GLOBAL_EQ_RETURN_54 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_54)
@SP // pop static 2
AM=M-1
D=M
@Output.2
M=D
@32 // push constant 32
D=A
@SP
A=M
M=D
@SP
M=M+1
@Output.drawChar // call Output.drawChar 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Output.drawChar_RETURN_148
D=A
@GLOBAL_CALL
0;JMP
(Output.drawChar_RETURN_148)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Output.printChar) // function Output.printChar 0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@String.newLine // call String.newLine 0
D=A
@R13
M=D
@0
D=A
@R14
M=D
@String.newLine_RETURN_149
D=A
@GLOBAL_CALL
0;JMP
(String.newLine_RETURN_149)
@GLOBAL_EQ_RETURN_55 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_55)
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Output.printChar$IF_TRUE0
D;JNE
@Output.printChar$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Output.printChar$IF_TRUE0) // label IF_TRUE0
@Output.println // call Output.println 0
D=A
@R13
M=D
@0
D=A
@R14
M=D
@Output.println_RETURN_150
D=A
@GLOBAL_CALL
0;JMP
(Output.println_RETURN_150)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@Output.printChar$IF_END0 // goto IF_END0
0;JMP
(Output.printChar$IF_FALSE0) // label IF_FALSE0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@String.backSpace // call String.backSpace 0
D=A
@R13
M=D
@0
D=A
@R14
M=D
@String.backSpace_RETURN_151
D=A
@GLOBAL_CALL
0;JMP
(String.backSpace_RETURN_151)
@GLOBAL_EQ_RETURN_56 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_56)
@SP // if-goto IF_TRUE1
AM=M-1
D=M
@Output.printChar$IF_TRUE1
D;JNE
@Output.printChar$IF_FALSE1 // goto IF_FALSE1
0;JMP
(Output.printChar$IF_TRUE1) // label IF_TRUE1
@Output.backSpace // call Output.backSpace 0
D=A
@R13
M=D
@0
D=A
@R14
M=D
@Output.backSpace_RETURN_152
D=A
@GLOBAL_CALL
0;JMP
(Output.backSpace_RETURN_152)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@Output.printChar$IF_END1 // goto IF_END1
0;JMP
(Output.printChar$IF_FALSE1) // label IF_FALSE1
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Output.drawChar // call Output.drawChar 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Output.drawChar_RETURN_153
D=A
@GLOBAL_CALL
0;JMP
(Output.drawChar_RETURN_153)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@Output.2 // push static 2
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto IF_TRUE2
AM=M-1
D=M
@Output.printChar$IF_TRUE2
D;JNE
@Output.printChar$IF_FALSE2 // goto IF_FALSE2
0;JMP
(Output.printChar$IF_TRUE2) // label IF_TRUE2
@Output.0 // push static 0
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@SP // pop static 0
AM=M-1
D=M
@Output.0
M=D
@Output.1 // push static 1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@SP // pop static 1
AM=M-1
D=M
@Output.1
M=D
(Output.printChar$IF_FALSE2) // label IF_FALSE2
@Output.0 // push static 0
D=M
@SP
A=M
M=D
@SP
M=M+1
@32 // push constant 32
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_EQ_RETURN_57 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_57)
@SP // if-goto IF_TRUE3
AM=M-1
D=M
@Output.printChar$IF_TRUE3
D;JNE
@Output.printChar$IF_FALSE3 // goto IF_FALSE3
0;JMP
(Output.printChar$IF_TRUE3) // label IF_TRUE3
@Output.println // call Output.println 0
D=A
@R13
M=D
@0
D=A
@R14
M=D
@Output.println_RETURN_154
D=A
@GLOBAL_CALL
0;JMP
(Output.println_RETURN_154)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@Output.printChar$IF_END3 // goto IF_END3
0;JMP
(Output.printChar$IF_FALSE3) // label IF_FALSE3
@Output.2 // push static 2
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // not
A=M
A=A-1
M=!M
@SP // pop static 2
AM=M-1
D=M
@Output.2
M=D
(Output.printChar$IF_END3) // label IF_END3
(Output.printChar$IF_END1) // label IF_END1
(Output.printChar$IF_END0) // label IF_END0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Output.printString) // function Output.printString 2
@0
D=A
@SP
A=M
M=D
A=A+1
M=D
D=A+1
@SP
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@String.length // call String.length 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@String.length_RETURN_155
D=A
@GLOBAL_CALL
0;JMP
(String.length_RETURN_155)
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Output.printString$WHILE_EXP0) // label WHILE_EXP0
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_58 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_58)
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END0
AM=M-1
D=M
@Output.printString$WHILE_END0
D;JNE
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@String.charAt // call String.charAt 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@String.charAt_RETURN_156
D=A
@GLOBAL_CALL
0;JMP
(String.charAt_RETURN_156)
@Output.printChar // call Output.printChar 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Output.printChar_RETURN_157
D=A
@GLOBAL_CALL
0;JMP
(Output.printChar_RETURN_157)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@Output.printString$WHILE_EXP0 // goto WHILE_EXP0
0;JMP
(Output.printString$WHILE_END0) // label WHILE_END0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Output.printInt) // function Output.printInt 0
@Output.3 // push static 3
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@String.setInt // call String.setInt 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@String.setInt_RETURN_158
D=A
@GLOBAL_CALL
0;JMP
(String.setInt_RETURN_158)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@Output.3 // push static 3
D=M
@SP
A=M
M=D
@SP
M=M+1
@Output.printString // call Output.printString 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Output.printString_RETURN_159
D=A
@GLOBAL_CALL
0;JMP
(Output.printString_RETURN_159)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Output.println) // function Output.println 0
@Output.1 // push static 1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 352 + add
A=M-1
D=M
@352
D=D+A
@SP
A=M-1
M=D
@Output.0 // push static 0
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // sub
AM=M-1
D=M
A=A-1
M=M-D
@SP // pop static 1
AM=M-1
D=M
@Output.1
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // pop static 0
AM=M-1
D=M
@Output.0
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // not
A=M
A=A-1
M=!M
@SP // pop static 2
AM=M-1
D=M
@Output.2
M=D
@Output.1 // push static 1
D=M
@SP
A=M
M=D
@SP
M=M+1
@8128 // push constant 8128
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_EQ_RETURN_59 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_59)
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Output.println$IF_TRUE0
D;JNE
@Output.println$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Output.println$IF_TRUE0) // label IF_TRUE0
@32 // push constant 32
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop static 1
AM=M-1
D=M
@Output.1
M=D
(Output.println$IF_FALSE0) // label IF_FALSE0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Output.backSpace) // function Output.backSpace 0
@Output.2 // push static 2
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Output.backSpace$IF_TRUE0
D;JNE
@Output.backSpace$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Output.backSpace$IF_TRUE0) // label IF_TRUE0
@Output.0 // push static 0
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_GT_RETURN_60 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_60)
@SP // if-goto IF_TRUE1
AM=M-1
D=M
@Output.backSpace$IF_TRUE1
D;JNE
@Output.backSpace$IF_FALSE1 // goto IF_FALSE1
0;JMP
(Output.backSpace$IF_TRUE1) // label IF_TRUE1
@Output.0 // push static 0
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@SP // pop static 0
AM=M-1
D=M
@Output.0
M=D
@Output.1 // push static 1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@SP // pop static 1
AM=M-1
D=M
@Output.1
M=D
@Output.backSpace$IF_END1 // goto IF_END1
0;JMP
(Output.backSpace$IF_FALSE1) // label IF_FALSE1
@31 // push constant 31
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop static 0
AM=M-1
D=M
@Output.0
M=D
@Output.1 // push static 1
D=M
@SP
A=M
M=D
@SP
M=M+1
@32 // push constant 32
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_EQ_RETURN_61 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_61)
@SP // if-goto IF_TRUE2
AM=M-1
D=M
@Output.backSpace$IF_TRUE2
D;JNE
@Output.backSpace$IF_FALSE2 // goto IF_FALSE2
0;JMP
(Output.backSpace$IF_TRUE2) // label IF_TRUE2
@8128 // push constant 8128
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop static 1
AM=M-1
D=M
@Output.1
M=D
(Output.backSpace$IF_FALSE2) // label IF_FALSE2
@Output.1 // push static 1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 321 + sub
A=M-1
D=M
@321
D=D-A
@SP
A=M-1
M=D
@SP // pop static 1
AM=M-1
D=M
@Output.1
M=D
(Output.backSpace$IF_END1) // label IF_END1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // pop static 2
AM=M-1
D=M
@Output.2
M=D
@Output.backSpace$IF_END0 // goto IF_END0
0;JMP
(Output.backSpace$IF_FALSE0) // label IF_FALSE0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // not
A=M
A=A-1
M=!M
@SP // pop static 2
AM=M-1
D=M
@Output.2
M=D
(Output.backSpace$IF_END0) // label IF_END0
@32 // push constant 32
D=A
@SP
A=M
M=D
@SP
M=M+1
@Output.drawChar // call Output.drawChar 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Output.drawChar_RETURN_160
D=A
@GLOBAL_CALL
0;JMP
(Output.drawChar_RETURN_160)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
// ............................................
// module: Screen
// from file: Screen.vm
// ............................................
(Screen.init) // function Screen.init 1
@0
D=A
@SP
A=M
M=D
@SP
M=M+1
@16384 // push constant 16384
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop static 1
AM=M-1
D=M
@Screen.1
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // not
A=M
A=A-1
M=!M
@SP // pop static 2
AM=M-1
D=M
@Screen.2
M=D
@17 // push constant 17
D=A
@SP
A=M
M=D
@SP
M=M+1
@Array.new // call Array.new 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Array.new_RETURN_161
D=A
@GLOBAL_CALL
0;JMP
(Array.new_RETURN_161)
@SP // pop static 0
AM=M-1
D=M
@Screen.0
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Screen.0 // seq 2: push static 0 + add
D=M
@SP
A=M-1
M=D+M
@SP // push constant 1
A=M
M=1
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
(Screen.init$WHILE_EXP0) // label WHILE_EXP0
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@16 // push constant 16
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_62 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_62)
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END0
AM=M-1
D=M
@Screen.init$WHILE_END0
D;JNE
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Screen.0 // seq 2: push static 0 + add
D=M
@SP
A=M-1
M=D+M
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@Screen.0 // seq 2: push static 0 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@Screen.0 // seq 2: push static 0 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // seq 2: push that 0 + add
A=M
D=M
@SP
A=M-1
M=M+D
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@Screen.init$WHILE_EXP0 // goto WHILE_EXP0
0;JMP
(Screen.init$WHILE_END0) // label WHILE_END0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Screen.clearScreen) // function Screen.clearScreen 1
@0
D=A
@SP
A=M
M=D
@SP
M=M+1
(Screen.clearScreen$WHILE_EXP0) // label WHILE_EXP0
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@8192 // push constant 8192
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_63 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_63)
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END0
AM=M-1
D=M
@Screen.clearScreen$WHILE_END0
D;JNE
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Screen.1 // seq 2: push static 1 + add
D=M
@SP
A=M-1
M=D+M
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@Screen.clearScreen$WHILE_EXP0 // goto WHILE_EXP0
0;JMP
(Screen.clearScreen$WHILE_END0) // label WHILE_END0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Screen.updateLocation) // function Screen.updateLocation 0
@Screen.2 // push static 2
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Screen.updateLocation$IF_TRUE0
D;JNE
@Screen.updateLocation$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Screen.updateLocation$IF_TRUE0) // label IF_TRUE0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Screen.1 // seq 2: push static 1 + add
D=M
@SP
A=M-1
M=D+M
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Screen.1 // seq 2: push static 1 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@Screen.updateLocation$IF_END0 // goto IF_END0
0;JMP
(Screen.updateLocation$IF_FALSE0) // label IF_FALSE0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Screen.1 // seq 2: push static 1 + add
D=M
@SP
A=M-1
M=D+M
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Screen.1 // seq 2: push static 1 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // not
A=M
A=A-1
M=!M
@SP // and
AM=M-1
D=M
A=A-1
M=D&M
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
(Screen.updateLocation$IF_END0) // label IF_END0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Screen.setColor) // function Screen.setColor 0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop static 2
AM=M-1
D=M
@Screen.2
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Screen.drawPixel) // function Screen.drawPixel 3
@0
D=A
@SP
A=M
M=D
A=A+1
M=D
A=A+1
M=D
D=A+1
@SP
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_64 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_64)
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@511 // push constant 511
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_65 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_65)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_66 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_66)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@255 // push constant 255
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_67 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_67)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Screen.drawPixel$IF_TRUE0
D;JNE
@Screen.drawPixel$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Screen.drawPixel$IF_TRUE0) // label IF_TRUE0
@7 // push constant 7
D=A
@SP
A=M
M=D
@SP
M=M+1
@Sys.error // call Sys.error 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Sys.error_RETURN_162
D=A
@GLOBAL_CALL
0;JMP
(Sys.error_RETURN_162)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(Screen.drawPixel$IF_FALSE0) // label IF_FALSE0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@16 // push constant 16
D=A
@SP
A=M
M=D
@SP
M=M+1
@Math.divide // call Math.divide 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.divide_RETURN_163
D=A
@GLOBAL_CALL
0;JMP
(Math.divide_RETURN_163)
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@16 // push constant 16
D=A
@SP
A=M
M=D
@SP
M=M+1
@Math.multiply // call Math.multiply 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.multiply_RETURN_164
D=A
@GLOBAL_CALL
0;JMP
(Math.multiply_RETURN_164)
@SP // sub
AM=M-1
D=M
A=A-1
M=M-D
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@32 // push constant 32
D=A
@SP
A=M
M=D
@SP
M=M+1
@Math.multiply // call Math.multiply 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.multiply_RETURN_165
D=A
@GLOBAL_CALL
0;JMP
(Math.multiply_RETURN_165)
@LCL // seq 2: push local 0 + add
A=M
D=M
@SP
A=M-1
M=M+D
@LCL // pop local 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@Screen.0 // seq 2: push static 0 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Screen.updateLocation // call Screen.updateLocation 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Screen.updateLocation_RETURN_166
D=A
@GLOBAL_CALL
0;JMP
(Screen.updateLocation_RETURN_166)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Screen.drawConditional) // function Screen.drawConditional 0
@ARG // push argument 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Screen.drawConditional$IF_TRUE0
D;JNE
@Screen.drawConditional$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Screen.drawConditional$IF_TRUE0) // label IF_TRUE0
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Screen.drawPixel // call Screen.drawPixel 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Screen.drawPixel_RETURN_167
D=A
@GLOBAL_CALL
0;JMP
(Screen.drawPixel_RETURN_167)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@Screen.drawConditional$IF_END0 // goto IF_END0
0;JMP
(Screen.drawConditional$IF_FALSE0) // label IF_FALSE0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@Screen.drawPixel // call Screen.drawPixel 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Screen.drawPixel_RETURN_168
D=A
@GLOBAL_CALL
0;JMP
(Screen.drawPixel_RETURN_168)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(Screen.drawConditional$IF_END0) // label IF_END0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Screen.drawLine) // function Screen.drawLine 11
@11
D=A
@R13
M=D
(Screen.drawLine_INIT_LOCALS_LOOP)
@Screen.drawLine_INIT_LOCALS_END
D;JEQ
@0
D=A
@SP
A=M
M=D
@SP
M=M+1
@R13
MD=M-1
@Screen.drawLine_INIT_LOCALS_LOOP
0;JMP
(Screen.drawLine_INIT_LOCALS_END)
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_68 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_68)
@ARG // push argument 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@511 // push constant 511
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_69 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_69)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_70 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_70)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@ARG // push argument 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@255 // push constant 255
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_71 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_71)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Screen.drawLine$IF_TRUE0
D;JNE
@Screen.drawLine$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Screen.drawLine$IF_TRUE0) // label IF_TRUE0
@8 // push constant 8
D=A
@SP
A=M
M=D
@SP
M=M+1
@Sys.error // call Sys.error 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Sys.error_RETURN_169
D=A
@GLOBAL_CALL
0;JMP
(Sys.error_RETURN_169)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(Screen.drawLine$IF_FALSE0) // label IF_FALSE0
@ARG // push argument 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 0 + sub
A=M
D=M
@SP
A=M-1
M=M-D
@Math.abs // call Math.abs 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Math.abs_RETURN_170
D=A
@GLOBAL_CALL
0;JMP
(Math.abs_RETURN_170)
@LCL // pop local 3
D=M
@3
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 1 + sub
A=M+1
D=M
@SP
A=M-1
M=M-D
@Math.abs // call Math.abs 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Math.abs_RETURN_171
D=A
@GLOBAL_CALL
0;JMP
(Math.abs_RETURN_171)
@LCL // pop local 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_72 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_72)
@LCL // pop local 6
D=M
@6
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 6
D=M
@6
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_73 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_73)
@SP // and
AM=M-1
D=M
A=A-1
M=D&M
@LCL // push local 6
D=M
@6
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // not
A=M
A=A-1
M=!M
@ARG // push argument 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_74 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_74)
@SP // and
AM=M-1
D=M
A=A-1
M=D&M
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@SP // if-goto IF_TRUE1
AM=M-1
D=M
@Screen.drawLine$IF_TRUE1
D;JNE
@Screen.drawLine$IF_FALSE1 // goto IF_FALSE1
0;JMP
(Screen.drawLine$IF_TRUE1) // label IF_TRUE1
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 4
D=M
@4
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // pop argument 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 4
D=M
@4
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // pop argument 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 4
D=M
@4
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // pop argument 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 4
D=M
@4
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // pop argument 3
D=M
@3
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Screen.drawLine$IF_FALSE1) // label IF_FALSE1
@LCL // push local 6
D=M
@6
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // if-goto IF_TRUE2
AM=M-1
D=M
@Screen.drawLine$IF_TRUE2
D;JNE
@Screen.drawLine$IF_FALSE2 // goto IF_FALSE2
0;JMP
(Screen.drawLine$IF_TRUE2) // label IF_TRUE2
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 4
D=M
@4
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 3
D=M
@3
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 4
D=M
@4
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 8
D=M
@8
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_75 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_75)
@LCL // pop local 7
D=M
@7
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@Screen.drawLine$IF_END2 // goto IF_END2
0;JMP
(Screen.drawLine$IF_FALSE2) // label IF_FALSE2
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 8
D=M
@8
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_76 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_76)
@LCL // pop local 7
D=M
@7
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Screen.drawLine$IF_END2) // label IF_END2
@SP
A=M
M=1
M=M+1
@SP
M=M+1
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@Math.multiply // call Math.multiply 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.multiply_RETURN_172
D=A
@GLOBAL_CALL
0;JMP
(Math.multiply_RETURN_172)
@LCL // seq 2: push local 3 + sub
D=M
@3
A=D+A
D=M
@SP
A=M-1
M=M-D
@LCL // pop local 5
D=M
@5
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@SP
A=M
M=1
M=M+1
@SP
M=M+1
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@Math.multiply // call Math.multiply 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.multiply_RETURN_173
D=A
@GLOBAL_CALL
0;JMP
(Math.multiply_RETURN_173)
@LCL // pop local 9
D=M
@9
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@SP
A=M
M=1
M=M+1
@SP
M=M+1
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 2: push local 3 + sub
D=M
@3
A=D+A
D=M
@SP
A=M-1
M=M-D
@Math.multiply // call Math.multiply 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.multiply_RETURN_174
D=A
@GLOBAL_CALL
0;JMP
(Math.multiply_RETURN_174)
@LCL // pop local 10
D=M
@10
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 6
D=M
@6
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@Screen.drawConditional // call Screen.drawConditional 3
D=A
@R13
M=D
@3
D=A
@R14
M=D
@Screen.drawConditional_RETURN_175
D=A
@GLOBAL_CALL
0;JMP
(Screen.drawConditional_RETURN_175)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(Screen.drawLine$WHILE_EXP0) // label WHILE_EXP0
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 8
D=M
@8
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_77 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_77)
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END0
AM=M-1
D=M
@Screen.drawLine$WHILE_END0
D;JNE
@LCL // push local 5
D=M
@5
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_78 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_78)
@SP // if-goto IF_TRUE3
AM=M-1
D=M
@Screen.drawLine$IF_TRUE3
D;JNE
@Screen.drawLine$IF_FALSE3 // goto IF_FALSE3
0;JMP
(Screen.drawLine$IF_TRUE3) // label IF_TRUE3
@LCL // push local 5
D=M
@5
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 2: push local 9 + add
D=M
@9
A=D+A
D=M
@SP
A=M-1
M=M+D
@LCL // pop local 5
D=M
@5
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@Screen.drawLine$IF_END3 // goto IF_END3
0;JMP
(Screen.drawLine$IF_FALSE3) // label IF_FALSE3
@LCL // push local 5
D=M
@5
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 2: push local 10 + add
D=M
@10
A=D+A
D=M
@SP
A=M-1
M=M+D
@LCL // pop local 5
D=M
@5
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 7
D=M
@7
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // if-goto IF_TRUE4
AM=M-1
D=M
@Screen.drawLine$IF_TRUE4
D;JNE
@Screen.drawLine$IF_FALSE4 // goto IF_FALSE4
0;JMP
(Screen.drawLine$IF_TRUE4) // label IF_TRUE4
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@Screen.drawLine$IF_END4 // goto IF_END4
0;JMP
(Screen.drawLine$IF_FALSE4) // label IF_FALSE4
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Screen.drawLine$IF_END4) // label IF_END4
(Screen.drawLine$IF_END3) // label IF_END3
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 6
D=M
@6
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@Screen.drawConditional // call Screen.drawConditional 3
D=A
@R13
M=D
@3
D=A
@R14
M=D
@Screen.drawConditional_RETURN_176
D=A
@GLOBAL_CALL
0;JMP
(Screen.drawConditional_RETURN_176)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@Screen.drawLine$WHILE_EXP0 // goto WHILE_EXP0
0;JMP
(Screen.drawLine$WHILE_END0) // label WHILE_END0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Screen.drawRectangle) // function Screen.drawRectangle 9
@9
D=A
@R13
M=D
(Screen.drawRectangle_INIT_LOCALS_LOOP)
@Screen.drawRectangle_INIT_LOCALS_END
D;JEQ
@0
D=A
@SP
A=M
M=D
@SP
M=M+1
@R13
MD=M-1
@Screen.drawRectangle_INIT_LOCALS_LOOP
0;JMP
(Screen.drawRectangle_INIT_LOCALS_END)
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_79 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_79)
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_80 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_80)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_81 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_81)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@ARG // push argument 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@511 // push constant 511
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_82 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_82)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_83 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_83)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@ARG // push argument 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@255 // push constant 255
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_84 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_84)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Screen.drawRectangle$IF_TRUE0
D;JNE
@Screen.drawRectangle$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Screen.drawRectangle$IF_TRUE0) // label IF_TRUE0
@9 // push constant 9
D=A
@SP
A=M
M=D
@SP
M=M+1
@Sys.error // call Sys.error 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Sys.error_RETURN_177
D=A
@GLOBAL_CALL
0;JMP
(Sys.error_RETURN_177)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(Screen.drawRectangle$IF_FALSE0) // label IF_FALSE0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@16 // push constant 16
D=A
@SP
A=M
M=D
@SP
M=M+1
@Math.divide // call Math.divide 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.divide_RETURN_178
D=A
@GLOBAL_CALL
0;JMP
(Math.divide_RETURN_178)
@LCL // pop local 3
D=M
@3
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@16 // push constant 16
D=A
@SP
A=M
M=D
@SP
M=M+1
@Math.multiply // call Math.multiply 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.multiply_RETURN_179
D=A
@GLOBAL_CALL
0;JMP
(Math.multiply_RETURN_179)
@SP // sub
AM=M-1
D=M
A=A-1
M=M-D
@LCL // pop local 7
D=M
@7
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@16 // push constant 16
D=A
@SP
A=M
M=D
@SP
M=M+1
@Math.divide // call Math.divide 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.divide_RETURN_180
D=A
@GLOBAL_CALL
0;JMP
(Math.divide_RETURN_180)
@LCL // pop local 4
D=M
@4
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 4
D=M
@4
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@16 // push constant 16
D=A
@SP
A=M
M=D
@SP
M=M+1
@Math.multiply // call Math.multiply 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.multiply_RETURN_181
D=A
@GLOBAL_CALL
0;JMP
(Math.multiply_RETURN_181)
@SP // sub
AM=M-1
D=M
A=A-1
M=M-D
@LCL // pop local 8
D=M
@8
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 7
D=M
@7
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@Screen.0 // seq 2: push static 0 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@SP // not
A=M
A=A-1
M=!M
@LCL // pop local 6
D=M
@6
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 8
D=M
@8
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@Screen.0 // seq 2: push static 0 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@LCL // pop local 5
D=M
@5
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@32 // push constant 32
D=A
@SP
A=M
M=D
@SP
M=M+1
@Math.multiply // call Math.multiply 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.multiply_RETURN_182
D=A
@GLOBAL_CALL
0;JMP
(Math.multiply_RETURN_182)
@LCL // seq 2: push local 3 + add
D=M
@3
A=D+A
D=M
@SP
A=M-1
M=M+D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 4
D=M
@4
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 2: push local 3 + sub
D=M
@3
A=D+A
D=M
@SP
A=M-1
M=M-D
@LCL // pop local 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Screen.drawRectangle$WHILE_EXP0) // label WHILE_EXP0
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_85 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_85)
@SP // not
A=M
A=A-1
M=!M
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END0
AM=M-1
D=M
@Screen.drawRectangle$WHILE_END0
D;JNE
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 2: push local 2 + add
A=M+1
A=A+1
D=M
@SP
A=M-1
M=M+D
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_EQ_RETURN_86 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_86)
@SP // if-goto IF_TRUE1
AM=M-1
D=M
@Screen.drawRectangle$IF_TRUE1
D;JNE
@Screen.drawRectangle$IF_FALSE1 // goto IF_FALSE1
0;JMP
(Screen.drawRectangle$IF_TRUE1) // label IF_TRUE1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 5
D=M
@5
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 6
D=M
@6
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // and
AM=M-1
D=M
A=A-1
M=D&M
@Screen.updateLocation // call Screen.updateLocation 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Screen.updateLocation_RETURN_183
D=A
@GLOBAL_CALL
0;JMP
(Screen.updateLocation_RETURN_183)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@Screen.drawRectangle$IF_END1 // goto IF_END1
0;JMP
(Screen.drawRectangle$IF_FALSE1) // label IF_FALSE1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 6
D=M
@6
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@Screen.updateLocation // call Screen.updateLocation 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Screen.updateLocation_RETURN_184
D=A
@GLOBAL_CALL
0;JMP
(Screen.updateLocation_RETURN_184)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Screen.drawRectangle$WHILE_EXP1) // label WHILE_EXP1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_87 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_87)
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END1
AM=M-1
D=M
@Screen.drawRectangle$WHILE_END1
D;JNE
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + neg
A=M
M=-1
@SP
M=M+1
@Screen.updateLocation // call Screen.updateLocation 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Screen.updateLocation_RETURN_185
D=A
@GLOBAL_CALL
0;JMP
(Screen.updateLocation_RETURN_185)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@Screen.drawRectangle$WHILE_EXP1 // goto WHILE_EXP1
0;JMP
(Screen.drawRectangle$WHILE_END1) // label WHILE_END1
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 5
D=M
@5
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@Screen.updateLocation // call Screen.updateLocation 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Screen.updateLocation_RETURN_186
D=A
@GLOBAL_CALL
0;JMP
(Screen.updateLocation_RETURN_186)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(Screen.drawRectangle$IF_END1) // label IF_END1
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@ARG // pop argument 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 32 + add
A=M-1
D=M
@32
D=D+A
@SP
A=M-1
M=D
@LCL // seq 2: push local 2 + sub
A=M+1
A=A+1
D=M
@SP
A=M-1
M=M-D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@Screen.drawRectangle$WHILE_EXP0 // goto WHILE_EXP0
0;JMP
(Screen.drawRectangle$WHILE_END0) // label WHILE_END0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Screen.drawHorizontal) // function Screen.drawHorizontal 11
@11
D=A
@R13
M=D
(Screen.drawHorizontal_INIT_LOCALS_LOOP)
@Screen.drawHorizontal_INIT_LOCALS_END
D;JEQ
@0
D=A
@SP
A=M
M=D
@SP
M=M+1
@R13
MD=M-1
@Screen.drawHorizontal_INIT_LOCALS_LOOP
0;JMP
(Screen.drawHorizontal_INIT_LOCALS_END)
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@Math.min // call Math.min 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.min_RETURN_187
D=A
@GLOBAL_CALL
0;JMP
(Math.min_RETURN_187)
@LCL // pop local 7
D=M
@7
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@Math.max // call Math.max 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.max_RETURN_188
D=A
@GLOBAL_CALL
0;JMP
(Math.max_RETURN_188)
@LCL // pop local 8
D=M
@8
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + neg
A=M
M=-1
@SP
M=M+1
@GLOBAL_GT_RETURN_88 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_88)
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@256 // push constant 256
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_89 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_89)
@SP // and
AM=M-1
D=M
A=A-1
M=D&M
@LCL // push local 7
D=M
@7
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@512 // push constant 512
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_90 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_90)
@SP // and
AM=M-1
D=M
A=A-1
M=D&M
@LCL // push local 8
D=M
@8
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + neg
A=M
M=-1
@SP
M=M+1
@GLOBAL_GT_RETURN_91 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_91)
@SP // and
AM=M-1
D=M
A=A-1
M=D&M
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Screen.drawHorizontal$IF_TRUE0
D;JNE
@Screen.drawHorizontal$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Screen.drawHorizontal$IF_TRUE0) // label IF_TRUE0
@LCL // push local 7
D=M
@7
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@Math.max // call Math.max 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.max_RETURN_189
D=A
@GLOBAL_CALL
0;JMP
(Math.max_RETURN_189)
@LCL // pop local 7
D=M
@7
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 8
D=M
@8
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@511 // push constant 511
D=A
@SP
A=M
M=D
@SP
M=M+1
@Math.min // call Math.min 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.min_RETURN_190
D=A
@GLOBAL_CALL
0;JMP
(Math.min_RETURN_190)
@LCL // pop local 8
D=M
@8
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 7
D=M
@7
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@16 // push constant 16
D=A
@SP
A=M
M=D
@SP
M=M+1
@Math.divide // call Math.divide 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.divide_RETURN_191
D=A
@GLOBAL_CALL
0;JMP
(Math.divide_RETURN_191)
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 7
D=M
@7
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@16 // push constant 16
D=A
@SP
A=M
M=D
@SP
M=M+1
@Math.multiply // call Math.multiply 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.multiply_RETURN_192
D=A
@GLOBAL_CALL
0;JMP
(Math.multiply_RETURN_192)
@SP // sub
AM=M-1
D=M
A=A-1
M=M-D
@LCL // pop local 9
D=M
@9
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 8
D=M
@8
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@16 // push constant 16
D=A
@SP
A=M
M=D
@SP
M=M+1
@Math.divide // call Math.divide 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.divide_RETURN_193
D=A
@GLOBAL_CALL
0;JMP
(Math.divide_RETURN_193)
@LCL // pop local 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 8
D=M
@8
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@16 // push constant 16
D=A
@SP
A=M
M=D
@SP
M=M+1
@Math.multiply // call Math.multiply 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.multiply_RETURN_194
D=A
@GLOBAL_CALL
0;JMP
(Math.multiply_RETURN_194)
@SP // sub
AM=M-1
D=M
A=A-1
M=M-D
@LCL // pop local 10
D=M
@10
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 9
D=M
@9
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@Screen.0 // seq 2: push static 0 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@SP // not
A=M
A=A-1
M=!M
@LCL // pop local 5
D=M
@5
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 10
D=M
@10
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@Screen.0 // seq 2: push static 0 + add
D=M
@SP
A=M-1
M=D+M
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@LCL // pop local 4
D=M
@4
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@32 // push constant 32
D=A
@SP
A=M
M=D
@SP
M=M+1
@Math.multiply // call Math.multiply 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.multiply_RETURN_195
D=A
@GLOBAL_CALL
0;JMP
(Math.multiply_RETURN_195)
@LCL // seq 2: push local 1 + add
A=M+1
D=M
@SP
A=M-1
M=M+D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 2: push local 1 + sub
A=M+1
D=M
@SP
A=M-1
M=M-D
@LCL // pop local 6
D=M
@6
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 2: push local 6 + add
D=M
@6
A=D+A
D=M
@SP
A=M-1
M=M+D
@LCL // pop local 3
D=M
@3
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 6
D=M
@6
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_EQ_RETURN_92 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_92)
@SP // if-goto IF_TRUE1
AM=M-1
D=M
@Screen.drawHorizontal$IF_TRUE1
D;JNE
@Screen.drawHorizontal$IF_FALSE1 // goto IF_FALSE1
0;JMP
(Screen.drawHorizontal$IF_TRUE1) // label IF_TRUE1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 4
D=M
@4
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 5
D=M
@5
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // and
AM=M-1
D=M
A=A-1
M=D&M
@Screen.updateLocation // call Screen.updateLocation 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Screen.updateLocation_RETURN_196
D=A
@GLOBAL_CALL
0;JMP
(Screen.updateLocation_RETURN_196)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@Screen.drawHorizontal$IF_END1 // goto IF_END1
0;JMP
(Screen.drawHorizontal$IF_FALSE1) // label IF_FALSE1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 5
D=M
@5
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@Screen.updateLocation // call Screen.updateLocation 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Screen.updateLocation_RETURN_197
D=A
@GLOBAL_CALL
0;JMP
(Screen.updateLocation_RETURN_197)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Screen.drawHorizontal$WHILE_EXP0) // label WHILE_EXP0
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_93 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_93)
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END0
AM=M-1
D=M
@Screen.drawHorizontal$WHILE_END0
D;JNE
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + neg
A=M
M=-1
@SP
M=M+1
@Screen.updateLocation // call Screen.updateLocation 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Screen.updateLocation_RETURN_198
D=A
@GLOBAL_CALL
0;JMP
(Screen.updateLocation_RETURN_198)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@Screen.drawHorizontal$WHILE_EXP0 // goto WHILE_EXP0
0;JMP
(Screen.drawHorizontal$WHILE_END0) // label WHILE_END0
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 4
D=M
@4
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@Screen.updateLocation // call Screen.updateLocation 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Screen.updateLocation_RETURN_199
D=A
@GLOBAL_CALL
0;JMP
(Screen.updateLocation_RETURN_199)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(Screen.drawHorizontal$IF_END1) // label IF_END1
(Screen.drawHorizontal$IF_FALSE0) // label IF_FALSE0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Screen.drawSymetric) // function Screen.drawSymetric 0
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 3 + sub
D=M
@3
A=D+A
D=M
@SP
A=M-1
M=M-D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 2 + add
A=M+1
A=A+1
D=M
@SP
A=M-1
M=M+D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 2 + sub
A=M+1
A=A+1
D=M
@SP
A=M-1
M=M-D
@Screen.drawHorizontal // call Screen.drawHorizontal 3
D=A
@R13
M=D
@3
D=A
@R14
M=D
@Screen.drawHorizontal_RETURN_200
D=A
@GLOBAL_CALL
0;JMP
(Screen.drawHorizontal_RETURN_200)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 3 + add
D=M
@3
A=D+A
D=M
@SP
A=M-1
M=M+D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 2 + add
A=M+1
A=A+1
D=M
@SP
A=M-1
M=M+D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 2 + sub
A=M+1
A=A+1
D=M
@SP
A=M-1
M=M-D
@Screen.drawHorizontal // call Screen.drawHorizontal 3
D=A
@R13
M=D
@3
D=A
@R14
M=D
@Screen.drawHorizontal_RETURN_201
D=A
@GLOBAL_CALL
0;JMP
(Screen.drawHorizontal_RETURN_201)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 2 + sub
A=M+1
A=A+1
D=M
@SP
A=M-1
M=M-D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 3 + sub
D=M
@3
A=D+A
D=M
@SP
A=M-1
M=M-D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 3 + add
D=M
@3
A=D+A
D=M
@SP
A=M-1
M=M+D
@Screen.drawHorizontal // call Screen.drawHorizontal 3
D=A
@R13
M=D
@3
D=A
@R14
M=D
@Screen.drawHorizontal_RETURN_202
D=A
@GLOBAL_CALL
0;JMP
(Screen.drawHorizontal_RETURN_202)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 2 + add
A=M+1
A=A+1
D=M
@SP
A=M-1
M=M+D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 3 + sub
D=M
@3
A=D+A
D=M
@SP
A=M-1
M=M-D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 3 + add
D=M
@3
A=D+A
D=M
@SP
A=M-1
M=M+D
@Screen.drawHorizontal // call Screen.drawHorizontal 3
D=A
@R13
M=D
@3
D=A
@R14
M=D
@Screen.drawHorizontal_RETURN_203
D=A
@GLOBAL_CALL
0;JMP
(Screen.drawHorizontal_RETURN_203)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Screen.drawCircle) // function Screen.drawCircle 3
@0
D=A
@SP
A=M
M=D
A=A+1
M=D
A=A+1
M=D
D=A+1
@SP
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_94 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_94)
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@511 // push constant 511
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_95 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_95)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_96 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_96)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@255 // push constant 255
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_97 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_97)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Screen.drawCircle$IF_TRUE0
D;JNE
@Screen.drawCircle$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Screen.drawCircle$IF_TRUE0) // label IF_TRUE0
@12 // push constant 12
D=A
@SP
A=M
M=D
@SP
M=M+1
@Sys.error // call Sys.error 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Sys.error_RETURN_204
D=A
@GLOBAL_CALL
0;JMP
(Sys.error_RETURN_204)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(Screen.drawCircle$IF_FALSE0) // label IF_FALSE0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 2 + sub
A=M+1
A=A+1
D=M
@SP
A=M-1
M=M-D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_98 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_98)
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 2 + add
A=M+1
A=A+1
D=M
@SP
A=M-1
M=M+D
@511 // push constant 511
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_99 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_99)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 2 + sub
A=M+1
A=A+1
D=M
@SP
A=M-1
M=M-D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_100 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_100)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // seq 2: push argument 2 + add
A=M+1
A=A+1
D=M
@SP
A=M-1
M=M+D
@255 // push constant 255
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_101 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_101)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@SP // if-goto IF_TRUE1
AM=M-1
D=M
@Screen.drawCircle$IF_TRUE1
D;JNE
@Screen.drawCircle$IF_FALSE1 // goto IF_FALSE1
0;JMP
(Screen.drawCircle$IF_TRUE1) // label IF_TRUE1
@13 // push constant 13
D=A
@SP
A=M
M=D
@SP
M=M+1
@Sys.error // call Sys.error 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Sys.error_RETURN_205
D=A
@GLOBAL_CALL
0;JMP
(Sys.error_RETURN_205)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(Screen.drawCircle$IF_FALSE1) // label IF_FALSE1
@ARG // push argument 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@SP // push constant 1
A=M
M=1
@SP
M=M+1
@ARG // seq 2: push argument 2 + sub
A=M+1
A=A+1
D=M
@SP
A=M-1
M=M-D
@LCL // pop local 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@Screen.drawSymetric // call Screen.drawSymetric 4
D=A
@R13
M=D
@4
D=A
@R14
M=D
@Screen.drawSymetric_RETURN_206
D=A
@GLOBAL_CALL
0;JMP
(Screen.drawSymetric_RETURN_206)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(Screen.drawCircle$WHILE_EXP0) // label WHILE_EXP0
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_102 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_102)
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END0
AM=M-1
D=M
@Screen.drawCircle$WHILE_END0
D;JNE
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_103 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_103)
@SP // if-goto IF_TRUE2
AM=M-1
D=M
@Screen.drawCircle$IF_TRUE2
D;JNE
@Screen.drawCircle$IF_FALSE2 // goto IF_FALSE2
0;JMP
(Screen.drawCircle$IF_TRUE2) // label IF_TRUE2
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
A=M
M=1
M=M+1
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Math.multiply // call Math.multiply 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.multiply_RETURN_207
D=A
@GLOBAL_CALL
0;JMP
(Math.multiply_RETURN_207)
@SP // add
AM=M-1
D=M
A=A-1
M=D+M
@SP // seq 2: push constant 3 + add
A=M-1
D=M
@3
D=D+A
@SP
A=M-1
M=D
@LCL // pop local 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@Screen.drawCircle$IF_END2 // goto IF_END2
0;JMP
(Screen.drawCircle$IF_FALSE2) // label IF_FALSE2
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
A=M
M=1
M=M+1
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 2: push local 1 + sub
A=M+1
D=M
@SP
A=M-1
M=M-D
@Math.multiply // call Math.multiply 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.multiply_RETURN_208
D=A
@GLOBAL_CALL
0;JMP
(Math.multiply_RETURN_208)
@SP // add
AM=M-1
D=M
A=A-1
M=D+M
@SP // seq 2: push constant 5 + add
A=M-1
D=M
@5
D=D+A
@SP
A=M-1
M=D
@LCL // pop local 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Screen.drawCircle$IF_END2) // label IF_END2
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@Screen.drawSymetric // call Screen.drawSymetric 4
D=A
@R13
M=D
@4
D=A
@R14
M=D
@Screen.drawSymetric_RETURN_209
D=A
@GLOBAL_CALL
0;JMP
(Screen.drawSymetric_RETURN_209)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@Screen.drawCircle$WHILE_EXP0 // goto WHILE_EXP0
0;JMP
(Screen.drawCircle$WHILE_END0) // label WHILE_END0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
// ............................................
// module: String
// from file: String.vm
// ............................................
(String.new) // function String.new 0
@3 // push constant 3
D=A
@SP
A=M
M=D
@SP
M=M+1
@Memory.alloc // call Memory.alloc 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Memory.alloc_RETURN_210
D=A
@GLOBAL_CALL
0;JMP
(Memory.alloc_RETURN_210)
@SP // pop pointer 0
AM=M-1
D=M
@R3
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_104 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_104)
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@String.new$IF_TRUE0
D;JNE
@String.new$IF_FALSE0 // goto IF_FALSE0
0;JMP
(String.new$IF_TRUE0) // label IF_TRUE0
@14 // push constant 14
D=A
@SP
A=M
M=D
@SP
M=M+1
@Sys.error // call Sys.error 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Sys.error_RETURN_211
D=A
@GLOBAL_CALL
0;JMP
(Sys.error_RETURN_211)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(String.new$IF_FALSE0) // label IF_FALSE0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_GT_RETURN_105 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_105)
@SP // if-goto IF_TRUE1
AM=M-1
D=M
@String.new$IF_TRUE1
D;JNE
@String.new$IF_FALSE1 // goto IF_FALSE1
0;JMP
(String.new$IF_TRUE1) // label IF_TRUE1
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Array.new // call Array.new 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Array.new_RETURN_212
D=A
@GLOBAL_CALL
0;JMP
(Array.new_RETURN_212)
@THIS // pop this 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(String.new$IF_FALSE1) // label IF_FALSE1
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS // pop this 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@THIS // pop this 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@R3 // push pointer 0
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(String.dispose) // function String.dispose 0
@ARG // seq 2: push argument 0 + pop pointer 0
A=M
D=M
@R3
M=D
@THIS // push this 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_GT_RETURN_106 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_106)
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@String.dispose$IF_TRUE0
D;JNE
@String.dispose$IF_FALSE0 // goto IF_FALSE0
0;JMP
(String.dispose$IF_TRUE0) // label IF_TRUE0
@THIS // push this 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@Array.dispose // call Array.dispose 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Array.dispose_RETURN_213
D=A
@GLOBAL_CALL
0;JMP
(Array.dispose_RETURN_213)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(String.dispose$IF_FALSE0) // label IF_FALSE0
@R3 // push pointer 0
D=M
@SP
A=M
M=D
@SP
M=M+1
@Memory.deAlloc // call Memory.deAlloc 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Memory.deAlloc_RETURN_214
D=A
@GLOBAL_CALL
0;JMP
(Memory.deAlloc_RETURN_214)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(String.length) // function String.length 0
@ARG // seq 2: push argument 0 + pop pointer 0
A=M
D=M
@R3
M=D
@THIS // push this 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(String.charAt) // function String.charAt 0
@ARG // seq 2: push argument 0 + pop pointer 0
A=M
D=M
@R3
M=D
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_107 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_107)
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS // push this 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_108 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_108)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS // push this 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_EQ_RETURN_109 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_109)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@String.charAt$IF_TRUE0
D;JNE
@String.charAt$IF_FALSE0 // goto IF_FALSE0
0;JMP
(String.charAt$IF_TRUE0) // label IF_TRUE0
@15 // push constant 15
D=A
@SP
A=M
M=D
@SP
M=M+1
@Sys.error // call Sys.error 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Sys.error_RETURN_215
D=A
@GLOBAL_CALL
0;JMP
(Sys.error_RETURN_215)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(String.charAt$IF_FALSE0) // label IF_FALSE0
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS // seq 2: push this 1 + add
A=M+1
D=M
@SP
A=M-1
M=M+D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(String.setCharAt) // function String.setCharAt 0
@ARG // seq 2: push argument 0 + pop pointer 0
A=M
D=M
@R3
M=D
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_110 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_110)
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS // push this 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_111 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_111)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS // push this 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_EQ_RETURN_112 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_112)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@String.setCharAt$IF_TRUE0
D;JNE
@String.setCharAt$IF_FALSE0 // goto IF_FALSE0
0;JMP
(String.setCharAt$IF_TRUE0) // label IF_TRUE0
@16 // push constant 16
D=A
@SP
A=M
M=D
@SP
M=M+1
@Sys.error // call Sys.error 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Sys.error_RETURN_216
D=A
@GLOBAL_CALL
0;JMP
(Sys.error_RETURN_216)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(String.setCharAt$IF_FALSE0) // label IF_FALSE0
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS // seq 2: push this 1 + add
A=M+1
D=M
@SP
A=M-1
M=M+D
@ARG // push argument 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(String.appendChar) // function String.appendChar 0
@ARG // seq 2: push argument 0 + pop pointer 0
A=M
D=M
@R3
M=D
@THIS // push this 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS // push this 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_EQ_RETURN_113 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_113)
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@String.appendChar$IF_TRUE0
D;JNE
@String.appendChar$IF_FALSE0 // goto IF_FALSE0
0;JMP
(String.appendChar$IF_TRUE0) // label IF_TRUE0
@17 // push constant 17
D=A
@SP
A=M
M=D
@SP
M=M+1
@Sys.error // call Sys.error 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Sys.error_RETURN_217
D=A
@GLOBAL_CALL
0;JMP
(Sys.error_RETURN_217)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(String.appendChar$IF_FALSE0) // label IF_FALSE0
@THIS // push this 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS // seq 2: push this 1 + add
A=M+1
D=M
@SP
A=M-1
M=M+D
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@THIS // push this 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@THIS // pop this 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@R3 // push pointer 0
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(String.eraseLastChar) // function String.eraseLastChar 0
@ARG // seq 2: push argument 0 + pop pointer 0
A=M
D=M
@R3
M=D
@THIS // push this 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_EQ_RETURN_114 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_114)
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@String.eraseLastChar$IF_TRUE0
D;JNE
@String.eraseLastChar$IF_FALSE0 // goto IF_FALSE0
0;JMP
(String.eraseLastChar$IF_TRUE0) // label IF_TRUE0
@18 // push constant 18
D=A
@SP
A=M
M=D
@SP
M=M+1
@Sys.error // call Sys.error 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Sys.error_RETURN_218
D=A
@GLOBAL_CALL
0;JMP
(Sys.error_RETURN_218)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(String.eraseLastChar$IF_FALSE0) // label IF_FALSE0
@THIS // push this 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@THIS // pop this 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(String.intValue) // function String.intValue 5
@0
D=A
@SP
A=M
M=D
A=A+1
M=D
A=A+1
M=D
A=A+1
M=D
A=A+1
M=D
D=A+1
@SP
M=D
@ARG // seq 2: push argument 0 + pop pointer 0
A=M
D=M
@R3
M=D
@THIS // push this 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_EQ_RETURN_115 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_115)
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@String.intValue$IF_TRUE0
D;JNE
@String.intValue$IF_FALSE0 // goto IF_FALSE0
0;JMP
(String.intValue$IF_TRUE0) // label IF_TRUE0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(String.intValue$IF_FALSE0) // label IF_FALSE0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // not
A=M
A=A-1
M=!M
@LCL // pop local 3
D=M
@3
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@THIS // seq 2: push this 1 + add
A=M+1
D=M
@SP
A=M-1
M=M+D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@45 // push constant 45
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_EQ_RETURN_116 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_116)
@SP // if-goto IF_TRUE1
AM=M-1
D=M
@String.intValue$IF_TRUE1
D;JNE
@String.intValue$IF_FALSE1 // goto IF_FALSE1
0;JMP
(String.intValue$IF_TRUE1) // label IF_TRUE1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // not
A=M
A=A-1
M=!M
@LCL // pop local 4
D=M
@4
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@SP // push constant 1
A=M
M=1
@SP
M=M+1
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(String.intValue$IF_FALSE1) // label IF_FALSE1
(String.intValue$WHILE_EXP0) // label WHILE_EXP0
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS // push this 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_117 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_117)
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // and
AM=M-1
D=M
A=A-1
M=D&M
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END0
AM=M-1
D=M
@String.intValue$WHILE_END0
D;JNE
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS // seq 2: push this 1 + add
A=M+1
D=M
@SP
A=M-1
M=M+D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 48 + sub
A=M-1
D=M
@48
D=D-A
@SP
A=M-1
M=D
@LCL // pop local 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_118 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_118)
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@9 // push constant 9
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_GT_RETURN_119 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_119)
@SP // or
AM=M-1
D=M
A=A-1
M=D|M
@SP // not
A=M
A=A-1
M=!M
@LCL // pop local 3
D=M
@3
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // if-goto IF_TRUE2
AM=M-1
D=M
@String.intValue$IF_TRUE2
D;JNE
@String.intValue$IF_FALSE2 // goto IF_FALSE2
0;JMP
(String.intValue$IF_TRUE2) // label IF_TRUE2
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@10 // push constant 10
D=A
@SP
A=M
M=D
@SP
M=M+1
@Math.multiply // call Math.multiply 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.multiply_RETURN_219
D=A
@GLOBAL_CALL
0;JMP
(Math.multiply_RETURN_219)
@LCL // seq 2: push local 2 + add
A=M+1
A=A+1
D=M
@SP
A=M-1
M=M+D
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(String.intValue$IF_FALSE2) // label IF_FALSE2
@String.intValue$WHILE_EXP0 // goto WHILE_EXP0
0;JMP
(String.intValue$WHILE_END0) // label WHILE_END0
@LCL // push local 4
D=M
@4
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // if-goto IF_TRUE3
AM=M-1
D=M
@String.intValue$IF_TRUE3
D;JNE
@String.intValue$IF_FALSE3 // goto IF_FALSE3
0;JMP
(String.intValue$IF_TRUE3) // label IF_TRUE3
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // neg
A=M
A=A-1
M=-M
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(String.intValue$IF_FALSE3) // label IF_FALSE3
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(String.setInt) // function String.setInt 4
@0
D=A
@SP
A=M
M=D
A=A+1
M=D
A=A+1
M=D
A=A+1
M=D
D=A+1
@SP
M=D
@ARG // seq 2: push argument 0 + pop pointer 0
A=M
D=M
@R3
M=D
@THIS // push this 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_EQ_RETURN_120 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_120)
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@String.setInt$IF_TRUE0
D;JNE
@String.setInt$IF_FALSE0 // goto IF_FALSE0
0;JMP
(String.setInt$IF_TRUE0) // label IF_TRUE0
@19 // push constant 19
D=A
@SP
A=M
M=D
@SP
M=M+1
@Sys.error // call Sys.error 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Sys.error_RETURN_220
D=A
@GLOBAL_CALL
0;JMP
(Sys.error_RETURN_220)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(String.setInt$IF_FALSE0) // label IF_FALSE0
@6 // push constant 6
D=A
@SP
A=M
M=D
@SP
M=M+1
@Array.new // call Array.new 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Array.new_RETURN_221
D=A
@GLOBAL_CALL
0;JMP
(Array.new_RETURN_221)
@LCL // pop local 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_121 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_121)
@SP // if-goto IF_TRUE1
AM=M-1
D=M
@String.setInt$IF_TRUE1
D;JNE
@String.setInt$IF_FALSE1 // goto IF_FALSE1
0;JMP
(String.setInt$IF_TRUE1) // label IF_TRUE1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // not
A=M
A=A-1
M=!M
@LCL // pop local 3
D=M
@3
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // neg
A=M
A=A-1
M=-M
@ARG // pop argument 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(String.setInt$IF_FALSE1) // label IF_FALSE1
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(String.setInt$WHILE_EXP0) // label WHILE_EXP0
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_GT_RETURN_122 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_122)
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END0
AM=M-1
D=M
@String.setInt$WHILE_END0
D;JNE
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@10 // push constant 10
D=A
@SP
A=M
M=D
@SP
M=M+1
@Math.divide // call Math.divide 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.divide_RETURN_222
D=A
@GLOBAL_CALL
0;JMP
(Math.divide_RETURN_222)
@LCL // pop local 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 2: push local 2 + add
A=M+1
A=A+1
D=M
@SP
A=M-1
M=M+D
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@10 // push constant 10
D=A
@SP
A=M
M=D
@SP
M=M+1
@Math.multiply // call Math.multiply 2
D=A
@R13
M=D
@2
D=A
@R14
M=D
@Math.multiply_RETURN_223
D=A
@GLOBAL_CALL
0;JMP
(Math.multiply_RETURN_223)
@SP // sub
AM=M-1
D=M
A=A-1
M=M-D
@SP // add
AM=M-1
D=M
A=A-1
M=D+M
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@LCL // push local 1
A=M+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@ARG // pop argument 1
D=M
@1
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@String.setInt$WHILE_EXP0 // goto WHILE_EXP0
0;JMP
(String.setInt$WHILE_END0) // label WHILE_END0
@LCL // push local 3
D=M
@3
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // if-goto IF_TRUE2
AM=M-1
D=M
@String.setInt$IF_TRUE2
D;JNE
@String.setInt$IF_FALSE2 // goto IF_FALSE2
0;JMP
(String.setInt$IF_TRUE2) // label IF_TRUE2
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // seq 2: push local 2 + add
A=M+1
A=A+1
D=M
@SP
A=M-1
M=M+D
@45 // push constant 45
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(String.setInt$IF_FALSE2) // label IF_FALSE2
@THIS // push this 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_123 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_123)
@SP // if-goto IF_TRUE3
AM=M-1
D=M
@String.setInt$IF_TRUE3
D;JNE
@String.setInt$IF_FALSE3 // goto IF_FALSE3
0;JMP
(String.setInt$IF_TRUE3) // label IF_TRUE3
@19 // push constant 19
D=A
@SP
A=M
M=D
@SP
M=M+1
@Sys.error // call Sys.error 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Sys.error_RETURN_224
D=A
@GLOBAL_CALL
0;JMP
(Sys.error_RETURN_224)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(String.setInt$IF_FALSE3) // label IF_FALSE3
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_EQ_RETURN_124 // eq
D=A
@GLOBAL_EQ
0;JMP
(GLOBAL_EQ_RETURN_124)
@SP // if-goto IF_TRUE4
AM=M-1
D=M
@String.setInt$IF_TRUE4
D;JNE
@String.setInt$IF_FALSE4 // goto IF_FALSE4
0;JMP
(String.setInt$IF_TRUE4) // label IF_TRUE4
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@THIS // seq 2: push this 1 + add
A=M+1
D=M
@SP
A=M-1
M=M+D
@48 // push constant 48
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@SP // push constant 1
A=M
M=1
@SP
M=M+1
@THIS // pop this 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@String.setInt$IF_END4 // goto IF_END4
0;JMP
(String.setInt$IF_FALSE4) // label IF_FALSE4
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@THIS // pop this 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(String.setInt$WHILE_EXP1) // label WHILE_EXP1
@THIS // push this 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_LT_RETURN_125 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_125)
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END1
AM=M-1
D=M
@String.setInt$WHILE_END1
D;JNE
@THIS // push this 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS // seq 2: push this 1 + add
A=M+1
D=M
@SP
A=M-1
M=M+D
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@THIS // push this 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@SP // sub
AM=M-1
D=M
A=A-1
M=M-D
@LCL // seq 2: push local 2 + add
A=M+1
A=A+1
D=M
@SP
A=M-1
M=M+D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@THAT // push that 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // pop pointer 1
AM=M-1
D=M
@R4
M=D
@R5 // seq 2: push temp 0 + pop that 0
D=M
@THAT
A=M
M=D
@THIS // push this 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + add
A=M-1
D=M+1
M=D
@THIS // pop this 2
D=M
@2
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@String.setInt$WHILE_EXP1 // goto WHILE_EXP1
0;JMP
(String.setInt$WHILE_END1) // label WHILE_END1
(String.setInt$IF_END4) // label IF_END4
@LCL // push local 2
A=M+1
A=A+1
D=M
@SP
A=M
M=D
@SP
M=M+1
@Array.dispose // call Array.dispose 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Array.dispose_RETURN_225
D=A
@GLOBAL_CALL
0;JMP
(Array.dispose_RETURN_225)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(String.newLine) // function String.newLine 0
@128 // push constant 128
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(String.backSpace) // function String.backSpace 0
@129 // push constant 129
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(String.doubleQuote) // function String.doubleQuote 0
@34 // push constant 34
D=A
@SP
A=M
M=D
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
// ............................................
// module: Sys
// from file: Sys.vm
// ............................................
(Sys.init) // function Sys.init 0
@Memory.init // call Memory.init 0
D=A
@R13
M=D
@0
D=A
@R14
M=D
@Memory.init_RETURN_226
D=A
@GLOBAL_CALL
0;JMP
(Memory.init_RETURN_226)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@Math.init // call Math.init 0
D=A
@R13
M=D
@0
D=A
@R14
M=D
@Math.init_RETURN_227
D=A
@GLOBAL_CALL
0;JMP
(Math.init_RETURN_227)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@Screen.init // call Screen.init 0
D=A
@R13
M=D
@0
D=A
@R14
M=D
@Screen.init_RETURN_228
D=A
@GLOBAL_CALL
0;JMP
(Screen.init_RETURN_228)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@Output.init // call Output.init 0
D=A
@R13
M=D
@0
D=A
@R14
M=D
@Output.init_RETURN_229
D=A
@GLOBAL_CALL
0;JMP
(Output.init_RETURN_229)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@Keyboard.init // call Keyboard.init 0
D=A
@R13
M=D
@0
D=A
@R14
M=D
@Keyboard.init_RETURN_230
D=A
@GLOBAL_CALL
0;JMP
(Keyboard.init_RETURN_230)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@Main.main // call Main.main 0
D=A
@R13
M=D
@0
D=A
@R14
M=D
@Main.main_RETURN_231
D=A
@GLOBAL_CALL
0;JMP
(Main.main_RETURN_231)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@Sys.halt // call Sys.halt 0
D=A
@R13
M=D
@0
D=A
@R14
M=D
@Sys.halt_RETURN_232
D=A
@GLOBAL_CALL
0;JMP
(Sys.halt_RETURN_232)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Sys.halt) // function Sys.halt 0
(Sys.halt$WHILE_EXP0) // label WHILE_EXP0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@SP // not
A=M
A=A-1
M=!M
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END0
AM=M-1
D=M
@Sys.halt$WHILE_END0
D;JNE
@Sys.halt$WHILE_EXP0 // goto WHILE_EXP0
0;JMP
(Sys.halt$WHILE_END0) // label WHILE_END0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Sys.wait) // function Sys.wait 1
@0
D=A
@SP
A=M
M=D
@SP
M=M+1
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_LT_RETURN_126 // lt
D=A
@GLOBAL_LT
0;JMP
(GLOBAL_LT_RETURN_126)
@SP // if-goto IF_TRUE0
AM=M-1
D=M
@Sys.wait$IF_TRUE0
D;JNE
@Sys.wait$IF_FALSE0 // goto IF_FALSE0
0;JMP
(Sys.wait$IF_TRUE0) // label IF_TRUE0
@SP // push constant 1
A=M
M=1
@SP
M=M+1
@Sys.error // call Sys.error 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Sys.error_RETURN_233
D=A
@GLOBAL_CALL
0;JMP
(Sys.error_RETURN_233)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
(Sys.wait$IF_FALSE0) // label IF_FALSE0
(Sys.wait$WHILE_EXP0) // label WHILE_EXP0
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_GT_RETURN_127 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_127)
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END0
AM=M-1
D=M
@Sys.wait$WHILE_END0
D;JNE
@50 // push constant 50
D=A
@SP
A=M
M=D
@SP
M=M+1
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
(Sys.wait$WHILE_EXP1) // label WHILE_EXP1
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_GT_RETURN_128 // gt
D=A
@GLOBAL_GT
0;JMP
(GLOBAL_GT_RETURN_128)
@SP // not
A=M
A=A-1
M=!M
@SP // if-goto WHILE_END1
AM=M-1
D=M
@Sys.wait$WHILE_END1
D;JNE
@LCL // push local 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@LCL // pop local 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@Sys.wait$WHILE_EXP1 // goto WHILE_EXP1
0;JMP
(Sys.wait$WHILE_END1) // label WHILE_END1
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP // seq 2: push constant 1 + sub
A=M-1
D=M-1
M=D
@ARG // pop argument 0
D=M
@0
D=D+A
@R13
M=D
@SP
AM=M-1
D=M
@R13
A=M
M=D
@Sys.wait$WHILE_EXP0 // goto WHILE_EXP0
0;JMP
(Sys.wait$WHILE_END0) // label WHILE_END0
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
(Sys.error) // function Sys.error 0
@69 // push constant 69
D=A
@SP
A=M
M=D
@SP
M=M+1
@Output.printChar // call Output.printChar 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Output.printChar_RETURN_234
D=A
@GLOBAL_CALL
0;JMP
(Output.printChar_RETURN_234)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@82 // push constant 82
D=A
@SP
A=M
M=D
@SP
M=M+1
@Output.printChar // call Output.printChar 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Output.printChar_RETURN_235
D=A
@GLOBAL_CALL
0;JMP
(Output.printChar_RETURN_235)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@82 // push constant 82
D=A
@SP
A=M
M=D
@SP
M=M+1
@Output.printChar // call Output.printChar 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Output.printChar_RETURN_236
D=A
@GLOBAL_CALL
0;JMP
(Output.printChar_RETURN_236)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@ARG // push argument 0
A=M
D=M
@SP
A=M
M=D
@SP
M=M+1
@Output.printInt // call Output.printInt 1
D=A
@R13
M=D
@1
D=A
@R14
M=D
@Output.printInt_RETURN_237
D=A
@GLOBAL_CALL
0;JMP
(Output.printInt_RETURN_237)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@Sys.halt // call Sys.halt 0
D=A
@R13
M=D
@0
D=A
@R14
M=D
@Sys.halt_RETURN_238
D=A
@GLOBAL_CALL
0;JMP
(Sys.halt_RETURN_238)
@SP // pop temp 0
AM=M-1
D=M
@R5
M=D
@SP // push constant 0
A=M
M=0
@SP
M=M+1
@GLOBAL_RETURN // return
0;JMP
| 9.882431 | 64 | 0.554712 |
29a2b582a7742cf4c7efc0209ebd9701321f23e3 | 2,154 | asm | Assembly | programs/oeis/048/A048512.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/048/A048512.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/048/A048512.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A048512: a(n) = T(7,n), array T given by A048505.
; 1,65,210,536,1264,2880,6448,14288,31440,68816,149968,325584,704464,1519568,3268560,7012304,15007696,32047056,68288464,145227728,308281296,653262800,1382023120,2919235536,6157238224,12968787920,27279753168,57310969808,120259084240,252060893136,527744106448,1103806595024,2306397437904,4814658338768,10041633538000,20925080666064,43568148250576,90640989814736,188428805210064,391426139488208,812539092926416,1685551325380560,3494247953072080,7239184557277136,14988542509842384,31015023996305360,64141110317940688,132574714030718928,273875152339468240,565483228211707856,1166995253442379728,2407174000829530064,4962966789362286544,10227674753758396368,21067839056839180240,43378671610832617424,89279359012992712656,183674807202678308816,377725907946818240464,776492633352711438288,1595643362375876214736,3277755837597265952720,6730755743894772645840,13816611311208454160336,28352645641291580833744,58162584064406216245200,119276647180605960749008,244530039441093816221648,501161142994541098303440,1026819562118968481152976,2103223972308068237049808,4306798232377116434890704,8816658223517627613970384,18044162331044914361532368,36919461163074886280675280,75520084794051366257426384,154440273455768877068713936,315756312510595957568569296,645415271946760150646259664,1318938069199560429604437968,2694695651921008430420066256,5504239256705406632437219280,11240592270776822066418024400,22950247759564120252622045136,46848293361706109778213732304,95611525221681792169162047440,195091613066130397697383858128,397997722630249758380068437968,811779180761388115265100709840,1655435317534374772608853868496,3375243517111589319512462196688,6880470738348143567889332436944,14023384765024787754057279209424,28576607866863718265771383586768,58222795927670005089055610503120,118604559283853713377535293652944,241566667505991965322715504574416,491927661051067272118314387636176,1001602430505329755857582620147664,2039015990467106992307447105847248
mov $2,13
add $2,$0
mov $3,$0
mov $4,$2
add $2,1
mul $4,$2
sub $2,1
add $3,$2
add $4,1
add $3,$4
lpb $0
sub $0,1
mul $3,2
lpe
add $0,$3
sub $0,195
div $0,4
add $0,1
| 97.909091 | 1,931 | 0.906221 |
4b5583fc0a2032807a287dc9448b3df5d52963d4 | 550 | asm | Assembly | programs/oeis/165/A165900.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/165/A165900.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/165/A165900.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A165900: Values of Fibonacci polynomial n^2 - n - 1.
; -1,-1,1,5,11,19,29,41,55,71,89,109,131,155,181,209,239,271,305,341,379,419,461,505,551,599,649,701,755,811,869,929,991,1055,1121,1189,1259,1331,1405,1481,1559,1639,1721,1805,1891,1979,2069,2161,2255,2351,2449,2549,2651,2755,2861,2969,3079,3191,3305,3421,3539,3659,3781,3905,4031,4159,4289,4421,4555,4691,4829,4969,5111,5255,5401,5549,5699,5851,6005,6161,6319,6479,6641,6805,6971,7139,7309,7481,7655,7831,8009,8189,8371,8555,8741,8929,9119,9311,9505,9701
mov $1,$0
sub $1,1
mul $0,$1
sub $0,1
| 68.75 | 455 | 0.745455 |
1aa243f917d8df9c91384e3c4ad28c5bf75e4905 | 6,406 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1404.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1404.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1404.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 %r13
push %r14
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x7a50, %rdx
nop
nop
and $30582, %r13
mov (%rdx), %ebp
nop
inc %rbp
lea addresses_UC_ht+0x13198, %rsi
lea addresses_WC_ht+0xa102, %rdi
nop
nop
nop
dec %r14
mov $61, %rcx
rep movsq
nop
nop
nop
nop
add $60377, %rsi
lea addresses_normal_ht+0x15e48, %rsi
lea addresses_A_ht+0x78b8, %rdi
nop
nop
dec %rbp
mov $100, %rcx
rep movsw
nop
nop
nop
nop
sub %rdi, %rdi
lea addresses_WC_ht+0xb8d8, %rcx
nop
nop
nop
nop
nop
sub $64915, %r13
and $0xffffffffffffffc0, %rcx
vmovntdqa (%rcx), %ymm3
vextracti128 $0, %ymm3, %xmm3
vpextrq $0, %xmm3, %rbp
nop
nop
cmp %r14, %r14
lea addresses_WT_ht+0x4f44, %r14
nop
nop
nop
xor $59140, %rcx
movw $0x6162, (%r14)
nop
nop
nop
nop
nop
xor %rbp, %rbp
lea addresses_UC_ht+0x1ed08, %r13
nop
nop
nop
nop
nop
and $64005, %rdx
movl $0x61626364, (%r13)
nop
cmp %rdx, %rdx
lea addresses_WC_ht+0x9250, %rsi
lea addresses_UC_ht+0x1549c, %rdi
nop
nop
nop
nop
nop
add $60360, %r11
mov $5, %rcx
rep movsq
cmp $45084, %rsi
lea addresses_normal_ht+0x13948, %rsi
lea addresses_D_ht+0xbe48, %rdi
nop
xor $62749, %rbp
mov $30, %rcx
rep movsl
nop
nop
nop
nop
nop
xor %rdi, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r14
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r13
push %r14
push %rbp
push %rcx
push %rdx
push %rsi
// Load
lea addresses_D+0xfc90, %r14
nop
nop
nop
sub $14955, %rdx
vmovups (%r14), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $0, %xmm1, %rsi
nop
nop
nop
sub %rdx, %rdx
// Faulty Load
lea addresses_D+0x13a48, %r13
clflush (%r13)
nop
inc %r14
vmovups (%r13), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $1, %xmm1, %rsi
lea oracles, %rbp
and $0xff, %rsi
shlq $12, %rsi
mov (%rbp,%rsi,1), %rsi
pop %rsi
pop %rdx
pop %rcx
pop %rbp
pop %r14
pop %r13
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_D'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 3, 'same': False, 'type': 'addresses_D'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': True, 'type': 'addresses_D'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 10, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'}
{'src': {'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 4, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 6, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 2, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'}
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'}
{'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
*/
| 36.816092 | 2,999 | 0.661567 |
254864f33a26f1c5fcb114bdc12564d1ee9b7025 | 765 | asm | Assembly | kernel/src/arch/x86_64/init/early_init.asm | aeleos/VeOS | 4c766539ac10ad7b044bcf1b49fd5f0ae8fc21c6 | [
"MIT"
] | null | null | null | kernel/src/arch/x86_64/init/early_init.asm | aeleos/VeOS | 4c766539ac10ad7b044bcf1b49fd5f0ae8fc21c6 | [
"MIT"
] | null | null | null | kernel/src/arch/x86_64/init/early_init.asm | aeleos/VeOS | 4c766539ac10ad7b044bcf1b49fd5f0ae8fc21c6 | [
"MIT"
] | null | null | null | global start
extern stack_top
extern check_multiboot
extern check_cpuid
extern check_long_mode
extern set_up_paging
extern enable_paging
extern gdt.code
extern gdt.pointer
extern long_mode_start
section .init
bits 32
start:
;disable interrupts
cli
;initialize stack pointer
mov esp, stack_top
mov esi, ebx ;save multiboot information address in esi for later use
mov edi, eax ;save the multiboot magic number in edi for later use
;check if long mode is available
call check_cpuid
call check_long_mode
;enable paging
call set_up_paging
call enable_paging
;load global descriptor table
lgdt [gdt.pointer]
jmp gdt.code:long_mode_start
.endlessLoop: ;shouldn't be reached
hlt
jmp .endlessLoop
| 19.125 | 73 | 0.751634 |
350a730e6180630ea6dd6189439a9d95c114e7af | 293 | asm | Assembly | Assembly Practice/2Byte multiplication/Sources/main.asm | asheemchhetri/ECE362 | f144be836356edd0feed18ee542afd9895e1081f | [
"MIT"
] | null | null | null | Assembly Practice/2Byte multiplication/Sources/main.asm | asheemchhetri/ECE362 | f144be836356edd0feed18ee542afd9895e1081f | [
"MIT"
] | null | null | null | Assembly Practice/2Byte multiplication/Sources/main.asm | asheemchhetri/ECE362 | f144be836356edd0feed18ee542afd9895e1081f | [
"MIT"
] | null | null | null | ;Write an instruction sequence to multiply the contents of index register X and double accumulator
;D and store the product at memory locations $1000,$1003.
org $800
sty $1010 ;incase our Y register holds something useful data
tfr x,y
emul
sty $1000
std $1002
ldy $1010
end
| 24.416667 | 98 | 0.733788 |
3089d99a651300af95ee39c29aa8c36cabd2c473 | 8,007 | asm | Assembly | Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0x48.log_21829_344.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_344.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_344.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %rbp
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x1b0e3, %r13
nop
add %rcx, %rcx
mov $0x6162636465666768, %rbx
movq %rbx, %xmm2
vmovups %ymm2, (%r13)
nop
nop
nop
add %r12, %r12
lea addresses_A_ht+0x1c3cb, %rsi
lea addresses_WT_ht+0x6767, %rdi
nop
nop
nop
nop
and %rbp, %rbp
mov $12, %rcx
rep movsb
cmp %r13, %r13
lea addresses_D_ht+0xc903, %rcx
sub %rdi, %rdi
movups (%rcx), %xmm7
vpextrq $0, %xmm7, %rsi
nop
dec %rcx
lea addresses_D_ht+0x1b483, %rsi
lea addresses_UC_ht+0x16d93, %rdi
nop
nop
nop
nop
sub $249, %rdx
mov $12, %rcx
rep movsl
nop
xor %rsi, %rsi
lea addresses_WC_ht+0x1a03, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
sub %r13, %r13
movups (%rdi), %xmm7
vpextrq $0, %xmm7, %rsi
nop
nop
nop
and $15953, %rbx
lea addresses_WC_ht+0x7c03, %rsi
lea addresses_WT_ht+0xb803, %rdi
clflush (%rsi)
nop
nop
nop
nop
xor %rdx, %rdx
mov $73, %rcx
rep movsb
cmp $64998, %r12
lea addresses_WT_ht+0xf877, %rsi
lea addresses_WC_ht+0xbb83, %rdi
nop
nop
nop
add %rbp, %rbp
mov $115, %rcx
rep movsl
add %rbx, %rbx
lea addresses_D_ht+0x605b, %rdi
clflush (%rdi)
nop
nop
add %rcx, %rcx
mov (%rdi), %ebx
nop
sub $57350, %rsi
lea addresses_normal_ht+0x747b, %rdx
nop
nop
nop
nop
nop
cmp %rcx, %rcx
mov $0x6162636465666768, %r12
movq %r12, %xmm4
vmovups %ymm4, (%rdx)
nop
nop
nop
nop
nop
and $2990, %rdi
lea addresses_WC_ht+0xb70, %rcx
nop
nop
add $39416, %r13
movw $0x6162, (%rcx)
nop
nop
nop
nop
cmp $59361, %rbp
lea addresses_UC_ht+0x4263, %r12
nop
nop
add %r13, %r13
movl $0x61626364, (%r12)
nop
nop
nop
nop
inc %rsi
lea addresses_D_ht+0x283, %rsi
lea addresses_UC_ht+0xf083, %rdi
nop
nop
nop
nop
nop
dec %r13
mov $37, %rcx
rep movsl
nop
nop
nop
nop
xor %r13, %r13
lea addresses_normal_ht+0xcff2, %rsi
nop
add %r13, %r13
mov (%rsi), %ecx
nop
nop
nop
add %rsi, %rsi
lea addresses_A_ht+0x5903, %rbp
sub %r13, %r13
mov $0x6162636465666768, %r12
movq %r12, %xmm2
vmovups %ymm2, (%rbp)
nop
nop
dec %rbp
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r15
push %r9
push %rax
push %rbp
push %rdi
// Load
lea addresses_US+0x7103, %rbp
nop
and %r15, %r15
mov (%rbp), %ax
nop
nop
cmp $56789, %rax
// Store
mov $0x49eeef00000009df, %rbp
nop
nop
xor %r11, %r11
movw $0x5152, (%rbp)
nop
nop
nop
inc %rbp
// Faulty Load
lea addresses_UC+0x2903, %rbp
inc %r11
movb (%rbp), %al
lea oracles, %rdi
and $0xff, %rax
shlq $12, %rax
mov (%rdi,%rax,1), %rax
pop %rdi
pop %rbp
pop %rax
pop %r9
pop %r15
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 10, 'size': 2, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 1, 'size': 2, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 2, 'size': 32, 'same': True, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 0, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 9, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 6, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 3, 'size': 4, 'same': False, 'NT': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': True, 'congruent': 0, 'size': 2, 'same': False, 'NT': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 5, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 11, 'size': 32, '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
*/
| 33.642857 | 2,999 | 0.655302 |
ab5acf512fe3cb1611628f8fd3020085c147a12a | 282 | asm | Assembly | programs/oeis/244/A244588.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/244/A244588.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/244/A244588.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A244588: a(n) = n OR 6.
; 6,7,6,7,6,7,6,7,14,15,14,15,14,15,14,15,22,23,22,23,22,23,22,23,30,31,30,31,30,31,30,31,38,39,38,39,38,39,38,39,46,47,46,47,46,47,46,47,54,55,54,55,54,55,54,55,62,63,62,63,62,63,62,63,70,71,70,71
mov $1,$0
div $1,2
mod $1,4
sub $0,$1
sub $0,$1
add $0,6
| 28.2 | 197 | 0.606383 |
857799a74b9509ae11e1c3fed98f8fca34c63065 | 244 | asm | Assembly | programs/oeis/057/A057543.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/057/A057543.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | programs/oeis/057/A057543.asm | jmorken/loda | 99c09d2641e858b074f6344a352d13bc55601571 | [
"Apache-2.0"
] | null | null | null | ; A057543: Maximum cycle length (orbit size) in the rotation permutation of 2n non-crossing handshakes.
; 1,1,2,3,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52
mov $1,$0
lpb $0
mov $0,3
mul $1,2
lpe
trn $1,1
add $1,1
| 22.181818 | 103 | 0.672131 |
69993c43568979bcb96fd6ea478e1fe77f6a093d | 7,722 | asm | Assembly | Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2_notsx.log_3618_1799.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_notsx.log_3618_1799.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_notsx.log_3618_1799.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r15
push %r8
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x6f73, %rdx
nop
cmp %r13, %r13
movb $0x61, (%rdx)
nop
nop
nop
nop
dec %r12
lea addresses_UC_ht+0x19473, %rsi
lea addresses_UC_ht+0x143b3, %rdi
nop
nop
nop
nop
and $38869, %r8
mov $80, %rcx
rep movsl
nop
nop
sub $52682, %rsi
lea addresses_UC_ht+0x3773, %r15
nop
add %rsi, %rsi
movb (%r15), %cl
inc %rcx
lea addresses_normal_ht+0x8bb1, %rsi
lea addresses_WT_ht+0x15f79, %rdi
nop
nop
nop
add %r12, %r12
mov $52, %rcx
rep movsl
nop
nop
nop
nop
nop
inc %r15
lea addresses_UC_ht+0x7b73, %rsi
lea addresses_WT_ht+0x11e49, %rdi
nop
nop
nop
nop
nop
xor %r8, %r8
mov $69, %rcx
rep movsq
nop
nop
add $53017, %r13
lea addresses_A_ht+0x1eca4, %rsi
lea addresses_WT_ht+0x147f3, %rdi
clflush (%rdi)
nop
nop
nop
nop
nop
cmp %rdx, %rdx
mov $15, %rcx
rep movsb
nop
inc %r15
lea addresses_WT_ht+0x9ac3, %rsi
lea addresses_normal_ht+0x6573, %rdi
and $64518, %rdx
mov $120, %rcx
rep movsw
nop
nop
xor %r15, %r15
lea addresses_A_ht+0x3973, %rcx
nop
sub %rdi, %rdi
mov (%rcx), %r15d
nop
nop
add $34616, %r12
lea addresses_WT_ht+0x10373, %r15
and $64336, %r12
and $0xffffffffffffffc0, %r15
movaps (%r15), %xmm5
vpextrq $0, %xmm5, %rdx
sub $1873, %rdi
lea addresses_WC_ht+0xb8f, %rdi
nop
nop
nop
xor %rsi, %rsi
mov (%rdi), %r8
nop
nop
nop
and %rdx, %rdx
lea addresses_normal_ht+0x15e13, %rdi
clflush (%rdi)
nop
and %r15, %r15
movl $0x61626364, (%rdi)
nop
cmp %rcx, %rcx
lea addresses_WC_ht+0x184b3, %rdi
nop
nop
nop
nop
nop
sub %rsi, %rsi
movups (%rdi), %xmm4
vpextrq $1, %xmm4, %r15
nop
nop
nop
add $18804, %r15
lea addresses_UC_ht+0x1b483, %r13
nop
nop
nop
nop
nop
add %r8, %r8
mov $0x6162636465666768, %rcx
movq %rcx, %xmm3
movups %xmm3, (%r13)
nop
nop
nop
nop
xor %rdx, %rdx
lea addresses_A_ht+0x8443, %rcx
and %r15, %r15
mov $0x6162636465666768, %r12
movq %r12, (%rcx)
nop
nop
xor %r15, %r15
lea addresses_WC_ht+0xf6f3, %r15
nop
xor $1098, %rdx
mov (%r15), %r8
nop
nop
add $38610, %r13
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r8
pop %r15
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r15
push %r8
push %r9
push %rdi
push %rsi
// Faulty Load
mov $0x5b46d00000000f73, %r9
nop
xor $18497, %r15
mov (%r9), %esi
lea oracles, %r15
and $0xff, %rsi
shlq $12, %rsi
mov (%r15,%rsi,1), %rsi
pop %rsi
pop %rdi
pop %r9
pop %r8
pop %r15
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': True, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': True}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 4, 'AVXalign': True, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
{'00': 3618}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
| 35.422018 | 2,999 | 0.656566 |
263469ed931baffcce591888fa609c29ec53e119 | 1,494 | asm | Assembly | programs/oeis/128/A128986.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/128/A128986.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/128/A128986.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A128986: a(n) = (n^3 - n^2)*3^n.
; 0,36,486,3888,24300,131220,642978,2939328,12754584,53144100,214347870,841802544,3233287044,12187005012,45199057050,165299408640,597144113712,2133912053412,7552375012566,26499561447600,92260315250460,318957089865876,1095638315188626,3741626499300288,12709329141645000,42957532498760100,144535574730443598,484255942686614448,1616108126188264884,5373758547670338900,17807524014866192010,58822272874912840704,193722142623326865504,636201127478880274212,2083813853373337796550,6808292657071880128560,22191792017931914038092,72173305571832621331092,234229582734190790280066,758638324645152357182400,2452444276400963677737720,7913618969947499867431716,25491779573924960374357566,81980208064981267914877488,263229262153679282549091300,843928967753311154354359380,2701795782271107739085188218,8637748587908370348083635968,27578769095170209050197885584,87942503492251942124355502500,280087899897976287508712647350,891009036851915154615951762864,2831271928186685146285303735164,8986925554345835145030419838612,28496278618339781251275702318450,90266999744559145458586467142080,285659885230590256748325420530472,903157757439572954606547664158372,2852896691149867019043005824805166,9003882017655921626436137611892400,28392749989574308789804125469365780,89460435213052166383612342872329556,281651349043313629066544729397363306,886055242458842261640988641790783488
mov $1,3
pow $1,$0
mov $2,$0
add $2,$0
add $2,2
pow $2,2
mul $2,$0
mul $1,$2
div $1,24
mul $1,18
mov $0,$1
| 99.6 | 1,350 | 0.9083 |
e0e4132e0dbf56daf21efdcfae11157a515a0969 | 650 | asm | Assembly | oeis/054/A054487.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/054/A054487.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/054/A054487.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A054487: a(n) = (3*n+4)*binomial(n+7, 7)/4.
; Submitted by Jon Maiga
; 1,14,90,390,1320,3762,9438,21450,45045,88660,165308,294372,503880,833340,1337220,2089164,3187041,4758930,6970150,10031450,14208480,19832670,27313650,37153350,49961925,66475656,87576984,114316840,147939440,189909720,241943592,306041208,384523425,480071670,595771410,735159438,902275192,1101716330,1338698790,1619121570,1949636469,2337723036,2791768980,3321156300,3936353400,4649013460,5472079340,6419895300,7508325825,8754881850,10178854686,11801457954,13645977840,15737931990,18105237370,20778387422
mov $2,$0
add $2,4
add $2,$0
add $2,$0
add $0,7
bin $0,7
mul $0,$2
div $0,4
| 50 | 501 | 0.810769 |
d629795bde60d8e492dd6a4d433ef226195fd036 | 6,471 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_9840_1076.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_9840_1076.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_9840_1076.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r14
push %r9
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x143c9, %rdi
nop
nop
nop
nop
dec %rbp
mov $0x6162636465666768, %r10
movq %r10, %xmm2
movups %xmm2, (%rdi)
nop
nop
nop
cmp $17772, %r14
lea addresses_D_ht+0xf149, %rsi
lea addresses_A_ht+0x1b49, %rdi
clflush (%rsi)
and %r9, %r9
mov $8, %rcx
rep movsb
nop
nop
nop
nop
sub %rbp, %rbp
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r9
pop %r14
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r8
push %r9
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
// Store
lea addresses_normal+0x1f89, %rdi
nop
nop
nop
nop
sub %rbx, %rbx
movb $0x51, (%rdi)
nop
dec %rdi
// Store
lea addresses_A+0x10149, %r8
nop
nop
nop
nop
add %r12, %r12
movw $0x5152, (%r8)
nop
nop
nop
and $21494, %rsi
// REPMOV
lea addresses_D+0x5549, %rsi
lea addresses_D+0x1097d, %rdi
nop
nop
nop
xor %r9, %r9
mov $44, %rcx
rep movsb
nop
nop
nop
nop
nop
sub $45946, %r9
// Store
lea addresses_normal+0x1d49, %rbp
nop
nop
nop
nop
nop
inc %rcx
mov $0x5152535455565758, %r8
movq %r8, %xmm4
vmovups %ymm4, (%rbp)
nop
sub %r9, %r9
// Store
lea addresses_D+0xd189, %r8
nop
nop
nop
nop
nop
xor $26843, %rbx
movw $0x5152, (%r8)
nop
nop
nop
nop
add %rsi, %rsi
// Store
lea addresses_A+0x19149, %rdi
nop
and $6304, %rcx
mov $0x5152535455565758, %r9
movq %r9, (%rdi)
nop
nop
nop
nop
inc %rbx
// Store
lea addresses_PSE+0x42a1, %rsi
nop
sub $23752, %rcx
movb $0x51, (%rsi)
nop
nop
nop
inc %rsi
// Store
lea addresses_PSE+0x711, %rbp
nop
nop
nop
nop
nop
cmp $54875, %rdi
movl $0x51525354, (%rbp)
inc %r8
// Faulty Load
lea addresses_D+0x5549, %r9
nop
nop
nop
nop
sub %r12, %r12
movups (%r9), %xmm1
vpextrq $0, %xmm1, %r8
lea oracles, %r9
and $0xff, %r8
shlq $12, %r8
mov (%r9,%r8,1), %r8
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r8
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 9, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D', 'congruent': 0, 'same': True}, 'dst': {'type': 'addresses_D', 'congruent': 1, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 3, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 6, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}}
{'36': 9840}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
| 32.517588 | 2,999 | 0.653531 |
c6d53f2428df525a3235796b2957e143c1a95d14 | 18,042 | asm | Assembly | Driver/Net/NW/nwIpx.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Driver/Net/NW/nwIpx.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Driver/Net/NW/nwIpx.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC/GEOS
MODULE: Novell NetWare Driver
FILE: ipx.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 12/91 Initial version
Eric 8/92 Ported to 2.0.
DESCRIPTION:
This library allows PC/GEOS applications to access the Novell NetWare
Applications Programmers Interface (API). This permits an application
to send and receive packets, set up connections between nodes on the
network, access Novell's "Bindery", which contains information about
network users, etc.
RCS STAMP:
$Id: nwIpx.asm,v 1.1 97/04/18 11:48:41 newdeal Exp $
------------------------------------------------------------------------------@
;------------------------------------------------------------------------------
; NetWareResidentCode
;------------------------------------------------------------------------------
NetWareResidentCode segment resource ;start of code resource
COMMENT @----------------------------------------------------------------------
FUNCTION: NetWareSendHECB -- DR_NET_SEND_HECB
DESCRIPTION: The Net Library calls this entry point to queue up a single
HugeECB structure for transmission. We send a message
to our Process thread, so that it will do the dirty work
(in sequence with other outgoing blocks) while we are
blocked within ObjMessage.
PASS: ^hcx = HugeECB on global heap (unlocked)
RETURN: nothing (HugeECB freed)
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 12/91 Initial version
Eric 2/92 Ported to 2.0
------------------------------------------------------------------------------@
NetWareSendHECB proc near
;No need to lock the block yet - the recipient of MSG_NW_QUEUE_HECB_FOR_XMIT
;can do it at the appropriate time. We would only need it locked here if
;we re-enable the PSem code below.
;
; ;For now, we are locking the block before we send it, because since we
; ;don't have a departure queue, the block is going to stay locked until
; ;after transmission, and it has a FPTR inside.
;
; call NetWareLockHECB ;returns es = ax = segment of block
; mov ds, ax
;Pass this HugeECB to our process object, via the queue. Essentially,
;we are using our Process thread queue as our departure queue for
;HugeECBs.
mov cx, bx ;^hcx = HugeECB (unlocked)
mov bx, handle 0 ;bx = handle of NetWareProcessClass obj
mov ax, MSG_NW_QUEUE_HECB_FOR_XMIT
mov di, mask MF_FORCE_QUEUE
call ObjMessage
;NUKED 8/28/92 BY EDS
;Because there is a nasty timing bug here: what if the MSG we just sent
;arrives before we PSem below? Also, we don't really have a reason to
;wait around yet, since we aren't even checking for error codes placed
;in the HugeECB by IPX. And finally, we might eventually want to support
;"CALL" type messages, and in doing so will probably change this code anyway.
;
; ;Block on the semaphore in the HugeECB (initial value = 0),
; ;so that we go to sleep until the NetLibrary has processed
; ;this request. (It will immediately unlock the block.)
; ;We do this because we want to be able to return the error codes
; ;that IPX returns.
;
; PSem ds, HECB_semaphore ;does not trash bx
;
; ;OK: the NetLibrary has finished sending the HugeECB. Check
; ;return codes in the HugeECB, and return to the caller.
;
; call MemDerefDS ;restore ds = segment of HugeECB
; ;(is still locked, but may have moved)
;
;because we did not block on the semaphore, we have to let someone else
;free this block.
;
;EC < cmp ds:[HECB_protect1], HUGE_ECB_PROTECT1 >
;EC < ERROR_NE NW_ERROR >
;
; call MemFree
ret
NetWareSendHECB endp
NetWareResidentCode ends
;------------------------------------------------------------------------------
; NetWareIPXCode
;------------------------------------------------------------------------------
NetWareIPXCode segment resource ;start of code resource
COMMENT @----------------------------------------------------------------------
FUNCTION: NetWareQueueHECBForXmit -- MSG_NW_QUEUE_HECB_FOR_XMIT
DESCRIPTION: Pass the specified HugeECB onto IPX for transmission.
Once IPX has tried to send it, it will call our
callback routine with the results. At that point, we
can free the block.
OLD:
This driver sends this message to itself when running
in the caller's thread. Doing so allows us to queue
up our outgoing messages for transmission under our
process thread. The caller's thread stays blocked within
ObjMessage until this HECB has actually been sent.
PASS: ds = dgroup
^hcx = HugeECB on global heap (unlocked)
RETURN: nothing (HugeECB freed)
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 12/91 Initial version
------------------------------------------------------------------------------@
NetWareQueueHECBForXmit method NetWareProcessClass, MSG_NW_QUEUE_HECB_FOR_XMIT
mov bx, cx ;^hbx = HugeECB
;NUKED 8/28/92, because our caller DID NOT lock the block.
; ;NetObjMessage was unable to unlock this block, because it fell
; ;asleep on the semaphore within the block. So let's unlock it
; ;here, for the duration of the time that the block is on
; ;our departure queue.
;
; call MemDerefES
;
;instead, we use:
;lock the block before giving it to IPX, using a special routine
;which knows to update a FTPR inside the block.
call NetWareLockHECB ;returns es = ax = segment of block
;Performs ERROR CHECKING
mov dx, es:[HECB_ecb].ECB_socketAddress
;DX = dest. SocketAddress for block.
;Support for the departure queue was not completed. Do we need it at all?
; ;place on queue. pass ^hcx = HugeECB, dx = socket #
;
; call NetWareAddHugeECBToQueueForSocket
;
;instead, use:
;pass the HECB directly to IPX/SPX. Once IPX has dealt with it,
;our callback will be called. It will ensure that the block is
;nuked.
call NetWareSendHECBToNet
;what if socket was invalid?
;This comment does not apply anymore, since our caller is not blocked
;waiting on this block.
; ;we're done. Caller will be woken up by NetWareCheckXmitResults.
ret
NetWareQueueHECBForXmit endm
COMMENT @----------------------------------------------------------------------
FUNCTION: NetWareAddHugeECBToQueueForSocket
DESCRIPTION: Add the passed HugeECB to the departure queue for the
specified socket. We don't want to try to send this thing
immediately, because in SPX, we have to carefully sequence
all of the packets that we send.
PASS: ds = dgroup
^hcx = HugeECB
dx = socket address
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 12/91 Initial version
------------------------------------------------------------------------------@
if 0 ;not used yet
not debugged yet
NetWareAddHugeECBToQueueForSocket proc near
;lock vars block, so we can store info about this new socket
mov bx, ds:[nlVars]
EC < tst bx >
EC < ERROR_Z NW_ERROR >
call MemLock
mov ds, ax ;ds = NLVarsBlockStruc
;find this socket in our list of legal sockets
call NW_FindSocketInfoInArray ;does not trash bx, cx, dx
EC < ERROR_NC NW_ERROR ;socket does not exist! >
mov si, ds:[bp].NLSIS_departureQueueArray
;*ds:si = departure queue chunk array
;add an NLDepartureQueueECBInfo entry to the end of the departure queue.
call ChunkArrayAppend ;DS WILL MOVE
mov ds:[di].NLDQEI_hugeECB, cx
;unlock the nlVars block
call MemUnlock
;now send message to self, so will examine this queue to pass
;top item onto IPX. (We don't do this immediately, because we
;want to allow other events to come in.)
;pass dx = socket address
mov ax, MSG_NW_EXAMINE_DEPARTURE_QUEUE_FOR_SOCKET
mov bx, handle 0 ;bx = handle of this process
mov di, mask MF_FORCE_QUEUE
call ObjMessage
ret
NetWareAddHugeECBToQueueForSocket endp
endif
COMMENT @----------------------------------------------------------------------
FUNCTION: NetWareSendHECBToNet
DESCRIPTION: Pass this HugeECB directly onto IPX.
PASS: es = HugeECB (locked on global heap)
RETURN: nothing (assume that the HugeECB has been freed)
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 12/91 Initial version
------------------------------------------------------------------------------@
NetWareSendHECBToNet proc near
;update the ECB with some info
EC < cmp es:[HECB_protect1], HUGE_ECB_PROTECT1 >
EC < ERROR_NE NW_ERROR >
clr es:[HECB_ecb].ECB_completionCode
;init completion code
;now tell IPX to send this packet
mov si, offset HECB_ecb ;set es:si = ECB to send
mov bx, ISF_IPX_SEND_PACKET ;bx = IPXSPXFunction
call NetWareIPXCallFunction
;no errors are returned. We have to look into the HugeECB when
;IPX calls our fixed callback routine, to see if things went ok.
ret
NetWareSendHECBToNet endp
COMMENT @----------------------------------------------------------------------
FUNCTION: NetWareCheckXmitResults
DESCRIPTION: This message is sent by our fixed callback routine which is
called by IPX/SPX when it is done transmitting a packet.
PASS: ds = dgroup
cx = segment of HugeECB (in fixed block in memory)
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 12/91 Initial version
------------------------------------------------------------------------------@
NetWareCheckXmitResults method NetWareProcessClass,
MSG_NW_CHECK_XMIT_RESULTS
;FUTURE: need to build HugeECB from small ECB pieces here...
;get the segment for the HugeECB
mov ds, cx ;ds = HugeECB
EC < cmp ds:[HECB_protect1], HUGE_ECB_PROTECT1 >
EC < ERROR_NE NW_ERROR >
;NUKED 8/28/92 by EDS.
;Because no one is blocked waiting for this block. We simply have to
;free it ourselves.
; ;wake up the application thread that is sleeping waiting for
; ;this HugeECB to be sent.
;
; VSem ds, HECB_semaphore
;instead, we use:
;Free this block now, since IPX has transmitted its contents
;and our caller has already continued on to greener pastures.
mov bx, ds:[HECB_handle]
call MemFree
ret
NetWareCheckXmitResults endm
COMMENT @----------------------------------------------------------------------
FUNCTION: NetWareGrabIncomingECB -- MSG_NW_GRAB_INCOMING_ECB
DESCRIPTION: This message is sent by our fixed callback routine which is
called by IPX/SPX when it received a packet from the
network.
PASS: ds = dgroup
cx = segment of HugeECB (in fixed block in memory)
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
grab data out of this HECB
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 12/91 Initial version
------------------------------------------------------------------------------@
NetWareGrabIncomingECB method NetWareProcessClass,
MSG_NW_GRAB_INCOMING_ECB
;make sure is ok
mov ds, cx ;ds = HugeECB
EC < cmp ds:[HECB_protect1], HUGE_ECB_PROTECT1 >
EC < ERROR_NE NW_ERROR >
;first remove this HECB from the list of HECBs pending for listening.
mov dx, ds:[HECB_msg].NLMPS_spx.IPXSPX_ipx.IPX_dest.NNSAS_socket
;pass dx = socket
mov cx, ds:[HECB_handle] ;pass ^hcx = HugeECB (which is locked)
call NetWareRemoveECBFromPendingListenListForSocket
;create another ECB, and submit it for listening on that
;same socket.
if NW_DYNAMIC_SOCKETS
PrintMessage <MAKE SURE THIS WORKS when source and dest socket>
PrintMessage <have different values...>
endif
push ds
mov cx, MAX_MSG_DATA_SIZE ;make it big enough to handle the
;biggest IPX packet which arrives.
clr di ;pass flag: create for IPX listening.
call NetCreateHECB ;returns ^hbx = HugeECB with defaults.
;dx = socket address still
mov ax, segment dgroup
mov ds, ax ;pass ds = dgroup
mov cx, bx ;pass ^hcx = ECB
call NetWareSubmitECBToListenOnSocket
;no need for method call, because we
;are running in the NW Driver thread.
pop ds
;from small ECBS coming in, build a HugeECB here...
; (NOT SUPPORTED YET)
;we now have a HugeECB. If is a message "CALL", then
;pass on to a new thread, which can block waiting for the
;local recipient object to handle it.
test ds:[HECB_msg].NLMPS_nlMessageFlags, mask NLMF_CALL
jz isSendType
EC < ERROR NW_ERROR ;NOT SUPPORTED YET >
; call NetWareCreateThreadForLocalMsgCall
; ret
isSendType:
;call the Net Library to process this HugeECB, delivering it
;to as many applications or objects as necessary.
call NetUnpackHugeECBAndDispatchLocalMessage
ret
NetWareGrabIncomingECB endm
COMMENT @----------------------------------------------------------------------
FUNCTION: NetWareIPXCallFunction
DESCRIPTION: Call the specified NetWare IPX/SPX function.
PASS: bx = IPXSPXFunction enum
RETURN: ds = same
DESTROYED: ?
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 12/91 Initial version
------------------------------------------------------------------------------@
NetWareIPXCallFunction proc far
EC < call ECNetWareAssertIPXExists >
;Because we are essentially calling into DOS, we must grab DOS for our
;exclusive use for a second
call SysLockBIOS
;set ds = our dgroup
push ds
push ax
mov ax, segment dgroup
mov ds, ax
pop ax
;call IPX entry point in the DOS NetWare IPX code
call ds:[ipxEntryPoint]
pop ds
;release DOS for use by others
call SysUnlockBIOS ;does not affect flags
;return with whatever registers the IPX function returned
ret
NetWareIPXCallFunction endp
if ERROR_CHECK
ECNetWareAssertIPXExists proc near
pushf
push ax, ds
mov ax, segment dgroup
mov ds, ax
tst ds:[ipxEntryPoint].high
jnz done
tst ds:[ipxEntryPoint].low
ERROR_Z NW_ERROR_NEED_TO_CALL_IPX_INITIALIZE_FIRST
done:
pop ax, ds
popf
ret
ECNetWareAssertIPXExists endp
endif
NetWareIPXCode ends
;------------------------------------------------------------------------------
; NetWareResidentCode
;------------------------------------------------------------------------------
NetWareResidentCode segment resource ;start of code resource
COMMENT @----------------------------------------------------------------------
FUNCTION: NetWareFixedCallbackForDepartingECBs
DESCRIPTION: The NetWare IPX/SPX facility will call this fixed callback
routine when it has completed the transmission of an
outgoing packet (ECB).
SEE NOTE BELOW.
PASS: ds = dgroup
es:si = ECB structure which has been relinquished
to our control by IPX/SPX.
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
**********************************************************************
DO NOT DO ANYTHING WEIRD IN THIS ROUTINE. THIS IS RUN BY A THE
IPX/SPX INTERRUPT THREAD.
**********************************************************************
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 12/91 Initial version
------------------------------------------------------------------------------@
NetWareFixedCallbackForDepartingECBs proc far
;EC: We always give IPX a fptr which is segment:0. Let's assume they
;are always returned that way. If this ever fails, then just
;pass cx:dx as the address of the HugeECB.
.assert (offset HECB_ecb) eq 0
EC < tst si >
EC < ERROR_NZ NW_ERROR >
;send a message to the NetLibrary process object, so it can take
;ownership of this ECB.
mov cx, es ;cx:dx = ECB
; mov dx, si ;NO NECESSARY - see EC code above
mov ax, MSG_NW_CHECK_XMIT_RESULTS
mov bx, handle 0 ;^hbx = NetLibrary process object
mov di, mask MF_FORCE_QUEUE
call ObjMessage
ret
NetWareFixedCallbackForDepartingECBs endp
COMMENT @----------------------------------------------------------------------
FUNCTION: NetWareFixedCallbackForIncomingECBs
DESCRIPTION: The NetWare IPX/SPX facility will call this fixed callback
routine when it has completed the transmission of an
outgoing packet (ECB).
SEE NOTE BELOW.
PASS: ds = dgroup
es:si = ECB structure which has been relinquished
to our control by IPX/SPX.
RETURN: nothing
DESTROYED: ?
PSEUDO CODE/STRATEGY:
**********************************************************************
DO NOT DO ANYTHING WEIRD IN THIS ROUTINE. THIS IS RUN BY A THE
IPX/SPX INTERRUPT THREAD.
**********************************************************************
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 12/91 Initial version
------------------------------------------------------------------------------@
NetWareFixedCallbackForIncomingECBs proc far
;EC: We always give IPX a fptr which is segment:0. Let's assume they
;are always returned that way. If this ever fails, then just
;pass cx:dx as the address of the HugeECB.
.assert (offset HECB_ecb) eq 0
EC < tst si >
EC < ERROR_NZ NW_ERROR >
;send a message to the NW Process object, so it can take
;ownership of this ECB.
mov cx, es ;cx:dx = ECB (locked)
; mov dx, si ;NO NECESSARY - see EC code above
mov ax, MSG_NW_GRAB_INCOMING_ECB
mov bx, handle 0 ;^hbx = NW Process object
mov di, mask MF_FORCE_QUEUE
call ObjMessage
;might want to feed IPX another listen packet at this point...
ret
NetWareFixedCallbackForIncomingECBs endp
NetWareResidentCode ends
| 27.171687 | 80 | 0.620607 |
97e1803ede4e4f5ce21d31b815afa7925accf721 | 1,906 | asm | Assembly | programs/oeis/084/A084380.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/084/A084380.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/084/A084380.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A084380: a(n) = n^3 + 2.
; 2,3,10,29,66,127,218,345,514,731,1002,1333,1730,2199,2746,3377,4098,4915,5834,6861,8002,9263,10650,12169,13826,15627,17578,19685,21954,24391,27002,29793,32770,35939,39306,42877,46658,50655,54874,59321,64002,68923,74090,79509,85186,91127,97338,103825,110594,117651,125002,132653,140610,148879,157466,166377,175618,185195,195114,205381,216002,226983,238330,250049,262146,274627,287498,300765,314434,328511,343002,357913,373250,389019,405226,421877,438978,456535,474554,493041,512002,531443,551370,571789,592706,614127,636058,658505,681474,704971,729002,753573,778690,804359,830586,857377,884738,912675,941194,970301,1000002,1030303,1061210,1092729,1124866,1157627,1191018,1225045,1259714,1295031,1331002,1367633,1404930,1442899,1481546,1520877,1560898,1601615,1643034,1685161,1728002,1771563,1815850,1860869,1906626,1953127,2000378,2048385,2097154,2146691,2197002,2248093,2299970,2352639,2406106,2460377,2515458,2571355,2628074,2685621,2744002,2803223,2863290,2924209,2985986,3048627,3112138,3176525,3241794,3307951,3375002,3442953,3511810,3581579,3652266,3723877,3796418,3869895,3944314,4019681,4096002,4173283,4251530,4330749,4410946,4492127,4574298,4657465,4741634,4826811,4913002,5000213,5088450,5177719,5268026,5359377,5451778,5545235,5639754,5735341,5832002,5929743,6028570,6128489,6229506,6331627,6434858,6539205,6644674,6751271,6859002,6967873,7077890,7189059,7301386,7414877,7529538,7645375,7762394,7880601,8000002,8120603,8242410,8365429,8489666,8615127,8741818,8869745,8998914,9129331,9261002,9393933,9528130,9663599,9800346,9938377,10077698,10218315,10360234,10503461,10648002,10793863,10941050,11089569,11239426,11390627,11543178,11697085,11852354,12008991,12167002,12326393,12487170,12649339,12812906,12977877,13144258,13312055,13481274,13651921,13824002,13997523,14172490,14348909,14526786,14706127,14886938,15069225,15252994,15438251
pow $0,3
mov $1,$0
add $1,2
| 272.285714 | 1,849 | 0.852571 |
1968d41f14c64b72bfa53f8ec903a86d6e6910af | 323 | asm | Assembly | programs/oeis/003/A003270.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/003/A003270.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/003/A003270.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A003270: A nonrepetitive sequence.
; 1,2,3,1,3,2,3,1,2,3,2,1,3,1,2,1,3,2,3,1,2,3,2,1,2,3,1,2,1,3,2,3,1,3,2,1,3,1,2,3,2,1,2,3,1,3,2,1,3,1,2,1,3,2,3,1,2,3,2,1,2,3,1,2,1,3,2,3,1
lpb $0
mov $2,$0
div $0,3
seq $2,132355 ; Numbers of the form 9*h^2 + 2*h, for h an integer.
add $1,$2
mod $1,3
lpe
add $1,1
mov $0,$1
| 24.846154 | 139 | 0.55418 |
95c0e708f34fe4be4e5d06d3715f8e5505e091ae | 2,140 | asm | Assembly | shellcode/amd64/dlopen_base_hijack.asm | macdaliot/libhijack | fcf3fe981d2a512e39ea9cc1344e8df62b57cc12 | [
"BSD-2-Clause"
] | 124 | 2015-02-25T03:22:20.000Z | 2022-01-18T15:06:57.000Z | shellcode/amd64/dlopen_base_hijack.asm | killvxk/libhijack | fcf3fe981d2a512e39ea9cc1344e8df62b57cc12 | [
"BSD-2-Clause"
] | 4 | 2015-06-03T20:13:20.000Z | 2019-03-30T19:15:38.000Z | shellcode/amd64/dlopen_base_hijack.asm | killvxk/libhijack | fcf3fe981d2a512e39ea9cc1344e8df62b57cc12 | [
"BSD-2-Clause"
] | 37 | 2015-02-24T22:07:59.000Z | 2022-03-20T15:22:15.000Z | BITS 64
; Copyright (c) 2011-2017, Shawn Webb
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions
; are met:
; * Redistributions of source code must retain the above copyright
; notice, this list of conditions and the following disclaimer.
; * Redistributions in binary form must reproduce the above copyright
; notice, this list of conditions and the following disclaimer in
; the documentation and/or other materials provided with the
; distribution.
;
; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
; "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
; LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
; FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
; COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
; INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
; (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
; HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
; STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
; ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
; OF THE POSSIBILITY OF SUCH DAMAGE.
;;;;;;;;;;;;;;;
; Call dlopen ;
;;;;;;;;;;;;;;;
push rax
push rbx
push rcx
push rdx
push rsi
push rdi
push rbp
push rsp
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
mov rdi, 0x1111111111111111 ; .so filename (string)
mov rsi, 0x102
mov rbx, 0x2222222222222222 ; addr of dlopen (unsigned long)
call rbx
;;;;;;;;;;;;;;
; Call dlsym ;
;;;;;;;;;;;;;;
mov rdi, rax
mov rsi, 0x3333333333333333 ; function name (string)
mov rbx, 0x4444444444444444 ; addr of dlsym (unsigned long)
call rbx
;;;;;;;;;;;;;;;;;
; Patch PLT/GOT ;
;;;;;;;;;;;;;;;;;
mov rbx, 0x5555555555555555 ; addr of PLT/GOT entry (unsigned long)
mov [rbx], rax
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rsp
pop rbp
pop rdi
pop rsi
pop rdx
pop rcx
pop rbx
pop rax
ret
| 24.044944 | 69 | 0.733645 |
fe9232df8d4f885fc585092fbf9a523d3756bbce | 7,610 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_647.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_647.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_647.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r13
push %r15
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x8a26, %r12
nop
nop
nop
nop
cmp %rcx, %rcx
movw $0x6162, (%r12)
nop
nop
xor %r13, %r13
lea addresses_UC_ht+0x3160, %rbp
nop
nop
nop
and %r15, %r15
movb (%rbp), %r11b
nop
inc %r15
lea addresses_normal_ht+0x1a026, %r13
nop
nop
nop
nop
dec %r11
movb $0x61, (%r13)
nop
nop
xor $27039, %rbp
lea addresses_UC_ht+0x558c, %rsi
lea addresses_UC_ht+0x66d6, %rdi
nop
inc %r15
mov $12, %rcx
rep movsl
nop
nop
nop
nop
inc %rcx
lea addresses_normal_ht+0x29a6, %rcx
and $56121, %r11
vmovups (%rcx), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $0, %xmm0, %r15
nop
cmp %r15, %r15
lea addresses_WT_ht+0xaece, %rbp
nop
nop
nop
nop
add $39341, %rcx
mov (%rbp), %si
nop
nop
nop
nop
cmp $23189, %r15
lea addresses_WT_ht+0xf486, %rsi
lea addresses_WT_ht+0xcbf6, %rdi
inc %r11
mov $106, %rcx
rep movsq
nop
nop
nop
xor $48684, %rbp
lea addresses_normal_ht+0xce26, %rsi
lea addresses_WT_ht+0x9626, %rdi
nop
nop
nop
add %r13, %r13
mov $106, %rcx
rep movsw
nop
inc %rcx
lea addresses_A_ht+0x9e26, %rsi
lea addresses_A_ht+0x106e6, %rdi
nop
nop
add %r11, %r11
mov $92, %rcx
rep movsl
nop
nop
nop
nop
xor %r13, %r13
lea addresses_normal_ht+0x1c50e, %r15
nop
nop
nop
nop
nop
sub %rsi, %rsi
movw $0x6162, (%r15)
nop
nop
nop
nop
nop
xor $3522, %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r15
pop %r13
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r14
push %rbp
push %rcx
push %rdi
push %rdx
// Store
lea addresses_RW+0x5720, %rbp
nop
nop
nop
nop
sub %r10, %r10
movb $0x51, (%rbp)
nop
nop
nop
nop
nop
xor %r14, %r14
// Load
mov $0xe5d140000000da6, %r10
nop
nop
nop
and %r12, %r12
movups (%r10), %xmm1
vpextrq $0, %xmm1, %r14
nop
nop
nop
dec %r12
// Store
lea addresses_US+0x144c6, %r10
nop
nop
nop
cmp %rbp, %rbp
mov $0x5152535455565758, %rcx
movq %rcx, %xmm2
vmovups %ymm2, (%r10)
add $45475, %r12
// Store
mov $0x977d00000000ca6, %rbp
nop
nop
nop
nop
nop
cmp %r12, %r12
mov $0x5152535455565758, %rdi
movq %rdi, %xmm0
movups %xmm0, (%rbp)
nop
nop
nop
nop
sub $427, %rdi
// Faulty Load
lea addresses_normal+0xd626, %r10
nop
nop
nop
sub %rcx, %rcx
vmovups (%r10), %ymm3
vextracti128 $1, %ymm3, %xmm3
vpextrq $0, %xmm3, %rdi
lea oracles, %rcx
and $0xff, %rdi
shlq $12, %rdi
mov (%rcx,%rdi,1), %rdi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r14
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_normal', 'congruent': 0}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_RW', 'congruent': 1}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_NC', 'congruent': 4}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_US', 'congruent': 5}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_NC', 'congruent': 7}, 'OP': 'STOR'}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_normal', 'congruent': 0}}
<gen_prepare_buffer>
{'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 2, 'type': 'addresses_WC_ht', 'congruent': 10}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 0}}
{'dst': {'same': False, 'NT': False, 'AVXalign': True, 'size': 1, 'type': 'addresses_normal_ht', 'congruent': 9}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 0, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_UC_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_normal_ht', 'congruent': 6}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_WT_ht', 'congruent': 2}}
{'dst': {'same': False, 'congruent': 4, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_WT_ht'}}
{'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_normal_ht'}}
{'dst': {'same': False, 'congruent': 5, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 10, 'type': 'addresses_A_ht'}}
{'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_normal_ht', 'congruent': 3}, 'OP': 'STOR'}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 32.245763 | 2,999 | 0.657424 |
1e394a21c36c08fe9516c7106247888ac0adcd93 | 3,378 | asm | Assembly | Driver/Printer/DotMatrix/Propx24/Zoomer/propx24zDriverInfo.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Driver/Printer/DotMatrix/Propx24/Zoomer/propx24zDriverInfo.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Driver/Printer/DotMatrix/Propx24/Zoomer/propx24zDriverInfo.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1993 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: IBM Proprinter X24 24-pin printer driver for Zoomer
FILE: propx24zDriverInfo.asm
AUTHOR: Dave Durran, 26 Mar 1990
REVISION HISTORY:
Name Date Description
---- ---- -----------
Dave 3/27/90 Initial revision
Dave 5/92 Initial 2.0 version
DESCRIPTION:
Driver info for the propx 24-pin printer driver
The file "printerDriver.def" should be included before this one
$Id: propx24zDriverInfo.asm,v 1.1 97/04/18 11:53:44 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Driver Info Resource
This part of the file contains the information that pertains to
all device supported by the driver. It includes device names and
a table of the resource handles for the specific device info. A
pointer to this info is provided by the DriverInfo function.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DriverInfo segment lmem LMEM_TYPE_GENERAL
;----------------------------------------------------------------------------
; Device Enumerations
;----------------------------------------------------------------------------
DefPrinter PD_IBM_PPRINTER_X24, "IBM Proprinter X24", generInfo
DefPrinter PD_IBM_PPRINTER_XL24, "IBM Proprinter XL24", generwInfo
DefPrinter PD_IBM_PS1PRINTER, "IBM PS/1 Printer", ps1Info
DefPrinter PD_TANDY_DMP202, "Tandy DMP 202 (IBM)", generInfo
DefPrinter PD_TANDY_DMP203, "Tandy DMP 203 (IBM)", generInfo
DefPrinter PD_TANDY_DMP240_I, "Tandy DMP 240 (IBM)", generInfo
DefPrinter PD_TANDY_DMP300_I, "Tandy DMP 300 (IBM)", generInfo
DefPrinter PD_TANDY_DMP302_I, "Tandy DMP 302 (IBM)", generInfo
DefPrinter PD_TANDY_DMP310_I, "Tandy DMP 310 (IBM)", generInfo
DefPrinter PD_TANDY_DMP2102_I, "Tandy DMP 2102 (IBM)", generwInfo
DefPrinter PD_TANDY_DMP2103_I, "Tandy DMP 2103 (IBM)", generwInfo
DefPrinter PD_TANDY_DMP2104_I, "Tandy DMP 2104 (IBM)", generwInfo
DefPrinter PD_TANDY_JP250_I, "Tandy JP 250 (IBM)", bjIBMInfo
;----------------------------------------------------------------------------
; Driver Info Header
;----------------------------------------------------------------------------
DriverExtendedInfoTable < {}, ; lmem hdr
PrintDevice/2, ; # devices
offset deviceStrings, ; devices
offset deviceInfoTab ; info blocks
>
PrintDriverInfo < 30, ; timeout (sec)
PR_DONT_RESEND, ;
isoSubstitutions, ;ISO sub tab.
asciiTransTable,
PDT_PRINTER,
TRUE
>
;----------------------------------------------------------------------------
; Device String Table and Strings
;----------------------------------------------------------------------------
isoSubstitutions chunk.word 0ffffh ;no ISO subs.
; ASCII Translation List for Foreign Language Versions
asciiTransTable chunk.char ";;",0
;create the actual tables here.....
PrinterTables
DriverInfo ends
| 35.557895 | 79 | 0.518946 |
f91d7a98dd24c45412f08037790794ecac0c5a8f | 1,147 | asm | Assembly | Memory.asm | MonstersGoBoom/Kickassembler-Modules | c6eba8e1e3846fd8b99e3c4b4d2ba6a41d6e9a36 | [
"MIT"
] | 16 | 2020-10-16T13:31:39.000Z | 2022-03-25T18:48:48.000Z | Memory.asm | MonstersGoBoom/Kickassembler-Modules | c6eba8e1e3846fd8b99e3c4b4d2ba6a41d6e9a36 | [
"MIT"
] | null | null | null | Memory.asm | MonstersGoBoom/Kickassembler-Modules | c6eba8e1e3846fd8b99e3c4b4d2ba6a41d6e9a36 | [
"MIT"
] | 4 | 2020-12-08T22:48:55.000Z | 2021-10-18T01:31:47.000Z |
.segment ZP
mem_source: .word 0
mem_dest: .word 0
mem_size: .word 0
// lda value
// memset(destination,size in bytes)
// e.g.
// LDA #$fe
// memset($d800,$3f8)
.macro memset(dest,size) {
sta mem_source
lda #<size
ldy #>size
sta mem_size
sty mem_size+1
lda #<dest
ldy #>dest
sta mem_dest
sty mem_dest+1
jsr _memset_
}
// memcpy(source,destination,size in bytes)
.macro memcpy(source,dest,size) {
lda #<source
ldy #>source
sta mem_source
sty mem_source+1
lda #<size
ldy #>size
sta mem_size
sty mem_size+1
lda #<dest
ldy #>dest
sta mem_dest
sty mem_dest+1
jsr _memcpy_
}
.segment CODE
_memset_:
{
lda mem_source
ldy #0
ldx mem_size+1
beq remaining_bytes
ms1:
sta (mem_dest),y
iny
bne ms1
inc mem_dest+1
dex
bne ms1
remaining_bytes:
ldx mem_size
beq ms4
ms3:
sta (mem_dest),y
iny
dex
bne ms3
ms4:
rts
}
_memcpy_:
{
ldy #0
ldx mem_size+1
beq remaining_bytes
mc1:
lda (mem_source),y
sta (mem_dest),y
iny
bne mc1
inc mem_dest+1
inc mem_source+1
dex
bne mc1
remaining_bytes:
ldx mem_size
beq mc4
mc3:
lda (mem_source),y
sta (mem_dest),y
iny
dex
bne mc3
mc4:
rts
}
| 11.245098 | 43 | 0.681779 |
f8d097549f32c32f815870ce67831225fb5bfca6 | 6,494 | asm | Assembly | sample_lib.asm | ISSOtm/smooth-player | 5b493c63207d5b2f9092368b35734b76ae2e81b0 | [
"MIT"
] | 10 | 2019-05-15T16:13:29.000Z | 2021-06-23T16:01:01.000Z | sample_lib.asm | ISSOtm/smooth-player | 5b493c63207d5b2f9092368b35734b76ae2e81b0 | [
"MIT"
] | 2 | 2021-01-08T10:46:22.000Z | 2021-01-09T20:13:00.000Z | sample_lib.asm | ISSOtm/smooth-player | 5b493c63207d5b2f9092368b35734b76ae2e81b0 | [
"MIT"
] | null | null | null |
; Here's some technical explanation about Game Boy sample playing:
; The "usual" way of playing sound samples on the Game Boy is to use its wave channel
; Basically, let that channel play its 32 4-bit samples, then refill it
; Problem: to refill the channel, you have to disable it then restart it
; However, when doing so, the "sample buffer" is set to 0 **and not updated**
; This means the channel outputs a spike as its first sample, creating a buzzing sound
;
; Why? That's because of how the Game Boy generates sound: each channel produces
; a digital value between 0 and 15, which is fed to a DAC (Digital to Analog Converter)
; which converts it to an analog value I don't know the range of
; And finally, all analog values get sent to the SO1 and SO2 terminals, where they get
; mixed together and scaled based on NR51 and NR50 respectively, then sent to speakers
; The problem is that DIGITAL zero maps to ANALOG maximum; therefore the channel
; doesn't play silence when starting up. (The GB's APU appears to be poorly designed)
;
; What this means is that using CH3 inherently has this spiky problem
; No solution has been found to use another channel to compensate,
; so we need to think outside the box...
; The solution used here is to make all osund channels play a DC offset (a constant)
; but a different one for each channel; then, we pick which ones get added to reach
; any constant, by selecting which channels are fed to the mixed via NR51
; This gives 4-bit PCM at a selectable frequency that also does stereo
; but that hogs all sound channels and requires more CPU
; @param hl Pointer to the first byte of the sample to be played
; @param b Bank of the first byte of the sample to be played
; @param c Bank of the last byte of the sample to be played
StartSample::
; Prevent sample from playing while in inconsistent state
ld a, 0 ; Preserve flags
ldh [rTAC], a
ld a, l
ldh [hSampleReadPtr], a
ld a, h
ldh [hSampleReadPtr+1], a
ld a, b
ldh [hSampleReadBank], a
ld a, c
ldh [hSampleLastBank], a
ld hl, .notAGB
jr z, .indeedNotAGB
ld hl, .AGB
.indeedNotAGB
; We need to reset the APU to reset the pulse channels' duty cycle phases
xor a
ldh [rNR52], a
ldh [rDIV], a ; Reset DIV for consistency
ld a, $80
ldh [rNR52], a
; As far as currently known, the values of all sound registers are zero after powering on
; ~ Setting up CH3 ~
; CH3 can be made to output a constant value without trickery
; We just define its wave to be, well, a constant wave
; We do want to do this as early as possible, because the first sample CH3 puts out is glitched
; More fun: on GBA **exclusively**, the output is inverted
; Channel starts disabled
ld a, [hli]
ld bc, 16 << 8 | LOW(_AUD3WAVERAM)
.writeWave
ldh [c], a
inc c
dec b
jr nz, .writeWave
; Enable as-is output
ld a, 1 << 5
ldh [rNR32], a
; Re-enable channel so it can play
ld a, $87 ; Only bit 7 matters
ldh [rNR30], a
; Retrigger channel so it starts playing
; (Frequency should be as high as possible so initial "0" sample gets pushed away as fast as possible)
; ld a, $87
ldh [rNR34], a
; ~ Setting up CH1 and CH2 ~
; Those two are more complicated, because we can't use the same trick
; as for CH4, and they will keep playing squares
; The trick is to keep the channel in the same sample index by restarting it
; There's a small difficulty, though: the channel begins by playing a 0 no matter
; what, so we need to wait until that's over, then begin "tickling" the channel
; We use duty cycle 75% because it's the one that reaches a non-zero output the
; fastest
; We will also obviously need the frequency to be as low as possible, but only
; once we reach the non-zero; before that, we'll set the frequency to be higher
; so the initial parasit 0 goes away more quickly
; And finally, we want CH1 to output digital 9, and CH2 digital 10
;xor a ; Reminder that all regs are init'd at 0
;ldh [rNR13], a
;ldh [rNR23], a
; Set duty cycle to 75%
ld a, $C0
ldh [rNR11], a
ldh [rNR21], a
; Set output levels
ld a, [hli]
ldh [rNR12], a
ld a, [hli]
ldh [rNR22], a
; Start the channels, with a frequency higher than normal so their first sample goes away quickly
ld a, $84
ldh [rNR14], a
ldh [rNR24], a
; ~ Setting up CH4 ~
; CH4 will output digital 0 == analog max
; This is done by turning on its DAC, but not the LFSR circuitry
; The DAC is turned on by writing a non-zero value to the envelope, the LFSR by "restarting" the channel via NR44
; On AGB, though, this falls apart due to "DAC"s being always on; therefore, we basically invert output and
; instead set up the LFSR into a loop of outputting only ones (possible by changing its width at a specific
; time)
; Turn on the DAC with an output level of $F (necessary on AGB)
ld a, $F0
ldh [rNR42], a
; Set a high frequency to get this over with quickly
;xor a ; Smallest dividers, 15-bit mode
;ldh [rNR43], a
; Turn on the circuitry on AGB but not elsewhere
ld a, [hli]
di ; What happens from now on is timing-sensitive, we can't be interrupted
ldh [rNR44], a
; We need the LFSR to generate a few bits, do something else in the meantime
; Some bits need to be inverted on AGB
ld a, [hli]
ldh [hSampleXORMask], a
; Enable timer interrupt
ldh a, [rIE]
or IEF_TIMER
ldh [rIE], a
ld a, $E0 ; $C0 for 4 kHz interrupt
ldh [rTMA], a
; Make the first sample trigger late to give time to pulse channels to set up (sounds weird, I know)
xor a
ldh [rTIMA], a
; Start counting down
ld a, $04 | $01
; Finish setting up CH4 on AGB
ld hl, rNR43
ei ; Interrupts are fine after CH4 is set up
set 3, [hl] ; Switch to 7-bit mode while the lowest 7 bits are all set
; Actually start counting down
ldh [rTAC], a
ret
.notAGB
db $CC ; CH3 wave RAM
db $90 ; NR12: CH1 envelope
db $A0 ; NR22: CH2 envelope
db $00 ; NR44: whether to start up the LFSR
db $00 ; XOR mask
.AGB
db $88 ^ $FF ; GBA inverts output
db $20
db $40
db $80
db $88 ; XOR mask
; Variables
PUSHS
SECTION "Smooth-Player variables", HRAM
hSampleXORMask:: db
hSampleReadPtr:: dw
hSampleReadBank:: db
hSampleLastBank:: db
POPS
| 35.486339 | 117 | 0.677549 |
2dd71d28e3f7234596c482c1ffa43fb6d6a8c0e7 | 373 | asm | Assembly | mips assembly/include/syscalls.asm | adrianmgg/misc_little_things_i_did | 077a0d7728c6259c51b6cc8ce87a36144c76f97b | [
"MIT"
] | null | null | null | mips assembly/include/syscalls.asm | adrianmgg/misc_little_things_i_did | 077a0d7728c6259c51b6cc8ce87a36144c76f97b | [
"MIT"
] | null | null | null | mips assembly/include/syscalls.asm | adrianmgg/misc_little_things_i_did | 077a0d7728c6259c51b6cc8ce87a36144c76f97b | [
"MIT"
] | null | null | null | .macro dosyscall (%id)
li $v0, %id
syscall
.end_macro
#.macro exit
#dosyscall(10)
#.end_macro
#.macro exit (%exitcode)
#i $a0, %exitcode
#dosyscall(17)
#.end_macro
## duration - milliseconds
#.macro sleep (%duration)
#li $a0, %duration
#dosyscall(32)
#.end_macro
#.macro midi_out_async
#dosyscall(31)
#.end_macro
#.macro midi_out_blocking
#dosyscall(33)
#.end_macro
| 12.433333 | 26 | 0.713137 |
05bdafa2f21ded8b0a0c647d2d31c4b195a414b9 | 442 | asm | Assembly | programs/oeis/194/A194511.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/194/A194511.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/194/A194511.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A194511: Second coordinate of (2,5)-Lagrange pair for n.
; -1,0,1,0,1,0,1,0,1,2,1,2,1,2,1,2,3,2,3,2,3,2,3,4,3,4,3,4,3,4,5,4,5,4,5,4,5,6,5,6,5,6,5,6,7,6,7,6,7,6,7,8,7,8,7,8,7,8,9,8,9,8,9,8,9,10,9,10,9,10,9,10,11,10,11,10,11,10,11,12,11,12,11,12,11,12,13,12,13
mov $2,$0
add $2,1
cmp $2,1
mov $3,$0
add $3,7
sub $4,$2
mov $5,$0
mov $0,2
sub $3,7
mov $1,$3
sub $5,2
div $5,7
add $5,2
add $5,$4
add $0,$5
add $1,$5
mod $1,2
sub $0,$1
sub $0,3
| 19.217391 | 201 | 0.561086 |
5a1e989cb59876f82b02b2669fd5796a50e794f8 | 1,489 | asm | Assembly | programs/oeis/139/A139570.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/139/A139570.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/139/A139570.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A139570: 2n(n+3).
; 0,8,20,36,56,80,108,140,176,216,260,308,360,416,476,540,608,680,756,836,920,1008,1100,1196,1296,1400,1508,1620,1736,1856,1980,2108,2240,2376,2516,2660,2808,2960,3116,3276,3440,3608,3780,3956,4136,4320,4508,4700,4896,5096,5300,5508,5720,5936,6156,6380,6608,6840,7076,7316,7560,7808,8060,8316,8576,8840,9108,9380,9656,9936,10220,10508,10800,11096,11396,11700,12008,12320,12636,12956,13280,13608,13940,14276,14616,14960,15308,15660,16016,16376,16740,17108,17480,17856,18236,18620,19008,19400,19796,20196,20600,21008,21420,21836,22256,22680,23108,23540,23976,24416,24860,25308,25760,26216,26676,27140,27608,28080,28556,29036,29520,30008,30500,30996,31496,32000,32508,33020,33536,34056,34580,35108,35640,36176,36716,37260,37808,38360,38916,39476,40040,40608,41180,41756,42336,42920,43508,44100,44696,45296,45900,46508,47120,47736,48356,48980,49608,50240,50876,51516,52160,52808,53460,54116,54776,55440,56108,56780,57456,58136,58820,59508,60200,60896,61596,62300,63008,63720,64436,65156,65880,66608,67340,68076,68816,69560,70308,71060,71816,72576,73340,74108,74880,75656,76436,77220,78008,78800,79596,80396,81200,82008,82820,83636,84456,85280,86108,86940,87776,88616,89460,90308,91160,92016,92876,93740,94608,95480,96356,97236,98120,99008,99900,100796,101696,102600,103508,104420,105336,106256,107180,108108,109040,109976,110916,111860,112808,113760,114716,115676,116640,117608,118580,119556,120536,121520,122508,123500,124496,125496
mov $1,$0
mul $0,2
add $1,3
mul $1,$0
| 186.125 | 1,429 | 0.811954 |
3bd05e45e3e42c493a3d266f0153bdad9603f94c | 3,383 | asm | Assembly | src/play/transition.asm | 1888games/golf | 5078fc0699e5f91a53761cc30526b510d49e955c | [
"BSD-2-Clause"
] | 1 | 2022-02-13T16:09:18.000Z | 2022-02-13T16:09:18.000Z | src/play/transition.asm | 1888games/golf | 5078fc0699e5f91a53761cc30526b510d49e955c | [
"BSD-2-Clause"
] | null | null | null | src/play/transition.asm | 1888games/golf | 5078fc0699e5f91a53761cc30526b510d49e955c | [
"BSD-2-Clause"
] | null | null | null | ; Top-hole Golf
; Copyright 2020-2021 Matthew Clarke
transtn_c_BEGIN = *
; *****************
; *** CONSTANTS ***
; *****************
; *****************
; *** VARIABLES ***
; *****************
transtn_v_current_row !byte 0
transtn_v_is_active !byte 0
; *******************
; ****** MACROS *****
; *******************
; *******************
; *** SUBROUTINES ***
; *******************
!zone {
transtn_s_init
+clr transtn_v_current_row
lda #1
sta transtn_v_is_active
lda #<COLOR_RAM
sta LINE_X0_LO
lda #>COLOR_RAM
sta LINE_Y0_LO
lda #<gfxs_c_DISPLAY_BASE
sta LINE_X1_LO
lda #>gfxs_c_DISPLAY_BASE
sta LINE_Y1_LO
lda #<gfxs_c_BITMAP_BASE
sta EDGES_LO
lda #>gfxs_c_BITMAP_BASE
sta EDGES_HI
lda #<gfxs_c_BITMAP_BASE+160
sta WS_X_LO
lda #>gfxs_c_BITMAP_BASE+160
sta WS_X_HI
rts
; end sub transtn_s_init
} ; !zone
; **************************************************
; OUTPUT: Z flag set if whole screen now blanked; else Z flag clear.
!zone {
.CURRENT_COLOR = MATHS0
transtn_s_blank_one_row
ldy #0
lda #0
-
sta (LINE_X0_LO),y
sta (LINE_X1_LO),y
iny
cpy #40
bne -
ldy #0
lda #$ff
-
sta (EDGES_LO),y
sta (WS_X_LO),y
iny
cpy #160
bne -
ldx transtn_v_current_row
inx
; Don't change the final row - keep colors intact for messaging!
cpx #24
beq .end
stx transtn_v_current_row
lda EDGES_LO
clc
adc #<320
sta EDGES_LO
lda EDGES_HI
adc #>320
sta EDGES_HI
lda WS_X_LO
clc
adc #<320
sta WS_X_LO
lda WS_X_HI
adc #>320
sta WS_X_HI
lda LINE_X0_LO
clc
adc #40
sta LINE_X0_LO
lda LINE_Y0_LO
adc #0
sta LINE_Y0_LO
lda LINE_X1_LO
clc
adc #40
sta LINE_X1_LO
; NOTE: this will always be non-zero, so routine will exit with
; Z flag clear.
lda LINE_Y1_LO
adc #0
sta LINE_Y1_LO
.end
rts
; end sub transtn_s_blank_one_row
} ; !zone
; **************************************************
!zone {
transtn_s_update
lda transtn_v_is_active
+branch_if_false .end
jsr transtn_s_blank_one_row
bne .end
lda #0
sta transtn_v_is_active
sta round_v_current_sky_color
sta round_v_current_ground_color
.end
rts
; end sub transtn_s_update
} ; !zone
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
; **************************************************
transtn_c_SIZE = *-transtn_c_BEGIN
| 20.50303 | 70 | 0.403192 |
4a4d326ed34872934b2555c928abc126dc56bdfd | 693 | asm | Assembly | Irvine/Examples/ch08/32 bit/ArrayFill.asm | alieonsido/ASM_TESTING | 4d5e2a3e11d921eeb50d69bbe4352cfc0e99afa7 | [
"Apache-2.0"
] | null | null | null | Irvine/Examples/ch08/32 bit/ArrayFill.asm | alieonsido/ASM_TESTING | 4d5e2a3e11d921eeb50d69bbe4352cfc0e99afa7 | [
"Apache-2.0"
] | null | null | null | Irvine/Examples/ch08/32 bit/ArrayFill.asm | alieonsido/ASM_TESTING | 4d5e2a3e11d921eeb50d69bbe4352cfc0e99afa7 | [
"Apache-2.0"
] | null | null | null | ; Demonstrate reference parameters (ArrayFill.asm)
; This program fills an array with 16-bit randomly generated integers.
INCLUDE Irvine32.inc
.data
count = 100
array WORD count DUP(?)
.code
main PROC
push OFFSET array
push COUNT
call ArrayFill
exit
main ENDP
ArrayFill PROC
push ebp
mov ebp,esp
pushad ; save registers
mov esi,[ebp+12] ; offset of array
mov ecx,[ebp+8] ; array size
cmp ecx,0 ; ECX == 0?
je L2 ; yes: skip over loop
L1:
mov eax,10000h ; get random 0 - FFFFh
call RandomRange ; from the link library
mov [esi],ax
add esi,TYPE WORD
loop L1
L2: popad ; restore registers
pop ebp
ret 8 ; clean up the stack
ArrayFill ENDP
END main
| 15.065217 | 70 | 0.701299 |
7215b3739dd9b92d565bb490e2d92d89e7c25127 | 483 | asm | Assembly | solutions/54 - Terrain Leveler/size-26_speed-87.asm | thrfirs/7billionhumans | b0e8c32c92d47ba4f7773dadf7e17589032ddfb3 | [
"MIT"
] | null | null | null | solutions/54 - Terrain Leveler/size-26_speed-87.asm | thrfirs/7billionhumans | b0e8c32c92d47ba4f7773dadf7e17589032ddfb3 | [
"MIT"
] | null | null | null | solutions/54 - Terrain Leveler/size-26_speed-87.asm | thrfirs/7billionhumans | b0e8c32c92d47ba4f7773dadf7e17589032ddfb3 | [
"MIT"
] | null | null | null | -- 7 Billion Humans (2212:2214M) --
-- 54: Terrain Leveler --
-- Author: thrfirs
-- Size: 26
-- Speed: 87
a:
step n
if c != datacube:
jump a
endif
b:
mem1 = calc mem1 + c
if n != datacube:
if w == datacube:
listenfor hi
mem1 = calc mem1 + w
endif
pickup c
write mem1
tell e hi
if e == worker:
listenfor morning
mem1 = set e
else:
mem1 = calc mem1 / 49
endif
write mem1
tell w morning
drop
c:
step s
pickup c
write mem1
drop
jump c
endif
step n
jump b
| 11.232558 | 35 | 0.635611 |
efe7467a9a2d3ce2f340a9498fd479854dc98501 | 846 | asm | Assembly | oeis/238/A238906.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/238/A238906.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/238/A238906.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A238906: Number of (n+1) X (1+1) 0..2 arrays with no element equal to all horizontal neighbors or equal to all vertical neighbors, and new values 0..2 introduced in row major order.
; Submitted by Christian Krause
; 3,9,54,261,1341,6768,34335,173925,881406,4466169,22631337,114678144,581102091,2944583217,14920910982,75607836957,383123064069,1941376545072,9837421053831,49848574293549,252594693861966,1279957958047665,6485854272481809,32865380756627328,166536774787257171,843881820871347225,4276151789939049942,21668287760622511605,109798416319510304397,556374936471959137392,2819285380523030841135,14285995891965347275701,72390571041583696737438,366820403376557778080553,1858767052079837250919737
mov $1,1
lpb $0
sub $0,1
mov $2,$1
add $4,$1
add $3,$4
mov $1,$3
mul $3,2
add $1,$3
mov $3,$2
add $4,$2
lpe
mov $0,$1
mul $0,3
| 44.526316 | 483 | 0.801418 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.