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
46b42e4c9604a565be9322960ce39c2498b6c5e8
437
asm
Assembly
oeis/205/A205549.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/205/A205549.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/205/A205549.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A205549: Symmetric matrix by antidiagonals: C(max(i+2,j+2),min(i+2,j+2)), i>=1, j>=1. ; Submitted by Christian Krause ; 1,4,4,10,1,10,20,5,5,20,35,15,1,15,35,56,35,6,6,35,56,84,70,21,1,21,70,84,120,126,56,7,7,56,126,120,165,210,126,28,1,28,126,210,165,220,330,252,84,8,8,84,252,330,220,286,495,462,210,36,1,36,210,462 lpb $0 add $1,1 sub $0,$1 mov $2,$1 sub $2,$0 lpe min $0,$2 add $1,3 sub $1,$0 add $0,3 bin $1,$0 mov $0,$1
25.705882
199
0.624714
1ed93a8936a5b4efa79781309ca77f61e23aff07
601
asm
Assembly
oeis/276/A276368.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/276/A276368.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/276/A276368.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A276368: G.f. A(x) satisfies: A(x - 3*x^3) = 1/(1 - 3*x). ; Submitted by Christian Krause ; 1,3,9,36,135,567,2268,9720,40095,173745,729729,3184272,13533156,59337684,254304360,1118939184,4825425231,21288640725,92250776475,407845538100,1774128090735,7856852973255,34284449337840,152044079672160,665192848565700,2953456247631708,12949769701154412,57554532005130720,252828837022538520,1124652412962326520,4948470617034236688,22028675650023376224 mov $3,$0 mov $5,$0 add $5,1 lpb $5 mov $0,$3 sub $5,1 sub $0,$5 add $0,$2 bin $0,$2 mov $2,$3 mul $4,3 trn $4,$0 add $4,$0 lpe mov $0,$4
30.05
351
0.740433
3a3ea9e5a4a4c2ea7e434be3b69e4199a3c03518
657
asm
Assembly
oeis/077/A077240.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/077/A077240.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/077/A077240.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A077240: Bisection (even part) of Chebyshev sequence with Diophantine property. ; 5,23,133,775,4517,26327,153445,894343,5212613,30381335,177075397,1032071047,6015350885,35060034263,204344854693,1191009093895,6941709708677,40459249158167,235813785240325,1374423462283783,8010726988462373,46689938468490455,272128903822480357,1586083484466391687,9244372002975869765,53880148533388826903,314036519197357091653,1830338966650753723015,10667997280707165246437,62177644717592237755607,362397871024846261287205,2112209581431485329967623,12310859617564065718518533 mov $1,5 mov $2,4 lpb $0 sub $0,1 add $2,$1 add $1,$2 add $1,$2 add $2,$1 lpe mov $0,$1
46.928571
475
0.843227
4bd014c5473c230acec076e96415d941c3e38afc
481
asm
Assembly
oeis/025/A025440.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/025/A025440.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/025/A025440.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A025440: Expansion of 1/((1-2x)(1-3x)(1-4x)(1-6x)). ; Submitted by Jon Maiga ; 1,15,145,1155,8281,55755,360865,2276835,14126761,86681595,527948785,3199656915,19327384441,116486845035,701025539905,4214614099395,25321657045321,152066219226075,912943584910225,5479850073412275,32887865154533401,197362281160304715 mov $1,1 mov $2,$0 mov $3,$0 lpb $2 mov $0,$3 mul $1,2 sub $2,1 sub $0,$2 seq $0,16765 ; Expansion of 1/((1-3*x)*(1-4*x)*(1-6*x)). add $1,$0 lpe mov $0,$1
28.294118
233
0.711019
ecfb1657e6a356069d365be1bd8cf8a900ab1e4d
438
asm
Assembly
programs/oeis/075/A075861.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/075/A075861.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/075/A075861.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A075861: Least k such that (n-k) divides (n+k). ; 1,1,2,3,2,5,4,3,5,9,4,11,7,5,8,15,6,17,10,7,11,21,8,15,13,9,14,27,10,29,16,11,17,21,12,35,19,13,20,39,14,41,22,15,23,45,16,35,25,17,26,51,18,33,28,19,29,57,20,59,31,21,32,39,22,65,34,23,35,69,24,71,37,25,38,55,26,77,40,27,41,81,28,51,43,29,44,87,30,65,46,31,47,57,32,95,49,33,50,99 lpb $0 add $1,2 lpb $1 add $0,1 dif $1,$0 lpe sub $0,1 lpe div $1,2 add $1,1 mov $0,$1
29.2
283
0.600457
41e40dddab9ae5537670c0097ff4cd76ac6ecf2f
1,553
asm
Assembly
programs/oeis/052/A052954.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/052/A052954.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/052/A052954.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A052954: Expansion of (2-x-x^2-x^3)/((1-x)*(1-x^2-x^3)). ; 2,1,2,2,2,3,3,4,5,6,8,10,13,17,22,29,38,50,66,87,115,152,201,266,352,466,617,817,1082,1433,1898,2514,3330,4411,5843,7740,10253,13582,17992,23834,31573,41825,55406,73397,97230,128802,170626,226031,299427,396656,525457,696082,922112,1221538,1618193,2143649,2839730,3761841,4983378,6601570,8745218,11584947,15346787,20330164,26931733,35676950,47261896,62608682,82938845,109870577,145547526,192809421,255418102,338356946,448227522,593775047,786584467,1042002568,1380359513,1828587034,2422362080,3208946546,4250949113,5631308625,7459895658,9882257737,13091204282,17342153394,22973462018,30433357675,40315615411,53406819692,70748973085,93722435102,124155792776,164471408186,217878227877,288627200961,382349636062,506505428837,670976837022,888855064898,1177482265858,1559831901919,2066337330755,2737314167776,3626169232673,4803651498530,6363483400448,8429820731202,11167134898977,14793304131649,19596955630178,25960439030625,34390259761826,45557394660802,60350698792450,79947654422627,105908093453251,140298353215076,185855747875877,246206446668326,326154101090952,432062194544202,572360547759277,758216295635153,1004422742303478,1330576843394429,1762639037938630,2334999585697906,3093215881333058,4097638623636535,5428215467030963,7190854504969592 mov $3,2 mov $5,$0 lpb $3 sub $3,1 add $0,$3 sub $0,1 mov $4,$0 add $4,1 cal $4,23434 ; Dying rabbits: a(n) = a(n-1) + a(n-2) - a(n-4). mov $2,$3 lpb $2 mov $1,$4 sub $2,1 lpe lpe lpb $5 sub $1,$4 mov $5,0 lpe add $1,1
64.708333
1,243
0.809401
c1284d73446f1dccfb127f3462b5ba7b94990396
543
asm
Assembly
asm/branch.asm
liuyic00/leros
ba72f456dea08933780ce3e999d65a8bc14d0550
[ "BSD-2-Clause" ]
null
null
null
asm/branch.asm
liuyic00/leros
ba72f456dea08933780ce3e999d65a8bc14d0550
[ "BSD-2-Clause" ]
null
null
null
asm/branch.asm
liuyic00/leros
ba72f456dea08933780ce3e999d65a8bc14d0550
[ "BSD-2-Clause" ]
null
null
null
// Test code // first instruction is not executed nop // second instruction is executed twice // conditional branch has one cycle delay // for the condition // // test of branch conditions - should never loop // start: load 1 load 0 load 0 load 7 // branch condition load 0 brnz brnzok branch start brnzok: load 127 load 0 load 127 brz brzok branch start brzok: load 0 load -1 load 0 brn brnok branch start brnok: load -1 load 5 load -1 brp brpok branch start brpok: nop branch brok branch start brok: nop out 0
11.804348
48
0.709024
578833744b62144a89b1de397de8481ed7fef00e
21,874
asm
Assembly
SnakeInAssembly.asm
akriptonn/SnakeAssemblyTrue
2f7b9dc176346322fd451830b2fcf6d79afaeaab
[ "MIT" ]
null
null
null
SnakeInAssembly.asm
akriptonn/SnakeAssemblyTrue
2f7b9dc176346322fd451830b2fcf6d79afaeaab
[ "MIT" ]
null
null
null
SnakeInAssembly.asm
akriptonn/SnakeAssemblyTrue
2f7b9dc176346322fd451830b2fcf6d79afaeaab
[ "MIT" ]
null
null
null
;@2018 ;Author: -Achmad Kripton Nugraha (Teknik Komputer - A - 1606828085) ; -Athina Maria Angelica (Teknik Komputer - A - 1606887024) ; -Aria Lesmana (Teknik Komputer - A - 1506732690) ; -Cakti Fadillah (Teknik Komputer - A - 1606890113) ; -Mifta Adiwira (Teknik Komputer - A - 1406567403) ;Kelompok: A ;Skenario: ; -User memberikan input W, A, S, D untuk mengatur arah gerak ular ; -Ular akan bertambah panjang jika melewati makanan ; -Ular akan mati jika memakan ekor sendiri atau Ranjau ; -User dapat menekan q untuk ke main menunya lagi ;Copyright 2018 Kelompok A Proyek UTS Praktikum Sistem Berbasis Komputer ;Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files ;(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, ;distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the ;following conditions: ;The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. ;THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ;MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY ;CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ;SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ;referensi: ; http://webpages.charter.net/danrollins/techhelp/0089.HTM ; http://www.computing.dcu.ie/~ray/teaching/CA296/notes/8086_bios_and_dos_interrupts.html ; Art of Assembly Language (Intel X86) .286 .model small .stack 0fffH .data ;berikut adalah variabel untuk mengecek flag keatas,bawah,kanan, kiri,dan mati nada dw 0 BAWAH DB 00h ATAS DB 00h KANAN DB 01h KIRI DB 00h BERHENTI DB 0 MATI DB 0 waktu_var dw 2 ;akhir dari variabel flag tulisan_mati db 'Anda telah mati',0ah,0DH,'Press Any key to continue...$' ;tulisan untuk dicetak saat mati tulisanskor db 'Score: $' ;tulisan untuk dicetak di bagian atas untuk Score tulisan db 'Tekan q untuk ke main menu $' ;tulisan dicetak dibagian atas untuk membeeri tahu user cara ke main menu menu DB "Snake Game",0AH,0DH,"Masukkan pilihan berupa angka yang diinginkan",0AH,0DH,"1.Main",0AH,0DH,"2.Keluar",0AH,0DH,"$" instruksi DB "Mengendalikan ular",0AH,0DH,"W:Atas, A:Kiri, S:Bawah, D:Kanan",0AH,0DH,"Kepala:",0010H,", Ekor:",0FEH,", Makanan:",015H,", Ranjau: X",0AH,0DH,"Kembali ke menu : Q",0AH,0DH,"Press Any Key to continue$" psnexit DB "Terimakasih sudah bermain",0DH,0AH,"$" SKOR DW 0 ;variabel untuk menyimpan skor yang dimiliki CNT_SKOR DB 0 ;variabel untuk menampung dijit SKOR BARIS_NOW DB 0 ;variable untuk menyimpan posisi baris dari ular KOLOM_NOW DB 0 ;variabel untuk menyimpan posisi kolom dari ular TARGET_GESER_BARIS DB 0 ;variabel untuk menyimpan TARGET_GESER_KOLOM DB 1 offset_atas equ 1 GAMBAR_HEAD DW 0B410H ; gambar kepala GAMBAR_EKOR EQU 0A4FEH ; gambar ekor food_pic dw 0cd15h ;gambar makanan bomb_pic dw 03c78h ;gambar bomb MIN_ROW EQU 0 ; baris minimum MIN_COL EQU 0 ;kolom minimun MAX_ROW EQU 24-offset_atas ;maximum baris, yaitu 24-offset_atas. 24 didapatkan dari perhitungan layarnya 80*25. (karena 0-24) MAX_COL EQU 79 ;kolom maksimum, yaitu 79 offset. Didapatkan dari hitungan layar 80*25 (karena 0-79) max_bod equ 100 ; deklarasi maksimum panjangnya adalah 100 empty_pixel equ 0000h ;sebagai pixel kosong untuk ditulis ke memori CURRENT_KURSOR_KEPALA dw 0000h ;posisi kursor kepala, lebih tepat alamatnya USER_INPUT DB 0 ;sebagai flag apakah ada input atau tidak WAKTU DB 2 ;untuk pewaktuan bod_size db 1 ;inisialisasi ukuran badan awalnya sebesar 1 en_bomb db 1 ;flag untuk menyalakan bomb food dw 10h ;untuk alamat food bomb dw 20h ;untuk alamat bomb CURRENT_HEAD DW max_bod dup (0h) ;menyimpan posisi kursor sekarang, high byte baris, low byte kolom .code delay_not proc ; Pengaturan jeda antar not MOV CX, 01H MOV DX, 120H MOV AH, 86H INT 15H ret endp ; Pengaturan setiap nada yang digunakan do proc mov ax, 4560 mov nada, ax call sounder endp ret re proc mov ax, 4063 mov nada, ax call sounder ret endp mi proc mov ax, 3619 mov nada, ax call sounder ret endp fa proc mov ax, 3416 mov nada, ax call sounder ret endp sol proc mov ax, 3043 mov nada, ax call sounder ret endp ; pengaturan keluarnya bunyi di speaker sounder: mov al,10110110b out 43h,al ; menyalakan port 43 mov ax,nada out 42h,al mov al,ah out 42h,al in al,61h or al,00000011b out 61h,al call delay and al,11111100b out 61h,al ret ;pengaturan waktu saat nada dibunyikan delay: ;delay untuk bunyi suara mov ah,00h int 01Ah ; single step interrupt add dx,waktu_var mov bx,dx pozz: int 01Ah cmp dx,bx jl pozz ret init proc near ;procedur untuk mereset variable ke nilai awal pusha mov bawah,0 mov atas, 0 mov kanan, 01h mov kiri, 0 mov berhenti, 0 mov mati, 0 mov skor, 0 mov baris_now, 0 mov kolom_now, 0 mov target_geser_baris,0 mov target_geser_kolom, 0 mov current_kursor_kepala,0 mov user_input, 0 mov bod_size, 1 mov cx, max_bod mov di, 0 ulangi_init: mov current_head[di],0 ;Kosongkan isi badan ular inc di inc di loop ulangi_init ;lakukan sebanyak panjang maksimum badannya popa ret init endp special_clrscreen proc near ;clearscreen except the upper interface pusha mov al, offset_atas mov dl, 160 mul dl mov bx, ax ;beginning code to clear any scree except the first row mov cx, 1920 ;approximately pixel to clear is 1920pixel mov di, 0 ;index to memory video gege: mov word ptr ES:[bx+di], EMPTY_PIXEL ;write the memory 0000h to clear it INC di INC di ;increase 2 because it's word loop gege ;loop again until screen is cleared ;end of code popa ret special_clrscreen endp tampilkan_score proc near ;prosedur untuk menampilkan score dan tulisan petunjuk pusha mov ax, 0b800h ;make sure es is 0B800H mov es, ax mov cx, 80 ;set cx 80, cause it's only need to erase first row mov bx, 0000 ;base address to the interface mov di,0 bersihkan: ;this is rutin to clear the upper interface mov word ptr es:[bx+di], 0700H ;write 0700H untuk menghasilkan pixel kosong dan bisa ditulis dengan interrupt lain inc di inc di loop bersihkan ;this is rutin to set cursor to first position mov dl, 0 mov dh, 0 mov ah, 02h ;use service 02h mov bh, 00h ;on page 0 int 10h mov CNT_SKOR, 0 ;inisialisasi variabel CNT_SKOR bernilai 0 mov ah, 09h lea dx, tulisan ;cetak tulisan petunjuk keluar program int 21h mov ah, 09h lea dx, tulisanskor ;cetak tulisan score int 21h mov ax, SKOR ;simpan isi score di ax mov dl, 10 ;sebagai pembagi untuk mendapatkan digit dari score simpan_stack: ;rutin untuk mendapatkan semua digit ke stack div dl ;bagi skor dengan nilai 10 INC CNT_SKOR ;increment CNT_SKOR untuk menambah digit skor mov dh, al ;selamatkan hasil bagi ke dh mov al, ah ;isi al dengan sisa bagi untuk digit terakhir mov ah, 00h ;isi high byte dengan 0 or ax, 0030h ;or kan untuk mendapatkan nilai ascii push ax ;simpan nilai ascii ke stack (karena dari LSB dulu) mov al, dh ;kembalikan hasil bagi ke al mov ah, 00h ;pastikan ah 0 agar tidak ada masalah cmp al, 0 ;cek apakah hasil bagi 0 atau tidak, jika 0 pasti dia MSB nya sehingga sudah semua digit disimpan di stack jne simpan_stack ;jika sudah sampai msb berhenti dari rutin or al,30h ;or kan nilai msb agar menjadi ascii push ax ;masukkan ke stack sehingga stack sudah berisi nilai score dalam ascii dan siap cetak INC CNT_SKOR ;increment nilai untuk menambah digit karena ada masuk nilai MSB nya mov cl, CNT_SKOR ;pindahkan panjang digit ke cx untuk looping sebanyak digit mov ch, 00h ulang_tampil: ;rutin untuk menampilkan digit pop dx ;keluarkan dari MSB ke LSB mov ah, 02h ;panggil int 21h dengan fungsi 02h untuk mencetak karakter di dl int 21h loop ulang_tampil ;lakukan sebanyak jumlah digit popa ret tampilkan_score endp PERIKSA macro CURVAL, MAXVAL, MINVAL, TARGET_GESER local ujung ; create local label local akhir pusha mov al , CURVAL cmp al, MAXVAL ;Jika nilai posisi sekarang adalah maksnya, maka dia ada di titik akhir je UJUNG ;dan harus di geser ke titik awal jmp akhir UJUNG: mov al,MINVAL ;jika posisi di titik akhir maka, update posisi ke titik awal lagi mov TARGET_GESER, al akhir: popa endm gen_rand macro which local spawn_check local retry_spawn pusha retry_spawn: mov ah, 0h int 1ah mov al, dl ;for column mov ah, 0 mov cx, MAX_COL div cl mov dl, ah ;end column calculation push dx ;save dx mov ah, 0h int 1ah mov al, dl ;for row mov ah, 0 mov cx, MAX_ROW div cl ;end row calculation pop dx mov dh, ah inc dh mov which, dx ;check if collide with bod mov al, bod_size mov ah, 0 mov dl, 2 mul dl mov di,ax add di, 2 spawn_check: sub di, 2 mov dx, current_head[di] cmp which, dx je retry_spawn cmp di, 0 ja spawn_check ;check if food collide with bomb mov dx, food cmp bomb, dx je retry_spawn popa endm masukan proc near pusha mov ah, 01h int 16h jz keluar_bantuan ; use helper to jump mov ah, 00h int 16h mov USER_INPUT, 1 mov dl, 1 cmp al, 'w' ;if w is pressed then go up je masukan_atas cmp al, 'a' ;if a is pressed, go left je masukan_kiri cmp al, 's' ;if s is pressed, go down je masukan_bawah cmp al, 'd' ;if a is pressed, go left je masukan_kanan CMP AL, 'q' ; if q pressed immediately exit JE masukan_berhenti_bantuan keluar_bantuan: ;helper to jump to keluar JMP keluar masukan_atas: cmp bawah, 1 je keluar mov bawah,0 mov kiri,0 mov kanan, 0 mov atas, 1 jmp keluar masukan_berhenti_bantuan: ;this is label to help for jump purpose jmp masukan_berhenti masukan_bawah: cmp atas, 1 je keluar mov atas,0 mov kiri,0 mov kanan,0 mov bawah, 1 jmp keluar masukan_kiri: cmp kanan, 1 je keluar mov atas, 0 mov bawah, 0 mov kanan,0 mov kiri,1 jmp keluar masukan_kanan: cmp kiri, 1 je keluar mov atas, 0 mov bawah, 0 mov kiri,0 mov kanan, 1 jmp keluar masukan_berhenti: mov BERHENTI, 1 jmp keluar keluar: popa ret masukan endp delay1 proc pusha mov ah, 00 int 1Ah mov bx, dx jmp_delay: call masukan ;cek input cmp BERHENTI, 1 je akhir_delay1 int 1Ah sub dx, bx cmp dl, WAKTU ;menentukan kecepatan gerak ular jl jmp_delay akhir_delay1: popa ret delay1 endp CLRSCR proc near ;prosedur untuk membersihkansatu layar full pusha mov ah, 00h mov al, 03h ;jalankan interrupt 10h dengan fungsi 0003h int 10h popa ret clrscr endp update_position proc near pusha ;check if collide with food mov dx, current_head cmp food, dx je yumfood cmp bomb, dx ;check if collide bomb je ohnoes_helper ;you dead jmp nofood ohnoes_helper: jmp ohnoes yumfood: ;not collided and eat food call do call sol call delay_not gen_rand food inc bod_size ;increase body size inc SKOR ;increase skor call tampilkan_score ;update new skor back_pls: ;update bomb and food position gen_rand bomb jmp cont_pls ohnoes: inc MATI jmp yunojmp cont_pls: gen_rand food nofood: mov al, bod_size mov ah, 0 mov cl, 2 mul cl mov bx, ax add bx, 2 tails: mov cx, current_head[bx-2] mov current_head[bx], cx sub bx, 2 cmp bx, 2 jae tails cmp kiri,1 je kekiri cmp kanan,1 je kekanan cmp atas,1 je keatas cmp bawah,1 je kebawah jmp keluar_upda kekiri: DEC TARGET_GESER_KOLOM ;geser target kekiri periksa KOLOM_NOW,MIN_COL,MAX_COL,TARGET_GESER_KOLOM ;memastikan target didalam area mov gambar_head, 0B411H jmp keluar_upda kekanan: INC TARGET_GESER_KOLOM mov gambar_head, 0B410H periksa KOLOM_NOW,MAX_COL,MIN_COL,TARGET_GESER_KOLOM ;gunakan macro periksa untuk memastikan ular tetap di area window jmp keluar_upda keatas: DEC TARGET_GESER_BARIS mov gambar_head, 0B41EH periksa BARIS_NOW,MIN_ROW,MAX_ROW,TARGET_GESER_BARIS ;gunakan macro periksa untuk memastikan ular tetap di area window jmp keluar_upda yunojmp: jmp okdone kebawah: INC TARGET_GESER_BARIS mov gambar_head, 0B41fH periksa BARIS_NOW,MAX_ROW,MIN_ROW,TARGET_GESER_BARIS ;gunakan macro periksa untuk memastikan ular tetap di area window jmp keluar_upda keluar_upda: mov dl, target_geser_kolom mov dh, target_geser_baris mov KOLOM_NOW, DL ;UPDATE POSISI TARGET MENJADI POSISI SEKARANG MOV BARIS_NOW, DH mov current_head, dx okdone: popa ret update_position endp gambar_ular proc near pusha mov di, 0000h snakes: ;loop to print snake mov dx, 0000H mov ax, 0000h mov bx, di mov cx, current_head[di] mov al, offset_atas ;hitung alamat yang mau dimasukkan gambar add al, ch mov dl, 160 mul dl mov bx, ax mov ah, 00h mov al, cl ;hitung kolomnya mov dl, 2 mul dl add bx, ax cmp di, 0 je kepala mov dx,GAMBAR_EKOR jmp lompat kepala: mov dx, gambar_head mov CURRENT_KURSOR_KEPALA, bx lompat: mov es:[bx], dx add di, 2 mov al, bod_size mov ah, 0 mov cx, 2 mul cx cmp di, ax jb snakes ;end of printing snake mov cx, food ;ambil target kolom dan baris dari food mov al, offset_atas ;ambil offset_atas dari perhitungan add al, ch ;tambahkan offset_atas dengan posisi baris dari food mov dl, 160 ;kalikan dengan 0AH mul dl mov bx, ax ;pindahkan hasilnya ke bx mov ah, 00h ;isi highbyte dengan nol mov al, cl ;ambil nilai kolom mov dl, 2 ;kalikan dengan 2, karena satu kolom di dua kotak memori mul dl add bx, ax ;pindahkan hasilnya ke bx mov dx, food_pic ;ambil bentuk karakter dan warna nya dari variable food pic mov es:[bx], dx ;end of printing food mov cx, bomb ;print bomb mov al, offset_atas ;hitung alamat yang mau dimasukkan gambar add al, ch mov dl, 160 mul dl mov bx, ax mov ah, 00h mov al, cl ;print gambar di layar mov dl, 2 mul dl add bx, ax mov dx, bomb_pic mov es:[bx], dx ;end of printing bomb ;start rutin to cek is head colliding bomb or it's tails push ax push bx mov bx, CURRENT_KURSOR_KEPALA mov ax, ES:[bx] cmp ax, 0A4FEH pop BX pop ax jne tidakmati mov MATI, 1 ;end of routine tidakmati: popa ret gambar_ular endp game proc near ;prosedur untuk memainkan game snake pusha ;save all register mov ax, 0h mov current_head, ax gen_rand food ;mov BX,offset KANAN CALL CLRSCR mov ax, 0b800h mov es, ax ;set es to 0B800H (For Video memory) call tampilkan_score ulangi: call special_clrscreen CALL GAMBAR_ULAR cmp MATI, 1 je sudah_meninggal CALL DELAY1 cmp user_input, 1 je skip CALL MASUKAN skip: mov user_input, 0 CALL UPDATE_POSITION cmp berhenti, 0 je ulangi jmp setopp sudah_meninggal: mov waktu_var, 5 call sol call sol call delay_not call delay_not call fa call mi call delay_not call delay_not call re call do call delay_not call delay_not mov waktu_var, 2 call CLRSCR mov ah, 09H lea dx, tulisan_mati ;print you dead int 21h mov ah,01H ;press any key to continue int 21h setopp:mov ah, 01H ;clear buffer int 16h popa ;return all register ret game endp .startup tampilmenu : mov ax, 0003H int 10H mov dx,0 lea dx, menu mov ah, 09H int 21h mov ah, 01H int 21h call clrscr cmp al,'1' mov waktu_var, 4 je mulai jne keluar_help mulai: call do call re call delay_not call delay_not call do call mi call delay_not call delay_not call do call fa call delay_not call delay_not call do call sol call delay_not call delay_not jmp lompatin_aja tampilmenu_helper: jmp tampilmenu lompatin_aja: call do call fa call delay_not call delay_not call do call mi call delay_not call delay_not call do call re call delay_not call delay_not jmp pelindung keluar_help: jmp keluar_menu pelindung: call do call do call delay_not call delay_not mov ax, 0003H int 10H mov dx,0 lagidongboy: mov ah,01H int 16h jz skipaja mov ah,00H int 16h jmp lagidongboy skipaja: lea dx, instruksi mov ah, 09H int 21h mov ah, 01H mov waktu_var, 2 int 21h cmp al,'Q' je tampilmenu_helper call game call init jmp tampilmenu keluar_menu: mov ax, 0003H int 10H mov dx,0 lea dx, psnexit mov ah, 09H int 21h .EXIT end
27.583859
215
0.557785
89bd5ddc3f08dbd1731b694582c79eea7fb799ee
559
asm
Assembly
Working Disassembly/Levels/SOZ/Misc Object Data/Map - Swinging Platform.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
5
2021-07-09T08:17:56.000Z
2022-02-27T19:57:47.000Z
Working Disassembly/Levels/SOZ/Misc Object Data/Map - Swinging Platform.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
null
null
null
Working Disassembly/Levels/SOZ/Misc Object Data/Map - Swinging Platform.asm
TeamASM-Blur/Sonic-3-Blue-Balls-Edition
7e8a2c5df02271615ff4cae529521e6b1560d6b1
[ "Apache-2.0" ]
null
null
null
dc.w word_416CC-Map_SOZSwingingPlatform dc.w word_416EC-Map_SOZSwingingPlatform dc.w word_416F4-Map_SOZSwingingPlatform word_416CC: dc.w 4 ; DATA XREF: ROM:000416C6o dc.b $F0, $D, $18, $10, $FF, $E0 dc.b $F0, $D, $10, $10, 0, 0 dc.b 0, 9, $10, $18, $FF, $E8 dc.b 0, 9, $18, $18, 0, 0 dc.b $31, $7C, 3, $C9, 0, $A word_416EC: dc.w 1 ; DATA XREF: ROM:000416C6o dc.b $F8, 5, 3, $C8, $FF, $F8 word_416F4: dc.w 2 ; DATA XREF: ROM:000416C6o dc.b $F0, 7, 3, $CC, $FF, $F0 dc.b $F0, 7, $B, $CC, 0, 0
37.266667
48
0.552773
f4836bafa034f207414c1caac2d2e70bcf24ed8f
1,163
asm
Assembly
programs/oeis/192/A192962.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/192/A192962.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/192/A192962.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A192962: Constant term of the reduction by x^2 -> x+1 of the polynomial p(n,x) defined at Comments. ; 1,2,7,15,30,55,97,166,279,463,762,1247,2033,3306,5367,8703,14102,22839,36977,59854,96871,156767,253682,410495,664225,1074770,1739047,2813871,4552974,7366903,11919937,19286902,31206903,50493871,81700842,132194783,213895697,346090554,559986327,906076959,1466063366,2372140407,3838203857,6210344350,10048548295,16258892735,26307441122,42566333951,68873775169,111440109218,180313884487,291753993807,472067878398,763821872311,1235889750817,1999711623238,3235601374167,5235312997519,8470914371802,13706227369439,22177141741361,35883369110922,58060510852407,93943879963455,152004390815990,245948270779575,397952661595697,643900932375406,1041853593971239,1685754526346783,2727608120318162,4413362646665087,7140970766983393 mov $11,$0 mov $13,$0 add $13,1 lpb $13 clr $0,11 mov $0,$11 sub $13,1 sub $0,$13 mov $2,$0 mov $3,1 lpb $2 sub $2,1 add $3,1 mov $8,$3 mov $3,1 add $3,$9 div $3,2 add $3,1 mov $6,1 add $8,1 mul $8,2 trn $9,1 add $6,$9 mov $9,$6 add $9,$8 lpe add $12,$3 lpe mov $1,$12
35.242424
716
0.743766
b63ebec2679d1c53d00dbf6a3816172c3e11e7a1
581
asm
Assembly
oeis/062/A062731.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/062/A062731.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/062/A062731.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A062731: Sum of divisors of 2*n. ; Submitted by Christian Krause ; 3,7,12,15,18,28,24,31,39,42,36,60,42,56,72,63,54,91,60,90,96,84,72,124,93,98,120,120,90,168,96,127,144,126,144,195,114,140,168,186,126,224,132,180,234,168,144,252,171,217,216,210,162,280,216,248,240,210,180,360,186,224,312,255,252,336,204,270,288,336,216,403,222,266,372,300,288,392,240,378,363,294,252,480,324,308,360,372,270,546,336,360,384,336,360,508,294,399,468,465 add $0,1 mov $1,$0 mul $0,2 mov $2,$0 lpb $1 mov $3,$2 dif $3,$1 cmp $3,$2 cmp $3,0 mul $3,$1 add $0,$3 sub $1,1 lpe add $0,1
30.578947
372
0.667814
e82621e87bf9be7bd9d9ab1b0954dea7eb0443a1
3,235
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_1_867.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_1_867.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_1_867.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r15 push %rbx push %rcx push %rdi push %rsi lea addresses_WC_ht+0x1c1a6, %r15 lfence mov $0x6162636465666768, %r12 movq %r12, %xmm6 vmovups %ymm6, (%r15) nop sub %r14, %r14 lea addresses_D_ht+0x2626, %rsi lea addresses_normal_ht+0xe5a6, %rdi nop nop nop cmp %rbx, %rbx mov $42, %rcx rep movsb nop nop nop nop and $26601, %r14 lea addresses_UC_ht+0x86c, %r15 inc %r14 movl $0x61626364, (%r15) nop nop nop nop nop and $21349, %rbx lea addresses_A_ht+0xada6, %rbx nop nop nop xor %r12, %r12 movb (%rbx), %cl xor %r14, %r14 lea addresses_WC_ht+0x15626, %rbx nop nop nop nop nop sub %rsi, %rsi mov (%rbx), %di nop xor %rcx, %rcx lea addresses_A_ht+0x5626, %rcx nop nop nop add $27525, %r12 mov (%rcx), %esi nop nop nop nop xor %r12, %r12 lea addresses_WC_ht+0x84ec, %r12 nop dec %rsi mov (%r12), %ebx nop dec %r15 pop %rsi pop %rdi pop %rcx pop %rbx pop %r15 pop %r14 pop %r12 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %r8 push %r9 push %rbx push %rsi // Store lea addresses_WT+0x1b790, %r11 nop nop nop add %r12, %r12 movb $0x51, (%r11) nop nop nop sub $20940, %r9 // Store mov $0x70cc8000000008a6, %rsi nop nop nop nop cmp $14234, %r13 movw $0x5152, (%rsi) nop sub %r12, %r12 // Store lea addresses_A+0x5ea6, %r8 cmp %rsi, %rsi mov $0x5152535455565758, %r13 movq %r13, %xmm6 movups %xmm6, (%r8) nop nop nop inc %rsi // Faulty Load lea addresses_RW+0xe5a6, %r9 nop add %rbx, %rbx mov (%r9), %r11d lea oracles, %r13 and $0xff, %r11 shlq $12, %r11 mov (%r13,%r11,1), %r11 pop %rsi pop %rbx pop %r9 pop %r8 pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 7, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_RW', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'32': 1} 32 */
19.72561
152
0.641113
72a5b73547741cc412080bb40bb79d47e38ad106
694
asm
Assembly
oeis/161/A161729.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/161/A161729.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/161/A161729.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A161729: a(n) = ((4+sqrt(3))*(8+2*sqrt(3))^n-(4-sqrt(3))*(8-2*sqrt(3))^n)/(2*sqrt(3)). ; Submitted by Jon Maiga ; 1,16,204,2432,28304,326400,3750592,43036672,493555968,5658988544,64878906368,743795097600,8527018430464,97754949812224,1120674238611456,12847530427547648,147285426432966656,1688495240694988800,19357081676605554688,221911554309549457408,2544016621769302474752,29164865124212267810816,334348977655392556285952,3833010656027242974412800,43942023658355474663735296,503755824420270959950299136,5775107960489850676690550784,66206424497983520909633257472,758997178022264099366223478784 mov $3,1 lpb $0 sub $0,1 add $2,$3 mul $3,4 sub $3,$2 mul $2,13 lpe add $3,$2 mov $0,$3
46.266667
480
0.806916
c4e0444ab9794ebc46a623fcc8c3fc95475ab4a9
839
asm
Assembly
oeis/266/A266049.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/266/A266049.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/266/A266049.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A266049: Number of n X 2 integer arrays with each element equal to the number of horizontal and antidiagonal neighbors less than or equal to itself. ; Submitted by Christian Krause ; 3,7,35,176,819,3927,18711,89179,425184,2026855,9662395,46062279,219586403,1046805072,4990293595,23789558831,113408780759,540638504187,2577313596096,12286482224079,58571702593459,279221040017415,1331093100178915,6345542016588784,30250253328547203,144207984762998087,687463428604767255,3277252410438530011,15623206871561400224,74478423503224283447,355051022055067594731,1692587226378264039879,8068844591171273866659,38465523089043918758800,183371540967923454027435,874162609438898446420639 mul $0,2 add $0,1 seq $0,196537 ; Number of nX1 0..4 arrays with each element equal to the number its horizontal and vertical neighbors less than or equal to itself
104.875
489
0.864124
8a66066a29e5320197dec32c617a0d697b27fad7
6,645
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i9-9900K_12_0xca.log_21829_8.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i9-9900K_12_0xca.log_21829_8.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i9-9900K_12_0xca.log_21829_8.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 %r8 push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x301b, %r13 nop nop xor %rdx, %rdx mov (%r13), %rcx nop cmp $17576, %rdi lea addresses_WC_ht+0xcf0f, %rsi lea addresses_UC_ht+0x1e70f, %rdi clflush (%rdi) nop nop nop nop cmp $14921, %r8 mov $18, %rcx rep movsq cmp $30289, %rcx lea addresses_WC_ht+0xc08f, %r8 nop and $14510, %r15 movups (%r8), %xmm3 vpextrq $0, %xmm3, %rdi nop nop nop sub $25372, %r15 lea addresses_A_ht+0x1b187, %rdx nop nop nop nop dec %r13 and $0xffffffffffffffc0, %rdx movaps (%rdx), %xmm0 vpextrq $1, %xmm0, %rdi nop nop nop nop add $250, %rdi lea addresses_normal_ht+0x1618f, %r15 nop cmp $36367, %rdx mov $0x6162636465666768, %rsi movq %rsi, (%r15) nop nop nop nop and %rsi, %rsi lea addresses_WC_ht+0x8f0f, %rsi lea addresses_UC_ht+0x10ecf, %rdi nop nop nop nop inc %r14 mov $57, %rcx rep movsw nop nop nop dec %r14 lea addresses_WT_ht+0x1563f, %rsi lea addresses_A_ht+0x140f, %rdi sub %r8, %r8 mov $3, %rcx rep movsw nop nop nop nop cmp $2337, %r15 lea addresses_UC_ht+0xd3bb, %rcx dec %r15 mov (%rcx), %r14 add %rcx, %rcx lea addresses_UC_ht+0x1bcd3, %r15 nop sub %rsi, %rsi movl $0x61626364, (%r15) nop nop dec %r14 lea addresses_UC_ht+0x9c0f, %rsi add $12481, %r15 movb (%rsi), %r8b and $34809, %rdi lea addresses_UC_ht+0x4d5f, %rdx add $63388, %rsi movl $0x61626364, (%rdx) nop add %rcx, %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %r8 pop %r15 pop %r14 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r14 push %rdx push %rsi // Faulty Load lea addresses_normal+0x1f70f, %r11 nop nop nop nop nop add $4609, %r10 movaps (%r11), %xmm7 vpextrq $1, %xmm7, %rsi lea oracles, %rdx and $0xff, %rsi shlq $12, %rsi mov (%rdx,%rsi,1), %rsi pop %rsi pop %rdx pop %r14 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_normal', 'same': True, 'AVXalign': True, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 10}, 'dst': {'same': True, 'type': 'addresses_UC_ht', 'congruent': 8}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_WC_ht', 'same': True, 'AVXalign': False, 'congruent': 5}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': True, 'type': 'addresses_A_ht', 'same': True, 'AVXalign': True, 'congruent': 2}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 7}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 11}, 'dst': {'same': True, 'type': 'addresses_UC_ht', 'congruent': 5}} {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 4}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 8}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': True, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': True, 'congruent': 1}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': True, 'congruent': 8}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 4}} {'45': 3762, '00': 18067} 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 45 00 00 00 45 00 00 00 45 00 00 00 00 00 00 00 00 45 00 00 00 45 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 45 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 45 00 00 00 00 45 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 00 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 45 00 00 00 45 00 00 00 45 00 00 00 45 00 00 00 00 00 00 00 45 00 00 00 00 45 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 45 00 00 00 45 45 00 00 00 45 00 00 00 00 45 00 00 00 45 00 00 00 45 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 45 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 45 00 00 00 00 00 00 00 00 45 00 00 00 00 45 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 45 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 00 00 00 00 45 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 45 00 00 00 45 00 00 00 00 45 00 00 00 00 00 00 00 45 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 45 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 45 00 00 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 00 00 00 00 00 45 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 45 00 00 00 45 00 00 00 45 00 00 00 00 00 00 00 00 00 00 45 00 00 00 45 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 45 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 45 00 00 00 45 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 45 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 45 00 00 00 00 00 45 00 00 00 00 45 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 45 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 45 00 00 00 00 45 00 00 00 45 00 00 45 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 45 00 00 45 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 45 00 00 00 45 00 00 00 45 00 00 00 00 00 45 00 00 00 00 00 00 00 45 00 00 00 45 00 00 00 45 00 45 00 00 45 00 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 00 00 00 45 00 00 00 45 00 00 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 45 00 00 00 00 00 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 00 00 45 00 00 */
39.790419
2,999
0.657186
db3bed1ea0552fb729095b04d922948501a5e2e2
5,504
asm
Assembly
Appl/Art/Decks/GeoDeck/LMSpadeT.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Appl/Art/Decks/GeoDeck/LMSpadeT.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Appl/Art/Decks/GeoDeck/LMSpadeT.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
LMSpadeT label byte word C_BLACK Bitmap <71,100,BMC_PACKBITS,BMF_MONO> db 0xf8, 0x00 db 0xf8, 0x00 db 0xf8, 0x00 db 0xf8, 0x00 db 0x01, 0x18, 0x78, 0xfa, 0x00 db 0x01, 0x18, 0xfc, 0xfc, 0x00, 0x01, 0x04, 0x00 db 0x01, 0x19, 0xce, 0xfc, 0x00, 0x01, 0x0e, 0x00 db 0x01, 0x19, 0x86, 0xfc, 0x00, 0x01, 0x17, 0x00 db 0x01, 0x19, 0x86, 0xfc, 0x00, 0x01, 0x2f, 0x80 db 0x01, 0x19, 0x86, 0xfc, 0x00, 0x01, 0x5f, 0xc0 db 0x01, 0x19, 0x86, 0xfc, 0x00, 0x01, 0x7f, 0xc0 db 0x08, 0x19, 0x86, 0x00, 0x80, 0x00, 0x02, 0x00, 0x7f, 0xc0 db 0x08, 0x19, 0x86, 0x01, 0xc0, 0x00, 0x07, 0x00, 0x35, 0x80 db 0x08, 0x19, 0x86, 0x03, 0xe0, 0x00, 0x0f, 0x80, 0x0e, 0x00 db 0x08, 0x19, 0x86, 0x06, 0xf0, 0x00, 0x1b, 0xc0, 0x1f, 0x00 db 0x08, 0x19, 0x86, 0x0d, 0xf8, 0x00, 0x37, 0xe0, 0x00, 0x00 db 0x08, 0x19, 0xce, 0x1b, 0xfc, 0x00, 0x6f, 0xf0, 0x00, 0x00 db 0x08, 0x18, 0xfc, 0x17, 0xfc, 0x00, 0x5f, 0xf0, 0x00, 0x00 db 0x08, 0x18, 0x78, 0x3f, 0xfe, 0x00, 0xff, 0xf8, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x3f, 0xfe, 0x00, 0xff, 0xf8, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x3f, 0xfe, 0x00, 0xff, 0xf8, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x3e, 0xbe, 0x00, 0xfa, 0xf8, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x1c, 0x9c, 0x00, 0x72, 0x70, 0x00, 0x00 db 0x05, 0x00, 0x00, 0x01, 0xc0, 0x10, 0x07, 0xfe, 0x00 db 0x08, 0x00, 0x00, 0x03, 0xe0, 0x38, 0x0f, 0x80, 0x00, 0x00 db 0xfd, 0x00, 0x00, 0x7c, 0xfd, 0x00 db 0xfd, 0x00, 0x00, 0xde, 0xfd, 0x00 db 0xfe, 0x00, 0x01, 0x01, 0xbf, 0xfd, 0x00 db 0xfe, 0x00, 0x02, 0x03, 0x7f, 0x80, 0xfe, 0x00 db 0xfe, 0x00, 0x02, 0x02, 0xff, 0x80, 0xfe, 0x00 db 0xfe, 0x00, 0x02, 0x07, 0xff, 0xc0, 0xfe, 0x00 db 0xfe, 0x00, 0x02, 0x07, 0xff, 0xc0, 0xfe, 0x00 db 0xfe, 0x00, 0x02, 0x07, 0xff, 0xc0, 0xfe, 0x00 db 0xfe, 0x00, 0x02, 0x87, 0xd7, 0xc2, 0xfe, 0x00 db 0x05, 0x00, 0x00, 0x01, 0xc3, 0x93, 0x87, 0xfe, 0x00 db 0x08, 0x00, 0x00, 0x03, 0xe0, 0x38, 0x0f, 0x80, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x06, 0xf0, 0x7c, 0x1b, 0xc0, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x0d, 0xf8, 0x00, 0x37, 0xe0, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x1b, 0xfc, 0x00, 0x6f, 0xf0, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x17, 0xfc, 0x00, 0x5f, 0xf0, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x3f, 0xfe, 0x00, 0xff, 0xf8, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x3f, 0xfe, 0x00, 0xff, 0xf8, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x3f, 0xfe, 0x00, 0xff, 0xf8, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x3e, 0xbe, 0x00, 0xfa, 0xf8, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x1c, 0x9c, 0x00, 0x72, 0x70, 0x00, 0x00 db 0x05, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x07, 0xfe, 0x00 db 0x08, 0x00, 0x00, 0x03, 0xe0, 0x00, 0x0f, 0x80, 0x00, 0x00 db 0xf8, 0x00 db 0xf8, 0x00 db 0xf8, 0x00 db 0xf8, 0x00 db 0xf8, 0x00 db 0xf8, 0x00 db 0x08, 0x00, 0x00, 0x03, 0xe0, 0x00, 0x0f, 0x80, 0x00, 0x00 db 0x05, 0x00, 0x00, 0x01, 0xc0, 0x00, 0x07, 0xfe, 0x00 db 0x08, 0x00, 0x00, 0x1c, 0x9c, 0x00, 0x72, 0x70, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x36, 0xb6, 0x00, 0xda, 0xd8, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x2f, 0xee, 0x00, 0xbf, 0xb8, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x3f, 0xfe, 0x00, 0xff, 0xf8, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x3f, 0xfe, 0x00, 0xff, 0xf8, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x1f, 0xfc, 0x00, 0x7f, 0xf0, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x1f, 0xfc, 0x00, 0x7f, 0xf0, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x0f, 0xf8, 0x00, 0x3f, 0xe0, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x07, 0xf0, 0x7c, 0x1f, 0xc0, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x03, 0xe0, 0x38, 0x0f, 0x80, 0x00, 0x00 db 0x05, 0x00, 0x00, 0x01, 0xc3, 0x93, 0x87, 0xfe, 0x00 db 0xfe, 0x00, 0x02, 0x86, 0xd6, 0xc2, 0xfe, 0x00 db 0xfe, 0x00, 0x02, 0x05, 0xfd, 0xc0, 0xfe, 0x00 db 0xfe, 0x00, 0x02, 0x07, 0xff, 0xc0, 0xfe, 0x00 db 0xfe, 0x00, 0x02, 0x07, 0xff, 0xc0, 0xfe, 0x00 db 0xfe, 0x00, 0x02, 0x03, 0xff, 0x80, 0xfe, 0x00 db 0xfe, 0x00, 0x02, 0x03, 0xff, 0x80, 0xfe, 0x00 db 0xfe, 0x00, 0x01, 0x01, 0xff, 0xfd, 0x00 db 0xfd, 0x00, 0x00, 0xfe, 0xfd, 0x00 db 0xfd, 0x00, 0x00, 0x7c, 0xfd, 0x00 db 0x08, 0x00, 0x00, 0x03, 0xe0, 0x38, 0x0f, 0x80, 0x00, 0x00 db 0x05, 0x00, 0x00, 0x01, 0xc0, 0x10, 0x07, 0xfe, 0x00 db 0x08, 0x00, 0x00, 0x1c, 0x9c, 0x00, 0x72, 0x70, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x36, 0xb6, 0x00, 0xda, 0xd8, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x2f, 0xee, 0x00, 0xbf, 0xb8, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x3f, 0xfe, 0x00, 0xff, 0xf8, 0x00, 0x00 db 0x08, 0x00, 0x00, 0x3f, 0xfe, 0x00, 0xff, 0xf8, 0x3c, 0x30 db 0x08, 0x00, 0x00, 0x1f, 0xfc, 0x00, 0x7f, 0xf0, 0x7e, 0x30 db 0x08, 0x00, 0x00, 0x1f, 0xfc, 0x00, 0x7f, 0xf0, 0xe7, 0x30 db 0x08, 0x00, 0x00, 0x0f, 0xf8, 0x00, 0x3f, 0xe0, 0xc3, 0x30 db 0x08, 0x01, 0xf0, 0x07, 0xf0, 0x00, 0x1f, 0xc0, 0xc3, 0x30 db 0x08, 0x00, 0xe0, 0x03, 0xe0, 0x00, 0x0f, 0x80, 0xc3, 0x30 db 0x08, 0x03, 0x58, 0x01, 0xc0, 0x00, 0x07, 0x00, 0xc3, 0x30 db 0x08, 0x05, 0xec, 0x00, 0x80, 0x00, 0x02, 0x00, 0xc3, 0x30 db 0x01, 0x07, 0xfc, 0xfc, 0x00, 0x01, 0xc3, 0x30 db 0x01, 0x07, 0xfc, 0xfc, 0x00, 0x01, 0xc3, 0x30 db 0x01, 0x03, 0xf8, 0xfc, 0x00, 0x01, 0xc3, 0x30 db 0x01, 0x01, 0xf0, 0xfc, 0x00, 0x01, 0xc3, 0x30 db 0x01, 0x00, 0xe0, 0xfc, 0x00, 0x01, 0xe7, 0x30 db 0x01, 0x00, 0x40, 0xfc, 0x00, 0x01, 0x7e, 0x30 db 0xfa, 0x00, 0x01, 0x3c, 0x30 db 0xf8, 0x00 db 0xf8, 0x00 db 0xf8, 0x00 db 0xf8, 0x00
34.835443
53
0.629906
f9679c7a3d293874d575cbdc6fdb490fb02d8745
7,437
asm
Assembly
Transynther/x86/_processed/NC/_st_zr_un_sm_/i7-7700_9_0x48.log_21829_1675.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_st_zr_un_sm_/i7-7700_9_0x48.log_21829_1675.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_st_zr_un_sm_/i7-7700_9_0x48.log_21829_1675.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r13 push %r8 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0xb7ed, %rsi lea addresses_UC_ht+0x182dd, %rdi add $15976, %r8 mov $67, %rcx rep movsw nop nop nop nop nop dec %r10 lea addresses_WT_ht+0x1ecdd, %rdx nop nop xor %rdi, %rdi movb (%rdx), %r10b nop nop nop sub %rdi, %rdi lea addresses_D_ht+0x1269d, %r8 nop nop nop nop nop mfence movb (%r8), %dl cmp $49868, %rdx lea addresses_WC_ht+0x44e5, %rsi nop and %r10, %r10 movups (%rsi), %xmm6 vpextrq $1, %xmm6, %rdi nop nop nop sub $46408, %rsi lea addresses_WT_ht+0xdf61, %r8 add %rsi, %rsi movl $0x61626364, (%r8) nop nop sub $46129, %rdx lea addresses_D_ht+0x1e2bd, %rsi lea addresses_WC_ht+0x1ad55, %rdi nop nop nop nop nop cmp %rbx, %rbx mov $107, %rcx rep movsw nop nop nop nop xor $7876, %rbx lea addresses_D_ht+0xa2dd, %rsi lea addresses_UC_ht+0xda1d, %rdi nop nop nop add %rbx, %rbx mov $86, %rcx rep movsq nop add $2920, %rdx lea addresses_WT_ht+0xfcdd, %rsi lea addresses_A_ht+0x152dd, %rdi nop nop nop nop nop dec %r10 mov $83, %rcx rep movsq nop nop nop add $7295, %rcx lea addresses_D_ht+0x66dd, %rsi lea addresses_WT_ht+0x1d6dd, %rdi nop nop nop nop nop cmp %rdx, %rdx mov $42, %rcx rep movsq and %rdi, %rdi lea addresses_D_ht+0x1752d, %rsi lea addresses_WT_ht+0x27dd, %rdi nop nop nop xor %rbx, %rbx mov $74, %rcx rep movsq nop nop sub %rcx, %rcx lea addresses_normal_ht+0x1ee2d, %rcx nop nop nop nop add $34746, %rsi vmovups (%rcx), %ymm7 vextracti128 $1, %ymm7, %xmm7 vpextrq $0, %xmm7, %rbx nop nop nop nop cmp $44253, %rdx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r8 pop %r13 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r14 push %r8 push %rax push %rbp push %rdx // Store mov $0x14814d0000000add, %r13 nop nop nop nop xor %r8, %r8 mov $0x5152535455565758, %r11 movq %r11, (%r13) // Exception!!! nop mov (0), %rdx nop nop nop nop xor %rdx, %rdx // Store lea addresses_normal+0x13f1d, %r8 nop nop nop add $47993, %rax mov $0x5152535455565758, %r11 movq %r11, (%r8) nop nop nop nop nop dec %r11 // Faulty Load mov $0x14814d0000000add, %rbp nop nop and %r8, %r8 mov (%rbp), %rdx lea oracles, %r11 and $0xff, %rdx shlq $12, %rdx mov (%r11,%rdx,1), %rdx pop %rdx pop %rbp pop %rax pop %r8 pop %r14 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 6, 'size': 8, 'same': False, 'NT': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 6, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 5, 'size': 1, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 3, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 1, 'size': 4, 'same': False, 'NT': True}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': True}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 8, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 6, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 4, 'size': 32, 'same': False, 'NT': False}} {'58': 21540, '5f': 2, '00': 287} 58 58 58 58 58 58 58 58 58 58 58 58 00 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
32.90708
2,999
0.657658
4d72e166bb53333605010c267eb4a28d5263aef1
909
asm
Assembly
libsrc/cpc/firmware.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
null
null
null
libsrc/cpc/firmware.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
null
null
null
libsrc/cpc/firmware.asm
grancier/z180
e83f35e36c9b4d1457e40585019430e901c86ed9
[ "ClArtistic" ]
1
2019-12-03T23:57:48.000Z
2019-12-03T23:57:48.000Z
; ; Amstrad CPC Specific libraries ; ; Stefano Bodrato - May 2008 ; ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Firmware interposer ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; Used internally only ; ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ; ; ; $Id: firmware.asm,v 1.7 2016/06/19 21:13:26 dom Exp $ ; SECTION code_clib PUBLIC firmware EXTERN cpc_enable_fw_exx_set, cpc_enable_process_exx_set firmware: di call cpc_enable_fw_exx_set exx pop hl ; hl = return address ld e,(hl) inc hl ld d,(hl) inc hl push hl ; save return address ld hl,restore push hl push de ; save firmware address exx ei ret restore: di call cpc_enable_process_exx_set ei ret
15.947368
64
0.437844
5e5a3f947e1aefe69c0bb37ab4b80078da24e912
1,175
asm
Assembly
exercises/fasl6soal11.asm
amirshnll/assembly-exercises
473d970bfa48655b51ca238f961e434700f21ced
[ "MIT" ]
4
2019-11-17T02:35:34.000Z
2022-01-08T10:30:29.000Z
exercises/fasl6soal11.asm
amirshnll/assembly-exercises
473d970bfa48655b51ca238f961e434700f21ced
[ "MIT" ]
null
null
null
exercises/fasl6soal11.asm
amirshnll/assembly-exercises
473d970bfa48655b51ca238f961e434700f21ced
[ "MIT" ]
null
null
null
; multi-segment executable file template. data segment ; add your data here! pkey db 10, 13, "press any key...$" message db 10, 13, "Result : $" string db 300 dup("$") ends stack segment dw 128 dup(0) ends code segment start: ; set segment registers: mov ax, data mov ds, ax mov es, ax ; add your code here mov cx,1 mov si,0 for1: cmp cx, 300 jg endfor1 mov ah, 1h int 21h cmp al, 13 je endfor1 cmp al, 122 jg continue cmp al, 97 jge writing cmp al, 90 jg continue cmp al, 65 jge writing jmp continue writing: mov string[si], al inc si inc cx continue: jmp for1 endfor1: lea dx, message mov ah, 9 int 21h lea dx, string mov ah, 9 int 21h lea dx, pkey mov ah, 9 int 21h ; output string at ds:dx ; wait for any key.... mov ah, 1 int 21h mov ax, 4c00h ; exit to operating system. int 21h ends end start ; set entry point and stop the assembler.
14.329268
51
0.51234
5d30f10c87f03ff63389d05db97e62f4499cc4e1
2,826
asm
Assembly
programs/oeis/019/A019583.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/019/A019583.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/019/A019583.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A019583: a(n) = n*(n-1)^4/2. ; 0,0,1,24,162,640,1875,4536,9604,18432,32805,55000,87846,134784,199927,288120,405000,557056,751689,997272,1303210,1680000,2139291,2693944,3358092,4147200,5078125,6169176,7440174,8912512,10609215,12555000,14776336,17301504,20160657,23385880,27011250,31072896,35609059,40660152,46268820,52480000,59340981,66901464,75213622,84332160,94314375,105220216,117112344,130056192,144120025,159375000,175895226,193757824,213042987,233834040,256217500,280283136,306124029,333836632,363520830,395280000,429221071,465454584,504094752,545259520,589070625,635653656,685138114,737657472,793349235,852355000,914820516,980895744,1050734917,1124496600,1202343750,1284443776,1370968599,1462094712,1558003240,1658880000,1764915561,1876305304,1993249482,2115953280,2244626875,2379485496,2520749484,2668644352,2823400845,2985255000,3154448206,3331227264,3515844447,3708557560,3909630000,4119330816,4337934769,4565722392,4802980050,5050000000,5307080451,5574525624,5852645812,6141757440,6442183125,6754251736,7078298454,7414664832,7763698855,8125755000,8501194296,8890384384,9293699577,9711520920,10144236250,10592240256,11055934539,11535727672,12032035260,12545280000,13075891741,13624307544,14190971742,14776336000,15380859375,16005008376,16649257024,17314086912,17999987265,18707455000,19436994786,20189119104,20964348307,21763210680,22586242500,23433988096,24306999909,25205838552,26131072870,27083280000,28063045431,29070963064,30107635272,31173672960,32269695625,33396331416,34554217194,35743998592,36966330075,38221875000,39511305676,40835303424,42194558637,43589770840,45021648750,46490910336,47998282879,49544503032,51130316880,52756480000,54423757521,56132924184,57884764402,59680072320,61519651875,63404316856,65334890964,67312207872,69337111285,71410455000,73533102966,75705929344,77929818567,80205665400,82534375000,84916862976,87354055449,89846889112,92396311290,95003280000,97668764011,100393742904,103179207132,106026158080,108935608125,111908580696,114946110334,118049242752,121219034895,124456555000,127762882656,131139108864,134586336097,138105678360,141698261250,145365222016,149107709619,152926884792,156823920100,160800000000,164856320901,168994091224,173214531462,177518874240,181908364375,186384258936,190947827304,195600351232,200343124905,205177455000,210104660746,215126073984,220243039227,225456913720,230769067500,236180883456,241693757389,247309098072,253028327310,258852880000,264784204191,270823761144,276973025392,283233484800,289606640625,296094007576,302697113874,309417501312,316256725315,323216355000,330297973236,337503176704,344833575957,352290795480,359876473750,367592263296,375439830759,383420856952,391537036920,399790080000,408181709881,416713664664,425387696922,434205573760,443169076875,452280002616,461540162044,470951380992 mov $1,$0 sub $0,1 pow $0,4 mul $1,$0 div $1,2
314
2,746
0.896674
517455ca13634782e336b51395cbb456f2cf791b
4,730
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i9-9900K_12_0xca.log_21829_228.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i9-9900K_12_0xca.log_21829_228.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_ht_zr_/i9-9900K_12_0xca.log_21829_228.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x4f5b, %rsi lea addresses_A_ht+0x59eb, %rdi clflush (%rsi) nop xor %rdx, %rdx mov $60, %rcx rep movsq nop nop mfence lea addresses_D_ht+0x8d1b, %r9 nop and %r13, %r13 vmovups (%r9), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $0, %xmm6, %rcx nop nop add %rsi, %rsi lea addresses_A_ht+0x1ef5b, %rcx nop nop cmp %rsi, %rsi mov $0x6162636465666768, %r9 movq %r9, %xmm1 movups %xmm1, (%rcx) nop nop nop inc %rax pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r13 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r15 push %rbx push %rcx push %rdx // Faulty Load lea addresses_RW+0xdb5b, %rcx nop nop nop nop and $57364, %r14 vmovntdqa (%rcx), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $1, %xmm4, %r13 lea oracles, %r14 and $0xff, %r13 shlq $12, %r13 mov (%r14,%r13,1), %r13 pop %rdx pop %rcx pop %rbx pop %r15 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 8, 'NT': True, 'type': 'addresses_RW', 'same': True, 'AVXalign': False, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 32, 'NT': True, 'type': 'addresses_RW', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 5}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 4}} {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 9}} {'00': 19144, '46': 2685} 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 46 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 00 00 46 00 46 00 00 00 46 00 46 00 00 00 00 00 46 00 00 00 00 00 46 00 46 00 00 00 00 00 00 46 00 00 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 46 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 46 00 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 46 00 46 00 00 00 46 00 00 46 00 00 00 00 00 00 00 00 00 46 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 46 00 00 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 00 00 00 46 00 00 00 00 46 00 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 46 00 00 00 00 00 00 46 00 00 00 00 00 00 46 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 46 00 00 46 00 00 00 00 00 00 00 46 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 46 46 00 00 00 00 46 00 00 00 46 00 00 00 00 00 00 46 00 00 00 00 00 00 46 00 46 00 00 00 46 00 00 00 46 46 00 46 00 00 00 00 00 00 00 46 00 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 46 00 00 00 46 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 46 00 00 00 00 00 46 00 00 00 00 00 00 00 46 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 46 00 00 00 00 00 00 00 00 00 00 46 00 00 00 00 00 */
50.860215
2,999
0.661945
b769059868e046954353348536ee1f09ad90c602
7,416
asm
Assembly
P6/data_P6_2/cal_R_test24.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
1
2022-01-23T09:24:47.000Z
2022-01-23T09:24:47.000Z
P6/data_P6_2/cal_R_test24.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
P6/data_P6_2/cal_R_test24.asm
alxzzhou/BUAA_CO_2020
b54bf367081a5a11701ebc3fc78a23494aecca9e
[ "Apache-2.0" ]
null
null
null
lui $1,22077 ori $1,$1,20245 lui $2,64674 ori $2,$2,8539 lui $3,35519 ori $3,$3,32850 lui $4,55575 ori $4,$4,38373 lui $5,25713 ori $5,$5,20581 lui $6,34572 ori $6,$6,44794 mthi $1 mtlo $2 sec0: nop nop nop addu $4,$6,$2 sec1: nop nop or $2,$3,$3 addu $1,$6,$2 sec2: nop nop andi $2,$2,2405 addu $3,$6,$2 sec3: nop nop mfhi $2 addu $6,$6,$2 sec4: nop nop lhu $2,8($0) addu $1,$6,$2 sec5: nop addu $2,$4,$2 nop addu $3,$6,$2 sec6: nop slt $2,$1,$3 xor $2,$4,$2 addu $5,$6,$2 sec7: nop and $2,$6,$4 slti $2,$1,31229 addu $3,$6,$2 sec8: nop sltu $2,$3,$5 mflo $2 addu $1,$6,$2 sec9: nop addu $2,$3,$4 lw $2,16($0) addu $3,$6,$2 sec10: nop addiu $2,$1,-14436 nop addu $1,$6,$2 sec11: nop slti $2,$3,-15442 sltu $2,$5,$5 addu $2,$6,$2 sec12: nop ori $2,$4,19733 slti $2,$2,-18867 addu $3,$6,$2 sec13: nop xori $2,$0,14797 mflo $2 addu $4,$6,$2 sec14: nop slti $2,$5,-17035 lh $2,12($0) addu $3,$6,$2 sec15: nop mflo $2 nop addu $2,$6,$2 sec16: nop mfhi $2 slt $2,$3,$3 addu $5,$6,$2 sec17: nop mfhi $2 addiu $2,$6,28264 addu $3,$6,$2 sec18: nop mfhi $2 mflo $2 addu $6,$6,$2 sec19: nop mflo $2 lb $2,9($0) addu $2,$6,$2 sec20: nop lhu $2,14($0) nop addu $3,$6,$2 sec21: nop lbu $2,3($0) subu $2,$2,$2 addu $3,$6,$2 sec22: nop lh $2,6($0) ori $2,$4,33206 addu $1,$6,$2 sec23: nop lb $2,1($0) mflo $2 addu $3,$6,$2 sec24: nop lb $2,9($0) lh $2,12($0) addu $5,$6,$2 sec25: addu $6,$3,$4 nop nop addu $3,$6,$2 sec26: addu $6,$4,$0 nop xor $2,$2,$3 addu $0,$6,$2 sec27: subu $6,$3,$1 nop lui $2,54434 addu $6,$6,$2 sec28: subu $6,$1,$5 nop mflo $2 addu $4,$6,$2 sec29: sltu $6,$3,$1 nop lb $2,4($0) addu $4,$6,$2 sec30: and $6,$6,$6 subu $2,$4,$4 nop addu $5,$6,$2 sec31: slt $6,$2,$3 subu $2,$1,$6 or $2,$1,$1 addu $5,$6,$2 sec32: xor $6,$4,$5 sltu $2,$2,$4 xori $2,$3,54260 addu $2,$6,$2 sec33: and $6,$3,$3 addu $2,$1,$1 mfhi $2 addu $2,$6,$2 sec34: nor $6,$3,$3 and $2,$3,$6 lb $2,10($0) addu $3,$6,$2 sec35: addu $6,$3,$4 addiu $2,$4,26122 nop addu $3,$6,$2 sec36: addu $6,$4,$3 sltiu $2,$3,-5763 nor $2,$0,$2 addu $3,$6,$2 sec37: subu $6,$0,$2 ori $2,$3,22064 sltiu $2,$3,-10954 addu $3,$6,$2 sec38: slt $6,$5,$1 andi $2,$5,64607 mfhi $2 addu $6,$6,$2 sec39: slt $6,$3,$1 addiu $2,$3,-16280 lhu $2,2($0) addu $3,$6,$2 sec40: or $6,$2,$6 mflo $2 nop addu $3,$6,$2 sec41: or $6,$3,$1 mfhi $2 addu $2,$3,$1 addu $1,$6,$2 sec42: addu $6,$3,$4 mfhi $2 andi $2,$2,35079 addu $4,$6,$2 sec43: xor $6,$4,$2 mfhi $2 mflo $2 addu $2,$6,$2 sec44: sltu $6,$2,$5 mfhi $2 lbu $2,13($0) addu $5,$6,$2 sec45: xor $6,$5,$3 lw $2,12($0) nop addu $1,$6,$2 sec46: sltu $6,$5,$4 lw $2,4($0) nor $2,$1,$3 addu $2,$6,$2 sec47: slt $6,$1,$1 lw $2,12($0) andi $2,$3,50618 addu $3,$6,$2 sec48: nor $6,$3,$3 lhu $2,6($0) mflo $2 addu $4,$6,$2 sec49: sltu $6,$3,$6 lw $2,12($0) lhu $2,8($0) addu $4,$6,$2 sec50: andi $6,$4,2735 nop nop addu $1,$6,$2 sec51: lui $6,36479 nop addu $2,$3,$6 addu $1,$6,$2 sec52: xori $6,$3,19149 nop lui $2,37921 addu $3,$6,$2 sec53: xori $6,$1,23335 nop mfhi $2 addu $3,$6,$2 sec54: slti $6,$3,30884 nop lw $2,0($0) addu $4,$6,$2 sec55: lui $6,16494 nor $2,$2,$3 nop addu $1,$6,$2 sec56: addiu $6,$6,-26779 slt $2,$1,$6 and $2,$3,$3 addu $5,$6,$2 sec57: xori $6,$3,44486 xor $2,$3,$2 ori $2,$4,51741 addu $5,$6,$2 sec58: ori $6,$4,41852 slt $2,$6,$4 mflo $2 addu $0,$6,$2 sec59: ori $6,$1,14635 addu $2,$6,$0 lw $2,4($0) addu $2,$6,$2 sec60: xori $6,$4,25416 lui $2,53106 nop addu $3,$6,$2 sec61: sltiu $6,$4,11142 ori $2,$3,47714 or $2,$5,$4 addu $0,$6,$2 sec62: lui $6,33290 xori $2,$5,37293 slti $2,$5,-15304 addu $4,$6,$2 sec63: andi $6,$2,3277 sltiu $2,$4,29026 mflo $2 addu $4,$6,$2 sec64: xori $6,$4,42088 ori $2,$4,52616 lh $2,2($0) addu $2,$6,$2 sec65: xori $6,$2,18361 mflo $2 nop addu $6,$6,$2 sec66: lui $6,47857 mflo $2 sltu $2,$4,$4 addu $5,$6,$2 sec67: xori $6,$3,28219 mfhi $2 ori $2,$5,6526 addu $2,$6,$2 sec68: andi $6,$3,44843 mfhi $2 mfhi $2 addu $1,$6,$2 sec69: lui $6,47274 mfhi $2 lhu $2,8($0) addu $3,$6,$2 sec70: andi $6,$3,25665 lw $2,12($0) nop addu $4,$6,$2 sec71: addiu $6,$2,565 lhu $2,0($0) subu $2,$2,$3 addu $0,$6,$2 sec72: lui $6,42158 lb $2,5($0) xori $2,$5,23572 addu $3,$6,$2 sec73: slti $6,$1,20224 lhu $2,6($0) mfhi $2 addu $3,$6,$2 sec74: ori $6,$3,40629 lhu $2,4($0) lw $2,16($0) addu $2,$6,$2 sec75: mflo $6 nop nop addu $3,$6,$2 sec76: mfhi $6 nop sltu $2,$6,$2 addu $3,$6,$2 sec77: mflo $6 nop lui $2,29746 addu $4,$6,$2 sec78: mfhi $6 nop mfhi $2 addu $0,$6,$2 sec79: mfhi $6 nop lbu $2,6($0) addu $0,$6,$2 sec80: mfhi $6 or $2,$4,$4 nop addu $2,$6,$2 sec81: mflo $6 xor $2,$6,$4 addu $2,$3,$2 addu $0,$6,$2 sec82: mflo $6 or $2,$4,$3 andi $2,$4,49166 addu $4,$6,$2 sec83: mflo $6 subu $2,$3,$3 mfhi $2 addu $1,$6,$2 sec84: mflo $6 slt $2,$4,$4 lb $2,0($0) addu $2,$6,$2 sec85: mflo $6 sltiu $2,$3,-11337 nop addu $2,$6,$2 sec86: mfhi $6 xori $2,$0,24139 and $2,$0,$2 addu $2,$6,$2 sec87: mflo $6 addiu $2,$6,23665 lui $2,27121 addu $2,$6,$2 sec88: mfhi $6 xori $2,$1,28432 mfhi $2 addu $5,$6,$2 sec89: mflo $6 ori $2,$6,43073 lb $2,15($0) addu $1,$6,$2 sec90: mflo $6 mflo $2 nop addu $4,$6,$2 sec91: mfhi $6 mflo $2 subu $2,$2,$5 addu $5,$6,$2 sec92: mfhi $6 mfhi $2 andi $2,$1,18843 addu $3,$6,$2 sec93: mflo $6 mflo $2 mfhi $2 addu $4,$6,$2 sec94: mfhi $6 mflo $2 lbu $2,7($0) addu $3,$6,$2 sec95: mfhi $6 lw $2,4($0) nop addu $1,$6,$2 sec96: mflo $6 lh $2,0($0) and $2,$1,$3 addu $3,$6,$2 sec97: mfhi $6 lb $2,12($0) slti $2,$3,-9760 addu $4,$6,$2 sec98: mflo $6 lhu $2,6($0) mfhi $2 addu $1,$6,$2 sec99: mfhi $6 lhu $2,4($0) lb $2,10($0) addu $5,$6,$2 sec100: lhu $6,2($0) nop nop addu $1,$6,$2 sec101: lbu $6,14($0) nop slt $2,$4,$6 addu $0,$6,$2 sec102: lh $6,2($0) nop addiu $2,$3,2909 addu $3,$6,$2 sec103: lw $6,4($0) nop mflo $2 addu $3,$6,$2 sec104: lh $6,0($0) nop lbu $2,13($0) addu $0,$6,$2 sec105: lw $6,4($0) slt $2,$4,$4 nop addu $1,$6,$2 sec106: lbu $6,8($0) xor $2,$2,$0 or $2,$5,$1 addu $3,$6,$2 sec107: lb $6,2($0) slt $2,$4,$0 addiu $2,$0,9317 addu $4,$6,$2 sec108: lbu $6,13($0) nor $2,$5,$1 mflo $2 addu $4,$6,$2 sec109: lh $6,16($0) addu $2,$0,$1 lh $2,12($0) addu $6,$6,$2 sec110: lhu $6,14($0) sltiu $2,$3,16614 nop addu $2,$6,$2 sec111: lhu $6,0($0) lui $2,13348 xor $2,$3,$5 addu $1,$6,$2 sec112: lh $6,10($0) addiu $2,$4,9527 andi $2,$3,59443 addu $4,$6,$2 sec113: lw $6,0($0) slti $2,$0,23505 mfhi $2 addu $3,$6,$2 sec114: lh $6,8($0) xori $2,$3,42746 lh $2,14($0) addu $0,$6,$2 sec115: lb $6,8($0) mfhi $2 nop addu $5,$6,$2 sec116: lhu $6,12($0) mflo $2 xor $2,$1,$3 addu $1,$6,$2 sec117: lw $6,4($0) mflo $2 addiu $2,$2,-4555 addu $2,$6,$2 sec118: lh $6,2($0) mflo $2 mfhi $2 addu $3,$6,$2 sec119: lw $6,4($0) mflo $2 lb $2,12($0) addu $1,$6,$2 sec120: lw $6,12($0) lw $2,0($0) nop addu $5,$6,$2 sec121: lw $6,0($0) lw $2,12($0) xor $2,$2,$3 addu $1,$6,$2 sec122: lbu $6,0($0) lhu $2,4($0) sltiu $2,$6,27011 addu $4,$6,$2 sec123: lw $6,16($0) lw $2,4($0) mfhi $2 addu $2,$6,$2 sec124: lw $6,12($0) lhu $2,6($0) lhu $2,2($0) addu $4,$6,$2
11.5875
19
0.530879
188daaf29cd531c715b976a6df35a508b9416f09
134
asm
Assembly
gfx/player.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
gfx/player.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
gfx/player.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
RedPicFront:: INCBIN "gfx/player/red.pic" ShrinkPic1:: INCBIN "gfx/player/shrink1.pic" ShrinkPic2:: INCBIN "gfx/player/shrink2.pic"
33.5
45
0.761194
c8719000548f12a2a56fe5cba43fcf3caf5b7032
5,959
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_394.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_394.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_394.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r8 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x526b, %r12 nop nop xor $22125, %r11 movups (%r12), %xmm1 vpextrq $1, %xmm1, %rbx nop nop nop nop nop cmp %rdi, %rdi lea addresses_UC_ht+0x16f8f, %r8 nop nop nop nop and %rbx, %rbx movb (%r8), %r9b nop nop dec %r8 lea addresses_normal_ht+0x220f, %rsi lea addresses_A_ht+0x13b0f, %rdi nop add %r9, %r9 mov $40, %rcx rep movsl xor $48812, %r9 lea addresses_WC_ht+0x1f0f, %rdi nop dec %rbx vmovups (%rdi), %ymm2 vextracti128 $1, %ymm2, %xmm2 vpextrq $0, %xmm2, %r8 nop nop nop dec %r12 lea addresses_D_ht+0x1790f, %rsi lea addresses_WC_ht+0x1802f, %rdi nop nop nop cmp $21841, %rbx mov $62, %rcx rep movsl nop nop nop sub $8659, %rsi lea addresses_normal_ht+0xef0f, %rsi lea addresses_normal_ht+0x19887, %rdi nop nop nop xor %r9, %r9 mov $54, %rcx rep movsw nop add $59586, %rdi lea addresses_WC_ht+0xb70f, %rsi nop nop nop sub %rbx, %rbx mov (%rsi), %r11w nop sub %rsi, %rsi lea addresses_D_ht+0x11a4f, %rbx nop nop nop nop inc %r12 mov (%rbx), %rdi nop nop nop nop and %r9, %r9 pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r8 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r13 push %r14 push %rax push %rbp push %rcx // Faulty Load lea addresses_A+0x1d10f, %r14 dec %rbp vmovups (%r14), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $1, %xmm7, %rax lea oracles, %rbp and $0xff, %rax shlq $12, %rax mov (%rbp,%rax,1), %rax pop %rcx pop %rbp pop %rax pop %r14 pop %r13 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': True, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 32, 'NT': False, 'type': 'addresses_A'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 2, 'AVXalign': False, 'same': False, 'size': 16, 'NT': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 1, 'NT': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 8, 'same': True, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}} {'src': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 10, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_normal_ht'}} {'src': {'congruent': 9, 'AVXalign': False, 'same': True, 'size': 2, 'NT': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 8, 'NT': True, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
40.537415
2,999
0.659003
59f8c2ef03ef98dd2639c13689358a0fb12f3489
642
asm
Assembly
oeis/272/A272303.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/272/A272303.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/272/A272303.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A272303: Magic sums of 4 X 4 semimagic squares composed of primes. ; Submitted by Christian Krause ; 114,120,124,126,130,132,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,256,258,260,262,264,266,268,270,272,274,276,278,280,282,284,286,288,290,292,294,296,298,300,302,304,306,308,310,312,314,316,318,320,322 add $0,1 sub $1,$0 add $0,12 mov $2,$1 lpb $0 sub $2,5 add $2,$1 sub $0,$2 div $0,2 mov $2,$1 mul $2,2 lpe add $0,49 mul $0,2
33.789474
401
0.697819
750718f4a836ba3a32d0810c1efb44438d53c240
880
asm
Assembly
programs/oeis/309/A309336.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/309/A309336.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/309/A309336.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A309336: a(n) = n^4 if n odd, 15*n^4/16 if n even. ; 0,1,15,81,240,625,1215,2401,3840,6561,9375,14641,19440,28561,36015,50625,61440,83521,98415,130321,150000,194481,219615,279841,311040,390625,428415,531441,576240,707281,759375,923521,983040,1185921,1252815,1500625,1574640,1874161,1954815,2313441,2400000,2825761,2917215,3418801,3513840,4100625,4197615,4879681,4976640,5764801,5859375,6765201,6854640,7890481,7971615,9150625,9219840,10556001,10609215,12117361,12150000,13845841,13852815,15752961,15728640,17850625,17788815,20151121,20045040,22667121,22509375,25411681,25194240,28398241,28112415,31640625,31277040,35153041,34701615,38950081,38400000,43046721,42386415,47458321,46675440,52200625,51282015,57289761,56221440,62742241,61509375,68574961,67161840,74805201,73195215,81450625,79626240,88529281,86472015,96059601 pow $0,4 mov $1,$0 mul $0,7 dif $1,2 add $0,$1 div $0,8
88
769
0.827273
0599640ac01e9fe4210c18903a9b2fda351a73ea
488
asm
Assembly
source/jni/u2/main/prot/run1.asm
Falken42/SecondReality
b998d193a066523cb4ca2b86c8041bea1bddfcb4
[ "Unlicense" ]
9
2015-05-13T21:02:00.000Z
2018-04-15T16:32:27.000Z
source/jni/u2/main/prot/run1.asm
falken42/SecondReality
b998d193a066523cb4ca2b86c8041bea1bddfcb4
[ "Unlicense" ]
null
null
null
source/jni/u2/main/prot/run1.asm
falken42/SecondReality
b998d193a066523cb4ca2b86c8041bea1bddfcb4
[ "Unlicense" ]
null
null
null
IDEAL P386 SEGMENT lerssicode ASSUME cs:lerssicode,ds:nothing,es:nothing LABEL body BYTE INCLUDE 'exebody.inc' LABEL header BYTE INCLUDE 'exehead.inc' PROC start NEAR mov ax, cs add [word cs:header+0eh], ax add [word cs:header+16h], ax sub ax, 10h mov es, ax mov ds, ax mov ss, [word cs:header+0eh] mov sp, [word cs:header+10h] jmp [dword cs:header+14h] ENDP jmp start ENDS END body
16.266667
44
0.590164
62d7d135f8dd5e67a0c1f628c972b9b08b1678f7
4,014
asm
Assembly
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_90_1844.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_90_1844.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_zr_/i7-7700_9_0xca_notsx.log_90_1844.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r14 push %r8 push %rcx push %rdi push %rsi lea addresses_normal_ht+0xd11b, %r10 cmp %rcx, %rcx mov (%r10), %r11d nop nop nop cmp %r14, %r14 lea addresses_D_ht+0x3439, %r8 dec %rsi mov $0x6162636465666768, %r12 movq %r12, %xmm4 movups %xmm4, (%r8) nop nop nop nop and %r8, %r8 lea addresses_WC_ht+0x4083, %rsi nop nop nop sub $61056, %r8 mov $0x6162636465666768, %r14 movq %r14, %xmm3 vmovups %ymm3, (%rsi) nop dec %rcx lea addresses_UC_ht+0x6d5b, %r14 nop nop nop nop nop and $13263, %rsi movw $0x6162, (%r14) nop nop nop nop nop add $1457, %r14 lea addresses_normal_ht+0xb82b, %r8 nop nop nop nop cmp %r14, %r14 movb $0x61, (%r8) nop sub %r12, %r12 lea addresses_A_ht+0x17b2a, %r11 nop nop nop nop xor %rcx, %rcx mov (%r11), %r10d nop sub $9162, %r12 lea addresses_normal_ht+0x661b, %r10 nop nop nop nop inc %rsi movw $0x6162, (%r10) inc %r8 lea addresses_A_ht+0x18d1b, %r10 nop nop nop nop lfence movw $0x6162, (%r10) nop dec %r8 lea addresses_normal_ht+0x719b, %r12 nop nop nop nop dec %r10 movw $0x6162, (%r12) nop nop add %rcx, %rcx lea addresses_WT_ht+0xadfb, %r10 nop nop nop nop inc %r11 movw $0x6162, (%r10) nop nop nop nop nop and $7892, %r14 lea addresses_UC_ht+0x1c0d7, %rsi nop nop nop nop nop and $58779, %r11 mov (%rsi), %r10d nop inc %r11 lea addresses_WC_ht+0x951b, %rsi lea addresses_normal_ht+0x167b3, %rdi nop nop nop nop xor $8935, %r12 mov $125, %rcx rep movsl nop nop nop cmp %r12, %r12 pop %rsi pop %rdi pop %rcx pop %r8 pop %r14 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r8 push %rbp push %rcx push %rsi // Faulty Load lea addresses_US+0x1e91b, %r10 nop nop xor %rcx, %rcx mov (%r10), %esi lea oracles, %rcx and $0xff, %rsi shlq $12, %rsi mov (%rcx,%rsi,1), %rsi pop %rsi pop %rcx pop %rbp pop %r8 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_US'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': True, 'type': 'addresses_US'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 11, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 1, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 3, 'same': True, 'type': 'addresses_WC_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 6, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 1, 'same': True, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': True, 'size': 2, 'congruent': 7, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 7, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'dst': {'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 4, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 1, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 10, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'00': 90} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
20.90625
269
0.649975
4b202d16416b484af2c4dd2f34f3b4eb0de92820
426
asm
Assembly
programs/oeis/089/A089775.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/089/A089775.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/089/A089775.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A089775: Lucas numbers L(12n). ; 2,322,103682,33385282,10749957122,3461452808002,1114577054219522,358890350005878082,115561578124838522882,37210469265847998489922,11981655542024930675232002,3858055874062761829426214722,1242282009792667284144565908482,400010949097364802732720796316482,128802283327341673812651951847998722 mul $0,3 mov $2,1 lpb $0 sub $0,1 sub $1,$2 sub $2,$1 lpe pow $1,2 mul $1,5 add $1,2 mov $0,$1
28.4
290
0.819249
6752011a4a99d31f9e2ca4836f5615ee36b719b2
5,712
asm
Assembly
Transynther/x86/_processed/NONE/_un_xt_sm_/i7-7700_9_0x48.log_21829_950.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_un_xt_sm_/i7-7700_9_0x48.log_21829_950.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_un_xt_sm_/i7-7700_9_0x48.log_21829_950.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 %rcx push %rdi push %rsi lea addresses_A_ht+0x105d0, %rsi lea addresses_A_ht+0x10cd0, %rdi nop nop nop nop and %r12, %r12 mov $52, %rcx rep movsb nop nop nop and %r15, %r15 lea addresses_WC_ht+0x1090, %rsi lea addresses_UC_ht+0x1a2b3, %rdi clflush (%rdi) nop nop nop nop cmp $1496, %r13 mov $62, %rcx rep movsw nop nop nop nop add %r12, %r12 lea addresses_UC_ht+0xa90, %rsi lea addresses_D_ht+0x19e88, %rdi nop cmp $1564, %r15 mov $4, %rcx rep movsw nop nop cmp %r13, %r13 lea addresses_UC_ht+0x1e54f, %rsi lea addresses_WT_ht+0x8218, %rdi nop nop nop cmp $7515, %r12 mov $73, %rcx rep movsq nop nop inc %rsi lea addresses_normal_ht+0xbad0, %r12 nop nop nop nop cmp $18768, %r13 mov (%r12), %rsi nop nop nop cmp $50736, %r15 pop %rsi pop %rdi pop %rcx pop %r15 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r14 push %r15 push %r9 push %rax push %rbp push %rdx push %rsi // Store lea addresses_WC+0xadd0, %rbp nop nop nop nop xor $34270, %rsi movl $0x51525354, (%rbp) nop dec %rax // Store mov $0x50, %rsi nop nop nop nop xor %r9, %r9 movb $0x51, (%rsi) nop nop nop add $44675, %r14 // Faulty Load lea addresses_WC+0xadd0, %r15 nop nop nop sub $876, %rbp mov (%r15), %eax lea oracles, %rdx and $0xff, %rax shlq $12, %rax mov (%rdx,%rax,1), %rax pop %rsi pop %rdx pop %rbp pop %rax pop %r9 pop %r15 pop %r14 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': False, 'congruent': 6, 'size': 1, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': True}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_UC_ht', 'congruent': 0, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 8, 'size': 8, 'same': True, 'NT': False}} {'5f': 5, '54': 21824} 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 */
38.857143
2,999
0.658438
3b98882483ab422594dbf5253d54c3922c52c7ce
1,942
asm
Assembly
programs/oeis/168/A168412.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/168/A168412.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/168/A168412.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A168412: a(n) = n^5*(n^6 + 1)/2. ; 0,1,1040,88695,2097664,24415625,181402416,988671775,4294983680,15690559329,50000050000,142655915831,371504309760,896080382665,2024782853744,4324878309375,8796093546496,17135948863745,32134205984400,58245130687159,102400001600000,175138752313161,292159153282480,476404882175135,760840575565824,1192092900390625,1835172249434576,2779530290452215,4146754742341120,6100254893108489,8857350012150000,12704238462516991,18014398526259200,25271053276431105,35094421841733904,48274578712784375,65810851951366656,88958810924402185,119286025151393840,158737918706348319,209715200051200000,275164515916052321,358684160620579920,464646869809115575,598341940727657984,766139150702615625,975677192206842736,1236079607656678655,1558201490732482560,1954910524432731649,2441406250156250000,3035581807776644151,3758432754865584640,4634517964895193545,5692478020382438064,6965616958528009375,8492553694966562816,10317949946822246625,12493322000410947280,15077944222726383479,18139852800388800000,21756958806140217481,26018280342376613360,31025304194772630015,36893488147955974144,43753915870624090625,51755117070682426896,61065066453159071095,71873375886072128000,84393695093371228809,98866337150840350000,115561146061752897311,134780624735449006080,156863342785216389985,182187644703276966224,211175680161708984375,244297779430185534976,282077198195922117065,325095257419655364720,373996905265298992639,429496729601638400000,492385451093549008641,563536928479292102800,643915709271012438455,734585160819210914304,836716218450289815625,951596789220884187056,1080641851735237349535,1225404294444007997440,1387586536886287199969,1569052980452952450000,1771843337440509076471,1998186889432003243520,2250517728387191740425,2531491036249698118384,2844000461386168709375,3191196652763281883136,3576507015444695733505,4003656753753499366160,4476691271298337175799 mov $1,$0 pow $0,5 mov $2,$1 pow $2,6 mul $2,$0 add $0,$2 div $0,2
176.545455
1,838
0.920185
8f7f3ae9e1a4cfab07d633e41d7e83a287690437
633
asm
Assembly
oeis/098/A098560.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/098/A098560.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/098/A098560.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A098560: E.g.f. (1+4*x)/(1-4*x). ; Submitted by Christian Krause ; 1,8,64,768,12288,245760,5898240,165150720,5284823040,190253629440,7610145177600,334846387814400,16072626615091200,835776583984742400,46803488703145574400,2808209322188734464000,179725396620079005696000,12221326970165372387328000,879935541851906811887616000,66875101180744917703458816000,5350008094459593416276705280000,449400679934605846967243243520000,39547259834245314533117405429760000,3638347904750568937046801299537920000,349281398856054617956492924755640320000 mov $1,1 mov $2,1 lpb $0 sub $0,1 add $2,1 mul $1,$2 mul $1,4 mov $2,$0 lpe mov $0,$1
42.2
468
0.838863
b5568d0ba49ae41ba594cc21dd06d4f29c33f934
1,855
asm
Assembly
programs/oeis/100/A100119.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/100/A100119.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/100/A100119.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A100119: a(n) = n-th centered n-gonal number. ; 1,2,7,19,41,76,127,197,289,406,551,727,937,1184,1471,1801,2177,2602,3079,3611,4201,4852,5567,6349,7201,8126,9127,10207,11369,12616,13951,15377,16897,18514,20231,22051,23977,26012,28159,30421,32801,35302,37927,40679,43561,46576,49727,53017,56449,60026,63751,67627,71657,75844,80191,84701,89377,94222,99239,104431,109801,115352,121087,127009,133121,139426,145927,152627,159529,166636,173951,181477,189217,197174,205351,213751,222377,231232,240319,249641,259201,269002,279047,289339,299881,310676,321727,333037,344609,356446,368551,380927,393577,406504,419711,433201,446977,461042,475399,490051,505001,520252,535807,551669,567841,584326,601127,618247,635689,653456,671551,689977,708737,727834,747271,767051,787177,807652,828479,849661,871201,893102,915367,937999,961001,984376,1008127,1032257,1056769,1081666,1106951,1132627,1158697,1185164,1212031,1239301,1266977,1295062,1323559,1352471,1381801,1411552,1441727,1472329,1503361,1534826,1566727,1599067,1631849,1665076,1698751,1732877,1767457,1802494,1837991,1873951,1910377,1947272,1984639,2022481,2060801,2099602,2138887,2178659,2218921,2259676,2300927,2342677,2384929,2427686,2470951,2514727,2559017,2603824,2649151,2695001,2741377,2788282,2835719,2883691,2932201,2981252,3030847,3080989,3131681,3182926,3234727,3287087,3340009,3393496,3447551,3502177,3557377,3613154,3669511,3726451,3783977,3842092,3900799,3960101,4020001,4080502,4141607,4203319,4265641,4328576,4392127,4456297,4521089,4586506,4652551,4719227,4786537,4854484,4923071,4992301,5062177,5132702,5203879,5275711,5348201,5421352,5495167,5569649,5644801,5720626,5797127,5874307,5952169,6030716,6109951,6189877,6270497,6351814,6433831,6516551,6599977,6684112,6768959,6854521,6940801,7027802,7115527,7203979,7293161,7383076,7473727,7565117,7657249,7750126 sub $1,$0 bin $1,2 mul $1,$0 add $1,1
231.875
1,767
0.845283
46dff54dd8218680e4cee842b0a96b974d2a08e3
13,710
asm
Assembly
base/crts/fpw32/tran/i386/exp_pentium4.asm
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
base/crts/fpw32/tran/i386/exp_pentium4.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
base/crts/fpw32/tran/i386/exp_pentium4.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
;// ;// INTEL CORPORATION PROPRIETARY INFORMATION ;// This software is supplied under the terms of a license agreement or ;// nondisclosure agreement with Intel Corporation and may not be copied ;// or disclosed except in accordance with the terms of that agreement. ;// Copyright (c) 2000 Intel Corporation. All Rights Reserved. ;// ;// ; exp_wmt.asm ; ; double exp(double); ; ; Initial version: 11/30/2000 ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; This is a new version using just one table. Reduction by log2/64 ;; ;; A non-standard table is used. Normally, we store T,t where ;; ;; T+t = exp(jlog2/64) to high precision. This implementation ;; ;; stores T,d where d = t/T. This shortens the latency by 1 FP op ;; ;; This version uses two tricks from Andrey. First, we merge two ;; ;; integer-based tests for exception filtering into 1. Second, instead ;; ;; of using sign(X)2^52 as a shifter, we use S = 2^52 * 1.10000..000 ;; ;; as the shifter. This will give bit pattern of the 2's complement of ;; ;; N in trailing bits of S + W, W = X * 64/log2. ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; .686P .387 .XMM .MODEL FLAT,C EXTRN C __libm_error_support : NEAR CONST SEGMENT PARA PUBLIC USE32 'CONST' ALIGN 16 smask DQ 8000000000000000H, 8000000000000000H ; mask to get sign bit emask DQ 0FFF0000000000000H, 0FFF0000000000000H mmask DQ 00000000FFFFFFC0H, 00000000FFFFFFC0H ; mask off bottom 6 bits bias DQ 000000000000FFC0H, 000000000000FFC0H ; 1023 shifter left 6 bits Shifter DQ 4338000000000000H, 4338000000000000H ; 2^52+2^51|2^52+2^51 twom60 DQ 3C30000000000000H, 3C30000000000000H ; 2^(-60) cv DQ 40571547652b82feH, 40571547652b82feH ; invL|invL DQ 3F862E42FEFA0000H, 3F862E42FEFA0000H ; log2_hi|log2_hi DQ 3D1CF79ABC9E3B3AH, 3D1CF79ABC9E3B3AH ; log2_lo|log2_lo DQ 3F811074B1D108E5H, 3FC555555566A45AH ; p2|p4 DQ 3FA5555726ECED80H, 3FDFFFFFFFFFE17BH ; p1|p3 ;-------Table d, T so that movapd gives [ T | d ] ;-------Note that the exponent field of T is set to 000 Tbl_addr DQ 0000000000000000H, 0000000000000000H DQ 3CAD7BBF0E03754DH, 00002C9A3E778060H DQ 3C8CD2523567F613H, 000059B0D3158574H DQ 3C60F74E61E6C861H, 0000874518759BC8H DQ 3C979AA65D837B6CH, 0000B5586CF9890FH DQ 3C3EBE3D702F9CD1H, 0000E3EC32D3D1A2H DQ 3CA3516E1E63BCD8H, 00011301D0125B50H DQ 3CA4C55426F0387BH, 0001429AAEA92DDFH DQ 3CA9515362523FB6H, 000172B83C7D517AH DQ 3C8B898C3F1353BFH, 0001A35BEB6FCB75H DQ 3C9AECF73E3A2F5FH, 0001D4873168B9AAH DQ 3C8A6F4144A6C38DH, 0002063B88628CD6H DQ 3C968EFDE3A8A894H, 0002387A6E756238H DQ 3C80472B981FE7F2H, 00026B4565E27CDDH DQ 3C82F7E16D09AB31H, 00029E9DF51FDEE1H DQ 3C8B3782720C0AB3H, 0002D285A6E4030BH DQ 3C834D754DB0ABB6H, 000306FE0A31B715H DQ 3C8FDD395DD3F84AH, 00033C08B26416FFH DQ 3CA12F8CCC187D29H, 000371A7373AA9CAH DQ 3CA7D229738B5E8BH, 0003A7DB34E59FF6H DQ 3C859F48A72A4C6DH, 0003DEA64C123422H DQ 3CA8B846259D9205H, 0004160A21F72E29H DQ 3C4363ED60C2AC12H, 00044E086061892DH DQ 3C6ECCE1DAA10379H, 000486A2B5C13CD0H DQ 3C7690CEBB7AAFB0H, 0004BFDAD5362A27H DQ 3CA083CC9B282A09H, 0004F9B2769D2CA6H DQ 3CA509B0C1AAE707H, 0005342B569D4F81H DQ 3C93350518FDD78EH, 00056F4736B527DAH DQ 3C9063E1E21C5409H, 0005AB07DD485429H DQ 3C9432E62B64C035H, 0005E76F15AD2148H DQ 3CA0128499F08C0AH, 0006247EB03A5584H DQ 3C99F0870073DC06H, 0006623882552224H DQ 3C998D4D0DA05571H, 0006A09E667F3BCCH DQ 3CA52BB986CE4786H, 0006DFB23C651A2EH DQ 3CA32092206F0DABH, 00071F75E8EC5F73H DQ 3CA061228E17A7A6H, 00075FEB564267C8H DQ 3CA244AC461E9F86H, 0007A11473EB0186H DQ 3C65EBE1ABD66C55H, 0007E2F336CF4E62H DQ 3C96FE9FBBFF67D0H, 00082589994CCE12H DQ 3C951F1414C801DFH, 000868D99B4492ECH DQ 3C8DB72FC1F0EAB4H, 0008ACE5422AA0DBH DQ 3C7BF68359F35F44H, 0008F1AE99157736H DQ 3CA360BA9C06283CH, 00093737B0CDC5E4H DQ 3C95E8D120F962AAH, 00097D829FDE4E4FH DQ 3C71AFFC2B91CE27H, 0009C49182A3F090H DQ 3C9B6D34589A2EBDH, 000A0C667B5DE564H DQ 3C95277C9AB89880H, 000A5503B23E255CH DQ 3C8469846E735AB3H, 000A9E6B5579FDBFH DQ 3C8C1A7792CB3387H, 000AE89F995AD3ADH DQ 3CA22466DC2D1D96H, 000B33A2B84F15FAH DQ 3CA1112EB19505AEH, 000B7F76F2FB5E46H DQ 3C74FFD70A5FDDCDH, 000BCC1E904BC1D2H DQ 3C736EAE30AF0CB3H, 000C199BDD85529CH DQ 3C84E08FD10959ACH, 000C67F12E57D14BH DQ 3C676B2C6C921968H, 000CB720DCEF9069H DQ 3C93700936DF99B3H, 000D072D4A07897BH DQ 3C74A385A63D07A7H, 000D5818DCFBA487H DQ 3C8E5A50D5C192ACH, 000DA9E603DB3285H DQ 3C98BB731C4A9792H, 000DFC97337B9B5EH DQ 3C74B604603A88D3H, 000E502EE78B3FF6H DQ 3C916F2792094926H, 000EA4AFA2A490D9H DQ 3C8EC3BC41AA2008H, 000EFA1BEE615A27H DQ 3C8A64A931D185EEH, 000F50765B6E4540H DQ 3C77893B4D91CD9DH, 000FA7C1819E90D8H ONE_val DQ 3ff0000000000000H ; 1.0 EMIN DQ 0010000000000000H MAX_ARG DQ 40862e42fefa39efH MIN_ARG DQ 0c086232bdd70000H INF DQ 7ff0000000000000H ZERO DQ 0 XMAX DQ 7fefffffffffffffH XMIN DQ 0010000000000000H Sm_Thres DQ 3C3000003C300000H ; DP 2^(-60) Del_Thres DQ 045764CA045764CAH ; DP 1080*log(2) - 2^(-60), hi part ALIGN 16 CONST ENDS _TEXT SEGMENT PARA PUBLIC USE32 'CODE' ALIGN 16 PUBLIC _exp_pentium4, _CIexp_pentium4 _CIexp_pentium4 PROC NEAR push ebp mov ebp, esp sub esp, 8 ; for argument DBLSIZE and esp, 0fffffff0h fstp qword ptr [esp] movq xmm0, qword ptr [esp] call start leave ret _exp_pentium4 label proc ; load *|x in XMM0 movlpd xmm0, 4[esp] start: unpcklpd xmm0,xmm0 ; load Inv_L pair movapd xmm1, QWORD PTR [cv] ; load Shifter movapd xmm6, QWORD PTR [Shifter] ; load L_hi pair movapd xmm2, QWORD PTR [cv+16] ; load L_lo pair movapd xmm3, QWORD PTR [cv+32] pextrw eax, xmm0,3 and eax,7FFFH ; x>=2^{10} ? (i.e. 2^{10}-eps-x<0) mov edx, 408fH sub edx, eax ; avoid underflow on intermediate calculations (|x|<2^{-54} ?) sub eax, 3c90H or edx, eax cmp edx, 80000000H ; small input or UF/OF jae RETURN_ONE ; xmm1=Inv_L*x|Inv_L*x mulpd xmm1,xmm0 ; xmm1=Inv_L*x+Shifter| Inv_L*x+Shifter addpd xmm1,xmm6 ; xmm7 contains bit pattern of N movapd xmm7,xmm1 ; xmm1=N subpd xmm1,xmm6 ; xmm2=L_hi*round_to_int(Inv_L*x)|L_hi*round_to_int(Inv_L*x) ; N_L_hi mulpd xmm2,xmm1 ; [p2|p4] MOVAPD xmm4,[cv+48] ; xmm3=L_lo*round_to_int(Inv_L*x)|L_lo*round_to_int(Inv_L*x) ; N_L_lo mulpd xmm3,xmm1 ; [p1|p3] MOVAPD xmm5,[cv+64] ; xmm0=x-xmm2 ; R := X |-| N_L_hi subpd xmm0,xmm2 ; set eax <-- n, ecx <--j movd eax,xmm7 mov ecx,eax and ecx,0000003FH ; get offset for [T,d] shl ecx,4 ; eax,edx <-- m sar eax,6 mov edx,eax ; xmm0-=xmm3 ; R := R |-| N_L_lo subpd xmm0,xmm3 ; xmm2 <- [T,d] movapd xmm2,[ecx+Tbl_addr] ; xmm4=p2*R|p4*R mulpd xmm4,xmm0 MOVAPD xmm1,xmm0 MULPD xmm0,xmm0 ; xmm5=p1+p2*R|p3+p4*R addpd xmm5,xmm4 MULSD xmm0,xmm0 ; get xmm1 <-- [R|R+d] addsd xmm1,xmm2 ; xmm2 <-- [T|T] unpckhpd xmm2,xmm2 ; xmm7 <-- exponent of 2^m movdqa xmm6,[mmask] pand xmm7,xmm6 movdqa xmm6,[bias] paddq xmm7,xmm6 psllq xmm7,46 ; xmm5=[P_hi | P_lo] mulpd xmm0,xmm5 ; xmm1 <- [R |d+R+P_lo] addsd xmm1,xmm0 ; xmm2 is 2^m T ORPD xmm2,xmm7 ; xmm5 <- [P_hi | P_hi] unpckhpd xmm0,xmm0 ; xmm5 <-- [P_hi | d+R+P ] addsd xmm0,xmm1 ; make sure -894 <= m <= 1022 ; before we use the exponent in xmm7 ; test by unsigned comp of m+894 with 1022+894 add edx,894 cmp edx,1916 ja ADJUST mulsd xmm0,xmm2 sub esp, 16 addsd xmm0,xmm2 movlpd QWORD PTR [esp+4], xmm0 ; return result fld QWORD PTR [esp+4] ; add esp, 16 ret ADJUST: ;---xmm5 contains [*| d+R+P] ;---xmm2 contains [*| T ] where is exponent field is not correct ;---eax still contain the correct m ;---so we split m into m1 and m2, m1+m2 = m. Make T with exponent 2^m1 by ;---integer manipulation, and multiply final result by 2^m2 ; overflow or underflow sub esp,18 fstcw WORD PTR [esp+16] mov dx,WORD PTR [esp+16] ; set pc=64 bits or dx,300H mov WORD PTR [esp],dx fldcw WORD PTR [esp] ; eax <-- m1 = m/2, edx <-- m2 = m - m1 mov edx,eax sar eax,1 sub edx,eax ; T with exponent field zerorized movdqa xmm6,[emask] pandn xmm6,xmm2 add eax,1023 movd xmm3,eax psllq xmm3,52 ; xmm6=T*2^m1 ORPD xmm6,xmm3 add edx,1023 movd xmm4,edx psllq xmm4,52 ; load P on FP stack movlpd QWORD PTR [esp], xmm0 fld QWORD PTR [esp] ; load T'=T*2^m1 on FP stack movlpd QWORD PTR [esp+8], xmm6 fld QWORD PTR [esp+8] ; T'*P fmul st(1), st(0) ; T'+T'*P faddp st(1), st(0) ; load 2^m2 on FP stack movlpd QWORD PTR [esp], xmm4 fld QWORD PTR [esp] ; final calculation: 2^m2*(T'+T'*P) fmulp st(1), st(0) ; store result in memory, then xmm0 fstp QWORD PTR [esp] movlpd xmm0, QWORD PTR [esp] ; restore FPCW fldcw WORD PTR [esp+16] add esp,18 ; mov ecx, DWORD PTR [esp+8] ; ; if 0<x<2^{10}*ln2, return ; cmp ecx, 40862e42H ; jb RETURN ; ja CONT0 pextrw ecx, xmm0, 3 and ecx, 7ff0H cmp ecx, 7ff0H jae OVERFLOW cmp ecx, 0 jz UNDERFLOW jmp RETURN ; load lower 32 bits of x ; mov edx, DWORD PTR [esp+4] ; cmp edx, 0fefa39efH ; jb RETURN ; jmp OVERFLOW CONT0: ; OF/UF ; OF ? cmp ecx,80000000H jb OVERFLOW ; x<(2-2^{10})*ln2 ? cmp ecx, 0c086232bH jb RETURN ja UNDERFLOW mov edx, DWORD PTR [esp+4] cmp edx, 0fefa39efH jb RETURN jmp UNDERFLOW OVERFLOW: ;OF mov edx,14 jmp CALL_LIBM_ERROR UNDERFLOW: mov edx, 15 CALL_LIBM_ERROR: ;call libm_error_support(void *arg1,void *arg2,void *retval,error_types input_tag) sub esp, 28 movlpd QWORD PTR [esp+16], xmm0 mov DWORD PTR [esp+12],edx mov edx, esp add edx,16 mov DWORD PTR [esp+8],edx add edx,16 mov DWORD PTR [esp+4],edx mov DWORD PTR [esp],edx call NEAR PTR __libm_error_support movlpd xmm0, QWORD PTR [esp+16] add esp, 28 RETURN: sub esp, 16 movlpd QWORD PTR [esp+4], xmm0 ; return result fld QWORD PTR [esp+4] ; add esp, 16 ret SPECIAL_CASES: ; code to be added, but OK for now ; Need to resolve several cases ; ; Case 1: Argument is close to zero ( |X| < 2^(-60) ) ; Compute 1 + X and return the result ; This will allow the appropriate action to take place. ; For example, in directed rounding, the correct number below/above 1 is returned. ; If X is denormalized, and that DAE is set, then we will be consistant with DAE, ; that is X is treated as zero and directed rounding will not affect the result. ; This action also takes care of the case X = 0. ; ; Case 2: |X| is large but finite ; Generate overflow/underflow by a simple arithmetic operation. This is also a place ; holder for various exception handling protocol. ; ; Case 3: X is +-inf. Return +inf or +0 exactly without exception ; ; Case 4: X is s/q NaN ; OF_UF: ; x=infinity/NaN ? cmp eax, 7ff00000H jae INF_NAN mov eax,[esp+8] cmp eax,80000000H jae UF movlpd xmm0, QWORD PTR [XMAX] mulsd xmm0, xmm0 mov edx,14 jmp CALL_LIBM_ERROR UF: movlpd xmm0, QWORD PTR [XMIN] mulsd xmm0, xmm0 mov edx,15 jmp CALL_LIBM_ERROR INF_NAN: ; load lower 32 bits of x mov edx, DWORD PTR [esp+4] cmp eax, 7ff00000H ja NaN_arg cmp edx,0 jnz NaN_arg mov eax,DWORD PTR [esp+8] cmp eax,7ff00000H jne INF_NEG ; +INF fld QWORD PTR [INF] ret INF_NEG: ; -INF fld QWORD PTR [ZERO] ret NaN_arg: ; movlpd xmm0, 4[esp] ; addsd xmm0,xmm0 ; sub esp, 16 ; movlpd 4[esp],xmm0 ; fld QWORD PTR [esp+4] ; return x ; add esp, 16 ; ret mov edx,1002 jmp CALL_LIBM_ERROR RETURN_ONE: ; load hi-part of x mov eax,[esp+8] and eax,7FFFFFFFH ; large absolute value (>=2^{10}) ? cmp eax, 40900000H jae OF_UF ; small inputs, return 1 movlpd xmm0, 4[esp] ; set D flag addsd xmm0, QWORD PTR [ONE_val] sub esp, 16 movlpd 4[esp],xmm0 fld QWORD PTR [esp+4] ; return x add esp, 16 ret _CIexp_pentium4 ENDP ALIGN 16 _TEXT ENDS END
27.202381
86
0.61488
bf25861aa961f6d1076dd02a4e00c3b292effc5d
2,282
asm
Assembly
programs/oeis/016/A016779.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/016/A016779.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/016/A016779.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A016779: a(n) = (3*n + 1)^3. ; 1,64,343,1000,2197,4096,6859,10648,15625,21952,29791,39304,50653,64000,79507,97336,117649,140608,166375,195112,226981,262144,300763,343000,389017,438976,493039,551368,614125,681472,753571,830584,912673,1000000,1092727,1191016,1295029,1404928,1520875,1643032,1771561,1906624,2048383,2197000,2352637,2515456,2685619,2863288,3048625,3241792,3442951,3652264,3869893,4096000,4330747,4574296,4826809,5088448,5359375,5639752,5929741,6229504,6539203,6859000,7189057,7529536,7880599,8242408,8615125,8998912,9393931,9800344,10218313,10648000,11089567,11543176,12008989,12487168,12977875,13481272,13997521,14526784,15069223,15625000,16194277,16777216,17373979,17984728,18609625,19248832,19902511,20570824,21253933,21952000,22665187,23393656,24137569,24897088,25672375,26463592,27270901,28094464,28934443,29791000,30664297,31554496,32461759,33386248,34328125,35287552,36264691,37259704,38272753,39304000,40353607,41421736,42508549,43614208,44738875,45882712,47045881,48228544,49430863,50653000,51895117,53157376,54439939,55742968,57066625,58411072,59776471,61162984,62570773,64000000,65450827,66923416,68417929,69934528,71473375,73034632,74618461,76225024,77854483,79507000,81182737,82881856,84604519,86350888,88121125,89915392,91733851,93576664,95443993,97336000,99252847,101194696,103161709,105154048,107171875,109215352,111284641,113379904,115501303,117649000,119823157,122023936,124251499,126506008,128787625,131096512,133432831,135796744,138188413,140608000,143055667,145531576,148035889,150568768,153130375,155720872,158340421,160989184,163667323,166375000,169112377,171879616,174676879,177504328,180362125,183250432,186169411,189119224,192100033,195112000,198155287,201230056,204336469,207474688,210644875,213847192,217081801,220348864,223648543,226981000,230346397,233744896,237176659,240641848,244140625,247673152,251239591,254840104,258474853,262144000,265847707,269586136,273359449,277167808,281011375,284890312,288804781,292754944,296740963,300763000,304821217,308915776,313046839,317214568,321419125,325660672,329939371,334255384,338608873,343000000,347428927,351895816,356400829,360944128,365525875,370146232,374805361,379503424,384240583,389017000,393832837,398688256,403583419,408518488,413493625,418508992 mul $0,3 add $0,1 mov $1,$0 pow $1,3
285.25
2,212
0.873795
4674986a223d44d7ce6ae57a301c0ff2977a659a
2,836
asm
Assembly
in/boot/setup.asm
Daliji/Diers
17ae90453827768e9949c96e9a9fcd7f601bccda
[ "MIT" ]
4
2020-08-25T07:30:24.000Z
2021-01-30T15:19:49.000Z
in/boot/setup.asm
Daliji/Diers
17ae90453827768e9949c96e9a9fcd7f601bccda
[ "MIT" ]
null
null
null
in/boot/setup.asm
Daliji/Diers
17ae90453827768e9949c96e9a9fcd7f601bccda
[ "MIT" ]
null
null
null
org 0x0000 jmp start SETUPSEG equ 0x9000 DATASEG equ 0x8000 SETSEG equ 0x0400 INT_TABLE equ 0x0500 gdtaddr: dw 0xffff dw 0x3000 dw 0x0000 gdt: null_table: dw 0,0,0,0 system_code_table: dw 0xffff dw 0x0000 dw 0x9a00 dw 0x00c0 system_data_table: dw 0xffff dw 0x0000 dw 0x9200 dw 0x00c0 idtaddr: dw 0x0 dw 0x0 dw 0x0 start: call load_msg load_int: mov ax,0 mov ds,ax xor si,si mov ax,DATASEG mov es,ax mov di,INT_TABLE mov cx,0x400 rep movsb end_load_int: load_jump: mov ax,DATASEG mov ds,ax mov dl,[0] mov ax,SETUPSEG mov es,ax mov bx,SETSEG mov ah,0x02 mov al,1 mov dh,0 mov cx,0x0004 int 0x13 jnc load_set mov ax,0 mov dx,[0] int 0x13 jmp start load_set: mov ax,0x1200 mov es,ax xor bx,bx mov dl,[0] mov ah,0x02 mov al,0x40 ;64个扇区,32kb mov dh,0 mov cx,0x0005 int 0x13 jnc ok_load mov ax,0 mov dx,[0] int 0x13 jmp load_set ok_load: get_vidio_mode: mov ah,0x0f int 0x10 mov [5],bx ;当前显示页面 ;; 0x80007:当前显示模式 ;; 0x80008字符列数 mov [7],ax mov ah,0x12 mov bl,0x10 int 0x10 ;; 0x80009:显示内存 ;; 0x8000a:显示状态 mov [9],bx ;; 0x8000b:显卡特性参数 mov [11],cx ok_get_vidio: ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; hadware read here. ;; get memory size. mov ax,DATASEG mov ds,ax mov ah,0x88 int 0x15 mov [1],ax ;; set curser show message. mov al,'b' mov [3],al mov al,0x04 mov [4],al ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; open A20. call open_a20 ;; no interrupts allowed. cli ;; mov set file to 0x0000:0x0000. call move_jump ;; move gdt to 0x00003000 call move_gdt ;; set gdt. lgdt [gdtaddr] ;; set idt empty. lidt [idtaddr] ;; init 8259A. call init_8259a ;; set cr0 call set_cr0 ;; jump to set program. jmp 0x8:0x0 move_gdt: cld mov ax,0x0000 mov es,ax mov di,0x3000 mov ax,cs mov ds,ax mov si,gdt mov cx,20 rep movsw ret load_msg: call load_curser mov ax,cs mov es,ax mov ax,loadmessage mov cx,16 mov bp,ax mov ax,0x1301 mov bx,0x000c int 0x10 ret load_curser: mov ah,0x03 xor bh,bh int 0x10 ret open_a20: o: mov dx,0x92 mov al,02 out dx,al t: mov dx,92h in al,dx and al,02 jz o ret move_jump: cld mov ax,SETUPSEG mov ds,ax mov si,SETSEG mov ax,0x0 mov es,ax xor di,di mov cx,256 rep movsw ret init_8259a: mov al,0x11 out 0x20,al call io_delay out 0xa0,al call io_delay mov al,0x20 out 0x21,al call io_delay mov al,0x28 out 0xa1,al call io_delay mov al,0x04 out 0x21,al call io_delay mov al,0x02 out 0xa1,al call io_delay mov al,0x01 out 0x21,al call io_delay out 0xa1,al call io_delay mov al,0xff out 0x21,al ;关闭主8259A控制 call io_delay out 0xa1,al ;关闭从8259A控制 call io_delay ret io_delay: mov bx,bx mov bx,bx mov bx,bx ret set_cr0: mov eax,cr0 or eax,1 mov cr0,eax ret loadmessage: db "Setup diers..." db 13,10 times 1024-($-$$) db 0
12.068085
37
0.669605
240f829674c0122ff54d7220b841c9a755e6bd3b
400
asm
Assembly
oeis/241/A241606.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/241/A241606.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/241/A241606.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A241606: A linear divisibility sequence of the fourth order related to A003779. ; Submitted by Simon Strandgaard ; 1,11,95,781,6336,51205,413351,3335651,26915305,217172736,1752296281,14138673395,114079985111,920471087701,7426955448000,59925473898301,483517428660911,3901330906652795,31478457514091281,253988526230055936 mul $0,2 add $0,2 seq $0,5178 ; Number of domino tilings of 4 X (n-1) board.
50
206
0.82
80d0a42bb162730c730393d5d367aee61bf9288a
258
asm
Assembly
Some Basic Programs/10.asm
moni-kishore-dhar/Problem-Solving-by-Assembly-Language
eed4d83be549f48e1db5bcb4700296e8e08453b1
[ "MIT" ]
1
2022-01-13T18:02:00.000Z
2022-01-13T18:02:00.000Z
Some Basic Programs/10.asm
moni-kishore-dhar/Problem-Solving-by-Assembly-Language
eed4d83be549f48e1db5bcb4700296e8e08453b1
[ "MIT" ]
null
null
null
Some Basic Programs/10.asm
moni-kishore-dhar/Problem-Solving-by-Assembly-Language
eed4d83be549f48e1db5bcb4700296e8e08453b1
[ "MIT" ]
null
null
null
; 1^1+2^2+3^3+4^4 mov di,0 mov cx,4 find_sum: mov si,1 mov ax,1 inner_loop: mul cx add si,1 cmp si,cx jle inner_loop add di,ax loop find_sum
8.322581
22
0.387597
d20c731d6f9776a21e0e435d2013a77fdebf07a6
146
asm
Assembly
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver1/chip/ys_chip7.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver1/chip/ys_chip7.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
other.7z/SFC.7z/SFC/ソースデータ/ヨッシーアイランド/日本_Ver1/chip/ys_chip7.asm
prismotizm/gigaleak
d082854866186a05fec4e2fdf1def0199e7f3098
[ "MIT" ]
null
null
null
Name: ys_chip7.asm Type: file Size: 39778 Last-Modified: '2016-05-13T04:51:15Z' SHA-1: 2C7855527A765BA7EAA1C4186F6B258ABCAD1C6C Description: null
20.857143
47
0.815068
6aba3c8813278b94ba7abd061c329a52772d3dcc
576
asm
Assembly
programs/oeis/038/A038585.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/038/A038585.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/038/A038585.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A038585: Write n in binary, delete 0's. ; 1,1,11,1,11,11,111,1,11,11,111,11,111,111,1111,1,11,11,111,11,111,111,1111,11,111,111,1111,111,1111,1111,11111,1,11,11,111,11,111,111,1111,11,111,111,1111,111,1111,1111,11111,11,111,111,1111,111,1111,1111,11111,111,1111,1111,11111,1111,11111,11111,111111,1,11,11,111,11,111,111,1111,11,111,111,1111,111,1111,1111,11111,11,111,111,1111,111,1111,1111,11111,111,1111,1111,11111,1111,11111,11111,111111,11,111,111,1111,111 seq $0,48881 ; a(n) = A000120(n+1) - 1 = wt(n+1) - 1. mov $1,10 pow $1,$0 div $1,9 mul $1,10 add $1,1 mov $0,$1
52.363636
420
0.704861
ba8c650f8927b32b84978a74dc15cccde8322781
7,034
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_1363.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_1363.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_21829_1363.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r15 push %r9 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_normal_ht+0x195fd, %rsi lea addresses_UC_ht+0xd425, %rdi and $7434, %rbp mov $91, %rcx rep movsl nop sub %rcx, %rcx lea addresses_D_ht+0x1ceb7, %rsi lea addresses_WC_ht+0x169b7, %rdi nop xor %rbx, %rbx mov $66, %rcx rep movsq nop sub %rcx, %rcx lea addresses_normal_ht+0xaf37, %rsi lea addresses_WC_ht+0x1d6e5, %rdi nop nop nop nop nop xor $37354, %r14 mov $68, %rcx rep movsb nop nop and %rcx, %rcx lea addresses_WC_ht+0x9847, %rbx nop cmp $9466, %r9 and $0xffffffffffffffc0, %rbx movaps (%rbx), %xmm4 vpextrq $1, %xmm4, %rdi nop nop nop and $64725, %rcx lea addresses_normal_ht+0x17ff7, %rsi nop nop nop xor $35818, %rbx mov (%rsi), %rbp nop nop nop nop nop cmp %rcx, %rcx lea addresses_WT_ht+0x172b7, %r9 clflush (%r9) nop cmp $63233, %r14 mov $0x6162636465666768, %rsi movq %rsi, (%r9) nop nop nop nop add %rbx, %rbx lea addresses_WC_ht+0x142b7, %rsi lea addresses_WT_ht+0x5037, %rdi nop nop nop nop add %rbp, %rbp mov $118, %rcx rep movsl nop nop nop nop sub %r14, %r14 lea addresses_D_ht+0x1de77, %r14 nop nop xor $21836, %rbx mov (%r14), %esi nop nop add %rbp, %rbp lea addresses_WT_ht+0x10237, %rsi lea addresses_UC_ht+0x2b7, %rdi xor $27221, %r15 mov $20, %rcx rep movsb nop nop nop sub %r14, %r14 lea addresses_WC_ht+0x241b, %r14 dec %rbx movb (%r14), %r15b nop nop cmp %r15, %r15 lea addresses_UC_ht+0x122b7, %rbp nop nop sub %rcx, %rcx mov (%rbp), %edi nop sub %rbp, %rbp pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r9 pop %r15 pop %r14 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r13 push %r15 push %rax push %rbp // Store lea addresses_UC+0x10e37, %r10 clflush (%r10) dec %r11 movl $0x51525354, (%r10) xor $5860, %r12 // Faulty Load lea addresses_PSE+0x192b7, %r13 nop nop nop nop cmp %rax, %rax movups (%r13), %xmm4 vpextrq $0, %xmm4, %rbp lea oracles, %r13 and $0xff, %rbp shlq $12, %rbp mov (%r13,%rbp,1), %rbp pop %rbp pop %rax pop %r15 pop %r13 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 3, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': True}} {'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 */
37.614973
2,999
0.658516
534d0b04f9646382bbb3ddfd36066cd6944f5fd3
19,991
asm
Assembly
src/Native/Runtime/amd64/WriteBarriers.asm
ZZHGit/corert
367ec5addb0a80bfbbda339d6add3ce3b99ddc75
[ "MIT" ]
null
null
null
src/Native/Runtime/amd64/WriteBarriers.asm
ZZHGit/corert
367ec5addb0a80bfbbda339d6add3ce3b99ddc75
[ "MIT" ]
null
null
null
src/Native/Runtime/amd64/WriteBarriers.asm
ZZHGit/corert
367ec5addb0a80bfbbda339d6add3ce3b99ddc75
[ "MIT" ]
1
2019-09-17T21:10:15.000Z
2019-09-17T21:10:15.000Z
;; ;; Copyright (c) Microsoft. All rights reserved. ;; Licensed under the MIT license. See LICENSE file in the project root for full license information. ;; include AsmMacros.inc ;; Macro used to copy contents of newly updated GC heap locations to a shadow copy of the heap. This is used ;; during garbage collections to verify that object references where never written to the heap without using a ;; write barrier. Note that we're potentially racing to update the shadow heap while other threads are writing ;; new references to the real heap. Since this can't be solved perfectly without critical sections around the ;; entire update process, we instead update the shadow location and then re-check the real location (as two ;; ordered operations) and if there is a disparity we'll re-write the shadow location with a special value ;; (INVALIDGCVALUE) which disables the check for that location. Since the shadow heap is only validated at GC ;; time and these write barrier operations are atomic wrt to GCs this is sufficient to guarantee that the ;; shadow heap contains only valid copies of real heap values or INVALIDGCVALUE. ifdef WRITE_BARRIER_CHECK g_GCShadow TEXTEQU <?g_GCShadow@@3PEAEEA> g_GCShadowEnd TEXTEQU <?g_GCShadowEnd@@3PEAEEA> INVALIDGCVALUE EQU 0CCCCCCCDh EXTERN g_GCShadow : QWORD EXTERN g_GCShadowEnd : QWORD UPDATE_GC_SHADOW macro BASENAME, REFREG, DESTREG ;; If g_GCShadow is 0, don't perform the check. cmp g_GCShadow, 0 je &BASENAME&_UpdateShadowHeap_Done_&REFREG& ;; Save DESTREG since we're about to modify it (and we need the original value both within the macro and ;; once we exit the macro). Note that this is naughty since we're altering the stack pointer outside of ;; the prolog inside a method without a frame. But given that this is only debug code and generally we ;; shouldn't be walking the stack at this point it seems preferable to recoding the all the barrier ;; variants to set up frames. Unlike RhpBulkWriteBarrier below which is treated as a helper call using the ;; usual calling convention, the compiler knows exactly which registers are trashed in the simple write ;; barrier case, so we don't have any more scratch registers to play with (and doing so would only make ;; things harder if at a later stage we want to allow multiple barrier versions based on the input ;; registers). push DESTREG ;; Transform DESTREG into the equivalent address in the shadow heap. sub DESTREG, G_LOWEST_ADDRESS jb &BASENAME&_UpdateShadowHeap_PopThenDone_&REFREG& add DESTREG, [g_GCShadow] cmp DESTREG, [g_GCShadowEnd] ja &BASENAME&_UpdateShadowHeap_PopThenDone_&REFREG& ;; Update the shadow heap. mov [DESTREG], REFREG ;; Now check that the real heap location still contains the value we just wrote into the shadow heap. This ;; read must be strongly ordered wrt to the previous write to prevent race conditions. We also need to ;; recover the old value of DESTREG for the comparison so use an xchg instruction (which has an implicit lock ;; prefix). xchg [rsp], DESTREG cmp [DESTREG], REFREG jne &BASENAME&_UpdateShadowHeap_Invalidate_&REFREG& ;; The original DESTREG value is now restored but the stack has a value (the shadow version of the ;; location) pushed. Need to discard this push before we are done. add rsp, 8 jmp &BASENAME&_UpdateShadowHeap_Done_&REFREG& &BASENAME&_UpdateShadowHeap_Invalidate_&REFREG&: ;; Someone went and updated the real heap. We need to invalidate the shadow location since we can't ;; guarantee whose shadow update won. ;; Retrieve shadow location from the stack and restore original DESTREG to the stack. This is an ;; additional memory barrier we don't require but it's on the rare path and x86 doesn't have an xchg ;; variant that doesn't implicitly specify the lock prefix. xchg [rsp], DESTREG mov qword ptr [DESTREG], INVALIDGCVALUE &BASENAME&_UpdateShadowHeap_PopThenDone_&REFREG&: ;; Restore original DESTREG value from the stack. pop DESTREG &BASENAME&_UpdateShadowHeap_Done_&REFREG&: endm else ; WRITE_BARRIER_CHECK UPDATE_GC_SHADOW macro BASENAME, REFREG, DESTREG endm endif ; WRITE_BARRIER_CHECK ;; There are several different helpers used depending on which register holds the object reference. Since all ;; the helpers have identical structure we use a macro to define this structure. Two arguments are taken, the ;; name of the register that points to the location to be updated and the name of the register that holds the ;; object reference (this should be in upper case as it's used in the definition of the name of the helper). DEFINE_UNCHECKED_WRITE_BARRIER_CORE macro BASENAME, REFREG ;; Update the shadow copy of the heap with the same value just written to the same heap. (A no-op unless ;; we're in a debug build and write barrier checking has been enabled). UPDATE_GC_SHADOW BASENAME, REFREG, rcx ;; If the reference is to an object that's not in an ephemeral generation we have no need to track it ;; (since the object won't be collected or moved by an ephemeral collection). cmp REFREG, [g_ephemeral_low] jb &BASENAME&_NoBarrierRequired_&REFREG& cmp REFREG, [g_ephemeral_high] jae &BASENAME&_NoBarrierRequired_&REFREG& ;; We have a location on the GC heap being updated with a reference to an ephemeral object so we must ;; track this write. The location address is translated into an offset in the card table bitmap. We set ;; an entire byte in the card table since it's quicker than messing around with bitmasks and we only write ;; the byte if it hasn't already been done since writes are expensive and impact scaling. shr rcx, 11 add rcx, [g_card_table] cmp byte ptr [rcx], 0FFh jne &BASENAME&_UpdateCardTable_&REFREG& &BASENAME&_NoBarrierRequired_&REFREG&: ret ;; We get here if it's necessary to update the card table. &BASENAME&_UpdateCardTable_&REFREG&: mov byte ptr [rcx], 0FFh ret endm ;; There are several different helpers used depending on which register holds the object reference. Since all ;; the helpers have identical structure we use a macro to define this structure. One argument is taken, the ;; name of the register that will hold the object reference (this should be in upper case as it's used in the ;; definition of the name of the helper). DEFINE_UNCHECKED_WRITE_BARRIER macro REFREG, EXPORT_REG_NAME ;; Define a helper with a name of the form RhpAssignRefEAX etc. (along with suitable calling standard ;; decoration). The location to be updated is in DESTREG. The object reference that will be assigned into that ;; location is in one of the other general registers determined by the value of REFREG. ;; WARNING: Code in EHHelpers.cpp makes assumptions about write barrier code, in particular: ;; - Function "InWriteBarrierHelper" assumes an AV due to passed in null pointer will happen on the first instruction ;; - Function "UnwindWriteBarrierToCaller" assumes the stack contains just the pushed return address LEAF_ENTRY RhpAssignRef&EXPORT_REG_NAME&, _TEXT ;; Export the canonical write barrier under unqualified name as well ifidni <REFREG>, <RDX> ALTERNATE_ENTRY RhpAssignRef ALTERNATE_ENTRY RhpAssignRefAVLocation endif ;; Write the reference into the location. Note that we rely on the fact that no GC can occur between here ;; and the card table update we may perform below. mov qword ptr [rcx], REFREG DEFINE_UNCHECKED_WRITE_BARRIER_CORE RhpAssignRef, REFREG LEAF_END RhpAssignRef&EXPORT_REG_NAME&, _TEXT endm ;; One day we might have write barriers for all the possible argument registers but for now we have ;; just one write barrier that assumes the input register is RDX. DEFINE_UNCHECKED_WRITE_BARRIER RDX, EDX ;; ;; Define the helpers used to implement the write barrier required when writing an object reference into a ;; location residing on the GC heap. Such write barriers allow the GC to optimize which objects in ;; non-ephemeral generations need to be scanned for references to ephemeral objects during an ephemeral ;; collection. ;; DEFINE_CHECKED_WRITE_BARRIER_CORE macro BASENAME, REFREG ;; The location being updated might not even lie in the GC heap (a handle or stack location for instance), ;; in which case no write barrier is required. cmp rcx, [g_lowest_address] jb &BASENAME&_NoBarrierRequired_&REFREG& cmp rcx, [g_highest_address] jae &BASENAME&_NoBarrierRequired_&REFREG& DEFINE_UNCHECKED_WRITE_BARRIER_CORE BASENAME, REFREG endm ;; There are several different helpers used depending on which register holds the object reference. Since all ;; the helpers have identical structure we use a macro to define this structure. One argument is taken, the ;; name of the register that will hold the object reference (this should be in upper case as it's used in the ;; definition of the name of the helper). DEFINE_CHECKED_WRITE_BARRIER macro REFREG, EXPORT_REG_NAME ;; Define a helper with a name of the form RhpCheckedAssignRefEAX etc. (along with suitable calling standard ;; decoration). The location to be updated is always in RCX. The object reference that will be assigned into ;; that location is in one of the other general registers determined by the value of REFREG. ;; WARNING: Code in EHHelpers.cpp makes assumptions about write barrier code, in particular: ;; - Function "InWriteBarrierHelper" assumes an AV due to passed in null pointer will happen on the first instruction ;; - Function "UnwindWriteBarrierToCaller" assumes the stack contains just the pushed return address LEAF_ENTRY RhpCheckedAssignRef&EXPORT_REG_NAME&, _TEXT ;; Export the canonical write barrier under unqualified name as well ifidni <REFREG>, <RDX> ALTERNATE_ENTRY RhpCheckedAssignRef ALTERNATE_ENTRY RhpCheckedAssignRefAVLocation endif ;; Write the reference into the location. Note that we rely on the fact that no GC can occur between here ;; and the card table update we may perform below. mov qword ptr [rcx], REFREG DEFINE_CHECKED_WRITE_BARRIER_CORE RhpCheckedAssignRef, REFREG LEAF_END RhpCheckedAssignRef&EXPORT_REG_NAME&, _TEXT endm ;; One day we might have write barriers for all the possible argument registers but for now we have ;; just one write barrier that assumes the input register is RDX. DEFINE_CHECKED_WRITE_BARRIER RDX, EDX ;; WARNING: Code in EHHelpers.cpp makes assumptions about write barrier code, in particular: ;; - Function "InWriteBarrierHelper" assumes an AV due to passed in null pointer will happen at RhpCheckedLockCmpXchgAVLocation ;; - Function "UnwindWriteBarrierToCaller" assumes the stack contains just the pushed return address LEAF_ENTRY RhpCheckedLockCmpXchg, _TEXT mov rax, r8 ALTERNATE_ENTRY RhpCheckedLockCmpXchgAVLocation lock cmpxchg [rcx], rdx jne RhpCheckedLockCmpXchg_NoBarrierRequired_RDX DEFINE_CHECKED_WRITE_BARRIER_CORE RhpCheckedLockCmpXchg, RDX LEAF_END RhpCheckedLockCmpXchg, _TEXT ;; WARNING: Code in EHHelpers.cpp makes assumptions about write barrier code, in particular: ;; - Function "InWriteBarrierHelper" assumes an AV due to passed in null pointer will happen at RhpCheckedXchgAVLocation ;; - Function "UnwindWriteBarrierToCaller" assumes the stack contains just the pushed return address LEAF_ENTRY RhpCheckedXchg, _TEXT ;; Setup rax with the new object for the exchange, that way it will automatically hold the correct result ;; afterwards and we can leave rdx unaltered ready for the GC write barrier below. mov rax, rdx ALTERNATE_ENTRY RhpCheckedXchgAVLocation xchg [rcx], rax DEFINE_CHECKED_WRITE_BARRIER_CORE RhpCheckedXchg, RDX LEAF_END RhpCheckedXchg, _TEXT ifndef CORERT ;; ;; Write barrier used when a large number of bytes possibly containing GC references have been updated. For ;; speed we don't try to determine GC series information for the value or array of values. Instead we just ;; mark all the cards covered by the memory range given to us. Additionally, at least for now, we don't try to ;; mark card bits individually, which incurs the cost of an interlocked operation. Instead, like the single ;; write barrier case, we mark 8 cards at a time by writing byte values of 0xff. ;; ;; On entry: ;; rcx : Start of memory region that was written ;; rdx : Length of memory region written ;; ;; On exit: ;; rcx/rdx : Trashed ;; LEAF_ENTRY RhpBulkWriteBarrier, _TEXT ;; For the following range checks we assume it is sufficient to test just the start address. No valid ;; write region should span a GC heap or generation boundary. ;; Check whether the writes were even into the heap. If not there's no card update required. cmp rcx, [G_LOWEST_ADDRESS] jb NoBarrierRequired cmp rcx, [G_HIGHEST_ADDRESS] jae NoBarrierRequired ;; If the size is smaller than a pointer, no write barrier is required ;; This case can occur with universal shared generic code where the size ;; is not known at compile time cmp rdx, 8 jb NoBarrierRequired ifdef WRITE_BARRIER_CHECK ;; Perform shadow heap updates corresponding to the gc heap updates that immediately preceded this helper ;; call. See the comment for UPDATE_GC_SHADOW above for a more detailed explanation of why we do this and ;; the synchronization implications. ;; If g_GCShadow is 0, don't perform the check. cmp g_GCShadow, 0 je BulkWriteBarrier_UpdateShadowHeap_Skipped ;; Save our scratch registers since the compiler doesn't expect them to be modified (and this is just ;; debug code). Not strictly legal outside of the prolog but we don't expect to generate any exceptions, ;; call methods or otherwise crawl the stack before we pop them again. push rax push r8 push r9 push r10 ;; Take a copy of rcx in r8 since we're going to modify the pointer but still need the original value for ;; the code after the shadow heap update. mov r8, rcx ;; Compute the shadow heap address corresponding to the beginning of the range of heap addresses modified ;; and in the process range check it to make sure we have the shadow version allocated. mov r9, rcx sub r9, G_LOWEST_ADDRESS jb BulkWriteBarrier_UpdateShadowHeap_Done add r9, [g_GCShadow] cmp r9, [g_GCShadowEnd] ja BulkWriteBarrier_UpdateShadowHeap_Done ;; Initialize r10 to the length of data to copy. mov r10, rdx ;; Iterate over every pointer sized slot in the range, copying data from the real heap to the shadow heap. ;; As we perform each copy we need to recheck the real heap contents with an ordered read to ensure we're ;; not racing with another heap updater. If we discover a race we invalidate the corresponding shadow heap ;; slot using a special well-known value so that this location will not be tested during the next shadow ;; heap validation. BulkWriteBarrier_UpdateShadowHeap_CopyLoop: ;; Decrement the copy count. sub r10, 8 jb BulkWriteBarrier_UpdateShadowHeap_Done ;; R8 == current real heap slot ;; R9 == current shadow heap slot ;; Update shadow slot from real slot. mov rax, [r8] mov [r9], rax ;; Memory barrier to ensure the next read is ordered wrt to the shadow heap write we just made. mfence ;; Read the real slot contents again. If they don't agree with what we just wrote then someone just raced ;; with us and updated the heap again. In such cases we invalidate the shadow slot. cmp [r8], rax jne BulkWriteBarrier_UpdateShadowHeap_LostRace BulkWriteBarrier_UpdateShadowHeap_NextIteration: ;; Advance the heap pointers and loop again. add r8, 8 add r9, 8 jmp BulkWriteBarrier_UpdateShadowHeap_CopyLoop BulkWriteBarrier_UpdateShadowHeap_LostRace: mov qword ptr [r9], INVALIDGCVALUE jmp BulkWriteBarrier_UpdateShadowHeap_NextIteration BulkWriteBarrier_UpdateShadowHeap_Done: ;; Restore our saved scratch registers. pop r10 pop r9 pop r8 pop rax BulkWriteBarrier_UpdateShadowHeap_Skipped: endif ; WRITE_BARRIER_CHECK ;; Compute the starting card address and the number of bytes to write (groups of 8 cards). We could try ;; for further optimization here using aligned 32-bit writes but there's some overhead in setup required ;; and additional complexity. It's not clear this is warranted given that a single byte of card table ;; update already covers 1K of object space (2K on 64-bit platforms). It's also not worth probing that ;; 1K/2K range to see if any of the pointers appear to be non-ephemeral GC references. Given the size of ;; the area the chances are high that at least one interesting GC refenence is present. add rdx, rcx ; rdx <- end address shr rcx, LOG2_CLUMP_SIZE ; rcx <- starting clump add rdx, CLUMP_SIZE-1 ; rdx <- end address + round up shr rdx, LOG2_CLUMP_SIZE ; rdx <- ending clump index (rounded up) ;; calculate the number of clumps to mark (round_up(end) - start) sub rdx, rcx ;; Starting card address. add rcx, [G_CARD_TABLE] ; rcx: pointer to starting byte in card table ; rdx: number of bytes to set ;; Fill the cards. To avoid cache line thrashing we check whether the cards have already been set before ;; writing. CardUpdateLoop: cmp byte ptr [rcx], 0FFh jz SkipCardUpdate mov byte ptr [rcx], 0FFh SkipCardUpdate: inc rcx dec rdx jnz CardUpdateLoop NoBarrierRequired: ret LEAF_END RhpBulkWriteBarrier, _TEXT endif ; CORERT ;; ;; RhpByRefAssignRef simulates movs instruction for object references. ;; ;; On entry: ;; rdi: address of ref-field (assigned to) ;; rsi: address of the data (source) ;; rcx: be trashed ;; ;; On exit: ;; rdi, rsi are incremented by 8, ;; rcx: trashed ;; LEAF_ENTRY RhpByRefAssignRef, _TEXT mov rcx, [rsi] mov [rdi], rcx ;; Update the shadow copy of the heap with the same value just written to the same heap. (A no-op unless ;; we're in a debug build and write barrier checking has been enabled). UPDATE_GC_SHADOW BASENAME, rcx, rdi ;; If the reference is to an object that's not in an ephemeral generation we have no need to track it ;; (since the object won't be collected or moved by an ephemeral collection). cmp rcx, [g_ephemeral_low] jb RhpByRefAssignRef_NotInHeap cmp rcx, [g_ephemeral_high] jae RhpByRefAssignRef_NotInHeap ;; move current rdi value into rcx and then increment the pointers mov rcx, rdi add rsi, 8h add rdi, 8h ;; We have a location on the GC heap being updated with a reference to an ephemeral object so we must ;; track this write. The location address is translated into an offset in the card table bitmap. We set ;; an entire byte in the card table since it's quicker than messing around with bitmasks and we only write ;; the byte if it hasn't already been done since writes are expensive and impact scaling. shr rcx, 11 add rcx, [g_card_table] cmp byte ptr [rcx], 0FFh jne RhpByRefAssignRef_UpdateCardTable ret ;; We get here if it's necessary to update the card table. RhpByRefAssignRef_UpdateCardTable: mov byte ptr [rcx], 0FFh ret RhpByRefAssignRef_NotInHeap: ; Increment the pointers before leaving add rdi, 8h add rsi, 8h ret LEAF_END RhpByRefAssignRef, _TEXT end
44.523385
127
0.735981
ce76dde1474676aaa4c410975729709bdf86cba5
811
asm
Assembly
engine/battle/move_effects/psych_up.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
engine/battle/move_effects/psych_up.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
engine/battle/move_effects/psych_up.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
3
2021-01-15T18:45:40.000Z
2021-10-16T03:35:27.000Z
BattleCommand_psychup: ; psychup ld hl, wEnemyStatLevels ld de, wPlayerStatLevels ldh a, [hBattleTurn] and a jr z, .pointers_correct ; It's the enemy's turn, so swap the pointers. push hl ld h, d ld l, e pop de .pointers_correct push hl ld b, NUM_LEVEL_STATS ; If any of the enemy's stats is modified from its base level, ; the move succeeds. Otherwise, it fails. .loop ld a, [hli] cp BASE_STAT_LEVEL jr nz, .break dec b jr nz, .loop pop hl call AnimateFailedMove jp PrintButItFailed .break pop hl ld b, NUM_LEVEL_STATS .loop2 ld a, [hli] ld [de], a inc de dec b jr nz, .loop2 ldh a, [hBattleTurn] and a jr nz, .calc_enemy_stats call CalcPlayerStats jr .merge .calc_enemy_stats call CalcEnemyStats .merge call AnimateCurrentMove ld hl, CopiedStatsText jp StdBattleTextbox
16.22
62
0.732429
156bda02e954538eeaf557a054d2ec4b0233cd74
892
asm
Assembly
programs/oeis/070/A070804.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/070/A070804.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/070/A070804.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A070804: Number of primes not exceeding phi(n). ; 0,0,1,1,2,1,3,2,3,2,4,2,5,3,4,4,6,3,7,4,5,4,8,4,8,5,7,5,9,4,10,6,8,6,9,5,11,7,9,6,12,5,13,8,9,8,14,6,13,8,11,9,15,7,12,9,11,9,16,6,17,10,11,11,15,8,18,11,14,9,19,9,20,11,12,11,17,9,21,11,16,12,22,9,18,13,16,12,23,9,20,14,17,14,20,11,24,13,17,12,25,11,26,15,15,15,27,11,28,12,20,15,29,11,23,16,20,16,24,11,29,17,22,17,25,11,30,18,23,15,31,12,28,18,20,18,32,14,33,15,24,19,30,15,29,20,23,20,34,12,35,20,24,17,30,15,36,21,27,18,32,16,37,22,22,22,38,15,36,18,28,23,39,16,30,22,30,23,40,15,41,20,30,23,34,17,37,24,28,20,42,18,43,24,24,23,44,17,45,22,32,25,39,18,37,26,32,24,41,15,46,27,34,27,39,20,41,28,34,22,43,20,47,24,30,29,48,20,49,23,30,29,50,20,42,30,36,24,51,18,52,29,37,30,39,22,47,30,38,25 cal $0,10 ; Euler totient function phi(n): count numbers <= n and prime to n. cal $0,230980 ; Number of primes <= n, starting at n=0. mov $1,$0
127.428571
696
0.647982
9c36ce993cdc4b9d9cb905a047e575416d2300de
1,842
asm
Assembly
programs/oeis/038/A038505.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/038/A038505.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/038/A038505.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A038505: Sum of every 4th entry of row n in Pascal's triangle, starting at binomial(n,2). ; 0,0,1,3,6,10,16,28,56,120,256,528,1056,2080,4096,8128,16256,32640,65536,131328,262656,524800,1048576,2096128,4192256,8386560,16777216,33558528,67117056,134225920,268435456,536854528,1073709056,2147450880,4294967296,8590000128,17180000256,34359869440,68719476736,137438691328,274877382656,549755289600,1099511627776,2199024304128,4398048608256,8796095119360,17592186044416,35184367894528,70368735789056,140737479966720,281474976710656,562949970198528,1125899940397056,2251799847239680,4503599627370496,9007199187632128,18014398375264256,36028796884746240,72057594037927936,144115188344291328,288230376688582656,576460752840294400,1152921504606846976,2305843008139952128,4611686016279904256,9223372034707292160,18446744073709551616,36893488151714070528,73786976303428141056,147573952598266347520,295147905179352825856,590295810341525782528,1180591620683051565056,2361183241400462868480,4722366482869645213696,9444732965808009904128,18889465931616019808256,37778931863094600663040,75557863725914323419136,151115727451553768931328,302231454903107537862656,604462909806764831539200,1208925819614629174706176,2417851639230357861040128,4835703278460715722080256,9671406556919232420904960,19342813113834066795298816,38685626227663735544086528,77371252455327471088173056,154742504910663738269368320,309485009821345068724781056,618970019642707729635606528,1237940039285415459271213056,2475880078570795734170337280,4951760157141521099596496896,9903520314282971830448816128,19807040628565943660897632256,39614081257132028059283619840,79228162514264337593543950336,158456325028528956662064611328 lpb $0 sub $0,1 mov $2,$0 max $2,0 seq $2,38504 ; Sum of every 4th entry of row n in Pascal's triangle, starting at "n choose 1". add $1,$2 lpe mov $0,$1
153.5
1,584
0.896308
73768a58041d4633d36594b8f19ae48da35de31c
1,882
asm
Assembly
programs/oeis/208/A208901.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/208/A208901.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/208/A208901.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A208901: Number of bitstrings of length n (with at least two runs) where the last two runs have different lengths. ; 0,0,4,8,24,48,112,224,480,960,1984,3968,8064,16128,32512,65024,130560,261120,523264,1046528,2095104,4190208,8384512,16769024,33546240,67092480,134201344,268402688,536838144,1073676288,2147418112,4294836224,8589803520,17179607040,34359476224,68718952448,137438429184,274876858368,549754765312,1099509530624,2199021158400,4398042316800,8796088827904,17592177655808,35184363700224,70368727400448,140737471578112,281474943156224,562949919866880,1125899839733760,2251799746576384,4503599493152768,9007199120523264,18014398241046528,36028796750528512,72057593501057024,144115187538984960,288230375077969920,576460751229681664,1152921502459363328,2305843007066210304,4611686014132420608,9223372032559808512,18446744065119617024,36893488138829168640,73786976277658337280,147573952572496543744,295147905144993087488,590295810324345913344,1180591620648691826688,2361183241366103130112,4722366482732206260224,9444732965601851473920,18889465931203702947840,37778931862682283802624,75557863725364567605248,151115727451278891024384,302231454902557782048768,604462909806215075725312,1208925819612430151450624,2417851639227059326156800,4835703278454118652313600,9671406556912635351138304,19342813113825270702276608,38685626227659337497575424,77371252455318674995150848,154742504910654942176346112,309485009821309884352692224,618970019642654953077473280,1237940039285309906154946560,2475880078570690181054070784,4951760157141380362108141568,9903520314282901461704638464,19807040628565802923409276928,39614081257131887321795264512,79228162514263774643590529024,158456325028528112237134479360,316912650057056224474268958720,633825300114113574848444760064,1267650600228227149696889520128 seq $0,297619 ; a(n) = 2*a(n-1) + 2*a(n-2) - 4*a(n-3), a(1) = 0, a(2) = 0, a(3) = 8. div $0,2
313.666667
1,669
0.9017
7eab9a4632d1b9ebb840894416d5bfb05d65d430
99
asm
Assembly
gfx/pokemon/exeggutor/anim.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
28
2019-11-08T07:19:00.000Z
2021-12-20T10:17:54.000Z
gfx/pokemon/exeggutor/anim.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
13
2020-01-11T17:00:40.000Z
2021-09-14T01:27:38.000Z
gfx/pokemon/exeggutor/anim.asm
Dev727/ancientplatinum
8b212a1728cc32a95743e1538b9eaa0827d013a7
[ "blessing" ]
22
2020-05-28T17:31:38.000Z
2022-03-07T20:49:35.000Z
frame 1, 07 frame 0, 07 frame 1, 07 setrepeat 3 frame 2, 06 frame 0, 06 dorepeat 4 endanim
11
12
0.666667
d35520bec16d9abb4594f742b69c80899a61f4ad
689
asm
Assembly
programs/oeis/081/A081490.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/081/A081490.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/081/A081490.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A081490: Leading term of n-th row of A081491. ; 1,2,4,9,19,36,62,99,149,214,296,397,519,664,834,1031,1257,1514,1804,2129,2491,2892,3334,3819,4349,4926,5552,6229,6959,7744,8586,9487,10449,11474,12564,13721,14947,16244,17614,19059,20581,22182,23864,25629,27479,29416,31442,33559,35769,38074,40476,42977,45579,48284,51094,54011,57037,60174,63424,66789,70271,73872,77594,81439,85409,89506,93732,98089,102579,107204,111966,116867,121909,127094,132424,137901,143527,149304,155234,161319,167561,173962,180524,187249,194139,201196,208422,215819,223389,231134,239056,247157,255439,263904,272554,281391,290417,299634,309044,318649 mul $0,2 mov $1,$0 bin $0,3 mul $1,2 add $0,$1 div $0,4 add $0,1
62.636364
574
0.788099
2d3441b63bf23a4c93f6d5f99280356d213e451e
6,717
asm
Assembly
Assembler Intel Code/intel-protected/startup.asm
AYIDouble/x86-Assembly-Reverse-Engineering
3ef823437c32b445c394a823b0abb7c02047ccf5
[ "MIT" ]
18
2018-11-16T19:29:04.000Z
2022-02-27T21:25:10.000Z
Assembler Intel Code/intel-protected/startup.asm
AYIDouble/x86-assembly-Reverse-Engineering
3ef823437c32b445c394a823b0abb7c02047ccf5
[ "MIT" ]
1
2018-10-30T23:43:27.000Z
2018-10-30T23:43:27.000Z
Assembler Intel Code/intel-protected/startup.asm
AYIDouble/x86-assembly-Reverse-Engineering
3ef823437c32b445c394a823b0abb7c02047ccf5
[ "MIT" ]
4
2019-11-06T16:47:01.000Z
2022-02-18T17:00:56.000Z
; TODO finish converting this to a text file that looks like the PDF... ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; ASSUMPTIONS: ; ; 1. The bottom 64K of memory is ram, and can be used for ; scratch space by this module. ; ; 2. The system has sufficient free usable ram to copy the ; initial GDT, IDT, and TSS ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; configuration data - must match with build definition CS_BASE EQU 0FFFF0000H ; CS_BASE is the linear address of the segment STARTUP_CODE ; - this is specified in the build language file RAM_START EQU 400H ; RAM_START is the start of free, usable ram in the linear ; memory space. The GDT, IDT, and initial TSS will be ; copied above this space, and a small data segment will be ; discarded at this linear address. The 32-bit word at ; RAM_START will contain the linear address of the first ; free byte above the copied tables - this may be useful if ; a memory manager is used. TSS_INDEX EQU 10 ; TSS_INDEX is the index of the TSS of the first task to ; run after startup ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ------------------------- STRUCTURES and EQU --------------- ; structures for system data ; TSS structure TASK_STATE STRUC link DW ? link_h DW ? ESP0 DD ? SS0 DW ? SS0_h DW ? ESP1 DD ? SS1 DW ? SS1_h DW ? ESP2 DD ? SS2 DW ? SS2_h DW ? CR3_reg DD ? EIP_reg DD ? EFLAGS_regDD ? EAX_reg DD ? ECX_reg DD ? EDX_reg DD ? EBX_reg DD ? ESP_reg DD ? EBP_reg DD ? ESI_reg DD ? EDI_reg DD ? ES_reg DW ? ES_h DW ? CS_reg DW ? CS_h DW ? SS_reg DW ? SS_h DW ? DS_reg DW ? DS_h DW ? FS_reg DW ? FS_h DW ? GS_reg DW ? GS_h DW ? LDT_reg DW ? LDT_h DW ? TRAP_reg DW ? IO_map_baseDW ? TASK_STATE ENDS ; basic structure of a descriptor DESC STRUC lim_0_15 DW ? bas_0_15 DW ? bas_16_23 DB ? access DB ? gran DB ? bas_24_31 DB ? DESC ENDS ; structure for use with LGDT and LIDT instructions TABLE_REG STRUC table_lim DW ? table_linearDD ? TABLE_REG ENDS ; offset of GDT and IDT descriptors in builder generated GDT GDT_DESC_OFF EQU 1*SIZE(DESC) IDT_DESC_OFF EQU 2*SIZE(DESC) ; equates for building temporary GDT in RAM LINEAR_SEL EQU 1*SIZE (DESC) LINEAR_PROTO_LO EQU 00000FFFFH ; LINEAR_ALIAS LINEAR_PROTO_HI EQU 000CF9200H ; Protection Enable Bit in CR0 PE_BIT EQU 1B ; ------------------------------------------------------------ ; ------------------------- DATA SEGMENT---------------------- ; Initially, this data segment starts at linear 0, according ; to the processor’s power-up state. STARTUP_DATA SEGMENT RW free_mem_linear_base LABEL DWORD TEMP_GDT LABEL BYTE ; must be first in segment TEMP_GDT_NULL_DESC DESC <> TEMP_GDT_LINEAR_DESC DESC <> ; scratch areas for LGDT and LIDT instructions TEMP_GDT_SCRATCH TABLE_REG <> APP_GDT_RAM TABLE_REG <> APP_IDT_RAM TABLE_REG <> ; align end_data fill DW ? ; last thing in this segment - should be on a dword boundary end_data LABEL BYTE STARTUP_DATA ENDS ; ------------------------------------------------------------ ; ------------------------- CODE SEGMENT---------------------- STARTUP_CODE SEGMENT ER PUBLIC USE16 ; filled in by builder PUBLIC GDT_EPROM GDT_EPROM TABLE_REG <> ; filled in by builder PUBLIC IDT_EPROM IDT_EPROM TABLE_REG <> ; entry point into startup code - the bootstrap will vector ; here with a near JMP generated by the builder. This ; label must be in the top 64K of linear memory. PUBLIC STARTUP STARTUP: ; DS,ES address the bottom 64K of flat linear memory ASSUME DS:STARTUP_DATA, ES:STARTUP_DATA ; See Figure 9-4 ; load GDTR with temporary GDT LEA EBX,TEMP_GDT ; build the TEMP_GDT in low ram, MOV DWORD PTR [EBX],0 ; where we can address MOV DWORD PTR [EBX]+4,0 MOV DWORD PTR [EBX]+8, LINEAR_PROTO_LO MOV DWORD PTR [EBX]+12, LINEAR_PROTO_HI MOV TEMP_GDT_scratch.table_linear,EBX MOV TEMP_GDT_scratch.table_lim,15 DB 66H; execute a 32 bit LGDT LGDT TEMP_GDT_scratch ; enter protected mode MOV EBX,CR0 OR EBX,PE_BIT MOV CR0,EBX ; clear prefetch queue JMP CLEAR_LABEL CLEAR_LABEL: ; make DS and ES address 4G of linear memory MOV CX,LINEAR_SEL MOV DS,CX MOV ES,CX ; do board specific initialization ; ; ; ...... ; ; See Figure 9-5 ; copy EPROM GDT to ram at: ; RAM_START + size (STARTUP_DATA) MOV EAX,RAM_START ADD EAX,OFFSET (end_data) MOV EBX,RAM_START MOV ECX, CS_BASE ADD ECX, OFFSET (GDT_EPROM) MOV ESI, [ECX].table_linear MOV EDI,EAX MOVZX ECX, [ECX].table_lim MOV APP_GDT_ram[EBX].table_lim,CX INC ECX MOV EDX,EAX MOV APP_GDT_ram[EBX].table_linear,EAX ADD EAX,ECX REP MOVS BYTE PTR ES:[EDI],BYTE PTR DS:[ESI] ; fixup GDT base in descriptor MOV ECX,EDX MOV [EDX].bas_0_15+GDT_DESC_OFF,CX ROR ECX,16 ; PAGE 4 TODO remove later. MOV [EDX].bas_16_23+GDT_DESC_OFF,CL [EDX].bas_24_31+GDT_DESC_OFF,CH ; copy EPROM IDT to ram at: ; RAM_START+size(STARTUP_DATA)+SIZE (EPROM GDT) MOV ECX, CS_BASE ADD ECX, OFFSET (IDT_EPROM) MOV ESI, [ECX].table_linear MOV EDI,EAX MOVZX ECX, [ECX].table_lim MOV APP_IDT_ram[EBX].table_lim,CX INC ECX MOV APP_IDT_ram[EBX].table_linear,EAX MOV EBX,EAX ADD EAX,ECX REP MOVS BYTE PTR ES:[EDI],BYTE PTR DS:[ESI] MOV ROR MOV MOV MOV LGDT LIDT REPMOV MOV MOV MOV MOV MOV ROL MOV MOV LSL INC MOV ADD MOVS MOV ROL MOV MOV ROL ;save start MOV ; fixup IDT pointer in GDT [EDX].bas_0_15+IDT_DESC_OFF,BX EBX,16 [EDX].bas_16_23+IDT_DESC_OFF,BL [EDX].bas_24_31+IDT_DESC_OFF,BH ; load GDTR and IDTR EBX,RAM_START DB 66H ; execute a 32 bit LGDT APP_GDT_ram[EBX] DB 66H ; execute a 32 bit LIDT APP_IDT_ram[EBX] ; move the TSS EDI,EAX EBX,TSS_INDEX*SIZE(DESC) ECX,GDT_DESC_OFF ;build linear address for TSS GS,CX DH,GS:[EBX].bas_24_31 DL,GS:[EBX].bas_16_23 EDX,16 DX,GS:[EBX].bas_0_15 ESI,EDX ECX,EBX ECX EDX,EAX EAX,ECX BYTE PTR ES:[EDI],BYTE PTR DS:[ESI] ; fixup TSS pointer GS:[EBX].bas_0_15,DX EDX,16 GS:[EBX].bas_24_31,DH GS:[EBX].bas_16_23,DL EDX,16 of free ram at linear location RAMSTART free_mem_linear_base+RAM_START,EAX ;assume no LDT used in the initial task - if necessary, ;code to move the LDT could be added, and should resemble ;that used to move the TSS ; load task register LTR BX ; No task switch, only descriptor loading ; See Figure 9-6 ; load minimal set of registers necessary to simulate task ; switch MOV AX,[EDX].SS_reg ; start loading registers MOV EDI,[EDX].ESP_reg MOV SS,AX MOV ESP,EDI ; stack now valid PUSH DWORD PTR [EDX].EFLAGS_reg PUSH DWORD PTR [EDX].CS_reg PUSH DWORD PTR [EDX].EIP_reg MOV AX,[EDX].DS_reg MOV BX,[EDX].ES_reg MOV DS,AX ; DS and ES no longer linear memory MOV ES,BX ; simulate far jump to initial task IRETD STARTUP_CODE ENDS END STARTUP, DS:STARTUP_DATA, SS:STARTUP_DATA
17.048223
71
0.691082
a9c4349dd87cef47ce1e67712638ce77b95bebfb
956
asm
Assembly
lab5/Lab0005-1/SW_Mult.asm
Inscrupulous/MSP430
b752776fca3829318da30b1b96809b61f9309289
[ "BSD-3-Clause" ]
null
null
null
lab5/Lab0005-1/SW_Mult.asm
Inscrupulous/MSP430
b752776fca3829318da30b1b96809b61f9309289
[ "BSD-3-Clause" ]
null
null
null
lab5/Lab0005-1/SW_Mult.asm
Inscrupulous/MSP430
b752776fca3829318da30b1b96809b61f9309289
[ "BSD-3-Clause" ]
null
null
null
;------------------------------------------------------------------------------- ; File: SW_Mult.asm (CPE 325 Lab 5) ; Function: Uses Software multiplier to multiply numbers ; Input: base and base^n-1 ; Output: base^n ; Author: Tyler Phillips ; Date: 09/22/20 ;------------------------------------------------------------------------------- .cdecls C,LIST,"msp430.h" ; Include device header file .def sw_mult .text sw_mult: mov.w #8, R8 ;set counter to 8 bits mov.w 10(SP), R10 ; R10 holds A clr R9 ; R9 holds C mov.w 2(SP), R7 ; R7 holds B loop: mov R7, R11 rrc R11 ; rotate right once to get the LSB to carry bit jc ladd shift: clrc ;clear carry rlc R10 ;perform left rotate clrc ;clear carry rrc R7 ;perform right rotate dec R8 ;R8-1 jnz loop ;if != 0 jump to loop ret ladd: add.w R10, R9 ;add A and C jmp shift nop .end
24.512821
81
0.491632
75408e486d13485642e5b6dedcab06129cc9c53b
824
asm
Assembly
oeis/107/A107966.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/107/A107966.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/107/A107966.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A107966: a(n) = (n+1)(n+2)^3*(n+3)^2*(n+4)(5n^2 + 23n + 30)/8640. ; Submitted by Jon Maiga ; 1,29,320,2100,9898,37044,116928,323730,807675,1851421,3955952,7966322,15249780,27941200,49273344,84012300,139021461,223980645,352290400,542195192,818163038,1212563220,1767688000,2538168750,3593841615,5023122741,6936958224,9473419270,12803018600,17134829888,22723497984,29877233848,38966894505,50436254925,64813585536,82724656092,104907293842,132227631380,165698187200,206497929834,255994484515,315768649581,387641398320,473703550650,576348307932,698306853328,842687229440,1013016714500,1213287928125 mov $3,2 mov $5,$0 lpb $3 mov $0,$5 sub $3,1 add $0,$3 trn $0,1 seq $0,107916 ; a(n) = binomial(n+3,2)*binomial(n+4,3)*binomial(n+5,5)/12. mov $2,$3 mul $2,$0 add $4,$2 lpe min $5,1 mul $5,$0 mov $0,$4 sub $0,$5
39.238095
501
0.752427
b5286e63c9661c70b576f68ffeb75190dfac3006
1,485
asm
Assembly
programs/oeis/182/A182522.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/182/A182522.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/182/A182522.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A182522: a(0) = 1; thereafter a(2*n + 1) = 3^n, a(2*n + 2) = 2 * 3^n. ; 1,1,2,3,6,9,18,27,54,81,162,243,486,729,1458,2187,4374,6561,13122,19683,39366,59049,118098,177147,354294,531441,1062882,1594323,3188646,4782969,9565938,14348907,28697814,43046721,86093442,129140163,258280326,387420489,774840978,1162261467,2324522934,3486784401,6973568802,10460353203,20920706406,31381059609,62762119218,94143178827,188286357654,282429536481,564859072962,847288609443,1694577218886,2541865828329,5083731656658,7625597484987,15251194969974,22876792454961,45753584909922,68630377364883,137260754729766,205891132094649,411782264189298,617673396283947,1235346792567894,1853020188851841,3706040377703682,5559060566555523,11118121133111046,16677181699666569,33354363399333138,50031545098999707,100063090197999414,150094635296999121,300189270593998242,450283905890997363,900567811781994726,1350851717672992089,2701703435345984178,4052555153018976267,8105110306037952534,12157665459056928801,24315330918113857602,36472996377170786403,72945992754341572806,109418989131512359209,218837978263024718418,328256967394537077627,656513934789074155254,984770902183611232881,1969541804367222465762,2954312706550833698643,5908625413101667397286,8862938119652501095929,17725876239305002191858,26588814358957503287787,53177628717915006575574,79766443076872509863361,159532886153745019726722,239299329230617529590083 lpb $0 sub $0,1 add $1,$2 mov $2,$1 trn $2,$0 mul $2,2 add $2,1 lpe add $1,1 mov $0,$1
106.071429
1,312
0.86936
86327b250fd2b943e1d0c695bd270531e6a29591
9,058
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_ht_st_zr_un_sm_/i9-9900K_12_0xa0.log_21829_1781.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_ht_st_zr_un_sm_/i9-9900K_12_0xa0.log_21829_1781.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_ht_st_zr_un_sm_/i9-9900K_12_0xa0.log_21829_1781.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0xc314, %rsi lea addresses_A_ht+0xe914, %rdi nop nop nop sub %r11, %r11 mov $123, %rcx rep movsq nop nop cmp $11555, %rdi lea addresses_A_ht+0x13284, %r10 nop nop nop nop nop xor %rsi, %rsi mov (%r10), %rdi nop nop nop sub $10283, %r11 lea addresses_WT_ht+0x11c08, %rbx nop nop nop lfence movups (%rbx), %xmm5 vpextrq $0, %xmm5, %rsi nop nop xor %rbx, %rbx lea addresses_WT_ht+0x14614, %rsi lea addresses_A_ht+0x1eabc, %rdi nop nop add $44997, %rbx mov $17, %rcx rep movsb nop nop nop nop cmp %rdi, %rdi lea addresses_A_ht+0x19230, %r10 nop nop nop dec %rsi movups (%r10), %xmm4 vpextrq $0, %xmm4, %rbx nop nop nop nop nop sub $35299, %rdi lea addresses_UC_ht+0x2694, %rsi lea addresses_A_ht+0x12314, %rdi clflush (%rdi) nop nop nop nop nop cmp $39448, %rbx mov $46, %rcx rep movsb nop nop nop nop nop dec %r11 lea addresses_normal_ht+0x1a314, %rsi lea addresses_D_ht+0x1ab14, %rdi clflush (%rdi) add %r13, %r13 mov $46, %rcx rep movsw sub %r13, %r13 lea addresses_normal_ht+0x14314, %rsi lea addresses_UC_ht+0x96a4, %rdi nop xor %rbx, %rbx mov $127, %rcx rep movsl nop nop xor $31832, %rcx lea addresses_WC_ht+0x7214, %rcx sub $55380, %r13 mov (%rcx), %r10 nop nop nop nop nop cmp %rdi, %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r13 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r15 push %r8 push %rax push %rbx push %rsi // Store lea addresses_normal+0x16c34, %r15 nop nop nop nop and %rax, %rax mov $0x5152535455565758, %rbx movq %rbx, (%r15) nop nop add %r8, %r8 // Store lea addresses_UC+0x6b3e, %rbx nop nop nop sub $47738, %r11 mov $0x5152535455565758, %r8 movq %r8, (%rbx) nop nop nop nop cmp %r8, %r8 // Store lea addresses_UC+0x6383, %r15 nop nop nop nop nop sub %r11, %r11 mov $0x5152535455565758, %rbx movq %rbx, %xmm5 vmovups %ymm5, (%r15) nop nop add $57820, %r15 // Load mov $0x3edfa90000000b14, %r8 nop nop sub %r15, %r15 mov (%r8), %r11d nop nop nop nop nop and %r11, %r11 // Load lea addresses_A+0x6894, %rax clflush (%rax) nop nop nop nop nop xor $44787, %r15 mov (%rax), %r11 xor $55361, %rbx // Store lea addresses_normal+0x1fc14, %r8 nop cmp $6176, %rbx mov $0x5152535455565758, %r11 movq %r11, (%r8) nop nop add %r8, %r8 // Store mov $0x3edfa90000000b14, %r11 nop nop nop nop sub $25171, %r10 mov $0x5152535455565758, %r15 movq %r15, %xmm3 movups %xmm3, (%r11) nop xor %r10, %r10 // Faulty Load mov $0x3edfa90000000b14, %rax nop and %rsi, %rsi mov (%rax), %r11w lea oracles, %r15 and $0xff, %r11 shlq $12, %r11 mov (%r15,%r11,1), %r11 pop %rsi pop %rbx pop %rax pop %r8 pop %r15 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 32}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_normal', 'AVXalign': False, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_UC', 'AVXalign': False, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_UC', 'AVXalign': False, 'size': 32}} {'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_A', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 5, 'type': 'addresses_normal', 'AVXalign': False, 'size': 8}} {'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 16}} [Faulty Load] {'src': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_NC', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'same': False, 'congruent': 11, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_A_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 4, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'src': {'NT': False, 'same': False, 'congruent': 1, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'src': {'same': True, 'congruent': 7, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_A_ht'}} {'src': {'NT': False, 'same': True, 'congruent': 1, 'type': 'addresses_A_ht', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'} {'src': {'same': True, 'congruent': 7, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_A_ht'}} {'src': {'same': False, 'congruent': 9, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_D_ht'}} {'src': {'same': False, 'congruent': 9, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 3, 'type': 'addresses_UC_ht'}} {'src': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'} {'a4': 1, '0a': 2, 'c6': 1, 'dc': 1, '48': 3, '5c': 3, 'fc': 2, '4c': 3, '90': 3, '3e': 6, '1e': 1, 'b6': 3, 'd6': 1, '4a': 1, '6c': 2, '32': 3, 'ca': 2, 'de': 2, 'd2': 2, 'd8': 3, '60': 2, '36': 1, '5a': 1, '02': 2, '14': 2, '40': 1, 'd0': 1, '34': 1, '16': 5, 'a0': 2, 'b0': 1, 'ac': 1, '98': 1, '8e': 1, '7a': 3, '2a': 2, 'aa': 1, 'c4': 1, '0c': 3, '94': 3, 'da': 2, 'c0': 1, '12': 2, '76': 1, 'ae': 2, 'ba': 1, 'd4': 1, '6a': 4, '46': 3, '1c': 1, 'e0': 2, 'a6': 1, '44': 1, '86': 3, '58': 21471, '5e': 1, '00': 171, '74': 1, '0e': 1, '7c': 2, 'b8': 2, '6e': 1, 'e8': 2, 'c2': 2, '18': 1, '3c': 2, 'e2': 3, 'f6': 2, 'fa': 2, '2c': 2, '4e': 2, 'c8': 1, '72': 1, 'f8': 2, '54': 1, '8c': 1, '22': 1, 'e4': 1, '8a': 2, '7e': 2, '08': 3, '80': 2, 'bc': 1, '10': 2, 'e6': 1, 'f2': 3, '1a': 2, '26': 1, '28': 2, '2e': 2, '30': 2, 'a8': 2, '78': 2, '9c': 4, '66': 2, '82': 4, '38': 1, '9a': 1, 'ec': 5, 'ce': 2} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 d6 58 58 58 58 58 58 58 58 58 58 58 58 58 58 f2 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 66 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 e8 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 e8 58 58 58 58 58 58 58 58 58 58 58 58 0a 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 80 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 90 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 08 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 ec 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
34.181132
2,999
0.623316
12bb23de8f4b00e529b40443586f977093403f2f
265
asm
Assembly
libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_iy/cm48_sdcciy_logb_fastcall.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_iy/cm48_sdcciy_logb_fastcall.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/math/float/math48/c/sdcc_iy/cm48_sdcciy_logb_fastcall.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; float logb(float x) __z88dk_fastcall SECTION code_fp_math48 PUBLIC cm48_sdcciy_logb_fastcall EXTERN cm48_sdcciyp_dx2m48, am48_logb, cm48_sdcciyp_m482d cm48_sdcciy_logb_fastcall: call cm48_sdcciyp_dx2m48 call am48_logb jp cm48_sdcciyp_m482d
15.588235
57
0.815094
ac4eae9891128abb31428f4bb470d29d7835656e
2,068
asm
Assembly
Etapa 01/Aula 07 - Controle de Fluxo/codes/a07e04.asm
bellorini/unioeste
8c3d1f1e26dc3680160820c7219954b6076c9d5e
[ "MIT" ]
6
2021-11-03T20:19:10.000Z
2022-02-23T17:57:58.000Z
Etapa 01/Aula 07 - Controle de Fluxo/codes/a07e04.asm
bellorini/unioeste
8c3d1f1e26dc3680160820c7219954b6076c9d5e
[ "MIT" ]
null
null
null
Etapa 01/Aula 07 - Controle de Fluxo/codes/a07e04.asm
bellorini/unioeste
8c3d1f1e26dc3680160820c7219954b6076c9d5e
[ "MIT" ]
5
2022-02-02T15:48:45.000Z
2022-02-22T18:17:52.000Z
; Aula 07 - Controle de Fluxo de Execucao ; arquivo: a07e04.asm ; objetivo: the evil lowercase papagali code! ; verifica entrada ; se length < 25 ; converte string de entrada para lowercase ; apresenta conversao ; senao ; msg de erro e encerra ; nasm -f elf64 a07e04.asm ; ld a07e04.o -o a07e04.x %define maxChars 26 section .data strOla : db "Hello? (max 25 caracteres)", 10, 0 strOlaL: equ $ - strOla strBye : db "Voce digitou: ", 0 strByeL: equ $ - strBye strErro : db "Voce digitou mais do que 25 caracteres", 10, "Programa encerrado", 10, 0 strErroL: equ $ - strErro strLF : db 10 ; quebra de linha strLFL : db 1 section .bss strLida : resb maxChars strLidaL : resd 1 section .text global _start _start: mov rax, 1 mov rdi, 1 ; std_file lea rsi, [strOla] mov edx, strOlaL syscall leitura: mov rax, 0 ; READ mov rdi, 1 lea rsi, [strLida] mov edx, maxChars syscall mov [strLidaL], eax verificacaoDeEntrada: ; [strLida + eax-1] aponta para ultimo lido ; se ultimo for enter ; laco para lowercase cmp byte [strLida + eax-1], 10 je entradaFor ; senao ; msg de erro e encerra. mov rax, 1 ; WRITE mov rdi, 1 mov rsi, strErro mov rdx, strErroL syscall jmp fim ; for(ecx = 0; ecx < strLidaL; ecx++){ ... } entradaFor: mov ecx, 0 ; ecx = 0 mov r8d, [strLidaL] ; reg eh rapido dec r8d preBloco: cmp ecx, r8d ; ecx < strLidaL jge saidaFor blocoFor: ; acessa String e aplica lowercase byte-a-byte or byte [strLida + ecx], 0x20 inc ecx ; ecx++ jmp preBloco saidaFor: resposta: mov rax, 1 ; WRITE mov rdi, 1 lea rsi, [strBye] mov edx, strByeL syscall mov rax, 1 ; WRITE mov ebx, 1 lea rsi, [strLida] mov edx, [strLidaL] syscall fim: mov rax, 60 mov rdi, 0 syscall
20.888889
90
0.570116
277bb8cec2a87967916959017594e75eac9910b5
691
asm
Assembly
src/PJ/input/doscomm.asm
AnimatorPro/Animator-Pro
6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb
[ "BSD-3-Clause" ]
119
2015-01-10T15:13:50.000Z
2022-01-24T04:54:34.000Z
src/PJ/input/doscomm.asm
AnimatorPro/Animator-Pro
6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb
[ "BSD-3-Clause" ]
6
2015-10-22T20:14:59.000Z
2021-07-10T03:25:21.000Z
src/PJ/input/doscomm.asm
AnimatorPro/Animator-Pro
6d0b68cd94bb5cfde2cdd05e9a7c8ee1e1cb3cbb
[ "BSD-3-Clause" ]
27
2015-04-24T22:55:30.000Z
2022-01-21T13:54:00.000Z
CGROUP group code code segment dword 'CODE' assume cs:CGROUP,ds:CGROUP include errcodes.i include abcdregs.i public jcomm ; jcomm(USHORT *abcd_regs); /* parameter pointer to 4 short array of regs */ jcomm proc near jcop struc jco_esi dd ? jco_edx dd ? jco_ecx dd ? jco_ebx dd ? jco_ret dd ? jco_regs dd ? jcop ends push ebx push ecx push edx push esi mov esi,[esp].jco_regs mov ax,[esi].abcd_ax mov bx,[esi].abcd_bx mov cx,[esi].abcd_cx mov dx,[esi].abcd_dx int 14h mov [esi].abcd_ax,ax mov [esi].abcd_bx,bx mov [esi].abcd_cx,cx mov [esi].abcd_dx,dx pop esi pop edx pop ecx pop ebx ret jcomm endp code ends end
15.021739
77
0.662808
64775b456815bf8547b6d81924820bb5b93066a7
391
asm
Assembly
oeis/001/A001030.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/001/A001030.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/001/A001030.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A001030: Fixed under 1 -> 21, 2 -> 211. ; Submitted by Stefano Spezia ; 2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,1,2,1,2,1,2,1,1,2,1,2 add $0,1 seq $0,270226 ; a(n) is the number of terms in the n-th block of consecutive integers of A136119. sub $0,1
48.875
201
0.590793
6c5bc7cb65fb281220c0d6570a6f2324087f7a37
3,138
asm
Assembly
MSDOS/Virus.MSDOS.Unknown.fooltbc.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
3
2021-05-15T15:57:13.000Z
2022-03-16T09:11:05.000Z
MSDOS/Virus.MSDOS.Unknown.fooltbc.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
null
null
null
MSDOS/Virus.MSDOS.Unknown.fooltbc.asm
fengjixuchui/Family
2abe167082817d70ff2fd6567104ce4bcf0fe304
[ "MIT" ]
3
2021-05-15T15:57:15.000Z
2022-01-08T20:51:04.000Z
; ; How to fool TB-Clean using the prefetch queue. ; ; Conzouler / Immortal Riot 1995. ; ; (Ideas from 40Hex magazine issue 7) ; ; Debuggers like TB-Clean reads one instruction a time from ; memory while the processor will read 16 and put them in a ; prefetch queue. Therefore, if you change code that already ; is is in the prefetch the change won't affect the program ; when run normally, but if the program is run with TB-Clean ; it will run the changed code. ; Any branch (jumps, calls, ints and rets) will flush the ; prefetch and 16 bytes will be read from the new position. ; So, you can change the location of a jump to make some ; code run if a debugger is used but another when executed ; normally. Get it? ; The fun part with TB-Clean is that you can use this tech- ; nique to simulate a program restoration but instead you ; put some mean code instead of the original program. ; ; You can also just do an int20 when tbscan is executed and ; make TB-Clean say: "File might not be infected at all or ; is damaged by an overwriting virus". Which is exactly what ; TB-Clean would say if the file wasn't infected in the first ; place. ; ; Try to compile this code and run it, then use TB-Clean on it ; and rerun the "cleaned" file. ; .model tiny .code org 100h start: jmp entry ; Carrier file... carrier db 1+offset nodebug-offset debug dup(90h) ; Your code... entry: call delta ; Get delta offset. delta: pop si ; TbScan will detect this ; but this is about fooling ; TbClean. mov byte ptr ds:[$+6], 0 ; This changes the jump. jmp short nodebug ; If this is a near jump ; you'll have to make above ; a word ptr and add 7 instead. ; Here is the code that simulates a restoration. mov di, 100h ; Offset to entry point. push di ; Save to perform a ret later add si, offset debug - offset delta ; Relative offset to routine ; to put at entry point. mov cx, offset nodebug - offset debug ; Size of routine. rep movsb ; Move the code. ret ; Jump to entry point. debug: ; Here is the routine TBClean will put in the restored program. mov ah, 9 ; Display string. mov dx, 100h + offset tbsux - offset debug int 21h ret ; Instead of int20 tbsux db 'TB-Clean stinks!!!',7,'$' nodebug: ; Here is your normal code. mov ah, 9h ; Display string add si, offset msg - offset delta mov dx, si int 21h int 20h msg db 'Hi dudez.. tbclean cannot disinfect diz...$' end start
35.258427
71
0.552581
46e584a56b225ae9fce1c55a09a79cf0546e044e
99,445
asm
Assembly
tmp1/c55x-sim2/foo/Debug/intc_example.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/intc_example.asm
jwestmoreland/eZdsp-DBG-sim
f6eacd75d4f928dec9c751545e9e919d052e4ade
[ "MIT" ]
null
null
null
tmp1/c55x-sim2/foo/Debug/intc_example.asm
jwestmoreland/eZdsp-DBG-sim
f6eacd75d4f928dec9c751545e9e919d052e4ade
[ "MIT" ]
null
null
null
;******************************************************************************* ;* TMS320C55x C/C++ Codegen PC v4.4.1 * ;* Date/Time created: Sat Sep 29 23:09:31 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("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.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 2,16 .field _sarRegDataAddr+0,24 .field 0,8 .field 28692,32 ; _sarRegDataAddr @ 0 .sect ".cinit" .align 1 .field 1,16 .field _i+0,24 .field 0,8 .field 0,16 ; _i @ 0 .sect ".cinit" .align 1 .field 1,16 .field _PaSs_StAtE+0,24 .field 0,8 .field 1,16 ; _PaSs_StAtE @ 0 .sect ".cinit" .align 1 .field 1,16 .field _PaSs+0,24 .field 0,8 .field 0,16 ; _PaSs @ 0 $C$DW$1 .dwtag DW_TAG_subprogram, DW_AT_name("SAR_init") .dwattr $C$DW$1, DW_AT_TI_symbol_name("_SAR_init") .dwattr $C$DW$1, DW_AT_type(*$C$DW$T$59) .dwattr $C$DW$1, DW_AT_declaration .dwattr $C$DW$1, DW_AT_external $C$DW$2 .dwtag DW_TAG_subprogram, DW_AT_name("SAR_deInit") .dwattr $C$DW$2, DW_AT_TI_symbol_name("_SAR_deInit") .dwattr $C$DW$2, DW_AT_type(*$C$DW$T$59) .dwattr $C$DW$2, DW_AT_declaration .dwattr $C$DW$2, DW_AT_external $C$DW$3 .dwtag DW_TAG_subprogram, DW_AT_name("SAR_chanOpen") .dwattr $C$DW$3, DW_AT_TI_symbol_name("_SAR_chanOpen") .dwattr $C$DW$3, DW_AT_type(*$C$DW$T$59) .dwattr $C$DW$3, DW_AT_declaration .dwattr $C$DW$3, DW_AT_external $C$DW$4 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$4, DW_AT_type(*$C$DW$T$50) $C$DW$5 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$5, DW_AT_type(*$C$DW$T$43) .dwendtag $C$DW$3 $C$DW$6 .dwtag DW_TAG_subprogram, DW_AT_name("SAR_chanClose") .dwattr $C$DW$6, DW_AT_TI_symbol_name("_SAR_chanClose") .dwattr $C$DW$6, DW_AT_type(*$C$DW$T$59) .dwattr $C$DW$6, DW_AT_declaration .dwattr $C$DW$6, DW_AT_external $C$DW$7 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$7, DW_AT_type(*$C$DW$T$50) .dwendtag $C$DW$6 $C$DW$8 .dwtag DW_TAG_subprogram, DW_AT_name("SAR_chanInit") .dwattr $C$DW$8, DW_AT_TI_symbol_name("_SAR_chanInit") .dwattr $C$DW$8, DW_AT_type(*$C$DW$T$59) .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$51) .dwendtag $C$DW$8 $C$DW$10 .dwtag DW_TAG_subprogram, DW_AT_name("SAR_chanSetup") .dwattr $C$DW$10, DW_AT_TI_symbol_name("_SAR_chanSetup") .dwattr $C$DW$10, DW_AT_type(*$C$DW$T$59) .dwattr $C$DW$10, DW_AT_declaration .dwattr $C$DW$10, DW_AT_external $C$DW$11 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$11, DW_AT_type(*$C$DW$T$50) $C$DW$12 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$12, DW_AT_type(*$C$DW$T$53) .dwendtag $C$DW$10 $C$DW$13 .dwtag DW_TAG_subprogram, DW_AT_name("SAR_chanCycSet") .dwattr $C$DW$13, DW_AT_TI_symbol_name("_SAR_chanCycSet") .dwattr $C$DW$13, DW_AT_type(*$C$DW$T$59) .dwattr $C$DW$13, DW_AT_declaration .dwattr $C$DW$13, DW_AT_external $C$DW$14 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$14, DW_AT_type(*$C$DW$T$50) $C$DW$15 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$15, DW_AT_type(*$C$DW$T$46) .dwendtag $C$DW$13 $C$DW$16 .dwtag DW_TAG_subprogram, DW_AT_name("SAR_startConversion") .dwattr $C$DW$16, DW_AT_TI_symbol_name("_SAR_startConversion") .dwattr $C$DW$16, DW_AT_type(*$C$DW$T$59) .dwattr $C$DW$16, DW_AT_declaration .dwattr $C$DW$16, DW_AT_external $C$DW$17 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$17, DW_AT_type(*$C$DW$T$50) .dwendtag $C$DW$16 $C$DW$18 .dwtag DW_TAG_subprogram, DW_AT_name("SAR_stopConversion") .dwattr $C$DW$18, DW_AT_TI_symbol_name("_SAR_stopConversion") .dwattr $C$DW$18, DW_AT_type(*$C$DW$T$59) .dwattr $C$DW$18, DW_AT_declaration .dwattr $C$DW$18, DW_AT_external $C$DW$19 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$19, DW_AT_type(*$C$DW$T$50) .dwendtag $C$DW$18 $C$DW$20 .dwtag DW_TAG_subprogram, DW_AT_name("SAR_A2DMeasParamSet") .dwattr $C$DW$20, DW_AT_TI_symbol_name("_SAR_A2DMeasParamSet") .dwattr $C$DW$20, DW_AT_type(*$C$DW$T$59) .dwattr $C$DW$20, DW_AT_declaration .dwattr $C$DW$20, DW_AT_external $C$DW$21 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$21, DW_AT_type(*$C$DW$T$50) $C$DW$22 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$22, DW_AT_type(*$C$DW$T$48) $C$DW$23 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$23, DW_AT_type(*$C$DW$T$44) .dwendtag $C$DW$20 $C$DW$24 .dwtag DW_TAG_subprogram, DW_AT_name("SAR_readData") .dwattr $C$DW$24, DW_AT_TI_symbol_name("_SAR_readData") .dwattr $C$DW$24, DW_AT_type(*$C$DW$T$59) .dwattr $C$DW$24, DW_AT_declaration .dwattr $C$DW$24, DW_AT_external $C$DW$25 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$25, DW_AT_type(*$C$DW$T$50) $C$DW$26 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$26, DW_AT_type(*$C$DW$T$74) .dwendtag $C$DW$24 $C$DW$27 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_plug") .dwattr $C$DW$27, DW_AT_TI_symbol_name("_IRQ_plug") .dwattr $C$DW$27, DW_AT_type(*$C$DW$T$10) .dwattr $C$DW$27, DW_AT_declaration .dwattr $C$DW$27, DW_AT_external $C$DW$28 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$28, DW_AT_type(*$C$DW$T$19) $C$DW$29 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$29, DW_AT_type(*$C$DW$T$38) .dwendtag $C$DW$27 $C$DW$30 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_init") .dwattr $C$DW$30, DW_AT_TI_symbol_name("_IRQ_init") .dwattr $C$DW$30, DW_AT_type(*$C$DW$T$59) .dwattr $C$DW$30, DW_AT_declaration .dwattr $C$DW$30, DW_AT_external $C$DW$31 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$31, DW_AT_type(*$C$DW$T$55) $C$DW$32 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$32, DW_AT_type(*$C$DW$T$19) .dwendtag $C$DW$30 $C$DW$33 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_clear") .dwattr $C$DW$33, DW_AT_TI_symbol_name("_IRQ_clear") .dwattr $C$DW$33, DW_AT_type(*$C$DW$T$59) .dwattr $C$DW$33, DW_AT_declaration .dwattr $C$DW$33, DW_AT_external $C$DW$34 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$34, DW_AT_type(*$C$DW$T$19) .dwendtag $C$DW$33 $C$DW$35 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_clearAll") .dwattr $C$DW$35, DW_AT_TI_symbol_name("_IRQ_clearAll") .dwattr $C$DW$35, DW_AT_declaration .dwattr $C$DW$35, DW_AT_external $C$DW$36 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_config") .dwattr $C$DW$36, DW_AT_TI_symbol_name("_IRQ_config") .dwattr $C$DW$36, DW_AT_type(*$C$DW$T$59) .dwattr $C$DW$36, DW_AT_declaration .dwattr $C$DW$36, DW_AT_external $C$DW$37 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$37, DW_AT_type(*$C$DW$T$19) $C$DW$38 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$38, DW_AT_type(*$C$DW$T$57) .dwendtag $C$DW$36 $C$DW$39 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_getConfig") .dwattr $C$DW$39, DW_AT_TI_symbol_name("_IRQ_getConfig") .dwattr $C$DW$39, DW_AT_type(*$C$DW$T$59) .dwattr $C$DW$39, DW_AT_declaration .dwattr $C$DW$39, DW_AT_external $C$DW$40 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$40, DW_AT_type(*$C$DW$T$19) $C$DW$41 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$41, DW_AT_type(*$C$DW$T$57) .dwendtag $C$DW$39 $C$DW$42 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_disable") .dwattr $C$DW$42, DW_AT_TI_symbol_name("_IRQ_disable") .dwattr $C$DW$42, DW_AT_type(*$C$DW$T$10) .dwattr $C$DW$42, DW_AT_declaration .dwattr $C$DW$42, DW_AT_external $C$DW$43 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$43, DW_AT_type(*$C$DW$T$19) .dwendtag $C$DW$42 $C$DW$44 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_disableAll") .dwattr $C$DW$44, DW_AT_TI_symbol_name("_IRQ_disableAll") .dwattr $C$DW$44, DW_AT_declaration .dwattr $C$DW$44, DW_AT_external $C$DW$45 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_enable") .dwattr $C$DW$45, DW_AT_TI_symbol_name("_IRQ_enable") .dwattr $C$DW$45, DW_AT_type(*$C$DW$T$10) .dwattr $C$DW$45, DW_AT_declaration .dwattr $C$DW$45, DW_AT_external $C$DW$46 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$46, DW_AT_type(*$C$DW$T$19) .dwendtag $C$DW$45 $C$DW$47 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_getArg") .dwattr $C$DW$47, DW_AT_TI_symbol_name("_IRQ_getArg") .dwattr $C$DW$47, DW_AT_type(*$C$DW$T$59) .dwattr $C$DW$47, DW_AT_declaration .dwattr $C$DW$47, DW_AT_external $C$DW$48 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$48, DW_AT_type(*$C$DW$T$19) $C$DW$49 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$49, DW_AT_type(*$C$DW$T$83) .dwendtag $C$DW$47 $C$DW$50 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_map") .dwattr $C$DW$50, DW_AT_TI_symbol_name("_IRQ_map") .dwattr $C$DW$50, DW_AT_type(*$C$DW$T$59) .dwattr $C$DW$50, DW_AT_declaration .dwattr $C$DW$50, DW_AT_external $C$DW$51 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$51, DW_AT_type(*$C$DW$T$19) .dwendtag $C$DW$50 $C$DW$52 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_setArg") .dwattr $C$DW$52, DW_AT_TI_symbol_name("_IRQ_setArg") .dwattr $C$DW$52, DW_AT_type(*$C$DW$T$59) .dwattr $C$DW$52, DW_AT_declaration .dwattr $C$DW$52, DW_AT_external $C$DW$53 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$53, DW_AT_type(*$C$DW$T$19) $C$DW$54 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$54, DW_AT_type(*$C$DW$T$39) .dwendtag $C$DW$52 $C$DW$55 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_setVecs") .dwattr $C$DW$55, DW_AT_TI_symbol_name("_IRQ_setVecs") .dwattr $C$DW$55, DW_AT_type(*$C$DW$T$59) .dwattr $C$DW$55, DW_AT_declaration .dwattr $C$DW$55, DW_AT_external $C$DW$56 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$56, DW_AT_type(*$C$DW$T$39) .dwendtag $C$DW$55 $C$DW$57 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_test") .dwattr $C$DW$57, DW_AT_TI_symbol_name("_IRQ_test") .dwattr $C$DW$57, DW_AT_type(*$C$DW$T$59) .dwattr $C$DW$57, DW_AT_declaration .dwattr $C$DW$57, DW_AT_external $C$DW$58 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$58, DW_AT_type(*$C$DW$T$19) $C$DW$59 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$59, DW_AT_type(*$C$DW$T$91) .dwendtag $C$DW$57 $C$DW$60 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_globalDisable") .dwattr $C$DW$60, DW_AT_TI_symbol_name("_IRQ_globalDisable") .dwattr $C$DW$60, DW_AT_type(*$C$DW$T$90) .dwattr $C$DW$60, DW_AT_declaration .dwattr $C$DW$60, DW_AT_external $C$DW$61 .dwtag DW_TAG_subprogram, DW_AT_name("IRQ_globalEnable") .dwattr $C$DW$61, DW_AT_TI_symbol_name("_IRQ_globalEnable") .dwattr $C$DW$61, DW_AT_type(*$C$DW$T$90) .dwattr $C$DW$61, DW_AT_declaration .dwattr $C$DW$61, DW_AT_external $C$DW$62 .dwtag DW_TAG_subprogram, DW_AT_name("printf") .dwattr $C$DW$62, DW_AT_TI_symbol_name("_printf") .dwattr $C$DW$62, DW_AT_type(*$C$DW$T$10) .dwattr $C$DW$62, DW_AT_declaration .dwattr $C$DW$62, DW_AT_external $C$DW$63 .dwtag DW_TAG_formal_parameter .dwattr $C$DW$63, DW_AT_type(*$C$DW$T$103) $C$DW$64 .dwtag DW_TAG_unspecified_parameters .dwendtag $C$DW$62 $C$DW$65 .dwtag DW_TAG_subprogram, DW_AT_name("VECSTART") .dwattr $C$DW$65, DW_AT_TI_symbol_name("_VECSTART") .dwattr $C$DW$65, DW_AT_declaration .dwattr $C$DW$65, DW_AT_external .global _SarObj .bss _SarObj,3,0,0 $C$DW$66 .dwtag DW_TAG_variable, DW_AT_name("SarObj") .dwattr $C$DW$66, DW_AT_TI_symbol_name("_SarObj") .dwattr $C$DW$66, DW_AT_location[DW_OP_addr _SarObj] .dwattr $C$DW$66, DW_AT_type(*$C$DW$T$49) .dwattr $C$DW$66, DW_AT_external .global _SarHandle .bss _SarHandle,2,0,2 $C$DW$67 .dwtag DW_TAG_variable, DW_AT_name("SarHandle") .dwattr $C$DW$67, DW_AT_TI_symbol_name("_SarHandle") .dwattr $C$DW$67, DW_AT_location[DW_OP_addr _SarHandle] .dwattr $C$DW$67, DW_AT_type(*$C$DW$T$50) .dwattr $C$DW$67, DW_AT_external .global _sarRegDataAddr .bss _sarRegDataAddr,2,0,2 $C$DW$68 .dwtag DW_TAG_variable, DW_AT_name("sarRegDataAddr") .dwattr $C$DW$68, DW_AT_TI_symbol_name("_sarRegDataAddr") .dwattr $C$DW$68, DW_AT_location[DW_OP_addr _sarRegDataAddr] .dwattr $C$DW$68, DW_AT_type(*$C$DW$T$39) .dwattr $C$DW$68, DW_AT_external .global _readBuffer .bss _readBuffer,1,0,0 $C$DW$69 .dwtag DW_TAG_variable, DW_AT_name("readBuffer") .dwattr $C$DW$69, DW_AT_TI_symbol_name("_readBuffer") .dwattr $C$DW$69, DW_AT_location[DW_OP_addr _readBuffer] .dwattr $C$DW$69, DW_AT_type(*$C$DW$T$19) .dwattr $C$DW$69, DW_AT_external .global _i .bss _i,1,0,0 $C$DW$70 .dwtag DW_TAG_variable, DW_AT_name("i") .dwattr $C$DW$70, DW_AT_TI_symbol_name("_i") .dwattr $C$DW$70, DW_AT_location[DW_OP_addr _i] .dwattr $C$DW$70, DW_AT_type(*$C$DW$T$10) .dwattr $C$DW$70, DW_AT_external .global _PaSs_StAtE .bss _PaSs_StAtE,1,0,0 $C$DW$71 .dwtag DW_TAG_variable, DW_AT_name("PaSs_StAtE") .dwattr $C$DW$71, DW_AT_TI_symbol_name("_PaSs_StAtE") .dwattr $C$DW$71, DW_AT_location[DW_OP_addr _PaSs_StAtE] .dwattr $C$DW$71, DW_AT_type(*$C$DW$T$94) .dwattr $C$DW$71, DW_AT_external .global _PaSs .bss _PaSs,1,0,0 $C$DW$72 .dwtag DW_TAG_variable, DW_AT_name("PaSs") .dwattr $C$DW$72, DW_AT_TI_symbol_name("_PaSs") .dwattr $C$DW$72, DW_AT_location[DW_OP_addr _PaSs] .dwattr $C$DW$72, DW_AT_type(*$C$DW$T$94) .dwattr $C$DW$72, DW_AT_external ; F:\t\cc5p5\ccsv5\tools\compiler\c5500_4.4.1\bin\acp55.exe -@f:\\AppData\\Local\\Temp\\2719212 .sect ".text" .align 4 .global _main $C$DW$73 .dwtag DW_TAG_subprogram, DW_AT_name("main") .dwattr $C$DW$73, DW_AT_low_pc(_main) .dwattr $C$DW$73, DW_AT_high_pc(0x00) .dwattr $C$DW$73, DW_AT_TI_symbol_name("_main") .dwattr $C$DW$73, DW_AT_external .dwattr $C$DW$73, DW_AT_TI_begin_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c") .dwattr $C$DW$73, DW_AT_TI_begin_line(0x74) .dwattr $C$DW$73, DW_AT_TI_begin_column(0x06) .dwattr $C$DW$73, DW_AT_TI_max_frame_size(0x04) .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 117,column 1,is_stmt,address _main .dwfde $C$DW$CIE, _main ;******************************************************************************* ;* FUNCTION NAME: main * ;* * ;* Function Uses Regs : T0,AR1,AR2,AR3,XAR3,SP,TC1,M40,SATA,SATD,RDM,FRCT, * ;* SMUL * ;* Stack Frame : Compact (No Frame Pointer, w/ debug) * ;* Total Frame Size : 4 words * ;* (1 return address/alignment) * ;* (2 function parameters) * ;* (1 local values) * ;* Min System Stack : 1 word * ;******************************************************************************* _main: .dwcfi cfa_offset, 1 .dwcfi save_reg_to_mem, 91, -1 AADD #-3, SP .dwcfi cfa_offset, 4 $C$DW$74 .dwtag DW_TAG_variable, DW_AT_name("status") .dwattr $C$DW$74, DW_AT_TI_symbol_name("_status") .dwattr $C$DW$74, DW_AT_type(*$C$DW$T$10) .dwattr $C$DW$74, DW_AT_location[DW_OP_bregx 0x24 2] .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 120,column 2,is_stmt AMOV #$C$FSL1, XAR3 ; |120| MOV XAR3, dbl(*SP(#0)) $C$DW$75 .dwtag DW_TAG_TI_branch .dwattr $C$DW$75, DW_AT_low_pc(0x00) .dwattr $C$DW$75, DW_AT_name("_printf") .dwattr $C$DW$75, DW_AT_TI_call CALL #_printf ; |120| ; call occurs [#_printf] ; |120| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 122,column 5,is_stmt $C$DW$76 .dwtag DW_TAG_TI_branch .dwattr $C$DW$76, DW_AT_low_pc(0x00) .dwattr $C$DW$76, DW_AT_name("_sar_test_Int_keypad_voltage") .dwattr $C$DW$76, DW_AT_TI_call CALL #_sar_test_Int_keypad_voltage ; |122| ; call occurs [#_sar_test_Int_keypad_voltage] ; |122| MOV T0, *SP(#2) ; |122| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 123,column 5,is_stmt MOV T0, AR1 || MOV #0, AR2 CMP AR2 != AR1, TC1 ; |123| BCC $C$L1,TC1 ; |123| ; branchcc occurs ; |123| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 125,column 9,is_stmt AMOV #$C$FSL2, XAR3 ; |125| MOV XAR3, dbl(*SP(#0)) $C$DW$77 .dwtag DW_TAG_TI_branch .dwattr $C$DW$77, DW_AT_low_pc(0x00) .dwattr $C$DW$77, DW_AT_name("_printf") .dwattr $C$DW$77, DW_AT_TI_call CALL #_printf ; |125| ; call occurs [#_printf] ; |125| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 126,column 5,is_stmt B $C$L2 ; |126| ; branch occurs ; |126| $C$L1: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 129,column 3,is_stmt AMOV #$C$FSL3, XAR3 ; |129| MOV XAR3, dbl(*SP(#0)) $C$DW$78 .dwtag DW_TAG_TI_branch .dwattr $C$DW$78, DW_AT_low_pc(0x00) .dwattr $C$DW$78, DW_AT_name("_printf") .dwattr $C$DW$78, DW_AT_TI_call CALL #_printf ; |129| ; call occurs [#_printf] ; |129| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 133,column 9,is_stmt MOV #0, *(#_PaSs_StAtE) ; |133| $C$L2: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 137,column 2,is_stmt AMOV #$C$FSL4, XAR3 ; |137| MOV XAR3, dbl(*SP(#0)) $C$DW$79 .dwtag DW_TAG_TI_branch .dwattr $C$DW$79, DW_AT_low_pc(0x00) .dwattr $C$DW$79, DW_AT_name("_printf") .dwattr $C$DW$79, DW_AT_TI_call CALL #_printf ; |137| ; call occurs [#_printf] ; |137| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 141,column 9,is_stmt MOV *(#_PaSs_StAtE), AR1 ; |141| MOV AR1, *(#_PaSs) ; |141| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 146,column 1,is_stmt AADD #3, SP .dwcfi cfa_offset, 1 $C$DW$80 .dwtag DW_TAG_TI_branch .dwattr $C$DW$80, DW_AT_low_pc(0x00) .dwattr $C$DW$80, DW_AT_TI_return RET ; return occurs .dwattr $C$DW$73, DW_AT_TI_end_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c") .dwattr $C$DW$73, DW_AT_TI_end_line(0x92) .dwattr $C$DW$73, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$73 .sect ".text" .align 4 .global _sar_test_Int_keypad_voltage $C$DW$81 .dwtag DW_TAG_subprogram, DW_AT_name("sar_test_Int_keypad_voltage") .dwattr $C$DW$81, DW_AT_low_pc(_sar_test_Int_keypad_voltage) .dwattr $C$DW$81, DW_AT_high_pc(0x00) .dwattr $C$DW$81, DW_AT_TI_symbol_name("_sar_test_Int_keypad_voltage") .dwattr $C$DW$81, DW_AT_external .dwattr $C$DW$81, DW_AT_type(*$C$DW$T$10) .dwattr $C$DW$81, DW_AT_TI_begin_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c") .dwattr $C$DW$81, DW_AT_TI_begin_line(0x95) .dwattr $C$DW$81, DW_AT_TI_begin_column(0x05) .dwattr $C$DW$81, DW_AT_TI_max_frame_size(0x1c) .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 150,column 1,is_stmt,address _sar_test_Int_keypad_voltage .dwfde $C$DW$CIE, _sar_test_Int_keypad_voltage ;******************************************************************************* ;* FUNCTION NAME: sar_test_Int_keypad_voltage * ;* * ;* Function Uses Regs : AC0,AC0,AC1,AC1,T0,AR0,XAR0,AR1,XAR1,AR3,XAR3,SP,TC1,* ;* M40,SATA,SATD,RDM,FRCT,SMUL * ;* Stack Frame : Compact (No Frame Pointer, w/ debug) * ;* Total Frame Size : 28 words * ;* (2 return address/alignment) * ;* (3 function parameters) * ;* (23 local values) * ;* Min System Stack : 1 word * ;******************************************************************************* _sar_test_Int_keypad_voltage: .dwcfi cfa_offset, 1 .dwcfi save_reg_to_mem, 91, -1 AADD #-27, SP .dwcfi cfa_offset, 28 $C$DW$82 .dwtag DW_TAG_variable, DW_AT_name("flag") .dwattr $C$DW$82, DW_AT_TI_symbol_name("_flag") .dwattr $C$DW$82, DW_AT_type(*$C$DW$T$90) .dwattr $C$DW$82, DW_AT_location[DW_OP_bregx 0x24 3] $C$DW$83 .dwtag DW_TAG_variable, DW_AT_name("status") .dwattr $C$DW$83, DW_AT_TI_symbol_name("_status") .dwattr $C$DW$83, DW_AT_type(*$C$DW$T$59) .dwattr $C$DW$83, DW_AT_location[DW_OP_bregx 0x24 4] $C$DW$84 .dwtag DW_TAG_variable, DW_AT_name("param") .dwattr $C$DW$84, DW_AT_TI_symbol_name("_param") .dwattr $C$DW$84, DW_AT_type(*$C$DW$T$52) .dwattr $C$DW$84, DW_AT_location[DW_OP_bregx 0x24 5] $C$DW$85 .dwtag DW_TAG_variable, DW_AT_name("chanNo") .dwattr $C$DW$85, DW_AT_TI_symbol_name("_chanNo") .dwattr $C$DW$85, DW_AT_type(*$C$DW$T$10) .dwattr $C$DW$85, DW_AT_location[DW_OP_bregx 0x24 9] $C$DW$86 .dwtag DW_TAG_variable, DW_AT_name("irqConfig") .dwattr $C$DW$86, DW_AT_TI_symbol_name("_irqConfig") .dwattr $C$DW$86, DW_AT_type(*$C$DW$T$56) .dwattr $C$DW$86, DW_AT_location[DW_OP_bregx 0x24 10] $C$DW$87 .dwtag DW_TAG_variable, DW_AT_name("irqQuery") .dwattr $C$DW$87, DW_AT_TI_symbol_name("_irqQuery") .dwattr $C$DW$87, DW_AT_type(*$C$DW$T$56) .dwattr $C$DW$87, DW_AT_location[DW_OP_bregx 0x24 18] .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 151,column 10,is_stmt MOV #1, *SP(#3) ; |151| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 158,column 5,is_stmt AMOV #$C$FSL5, XAR3 ; |158| MOV XAR3, dbl(*SP(#0)) $C$DW$88 .dwtag DW_TAG_TI_branch .dwattr $C$DW$88, DW_AT_low_pc(0x00) .dwattr $C$DW$88, DW_AT_name("_printf") .dwattr $C$DW$88, DW_AT_TI_call CALL #_printf ; |158| ; call occurs [#_printf] ; |158| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 159,column 2,is_stmt AMOV #$C$FSL6, XAR3 ; |159| MOV XAR3, dbl(*SP(#0)) $C$DW$89 .dwtag DW_TAG_TI_branch .dwattr $C$DW$89, DW_AT_low_pc(0x00) .dwattr $C$DW$89, DW_AT_name("_printf") .dwattr $C$DW$89, DW_AT_TI_call CALL #_printf ; |159| ; call occurs [#_printf] ; |159| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 162,column 5,is_stmt $C$DW$90 .dwtag DW_TAG_TI_branch .dwattr $C$DW$90, DW_AT_low_pc(0x00) .dwattr $C$DW$90, DW_AT_name("_IRQ_globalDisable") .dwattr $C$DW$90, DW_AT_TI_call CALL #_IRQ_globalDisable ; |162| ; call occurs [#_IRQ_globalDisable] ; |162| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 165,column 2,is_stmt $C$DW$91 .dwtag DW_TAG_TI_branch .dwattr $C$DW$91, DW_AT_low_pc(0x00) .dwattr $C$DW$91, DW_AT_name("_IRQ_clearAll") .dwattr $C$DW$91, DW_AT_TI_call CALL #_IRQ_clearAll ; |165| ; call occurs [#_IRQ_clearAll] ; |165| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 168,column 2,is_stmt $C$DW$92 .dwtag DW_TAG_TI_branch .dwattr $C$DW$92, DW_AT_low_pc(0x00) .dwattr $C$DW$92, DW_AT_name("_IRQ_disableAll") .dwattr $C$DW$92, DW_AT_TI_call CALL #_IRQ_disableAll ; |168| ; call occurs [#_IRQ_disableAll] ; |168| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 171,column 5,is_stmt MOV #(_VECSTART >> 16) << #16, AC0 ; |171| OR #(_VECSTART & 0xffff), AC0, AC0 ; |171| $C$DW$93 .dwtag DW_TAG_TI_branch .dwattr $C$DW$93, DW_AT_low_pc(0x00) .dwattr $C$DW$93, DW_AT_name("_IRQ_setVecs") .dwattr $C$DW$93, DW_AT_TI_call CALL #_IRQ_setVecs ; |171| ; call occurs [#_IRQ_setVecs] ; |171| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 174,column 5,is_stmt AMOV #0, XAR0 ; |174| $C$DW$94 .dwtag DW_TAG_TI_branch .dwattr $C$DW$94, DW_AT_low_pc(0x00) .dwattr $C$DW$94, DW_AT_name("_IRQ_init") .dwattr $C$DW$94, DW_AT_TI_call CALL #_IRQ_init ; |174| || MOV #0, T0 ; call occurs [#_IRQ_init] ; |174| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 176,column 5,is_stmt MOV #(_sarISR >> 16) << #16, AC0 ; |176| OR #(_sarISR & 0xffff), AC0, AC0 ; |176| MOV AC0, dbl(*SP(#10)) ; |176| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 177,column 5,is_stmt MOV #2, AC0 ; |177| MOV AC0, dbl(*SP(#12)) ; |177| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 178,column 5,is_stmt AMAR *SP(#10), XAR0 $C$DW$95 .dwtag DW_TAG_TI_branch .dwattr $C$DW$95, DW_AT_low_pc(0x00) .dwattr $C$DW$95, DW_AT_name("_IRQ_config") .dwattr $C$DW$95, DW_AT_TI_call CALL #_IRQ_config ; |178| || MOV #13, T0 ; call occurs [#_IRQ_config] ; |178| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 181,column 5,is_stmt AMAR *SP(#18), XAR0 $C$DW$96 .dwtag DW_TAG_TI_branch .dwattr $C$DW$96, DW_AT_low_pc(0x00) .dwattr $C$DW$96, DW_AT_name("_IRQ_getConfig") .dwattr $C$DW$96, DW_AT_TI_call CALL #_IRQ_getConfig ; |181| || MOV #13, T0 ; call occurs [#_IRQ_getConfig] ; |181| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 182,column 5,is_stmt MOV dbl(*SP(#10)), AC0 ; |182| MOV dbl(*SP(#18)), AC1 ; |182| CMPU AC1 == AC0, TC1 ; |182| BCC $C$L3,TC1 ; |182| ; branchcc occurs ; |182| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 184,column 9,is_stmt AMOV #$C$FSL7, XAR3 ; |184| MOV XAR3, dbl(*SP(#0)) $C$DW$97 .dwtag DW_TAG_TI_branch .dwattr $C$DW$97, DW_AT_low_pc(0x00) .dwattr $C$DW$97, DW_AT_name("_printf") .dwattr $C$DW$97, DW_AT_TI_call CALL #_printf ; |184| ; call occurs [#_printf] ; |184| $C$L3: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 187,column 5,is_stmt $C$DW$98 .dwtag DW_TAG_TI_branch .dwattr $C$DW$98, DW_AT_low_pc(0x00) .dwattr $C$DW$98, DW_AT_name("_SAR_init") .dwattr $C$DW$98, DW_AT_TI_call CALL #_SAR_init ; |187| ; call occurs [#_SAR_init] ; |187| MOV T0, *SP(#4) ; |187| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 188,column 5,is_stmt MOV T0, AR1 BCC $C$L4,AR1 == #0 ; |188| ; branchcc occurs ; |188| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 190,column 9,is_stmt AMOV #$C$FSL8, XAR3 ; |190| MOV XAR3, dbl(*SP(#0)) $C$DW$99 .dwtag DW_TAG_TI_branch .dwattr $C$DW$99, DW_AT_low_pc(0x00) .dwattr $C$DW$99, DW_AT_name("_printf") .dwattr $C$DW$99, DW_AT_TI_call CALL #_printf ; |190| ; call occurs [#_printf] ; |190| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 191,column 9,is_stmt MOV #1, T0 B $C$L17 ; |191| ; branch occurs ; |191| $C$L4: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 195,column 5,is_stmt AMOV #_SarObj, XAR0 ; |195| $C$DW$100 .dwtag DW_TAG_TI_branch .dwattr $C$DW$100, DW_AT_low_pc(0x00) .dwattr $C$DW$100, DW_AT_name("_SAR_chanOpen") .dwattr $C$DW$100, DW_AT_TI_call CALL #_SAR_chanOpen ; |195| || MOV #3, T0 ; call occurs [#_SAR_chanOpen] ; |195| MOV T0, *SP(#4) ; |195| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 196,column 5,is_stmt AMOV #_SarObj, XAR3 ; |196| MOV XAR3, dbl(*(#_SarHandle)) .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 197,column 5,is_stmt MOV T0, AR1 BCC $C$L5,AR1 == #0 ; |197| ; branchcc occurs ; |197| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 199,column 9,is_stmt AMOV #$C$FSL9, XAR3 ; |199| MOV XAR3, dbl(*SP(#0)) $C$DW$101 .dwtag DW_TAG_TI_branch .dwattr $C$DW$101, DW_AT_low_pc(0x00) .dwattr $C$DW$101, DW_AT_name("_printf") .dwattr $C$DW$101, DW_AT_TI_call CALL #_printf ; |199| ; call occurs [#_printf] ; |199| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 200,column 9,is_stmt MOV #1, T0 B $C$L17 ; |200| ; branch occurs ; |200| $C$L5: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 204,column 5,is_stmt MOV dbl(*(#_SarHandle)), XAR0 $C$DW$102 .dwtag DW_TAG_TI_branch .dwattr $C$DW$102, DW_AT_low_pc(0x00) .dwattr $C$DW$102, DW_AT_name("_SAR_chanInit") .dwattr $C$DW$102, DW_AT_TI_call CALL #_SAR_chanInit ; |204| ; call occurs [#_SAR_chanInit] ; |204| MOV T0, *SP(#4) ; |204| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 205,column 5,is_stmt MOV T0, AR1 BCC $C$L6,AR1 == #0 ; |205| ; branchcc occurs ; |205| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 207,column 5,is_stmt AMOV #$C$FSL10, XAR3 ; |207| MOV XAR3, dbl(*SP(#0)) $C$DW$103 .dwtag DW_TAG_TI_branch .dwattr $C$DW$103, DW_AT_low_pc(0x00) .dwattr $C$DW$103, DW_AT_name("_printf") .dwattr $C$DW$103, DW_AT_TI_call CALL #_printf ; |207| ; call occurs [#_printf] ; |207| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 208,column 5,is_stmt MOV #1, T0 B $C$L17 ; |208| ; branch occurs ; |208| $C$L6: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 212,column 5,is_stmt $C$DW$104 .dwtag DW_TAG_TI_branch .dwattr $C$DW$104, DW_AT_low_pc(0x00) .dwattr $C$DW$104, DW_AT_name("_IRQ_clear") .dwattr $C$DW$104, DW_AT_TI_call CALL #_IRQ_clear ; |212| || MOV #13, T0 ; call occurs [#_IRQ_clear] ; |212| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 213,column 5,is_stmt AMAR *SP(#3), XAR0 $C$DW$105 .dwtag DW_TAG_TI_branch .dwattr $C$DW$105, DW_AT_low_pc(0x00) .dwattr $C$DW$105, DW_AT_name("_IRQ_test") .dwattr $C$DW$105, DW_AT_TI_call CALL #_IRQ_test ; |213| || MOV #13, T0 ; call occurs [#_IRQ_test] ; |213| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 214,column 5,is_stmt $C$DW$106 .dwtag DW_TAG_TI_branch .dwattr $C$DW$106, DW_AT_low_pc(0x00) .dwattr $C$DW$106, DW_AT_name("_IRQ_map") .dwattr $C$DW$106, DW_AT_TI_call CALL #_IRQ_map ; |214| || MOV #13, T0 ; call occurs [#_IRQ_map] ; |214| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 216,column 5,is_stmt MOV dbl(*(#_sarRegDataAddr)), AC0 ; |216| $C$DW$107 .dwtag DW_TAG_TI_branch .dwattr $C$DW$107, DW_AT_low_pc(0x00) .dwattr $C$DW$107, DW_AT_name("_IRQ_setArg") .dwattr $C$DW$107, DW_AT_TI_call CALL #_IRQ_setArg ; |216| || MOV #13, T0 ; call occurs [#_IRQ_setArg] ; |216| MOV T0, *SP(#4) ; |216| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 217,column 5,is_stmt MOV T0, AR1 BCC $C$L7,AR1 == #0 ; |217| ; branchcc occurs ; |217| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 219,column 9,is_stmt AMOV #$C$FSL11, XAR3 ; |219| MOV XAR3, dbl(*SP(#0)) $C$DW$108 .dwtag DW_TAG_TI_branch .dwattr $C$DW$108, DW_AT_low_pc(0x00) .dwattr $C$DW$108, DW_AT_name("_printf") .dwattr $C$DW$108, DW_AT_TI_call CALL #_printf ; |219| ; call occurs [#_printf] ; |219| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 220,column 9,is_stmt MOV #1, T0 B $C$L17 ; |220| ; branch occurs ; |220| $C$L7: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 223,column 5,is_stmt MOV #(_sarISR >> 16) << #16, AC0 ; |223| OR #(_sarISR & 0xffff), AC0, AC0 ; |223| $C$DW$109 .dwtag DW_TAG_TI_branch .dwattr $C$DW$109, DW_AT_low_pc(0x00) .dwattr $C$DW$109, DW_AT_name("_IRQ_plug") .dwattr $C$DW$109, DW_AT_TI_call CALL #_IRQ_plug ; |223| || MOV #13, T0 ; call occurs [#_IRQ_plug] ; |223| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 225,column 5,is_stmt MOV #1, *SP(#6) ; |225| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 226,column 5,is_stmt MOV #0, *SP(#7) ; |226| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 227,column 5,is_stmt MOV #2, *SP(#8) ; |227| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 228,column 5,is_stmt MOV #11, *SP(#5) ; |228| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 230,column 5,is_stmt AMAR *SP(#5), XAR1 MOV dbl(*(#_SarHandle)), XAR0 $C$DW$110 .dwtag DW_TAG_TI_branch .dwattr $C$DW$110, DW_AT_low_pc(0x00) .dwattr $C$DW$110, DW_AT_name("_SAR_chanSetup") .dwattr $C$DW$110, DW_AT_TI_call CALL #_SAR_chanSetup ; |230| ; call occurs [#_SAR_chanSetup] ; |230| MOV T0, *SP(#4) ; |230| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 231,column 5,is_stmt MOV T0, AR1 BCC $C$L8,AR1 == #0 ; |231| ; branchcc occurs ; |231| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 233,column 9,is_stmt AMOV #$C$FSL12, XAR3 ; |233| MOV XAR3, dbl(*SP(#0)) $C$DW$111 .dwtag DW_TAG_TI_branch .dwattr $C$DW$111, DW_AT_low_pc(0x00) .dwattr $C$DW$111, DW_AT_name("_printf") .dwattr $C$DW$111, DW_AT_TI_call CALL #_printf ; |233| ; call occurs [#_printf] ; |233| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 234,column 9,is_stmt MOV #1, T0 B $C$L17 ; |234| ; branch occurs ; |234| $C$L8: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 238,column 5,is_stmt MOV dbl(*(#_SarHandle)), XAR0 $C$DW$112 .dwtag DW_TAG_TI_branch .dwattr $C$DW$112, DW_AT_low_pc(0x00) .dwattr $C$DW$112, DW_AT_name("_SAR_chanCycSet") .dwattr $C$DW$112, DW_AT_TI_call CALL #_SAR_chanCycSet ; |238| || MOV #1, T0 ; call occurs [#_SAR_chanCycSet] ; |238| MOV T0, *SP(#4) ; |238| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 239,column 5,is_stmt MOV T0, AR1 BCC $C$L9,AR1 == #0 ; |239| ; branchcc occurs ; |239| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 241,column 9,is_stmt AMOV #$C$FSL13, XAR3 ; |241| MOV XAR3, dbl(*SP(#0)) $C$DW$113 .dwtag DW_TAG_TI_branch .dwattr $C$DW$113, DW_AT_low_pc(0x00) .dwattr $C$DW$113, DW_AT_name("_printf") .dwattr $C$DW$113, DW_AT_TI_call CALL #_printf ; |241| ; call occurs [#_printf] ; |241| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 242,column 9,is_stmt MOV #1, T0 B $C$L17 ; |242| ; branch occurs ; |242| $C$L9: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 245,column 5,is_stmt AMAR *SP(#9), XAR1 MOV dbl(*(#_SarHandle)), XAR0 $C$DW$114 .dwtag DW_TAG_TI_branch .dwattr $C$DW$114, DW_AT_low_pc(0x00) .dwattr $C$DW$114, DW_AT_name("_SAR_A2DMeasParamSet") .dwattr $C$DW$114, DW_AT_TI_call CALL #_SAR_A2DMeasParamSet ; |245| || MOV #0, T0 ; call occurs [#_SAR_A2DMeasParamSet] ; |245| MOV T0, *SP(#4) ; |245| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 246,column 5,is_stmt MOV T0, AR1 BCC $C$L10,AR1 == #0 ; |246| ; branchcc occurs ; |246| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 248,column 9,is_stmt AMOV #$C$FSL14, XAR3 ; |248| MOV XAR3, dbl(*SP(#0)) $C$DW$115 .dwtag DW_TAG_TI_branch .dwattr $C$DW$115, DW_AT_low_pc(0x00) .dwattr $C$DW$115, DW_AT_name("_printf") .dwattr $C$DW$115, DW_AT_TI_call CALL #_printf ; |248| ; call occurs [#_printf] ; |248| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 249,column 9,is_stmt MOV #1, T0 B $C$L17 ; |249| ; branch occurs ; |249| $C$L10: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 253,column 5,is_stmt $C$DW$116 .dwtag DW_TAG_TI_branch .dwattr $C$DW$116, DW_AT_low_pc(0x00) .dwattr $C$DW$116, DW_AT_name("_IRQ_enable") .dwattr $C$DW$116, DW_AT_TI_call CALL #_IRQ_enable ; |253| || MOV #13, T0 ; call occurs [#_IRQ_enable] ; |253| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 254,column 5,is_stmt $C$DW$117 .dwtag DW_TAG_TI_branch .dwattr $C$DW$117, DW_AT_low_pc(0x00) .dwattr $C$DW$117, DW_AT_name("_IRQ_globalEnable") .dwattr $C$DW$117, DW_AT_TI_call CALL #_IRQ_globalEnable ; |254| ; call occurs [#_IRQ_globalEnable] ; |254| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 257,column 5,is_stmt MOV dbl(*(#_SarHandle)), XAR0 $C$DW$118 .dwtag DW_TAG_TI_branch .dwattr $C$DW$118, DW_AT_low_pc(0x00) .dwattr $C$DW$118, DW_AT_name("_SAR_startConversion") .dwattr $C$DW$118, DW_AT_TI_call CALL #_SAR_startConversion ; |257| ; call occurs [#_SAR_startConversion] ; |257| MOV T0, *SP(#4) ; |257| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 258,column 5,is_stmt MOV T0, AR1 BCC $C$L11,AR1 == #0 ; |258| ; branchcc occurs ; |258| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 260,column 9,is_stmt AMOV #$C$FSL15, XAR3 ; |260| MOV XAR3, dbl(*SP(#0)) $C$DW$119 .dwtag DW_TAG_TI_branch .dwattr $C$DW$119, DW_AT_low_pc(0x00) .dwattr $C$DW$119, DW_AT_name("_printf") .dwattr $C$DW$119, DW_AT_TI_call CALL #_printf ; |260| ; call occurs [#_printf] ; |260| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 261,column 9,is_stmt MOV #1, T0 B $C$L17 ; |261| ; branch occurs ; |261| $C$L11: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 264,column 11,is_stmt CMP *(#_i) == #1, TC1 ; |264| BCC $C$L13,TC1 ; |264| ; branchcc occurs ; |264| $C$L12: $C$DW$L$_sar_test_Int_keypad_voltage$20$B: CMP *(#_i) == #1, TC1 ; |264| BCC $C$L12,!TC1 ; |264| ; branchcc occurs ; |264| $C$DW$L$_sar_test_Int_keypad_voltage$20$E: $C$L13: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 266,column 5,is_stmt AMOV #$C$FSL16, XAR3 ; |266| MOV *(#_readBuffer), AR1 ; |266| MOV XAR3, dbl(*SP(#0)) MOV AR1, *SP(#2) ; |266| $C$DW$120 .dwtag DW_TAG_TI_branch .dwattr $C$DW$120, DW_AT_low_pc(0x00) .dwattr $C$DW$120, DW_AT_name("_printf") .dwattr $C$DW$120, DW_AT_TI_call CALL #_printf ; |266| ; call occurs [#_printf] ; |266| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 269,column 5,is_stmt MOV dbl(*(#_SarHandle)), XAR0 $C$DW$121 .dwtag DW_TAG_TI_branch .dwattr $C$DW$121, DW_AT_low_pc(0x00) .dwattr $C$DW$121, DW_AT_name("_SAR_stopConversion") .dwattr $C$DW$121, DW_AT_TI_call CALL #_SAR_stopConversion ; |269| ; call occurs [#_SAR_stopConversion] ; |269| MOV T0, *SP(#4) ; |269| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 270,column 5,is_stmt MOV T0, AR1 BCC $C$L14,AR1 == #0 ; |270| ; branchcc occurs ; |270| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 272,column 9,is_stmt AMOV #$C$FSL17, XAR3 ; |272| MOV XAR3, dbl(*SP(#0)) $C$DW$122 .dwtag DW_TAG_TI_branch .dwattr $C$DW$122, DW_AT_low_pc(0x00) .dwattr $C$DW$122, DW_AT_name("_printf") .dwattr $C$DW$122, DW_AT_TI_call CALL #_printf ; |272| ; call occurs [#_printf] ; |272| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 273,column 9,is_stmt MOV #1, T0 B $C$L17 ; |273| ; branch occurs ; |273| $C$L14: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 276,column 5,is_stmt MOV dbl(*(#_SarHandle)), XAR0 $C$DW$123 .dwtag DW_TAG_TI_branch .dwattr $C$DW$123, DW_AT_low_pc(0x00) .dwattr $C$DW$123, DW_AT_name("_SAR_chanClose") .dwattr $C$DW$123, DW_AT_TI_call CALL #_SAR_chanClose ; |276| ; call occurs [#_SAR_chanClose] ; |276| MOV T0, *SP(#4) ; |276| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 277,column 5,is_stmt MOV T0, AR1 BCC $C$L15,AR1 == #0 ; |277| ; branchcc occurs ; |277| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 279,column 9,is_stmt AMOV #$C$FSL18, XAR3 ; |279| MOV XAR3, dbl(*SP(#0)) $C$DW$124 .dwtag DW_TAG_TI_branch .dwattr $C$DW$124, DW_AT_low_pc(0x00) .dwattr $C$DW$124, DW_AT_name("_printf") .dwattr $C$DW$124, DW_AT_TI_call CALL #_printf ; |279| ; call occurs [#_printf] ; |279| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 280,column 9,is_stmt MOV #1, T0 B $C$L17 ; |280| ; branch occurs ; |280| $C$L15: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 283,column 5,is_stmt $C$DW$125 .dwtag DW_TAG_TI_branch .dwattr $C$DW$125, DW_AT_low_pc(0x00) .dwattr $C$DW$125, DW_AT_name("_SAR_deInit") .dwattr $C$DW$125, DW_AT_TI_call CALL #_SAR_deInit ; |283| ; call occurs [#_SAR_deInit] ; |283| MOV T0, *SP(#4) ; |283| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 284,column 5,is_stmt MOV T0, AR1 BCC $C$L16,AR1 == #0 ; |284| ; branchcc occurs ; |284| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 286,column 9,is_stmt AMOV #$C$FSL19, XAR3 ; |286| MOV XAR3, dbl(*SP(#0)) $C$DW$126 .dwtag DW_TAG_TI_branch .dwattr $C$DW$126, DW_AT_low_pc(0x00) .dwattr $C$DW$126, DW_AT_name("_printf") .dwattr $C$DW$126, DW_AT_TI_call CALL #_printf ; |286| ; call occurs [#_printf] ; |286| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 287,column 9,is_stmt MOV #1, T0 B $C$L17 ; |287| ; branch occurs ; |287| $C$L16: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 290,column 5,is_stmt MOV #0, T0 $C$L17: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 291,column 1,is_stmt AADD #27, SP .dwcfi cfa_offset, 1 $C$DW$127 .dwtag DW_TAG_TI_branch .dwattr $C$DW$127, DW_AT_low_pc(0x00) .dwattr $C$DW$127, DW_AT_TI_return RET ; return occurs $C$DW$128 .dwtag DW_TAG_TI_loop .dwattr $C$DW$128, DW_AT_name("F:\eZdsp_DBG\tmp1\c55x-sim2\foo\Debug\intc_example.asm:$C$L12:1:1538287771") .dwattr $C$DW$128, DW_AT_TI_begin_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c") .dwattr $C$DW$128, DW_AT_TI_begin_line(0x108) .dwattr $C$DW$128, DW_AT_TI_end_line(0x108) $C$DW$129 .dwtag DW_TAG_TI_loop_range .dwattr $C$DW$129, DW_AT_low_pc($C$DW$L$_sar_test_Int_keypad_voltage$20$B) .dwattr $C$DW$129, DW_AT_high_pc($C$DW$L$_sar_test_Int_keypad_voltage$20$E) .dwendtag $C$DW$128 .dwattr $C$DW$81, DW_AT_TI_end_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c") .dwattr $C$DW$81, DW_AT_TI_end_line(0x123) .dwattr $C$DW$81, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$81 .sect ".text:retain" .align 4 .global _sarISR $C$DW$130 .dwtag DW_TAG_subprogram, DW_AT_name("sarISR") .dwattr $C$DW$130, DW_AT_low_pc(_sarISR) .dwattr $C$DW$130, DW_AT_high_pc(0x00) .dwattr $C$DW$130, DW_AT_TI_symbol_name("_sarISR") .dwattr $C$DW$130, DW_AT_external .dwattr $C$DW$130, DW_AT_TI_begin_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c") .dwattr $C$DW$130, DW_AT_TI_begin_line(0x127) .dwattr $C$DW$130, DW_AT_TI_begin_column(0x10) .dwattr $C$DW$130, DW_AT_TI_interrupt .dwattr $C$DW$130, DW_AT_TI_max_frame_size(0x33) .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 296,column 1,is_stmt,address _sarISR .dwfde $C$DW$CIE, _sarISR ;******************************************************************************* ;* INTERRUPT NAME: sarISR * ;* * ;* Function Uses Regs : AC0,AC0,AC1,AC1,AC2,AC2,AC3,AC3,T0,T1,AR0,XAR0,AR1, * ;* XAR1,AR2,AR3,XAR3,AR4,SP,BKC,BK03,BK47,ST1,ST2,ST3, * ;* BRC0,RSA0,REA0,BRS1,BRC1,RSA1,REA1,CSR,RPTC,CDP,TRN0,* ;* TRN1,BSA01,BSA23,BSA45,BSA67,BSAC,CARRY,TC1,M40,SATA,* ;* SATD,RDM,FRCT,SMUL * ;* Save On Entry Regs : AC0,AC0,AC1,AC1,AC2,AC2,AC3,AC3,T0,T1,AR0,AR1,AR2, * ;* AR3,AR4,BKC,BK03,BK47,BRC0,RSA0,REA0,BRS1,BRC1,RSA1, * ;* REA1,CSR,RPTC,CDP,TRN0,TRN1,BSA01,BSA23,BSA45,BSA67, * ;* BSAC * ;******************************************************************************* _sarISR: .dwcfi cfa_offset, 3 .dwcfi save_reg_to_mem, 91, -3 AND #0xf91f, mmap(ST1_55) OR #0x4100, mmap(ST1_55) AND #0xfa00, mmap(ST2_55) OR #0x8000, mmap(ST2_55) PSH mmap(ST3_55) .dwcfi cfa_offset, 4 .dwcfi save_reg_to_mem, 42, -4 PSH dbl(AC0) .dwcfi cfa_offset, 5 .dwcfi save_reg_to_mem, 0, -5 .dwcfi cfa_offset, 6 .dwcfi save_reg_to_mem, 1, -6 PSH mmap(AC0G) .dwcfi cfa_offset, 7 .dwcfi save_reg_to_mem, 2, -7 PSH dbl(AC1) .dwcfi cfa_offset, 8 .dwcfi save_reg_to_mem, 3, -8 .dwcfi cfa_offset, 9 .dwcfi save_reg_to_mem, 4, -9 PSH mmap(AC1G) .dwcfi cfa_offset, 10 .dwcfi save_reg_to_mem, 5, -10 PSH dbl(AC2) .dwcfi cfa_offset, 11 .dwcfi save_reg_to_mem, 6, -11 .dwcfi cfa_offset, 12 .dwcfi save_reg_to_mem, 7, -12 PSH mmap(AC2G) .dwcfi cfa_offset, 13 .dwcfi save_reg_to_mem, 8, -13 PSH dbl(AC3) .dwcfi cfa_offset, 14 .dwcfi save_reg_to_mem, 9, -14 .dwcfi cfa_offset, 15 .dwcfi save_reg_to_mem, 10, -15 PSH mmap(AC3G) .dwcfi cfa_offset, 16 .dwcfi save_reg_to_mem, 11, -16 PSH T0 .dwcfi cfa_offset, 17 .dwcfi save_reg_to_mem, 12, -17 PSH T1 .dwcfi cfa_offset, 18 .dwcfi save_reg_to_mem, 13, -18 PSHBOTH XAR0 .dwcfi cfa_offset, 19 .dwcfi save_reg_to_mem, 16, -19 PSHBOTH XAR1 .dwcfi cfa_offset, 20 .dwcfi save_reg_to_mem, 18, -20 PSHBOTH XAR2 .dwcfi cfa_offset, 21 .dwcfi save_reg_to_mem, 20, -21 PSHBOTH XAR3 .dwcfi cfa_offset, 22 .dwcfi save_reg_to_mem, 22, -22 PSHBOTH XAR4 .dwcfi cfa_offset, 23 .dwcfi save_reg_to_mem, 24, -23 PSH mmap(BKC) .dwcfi cfa_offset, 24 .dwcfi save_reg_to_mem, 37, -24 PSH mmap(BK03) .dwcfi cfa_offset, 25 .dwcfi save_reg_to_mem, 38, -25 PSH mmap(BK47) .dwcfi cfa_offset, 26 .dwcfi save_reg_to_mem, 39, -26 PSH mmap(BRC0) .dwcfi cfa_offset, 27 .dwcfi save_reg_to_mem, 47, -27 PSH mmap(RSA0L) .dwcfi cfa_offset, 28 .dwcfi save_reg_to_mem, 48, -28 PSH mmap(RSA0H) .dwcfi cfa_offset, 29 .dwcfi save_reg_to_mem, 49, -29 PSH mmap(REA0L) .dwcfi cfa_offset, 30 .dwcfi save_reg_to_mem, 50, -30 PSH mmap(REA0H) .dwcfi cfa_offset, 31 .dwcfi save_reg_to_mem, 51, -31 PSH mmap(BRS1) .dwcfi cfa_offset, 32 .dwcfi save_reg_to_mem, 52, -32 PSH mmap(BRC1) .dwcfi cfa_offset, 33 .dwcfi save_reg_to_mem, 53, -33 PSH mmap(RSA1L) .dwcfi cfa_offset, 34 .dwcfi save_reg_to_mem, 54, -34 PSH mmap(RSA1H) .dwcfi cfa_offset, 35 .dwcfi save_reg_to_mem, 55, -35 PSH mmap(REA1L) .dwcfi cfa_offset, 36 .dwcfi save_reg_to_mem, 56, -36 PSH mmap(REA1H) .dwcfi cfa_offset, 37 .dwcfi save_reg_to_mem, 57, -37 PSH mmap(CSR) .dwcfi cfa_offset, 38 .dwcfi save_reg_to_mem, 58, -38 PSH mmap(RPTC) .dwcfi cfa_offset, 39 .dwcfi save_reg_to_mem, 59, -39 PSHBOTH XCDP .dwcfi cfa_offset, 40 .dwcfi save_reg_to_mem, 60, -40 PSH mmap(TRN0) .dwcfi cfa_offset, 41 .dwcfi save_reg_to_mem, 62, -41 PSH mmap(TRN1) .dwcfi cfa_offset, 42 .dwcfi save_reg_to_mem, 63, -42 PSH mmap(BSA01) .dwcfi cfa_offset, 43 .dwcfi save_reg_to_mem, 64, -43 PSH mmap(BSA23) .dwcfi cfa_offset, 44 .dwcfi save_reg_to_mem, 65, -44 PSH mmap(BSA45) .dwcfi cfa_offset, 45 .dwcfi save_reg_to_mem, 66, -45 PSH mmap(BSA67) .dwcfi cfa_offset, 46 .dwcfi save_reg_to_mem, 67, -46 PSH mmap(BSAC) .dwcfi cfa_offset, 47 .dwcfi save_reg_to_mem, 68, -47 AMAR *SP(#0), XAR1 AND #0xfffe, mmap(SP) PSH AR1 AADD #-5, SP .dwcfi cfa_offset, 51 $C$DW$131 .dwtag DW_TAG_variable, DW_AT_name("RegAddr") .dwattr $C$DW$131, DW_AT_TI_symbol_name("_RegAddr") .dwattr $C$DW$131, DW_AT_type(*$C$DW$T$39) .dwattr $C$DW$131, DW_AT_location[DW_OP_bregx 0x24 2] .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 298,column 5,is_stmt MOV #0, *(#_i) ; |298| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 300,column 5,is_stmt BSET ST3_SMUL AMAR *SP(#2), XAR0 || BCLR ST3_SATA $C$DW$132 .dwtag DW_TAG_TI_branch .dwattr $C$DW$132, DW_AT_low_pc(0x00) .dwattr $C$DW$132, DW_AT_name("_IRQ_getArg") .dwattr $C$DW$132, DW_AT_TI_call CALL #_IRQ_getArg ; |300| || MOV #13, T0 ; call occurs [#_IRQ_getArg] ; |300| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 301,column 5,is_stmt MOV dbl(*(#_sarRegDataAddr)), AC0 ; |301| MOV dbl(*SP(#2)), AC1 ; |301| CMPU AC1 == AC0, TC1 ; |301| BCC $C$L18,TC1 ; |301| ; branchcc occurs ; |301| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 303,column 9,is_stmt AMOV #$C$FSL20, XAR3 ; |303| MOV XAR3, dbl(*SP(#0)) $C$DW$133 .dwtag DW_TAG_TI_branch .dwattr $C$DW$133, DW_AT_low_pc(0x00) .dwattr $C$DW$133, DW_AT_name("_printf") .dwattr $C$DW$133, DW_AT_TI_call CALL #_printf ; |303| ; call occurs [#_printf] ; |303| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 306,column 9,is_stmt MOV #0, *(#_PaSs_StAtE) ; |306| $C$L18: .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 309,column 5,is_stmt $C$DW$134 .dwtag DW_TAG_TI_branch .dwattr $C$DW$134, DW_AT_low_pc(0x00) .dwattr $C$DW$134, DW_AT_name("_IRQ_disable") .dwattr $C$DW$134, DW_AT_TI_call CALL #_IRQ_disable ; |309| || MOV #13, T0 ; call occurs [#_IRQ_disable] ; |309| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 310,column 5,is_stmt AMOV #_readBuffer, XAR1 ; |310| MOV dbl(*(#_SarHandle)), XAR0 $C$DW$135 .dwtag DW_TAG_TI_branch .dwattr $C$DW$135, DW_AT_low_pc(0x00) .dwattr $C$DW$135, DW_AT_name("_SAR_readData") .dwattr $C$DW$135, DW_AT_TI_call CALL #_SAR_readData ; |310| ; call occurs [#_SAR_readData] ; |310| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 311,column 5,is_stmt ADD #1, *(#_i) ; |311| .dwpsn file "../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c",line 312,column 1,is_stmt AADD #5, SP .dwcfi cfa_offset, 47 POP mmap(SP) POP mmap(BSAC) .dwcfi restore_reg, 68 .dwcfi cfa_offset, 46 POP mmap(BSA67) .dwcfi restore_reg, 67 .dwcfi cfa_offset, 45 POP mmap(BSA45) .dwcfi restore_reg, 66 .dwcfi cfa_offset, 44 POP mmap(BSA23) .dwcfi restore_reg, 65 .dwcfi cfa_offset, 43 POP mmap(BSA01) .dwcfi restore_reg, 64 .dwcfi cfa_offset, 42 POP mmap(TRN1) .dwcfi restore_reg, 63 .dwcfi cfa_offset, 41 POP mmap(TRN0) .dwcfi restore_reg, 62 .dwcfi cfa_offset, 40 POPBOTH XCDP .dwcfi restore_reg, 60 .dwcfi cfa_offset, 39 POP mmap(RPTC) .dwcfi restore_reg, 59 .dwcfi cfa_offset, 38 POP mmap(CSR) .dwcfi restore_reg, 58 .dwcfi cfa_offset, 37 POP mmap(REA1H) .dwcfi restore_reg, 57 .dwcfi cfa_offset, 36 POP mmap(REA1L) .dwcfi restore_reg, 56 .dwcfi cfa_offset, 35 POP mmap(RSA1H) .dwcfi restore_reg, 55 .dwcfi cfa_offset, 34 POP mmap(RSA1L) .dwcfi restore_reg, 54 .dwcfi cfa_offset, 33 POP mmap(BRC1) .dwcfi restore_reg, 53 .dwcfi cfa_offset, 32 POP mmap(BRS1) .dwcfi restore_reg, 52 .dwcfi cfa_offset, 31 POP mmap(REA0H) .dwcfi restore_reg, 51 .dwcfi cfa_offset, 30 POP mmap(REA0L) .dwcfi restore_reg, 50 .dwcfi cfa_offset, 29 POP mmap(RSA0H) .dwcfi restore_reg, 49 .dwcfi cfa_offset, 28 POP mmap(RSA0L) .dwcfi restore_reg, 48 .dwcfi cfa_offset, 27 POP mmap(BRC0) .dwcfi restore_reg, 47 .dwcfi cfa_offset, 26 POP mmap(BK47) .dwcfi restore_reg, 39 .dwcfi cfa_offset, 25 POP mmap(BK03) .dwcfi restore_reg, 38 .dwcfi cfa_offset, 24 POP mmap(BKC) .dwcfi restore_reg, 37 .dwcfi cfa_offset, 23 POPBOTH XAR4 .dwcfi restore_reg, 24 .dwcfi cfa_offset, 22 POPBOTH XAR3 .dwcfi restore_reg, 22 .dwcfi cfa_offset, 21 POPBOTH XAR2 .dwcfi restore_reg, 20 .dwcfi cfa_offset, 20 POPBOTH XAR1 .dwcfi restore_reg, 18 .dwcfi cfa_offset, 19 POPBOTH XAR0 .dwcfi restore_reg, 16 .dwcfi cfa_offset, 18 POP T1 .dwcfi restore_reg, 13 .dwcfi cfa_offset, 17 POP T0 .dwcfi restore_reg, 12 .dwcfi cfa_offset, 16 POP mmap(AC3G) .dwcfi restore_reg, 11 .dwcfi cfa_offset, 15 .dwcfi restore_reg, 10 .dwcfi cfa_offset, 14 POP dbl(AC3) .dwcfi restore_reg, 9 .dwcfi cfa_offset, 13 POP mmap(AC2G) .dwcfi restore_reg, 8 .dwcfi cfa_offset, 12 .dwcfi restore_reg, 7 .dwcfi cfa_offset, 11 POP dbl(AC2) .dwcfi restore_reg, 6 .dwcfi cfa_offset, 10 POP mmap(AC1G) .dwcfi restore_reg, 5 .dwcfi cfa_offset, 9 .dwcfi restore_reg, 4 .dwcfi cfa_offset, 8 POP dbl(AC1) .dwcfi restore_reg, 3 .dwcfi cfa_offset, 7 POP mmap(AC0G) .dwcfi restore_reg, 2 .dwcfi cfa_offset, 6 .dwcfi restore_reg, 1 .dwcfi cfa_offset, 5 POP dbl(AC0) .dwcfi restore_reg, 0 .dwcfi cfa_offset, 4 POP mmap(ST3_55) .dwcfi restore_reg, 43 .dwcfi cfa_offset, 3 $C$DW$136 .dwtag DW_TAG_TI_branch .dwattr $C$DW$136, DW_AT_low_pc(0x00) .dwattr $C$DW$136, DW_AT_TI_return RETI ; return occurs .dwattr $C$DW$130, DW_AT_TI_end_file("../c5535_bsl_revc/ezdsp5535_v1/c55xx_csl/ccs_v4.0_examples/intc/CSL_INTC_Example/intc_example.c") .dwattr $C$DW$130, DW_AT_TI_end_line(0x138) .dwattr $C$DW$130, DW_AT_TI_end_column(0x01) .dwendentry .dwendtag $C$DW$130 ;******************************************************************************* ;* FAR STRINGS * ;******************************************************************************* .sect ".const:.string" .align 2 $C$FSL1: .string "CSL INTC MODULE TEST",10,10,0 .align 2 $C$FSL2: .string "sar_test_Int_keypad_voltage is passed",10,0 .align 2 $C$FSL3: .string "sar_test_Int_keypad_voltage is failed",10,0 .align 2 $C$FSL4: .string 10,"CSL INTC MODULE TEST COMPLETED!!",10,0 .align 2 $C$FSL5: .string "Testing INTC using SAR module",10,0 .align 2 $C$FSL6: .string "Press Any Button on the EVM Keypad",10,0 .align 2 $C$FSL7: .string "Wrong ISR address",10,0 .align 2 $C$FSL8: .string "SAR Init Failed!!",10,0 .align 2 $C$FSL9: .string "SAR_chanOpen Failed!!",10,0 .align 2 $C$FSL10: .string "SAR_chanInit Failed!!",10,0 .align 2 $C$FSL11: .string "IRQ_setArg failed!!",10,0 .align 2 $C$FSL12: .string "SAR_chanConfig Failed!!",10,0 .align 2 $C$FSL13: .string "SAR_chanCycSet Failed!!",10,0 .align 2 $C$FSL14: .string "SAR_A2DMeasParamSet Failed!!",10,0 .align 2 $C$FSL15: .string "SAR_startConversion Failed!!",10,0 .align 2 $C$FSL16: .string "After ISR :SAR ADC read data 0x%x",10,0 .align 2 $C$FSL17: .string "SAR_stopConversion Failed!!",10,0 .align 2 $C$FSL18: .string "SAR_chanClose Failed!!",10,0 .align 2 $C$FSL19: .string "SAR_deInit Failed!!",10,0 .align 2 $C$FSL20: .string "IRQ_getArg is failed",10,0 ;****************************************************************************** ;* UNDEFINED EXTERNAL REFERENCES * ;****************************************************************************** .global _SAR_init .global _SAR_deInit .global _SAR_chanOpen .global _SAR_chanClose .global _SAR_chanInit .global _SAR_chanSetup .global _SAR_chanCycSet .global _SAR_startConversion .global _SAR_stopConversion .global _SAR_A2DMeasParamSet .global _SAR_readData .global _IRQ_plug .global _IRQ_init .global _IRQ_clear .global _IRQ_clearAll .global _IRQ_config .global _IRQ_getConfig .global _IRQ_disable .global _IRQ_disableAll .global _IRQ_enable .global _IRQ_getArg .global _IRQ_map .global _IRQ_setArg .global _IRQ_setVecs .global _IRQ_test .global _IRQ_globalDisable .global _IRQ_globalEnable .global _printf .global _VECSTART ;******************************************************************************* ;* TYPE INFORMATION * ;******************************************************************************* $C$DW$T$29 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$29, DW_AT_byte_size(0x01) $C$DW$137 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_SAR_POLLING"), DW_AT_const_value(0x00) $C$DW$138 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_SAR_INTERRUPT"), DW_AT_const_value(0x01) $C$DW$139 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_SAR_DMA"), DW_AT_const_value(0x02) .dwendtag $C$DW$T$29 $C$DW$T$30 .dwtag DW_TAG_typedef, DW_AT_name("CSL_SarOpMode") .dwattr $C$DW$T$30, DW_AT_type(*$C$DW$T$29) .dwattr $C$DW$T$30, DW_AT_language(DW_LANG_C) $C$DW$T$31 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$31, DW_AT_byte_size(0x01) $C$DW$140 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_SAR_NO_DISCHARGE"), DW_AT_const_value(0x00) $C$DW$141 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_SAR_DISCHARGE_ARRAY"), DW_AT_const_value(0x01) .dwendtag $C$DW$T$31 $C$DW$T$32 .dwtag DW_TAG_typedef, DW_AT_name("CSL_SarMultiCh") .dwattr $C$DW$T$32, DW_AT_type(*$C$DW$T$31) .dwattr $C$DW$T$32, DW_AT_language(DW_LANG_C) $C$DW$T$33 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$33, DW_AT_byte_size(0x01) $C$DW$142 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_SAR_REF_0_8v"), DW_AT_const_value(0x00) $C$DW$143 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_SAR_REF_1v"), DW_AT_const_value(0x01) $C$DW$144 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_SAR_REF_VIN"), DW_AT_const_value(0x02) .dwendtag $C$DW$T$33 $C$DW$T$34 .dwtag DW_TAG_typedef, DW_AT_name("CSL_RefVoltage") .dwattr $C$DW$T$34, DW_AT_type(*$C$DW$T$33) .dwattr $C$DW$T$34, DW_AT_language(DW_LANG_C) $C$DW$T$42 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$42, DW_AT_byte_size(0x01) $C$DW$145 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_SAR_CHAN_0"), DW_AT_const_value(0x00) $C$DW$146 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_SAR_CHAN_1"), DW_AT_const_value(0x01) $C$DW$147 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_SAR_CHAN_2"), DW_AT_const_value(0x02) $C$DW$148 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_SAR_CHAN_3"), DW_AT_const_value(0x03) $C$DW$149 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_SAR_CHAN_4"), DW_AT_const_value(0x04) $C$DW$150 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_SAR_CHAN_5"), DW_AT_const_value(0x05) $C$DW$151 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_SAR_NO_CHAN"), DW_AT_const_value(0x06) .dwendtag $C$DW$T$42 $C$DW$T$43 .dwtag DW_TAG_typedef, DW_AT_name("CSL_SarChanSel") .dwattr $C$DW$T$43, DW_AT_type(*$C$DW$T$42) .dwattr $C$DW$T$43, DW_AT_language(DW_LANG_C) $C$DW$T$44 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$44, DW_AT_type(*$C$DW$T$43) .dwattr $C$DW$T$44, DW_AT_address_class(0x17) $C$DW$T$45 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$45, DW_AT_byte_size(0x01) $C$DW$152 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_SAR_CONTINUOUS_CONVERSION"), DW_AT_const_value(0x00) $C$DW$153 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_SAR_SINGLE_CONVERSION"), DW_AT_const_value(0x01) .dwendtag $C$DW$T$45 $C$DW$T$46 .dwtag DW_TAG_typedef, DW_AT_name("CSL_SarChanCyc") .dwattr $C$DW$T$46, DW_AT_type(*$C$DW$T$45) .dwattr $C$DW$T$46, DW_AT_language(DW_LANG_C) $C$DW$T$47 .dwtag DW_TAG_enumeration_type .dwattr $C$DW$T$47, DW_AT_byte_size(0x01) $C$DW$154 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_KEYPAD_MEAS"), DW_AT_const_value(0x00) $C$DW$155 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_BATTRY_MEAS"), DW_AT_const_value(0x01) $C$DW$156 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_INT_VOLT_MEAS"), DW_AT_const_value(0x02) $C$DW$157 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_VOLUME_CTRL"), DW_AT_const_value(0x03) $C$DW$158 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_TOUCH_SCREEN_XAXIS"), DW_AT_const_value(0x04) $C$DW$159 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_TOUCH_SCREEN_YAXIS"), DW_AT_const_value(0x05) $C$DW$160 .dwtag DW_TAG_enumerator, DW_AT_name("CSL_PEN_PRESS_DOWN"), DW_AT_const_value(0x06) .dwendtag $C$DW$T$47 $C$DW$T$48 .dwtag DW_TAG_typedef, DW_AT_name("CSL_SARMeasParam") .dwattr $C$DW$T$48, DW_AT_type(*$C$DW$T$47) .dwattr $C$DW$T$48, DW_AT_language(DW_LANG_C) $C$DW$T$23 .dwtag DW_TAG_structure_type .dwattr $C$DW$T$23, DW_AT_byte_size(0x1b) $C$DW$161 .dwtag DW_TAG_member .dwattr $C$DW$161, DW_AT_type(*$C$DW$T$21) .dwattr $C$DW$161, DW_AT_name("RSVD0") .dwattr $C$DW$161, DW_AT_TI_symbol_name("_RSVD0") .dwattr $C$DW$161, DW_AT_data_member_location[DW_OP_plus_uconst 0x0] .dwattr $C$DW$161, DW_AT_accessibility(DW_ACCESS_public) $C$DW$162 .dwtag DW_TAG_member .dwattr $C$DW$162, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$162, DW_AT_name("USBLDOCNTL") .dwattr $C$DW$162, DW_AT_TI_symbol_name("_USBLDOCNTL") .dwattr $C$DW$162, DW_AT_data_member_location[DW_OP_plus_uconst 0x4] .dwattr $C$DW$162, DW_AT_accessibility(DW_ACCESS_public) $C$DW$163 .dwtag DW_TAG_member .dwattr $C$DW$163, DW_AT_type(*$C$DW$T$22) .dwattr $C$DW$163, DW_AT_name("RSVD1") .dwattr $C$DW$163, DW_AT_TI_symbol_name("_RSVD1") .dwattr $C$DW$163, DW_AT_data_member_location[DW_OP_plus_uconst 0x5] .dwattr $C$DW$163, DW_AT_accessibility(DW_ACCESS_public) $C$DW$164 .dwtag DW_TAG_member .dwattr $C$DW$164, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$164, DW_AT_name("SARCTRL") .dwattr $C$DW$164, DW_AT_TI_symbol_name("_SARCTRL") .dwattr $C$DW$164, DW_AT_data_member_location[DW_OP_plus_uconst 0x12] .dwattr $C$DW$164, DW_AT_accessibility(DW_ACCESS_public) $C$DW$165 .dwtag DW_TAG_member .dwattr $C$DW$165, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$165, DW_AT_name("RSVD2") .dwattr $C$DW$165, DW_AT_TI_symbol_name("_RSVD2") .dwattr $C$DW$165, DW_AT_data_member_location[DW_OP_plus_uconst 0x13] .dwattr $C$DW$165, DW_AT_accessibility(DW_ACCESS_public) $C$DW$166 .dwtag DW_TAG_member .dwattr $C$DW$166, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$166, DW_AT_name("SARDATA") .dwattr $C$DW$166, DW_AT_TI_symbol_name("_SARDATA") .dwattr $C$DW$166, DW_AT_data_member_location[DW_OP_plus_uconst 0x14] .dwattr $C$DW$166, DW_AT_accessibility(DW_ACCESS_public) $C$DW$167 .dwtag DW_TAG_member .dwattr $C$DW$167, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$167, DW_AT_name("RSVD3") .dwattr $C$DW$167, DW_AT_TI_symbol_name("_RSVD3") .dwattr $C$DW$167, DW_AT_data_member_location[DW_OP_plus_uconst 0x15] .dwattr $C$DW$167, DW_AT_accessibility(DW_ACCESS_public) $C$DW$168 .dwtag DW_TAG_member .dwattr $C$DW$168, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$168, DW_AT_name("SARCLKCTRL") .dwattr $C$DW$168, DW_AT_TI_symbol_name("_SARCLKCTRL") .dwattr $C$DW$168, DW_AT_data_member_location[DW_OP_plus_uconst 0x16] .dwattr $C$DW$168, DW_AT_accessibility(DW_ACCESS_public) $C$DW$169 .dwtag DW_TAG_member .dwattr $C$DW$169, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$169, DW_AT_name("RSVD4") .dwattr $C$DW$169, DW_AT_TI_symbol_name("_RSVD4") .dwattr $C$DW$169, DW_AT_data_member_location[DW_OP_plus_uconst 0x17] .dwattr $C$DW$169, DW_AT_accessibility(DW_ACCESS_public) $C$DW$170 .dwtag DW_TAG_member .dwattr $C$DW$170, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$170, DW_AT_name("SARPINCTRL") .dwattr $C$DW$170, DW_AT_TI_symbol_name("_SARPINCTRL") .dwattr $C$DW$170, DW_AT_data_member_location[DW_OP_plus_uconst 0x18] .dwattr $C$DW$170, DW_AT_accessibility(DW_ACCESS_public) $C$DW$171 .dwtag DW_TAG_member .dwattr $C$DW$171, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$171, DW_AT_name("RSVD5") .dwattr $C$DW$171, DW_AT_TI_symbol_name("_RSVD5") .dwattr $C$DW$171, DW_AT_data_member_location[DW_OP_plus_uconst 0x19] .dwattr $C$DW$171, DW_AT_accessibility(DW_ACCESS_public) $C$DW$172 .dwtag DW_TAG_member .dwattr $C$DW$172, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$172, DW_AT_name("SARGPOCTRL") .dwattr $C$DW$172, DW_AT_TI_symbol_name("_SARGPOCTRL") .dwattr $C$DW$172, DW_AT_data_member_location[DW_OP_plus_uconst 0x1a] .dwattr $C$DW$172, DW_AT_accessibility(DW_ACCESS_public) .dwendtag $C$DW$T$23 $C$DW$T$24 .dwtag DW_TAG_typedef, DW_AT_name("CSL_AnactrlRegs") .dwattr $C$DW$T$24, DW_AT_type(*$C$DW$T$23) .dwattr $C$DW$T$24, DW_AT_language(DW_LANG_C) $C$DW$173 .dwtag DW_TAG_TI_far_type .dwattr $C$DW$173, DW_AT_type(*$C$DW$T$24) $C$DW$174 .dwtag DW_TAG_TI_ioport_type .dwattr $C$DW$174, DW_AT_type(*$C$DW$173) $C$DW$T$25 .dwtag DW_TAG_volatile_type .dwattr $C$DW$T$25, DW_AT_type(*$C$DW$174) $C$DW$T$26 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$26, DW_AT_type(*$C$DW$T$25) .dwattr $C$DW$T$26, DW_AT_address_class(0x10) $C$DW$T$27 .dwtag DW_TAG_typedef, DW_AT_name("CSL_SarRegsOvly") .dwattr $C$DW$T$27, DW_AT_type(*$C$DW$T$26) .dwattr $C$DW$T$27, DW_AT_language(DW_LANG_C) $C$DW$T$28 .dwtag DW_TAG_structure_type .dwattr $C$DW$T$28, DW_AT_byte_size(0x03) $C$DW$175 .dwtag DW_TAG_member .dwattr $C$DW$175, DW_AT_type(*$C$DW$T$27) .dwattr $C$DW$175, DW_AT_name("baseAddr") .dwattr $C$DW$175, DW_AT_TI_symbol_name("_baseAddr") .dwattr $C$DW$175, DW_AT_data_member_location[DW_OP_plus_uconst 0x0] .dwattr $C$DW$175, DW_AT_accessibility(DW_ACCESS_public) $C$DW$176 .dwtag DW_TAG_member .dwattr $C$DW$176, DW_AT_type(*$C$DW$T$19) .dwattr $C$DW$176, DW_AT_name("chanNo") .dwattr $C$DW$176, DW_AT_TI_symbol_name("_chanNo") .dwattr $C$DW$176, DW_AT_data_member_location[DW_OP_plus_uconst 0x1] .dwattr $C$DW$176, DW_AT_accessibility(DW_ACCESS_public) $C$DW$177 .dwtag DW_TAG_member .dwattr $C$DW$177, DW_AT_type(*$C$DW$T$19) .dwattr $C$DW$177, DW_AT_name("status") .dwattr $C$DW$177, DW_AT_TI_symbol_name("_status") .dwattr $C$DW$177, DW_AT_data_member_location[DW_OP_plus_uconst 0x2] .dwattr $C$DW$177, DW_AT_accessibility(DW_ACCESS_public) .dwendtag $C$DW$T$28 $C$DW$T$49 .dwtag DW_TAG_typedef, DW_AT_name("CSL_SarHandleObj") .dwattr $C$DW$T$49, DW_AT_type(*$C$DW$T$28) .dwattr $C$DW$T$49, DW_AT_language(DW_LANG_C) $C$DW$T$50 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$50, DW_AT_type(*$C$DW$T$49) .dwattr $C$DW$T$50, DW_AT_address_class(0x17) $C$DW$T$51 .dwtag DW_TAG_typedef, DW_AT_name("SAR_Handle") .dwattr $C$DW$T$51, DW_AT_type(*$C$DW$T$50) .dwattr $C$DW$T$51, DW_AT_language(DW_LANG_C) $C$DW$T$35 .dwtag DW_TAG_structure_type .dwattr $C$DW$T$35, DW_AT_byte_size(0x04) $C$DW$178 .dwtag DW_TAG_member .dwattr $C$DW$178, DW_AT_type(*$C$DW$T$19) .dwattr $C$DW$178, DW_AT_name("SysClkDiv") .dwattr $C$DW$178, DW_AT_TI_symbol_name("_SysClkDiv") .dwattr $C$DW$178, DW_AT_data_member_location[DW_OP_plus_uconst 0x0] .dwattr $C$DW$178, DW_AT_accessibility(DW_ACCESS_public) $C$DW$179 .dwtag DW_TAG_member .dwattr $C$DW$179, DW_AT_type(*$C$DW$T$30) .dwattr $C$DW$179, DW_AT_name("OpMode") .dwattr $C$DW$179, DW_AT_TI_symbol_name("_OpMode") .dwattr $C$DW$179, DW_AT_data_member_location[DW_OP_plus_uconst 0x1] .dwattr $C$DW$179, DW_AT_accessibility(DW_ACCESS_public) $C$DW$180 .dwtag DW_TAG_member .dwattr $C$DW$180, DW_AT_type(*$C$DW$T$32) .dwattr $C$DW$180, DW_AT_name("MultiCh") .dwattr $C$DW$180, DW_AT_TI_symbol_name("_MultiCh") .dwattr $C$DW$180, DW_AT_data_member_location[DW_OP_plus_uconst 0x2] .dwattr $C$DW$180, DW_AT_accessibility(DW_ACCESS_public) $C$DW$181 .dwtag DW_TAG_member .dwattr $C$DW$181, DW_AT_type(*$C$DW$T$34) .dwattr $C$DW$181, DW_AT_name("RefVoltage") .dwattr $C$DW$181, DW_AT_TI_symbol_name("_RefVoltage") .dwattr $C$DW$181, DW_AT_data_member_location[DW_OP_plus_uconst 0x3] .dwattr $C$DW$181, DW_AT_accessibility(DW_ACCESS_public) .dwendtag $C$DW$T$35 $C$DW$T$52 .dwtag DW_TAG_typedef, DW_AT_name("CSL_SarChSetup") .dwattr $C$DW$T$52, DW_AT_type(*$C$DW$T$35) .dwattr $C$DW$T$52, DW_AT_language(DW_LANG_C) $C$DW$T$53 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$53, DW_AT_type(*$C$DW$T$52) .dwattr $C$DW$T$53, DW_AT_address_class(0x17) $C$DW$T$40 .dwtag DW_TAG_structure_type .dwattr $C$DW$T$40, DW_AT_byte_size(0x08) $C$DW$182 .dwtag DW_TAG_member .dwattr $C$DW$182, DW_AT_type(*$C$DW$T$38) .dwattr $C$DW$182, DW_AT_name("funcAddr") .dwattr $C$DW$182, DW_AT_TI_symbol_name("_funcAddr") .dwattr $C$DW$182, DW_AT_data_member_location[DW_OP_plus_uconst 0x0] .dwattr $C$DW$182, DW_AT_accessibility(DW_ACCESS_public) $C$DW$183 .dwtag DW_TAG_member .dwattr $C$DW$183, DW_AT_type(*$C$DW$T$39) .dwattr $C$DW$183, DW_AT_name("funcArg") .dwattr $C$DW$183, DW_AT_TI_symbol_name("_funcArg") .dwattr $C$DW$183, DW_AT_data_member_location[DW_OP_plus_uconst 0x2] .dwattr $C$DW$183, DW_AT_accessibility(DW_ACCESS_public) $C$DW$184 .dwtag DW_TAG_member .dwattr $C$DW$184, DW_AT_type(*$C$DW$T$39) .dwattr $C$DW$184, DW_AT_name("ierMask") .dwattr $C$DW$184, DW_AT_TI_symbol_name("_ierMask") .dwattr $C$DW$184, DW_AT_data_member_location[DW_OP_plus_uconst 0x4] .dwattr $C$DW$184, DW_AT_accessibility(DW_ACCESS_public) $C$DW$185 .dwtag DW_TAG_member .dwattr $C$DW$185, DW_AT_type(*$C$DW$T$39) .dwattr $C$DW$185, DW_AT_name("cacheCtrl") .dwattr $C$DW$185, DW_AT_TI_symbol_name("_cacheCtrl") .dwattr $C$DW$185, DW_AT_data_member_location[DW_OP_plus_uconst 0x6] .dwattr $C$DW$185, DW_AT_accessibility(DW_ACCESS_public) .dwendtag $C$DW$T$40 $C$DW$T$54 .dwtag DW_TAG_typedef, DW_AT_name("CSL_IRQ_Dispatch") .dwattr $C$DW$T$54, DW_AT_type(*$C$DW$T$40) .dwattr $C$DW$T$54, DW_AT_language(DW_LANG_C) $C$DW$T$55 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$55, DW_AT_type(*$C$DW$T$54) .dwattr $C$DW$T$55, DW_AT_address_class(0x17) $C$DW$T$41 .dwtag DW_TAG_structure_type .dwattr $C$DW$T$41, DW_AT_byte_size(0x08) $C$DW$186 .dwtag DW_TAG_member .dwattr $C$DW$186, DW_AT_type(*$C$DW$T$38) .dwattr $C$DW$186, DW_AT_name("funcAddr") .dwattr $C$DW$186, DW_AT_TI_symbol_name("_funcAddr") .dwattr $C$DW$186, DW_AT_data_member_location[DW_OP_plus_uconst 0x0] .dwattr $C$DW$186, DW_AT_accessibility(DW_ACCESS_public) $C$DW$187 .dwtag DW_TAG_member .dwattr $C$DW$187, DW_AT_type(*$C$DW$T$39) .dwattr $C$DW$187, DW_AT_name("funcArg") .dwattr $C$DW$187, DW_AT_TI_symbol_name("_funcArg") .dwattr $C$DW$187, DW_AT_data_member_location[DW_OP_plus_uconst 0x2] .dwattr $C$DW$187, DW_AT_accessibility(DW_ACCESS_public) $C$DW$188 .dwtag DW_TAG_member .dwattr $C$DW$188, DW_AT_type(*$C$DW$T$39) .dwattr $C$DW$188, DW_AT_name("ierMask") .dwattr $C$DW$188, DW_AT_TI_symbol_name("_ierMask") .dwattr $C$DW$188, DW_AT_data_member_location[DW_OP_plus_uconst 0x4] .dwattr $C$DW$188, DW_AT_accessibility(DW_ACCESS_public) $C$DW$189 .dwtag DW_TAG_member .dwattr $C$DW$189, DW_AT_type(*$C$DW$T$39) .dwattr $C$DW$189, DW_AT_name("cacheCtrl") .dwattr $C$DW$189, DW_AT_TI_symbol_name("_cacheCtrl") .dwattr $C$DW$189, DW_AT_data_member_location[DW_OP_plus_uconst 0x6] .dwattr $C$DW$189, DW_AT_accessibility(DW_ACCESS_public) .dwendtag $C$DW$T$41 $C$DW$T$56 .dwtag DW_TAG_typedef, DW_AT_name("CSL_IRQ_Config") .dwattr $C$DW$T$56, DW_AT_type(*$C$DW$T$41) .dwattr $C$DW$T$56, DW_AT_language(DW_LANG_C) $C$DW$T$57 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$57, DW_AT_type(*$C$DW$T$56) .dwattr $C$DW$T$57, DW_AT_address_class(0x17) $C$DW$T$36 .dwtag DW_TAG_subroutine_type .dwattr $C$DW$T$36, DW_AT_language(DW_LANG_C) $C$DW$T$37 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$37, DW_AT_type(*$C$DW$T$36) .dwattr $C$DW$T$37, DW_AT_address_class(0x20) $C$DW$T$38 .dwtag DW_TAG_typedef, DW_AT_name("IRQ_IsrPtr") .dwattr $C$DW$T$38, DW_AT_type(*$C$DW$T$37) .dwattr $C$DW$T$38, 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$58 .dwtag DW_TAG_typedef, DW_AT_name("Int16") .dwattr $C$DW$T$58, DW_AT_type(*$C$DW$T$8) .dwattr $C$DW$T$58, DW_AT_language(DW_LANG_C) $C$DW$T$59 .dwtag DW_TAG_typedef, DW_AT_name("CSL_Status") .dwattr $C$DW$T$59, DW_AT_type(*$C$DW$T$58) .dwattr $C$DW$T$59, DW_AT_language(DW_LANG_C) $C$DW$190 .dwtag DW_TAG_TI_far_type .dwattr $C$DW$190, DW_AT_type(*$C$DW$T$58) $C$DW$T$94 .dwtag DW_TAG_volatile_type .dwattr $C$DW$T$94, DW_AT_type(*$C$DW$190) $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$19 .dwtag DW_TAG_typedef, DW_AT_name("Uint16") .dwattr $C$DW$T$19, DW_AT_type(*$C$DW$T$9) .dwattr $C$DW$T$19, DW_AT_language(DW_LANG_C) $C$DW$191 .dwtag DW_TAG_TI_far_type .dwattr $C$DW$191, DW_AT_type(*$C$DW$T$19) $C$DW$T$20 .dwtag DW_TAG_volatile_type .dwattr $C$DW$T$20, DW_AT_type(*$C$DW$191) $C$DW$T$21 .dwtag DW_TAG_array_type .dwattr $C$DW$T$21, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$T$21, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$21, DW_AT_byte_size(0x04) $C$DW$192 .dwtag DW_TAG_subrange_type .dwattr $C$DW$192, DW_AT_upper_bound(0x03) .dwendtag $C$DW$T$21 $C$DW$T$22 .dwtag DW_TAG_array_type .dwattr $C$DW$T$22, DW_AT_type(*$C$DW$T$20) .dwattr $C$DW$T$22, DW_AT_language(DW_LANG_C) .dwattr $C$DW$T$22, DW_AT_byte_size(0x0d) $C$DW$193 .dwtag DW_TAG_subrange_type .dwattr $C$DW$193, DW_AT_upper_bound(0x0c) .dwendtag $C$DW$T$22 $C$DW$T$74 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$74, DW_AT_type(*$C$DW$T$19) .dwattr $C$DW$T$74, DW_AT_address_class(0x17) $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$90 .dwtag DW_TAG_typedef, DW_AT_name("Bool") .dwattr $C$DW$T$90, DW_AT_type(*$C$DW$T$10) .dwattr $C$DW$T$90, DW_AT_language(DW_LANG_C) $C$DW$T$91 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$91, DW_AT_type(*$C$DW$T$90) .dwattr $C$DW$T$91, DW_AT_address_class(0x17) $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$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$39 .dwtag DW_TAG_typedef, DW_AT_name("Uint32") .dwattr $C$DW$T$39, DW_AT_type(*$C$DW$T$13) .dwattr $C$DW$T$39, DW_AT_language(DW_LANG_C) $C$DW$T$83 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$83, DW_AT_type(*$C$DW$T$39) .dwattr $C$DW$T$83, DW_AT_address_class(0x17) $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$101 .dwtag DW_TAG_base_type .dwattr $C$DW$T$101, DW_AT_encoding(DW_ATE_signed_char) .dwattr $C$DW$T$101, DW_AT_name("signed char") .dwattr $C$DW$T$101, DW_AT_byte_size(0x01) $C$DW$194 .dwtag DW_TAG_TI_far_type .dwattr $C$DW$194, DW_AT_type(*$C$DW$T$101) $C$DW$T$102 .dwtag DW_TAG_const_type .dwattr $C$DW$T$102, DW_AT_type(*$C$DW$194) $C$DW$T$103 .dwtag DW_TAG_pointer_type .dwattr $C$DW$T$103, DW_AT_type(*$C$DW$T$102) .dwattr $C$DW$T$103, DW_AT_address_class(0x17) .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$195 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC0") .dwattr $C$DW$195, DW_AT_location[DW_OP_reg0] $C$DW$196 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC0") .dwattr $C$DW$196, DW_AT_location[DW_OP_reg1] $C$DW$197 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC0_G") .dwattr $C$DW$197, DW_AT_location[DW_OP_reg2] $C$DW$198 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC1") .dwattr $C$DW$198, DW_AT_location[DW_OP_reg3] $C$DW$199 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC1") .dwattr $C$DW$199, DW_AT_location[DW_OP_reg4] $C$DW$200 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC1_G") .dwattr $C$DW$200, DW_AT_location[DW_OP_reg5] $C$DW$201 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC2") .dwattr $C$DW$201, DW_AT_location[DW_OP_reg6] $C$DW$202 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC2") .dwattr $C$DW$202, DW_AT_location[DW_OP_reg7] $C$DW$203 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC2_G") .dwattr $C$DW$203, DW_AT_location[DW_OP_reg8] $C$DW$204 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC3") .dwattr $C$DW$204, DW_AT_location[DW_OP_reg9] $C$DW$205 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC3") .dwattr $C$DW$205, DW_AT_location[DW_OP_reg10] $C$DW$206 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AC3_G") .dwattr $C$DW$206, DW_AT_location[DW_OP_reg11] $C$DW$207 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T0") .dwattr $C$DW$207, DW_AT_location[DW_OP_reg12] $C$DW$208 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T1") .dwattr $C$DW$208, DW_AT_location[DW_OP_reg13] $C$DW$209 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T2") .dwattr $C$DW$209, DW_AT_location[DW_OP_reg14] $C$DW$210 .dwtag DW_TAG_TI_assign_register, DW_AT_name("T3") .dwattr $C$DW$210, DW_AT_location[DW_OP_reg15] $C$DW$211 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR0") .dwattr $C$DW$211, DW_AT_location[DW_OP_reg16] $C$DW$212 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR0") .dwattr $C$DW$212, DW_AT_location[DW_OP_reg17] $C$DW$213 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR1") .dwattr $C$DW$213, DW_AT_location[DW_OP_reg18] $C$DW$214 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR1") .dwattr $C$DW$214, DW_AT_location[DW_OP_reg19] $C$DW$215 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR2") .dwattr $C$DW$215, DW_AT_location[DW_OP_reg20] $C$DW$216 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR2") .dwattr $C$DW$216, DW_AT_location[DW_OP_reg21] $C$DW$217 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR3") .dwattr $C$DW$217, DW_AT_location[DW_OP_reg22] $C$DW$218 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR3") .dwattr $C$DW$218, DW_AT_location[DW_OP_reg23] $C$DW$219 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR4") .dwattr $C$DW$219, DW_AT_location[DW_OP_reg24] $C$DW$220 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR4") .dwattr $C$DW$220, DW_AT_location[DW_OP_reg25] $C$DW$221 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR5") .dwattr $C$DW$221, DW_AT_location[DW_OP_reg26] $C$DW$222 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR5") .dwattr $C$DW$222, DW_AT_location[DW_OP_reg27] $C$DW$223 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR6") .dwattr $C$DW$223, DW_AT_location[DW_OP_reg28] $C$DW$224 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR6") .dwattr $C$DW$224, DW_AT_location[DW_OP_reg29] $C$DW$225 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR7") .dwattr $C$DW$225, DW_AT_location[DW_OP_reg30] $C$DW$226 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XAR7") .dwattr $C$DW$226, DW_AT_location[DW_OP_reg31] $C$DW$227 .dwtag DW_TAG_TI_assign_register, DW_AT_name("FP") .dwattr $C$DW$227, DW_AT_location[DW_OP_regx 0x20] $C$DW$228 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XFP") .dwattr $C$DW$228, DW_AT_location[DW_OP_regx 0x21] $C$DW$229 .dwtag DW_TAG_TI_assign_register, DW_AT_name("PC") .dwattr $C$DW$229, DW_AT_location[DW_OP_regx 0x22] $C$DW$230 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SP") .dwattr $C$DW$230, DW_AT_location[DW_OP_regx 0x23] $C$DW$231 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XSP") .dwattr $C$DW$231, DW_AT_location[DW_OP_regx 0x24] $C$DW$232 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BKC") .dwattr $C$DW$232, DW_AT_location[DW_OP_regx 0x25] $C$DW$233 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BK03") .dwattr $C$DW$233, DW_AT_location[DW_OP_regx 0x26] $C$DW$234 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BK47") .dwattr $C$DW$234, DW_AT_location[DW_OP_regx 0x27] $C$DW$235 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST0") .dwattr $C$DW$235, DW_AT_location[DW_OP_regx 0x28] $C$DW$236 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST1") .dwattr $C$DW$236, DW_AT_location[DW_OP_regx 0x29] $C$DW$237 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST2") .dwattr $C$DW$237, DW_AT_location[DW_OP_regx 0x2a] $C$DW$238 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ST3") .dwattr $C$DW$238, DW_AT_location[DW_OP_regx 0x2b] $C$DW$239 .dwtag DW_TAG_TI_assign_register, DW_AT_name("MDP") .dwattr $C$DW$239, DW_AT_location[DW_OP_regx 0x2c] $C$DW$240 .dwtag DW_TAG_TI_assign_register, DW_AT_name("MDP05") .dwattr $C$DW$240, DW_AT_location[DW_OP_regx 0x2d] $C$DW$241 .dwtag DW_TAG_TI_assign_register, DW_AT_name("MDP67") .dwattr $C$DW$241, DW_AT_location[DW_OP_regx 0x2e] $C$DW$242 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BRC0") .dwattr $C$DW$242, DW_AT_location[DW_OP_regx 0x2f] $C$DW$243 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA0") .dwattr $C$DW$243, DW_AT_location[DW_OP_regx 0x30] $C$DW$244 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA0_H") .dwattr $C$DW$244, DW_AT_location[DW_OP_regx 0x31] $C$DW$245 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA0") .dwattr $C$DW$245, DW_AT_location[DW_OP_regx 0x32] $C$DW$246 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA0_H") .dwattr $C$DW$246, DW_AT_location[DW_OP_regx 0x33] $C$DW$247 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BRS1") .dwattr $C$DW$247, DW_AT_location[DW_OP_regx 0x34] $C$DW$248 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BRC1") .dwattr $C$DW$248, DW_AT_location[DW_OP_regx 0x35] $C$DW$249 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA1") .dwattr $C$DW$249, DW_AT_location[DW_OP_regx 0x36] $C$DW$250 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RSA1_H") .dwattr $C$DW$250, DW_AT_location[DW_OP_regx 0x37] $C$DW$251 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA1") .dwattr $C$DW$251, DW_AT_location[DW_OP_regx 0x38] $C$DW$252 .dwtag DW_TAG_TI_assign_register, DW_AT_name("REA1_H") .dwattr $C$DW$252, DW_AT_location[DW_OP_regx 0x39] $C$DW$253 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CSR") .dwattr $C$DW$253, DW_AT_location[DW_OP_regx 0x3a] $C$DW$254 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RPTC") .dwattr $C$DW$254, DW_AT_location[DW_OP_regx 0x3b] $C$DW$255 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CDP") .dwattr $C$DW$255, DW_AT_location[DW_OP_regx 0x3c] $C$DW$256 .dwtag DW_TAG_TI_assign_register, DW_AT_name("XCDP") .dwattr $C$DW$256, DW_AT_location[DW_OP_regx 0x3d] $C$DW$257 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TRN0") .dwattr $C$DW$257, DW_AT_location[DW_OP_regx 0x3e] $C$DW$258 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TRN1") .dwattr $C$DW$258, DW_AT_location[DW_OP_regx 0x3f] $C$DW$259 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA01") .dwattr $C$DW$259, DW_AT_location[DW_OP_regx 0x40] $C$DW$260 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA23") .dwattr $C$DW$260, DW_AT_location[DW_OP_regx 0x41] $C$DW$261 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA45") .dwattr $C$DW$261, DW_AT_location[DW_OP_regx 0x42] $C$DW$262 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSA67") .dwattr $C$DW$262, DW_AT_location[DW_OP_regx 0x43] $C$DW$263 .dwtag DW_TAG_TI_assign_register, DW_AT_name("BSAC") .dwattr $C$DW$263, DW_AT_location[DW_OP_regx 0x44] $C$DW$264 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CARRY") .dwattr $C$DW$264, DW_AT_location[DW_OP_regx 0x45] $C$DW$265 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TC1") .dwattr $C$DW$265, DW_AT_location[DW_OP_regx 0x46] $C$DW$266 .dwtag DW_TAG_TI_assign_register, DW_AT_name("TC2") .dwattr $C$DW$266, DW_AT_location[DW_OP_regx 0x47] $C$DW$267 .dwtag DW_TAG_TI_assign_register, DW_AT_name("M40") .dwattr $C$DW$267, DW_AT_location[DW_OP_regx 0x48] $C$DW$268 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SXMD") .dwattr $C$DW$268, DW_AT_location[DW_OP_regx 0x49] $C$DW$269 .dwtag DW_TAG_TI_assign_register, DW_AT_name("ARMS") .dwattr $C$DW$269, DW_AT_location[DW_OP_regx 0x4a] $C$DW$270 .dwtag DW_TAG_TI_assign_register, DW_AT_name("C54CM") .dwattr $C$DW$270, DW_AT_location[DW_OP_regx 0x4b] $C$DW$271 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SATA") .dwattr $C$DW$271, DW_AT_location[DW_OP_regx 0x4c] $C$DW$272 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SATD") .dwattr $C$DW$272, DW_AT_location[DW_OP_regx 0x4d] $C$DW$273 .dwtag DW_TAG_TI_assign_register, DW_AT_name("RDM") .dwattr $C$DW$273, DW_AT_location[DW_OP_regx 0x4e] $C$DW$274 .dwtag DW_TAG_TI_assign_register, DW_AT_name("FRCT") .dwattr $C$DW$274, DW_AT_location[DW_OP_regx 0x4f] $C$DW$275 .dwtag DW_TAG_TI_assign_register, DW_AT_name("SMUL") .dwattr $C$DW$275, DW_AT_location[DW_OP_regx 0x50] $C$DW$276 .dwtag DW_TAG_TI_assign_register, DW_AT_name("INTM") .dwattr $C$DW$276, DW_AT_location[DW_OP_regx 0x51] $C$DW$277 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR0LC") .dwattr $C$DW$277, DW_AT_location[DW_OP_regx 0x52] $C$DW$278 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR1LC") .dwattr $C$DW$278, DW_AT_location[DW_OP_regx 0x53] $C$DW$279 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR2LC") .dwattr $C$DW$279, DW_AT_location[DW_OP_regx 0x54] $C$DW$280 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR3LC") .dwattr $C$DW$280, DW_AT_location[DW_OP_regx 0x55] $C$DW$281 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR4LC") .dwattr $C$DW$281, DW_AT_location[DW_OP_regx 0x56] $C$DW$282 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR5LC") .dwattr $C$DW$282, DW_AT_location[DW_OP_regx 0x57] $C$DW$283 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR6LC") .dwattr $C$DW$283, DW_AT_location[DW_OP_regx 0x58] $C$DW$284 .dwtag DW_TAG_TI_assign_register, DW_AT_name("AR7LC") .dwattr $C$DW$284, DW_AT_location[DW_OP_regx 0x59] $C$DW$285 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CDPLC") .dwattr $C$DW$285, DW_AT_location[DW_OP_regx 0x5a] $C$DW$286 .dwtag DW_TAG_TI_assign_register, DW_AT_name("CIE_RETA") .dwattr $C$DW$286, DW_AT_location[DW_OP_regx 0x5b] .dwendtag $C$DW$CU
43.444736
173
0.669194
b75fd2e8f32fa17ca58cbfbfd2fbc261fe29cbb0
245
asm
Assembly
libsrc/_DEVELOPMENT/arch/sms/SMSlib/c/sdcc/SMS_setBGScrollX.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/sms/SMSlib/c/sdcc/SMS_setBGScrollX.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/sms/SMSlib/c/sdcc/SMS_setBGScrollX.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; void SMS_setBGScrollX(unsigned char scrollX) SECTION code_clib SECTION code_SMSlib PUBLIC _SMS_setBGScrollX EXTERN asm_SMSlib_setBGScrollX _SMS_setBGScrollX: pop af pop hl push hl push af jp asm_SMSlib_setBGScrollX
12.894737
46
0.771429
fc684d501c0bcd642f326a25d10be8e35035351b
724
asm
Assembly
oeis/094/A094256.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/094/A094256.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/094/A094256.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A094256: Expansion of x / ( (x-1)*(x^3 - 9*x^2 + 6*x - 1) ). ; Submitted by Jon Maiga ; 1,7,34,143,560,2108,7752,28101,100947,360526,1282735,4552624,16131656,57099056,201962057,714012495,2523515514,8916942687,31504028992,111295205284,393151913464,1388758662221,4905479957435,17327203698086,61202661233823,216176614077600,763562937059280,2696990756891104,9526054721890705,33646974456383575,118844344998176210,419769354603495791,1482663997093772432,5236904136129348684,18497218197535636008,65333835957143450325,230764956101169326563,815082431190260542462,2878943818188182766031 lpb $0 sub $0,1 mov $2,4 sub $3,$4 sub $2,$3 add $5,1 mov $3,$5 add $4,$2 mul $5,4 sub $5,2 add $5,$2 lpe mov $0,$5 add $0,1
38.105263
489
0.779006
de9b3a49a581b4ff6b616e7fb5220856b79e7fff
1,216
asm
Assembly
src/arch/x86/boot/boot.asm
NightfallDM/xbook2
5cab260c4bf2222588246bbe825517b907b8dfe5
[ "MIT" ]
null
null
null
src/arch/x86/boot/boot.asm
NightfallDM/xbook2
5cab260c4bf2222588246bbe825517b907b8dfe5
[ "MIT" ]
null
null
null
src/arch/x86/boot/boot.asm
NightfallDM/xbook2
5cab260c4bf2222588246bbe825517b907b8dfe5
[ "MIT" ]
1
2021-02-05T01:03:29.000Z
2021-02-05T01:03:29.000Z
%include "const.inc" org 0x7c00 [bits 16] align 16 entry: mov ax, cs mov ds, ax mov ss, ax mov sp, 0 mov ax, 0xb800 mov es, ax ;clean screan clean_screen: mov ax, 0x02 int 0x10 ;show 'BOOT' mov byte [es:0],'B' mov byte [es:1],0x07 mov byte [es:2],'O' mov byte [es:3],0x07 mov byte [es:4],'O' mov byte [es:5],0x07 mov byte [es:6],'T' mov byte [es:7],0x07 ;we read load from sector 1(0 is first) width 8 sectors to 0x10000 ;es:dx=buffer address mov ax, LOADER_SEG mov es, ax xor bx, bx mov si, LOADER_OFF mov cx, LOADER_CNTS read_loader_from_disk: call floppy_read_sectors add bx, 512 inc si loop read_loader_from_disk jmp LOADER_SEG:0 ;si=LBA address, from 0 ;cx=sectors ;es:dx=buffer address ;this function was borrowed from internet floppy_read_sectors: push ax push cx push dx push bx mov ax, si xor dx, dx mov bx, 18 div bx inc dx mov cl, dl xor dx, dx mov bx, 2 div bx mov dh, dl xor dl, dl mov ch, al pop bx .RP: mov al, 0x01 mov ah, 0x02 int 0x13 jc .RP pop dx pop cx pop ax ret times 510-($-$$) db 0 dw 0xaa55 ; boot sector flags
14.650602
68
0.611842
1fb14549068474e6d15902f09de1669833559920
765
asm
Assembly
oeis/286/A286810.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/286/A286810.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/286/A286810.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A286810: Number of non-attacking bishop positions on a cylindrical 2 X 2n chessboard. ; 1,9,49,324,2209,15129,103684,710649,4870849,33385284,228826129,1568397609,10749957124,73681302249,505019158609,3461452808004,23725150497409,162614600673849,1114577054219524,7639424778862809,52361396397820129,358890350005878084,2459871053643326449,16860207025497407049,115561578124838522884,792070839848372253129,5428934300813767249009,37210469265847998489924,255044350560122222180449,1748099984655007556773209,11981655542024930675232004,82123488809519507169850809,562882766124611619513723649 mov $2,$0 mov $3,$0 cmp $3,0 add $2,$3 div $0,$2 seq $2,81076 ; a(n) = Lucas(4n) + 3, or 5*Fibonacci(2n-1)*Fibonacci(2n+1). sub $2,1 mul $2,$0 mov $3,$2 cmp $3,0 add $2,$3 mov $0,$2
47.8125
493
0.823529
3598612d57d93087d3a61aeed87879e87903eaee
655
asm
Assembly
chapter13/tuo-zhan-shi-yan.asm
bgst009/AssemblyLanguage
60969495e42830a2e5be5fb6d6dacf2dc635e3d4
[ "Apache-2.0" ]
null
null
null
chapter13/tuo-zhan-shi-yan.asm
bgst009/AssemblyLanguage
60969495e42830a2e5be5fb6d6dacf2dc635e3d4
[ "Apache-2.0" ]
null
null
null
chapter13/tuo-zhan-shi-yan.asm
bgst009/AssemblyLanguage
60969495e42830a2e5be5fb6d6dacf2dc635e3d4
[ "Apache-2.0" ]
1
2021-05-21T07:05:07.000Z
2021-05-21T07:05:07.000Z
; assume cs:code code segment start: call clear_screen ;int 1 mov bx,0 mov ax,30 sub cx,1 mov ax,4c00h int 21h ;============================== clear_screen: push ax push bx push cx push dx push ds push es push si push di clear_screen_bg: mov bx,0b800h mov es,bx mov bx,0 mov dl,0 mov dh,00000010b mov cx,2000 clearScreen: mov es:[bx],dx add bx,2 loop clearScreen clear_screen_end: pop di pop si pop es pop ds pop dx pop cx pop bx pop ax ret code ends end start
12.596154
31
0.499237
b2e7499555f4fd8abdfdc9b88a7b29261634f15a
391
asm
Assembly
programs/oeis/096/A096945.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/096/A096945.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/096/A096945.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A096945: Eighth column of (1,5)-Pascal triangle A096940. ; 5,36,148,456,1170,2640,5412,10296,18447,31460,51480,81328,124644,186048,271320,387600,543609,749892,1019084,1366200,1808950,2368080,3067740,3935880,5004675,6310980,7896816,9809888,12104136,14840320 lpb $0 mov $2,$0 sub $0,1 seq $2,96944 ; Seventh column of (1,5)-Pascal triangle A096940. add $1,$2 lpe add $1,5 mov $0,$1
32.583333
199
0.744246
d1aab143b3faf0fb92061bd0086117c5c298f90c
843
asm
Assembly
programs/oeis/076/A076140.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/076/A076140.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/076/A076140.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A076140: Triangular numbers T(k) that are three times another triangular number: T(k) such that T(k) = 3*T(m) for some m. ; 0,3,45,630,8778,122265,1702935,23718828,330360660,4601330415,64088265153,892634381730,12432793079070,173166468725253,2411897769074475,33593402298317400,467895734407369128,6516946879404850395,90769360577260536405,1264254101202242659278,17608788056254136693490,245258778686355671049585,3416014113552725258000703,47578938811051797940960260,662689129241172445915442940,9230068870565362444875240903,128558275058673901782337929705,1790585781950869262507855774970,24939642672253495773327642919878,347364411629598071564079145103325,4838162120142119506123780388526675,67386905270360075014168846294270128,938578511664898930692240067731255120 seq $0,82841 ; a(n) = 4*a(n-1) - a(n-2) for n>1, a(0)=3, a(1)=9. pow $0,2 div $0,24
120.428571
633
0.863582
caad5a6b6c4ce578ebbd63526b20ed920eb5a58c
11,049
asm
Assembly
utility.asm
unlink2/nesrpg
be08966cb171d8e54287bf0e59ec6262be7e8463
[ "MIT" ]
5
2020-01-23T14:58:55.000Z
2021-06-27T15:00:29.000Z
utility.asm
unlink2/nano_dungeons
be08966cb171d8e54287bf0e59ec6262be7e8463
[ "MIT" ]
null
null
null
utility.asm
unlink2/nano_dungeons
be08966cb171d8e54287bf0e59ec6262be7e8463
[ "MIT" ]
null
null
null
; sub routine that converts the sprite's ; tile position to an actual ; location on the screen convert_tile_location: ldx player_y lda tile_convert_table, x sec sbc #$01 cmp #$FF ; if y location is FF we set it to 0 bne @not_ff lda #$00 @not_ff: sta sprite_data ldx player_x lda tile_convert_table, x clc adc #$00 sta sprite_data+3 ; check game mode lda game_mode cmp #GAME_MODE_EDITOR bne @done ; if editor mode also update sprites 1-5 ldx player_y lda attr_convert_table, x tax lda tile_convert_table, x sec sbc #$01 cmp #$FF bne @not_ff_editor lda #$00 @not_ff_editor: sta sprite_data_1 sta sprite_data_2 clc adc #$8*3 sta sprite_data_3 sta sprite_data_4 ldx player_x lda attr_convert_table, x tax lda tile_convert_table, x sta sprite_data_1+3 sta sprite_data_3+3 clc adc #$8*3 sta sprite_data_2+3 sta sprite_data_4+3 @done: rts ; this sub routine applies smooth scrolling ; to sprite 0 ; inputs: ; smooth_up,_down,_left,_right ; side effects: ; changes position of sprite 0 ; overwirtes a and carry flag apply_smooth: lda sprite_data sec sbc smooth_down clc adc smooth_up sta sprite_data lda sprite_data+3 sec sbc smooth_right clc adc smooth_left sta sprite_data+3 rts ; this sub routine decrements all ; smooth movement values if they are greater than 0 ; inputs: ; smooth up, down, left, right ; side effects: ; a register and carry flag are modified ; smooth_x values may be decremented adjust_smooth: ; dec smooht values lda #$00 cmp smooth_left beq @no_dec_left dec smooth_left @no_dec_left: cmp smooth_right beq @no_dec_right dec smooth_right @no_dec_right: cmp smooth_up beq @no_dec_up dec smooth_up @no_dec_up: cmp smooth_down beq @no_dec_down dec smooth_down @no_dec_down: rts ; this sub routine copies memory from one ; location to another ; inputs: ; y -> size ; src_ptr -> original data ; dest_ptr -> destination ; side effects: ; y is changed, data is written at dest_ptr memcpy: dey @loop: lda (src_ptr), y sta (dest_ptr), y dey cpy #$FF ; if underflow stop bne @loop rts ; this sub routine sets memory of size ; to a certain value ; inputs: ; y -> size ; dest_ptr -> destination ; side effects: ; y is changed memset: dey @loop: sta (dest_ptr), y dey cpy #$FF ; if underflow stop bne @loop rts ; this sub routine converts a number to hex values ; that are ready to be pritned to the screen ; inputs: ; a -> the number ; side effects: ; hex_buffer if overwritten ; a is changed convert_hex: pha ; save value of a and #$0F ; first nibble sta hex_buffer pla and #$F0 ; second nibble lsr lsr lsr lsr ; shift to get right value sta hex_buffer+1 rts ; this sub routine ; makes an indirect jsr ; based on src_ptr ; inputs ; src_ptr -> the rotuine to jump to ; side effects: ; depends on indirect routine called jsr_indirect: jmp (src_ptr) ; this sub routine is a no-op update routine update_none: jmp update_done ; no critical update update_crit_none: jmp update_crit_done ; this is an empty sub routine ; useful for function pointers that ; require an input empty_sub: rts ; this sub routine hides objects ; at 0/0 ; side effects: ; moves obejcts hide_objs: lda #$00 ldx #$00 @loop: lda #$24 sta sprite_data+1, x lda #$00 sta sprite_data, x sta sprite_data+2, x sta sprite_data+3, x inx inx inx inx cpx #$00 bne @loop rts ; this sub routine generates ; a simple 8-bit pseudo ; random number ; inputs: ; rand8 -> nonzero value ; side effects: ; a register and flags are used ; rand8 changes random: lda rand8 jsr random_reg sta rand8 rts ; this sub routine generates ; an 8 bit random number ; inputs: ; a -> nonzero value ; returns: ; new random number in a random_reg: lsr bcc @noeor eor #$B4 @noeor: rts ; 8 bit xorshift random number ; used only for seed ; slow but more random ; inputs: ; a -> seed ; returns: ; new random number in a ; side effects: ; uses y and a registers random_xor: pha ; push seed and #$B8 ldx #$05 ldy #$00 @loop: asl bcc @bit_clear ; branch until bit = 0 iny ; count amount of bits shifted off @bit_clear: dex bne @loop tya ; feedback count lsr ; bit 0 is in carry pla ; get seed rol ; rotate carry in rts ; 16 bit rng routine LFSR (Galois) ; used only for seed ; pretty random ; inputs: ; seed ; returns: ; new values in seed and seed+1, 8 bit value is also returned in a ; side effects: ; uses y and a register ; Note: based on bbbradsmith / prng_6502 random_seed: ldy #8 lda seed @begin: asl ; shift the register rol seed+1 bcc @carry_clear eor #$39 ; apply XOR feedback whenever a 1 bit is shifted out @carry_clear: dey bne @begin sta seed cmp #0 ; reload flags rts ; this sub routine reloads a room ; inputs: ; level_data_ptr_bac ; level_ptr_bac ; attr_ptr_bac ; palette_ptr_bac (src_ptr) ; seed_bac for random map reload_room: ; reload the pointers lda level_data_ptr_bac sta level_data_ptr lda level_data_ptr_bac+1 sta level_data_ptr+1 lda attr_ptr_bac sta attr_ptr lda attr_ptr_bac+1 sta attr_ptr+1 lda palette_ptr_bac sta src_ptr lda palette_ptr_bac+1 sta src_ptr+1 lda seed_bac sta seed lda seed_bac+1 sta seed+1 ldx #$00 stx $2001 ; disable rendering ; load an empty map first lda #<empty_map sta level_data_ptr lda #>empty_map sta level_data_ptr+1 lda #<level_data sta level_ptr lda #>level_data sta level_ptr+1 ; disable NMI until load is complete set_nmi_flag jsr decompress_level ldx #$00 ; nt 0 jsr load_level ; load actual map lda level_data_ptr_bac sta level_data_ptr lda level_data_ptr_bac+1 sta level_data_ptr+1 lda #<level_data sta level_ptr lda #>level_data sta level_ptr+1 ; load sram values before generating map lda load_flags and #%00100000 beq @no_load jsr load_save @no_load: ; if level select is #$00 we generate a map, otherwise decompress lda load_flags and #%10000000 beq @decompress lda level ; test if shop is supposed to be loaded and #SHOP_MASK ; every F levels cmp #SHOP_MASK bne @no_shop ; clear sram attributes jsr clear_sram_attr lda #<shop_gfx sta level_data_ptr lda #>shop_gfx sta level_data_ptr+1 jmp @decompress @no_shop: jsr generate_map jmp @map_in_buffer @decompress: jsr decompress_level @map_in_buffer: jsr load_attr ; copy palette lda #<level_palette sta dest_ptr lda #>level_palette sta dest_ptr+1 ldy #PALETTE_SIZE jsr memcpy lda #$00 sta nametable vblank_wait ; lda #$00 ; sta $2005 ; sta $2005 ; no scrolling jsr init_game ; test if partial load is needed now ; if so we have start location and can go ahead lda load_flags and #%01000000 ; flag for partial load beq @no_part_load lda player_x sta get_tile_x lda player_y sta get_tile_y ldx #$00 ; nametable 0 jsr load_level_part jmp @done @no_part_load: ldx #$00 ; nametable 0 jsr load_level @done: vblank_wait rts ; this sub routine should be called at the start of the ; program ; first it checks the magic number sequence ; if it is not present it sets up default values ; for all sram functionality init_sram: ldx #$00 @magic_check: lda magic_bytes, x cmp magic, x bne @init inx cpx #16 bne @magic_check rts @init: ; if check was not OK start ; init ; first set up magic values correctly ldx #$00 @magic_init: lda magic_bytes, x sta magic, x inx cpx #16 bne @magic_init ; lastly make the custom code ; an rts lda #$60 ; rts opcode sta save_sub_1 sta save_sub_2 sta save_sub_3 ; then set up a completely empty ; tileset for all maps ldx #00 @empty_map_init: lda empty_map, x sta save_1, x sta save_2, x sta save_3, x inx cpx #$14 bne @empty_map_init rts ; 16 random values magic_bytes: .db $0e ,$94 ,$3f ,$76 ,$9c ,$dd ,$f0 ,$ba ,$5c ,$ba ,$72 ,$36 ,$f8 ,$2d ,$d3, $46 ; this sub routine calculates the ; absolute distance between 2 numbers ; inputs: ; a -> x1 ; x -> x2 ; returns: ; absolute distance between x1 and x2 ; side effects: ; uses temp for subtraction calc_distance: stx temp sec sbc temp ; if overflow flag is set we got a negative result bpl @no_negative ; to convert, invert all bits and add 1 eor #%11111111 clc adc #$01 @no_negative: rts ; this sub routine is called when ; a brk occurs ; or any other IRQ is called ; since IRQ should never be activated ; it prints out all register values ; and the stack ; abandon all hope ye who calls this crash_handler: pha ; store A value for output later on txa pha ; store X value tya pha ; store Y value vblank_wait ; disable sprites and rendering ; disable NMI lda #$00 sta $2000 sta $2001 bit $2002 ; reset latch lda #$20 sta $2006 lda #$00 sta $2006 ; write address lda #$22 ; 'Y' sta $2007 pla ; y value ; this macro outputs ; prints value in A to the screen .macro output_value_crash pha lsr lsr lsr lsr sta $2007 pla and #$0F sta $2007 .endm ; y value output_value_crash lda #$24 ; space sta $2007 lda #$21 ; 'X' sta $2007 pla ; x value output_value_crash lda #$24 ; space sta $2007 lda #$0A ; 'A' sta $2007 pla output_value_crash lda #$24 ; space sta $2007 lda #$1C ; 'S' sta $2007 tsx txa output_value_crash ; output error message lda #$20 sta $2006 lda #$80 sta $2006 ldy #$00 @message_loop: lda @error_str, y beq @message_done sta $2007 iny bne @message_loop @message_done: ; loop all of stack lda #$20 sta $2006 lda #$C0 sta $2006 ldy #$00 ldx #$24 @stack_loop: lda $0100, y output_value_crash ; stx $2007 iny bne @stack_loop @crash_loop: vblank_wait ; enable rendering lda #%00000000 ; enable NMI, sprites from Pattern Table 0 sta $2000 lda #%00001111 ; enable sprites, bg, grayscale mode sta $2001 lda #$00 sta $2005 sta $2005 jmp @crash_loop ; strings for crash handler @error_str: .db "OH NO THE GAME CRASHED", $00 @error_str_end:
17.156832
82
0.637976
706bbc99fd3c67d922977de89b3b606ff1a0b90b
17,505
asm
Assembly
alarm.asm
Lefucjusz/MCS48-alarm-clock
b471951b7873bb47b4e535d1764f3fe2cb7a430d
[ "MIT" ]
null
null
null
alarm.asm
Lefucjusz/MCS48-alarm-clock
b471951b7873bb47b4e535d1764f3fe2cb7a430d
[ "MIT" ]
null
null
null
alarm.asm
Lefucjusz/MCS48-alarm-clock
b471951b7873bb47b4e535d1764f3fe2cb7a430d
[ "MIT" ]
null
null
null
;MAB8048H, 10.000MHz ;Gdansk 2021 .cr 8048 .tf rom.bin,BIN .lf alarm.lst ;======================== Defines ======================== ;Pins buzzer_pin .eq %00100000 ;Buzzer pin at P1.5 rs_pin .eq %01000000 ;LCD E pin at P1.6 e_pin .eq %10000000 ;LCD RS pin at P1.7 ;DS12887 registers sec_reg .eq $00 min_reg .eq $02 hr_reg .eq $04 day_reg .eq $07 mth_reg .eq $08 yr_reg .eq $09 a_reg .eq $0A b_reg .eq $0B c_reg .eq $0C d_reg .eq $0D ;RAM variables hours .eq $20 minutes .eq $21 seconds .eq $22 days .eq $23 months .eq $24 years .eq $25 alarm_hours .eq $26 alarm_minutes .eq $27 alarm_enabled .eq $28 alarm_fired .eq $29 ;Constants lcd_bell_glyph .eq 0 ;Custom bell glyph address in LCD CGRAM timer_init_val .eq 6 ;Gives interrupt every 12ms @10MHz cntr_init_val .eq 17 ;Counter initial value, gives overflow every 204ms (17*12ms) ;Fixed purpose registers ;F0 - used to divide main counter by two, used for display blinking ;F1 - RTC interrupt flag ;R4 - pointer to currently changed value during time setting ;R5 - main counter used for timing things like buttons update, display blinking... ;======================== Macros ======================== sub .ma A,V ;Subtracts V (Rx or immediate value) from A (A = A - V) cpl A add A,]2 cpl A .em ;======================== Vectors ======================== .no $00 ;Set jump to main at reset vector (00h) jmp main .no $03 ;Set jump to external interrupt ISR at external interrupt vector (03h) jmp rtc_isr .no $07 ;Set jump to timer interrupt ISR at timer interrupt vector (07h) jmp timer_isr main: clr A ;Clear A mov R4,A ;Initialize value pointer mov R0,#alarm_enabled mov @R0,A ;Disable alarm mov R0,#alarm_fired mov @R0,A ;Turn off alarm mov R0,#alarm_hours mov @R0,A ;Clear alarm hours mov R0,#alarm_minutes mov @R0,A ;Clear alarm minutes outl P1,A ;Clear P1 to turn off buzzer call lcd_init ;Initalize LCD call rtc_init ;Initialize RTC call timer_init ;Initalize hardware timer mov R5,#cntr_init_val ;Initialize counter en i ;Enable external interrupt en tcnti ;Enable timer interrupt strt t ;Start timer clr F1 ;Set RTC interrupt flag, so that update will trigger immediately after entering main loop loop: jf1 skip_time_update ;If RTC interrupt flag cleared, no need to update time call rtc_get_time ;Otherwise obtain current time call alarm_update ;Check if alarm should fire cpl F1 ;Clear interrupt flag skip_time_update: mov A,R5 jnz loop ;If R5 != 0, loop cpl F0 ;Otherwise complement F0 mov R5,#cntr_init_val ;Reload counter jf0 skip_buttons_update ;If F0 cleared, do not update buttons state call buttons_update ;Otherwise update buttons state skip_buttons_update: call display_update ;Update display call buzzer_update ;Update buzzer state jmp loop ;Loop forever ;======================== LCD routines ======================== ;R0 - byte, R1 - cmd/data switch, uses R0,R1, corrupts nothing lcd_write: anl P1,#~rs_pin ;Clear RS ;Test whether data or cmd will be sent mov A,R1 ;Load R1 to A to test if zero jz skip_rs ;Skip RS pin setting - cmd will be sent orl P1,#rs_pin ;Set RS pin - data will be sent skip_rs: ;Send upper nibble mov A,R0 ;Load byte to A outl P2,A ;Write A to P2 orl P1,#e_pin ;Set E pin anl P1,#~e_pin ;Clear E pin ;Send lower nibble swap A ;Swap nibbles outl P2,A ;Write A to P2 orl P1,#e_pin ;Set E pin anl P1,#~e_pin ;Clear E pin ret ;Uses and corrupts R0,R1,R6,R7 lcd_cls: mov R1,#0 ;Send commands mov R0,#$01 call lcd_write ;Clear display mov R6,#1 call delay_ms ;Wait 1ms mov R0,#$80 call lcd_write ;Set cursor at first place in upper row mov R6,#1 call delay_ms ;Wait 1ms ret ;R1 - row, R0 - column, uses and corrupts R0,R1 lcd_gotoxy: mov A,R1 jnz lcd_gotoxy_sec_row ;Check row mov A,#$80 ;If first, load address of its first position jmp lcd_gotoxy_write lcd_gotoxy_sec_row: mov A,#$C0 ;If second, load address of its first position lcd_gotoxy_write: add A,R0 ;Add offset (y) mov R0,A mov R1,#0 call lcd_write ;Send command ret ;R2 - value to be displayed, uses R0,R1,R2 lcd_num: mov R0,#0 ;Clear tens mov R1,#1 ;Chars will be sent to display div10: mov A,R2 ;Load value to be displayed to A cpl A ;Complement value add A,#10 ;Add 10 (C = (R2 < 10)) jc div10_end ;If there has been carry - break cpl A ;Complement A (A=R2-10) mov R2,A ;Store new value in R2 inc R0 ;Increment tens jmp div10 ;Perform again, until R2 < 10 div10_end: mov A,R0 add A,#$30 ;Add ASCII code for '0' mov R0,A call lcd_write ;Display tens mov A,R2 add A,#$30 ;Add ASCII code for '0' mov R0,A call lcd_write ;Display ones ret .ot bell_glyph .da #%00100, #%01110, #%01110, #%01110, #%11111, #%00000, #%00100, #%00000 lcd_load_glyph: mov R0,#$40 ;First custom CGRAM address mov R1,#0 ;Send command to display call lcd_write ;Set display to write to first custom CGRAM address mov R1,#1 ;Since now only characters will be sent to display mov R2,#bell_glyph ;Load bell_glyph array address to R2 mov R7,#8 ;Load loop counter lcd_load_glyphs_loop: mov A,R2 movp A,@A ;Load glyph byte from ROM to A .ct mov R0,A ;Load glyph byte to R0 call lcd_write ;Write character to LCD inc R2 ;Move pointer to next bell_glyph byte djnz R7,lcd_load_glyphs_loop ;Repeat for every byte from glyph call lcd_cls ;Clear display and move pointer to first row, first column ret ;Uses and corrupts R0,R1,R6,R7 lcd_init: mov R1,#0 ;Whole subroutine will be sending commands mov R0,#$30 call lcd_write ;Weird 4-bit init command first time... mov R6,#5 call delay_ms ;Wait 5ms mov R0,#$30 call lcd_write ;Weird repeated 4-bit init command second time... mov R6,#1 call delay_ms ;Wait 1ms mov R0,#$30 call lcd_write ;Weird repeated 4-bit init command third time... mov R0,#$02 call lcd_write ;Init 4-bit mode mov R0,#$28 call lcd_write ;2 lines, 5*8 font, 4-bit mode mov R0,#$0C call lcd_write ;Display on, cursor off, blink off mov R0,#$06 call lcd_write ;Autoincrement cursor position, text scroll off call lcd_load_glyph ;Load bell glyph ret ;Uses R0,R1 rtc_init: mov R0,#a_reg mov A,#%00100000 movx @R0,A ;Enable oscillator mov R0,#b_reg mov A,#%00010110 movx @R0,A ;Enable update-ended interrupt, binary data format, 24h mode ret rtc_disable_updates: mov R0,#b_reg movx A,@R0 ;Read DS12887 register B value orl A,#%10000000 ;Set SET bit anl A,#~%00010000 ;Disable update-ended interrupt movx @R0,A ;Save DS12887 new register B value ret rtc_enable_updates: mov R0,#b_reg movx A,@R0 ;Read DS12887 register B value anl A,#~%10000000 ;Clear SET bit orl A,#00010000 ;Enable update-ended interrupt movx @R0,A ;Save DS12887 new register B value ret rtc_write_hours: call rtc_disable_updates mov R0,#hr_reg mov R1,#hours mov A,@R1 ;Load hours value from RAM to A movx @R0,A ;Store hours value in hours register of RTC call rtc_enable_updates ret rtc_write_minutes: call rtc_disable_updates mov R0,#min_reg mov R1,#minutes mov A,@R1 ;Load minutes value from RAM to A movx @R0,A ;Store minutes value in minutes register of RTC mov R0,#sec_reg mov R1,#seconds mov A,@R1 ;Load seconds value from RAM to A movx @R0,A ;Store seconds value in seconds register of RTC call rtc_enable_updates ret rtc_write_date: call rtc_disable_updates mov R0,#day_reg mov R1,#days mov A,@R1 ;Load days value from RAM to A movx @R0,A ;Store days value in days register of RTC mov R0,#mth_reg mov R1,#months mov A,@R1 ;Load months value from RAM to A movx @R0,A ;Store months value in months register of RTC mov R0,#yr_reg mov R1,#years mov A,@R1 ;Load years value from RAM to A movx @R0,A ;Store years value in years register of RTC call rtc_enable_updates ret rtc_get_time: mov R0,#hr_reg movx A,@R0 ;Read hours register mov R0,#hours mov @R0,A ;Store hours in RAM mov R0,#min_reg movx A,@R0 ;Read minutes register mov R0,#minutes mov @R0,A ;Store minutes in RAM mov R0,#sec_reg movx A,@R0 ;Read seconds register mov R0,#seconds mov @R0,A ;Store seconds in RAM mov R0,#day_reg movx A,@R0 ;Read days register mov R0,#days mov @R0,A ;Store days in RAM mov R0,#mth_reg movx A,@R0 ;Read months register mov R0,#months mov @R0,A ;Store months in RAM mov R0,#yr_reg movx A,@R0 ;Read years register mov R0,#years mov @R0,A ;Store years in RAM ret rtc_isr: mov R0,#c_reg movx A,@R0 ;Clear DS12887 UF flag (it is cleared by reading Register C) clr F1 ;Set interrupt flag retr timer_init: mov A,#timer_init_val mov T,A ;Load initial value to timer ret timer_isr: dec R5 ;Decrement R5 call timer_init ;Reinitialize timer retr .ot month_days .db 31,28,31,30,31,30,31,31,30,31,30,31 clock_setup: mov A,R4 ;switch(R4) jz set_alarm ;case 0 dec A jz set_hours ;case 1 dec A jz set_minutes ;case 2 dec A jz set_days ;case 3 dec A jz set_months ;case 4 dec A jz set_years ;case 5 dec A jz set_alarm_hours ;case 6 dec A jz set_alarm_minutes ;case 7 jmp clock_setup_end ;default set_alarm: mov R0,#alarm_enabled mov A,@R0 ;Load alarm state to A xrl A,#1 ;Toggle alarm state mov @R0,A ;Write new state back to RAM jmp clock_setup_end set_hours: mov R0,#hours inc @R0 ;Increment hours mov A,@R0 ;Load hours value from RAM >sub A,#24 ;A = A - 24 -> C = (A < 24) jc write_hours ;If hours < 24, continue mov @R0,#0 ;Otherwise clear hours write_hours: call rtc_write_hours ;Save hours in RTC jmp clock_setup_end set_minutes: mov R0,#seconds mov @R0,#0 ;Clear seconds mov R0,#minutes inc @R0 ;Increment minutes mov A,@R0 ;Load minutes value from RAM >sub A,#60 ;A = A - 60 -> C = (A < 60) jc write_minutes ;If minutes < 60, continue mov @R0,#0 ;Otherwise clear minutes write_minutes: call rtc_write_minutes jmp clock_setup_end set_days: mov R0,#months mov A,@R0 ;Load current months value dec A ;Decrement months value to obtain proper array offset value mov R0,#month_days ;Load month_days array address add A,R0 ;Add offset movp A,@A ;Load number of days from array .ct ;TODO inc A ;Add one day for easier comparison later mov R0,A ;Store number of days in R0 mov R1,#days inc @R1 ;Increment days mov A,@R1 ;Load days value from RAM >sub A,R0 ;A = A - month_days[month] -> C = (A < month_days[month]) jc write_days ;If days < month_days[month], continue mov @R1,#1 ;Otherwise clear days write_days: call rtc_write_date ;Save days in RTC jmp clock_setup_end set_months: mov R0,#months inc @R0 ;Increment months mov A,@R0 ;Load months value from RAM >sub A,#13 ;A = A - 13 -> C = (A < 13) jc write_months ;If months < 13, continue mov @R0,#1 ;Otherwise clear months write_months: call rtc_write_date ;Save months in RTC jmp clock_setup_end set_years: mov R0,#years inc @R0 ;Increment years mov A,@R0 ;Load years value from RAM >sub A,#100 ;A = A - 100 -> C = (A < 100) jc write_years ;If years < 100, continue mov @R0,#0 ;Otherwise clear years write_years: call rtc_write_date ;Save years in RTC jmp clock_setup_end set_alarm_hours: mov R0,#alarm_hours inc @R0 ;Increment alarm_hours mov A,@R0 ;Load alarm_hours value from RAM >sub A,#24 ;A = A - 24 -> C = (A < 24) jc clock_setup_end ;If alarm_hours < 24, continue mov @R0,#0 ;Otherwise clear alarm_hours jmp clock_setup_end set_alarm_minutes: mov R0,#alarm_minutes inc @R0 ;Increment alarm_minutes mov A,@R0 ;Load alarm_minutes value from RAM >sub A,#60 ;A = A - 60 -> C = (A < 60) jc clock_setup_end ;If alarm_minutes < 60, continue mov @R0,#0 ;Otherwise clear alarm_minutes clock_setup_end: ret display_update: mov R0,#0 mov R1,#0 call lcd_gotoxy mov R0,#hours mov A,@R0 mov R2,A ;Load hours from RAM to R2 mov R3,#1 ;Hours should blink when position pointer is at first position call display_num_with_blink mov R0,#':' call lcd_write ;Display ':' mov R0,#minutes mov A,@R0 mov R2,A ;Load minutes from RAM to R2 mov R3,#2 ;Minutes should blink when position pointer is at second position call display_num_with_blink mov R0,#':' call lcd_write ;Display ':' mov R0,#seconds mov A,@R0 mov R2,A ;Load seconds from RAM to R2 call lcd_num ;Seconds are not being set, so no blinking needed mov R1,#0 mov R0,#10 call lcd_gotoxy ;Go to first row, tenth column mov R0,#days mov A,@R0 mov R2,A ;Load days from RAM to R2 mov R3,#3 ;Days should blink when position pointer is at third position call display_num_with_blink mov R0,#'-' call lcd_write ;Display '-' mov R0,#months mov A,@R0 mov R2,A ;Load months from RAM to R2 mov R3,#4 ;Months should blink when position pointer is at fourth position call display_num_with_blink mov R0,#'-' call lcd_write mov R0,#'2' call lcd_write mov R0,#'0' call lcd_write ;Display '-20' mov R0,#years mov A,@R0 mov R2,A ;Load years from RAM to R2 mov R3,#5 ;Years should blink when position pointer is at fifth position call display_num_with_blink mov R0,#6 mov R1,#1 call lcd_gotoxy ;Go to second row, sixth column mov R1,#1 ;Send characters to display mov A,R4 ;Load position pointer to A jnz display_alarm ;Display alarm values only if in setup mode, otherwise erase it mov R0,#alarm_enabled mov A,@R0 ;Load alarm state jz erase_alarm ;If alarm not enabled display_alarm: mov R0,#lcd_bell_glyph call lcd_write ;Display bell mov R0,#' ' call lcd_write ;Display ' ' mov R0,#alarm_hours mov A,@R0 mov R2,A ;Load alarm hours from RAM to R2 mov R3,#6 ;Alarm hours should blink when position pointer is at sixth position call display_num_with_blink mov R0,#':' call lcd_write ;Display ':' mov R0,#alarm_minutes mov A,@R0 mov R2,A ;Load alarm minutes from RAM to R2 mov R3,#7 ;Alarm minutes should blink when position pointer is at seventh position call display_num_with_blink mov R0,#' ' call lcd_write ;Display ' ' mov R0,#lcd_bell_glyph call lcd_write ;Display bell jmp display_update_end erase_alarm: mov R0,#' ' mov R7,#9 erase_alarm_loop: call lcd_write djnz R7,erase_alarm_loop display_update_end: ret ;R2 - value to be displayed, R3 - value of position counter for which the displayed value should blink display_num_with_blink: mov A,R4 ;Load position pointer to A >sub A,R3 ; A = A - R3 jnz skip_blinking ;If currently selected value is different than the one for which the value should blink, do not blink jf0 blank_value ;Otherwise perform blinking, if F0 set - blank value, otherwise display value skip_blinking: call lcd_num ;Display value jmp display_num_end ;Finish blank_value: mov R0,#' ' mov R1,#1 ;Send chars to LCD call lcd_write call lcd_write ;Display ' ' twice display_num_end: ret buttons_update: jt0 check_value_button mov R0,#alarm_fired mov A,@R0 ;Load alarm_fired flag to A jz buttons_update_no_alarm ;Check if alarm fired, if not, proceed to normal functions dec A mov @R0,A ;Turn off alarm jmp buttons_update_end ;Skip normal functionality buttons_update_no_alarm mov A,R4 inc A anl A,#7 ;A = A & 7 = A % 8 mov R4,A check_value_button: jt1 buttons_update_end call clock_setup buttons_update_end: ret alarm_update: mov R0,#alarm_enabled mov A,@R0 jz alarm_update_end ;If alarm not enabled, finish mov R0,#hours mov A,@R0 mov R0,A ;Load current hours value to R0 mov R1,#alarm_hours mov A,@R1 ;Load alarm hours to A >sub A,R0 ; A = A - R0 -> Z = 1 if (A == R0) -> Z = 1 if (hours == alarm_hours) jnz alarm_update_end ;If hours != alarm_hours, finish mov R0,#minutes mov A,@R0 mov R0,A ;Load current minutes value to R0 mov R1,#alarm_minutes mov A,@R1 ;Load alarm minutes to A >sub A,R0 ; A = A - R0 -> Z = 1 if (A == R0) -> Z = 1 if (minutes == alarm_minutes) jnz alarm_update_end ;If minutes != alarm_minutes, finish mov R0,#seconds mov A,@R0 ;Load current seconds value jnz alarm_update_end ;If seconds != 0, finish mov R0,#alarm_fired inc @R0 ;Fastest way to set alarm_fired flag alarm_update_end: ret buzzer_update: mov R0,#alarm_fired mov A,@R0 jnz buzzer_toggle ;If alarm fired, make interrupted beeping sound in A,P1 ;Load current P1 state to A anl A,#~buzzer_pin ;Turn off buzzer outl P1,A ;Write back to P1 jmp buzzer_update_end buzzer_toggle: in A,P1 ;Load current P1 state to A xrl A,#buzzer_pin ;Toggle buzzer outl P1,A ;Write back to P1 buzzer_update_end: ret delay_ms: mov R7,#228 delay_ms_loop: nop djnz R7,delay_ms_loop djnz R6,delay_ms ret
28.791118
123
0.671065
48203eb788200740709273dd7ecc9da6b0103e4d
7,891
asm
Assembly
base/mvdm/wow16/winnls/winnls.asm
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
base/mvdm/wow16/winnls/winnls.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
base/mvdm/wow16/winnls/winnls.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
;++ ; ; WOW v1.0 ; ; Copyright (c) 1991, Microsoft Corporation ; ; WINNLS.ASM ; Win16 WINNLS thunks ; ; History: ; ; Created 3-Feb-1992 by Junichi Okubo (junichio) ;-- TITLE WINNLS.ASM PAGE ,132 ; Some applications require that USER have a heap. This means ; we must always have: LIBINIT equ 1 ; ; NOTICE THIS junichio memo: This is on the developement. ; I cannot figure out it need or not? ;LIBINIT equ 1 FIRST_CALL_MUST_BE_USER_BUG equ 1 ifdef FIRST_CALL_MUST_BE_USER_BUG ;LIBINIT equ 1 endif .286p .xlist include wow.inc include wownls.inc include cmacros.inc .list __acrtused = 0 public __acrtused ;satisfy external C ref. ifdef LIBINIT externFP LocalInit endif externFP WOW16Call createSeg _TEXT,CODE,WORD,PUBLIC,CODE createSeg _DATA,DATA,WORD,PUBLIC,DATA,DGROUP defgrp DGROUP,DATA sBegin DATA Reserved db 16 dup (0) ;reserved for Windows sEnd DATA sBegin CODE assumes CS,CODE assumes DS,NOTHING assumes ES,NOTHING ifdef LIBINIT ;externFP LibMain endif cProc WINNLS16,<PUBLIC,FAR,PASCAL,NODATA,NOWIN,ATOMIC> cBegin <nogen> IFDEF LIBINIT ; push params and call user initialisation code push di ;hModule ; if we have a local heap declared then initialize it jcxz no_heap push 0 ;segment push 0 ;start push cx ;length call LocalInit no_heap: ; call LibMain ;return exit code from LibMain ELSE mov ax,1 ;are we dressed for success or WHAT?! ENDIF ret cEnd <nogen> cProc WEP,<PUBLIC,FAR,PASCAL,NODATA,NOWIN,ATOMIC> parmW iExit ;DLL exit code cBegin mov ax,1 ;always indicate success cEnd ; WINNLSThunk INQUIREWINNLS cProc InquireWINNLS,<PUBLIC,FAR,PASCAL,NODATA,WIN> cBegin mov ax,0 ; WOW does not support cEnd InquireWINNLS ; WINNLSTHunk HOOKKEYBOARDMESSAGE cProc HookKeyboardMessage,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmW nCode parmW VKey parmD lParam cBegin mov ax,0 ; WOW does not support cEnd HookKeyboardMessage WINNLSThunk SENDIMEMESSAGE WINNLSThunk SENDIMEMESSAGEEX ; WINNLSThunk WINNLSSETKEYBOARDHOOK cProc WINNLSSetKeyboardHook,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmW fHookNew cBegin mov ax,0 ; WOW does not support cEnd WINNLSSetKeyboardHook ; WINNLSThunk WINNLSSETIMEHANDLE cProc WINNLSSetIMEHandle,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmD lpszName parmW hWnd cBegin mov ax,0 ; WOW does not support cEnd WINNLSSetIMEHandle ; WINNLSThunk WINNLSSETIMESTATUS cProc WINNLSSetIMEStatus,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmW hWnd parmW fStatus cBegin mov ax,0 ; WOW does not support cEnd WINNLSSetIMEStatus ; WINNLSThunk WINNLSSETIMEHOTKEY cProc WINNLSSetIMEHotkey,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmW hWnd parmW key ifdef KOREA parmW unknown endif cBegin mov ax,0 ; WOW does not support cEnd WINNLSSetIMEHotkey WINNLSThunk WINNLSGETIMEHOTKEY WINNLSThunk WINNLSENABLEIME ; WINNLSThunk WINNLSGETKEYSTATE cProc WINNLSGetKeyState,<PUBLIC,FAR,PASCAL,NODATA,WIN> cBegin mov ax,0 ; WOW does not support cEnd WINNLSGetKeyState WINNLSThunk WINNLSGETENABLESTATUS ; WINNLSThunk WINNLSSETKEYSTATE cProc WINNLSSetKeyState,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmW uVKey cBegin mov ax,0 ; WOW does not support cEnd WINNLSSetKeyState ; WINNLSThunk IMPADDIME cProc IMPAddIME,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmD lpCIMEPro cBegin mov ax,0 ; WOW does not support cEnd IMPAddIME ; WINNLSThunk IMPDELETEIME cProc IMPDeleteIME,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmD lpCIMEPro cBegin mov ax,0 ; WOW does not support cEnd IMPDeleteIME WINNLSThunk IMPQUERYIME WINNLSThunk IMPGETIME WINNLSThunk IMPSETIME ; WINNLSThunk IMPMODIFYIME cProc IMPModifyIME,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmD lpszFile parmD lpCIMEPro cBegin mov ax,0 ; WOW does not support cEnd IMPModifyIME ; WINNLSThunk IMPGETDEFAULTIME cProc IMPGetDefaultIME,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmD lpNIMEPro cBegin mov ax,0 ; WOW does not support cEnd IMPGetDefaultIME ; WINNLSThunk IMPSETDEFAULTIME cProc IMPSetDefaultIME,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmD lpNIMEPro cBegin mov ax,0 ; WOW does not support cEnd IMPSetDefaultIME ; WINNLSThunk WINNLSSENDSTRING cProc WINNLSSendString,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmW hWnd parmW wFunc parmD lpData cBegin mov ax,0 ; WOW does not support cEnd WINNLSSendString ; WINNLSThunk WINNLSPOSTAPPMESSAGE cProc WINNLSPostAppMessage,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmW hWnd parmW uMsg parmW wParam parmD lParam cBegin mov ax,0 ; WOW does not support cEnd WINNLSPostAppMessage ; WINNLSThunk WINNLSSENDAPPMESSAGE cProc WINNLSSendAppMessage,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmW hWnd parmW uMsg parmW wParam parmD lParam cBegin mov ax,0 ; WOW does not support cEnd WINNLSSendAppMessage ifdef TAIWAN_PRC ;dchiang 032594 add NULL THUNK for CWIN30 & 31 Internal-ISV ; WINNLSThunk WINNLSSetSysIME cProc WINNLSSetSysIME,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmW hWnd cBegin mov ax,0 ; WOW does not support cEnd WINNLSSetSysIME ; WINNLSThunk WINNLSGetSysIME cProc WINNLSGetSysIME,<PUBLIC,FAR,PASCAL,NODATA,WIN> cBegin mov ax,0 ; WOW does not support cEnd WINNLSGetSysIME ; WINNLSThunk WINNLSIMEControl cProc WINNLSIMEControl,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmW hWnd parmW hIMEWnd parmD lpIME cBegin mov ax,0 ; WOW does not support cEnd WINNLSIMEControl ; WINNLSThunk WINNLSSendControl cProc WINNLSSendControl,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmW wChar parmW wCount cBegin mov ax,0 ; WOW does not support cEnd WINNLSSendControl ; WINNLSThunk WINNLSQueryIMEInfo cProc WINNLSQueryIMEInfo,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmW hWnd parmW hIMEWnd parmD lpCIMEPro cBegin mov ax,0 ; WOW does not support cEnd WINNLSQueryIMEInfo ; WINNLSThunk IMPEnableIME cProc IMPEnableIME,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmW hWnd parmD lpCIMEPro parmW fFlag cBegin mov ax,0 ; WOW does not support cEnd IMPEnableIME ; WINNLSThunk IMPSetFirstIME cProc IMPSetFirstIME,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmW hWnd parmD lpNIMEPro cBegin mov ax,0 ; WOW does not support cEnd IMPSetFirstIME ; WINNLSThunk IMPGetFirstIME cProc IMPGetFirstIME,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmW hWnd parmD lpCIMEPro cBegin mov ax,0 ; WOW does not support cEnd IMPGetFirstIME ; WINNLSThunk IMPSetUsrFont cProc IMPSetUsrFont,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmW hWnd parmD lpCIMEPro cBegin mov ax,0 ; WOW does not support cEnd IMPSetUsrFont ; WINNLSThunk InquireIME cProc InquireIME,<PUBLIC,FAR,PASCAL,NODATA,WIN> cBegin mov ax,0 ; WOW does not support cEnd InquireIME ;dchiang 032494 add THUNK for CWIN31 ; WINNLSThunk IMPRETRIEVEIME cProc IMPRetrieveIME,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmD lpCIMEPro parmW wFlags cBegin mov ax,0 ; WOW does not support cEnd IMPRetrieveIME ; WINNLSThunk WINNLSDEFIMEPROC cProc WINNLSDefIMEProc,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmW hWnd parmW hDC parmW wProc parmW wFunc parmD lParam1 parmD lParam2 cBegin mov ax,0 ; WOW does not support cEnd WINNLSDefIMEProc ; WINNLSThunk CONTROLIMEMESSAGE cProc ControlIMEMessage,<PUBLIC,FAR,PASCAL,NODATA,WIN> parmW hWnd parmD lpCIMEPro parmW wControl parmW wFunc parmD lpParam cBegin mov ax,0 ; WOW does not support cEnd ControlIMEMessage endif sEnd CODE end WINNLS16
22.16573
71
0.713978
4aadffe602b085d74451af073d1c416ffab985cd
3,836
nasm
Assembly
winxp_sp3/trun/enable_rdp/win-api_enable-rdp/firewall_enable-rdp_winapi.nasm
danf42/vulnserver
1b01aaa0f0b5706b5bc24c5f64d99dddcdcfe913
[ "MIT" ]
null
null
null
winxp_sp3/trun/enable_rdp/win-api_enable-rdp/firewall_enable-rdp_winapi.nasm
danf42/vulnserver
1b01aaa0f0b5706b5bc24c5f64d99dddcdcfe913
[ "MIT" ]
null
null
null
winxp_sp3/trun/enable_rdp/win-api_enable-rdp/firewall_enable-rdp_winapi.nasm
danf42/vulnserver
1b01aaa0f0b5706b5bc24c5f64d99dddcdcfe913
[ "MIT" ]
null
null
null
; Purpose: ; Enable RDP via Windows API ; Open port 3386 ; set fDenyTSConnections to False [BITS 32] global _start _start: ;for the handle xor edx, edx mov edi, esp mov dword [edi], edx sub esp, 0x10 ;avoid handle being overwritten ; Prepare the key ; SYSTEM\CurrentControlSet\Control\Terminal Server push edx push 0x72657672 push 0x6553206c push 0x616e696d push 0x7265545c push 0x6c6f7274 push 0x6e6f435c push 0x7465536c push 0x6f72746e push 0x6f43746e push 0x65727275 push 0x435c4d45 push 0x54535953 mov edx, esp ; https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regcreatekeyexa ; https://www.pinvoke.net/default.aspx/advapi32/RegCreateKeyA.html xor eax, eax push eax ; pDisposion = NULL push edi ; pHandle push eax ; pSecurity = NULL push 0x0f003f ; Access = KEY_ALL_ACCESS push eax ; Options = REG_OPTION_NON_VOLATILE push eax ; Class = NULL push eax ; Reserved = NULL push edx ; Subkey push 0x80000002 ; hkey = HKEY_LOCAL_MACHINE mov eax, 0x77dde9e4 ; RegCreateKeyExA call eax ; RegSetValue ValueName = fDenyTSConnections push 0x0000736e push 0x6f697463 push 0x656e6e6f push 0x43535479 push 0x6e654466 mov edx, esp ; RegSetValue buffer = 0 xor ecx, ecx push ecx mov ecx, esp ; https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regsetvalueexa ; https://www.pinvoke.net/default.aspx/advapi32.reggetvalue xor eax, eax push 0x4 ; cbData - size of DWORD push ecx ; lpData - pointer to data (0) push 0x4 ; dwType - REG_DWORD push eax ; Reserved - must by Null push edx ; lpValueName push dword [edi] ; hKey mov eax, 0x77ddead7 ; RegSetValueExA call eax ; Close handle to Key push dword [edi] ;hKey mov eax, 0x77dd6c17 ;RegCloseKey call eax ;Prepare the key ; SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\Firewallpolicy\StandardProfile\GloballyOpenPorts\List push 0x00747369 push 0x4c5c7374 push 0x726f506e push 0x65704f79 push 0x6c6c6162 push 0x6f6c475c push 0x656c6966 push 0x6f725064 push 0x7261646e push 0x6174535c push 0x7963696c push 0x6f706c6c push 0x61776572 push 0x69465c73 push 0x72657465 push 0x6d617261 push 0x505c7373 push 0x65636341 push 0x64657261 push 0x68535c73 push 0x65636976 push 0x7265535c push 0x7465536c push 0x6f72746e push 0x6f43746e push 0x65727275 push 0x435c4d45 push 0x54535953 mov edx, esp ; https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regcreatekeyexa ; https://www.pinvoke.net/default.aspx/advapi32/RegCreateKeyA.html xor eax, eax push eax ;pDisposion = NULL push edi ;pHandle push eax ;pSecurity = NULL push 0x0f003f ;Access = KEY_ALL_ACCESS push eax ;Options = REG_OPTION_NON_VOLATILE push eax ;Class = NULL push eax ;Reserved = NULL push edx ;Subkey push 0x80000002 ;hkey = HKEY_LOCAL_MACHINE mov eax, 0x77dde9e4 ;RegCreateKeyExA call eax ; RegSetValue ValueName = 3389:TCP xor edx, edx push edx push 0x5043543a push 0x39383333 mov edx, esp ; RegSetValue buffer = 3389:TCP:*:Enabled:RDP xor ecx, ecx push ecx push 0x00205044 push 0x523a6465 push 0x6c62616e push 0x453a2a3a push 0x5043543a push 0x39383333 mov ecx, esp ; https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-regsetvalueexa ; https://www.pinvoke.net/default.aspx/advapi32.reggetvalue xor eax, eax inc eax push 0x18 ;BufSize = 0x16 push ecx ;Buffer push eax ;ValueType = REG-SZ dec eax push eax ;Reserved = 0 push edx ;ValueName push dword [edi] ;hKey mov eax, 0x77ddead7 ;RegSetValueExA call eax ; Close handle to Key push dword [edi] ;hKey mov eax, 0x77dd6c17 ;RegCloseKey call eax
23.390244
113
0.722628
d96efa85fb955dab8980d72020e64d05f8def026
746
asm
Assembly
oeis/135/A135492.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/135/A135492.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/135/A135492.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A135492: Number of ways to toss a coin n times and not get a run of five. ; Submitted by Jamie Morken(s3) ; 2,4,8,16,30,58,112,216,416,802,1546,2980,5744,11072,21342,41138,79296,152848,294624,567906,1094674,2110052,4067256,7839888,15111870,29129066,56148080,108228904,208617920,402123970,775118874,1494089668,2879950432,5551282944,10700441918,20625764962,39757440256,76634930080,147718577216,284736712514,548847660066,1057937879876,2039240829672,3930763082128,7576789451742,14604731243418,28151524606960,54263808384248,104596853686368,201616917920994,388629104598570,749106684590180,1443949560796112 add $0,2 mov $2,1 lpb $0 sub $0,1 add $5,$1 mov $1,$3 sub $3,$4 mov $4,$2 mov $2,$3 add $5,$4 mov $3,$5 lpe mov $0,$3 mul $0,2
39.263158
493
0.784182
99c6fa95547f6aca0996eb88a2dc2399a64a53f0
2,952
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_10_1681.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_10_1681.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_10_1681.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r14 push %r8 push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0xf5c3, %r14 nop nop sub $1576, %r8 movw $0x6162, (%r14) nop nop nop nop cmp $28008, %r12 lea addresses_D_ht+0x82a4, %rbx nop nop and $41445, %rdx movl $0x61626364, (%rbx) nop nop nop nop cmp $52406, %rcx lea addresses_WC_ht+0x19356, %rsi lea addresses_UC_ht+0x89a8, %rdi nop nop dec %r8 mov $117, %rcx rep movsl nop add $60282, %rcx lea addresses_WC_ht+0x1b3a4, %rsi lea addresses_D_ht+0x10fd6, %rdi clflush (%rdi) and $59127, %r12 mov $47, %rcx rep movsb nop nop nop and %r12, %r12 pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %r8 pop %r14 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %r9 push %rbx push %rdi push %rsi // Store lea addresses_US+0x1f9e4, %r10 nop dec %r9 mov $0x5152535455565758, %r11 movq %r11, %xmm1 vmovaps %ymm1, (%r10) nop nop nop nop and %r13, %r13 // Store lea addresses_normal+0xc014, %rdi nop nop nop add $13119, %rsi movl $0x51525354, (%rdi) and %rsi, %rsi // Load mov $0x5a4, %r11 nop nop and $13370, %rbx mov (%r11), %r13w dec %r10 // Load mov $0xc0439000000001c, %r13 clflush (%r13) nop cmp %r11, %r11 mov (%r13), %r9 nop nop nop nop nop cmp $58644, %rdi // Faulty Load lea addresses_D+0xc5a4, %rbx nop nop nop nop nop and %r11, %r11 movups (%rbx), %xmm0 vpextrq $0, %xmm0, %rdi lea oracles, %rsi and $0xff, %rdi shlq $12, %rdi mov (%rsi,%rdi,1), %rdi pop %rsi pop %rdi pop %rbx pop %r9 pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'size': 32, 'AVXalign': True, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_P', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 8, '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_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}} {'36': 10} 36 36 36 36 36 36 36 36 36 36 */
18.923077
148
0.64397
8b5d6ec690c0d9c81a6b07b533aae7dbcb6af20c
700
asm
Assembly
oeis/293/A293403.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/293/A293403.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/293/A293403.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A293403: Greatest integer k such that k/n^2 < (3 + sqrt(5))/2. ; Submitted by Jon Maiga ; 0,2,10,23,41,65,94,128,167,212,261,316,376,442,513,589,670,756,848,945,1047,1154,1267,1384,1507,1636,1769,1908,2052,2201,2356,2515,2680,2851,3026,3207,3392,3584,3780,3982,4188,4400,4618,4840,5068,5301,5539,5783,6031,6285,6545,6809,7079,7354,7634,7919,8210,8505,8807,9113,9424,9741,10063,10390,10723,11061,11404,11752,12105,12464,12828,13197,13571,13951,14336,14726,15121,15522,15928,16339,16755,17176,17603,18035,18472,18915,19362,19815,20274,20737,21206,21679,22159,22643,23132,23627,24127,24633 pow $0,2 mov $2,$0 trn $0,1 seq $0,73869 ; a(n) = Sum_{i=0..n} A002251(i)/(n+1). mul $2,2 add $2,$0 mov $0,$2
58.333333
498
0.738571
78590ca17d9d48822e13b0a5408cf5965bdd1e03
2,363
asm
Assembly
kernel/temp/debug.asm
paulscottrobson/flat
976644db7f52f04dae50dce43504ede9e97f695e
[ "MIT" ]
null
null
null
kernel/temp/debug.asm
paulscottrobson/flat
976644db7f52f04dae50dce43504ede9e97f695e
[ "MIT" ]
null
null
null
kernel/temp/debug.asm
paulscottrobson/flat
976644db7f52f04dae50dce43504ede9e97f695e
[ "MIT" ]
null
null
null
; *************************************************************************************** ; *************************************************************************************** ; ; Name : debug.src ; Author : Paul Robson (paul@robsons.org.uk) ; Date : 19th March 2019 ; Purpose: Show A/B Registers on the screen. ; ; *************************************************************************************** ; *************************************************************************************** ; ********* debug word ********* define_64_65_62_75_67: call COMPCompileSelf jp DEBUGShow DEBUGShow: push bc push de push hl push de ; save B then A push hl ld hl,(SIScreenSize) ; clear bottom line. ld de,-32 add hl,de push hl ld b,32 __DEBUGShowClear: ld de,$0620 call GFXWriteCharacter inc hl djnz __DEBUGShowClear pop hl ; HL now points to start of bottom line ld de,$0500+'A' call GFXWriteCharacter inc hl ld de,$0500+':' call GFXWriteCharacter inc hl pop de ; get pushed A call __DEBUGPrintDecimalInteger ; print DE at position HL, C Chars remaining. inc hl ; allow a space ld de,$0500+'B' call GFXWriteCharacter inc hl ld de,$0500+':' call GFXWriteCharacter inc hl pop de ; get pushed B call __DEBUGPrintDecimalInteger ; print DE at position HL, C Chars remaining. pop hl pop de pop bc ret __DEBUGPrintDecimalInteger: push de bit 7,d ; is it negative. jr z,__DEBUGPrintDecNotNegative ld a,d ; if so, negate the value. cpl ld d,a ld a,e cpl ld e,a inc de __DEBUGPrintDecNotNegative: call __DEBUGPrintDERecursively pop de bit 7,d ; was it -VE ret z ld de,$0600+'-' ; print a -ve sign call GFXWriteCharacter inc hl ret __DEBUGPrintDERecursively: push hl ; save screen position ld hl,10 ; divide by 10, DE is division, HL is remainder. call DIVDivideMod16 ex (sp),hl ; remainder on TOS, HL contains screen position ld a,d ; if DE is non zero call Recursively or e call nz,__DEBUGPrintDERecursively pop de ; DE = remainder ld a,e ; convert E to a character or '0' ld e,a ld d,6 ; yellow call GFXWriteCharacter ; write digit. inc hl ret
22.941748
89
0.531105
6d5599775cc353a4d285b55986f2be66911d19f6
388
asm
Assembly
oeis/123/A123111.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/123/A123111.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/123/A123111.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A123111: 1+n^2+n^3+n^5+n^7; 10101101 in base n. ; Submitted by Jon Maiga ; 5,173,2467,17489,81401,287965,840743,2130497,4842829,10101101,19649675,36082513,63122177,105954269,171622351,269488385,411763733,614115757,896355059,1283208401,1805182345,2499522653,3411274487,4594448449 add $0,1 mov $2,$0 pow $0,2 mov $1,$2 mul $1,$0 add $2,1 add $2,$1 mul $1,$0 add $2,$1 mul $0,$2 add $0,1
24.25
205
0.734536
d8a1032b03f2aa6e08f7b0f4826f0fbdaa82d084
6,709
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_21829_1604.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_21829_1604.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_21829_1604.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r14 push %r15 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x18555, %rsi lea addresses_D_ht+0x1a0f4, %rdi clflush (%rsi) nop add $51283, %r15 mov $88, %rcx rep movsw nop xor %r14, %r14 lea addresses_UC_ht+0x18e55, %r12 nop nop nop nop add $22035, %r15 mov $0x6162636465666768, %rcx movq %rcx, %xmm4 and $0xffffffffffffffc0, %r12 movaps %xmm4, (%r12) nop nop and $20502, %r12 lea addresses_normal_ht+0x674e, %r12 nop nop nop cmp $32241, %rbx and $0xffffffffffffffc0, %r12 movaps (%r12), %xmm2 vpextrq $0, %xmm2, %r14 nop add $8285, %r14 lea addresses_WC_ht+0x2b55, %rdi nop nop nop nop sub $4108, %r14 mov (%rdi), %r15 inc %r14 lea addresses_D_ht+0x18995, %r12 nop nop and %rdi, %rdi mov (%r12), %rbx nop nop cmp %rsi, %rsi lea addresses_WC_ht+0xcd5, %r12 cmp %rcx, %rcx mov (%r12), %rsi nop nop add %rbx, %rbx lea addresses_WT_ht+0x1d2d7, %rcx nop nop nop nop mfence mov $0x6162636465666768, %r12 movq %r12, %xmm6 vmovups %ymm6, (%rcx) nop nop nop nop nop sub %rsi, %rsi lea addresses_WT_ht+0x9c55, %rcx nop nop nop nop nop add $37524, %rbx mov (%rcx), %r14w nop nop nop nop nop inc %r12 lea addresses_normal_ht+0x1d4d9, %rcx nop nop nop nop nop and $25441, %rbx movb (%rcx), %r14b nop nop nop nop add $4449, %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %r15 pop %r14 pop %r12 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r15 push %r8 push %rcx push %rdx push %rsi // Store lea addresses_WT+0x15aa9, %rcx nop nop nop nop sub $60571, %r15 mov $0x5152535455565758, %r10 movq %r10, (%rcx) nop cmp $17050, %rcx // Store lea addresses_US+0x82bd, %r10 nop nop nop nop and %rsi, %rsi mov $0x5152535455565758, %rdx movq %rdx, (%r10) nop nop nop nop nop cmp $277, %rdx // Faulty Load mov $0xe5ab30000000d55, %rsi nop sub $47770, %r11 mov (%rsi), %r10d lea oracles, %rdx and $0xff, %r10 shlq $12, %r10 mov (%rdx,%r10,1), %r10 pop %rsi pop %rdx pop %rcx pop %r8 pop %r15 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 3, 'size': 8, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': True, 'congruent': 8, 'size': 16, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': True, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 9, 'size': 8, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 6, 'size': 8, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 5, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 1, 'size': 32, 'same': True, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 6, 'size': 2, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 2, 'size': 1, 'same': False, 'NT': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
34.942708
2,999
0.657624
5ed0da3d36295842611f128e8b04baab654105f0
1,139
asm
Assembly
programs/oeis/060/A060265.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/060/A060265.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/060/A060265.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A060265: Largest prime less than 2n. ; 3,5,7,7,11,13,13,17,19,19,23,23,23,29,31,31,31,37,37,41,43,43,47,47,47,53,53,53,59,61,61,61,67,67,71,73,73,73,79,79,83,83,83,89,89,89,89,97,97,101,103,103,107,109,109,113,113,113,113,113,113,113,127,127,131,131,131,137,139,139,139,139,139,149,151,151,151,157,157,157,163,163,167,167,167,173,173,173,179,181,181,181,181,181,191,193,193,197,199,199,199,199,199,199,211,211,211,211,211,211,223,223,227,229,229,233,233,233,239,241,241,241,241,241,251,251,251,257,257,257,263,263,263,269,271,271,271,277,277,281,283,283,283,283,283,293,293,293,293,293,293,293,307,307,311,313,313,317,317,317,317,317,317,317,331,331,331,337,337,337,337,337,347,349,349,353,353,353,359,359,359,359,367,367,367,373,373,373,379,379,383,383,383,389,389,389,389,397,397,401,401,401,401,409,409,409,409,409,419,421,421,421,421,421,431,433,433,433,439,439,443,443,443,449,449,449,449,457,457,461,463,463,467,467,467,467,467,467,479,479,479,479,487,487,491,491,491,491,499,499 lpb $0,1 mov $1,$0 cal $1,121206 ; a(n) = (2n)! mod n(2n+1). add $1,$0 mov $0,$1 sub $0,1 lpe mul $0,2 mov $1,$0 div $1,2 mul $1,2 add $1,3
71.1875
948
0.702371
e906a3f356b4f3ca289c7e2e898f571674775a46
263
asm
Assembly
programs/oeis/208/A208648.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/208/A208648.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/208/A208648.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A208648: Denominators of Pokrovskiy's lower bound on the ratio of e(G^n) the number of edges in the n-th power of a graph G, to E(G) the number of edges of G. ; 2,1,1,4,1,1,6,1,1,8,1,1,10,1,1,12 mul $0,2 mov $1,$0 add $0,1 mul $1,2 dif $1,3 trn $0,$1 add $0,1
23.909091
160
0.65019
0a9fe8f067600e2ec0fbb2a8d97297a113d5ef4f
1,980
asm
Assembly
tests/perf/test.asm
NKStudiosCO/winem
f43ed236f7cd9e8db49c8448d1b0aa401a8cfb52
[ "BSD-2-Clause-FreeBSD" ]
1
2015-10-10T11:25:47.000Z
2015-10-10T11:25:47.000Z
tests/perf/test.asm
NKStudiosCO/winem
f43ed236f7cd9e8db49c8448d1b0aa401a8cfb52
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/perf/test.asm
NKStudiosCO/winem
f43ed236f7cd9e8db49c8448d1b0aa401a8cfb52
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
;[BITS 32] start: mov ebx, 100000h %if 1 add al, [4*ebx+100h] add eax, ecx add [4*ebx+1000h], cl add al, 10h add eax, 1000h add cl, 10h add ecx, 1000h or al, [4*ebx+100h] or eax, ecx or [4*ebx+1000h], cl or al, 10h or eax, 1000h or cl, 10h or ecx, 1000h adc al, [4*ebx+100h] adc eax, ecx adc [4*ebx+1000h], cl adc al, 10h adc eax, 1000h adc cl, 10h adc ecx, 1000h sbb al, [4*ebx+100h] sbb eax, ecx sbb [4*ebx+1000h], cl sbb al, 10h sbb eax, 1000h sbb cl, 10h sbb ecx, 1000h and al, [4*ebx+100h] and eax, ecx and [4*ebx+1000h], cl and al, 10h and eax, 1000h and cl, 10h and ecx, 1000h sub al, [4*ebx+100h] sub eax, ecx sub [4*ebx+1000h], cl sub al, 10h sub eax, 1000h sub cl, 10h sub ecx, 1000h xor al, [4*ebx+100h] xor eax, ecx xor [4*ebx+1000h], cl xor al, 10h xor eax, 1000h xor cl, 10h xor ecx, 1000h cmp al, [4*ebx+100h] cmp eax, ecx cmp [4*ebx+1000h], cl cmp al, 10h cmp eax, 1000h cmp cl, 10h cmp ecx, 1000h test al, [4*ebx+100h] test eax, ecx test [4*ebx+1000h], cl test al, 10h test eax, 1000h %endif %if 0 add eax, 12345671h jo $+2 jno $+2 jp $+2 jnp $+2 jc $+2 jnc $+2 js $+2 jns $+2 jz $+2 jnz $+2 jl $+2 jnl $+2 jbe $+2 jnbe $+2 jle $+2 jnle $+2 %endif %if 0 sal eax, 12 sal cx, 7 sal dl, 1 sal dh, 0 shl eax, 12 shl cx, 7 shl dl, 1 shl dh, 0 shr eax, 12 shr cx, 7 shr dl, 1 shr dh, 0 ror eax, 12 ror cx, 7 ror dl, 1 ror dh, 0 rol eax, 12 rol cx, 7 rol dl, 1 rol dh, 0 rcr eax, 12 rcr cx, 7 rcr dl, 1 rcr dh, 0 rcl eax, 12 rcl cx, 7 rcl dl, 1 rcl dh, 0 %endif %if 0 mov eax, -1 mov ax, -1 mov al, -1 mov al, [ebx] movsx eax, ax movsx ax, al movzx eax, al xchg eax, ecx xchg [ebx], al xchg [ebx], ax inc byte [ebx] inc dword [ebx] inc ax inc al dec byte [ebx] dec dword [ebx] dec ax dec al mul ecx mul cx mul cl imul ecx imul cx imul cl imul eax, 10h imul eax, 1000000h imul ax, 10h imul eax, ecx imul ax, cx push eax push ax pop di pop edi sti cli std cld pusha popa pushad popad pushf popf pushfd popfd %endif jmp start
9.705882
22
0.643939
0aaf8ed5fb3ec2e4960cc1b0a8c83fd2cc8a8c83
22,987
asm
Assembly
buttons/buttons.asm
avik-das/gbdev
663f2675aab85953ce02c88bf16582b4fd85f81e
[ "BSD-3-Clause" ]
6
2016-03-30T04:40:26.000Z
2020-04-11T13:50:15.000Z
buttons/buttons.asm
avik-das/gbdev
663f2675aab85953ce02c88bf16582b4fd85f81e
[ "BSD-3-Clause" ]
null
null
null
buttons/buttons.asm
avik-das/gbdev
663f2675aab85953ce02c88bf16582b4fd85f81e
[ "BSD-3-Clause" ]
null
null
null
; buttons.asm - Avik Das ; ; A simple test program that shows which button (or multiple buttons) ; is currently being pressed. This functionality allows testing ; controllers on emulators. ; = DATA/VARIABLES ================================================== ; Here we set up some locations in memory to store data that will be ; used in the program. Typically, we will store data in the internal ; RAM, which gives us 8KB to work with. SECTION "RAM",WRAM0[$c000] ; The buttons that are joypad pressed on the joypad. The fields are ; as follows: ; ; bit 7: down ; bit 6: up ; bit 5: left ; bit 4: right ; bit 3: start ; bit 2: select ; bit 1: B ; bit 0: A ; ; When a bit is set, the corresponding button is pressed. This ; structure is updated by read_joypad. PAD : DB VBFLAG: DB ; whether or not we are in V-Blank ; Instead of directly manipulating values in the OAM during V-Blank, ; we store a copy of the OAM. Then, we can alter this copy at any ; time, not just during V-Blank, and when the OAM is indeed ; available, we initiate a DMA transfer from the copy to the OAM. OAMBUF EQU $df00 ; allocate the last page in RAM for the copy ARROWS EQU OAMBUF ; the arrows start at the first sprite ; = INTERRUPT HANDLERS ============================================== ; These are simple interrupt handlers that simply call the actual ; procedures responsible for taking any action. The procedures will ; call "reti". SECTION "vblank",ROM0[$40] nop jp vblank SECTION "start",ROM0[$100] nop jp start ; = CATRIDGE HEADER ================================================= ; Nintendo logo. must be exactly as given DB $CE,$ED,$66,$66,$CC,$0D,$00,$0B,$03,$73,$00,$83,$00,$0C,$00,$0D DB $00,$08,$11,$1F,$88,$89,$00,$0E,$DC,$CC,$6E,$E6,$DD,$DD,$D9,$99 DB $BB,$BB,$67,$63,$6E,$0E,$EC,$CC,$DD,$DC,$99,$9F,$BB,$B9,$33,$3E DB "BUTTONS",0,0,0,0,0,0,0,0 ; title, upper case ASCII, 15 bytes DB 0 ; not a GBC catridge DB 0,0 ; new licensee code, high and low nibbles. not important DB 0 ; not SGB DB 0 ; catridge type, ROM only DB 0 ; ROM size, 256Kbit = 32KByte = 2 banks DB 0 ; RAM size, no RAM DB 1 ; destination code, non-Japanese DB $33 ; old licensee code, $33 => check new licensee code DB 0 ; mask ROM version number, usually 0 DB 0 ; complement check. computed by rgbfix. important. DW 0 ; checksum. computed by rgbfix. not important. ; = INITIALIZATION ================================================== start: nop di ; disable interrupts ld sp, $ffff ; put the stack at the top of the RAM init: call lcd_off call init_ram call copy_dma_routine call load_bg call load_obj call lcd_on ld a,%00000001 ; enable V-Blank interrupt ld [$ffff],a ei ; = MAIN LOOP ======================================================= loop: halt nop ld a,[VBFLAG] or 0 jr z,loop ld a,0 ld [VBFLAG],a call read_joypad call react_to_input jr loop ; = INITIALIZATION FUNCTIONS ======================================== init_ram: ; initialize the RAM variables ld a,0 ld [ PAD],a ld [VBFLAG],a ret copy_dma_routine: ; copy the sprite DMA procedure into HRAM ld hl,sprite_dma ld de,hram_sprite_dma ld bc,sprite_dma_end-sprite_dma call memcpy ret load_bg: ; reset the screen position ld a,0 ld [$ff42],a ; scrolly will always be 0 ld [$ff43],a ; scrollx will always be 0 ; load the background palette ld a,[bgpal] ld [$ff47],a ; load the background tiles into the Tile Data Table ld hl,bgtiles ; source address ld de,$8800 ; destination address ld bc,352 ; number of bytes to copy call memcpy ; load background into Background Tile Map ld hl,bg ld de,$9800 ld bc,1024 call memcpy ret SetUpArrow: MACRO ; parameters: ; \1 = sprite number ; \2 = x-coordinate ; \3 = y-coordinate ; \4 = tile number ; \5 = OAM attributes SPRITE_OAM_LOCATION\@ EQU ARROWS+\1*4 ld a,\3 ; y-coordinate ld [SPRITE_OAM_LOCATION\@],a ld a,\2 ; x-coordinate ld [SPRITE_OAM_LOCATION\@+1],a ld a,\4 ; pattern number ld [SPRITE_OAM_LOCATION\@+2],a ld a,\5 ld [SPRITE_OAM_LOCATION\@+3],a ENDM load_obj: ; load the object palette 0 ld a,[sppal] ; load the object palette 0 data ld [$ff48],a ; and store it into the object palette 0 register ; load the object palette 1 ld a,[sppal+1] ; load the object palette 1 data ld [$ff49],a ; and store it into the object palette 1 register ; zero out the OAM buffer ld de,OAMBUF ld bc,256 call zeromem ; load the sprite tiles into the Sprite Pattern Table ld hl,arrows ; source address ld de,$8000 ; destination address ld bc,32 ; number of bytes to copy call memcpy ; Display the sprites on the screen by populating the Object ; Attribute Memory (OAM). Note that the actual Y-coordinate on the ; screen is the stored coordinate minus 16, and the actual X- ; coordinate is the stored coordinate minus 8. ; Initialize all the arrows SetUpArrow 0, 40, 56, 0, %01000000 ; Up D-Pad Button SetUpArrow 1, 24, 72, 1, %00000000 ; Left D-Pad Button SetUpArrow 2, 56, 72, 1, %00100000 ; Right D-Pad Button SetUpArrow 3, 40, 88, 0, %00000000 ; Down D-Pad Button SetUpArrow 4, 108, 88, 0, %00000000 ; B Button SetUpArrow 5, 132, 80, 0, %00000000 ; A Button SetUpArrow 6, 68, 126, 0, %00000000 ; Select Button SetUpArrow 7, 84, 126, 0, %00000000 ; Select Button ret ; = INTERRUPT HANDLERS ============================================== vblank: push af push bc push de push hl ; Note that the DMA procedure must be initiated from High RAM. The ; mechanism for that is detailed alongside the definition of this ; initiation procedure. call hram_sprite_dma ld a,1 ld [VBFLAG],a pop hl pop de pop bc pop af reti ; = MAIN LOOP FUNCTIONS ============================================= read_joypad: ; First, we will read the direction pad by sending a value to the ; joypad register (P1) that will enable the d-pad (by clearing bit 4) ; and disable the buttons (by setting bit 5). ld a,%00100000 ld [$ff00],a ; To minimize the effects of key bouncing, in which the contacts of ; the joypad cause oscillations between the high and low states, we ; read from P1 multiple times and only use the last value read. ld a,[$ff00] ld a,[$ff00] ld a,[$ff00] ld a,[$ff00] and %00001111 ; pick out only the input lines... swap a ; ...put the states into the high nibble... ld b,a ; ...and save it away temporarily ; Now we want to read the buttons, and that means we disable the d-pad ; (by setting bit 4) and enable the buttons (by clearing bit 5). ld a,%00010000 ld [$ff00],a ld a,[$ff00] ld a,[$ff00] ld a,[$ff00] ld a,[$ff00] and %00001111 or b ; B contains the d-pad input in the high nibble, so we ; can we incorporate the button input in the low nibble ; Now, A contains the state of the d-pad and the buttons, but when a ; bit is cleared, that means the button is pressed. So, we take the ; complement, and we have an intuitive mapping of 1->pressed and ; 0->not pressed. cpl ld [PAD],a ret ReactToSingleKey: MACRO ; parameters ; \1 = arrow sprite number ; \2 = bit of key being checked ; \3 = label of next key reaction code block SPRITE_ATTRIBUTE_LOCATION\@ EQU ARROWS+\1*4+3 ld a,[PAD] bit \2,a jp z,.hide\@ ld a,[SPRITE_ATTRIBUTE_LOCATION\@] or a,%00010000 ld [SPRITE_ATTRIBUTE_LOCATION\@],a jp \3 .hide\@: ld a,[SPRITE_ATTRIBUTE_LOCATION\@] and a,%11101111 ld [SPRITE_ATTRIBUTE_LOCATION\@],a ENDM react_to_input: .react_to_up : ReactToSingleKey 0, 6, .react_to_left .react_to_left : ReactToSingleKey 1, 5, .react_to_right .react_to_right : ReactToSingleKey 2, 4, .react_to_down .react_to_down : ReactToSingleKey 3, 7, .react_to_b .react_to_b : ReactToSingleKey 4, 1, .react_to_a .react_to_a : ReactToSingleKey 5, 0, .react_to_select .react_to_select: ReactToSingleKey 6, 2, .react_to_start .react_to_start : ReactToSingleKey 7, 3, .react_done .react_done : ret ; = UTILITY FUNCTIONS =============================================== memcpy: ; parameters: ; hl = source address ; de = destination address ; bc = number of bytes to copy ; assumes: ; bc > 0 ld a,[hl] ; load a byte from the source ld [de],a ; store it in the destination inc hl ; prepare to load another byte... inc de ; ...and prepare to write it ; Now we'll decrement the counter and check if it's zero. ; Unfortunately, when a 16-bit register is decremented, the zero flag ; is not updated, so we need to check if the counter is zero manually. ; A 16-bit value is zero when its constituent 8-bit portions are both ; zero, that is when (b | c) == 0, where "|" is a bitwise OR. dec bc ; decrement the counter ld a,b or c ret z ; return if all bytes written jr memcpy zeromem: ; parameters ; de = destination address ; bc = number of bytes to zero out ; assumes: ; bc > 0 .zeromem_loop: ld a,0 ; we will only be writing zeros ld [de],a ; store one byte in the destination inc de ; prepare to write another byte ; the same caveat applies as in memcpy dec bc ; decrement the counter ld a,b or c ret z ; return if all bytes written jr .zeromem_loop lcd_off: ld a,[$ff40] ; load the LCD Control register bit 7,a ; check bit 7, whether the LCD is on ret z ; if off, return immediately wait_vblank: ld a,[$ff44] ; load the vertical line the LCD is at cp 145 jr nz, wait_vblank ; Technically, at this point, we are not just at VBlank, but exactly ; at the start of VBlank. This is because the previous instruction ; made sure that [LY] is exactly 145, the first value when entering ; VBlank. ld a,[$ff40] ; load the LCD Control register res 7,a ; clear bit 7, turning off the LCD ld [$ff40],a ; write the new value back to the LCD Control register ret ; and done... lcd_on: ld a,%10000011 ; LCD on ; Ignored: Window Tile Map location ; window off ; BG & window Tile Data at $8800-$97ff ; BG Tile Map at $9800-$9bff ; sprite size 8x16 ; sprites on ; BG on ld [$ff40],a ; write it to the LCD Control register ret ; During the DMA transfer, the CPU can only access the High RAM ; (HRAM), so the transfer must be initiated from inside of HRAM. ; However, we can't directly place this procedure there at assembly ; time, so we'll put it here with the rest of the code, then copy it ; into HRAM at run time. sprite_dma: ld a,OAMBUF/$100 ld [$ff46],a ld a,$28 .wait: dec a jr nz,.wait ret sprite_dma_end: ; We'll set aside some space in HRAM, but we'll have to store the ; actual data here at run time. PUSHS SECTION "HRAM",HRAM ; This is the procedure that will actually be called to initiate the ; DMA transfer. hram_sprite_dma: DS sprite_dma_end-sprite_dma POPS ; = DATA ============================================================ bgpal: DB %11100100 ; all colors, in order of decreasing darkness ; white is transparent sppal: DB %00000000 ; all white - used for "hidden" sprite DB %11100100 ; all colors, in order of decreasing darkness bgtiles: ; Clear - 1 tile DB $00,$00,$00,$00,$00,$00,$00,$00 DB $00,$00,$00,$00,$00,$00,$00,$00 ; D-Pad - 5 tiles DB $7e,$7e,$c3,$ff,$bf,$ff,$c3,$ff ; up DB $bf,$ff,$c3,$ff,$bf,$ff,$ff,$ff DB $7f,$7f,$d5,$ff,$ab,$ff,$ab,$ff ; left DB $ab,$ff,$ab,$ff,$ff,$ff,$7f,$7f DB $ff,$ff,$ff,$ff,$fd,$ff,$fc,$ff ; center DB $fc,$ff,$f9,$ff,$c3,$ff,$e7,$ff DB $fe,$fe,$d4,$fe,$ab,$ff,$ab,$ff ; right DB $ab,$ff,$ab,$ff,$ff,$ff,$fe,$fe DB $ff,$ff,$c3,$ff,$bf,$ff,$c3,$ff ; bottom DB $bf,$ff,$c3,$ff,$bf,$ff,$7e,$7e ; B Button - 4 tiles DB $00,$03,$00,$0f,$07,$1f,$0f,$3f ; top-left DB $1e,$7f,$3c,$7e,$39,$fd,$39,$fd DB $00,$c0,$70,$f0,$f8,$f8,$fc,$fc ; top-right DB $7e,$fe,$7e,$7e,$3f,$bf,$7f,$7f DB $39,$fd,$78,$fd,$7e,$7e,$7f,$7f ; bottom-left DB $3f,$3f,$1f,$1f,$0f,$0f,$03,$03 DB $3f,$bf,$3f,$bf,$7e,$7e,$fe,$fe ; bottom-right DB $fc,$fc,$f8,$f8,$f0,$f0,$c0,$c0 ; A Button - 4 tiles DB $00,$03,$00,$0f,$07,$1f,$0f,$3f ; top-left DB $1e,$7f,$3e,$7e,$39,$fd,$38,$fd DB $00,$c0,$70,$f0,$f8,$f8,$fc,$fc ; top-right DB $7e,$fe,$7e,$7e,$3f,$bf,$3f,$bf DB $38,$fc,$79,$fd,$7d,$7d,$7f,$7f ; bottom-left DB $3f,$3f,$1f,$1f,$0f,$0f,$03,$03 DB $3f,$3f,$3f,$bf,$3e,$be,$fe,$fe ; bottom-right DB $fc,$fc,$f8,$f8,$f0,$f0,$c0,$c0 ; Start/Select Buttons - 4 tiles DB $00,$00,$00,$00,$00,$00,$00,$00 ; top-left DB $00,$00,$00,$00,$00,$01,$01,$03 DB $00,$00,$00,$00,$00,$00,$00,$30 ; top-right DB $3c,$78,$7c,$f8,$f8,$f0,$f0,$e0 DB $03,$07,$07,$0f,$0f,$1f,$1f,$1e ; bottom-left DB $1e,$0c,$0c,$00,$00,$00,$00,$00 DB $e0,$c0,$c0,$80,$80,$00,$00,$00 ; bottom-right DB $00,$00,$00,$00,$00,$00,$00,$00 ; Select Text - 2 tiles DB $00,$00,$18,$18,$21,$21,$19,$19 ; left DB $05,$05,$18,$18,$00,$00,$00,$00 DB $00,$00,$d0,$d0,$10,$10,$90,$90 ; right DB $10,$10,$cc,$cc,$00,$00,$00,$00 ; Start Text - 2 tiles DB $00,$00,$19,$19,$20,$20,$18,$18 ; left DB $04,$04,$18,$18,$00,$00,$00,$00 DB $00,$00,$c8,$c8,$94,$94,$98,$98 ; right DB $94,$94,$94,$94,$00,$00,$00,$00 arrows: ; arrows ; ; There are 2 unique arrows, each consisting of 1 tile. Four arrows ; can be used in the program by flipping these tiles horizontally or ; vertically. Note that the flipping of tiles means the images cannot ; have direction-sensitive highlights or shadows. DB $00,$00,$00,$00,$00,$00,$18,$18 ; pointing up DB $3c,$3c,$7e,$7e,$3c,$3c,$3c,$3c DB $00,$00,$20,$20,$f0,$f0,$f8,$f8 ; pointing right DB $f8,$f8,$f0,$f0,$20,$20,$00,$00 bg: ; define one map's worth: ; 256 x 256 pixels = ; 32 x 32 tiles = 1024 tiles ; at 16 tiles per line of code, that's 64 lines DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$81,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$8a DB $8b,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$82,$83,$84,$80,$80,$80,$80,$80,$80,$86,$87,$80,$8c DB $8d,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$85,$80,$80,$80,$80,$80,$80,$80,$88,$89,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$8e,$8f,$8e,$8f,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$90,$91,$90,$91,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$92,$93,$94,$95,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 DB $80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80,$80 ; vim: ft=rgbasm:tw=72:ts=2:sw=2
36.429477
72
0.569322
4e008b1272f28a0f1e5a88e7ae9f6e15bb0f4a76
822
asm
Assembly
verify/output/prime_numbers.alfy.asm
alexandruradovici/alf-alfy-asm-public
43a73cc13c38f39125620fb9bd566c261cff1c73
[ "BSD-2-Clause" ]
null
null
null
verify/output/prime_numbers.alfy.asm
alexandruradovici/alf-alfy-asm-public
43a73cc13c38f39125620fb9bd566c261cff1c73
[ "BSD-2-Clause" ]
2
2017-05-18T20:29:57.000Z
2017-05-19T19:03:07.000Z
verify/output/prime_numbers.alfy.asm
alexandruradovici/alf-alfy-asm-language-public
43a73cc13c38f39125620fb9bd566c261cff1c73
[ "BSD-2-Clause" ]
null
null
null
start: set r2 0 set r3 8 store r3 r2 while_0: set r2 8 load r2 r2 set r3 0x0000000000000001 xor r2 r2 r3 set r3 1 test r3 r2 jne endwhile_0 readnumber r3 set r4 0 store r4 r3 set r3 1 set r4 4 store r4 r3 set r3 2 set r4 0 load r4 r4 set r5 2 div r6 r4 r5 set r4 1 set r5 12 mov r6 r3 store r5 r6 for_0: test r6 r6 jg endfor_0 set r7 0 load r7 r7 set r8 12 load r8 r8 mod r9 r7 r8 set r7 0 test r9 r7 set r8 1 je next_0 set r8 0 next_0: set r7 1 test r7 r8 jne endif_0 set r7 0 set r9 4 store r9 r7 endif_0: add r6 r6 r4 store r5 r6 jmp for_0 endfor_0: set r7 4 load r7 r7 set r9 0x0000000000000001 xor r7 r7 r9 set r9 1 test r9 r7 jne endif_1 set r9 0 load r9 r9 writenumber r9 endif_1: set r9 4 load r9 r9 set r10 8 store r10 r9 jmp while_0 endwhile_0: stop
11.577465
26
0.686131
54e611ecc42f6b9a0d407342238c8fc0d11c6b80
523
asm
Assembly
ubb/asc/written/b.asm
AlexanderChristian/private_courses
c80f3526af539e35f93b460f3909f669aaef573c
[ "MIT" ]
null
null
null
ubb/asc/written/b.asm
AlexanderChristian/private_courses
c80f3526af539e35f93b460f3909f669aaef573c
[ "MIT" ]
6
2020-03-04T20:52:39.000Z
2022-03-31T00:33:07.000Z
ubb/asc/written/b.asm
AlexanderChristian/private_courses
c80f3526af539e35f93b460f3909f669aaef573c
[ "MIT" ]
null
null
null
assume cs:code, ds:data data segment public sir db 1, 12, 123, 89, 56 ls equ $ - sir data ends code segment public public print, sir, ls print proc ; input: ax - the number to be printed push ax push bx push cx push dx mov bx, 10 mov cx, 0 loopDigits: mov dx, 0 div bx add dl, '0' push dx inc cx cmp ax, 0 jne loopDigits printDigits: pop dx mov ah, 02h int 21h loop printDigits mov dl, ' '; mov ah, 02h int 21h pop dx pop cx pop bx pop ax ret print endp code ends end
10.673469
39
0.642447
c0d70c7a6bf9be859579561196079c385b27820e
8,860
asm
Assembly
source/jni/u2/fcp/unpack.asm
Falken42/SecondReality
b998d193a066523cb4ca2b86c8041bea1bddfcb4
[ "Unlicense" ]
9
2015-05-13T21:02:00.000Z
2018-04-15T16:32:27.000Z
source/jni/u2/fcp/unpack.asm
falken42/SecondReality
b998d193a066523cb4ca2b86c8041bea1bddfcb4
[ "Unlicense" ]
null
null
null
source/jni/u2/fcp/unpack.asm
falken42/SecondReality
b998d193a066523cb4ca2b86c8041bea1bddfcb4
[ "Unlicense" ]
null
null
null
NOJUMPS calccrc MACRO start,end local l1 mov cx,OFFSET end-OFFSET start mov si,OFFSET start l1: add dl,cs:[si] adc dh,0 rol dx,1 inc si loop l1 ENDM uncryptxor MACRO beg,key local l1 mov bx,OFFSET beg mov ax,key mov cx,(OFFSET _unpack_endcrypt-OFFSET beg)/2 l1: xor ds:[bx],ax add bx,2 dec cx jnz l1 ENDM uncryptadd MACRO beg,key ;actually sub, uncrypts add-crypting local l1 mov bx,OFFSET beg mov ax,key mov cx,(OFFSET _unpack_endcrypt-OFFSET beg)/2 l1: sub ds:[bx],ax add bx,2 dec cx jnz l1 ENDM unp_text SEGMENT para public 'CODE' ASSUME cs:unp_text PUBLIC _unpack_start,_unpack_end PUBLIC _unpack_data,_unpack_dataend,_unpack_data2,_unpack_code PUBLIC _unpack_stack0,_unpack_stack1 PUBLIC _unpack_crc0,_unpack_crc1 PUBLIC _unpack_crypt1 ;add 5f27h - INC PUBLIC _unpack_crypt2 ;xor 4493h - INC PUBLIC _unpack_crypt3 ;add 0073h - INC PUBLIC _unpack_crypt4 ;xor 4536h - none PUBLIC _unpack_crypt10 ;xor 0666h - none PUBLIC _unpack_crypt11 ;add 0656h - DEC PUBLIC _unpack_crypt12 ;xor 0466h - DEC PUBLIC _unpack_crypt13 ;add 0663h - none PUBLIC _unpack_crypt14 ;add DX - none PUBLIC _unpack_crypt15 ;xor 5cach - none PUBLIC _unpack_crypt16 ;add 3fach - INC PUBLIC _unpack_endcrypt _unpack_start LABEL BYTE db 'FCP/IV' ;Future Protector IV _unpack_code LABEL BYTE startup PROC NEAR mov sp,OFFSET _unpack_stack1 io21data LABEL BYTE ret pntds2 LABEL WORd jmp cs:[farjump+2] startup ENDP int_iret PROC FAR iret int_iret ENDP ALIGN 2 _unpack_stack0 LABEL BYTE dw 50 dup(5555h) _unpack_stack1 LABEL BYTE dw OFFSET step1 dw 0 ;popped by step 1 => DS dw OFFSET step2 dw OFFSET step3 dw OFFSEt step4 stck1: dw OFFSET stepx1 ;the cracker blew it :-) dw 0fff0h,0000h disk0 dw 0 disk1 dw 0 vram dw 01234h hboottxt db '.;*',13,0 pntds dw 0 _unpack_crc0 LABEL BYTE .386P step1 PROC NEAR in al,21h mov cs:io21data,al mov al,255 out 21h,al cli mov cs:pntds,ds pop ds cld ;disk detect mov ah,08h mov dl,128 mov dh,0 int 13h cmp dh,0 je jjj1 mov cs:disk0,cx mov cs:disk1,dx jjj1: ;video detect mov ah,0fh int 10h cmp al,7 je ismda mov cs:vram,0800h+1234h ismda: add cs:vram,0b000h-01234h ;processor detect, at return: BP=0=real BP=1=protected mode push sp ; 86/186 will push SP-2; pop ax ; 286/386 will push SP. cmp ax, sp jz not86 ; If equal, SP was pushed ;8086/80186 noprot: mov bp,0 ret not86: smsw cx ; Protected? Machine status -> CX ror cx,1 ; Protection bit -> carry flag jnc noprot ; Real mode if no carry mov bp,1 ret step1 ENDP .8086 step3 PROC NEAR ;DS=CS now (in step 2) ;uncode crap mov byte ptr cs:int1code,40h ;INC AX int 3 ;clc set at step2's end uncryptadd _unpack_crypt1,5f27h ret step3 ENDP ints PROC FAR ;SingleStep/DEBUG int_01: stc int_03: push bp mov bp,sp jnc int2 push bx mov bx,ss:[bp+2] ;ip cmp byte ptr cs:[bx],49h ;inc cx jne int1 int1code: inc bx int1: pop bx int3: pop bp iret int2: xor ss:[bp+6],256 mov bp,cs:stck1to mov word ptr cs:[stck1],bp jmp int3 ints000: ints ENDP _unpack_crc1 LABEL BYTE itable LABEL WORD itablelen equ 4 dw OFFSET int_iret,0f000h ;int 0 dw OFFSET int_01,0f000h ;int 1 dw OFFSET int_iret,0f000h ;int 2 dw OFFSET int_03,0f000h ;int 3 ;Stack contents on ints: ; [bp+6]: flags ; [bp+4]: cs ; [bp+2]: ip ; [bp+0]: bp _startzeroing LABEL BYTE step2 PROC NEAR ;WARNING! ROUTINE OVERWRITTEN BY INNER STACK mov cs:hboottxt[0],'b' ;set interrupts mov bx,'FG' mov si,OFFSET itable xor di,di mov cx,itablelen mov dx,'JM' mov cs:hboottxt[1],'C' st2a: segcs lodsw xchg ds:[di],ax mov cs:[si-2],ax mov ax,cs xchg ds:[di+2],ax mov cs:[si],ax add si,2 add di,4 loop st2a ;carry=0 for di won't rotate mov di,dx ;='JM' mov dx,OFFSET hboottxt mov ax,cs mov ds,ax mov si,bx ;='FG' ;if this enabled, ICE will reboot mov ax,0911h ret step2 ENDP stepx1 PROC NEAR mov ax,0f000h retf ;reboots stepx1 ENDP _unpack_crypt1 LABEL BYTE step4 PROC NEAR ;DS=CS mov ax,cs:pntds mov cs:pntds2,ax uncryptxor _unpack_crypt2,4493h _unpack_crypt2 LABEL BYTE uncryptadd _unpack_crypt3,0073h _unpack_crypt3 LABEL BYTE jmp stp4o stck1to dw OFFSET step5 hboottxt2 db 'Bc*',13,0 stp4o: sub ax,ax mov si,'FG' mov di,'JM' mov ax,0911h mov dx,OFFSET hboottxt2 clc int 3 uncryptxor _unpack_crypt4,4536h ret ;goes to step5 step4 ENDP _unpack_crypt4 LABEL BYTE innerstack LABEL BYTE dw OFFSET stepx1 step5 PROC NEAR ;enter inner stack mov sp,OFFSET innerstack uncryptxor _unpack_crypt10,0666h _unpack_crypt10 LABEL BYTE i1c0: mov dx,0656h sub ax,ax mov es,ax mov ax,es:[6] mov bx,cs cmp ax,bx je i1c1 mov word ptr cs:[i1c0+1],0CA3Fh mov dx,3FC1H i1c1: cmp word ptr es:[4],OFFSET int_01 je i1c2 mov word ptr cs:[i1c0+1],0CA3Fh mov dx,3CF2H i1c2: mov byte ptr cs:int1code,48h ;DEC AX sub ax,ax int 3 uncryptadd _unpack_crypt11,dx _unpack_crypt11 LABEL BYTE uncryptxor _unpack_crypt12,0466h _unpack_crypt12 LABEL BYTE mov byte ptr cs:int1code,40h ;INC AX sub ax,ax int 3 uncryptadd _unpack_crypt13,0663h _unpack_crypt13 LABEL BYTE ;calc checksum of exe start xor dx,dx mov byte ptr cs:int1code,43h ;INC BX calccrc _unpack_crc0,_unpack_crc1 uncryptadd _unpack_crypt14,0 ;dx _unpack_crypt14 LABEL BYTE uncryptxor _unpack_crypt15,5CACh _unpack_crypt15 LABEL BYTE mov byte ptr cs:int1code,40h ;INC AX sub ax,ax int 3 uncryptadd _unpack_crypt16,3FACh _unpack_crypt16 LABEL BYTE mov word ptr cs:innerstack,OFFSET execute sub ax,ax int 3 ret step5 ENDP ALIGN 2 execute PROC NEAR ;unpack data mov dx,cs:pntds2 add dx,10h xor si,si xor di,di cmp cs:mcrcon,0 je exec11 ;calc machine crc mov ax,0ff00h mov ds,ax mov bx,0 mov cx,1024 mcrc1: add si,ds:[bx] add di,ds:[bx+2] rol si,1 add bx,4 loop mcrc1 add si,cs:disk0 add di,cs:disk1 exec11: add si,cs:regcs add di,cs:regip add si,cs:regsp add di,cs:regss add si,cs:regkey add di,cs:regkey mov cx,cs:regcs0 exec1: mov ds,dx sub ds:[0],si sub ds:[2],di xor si,5354h xor di,1525h sub ds:[4],si sub ds:[6],di add si,1234h ror si,1 add di,4321h rol di,1 sub ds:[8],si sub ds:[10],di xor si,5354h xor di,1525h sub ds:[12],si sub ds:[14],di add si,1234h ror si,1 add di,4321h rol di,1 inc dx add si,ds:[0] add di,ds:[8] add si,ds:[2] add di,ds:[10] add si,ds:[4] add di,ds:[12] add si,ds:[6] add di,ds:[14] loop exec1 mov bp,OFFSET errormsg1 cmp si,cs:keychk0 jne error cmp di,cs:keychk1 jne error cld _endzeroing LABEL BYTE ;may overflow a byte, but who cares mov dx,cs:pntds2 mov ax,cs mov es,ax mov cx,(OFFSET _endzeroing-OFFSET _startzeroing+1)/2 mov di,OFFSET _startzeroing mov ax,'..' rep stosw call resetints mov al,cs:io21data out 21h,al mov ax,cs mov es,ax mov cx,OFFSET _startzeroing-OFFSET _unpack_code mov di,OFFSET _unpack_code mov al,'.' rep stosb ;load stack and cs:ip for the actual program and run it. mov ds,dx mov es,dx mov bx,cs mov cx,cs:regcs0 mov ax,cs:regss add ax,bx sub ax,cx mov ss,ax mov sp,cs:regsp add cs:regcs,bx sub cs:regcs,cx push cs:regcs push cs:regip mov cs:regcs,ax mov cs:regip,ax mov cs:regss,ax mov cs:regcs0,ax mov cs:keychk1,ax mov cs:regkey,ax sti jmp endprg2 _endzeroing2 LABEL BYTE error: ;destroy and exit with error at OFFSET BP cld mov dx,cs:pntds2 mov ax,cs mov es,ax mov cx,(OFFSET _endzeroing2-OFFSET _startzeroing+1)/2 mov di,OFFSET _startzeroing mov ax,'..' rep stosw call resetints mov al,cs:io21data out 21h,al mov ax,cs mov es,ax mov di,OFFSET _unpack_code mov cx,OFFSET _startzeroing-OFFSET _unpack_code mov al,'.' rep stosb mov cs:regcs,ax mov cs:regip,ax mov cs:regss,ax mov cs:regcs0,ax mov cs:keychk1,ax mov cs:regkey,ax mov sp,OFFSET _unpack_data sti jmp endprg1 execute ENDP resetints PROC NEAR ;reset interrupts xor ax,ax mov es,ax mov si,OFFSET itable xor di,di mov cx,itablelen*2 st20a: segcs lodsw stosw loop st20a ret resetints ENDP ALIGN 2 _unpack_data LABEL BYTE farjump LABEL DWORD regcs dw 0 regip dw 0 regss dw 0 regsp dw 0 regcs0 dw 0 errormsg1 db 'File corrupted!$' _unpack_data2 LABEL BYTE regkey dw 0 mcrcon dw 0 ;1=machine crc enabled keychk0 dw 0 keychk1 dw 0 _unpack_dataend LABEL BYTE ALIGN 2 endprg1: ;**************** mov dx,bp mov ax,cs mov ds,ax mov ah,9h int 21h mov ax,4c03h int 21h endprg2: ;**************** retf ALIGN 2 _unpack_endcrypt LABEL BYTE db 000h,0fch _unpack_end LABEL BYTE unp_text ENDS END
18.81104
64
0.693454
045ef65bd745f1520f92c17c6bab1e652aed9848
4,834
asm
Assembly
source/miscellany/list.asm
paulscottrobson/rpl-32
7bd0c6dc9edc7f5ca4e9e9dac24a75cb32a29acc
[ "MIT" ]
null
null
null
source/miscellany/list.asm
paulscottrobson/rpl-32
7bd0c6dc9edc7f5ca4e9e9dac24a75cb32a29acc
[ "MIT" ]
null
null
null
source/miscellany/list.asm
paulscottrobson/rpl-32
7bd0c6dc9edc7f5ca4e9e9dac24a75cb32a29acc
[ "MIT" ]
null
null
null
; ****************************************************************************** ; ****************************************************************************** ; ; Name : list.asm ; Purpose : List Program ; Author : Paul Robson (paul@robsons.org.uk) ; Created : 5th October 2019 ; ; ****************************************************************************** ; ****************************************************************************** ; ****************************************************************************** ; ; List command ; ; ****************************************************************************** Cmd_List: ;; [list] jsr ResetCodePointer ; back to the beginning stz zTemp2 ; clear the lowest-number stz zTemp2+1 cpx #0 ; stack empty ? beq _CLINone lda stack0,x ; use tos as start line sta zTemp2 lda stack1,x sta zTemp2+1 dex ; and pop the tos _CLINone: lda #30 ; list this many lines sta zTemp1 ; ; Listing loop ; _CLILoop lda (codePtr) ; check end of program beq _CLIEnd ldy #1 ; compare line# vs the minimum sec lda (codePtr),y sbc zTemp2 iny lda (codePtr),y sbc zTemp2+1 bcc _CLISkip phx jsr ListCurrent ; list the line. plx dec zTemp1 ; done all lines beq _CLIEnd _CLISkip: clc lda (codePtr) ; go to next adc codePtr sta codePtr bcc _CLILoop inc codePtr+1 bra _CLILoop _CLIEnd: jmp WarmStart ; ****************************************************************************** ; ; List current line number ; ; ****************************************************************************** ListCurrent: ldy #3 lda (codePtr),y cmp #2 bne _LCList lda #13 jsr ExternPrint jsr _LCList lda #13 jsr ExternPrint rts _LCList: lda #CTH_LINENO jsr ExternColour ; set colour ldy #1 ; print line# lda (codePtr),y pha iny lda (codePtr),y tay pla jsr ErrorPrint16 ; tay _LCPadOut: ; pad out to align neatly lda #' ' jsr ExternPrint iny cpy #5 bne _LCPadOut ldy #3 ; start here ; ; List loop ; _LCLoop: lda #' ' ; space jsr ExternPrint _LCLoopNoSpace: lda (codePtr),y ; get first bmi _LCIdentConst ; identifier or constant bne _LCStringToken lda #13 jmp ExternPrint ; _LCStringToken: cmp #$10 ; if < 10 it's a string. bcc _LCString jsr ListPrintToken lda (codePtr),y ; no space if ^ iny ; advance pointer cmp #KWD_HAT beq _LCLoopNoSpace bra _LCLoop ; go round again. ; ; Print a string or comment ; _LCString: lsr a ; CS if 1 (string) CC if 2 (comment) lda #CTH_STRING ; decide on colour. ldx #'"' bcs _LCSSkip lda #CTH_COMMENT ldx #"'" cpy #3 beq _LCSSkip lda #CTH_LCOMMENT _LCSSkip: jsr ExternColour ; set colour txa pha ; save end quote on stack. jsr ExternPrint iny ; skip type size iny _LCSPrint: ; string printing loop. lda (codePtr),y iny cmp #0 ; 0 is end beq _LCSExit jsr ExternPrint bra _LCSPrint _LCSExit: ; restore ending quote and print pla jsr ExternPrint bra _LCLoop ; ; Identifier or constant ; _LCIdentConst: cmp #$C0 ; check if constant bcc _LCConstant ; ; Identifier ; lda #CTH_IDENT ; set colour jsr ExternColour _LCCIdLoop: lda (codePtr),y ; read and #$1F ; convert clc adc #'A' cmp #'A'+31 ; handle '.' bne _LCCNotDot lda #'.' _LCCNotDot: jsr ExternPrint lda (codePtr),y ; at end ? iny cmp #$E0 bcs _LCLoop bra _LCCIdLoop ; ; Constant ; _LCConstant: lda #CTH_NUMBER ; number colour jsr ExternColour ldx #254 ; use the topmost stack element jsr ExtractIntegerToTOS ; so there is a very rare case lda stack3+0,x ; save stack top byte pha jsr IntegerToString ; this could corrupt stack if full :) jsr ErrorPrintIntegerBuffer pla ; sign back bpl _LCLoop2 lda #"-" jsr ExternPrint _LCLoop2: jmp _LCLoop ; ; Print token in A ; ListPrintToken: phy pha ; token colour lda #CTH_TOKEN jsr ExternColour plx lda #KeywordText & $FF sta zTemp0 lda #KeywordText >> 8 sta zTemp0+1 _LPTLoop: cpx #$10 ; first token is $10 beq _LPTFound dex lda (zTemp0) sec ; add 1, it's length+name adc zTemp0 sta zTemp0 bcc _LPTLoop inc zTemp0+1 bra _LPTLoop _LPTFound: ldy #1 ; start here. _LPTShow: lda (zTemp0),y ; get character cmp #32 ; < 32, length, so exit bcc _LPTExit iny jsr ExternPrint bra _LPTShow _LPTExit: ply rts
20.836207
80
0.518825
8cc5c5715caa24df369529ef1647dca6b4add749
344
asm
Assembly
programs/oeis/236/A236965.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/236/A236965.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/236/A236965.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A236965: Number of nonzero quartic residues modulo the n-th prime. ; 1,1,1,3,5,3,4,9,11,7,15,9,10,21,23,13,29,15,33,35,18,39,41,22,24,25,51,53,27,28,63,65,34,69,37,75,39,81,83,43,89,45,95,48,49,99,105,111,113,57,58,119,60,125,64,131,67,135,69,70,141,73,153,155,78 trn $0,1 seq $0,98090 ; Numbers k such that 2k-3 is prime. sub $0,2 dif $0,2
43
196
0.680233
94b816da03636c0d8888532a8b9e1d6f26cefce4
496
asm
Assembly
oeis/028/A028057.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/028/A028057.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/028/A028057.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A028057: Expansion of 1/((1-3x)(1-5x)(1-6x)(1-11x)). ; Submitted by Christian Krause ; 1,25,408,5558,68999,813603,9315286,104854096,1168677477,12952000061,143075613044,1577575222314,17376397872835,191281848531799,2104964417048082,23159869359140612,254790508985373473,2802889182202991217,30832952040578234800,339169546346404999390 mov $1,1 mov $2,$0 mov $3,$0 lpb $2 mov $0,$3 mul $1,6 sub $2,1 sub $0,$2 seq $0,17917 ; Expansion of 1/((1-3x)(1-5x)(1-11x)). add $1,$0 lpe mov $0,$1
29.176471
244
0.733871
89f21a11bb7d7b17b4b9ef695d3c3e1fdf011ff6
172
asm
Assembly
examples/example2.asm
alshapton/Pyntel4004-CLI
d3b0a6ef14ee8b3b90fc01ed3ee489e8804784e6
[ "MIT" ]
null
null
null
examples/example2.asm
alshapton/Pyntel4004-CLI
d3b0a6ef14ee8b3b90fc01ed3ee489e8804784e6
[ "MIT" ]
7
2022-03-04T23:28:46.000Z
2022-03-24T19:54:09.000Z
examples/example2.asm
alshapton/Pyntel4004-cli
d3b0a6ef14ee8b3b90fc01ed3ee489e8804784e6
[ "MIT" ]
null
null
null
/ Example program org rom fff, = 9 ldm 2 ldm fff fim 0p 180 src 0p lbl, ldm 15 end
17.2
26
0.337209
c3003d08f9af6a4b0d8f4291292a4cd2281035b1
202
asm
Assembly
src/not.asm
rprouse/8088
7cba221d5dd515144afa0d7bdd875f914e0e8c9a
[ "MIT" ]
null
null
null
src/not.asm
rprouse/8088
7cba221d5dd515144afa0d7bdd875f914e0e8c9a
[ "MIT" ]
null
null
null
src/not.asm
rprouse/8088
7cba221d5dd515144afa0d7bdd875f914e0e8c9a
[ "MIT" ]
null
null
null
cpu 8086 bits 16 org 0x0100 jmp start %include 'library.inc' start: mov al,0xfc not al ; AL = ~AL add al,0x30 ; Convert to ASCII digit call chout jmp exit
14.428571
42
0.564356
fae257b60284356d6d2b149ea6e774115821d965
1,597
asm
Assembly
programs/oeis/168/A168116.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/168/A168116.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/168/A168116.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A168116: a(n) = n*(n^8+1)/2. ; 0,1,257,9843,131074,976565,5038851,20176807,67108868,193710249,500000005,1178973851,2579890182,5302249693,10330523399,19221679695,34359738376,59293938257,99179645193,161343848899,256000000010,397140023301,603634608907,900576330743,1320903770124,1907348632825,2714751839501,3812798742507,5289227976718,7253572987949,9841500000015,13219811080351,17592186044432,23205742200993,30358496383249,39407819335955,50779978334226,64980869897557,82608050631443,104364180579399,131072000000020,163690967197001,203335691924757,251296305968443,309060919754774,378340321289085,461095081334551,559565236551407,676302730297368,814206798955249,976562500000025,1167082586545251,1389952941817882,1649881795901093,1952152956156699,2302683291992215,2708084724072476,3175730977692057,3713829369822493,4331497909327499,5038848000000030,5847073046417101,6768543273131807,7816907078426943,9007199254741024,10355956418945345,11881340006900001,13603267198147507,15543550148214818,17726043917788149,20176803500000035,22924250359224551,25999348907114532,29435793354133993,33270205387539749,37542343139648475,42295321923289126,47575847224585757,53434460456642343,59925797991309199,67108864000000040,75047317648499601,83809775204854057,93470127633770243,104107874265464874,115808473141601605,128663708655831851,142772077121514807,158239190914433068,175178201853742649,193710244500000045,213964900064894251,236080681643278382,260205541494243693,286497401114308399,315124704862304735,346266997912240176,380115529327282657,416873881065074993,456758623741820499 mov $1,$0 pow $1,9 add $0,$1 div $0,2
199.625
1,526
0.913588
9e9b5d0af2abebd7b5a6722dd5f62404bd800e03
433
asm
Assembly
programs/oeis/017/A017029.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/017/A017029.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/017/A017029.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A017029: a(n) = 7*n + 4. ; 4,11,18,25,32,39,46,53,60,67,74,81,88,95,102,109,116,123,130,137,144,151,158,165,172,179,186,193,200,207,214,221,228,235,242,249,256,263,270,277,284,291,298,305,312,319,326,333,340,347,354,361,368,375,382,389,396,403,410,417,424,431,438,445,452,459,466,473,480,487,494,501,508,515,522,529,536,543,550,557,564,571,578,585,592,599,606,613,620,627,634,641,648,655,662,669,676,683,690,697 mul $0,7 add $0,4
72.166667
386
0.709007
6bab14732d5c4e889045cff87ac0cd46e0dd8631
38,280
asm
Assembly
prt/src/prtstubs.asm
IntelLabs/IFLC-LIB
4317e191081cd48ad373ea41874d90830594ca4b
[ "Apache-2.0", "BSD-2-Clause" ]
21
2017-04-12T21:31:52.000Z
2017-10-14T16:11:19.000Z
prt/src/prtstubs.asm
csabahruska/flrc-lib
c2bccdbeecf6a0128988ac93e80f599ff2bfd5a8
[ "Apache-2.0", "BSD-2-Clause" ]
2
2017-04-16T21:21:38.000Z
2020-02-03T15:31:24.000Z
prt/src/prtstubs.asm
csabahruska/flrc-lib
c2bccdbeecf6a0128988ac93e80f599ff2bfd5a8
[ "Apache-2.0", "BSD-2-Clause" ]
6
2017-04-13T13:26:12.000Z
2019-11-09T19:44:28.000Z
;;; Redistribution and use in source and binary forms, with or without modification, are permitted ;;; provided that the following conditions are met: ;;; 1. Redistributions of source code must retain the above copyright notice, this list of ;;; conditions and the following disclaimer. ;;; 2. 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 AUTHOR "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 AUTHOR 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. ; $Header: /nfs/sc/proj/ctg/psl002/CVS/pillar_pthread/src/base/prtstubs.asm,v 1.10 2013/02/15 21:20:15 taanders Exp $ IFNDEF __x86_64__ .586 .xmm .model flat, c dseg segment para public 'data' junk1 dword ? junk2 dword ? dseg ends .code ; ============================================================================================= ; Declare external functions as near ones for calls below. EXTERN C prt_ExitThread : NEAR EXTERN C printf : NEAR EXTERN C exit : NEAR EXTERN C prtYieldUnmanaged : NEAR EXTERN C prtFatCutTo@4 : NEAR EXTERN C prt_PrintIllegalCutMessage : NEAR EXTERN C prt_ValidateVsh : NEAR EXTERN C registerBootstrapTaskCim : NEAR EXTERN C pcallOnSystemStack : NEAR EXTERN C prt_needsToYield : NEAR EXTERN C prt_validateTlsPointer : NEAR EXTERN C prtYieldUntil : NEAR EXTERN C prtToUnmanaged : NEAR EXTERN C prtToManaged : NEAR EXTERN C prt_GetTaskNonInline : NEAR EXTERN C prtPillarCompilerUnwinder : NEAR REGISTER_SIZE = 4 EXTERN C prt_Globals : DWORD EXTERN C prtMinFreeStackSpace : DWORD ELSE ; // __x86_64__ EXTERN prt_ExitThread : NEAR EXTERN printf : NEAR EXTERN exit : NEAR EXTERN prtYieldUnmanaged : NEAR EXTERN prtFatCutTo : NEAR EXTERN prt_PrintIllegalCutMessage : NEAR EXTERN prt_ValidateVsh : NEAR EXTERN registerBootstrapTaskCim : NEAR EXTERN pcallOnSystemStack : NEAR EXTERN prt_needsToYield : NEAR EXTERN prt_StdFSpawnOld : NEAR REGISTER_SIZE = 8 EXTERN prt_Globals : DWORD ENDIF ; // __x86_64__ MIN_UNMANAGED_STACK = 500000 ;MIN_UNMANAGED_STACK = 16384 ; // Macros that work for both IA32 and __x86_64__ firstArg MACRO Names:vararg _argNum$ = REGISTER_SIZE nextArg Names ENDM nextArg MACRO Names:vararg _argNum$ = _argNum$ + REGISTER_SIZE for StackSlot, <Names> &StackSlot& = _argNum$ endm ENDM ; // Starts off the stack offset computations for the first entry in the frame. firstStackOffsetSized MACRO Size, Names:vararg _cur$ = 0 nextStackOffsetSized Size, Names ENDM ; // Decrements the current frame variable offset (_cur$) and assigns the new offset to each variable name in "Names". nextStackOffsetSized MACRO Size, Names:vararg _cur$ = _cur$ - Size for StackSlot, <Names> &StackSlot& = _cur$ endm ENDM ; // Will use a default size of 4 for the stack slot. firstStackOffset MACRO Names:vararg firstStackOffsetSized 4, Names ENDM ; // Will use a default size of 4 for the stack slot. nextStackOffset MACRO Names:vararg nextStackOffsetSized 4, Names ENDM IFNDEF __x86_64__ ; ============================================================================================= ; These constants are verified in the validateStubConstants function IFDEF TLS0 PRT_TASK_USER_TLS = 0 ; mUserTls PRT_TASK_LAST_VSE = 4 ; mLastVse ELSE PRT_TASK_USER_TLS = 4 ; mUserTls PRT_TASK_LAST_VSE = 0 ; mLastVse ENDIF PRT_TASK_THREAD_HANDLE = 8 ; mThreadHandle PRT_VSE_ENTRY_TYPE_CODE = 0 ; entryTypeCode PRT_VSE_NEXT_FRAME = 4 ; nextFrame PRT_VSE_TARGET_CONTINUATION = 8 ; targetContinuation CONTINUATION_EIP_OFFSET = 0 ; ============================================================================================= ; COMMON CODE SEQUENCES ; ============================================================================================= ;TLS_REGISTER = "ebx" ; Check for a valid TLS_REGISTER setting. IFDEF TLS_REGISTER IF TLS_REGISTER EQ "ebx" ECHO Using ebx as TLS register. tlsreg TEXTEQU <ebx> savereg1 TEXTEQU <esi> savereg2 TEXTEQU <edi> restoreTlsRegister MACRO mov tlsreg, _savedEbx$[ebp] ENDM ELSEIF TLS_REGISTER EQ "edi" ECHO Using edi as TLS register. tlsreg TEXTEQU <edi> savereg1 TEXTEQU <esi> savereg2 TEXTEQU <ebx> restoreTlsRegister MACRO mov tlsreg, _savedEdi$[ebp] ENDM ELSE ECHO Error: TLS_REGISTER should be set to "ebx" or "edi", or left unset. .ERR ENDIF ELSE savereg1 TEXTEQU <esi> savereg2 TEXTEQU <edi> restoreTlsRegister MACRO ENDM ENDIF ; // Like getTlsIntoEax below but always refreshes tlsreg from the current thread's TLS. ; // Both tlsreg (ebx) and eax come back as the TLS value. loadTlsRegister MACRO call prt_GetTaskNonInline mov tlsreg, eax ENDM ; // Returns the current thread's TLS (its PrtTask pointer) in eax. Leaves other registers unchanged. getTlsIntoEax MACRO IFDEF TLS_REGISTER mov eax, tlsreg ELSE call mcrtThreadGet ;; // get the current thread's McrtThread* into eax push eax ;; // push thread param on stack for next func call mcrtThreadGetTLSForThread ;; // get the current thread's PrtTask pointer (its TLS) into eax pop edx ; add esp, 4 ;; // pop args to previous func ENDIF ENDM ; // A stub prologue that sets up an ebp-based frame and saves ebx, esi, edi. fullStubProlog MACRO push ebp mov ebp, esp push ebx push esi push edi ENDM ; // Inverse of fullStubProlog fullStubEpilog MACRO pop edi pop esi pop ebx pop ebp ENDM ; // Copies a function's arguments to its frame. Also reserves space in the frame for the copied arguments. ; // Leaves eax and edx untouched. ; // Modifies ebx, ecx, esi, edi. ; // Upon exit, ebx will contain the number of bytes of arguments. copyArgs MACRO argStartOffsetFromEbp, argSizeOffsetFromEbp mov ebx, DWORD PTR argSizeOffsetFromEbp[ebp] ;; // ebx = number of 4-byte params shl ebx, 2 ;; // ebx = size of params in bytes sub esp, ebx ;; // reserve space for copies of the incoming arguments ;; // copy the arguments to the stack starting at esp. cld mov ecx, DWORD PTR argSizeOffsetFromEbp[ebp] mov esi, DWORD PTR argStartOffsetFromEbp[ebp] mov edi, esp ;; // rep movsd copies "ecx" dwords from [esi] to [edi]. cld means esi and edi are incremented after each copy. rep movsd ENDM ; // Restore the original frame's ebp and esp values using edx, which points to a VSE embedded in the frame. continuationProlog MACRO espOffsetFromEbp, contOffsetFromEbp lea esp, [edx - contOffsetFromEbp + espOffsetFromEbp] lea ebp, [edx - contOffsetFromEbp] ENDM ; // Pushes a VSE. Assumes Prt_Task pointer is in eax. Leaves eax and edx intact. pushVse MACRO VseOffsetFromEbp, VseType mov ecx, [eax+PRT_TASK_LAST_VSE] mov DWORD PTR [ebp+VseOffsetFromEbp+PRT_VSE_ENTRY_TYPE_CODE], VseType mov DWORD PTR [ebp+VseOffsetFromEbp+PRT_VSE_NEXT_FRAME], ecx mov DWORD PTR [ebp+VseOffsetFromEbp+PRT_VSE_TARGET_CONTINUATION], 0 lea ecx, [ebp+VseOffsetFromEbp] mov [eax+PRT_TASK_LAST_VSE], ecx ENDM ; // Pops a VSE. Assumes Prt_Task pointer is in eax. Leaves eax and edx intact. popVse MACRO VseOffsetFromEbp, VseType IFDEF DEBUG_VSE_POPS push eax push edx push VseType lea ecx, [ebp+VseOffsetFromEbp] push ecx call prt_ValidateVsh add esp, 8 pop edx pop eax ENDIF ; // DEBUG_VSE_POPS mov ecx, [eax+PRT_TASK_LAST_VSE] mov ecx, [ecx+PRT_VSE_NEXT_FRAME] mov [eax+PRT_TASK_LAST_VSE], ecx ENDM ; ============================================================================================= _TEXT SEGMENT ; ============================================================================================= PUBLIC prtWatermarkPrototype@0 PUBLIC prt_WatermarkPrototypeStart PUBLIC prt_WatermarkPostTopIndex1 PUBLIC prt_WatermarkPostTopIndex2 PUBLIC prt_WatermarkPostStubStackStart PUBLIC prt_WatermarkPostStubStart PUBLIC prt_WatermarkPostRealEipMove PUBLIC prt_WatermarkPrototypeEnd prtWatermarkPrototype@0 PROC EXPORT prt_WatermarkPrototypeStart:: mov ecx, dword ptr [junk1] ; // ecx = current top index prt_WatermarkPostTopIndex1:: inc ecx ; // ecx = new top index mov dword ptr [junk1], ecx ; // increment the stack's top...replace DEADBEEF with the address of this task's stub stack top prt_WatermarkPostTopIndex2:: lea ecx, junk2[ecx*4] ; // ecx = address of the top free stub stack array entry prt_WatermarkPostStubStackStart:: mov dword ptr [ecx], prt_WatermarkPrototypeStart ; // write the stub start value into the stub stack array prt_WatermarkPostStubStart:: mov ecx, exit prt_WatermarkPostRealEipMove:: jmp ecx ; // any jump target will do...will be replaced in each copy of the stub prt_WatermarkPrototypeEnd:: prtWatermarkPrototype@0 ENDP ; ============================================================================================= ; // void __pdecl prtYield(void); PUBLIC prtYield@0 PUBLIC prt_YieldStart PUBLIC prt_YieldEnd prtYield@0 PROC EXPORT prt_YieldStart:: ret prt_YieldEnd:: prtYield@0 ENDP ; ============================================================================================= ; // void __stdcall prtInvokeManagedFunc(PrtCodeAddress managedFunc, void *argStart, unsigned argSize); ; // Export the different locations within the prtInvokeManagedFunc function. PUBLIC prtInvokeManagedFunc@12 ; start of the function PUBLIC prtInvokeManagedIntRet@12 ; start of the function PUBLIC prt_InvokeManagedFuncStart ; start of the function PUBLIC prt_InvokeManagedFuncUnwindContinuation PUBLIC prt_InvokeManagedFuncEnd ; end of the function ; // Stack offsets of this function's aguments. firstArg _managedFunc$ nextArg _argStart$ nextArg _argSize$ ; // Stack frame layout: ; ebp+0: saved ebp ; ebp-4: saved ebx ; ebp-8: saved esi ; ebp-12: saved edi firstStackOffset _savedEbx$ nextStackOffset _savedEsi$ nextStackOffset _savedEdi$ nextStackOffset _contArgHigh32Bits$, _firstFrameLocal$ nextStackOffset _contArgLow32Bits$ nextStackOffset _contVsh$ nextStackOffset _contEip$, _contStart$, _normalEsp$ U2MFRAMESIZE = _firstFrameLocal$ - _normalEsp$ + REGISTER_SIZE prtInvokeManagedIntRet@12 PROC EXPORT prtInvokeManagedIntRet@12 ENDP prtInvokeManagedFunc@12 PROC EXPORT prt_InvokeManagedFuncStart:: ; // A stack limit check is unnecessary because we must already be running ; // on a full-sized stack for unmanaged code. fullStubProlog ; // basic ebp-based frame prolog that saves ebx, esi, edi sub esp, U2MFRAMESIZE copyArgs _argStart$, _argSize$ ; // reserve space and copy arguments IFDEF TLS_REGISTER loadTlsRegister ENDIF getTlsIntoEax ; // leaves eax set to TLS push eax call prtToManaged pop eax call DWORD PTR _managedFunc$[ebp] ; // call the managed function. don't disturb the return registers after this prt_InvokeManagedFuncAfterCall: mov esi, eax ; // save away the return value getTlsIntoEax ; // leaves eax set to TLS push eax call prtToUnmanaged pop eax mov eax, esi ; // restore return value add esp, U2MFRAMESIZE fullStubEpilog ret 12 prt_InvokeManagedFuncUnwindContinuation:: continuationProlog _normalEsp$, _contStart$ mov eax, [ebp+_contArgLow32Bits$] mov edx, [ebp+_contArgHigh32Bits$] jmp prt_InvokeManagedFuncAfterCall prt_InvokeManagedFuncEnd:: prtInvokeManagedFunc@12 ENDP ; ============================================================================================= ; // void __stdcall prtInvokeUnmanagedFunc(PrtCodeAddress unmanagedFunc, void *argStart, unsigned argSize, PrtCallingConvention callingConvention); PUBLIC prtInvokeUnmanagedFunc@16 ; start of the function PUBLIC prtInvokeUnmanagedIntRet@16 ; start of the function PUBLIC prt_InvokeUnmanagedFuncStart ; start of the function PUBLIC prt_InvokeUnmanagedFuncPostCall ; PUBLIC prt_InvokeUnmanagedFuncDestructor ; VSE type identifier (code address) PUBLIC prt_InvokeUnmanagedFuncUnwindContinuation PUBLIC prt_InvokeUnmanagedFuncEnd ; end of the function ; // Stack offsets of this function's aguments. firstArg _unmanagedFunc$ nextArg _argStart$ nextArg _argSize$ nextArg _callingConvention$ ; // Keep these offsets up to date with the definition of struct Prt_M2uFrame. ; Stack frame layout: ; ebp+0: saved ebp ; ebp-4: saved ebx ; ebp-8: saved esi ; ebp-12: saved edi firstStackOffset _savedEbx$ nextStackOffset _savedEsi$ nextStackOffset _savedEdi$ nextStackOffset _contArgHigh32Bits$, _firstFrameLocal$ nextStackOffset _contArgLow32Bits$ nextStackOffset _contVsh$ nextStackOffset _contEip$, _contStart$ nextStackOffset _realM2uUnwinder$ ;nextStackOffset _callsite_id$ ;; end of core VSE fields nextStackOffset _targetContinuation$ nextStackOffset _nextVsePtr$ nextStackOffset _frameType$, _vsePtr$, _normalEsp$ ;; start of VSE M2UFRAMESIZE = _firstFrameLocal$ - _normalEsp$ + REGISTER_SIZE prtInvokeUnmanagedIntRet@16:: prtInvokeUnmanagedFunc@16 PROC EXPORT prt_InvokeUnmanagedFuncStart:: getTlsIntoEax ; // leaves eax set to TLS, edx set to mcrtThread fullStubProlog ; // basic ebp-based frame prolog that saves ebx, esi, edi sub esp, M2UFRAMESIZE ; // reserve space for rest of the frame and local vars. lea esi, prtPillarCompilerUnwinder mov dword ptr _realM2uUnwinder$[ebp], esi pushVse _vsePtr$, prt_InvokeUnmanagedFuncDestructor push eax call prtToUnmanaged pop eax copyArgs _argStart$, _argSize$ ; // reserve space and copy arguments, sets ebx = number of arg bytes call DWORD PTR _unmanagedFunc$[ebp] prt_InvokeUnmanagedFuncPostCall:: mov ecx, _callingConvention$[ebp] ; // ecx != 0 if target is a stdcall .IF (ecx == 0) ; // if target was cdecl instead of stdcall, then remove arguments from stack add esp, ebx .ENDIF prt_InvokeUnmanagedFuncAfterCall: restoreTlsRegister mov savereg1, eax ; // save possible return registers away mov savereg2, edx ; // save possible return registers away ; // we use targetContinuation field here because we no longer need it ; // for fat cuts. We use it to indicate we are at the prtYieldUnmanaged callsite ; // rather than the call to the unmanaged function. ; mov DWORD PTR [ebp+_callsite_id$], 1 ; call prtYieldUnmanaged getTlsIntoEax ; // get current Prt_Task pointer push eax call prtToManaged pop eax popVse _vsePtr$, prt_InvokeUnmanagedFuncDestructor mov eax, savereg1 ; // restore return registers mov edx, savereg2 add esp, M2UFRAMESIZE ; // remove the rest of the frame and local vars fullStubEpilog ret 16 prt_InvokeUnmanagedFuncDestructor:: continuationProlog _normalEsp$, _vsePtr$ push [ebp+_targetContinuation$] ; // recut call prtFatCutTo@4 prt_InvokeUnmanagedFuncUnwindContinuation:: continuationProlog _normalEsp$, _contStart$ mov eax, [ebp+_contArgLow32Bits$] mov edx, [ebp+_contArgHigh32Bits$] jmp prt_InvokeUnmanagedFuncAfterCall prt_InvokeUnmanagedFuncEnd:: prtInvokeUnmanagedFunc@16 ENDP ; ============================================================================================= PUBLIC prt_PcallDestructor prt_PcallDestructor PROC EXPORT mov esp, edx IFDEF TLS_REGISTER loadTlsRegister ENDIF push 0 push 0 push 0 push prt_PrintIllegalCutMessage call prtInvokeUnmanagedFunc@16 call prt_ExitThread prt_PcallDestructor ENDP ; ============================================================================================= setNextConstant MACRO Value _cur$ = _cur$ + REGISTER_SIZE mov eax, _cur$[esp] mov DWORD PTR [eax], Value ENDM PUBLIC prt_getStubConstants ; start of the function _cur$ = 0 prt_getStubConstants PROC EXPORT setNextConstant PRT_TASK_LAST_VSE setNextConstant PRT_TASK_USER_TLS setNextConstant PRT_TASK_THREAD_HANDLE setNextConstant PRT_VSE_ENTRY_TYPE_CODE setNextConstant PRT_VSE_NEXT_FRAME setNextConstant PRT_VSE_TARGET_CONTINUATION setNextConstant CONTINUATION_EIP_OFFSET ret prt_getStubConstants ENDP ; ============================================================================================= PUBLIC prt_getCurrentEsp prt_getCurrentEsp PROC EXPORT mov eax, esp ret prt_getCurrentEsp ENDP ; ============================================================================================= PUBLIC prtThinCutTo _continuation$ = 4 prtThinCutTo PROC EXPORT IFDEF TLS_REGISTER loadTlsRegister ENDIF mov edx, _continuation$[esp] jmp DWORD PTR [edx+CONTINUATION_EIP_OFFSET] prtThinCutTo ENDP ; ============================================================================================= PUBLIC prtYieldUntilDestructor prtYieldUntilDestructor PROC EXPORT mov edx, [edx+8] ; // edx = target continuation push edx call prtFatCutTo@4 prtYieldUntilDestructor ENDP ; ============================================================================================= PUBLIC prt_bootstrapTaskAsm ; start of the function PUBLIC prt_bootstrapTaskAsmCall ; // Stack offsets of this function's aguments. firstArg _cimCreated$ nextArg _funcToCall$ nextArg _argStart$ nextArg _argSize$ prt_bootstrapTaskAsm PROC EXPORT fullStubProlog prt_bootstrapTaskAsmStart: mov esi, DWORD PTR _cimCreated$[ebp] test esi, esi jne cimAlreadyCreated lea eax, prt_bootstrapTaskAsmEnd push eax lea eax, prt_bootstrapTaskAsmStart push eax call registerBootstrapTaskCim add esp, 8 cimAlreadyCreated: ;; // get all the needed vars into regs before we update esp in case this is ;; // not an ebp based frame. mov edx, _funcToCall$[ebp] ;; // edx = the function to invoke copyArgs _argStart$, _argSize$ ; // reserve space and copy arguments IFDEF TLS_REGISTER push edx loadTlsRegister pop edx ENDIF call edx ;; // invoke the function prt_bootstrapTaskAsmCall:: call prt_ExitThread ;; // exit the thread prt_bootstrapTaskAsmEnd: prt_bootstrapTaskAsm ENDP ; ============================================================================================= PUBLIC prt_testStackSize ; start of the function ; // Stack offsets of this function's aguments. firstArg _funcToCall$ nextArg _stackTop$ prt_testStackSize PROC EXPORT fullStubProlog IFDEF TLS_REGISTER loadTlsRegister ENDIF mov esi, esp mov edx, _funcToCall$[ebp] ;; // edx = the function to invoke mov esp, _stackTop$[ebp] ;; // transition to a new stack call edx ;; // invoke the function mov esp, esi fullStubEpilog ret prt_testStackSize ENDP ; ============================================================================================= PUBLIC prt_pcallAsm ; start of the function ; // Stack offsets of this function's aguments. firstArg _newEsp$ prt_pcallAsm PROC EXPORT fullStubProlog mov esi, esp mov esp, _newEsp$[ebp] call pcallOnSystemStack mov esp, esi fullStubEpilog ret prt_pcallAsm ENDP ; ============================================================================================= ; // void * __pdecl prt_getTlsRegister(void); PUBLIC prt_getTlsRegister@0 PUBLIC prt_getTlsRegisterStart PUBLIC prt_getTlsRegisterEnd prt_getTlsRegister@0 PROC EXPORT prt_getTlsRegisterStart:: IFDEF TLS_REGISTER mov eax, tlsreg ELSE mov eax, 0 ENDIF ret prt_getTlsRegisterEnd:: prt_getTlsRegister@0 ENDP ; ============================================================================================= ; ============================================================================================= _TEXT ENDS ; ============================================================================================= ; ============================================================================================= ELSE ; // __x86_64__ ; ============================================================================================= ; These constants are verified in the validateStubConstants function PRT_TASK_LAST_VSE = 8 PRT_TASK_CUR_STACK_LIMIT = 8 PRT_TASK_USER_TLS = 0 PRT_TASK_THREAD_HANDLE = 32 PRT_TASK_CUR_STACKLET_REF_COUNT_PTR = 24 PRT_VSE_ENTRY_TYPE_CODE = 0 PRT_VSE_NEXT_FRAME = 8 PRT_VSE_TARGET_CONTINUATION = 16 PRT_TASK_STARTING_STACK = 32 CONTINUATION_EIP_OFFSET = 0 PRT_THREAD_DONOTRUN = 118 ; offset in McrtThread of the 16-bit doNotRun flag ARG_REG1 EQU rcx ARG_REG2 EQU rdx ARG_REG3 EQU r8 ARG_REG4 EQU r9 ; // Modifies esp to start using the stack originally given to the current task. ; // Modifies eax and esp, other regs unchanged. goToSystemStack MACRO getTlsIntoEax ;; // Go to the original stack stored at a known offset from the start of the Pillar task. mov rsp, [rax+PRT_TASK_STARTING_STACK] and rsp, 0FFffFFffFFffFFf0h ENDM fullStubProlog MACRO push rbp mov rbp, rsp push rbx push rsi push rdi ENDM ; // Inverse of fullStubProlog fullStubEpilog MACRO pop rdi pop rsi pop rbx pop rbp ENDM ; // Copies a function's arguments to its frame. Also reserves space in the frame for the copied arguments. ; // Leaves rax and rdx untouched. ; // At completion, rbx = size of args in bytes, rcx/rdx/r8/r9 are the args to the next function, rsi/rdi are trashed. ; // startReg and sizeReg should not be rbx, rcx, rsi or rdi. copyArgs MACRO startReg, sizeReg mov rbx, sizeReg ;; // ebx = number of 8-byte params shl rbx, 3 ;; // ebx = size of params in bytes add rbx, 31 mov rcx, 0FFffFFffFFe0h and rbx, rcx mov rcx, sizeReg sub rcx, 1 sar rcx, 63 and rcx, 32 add rbx, rcx sub rsp, rbx ;; // make room to copy args that are on the stack ;; // copy the stack arguments to the next stack locationstack starting at esp. cld mov rcx, sizeReg ;; // arg size mov rsi, startReg ;; // arg start mov rdi, rsp ;; // place to copy ;; // rep movsd copies "rcx" dwords from [rsi] to [rdi]. cld means rsi and rdi are incremented after each copy. rep movsq ; cmp rbx, 8 ; jl copyDone ; // MOVE ARGS INTO REGISTERS? BUT WE DON'T HAVE TYPE INFORMATION!!! mov ARG_REG1, QWORD PTR [rsp+0] movd xmm0, ARG_REG1 ; cmp rbx, 16 ; jl copyDone mov ARG_REG2, QWORD PTR [rsp+8] movd xmm1, ARG_REG2 ; cmp rbx, 24 ; jl copyDone mov ARG_REG3, QWORD PTR [rsp+16] movd xmm2, ARG_REG3 ; cmp rbx, 32 ; jl copyDone mov ARG_REG4, QWORD PTR [rsp+24] movd xmm3, ARG_REG4 ;copyDone:: ENDM ; // Pushes a VSE. Assumes Prt_Task pointer is in eax. Leaves eax and edx intact. pushVse MACRO VseOffsetFromEbp, VseType mov r10, VseType mov QWORD PTR [rbp+VseOffsetFromEbp+PRT_VSE_ENTRY_TYPE_CODE], r10 mov r10, [rax+PRT_TASK_LAST_VSE] mov QWORD PTR [rbp+VseOffsetFromEbp+PRT_VSE_NEXT_FRAME], r10 mov QWORD PTR [rbp+VseOffsetFromEbp+PRT_VSE_TARGET_CONTINUATION], 0 lea r10, [rbp+VseOffsetFromEbp] mov [rax+PRT_TASK_LAST_VSE], r10 ENDM ; // Pops a VSE. Assumes Prt_Task pointer is in eax. Leaves eax and edx intact. popVse MACRO VseOffsetFromEbp, VseType IFDEF DEBUG_VSE_POPS push rax push rdx mov ARG_REG2, VseType lea ARG_REG1, [rbp+VseOffsetFromEbp] sub rsp, 32 call prt_ValidateVsh add rsp, 32 pop rdx pop rax ENDIF ; // DEBUG_VSE_POPS mov rcx, [rax+PRT_TASK_LAST_VSE] mov rcx, [rcx+PRT_VSE_NEXT_FRAME] mov [rax+PRT_TASK_LAST_VSE], rcx ENDM ; // Restore the original frame's ebp and esp values using edx, which points to a VSE embedded in the frame. continuationProlog MACRO espOffsetFromEbp, vseOffsetFromEbp lea rsp, [rdx - vseOffsetFromEbp + espOffsetFromEbp] lea rbp, [rdx - vseOffsetFromEbp] ENDM saveArgRegs MACRO push ARG_REG1 push ARG_REG2 push ARG_REG3 push ARG_REG4 ENDM restoreArgRegs MACRO pop ARG_REG4 pop ARG_REG3 pop ARG_REG2 pop ARG_REG1 ENDM ; // Returns the current thread's TLS (its PrtTask pointer) in rax. ; // Leaves argument registers unchanged. ; // r13 out = mcrt thread handle getTlsIntoEax MACRO saveArgRegs sub rsp, 32 call mcrtThreadGet ;; // get the current thread's McrtThread* into eax mov ARG_REG1, rax ;; // prepare for call to mcrtThreadGetTLSForThread push rax ;; // save thread handle to the stack sub rsp, 8 ;; // reserve space for home location of ARG_REG1 call mcrtThreadGetTLSForThread ;; // get the current thread's PrtTask pointer (its TLS) into eax add rsp, 8 ;; // remove space for home location of ARG_REG1 pop r13 add rsp, 32 restoreArgRegs ENDM getThreadHandleIntoRax MACRO sub rsp, 32 call mcrtThreadGet ;; // get the current thread's McrtThread* into rax add rsp, 32 ENDM saveFourRegArgsToHomeAfterJump MACRO mov [rsp+0], ARG_REG1 mov [rsp+8], ARG_REG2 mov [rsp+16], ARG_REG3 mov [rsp+24], ARG_REG4 ENDM restoreFourRegArgsFromHomeAfterJump MACRO mov ARG_REG1, [rsp+0] mov ARG_REG2, [rsp+8] mov ARG_REG3, [rsp+16] mov ARG_REG4, [rsp+24] ENDM saveFourRegArgsToHomeBeforeProlog MACRO mov [rsp+8], ARG_REG1 mov [rsp+16], ARG_REG2 mov [rsp+24], ARG_REG3 mov [rsp+32], ARG_REG4 ENDM saveFourRegArgsToHomeAfterProlog MACRO mov [rbp+16], ARG_REG1 mov [rbp+24], ARG_REG2 mov [rbp+32], ARG_REG3 mov [rbp+40], ARG_REG4 ENDM restoreFourRegArgsFromHomeAfterProlog MACRO mov ARG_REG1, [rbp+16] mov ARG_REG2, [rbp+24] mov ARG_REG3, [rbp+32] mov ARG_REG4, [rbp+40] ENDM _TEXT SEGMENT ; ============================================================================================= PUBLIC prtInvokeManagedFunc ; start of the function PUBLIC prt_InvokeManagedFuncStart ; start of the function PUBLIC prt_InvokeManagedFuncUnwindContinuation PUBLIC prt_InvokeManagedFuncEnd ; end of the function ; // Stack offsets of this function's aguments. firstArg _managedFunc$ nextArg _argStart$ nextArg _argSize$ firstStackOffsetSized 8, _savedEbx$ nextStackOffsetSized 8, _savedEsi$ nextStackOffsetSized 8, _savedEdi$ nextStackOffsetSized 8, _createAlignment$, _firstFrameLocal$ nextStackOffsetSized 8, _contArgHigh32Bits$ nextStackOffsetSized 8, _contArgLow32Bits$ nextStackOffsetSized 8, _contVsh$ nextStackOffsetSized 8, _contEip$, _contStart$, _normalEsp$ U2MFRAMESIZE = _firstFrameLocal$ - _normalEsp$ + REGISTER_SIZE prtInvokeManagedFunc PROC EXPORT prt_InvokeManagedFuncStart:: ; // A stack limit check is unnecessary because we must already be running ; // on a full-sized stack for unmanaged code. fullStubProlog ; // won't modify input arg registers sub rsp, U2MFRAMESIZE mov rax, ARG_REG1 copyArgs ARG_REG2, ARG_REG3 ; // reserve space and copy arguments call rax ; // call the managed function. don't disturb the return registers after this prt_InvokeManagedFuncAfterCall:: add rsp, rbx ; // remove args since this is fastcall add rsp, U2MFRAMESIZE fullStubEpilog ret prt_InvokeManagedFuncUnwindContinuation:: continuationProlog _normalEsp$, _contStart$ mov rax, [rbp+_contArgLow32Bits$] mov rdx, [rbp+_contArgHigh32Bits$] jmp prt_InvokeManagedFuncAfterCall prt_InvokeManagedFuncEnd:: prtInvokeManagedFunc ENDP ; ============================================================================================= ; // void __stdcall prtInvokeUnmanagedFunc(PrtCodeAddress unmanagedFunc, void *argStart, unsigned argSize, PrtCallingConvention callingConvention); PUBLIC prtInvokeUnmanagedFunc ; start of the function PUBLIC prt_InvokeUnmanagedFuncStart ; start of the function PUBLIC prt_InvokeUnmanagedFuncEnd ; end of the function PUBLIC prt_InvokeUnmanagedFuncDestructor ; VSE type identifier (code address) PUBLIC prt_InvokeUnmanagedFuncUnwindContinuation ; // Stack offsets of this function's aguments. firstArg _unmanagedFunc$ nextArg _argStart$ nextArg _argSize$ nextArg _callingConvention$ ; // Keep these offsets up to date with the definition of struct Prt_M2uFrame. ; Stack frame layout: ; ebp+0: saved ebp ; ebp-4: saved ebx ; ebp-8: saved esi ; ebp-12: saved edi firstStackOffsetSized 8, _savedEbx$ nextStackOffsetSized 8, _savedEsi$ nextStackOffsetSized 8, _savedEdi$ nextStackOffsetSized 8, _contArgHigh32Bits$, _firstFrameLocal$ nextStackOffsetSized 8, _contArgLow32Bits$ nextStackOffsetSized 8, _contVsh$ nextStackOffsetSized 8, _contEip$, _contStart$ ;; end of core VSE fields nextStackOffsetSized 8, _targetContinuation$ nextStackOffsetSized 8, _nextVsePtr$ nextStackOffsetSized 8, _frameType$, _vsePtr$, _normalEsp$ ;; start of VSE M2UFRAMESIZE = _firstFrameLocal$ - _normalEsp$ + REGISTER_SIZE prtInvokeUnmanagedFunc PROC EXPORT prt_InvokeUnmanagedFuncStart:: ; // We have enough space and don't need a new stack. fullStubProlog ; // basic ebp-based frame prolog that saves ebx, esi, edi mov _callingConvention$[rbp], ARG_REG4 mov _argSize$[rbp], ARG_REG3 mov _argStart$[rbp], ARG_REG2 mov _unmanagedFunc$[rbp], ARG_REG1 sub rsp, M2UFRAMESIZE ; // reserve space for rest of the frame and local vars. pushVse _vsePtr$, prt_InvokeUnmanagedFuncDestructor ; // doesn't modify input args mov rax, ARG_REG1 copyArgs ARG_REG2, ARG_REG3 ; // reserve space and copy arguments, sets ebx = number of arg bytes call rax prt_InvokeUnmanagedFuncAfterCall:: mov rcx, QWORD PTR _callingConvention$[rbp] cmp rcx, 0 jne TARGET_WAS_STDCALL add rsp, rbx ; // if target was cdecl instead of stdcall, then remove arguments from stack TARGET_WAS_STDCALL: mov rdi, rax ; // save possible return registers away ; call prtYieldUnmanaged getTlsIntoEax ; // get current Prt_Task pointer popVse _vsePtr$, prt_InvokeUnmanagedFuncDestructor mov rax, rdi ; // restore return registers add rsp, M2UFRAMESIZE ; // remove the rest of the frame and local vars fullStubEpilog ret prt_InvokeUnmanagedFuncDestructor:: continuationProlog _normalEsp$, _vsePtr$ mov ARG_REG1, [rbp+_targetContinuation$] ; // recut sub rsp, 32 call prtFatCutTo prt_InvokeUnmanagedFuncUnwindContinuation:: continuationProlog _normalEsp$, _contStart$ mov rax, [rbp+_contArgLow32Bits$] mov rdx, [rbp+_contArgHigh32Bits$] jmp prt_InvokeUnmanagedFuncAfterCall prt_InvokeUnmanagedFuncEnd:: prtInvokeUnmanagedFunc ENDP ; ============================================================================================= PUBLIC prt_PcallDestructor prt_PcallDestructor PROC EXPORT mov rsp, rdx mov ARG_REG4, 0 mov ARG_REG3, 0 mov ARG_REG2, 0 mov ARG_REG1, prt_PrintIllegalCutMessage sub rsp, 32 call prtInvokeUnmanagedFunc add rsp, 32 goToSystemStack call prt_ExitThread prt_PcallDestructor ENDP ; ============================================================================================= setNextConstant MACRO Value _cur$ = _cur$ + REGISTER_SIZE mov rax, _cur$[rsp] mov QWORD PTR [rax], Value ENDM PUBLIC prt_getStubConstants ; start of the function _cur$ = 0 prt_getStubConstants PROC EXPORT saveFourRegArgsToHomeBeforeProlog setNextConstant PRT_TASK_LAST_VSE setNextConstant PRT_TASK_CUR_STACK_LIMIT setNextConstant PRT_TASK_USER_TLS setNextConstant PRT_VSE_ENTRY_TYPE_CODE setNextConstant PRT_VSE_NEXT_FRAME setNextConstant PRT_VSE_TARGET_CONTINUATION setNextConstant PRT_TASK_STARTING_STACK setNextConstant PRT_TASK_CUR_STACKLET_REF_COUNT_PTR setNextConstant CONTINUATION_EIP_OFFSET setNextConstant PRT_TASK_THREAD_HANDLE ret prt_getStubConstants ENDP ; ============================================================================================= ; ============================================================================================= PUBLIC prt_getCurrentEsp prt_getCurrentEsp PROC EXPORT mov rax, rsp ret prt_getCurrentEsp ENDP ; ============================================================================================= PUBLIC prtThinCutTo _continuation$ = 8 prtThinCutTo PROC EXPORT mov rdx, ARG_REG1 mov rax, [rdx+CONTINUATION_EIP_OFFSET] jmp rax prtThinCutTo ENDP ; ============================================================================================= PUBLIC prt_bootstrapTaskAsm ; start of the function PUBLIC prt_bootstrapTaskAsmCall ; // Stack offsets of this function's aguments. firstArg _cimCreated$ nextArg _funcToCall$ nextArg _stackTop$ prt_bootstrapTaskAsm PROC EXPORT prt_bootstrapTaskAsmStart: fullStubProlog sub rsp, 24 ; // Save args to stack. mov _cimCreated$[rbp], ARG_REG1 mov _funcToCall$[rbp], ARG_REG2 mov _stackTop$[rbp], ARG_REG3 test ARG_REG1, ARG_REG1 jne cimAlreadyCreated lea ARG_REG2, prt_bootstrapTaskAsmEnd lea ARG_REG1, prt_bootstrapTaskAsmStart sub rsp, 16 call registerBootstrapTaskCim add rsp, 16 cimAlreadyCreated: mov rsp, _stackTop$[rbp] ;; // transition to a new stack mov rax, _funcToCall$[rbp] ; // copy stack args into regs as expected mov ARG_REG1, QWORD PTR [rsp+0] movd xmm0, ARG_REG1 mov ARG_REG2, QWORD PTR [rsp+8] movd xmm1, ARG_REG2 mov ARG_REG3, QWORD PTR [rsp+16] movd xmm2, ARG_REG3 mov ARG_REG4, QWORD PTR [rsp+24] movd xmm3, ARG_REG4 sub rsp, 32 call rax ;; // invoke the function add rsp, 32 prt_bootstrapTaskAsmCall:: goToSystemStack ;; // go to the original stack call prt_ExitThread ;; // exit the thread prt_bootstrapTaskAsmEnd: prt_bootstrapTaskAsm ENDP ; ============================================================================================= PUBLIC prt_pcallAsm ; start of the function ; // Stack offsets of this function's aguments. firstArg _newEsp$ prt_pcallAsm PROC EXPORT fullStubProlog sub rsp, 8 ; // keep rsp 16-byte aligned mov rbx, rsp mov rsp, ARG_REG1 mov ARG_REG1, [rsp+0] mov ARG_REG2, [rsp+8] mov ARG_REG3, [rsp+16] mov ARG_REG4, [rsp+24] call pcallOnSystemStack mov rsp, rbx add rsp, 8 fullStubEpilog ret prt_pcallAsm ENDP ; ============================================================================================= PUBLIC prtYield PUBLIC prt_YieldStart PUBLIC prt_YieldInvokeUnmanaged PUBLIC prt_YieldEnd prtYield PROC EXPORT prt_YieldStart:: ret prt_YieldEnd:: prtYield ENDP ; ============================================================================================= PUBLIC prt_testStackSize ; start of the function ; // Stack offsets of this function's aguments. firstArg _funcToCall$ nextArg _stackTop$ prt_testStackSize PROC EXPORT fullStubProlog mov rbx, rsp mov rsp, ARG_REG2 ;; // transition to a new stack sub rsp, 40 call ARG_REG1 ;; // invoke the function add rsp, 40 mov rsp, rbx fullStubEpilog ret prt_testStackSize ENDP ; ============================================================================================= ; // void * __pdecl prt_getTlsRegister(void); PUBLIC prt_getTlsRegister PUBLIC prt_getTlsRegisterStart PUBLIC prt_getTlsRegisterEnd prt_getTlsRegister PROC EXPORT prt_getTlsRegisterStart:: IFDEF TLS_REGISTER mov rax, tlsreg ELSE mov rax, 0 ENDIF ret prt_getTlsRegisterEnd:: prt_getTlsRegister ENDP ; ============================================================================================= _TEXT ENDS ENDIF ; // __x86_64__ end
31.506173
147
0.638323
707a9a1cb5773a24791aa856fd0c3162dc950930
4,097
asm
Assembly
windows/advcore/gdiplus/test/dciperf/i386/kni.asm
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
windows/advcore/gdiplus/test/dciperf/i386/kni.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
windows/advcore/gdiplus/test/dciperf/i386/kni.asm
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
title "KNI Performance Test" ;++ ; ; Copyright (c) 1998 Microsoft Corporation ; ; Module Name: ; ; kni.asm ; ; Abstract: ; ; Test KNI performance for video memory. Based on PeterJ's zero.asm. ; ; Environment: ; ; x86 ; ; Revision History: ; ;-- .386p .xlist include ks386.inc include callconv.inc .list ; ; Register Definitions (for instruction macros). ; rEAX equ 0 rECX equ 1 rEDX equ 2 rEBX equ 3 rESP equ 4 rEBP equ 5 rESI equ 6 rEDI equ 7 ; ; Define SIMD instructions used in this module. ; if 0 ; these remain for reference only. In theory the stuff following ; should generate the right code. xorps_xmm0_xmm0 macro db 0FH, 057H, 0C0H endm movntps_edx macro Offset db 0FH, 02BH, 042H, Offset endm movaps_esp_xmm0 macro db 0FH, 029H, 004H, 024H endm movaps_xmm0_esp macro db 0FH, 028H, 004H, 024H endm endif xorps macro XMMReg1, XMMReg2 db 0FH, 057H, 0C0H + (XMMReg1 * 8) + XMMReg2 endm movntps macro GeneralReg, Offset, XMMReg db 0FH, 02BH, 040H + (XmmReg * 8) + GeneralReg, Offset endm movaps_toreg macro GeneralReg, Offset, XMMReg db 0Fh, 028H, 040H + (XmmReg * 8) + GeneralReg, Offset endm emms macro db 0FH, 077H endm sfence macro db 0FH, 0AEH, 0F8H endm movaps_load macro XMMReg, GeneralReg db 0FH, 028H, (XMMReg * 8) + 4, (4 * 8) + GeneralReg endm movaps_store macro GeneralReg, XMMReg db 0FH, 029H, (XMMReg * 8) + 4, (4 * 8) + GeneralReg endm ; ; NPX Save and Restore ; fxsave macro Register db 0FH, 0AEH, Register endm fxrstor macro Register db 0FH, 0AEH, 8+Register endm ; ; Test constants ; WRITE_ITERATIONS equ 10000 READ_ITERATIONS equ 1000 NUM_BYTES equ (8 * 1024) _TEXT SEGMENT DWORD PUBLIC 'CODE' ASSUME DS:FLAT, ES:FLAT, SS:NOTHING, FS:NOTHING, GS:NOTHING ;++ ; ; KniNt128Write( ; PVOID Address ; ) ; ; Routine Description: ; ; 64-bit non-temporal writes... ; ; Arguments: ; ; (ecx) Address Address to be written to ; ; Return Value: ; ; None. ; ;-- cPublicFastCall KniNt128Write,1 cPublicFpo 0, 0 push edi mov eax, WRITE_ITERATIONS KniNt128WriteOuter:: mov edx, (NUM_BYTES / 16) mov edi, ecx KniNt128WriteInner:: movntps rEDI, 0, 0 ; store xmm0 at [edi] add edi, 16 dec edx jnz KniNt128WriteInner dec eax sfence jnz KniNt128WriteOuter emms pop edi ; restore edi and return fstRET KniNt128Write fstENDP KniNt128Write cPublicFastCall Kni128Read,1 cPublicFpo 0, 0 push edi mov eax, READ_ITERATIONS Kni128ReadOuter:: mov edx, (NUM_BYTES / 16) mov edi, ecx Kni128ReadInner:: movaps_toreg rEDI, 0, 0 ; read xmm0 from [edi] add edi, 16 dec edx jnz Kni128ReadInner dec eax jnz Kni128ReadOuter pop edi ; restore edi and return fstRET Kni128Read fstENDP Kni128Read _TEXT ends end
21.227979
76
0.471565
fd3333fd7845413df2f3bc87eff172ee00adff3a
1,278
asm
Assembly
code/integer_calc/macos/icalc.asm
HudsonSchumaker/x86_64-NSAM
833d27cdb76775050192079c1b1f7d657d41f712
[ "MIT" ]
null
null
null
code/integer_calc/macos/icalc.asm
HudsonSchumaker/x86_64-NSAM
833d27cdb76775050192079c1b1f7d657d41f712
[ "MIT" ]
null
null
null
code/integer_calc/macos/icalc.asm
HudsonSchumaker/x86_64-NSAM
833d27cdb76775050192079c1b1f7d657d41f712
[ "MIT" ]
1
2020-10-18T12:56:31.000Z
2020-10-18T12:56:31.000Z
; O3 Ozone Project Lab ; icalc.asm ; Hudson Schumaker bits 64 section .data section .bss section .text global _o3add, _o3sub, _o3mult, _o3pow, _o3div, _o3inc, _o3dec ; entry points _o3add: mov rax, rdi ; 1st arg, moved to rax add rax, rsi ; 2sd arg, added to rax(rdi value) ret ; return, rax has the sum value _o3sub: mov rax, rdi ; 1st arg, moved to rax sub rax, rsi ; 2sd arg, subtracted from rax ret ; return, rax has the subtraction value _o3mult: mov rax, rdi ; 1st arg, moved to rax imul rsi ; 2sd arg, multiply rsi with rax (rdi vale) ret ; return, rax has the result _o3pow: mov rax, rdi‚ ; 1st arg, moved to rax imul rdi ; 2sd arg, rax(rdi) * rdi -> rdi * rdi ret ; return, rax has the result _o3div: mov rax, rdi ; 1st arg, moved to rax mov rdx, 0 ; rdx needs to be 0 before idiv idiv rsi ; 2sd arg, divide rax(rdi value) by rsi ret ; return, rax has the result _o3inc: mov rax, rdi ; 1st arg, moved to rax inc rax ; increment in 1 (++) ret ; return, rax has the result _o3dec: mov rax, rdi ; 1st arg, moved to rax dec rax ; decrement in 1 (--) ret ; return, rax has the result
27.191489
79
0.600939
cb21627ec150d396be8e0d68ffe7b2db99a3ec5f
488
asm
Assembly
programs/oeis/246/A246416.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/246/A246416.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/246/A246416.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A246416: A permutation of essentially the duplicate nonnegative numbers: a(4n) = n + 1/2 - (-1)^n/2, a(2n+1) = a(4n+2) = 2n+1. ; 0,1,1,3,2,5,3,7,2,9,5,11,4,13,7,15,4,17,9,19,6,21,11,23,6,25,13,27,8,29,15,31,8,33,17,35,10,37,19,39,10,41,21,43,12,45,23,47,12,49,25,51,14,53,27,55,14,57,29,59,16,61,31,63,16,65,33,67,18,69,35,71,18,73,37,75,20,77,39,79,20,81,41,83,22,85,43,87,22,89,45,91,24,93,47,95,24,97,49,99 dif $0,2 seq $0,212831 ; a(4*n) = 2*n, a(2*n+1) = 2*n+1, a(4*n+2) = 2*n+2.
81.333333
282
0.608607
a3a0a1620abf92acf0eda7fa08c375c7a0694743
27,742
asm
Assembly
Library/Kernel/Graphics/graphicsRegionPath.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Kernel/Graphics/graphicsRegionPath.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Kernel/Graphics/graphicsRegionPath.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: Kernel/Graphics/RegionPaths FILE: graphicsRegionPath.asm AUTHOR: Gene Anderson, Apr 1, 1990 ROUTINES: Name Description ---- ----------- EXT GrRegionPathInit Allocate/initialize a region for paths. EXT GrRegionPathClean Remove duplicate lines from a region. EXT GrRegionPathMovePen Move current pen position in region. EXT GrRegionPathAddOnOffPoint Add a point to the given region. EXT GrRegionPathAddLineAtCP Add a line to the given region. EXT GrRegionPathAddBezierAtCP Add a Bezier curve to the given region. EXT GrRegionPathAddPolygon Add a polygon to the given region EXT GrRegionPathAddPolyline Add a polyline to the given region REVISION HISTORY: Name Date Description ---- ---- ----------- Gene 4/ 1/90 Initial revision Don 7/24/91 Broke out routines to be globally accessible DESCRIPTION: Contains routines for generating regions based on a path described by lines, Bezier curves, and polygons. They are used by the font driver for generating large characters, the Window system for generating transformed clipping regions, and by the rotated ellipse code for generating filled ellipses. SAMPLE USAGE: ; ; Initialize the region, and move the pen to the starting point. ; reg = RegionInit(min_y, max_y); RegionMovePen(reg,0,0); ; ; Add lines, curves, polygons, etc. ; RegionAddLineAtCP(reg,x1,y1); ... RegionAddBezierAtCP(reg,x5,y5,x6,y6,x7,y7); ; ; IMPORTANT: Remove duplicate lines from region. ; size = RegionClean(reg); ; ; Do whatever we want with the region... ; GrDrawRegion(reg); ; ; IMPORTANT: Free the block the region is stored in. ; MemFree(reg); $Id: graphicsRegionPath.asm,v 1.1 97/04/05 01:12:39 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Regions and Paths %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ABOUT THE ROUTINES: The routines in this file are designed for generating arbitrary regions from points, lines, Bezier curves and polygons. They were originally written for use by the Nimbus font driver for generating large characters. (The PC/GEOS graphics system stores characters larger than 128 lines high as regions instead of bitmaps, as they are more compact and frequently quicker to draw.). As such, they are designed around usage by the font driver. The routines REGION_INIT and REGION_ADD_ON_OFF_POINT are used by the Nimbus driver for generating regions from the hinted character definition. Instead of setting points in a bitmap, they are set in a region. The routines REGION_MOVE_PEN, REGION_ADD_LINE_CP, and REGION_ADD_BEZIER correspond directly to the character definition commands and are used for generating unhinted (ie. large) characters. ABOUT CHARACTERS: The Nimbus routines create bitmaps through clever use of the winding fill rule. Points on the outside of characters run counter- clockwise, and points on the inside of characters run clockwise. This allows the code to correctly set points in the bitmap by setting the starting point and inverting all points to the end of the line. This works because the points on a line always come in pairs. Points lying outside the character body get inverted an even number of times. Points lying inside get inverted an odd number of times, ending with them turned on, the correct state. However, since the character components do not cross themselves, the simpler even/odd rule can be used. ABOUT REGIONS: After some simple research, the average number of on/off points in a character was determined to be ~3.4. (for unrotated characters -- for rotated characters, the number will generally be higher). As a result of this research, I decided on 4 as a good number. To keep from resizing too frequently, the region is initialized such that each line has some unused points allocated on it. These are marked with UNUSED_POINT. This means the initial region will something like: word left, top, right, bottom ;bounding rectangle word line#1, UNUSED, ..., UNUSED, EOREGREC word line#2, UNUSED, ..., UNUSED, EOREGREC ... word line#n, UNUSED, ..., UNUSED, EOREGREC word EOREGREC ;end-of-region The unused points will be replaced with points as they are set on each line. If we get to the unpleasant state of no more unused points on a line, resizing the region block may become necessary. We check for any remaining bytes at the end of the block, and use them first. Only if the block is full do we do the actual (potentially unpleasant) resizing. After the character is entirely generated, the region will be scanned for adjacent duplicate lines and any remaining unused points, as the concept of unused points is nonstandard (ie. the rest of the graphics system will barf or do weird things with these values in). ABOUT PATHS: These routines could be used (with appropriate clipping in the rasterization routines) to generate a smaller section of the region to avoid hitting the 64K boundary. This will be necessary when paths are fully implemented in release 2 as arbitrary paths can include any component from the graphics system (eg. points, lines, text, etc.) and could grow large very quickly. The easiest way to do this would be to add a check in SetPointInRegion() to do nothing if the point is out of bounds. Checks could also be added to trivial reject lines and curves if they are out of bounds. (note: with Bezier curves, the easiest/safest way may be to use the bounding rectangle of the control points and see if that is in the region being generated) Note, however, because the components are added arbitrarily, these routines only do the even/odd fill rule. (The Nimbus routines rely on this rule being used or a full blown non-zero winding rule being implemented.) If we are going to be compatible with PostScript (and make the graphics system more versatile), then it will be necessary to modify these routines to implement the non-zero winding rule as well. Also, these routines currently don't deal with adding new lines to the region definition because the bounds are known ahead of time. It may be necessary to add this functionality. See FindRegionLine() in KLib/Graphics/graphicsRegionRaster.asm. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GraphicsRegionPaths segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrRegionPathInit %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Allocate and initialize a region for use by the path routines during rasterization. CALLED BY: GLOBAL PASS: di - 0 for new block, handle to realloc old block ch - initial # of on/off points per line (>= MIN_REGION_POINTS) cl - RegionFillRule bp - minimum y dx - maximum y RETURN: es - seg addr of region block cx - size of block (in bytes) DESTROYED: none PSEUDO CODE/STRATEGY: This routine initializes the lines in the region to have the passed number of on/off points per line. This routine also initializes optimizations like the current line and current line pointer, as well as a variety of other information. See the beginning of this file for more details. KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 4/ 1/90 Initial version don 7/24/91 Changed name & made globally accessible %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrRegionPathInit proc far uses ax, bx, dx, di, si, ds, bp .enter ; Some error checking ; EC < cmp ch, MIN_REGION_POINTS > EC < ERROR_B GRAPHICS_REGION_NOT_ENOUGH_POINTS > EC < cmp cl, RegionFillRule > EC < ERROR_A GRAPHICS_REGION_ILLEGAL_REGION_FILL_RULE > CheckHack <RFR_ODD_EVEN eq 0> CheckHack <RFR_WINDING eq 1> ; Set up for allocation our Region block ; mov al, ch ;al <- # on/off points clr ah shl ax, cl ;if RFR_WINDING, need 2*points push ax ;save # on/off points shl ax, 1 ;ax <- size of points / line add ax, REGION_LINE_SIZE ;add space for line #, EOLN dec bp ;for region start... add dx, 2 ;for safety... push dx ;save maximum y sub dx, bp ;dx <- # of lines push dx ;save # of scan lines mul dx ;ax <- size of region block EC < ERROR_C GRAPHICS_REGION_TOO_BIG ; > add ax, size RegionPath + 2 ;add space for header, EOR mark push ax ;save block size push cx ;save RegionFillRule ; Either allocate or re-allocate ; tst di ;see if alloc or realloc jnz doRealloc ;branch if realloc mov cx, mask HF_SWAPABLE \ or mask HF_SHARABLE \ or (mask HAF_LOCK shl 8) \ or (mask HAF_NO_ERR shl 8) ;cl, ch <- alloc flags call MemAllocFar jmp afterAlloc doRealloc: mov bx, di ;bx <- handle of block mov ch, mask HAF_LOCK or mask HAF_NO_ERR call MemReAlloc ; Now initialize the RegionPath ; afterAlloc: mov ds, ax ;ds <- RegionPath segment mov es, ax ;es <- RegionPath segment pop cx ;restore RegionFillRule mov ds:RP_handle, bx ;store handle pop ds:RP_size ;store size (in bytes) mov ds:RP_curLine, bp ;init current line mov ds:RP_y_min, bp ;store minimum y mov ds:RP_fillRule, cl ;store the RegionFillRule mov di, offset RP_bounds mov ax, 0x7fff stosw ;left stosw ;top mov ax, 0x8000 stosw ;right stosw ;bottom mov ds:[RP_lastSet].P_x, ax ; init these to something wierd mov ds:[RP_lastSet].P_y, ax ; so they won't match 1st off mov ds:[RP_flags], al ;clear all flags pop cx ;cx <- # of scan lines pop ds:RP_y_max ;store maximum y mov bx, bp ;bx <- initial line mov ds:RP_curPtr, di ;init current line ptr pop dx ;dx <- # of points / line mov si, dx lineLoop: mov ax, bx ;ax <- line # stosw ;store line # mov ax, UNUSED_POINT xchg cx, dx ;cx <- # of points / line rep stosw ;mark unused points mov cx, dx ;cx <- # of scan lines mov dx, si ;dx <- # of points / line mov ax, EOREGREC ;mark end of line stosw inc bx ;next line # loop lineLoop stosw ;mark end of region mov ds:RP_endPtr, di ;store end of region ptr mov cx, ds:RP_size ;cx <- size (in bytes) EC < sub di, 2 ;di beyond last write > EC < cmp di, cx ; > EC < ERROR_A GRAPHICS_REGION_OVERDOSE ;gone too far > .leave ret GrRegionPathInit endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrRegionPathClean %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Check a region for duplicate lines and unused entries. CALLED BY: GLOBAL PASS: es - seg addr of RegionPath RETURN: cx - size of region (in bytes) DESTROYED: none PSEUDO CODE/STRATEGY: Register Usage: dx = offset of current dest bx = offset of previous dest ds:si = source (always >= dest) es:di = dest bp = right flag (non-zero if right point) KNOWN BUGS/SIDE EFFECTS/IDEAS: The block is *NOT* resized to the region size. REVISION HISTORY: Name Date Description ---- ---- ----------- eca 3/ 1/90 Initial version don 7/24/91 Changed name & made globally accessible %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrRegionPathClean proc far uses ax, bx, dx, di, si, bp, ds .enter segmov ds, es, ax ; ; See if the bounds make sense. If they don't, we haven't ; actually set any points in the region, and so it is ; empty. Deal with this specially, as to keep the rest of ; the graphics system from spewing vomit... ; mov ax, ds:RP_bounds.R_left cmp ax, ds:RP_bounds.R_right jg nullRegion mov ax, ds:RP_bounds.R_top cmp ax, ds:RP_bounds.R_bottom jg nullRegion mov di, size RegionPath ;skip reigon/path header mov si, di ;ds:si <- ptr to source mov dx, di ;dx <- current line ptr clr bx ;no previous line lineLoop: cmp ds:[si], EOREGREC ;see if end of region EC < call ECCheckOffset ;check within block> movsw ;copy line number LONG je endRegion ;branch if end of region clr cx ;initialize counter for winding clr bp ;first point is a left point push di ;save start of line tst ds:[RP_fillRule] ;winding rule ?? jnz windingLoop ;yes, so deal with that ; ; Scan the next line, removing any unused points. ; cleanLoop: lodsw cmp ax, UNUSED_POINT ;see if unused point je cleanLoop ;if so, ignore it EC < call ECCheckOffset ;check within block> inc cx ;increment word-in-line count cmp ax, EOREGREC ;see if end of line jz endOfLine tst bp jz notRightPoint dec ax notRightPoint: xor bp, 1 stosw jmp cleanLoop ; ; See if the line we just copied is the same as the ; previous line. If so, we can combine the two. CX holds ; the number of words (including the EOREGREC) in the last line ; endOfLine: stosw pop cx ;start of line => CX sub cx, di ;subtract end of line neg cx shr cx, 1 ;# of words in line => CX test cx, 1 ;if even # of words, then jz badLine ;...we'd better fix this line compareLines: push si, di mov si, bx add si, 2 ;ds:si <- previous line data mov di, dx add di, 2 ;es:di <- current line data repe cmpsw ;compare lines pop si, di je same mov bx, dx ;bx <- new previous line mov dx, di ;dx <- new current line jmp lineLoop ; ; If we have an even number of words on a line, then we need to ; ignore the last ON point. This situation could arise either ; if the caller is stupid and doesn't know how to build a region, ; or if we run out of memory (the more likely case). ; ; Note: words on a line are: ; <line #>, <on #1>, <off #1>, ..., <EOREGREC> ; badLine: sub di, 2 ;ignore last ON point mov es:[di-2], ax ;store the EOREGREC jmp compareLines ;now compare the lines ; ; The region is NULL. Here we make the region a properly NULL region, ; including making the bounds something interesting... ; PASS: ds = es = seg addr of RegionPath ; RETURN: di = size of RegionPath and data ; nullRegion: mov ax, EOREGREC mov cx, (size Rectangle)/2 + 2 mov di, offset RP_bounds rep stosw jmp doneWithRegion ; ; Deal with winding rule ; CX = cumulative up/down count (up = +1, down = -1) ; BP = left/right flag (0 = looking for left, 1 = looking for right) ; windingCleanLoop: xchg cx, ax ;up/down count => CX, trash AX windingNextLoop: add si, 2 ;go past up/down word windingLoop: lodsw cmp ax, UNUSED_POINT ;see if unused point je windingNextLoop ;if so, ignore it EC < call ECCheckOffset ;check within block> cmp ax, EOREGREC ;see if end of line je endOfLine ;if so, we're outta here tst bp ;if looking for right jz notRightPoint2 dec ax ;...decrement right side notRightPoint2: xor bp, 1 ;swap side we're looking for stosw ;store the point mov ax, ds:[si] ;up/down count => AX add ax, cx ;running total => AX tst <{word} ds:[si]> jz ignorePoint ;if count = 0, then ignore point jcxz windingCleanLoop ;if change from 0, keep point tst ax jz windingCleanLoop ;or if change to 0, keep point ignorePoint: xor bp, 1 ;undo change - point skipped sub di, 2 ;speed is important, so use sub jmp windingCleanLoop ;remove point, and loop again ; ; We found two lines with the same on/off points ; same: inc {word}ds:[bx] ;increment line number mov di, dx ;back up dest if same jmp lineLoop endRegion: ; ; We are at the end of the region, but more likely than not there is ; an empty band in the region -- nuke it ; ; last band is empty -> di points at D: $ <lastY> $ $ D ; last band not empty -> di points at D: $ <lastY> X1 Y1 $ $ D ; cmp ds:[di-8], EOREGREC jnz doneWithRegion ; ; transform: ; di points at D: $ <lastY> $ $ D ; to: ; di points at D: $ $ D sub di, 4 mov {word} ds:[di-2], EOREGREC doneWithRegion: mov cx, di ;ax <- size of region mov ds:RP_endPtr, di ;store size of region ; ; Check to make sure we have a line at the start of the ; form: "<y1-1>: EOREGREC" to signify there is nothing before ; the region. ; cmp ds:RP_eor, EOREGREC ;empty line at start? jne noEmptyLine ;branch if no empty line done: .leave ret ; ; The region has no empty line at the start. Add one or die... ; PASS: dx = es = seg addr of RegionPath ; cx = size of RegionPath and data ; RETURN: cx = updated noEmptyLine: mov ax, (size RP_data + size RP_eor) ;ax <- add space for blank line add cx, ax ;cx <- new size push cx mov di, offset RP_data ;es:di <- ptr to insertion point call RegionAddSpace ;add space for blank line mov ax, ds:RP_y_min dec ax ;ax <- y1-1 mov ds:RP_data, ax ;<- store y1-1 mov ds:RP_eor, EOREGREC ;<- store EOR pop cx jmp done GrRegionPathClean endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrRegionPathMovePen %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Set current pen position in region/path. CALLED BY: GLOBAL PASS: (cx,dx) - position to set pen to (Point) es - seg addr of RegionPath RETURN: es - seg addr of RegionPath DESTROYED: none PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 4/ 2/90 Initial version don 7/24/91 Changed name & made globally accessible %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrRegionPathMovePen proc far .enter mov es:RP_pen.P_x, cx mov es:RP_pen.P_y, dx .leave ret GrRegionPathMovePen endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrRegionPathAddOnOffPoint %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Add an on/off point to a region/path. CALLED BY: GLOBAL PASS: (cx,dx) - point to add (Point) es - seg addr of RegionPath RETURN: es - (new) seg addr of RegionPath DESTROYED: ax, bx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: The region pen position is *NOT* updated. REVISION HISTORY: Name Date Description ---- ---- ----------- eca 4/ 2/90 Initial version don 7/24/91 Changed name & made globally accessible %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrRegionPathAddOnOffPoint proc far uses cx, dx .enter mov bx, RPD_DOWN ;points are always down ?! call SetPointInRegion ;add point into region .leave ret GrRegionPathAddOnOffPoint endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrRegionPathAddLineAtCP %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Add a line segment to a region/path. CALLED BY: GLOBAL PASS: (cx,dx) - end point of line (Point) es - seg addr of RegionPath RETURN: es - (new) seg addr of RegionPath DESTROYED: done PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- eca 4/ 1/90 Initial version don 7/24/91 Changed name & made globally accessible %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GrRegionPathAddLineAtCP proc far uses ax, bx, cx, dx, bp .enter mov ax, es:RP_pen.P_x mov bx, es:RP_pen.P_y ;(ax,bx) <- endpoint 0 call RasterLine ;scan convert line into region .leave GOTO GrRegionPathMovePen ;set pen to p1 GrRegionPathAddLineAtCP endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrRegionPathAddBezierAtCP %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Add a Bezier curve to a region/path. CALLED BY: GLOBAL PASS: ds:di - ptr to Bezier points (RegionBezier) (RB_p0 is set to pen position) if (bp != 0) { bp:cx - ptr to top of stack } else { cx - maximum stack depth / maximum accuracy } es - seg addr of RegionPath RETURN: es - (new) seg addr of RegionPath DESTROYED: none PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: ASSUMES: IntRegionPoint == WBFixed[2]; ASSUMES: size(WBFixed) == 3; The "stack" passed is used for rasterizing the Bezier curves. The routine uses parametric midpoint subdivision until the curve is short enough or straight enough to be considered a line. More precision requires a larger stack. The Nimbus driver uses a 5K stack, of which 2.5K is actually used. (This is when generating a 1024 point Roman character at 300dpi, or the equivalent of more than a 4200 point Roman character at 72dpi) REC_BEZIER_STACK is a recommended stack size (not in bytes) to pass in cx if a stack is to be allocated. REVISION HISTORY: Name Date Description ---- ---- ----------- eca 4/ 1/90 Initial version don 7/24/91 Changed name & made globally accessible %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if FULL_EXECUTE_IN_PLACE CopyStackCodeXIP segment resource GrRegionPathAddBezierAtCP proc far mov ss:[TPD_callVector].segment, size RegionBezier mov ss:[TPD_dataBX], handle GrRegionPathAddBezierAtCPReal mov ss:[TPD_dataAX], offset GrRegionPathAddBezierAtCPReal GOTO SysCallMovableXIPWithDSDIBlock GrRegionPathAddBezierAtCP endp CopyStackCodeXIP ends else GrRegionPathAddBezierAtCP proc far FALL_THRU GrRegionPathAddBezierAtCPReal GrRegionPathAddBezierAtCP endp endif GrRegionPathAddBezierAtCPReal proc far uses ax, bx, cx, dx, bp, ds, di, si .enter mov si, di ;ds:si <- ptr to RegionBezier push ds:[si].RB_p3.P_x push ds:[si].RB_p3.P_y ;save last point tst bp ;see if stack passed jnz stackPassed ;branch if stack passed mov ax, size IntRegionBezier mul cx ;ax == size of stack block push ax ;save stack ptr mov cx, mask HF_DISCARDABLE or \ (mask HAF_LOCK shl 8) or \ (mask HAF_NO_ERR shl 8) ;cl,ch <- HeapAllocFlags EC < ERROR_C GRAPHICS_REGION_TOO_BIG ;> call MemAllocFar mov bp, ax ;bp <- stack seg addr pop di ;di <- stack ptr push bx ;save handle jmp afterStack stackPassed: mov di, cx ;bp:di <- ptr to stack clr ax ;ax <- flag: stack passed push ax ;save no handle afterStack: ; ; Pass the initial points, p1-p3: ; push es mov es, bp sub di, size IntRegionBezier ;es:di <- ptr to 1st params push di add di, offset IRB_p1 ;es:di <- ptr to p1 mov cx, (size IntRegionBezier) / (size IntRegionPoint) - 1 clr al ;al <- fractional position argLoop: stosb ;store x fraction (=0) movsw ;copy x position stosb ;store y fracion (=0) movsw ;copy y position loop argLoop ;loop while more args pop es, si ; ; Set the initial point, p0, to the pen position: ; mov ds, bp ;ds:si <- stack ptr mov ds:[si].IRB_p0.IRP_x.WBF_frac, al mov ds:[si].IRB_p0.IRP_y.WBF_frac, al mov ax, es:RP_pen.P_x mov ds:[si].IRB_p0.IRP_x.WBF_int, ax mov ax, es:RP_pen.P_y mov ds:[si].IRB_p0.IRP_y.WBF_int, ax mov bp, offset RasterLine call RasterBezier ;scan convert Bezier into region pop bx ;bx <- handle, if any tst bx ;see if stack passed jz done ;yes, we're done call MemFree ;else, free our stack done: pop dx pop cx call GrRegionPathMovePen ;set pen to p3 .leave ret GrRegionPathAddBezierAtCPReal endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrRegionPathAddPolygon %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Add a polygon to the given region/path. CALLED BY: GLOBAL PASS: cx - # of points ds:di - ptr to points (Point[cx]) es - seg addr of RegionPath RETURN: es - (new) seg addr of RegionPath DESTROYED: none PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: As with all of the GrRegionPath routines, this currently does not deal with self-crossing paths with any rule other than the even/odd rule. This routine automatically closes the polygon by connecting the last point to first. REVISION HISTORY: Name Date Description ---- ---- ----------- eca 4/ 7/90 Initial version don 7/24/91 Changed name & made globally accessible %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if FULL_EXECUTE_IN_PLACE CopyStackCodeXIP segment resource GrRegionPathAddPolygon proc far ; ; Compute size of data in DS:DI (Point is 4 bytes) ; push cx shl cx, 1 shl cx, 1 mov ss:[TPD_callVector].segment, cx pop cx mov ss:[TPD_dataBX], handle GrRegionPathAddPolygonReal mov ss:[TPD_dataAX], offset GrRegionPathAddPolygonReal GOTO SysCallMovableXIPWithDSDIBlock GrRegionPathAddPolygon endp CopyStackCodeXIP ends else GrRegionPathAddPolygon proc far FALL_THRU GrRegionPathAddPolygonReal GrRegionPathAddPolygon endp endif GrRegionPathAddPolygonReal proc far uses cx, dx .enter ; Add the polyline to the RegionPath, and then close it ; push ds:[di].P_x push ds:[di].P_y call GrRegionPathAddPolylineReal ;add the polyline pop cx, dx ;(cx,dx) <- 1st point call GrRegionPathAddLineAtCP ;LINE_TO(cx,dx) .leave ret GrRegionPathAddPolygonReal endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GrRegionPathAddPolyline %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Add a polyline (multiple lines joined at the endpointd) to the RegionPath being built. CALLED BY: GLOBAL PASS: cx - # of points ds:di - ptr to points (Point[cx]) es - seg addr of RegionPath RETURN: es - (new) seg addr of RegionPath DESTROYED: none PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: As with all of the GrRegionPath routines, this currently does not deal with self-crossing paths with any rule other than the even/odd rule. REVISION HISTORY: Name Date Description ---- ---- ----------- Don 8/12/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ if FULL_EXECUTE_IN_PLACE CopyStackCodeXIP segment resource GrRegionPathAddPolyline proc far ; ; Compute size of data in DS:DI (Point is 4 bytes). ; push cx shl cx, 1 shl cx, 1 mov ss:[TPD_callVector].segment, cx pop cx mov ss:[TPD_dataBX], handle GrRegionPathAddPolylineReal mov ss:[TPD_dataAX], offset GrRegionPathAddPolylineReal GOTO SysCallMovableXIPWithDSDIBlock GrRegionPathAddPolyline endp CopyStackCodeXIP ends else GrRegionPathAddPolyline proc far FALL_THRU GrRegionPathAddPolylineReal GrRegionPathAddPolyline endp endif GrRegionPathAddPolylineReal proc far uses cx, dx, di .enter push cx mov cx, ds:[di].P_x mov dx, ds:[di].P_y call GrRegionPathMovePen ;set pen to 1st point pop cx dec cx ;one point used lineLoop: add di, size Point ;advance to next point push cx mov cx, ds:[di].P_x mov dx, ds:[di].P_y ;(cx,dx) <- current point call GrRegionPathAddLineAtCP ;LINE_TO(cx,dx) pop cx loop lineLoop ;loop while more points .leave ret GrRegionPathAddPolylineReal endp GraphicsRegionPaths ends
31.170787
79
0.64624
e11a568fc4cc4c1fc8d3c240903c6ecd35a8cbc2
570
asm
Assembly
programs/oeis/057/A057569.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/057/A057569.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/057/A057569.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A057569: Numbers of the form k*(5*k+1)/2 or k*(5*k-1)/2. ; 0,2,3,9,11,21,24,38,42,60,65,87,93,119,126,156,164,198,207,245,255,297,308,354,366,416,429,483,497,555,570,632,648,714,731,801,819,893,912,990,1010,1092,1113,1199,1221,1311,1334,1428,1452,1550,1575,1677,1703,1809,1836,1946,1974,2088,2117,2235,2265,2387,2418,2544,2576,2706,2739,2873,2907,3045,3080,3222,3258,3404,3441,3591,3629,3783,3822,3980,4020,4182,4223,4389,4431,4601,4644,4818,4862,5040,5085,5267,5313,5499,5546,5736,5784,5978,6027,6225 mov $2,$0 lpb $0 trn $0,2 add $2,1 add $1,$2 lpe mov $0,$1
51.818182
444
0.719298
4eb3b2f798aee1afa0773d936d901372adcf70a5
1,163
asm
Assembly
programs/oeis/016/A016924.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/016/A016924.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/016/A016924.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A016924: a(n) = (6*n + 1)^4. ; 1,2401,28561,130321,390625,923521,1874161,3418801,5764801,9150625,13845841,20151121,28398241,38950081,52200625,68574961,88529281,112550881,141158161,174900625,214358881,260144641,312900721,373301041,442050625,519885601,607573201,705911761,815730721,937890625,1073283121,1222830961,1387488001,1568239201,1766100625,1982119441,2217373921,2472973441,2750058481,3049800625,3373402561,3722098081,4097152081,4499860561,4931550625,5393580481,5887339441,6414247921,6975757441,7573350625,8208541201,8882874001,9597924961,10355301121,11156640625,12003612721,12897917761,13841287201,14835483601,15882300625,16983563041,18141126721,19356878641,20632736881,21970650625,23372600161,24840596881,26376683281,27982932961,29661450625,31414372081,33243864241,35152125121,37141383841,39213900625,41371966801,43617904801,45954068161,48382841521,50906640625,53527912321,56249134561,59072816401,62001498001,65037750625,68184176641,71443409521,74818113841,78310985281,81924750625,85662167761,89526025681,93519144481,97644375361,101904600625,106302733681,110841719041,115524532321,120354180241,125333700625 mul $0,6 mov $1,1 add $1,$0 pow $1,4 mov $0,$1
129.222222
1,083
0.877042
d2cd6289ba68f18ab3ffef5834be146ede2da04e
18,567
asm
Assembly
tools/info_viewer/info_viewer_for_crp3.asm
alexanderbazhenoff/zx-spectrum-various
80cf61cb8cc6f9b5b1cd6ce9b0e394323afe346e
[ "MIT" ]
null
null
null
tools/info_viewer/info_viewer_for_crp3.asm
alexanderbazhenoff/zx-spectrum-various
80cf61cb8cc6f9b5b1cd6ce9b0e394323afe346e
[ "MIT" ]
null
null
null
tools/info_viewer/info_viewer_for_crp3.asm
alexanderbazhenoff/zx-spectrum-various
80cf61cb8cc6f9b5b1cd6ce9b0e394323afe346e
[ "MIT" ]
null
null
null
; This Source Code Form is subject to the terms of the MIT ; hLicense. If a copy of the MPL was not distributed with ; this file, You can obtain one at https://github.com/aws/mit-0 ; This is the info viewer for crack releases pack #3 by alx^bw. ; Never relesed. FONTADR EQU #6000 ATRBUF EQU #7000 TXTBUF EQU #8700 DEPBUF EQU #8100 SCR_ADR_TABL EQU #FF02 OVERLAYS EQU 2 TEST EQU 1 DISPLAY "info viewer for CRACK RELEASES PACK #3" DISPLIN DISPLAY "testmode is " IFN TEST DISPLAY /L,"on" ELSE DISPLAY /L,"off" ENDIF ;loader section ORG #5D3B INTRSECS EQU 29 MASK EQU 1+2+4+8+16 DB 0,1,#FF,#FF,#D9,#C0,"0" DB #0E,0,0 DW START DB 0 DB #16,0,0 DB "loader by alx/brainwave o4.o5.3" DB #10 START LD HL,#5B00 LD A,L OUT (#FE),A CLS_L DEC HL LD (HL),A CP (HL) JR Z,CLS_L LD HL,#6000 LD SP,HL LD B,INTRSECS LOADDR PUSH HL LOADDEP LD DE,(#5CF4) LD C,5 TR_DOS PUSH HL PUSH DE PUSH BC CALL TRDOS POP BC POP DE POP HL LD A,(23823) OR A JR NZ,TR_DOS DI LD D,H LD E,L ;---------------------------------- TableAdr EQU DEPBUF;[#05C0] Tree1Adr EQU TableAdr+#0000;[#0480] Tree2Adr EQU TableAdr+#0480;[#0080] BitLenTb1 EQU TableAdr+#0480;[#0120] BitLenTb2 EQU TableAdr+#05A0;[#0020] ;---------------------------------- Depack PUSH DE LD C,(HL) INC HL LD B,(HL) INC HL EX DE,HL ADD HL,BC EX DE,HL LD C,(HL) INC HL LD B,(HL) ADD HL,BC SBC HL,DE ADD HL,DE JR C,$+4 LD D,H LD E,L LDDR INC DE PUSH DE POP IX UnpackTree LD DE,BitLenTb1-1 PUSH DE LD BC,#1201 LD A,#10 SRL C CALL Z,GetNextByte RLA JR NC,$-6 INC DE LD (DE),A DJNZ $-12 PUSH BC LD DE,#0012 CALL Tree1Create POP BC POP DE UT0 CALL GetWord1 CP #10 JR C,UT1 JR Z,UT2 LD A,(DE) INC DE LD (DE),A UT1 INC DE LD (DE),A JR UT0 UT2 PUSH BC LD DE,#0120 CALL Tree1Create LD HL,BitLenTb2 LD BC,Tree2Adr LD DE,#0020 CALL TreeCreate POP BC POP DE XOR A PUSH AF CALL GetWord1 DEC H JR NZ,$-5 UnpackWord DEC DE CALL GetWord1 INC DE LD (DE),A PUSH AF AND MASK OUT (#FE),A XOR A OUT (#FE),A POP AF DEC H JR NZ,$-6-11+2 OR A JR Z,Stop CALL DecodeNum PUSH HL LD HL,Tree2Adr CALL GetWord OR A JR Z,UW1 CALL DecodeNum LD (LastDist),HL LD A,H UW1 POP HL CP #01 JR C,$+8 INC HL CP #20 JR C,$+3 INC HL PUSH BC LD B,H LD C,L LD H,D LD L,E PUSH DE LastDist EQU $+1 LD DE,#0000 OR A SBC HL,DE POP DE LDIR POP BC JR UnpackWord Stop POP AF RET Z LD (DE),A INC DE JR $-4 DecodeNum ADD A,-#05 RET NC ADD A,#05-#03 RRA LD L,#01 RL L SRL C CALL Z,GetNextByte ADC HL,HL DEC A JR NZ,$-8 INC HL RET GetWord1 LD HL,Tree1Adr GetWord SRL C CALL Z,GetNextByte JR NC,$+4 INC HL INC HL LD A,(HL) INC HL LD L,(HL) LD H,A CP #40 JR NC,GetWord LD A,L RET GetNextByte LD C,(IX) INC IX RR C RET Tree1Create LD HL,BitLenTb1 LD BC,Tree1Adr ;HL=Адрес таблицы длин слов ;BC=Адрес дерева ;DE=Длина таблицы длин слов TreeCreate INC DE DEC HL DEC HL PUSH BC EXX POP DE LD H,D LD L,E XOR A PUSH AF INC A PUSH HL PUSH AF LD C,A TC1 EXX LD B,D LD C,E ADD HL,BC EXX TC2 LD B,A LD A,C EXX CPDR LD A,B OR C EXX LD A,B JR NZ,TC4 INC C JR TC1 TC3 INC DE INC DE INC DE INC DE LD (HL),D INC HL LD (HL),E LD H,D LD L,E INC A PUSH HL PUSH AF TC4 CP C JR NZ,TC3 EXX PUSH BC EXX POP BC DEC BC LD (HL),B INC HL LD (HL),C LD C,A POP AF RET Z POP HL INC HL INC HL JR TC2 TRDOS PUSH HL LD HL,(23613) LD (ERR+1),HL LD HL,DRIA LD (#5CC3),HL LD HL,ERR EX (SP),HL LD (23613),SP LD A,#C3 LD (#5CC2),A XOR A LD (23824),A LD (23823),A DEC A LD (#5D15),A ; LD (23610),A LD (#5D17),A LD (SP2),SP JP #3D13 DERR LD SP,#3131 SP2 EQU $-2 LD (23823),A ERR LD HL,#2121 LD (23613),HL LD A,#C9 LD (#5CC2),A COMRET RET DRIA EX (SP),HL PUSH AF LD A,R IFN MASK AND MASK ENDIF OUT (#FE),A LD A,H CP 13 JR Z,RIA XOR A OR H JR NZ,NO_ERR LD A,L CP #10 JR Z,DERR NO_ERR XOR A OUT (#FE),A POP AF EX (SP),HL RET RIA DUP 3 POP HL EDUP LD A,"R" LD HL,#3F7E EX (SP),HL JP #3D2F ;main section ORG FONTADR INCBIN "viewer.f" DS #800,#00 ORG FONTADR+2 DI JP INSTALL ORG ATRBUF DS #300,#00 INSTALL LD HL,FONTADR LD DE,#4800 PUSH HL FONTCNV1 PUSH DE LD B,8 FONTCNV2 LD A,(HL) LD (DE),A RES 3,D DUP 4 ADD A,A EDUP LD (DE),A SET 3,D INC HL INC D DJNZ FONTCNV2 POP DE INC E JR NZ,FONTCNV1 LD HL,#4000 LD BC,#1000 POP DE LDIR LD A,#C9 LD (#5D92),A LD H,L LD (#5E02),HL LD H,#FE LD A,H DEC A INITIM2 LD (HL),A INC HL DJNZ INITIM2 LD (HL),A LD H,A LD L,A LD (HL),#C3 INC L LD (HL),.INT_SR INC L LD (HL),'INT_SR LD HL,(#5CF4) LD (DATA_TR_SEC),HL LD HL,#FF11 LD BC,#7FFD LD A,#10 OUT (C),A LD (HL),A OUT (C),L LD (HL),L OUT (C),A CP (HL) JR NZ,MODE_48 OUT (C),L PUSH BC LD HL,MUSIC LD DE,#C000 LD BC,EMUSIC-MUSIC LDIR POP BC OUT (C),A XOR A LD (MUSPLAY),A LD (MUSINIT),A LD (MUSSHUT),A MODE_48 CALL MUSINIT LD IX,SCR_ADR_TABL LD HL,ATRBUF LD DE,#4100 LD BC,#1820 SCR_AT1 PUSH BC LD (IX+0),E LD (IX+1),D LD (IX+2),L LD (IX+3),H DUP 4 INC IX EDUP LD B,0 ADD HL,BC LD A,E ADD A,#20 LD E,A JR NC,SCR_AT2 LD A,D ADD A,8 LD D,A SCR_AT2 POP BC DJNZ SCR_AT1 LD HL,COLOR_DATA LD DE,FONTADR+#200 LD BC,#0610 COLD_I1 PUSH BC,DE LD B,0 LDIR POP DE,BC INC D DJNZ COLD_I1 LOAD_BLOK DI CALL MUSSHUT XOR A LD I,A IM 1 LD IY,#5C3A LD HL,#2758 EXX LD A,#00 BLOK_NO EQU $-1 DUP 2 ADD A,A EDUP LD E,A LD D,0 LD HL,BLOK_INDEX ADD HL,DE LD A,(HL) INC HL LD E,(HL) INC HL LD D,(HL) INC HL LD B,(HL) OR A JR Z,sec_nad INC B sec_nad LD HL,#2121 DATA_TR_SEC EQU $-2 PUSH AF tsc_adl LD A,D OR E JR Z,tsc_ade INC L BIT 4,L JR Z,tsc_nad INC H LD L,0 tsc_nad DEC DE JR tsc_adl tsc_ade EX DE,HL LD HL,TXTBUF PUSH HL PUSH BC LD C,5 CALL #5D81 POP BC POP HL POP AF LD L,A LD DE,TXTBUF PUSH DE LDIR DI LD A,#FE LD I,A IM 2 EI POP HL PUSH HL LD E,(HL) INC HL LD D,(HL) DEC HL PUSH DE CALL #5D93 POP DE,HL XOR A ADD HL,DE INC HL LD (HL),A INC HL LD (HL),A INC HL LD (PAGS_TABL_ADR),HL LD DE,TXTBUF LD (HL),E INC HL LD (HL),D INC HL PAGS_I0 LD B,24 PAGS_I1 LD A,(DE) INC DE OR A JR Z,PAGS_IE CP #0D JR NZ,PAGS_I1 DJNZ PAGS_I1 LD (HL),E INC HL LD (HL),D INC HL JR PAGS_I0 PAGS_IE LD (HL),#FF INC HL LD (HL),#FF LD A,#3F LAST_PAGE_SW EQU $-1 OR A JR NZ,NO_LAST_PAGE DEC HL,HL,HL LD (PAGS_TABL_ADR),HL LD A,H LD (LAST_PAGE_SW),A NO_LAST_PAGE PAGE_PRINT HALT XOR A LD (OUT_ATR_SW),A LD HL,#5B00 LD B,9 CALL STEK_CLEAR LD HL,#5000 CALL STEK_CLEAR0 LD HL,#4800 CALL STEK_CLEAR0 LD BC,'FONTADR+1*#100+'FONTADR+9 EXX LD IX,SCR_ADR_TABL LD HL,#2121 PAGS_TABL_ADR EQU $-2 LD E,(HL) INC HL LD D,(HL) LD B,24 JP PR_NEXTLINE1 PRINT_L0 LD A,(DE) INC DE CP #0D JP Z,PR_NEXTLINE1 OR A JP Z,PRINT_END ; CP #20 ;если текст содержит строки неначина- ; JP NC,PRINT_1 ;ющиеся с цветового кода, то ;добавить эти строки LD C,A PRINT_L1 LD A,(DE) INC DE CP #21 JP NC,PRINT_1 CP #0D JR Z,PR_NEXTLINE1 CP #20 JP Z,PR_SPACE1 LD C,A LD (HL),C PRINT_L2 LD A,(DE) INC DE CP #21 JP NC,PRINT_2 CP #0D JR Z,PR_NEXTLINE1 CP #20 JP Z,PR_SPACE2 LD C,A INC L EXX INC L EXX JP PRINT_L1 PRINT_1 LD (HL),C EXX LD D,B LD E,A PUSH HL DUP 6 LD A,(DE) LD (HL),A INC D INC H EDUP LD A,(DE) LD (HL),A POP HL EXX JP PRINT_L2 PRINT_2 LD (HL),C INC L EXX LD D,C LD E,A PUSH HL DUP 6 LD A,(DE) OR (HL) LD (HL),A INC D INC H EDUP LD A,(DE) OR (HL) LD (HL),A POP HL INC L EXX JP PRINT_L1 PR_SPACE1 LD (HL),C JP PRINT_L2 PR_SPACE2 INC L EXX INC L EXX JP PRINT_L1 PR_NEXTLINE1 LD L,(IX+2) LD H,(IX+3) EXX LD L,(IX+0) LD H,(IX+1) EXX DUP 4 INC IX EDUP DEC B JP NZ,PRINT_L0 ;end of print page PRINT_END LD A,H LD (OUT_ATR_SW),A DUP 3 HALT EDUP MAIN_CYCLE HALT LD HL,KEYBUF+1 BIT 0,(HL) JR Z,PAGE_DOWN INC HL BIT 0,(HL) JR Z,PAGE_UP IFN TEST BIT 1,(HL) JR Z,EXIT_OUT ENDIF INC HL LD A,(KEYBUF) RRA JR NC,KEY_WITH_CAPS BIT 2,(HL) JR Z,PAGE_DOWN BIT 3,(HL) JR Z,PAGE_UP INC HL BIT 2,(HL) JR Z,PAGE_DOWN BIT 1,(HL) JR Z,PAGE_UP KEY_SLI INC HL INC HL INC HL BIT 3,(HL) JR NZ,NO_CPAL LD A,(TABL_ATR_ADR) INC A INC A CP 'FONTADR+7 JR C,NB_CPAL LD A,'FONTADR+2 NB_CPAL DUP 8 HALT EDUP LD (TABL_ATR_ADR),A NO_CPAL BIT 2,(HL) JR NZ,NO_SMUS HALT LD A,(MUS_PLAY_SW) CPL OR A LD (MUS_PLAY_SW),A CALL MUSINIT DUP 8 HALT EDUP NO_SMUS JR MAIN_CYCLE KEY_WITH_CAPS BIT 3,(HL) JR Z,PAGE_DOWN BIT 2,(HL) JR Z,PAGE_UP INC HL BIT 4,(HL) JR Z,PAGE_DOWN BIT 3,(HL) JR Z,PAGE_UP JR KEY_SLI IFN TEST EXIT_OUT DI CALL MUSINIT XOR A LD I,A IM 1 EI RET ENDIF PAGE_UP LD HL,(PAGS_TABL_ADR) DEC HL LD D,(HL) DEC HL LD E,(HL) JR PAGE_UND PAGE_DOWN LD HL,(PAGS_TABL_ADR) INC HL INC HL LD E,(HL) INC HL LD D,(HL) DEC HL PAGE_UND LD (PAGS_TABL_ADR),HL LD A,E OR D JR Z,L_PRV_BLOK INC DE LD A,E OR D JR Z,L_NXT_BLOK XOR A LD (OUT_ATR_SW),A JP PAGE_PRINT NL_NXT_BLOK LD HL,(PAGS_TABL_ADR) DEC HL DEC HL NL_NNP_BL LD (PAGS_TABL_ADR),HL JP MAIN_CYCLE NL_PRV_BLOK LD HL,(PAGS_TABL_ADR) INC HL INC HL JR NL_NNP_BL L_NXT_BLOK LD A,(BLOK_NO) CP OVERLAYS-1 JR Z,NL_NXT_BLOK INC A L_NNP_BL LD (BLOK_NO),A JP LOAD_BLOK L_PRV_BLOK LD A,(BLOK_NO) OR A JR Z,NL_PRV_BLOK DEC A EXA XOR A LD (LAST_PAGE_SW),A EXA JR L_NNP_BL ;stek clear STEK_CLEAR0 LD B,6 STEK_CLEAR LD DE,0 LD (STK_CL_SP),SP LD SP,HL STK_CL1 DUP #80 PUSH DE EDUP DEC B JP NZ,STK_CL1 DUP #7F PUSH DE EDUP LD (STK_CL_LB),SP LD SP,#3131 STK_CL_SP EQU $-2 LD HL,#2121 STK_CL_LB EQU $-2 DEC L LD (HL),E DEC L LD (HL),E RET KEYBUF DS 8,#C9 INT_SR DI LD (INT_SR_HL),HL POP HL LD (INT_SR_RET),HL LD (INT_SR_SP),SP LD SP,0 PUSH DE,BC,AF EXA EXX PUSH IX,HL,DE,BC,AF LD HL,KEYBUF LD BC,#FEFE LD E,8 KEY_RQL IN A,(C) AND #1F RLC B LD (HL),A INC HL DEC E JR NZ,KEY_RQL LD A,#FF MUS_PLAY_SW EQU $-1 OR A JR Z,NO_MUS_PLAY CALL MUSPLAY NO_MUS_PLAY LD A,#3F OUT_ATR_SW EQU $-1 OR A JR Z,NO_OUT_ATR LD BC,#5800 LD DE,ATRBUF LD H,'FONTADR+2 TABL_ATR_ADR EQU $-1 LD A,48 OUTATR EXA DUP #0F LD A,(DE) LD L,A LD A,(HL) INC E LD (BC),A INC C EDUP LD A,(DE) LD L,A LD A,(HL) INC DE LD (BC),A INC BC EXA DEC A JP NZ,OUTATR NO_OUT_ATR LD A,(TABL_ATR_ADR) XOR 1 LD (TABL_ATR_ADR),A POP AF,BC,DE,HL,IX EXA EXX POP AF,BC,DE LD SP,#3131 INT_SR_SP EQU $-2 LD HL,#2121 INT_SR_HL EQU $-2 EI JP #C3C3 INT_SR_RET EQU $-2 MUSPLAY RET LD BC,#7FFD LD DE,#1110 OUT (C),D PUSH DE,BC CALL #C005 POP BC,DE OUT (C),E RET MUSINIT RET LD BC,#7FFD LD DE,#1110 OUT (C),D PUSH DE,BC CALL #C000 POP BC,DE OUT (C),E RET MUSSHUT RET LD BC,#7FFD LD DE,#1110 OUT (C),D PUSH DE,BC CALL #C008 POP BC,DE OUT (C),E RET BLOK_INDEX INCBIN "index#02" COLOR_DATA ; #01,#02,#03,#04,#05,#06,#07,#08,#09,#0A,#0B,#0C,#0D,#0E,#0F ;2bitplaned pallete DB 0 DB #41,#43,#43,#44,#47,#46,#47,#41,#42,#41,#44,#44,#00,#47,#47 DB 0 DB #45,#42,#04,#45,#45,#45,#42,#43,#41,#06,#07,#46,#00,#41,#46 ;colour pallete DB 0 DB #41,#42,#43,#44,#45,#46,#47,#01,#02,#03,#04,#05,#00,#07,#06 DB 0 DB #41,#42,#43,#44,#45,#46,#47,#01,#02,#03,#04,#05,#00,#07,#06 ;monochrome pallete DB 0 DS 15,#47 DB 0 DS 15,#47 MUSIC INCBIN "view_mus.C" MUSIC2 INCBIN "viewmus2.C" EMUSIC END_OBJ DISPLAY "save [fname],#6000,",END_OBJ-#6000 ORG #5CF4 DW #2402 ORG FONTADR+2
18.061284
63
0.391609
557c1ed1bb069596b8453588824702a7d1e8ca1c
711
asm
Assembly
oeis/074/A074324.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/074/A074324.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/074/A074324.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A074324: a(2n+1) = 3^n, a(2n) = 4*3^(n-1) except for a(0) = 1. ; Submitted by Jamie Morken(s4) ; 1,1,4,3,12,9,36,27,108,81,324,243,972,729,2916,2187,8748,6561,26244,19683,78732,59049,236196,177147,708588,531441,2125764,1594323,6377292,4782969,19131876,14348907,57395628,43046721,172186884,129140163,516560652,387420489,1549681956,1162261467,4649045868,3486784401,13947137604,10460353203,41841412812,31381059609,125524238436,94143178827,376572715308,282429536481,1129718145924,847288609443,3389154437772,2541865828329,10167463313316,7625597484987,30502389939948,22876792454961,91507169819844 mov $1,2 lpb $0 sub $0,1 mov $2,$3 mul $2,3 mov $3,4 add $3,$1 mov $1,$2 lpe mov $0,$2 div $0,6 add $0,1
41.823529
495
0.770745
830268a3d4a9d2bb19307ba13e2005c756e70a41
8,056
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i3-7100_9_0xca_notsx.log_21829_359.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i3-7100_9_0xca_notsx.log_21829_359.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i3-7100_9_0xca_notsx.log_21829_359.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r13 push %r15 push %rcx push %rdi push %rdx push %rsi lea addresses_D_ht+0x3668, %rsi lea addresses_D_ht+0x49e6, %rdi nop xor %r15, %r15 mov $0, %rcx rep movsl nop nop nop nop nop add %r11, %r11 lea addresses_normal_ht+0xe226, %rsi lea addresses_D_ht+0x1dc26, %rdi dec %r13 mov $87, %rcx rep movsl nop nop xor $49423, %rdi lea addresses_UC_ht+0x12366, %rdi inc %r15 vmovups (%rdi), %ymm5 vextracti128 $1, %ymm5, %xmm5 vpextrq $1, %xmm5, %rcx nop nop nop nop and $30416, %rsi lea addresses_UC_ht+0x1b826, %rdi nop nop nop add %rdx, %rdx movw $0x6162, (%rdi) nop nop sub %r11, %r11 lea addresses_WT_ht+0x5526, %rsi nop nop add %r13, %r13 mov (%rsi), %ecx nop nop nop nop nop cmp $55895, %r15 lea addresses_A_ht+0x3026, %rdx nop nop nop nop nop inc %r13 mov $0x6162636465666768, %r15 movq %r15, %xmm4 movups %xmm4, (%rdx) cmp $812, %r11 lea addresses_D_ht+0x1c026, %rsi lea addresses_WT_ht+0xb226, %rdi nop nop sub %r10, %r10 mov $71, %rcx rep movsw nop xor $23162, %r10 lea addresses_normal_ht+0x1092a, %r10 nop nop nop nop nop sub %r13, %r13 mov (%r10), %r15w and %rdi, %rdi lea addresses_UC_ht+0xafe6, %rdx clflush (%rdx) dec %r13 vmovups (%rdx), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $0, %xmm4, %r10 nop nop nop nop add $28280, %rdi lea addresses_D_ht+0xb826, %r15 nop nop nop nop add $8414, %rcx mov $0x6162636465666768, %r10 movq %r10, (%r15) nop nop inc %r11 lea addresses_UC_ht+0xf0d2, %rsi lea addresses_normal_ht+0x12146, %rdi nop xor $4767, %rdx mov $90, %rcx rep movsw xor %r10, %r10 lea addresses_WC_ht+0xfb26, %rcx nop xor $55301, %r13 movw $0x6162, (%rcx) cmp %r10, %r10 lea addresses_WT_ht+0x1904a, %r13 nop nop nop nop nop cmp $36135, %rsi mov $0x6162636465666768, %rdi movq %rdi, (%r13) nop nop nop nop dec %rsi lea addresses_normal_ht+0x9a26, %rsi lea addresses_D_ht+0x3026, %rdi nop nop nop and %r13, %r13 mov $72, %rcx rep movsl nop nop nop nop nop xor %r15, %r15 pop %rsi pop %rdx pop %rdi pop %rcx pop %r15 pop %r13 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r13 push %r14 push %r8 push %rax push %rbx push %rdi // Store lea addresses_D+0x16326, %r13 nop dec %rbx mov $0x5152535455565758, %r14 movq %r14, %xmm6 vmovntdq %ymm6, (%r13) nop nop nop xor %rdi, %rdi // Load lea addresses_WT+0x26, %r14 nop nop sub %r8, %r8 movb (%r14), %r11b xor %rbx, %rbx // Faulty Load mov $0x7098ce0000000826, %r14 nop add %rdi, %rdi mov (%r14), %r8w lea oracles, %rbx and $0xff, %r8 shlq $12, %r8 mov (%rbx,%r8,1), %r8 pop %rdi pop %rbx pop %rax pop %r8 pop %r14 pop %r13 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': True, 'type': 'addresses_D', 'size': 32, 'AVXalign': False}} {'src': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_WT', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_NC', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}} {'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}} {'src': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False}} {'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_A_ht', 'size': 16, 'AVXalign': False}} {'src': {'type': 'addresses_D_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}} {'src': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_UC_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_D_ht', 'size': 8, 'AVXalign': False}} {'src': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': True}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False}} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 2, 'NT': True, 'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': False}} {'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_D_ht', 'congruent': 10, 'same': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
34.135593
2,999
0.656529