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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a5c9224344f737d817ccbf8866f830a6b4b5773c | 869 | asm | Assembly | programs/oeis/101/A101861.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/101/A101861.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/101/A101861.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A101861: n*(n+5)*(50+45*n+n^2)/24.
; 24,84,194,369,625,979,1449,2054,2814,3750,4884,6239,7839,9709,11875,14364,17204,20424,24054,28125,32669,37719,43309,49474,56250,63674,71784,80619,90219,100625,111879,124024,137104,151164,166250,182409
mov $15,$0
mov $17,$0
add $17,1
lpb $17,1
clr $0,15
mov $0,$15
sub $17,1
sub $0,$17
mov $12,$0
mov $14,$0
add $14,1
lpb $14,1
clr $0,12
mov $0,$12
sub $14,1
sub $0,$14
mov $9,$0
mov $11,$0
add $11,1
lpb $11,1
mov $0,$9
sub $11,1
sub $0,$11
mov $1,14
mov $2,$0
mov $5,3
mov $7,3
lpb $2,1
div $7,3
lpb $5,1
mov $1,$2
add $1,$7
trn $2,$1
trn $5,$1
lpe
add $1,1
lpe
add $1,10
add $10,$1
lpe
add $13,$10
lpe
add $16,$13
lpe
mov $1,$16
| 17.734694 | 202 | 0.49252 |
4b63d1051bb5e0c85aaf83c4c95c6d372dabe544 | 697 | asm | Assembly | programs/oeis/043/A043569.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/043/A043569.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/043/A043569.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A043569: Numbers whose base-2 representation has exactly 2 runs.
; 2,4,6,8,12,14,16,24,28,30,32,48,56,60,62,64,96,112,120,124,126,128,192,224,240,248,252,254,256,384,448,480,496,504,508,510,512,768,896,960,992,1008,1016,1020,1022,1024,1536,1792,1920,1984,2016,2032,2040,2044,2046,2048,3072,3584,3840,3968,4032,4064,4080,4088,4092,4094,4096,6144,7168,7680,7936,8064,8128,8160,8176,8184,8188,8190,8192,12288,14336,15360,15872,16128,16256,16320,16352,16368,16376,16380,16382,16384,24576,28672,30720,31744,32256,32512,32640,32704
lpb $0
mov $2,$0
sub $0,1
seq $2,57728 ; A triangular table of decreasing powers of two (with first column all ones).
add $1,$2
lpe
add $1,1
mul $1,2
mov $0,$1
| 53.615385 | 460 | 0.74462 |
b2cd11c2073772a41019ae8f1c9b8779498aa37f | 700 | asm | Assembly | c_projects/project1/ch1-ch3/boot_sector_2.asm | darbinreyes/subparprogrammer | e3588adc494a69a564fe0a9859ff296fc710eab0 | [
"MIT"
] | null | null | null | c_projects/project1/ch1-ch3/boot_sector_2.asm | darbinreyes/subparprogrammer | e3588adc494a69a564fe0a9859ff296fc710eab0 | [
"MIT"
] | 1 | 2021-05-11T22:20:01.000Z | 2021-05-11T22:20:01.000Z | c_projects/project1/ch1-ch3/boot_sector_2.asm | darbinreyes/subparprogrammer | e3588adc494a69a564fe0a9859ff296fc710eab0 | [
"MIT"
] | null | null | null | ;
; A boot sector that prints to the screen using a BIOS routine.
;
mov ah, 0x0e ; int 0x10, ah = 0x0e specifies the scrolling teletype BIOS routine.
mov al, 'D' ; Set al to the character we want to print
int 0x10 ; Raise the 0x10 interrupt.
mov al, 'i'
int 0x10
mov al, 'j'
int 0x10
mov al, 'k'
int 0x10
mov al, 's'
int 0x10
mov al, 't'
int 0x10
mov al, 'r'
int 0x10
mov al, 'a'
int 0x10
jmp $ ; Jump to the current instruction - infinite loop.
;
; Padding to ensure the final binary is 512 bytes in size and then end with the
; magic number 0xaa55, which tells the BIOS this is a boot sector.
;
times 510-($-$$) db 0 ; 0 Padding
dw 0xaa55 ; The magic number, "we are a boot sector". | 17.5 | 81 | 0.685714 |
2f7f8a00da3c56fd3f56373b118065736aaf22c2 | 1,346 | asm | Assembly | src/draw_winscreen.asm | itsmiriam42/pong | 03746f046b4c30474ef6063fcd86aee70c073607 | [
"MIT"
] | 2 | 2021-10-17T07:44:28.000Z | 2021-10-30T19:01:48.000Z | src/draw_winscreen.asm | itsmiriam42/pong | 03746f046b4c30474ef6063fcd86aee70c073607 | [
"MIT"
] | 5 | 2021-11-02T16:41:07.000Z | 2021-11-05T23:56:14.000Z | src/draw_winscreen.asm | itsmiriam42/pong | 03746f046b4c30474ef6063fcd86aee70c073607 | [
"MIT"
] | 1 | 2021-10-17T08:01:13.000Z | 2021-10-17T08:01:13.000Z | # Function to draw a "win" on the display
# a3: unsigned integer x1 -- x coordinate of starting point
# a4: unsigned integer y1 -- y coordinate of starting point
# a5: unsigned integer x2 -- x coordinate of ending point
# a6: unsigned integer y2 -- y coordinate of ending point
# a7: unsigned integer c -- fill color of rectangle as RGB value
draw_winscreen:
addi sp, sp,-28
sw a2, 0 (sp)
sw a3, 4 (sp)
sw a4, 8 (sp)
sw a5, 12 (sp)
sw a6, 16 (sp)
sw a7, 20 (sp)
sw ra, 24 (sp)
li a7 , 0xff0000 #rgb rot
# ---colour: red --------
# 1
li a3, 78
li a4, 32
li a5, 78
li a6, 80
jal draw_line
# 2
li a3, 98
li a4, 42
li a5, 98
li a6, 80
jal draw_line
# 3
li a3, 118
li a4, 32
li a5, 118
li a6, 80
jal draw_line
# 4 und 5
li a3, 78
li a4, 80
li a5, 118
li a6, 80
jal draw_line
# i
li a3, 128
li a4, 32
li a5, 128
li a6, 80
jal draw_line
# n
# 7
li a3, 148
li a4, 32
li a5, 148
li a6, 80
jal draw_line
# 8
li a3, 148
li a4, 32
li a5, 173
li a6, 32
jal draw_line
# 9
li a3, 173
li a4, 32
li a5, 173
li a6, 80
jal draw_line
# !
li a3, 190
li a4, 32
li a5, 190
li a6, 60
jal draw_line
# .
li a3, 190
li a4, 70
li a5, 1
jal draw_circle
lw ra, 24 (sp)
addi sp, sp, 28
ret
| 14.630435 | 65 | 0.565379 |
c205f28615b5c9ff74ac1de0546b4c3cdf852b76 | 361 | asm | Assembly | programs/oeis/054/A054254.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:38:20.000Z | 2021-03-15T11:38:20.000Z | programs/oeis/054/A054254.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/054/A054254.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A054254: a(n) is n plus the minimum of the a(i)*a(n-i) of the previous i=1..n-1.
; 0,1,2,5,8,13,19,26,34,43,53,64,76,89,103,118,134,151,169,188,208,229,251,274,298,323,349,376,404,433,463,494,526,559,593,628,664,701,739,778,818,859,901,944,988,1033,1079,1126,1174,1223,1273
mov $2,$0
pow $0,2
mov $1,$0
add $1,5
sub $2,3
trn $2,2
add $1,$2
div $1,2
sub $1,2
| 27.769231 | 192 | 0.65928 |
cc44223fda9c0f1b4514e86a0c59b471be909705 | 601 | asm | Assembly | oeis/290/A290570.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/290/A290570.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/290/A290570.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A290570: Decimal expansion of Integral_{0..Pi/2} dtheta/(cos(theta)^3 + sin(theta)^3)^(2/3).
; Submitted by Christian Krause
; 1,7,6,6,6,3,8,7,5,0,2,8,5,4,4,9,9,5,7,3,1,3,6,8,9,4,9,9,6,4,8,4,3,8,7,0,2,5,7,1,8,6,8,5,3,8,2,0,2,5,5,7,5,3,0,1,2,6,9,0,5,2,4,1,8,3,5,4,5,3,0,0,1,7,2,8,1,0,7,9,1,3,6,0,5,4,8,6,9,9,3,3,3,3,3,8,3,5,8,7
mov $1,1
mov $2,1
mov $3,$0
mul $3,5
lpb $3
mul $1,$3
mov $5,$3
mul $5,2
add $5,1
mul $2,$5
add $2,$1
div $2,2
add $1,$2
cmp $4,0
mov $5,$0
add $5,$4
div $1,$5
div $2,$5
sub $3,1
lpe
mov $6,10
pow $6,$0
div $2,$6
div $1,$2
mov $0,$1
mod $0,10
| 19.387097 | 201 | 0.530782 |
33cbfa2c9e7df2694f4f9d5d9273c1a92197bb95 | 419 | asm | Assembly | programs/oeis/030/A030109.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/030/A030109.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/030/A030109.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A030109: Write n in binary, reverse bits, subtract 1, divide by 2.
; 0,0,1,0,2,1,3,0,4,2,6,1,5,3,7,0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15,0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23,15,31,0,32,16,48,8,40,24,56,4,36,20,52,12,44,28,60,2,34,18,50,10,42,26,58,6,38,22,54,14,46,30,62,1,33,17,49,9
mov $1,$0
lpb $1
mul $0,2
sub $0,$1
sub $0,1
sub $1,1
div $1,2
sub $0,$1
lpe
| 32.230769 | 259 | 0.596659 |
72d088ac400c004643cae2e8348af737fa7d0c31 | 647 | asm | Assembly | oeis/328/A328355.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/328/A328355.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/328/A328355.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A328355: Let S be any integer in the range 36 <= S <= 44. Sequence has the property that a(n)*S is the sum of all positive integers whose decimal expansion has <= n digits and uses eight distinct nonzero digits d1,d2,d3,d4,d5,d6,d7,d8 such that d1+d2+d3+d4+d5+d6+d7+d8=S.
; 0,1,89,7193,576025,46086681,3686971929,294958053913,23596646709785,1887731755956761,151018540629932569,12081483251621739033,966518660139556190745,77321492811243031804441,6185719424900070836714009,494857553992010693275990553,39588604319360895672790202905
lpb $0
mov $2,$0
sub $0,1
seq $2,86578 ; a(n) = 7*(10^n - 1).
add $3,$2
mul $3,8
lpe
mov $0,$3
div $0,504
| 49.769231 | 273 | 0.761978 |
e99442db783032832951af779df97789a0dac1c5 | 1,294 | asm | Assembly | ch07/32 bit/Shrd.asm | William0Friend/my_masm | e8073266c03c01424ad84b9ed9cf13e9da1eabb1 | [
"Apache-2.0"
] | null | null | null | ch07/32 bit/Shrd.asm | William0Friend/my_masm | e8073266c03c01424ad84b9ed9cf13e9da1eabb1 | [
"Apache-2.0"
] | null | null | null | ch07/32 bit/Shrd.asm | William0Friend/my_masm | e8073266c03c01424ad84b9ed9cf13e9da1eabb1 | [
"Apache-2.0"
] | null | null | null | ; SHRD Example (Shrd.asm)
Comment !
This program shifts an array of five 32-bit integers using the SHRD
instruction. It shifts a series of consecutive doublewords 4 bits
to the right. The number is in little Endian order.
!
INCLUDE Irvine32.inc
COUNT = 4 ; shift count
.data
array DWORD 648B2165h,8C943A29h,6DFA4B86h,91F76C04h,8BAF9857h
.code
main PROC
mov bl,COUNT
call ShiftDoublewords
; Display the results
mov esi,OFFSET array
mov ecx,LENGTHOF array
mov ebx,TYPE array
call DumpMem
exit
main ENDP
;---------------------------------------------------------------
ShiftDoublewords PROC
;
; Shifts an array of doublewords to the right.
; The array is a global variable.
; Receives: BL = number of bits to shift
; Returns: nothing
;---------------------------------------------------------------
mov esi,OFFSET array
mov ecx,(LENGTHOF array) - 1
L1: push ecx ; save loop counter
mov eax,[esi + TYPE DWORD]
mov cl,bl ; shift count
shrd [esi],eax,cl ; shift EAX into high bits of [esi]
add esi,TYPE DWORD ; point to next doubleword pair
pop ecx ; restore loop counter
loop L1
; Right-shift the last doubleword
shr DWORD PTR [esi],COUNT
ret
ShiftDoublewords ENDP
END main | 23.107143 | 69 | 0.621329 |
717ad68266fc79e83e6e60a7150ead3aa62424d8 | 862 | asm | Assembly | libsrc/target/gb/gbdk/move_sprite.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/target/gb/gbdk/move_sprite.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/target/gb/gbdk/move_sprite.asm | Frodevan/z88dk | f27af9fe840ff995c63c80a73673ba7ee33fffac | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
MODULE move_sprite
PUBLIC move_sprite
PUBLIC _move_sprite
PUBLIC mv_sprite
SECTION code_driver
INCLUDE "target/gb/def/gb_globals.def"
; void __LIB__ move_sprite(uint8_t nb, uint8_t x, uint8_t y) __smallc NONBANKED;
move_sprite:
_move_sprite:
PUSH BC
ld hl,sp+8
LD C,(HL) ; C = nb
ld hl,sp+6
LD D,(HL) ; D = x
ld hl,sp+4
LD E,(HL) ; E = y
CALL mv_sprite
POP BC
RET
mv_sprite:
LD HL,OAM ; Calculate origin of sprite info
SLA C ; Multiply C by 4
SLA C
LD B,0x00
ADD HL,BC
LD A,E ; Set Y
LD (HL+),A
LD A,D ; Set X
LD (HL+),A
RET
| 18.73913 | 80 | 0.439675 |
5d7a3d074da16f0fc66183a09b9136214d106e98 | 675 | asm | Assembly | oeis/159/A159612.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/159/A159612.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/159/A159612.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A159612: INVERT transform of (1, 3, 1, 3, 1,...).
; Submitted by Jon Maiga
; 1,4,8,24,56,152,376,984,2488,6424,16376,42072,107576,275864,706168,1809624,4634296,11872792,30409976,77901144,199541048,511145624,1309309816,3353892312,8591131576,22006700824,56371227128,144398030424,369882938936,947475060632,2427006816376,6216907058904,15924934324408,40792562560024,104492299857656,267662550097752,685631749528376,1756281949919384,4498808948032888,11523936747710424,29519172539841976,75614919530683672,193691609690051576,496151287812786264,1270917726572992568,3255522877824137624
mov $2,1
mov $4,1
lpb $0
sub $0,1
mov $3,$4
mov $4,$2
add $2,$3
mul $4,4
lpe
mov $0,$4
| 45 | 499 | 0.81037 |
7bf81b80db0afacf8461e10a2a005cd897195d9d | 312 | asm | Assembly | libsrc/target/lm80c/stdio/fgetc_cons.asm | ahjelm/z88dk | c4de367f39a76b41f6390ceeab77737e148178fa | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/target/lm80c/stdio/fgetc_cons.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/target/lm80c/stdio/fgetc_cons.asm | C-Chads/z88dk | a4141a8e51205c6414b4ae3263b633c4265778e6 | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z | ;
SECTION code_clib
PUBLIC fgetc_cons
PUBLIC _fgetc_cons
EXTERN LASTKEYPRSD
.fgetc_cons
._fgetc_cons
ld hl,32768
loop:
dec hl
ld a,h
or l
jr nz,loop
.getkey1
ld a,(LASTKEYPRSD)
and a
jr z,getkey1
IF STANDARDESCAPECHARS
cp 13
jr nz,not_return
ld a,10
.not_return
ENDIF
ld l,a
ld h,0
ret
| 10.4 | 22 | 0.721154 |
fcf4f6ca1722b7acb851cff91143e309b110a056 | 601 | asm | Assembly | oeis/253/A253251.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/253/A253251.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/253/A253251.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A253251: a(1) = 1, and for n > 0, a(n+1) = a(n) + floor(10^k/a(n)), where k is the least integer such that 10^k >= a(n).
; Submitted by Jon Maiga
; 1,2,7,8,9,10,11,20,25,29,32,35,37,39,41,43,45,47,49,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,110,119,127,134,141,148,154,160,166,172,177,182,187,192,197,202,206,210,214,218,222,226,230,234,238,242,246,250,254,257
lpb $0
sub $0,1
mov $2,$1
seq $2,52038 ; First nonzero digit in expansion of 1/n.
add $1,$2
lpe
mov $0,$1
add $0,1
| 46.230769 | 328 | 0.645591 |
f4fa50c70febe0f34a150e22017cb0b90c6b0be2 | 676 | asm | Assembly | oeis/084/A084920.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/084/A084920.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/084/A084920.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A084920: a(n) = (prime(n)-1)*(prime(n)+1).
; Submitted by Jamie Morken(s3)
; 3,8,24,48,120,168,288,360,528,840,960,1368,1680,1848,2208,2808,3480,3720,4488,5040,5328,6240,6888,7920,9408,10200,10608,11448,11880,12768,16128,17160,18768,19320,22200,22800,24648,26568,27888,29928,32040,32760,36480,37248,38808,39600,44520,49728,51528,52440,54288,57120,58080,63000,66048,69168,72360,73440,76728,78960,80088,85848,94248,96720,97968,100488,109560,113568,120408,121800,124608,128880,134688,139128,143640,146688,151320,157608,160800,167280,175560,177240,185760,187488,192720,196248
mul $0,2
max $0,1
seq $0,173919 ; Numbers that are prime or one less than a prime.
pow $0,2
sub $0,1
| 67.6 | 496 | 0.775148 |
08a8036c309bc31819c7ad43cb347769cecc5117 | 230 | asm | Assembly | libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sccz80/pow_callee.asm | ahjelm/z88dk | c4de367f39a76b41f6390ceeab77737e148178fa | [
"ClArtistic"
] | 4 | 2021-12-23T15:34:05.000Z | 2021-12-23T15:36:16.000Z | libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sccz80/pow_callee.asm | ahjelm/z88dk | c4de367f39a76b41f6390ceeab77737e148178fa | [
"ClArtistic"
] | 2 | 2022-03-20T22:17:35.000Z | 2022-03-24T16:10:00.000Z | libsrc/_DEVELOPMENT/math/float/math16/lm16/c/sccz80/pow_callee.asm | ahjelm/z88dk | c4de367f39a76b41f6390ceeab77737e148178fa | [
"ClArtistic"
] | null | null | null |
SECTION code_fp_math16
PUBLIC powf16_callee
EXTERN cm16_sccz80_pow_callee
defc powf16_callee = cm16_sccz80_pow_callee
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _powf16_callee
defc _powf16_callee = powf16_callee
ENDIF
| 15.333333 | 44 | 0.843478 |
e515b214029a98144e6f039450f2479a6faa42ce | 950 | asm | Assembly | experimental-computer-system/Emulator/Assembler/FastClear.asm | paulscottrobson/assorted-archives | 87ce21ef1556bed441fffbb5c4c3c11c06324385 | [
"MIT"
] | null | null | null | experimental-computer-system/Emulator/Assembler/FastClear.asm | paulscottrobson/assorted-archives | 87ce21ef1556bed441fffbb5c4c3c11c06324385 | [
"MIT"
] | null | null | null | experimental-computer-system/Emulator/Assembler/FastClear.asm | paulscottrobson/assorted-archives | 87ce21ef1556bed441fffbb5c4c3c11c06324385 | [
"MIT"
] | 1 | 2020-01-02T13:54:19.000Z | 2020-01-02T13:54:19.000Z | ; **************************************************************************************************************
;
; Fast Fill
;
; **************************************************************************************************************
cpu 8008new
org 0h
jmp Start
DHSetX = 000o
DHSetY = 100o
DHScanOff = 201o
DHScanOn = 202o
DHOnInc = 204o
Display = 010o
org 080h
Start:
mvi a,DHScanOff ; Display off
out Display
mvi a,DHSetX+0 ; Home to (0,0)
out Display
mvi a,DHSetY+0
out Display
mvi d,4096/256/4
mvi e,0
mvi a,DHOnInc
Out:
out Display
out Display
out Display
out Display
dcr e
jnz Out
dcr d
jnz Out
hlt | 23.170732 | 112 | 0.302105 |
2166655ac0607be37767e6c31eb55b710de4a459 | 1,898 | asm | Assembly | programs/oeis/099/A099035.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/099/A099035.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/099/A099035.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A099035: a(n) = (n+1)*2^(n-1) - 1.
; 1,5,15,39,95,223,511,1151,2559,5631,12287,26623,57343,122879,262143,557055,1179647,2490367,5242879,11010047,23068671,48234495,100663295,209715199,436207615,905969663,1879048191,3892314111,8053063679,16642998271,34359738367,70866960383,146028888063,300647710719,618475290623,1271310319615,2611340115967,5360119185407,10995116277759,22539988369407,46179488366591,94557999988735,193514046488575,395824185999359,809240558043135,1653665488175103,3377699720527871,6896136929411071,14073748835532799,28710447624486911,58546795155816447,119345390125318143,243194379878006783,495395959010754559,1008806316530991103,2053641430080946175,4179340454199820287,8502796096475496447,17293822569102704639,35164105890508832767,71481133285624512511,145268109580462718975,295147905179352825855,599519182395560427519,1217485108864830406655,2471863705877079916543,5017514388048998039551,10182602728687672492031,20660353362554697809919,41911002535468101271551,85002596691653613846527,172366376624742050299903,349455119732353745813503,708354972430446782054399,1435599410792372144963583,2908977753447701451636735,5893513370621317226692607,11938142468694463100223487,24178516392292583494123519,48961495694392481575600127,99131917208399592325906431,200681686056028443001225215,406199075390515402701275135,822069557337947838800199679,1663481927789729744395698175,3365649481807127622381993983,6808670216069591511945183231,13772082937049855558252756991,27853650883921056185230295039,56326271787484802507910152191,113890483614254985290719428607,230256847307080731131237105663,465465454771302983362070708223,940834429856889008923334410239,1901475900342344102245054808063,3842565881941820373286881591295,7764359926397905084167307132927,15687176177824338843521702166527,31691265005705735037417580134399,64016355311525584775583511871487
mov $1,2
pow $1,$0
add $0,2
mul $1,$0
sub $1,1
mov $0,$1
| 189.8 | 1,802 | 0.919916 |
db530549529b87868b96b9e30413554a6f52eca4 | 77 | asm | Assembly | data/maps/headers/SeafoamIslands1F.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | 1 | 2022-02-15T00:19:44.000Z | 2022-02-15T00:19:44.000Z | data/maps/headers/SeafoamIslands1F.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | data/maps/headers/SeafoamIslands1F.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null |
map_header SeafoamIslands1F, SEAFOAM_ISLANDS_1F, CAVERN, 0
end_map_header
| 19.25 | 59 | 0.844156 |
e1f4000d6099fc16f7a892f434e6c2004c9a1062 | 2,789 | asm | Assembly | maps/outside/objects.asm | RevolutionSoftware/Juego | 31c1706e41713e9bcf631f369b89ce1f94bef0d5 | [
"Unlicense"
] | 1 | 2021-09-18T21:02:45.000Z | 2021-09-18T21:02:45.000Z | maps/outside/objects.asm | RevolutionSoftware/Juego | 31c1706e41713e9bcf631f369b89ce1f94bef0d5 | [
"Unlicense"
] | null | null | null | maps/outside/objects.asm | RevolutionSoftware/Juego | 31c1706e41713e9bcf631f369b89ce1f94bef0d5 | [
"Unlicense"
] | null | null | null | ;start of brushes
.dw grass
.dw path
.dw path_corner1
.dw path_corner2
.dw path_corner3
.dw path_corner4
.dw path_round1
.dw flower
.dw tree_topleft
.dw tree_topright
.dw tree_topleft_forest
.dw tree_topright_forest
.dw tree_bottom_left
.dw tree_bottomright
.dw sign_item
.dw wall_vert
.dw wall_horiz
.dw wall_bottom_left_corner
.dw wall_bottom_right_corner
.dw wall_top_left_corner
.dw wall_top_right_corner
.dw house_new_left
.dw house_new_right
.dw door_pretty
.dw door_old_books
.dw house_old_left_sign
.dw house_old_right
.dw roof_left
.dw roof_right
.dw roof_bookshop
.dw roof_item_shop
.dw roof_weapon_shop
.dw sign_hanging_libros
.dw sign_weapon
.dw arch_bottom_left
.dw arch_bottom_middle
.dw arch_bottom_right
.dw arch_top_left
.dw arch_top_middle
.dw arch_top_right
grass:
.db %00000000
.db 0
path:
.db %00000000
.db 1
path_corner1:
.db %00000000
.db 2
path_corner2:
.db %00000000
.db 3
path_corner3:
.db %00000000
.db 4
path_corner4:
.db %00000000
.db 5
path_round1:
.db %00000000
.db 6
flower:
.db %00000000
.db 7
tree_topleft:
.db %00001100
.db 8
.db 11
.db 0
tree_topright:
.db %00001100
.db 9
.db 12
.db 0
tree_topleft_forest:
.db %00001110
.db 10
.db 18
.db 4
tree_topright_forest:
.db %00001110
.db 11
.db 18
.db 4
tree_bottom_left:
.db %00000110
.db 12
.db 9
.db 2
tree_bottomright:
.db %00000110
.db 13
.db 10
.db 2
sign_item:
.db %10000110
.db 14
.db -1
.db 14
.db TEXT \ .dw text2
wall_vert:
.db %00000010
.db 15
wall_horiz:
.db %00000110
.db 16
.db 15
.db 6
wall_bottom_left_corner:
.db %00000010
.db 17
wall_bottom_right_corner:
.db %00000010
.db 18
wall_top_left_corner:
.db %00000110
.db 19
.db 16
.db 6
wall_top_right_corner:
.db %00000110
.db 20
.db 17
.db 6
house_new_left:
.db %00000010
.db 21
house_new_right:
.db %00000010
.db 22
door_pretty:
.db %00000010
.db 23
door_old_books:
.db %01000010
.db 24
.db MAP,5,7,2
house_old_left_sign:
.db %00000010
.db 25
house_old_right:
.db %00000010
.db 26
roof_left:
.db %00000110
.db 27
.db 5
.db 1
roof_right:
.db %00000110
.db 28
.db 6
.db 10
roof_bookshop:
.db %00000110
.db 29
.db 18
.db 0
roof_item_shop:
.db %00000110
.db 30
.db 18
.db 0
roof_weapon_shop:
.db %00000110
.db 31
.db 18
.db 0
sign_hanging_libros:
.db %10000110
.db 32
.db -1
.db 14
.db TEXT \ .dw text1
sign_weapon:
.db %10000110
.db 14
.db 7
.db 14
.db TEXT \ .dw text0
arch_bottom_left:
.db %00000110
.db 33
.db 19
.db 6
arch_bottom_middle:
.db %00000100
.db 34
.db 20
.db 0
arch_bottom_right:
.db %00000110
.db 35
.db 21
.db 6
arch_top_left:
.db %00001100
.db 36
.db 22
.db 0
arch_top_middle:
.db %00001100
.db 37
.db 23
.db 0
arch_top_right:
.db %00001100
.db 38
.db 24
.db 0
| 13.093897 | 29 | 0.705629 |
089149855de2fe253798302503049ee47c42ba0c | 1,588 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_83_292.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_83_292.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_83_292.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 %r9
lea addresses_WC_ht+0xf89, %r13
nop
nop
nop
nop
add %r12, %r12
mov $0x6162636465666768, %r9
movq %r9, %xmm0
and $0xffffffffffffffc0, %r13
movaps %xmm0, (%r13)
nop
nop
nop
nop
nop
sub $8832, %r9
pop %r9
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %r15
push %r8
push %rbp
push %rbx
// Store
mov $0x3339e500000005f9, %r8
nop
nop
xor $51975, %rbx
movl $0x51525354, (%r8)
nop
dec %rbp
// Faulty Load
lea addresses_normal+0x1b3f9, %r15
nop
nop
nop
nop
nop
sub $14206, %rbp
movups (%r15), %xmm4
vpextrq $1, %xmm4, %r14
lea oracles, %r15
and $0xff, %r14
shlq $12, %r14
mov (%r15,%r14,1), %r14
pop %rbx
pop %rbp
pop %r8
pop %r15
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 9}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_normal', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': True, 'size': 16, 'congruent': 4}}
{'34': 83}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 20.101266 | 248 | 0.656801 |
14905a67fdfae9ce55f4640e443c5a97acd594bb | 1,956 | asm | Assembly | programs/oeis/290/A290114.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/290/A290114.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/290/A290114.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A290114: Decimal representation of the diagonal from the origin to the corner of the n-th stage of growth of the two-dimensional cellular automaton defined by "Rule 643", based on the 5-celled von Neumann neighborhood.
; 1,3,5,11,23,47,95,191,383,767,1535,3071,6143,12287,24575,49151,98303,196607,393215,786431,1572863,3145727,6291455,12582911,25165823,50331647,100663295,201326591,402653183,805306367,1610612735,3221225471,6442450943,12884901887,25769803775,51539607551,103079215103,206158430207,412316860415,824633720831,1649267441663,3298534883327,6597069766655,13194139533311,26388279066623,52776558133247,105553116266495,211106232532991,422212465065983,844424930131967,1688849860263935,3377699720527871,6755399441055743,13510798882111487,27021597764222975,54043195528445951,108086391056891903,216172782113783807,432345564227567615,864691128455135231,1729382256910270463,3458764513820540927,6917529027641081855,13835058055282163711,27670116110564327423,55340232221128654847,110680464442257309695,221360928884514619391,442721857769029238783,885443715538058477567,1770887431076116955135,3541774862152233910271,7083549724304467820543,14167099448608935641087,28334198897217871282175,56668397794435742564351,113336795588871485128703,226673591177742970257407,453347182355485940514815,906694364710971881029631,1813388729421943762059263,3626777458843887524118527,7253554917687775048237055,14507109835375550096474111,29014219670751100192948223,58028439341502200385896447,116056878683004400771792895,232113757366008801543585791,464227514732017603087171583,928455029464035206174343167,1856910058928070412348686335,3713820117856140824697372671,7427640235712281649394745343,14855280471424563298789490687,29710560942849126597578981375,59421121885698253195157962751,118842243771396506390315925503,237684487542793012780631851007,475368975085586025561263702015,950737950171172051122527404031
mov $1,2
pow $1,$0
mul $1,6
sub $1,4
div $1,8
mul $1,2
add $1,1
mov $0,$1
| 163 | 1,659 | 0.907464 |
f8709bbd6b371e0732069536f73a66e2d2b4fc95 | 958 | asm | Assembly | bootloader.asm | Ninespin/bloader_game_test | 8f04b777cd39ee07b228523332637a25684ed995 | [
"MIT"
] | null | null | null | bootloader.asm | Ninespin/bloader_game_test | 8f04b777cd39ee07b228523332637a25684ed995 | [
"MIT"
] | null | null | null | bootloader.asm | Ninespin/bloader_game_test | 8f04b777cd39ee07b228523332637a25684ed995 | [
"MIT"
] | null | null | null |
[org 0x7C00]
[BITS 16]
start:
xor ax, ax
mov ds, ax
mov ss, ax ; Setup stack [0x9c00; 0]
mov sp, 0x9c00
setup_screen:
mov ah, 0xb8
mov es, ax
xor ah, ah
mov al, 0x03
int 0x10
mov ah, 1
mov ch, 0x26
int 0x10
make_blue:
mov cx, 0x07d0 ; 80x25
mov ax, 0x0020 ; empty, blue-background char
xor di, di
rep stosw
mainloop: ; infinite loop
xor ax, ax
mov ah, 0x01 ; read keyboard buffer
int 0x16 ; keyboard interrupt
cmp al, 0x77 ; if up arrow NOT WORKING
je uparrow
mov bx, 1
jmp print_buffer
uparrow:
mov bx, 158
print_buffer:
mov di, [DATA.pos] ; position
rdtsc ; timestamp to ax
mov ah, 0x07 ; set color
; print to screen, increments di
stosw
; add to position +1 vertical, increments of two bytes
add di, bx
mov word [DATA.pos], di
; wait 1 sec
mov cx, 0x00f
mov dx, 0x4240
mov ah, 0x86
int 0x15
jmp mainloop
DATA:
.pos: dw 0x0
TIMES 510 - ($ - $$) db 0
DW 0xAA55
| 13.492958 | 55 | 0.643006 |
9dbca027bf4d4941f7669b534c49d2926b5bb25e | 3,940 | asm | Assembly | savefile/maps/0E3C_TheTrendsetters.asm | stranck/fools2018-1 | 1c506b17343fcdfa708aafaf8e596153e2c63254 | [
"MIT"
] | 35 | 2018-04-01T06:55:28.000Z | 2021-05-09T19:09:42.000Z | savefile/maps/0E3C_TheTrendsetters.asm | stranck/fools2018-1 | 1c506b17343fcdfa708aafaf8e596153e2c63254 | [
"MIT"
] | 4 | 2018-04-01T15:32:55.000Z | 2019-02-23T20:46:49.000Z | savefile/maps/0E3C_TheTrendsetters.asm | stranck/fools2018-1 | 1c506b17343fcdfa708aafaf8e596153e2c63254 | [
"MIT"
] | 12 | 2018-04-01T15:48:09.000Z | 2021-01-27T10:22:33.000Z | SECTION "Map_0E3C", ROM0[$B800]
Map_0E3C_Header:
hdr_tileset 0
hdr_dimensions 8, 8
hdr_pointers_a Map_0E3C_Blocks, Map_0E3C_TextPointers
hdr_pointers_b Map_0E3C_Script, Map_0E3C_Objects
hdr_pointers_c Map_0E3C_InitScript, Map_0E3C_RAMScript
hdr_palette $06
hdr_music MUSIC_ROUTES2, AUDIO_1
hdr_connection NORTH, $1432, 5, 8
hdr_connection SOUTH, $0F3B, 7, 1
hdr_connection WEST, $0D3E, 28, 18
hdr_connection EAST, $113D, 1, 18
Map_0E3C_Objects:
hdr_border $0f
hdr_warp_count 1
hdr_warp 7, 5, 2, 7, $0E6C
hdr_sign_count 0
hdr_object_count 1
hdr_object SPRITE_GIRL, 10, 9, STAY, NONE, $01
Map_0E3C_RAMScript:
rs_fill_byte $0a
rs_fill_3 $c70a
rs_fill_byte $6c
rs_fill_3 $c72b
rs_write_term $c739
db $23,$23,$23,$6c,$6c,$6c,$ff
rs_write_term $c747
db $0a,$0a,$0a,$23,$23,$23,$ff
rs_fill_byte $6f
rs_fill_3 $c758
rs_write_3 $c78a, $6d, $27, $6e
rs_write_3 $c798, $6d, $27, $6e
rs_end
Map_0E3C_Blocks:
db $0f,$0f,$0f,$07,$07,$07,$0f,$0f
db $0f,$0f,$0f,$7a,$7a,$7a,$6c,$6c
db $0f,$0f,$0f,$02,$03,$7a,$49,$23
db $6c,$6c,$6c,$7a,$7a,$7a,$27,$0a
db $23,$23,$23,$23,$23,$23,$22,$6e
db $6f,$6f,$6f,$6f,$6f,$4c,$27,$6e
db $0f,$0f,$0f,$0f,$0f,$6d,$27,$6e
db $0f,$0f,$0f,$0f,$0f,$6d,$27,$6e
Map_0E3C_TextPointers:
dw Map_0E3C_TX1
Map_0E3C_InitScript:
ret
Map_0E3C_Script:
ret
Map_0E3C_TX1:
TX_ASM
ld hl, Map_0E3C_TX_TrendyPhraseIntro
call PrintTextEnhanced
ld de, YesNoBoxset
ld bc, $0203
call PrintChoiceMenu
and a
jr nz, Map_0E3C_SetNewTrendyPhrase
ld hl, Map_0E3C_TX_TrendyPhraseOutro
call PrintTextEnhanced
jp TextScriptEnd
Map_0E3C_SetNewTrendyPhrase:
ld hl, Map_0E3C_TX_NewPhrase
call PrintTextEnhanced
ld bc, $000f
call PrintInputMenu
ld hl, InputMenuBuffer
ld a, PREDEF_StrLen
call PredefCmd
ld a, c
cp $03
jr c, .tooShort
ld a, PREDEF_CharsetStandardToEnhanced
call PredefCmd
ld hl, InputMenuBuffer
ld bc, 16
ld de, Map_0E3C_TrendyPhraseTextBuffer
call CopyData
ld bc, 16
ld hl, Map_0E3C_CurrentUserBuffer
ld de, Map_0E3C_TrendyPhraseAuthorBuffer
call CopyData
ld bc, 16
ld hl, Map_0E3C_TrendyPhraseTextBuffer
ld de, SerialTrendyPhraseStruct.buf
call CopyData
ld hl, SerialTrendyPhraseStruct
call CompleteEventSerial
jp TextScriptEnd
.tooShort
ld hl, Map_0E3C_TX_PhraseTooShort
call PrintTextEnhanced
jp TextScriptEnd
Map_0E3C_TX_TrendyPhraseIntro:
text "Our family adores"
next "everything that is hip"
cont "and trendy these days."
para "Right now, we live by"
next "the words spoken by a"
cont "traveller I met, called"
cont ""
tx_buf Map_0E3C_TrendyPhraseAuthorBuffer
text "."
para "This person told me:"
next "'"
tx_buf Map_0E3C_TrendyPhraseTextBuffer
text "'."
para "And then, my life has"
next "completely changed."
para "Wherever you're from,"
next "'"
tx_buf Map_0E3C_TrendyPhraseTextBuffer
text "' is"
cont "the best thing ever, am I"
cont "right?"
done
Map_0E3C_TX_TrendyPhraseOutro:
text "Yes, I knew it all along!"
next "'"
tx_buf Map_0E3C_TrendyPhraseTextBuffer
text "' is"
cont "really a big deal right now!"
done
Map_0E3C_TX_NewPhrase:
text "What? You're saying that"
next "there's a new trend?"
para "Please tell me more!"
next "What's 'in' right now?"
done
Map_0E3C_TX_PhraseTooShort:
text "I'm sorry, this phrase is"
next "a bit too short."
done
Map_0E3C_TrendyPhraseTextBuffer:
SUBST_TRENDY_PHRASE
Map_0E3C_TrendyPhraseAuthorBuffer:
SUBST_TRENDY_AUTHOR
Map_0E3C_CurrentUserBuffer:
SUBST_CURRENT_USER
| 25.584416 | 63 | 0.660152 |
f783bcda97541eb507e7e10611f542eae8fe85c5 | 332 | asm | Assembly | processor/arch/c64/pre.asm | HakierGrzonzo/bfc64 | edd4bea27c08f0a1f868601ae36a1ab1bc099896 | [
"MIT"
] | 1 | 2020-12-18T09:38:46.000Z | 2020-12-18T09:38:46.000Z | processor/arch/c64/pre.asm | HakierGrzonzo/bfc64 | edd4bea27c08f0a1f868601ae36a1ab1bc099896 | [
"MIT"
] | null | null | null | processor/arch/c64/pre.asm | HakierGrzonzo/bfc64 | edd4bea27c08f0a1f868601ae36a1ab1bc099896 | [
"MIT"
] | null | null | null | BasicUpstart2(start)
*=$4000 "Program"
// $00FB - pointer to tape page
start:
jsr $ff81
lda #$02
sta $d020
sta $d021
lda #$01
sta $0286
lda #$73
sta $00FB + 1
lda #$00
sta $00FB // memory at is like $00FB to …00 73… so we have a pointer to $7300
ldy #$ff // initialize tape index to 255
| 19.529412 | 81 | 0.581325 |
21a1e5763fac3cf9dadd6ca0a504ff5bdb043991 | 340 | asm | Assembly | oeis/105/A105946.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/105/A105946.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/105/A105946.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A105946: C(n+5,n)*C(n+3,3).
; Submitted by Jon Maiga
; 1,24,210,1120,4410,14112,38808,95040,212355,440440,858858,1589952,2815540,4798080,7907040,12651264,19718181,30020760,44753170,65456160,94093230,133138720,185679000,255528000,347358375,466849656,620854794,817586560,1066825320
mov $2,$0
add $2,3
bin $2,$0
add $0,5
bin $0,5
mul $0,$2
| 30.909091 | 226 | 0.764706 |
1f3895c6fb4a845d2f0aebb0e2be3ac6a4bfe9e9 | 338 | asm | Assembly | oeis/110/A110272.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/110/A110272.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/110/A110272.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A110272: a(n) = Pell(n)^3.
; Submitted by Christian Krause
; 0,1,8,125,1728,24389,343000,4826809,67917312,955671625,13447314152,189218084021,2662500456000,37464224551181,527161643971768,7417727240640625,104375343011770368,1468672529408250769
seq $0,129 ; Pell numbers: a(0) = 0, a(1) = 1; for n > 1, a(n) = 2*a(n-1) + a(n-2).
pow $0,3
| 48.285714 | 182 | 0.730769 |
69738e1504ea6471fcb09b9177f4acfd2f39c1ce | 12,802 | asm | Assembly | Kernel/src/fat16.asm | royprocell/GoldOS16 | ebce72ff9fcfad474bb67d8c117046ce260927ec | [
"BSD-3-Clause"
] | 4 | 2016-02-28T20:22:24.000Z | 2016-07-08T07:28:27.000Z | Kernel/src/fat16.asm | royprocell/GoldOS16 | ebce72ff9fcfad474bb67d8c117046ce260927ec | [
"BSD-3-Clause"
] | null | null | null | Kernel/src/fat16.asm | royprocell/GoldOS16 | ebce72ff9fcfad474bb67d8c117046ce260927ec | [
"BSD-3-Clause"
] | null | null | null | ;GoldOS 4.0
;
;fat16.asm
;
;Roy Procell
;7/18/2015
;
;fat_file_exist (done!)
;fat_file_list (done! untested!)
;fat_file_convert (done!)
;fat_file_read (done!)
;fat_file_write (done!)
;fat_file_delete (done! untested!)
;fat_file_rename (done!)
;fat_file_create (done!)
;fat_root_read (done!)
;fat_root_write (done!)
;fat_table_read (done!)
;fat_table_write (done!)
;fat_file_exec (done!)
;==================
;fat_table_read
;Loads the FAT table into memory.
;IN: Nothing
;OUT: Nothing
;=================
fat_table_read:
pusha
mov ax, 1
mov bx, 16
mov cx, 2000h
mov dx, fs_buffer
call os_read_sector
popa
ret
;==================
;fat_table_write
;Writes the FAT table back to the disk.
;IN: Nothing
;OUT: Nothing
;=================
fat_table_write:
pusha
mov ax, 1
mov bx, 16
mov cx, 2000h
mov dx, fs_buffer
call os_write_sector
popa
ret
;==================
;fat_root_read
;Loads the root directory into memory.
;IN: Nothing
;OUT: Nothing
;=================
fat_root_read:
pusha
mov ax, 17
mov bx, 16
mov cx, 2000h
mov dx, fs_buffer
call os_read_sector
popa
ret
;==================
;fat_root_write
;Writes the root directory back to the disk.
;IN: Nothing
;OUT: Nothing
;=================
fat_root_write:
pusha
mov ax, 17
mov bx, 16
mov cx, 2000h
mov dx, fs_buffer
call os_write_sector
popa
ret
;==================
;fat_file_exist
;Checks to see if a file exists.
;IN: AX: segment of file name string, BX: offset of file name string
;OUT: DI: pointer to file entry within the root table, Carry flag will be set on failure.
;=================
fat_file_exist:
;make sure the file name string is not longer than max FAT16 name
call os_string_length
cmp cx, 12
jg .error
cmp cx, 0
je .error
call fat_root_read
mov word [.filename], bx
mov ds, ax
mov bx, 2000h
mov es, bx
.setup:
mov cx, 256
mov ax, 0
mov dx, 0
mov di, fs_buffer
.search_loop:
xchg cx, dx
mov cx, 11
mov si, word [.filename]
rep cmpsb
je .found
add ax, 32
mov di, fs_buffer
add di, ax
xchg dx, cx
loop .search_loop
;bx is still 2000h, reset ds to 2000h for no confusion
mov ds, bx
stc
ret
.found:
clc
sub di, 11
ret
.error:
stc
ret
.filename dw 0
;==================
;fat_file_read
;Loads a file into memory.
;IN: AX: segment of file name string, BX: offset of file name string, CX: segment to load to, DX: offset to load to
;OUT: Nothing, Carry flag will be set on failure.
;==================
fat_file_read:
pusha
mov word [.segment_file], ax
mov word [.offset_file], bx
mov word [.segment_to_load], cx
mov word [.offset_to_load], dx
call fat_file_exist
jc .error
;mov word [.offset_file], bx
mov word [.pointer], 0
mov ax, word [es:di+1Eh]
cmp ax, 0
jne .error
mov ax, word [es:di+1Ah]
cmp ax, 0
je .error
mov word [.cluster], ax
call fat_table_read
.read_sector:
add ax, 31
mov bx, 1
mov cx, word [.segment_to_load]
mov dx, word [.offset_to_load]
add dx, word [.pointer]
call os_read_sector
mov ax, 2000h
mov ds, ax
mov es, ax
.calc_next:
mov ax, word [.cluster]
mov bx, 2
mul bx
mov si, fs_buffer
add si, ax
mov ax, word [ds:si]
mov word [.cluster], ax
cmp ax, 0xFFFF
jae .done
add word [.pointer], 512
jmp .read_sector
.done:
popa
clc
ret
.error:
popa
stc
ret
.segment_file dw 0
.offset_file dw 0
.segment_to_load dw 0
.offset_to_load dw 0
.cluster dw 0
.pointer dw 0
;==================
;fat_file_create
;Creates a new file with the file name stored in BX.
;IN: AX: segment of file name string, BX: offset of file name string
;OUT: Nothing, Carry flag will be set on failure.
;==================
fat_file_create:
pusha
mov word [.segment], ax
mov word [.offset], bx
call fat_file_exist
jnc .error
mov di, fs_buffer
mov cx, 256
.search_loop:
mov dl, byte [es:di]
cmp dl, 0
je .found_free_entry
cmp dl, 0xE5
je .found_free_entry
add di, 32
loop .search_loop
jmp .error
.found_free_entry:
mov cx, 16
mov word [.di_tmp], di
.clear_loop:
cmp cx, 0
je .clear_done
mov word [es:di], 0
inc di
inc di
dec cx
jmp .clear_loop
.clear_done:
mov di, word [.di_tmp]
mov ax, 2000h
mov es, ax
mov ax, word [.segment]
mov ds, ax
mov si, word [.offset]
mov cx, 11
.copy_loop:
mov dl, byte [ds:si]
mov byte [es:di], dl
inc si
inc di
loop .copy_loop
call fat_root_write
mov ax, 2000h
mov ds, ax
popa
clc
ret
.error:
popa
stc
ret
.segment dw 0
.offset dw 0
.di_tmp dw 0
;==================
;fat_file_convert
;Converts "testfile.txt" into "TESTFILETXT".
;IN: AX: segment of file name string, BX: offset of file name string
;OUT: BX: offset of new file name string in the kernel segment (2000h)
;==================
fat_file_convert:
pusha
mov si, bx
call os_convert_string_upper
call os_string_length
cmp cx, 12
jg .error
cmp cx, 0
je .error
mov dx, cx
mov cx, 2000h
mov es, cx
mov ds, ax
mov di, .new_file_name
mov cx, dx
mov dx, 0
.copy_loop:
lodsb
cmp al, '.'
je .extension
stosb
inc dx
;cmp dx, cx
;jg .error
jmp .copy_loop
.extension:
cmp dx, 0
je .error
cmp dx, 8
je .add_extension
.add_spaces:
mov byte [di], ' '
inc di
inc dx
cmp dx, 8
jl .add_spaces
.add_extension:
lodsb
cmp al, 0
je .error
stosb
lodsb
cmp al, 0
je .done
stosb
lodsb
cmp al, 0
je .done
stosb
.done:
mov byte [di], 0
mov ax, 2000h
mov ds, ax
mov es, ax
popa
mov bx, .new_file_name
clc
ret
.error:
mov ax, 2000h
mov ds, ax
mov es, ax
popa
stc
ret
.new_file_name times (13) db 0
;==================
;fat_file_rename
;Renames the desired file.
;IN: AX: segment of original file name string, BX: offset of original file name string, CX: segment of new file name string, DX: offset of new file name string
;OUT: Nothing, Carry flag will be set on failure
;==================
fat_file_rename:
pusha
mov word [.org_segment], ax
mov word [.org_offset], bx
mov word [.new_segment], cx
mov word [.new_offset], dx
mov ax, word [.new_segment]
mov bx, word [.new_offset]
call fat_file_exist
jnc .error
mov ax, 2000h
mov es, ax
cmp byte [es:di+0xB], 04h
je .error
mov ax, word [.org_segment]
mov bx, word [.org_offset]
call fat_file_exist
jc .error
mov ax, word [.new_segment]
mov ds, ax
mov si, word [.new_offset]
mov cx, 2000h
mov es, cx
mov cx, 8;11 ;only loop 8 times so that the extension remains the same
.copy_loop:
mov dl, byte [ds:si]
mov byte [es:di], dl
inc si
inc di
loop .copy_loop
.done:
call fat_root_write
mov ax, 2000h
mov ds, ax
mov es, ax
popa
clc
ret
.error:
mov ax, 2000h
mov ds, ax
mov es, ax
popa
stc
ret
.org_segment dw 0
.org_offset dw 0
.new_segment dw 0
.new_offset dw 0
;==================
;fat_file_list
;Creates a list of files on the disk, separated by commas and terminated with a zero.
;IN: Nothing
;OUT: AX: 2000h, BX: the offset in segment 2000h where the list of files exists
;==================
fat_file_list:
pusha
mov ax, 2000h
mov ds, ax
mov es, ax
mov si, fs_buffer
mov di, .file_list
call fat_root_read
.find_loop:
mov al, byte [ds:si+11]
cmp al, 0xF
je .skip
test al, 18h
jnz .skip
mov al, byte [ds:si]
cmp al, 0xE5
je .skip
cmp al, 0
je .done
mov cx, 1
mov dx, si
.test_entry:
inc si
mov al, byte [ds:si]
cmp al, ' '
jl .next
cmp al, '~'
ja .next
inc cx
cmp cx, 11
je .entry_ok
jmp .test_entry
.entry_ok:
mov si, dx
mov cx, 0
.copy_loop:
mov al, byte [ds:si]
;cmp al, ' '
;je .space
mov byte [es:di], al
inc si
inc di
inc cx
;cmp cx, 8
;je .add_dot
cmp cx, 11
je .done_copy_loop
jmp .copy_loop
.space:
inc si
inc cx
cmp cx, 8
je .add_dot
jmp .copy_loop
.add_dot:
mov byte [es:di], '.'
inc di
jmp .copy_loop
.done_copy_loop:
mov byte [es:di], ','
inc di
.next:
mov si, dx
.skip:
add si, 32
jmp .find_loop
.done:
dec di
mov byte [es:di], 0
popa
mov ax, 2000h
mov bx, .file_list
ret
.file_list times (3072) db 0
;==================
;fat_file_delete
;Deletes the specified file from disk. Removes the file from the FAT and marks its entry as deleted.
;IN: AX: segment of file name string, BX: offset of file name string
;OUT: Nothing, Carry flag will be set on failure
;==================
fat_file_delete:
pusha
mov word [.segment], ax
mov word [.offset], bx
call fat_file_exist
jc .error
mov ax, 2000h
mov es, ax
mov ax, word [es:di+1Ah]
mov word [.cluster], ax
cmp byte [es:di+0xB], 04h
je .error
cmp byte [es:di+0xB], 64h
je .error
mov byte [es:di], 0xE5
call fat_root_write
.clean_fat:
call fat_table_read
mov di, fs_buffer
.clean_loop:
mov ax, word [.cluster]
cmp ax, 0
je .none
mov bx, 2
mul bx
mov si, fs_buffer
add si, ax
mov ax, word [es:si]
mov word [.cluster], ax
mov ax, 0
mov word [es:si], ax
mov ax, word [.cluster]
cmp ax, 0xFFFF
je .done
jmp .clean_loop
.done:
call fat_table_write
.none:
popa
clc
ret
.error:
popa
stc
ret
.segment dw 0
.offset dw 0
.cluster dw 0
;==================
;fat_file_exec
;Loads a file and executes it.
;IN: AX: segment of file name string, BX: offset of file name string, CX: segment to load to, DX: offset to load to
;OUT: Nothing, Carry flag will be set on failure
;==================
fat_file_exec:
mov word [.file_segment], ax
mov word [.file_offset], bx
mov cx, 2000h
mov dx, 0xA000
call fat_file_read
jc .error
.prepare_jump:
mov bl, 43
call os_clear_screen_gfx
mov al, 3
call os_set_video_mode
mov bh, 0x0F
call os_clear_screen
mov dx, 0
call os_move_cursor
mov ax, 2000h
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ax, 0
mov bx, 0
mov cx, 0
mov dx, 0
mov si, 0
mov di, 0
clc
call 2000h:0A000h
clc
ret
.error:
stc
ret
.file_segment dw 0
.file_offset dw 0
;==================
;fat_file_write
;Writes a file back to the disk.
;IN: AX: segment of file name string, BX: offset of file name string, CX: segment to write from, DX: offset to write from, SI: size of file to write
;OUT: Nothing, Carry flag will be set on failure
;==================
fat_file_write:
pusha
mov word [.string_segment], ax
mov word [.string_offset], bx
mov word [.segment], cx
mov word [.offset], dx
mov word [.size], si
call fat_file_create
jc .error
call fat_table_read
.calc_size:
mov ax, word [.size]
mov dx, 0
mov bx, 512
div bx
cmp dx, 0
jg .one_more_cluster
jmp .no_more_clusters
.one_more_cluster:
add ax, 1
.no_more_clusters:
mov word [.clusters], ax
mov cx, ax
mov ax, 2000h
mov ds, ax
mov es, ax
mov si, fs_buffer
add si, 4
mov di, .free_clusters
.clean_free:
pusha
mov cx, 128
.clean_loop:
mov word [es:di], 0
inc di
inc di
loop .clean_loop
popa
.find_free_loop:
cmp word [.clusters], 0
;cmp cx, 0
je .found_all_free
cmp word [ds:si], 0
je .found_free_cluster
inc si
inc si
jmp .find_free_loop
.found_free_cluster:
mov ax, si
sub ax, fs_buffer
mov dx, 0
mov bx, 2
div bx
mov word [es:di], ax
;mov bx, 2
;div bx
;mov ax, word [es:di]
inc si
inc si
inc di
inc di
dec word [.clusters]
jmp .find_free_loop
.found_all_free:
mov di, .free_clusters
mov ax, word [es:di]
mov word [.first_cluster], ax
.write_loop:
;cmp word [.clusters], 0
;je .finish_write
mov si, fs_buffer
mov ax, word [es:di]
mov word [.current_cluster], ax
mov bx, 2
mul bx
add si, ax
mov ax, word [es:di+2]
cmp ax, 0x0000
je .last_cluster
mov word [ds:si], ax
mov ax, word [.current_cluster]
add ax, 31
mov bx, 1
mov cx, word [.segment]
mov dx, word [.offset]
add dx, word [.pointer]
call os_write_sector
inc si
inc si
inc di
inc di
add word [.pointer], 512
;dec word [.clusters]
jmp .write_loop
.last_cluster:
;write 0xFFFF to last cluster
mov word [ds:si], 0xFFFF
mov ax, word [.current_cluster]
add ax, 31
mov bx, 1
mov cx, word [.segment]
mov dx, word [.offset]
add dx, [.pointer]
call os_write_sector
call fat_table_write
.find_entry:
mov ax, word [.string_segment]
mov bx, word [.string_offset]
call fat_file_exist
jc .error
mov ax, word [.first_cluster]
mov word [es:di+1Ah], ax
mov ax, word [.size]
mov word [es:di+1Ch], ax
call fat_root_write
.done:
popa
clc
ret
.error:
popa
stc
ret
.string_segment dw 0
.string_offset dw 0
.segment dw 0
.offset dw 0
.pointer dw 0
.size dw 0
.clusters dw 0
.current_cluster dw 0
.first_cluster dw 0
.free_clusters times (128) dw 0
;==================
;fat_file_attrib
;Finds a file and returns the file attribute.
;Default Attributes: 0x00 = normal file, 0x02 = hidden file, 0x04 = system file, 0x08 = volume label, 0x10 = subdirectory, 0x20 = archive file, 0x40 = device, 0x80 = reserved.
;Also returns file size.
;IN: AX: segment of file name string, BX: offset of file name string
;OUT: AL: file attributes, BX: file size
;==================
fat_file_attrib:
call fat_file_exist
jc .error
mov al, byte [es:di+0xB]
mov bx, word [es:di+0x1C]
ret
.error:
stc
ret | 16.266836 | 175 | 0.662709 |
809f33748683467695cde3f1c29b6fa7c9d452b9 | 1,823 | asm | Assembly | Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0_notsx.log_7_2016.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0_notsx.log_7_2016.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xa0_notsx.log_7_2016.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 %rax
push %rcx
lea addresses_WC_ht+0xa6c1, %rax
add %r15, %r15
movb (%rax), %r14b
nop
nop
sub $3214, %rcx
pop %rcx
pop %rax
pop %r15
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r13
push %r14
push %r15
push %r9
push %rax
push %rbp
// Load
lea addresses_D+0xe6c1, %rbp
nop
nop
nop
nop
xor %r11, %r11
movntdqa (%rbp), %xmm5
vpextrq $0, %xmm5, %r14
nop
nop
cmp $58835, %r11
// Load
lea addresses_normal+0x16cab, %r9
nop
inc %r15
mov (%r9), %rax
nop
nop
nop
and $30114, %r13
// Store
lea addresses_WC+0x19ac1, %r11
nop
nop
nop
add %r15, %r15
movw $0x5152, (%r11)
nop
nop
nop
nop
nop
cmp $15188, %rax
// Faulty Load
mov $0x5856960000000ec1, %r13
nop
nop
nop
nop
sub %r14, %r14
vmovups (%r13), %ymm6
vextracti128 $0, %ymm6, %xmm6
vpextrq $1, %xmm6, %rbp
lea oracles, %r15
and $0xff, %rbp
shlq $12, %rbp
mov (%r15,%rbp,1), %rbp
pop %rbp
pop %rax
pop %r9
pop %r15
pop %r14
pop %r13
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_NC', 'AVXalign': True, 'size': 32, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D', 'AVXalign': False, 'size': 16, 'NT': True, 'same': False, 'congruent': 11}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal', 'AVXalign': False, 'size': 8, 'NT': False, 'same': False, 'congruent': 0}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'size': 2, 'NT': False, 'same': False, 'congruent': 5}}
[Faulty Load]
{'src': {'type': 'addresses_NC', 'AVXalign': False, 'size': 32, 'NT': False, 'same': True, 'congruent': 0}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 1, 'NT': False, 'same': False, 'congruent': 11}, 'OP': 'LOAD'}
{'00': 7}
00 00 00 00 00 00 00
*/
| 17.699029 | 125 | 0.640154 |
2b5d2a6bfdc9a5a678310268aaa4452279df9175 | 335 | asm | Assembly | oeis/203/A203427.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/203/A203427.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/203/A203427.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A203427: a(n) = w(n+1)/(4*w(n)), where w = A203426.
; Submitted by Christian Krause
; -3,48,-1000,25920,-806736,29360128,-1224440064,57600000000,-3018173044480,174359297654784,-11011033460963328,754709361539940352,-55801305000000000000
add $0,1
mov $1,1
add $1,$0
mov $2,-1
sub $2,$1
mul $2,2
pow $2,$0
mul $1,$2
mov $0,$1
div $0,4
| 22.333333 | 151 | 0.698507 |
19872dffdd4638482ec91fef58f26c751ddad699 | 158 | asm | Assembly | libsrc/_DEVELOPMENT/arch/ts2068/display/c/sccz80/tshc_cxy2saddr.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 38 | 2021-06-18T12:56:15.000Z | 2022-03-12T20:38:40.000Z | libsrc/_DEVELOPMENT/arch/ts2068/display/c/sccz80/tshc_cxy2saddr.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 2 | 2021-06-20T16:28:12.000Z | 2021-11-17T21:33:56.000Z | libsrc/_DEVELOPMENT/arch/ts2068/display/c/sccz80/tshc_cxy2saddr.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 6 | 2021-06-18T18:18:36.000Z | 2021-12-22T08:01:32.000Z | ; void *tshc_cxy2saddr(uchar x, uchar y)
SECTION code_clib
SECTION code_arch
PUBLIC tshc_cxy2saddr
EXTERN zx_cxy2saddr
defc tshc_cxy2saddr = zx_cxy2saddr
| 14.363636 | 40 | 0.822785 |
c2b00a3cfa4d4ebf9cec049597df7142b4ed8093 | 408 | asm | Assembly | programs/oeis/134/A134483.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/134/A134483.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/134/A134483.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A134483: Triangle read by rows: T(n,k)=2n+k-2; 1<=k<=n.
; 1,3,4,5,6,7,7,8,9,10,9,10,11,12,13,11,12,13,14,15,16,13,14,15,16,17,18,19,15,16,17,18,19,20,21,22,17,18,19,20,21,22,23,24,25,19,20,21,22,23,24,25,26,27,28,21,22,23,24,25,26,27,28,29,30,31,23,24,25,26,27,28,29,30,31,32,33,34,25,26,27,28,29,30,31,32,33,34,35,36,37,27,28,29,30,31,32,33,34,35
seq $0,182815 ; The third row of table A182630.
sub $0,1
| 68 | 291 | 0.64951 |
0c1d1448d425248c5144db37296bf39fdbf2c5cb | 5,475 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_5394_1859.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_5394_1859.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_5394_1859.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 %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0xaa26, %rbx
nop
nop
sub %r11, %r11
mov (%rbx), %r9
nop
nop
nop
dec %r10
lea addresses_WC_ht+0xb942, %r15
nop
nop
nop
nop
nop
and %rdi, %rdi
vmovups (%r15), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $1, %xmm2, %r12
nop
nop
nop
nop
cmp %r15, %r15
lea addresses_WC_ht+0x10c7e, %rdi
nop
nop
nop
add $44468, %r15
vmovups (%rdi), %ymm0
vextracti128 $0, %ymm0, %xmm0
vpextrq $0, %xmm0, %r11
sub $3909, %r9
lea addresses_D_ht+0x1d326, %rsi
lea addresses_D_ht+0x19866, %rdi
nop
nop
nop
nop
and $62017, %r12
mov $86, %rcx
rep movsw
nop
nop
xor $1111, %r15
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r15
pop %r12
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r13
push %r9
push %rbx
push %rcx
// Store
lea addresses_A+0x1a466, %rbx
nop
nop
nop
nop
cmp $5103, %r11
mov $0x5152535455565758, %r13
movq %r13, %xmm0
movups %xmm0, (%rbx)
cmp %rbx, %rbx
// Load
mov $0x4b93270000000b66, %r9
nop
and %r12, %r12
mov (%r9), %r11w
nop
nop
nop
nop
nop
and $5559, %r10
// Faulty Load
lea addresses_D+0x5066, %r10
nop
nop
nop
and %r12, %r12
mov (%r10), %rcx
lea oracles, %r13
and $0xff, %rcx
shlq $12, %rcx
mov (%r13,%rcx,1), %rcx
pop %rcx
pop %rbx
pop %r9
pop %r13
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': False, 'type': 'addresses_D'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'}
{'src': {'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 7, 'same': False, 'type': 'addresses_NC'}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_D'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 6, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 2, 'same': True, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': True, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 6, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'}
{'36': 5394}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
| 39.673913 | 2,999 | 0.656804 |
39b2da306866619ca03fc5caf534553573d9d9c7 | 2,395 | asm | Assembly | FASM/x32/console_loop_primecheck_call.asm | secana/Assembler-Examples | 4b67a32e702d5456ac00380ca081028c2e8d0baf | [
"Apache-2.0"
] | 8 | 2018-06-02T21:45:08.000Z | 2022-03-16T07:35:29.000Z | FASM/x32/console_loop_primecheck_call.asm | secana/Assembler-Examples | 4b67a32e702d5456ac00380ca081028c2e8d0baf | [
"Apache-2.0"
] | null | null | null | FASM/x32/console_loop_primecheck_call.asm | secana/Assembler-Examples | 4b67a32e702d5456ac00380ca081028c2e8d0baf | [
"Apache-2.0"
] | 7 | 2017-12-05T16:51:23.000Z | 2021-03-15T23:01:08.000Z | format PE console
entry start
include 'win32a.inc'
section '.idata' import data readable writeable
library kernel32, 'kernel32.dll', \
msvcrt, 'MSVCRT.DLL'
import kernel32, \
ExitProcess, 'ExitProcess'
import msvcrt, \
printf, 'printf', \
scanf, 'scanf'
section '.data' data readable
szEnterNum db 'Please enter a number: ',0
szNumFormat db '%d',0
szPrime db '%d is prime',10,0
szNotPrime db '%d is not prime',10,0
section '.bss' data readable writeable
ddNum rd 1
ddSqrt rd 1
section '.text' code readable executable
start:
push szEnterNum
call [printf]
add esp, 4
push ddNum
push szNumFormat
call [scanf]
add esp, 8
; Handle special cases "1", "2", "3"
cmp [ddNum], 1
je notPrime
cmp [ddNum], 2
je isPrime
cmp [ddNum], 3
je isPrime
; Check if number is even
clc ; Clear the carry flag
mov ebx, [ddNum]
shr ebx, 1
jb checkIfPrime ; Jump if carry flag is set -> number is odd
jmp notPrime ; Number is even -> not a prime
checkIfPrime:
fild [ddNum] ; Integer LoaD from memory -> int to float
fsqrt ; Compute sqrt of value in ST(0) and store result in ST(0)
fist [ddSqrt] ; Store integer number to memory
mov ebx, 3
loopPrime:
mov eax, [ddNum]
cdq ; Convert signed value in EAX in signed value in EDX:EAX
idiv ebx ; Signed division divides 64 bit value in EDX:EAX through the given operand. Result in EAX, remainder in EDX
cmp edx, 0 ; Check if the remainder is 0
je notPrime ; Not a prime if the remainder is 0
cmp ebx, [ddSqrt]
jg isPrime ; If ebx is bigger than the sqrt, stop the loop. The number is prime,
inc ebx
jmp loopPrime
notPrime:
push [ddNum]
push szNotPrime
call [printf]
add esp, 8
jmp exit
isPrime:
push [ddNum]
push szPrime
call [printf]
add esp, 8
exit:
push 0
call [ExitProcess]
| 27.848837 | 141 | 0.523173 |
cb2159bf92bf06191eed1d3f2ed226798e94f6aa | 5,527 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1717.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1717.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca_notsx.log_21829_1717.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x152ad, %rsi
lea addresses_WC_ht+0x151d, %rdi
clflush (%rsi)
nop
cmp %rbx, %rbx
mov $83, %rcx
rep movsq
sub $33517, %r13
lea addresses_WC_ht+0xb11d, %rsi
lea addresses_UC_ht+0x911d, %rdi
and %rdx, %rdx
mov $68, %rcx
rep movsl
nop
nop
nop
nop
nop
xor %rdi, %rdi
lea addresses_A_ht+0x9e75, %rsi
lea addresses_WT_ht+0x173d, %rdi
nop
nop
nop
nop
nop
xor %r15, %r15
mov $97, %rcx
rep movsb
nop
nop
nop
cmp %rsi, %rsi
lea addresses_D_ht+0x2f91, %rsi
lea addresses_normal_ht+0x3891, %rdi
nop
inc %r9
mov $47, %rcx
rep movsb
nop
nop
nop
nop
nop
xor $46365, %rbx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r15
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r13
push %r8
push %r9
push %rbp
push %rcx
// Store
lea addresses_D+0xd3b, %r8
nop
nop
add $51327, %r13
movl $0x51525354, (%r8)
nop
xor %r8, %r8
// Store
lea addresses_D+0x1551d, %r11
sub $63205, %r9
movl $0x51525354, (%r11)
nop
nop
nop
nop
sub %rcx, %rcx
// Faulty Load
lea addresses_D+0x1251d, %rbp
clflush (%rbp)
nop
and $29002, %r10
movups (%rbp), %xmm7
vpextrq $1, %xmm7, %r9
lea oracles, %rcx
and $0xff, %r9
shlq $12, %r9
mov (%rcx,%r9,1), %r9
pop %rcx
pop %rbp
pop %r9
pop %r8
pop %r13
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 9}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_D', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_WC_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_WC_ht'}, 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_UC_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 5, 'type': 'addresses_WT_ht'}}
{'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_D_ht'}, 'dst': {'same': True, 'congruent': 1, 'type': 'addresses_normal_ht'}}
{'36': 21829}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
| 42.19084 | 2,999 | 0.660213 |
d85faac55581c2f6232d3c975de05df3a5462786 | 716 | asm | Assembly | title.asm | SpeedStepper/XchgRaxRax | 24c1a47f8da2fab1e4c3ad62136b307c7fa5a6dc | [
"MIT"
] | 53 | 2017-09-06T02:37:25.000Z | 2022-03-10T05:17:06.000Z | title.asm | uf0o/xorpd-solutions | 3a84172f615533ffbd40124594db6d36baa6260a | [
"MIT"
] | 2 | 2019-04-03T12:51:42.000Z | 2020-12-10T13:58:14.000Z | title.asm | uf0o/xorpd-solutions | 3a84172f615533ffbd40124594db6d36baa6260a | [
"MIT"
] | 21 | 2017-09-06T02:37:33.000Z | 2022-03-10T05:17:09.000Z | ;
; $Id: title.asm,v 1.1.1.1 2016/03/27 08:40:13 raptor Exp $
;
; title explanation - from xchg rax,rax by xorpd@xorpd.net
; Copyright (c) 2016 Marco Ivaldi <raptor@0xdeadbeef.info>
;
; The title of the book translates to a nop instruction.
;
; Usage:
; $ nasm title.asm
; $ od -x title
; 0000000 9048
; 0000002
; $ nasm -f elf64 title.asm
; $ gcc title.o -o title
; $ gdb title
; (gdb) disas main
; Dump of assembler code for function main:
; => 0x00000000004005f0 <+0>: rex.W nop
; 0x00000000004005f2 <+2>: nopw %cs:0x0(%rax,%rax,1)
; 0x00000000004005fc <+12>: nopl 0x0(%rax)
; End of assembler dump.
;
BITS 64
SECTION .text
global main
main:
xchg rax,rax ; this is the nop instruction (0x90)
| 23.096774 | 59 | 0.668994 |
4b180e18388a5e7c6da0734a92eeaf1f92f166a8 | 699 | asm | Assembly | 26. INPUT CAPITAL LETTER.asm | rng70/Assembly-Programming | 38c60807b944b49e52f189930c5bf1beadf80d74 | [
"MIT"
] | null | null | null | 26. INPUT CAPITAL LETTER.asm | rng70/Assembly-Programming | 38c60807b944b49e52f189930c5bf1beadf80d74 | [
"MIT"
] | null | null | null | 26. INPUT CAPITAL LETTER.asm | rng70/Assembly-Programming | 38c60807b944b49e52f189930c5bf1beadf80d74 | [
"MIT"
] | null | null | null | .MODEL SMALL
.STACK 100H
.DATA
MSG DB 0AH, 0DH, 'WRONG INPUT GIVEN$'
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX
;TAKING INPUT
MOV AH,1
INT 21H
CMP AL,'A'
JNGE EXIT_
CMP AL,'Z'
JNBE EXIT_
JMP RESULT
EXIT_:
LEA DX, MSG
MOV AH, 9
INT 21H
MOV AH,4CH
INT 21H
RESULT:
MOV AH, 2
MOV DL, 0DH
INT 21H
MOV DL, 0AH
INT 21H
MOV DL,AL
INT 21H
MOV AH,4CH
INT 21H
MAIN ENDP
END MAIN | 14.87234 | 41 | 0.37196 |
671292c30a5e3d4335be41f974ab86b90d2c8122 | 879 | asm | Assembly | _incObj/3B Purple Rock.asm | kodishmediacenter/msu-md-sonic | 3aa7c5e8add9660df2cd0eceaa214e7d59f2415c | [
"CC0-1.0"
] | 9 | 2021-01-15T13:47:53.000Z | 2022-01-17T15:33:55.000Z | _incObj/3B Purple Rock.asm | kodishmediacenter/msu-md-sonic | 3aa7c5e8add9660df2cd0eceaa214e7d59f2415c | [
"CC0-1.0"
] | 7 | 2021-01-14T02:18:48.000Z | 2021-03-24T15:44:30.000Z | _incObj/3B Purple Rock.asm | kodishmediacenter/msu-md-sonic | 3aa7c5e8add9660df2cd0eceaa214e7d59f2415c | [
"CC0-1.0"
] | 2 | 2021-01-14T13:14:26.000Z | 2021-01-29T17:46:04.000Z | ; ---------------------------------------------------------------------------
; Object 3B - purple rock (GHZ)
; ---------------------------------------------------------------------------
PurpleRock:
moveq #0,d0
move.b obRoutine(a0),d0
move.w Rock_Index(pc,d0.w),d1
jmp Rock_Index(pc,d1.w)
; ===========================================================================
Rock_Index: dc.w Rock_Main-Rock_Index
dc.w Rock_Solid-Rock_Index
; ===========================================================================
Rock_Main: ; Routine 0
addq.b #2,obRoutine(a0)
move.l #Map_PRock,obMap(a0)
move.w #$63D0,obGfx(a0)
move.b #4,obRender(a0)
move.b #$13,obActWid(a0)
move.b #4,obPriority(a0)
Rock_Solid: ; Routine 2
move.w #$1B,d1
move.w #$10,d2
move.w #$10,d3
move.w obX(a0),d4
bsr.w SolidObject
bsr.w DisplaySprite
out_of_range DeleteObject
rts | 28.354839 | 77 | 0.443686 |
06da777dc04204fe460f113fb3b440d3436b7271 | 230 | asm | Assembly | libsrc/_DEVELOPMENT/stdio/c/sdcc_ix/puts_unlocked_fastcall.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/_DEVELOPMENT/stdio/c/sdcc_ix/puts_unlocked_fastcall.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/_DEVELOPMENT/stdio/c/sdcc_ix/puts_unlocked_fastcall.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
; int puts_unlocked_fastcall(const char *s)
SECTION code_clib
SECTION code_stdio
PUBLIC _puts_unlocked_fastcall
EXTERN asm_puts_unlocked
_puts_unlocked_fastcall:
push ix
call asm_puts_unlocked
pop ix
ret
| 12.105263 | 43 | 0.773913 |
114579a605832dbc8e855c7b7157250895f3e4b4 | 24 | asm | Assembly | tools/yasm/tests/nasm/error1.asm | fasttr-org/ftr | ddba517fb53062d5dc919c94526607bb39bff4b9 | [
"BSD-3-Clause-Clear"
] | null | null | null | tools/yasm/tests/nasm/error1.asm | fasttr-org/ftr | ddba517fb53062d5dc919c94526607bb39bff4b9 | [
"BSD-3-Clause-Clear"
] | null | null | null | tools/yasm/tests/nasm/error1.asm | fasttr-org/ftr | ddba517fb53062d5dc919c94526607bb39bff4b9 | [
"BSD-3-Clause-Clear"
] | null | null | null | BITS 16
mov ax, es:[di]
| 8 | 15 | 0.625 |
ad7fef165f221d73d1f6e6a24afbfeeb3c256f4c | 56 | asm | Assembly | pkgs/tools/yasm/src/modules/objfmts/bin/tests/multisect/follows-loop1-err.asm | manggoguy/parsec-modified | d14edfb62795805c84a4280d67b50cca175b95af | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | pkgs/tools/yasm/src/modules/objfmts/bin/tests/multisect/follows-loop1-err.asm | manggoguy/parsec-modified | d14edfb62795805c84a4280d67b50cca175b95af | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | pkgs/tools/yasm/src/modules/objfmts/bin/tests/multisect/follows-loop1-err.asm | manggoguy/parsec-modified | d14edfb62795805c84a4280d67b50cca175b95af | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | section sect1 follows=sect2
section sect2 follows=sect1
| 18.666667 | 27 | 0.857143 |
f995a2553b21130bfa8857d9b823343d1b67f7c1 | 1,181 | asm | Assembly | _build/dispatcher/jmp_ippsGFpECInitStd224r1_b533be36.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | 1 | 2021-10-04T10:21:54.000Z | 2021-10-04T10:21:54.000Z | _build/dispatcher/jmp_ippsGFpECInitStd224r1_b533be36.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | null | null | null | _build/dispatcher/jmp_ippsGFpECInitStd224r1_b533be36.asm | zyktrcn/ippcp | b0bbe9bbb750a7cf4af5914dd8e6776a8d544466 | [
"Apache-2.0"
] | null | null | null | extern m7_ippsGFpECInitStd224r1:function
extern n8_ippsGFpECInitStd224r1:function
extern y8_ippsGFpECInitStd224r1:function
extern e9_ippsGFpECInitStd224r1:function
extern l9_ippsGFpECInitStd224r1:function
extern n0_ippsGFpECInitStd224r1:function
extern k0_ippsGFpECInitStd224r1:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:function
segment .data
align 8
dq .Lin_ippsGFpECInitStd224r1
.Larraddr_ippsGFpECInitStd224r1:
dq m7_ippsGFpECInitStd224r1
dq n8_ippsGFpECInitStd224r1
dq y8_ippsGFpECInitStd224r1
dq e9_ippsGFpECInitStd224r1
dq l9_ippsGFpECInitStd224r1
dq n0_ippsGFpECInitStd224r1
dq k0_ippsGFpECInitStd224r1
segment .text
global ippsGFpECInitStd224r1:function (ippsGFpECInitStd224r1.LEndippsGFpECInitStd224r1 - ippsGFpECInitStd224r1)
.Lin_ippsGFpECInitStd224r1:
db 0xf3, 0x0f, 0x1e, 0xfa
call ippcpSafeInit wrt ..plt
align 16
ippsGFpECInitStd224r1:
db 0xf3, 0x0f, 0x1e, 0xfa
mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc]
movsxd rax, dword [rax]
lea r11, [rel .Larraddr_ippsGFpECInitStd224r1]
mov r11, qword [r11+rax*8]
jmp r11
.LEndippsGFpECInitStd224r1:
| 30.282051 | 111 | 0.813717 |
17c75b8d0fb2c0541dc885531c1612b47ec2d436 | 259 | asm | Assembly | src/programs/demo.asm | cschlay/mini-toy-computer | 986802b019697e732ff8de04233c27c1a1900284 | [
"MIT"
] | null | null | null | src/programs/demo.asm | cschlay/mini-toy-computer | 986802b019697e732ff8de04233c27c1a1900284 | [
"MIT"
] | null | null | null | src/programs/demo.asm | cschlay/mini-toy-computer | 986802b019697e732ff8de04233c27c1a1900284 | [
"MIT"
] | null | null | null | # This is a demo program.
# There is something wrong with MUL.
LDA 0000_0010 # Load value 2 to accumulator
CPY 0000_0011 # Copy 2 to r3.
LDA 0000_1000 # Load value 8 to accumulator.
MUL 0000_0011 # Perform 2 * 8
# This should print 0001 0000
PRINT 0000_0000 | 25.9 | 44 | 0.752896 |
a884f6a3d348d8a3f31365ba8fe3039ca3d4b57c | 281,737 | asm | Assembly | asg/asm/rdkafka_msgset_writer.asm | asgkafka/librdkafka | d0a14ca313ed1efafb3924ff33fb6c4d474efe3c | [
"BSD-2-Clause-NetBSD",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause"
] | null | null | null | asg/asm/rdkafka_msgset_writer.asm | asgkafka/librdkafka | d0a14ca313ed1efafb3924ff33fb6c4d474efe3c | [
"BSD-2-Clause-NetBSD",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause"
] | null | null | null | asg/asm/rdkafka_msgset_writer.asm | asgkafka/librdkafka | d0a14ca313ed1efafb3924ff33fb6c4d474efe3c | [
"BSD-2-Clause-NetBSD",
"Zlib",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause"
] | 1 | 2021-05-05T11:49:00.000Z | 2021-05-05T11:49:00.000Z | *PROCESS DUPALIAS
*
* Compiled by DCC Version 2.25.07 Mar 6 2021 08:51:07
* on Fri Apr 30 15:35:48 2021
*
WXTRN @@ZARCH#
*
*
*
* Code Section
*
@CODE ALIAS X'7CD9C4D2C1C6D2C16DD4E2C7E2C5E36DE6D9C9E3C5D9'
@CODE CSECT
@CODE AMODE ANY
@CODE RMODE ANY
@DATA ALIAS X'7C998492818692816D94A287A285A36DA69989A38599'
rd_buf_write_seek ALIAS X'99846D82A4866DA69989A3856DA2858592'
EXTRN rd_buf_write_seek
malloc ALIAS C'malloc'
EXTRN malloc
rd_kafka_set_fatal_error0 ALIAS X'99846D92818692816DA285A36D8681A381936*
D8599999699F0'
EXTRN rd_kafka_set_fatal_error0
rd_buf_write ALIAS X'99846D82A4866DA69989A385'
EXTRN rd_buf_write
rd_buf_write_update ALIAS X'99846D82A4866DA69989A3856DA4978481A385'
EXTRN rd_buf_write_update
rd_buf_push0 ALIAS X'99846D82A4866D97A4A288F0'
EXTRN rd_buf_push0
rd_hdr_histogram_record ALIAS X'99846D8884996D8889A2A396879981946D99858*
3969984'
EXTRN rd_hdr_histogram_record
pthread_mutex_lock ALIAS C'@@PT3ML'
EXTRN pthread_mutex_lock
pthread_mutex_unlock ALIAS C'@@PT3MU'
EXTRN pthread_mutex_unlock
crc_table ALIAS X'8399836DA381829385'
crc_table DXD 0F
rd_slice_init ALIAS X'99846DA2938983856D899589A3'
EXTRN rd_slice_init
rd_kafka_msgq_insert_msgq ALIAS X'99846D92818692816D94A287986D8995A2859*
9A36D94A28798'
EXTRN rd_kafka_msgq_insert_msgq
rd_kafka_lz4_compress ALIAS X'99846D92818692816D93A9F46D839694979985A2A*
2'
EXTRN rd_kafka_lz4_compress
rd_kafka_msgbatch_init ALIAS X'99846D92818692816D94A2878281A383886D8995*
89A3'
EXTRN rd_kafka_msgbatch_init
rd_kafka_snappy_init_env_sg ALIAS X'99846D92818692816DA295819797A86D899*
589A36D8595A56DA287'
EXTRN rd_kafka_snappy_init_env_sg
rd_kafka_msgbatch_set_first_msg ALIAS X'99846D92818692816D94A2878281A38*
3886DA285A36D868999A2A36D94A287'
EXTRN rd_kafka_msgbatch_set_first_msg
rd_kafka_snappy_free_env ALIAS X'99846D92818692816DA295819797A86D869985*
856D8595A5'
EXTRN rd_kafka_snappy_free_env
rd_kafka_msgbatch_ready_produce ALIAS X'99846D92818692816D94A2878281A38*
3886D99858184A86D97999684A48385'
EXTRN rd_kafka_msgbatch_ready_produce
snprintf ALIAS C'snprintf'
EXTRN snprintf
rd_kafka_snappy_compress_iov ALIAS X'99846D92818692816DA295819797A86D83*
9694979985A2A26D8996A5'
EXTRN rd_kafka_snappy_compress_iov
rd_slice_get_iov ALIAS X'99846DA2938983856D8785A36D8996A5'
EXTRN rd_slice_get_iov
strerror ALIAS C'strerror'
EXTRN strerror
rd_kafka_snappy_max_compressed_length ALIAS X'99846D92818692816DA295819*
797A86D9481A76D839694979985A2A285846D93859587A388'
EXTRN rd_kafka_snappy_max_compressed_length
rd_slice_crc32c ALIAS X'99846DA2938983856D839983F3F283'
EXTRN rd_slice_crc32c
__assert ALIAS C'@@ASSERT'
EXTRN __assert
rd_kafka_broker_$Api$Version_supported ALIAS X'99846D92818692816D829996*
9285996DC19789E58599A28996956DA2A497979699A38584'
EXTRN rd_kafka_broker_$Api$Version_supported
mtx_lock ALIAS X'94A3A76D93968392'
EXTRN mtx_lock
gettimeofday ALIAS C'GETTFD@Y'
EXTRN gettimeofday
mtx_unlock ALIAS X'94A3A76DA49593968392'
EXTRN mtx_unlock
rd_list_elem ALIAS X'99846D9389A2A36D85938594'
EXTRN rd_list_elem
rd_kafka_buf_destroy_final ALIAS X'99846D92818692816D82A4866D8485A2A399*
96A86D8689958193'
EXTRN rd_kafka_buf_destroy_final
rd_kafka_buf_push0 ALIAS X'99846D92818692816D82A4866D97A4A288F0'
EXTRN rd_kafka_buf_push0
rd_kafka_buf_new_request0 ALIAS X'99846D92818692816D82A4866D9585A66D998*
598A485A2A3F0'
EXTRN rd_kafka_buf_new_request0
rd_kafka_crash ALIAS X'99846D92818692816D839981A288'
EXTRN rd_kafka_crash
calloc ALIAS C'calloc'
EXTRN calloc
free ALIAS C'free'
EXTRN free
rd_kafka_log0 ALIAS X'99846D92818692816D939687F0'
EXTRN rd_kafka_log0
*
*
*
* ....... start of ebcdic_2_utf8
@LNAME338 DS 0H
DC X'0000000D'
DC C'ebcdic_2_utf8'
DC X'00'
ebcdic_2_utf8 DCCPRLG CINDEX=338,BASER=12,FRAME=176,ENTRY=NO,ARCH=ZARCH*
,LNAMEADDR=@LNAME338
DCCPRV REG=9 ; Get PRV from DVT
LGR 3,1 ; ptr to parm area
* ******* End of Prologue
* *
* *** const unsigned char* outstart = out;
LG 4,0(0,3) ; out
LGR 15,4
LG 1,8(0,3) ; outlen
LG 5,16(0,3) ; in
LGR 2,5
LG 3,24(0,3) ; inlen
* *** const unsigned char* base = in;
* *** const unsigned char* processed = in;
LGR 6,5 ; processed
* *** const unsigned char* inend = in + (*inlen);
LG 7,0(0,3) ; inlen
LA 7,0(7,5)
* *** const unsigned char* outend = out + (*outlen);
LG 8,0(0,1) ; outlen
LA 8,0(8,4)
* *** unsigned char c;
* ***
* *** while ((in < inend) && ((out - outstart) < *outlen)) {
B @L6
DS 0D
@FRAMESIZE_338 DC F'176'
@lit_338_2 DC FD'255' 0x00000000000000ff
@lit_338_1 DC Q(@@STATIC)
@L5 DS 0H
* *** c = *in++;
LGR 10,2
LA 2,1(0,2)
IC 10,0(0,10)
STC 10,168(0,13) ; c
* *** if (c > 0xFF)
LR 11,10
NILF 11,X'000000FF'
CHI 11,255
BNH @L8
* *** {
* *** *outlen = out - outstart;
SGR 15,4
STG 15,0(0,1) ; outlen
* *** *inlen = processed - base;
SGR 6,5
STG 6,0(0,3) ; inlen
* *** return(-1);
LGHI 15,-1 ; -1
B @ret_lab_338
* *** }
@L8 DS 0H
* ***
* *** if (out >= outend)
CGR 15,8
BNL @L3
* *** break;
@L9 DS 0H
* ***
* *** *out++ = E2U[c];
LGR 6,15
LA 15,1(0,15)
LGF 11,@lit_338_1
LA 11,0(11,9)
NG 10,@lit_338_2
IC 10,0(10,11)
STC 10,0(0,6)
* *** processed = (unsigned char*)in;
LGR 6,2 ; processed
* ***
* *** }
@L6 DS 0H
CGR 2,7
BNL @L3
LGR 10,15
SGR 10,4
CLG 10,0(0,1)
BL @L5
@L3 DS 0H
* ***
* *** *outlen = out - outstart;
SGR 15,4
STG 15,0(0,1) ; outlen
* *** *inlen = processed - base;
SGR 6,5
STG 6,0(0,3) ; inlen
* *** return(0);
LGHI 15,0 ; 0
* *** }
@ret_lab_338 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "ebcdic_2_utf8"
* (FUNCTION #338)
*
@AUTO#ebcdic_2_utf8 DSECT
DS XL168
ebcdic_2_utf8#c#0 DS 1CL1 ; c
*
@CODE CSECT
*
*
*
* ....... start of rd_atomic32_sub
@LNAME734 DS 0H
DC X'0000000F'
DC C'rd_atomic32_sub'
DC X'00'
rd_atomic32_sub DCCPRLG CINDEX=734,BASER=12,FRAME=184,ENTRY=NO,ARCH=ZAR*
CH,LNAMEADDR=@LNAME734
LGR 3,1 ; ptr to parm area
* ******* End of Prologue
* *
LG 2,0(0,3) ; ra
* ***
* *** int32_t r;
* *** pthread_mutex_lock(&ra->lock);
LA 15,8(0,2)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_734_5 ; pthread_mutex_lock
@@gen_label4 DS 0H
BALR 14,15
@@gen_label5 DS 0H
* *** ra->val -= v;
L 15,0(0,2)
S 15,12(0,3)
ST 15,0(0,2)
* *** r = ra->val;
LR 3,15 ; ra
* *** pthread_mutex_unlock(&ra->lock);
LA 15,8(0,2)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_734_6 ; pthread_mutex_unlock
@@gen_label6 DS 0H
BALR 14,15
@@gen_label7 DS 0H
* *** return r;
LGFR 15,3
* *** # 128 "C:\asgkafka\librdkafka\src\rdatomic.h"
* *** return __atomic_sub_fetch(&ra->val, v, 6);
* ***
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_734 DC F'184'
@lit_734_5 DC AD(pthread_mutex_lock)
@lit_734_6 DC AD(pthread_mutex_unlock)
DROP 12
*
* DSECT for automatic variables in "rd_atomic32_sub"
* (FUNCTION #734)
*
@AUTO#rd_atomic32_sub DSECT
DS XL168
rd_atomic32_sub#r#0 DS 1F ; r
*
@CODE CSECT
*
*
*
* ....... start of rd_atomic64_add
@LNAME738 DS 0H
DC X'0000000F'
DC C'rd_atomic64_add'
DC X'00'
rd_atomic64_add DCCPRLG CINDEX=738,BASER=12,FRAME=184,ENTRY=NO,ARCH=ZAR*
CH,LNAMEADDR=@LNAME738
LGR 3,1 ; ptr to parm area
* ******* End of Prologue
* *
LG 2,0(0,3) ; ra
* ***
* *** int64_t r;
* *** pthread_mutex_lock(&ra->lock);
LA 15,8(0,2)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_738_8 ; pthread_mutex_lock
@@gen_label8 DS 0H
BALR 14,15
@@gen_label9 DS 0H
* *** ra->val += v;
LG 15,0(0,2)
AG 15,8(0,3)
STG 15,0(0,2)
* *** r = ra->val;
LGR 3,15 ; ra
* *** pthread_mutex_unlock(&ra->lock);
LA 15,8(0,2)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_738_9 ; pthread_mutex_unlock
@@gen_label10 DS 0H
BALR 14,15
@@gen_label11 DS 0H
* *** return r;
LGR 15,3
* *** # 222 "C:\asgkafka\librdkafka\src\rdatomic.h"
* *** return __atomic_add_fetch(&ra->val, v, 6);
* ***
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_738 DC F'184'
@lit_738_8 DC AD(pthread_mutex_lock)
@lit_738_9 DC AD(pthread_mutex_unlock)
DROP 12
*
* DSECT for automatic variables in "rd_atomic64_add"
* (FUNCTION #738)
*
@AUTO#rd_atomic64_add DSECT
DS XL168
rd_atomic64_add#r#0 DS 8XL1 ; r
*
@CODE CSECT
*
*
*
* ....... start of rd_malloc
@LNAME752 DS 0H
DC X'00000009'
DC C'rd_malloc'
DC X'00'
rd_malloc DCCPRLG CINDEX=752,BASER=12,FRAME=208,ENTRY=NO,ARCH=ZARCH,LNA*
MEADDR=@LNAME752
* ******* End of Prologue
* *
* *** void *p = malloc(sz);
LG 15,0(0,1) ; sz
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_752_11 ; malloc
@@gen_label12 DS 0H
BALR 14,15
@@gen_label13 DS 0H
LGR 2,15
* *** ((p) ? (void)0 : __assert(__func__, "C:\\asgkafka\\librdkaf\
* ka\\src\\rd.h", 128, "p"));
LTGR 15,2
BNZ @L34
@L33 DS 0H
LG 15,@lit_752_12
LA 15,10(0,15)
STG 15,176(0,13)
LG 15,@lit_752_13
STG 15,184(0,13)
MVGHI 192(13),128
LA 15,32(0,15)
STG 15,200(0,13)
LA 1,176(0,13)
LG 15,@lit_752_14 ; __assert
@@gen_label15 DS 0H
BALR 14,15
@@gen_label16 DS 0H
@L34 DS 0H
* *** return p;
LGR 15,2
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_752 DC F'208'
@lit_752_11 DC AD(malloc)
@lit_752_14 DC AD(__assert)
@lit_752_13 DC AD(@strings@)
@lit_752_12 DC AD(@DATA)
DROP 12
*
* DSECT for automatic variables in "rd_malloc"
* (FUNCTION #752)
*
@AUTO#rd_malloc DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_free
@LNAME754 DS 0H
DC X'00000007'
DC C'rd_free'
DC X'00'
rd_free DCCPRLG CINDEX=754,BASER=12,FRAME=176,ENTRY=NO,ARCH=ZARCH,LNAM*
EADDR=@LNAME754
* ******* End of Prologue
* *
* *** free(ptr);
LG 15,0(0,1) ; ptr
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_754_16 ; free
@@gen_label17 DS 0H
BALR 14,15
@@gen_label18 DS 0H
* *** }
@ret_lab_754 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_754 DC F'176'
@lit_754_16 DC AD(free)
DROP 12
*
* DSECT for automatic variables in "rd_free"
* (FUNCTION #754)
*
@AUTO#rd_free DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_refcnt_sub0
@LNAME758 DS 0H
DC X'0000000E'
DC C'rd_refcnt_sub0'
DC X'00'
rd_refcnt_sub0 DCCPRLG CINDEX=758,BASER=12,FRAME=208,ENTRY=NO,ARCH=ZARC*
H,LNAMEADDR=@LNAME758
* ******* End of Prologue
* *
* *** int r;
* *** # 332 "C:\asgkafka\librdkafka\src\rd.h"
* *** r = rd_atomic32_sub(R, 1);
LG 15,0(0,1) ; R
STG 15,176(0,13)
MVGHI 184(13),1
LA 1,176(0,13)
LG 15,@lit_758_18 ; rd_atomic32_sub
@@gen_label19 DS 0H
BALR 14,15
@@gen_label20 DS 0H
LTR 2,15
* ***
* *** if (r < 0)
BNL @L41
* *** ((!*"refcnt sub-zero") ? (void)0 : __assert(__\
* func__, "C:\\asgkafka\\librdkafka\\src\\rd.h", 335, "!*\"refcnt sub-\
* zero\""));
LG 15,@lit_758_19
LA 1,34(0,15)
CLI 0(1),0
BE @L41
@L42 DS 0H
LG 1,@lit_758_20
LA 1,54(0,1)
STG 1,176(0,13)
STG 15,184(0,13)
MVGHI 192(13),335
LA 15,50(0,15)
STG 15,200(0,13)
LA 1,176(0,13)
LG 15,@lit_758_21 ; __assert
@@gen_label23 DS 0H
BALR 14,15
@@gen_label24 DS 0H
@L43 DS 0H
@L41 DS 0H
* *** return r;
LGFR 15,2
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_758 DC F'208'
@lit_758_18 DC AD(rd_atomic32_sub)
@lit_758_19 DC AD(@strings@)
@lit_758_21 DC AD(__assert)
@lit_758_20 DC AD(@DATA)
DROP 12
*
* DSECT for automatic variables in "rd_refcnt_sub0"
* (FUNCTION #758)
*
@AUTO#rd_refcnt_sub0 DSECT
DS XL168
rd_refcnt_sub0#r#0 DS 1F ; r
*
@CODE CSECT
*
*
*
* ....... start of rd_clock
@LNAME1088 DS 0H
DC X'00000008'
DC C'rd_clock'
DC X'00'
rd_clock DCCPRLG CINDEX=1088,BASER=12,FRAME=200,ENTRY=NO,ARCH=ZARCH,LNA*
MEADDR=@LNAME1088
* ******* End of Prologue
* *
* *** # 97 "C:\asgkafka\librdkafka\src\rdtime.h"
* *** struct timeval tv;
* *** gettimeofday(&tv, ((void *)0));
LA 15,168(0,13)
STG 15,184(0,13)
XC 192(8,13),192(13)
LA 1,184(0,13)
LG 15,@lit_1088_23 ; gettimeofday
@@gen_label25 DS 0H
BALR 14,15
@@gen_label26 DS 0H
* *** return ((rd_ts_t)tv.tv_sec * 1000000LLU) + (rd_ts_t)tv.tv_\
* usec;
LG 15,168(0,13)
MSGFI 15,X'000F4240'
LG 1,176(0,13) ; offset of tv_usec in timeval
ALGR 15,1
* *** # 118 "C:\asgkafka\librdkafka\src\rdtime.h"
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1088 DC F'200'
@lit_1088_23 DC AD(gettimeofday)
DROP 12
*
* DSECT for automatic variables in "rd_clock"
* (FUNCTION #1088)
*
@AUTO#rd_clock DSECT
DS XL168
rd_clock#tv#0 DS 16XL1 ; tv
*
@CODE CSECT
*
*
*
* ....... start of rd_interval0
@LNAME1204 DS 0H
DC X'0000000C'
DC C'rd_interval0'
DC X'00'
rd_interval0 DCCPRLG CINDEX=1204,BASER=12,FRAME=176,ENTRY=NO,ARCH=ZARCH*
,LNAMEADDR=@LNAME1204
LGR 4,1 ; ptr to parm area
* ******* End of Prologue
* *
LG 3,0(0,4) ; ri
LG 2,8(0,4) ; interval_us
LG 15,16(0,4) ; now
* *** rd_ts_t diff;
* ***
* *** if (!now)
LTGR 1,15
BNZ @L70
* *** now = rd_clock();
LG 15,@lit_1204_25 ; rd_clock
@@gen_label28 DS 0H
BALR 14,15
@@gen_label29 DS 0H
@L70 DS 0H
* *** if (!interval_us)
LTGR 1,2
BNZ @L71
* *** interval_us = ri->ri_fixed;
LG 2,8(0,3) ; offset of ri_fixed in rd_interval_s
@L71 DS 0H
* ***
* *** if (ri->ri_ts_last || !immediate) {
LTG 1,0(0,3) ; ri
BNZ @L73
LT 1,28(0,4) ; immediate
BNZ @L72
@L73 DS 0H
* *** diff = now - (ri->ri_ts_last + interval_us + r\
* i->ri_backoff);
AG 2,0(0,3)
AGF 2,16(0,3)
LGR 1,15
SGR 1,2
* *** } else
B @L74
DS 0D
@FRAMESIZE_1204 DC F'176'
@lit_1204_25 DC AD(rd_clock)
@L72 DS 0H
* *** diff = 1;
LGHI 1,1 ; 1
@L74 DS 0H
* *** if (((diff > 0))) {
LTGR 2,1
BNH @L75
* *** ri->ri_ts_last = now;
STG 15,0(0,3) ; ri
* *** ri->ri_backoff = 0;
MVHI 16(3),0 ; offset of ri_backoff in rd_interval_s
* *** }
@L75 DS 0H
* ***
* *** return diff;
LGR 15,1
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_interval0"
* (FUNCTION #1204)
*
@AUTO#rd_interval0 DSECT
DS XL168
rd_interval0#diff#0 DS 8XL1 ; diff
*
@CODE CSECT
*
*
*
* ....... start of rd_avg_add
@LNAME1222 DS 0H
DC X'0000000A'
DC C'rd_avg_add'
DC X'00'
rd_avg_add DCCPRLG CINDEX=1222,BASER=12,FRAME=184,ENTRY=NO,ARCH=ZARCH,L*
NAMEADDR=@LNAME1222
* ******* End of Prologue
* *
* *** mtx_lock(&ra->ra_lock);
LG 2,8(0,1) ; v
LG 3,0(0,1) ; ra
LA 15,48(0,3)
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1222_28 ; mtx_lock
@@gen_label34 DS 0H
BALR 14,15
@@gen_label35 DS 0H
* *** if (!ra->ra_enabled) {
LT 15,88(0,3) ; offset of ra_enabled in rd_avg_s
BNZ @L79
* *** mtx_unlock(&ra->ra_lock);
LA 15,48(0,3)
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1222_29 ; mtx_unlock
@@gen_label37 DS 0H
BALR 14,15
@@gen_label38 DS 0H
* *** return;
B @ret_lab_1222
DS 0D
@FRAMESIZE_1222 DC F'184'
@lit_1222_28 DC AD(mtx_lock)
@lit_1222_29 DC AD(mtx_unlock)
@lit_1222_30 DC AD(rd_hdr_histogram_record)
* *** }
@L79 DS 0H
* *** if (v > ra->ra_v.maxv)
CG 2,0(0,3)
BNH @L80
* *** ra->ra_v.maxv = v;
STG 2,0(0,3) ; ra
@L80 DS 0H
* *** if (ra->ra_v.minv == 0 || v < ra->ra_v.minv)
CGHSI 8(3),0
BE @L82
CG 2,8(0,3)
BNL @L81
@L82 DS 0H
* *** ra->ra_v.minv = v;
STG 2,8(0,3) ; offset of minv in 0000035
@L81 DS 0H
* *** ra->ra_v.sum += v;
LGR 15,2
AG 15,24(0,3)
STG 15,24(0,3)
* *** ra->ra_v.cnt++;
L 15,32(0,3)
AHI 15,1
ST 15,32(0,3)
* ***
* *** rd_hdr_histogram_record(ra->ra_hdr, v);
LG 15,96(0,3)
STG 15,168(0,13)
STG 2,176(0,13)
LA 1,168(0,13)
LG 15,@lit_1222_30 ; rd_hdr_histogram_record
@@gen_label42 DS 0H
BALR 14,15
@@gen_label43 DS 0H
* ***
* *** mtx_unlock(&ra->ra_lock);
LA 15,48(0,3)
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1222_29 ; mtx_unlock
@@gen_label44 DS 0H
BALR 14,15
@@gen_label45 DS 0H
* *** }
@ret_lab_1222 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_avg_add"
* (FUNCTION #1222)
*
@AUTO#rd_avg_add DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_buf_write_pos
@LNAME1266 DS 0H
DC X'00000010'
DC C'rd_buf_write_pos'
DC X'00'
rd_buf_write_pos DCCPRLG CINDEX=1266,BASER=12,FRAME=176,SAVEAREA=NO,ENT*
RY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1266
* ******* End of Prologue
* *
* *** const rd_segment_t *seg = rbuf->rbuf_wpos;
LG 15,0(0,1) ; rbuf
LG 15,24(0,15) ; offset of rbuf_wpos in rd_buf_s
* ***
* *** if (((!seg))) {
LTGR 1,15
BNZ @L98
* ***
* ***
* ***
* *** return 0;
LGHI 15,0 ; 0
B @ret_lab_1266
* *** }
@L98 DS 0H
* ***
* ***
* ***
* *** return seg->seg_absof + seg->seg_of;
LG 1,40(0,15) ; offset of seg_absof in rd_segment_s
ALG 1,24(0,15)
LGR 15,1
* *** }
@ret_lab_1266 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_buf_write_pos"
* (FUNCTION #1266)
*
@AUTO#rd_buf_write_pos DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_buf_write_remains
@LNAME1267 DS 0H
DC X'00000014'
DC C'rd_buf_write_remains'
DC X'00'
rd_buf_write_remains DCCPRLG CINDEX=1267,BASER=0,FRAME=168,SAVEAREA=NO,*
ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1267
* ******* End of Prologue
* *
* *** return rbuf->rbuf_size - (rbuf->rbuf_len + rbuf->rbuf_\
* erased);
LG 15,0(0,1) ; rbuf
LG 1,48(0,15) ; offset of rbuf_size in rd_buf_s
LG 2,32(0,15) ; offset of rbuf_len in rd_buf_s
ALG 2,40(0,15)
SLGR 1,2
LGR 15,1
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
*
* DSECT for automatic variables in "rd_buf_write_remains"
* (FUNCTION #1267)
*
@AUTO#rd_buf_write_remains DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_buf_len
@LNAME1270 DS 0H
DC X'0000000A'
DC C'rd_buf_len'
DC X'00'
rd_buf_len DCCPRLG CINDEX=1270,BASER=0,FRAME=168,SAVEAREA=NO,ENTRY=NO,A*
RCH=ZARCH,LNAMEADDR=@LNAME1270
* ******* End of Prologue
* *
* *** return rbuf->rbuf_len;
LG 15,0(0,1) ; rbuf
LG 15,32(0,15) ; offset of rbuf_len in rd_buf_s
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
*
* DSECT for automatic variables in "rd_buf_len"
* (FUNCTION #1270)
*
@AUTO#rd_buf_len DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_slice_abs_offset
@LNAME1286 DS 0H
DC X'00000013'
DC C'rd_slice_abs_offset'
DC X'00'
rd_slice_abs_offset DCCPRLG CINDEX=1286,BASER=12,FRAME=168,SAVEAREA=NO,*
ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1286
* ******* End of Prologue
* *
* *** if (((!slice->seg)))
LG 15,0(0,1) ; slice
LTG 1,8(0,15) ; offset of seg in rd_slice_s
BNZ @L102
* *** return slice->end;
LG 15,32(0,15) ; offset of end in rd_slice_s
B @ret_lab_1286
@L102 DS 0H
* ***
* *** return slice->seg->seg_absof + slice->rof;
LG 1,8(0,15) ; offset of seg in rd_slice_s
LG 1,40(0,1) ; offset of seg_absof in rd_segment_s
ALG 1,16(0,15)
LGR 15,1
* *** }
@ret_lab_1286 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_slice_abs_offset"
* (FUNCTION #1286)
*
@AUTO#rd_slice_abs_offset DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_uvarint_enc_u64
@LNAME1308 DS 0H
DC X'00000012'
DC C'rd_uvarint_enc_u64'
DC X'00'
rd_uvarint_enc_u64 DCCPRLG CINDEX=1308,BASER=12,FRAME=176,SAVEAREA=NO,E*
NTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1308
LGR 2,1 ; ptr to parm area
* ******* End of Prologue
* *
* *** size_t of = 0;
LG 15,16(0,2) ; num
LGHI 1,0 ; 0
* ***
* *** do {
@L105 DS 0H
* *** if (((of >= dstsize)))
CLG 1,8(0,2)
BL @L108
* *** return 0;
LGHI 15,0 ; 0
B @ret_lab_1308
DS 0D
@lit_1308_36 DC FD'127' 0x000000000000007f
@L108 DS 0H
* ***
* *** dst[of++] = (num & 0x7f) | (num > 0x7f ? 0x80 \
* : 0);
LG 3,0(0,2) ; dst
LGR 4,1
AGHI 1,1
LGR 5,15
NG 5,@lit_1308_36
CLGFI 15,X'0000007F'
BNH @L109
LHI 6,128 ; 128
B @L110
@L109 DS 0H
LHI 6,0 ; 0
@L110 DS 0H
LGFR 6,6
OGR 5,6
STC 5,0(4,3)
* *** num >>= 7;
SRLG 15,15,7(0)
* *** } while (num);
LTGR 3,15
BNZ @L105
* ***
* *** return of;
LGR 15,1
* *** }
@ret_lab_1308 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_uvarint_enc_u64"
* (FUNCTION #1308)
*
@AUTO#rd_uvarint_enc_u64 DSECT
DS XL168
rd_uvarint_enc_u64#of#0 DS 8XL1 ; of
*
@CODE CSECT
*
*
*
* ....... start of rd_uvarint_enc_i64
@LNAME1309 DS 0H
DC X'00000012'
DC C'rd_uvarint_enc_i64'
DC X'00'
rd_uvarint_enc_i64 DCCPRLG CINDEX=1309,BASER=12,FRAME=192,ENTRY=NO,ARCH*
=ZARCH,LNAMEADDR=@LNAME1309
* ******* End of Prologue
* *
* *** return rd_uvarint_enc_u64(dst, dstsize, (num << 1) ^ (\
* num >> 63));
LG 15,0(0,1) ; dst
STG 15,168(0,13)
LG 15,8(0,1) ; dstsize
STG 15,176(0,13)
LG 15,16(0,1) ; num
SLLG 1,15,1(0)
SRAG 15,15,63(0)
XGR 1,15
STG 1,184(0,13)
LA 1,168(0,13)
LG 15,@lit_1309_39 ; rd_uvarint_enc_u64
@@gen_label51 DS 0H
BALR 14,15
@@gen_label52 DS 0H
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1309 DC F'192'
@lit_1309_39 DC AD(rd_uvarint_enc_u64)
DROP 12
*
* DSECT for automatic variables in "rd_uvarint_enc_i64"
* (FUNCTION #1309)
*
@AUTO#rd_uvarint_enc_i64 DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_uvarint_enc_i32
@LNAME1310 DS 0H
DC X'00000012'
DC C'rd_uvarint_enc_i32'
DC X'00'
rd_uvarint_enc_i32 DCCPRLG CINDEX=1310,BASER=12,FRAME=192,ENTRY=NO,ARCH*
=ZARCH,LNAMEADDR=@LNAME1310
* ******* End of Prologue
* *
* *** return rd_uvarint_enc_i64(dst, dstsize, num);
LG 15,0(0,1) ; dst
STG 15,168(0,13)
LG 15,8(0,1) ; dstsize
STG 15,176(0,13)
LGF 15,20(0,1) ; num
STG 15,184(0,13)
LA 1,168(0,13)
LG 15,@lit_1310_41 ; rd_uvarint_enc_i64
@@gen_label53 DS 0H
BALR 14,15
@@gen_label54 DS 0H
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1310 DC F'192'
@lit_1310_41 DC AD(rd_uvarint_enc_i64)
DROP 12
*
* DSECT for automatic variables in "rd_uvarint_enc_i32"
* (FUNCTION #1310)
*
@AUTO#rd_uvarint_enc_i32 DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_pid2str
@LNAME1330 DS 0H
DC X'00000010'
DC C'rd_kafka_pid2str'
DC X'00'
rd_kafka_pid2str DCCPRLG CINDEX=1330,BASER=12,FRAME=208,ENTRY=NO,ARCH=Z*
ARCH,LNAMEADDR=@LNAME1330
DCCPRV REG=15 ; Get PRV from DVT
* ******* End of Prologue
* *
* *** static char buf[2][64];
* *** static int i;
* ***
* *** if (!((pid).id != -1))
CGHSI 0(1),-1
BNE @L173
* *** return "PID{Invalid}";
LG 15,@lit_1330_43
LA 15,70(0,15)
B @ret_lab_1330
DS 0D
@FRAMESIZE_1330 DC F'208'
@lit_1330_43 DC AD(@strings@)
@lit_1330_44 DC Q(@@STATIC)
@lit_1330_47 DC AD(snprintf)
@L173 DS 0H
* ***
* *** i = (i + 1) % 2;
LGF 2,@lit_1330_44
LA 2,0(2,15)
L 3,1208(0,2) ; i
AHI 3,1
LR 4,3
NILF 4,X'00000001'
LTR 3,3
BNL @@gen_label56
LTR 4,4
BNE @@gen_label57
LHI 4,0
B @@gen_label56
@@gen_label57 DS 0H
OILF 4,X'FFFFFFFE'
@@gen_label56 DS 0H
ST 4,1208(0,2) ; i
* ***
* *** snprintf(buf[i], sizeof(buf[i]), "PID{Id:%" "lld" ",Ep\
* och:%hd}", pid.id, pid.epoch);
LGFR 2,4
LGF 3,@lit_1330_44
LA 3,0(3,15)
SLLG 15,2,6(0) ; *0x40
LA 15,1080(15,3)
STG 15,168(0,13)
MVGHI 176(13),64
LG 15,@lit_1330_43
LA 15,84(0,15)
STG 15,184(0,13)
LG 15,0(0,1)
STG 15,192(0,13)
LH 15,8(0,1)
LGFR 15,15
STG 15,200(0,13)
LA 1,168(0,13)
LG 15,@lit_1330_47 ; snprintf
@@gen_label58 DS 0H
BALR 14,15
@@gen_label59 DS 0H
* ***
* ***
* *** return buf[i];
LGF 15,1208(0,3) ; i
SLLG 15,15,6(0) ; *0x40
LA 15,1080(15,3)
* *** }
@ret_lab_1330 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_pid2str"
* (FUNCTION #1330)
*
@AUTO#rd_kafka_pid2str DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_headers_serialized_size
@LNAME1333 DS 0H
DC X'00000020'
DC C'rd_kafka_headers_serialized_size'
DC X'00'
rd_kafka_headers_serialized_size DCCPRLG CINDEX=1333,BASER=0,FRAME=168,*
SAVEAREA=NO,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1333
* ******* End of Prologue
* *
* *** return hdrs->rkhdrs_ser_size;
LG 15,0(0,1) ; hdrs
LG 15,40(0,15) ; offset of rkhdrs_ser_size in rd_kafka_head*
ers_s
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
*
* DSECT for automatic variables in "rd_kafka_headers_serialized_size"
* (FUNCTION #1333)
*
@AUTO#rd_kafka_headers_serialized_size DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msg_wire_size
@LNAME1334 DS 0H
DC X'00000016'
DC C'rd_kafka_msg_wire_size'
DC X'00'
rd_kafka_msg_wire_size DCCPRLG CINDEX=1334,BASER=12,FRAME=184,ENTRY=NO,*
ARCH=ZARCH,LNAMEADDR=@LNAME1334
LGR 2,1 ; ptr to parm area
* ******* End of Prologue
* *
LG 15,0(0,2) ; rkm
* *** static const size_t overheads[] = {
* *** [0] = ((8+4) + (4+1+1+4+4)),
* *** [1] = ((8+4) + (4+1+1+8+4+4)),
* *** [2] = ( (sizeof(int32_t) + 1 + (sizeof(int32_t\
* )/7)) + 1 + (sizeof(int64_t) + 1 + (sizeof(int64_t)/7)) + (sizeof(in\
* t32_t) + 1 + (sizeof(int32_t)/7)) + (sizeof(int32_t) + 1 + (sizeof(i\
* nt32_t)/7)) + (sizeof(int32_t) + 1 + (sizeof(int32_t)/7)) + (sizeof(\
* int32_t) + 1 + (sizeof(int32_t)/7)) )
* *** size_t size;
* *** do {} while (0);
@L174 DS 0H
* ***
* *** size = overheads[MsgVersion] + rkm->rkm_rkmessage.len \
* + rkm->rkm_rkmessage.key_len;
LGF 1,12(0,2) ; MsgVersion
LG 3,@lit_1334_49
SLLG 1,1,3(0) ; *0x8
LG 1,72(1,3)
ALG 1,32(0,15)
ALG 1,48(0,15)
* *** if (MsgVersion == 2 && rkm->rkm_headers)
CHSI 12(2),2
BNE @L177
LTG 2,104(0,15) ; offset of rkm_headers in rd_kafka_msg_s
BZ @L177
* *** size += rd_kafka_headers_serialized_size(rkm->\
* rkm_headers);
LGR 2,1
LG 15,104(0,15)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1334_50 ; rd_kafka_headers_serialized_size
@@gen_label62 DS 0H
BALR 14,15
@@gen_label63 DS 0H
ALGR 2,15
LGR 1,2 ; size
@L177 DS 0H
* ***
* *** return size;
LGR 15,1
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1334 DC F'184'
@lit_1334_49 DC AD(@DATA)
@lit_1334_50 DC AD(rd_kafka_headers_serialized_size)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_msg_wire_size"
* (FUNCTION #1334)
*
@AUTO#rd_kafka_msg_wire_size DSECT
DS XL168
rd_kafka_msg_wire_size#size#0 DS 8XL1 ; size
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgq_len
@LNAME1337 DS 0H
DC X'00000011'
DC C'rd_kafka_msgq_len'
DC X'00'
rd_kafka_msgq_len DCCPRLG CINDEX=1337,BASER=0,FRAME=168,SAVEAREA=NO,ENT*
RY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1337
* ******* End of Prologue
* *
* *** return (int)rkmq->rkmq_msg_cnt;
LG 15,0(0,1) ; rkmq
LGF 15,16(0,15)
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
*
* DSECT for automatic variables in "rd_kafka_msgq_len"
* (FUNCTION #1337)
*
@AUTO#rd_kafka_msgq_len DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgq_size
@LNAME1338 DS 0H
DC X'00000012'
DC C'rd_kafka_msgq_size'
DC X'00'
rd_kafka_msgq_size DCCPRLG CINDEX=1338,BASER=0,FRAME=168,SAVEAREA=NO,EN*
TRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1338
* ******* End of Prologue
* *
* *** return (size_t)rkmq->rkmq_msg_bytes;
LG 15,0(0,1) ; rkmq
LG 15,24(0,15) ; offset of rkmq_msg_bytes in rd_kafka_msgq_*
s
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
*
* DSECT for automatic variables in "rd_kafka_msgq_size"
* (FUNCTION #1338)
*
@AUTO#rd_kafka_msgq_size DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgq_deq
@LNAME1347 DS 0H
DC X'00000011'
DC C'rd_kafka_msgq_deq'
DC X'00'
rd_kafka_msgq_deq DCCPRLG CINDEX=1347,BASER=12,FRAME=208,ENTRY=NO,ARCH=*
ZARCH,LNAMEADDR=@LNAME1347
* ******* End of Prologue
* *
* *** if (((do_count))) {
LMG 2,3,0(1) ; rkmq
LT 15,20(0,1) ; do_count
BZ @L221
* *** do { if (((!(rkmq->rkmq_msg_cnt > 0)))) rd_kafka_crash("\
* C:\\asgkafka\\librdkafka\\src\\rdkafka_msg.h",327, __FUNCTION__, (((\
* void *)0)), "assert: " "rkmq->rkmq_msg_cnt > 0"); } while (0);
@L213 DS 0H
CHSI 16(2),0
BH @L216
LG 15,@lit_1347_52
LA 1,108(0,15)
STG 1,168(0,13)
MVGHI 176(13),327
LG 1,@lit_1347_53
LA 1,96(0,1)
STG 1,184(0,13)
XC 192(8,13),192(13)
LA 15,150(0,15)
STG 15,200(0,13)
LA 1,168(0,13)
LG 15,@lit_1347_54 ; rd_kafka_crash
@@gen_label66 DS 0H
BALR 14,15
@@gen_label67 DS 0H
@L216 DS 0H
* *** do { if (((!(rkmq->rkmq_msg_bytes >= (int64_t)\
* (rkm->rkm_rkmessage.len+rkm->rkm_rkmessage.key_len))))) rd_kafka_cra\
* sh("C:\\asgkafka\\librdkafka\\src\\rdkafka_msg.h",328, __FUNCTION__,\
* (((void *)0)), "assert: " "rkmq->rkmq_msg_bytes >= (int64_t)(rkm->r\
* km_len+rkm->rkm_key_len)"); } while (0);
@L217 DS 0H
LG 15,24(0,2) ; offset of rkmq_msg_bytes in rd_kafka_msgq_*
s
LG 1,32(0,3) ; offset of len in rd_kafka_message_s
ALG 1,48(0,3)
CGR 15,1
BNL @L220
LG 15,@lit_1347_52
LA 1,108(0,15)
STG 1,168(0,13)
MVGHI 176(13),328
LG 1,@lit_1347_53
LA 1,96(0,1)
STG 1,184(0,13)
XC 192(8,13),192(13)
LA 15,182(0,15)
STG 15,200(0,13)
LA 1,168(0,13)
LG 15,@lit_1347_54 ; rd_kafka_crash
@@gen_label69 DS 0H
BALR 14,15
@@gen_label70 DS 0H
@L220 DS 0H
* ***
* *** rkmq->rkmq_msg_cnt--;
L 15,16(0,2)
AHI 15,-1
ST 15,16(0,2)
* *** rkmq->rkmq_msg_bytes -= rkm->rkm_rkmessage.len\
* +rkm->rkm_rkmessage.key_len;
LG 15,24(0,2)
LG 1,32(0,3) ; offset of len in rd_kafka_message_s
ALG 1,48(0,3)
SLGR 15,1
STG 15,24(0,2)
* *** }
@L212 DS 0H
* ***
* *** do { if (((rkm)->rkm_link .tqe_next) != (((void *)0))) (r\
* km)->rkm_link .tqe_next->rkm_link .tqe_prev = (rkm)->rkm_link .tqe_p\
* rev; else (&rkmq->rkmq_msgs)->tqh_last = (rkm)->rkm_link .tqe_prev; \
* *(rkm)->rkm_link .tqe_prev = (rkm)->rkm_link .tqe_next; ; } while ( \
* 0);
@L221 DS 0H
LTG 15,72(0,3) ; offset of rkm_link in rd_kafka_msg_s
BE @L224
LG 15,72(0,3) ; offset of rkm_link in rd_kafka_msg_s
LG 1,80(0,3) ; offset of tqe_prev in 0000040
STG 1,80(0,15) ; offset of tqe_prev in 0000040
B @L225
DS 0D
@FRAMESIZE_1347 DC F'208'
@lit_1347_54 DC AD(rd_kafka_crash)
@lit_1347_53 DC AD(@DATA)
@lit_1347_52 DC AD(@strings@)
@L224 DS 0H
LG 15,80(0,3) ; offset of tqe_prev in 0000040
STG 15,8(0,2) ; offset of tqh_last in rd_kafka_msgs_head_s
@L225 DS 0H
LG 15,80(0,3) ; offset of tqe_prev in 0000040
LG 1,72(0,3) ; offset of rkm_link in rd_kafka_msg_s
STG 1,0(0,15)
* ***
* *** return rkm;
LGR 15,3
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_msgq_deq"
* (FUNCTION #1347)
*
@AUTO#rd_kafka_msgq_deq DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgq_first
@LNAME1349 DS 0H
DC X'00000013'
DC C'rd_kafka_msgq_first'
DC X'00'
rd_kafka_msgq_first DCCPRLG CINDEX=1349,BASER=0,FRAME=168,SAVEAREA=NO,E*
NTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1349
* ******* End of Prologue
* *
* *** return ((&rkmq->rkmq_msgs)->tqh_first);
LG 15,0(0,1) ; rkmq
LG 15,0(0,15) ; rkmq
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
*
* DSECT for automatic variables in "rd_kafka_msgq_first"
* (FUNCTION #1349)
*
@AUTO#rd_kafka_msgq_first DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgq_last
@LNAME1350 DS 0H
DC X'00000012'
DC C'rd_kafka_msgq_last'
DC X'00'
rd_kafka_msgq_last DCCPRLG CINDEX=1350,BASER=0,FRAME=168,SAVEAREA=NO,EN*
TRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1350
* ******* End of Prologue
* *
* *** return (*(((struct rd_kafka_msgs_head_s *)((&rkmq->rkm\
* q_msgs)->tqh_last))->tqh_last));
LG 15,0(0,1) ; rkmq
LG 15,8(0,15) ; offset of tqh_last in rd_kafka_msgs_head_s
LG 15,8(0,15) ; offset of tqh_last in rd_kafka_msgs_head_s
LG 15,0(0,15)
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
*
* DSECT for automatic variables in "rd_kafka_msgq_last"
* (FUNCTION #1350)
*
@AUTO#rd_kafka_msgq_last DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgq_enq
@LNAME1357 DS 0H
DC X'00000011'
DC C'rd_kafka_msgq_enq'
DC X'00'
rd_kafka_msgq_enq DCCPRLG CINDEX=1357,BASER=0,FRAME=168,SAVEAREA=NO,ENT*
RY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1357
* ******* End of Prologue
* *
* *** do { (rkm)->rkm_link .tqe_next = (((void *)0)); (rkm)\
* ->rkm_link .tqe_prev = (&rkmq->rkmq_msgs)->tqh_last; *(&rkmq->rkmq_m\
* sgs)->tqh_last = (rkm); (&rkmq->rkmq_msgs)->tqh_last = &(rkm)->rkm_l\
* ink .tqe_next; } while ( 0);
LG 15,0(0,1) ; rkmq
LG 1,8(0,1) ; rkm
@L244 DS 0H
LGHI 2,0 ; 0
STG 2,72(0,1) ; offset of rkm_link in rd_kafka_msg_s
LG 2,8(0,15) ; offset of tqh_last in rd_kafka_msgs_head_s
STG 2,80(0,1) ; offset of tqe_prev in 0000040
LG 2,8(0,15) ; offset of tqh_last in rd_kafka_msgs_head_s
STG 1,0(0,2)
LA 2,72(0,1)
STG 2,8(0,15) ; offset of tqh_last in rd_kafka_msgs_head_s
* *** rkmq->rkmq_msg_bytes += rkm->rkm_rkmessage.len+rkm->rk\
* m_rkmessage.key_len;
LG 2,24(0,15)
LG 3,32(0,1) ; offset of len in rd_kafka_message_s
ALG 3,48(0,1)
ALGR 2,3
STG 2,24(0,15)
* *** return (int)++rkmq->rkmq_msg_cnt;
L 1,16(0,15)
AHI 1,1
ST 1,16(0,15)
LGFR 15,1
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
*
* DSECT for automatic variables in "rd_kafka_msgq_enq"
* (FUNCTION #1357)
*
@AUTO#rd_kafka_msgq_enq DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_strlcpy
@LNAME1384 DS 0H
DC X'0000000A'
DC C'rd_strlcpy'
DC X'00'
rd_strlcpy DCCPRLG CINDEX=1384,BASER=12,FRAME=176,SAVEAREA=NO,ENTRY=NO,*
ARCH=ZARCH,LNAMEADDR=@LNAME1384
* ******* End of Prologue
* *
LG 15,16(0,1) ; dstsize
* ***
* ***
* ***
* *** if (((dstsize > 0))) {
CLGFI 15,X'00000000'
BNH @ret_lab_1384
* *** size_t srclen = __strlen(src);
LG 2,8(0,1)
LGR 3,2
LGHI 0,0
@@gen_label73 DS 0H
SRST 0,2
BC 1,@@gen_label73
SLGR 0,3
* *** size_t copylen = ((srclen) < (dstsize-1) ? (sr\
* clen) : (dstsize-1));
LGR 2,15
AGHI 2,-1
CLGR 0,2
BNL @L252
LGR 15,0
B @L253
DS 0D
@lit_1384_60 MVC 0(1,4),0(3)
@L252 DS 0H
AGHI 15,-1
@L253 DS 0H
* *** __memcpy(dst,src,copylen);
LG 3,8(0,1)
LG 4,0(0,1)
LTGR 2,15
BZ @@gen_label77
AGHI 2,-1
SRAG 5,2,8(0)
LTGR 5,5
BZ @@gen_label76
@@gen_label75 DS 0H
MVC 0(256,4),0(3)
LA 4,256(0,4)
LA 3,256(0,3)
BCTG 5,@@gen_label75
@@gen_label76 DS 0H
EX 2,@lit_1384_60
@@gen_label77 DS 0H
* *** dst[copylen] = '\0';
LG 1,0(0,1) ; dst
LA 15,0(15,1)
MVI 0(15),0
* *** }
@L251 DS 0H
* ***
* *** }
@ret_lab_1384 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_strlcpy"
* (FUNCTION #1384)
*
@AUTO#rd_strlcpy DSECT
DS XL168
rd_strlcpy#copylen#1 DS 8XL1 ; copylen
ORG @AUTO#rd_strlcpy+168
rd_strlcpy#srclen#1 DS 8XL1 ; srclen
*
@CODE CSECT
*
*
*
* ....... start of rd_crc32_init
@LNAME1484 DS 0H
DC X'0000000D'
DC C'rd_crc32_init'
DC X'00'
rd_crc32_init DCCPRLG CINDEX=1484,BASER=0,FRAME=168,SAVEAREA=NO,ENTRY=N*
O,ARCH=ZARCH,LNAMEADDR=@LNAME1484
* ******* End of Prologue
* *
* ***
* ***
* ***
* *** return 0xffffffff;
LLILF 15,X'FFFFFFFF' ; 4294967295
* ***
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
*
* DSECT for automatic variables in "rd_crc32_init"
* (FUNCTION #1484)
*
@AUTO#rd_crc32_init DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_crc32_update
@LNAME1485 DS 0H
DC X'0000000F'
DC C'rd_crc32_update'
DC X'00'
rd_crc32_update DCCPRLG CINDEX=1485,BASER=12,FRAME=176,ENTRY=NO,ARCH=ZA*
RCH,LNAMEADDR=@LNAME1485
DCCPRV REG=2 ; Get PRV from DVT
LGR 3,1 ; ptr to parm area
* ******* End of Prologue
* *
L 15,4(0,3) ; crc
LG 1,8(0,3) ; data
* ***
* ***
* ***
* ***
* *** unsigned int tbl_idx;
* ***
* *** while (data_len--) {
B @L483
DS 0D
@FRAMESIZE_1485 DC F'176'
@lit_1485_62 DC Q(crc_table)
@L482 DS 0H
* *** tbl_idx = (crc ^ *data) & 0xff;
LLC 4,0(0,1)
LR 5,15
XR 5,4
NILF 5,X'000000FF'
* *** crc = (crc_table[tbl_idx] ^ (crc >> 8)) & 0xffffffff;
LLGFR 4,5
LLGF 5,@lit_1485_62 ; crc_table
SLLG 4,4,2(0) ; *0x4
LA 4,0(5,4)
SRL 15,8(0)
X 15,0(4,2)
* ***
* *** data++;
LA 1,1(0,1)
* *** }
@L483 DS 0H
LG 4,16(0,3) ; data_len
LGR 5,4
AGHI 5,-1
STG 5,16(0,3) ; data_len
LTGR 4,4
BNZ @L482
* *** return crc & 0xffffffff;
LLGFR 15,15
* ***
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_crc32_update"
* (FUNCTION #1485)
*
@AUTO#rd_crc32_update DSECT
DS XL168
rd_crc32_update#tbl_idx#0 DS 1F ; tbl_idx
*
@CODE CSECT
*
*
*
* ....... start of rd_crc32_finalize
@LNAME1486 DS 0H
DC X'00000011'
DC C'rd_crc32_finalize'
DC X'00'
rd_crc32_finalize DCCPRLG CINDEX=1486,BASER=0,FRAME=168,SAVEAREA=NO,ENT*
RY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1486
* ******* End of Prologue
* *
* ***
* ***
* ***
* *** return crc ^ 0xffffffff;
L 15,4(0,1) ; crc
XILF 15,X'FFFFFFFF'
LLGFR 15,15
* ***
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
*
* DSECT for automatic variables in "rd_crc32_finalize"
* (FUNCTION #1486)
*
@AUTO#rd_crc32_finalize DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_ApiVersion_set
@LNAME1516 DS 0H
DC X'0000001B'
DC C'rd_kafka_buf_ApiVersion_set'
DC X'00'
rd_kafka_buf_$Api$Version_set DCCPRLG CINDEX=1516,BASER=0,FRAME=168,SAV*
EAREA=NO,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1516
* ******* End of Prologue
* *
* *** rkbuf->rkbuf_reqhdr.ApiVersion = version;
LG 15,0(0,1) ; rkbuf
MVC 186(2,15),14(1)
* *** rkbuf->rkbuf_features = features;
L 1,20(0,1) ; features
ST 1,328(0,15) ; offset of rkbuf_features in rd_kafka_buf_s
* *** }
@ret_lab_1516 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
*
* DSECT for automatic variables in "rd_kafka_buf_ApiVersion_set"
* (FUNCTION #1516)
*
@AUTO#rd_kafka_buf_$Api$Version_set DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_write
@LNAME1517 DS 0H
DC X'00000012'
DC C'rd_kafka_buf_write'
DC X'00'
rd_kafka_buf_write DCCPRLG CINDEX=1517,BASER=12,FRAME=200,ENTRY=NO,ARCH*
=ZARCH,LNAMEADDR=@LNAME1517
LGR 4,1 ; ptr to parm area
* ******* End of Prologue
* *
LG 2,0(0,4) ; rkbuf
* *** size_t r;
* ***
* *** r = rd_buf_write(&rkbuf->rkbuf_buf, data, len);
LA 15,40(0,2)
STG 15,176(0,13)
LG 15,8(0,4) ; data
STG 15,184(0,13)
LG 15,16(0,4) ; len
STG 15,192(0,13)
LA 1,176(0,13)
LG 15,@lit_1517_64 ; rd_buf_write
@@gen_label79 DS 0H
BALR 14,15
@@gen_label80 DS 0H
LGR 3,15
* ***
* *** if (rkbuf->rkbuf_flags & 0x4)
TM 35(2),4
BZ @L492
* *** rkbuf->rkbuf_crc = rd_crc32_update(rkbuf->rkbuf_crc, d\
* ata, len);
LLGF 15,176(0,2)
STG 15,176(0,13)
LG 15,8(0,4) ; data
STG 15,184(0,13)
LG 15,16(0,4) ; len
STG 15,192(0,13)
LA 1,176(0,13)
LG 15,@lit_1517_65 ; rd_crc32_update
@@gen_label82 DS 0H
BALR 14,15
@@gen_label83 DS 0H
ST 15,176(0,2)
@L492 DS 0H
* ***
* *** return r;
LGR 15,3
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1517 DC F'200'
@lit_1517_64 DC AD(rd_buf_write)
@lit_1517_65 DC AD(rd_crc32_update)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_write"
* (FUNCTION #1517)
*
@AUTO#rd_kafka_buf_write DSECT
DS XL168
rd_kafka_buf_write#r#0 DS 8XL1 ; r
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_update
@LNAME1518 DS 0H
DC X'00000013'
DC C'rd_kafka_buf_update'
DC X'00'
rd_kafka_buf_update DCCPRLG CINDEX=1518,BASER=12,FRAME=208,ENTRY=NO,ARC*
H=ZARCH,LNAMEADDR=@LNAME1518
LGR 2,1 ; ptr to parm area
* ******* End of Prologue
* *
* *** do { if (((!(!(rkbuf->rkbuf_flags & 0x4))))) rd_kafka_cras\
* h("C:\\asgkafka\\librdkafka\\src\\rdkafka_buf.h",944, __FUNCTION__, \
* (((void *)0)), "assert: " "!(rkbuf->rkbuf_flags & RD_KAFKA_OP_F_CRC)\
* "); } while (0);
@L493 DS 0H
LG 3,0(0,2) ; rkbuf
TM 35(3),4
BZ @L496
LG 15,@lit_1518_67
LA 1,256(0,15)
STG 1,168(0,13)
MVGHI 176(13),944
LG 1,@lit_1518_68
LA 1,324(0,1)
STG 1,184(0,13)
XC 192(8,13),192(13)
LA 15,298(0,15)
STG 15,200(0,13)
LA 1,168(0,13)
LG 15,@lit_1518_69 ; rd_kafka_crash
@@gen_label85 DS 0H
BALR 14,15
@@gen_label86 DS 0H
@L496 DS 0H
* *** rd_buf_write_update(&rkbuf->rkbuf_buf, of, data, len);
LA 15,40(0,3)
STG 15,168(0,13)
LG 15,8(0,2) ; of
STG 15,176(0,13)
LG 15,16(0,2) ; data
STG 15,184(0,13)
LG 15,24(0,2) ; len
STG 15,192(0,13)
LA 1,168(0,13)
LG 15,@lit_1518_70 ; rd_buf_write_update
@@gen_label87 DS 0H
BALR 14,15
@@gen_label88 DS 0H
* *** }
@ret_lab_1518 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1518 DC F'208'
@lit_1518_69 DC AD(rd_kafka_crash)
@lit_1518_68 DC AD(@DATA)
@lit_1518_67 DC AD(@strings@)
@lit_1518_70 DC AD(rd_buf_write_update)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_update"
* (FUNCTION #1518)
*
@AUTO#rd_kafka_buf_update DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_write_i8
@LNAME1519 DS 0H
DC X'00000015'
DC C'rd_kafka_buf_write_i8'
DC X'00'
rd_kafka_buf_write_i8 DCCPRLG CINDEX=1519,BASER=12,FRAME=192,ENTRY=NO,A*
RCH=ZARCH,LNAMEADDR=@LNAME1519
* ******* End of Prologue
* *
* *** return rd_kafka_buf_write(rkbuf, &v, sizeof(v));
LG 15,0(0,1) ; rkbuf
STG 15,168(0,13)
LA 15,15(0,1)
STG 15,176(0,13)
MVGHI 184(13),1
LA 1,168(0,13)
LG 15,@lit_1519_72 ; rd_kafka_buf_write
@@gen_label89 DS 0H
BALR 14,15
@@gen_label90 DS 0H
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1519 DC F'192'
@lit_1519_72 DC AD(rd_kafka_buf_write)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_write_i8"
* (FUNCTION #1519)
*
@AUTO#rd_kafka_buf_write_i8 DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_write_i16
@LNAME1521 DS 0H
DC X'00000016'
DC C'rd_kafka_buf_write_i16'
DC X'00'
rd_kafka_buf_write_i16 DCCPRLG CINDEX=1521,BASER=12,FRAME=192,ENTRY=NO,*
ARCH=ZARCH,LNAMEADDR=@LNAME1521
* ******* End of Prologue
* *
* *** v = (v);
LH 15,14(0,1) ; v
STH 15,14(0,1) ; v
* *** return rd_kafka_buf_write(rkbuf, &v, sizeof(v));
LG 15,0(0,1) ; rkbuf
STG 15,168(0,13)
LA 15,14(0,1)
STG 15,176(0,13)
MVGHI 184(13),2
LA 1,168(0,13)
LG 15,@lit_1521_74 ; rd_kafka_buf_write
@@gen_label91 DS 0H
BALR 14,15
@@gen_label92 DS 0H
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1521 DC F'192'
@lit_1521_74 DC AD(rd_kafka_buf_write)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_write_i16"
* (FUNCTION #1521)
*
@AUTO#rd_kafka_buf_write_i16 DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_update_i16
@LNAME1522 DS 0H
DC X'00000017'
DC C'rd_kafka_buf_update_i16'
DC X'00'
rd_kafka_buf_update_i16 DCCPRLG CINDEX=1522,BASER=12,FRAME=200,ENTRY=NO*
,ARCH=ZARCH,LNAMEADDR=@LNAME1522
* ******* End of Prologue
* *
* *** v = (v);
LH 15,22(0,1) ; v
STH 15,22(0,1) ; v
* *** rd_kafka_buf_update(rkbuf, of, &v, sizeof(v));
LG 15,0(0,1) ; rkbuf
STG 15,168(0,13)
LG 15,8(0,1) ; of
STG 15,176(0,13)
LA 15,22(0,1)
STG 15,184(0,13)
MVGHI 192(13),2
LA 1,168(0,13)
LG 15,@lit_1522_76 ; rd_kafka_buf_update
@@gen_label93 DS 0H
BALR 14,15
@@gen_label94 DS 0H
* *** }
@ret_lab_1522 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1522 DC F'200'
@lit_1522_76 DC AD(rd_kafka_buf_update)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_update_i16"
* (FUNCTION #1522)
*
@AUTO#rd_kafka_buf_update_i16 DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_write_i32
@LNAME1523 DS 0H
DC X'00000016'
DC C'rd_kafka_buf_write_i32'
DC X'00'
rd_kafka_buf_write_i32 DCCPRLG CINDEX=1523,BASER=12,FRAME=192,ENTRY=NO,*
ARCH=ZARCH,LNAMEADDR=@LNAME1523
* ******* End of Prologue
* *
* *** v = (int32_t)(v);
L 15,12(0,1) ; v
* *** return rd_kafka_buf_write(rkbuf, &v, sizeof(v));
LG 15,0(0,1) ; rkbuf
STG 15,168(0,13)
LA 15,12(0,1)
STG 15,176(0,13)
MVGHI 184(13),4
LA 1,168(0,13)
LG 15,@lit_1523_78 ; rd_kafka_buf_write
@@gen_label95 DS 0H
BALR 14,15
@@gen_label96 DS 0H
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1523 DC F'192'
@lit_1523_78 DC AD(rd_kafka_buf_write)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_write_i32"
* (FUNCTION #1523)
*
@AUTO#rd_kafka_buf_write_i32 DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_update_i32
@LNAME1524 DS 0H
DC X'00000017'
DC C'rd_kafka_buf_update_i32'
DC X'00'
rd_kafka_buf_update_i32 DCCPRLG CINDEX=1524,BASER=12,FRAME=200,ENTRY=NO*
,ARCH=ZARCH,LNAMEADDR=@LNAME1524
* ******* End of Prologue
* *
* *** v = (v);
L 15,20(0,1) ; v
* *** rd_kafka_buf_update(rkbuf, of, &v, sizeof(v));
LG 15,0(0,1) ; rkbuf
STG 15,168(0,13)
LG 15,8(0,1) ; of
STG 15,176(0,13)
LA 15,20(0,1)
STG 15,184(0,13)
MVGHI 192(13),4
LA 1,168(0,13)
LG 15,@lit_1524_80 ; rd_kafka_buf_update
@@gen_label97 DS 0H
BALR 14,15
@@gen_label98 DS 0H
* *** }
@ret_lab_1524 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1524 DC F'200'
@lit_1524_80 DC AD(rd_kafka_buf_update)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_update_i32"
* (FUNCTION #1524)
*
@AUTO#rd_kafka_buf_update_i32 DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_update_u32
@LNAME1525 DS 0H
DC X'00000017'
DC C'rd_kafka_buf_update_u32'
DC X'00'
rd_kafka_buf_update_u32 DCCPRLG CINDEX=1525,BASER=12,FRAME=200,ENTRY=NO*
,ARCH=ZARCH,LNAMEADDR=@LNAME1525
* ******* End of Prologue
* *
* *** v = (v);
L 15,20(0,1) ; v
* *** rd_kafka_buf_update(rkbuf, of, &v, sizeof(v));
LG 15,0(0,1) ; rkbuf
STG 15,168(0,13)
LG 15,8(0,1) ; of
STG 15,176(0,13)
LA 15,20(0,1)
STG 15,184(0,13)
MVGHI 192(13),4
LA 1,168(0,13)
LG 15,@lit_1525_82 ; rd_kafka_buf_update
@@gen_label99 DS 0H
BALR 14,15
@@gen_label100 DS 0H
* *** }
@ret_lab_1525 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1525 DC F'200'
@lit_1525_82 DC AD(rd_kafka_buf_update)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_update_u32"
* (FUNCTION #1525)
*
@AUTO#rd_kafka_buf_update_u32 DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_write_i64
@LNAME1527 DS 0H
DC X'00000016'
DC C'rd_kafka_buf_write_i64'
DC X'00'
rd_kafka_buf_write_i64 DCCPRLG CINDEX=1527,BASER=12,FRAME=192,ENTRY=NO,*
ARCH=ZARCH,LNAMEADDR=@LNAME1527
* ******* End of Prologue
* *
* *** v = (v);
LG 15,8(0,1) ; v
* *** return rd_kafka_buf_write(rkbuf, &v, sizeof(v));
LG 15,0(0,1) ; rkbuf
STG 15,168(0,13)
LA 15,8(0,1)
STG 15,176(0,13)
MVGHI 184(13),8
LA 1,168(0,13)
LG 15,@lit_1527_84 ; rd_kafka_buf_write
@@gen_label101 DS 0H
BALR 14,15
@@gen_label102 DS 0H
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1527 DC F'192'
@lit_1527_84 DC AD(rd_kafka_buf_write)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_write_i64"
* (FUNCTION #1527)
*
@AUTO#rd_kafka_buf_write_i64 DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_update_i64
@LNAME1528 DS 0H
DC X'00000017'
DC C'rd_kafka_buf_update_i64'
DC X'00'
rd_kafka_buf_update_i64 DCCPRLG CINDEX=1528,BASER=12,FRAME=200,ENTRY=NO*
,ARCH=ZARCH,LNAMEADDR=@LNAME1528
* ******* End of Prologue
* *
* *** v = (v);
LG 15,16(0,1) ; v
* *** rd_kafka_buf_update(rkbuf, of, &v, sizeof(v));
LG 15,0(0,1) ; rkbuf
STG 15,168(0,13)
LG 15,8(0,1) ; of
STG 15,176(0,13)
LA 15,16(0,1)
STG 15,184(0,13)
MVGHI 192(13),8
LA 1,168(0,13)
LG 15,@lit_1528_86 ; rd_kafka_buf_update
@@gen_label103 DS 0H
BALR 14,15
@@gen_label104 DS 0H
* *** }
@ret_lab_1528 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1528 DC F'200'
@lit_1528_86 DC AD(rd_kafka_buf_update)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_update_i64"
* (FUNCTION #1528)
*
@AUTO#rd_kafka_buf_update_i64 DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_write_varint
@LNAME1529 DS 0H
DC X'00000019'
DC C'rd_kafka_buf_write_varint'
DC X'00'
rd_kafka_buf_write_varint DCCPRLG CINDEX=1529,BASER=12,FRAME=208,ENTRY=*
NO,ARCH=ZARCH,LNAMEADDR=@LNAME1529
LGR 2,1 ; ptr to parm area
* ******* End of Prologue
* *
* *** char varint[(sizeof(v) + 1 + (sizeof(v)/7))];
* *** size_t sz;
* ***
* *** sz = rd_uvarint_enc_i64(varint, sizeof(varint), v);
LA 15,168(0,13)
STG 15,184(0,13)
MVGHI 192(13),10
LG 15,8(0,2) ; v
STG 15,200(0,13)
LA 1,184(0,13)
LG 15,@lit_1529_88 ; rd_uvarint_enc_i64
@@gen_label105 DS 0H
BALR 14,15
@@gen_label106 DS 0H
* ***
* *** return rd_kafka_buf_write(rkbuf, varint, sz);
LG 1,0(0,2) ; rkbuf
STG 1,184(0,13)
LA 1,168(0,13)
STG 1,192(0,13)
STG 15,200(0,13)
LA 1,184(0,13)
LG 15,@lit_1529_89 ; rd_kafka_buf_write
@@gen_label107 DS 0H
BALR 14,15
@@gen_label108 DS 0H
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1529 DC F'208'
@lit_1529_88 DC AD(rd_uvarint_enc_i64)
@lit_1529_89 DC AD(rd_kafka_buf_write)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_write_varint"
* (FUNCTION #1529)
*
@AUTO#rd_kafka_buf_write_varint DSECT
DS XL168
rd_kafka_buf_write_varint#sz#0 DS 8XL1 ; sz
ORG @AUTO#rd_kafka_buf_write_varint+168
rd_kafka_buf_write_varint#varint#0 DS 10XL1 ; varint
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_write_uvarint
@LNAME1530 DS 0H
DC X'0000001A'
DC C'rd_kafka_buf_write_uvarint'
DC X'00'
rd_kafka_buf_write_uvarint DCCPRLG CINDEX=1530,BASER=12,FRAME=208,ENTRY*
=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1530
LGR 2,1 ; ptr to parm area
* ******* End of Prologue
* *
* *** char varint[(sizeof(v) + 1 + (sizeof(v)/7))];
* *** size_t sz;
* ***
* *** sz = rd_uvarint_enc_u64(varint, sizeof(varint), v);
LA 15,168(0,13)
STG 15,184(0,13)
MVGHI 192(13),10
LG 15,8(0,2) ; v
STG 15,200(0,13)
LA 1,184(0,13)
LG 15,@lit_1530_91 ; rd_uvarint_enc_u64
@@gen_label109 DS 0H
BALR 14,15
@@gen_label110 DS 0H
* ***
* *** return rd_kafka_buf_write(rkbuf, varint, sz);
LG 1,0(0,2) ; rkbuf
STG 1,184(0,13)
LA 1,168(0,13)
STG 1,192(0,13)
STG 15,200(0,13)
LA 1,184(0,13)
LG 15,@lit_1530_92 ; rd_kafka_buf_write
@@gen_label111 DS 0H
BALR 14,15
@@gen_label112 DS 0H
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1530 DC F'208'
@lit_1530_91 DC AD(rd_uvarint_enc_u64)
@lit_1530_92 DC AD(rd_kafka_buf_write)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_write_uvarint"
* (FUNCTION #1530)
*
@AUTO#rd_kafka_buf_write_uvarint DSECT
DS XL168
rd_kafka_buf_write_uvarint#sz#0 DS 8XL1 ; sz
ORG @AUTO#rd_kafka_buf_write_uvarint+168
rd_kafka_buf_write_uvarint#varint#0 DS 10XL1 ; varint
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_write_kstr
@LNAME1531 DS 0H
DC X'00000017'
DC C'rd_kafka_buf_write_kstr'
DC X'00'
rd_kafka_buf_write_kstr DCCPRLG CINDEX=1531,BASER=12,FRAME=216,ENTRY=NO*
,ARCH=ZARCH,LNAMEADDR=@LNAME1531
* ******* End of Prologue
* *
LG 4,0(0,1) ; rkbuf
LG 2,8(0,1) ; kstr
* *** size_t len, r;
* ***
* *** size_t ulen;
* *** size_t alen;
* *** char* cbuf;
* *** if (kstr &&
LTGR 15,2
BZ @L505
* *** !(((kstr)->len == -1)))
CHSI 0(2),-1
BE @L505
* *** {
* *** alen = (((kstr)->len) == -1 ? __strlen((kstr)->str) : \
* ((kstr)->len));
CHSI 0(2),-1
BNE @L506
LG 15,8(0,2)
LGR 1,15
LGHI 0,0
@@gen_label116 DS 0H
SRST 0,15
BC 1,@@gen_label116
SLGR 0,1
B @L507
DS 0D
@FRAMESIZE_1531 DC F'216'
@lit_1531_94 DC AD(calloc)
@lit_1531_95 DC AD(ebcdic_2_utf8)
@lit_1531_96 DC AD(rd_kafka_buf_write_i16)
@lit_1531_98 DC AD(rd_kafka_buf_write)
@lit_1531_99 DC AD(free)
@lit_1531_101 DC AD(rd_kafka_buf_write_uvarint)
@L506 DS 0H
LGF 0,0(0,2)
@L507 DS 0H
STG 0,176(0,13) ; alen
* *** ulen = alen;
STG 0,168(0,13) ; ulen
* *** cbuf = calloc(1, ulen);
MVGHI 184(13),1
STG 0,192(0,13)
LA 1,184(0,13)
LG 15,@lit_1531_94 ; calloc
@@gen_label117 DS 0H
BALR 14,15
@@gen_label118 DS 0H
LGR 5,15
* *** ebcdic_2_utf8(cbuf, &ulen, kstr->str, &alen);
STG 5,184(0,13)
LA 15,168(0,13)
STG 15,192(0,13)
LG 15,8(0,2)
STG 15,200(0,13)
LA 15,176(0,13)
STG 15,208(0,13)
LA 1,184(0,13)
LG 15,@lit_1531_95 ; ebcdic_2_utf8
@@gen_label119 DS 0H
BALR 14,15
@@gen_label120 DS 0H
* *** }
@L505 DS 0H
* ***
* ***
* *** if (!(rkbuf->rkbuf_flags & 0x40)) {
TM 35(4),64
BNZ @L508
* ***
* *** if (!kstr || ((kstr)->len == -1))
LTGR 15,2
BZ @L510
CHSI 0(2),-1
BNE @L509
@L510 DS 0H
* *** return rd_kafka_buf_write_i16(rkbuf, -1);
STG 4,184(0,13)
MVGHI 192(13),-1
LA 1,184(0,13)
LG 15,@lit_1531_96 ; rd_kafka_buf_write_i16
@@gen_label124 DS 0H
BALR 14,15
@@gen_label125 DS 0H
B @ret_lab_1531
@L509 DS 0H
* ***
* *** # 1148 "C:\asgkafka\librdkafka\src\rdkafka_buf.h"
* *** len = ulen;
LG 2,168(0,13) ; ulen
* ***
* *** r = rd_kafka_buf_write_i16(rkbuf, (int16_t)len);
STG 4,184(0,13)
LGHR 15,2
STG 15,192(0,13)
LA 1,184(0,13)
LG 15,@lit_1531_96 ; rd_kafka_buf_write_i16
@@gen_label126 DS 0H
BALR 14,15
@@gen_label127 DS 0H
LGR 3,15 ; r
* ***
* *** rd_kafka_buf_write(rkbuf, cbuf, len);
STMG 4,5,184(13)
STG 2,200(0,13)
LA 1,184(0,13)
LG 15,@lit_1531_98 ; rd_kafka_buf_write
@@gen_label128 DS 0H
BALR 14,15
@@gen_label129 DS 0H
* *** free(cbuf);
STG 5,184(0,13)
LA 1,184(0,13)
LG 15,@lit_1531_99 ; free
@@gen_label130 DS 0H
BALR 14,15
@@gen_label131 DS 0H
* ***
* ***
* ***
* ***
* *** return r;
LGR 15,3
B @ret_lab_1531
* *** }
@L508 DS 0H
* ***
* ***
* ***
* ***
* ***
* ***
* *** if (!kstr || ((kstr)->len == -1))
LTGR 15,2
BZ @L512
CHSI 0(2),-1
BNE @L511
@L512 DS 0H
* *** len = 0;
LGHI 2,0 ; 0
B @L513
* *** else
@L511 DS 0H
* *** {
* ***
* *** len = ulen + 1;
LG 2,168(0,13) ; ulen
AGHI 2,1
* ***
* ***
* ***
* ***
* *** }
@L513 DS 0H
* *** r = rd_kafka_buf_write_uvarint(rkbuf, (uint64_t)len);
STG 4,184(0,13)
STG 2,192(0,13)
LA 1,184(0,13)
LG 15,@lit_1531_101 ; rd_kafka_buf_write_uvarint
@@gen_label134 DS 0H
BALR 14,15
@@gen_label135 DS 0H
LGR 3,15 ; r
* *** if (len > 1)
CLGFI 2,X'00000001'
BNH @L514
* ***
* *** rd_kafka_buf_write(rkbuf, cbuf, len - 1);
STMG 4,5,184(13)
AGHI 2,-1
STG 2,200(0,13)
LA 1,184(0,13)
LG 15,@lit_1531_98 ; rd_kafka_buf_write
@@gen_label137 DS 0H
BALR 14,15
@@gen_label138 DS 0H
@L514 DS 0H
* *** free(cbuf);
STG 5,184(0,13)
LA 1,184(0,13)
LG 15,@lit_1531_99 ; free
@@gen_label139 DS 0H
BALR 14,15
@@gen_label140 DS 0H
* ***
* ***
* ***
* *** return r;
LGR 15,3
* *** }
@ret_lab_1531 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_write_kstr"
* (FUNCTION #1531)
*
@AUTO#rd_kafka_buf_write_kstr DSECT
DS XL168
rd_kafka_buf_write_kstr#ulen#0 DS 8XL1 ; ulen
ORG @AUTO#rd_kafka_buf_write_kstr+168
rd_kafka_buf_write_kstr#r#0 DS 8XL1 ; r
ORG @AUTO#rd_kafka_buf_write_kstr+168
rd_kafka_buf_write_kstr#len#0 DS 8XL1 ; len
ORG @AUTO#rd_kafka_buf_write_kstr+176
rd_kafka_buf_write_kstr#alen#0 DS 8XL1 ; alen
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_write_bytes
@LNAME1536 DS 0H
DC X'00000018'
DC C'rd_kafka_buf_write_bytes'
DC X'00'
rd_kafka_buf_write_bytes DCCPRLG CINDEX=1536,BASER=12,FRAME=200,ENTRY=N*
O,ARCH=ZARCH,LNAMEADDR=@LNAME1536
LGR 5,1 ; ptr to parm area
* ******* End of Prologue
* *
LG 3,8(0,5) ; payload
LG 2,16(0,5) ; size
* *** size_t r;
* *** if (!payload)
LTGR 15,3
BNZ @L535
* *** size = -1;
LGHI 2,-1 ; -1
@L535 DS 0H
* *** r = rd_kafka_buf_write_i32(rkbuf, (int32_t)size);
LG 15,0(0,5) ; rkbuf
STG 15,176(0,13)
LGFR 15,2
STG 15,184(0,13)
LA 1,176(0,13)
LG 15,@lit_1536_106 ; rd_kafka_buf_write_i32
@@gen_label142 DS 0H
BALR 14,15
@@gen_label143 DS 0H
LGR 4,15
* *** if (payload)
LTGR 15,3
BZ @L536
* *** rd_kafka_buf_write(rkbuf, payload, size);
LG 15,0(0,5) ; rkbuf
STG 15,176(0,13)
STG 3,184(0,13)
STG 2,192(0,13)
LA 1,176(0,13)
LG 15,@lit_1536_107 ; rd_kafka_buf_write
@@gen_label145 DS 0H
BALR 14,15
@@gen_label146 DS 0H
@L536 DS 0H
* *** return r;
LGR 15,4
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1536 DC F'200'
@lit_1536_106 DC AD(rd_kafka_buf_write_i32)
@lit_1536_107 DC AD(rd_kafka_buf_write)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_write_bytes"
* (FUNCTION #1536)
*
@AUTO#rd_kafka_buf_write_bytes DSECT
DS XL168
rd_kafka_buf_write_bytes#r#0 DS 8XL1 ; r
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_crc_init
@LNAME1539 DS 0H
DC X'00000015'
DC C'rd_kafka_buf_crc_init'
DC X'00'
rd_kafka_buf_crc_init DCCPRLG CINDEX=1539,BASER=12,FRAME=208,ENTRY=NO,A*
RCH=ZARCH,LNAMEADDR=@LNAME1539
* ******* End of Prologue
* *
* *** do { if (((!(!(rkbuf->rkbuf_flags & 0x4))))) rd_kafka_cras\
* h("C:\\asgkafka\\librdkafka\\src\\rdkafka_buf.h",1351, __FUNCTION__,\
* (((void *)0)), "assert: " "!(rkbuf->rkbuf_flags & RD_KAFKA_OP_F_CRC\
* )"); } while (0);
LG 2,0(0,1) ; rkbuf
@L537 DS 0H
TM 35(2),4
BZ @L540
LG 15,@lit_1539_109
LA 1,256(0,15)
STG 1,168(0,13)
MVGHI 176(13),1351
LG 1,@lit_1539_110
LA 1,376(0,1)
STG 1,184(0,13)
XC 192(8,13),192(13)
LA 15,298(0,15)
STG 15,200(0,13)
LA 1,168(0,13)
LG 15,@lit_1539_111 ; rd_kafka_crash
@@gen_label148 DS 0H
BALR 14,15
@@gen_label149 DS 0H
@L540 DS 0H
* *** rkbuf->rkbuf_flags |= 0x4;
L 15,32(0,2)
OILL 15,4
ST 15,32(0,2)
* *** rkbuf->rkbuf_crc = rd_crc32_init();
LG 15,@lit_1539_112 ; rd_crc32_init
@@gen_label150 DS 0H
BALR 14,15
@@gen_label151 DS 0H
ST 15,176(0,2)
* *** }
@ret_lab_1539 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1539 DC F'208'
@lit_1539_111 DC AD(rd_kafka_crash)
@lit_1539_110 DC AD(@DATA)
@lit_1539_109 DC AD(@strings@)
@lit_1539_112 DC AD(rd_crc32_init)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_crc_init"
* (FUNCTION #1539)
*
@AUTO#rd_kafka_buf_crc_init DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_buf_crc_finalize
@LNAME1540 DS 0H
DC X'00000019'
DC C'rd_kafka_buf_crc_finalize'
DC X'00'
rd_kafka_buf_crc_finalize DCCPRLG CINDEX=1540,BASER=12,FRAME=176,ENTRY=*
NO,ARCH=ZARCH,LNAMEADDR=@LNAME1540
* ******* End of Prologue
* *
* *** rkbuf->rkbuf_flags &= ~0x4;
LG 15,0(0,1) ; rkbuf
L 1,32(0,15)
NILL 1,65531
ST 1,32(0,15)
* *** return rd_crc32_finalize(rkbuf->rkbuf_crc);
LLGF 15,176(0,15)
STG 15,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1540_114 ; rd_crc32_finalize
@@gen_label152 DS 0H
BALR 14,15
@@gen_label153 DS 0H
LLGFR 15,15
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1540 DC F'176'
@lit_1540_114 DC AD(rd_crc32_finalize)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_buf_crc_finalize"
* (FUNCTION #1540)
*
@AUTO#rd_kafka_buf_crc_finalize DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_compression2str
@LNAME1559 DS 0H
DC X'00000018'
DC C'rd_kafka_compression2str'
DC X'00'
rd_kafka_compression2str DCCPRLG CINDEX=1559,BASER=12,FRAME=200,ENTRY=N*
O,ARCH=ZARCH,LNAMEADDR=@LNAME1559
DCCPRV REG=2 ; Get PRV from DVT
* ******* End of Prologue
* *
* *** static const char *names[RD_KAFKA_COMPRESSION_NUM] = {
* *** [RD_KAFKA_COMPRESSION_NONE] = "none",
* *** [RD_KAFKA_COMPRESSION_GZIP] = "gzip",
* *** [RD_KAFKA_COMPRESSION_SNAPPY] = "snappy",
* *** [RD_KAFKA_COMPRESSION_LZ4] = "lz4",
* *** [RD_KAFKA_COMPRESSION_ZSTD] = "zstd",
LT 15,4(0,1) ; compr
* *** [RD_KAFKA_COMPRESSION_INHERIT] = "inherit"
* *** static char ret[32];
* ***
* *** if ((int)compr < 0 || compr >= RD_KAFKA_COMPRESSION_NU\
* M) {
BL @L544
CHI 15,6
BL @L543
@L544 DS 0H
* *** snprintf(ret, sizeof(ret), "codec0x%x?", (int)\
* compr);
LGF 1,@lit_1559_116
LA 2,0(1,2)
LA 1,1264(0,2)
STG 1,168(0,13)
MVGHI 176(13),32
LG 1,@lit_1559_117
LA 1,348(0,1)
STG 1,184(0,13)
LGFR 15,15
STG 15,192(0,13)
LA 1,168(0,13)
LG 15,@lit_1559_118 ; snprintf
@@gen_label156 DS 0H
BALR 14,15
@@gen_label157 DS 0H
* ***
* *** return ret;
LA 15,1264(0,2)
B @ret_lab_1559
DS 0D
@FRAMESIZE_1559 DC F'200'
@lit_1559_118 DC AD(snprintf)
@lit_1559_117 DC AD(@strings@)
@lit_1559_116 DC Q(@@STATIC)
* *** }
@L543 DS 0H
* ***
* *** return names[compr];
LGFR 15,15
LGF 1,@lit_1559_116
LA 1,0(1,2)
SLLG 15,15,3(0) ; *0x8
LG 15,1216(15,1)
* *** }
@ret_lab_1559 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_compression2str"
* (FUNCTION #1559)
*
@AUTO#rd_kafka_compression2str DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgset_writer_select_MsgVersion
@LNAME1938 DS 0H
DC X'00000028'
DC C'rd_kafka_msgset_writer_select_Ms'
DC C'gVersion'
DC X'00'
rd_kafka_msgset_writer_select_$Msg$Version DCCPRLG CINDEX=1938,BASER=12*
,FRAME=528,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1938
* ******* End of Prologue
* *
* *** rd_kafka_broker_t *rkb = msetw->msetw_rkb;
LG 2,0(0,1) ; msetw
LMG 3,4,136(2) ; offset of msetw_rkb in rd_kafka_msgset_wri*
ter_s
* *** rd_kafka_toppar_t *rktp = msetw->msetw_rktp;
* *** const int16_t max_ApiVersion = rd_kafka_ProduceRequest\
* _max_version;
LG 5,@lit_1938_121
LH 15,422(0,5) ; rd_kafka_ProduceRequest_max_version
STH 15,424(0,13) ; max_ApiVersion
* *** int16_t min_ApiVersion = 0;
MVHHI 426(13),0 ; min_ApiVersion
* *** int feature;
* ***
* *** static const struct {
* *** int feature;
* *** int16_t ApiVersion;
* *** } compr_req[RD_KAFKA_COMPRESSION_NUM] = {
* *** [RD_KAFKA_COMPRESSION_LZ4] = { 0x80, 0 },
* ***
* ***
* ***
* *** };
* ***
* *** if ((feature = rkb->rkb_features & 0x200)) {
L 15,280(0,3) ; offset of rkb_features in rd_kafka_broker_*
s
NILF 15,X'00000200'
LTR 15,15
BZ @L630
* *** min_ApiVersion = 3;
MVHHI 426(13),3 ; min_ApiVersion
* *** msetw->msetw_MsgVersion = 2;
MVHI 12(2),2 ; offset of msetw_MsgVersion in rd_kafka_msg*
set_writer_s
* *** msetw->msetw_features |= feature;
O 15,16(0,2)
ST 15,16(0,2)
* *** } else if ((feature = rkb->rkb_features & 0x1)) {
B @L631
DS 0D
@FRAMESIZE_1938 DC F'528'
@lit_1938_121 DC AD(@DATA)
@lit_1938_122 DC AD(rd_kafka_broker_$Api$Version_supported)
@lit_1938_126 DC AD(rd_interval0)
@lit_1938_125 DC FD'86400000000' 0x000000141dd76000
@lit_1938_128 DC AD(mtx_lock)
@lit_1938_130 DC AD(rd_strlcpy)
@lit_1938_132 DC AD(mtx_unlock)
@lit_1938_134 DC AD(rd_kafka_compression2str)
@lit_1938_136 DC AD(rd_kafka_log0)
@lit_1938_135 DC AD(@strings@)
@lit_1938_157 DC AD(rd_kafka_msgq_first)
@lit_1938_159 DC AD(__assert)
@lit_1938_160 DC AD(rd_clock)
@L630 DS 0H
L 15,280(0,3) ; offset of rkb_features in rd_kafka_broker_*
s
NILF 15,X'00000001'
LTR 15,15
BZ @L632
* *** min_ApiVersion = 2;
MVHHI 426(13),2 ; min_ApiVersion
* *** msetw->msetw_MsgVersion = 1;
MVHI 12(2),1 ; offset of msetw_MsgVersion in rd_kafka_msg*
set_writer_s
* *** msetw->msetw_features |= feature;
O 15,16(0,2)
ST 15,16(0,2)
* *** } else {
B @L631
@L632 DS 0H
* *** if ((feature =
* *** rkb->rkb_features & 0x8)) {
L 15,280(0,3) ; offset of rkb_features in rd_kafka_broker_*
s
NILF 15,X'00000008'
LTR 15,15
BZ @L634
* *** min_ApiVersion = 1;
MVHHI 426(13),1 ; min_ApiVersion
* *** msetw->msetw_features |= feature;
O 15,16(0,2)
ST 15,16(0,2)
* *** } else
B @L635
@L634 DS 0H
* *** min_ApiVersion = 0;
MVHHI 426(13),0 ; min_ApiVersion
@L635 DS 0H
* *** msetw->msetw_MsgVersion = 0;
MVHI 12(2),0 ; offset of msetw_MsgVersion in rd_kafka_msg*
set_writer_s
* *** }
@L633 DS 0H
* ***
* *** msetw->msetw_compression = rktp->rktp_rkt->rkt_conf.co\
* mpression_codec;
@L631 DS 0H
LG 15,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s
L 15,976(0,15) ; offset of compression_codec in rd_kafka_t*
opic_conf_s
ST 15,20(0,2) ; offset of msetw_compression in rd_kafka_ms*
gset_writer_s
* ***
* ***
* ***
* ***
* ***
* *** if (msetw->msetw_compression &&
LTR 15,15
BZ @L636
* *** (rd_kafka_broker_ApiVersion_supported(
* *** rkb, 0,
* *** 0, compr_req[msetw->msetw_compression].Api\
* Version,
* *** ((void *)0)) == -1 ||
STG 3,432(0,13)
XC 440(16,13),440(13)
LGF 15,20(0,2)
SLLG 15,15,3(0) ; *0x8
LGH 15,428(15,5)
STG 15,456(0,13)
XC 464(8,13),464(13)
LA 1,432(0,13)
LG 15,@lit_1938_122 ; rd_kafka_broker_ApiVersion_supported
@@gen_label162 DS 0H
BALR 14,15
@@gen_label163 DS 0H
LHR 15,15
CHI 15,-1
BE @L637
* *** (compr_req[msetw->msetw_compression].feature &&
LGF 15,20(0,2)
SLLG 15,15,3(0) ; *0x8
LT 15,424(15,5)
BZ @L636
* *** !(msetw->msetw_rkb->rkb_features &
* *** compr_req[msetw->msetw_compression].feature)))\
* ) {
LG 15,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri*
ter_s
L 15,280(0,15) ; offset of rkb_features in rd_kafka_broker*
_s
LGF 1,20(0,2)
SLLG 1,1,3(0) ; *0x8
N 15,424(1,5)
BNZ @L636
@L637 DS 0H
* *** if (((rd_interval0(&rkb->rkb_suppress.unsuppor\
* ted_compression,(rd_ts_t)86400 * 1000 * 1000,0,0) > 0)))
LGHI 15,5928 ; 5928
LA 15,0(15,3)
STG 15,432(0,13)
LG 15,@lit_1938_125 ; 86400000000
STG 15,440(0,13)
XC 448(16,13),448(13)
LA 1,432(0,13)
LG 15,@lit_1938_126 ; rd_interval0
@@gen_label167 DS 0H
BALR 14,15
@@gen_label168 DS 0H
LTGR 15,15
BNH @L645
* ***
* ***
* ***
* *** do { char _logname[256]; mtx_lock(&(rk\
* b)->rkb_logname_lock); rd_strlcpy(_logname, rkb->rkb_logname, sizeof\
* (_logname)); mtx_unlock(&(rkb)->rkb_logname_lock); rd_kafka_log0(&(r\
* kb)->rkb_rk->rk_conf, (rkb)->rkb_rk, _logname, 5, 0x0, "COMPRESSION"\
* , "%.*s [%" "d" "]: " "Broker does not support compression " "type %\
* s: not compressing batch", (int)((rktp->rktp_rkt->rkt_topic)->len ==\
* -1 ? 0 : (rktp->rktp_rkt->rkt_topic)->len), (rktp->rktp_rkt->rkt_to\
* pic)->str, rktp->rktp_partition, rd_kafka_compression2str( msetw->ms\
* etw_compression)); } while (0);
@L639 DS 0H
LGHI 5,5688 ; 5688
LA 15,0(5,3)
STG 15,432(0,13)
LA 1,432(0,13)
LG 15,@lit_1938_128 ; mtx_lock
@@gen_label170 DS 0H
BALR 14,15
@@gen_label171 DS 0H
LA 15,168(0,13)
STG 15,432(0,13)
LGHI 15,5680 ; 5680
LG 15,0(15,3)
STG 15,440(0,13)
MVGHI 448(13),256
LA 1,432(0,13)
LG 15,@lit_1938_130 ; rd_strlcpy
@@gen_label172 DS 0H
BALR 14,15
@@gen_label173 DS 0H
LA 15,0(5,3)
STG 15,432(0,13)
LA 1,432(0,13)
LG 15,@lit_1938_132 ; mtx_unlock
@@gen_label174 DS 0H
BALR 14,15
@@gen_label175 DS 0H
LG 15,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s
CHSI 0(15),-1
BNE @L642
LHI 5,0 ; 0
B @L643
@L642 DS 0H
LG 15,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s
L 5,0(0,15)
@L643 DS 0H
LGF 15,20(0,2)
STG 15,432(0,13)
LA 1,432(0,13)
LG 15,@lit_1938_134 ; rd_kafka_compression2str
@@gen_label177 DS 0H
BALR 14,15
@@gen_label178 DS 0H
LG 1,4048(0,3) ; offset of rkb_rk in rd_kafka_broker_s
LA 1,528(0,1)
STG 1,432(0,13)
LG 1,4048(0,3)
STG 1,440(0,13)
LA 1,168(0,13)
STG 1,448(0,13)
MVGHI 456(13),5
XC 464(8,13),464(13)
LG 1,@lit_1938_135
LA 6,360(0,1)
STG 6,472(0,13)
LA 1,372(0,1)
STG 1,480(0,13)
LGFR 1,5
STG 1,488(0,13)
LG 1,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 1,128(0,1) ; offset of rkt_topic in rd_kafka_topic_s
LG 1,8(0,1)
STG 1,496(0,13)
LGF 1,104(0,4)
STG 1,504(0,13)
STG 15,512(0,13)
LA 1,432(0,13)
LG 15,@lit_1938_136 ; rd_kafka_log0
@@gen_label179 DS 0H
BALR 14,15
@@gen_label180 DS 0H
* *** # 166 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c"
* *** else
B @L644
* *** do { if ((((rkb)->rkb_rk->rk_conf.debu\
* g & (0x40)))) { do { char _logname[256]; mtx_lock(&(rkb)->rkb_lognam\
* e_lock); rd_strlcpy(_logname, rkb->rkb_logname, sizeof(_logname)); m\
* tx_unlock(&(rkb)->rkb_logname_lock); rd_kafka_log0(&(rkb)->rkb_rk->r\
* k_conf, (rkb)->rkb_rk, _logname, 7, (0x40), "PRODUCE", "%.*s [%" "d"\
* "]: " "Broker does not support compression " "type %s: not compress\
* ing batch", (int)((rktp->rktp_rkt->rkt_topic)->len == -1 ? 0 : (rktp\
* ->rktp_rkt->rkt_topic)->len), (rktp->rktp_rkt->rkt_topic)->str, rktp\
* ->rktp_partition, rd_kafka_compression2str( msetw->msetw_compression\
* )); } while (0); } } while (0);
@L645 DS 0H
LG 15,4048(0,3) ; offset of rkb_rk in rd_kafka_broker_s
TM 803(15),64
BZ @L648
@L649 DS 0H
LGHI 5,5688 ; 5688
LA 15,0(5,3)
STG 15,432(0,13)
LA 1,432(0,13)
LG 15,@lit_1938_128 ; mtx_lock
@@gen_label182 DS 0H
BALR 14,15
@@gen_label183 DS 0H
LA 15,168(0,13)
STG 15,432(0,13)
LGHI 15,5680 ; 5680
LG 15,0(15,3)
STG 15,440(0,13)
MVGHI 448(13),256
LA 1,432(0,13)
LG 15,@lit_1938_130 ; rd_strlcpy
@@gen_label184 DS 0H
BALR 14,15
@@gen_label185 DS 0H
LA 15,0(5,3)
STG 15,432(0,13)
LA 1,432(0,13)
LG 15,@lit_1938_132 ; mtx_unlock
@@gen_label186 DS 0H
BALR 14,15
@@gen_label187 DS 0H
LG 15,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s
CHSI 0(15),-1
BNE @L652
LHI 5,0 ; 0
B @L653
@L652 DS 0H
LG 15,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s
L 5,0(0,15)
@L653 DS 0H
LGF 15,20(0,2)
STG 15,432(0,13)
LA 1,432(0,13)
LG 15,@lit_1938_134 ; rd_kafka_compression2str
@@gen_label189 DS 0H
BALR 14,15
@@gen_label190 DS 0H
LG 1,4048(0,3) ; offset of rkb_rk in rd_kafka_broker_s
LA 1,528(0,1)
STG 1,432(0,13)
LG 1,4048(0,3)
STG 1,440(0,13)
LA 1,168(0,13)
STG 1,448(0,13)
MVGHI 456(13),7
MVGHI 464(13),64
LG 1,@lit_1938_135
LA 6,450(0,1)
STG 6,472(0,13)
LA 1,372(0,1)
STG 1,480(0,13)
LGFR 1,5
STG 1,488(0,13)
LG 1,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 1,128(0,1) ; offset of rkt_topic in rd_kafka_topic_s
LG 1,8(0,1)
STG 1,496(0,13)
LGF 1,104(0,4)
STG 1,504(0,13)
STG 15,512(0,13)
LA 1,432(0,13)
LG 15,@lit_1938_136 ; rd_kafka_log0
@@gen_label191 DS 0H
BALR 14,15
@@gen_label192 DS 0H
@L648 DS 0H
* ***
* *** # 176 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c"
* *** msetw->msetw_compression = RD_KAFKA_COMPRESSIO\
* N_NONE;
@L644 DS 0H
MVHI 20(2),0 ; offset of msetw_compression in rd_kafka_ms*
gset_writer_s
* *** } else {
B @L656
@L636 DS 0H
* ***
* *** msetw->msetw_features |=
* *** compr_req[msetw->msetw_compression].fe\
* ature;
L 15,16(0,2)
LGF 1,20(0,2)
SLLG 1,1,3(0) ; *0x8
O 15,424(1,5)
ST 15,16(0,2)
* ***
* *** if (min_ApiVersion <
* *** compr_req[msetw->msetw_compression].ApiVer\
* sion)
LH 15,426(0,13) ; min_ApiVersion
LGF 1,20(0,2)
SLLG 1,1,3(0) ; *0x8
CH 15,428(1,5)
BNL @L656
* *** min_ApiVersion =
* *** compr_req[msetw->msetw_compres\
* sion].ApiVersion;
LGF 15,20(0,2)
SLLG 15,15,3(0) ; *0x8
LH 15,428(15,5) ; offset of ApiVersion in 0000156
STH 15,426(0,13) ; min_ApiVersion
@L655 DS 0H
* *** }
@L654 DS 0H
* ***
* ***
* *** switch (msetw->msetw_MsgVersion)
B @L656
* *** {
* *** case 2:
@L658 DS 0H
* *** msetw->msetw_relative_offsets = 1;
MVHI 72(2),1 ; offset of msetw_relative_offsets in rd_kaf*
ka_msgset_writer_s
* *** break;
B @L657
* *** case 1:
@L659 DS 0H
* *** if (msetw->msetw_compression != RD_KAFKA_COMPR\
* ESSION_NONE)
CHSI 20(2),0
BE @L657
* *** msetw->msetw_relative_offsets = 1;
MVHI 72(2),1 ; offset of msetw_relative_offsets in rd_kaf*
ka_msgset_writer_s
@L660 DS 0H
* *** break;
B @L657
* *** }
@L656 DS 0H
L 15,12(0,2) ; offset of msetw_MsgVersion in rd_kafka_msg*
set_writer_s
CHI 15,1
BL @L657
CHI 15,1
BE @L659
CHI 15,2
BE @L658
@L657 DS 0H
* ***
* ***
* *** msetw->msetw_ApiVersion = rd_kafka_broker_ApiVersion_s\
* upported(
* *** rkb,
* *** 0, min_ApiVersion, max_ApiVersion, ((void *)0)\
* );
STG 3,432(0,13)
XC 440(8,13),440(13)
LGH 15,426(0,13) ; min_ApiVersion
STG 15,448(0,13)
LGH 15,424(0,13) ; max_ApiVersion
STG 15,456(0,13)
XC 464(8,13),464(13)
LA 1,432(0,13)
LG 15,@lit_1938_122 ; rd_kafka_broker_ApiVersion_supported
@@gen_label195 DS 0H
BALR 14,15
@@gen_label196 DS 0H
STH 15,8(0,2)
* ***
* *** if (msetw->msetw_ApiVersion == -1) {
LH 15,8(0,2)
CHI 15,-1
BNE @L661
* *** rd_kafka_msg_t *rkm;
* ***
* ***
* ***
* *** do { char _logname[256]; mtx_lock(&(rkb)->rkb_\
* logname_lock); rd_strlcpy(_logname, rkb->rkb_logname, sizeof(_lognam\
* e)); mtx_unlock(&(rkb)->rkb_logname_lock); rd_kafka_log0(&(rkb)->rkb\
* _rk->rk_conf, (rkb)->rkb_rk, _logname, 3, 0x0, "PRODUCE", "%.*s [%" \
* "d" "]: " "No viable ProduceRequest ApiVersions (v%d..%d) " "support\
* ed by broker: unable to produce", (int)((rktp->rktp_rkt->rkt_topic)-\
* >len == -1 ? 0 : (rktp->rktp_rkt->rkt_topic)->len), (rktp->rktp_rkt-\
* >rkt_topic)->str, rktp->rktp_partition, min_ApiVersion, max_ApiVersi\
* on); } while (0);
@L662 DS 0H
LGHI 5,5688 ; 5688
LA 15,0(5,3)
STG 15,432(0,13)
LA 1,432(0,13)
LG 15,@lit_1938_128 ; mtx_lock
@@gen_label198 DS 0H
BALR 14,15
@@gen_label199 DS 0H
LA 15,168(0,13)
STG 15,432(0,13)
LGHI 15,5680 ; 5680
LG 15,0(15,3)
STG 15,440(0,13)
MVGHI 448(13),256
LA 1,432(0,13)
LG 15,@lit_1938_130 ; rd_strlcpy
@@gen_label200 DS 0H
BALR 14,15
@@gen_label201 DS 0H
LA 15,0(5,3)
STG 15,432(0,13)
LA 1,432(0,13)
LG 15,@lit_1938_132 ; mtx_unlock
@@gen_label202 DS 0H
BALR 14,15
@@gen_label203 DS 0H
LG 15,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s
CHSI 0(15),-1
BNE @L665
LHI 15,0 ; 0
B @L666
@L665 DS 0H
LG 15,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s
L 15,0(0,15)
@L666 DS 0H
LG 1,4048(0,3) ; offset of rkb_rk in rd_kafka_broker_s
LA 1,528(0,1)
STG 1,432(0,13)
LG 1,4048(0,3)
STG 1,440(0,13)
LA 1,168(0,13)
STG 1,448(0,13)
MVGHI 456(13),3
XC 464(8,13),464(13)
LG 3,@lit_1938_135
LA 1,450(0,3)
STG 1,472(0,13)
LA 1,458(0,3)
STG 1,480(0,13)
LGFR 15,15
STG 15,488(0,13)
LG 15,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s
LG 15,8(0,15)
STG 15,496(0,13)
LGF 15,104(0,4)
STG 15,504(0,13)
LH 15,426(0,13) ; min_ApiVersion
LGFR 15,15
STG 15,512(0,13)
LH 15,424(0,13) ; max_ApiVersion
LGFR 15,15
STG 15,520(0,13)
LA 1,432(0,13)
LG 15,@lit_1938_136 ; rd_kafka_log0
@@gen_label205 DS 0H
BALR 14,15
@@gen_label206 DS 0H
* ***
* *** # 218 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c"
* ***
* *** rkm = rd_kafka_msgq_first(msetw->msetw_msgq);
LG 15,152(0,2)
STG 15,432(0,13)
LA 1,432(0,13)
LG 15,@lit_1938_157 ; rd_kafka_msgq_first
@@gen_label207 DS 0H
BALR 14,15
@@gen_label208 DS 0H
LGR 2,15
* *** ((rkm) ? (void)0 : __assert(__func__, "C:\\asg\
* kafka\\librdkafka\\src\\rdkafka_msgset_writer.c", 220, "rkm"));
LTGR 15,2
BNZ @L668
@L667 DS 0H
LG 15,@lit_1938_121
LA 15,472(0,15)
STG 15,432(0,13)
LA 15,556(0,3)
STG 15,440(0,13)
MVGHI 448(13),220
LA 15,608(0,3)
STG 15,456(0,13)
LA 1,432(0,13)
LG 15,@lit_1938_159 ; __assert
@@gen_label210 DS 0H
BALR 14,15
@@gen_label211 DS 0H
@L668 DS 0H
* *** rkm->rkm_u.producer.ts_backoff = rd_clock() + \
* (5 * 1000*1000);
LG 15,@lit_1938_160 ; rd_clock
@@gen_label212 DS 0H
BALR 14,15
@@gen_label213 DS 0H
AGFI 15,X'004C4B40'
STG 15,136(0,2)
* *** return -1;
LGHI 15,-1 ; -1
B @ret_lab_1938
* *** }
@L661 DS 0H
* ***
* ***
* ***
* *** ((msetw->msetw_ApiVersion >= min_ApiVersion) ? (void)0\
* : __assert(__func__, "C:\\asgkafka\\librdkafka\\src\\rdkafka_msgset\
* _writer.c", 227, "msetw->msetw_ApiVersion >= min_ApiVersion"));
LH 15,8(0,2)
CH 15,426(0,13)
BNL @L670
@L669 DS 0H
LG 15,@lit_1938_121
LA 15,472(0,15)
STG 15,432(0,13)
LG 15,@lit_1938_135
LA 1,556(0,15)
STG 1,440(0,13)
MVGHI 448(13),227
LA 15,612(0,15)
STG 15,456(0,13)
LA 1,432(0,13)
LG 15,@lit_1938_159 ; __assert
@@gen_label215 DS 0H
BALR 14,15
@@gen_label216 DS 0H
@L670 DS 0H
* ***
* *** return 0;
LGHI 15,0 ; 0
* *** }
@ret_lab_1938 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_msgset_writer_select_Ms
* gVersion"
* (FUNCTION #1938)
*
@AUTO#rd_kafka_msgset_writer_select_$Msg$Version DSECT
DS XL168
rd_kafka_msgset_writer_select_$Msg$Version#_logname#13 DS 256XL1 ; _log*
name
ORG @AUTO#rd_kafka_msgset_writer_select_$Msg$Version+168
rd_kafka_msgset_writer_select_$Msg$Version#_logname#9 DS 256XL1 ; _logn*
ame
ORG @AUTO#rd_kafka_msgset_writer_select_$Msg$Version+168
rd_kafka_msgset_writer_select_$Msg$Version#_logname#6 DS 256XL1 ; _logn*
ame
ORG @AUTO#rd_kafka_msgset_writer_select_$Msg$Version+168
rd_kafka_msgset_writer_select_$Msg$Version#feature#0 DS 1F ; feature
ORG @AUTO#rd_kafka_msgset_writer_select_$Msg$Version+424
rd_kafka_msgset_writer_select_$Msg$Version#max_$Api$Version#0 DS 2XL1 ;*
max_ApiVersion
ORG @AUTO#rd_kafka_msgset_writer_select_$Msg$Version+426
rd_kafka_msgset_writer_select_$Msg$Version#min_$Api$Version#0 DS 2XL1 ;*
min_ApiVersion
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgset_writer_alloc_buf
@LNAME1939 DS 0H
DC X'00000020'
DC C'rd_kafka_msgset_writer_alloc_buf'
DC X'00'
rd_kafka_msgset_writer_alloc_buf DCCPRLG CINDEX=1939,BASER=12,FRAME=216*
,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1939
* ******* End of Prologue
* *
* *** rd_kafka_t *rk = msetw->msetw_rkb->rkb_rk;
LG 5,0(0,1) ; msetw
LG 15,136(0,5) ; offset of msetw_rkb in rd_kafka_msgset_wri*
ter_s
LG 6,4048(0,15) ; offset of rkb_rk in rd_kafka_broker_s
* *** size_t msg_overhead = 0;
LGHI 4,0 ; 0
* *** size_t hdrsize = 0;
LGR 2,4 ; hdrsize
* *** size_t msgsetsize = 0;
LGR 3,4 ; msgsetsize
* *** size_t bufsize;
* ***
* *** do { if (((!(!msetw->msetw_rkbuf)))) rd_kafka_crash("C\
* :\\asgkafka\\librdkafka\\src\\rdkafka_msgset_writer.c",250, __FUNCTI\
* ON__, (((void *)0)), "assert: " "!msetw->msetw_rkbuf"); } while (0);
@L671 DS 0H
LTG 15,0(0,5) ; msetw
BZ @L675
LG 15,@lit_1939_170
LA 1,556(0,15)
STG 1,176(0,13)
MVGHI 184(13),250
LG 1,@lit_1939_171
LA 1,514(0,1)
STG 1,192(0,13)
XC 200(8,13),200(13)
LA 15,654(0,15)
STG 15,208(0,13)
LA 1,176(0,13)
LG 15,@lit_1939_172 ; rd_kafka_crash
@@gen_label218 DS 0H
BALR 14,15
@@gen_label219 DS 0H
@L674 DS 0H
* ***
* ***
* ***
* *** # 267 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c"
* ***
* ***
* ***
* *** switch (msetw->msetw_ApiVersion)
B @L675
DS 0D
@FRAMESIZE_1939 DC F'216'
@lit_1939_172 DC AD(rd_kafka_crash)
@lit_1939_171 DC AD(@DATA)
@lit_1939_170 DC AD(@strings@)
@lit_1939_177 DC AD(__assert)
@lit_1939_178 DC FD'7' 0x0000000000000007
@lit_1939_179 DC FD'248' 0x00000000000000f8
@lit_1939_185 DC AD(rd_kafka_msgq_size)
@lit_1939_186 DC AD(rd_kafka_buf_new_request0)
@lit_1939_187 DC AD(rd_kafka_buf_$Api$Version_set)
* *** {
* *** case 7:
* *** case 6:
* *** case 5:
* *** case 4:
* *** case 3:
@L681 DS 0H
* ***
* *** hdrsize += (2 + (((rk->rk_eos.transactional_id\
* )->len) == -1 ? 0 : ((rk->rk_eos.transactional_id)->len)));
LG 15,3376(0,6) ; offset of transactional_id in 0000146
CHSI 0(15),-1
BNE @L682
LHI 15,0 ; 0
B @L683
@L682 DS 0H
LG 15,3376(0,6) ; offset of transactional_id in 0000146
L 15,0(0,15)
@L683 DS 0H
AHI 15,2
LGFR 15,15
ALGR 2,15
* ***
* *** case 0:
@L684 DS 0H
* *** case 1:
@L685 DS 0H
* *** case 2:
@L686 DS 0H
* *** hdrsize +=
* ***
* *** 2 + 4 + 4 +
* ***
* *** (2 + (((msetw->msetw_rktp-> rktp_rkt->\
* rkt_topic)->len) == -1 ? 0 : ((msetw->msetw_rktp-> rktp_rkt->rkt_top\
* ic)->len))) +
LG 15,144(0,5) ; offset of msetw_rktp in rd_kafka_msgset_wr*
iter_s
LG 15,96(0,15) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s
CHSI 0(15),-1
BNE @L687
LHI 15,0 ; 0
B @L688
@L687 DS 0H
LG 15,144(0,5) ; offset of msetw_rktp in rd_kafka_msgset_wr*
iter_s
LG 15,96(0,15) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s
L 15,0(0,15)
@L688 DS 0H
* ***
* ***
* *** 4 + 4 + 4;
AHI 15,2
AHI 15,10
AHI 15,4
AHI 15,4
AHI 15,4
LGFR 15,15
ALGR 2,15
* *** msgsetsize += 4;
AGHI 3,4
* *** break;
B @L692
* ***
* *** default:
* *** ((!*"/* NOTREACHED */ violated") ? (void)0 : _\
* _assert(__func__, "C:\\asgkafka\\librdkafka\\src\\rdkafka_msgset_wri\
* ter.c", 295, "!*\"/* NOTREACHED */ violated\""));
@L689 DS 0H
LG 15,@lit_1939_170
LA 1,682(0,15)
CLI 0(1),0
BE @L692
@L690 DS 0H
LG 1,@lit_1939_171
LA 1,514(0,1)
STG 1,176(0,13)
LA 1,556(0,15)
STG 1,184(0,13)
MVGHI 192(13),295
LA 15,708(0,15)
STG 15,200(0,13)
LA 1,176(0,13)
LG 15,@lit_1939_177 ; __assert
@@gen_label223 DS 0H
BALR 14,15
@@gen_label224 DS 0H
@L691 DS 0H
* *** }
B @L692
@L675 DS 0H
LH 15,8(0,5)
CLFI 15,X'00000007'
BH @L689
LGFR 15,15
LGHI 1,1
SLLG 1,1,0(15)
LGR 15,1
NG 15,@lit_1939_178
BNZ @L686
NG 1,@lit_1939_179
BNZ @L681
B @L689
* ***
* ***
* ***
* ***
* ***
* ***
* *** switch (msetw->msetw_MsgVersion)
* *** {
* *** case 0:
@L694 DS 0H
* ***
* *** msg_overhead = ((8+4) + (4+1+1+4+4));
LGHI 4,26 ; 26
* *** break;
B @L693
* *** case 1:
@L695 DS 0H
* ***
* *** msg_overhead = ((8+4) + (4+1+1+8+4+4));
LGHI 4,34 ; 34
* *** break;
B @L693
* ***
* *** case 2:
@L696 DS 0H
* ***
* *** msg_overhead += ( (sizeof(int32_t) + 1 + (size\
* of(int32_t)/7)) + 1 + (sizeof(int64_t) + 1 + (sizeof(int64_t)/7)) + \
* (sizeof(int32_t) + 1 + (sizeof(int32_t)/7)) + (sizeof(int32_t) + 1 +\
* (sizeof(int32_t)/7)) + (sizeof(int32_t) + 1 + (sizeof(int32_t)/7)) \
* + (sizeof(int32_t) + 1 + (sizeof(int32_t)/7)) );
AGHI 4,36
* ***
* ***
* *** msgsetsize +=
* *** 8 +
* *** 4 +
* *** 4 +
* *** 1 +
* *** 4 +
* *** 2 +
* *** 4 +
* *** 8 +
* *** 8 +
* *** 8 +
* *** 2 +
* *** 4 +
* *** 4 ;
AGHI 3,61
* *** break;
B @L693
* ***
* *** default:
* *** ((!*"/* NOTREACHED */ violated") ? (void)0 : _\
* _assert(__func__, "C:\\asgkafka\\librdkafka\\src\\rdkafka_msgset_wri\
* ter.c", 336, "!*\"/* NOTREACHED */ violated\""));
@L697 DS 0H
LG 15,@lit_1939_170
LA 1,682(0,15)
CLI 0(1),0
BE @L693
@L698 DS 0H
LG 1,@lit_1939_171
LA 1,514(0,1)
STG 1,176(0,13)
LA 1,556(0,15)
STG 1,184(0,13)
MVGHI 192(13),336
LA 15,708(0,15)
STG 15,200(0,13)
LA 1,176(0,13)
LG 15,@lit_1939_177 ; __assert
@@gen_label226 DS 0H
BALR 14,15
@@gen_label227 DS 0H
@L699 DS 0H
* *** }
B @L693
@L692 DS 0H
LT 15,12(0,5) ; offset of msetw_MsgVersion in rd_kafka_msg*
set_writer_s
BL @L697
LTR 15,15
BE @L694
CHI 15,1
BE @L695
CHI 15,2
BE @L696
B @L697
@L693 DS 0H
* ***
* ***
* ***
* ***
* *** bufsize = hdrsize + msgsetsize;
ALGR 2,3
* ***
* ***
* ***
* ***
* *** if (rk->rk_conf.msg_copy_max_size > 0) {
CHSI 760(6),0
BNH @L700
* *** size_t queued_bytes = rd_kafka_msgq_size(msetw\
* ->msetw_msgq);
LG 15,152(0,5)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1939_185 ; rd_kafka_msgq_size
@@gen_label229 DS 0H
BALR 14,15
@@gen_label230 DS 0H
* *** bufsize += ((queued_bytes) < ((size_t)rk->rk_c\
* onf.msg_copy_max_size * msetw->msetw_msgcntmax) ? (queued_bytes) : (\
* (size_t)rk->rk_conf.msg_copy_max_size * msetw->msetw_msgcntmax));
LGF 1,760(0,6)
LGF 3,24(0,5)
MSGR 1,3
CLGR 15,1
BNL @L701
B @L702
@L701 DS 0H
LGF 15,760(0,6)
LGF 1,24(0,5)
MSGR 15,1
@L702 DS 0H
ALGR 2,15
* ***
* ***
* *** }
@L700 DS 0H
* ***
* ***
* *** bufsize += msg_overhead * msetw->msetw_msgcntmax;
LGF 15,24(0,5)
MSGR 4,15
ALGR 2,4
* ***
* ***
* *** if (bufsize > (size_t)rk->rk_conf.max_msg_size)
LGF 15,756(0,6)
CLGR 2,15
BNH @L703
* *** bufsize = (size_t)rk->rk_conf.max_msg_size;
LGF 2,756(0,6)
@L703 DS 0H
* ***
* ***
* ***
* ***
* ***
* *** msetw->msetw_rkbuf =
* *** rd_kafka_buf_new_request0(msetw->msetw_rkb,0,m\
* setw->msetw_msgcntmax/2 + 10,bufsize,0);
LG 15,136(0,5)
STG 15,176(0,13)
XC 184(8,13),184(13)
L 15,24(0,5) ; offset of msetw_msgcntmax in rd_kafka_msgs*
et_writer_s
LR 1,15 ; /0x2
SRL 1,31(0) ; .
AR 1,15 ; .
SRA 1,1(0) ; .
AHI 1,10
LGFR 15,1
STG 15,192(0,13)
STG 2,200(0,13)
XC 208(8,13),208(13)
LA 1,176(0,13)
LG 15,@lit_1939_186 ; rd_kafka_buf_new_request0
@@gen_label233 DS 0H
BALR 14,15
@@gen_label234 DS 0H
STG 15,0(0,5)
* ***
* ***
* ***
* *** rd_kafka_buf_ApiVersion_set(msetw->msetw_rkbuf,
* *** msetw->msetw_ApiVersion,
* *** msetw->msetw_features);
STG 15,176(0,13)
LGH 15,8(0,5)
STG 15,184(0,13)
LGF 15,16(0,5)
STG 15,192(0,13)
LA 1,176(0,13)
LG 15,@lit_1939_187 ; rd_kafka_buf_ApiVersion_set
@@gen_label235 DS 0H
BALR 14,15
@@gen_label236 DS 0H
* *** }
@ret_lab_1939 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_msgset_writer_alloc_buf"
* (FUNCTION #1939)
*
@AUTO#rd_kafka_msgset_writer_alloc_buf DSECT
DS XL168
rd_kafka_msgset_writer_alloc_buf#queued_bytes#4 DS 8XL1 ; queued_bytes
ORG @AUTO#rd_kafka_msgset_writer_alloc_buf+168
rd_kafka_msgset_writer_alloc_buf#bufsize#0 DS 8XL1 ; bufsize
ORG @AUTO#rd_kafka_msgset_writer_alloc_buf+168
rd_kafka_msgset_writer_alloc_buf#msgsetsize#0 DS 8XL1 ; msgsetsize
ORG @AUTO#rd_kafka_msgset_writer_alloc_buf+168
rd_kafka_msgset_writer_alloc_buf#hdrsize#0 DS 8XL1 ; hdrsize
ORG @AUTO#rd_kafka_msgset_writer_alloc_buf+168
rd_kafka_msgset_writer_alloc_buf#msg_overhead#0 DS 8XL1 ; msg_overhead
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgset_writer_write_MessageSet_v2_header
@LNAME1940 DS 0H
DC X'00000031'
DC C'rd_kafka_msgset_writer_write_Mes'
DC C'sageSet_v2_header'
DC X'00'
rd_kafka_msgset_writer_write_$Message$Set_v2_header DCCPRLG CINDEX=1940*
,BASER=12,FRAME=216,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME*
1940
* ******* End of Prologue
* *
* *** rd_kafka_buf_t *rkbuf = msetw->msetw_rkbuf;
LG 2,0(0,1) ; msetw
LG 3,0(0,2) ; msetw
* ***
* *** do { if (((!(msetw->msetw_ApiVersion >= 3)))) rd_kafka\
* _crash("C:\\asgkafka\\librdkafka\\src\\rdkafka_msgset_writer.c",385,\
* __FUNCTION__, (((void *)0)), "assert: " "msetw->msetw_ApiVersion >=\
* 3"); } while (0);
@L704 DS 0H
LH 15,8(0,2)
CHI 15,3
BNL @L707
LG 15,@lit_1940_189
LA 1,556(0,15)
STG 1,176(0,13)
MVGHI 184(13),385
LG 1,@lit_1940_190
LA 1,548(0,1)
STG 1,192(0,13)
XC 200(8,13),200(13)
LA 15,738(0,15)
STG 15,208(0,13)
LA 1,176(0,13)
LG 15,@lit_1940_191 ; rd_kafka_crash
@@gen_label238 DS 0H
BALR 14,15
@@gen_label239 DS 0H
@L707 DS 0H
* *** do { if (((!(msetw->msetw_MsgVersion == 2)))) rd_kafka\
* _crash("C:\\asgkafka\\librdkafka\\src\\rdkafka_msgset_writer.c",386,\
* __FUNCTION__, (((void *)0)), "assert: " "msetw->msetw_MsgVersion ==\
* 2"); } while (0);
@L708 DS 0H
CHSI 12(2),2
BE @L711
LG 15,@lit_1940_189
LA 1,556(0,15)
STG 1,176(0,13)
MVGHI 184(13),386
LG 1,@lit_1940_190
LA 1,548(0,1)
STG 1,192(0,13)
XC 200(8,13),200(13)
LA 15,776(0,15)
STG 15,208(0,13)
LA 1,176(0,13)
LG 15,@lit_1940_191 ; rd_kafka_crash
@@gen_label241 DS 0H
BALR 14,15
@@gen_label242 DS 0H
@L711 DS 0H
* ***
* ***
* ***
* *** msetw->msetw_of_start = rd_kafka_buf_write_i64(rkbuf, \
* 0);
STG 3,176(0,13)
XC 184(8,13),184(13)
LA 1,176(0,13)
LG 4,@lit_1940_195 ; rd_kafka_buf_write_i64
LGR 15,4
@@gen_label243 DS 0H
BALR 14,15
@@gen_label244 DS 0H
STG 15,64(0,2)
* ***
* ***
* *** rd_kafka_buf_write_i32(rkbuf, 0);
STG 3,176(0,13)
XC 184(8,13),184(13)
LA 1,176(0,13)
LG 5,@lit_1940_196 ; rd_kafka_buf_write_i32
LGR 15,5
@@gen_label245 DS 0H
BALR 14,15
@@gen_label246 DS 0H
* ***
* ***
* *** rd_kafka_buf_write_i32(rkbuf, 0);
STG 3,176(0,13)
XC 184(8,13),184(13)
LA 1,176(0,13)
LGR 15,5
@@gen_label247 DS 0H
BALR 14,15
@@gen_label248 DS 0H
* ***
* ***
* *** rd_kafka_buf_write_i8(rkbuf, msetw->msetw_MsgVersion);
STG 3,176(0,13)
L 15,12(0,2) ; offset of msetw_MsgVersion in rd_kafka_msg*
set_writer_s
SLLG 15,15,56(0)
SRAG 15,15,56(0)
STG 15,184(0,13)
LA 1,176(0,13)
LG 15,@lit_1940_198 ; rd_kafka_buf_write_i8
@@gen_label249 DS 0H
BALR 14,15
@@gen_label250 DS 0H
* ***
* ***
* ***
* ***
* ***
* *** msetw->msetw_of_CRC = rd_kafka_buf_write_i32(rkbuf, 0)\
* ;
STG 3,176(0,13)
XC 184(8,13),184(13)
LA 1,176(0,13)
LGR 15,5
@@gen_label251 DS 0H
BALR 14,15
@@gen_label252 DS 0H
STG 15,88(0,2)
* ***
* ***
* *** rd_kafka_buf_write_i16(rkbuf, 0);
STG 3,176(0,13)
XC 184(8,13),184(13)
LA 1,176(0,13)
LG 6,@lit_1940_200 ; rd_kafka_buf_write_i16
LGR 15,6
@@gen_label253 DS 0H
BALR 14,15
@@gen_label254 DS 0H
* ***
* ***
* *** rd_kafka_buf_write_i32(rkbuf, 0);
STG 3,176(0,13)
XC 184(8,13),184(13)
LA 1,176(0,13)
LGR 15,5
@@gen_label255 DS 0H
BALR 14,15
@@gen_label256 DS 0H
* ***
* ***
* *** rd_kafka_buf_write_i64(rkbuf, 0);
STG 3,176(0,13)
XC 184(8,13),184(13)
LA 1,176(0,13)
LGR 15,4
@@gen_label257 DS 0H
BALR 14,15
@@gen_label258 DS 0H
* ***
* ***
* *** rd_kafka_buf_write_i64(rkbuf, 0);
STG 3,176(0,13)
XC 184(8,13),184(13)
LA 1,176(0,13)
LGR 15,4
@@gen_label259 DS 0H
BALR 14,15
@@gen_label260 DS 0H
* ***
* ***
* *** rd_kafka_buf_write_i64(rkbuf, msetw->msetw_pid.id);
STG 3,176(0,13)
LG 15,120(0,2)
STG 15,184(0,13)
LA 1,176(0,13)
LGR 15,4
@@gen_label261 DS 0H
BALR 14,15
@@gen_label262 DS 0H
* ***
* ***
* *** rd_kafka_buf_write_i16(rkbuf, msetw->msetw_pid.epoch);
STG 3,176(0,13)
LGH 15,128(0,2)
STG 15,184(0,13)
LA 1,176(0,13)
LGR 15,6
@@gen_label263 DS 0H
BALR 14,15
@@gen_label264 DS 0H
* ***
* ***
* *** rd_kafka_buf_write_i32(rkbuf, -1);
STG 3,176(0,13)
MVGHI 184(13),-1
LA 1,176(0,13)
LGR 15,5
@@gen_label265 DS 0H
BALR 14,15
@@gen_label266 DS 0H
* ***
* ***
* *** rd_kafka_buf_write_i32(rkbuf, 0);
STG 3,176(0,13)
XC 184(8,13),184(13)
LA 1,176(0,13)
LGR 15,5
@@gen_label267 DS 0H
BALR 14,15
@@gen_label268 DS 0H
* ***
* *** }
@ret_lab_1940 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1940 DC F'216'
@lit_1940_191 DC AD(rd_kafka_crash)
@lit_1940_190 DC AD(@DATA)
@lit_1940_189 DC AD(@strings@)
@lit_1940_195 DC AD(rd_kafka_buf_write_i64)
@lit_1940_196 DC AD(rd_kafka_buf_write_i32)
@lit_1940_198 DC AD(rd_kafka_buf_write_i8)
@lit_1940_200 DC AD(rd_kafka_buf_write_i16)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_msgset_writer_write_Mes
* sageSet_v2_header"
* (FUNCTION #1940)
*
@AUTO#rd_kafka_msgset_writer_write_$Message$Set_v2_header DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgset_writer_write_Produce_header
@LNAME1941 DS 0H
DC X'0000002B'
DC C'rd_kafka_msgset_writer_write_Pro'
DC C'duce_header'
DC X'00'
rd_kafka_msgset_writer_write_$Produce_header DCCPRLG CINDEX=1941,BASER=*
12,FRAME=192,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1941
* ******* End of Prologue
* *
LG 2,0(0,1) ; msetw
* ***
* *** rd_kafka_buf_t *rkbuf = msetw->msetw_rkbuf;
LG 3,0(0,2) ; msetw
* *** rd_kafka_t *rk = msetw->msetw_rkb->rkb_rk;
LG 15,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri*
ter_s
LG 15,4048(0,15) ; offset of rkb_rk in rd_kafka_broker_s
* *** rd_kafka_topic_t *rkt = msetw->msetw_rktp->rktp_rkt;
LG 1,144(0,2) ; offset of msetw_rktp in rd_kafka_msgset_wr*
iter_s
LG 4,96(0,1) ; offset of rktp_rkt in rd_kafka_toppar_s
* ***
* ***
* *** if (msetw->msetw_ApiVersion >= 3)
LH 1,8(0,2)
CHI 1,3
BL @L712
* *** rd_kafka_buf_write_kstr(rkbuf, rk->rk_eos.tran\
* sactional_id);
STG 3,176(0,13)
LG 15,3376(0,15)
STG 15,184(0,13)
LA 1,176(0,13)
LG 15,@lit_1941_209 ; rd_kafka_buf_write_kstr
@@gen_label270 DS 0H
BALR 14,15
@@gen_label271 DS 0H
@L712 DS 0H
* ***
* ***
* *** rd_kafka_buf_write_i16(rkbuf, rkt->rkt_conf.required_a\
* cks);
STG 3,176(0,13)
L 15,928(0,4) ; offset of required_acks in rd_kafka_topic_*
conf_s
LGHR 15,15
STG 15,184(0,13)
LA 1,176(0,13)
LG 15,@lit_1941_210 ; rd_kafka_buf_write_i16
@@gen_label272 DS 0H
BALR 14,15
@@gen_label273 DS 0H
* ***
* ***
* *** rd_kafka_buf_write_i32(rkbuf, rkt->rkt_conf.request_ti\
* meout_ms);
STG 3,176(0,13)
LGF 15,932(0,4)
STG 15,184(0,13)
LA 1,176(0,13)
LG 5,@lit_1941_211 ; rd_kafka_buf_write_i32
LGR 15,5
@@gen_label274 DS 0H
BALR 14,15
@@gen_label275 DS 0H
* ***
* ***
* *** rd_kafka_buf_write_i32(rkbuf, 1);
STG 3,176(0,13)
MVGHI 184(13),1
LA 1,176(0,13)
LGR 15,5
@@gen_label276 DS 0H
BALR 14,15
@@gen_label277 DS 0H
* ***
* ***
* *** rd_kafka_buf_write_kstr(rkbuf, rkt->rkt_topic);
STG 3,176(0,13)
LG 15,128(0,4)
STG 15,184(0,13)
LA 1,176(0,13)
LG 15,@lit_1941_209 ; rd_kafka_buf_write_kstr
@@gen_label278 DS 0H
BALR 14,15
@@gen_label279 DS 0H
* ***
* ***
* *** rd_kafka_buf_write_i32(rkbuf, 1);
STG 3,176(0,13)
MVGHI 184(13),1
LA 1,176(0,13)
LGR 15,5
@@gen_label280 DS 0H
BALR 14,15
@@gen_label281 DS 0H
* ***
* ***
* *** rd_kafka_buf_write_i32(rkbuf, msetw->msetw_rktp->rktp_\
* partition);
STG 3,176(0,13)
LG 15,144(0,2) ; offset of msetw_rktp in rd_kafka_msgset_wr*
iter_s
LGF 15,104(0,15)
STG 15,184(0,13)
LA 1,176(0,13)
LGR 15,5
@@gen_label282 DS 0H
BALR 14,15
@@gen_label283 DS 0H
* ***
* ***
* *** msetw->msetw_of_MessageSetSize = rd_kafka_buf_write_i3\
* 2(rkbuf, 0);
STG 3,176(0,13)
XC 184(8,13),184(13)
LA 1,176(0,13)
LGR 15,5
@@gen_label284 DS 0H
BALR 14,15
@@gen_label285 DS 0H
STG 15,56(0,2)
* ***
* *** if (msetw->msetw_MsgVersion == 2) {
CHSI 12(2),2
BNE @L713
* ***
* *** rd_kafka_msgset_writer_write_MessageSet_v2_hea\
* der(msetw);
STG 2,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1941_217 ; rd_kafka_msgset_writer_write_MessageS*
et_v2_header
@@gen_label287 DS 0H
BALR 14,15
@@gen_label288 DS 0H
* *** msetw->msetw_MessageSetSize = (8+4+4+1+4+2+4+8\
* +8+8+2+4+4);
MVGHI 48(2),61 ; offset of msetw_MessageSetSize in rd_kafka*
_msgset_writer_s
* *** } else {
B @L714
DS 0D
@FRAMESIZE_1941 DC F'192'
@lit_1941_209 DC AD(rd_kafka_buf_write_kstr)
@lit_1941_210 DC AD(rd_kafka_buf_write_i16)
@lit_1941_211 DC AD(rd_kafka_buf_write_i32)
@lit_1941_217 DC AD(rd_kafka_msgset_writer_write_$Message$Set_v2_header*
)
@L713 DS 0H
* ***
* *** msetw->msetw_MessageSetSize = 0;
MVGHI 48(2),0 ; offset of msetw_MessageSetSize in rd_kafka*
_msgset_writer_s
* *** }
@L714 DS 0H
* *** }
@ret_lab_1941 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_msgset_writer_write_Pro
* duce_header"
* (FUNCTION #1941)
*
@AUTO#rd_kafka_msgset_writer_write_$Produce_header DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgset_writer_init
@LNAME1942 DS 0H
DC X'0000001B'
DC C'rd_kafka_msgset_writer_init'
DC X'00'
rd_kafka_msgset_writer_init DCCPRLG CINDEX=1942,BASER=12,FRAME=216,ENTR*
Y=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1942
LGR 4,1 ; ptr to parm area
* ******* End of Prologue
* *
* *** int msgcnt = rd_kafka_msgq_len(rkmq);
LG 2,8(0,4) ; rkb
LG 3,0(0,4) ; msetw
LG 15,24(0,4) ; rkmq
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1942_219 ; rd_kafka_msgq_len
@@gen_label289 DS 0H
BALR 14,15
@@gen_label290 DS 0H
* ***
* *** if (msgcnt == 0)
LTR 15,15
BNE @L715
* *** return 0;
LGHI 15,0 ; 0
B @ret_lab_1942
DS 0D
@FRAMESIZE_1942 DC F'216'
@lit_1942_219 DC AD(rd_kafka_msgq_len)
@lit_1942_221 DC AD(rd_kafka_msgset_writer_select_$Msg$Version)
@lit_1942_223 DC AD(rd_kafka_msgset_writer_alloc_buf)
@lit_1942_224 DC AD(rd_kafka_msgset_writer_write_$Produce_header)
@lit_1942_225 DC AD(rd_buf_write_pos)
@lit_1942_226 DC AD(rd_kafka_msgbatch_init)
@L715 DS 0H
* ***
* *** __memset(msetw,0,sizeof(*msetw));
* setting 160 bytes to 0x00
XC 0(160,3),0(3)
* ***
* *** msetw->msetw_rktp = rktp;
LG 1,16(0,4) ; rktp
STG 1,144(0,3) ; offset of msetw_rktp in rd_kafka_msgset_wr*
iter_s
* *** msetw->msetw_rkb = rkb;
STG 2,136(0,3) ; offset of msetw_rkb in rd_kafka_msgset_wri*
ter_s
* *** msetw->msetw_msgq = rkmq;
LG 1,24(0,4) ; rkmq
STG 1,152(0,3) ; offset of msetw_msgq in rd_kafka_msgset_wr*
iter_s
* *** msetw->msetw_pid = pid;
MVC 120(16,3),32(4)
* ***
* ***
* ***
* ***
* *** msetw->msetw_msgcntmax = ((msgcnt) < (rkb->rkb_rk->rk_\
* conf. batch_num_messages) ? (msgcnt) : (rkb->rkb_rk->rk_conf. batch_\
* num_messages));
LG 1,4048(0,2) ; offset of rkb_rk in rd_kafka_broker_s
C 15,2076(0,1)
BNL @L716
B @L717
@L716 DS 0H
LG 15,4048(0,2) ; offset of rkb_rk in rd_kafka_broker_s
L 15,2076(0,15) ; offset of batch_num_messages in rd_kafka*
_conf_s
@L717 DS 0H
ST 15,24(0,3)
* ***
* ***
* *** do {} while (0);
@L718 DS 0H
* ***
* ***
* *** if (rd_kafka_msgset_writer_select_MsgVersion(msetw) ==\
* -1)
STG 3,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1942_221 ; rd_kafka_msgset_writer_select_MsgVers*
ion
@@gen_label293 DS 0H
BALR 14,15
@@gen_label294 DS 0H
CHI 15,-1
BNE @L721
* *** return -1;
LGHI 15,-1 ; -1
B @ret_lab_1942
@L721 DS 0H
* ***
* ***
* *** rd_kafka_msgset_writer_alloc_buf(msetw);
STG 3,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1942_223 ; rd_kafka_msgset_writer_alloc_buf
@@gen_label296 DS 0H
BALR 14,15
@@gen_label297 DS 0H
* ***
* ***
* *** rd_kafka_msgset_writer_write_Produce_header(msetw);
STG 3,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1942_224 ; rd_kafka_msgset_writer_write_Produce_*
header
@@gen_label298 DS 0H
BALR 14,15
@@gen_label299 DS 0H
* ***
* ***
* ***
* ***
* ***
* *** msetw->msetw_firstmsg.of = rd_buf_write_pos(&msetw->ms\
* etw_rkbuf->
* *** rkbuf_buf)\
* ;
LG 15,0(0,3) ; msetw
LA 15,40(0,15)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1942_225 ; rd_buf_write_pos
@@gen_label300 DS 0H
BALR 14,15
@@gen_label301 DS 0H
STG 15,104(0,3)
* ***
* *** rd_kafka_msgbatch_init(&msetw->msetw_rkbuf->rkbuf_u.Pr\
* oduce.batch,
* *** rktp, pid, epoch_base_msgid);
LG 15,0(0,3) ; msetw
LA 15,400(0,15)
STG 15,176(0,13)
LG 15,16(0,4) ; rktp
STG 15,184(0,13)
MVC 192(16,13),32(4)
LG 15,48(0,4) ; epoch_base_msgid
STG 15,208(0,13)
LA 1,176(0,13)
LG 15,@lit_1942_226 ; rd_kafka_msgbatch_init
@@gen_label302 DS 0H
BALR 14,15
@@gen_label303 DS 0H
* *** msetw->msetw_batch = &msetw->msetw_rkbuf->rkbuf_u.Prod\
* uce.batch;
LG 15,0(0,3) ; msetw
LA 15,400(0,15)
STG 15,96(0,3) ; offset of msetw_batch in rd_kafka_msgset_w*
riter_s
* ***
* *** return msetw->msetw_msgcntmax;
LGF 15,24(0,3)
* *** }
@ret_lab_1942 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_msgset_writer_init"
* (FUNCTION #1942)
*
@AUTO#rd_kafka_msgset_writer_init DSECT
DS XL168
rd_kafka_msgset_writer_init#msgcnt#0 DS 1F ; msgcnt
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgset_writer_write_msg_payload
@LNAME1943 DS 0H
DC X'00000028'
DC C'rd_kafka_msgset_writer_write_msg'
DC C'_payload'
DC X'00'
rd_kafka_msgset_writer_write_msg_payload DCCPRLG CINDEX=1943,BASER=12,F*
RAME=216,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1943
* ******* End of Prologue
* *
* *** const rd_kafka_t *rk = msetw->msetw_rkb->rkb_rk;
LMG 2,3,8(1) ; rkm
LG 15,0(0,1) ; msetw
LG 1,136(0,15) ; offset of msetw_rkb in rd_kafka_msgset_wri*
ter_s
LG 1,4048(0,1) ; offset of rkb_rk in rd_kafka_broker_s
* *** rd_kafka_buf_t *rkbuf = msetw->msetw_rkbuf;
LG 4,0(0,15) ; msetw
* ***
* ***
* ***
* ***
* *** if (rkm->rkm_rkmessage.len <= (size_t)rk->rk_conf.msg_\
* copy_max_size &&
LG 15,32(0,2) ; offset of len in rd_kafka_message_s
LGF 1,760(0,1)
CLGR 15,1
BH @L722
* *** rd_buf_write_remains(&rkbuf->rkbuf_buf) > rkm->rkm\
* _rkmessage.len) {
LA 15,40(0,4)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1943_228 ; rd_buf_write_remains
@@gen_label305 DS 0H
BALR 14,15
@@gen_label306 DS 0H
CLG 15,32(0,2)
BNH @L722
* *** rd_kafka_buf_write(rkbuf,
* *** rkm->rkm_rkmessage.payload,\
* rkm->rkm_rkmessage.len);
STG 4,176(0,13)
LG 15,24(0,2)
STG 15,184(0,13)
LG 15,32(0,2)
STG 15,192(0,13)
LA 1,176(0,13)
LG 15,@lit_1943_229 ; rd_kafka_buf_write
@@gen_label308 DS 0H
BALR 14,15
@@gen_label309 DS 0H
* *** if (free_cb)
LTGR 15,3
BZ @L724
* *** free_cb(rkm->rkm_rkmessage.payload);
LG 15,24(0,2)
STG 15,176(0,13)
LA 1,176(0,13)
LGR 15,3
@@gen_label311 DS 0H
BALR 14,15
@@gen_label312 DS 0H
@L723 DS 0H
* *** } else
B @L724
DS 0D
@FRAMESIZE_1943 DC F'216'
@lit_1943_228 DC AD(rd_buf_write_remains)
@lit_1943_229 DC AD(rd_kafka_buf_write)
@lit_1943_230 DC AD(rd_kafka_buf_push0)
@L722 DS 0H
* *** rd_kafka_buf_push0(rkbuf,rkm->rkm_rkmessage.pa\
* yload,rkm->rkm_rkmessage.len,1 ,free_cb);
STG 4,176(0,13)
LG 15,24(0,2)
STG 15,184(0,13)
LG 15,32(0,2)
STG 15,192(0,13)
MVGHI 200(13),1
STG 3,208(0,13)
LA 1,176(0,13)
LG 15,@lit_1943_230 ; rd_kafka_buf_push0
@@gen_label313 DS 0H
BALR 14,15
@@gen_label314 DS 0H
@L724 DS 0H
* ***
* *** }
@ret_lab_1943 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_msgset_writer_write_msg
* _payload"
* (FUNCTION #1943)
*
@AUTO#rd_kafka_msgset_writer_write_msg_payload DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgset_writer_write_msg_headers
@LNAME1944 DS 0H
DC X'00000028'
DC C'rd_kafka_msgset_writer_write_msg'
DC C'_headers'
DC X'00'
rd_kafka_msgset_writer_write_msg_headers DCCPRLG CINDEX=1944,BASER=12,F*
RAME=200,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1944
LGR 6,1 ; ptr to parm area
* ******* End of Prologue
* *
* *** rd_kafka_buf_t *rkbuf = msetw->msetw_rkbuf;
LG 15,0(0,6) ; msetw
LG 3,0(0,15) ; msetw
* *** const rd_kafka_header_t *hdr;
* *** int i;
* *** size_t start_pos = rd_buf_write_pos(&rkbuf->rkbuf_buf)\
* ;
LA 15,40(0,3)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1944_232 ; rd_buf_write_pos
@@gen_label315 DS 0H
BALR 14,15
@@gen_label316 DS 0H
LGR 5,15
* *** size_t written;
* ***
* *** for (i = 0 ; (hdr = rd_list_elem(&hdrs->rkhdrs_list, i\
* )) ; i++) {
LHI 2,0 ; 0
B @L726
DS 0D
@FRAMESIZE_1944 DC F'200'
@lit_1944_232 DC AD(rd_buf_write_pos)
@lit_1944_234 DC AD(rd_kafka_buf_write_varint)
@lit_1944_235 DC AD(rd_kafka_buf_write)
@lit_1944_239 DC AD(rd_list_elem)
@L725 DS 0H
* *** rd_kafka_buf_write_varint(rkbuf, hdr->rkhdr_na\
* me_size);
STG 3,176(0,13)
LG 15,16(0,4) ; offset of rkhdr_name_size in rd_kafka_head*
er_s
STG 15,184(0,13)
LA 1,176(0,13)
LG 7,@lit_1944_234 ; rd_kafka_buf_write_varint
LGR 15,7
@@gen_label317 DS 0H
BALR 14,15
@@gen_label318 DS 0H
* *** rd_kafka_buf_write(rkbuf,
* *** hdr->rkhdr_name, hdr->rkhdr\
* _name_size);
STG 3,176(0,13)
LA 15,32(0,4)
STG 15,184(0,13)
LG 15,16(0,4)
STG 15,192(0,13)
LA 1,176(0,13)
LG 8,@lit_1944_235 ; rd_kafka_buf_write
LGR 15,8
@@gen_label319 DS 0H
BALR 14,15
@@gen_label320 DS 0H
* *** rd_kafka_buf_write_varint(rkbuf,
* *** hdr->rkhdr_value ?
LTG 15,24(0,4) ; offset of rkhdr_value in rd_kafka_header_s
BZ @L729
* *** (int64_t)hdr->rkhdr_\
* value_size : -1);
LG 15,8(0,4) ; offset of rkhdr_value_size in rd_kafka_hea*
der_s
B @L730
@L729 DS 0H
LGHI 15,-1 ; -1
@L730 DS 0H
STG 3,176(0,13)
STG 15,184(0,13)
LA 1,176(0,13)
LGR 15,7
@@gen_label322 DS 0H
BALR 14,15
@@gen_label323 DS 0H
* *** rd_kafka_buf_write(rkbuf,
* *** hdr->rkhdr_value,
* *** hdr->rkhdr_value_size);
STG 3,176(0,13)
LG 15,24(0,4)
STG 15,184(0,13)
LG 15,8(0,4)
STG 15,192(0,13)
LA 1,176(0,13)
LGR 15,8
@@gen_label324 DS 0H
BALR 14,15
@@gen_label325 DS 0H
* *** }
AHI 2,1
@L726 DS 0H
LG 15,8(0,6) ; hdrs
STG 15,176(0,13)
LGFR 15,2
STG 15,184(0,13)
LA 1,176(0,13)
LG 15,@lit_1944_239 ; rd_list_elem
@@gen_label326 DS 0H
BALR 14,15
@@gen_label327 DS 0H
LGR 4,15
LTGR 15,4
BNZ @L725
* ***
* *** written = rd_buf_write_pos(&rkbuf->rkbuf_buf) - start_\
* pos;
LA 15,40(0,3)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1944_232 ; rd_buf_write_pos
@@gen_label329 DS 0H
BALR 14,15
@@gen_label330 DS 0H
SLGR 15,5
* *** do {} while (0);
@L731 DS 0H
* ***
* *** return written;
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_msgset_writer_write_msg
* _headers"
* (FUNCTION #1944)
*
@AUTO#rd_kafka_msgset_writer_write_msg_headers DSECT
DS XL168
rd_kafka_msgset_writer_write_msg_headers#written#0 DS 8XL1 ; written
ORG @AUTO#rd_kafka_msgset_writer_write_msg_headers+168
rd_kafka_msgset_writer_write_msg_headers#start_pos#0 DS 8XL1 ; start_po*
s
ORG @AUTO#rd_kafka_msgset_writer_write_msg_headers+168
rd_kafka_msgset_writer_write_msg_headers#i#0 DS 1F ; i
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgset_writer_write_msg_v0_1
@LNAME1945 DS 0H
DC X'00000025'
DC C'rd_kafka_msgset_writer_write_msg'
DC C'_v0_1'
DC X'00'
rd_kafka_msgset_writer_write_msg_v0_1 DCCPRLG CINDEX=1945,BASER=12,FRAM*
E=200,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1945
LGR 7,1 ; ptr to parm area
* ******* End of Prologue
* *
* *** rd_kafka_buf_t *rkbuf = msetw->msetw_rkbuf;
LMG 3,4,0(7) ; msetw
LG 5,0(0,3) ; msetw
* *** size_t MessageSize;
* *** size_t of_Crc;
* ***
* ***
* ***
* ***
* ***
* ***
* *** rd_kafka_buf_write_i64(rkbuf, Offset);
STG 5,176(0,13)
LG 15,16(0,7) ; Offset
STG 15,184(0,13)
LA 1,176(0,13)
LG 8,@lit_1945_242 ; rd_kafka_buf_write_i64
LGR 15,8
@@gen_label331 DS 0H
BALR 14,15
@@gen_label332 DS 0H
* ***
* ***
* *** MessageSize =
* *** 4 + 1 + 1 +
* *** 4 + rkm->rkm_rkmessage.key_len +
* *** 4 + rkm->rkm_rkmessage.len;
LG 2,48(0,4) ; offset of key_len in rd_kafka_message_s
AGHI 2,10
AGHI 2,4
ALG 2,32(0,4)
* ***
* *** if (msetw->msetw_MsgVersion == 1)
CHSI 12(3),1
BNE @L734
* *** MessageSize += 8;
AGHI 2,8
@L734 DS 0H
* ***
* *** rd_kafka_buf_write_i32(rkbuf, (int32_t)MessageSize);
STG 5,176(0,13)
LGFR 15,2
STG 15,184(0,13)
LA 1,176(0,13)
LG 9,@lit_1945_243 ; rd_kafka_buf_write_i32
LGR 15,9
@@gen_label334 DS 0H
BALR 14,15
@@gen_label335 DS 0H
* ***
* ***
* ***
* ***
* ***
* *** of_Crc = rd_kafka_buf_write_i32(rkbuf, 0);
STG 5,176(0,13)
XC 184(8,13),184(13)
LA 1,176(0,13)
LGR 15,9
@@gen_label336 DS 0H
BALR 14,15
@@gen_label337 DS 0H
LGR 6,15
* ***
* ***
* *** rd_kafka_buf_crc_init(rkbuf);
STG 5,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1945_245 ; rd_kafka_buf_crc_init
@@gen_label338 DS 0H
BALR 14,15
@@gen_label339 DS 0H
* ***
* ***
* *** rd_kafka_buf_write_i8(rkbuf, msetw->msetw_MsgVersion);
STG 5,176(0,13)
L 15,12(0,3) ; offset of msetw_MsgVersion in rd_kafka_msg*
set_writer_s
SLLG 15,15,56(0)
SRAG 15,15,56(0)
STG 15,184(0,13)
LA 1,176(0,13)
LG 10,@lit_1945_246 ; rd_kafka_buf_write_i8
LGR 15,10
@@gen_label340 DS 0H
BALR 14,15
@@gen_label341 DS 0H
* ***
* ***
* *** rd_kafka_buf_write_i8(rkbuf, MsgAttributes);
STG 5,176(0,13)
LGB 15,31(0,7) ; MsgAttributes
STG 15,184(0,13)
LA 1,176(0,13)
LGR 15,10
@@gen_label342 DS 0H
BALR 14,15
@@gen_label343 DS 0H
* ***
* ***
* *** if (msetw->msetw_MsgVersion == 1)
CHSI 12(3),1
BNE @L735
* *** rd_kafka_buf_write_i64(rkbuf, rkm->rkm_timesta\
* mp);
STG 5,176(0,13)
LG 15,96(0,4)
STG 15,184(0,13)
LA 1,176(0,13)
LGR 15,8
@@gen_label345 DS 0H
BALR 14,15
@@gen_label346 DS 0H
@L735 DS 0H
* ***
* ***
* *** rd_kafka_buf_write_bytes(rkbuf, rkm->rkm_rkmessage.key\
* , rkm->rkm_rkmessage.key_len);
STG 5,176(0,13)
LG 15,40(0,4)
STG 15,184(0,13)
LG 15,48(0,4)
STG 15,192(0,13)
LA 1,176(0,13)
LG 15,@lit_1945_249 ; rd_kafka_buf_write_bytes
@@gen_label347 DS 0H
BALR 14,15
@@gen_label348 DS 0H
* ***
* ***
* *** if (rkm->rkm_rkmessage.payload) {
LTG 15,24(0,4) ; offset of payload in rd_kafka_message_s
BZ @L736
* *** rd_kafka_buf_write_i32(rkbuf, (int32_t)rkm->rk\
* m_rkmessage.len);
STG 5,176(0,13)
LGF 15,36(0,4)
STG 15,184(0,13)
LA 1,176(0,13)
LGR 15,9
@@gen_label350 DS 0H
BALR 14,15
@@gen_label351 DS 0H
* *** rd_kafka_msgset_writer_write_msg_payload(msetw\
* , rkm, free_cb);
STMG 3,4,176(13)
LG 15,32(0,7) ; free_cb
STG 15,192(0,13)
LA 1,176(0,13)
LG 15,@lit_1945_251 ; rd_kafka_msgset_writer_write_msg_payl*
oad
@@gen_label352 DS 0H
BALR 14,15
@@gen_label353 DS 0H
* *** } else
B @L737
DS 0D
@FRAMESIZE_1945 DC F'200'
@lit_1945_242 DC AD(rd_kafka_buf_write_i64)
@lit_1945_243 DC AD(rd_kafka_buf_write_i32)
@lit_1945_245 DC AD(rd_kafka_buf_crc_init)
@lit_1945_246 DC AD(rd_kafka_buf_write_i8)
@lit_1945_249 DC AD(rd_kafka_buf_write_bytes)
@lit_1945_251 DC AD(rd_kafka_msgset_writer_write_msg_payload)
@lit_1945_253 DC AD(rd_kafka_buf_crc_finalize)
@lit_1945_254 DC AD(rd_kafka_buf_update_u32)
@L736 DS 0H
* *** rd_kafka_buf_write_i32(rkbuf, -1);
STG 5,176(0,13)
MVGHI 184(13),-1
LA 1,176(0,13)
LGR 15,9
@@gen_label354 DS 0H
BALR 14,15
@@gen_label355 DS 0H
@L737 DS 0H
* ***
* ***
* *** rd_kafka_buf_update_u32(rkbuf, of_Crc,
* *** rd_kafka_buf_crc_finalize(rkbu\
* f));
STG 5,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1945_253 ; rd_kafka_buf_crc_finalize
@@gen_label356 DS 0H
BALR 14,15
@@gen_label357 DS 0H
STMG 5,6,176(13)
LLGFR 15,15
STG 15,192(0,13)
LA 1,176(0,13)
LG 15,@lit_1945_254 ; rd_kafka_buf_update_u32
@@gen_label358 DS 0H
BALR 14,15
@@gen_label359 DS 0H
* ***
* ***
* ***
* *** return 8 + 4 + MessageSize;
AGHI 2,12
LGR 15,2
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_msgset_writer_write_msg
* _v0_1"
* (FUNCTION #1945)
*
@AUTO#rd_kafka_msgset_writer_write_msg_v0_1 DSECT
DS XL168
rd_kafka_msgset_writer_write_msg_v0_1#of_$Crc#0 DS 8XL1 ; of_Crc
ORG @AUTO#rd_kafka_msgset_writer_write_msg_v0_1+168
rd_kafka_msgset_writer_write_msg_v0_1#$Message$Size#0 DS 8XL1 ; Message*
Size
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgset_writer_write_msg_v2
@LNAME1946 DS 0H
DC X'00000023'
DC C'rd_kafka_msgset_writer_write_msg'
DC C'_v2'
DC X'00'
rd_kafka_msgset_writer_write_msg_v2 DCCPRLG CINDEX=1946,BASER=12,FRAME=*
240,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1946
LGR 4,1
* ******* End of Prologue
* *
* *** rd_kafka_buf_t *rkbuf = msetw->msetw_rkbuf;
LG 5,0(0,4) ; msetw
LG 2,8(0,4) ; rkm
LG 3,0(0,5) ; msetw
* *** size_t MessageSize = 0;
LGHI 10,0 ; 0
* *** char varint_Length[(sizeof(int32_t) + 1 + (sizeof(int3\
* 2_t)/7))];
* *** char varint_TimestampDelta[(sizeof(int64_t) + 1 + (siz\
* eof(int64_t)/7))];
* *** char varint_OffsetDelta[(sizeof(int64_t) + 1 + (sizeof\
* (int64_t)/7))];
* *** char varint_KeyLen[(sizeof(int32_t) + 1 + (sizeof(int3\
* 2_t)/7))];
* *** char varint_ValueLen[(sizeof(int32_t) + 1 + (sizeof(in\
* t32_t)/7))];
* *** char varint_HeaderCount[(sizeof(int32_t) + 1 + (sizeof\
* (int32_t)/7))];
* *** size_t sz_Length;
* *** size_t sz_TimestampDelta;
* *** size_t sz_OffsetDelta;
* *** size_t sz_KeyLen;
* *** size_t sz_ValueLen;
* *** size_t sz_HeaderCount;
* *** int HeaderCount = 0;
LHI 6,0 ; 0
* *** size_t HeaderSize = 0;
* ***
* *** if (rkm->rkm_headers) {
LTG 15,104(0,2) ; offset of rkm_headers in rd_kafka_msg_s
BZ @L738
* *** HeaderCount = rkm->rkm_headers->rkhdrs_list.rl\
* _cnt;
LG 15,104(0,2) ; offset of rkm_headers in rd_kafka_msg_s
L 6,4(0,15) ; offset of rl_cnt in rd_list_s
* *** HeaderSize = rkm->rkm_headers->rkhdrs_ser_siz\
* e;
LG 15,104(0,2) ; offset of rkm_headers in rd_kafka_msg_s
LG 10,40(0,15) ; offset of rkhdrs_ser_size in rd_kafka_head*
ers_s
* *** }
@L738 DS 0H
* ***
* ***
* ***
* ***
* ***
* *** sz_TimestampDelta = rd_uvarint_enc_i64(
* *** varint_TimestampDelta, sizeof(varint_Timestamp\
* Delta),
* *** rkm->rkm_timestamp - msetw->msetw_firstmsg.tim\
* estamp);
LA 15,168(0,13)
STG 15,208(0,13)
MVGHI 216(13),10
LG 15,96(0,2) ; offset of rkm_timestamp in rd_kafka_msg_s
SG 15,112(0,5)
STG 15,224(0,13)
LA 1,208(0,13)
LG 15,@lit_1946_277 ; rd_uvarint_enc_i64
@@gen_label361 DS 0H
BALR 14,15
@@gen_label362 DS 0H
LGR 7,15
* *** sz_OffsetDelta = rd_uvarint_enc_i64(
* *** varint_OffsetDelta, sizeof(varint_OffsetDelta)\
* , Offset);
LA 15,178(0,13)
STG 15,208(0,13)
MVGHI 216(13),10
LG 15,16(0,4) ; Offset
STG 15,224(0,13)
LA 1,208(0,13)
LG 15,@lit_1946_277 ; rd_uvarint_enc_i64
@@gen_label363 DS 0H
BALR 14,15
@@gen_label364 DS 0H
LGR 8,15
* *** sz_KeyLen = rd_uvarint_enc_i32(
* *** varint_KeyLen, sizeof(varint_KeyLen),
* *** rkm->rkm_rkmessage.key ? (int32_t)rkm->rkm_rkm\
* essage.key_len :
LTG 15,40(0,2) ; offset of key in rd_kafka_message_s
BZ @L739
LG 15,48(0,2) ; offset of key_len in rd_kafka_message_s
B @L740
DS 0D
@FRAMESIZE_1946 DC F'240'
@lit_1946_277 DC AD(rd_uvarint_enc_i64)
@lit_1946_287 DC AD(rd_uvarint_enc_i32)
@lit_1946_280 DC AD(rd_kafka_buf_write)
@lit_1946_268 DC AD(rd_kafka_buf_write_i8)
@lit_1946_274 DC AD(rd_kafka_msgset_writer_write_msg_payload)
@lit_1946_276 DC AD(rd_kafka_msgset_writer_write_msg_headers)
@L739 DS 0H
* *** (int32_t)-1);
LHI 15,-1 ; -1
@L740 DS 0H
LA 1,188(0,13)
STG 1,208(0,13)
MVGHI 216(13),5
LGFR 15,15
STG 15,224(0,13)
LA 1,208(0,13)
LG 15,@lit_1946_287 ; rd_uvarint_enc_i32
@@gen_label366 DS 0H
BALR 14,15
@@gen_label367 DS 0H
LGR 9,15
* *** sz_ValueLen = rd_uvarint_enc_i32(
* *** varint_ValueLen, sizeof(varint_ValueLen),
* *** rkm->rkm_rkmessage.payload ? (int32_t)rkm->rkm\
* _rkmessage.len :
LTG 15,24(0,2) ; offset of payload in rd_kafka_message_s
BZ @L741
LG 15,32(0,2) ; offset of len in rd_kafka_message_s
B @L742
@L741 DS 0H
* *** (int32_t)-1);
LHI 15,-1 ; -1
@L742 DS 0H
LA 1,193(0,13)
STG 1,208(0,13)
MVGHI 216(13),5
LGFR 15,15
STG 15,224(0,13)
LA 1,208(0,13)
LG 15,@lit_1946_287 ; rd_uvarint_enc_i32
@@gen_label369 DS 0H
BALR 14,15
@@gen_label370 DS 0H
LGR 11,15
* *** sz_HeaderCount = rd_uvarint_enc_i32(
* *** varint_HeaderCount, sizeof(varint_HeaderCount)\
* ,
* *** (int32_t)HeaderCount);
LA 15,198(0,13)
STG 15,208(0,13)
MVGHI 216(13),5
LGFR 15,6
STG 15,224(0,13)
LA 1,208(0,13)
LG 15,@lit_1946_287 ; rd_uvarint_enc_i32
@@gen_label371 DS 0H
BALR 14,15
@@gen_label372 DS 0H
STG 15,232(0,13) ; spill
* ***
* ***
* ***
* *** MessageSize =
* *** 1 +
* *** sz_TimestampDelta +
* *** sz_OffsetDelta +
* *** sz_KeyLen +
* *** rkm->rkm_rkmessage.key_len +
* *** sz_ValueLen +
* *** rkm->rkm_rkmessage.len +
* *** sz_HeaderCount +
* *** HeaderSize;
LGR 1,7
AGHI 1,1
ALGR 1,8
ALGR 1,9
ALG 1,48(0,2)
ALGR 1,11
ALG 1,32(0,2)
ALGR 1,15
ALGR 1,10
LGR 6,1 ; MessageSize
* ***
* ***
* *** sz_Length = rd_uvarint_enc_i64(varint_Length, sizeof(v\
* arint_Length),
* *** MessageSize);
LA 15,203(0,13)
STG 15,208(0,13)
MVGHI 216(13),5
STG 1,224(0,13)
LA 1,208(0,13)
LG 15,@lit_1946_277 ; rd_uvarint_enc_i64
@@gen_label373 DS 0H
BALR 14,15
@@gen_label374 DS 0H
LGR 10,15
* *** rd_kafka_buf_write(rkbuf, varint_Length, sz_Length);
STG 3,208(0,13)
LA 1,203(0,13)
STG 1,216(0,13)
STG 10,224(0,13)
LA 1,208(0,13)
LG 15,@lit_1946_280 ; rd_kafka_buf_write
@@gen_label375 DS 0H
BALR 14,15
@@gen_label376 DS 0H
* *** MessageSize += sz_Length;
ALGR 6,10
* ***
* ***
* ***
* *** rd_kafka_buf_write_i8(rkbuf, 0);
STG 3,208(0,13)
XC 216(8,13),216(13)
LA 1,208(0,13)
LG 15,@lit_1946_268 ; rd_kafka_buf_write_i8
@@gen_label377 DS 0H
BALR 14,15
@@gen_label378 DS 0H
* ***
* ***
* *** rd_kafka_buf_write(rkbuf, varint_TimestampDelta, sz_Ti\
* mestampDelta);
STG 3,208(0,13)
LA 15,168(0,13)
STG 15,216(0,13)
STG 7,224(0,13)
LA 1,208(0,13)
LG 15,@lit_1946_280 ; rd_kafka_buf_write
@@gen_label379 DS 0H
BALR 14,15
@@gen_label380 DS 0H
* ***
* ***
* *** rd_kafka_buf_write(rkbuf, varint_OffsetDelta, sz_Offse\
* tDelta);
STG 3,208(0,13)
LA 15,178(0,13)
STG 15,216(0,13)
STG 8,224(0,13)
LA 1,208(0,13)
LG 15,@lit_1946_280 ; rd_kafka_buf_write
@@gen_label381 DS 0H
BALR 14,15
@@gen_label382 DS 0H
* ***
* ***
* *** rd_kafka_buf_write(rkbuf, varint_KeyLen, sz_KeyLen);
STG 3,208(0,13)
LA 15,188(0,13)
STG 15,216(0,13)
STG 9,224(0,13)
LA 1,208(0,13)
LG 15,@lit_1946_280 ; rd_kafka_buf_write
@@gen_label383 DS 0H
BALR 14,15
@@gen_label384 DS 0H
* ***
* ***
* *** if (rkm->rkm_rkmessage.key)
LTG 15,40(0,2) ; offset of key in rd_kafka_message_s
BZ @L743
* *** rd_kafka_buf_write(rkbuf, rkm->rkm_rkmessage.k\
* ey, rkm->rkm_rkmessage.key_len);
STG 3,208(0,13)
LG 15,40(0,2)
STG 15,216(0,13)
LG 15,48(0,2)
STG 15,224(0,13)
LA 1,208(0,13)
LG 15,@lit_1946_280 ; rd_kafka_buf_write
@@gen_label386 DS 0H
BALR 14,15
@@gen_label387 DS 0H
@L743 DS 0H
* ***
* ***
* *** rd_kafka_buf_write(rkbuf, varint_ValueLen, sz_ValueLen\
* );
STG 3,208(0,13)
LA 15,193(0,13)
STG 15,216(0,13)
STG 11,224(0,13)
LA 1,208(0,13)
LG 15,@lit_1946_280 ; rd_kafka_buf_write
@@gen_label388 DS 0H
BALR 14,15
@@gen_label389 DS 0H
* ***
* ***
* *** if (rkm->rkm_rkmessage.payload)
LTG 15,24(0,2) ; offset of payload in rd_kafka_message_s
BZ @L744
* *** rd_kafka_msgset_writer_write_msg_payload(msetw\
* , rkm, free_cb);
STG 5,208(0,13)
STG 2,216(0,13)
LG 15,32(0,4) ; free_cb
STG 15,224(0,13)
LA 1,208(0,13)
LG 15,@lit_1946_274 ; rd_kafka_msgset_writer_write_msg_payl*
oad
@@gen_label391 DS 0H
BALR 14,15
@@gen_label392 DS 0H
@L744 DS 0H
* ***
* ***
* *** rd_kafka_buf_write(rkbuf, varint_HeaderCount, sz_Heade\
* rCount);
STG 3,208(0,13)
LA 15,198(0,13)
STG 15,216(0,13)
LG 15,232(0,13) ; spill
STG 15,224(0,13)
LA 1,208(0,13)
LG 15,@lit_1946_280 ; rd_kafka_buf_write
@@gen_label393 DS 0H
BALR 14,15
@@gen_label394 DS 0H
* ***
* ***
* *** if (rkm->rkm_headers)
LTG 15,104(0,2) ; offset of rkm_headers in rd_kafka_msg_s
BZ @L745
* *** rd_kafka_msgset_writer_write_msg_headers(msetw\
* ,
* *** rkm->\
* rkm_headers);
STG 5,208(0,13)
LG 15,104(0,2)
STG 15,216(0,13)
LA 1,208(0,13)
LG 15,@lit_1946_276 ; rd_kafka_msgset_writer_write_msg_head*
ers
@@gen_label396 DS 0H
BALR 14,15
@@gen_label397 DS 0H
@L745 DS 0H
* ***
* ***
* *** return MessageSize;
LGR 15,6
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_msgset_writer_write_msg
* _v2"
* (FUNCTION #1946)
*
@AUTO#rd_kafka_msgset_writer_write_msg_v2 DSECT
DS XL168
rd_kafka_msgset_writer_write_msg_v2#$Header$Size#0 DS 8XL1 ; HeaderSize
ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+168
rd_kafka_msgset_writer_write_msg_v2#$Header$Count#0 DS 1F ; HeaderCount
ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+168
rd_kafka_msgset_writer_write_msg_v2#sz_$Header$Count#0 DS 8XL1 ; sz_Hea*
derCount
ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+168
rd_kafka_msgset_writer_write_msg_v2#sz_$Value$Len#0 DS 8XL1 ; sz_ValueL*
en
ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+168
rd_kafka_msgset_writer_write_msg_v2#sz_$Key$Len#0 DS 8XL1 ; sz_KeyLen
ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+168
rd_kafka_msgset_writer_write_msg_v2#sz_$Offset$Delta#0 DS 8XL1 ; sz_Off*
setDelta
ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+168
rd_kafka_msgset_writer_write_msg_v2#sz_$Timestamp$Delta#0 DS 8XL1 ; sz_*
TimestampDelta
ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+168
rd_kafka_msgset_writer_write_msg_v2#sz_$Length#0 DS 8XL1 ; sz_Length
ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+168
rd_kafka_msgset_writer_write_msg_v2#varint_$Timestamp$Delta#0 DS 10XL1 *
; varint_TimestampDelta
ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+168
rd_kafka_msgset_writer_write_msg_v2#$Message$Size#0 DS 8XL1 ; MessageSi*
ze
ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+178
rd_kafka_msgset_writer_write_msg_v2#varint_$Offset$Delta#0 DS 10XL1 ; v*
arint_OffsetDelta
ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+188
rd_kafka_msgset_writer_write_msg_v2#varint_$Key$Len#0 DS 5XL1 ; varint_*
KeyLen
ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+193
rd_kafka_msgset_writer_write_msg_v2#varint_$Value$Len#0 DS 5XL1 ; varin*
t_ValueLen
ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+198
rd_kafka_msgset_writer_write_msg_v2#varint_$Header$Count#0 DS 5XL1 ; va*
rint_HeaderCount
ORG @AUTO#rd_kafka_msgset_writer_write_msg_v2+203
rd_kafka_msgset_writer_write_msg_v2#varint_$Length#0 DS 5XL1 ; varint_L*
ength
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgset_writer_write_msg
@LNAME1947 DS 0H
DC X'00000020'
DC C'rd_kafka_msgset_writer_write_msg'
DC X'00'
rd_kafka_msgset_writer_write_msg DCCPRLG CINDEX=1947,BASER=12,FRAME=232*
,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1947
LGR 4,1 ; ptr to parm area
* ******* End of Prologue
* *
LMG 2,3,0(4) ; msetw
* *** size_t outlen;
* *** size_t (*writer[]) (rd_kafka_msgset_writer_t *,
* *** rd_kafka_msg_t *, int64_t, int8_t,
* *** void (*)(void *)) = {
* *** [0] = rd_kafka_msgset_writer_write_msg_v0_1,
LG 15,@lit_1947_291 ; rd_kafka_msgset_writer_write_msg_v0_1
STG 15,168(0,13)
* *** [1] = rd_kafka_msgset_writer_write_msg_v0_1,
STG 15,176(0,13)
* *** [2] = rd_kafka_msgset_writer_write_msg_v2
* *** };
LG 15,@lit_1947_293 ; rd_kafka_msgset_writer_write_msg_v2
STG 15,184(0,13)
* *** size_t actual_written;
* *** size_t pre_pos;
* ***
* *** if (((rkm->rkm_timestamp)))
LTG 15,96(0,3) ; offset of rkm_timestamp in rd_kafka_msg_s
BZ @L746
* *** MsgAttributes |= (0 << 3);
LB 15,31(0,4) ; MsgAttributes
STC 15,31(0,4) ; MsgAttributes
@L746 DS 0H
* ***
* *** pre_pos = rd_buf_write_pos(&msetw->msetw_rkbuf->rkbuf_\
* buf);
LG 15,0(0,2) ; msetw
LA 15,40(0,15)
STG 15,192(0,13)
LA 1,192(0,13)
LG 6,@lit_1947_294 ; rd_buf_write_pos
LGR 15,6
@@gen_label399 DS 0H
BALR 14,15
@@gen_label400 DS 0H
LGR 5,15
* ***
* *** outlen = writer[msetw->msetw_MsgVersion](msetw, rkm,
* *** Offset, MsgAt\
* tributes,
* *** free_cb);
STMG 2,3,192(13)
LG 15,16(0,4) ; Offset
STG 15,208(0,13)
LGB 15,31(0,4) ; MsgAttributes
STG 15,216(0,13)
LG 15,32(0,4) ; free_cb
STG 15,224(0,13)
LGF 15,12(0,2)
SLLG 15,15,3(0) ; *0x8
LG 15,168(15,13)
LA 1,192(0,13)
@@gen_label401 DS 0H
BALR 14,15
@@gen_label402 DS 0H
LGR 4,15
* ***
* *** actual_written = rd_buf_write_pos(&msetw->msetw_rkbuf-\
* >rkbuf_buf) -
LG 15,0(0,2) ; msetw
LA 15,40(0,15)
STG 15,192(0,13)
LA 1,192(0,13)
LGR 15,6
@@gen_label403 DS 0H
BALR 14,15
@@gen_label404 DS 0H
* *** pre_pos;
SLGR 15,5
LGR 5,15 ; actual_written
* *** ((outlen <= rd_kafka_msg_wire_size(rkm, msetw->msetw_M\
* sgVersion)) ? (void)0 : __assert(__func__, "C:\\asgkafka\\librdkafka\
* \\src\\rdkafka_msgset_writer.c", 818, "outlen <= rd_kafka_msg_wire_s\
* ize(rkm, msetw->msetw_MsgVersion)"));
STG 3,192(0,13)
LGF 15,12(0,2)
STG 15,200(0,13)
LA 1,192(0,13)
LG 15,@lit_1947_296 ; rd_kafka_msg_wire_size
@@gen_label405 DS 0H
BALR 14,15
@@gen_label406 DS 0H
CLGR 4,15
BNH @L748
@L747 DS 0H
LG 15,@lit_1947_297
LA 15,598(0,15)
STG 15,192(0,13)
LG 15,@lit_1947_298
LA 1,556(0,15)
STG 1,200(0,13)
MVGHI 208(13),818
LA 15,814(0,15)
STG 15,216(0,13)
LA 1,192(0,13)
LG 15,@lit_1947_299 ; __assert
@@gen_label408 DS 0H
BALR 14,15
@@gen_label409 DS 0H
@L748 DS 0H
* ***
* *** ((outlen == actual_written) ? (void)0 : __assert(__fun\
* c__, "C:\\asgkafka\\librdkafka\\src\\rdkafka_msgset_writer.c", 820, \
* "outlen == actual_written"));
CLGR 4,5
BE @L750
@L749 DS 0H
LG 15,@lit_1947_297
LA 15,598(0,15)
STG 15,192(0,13)
LG 15,@lit_1947_298
LA 1,556(0,15)
STG 1,200(0,13)
MVGHI 208(13),820
LA 15,878(0,15)
STG 15,216(0,13)
LA 1,192(0,13)
LG 15,@lit_1947_299 ; __assert
@@gen_label411 DS 0H
BALR 14,15
@@gen_label412 DS 0H
@L750 DS 0H
* ***
* *** return outlen;
LGR 15,4
* ***
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1947 DC F'232'
@lit_1947_293 DC AD(rd_kafka_msgset_writer_write_msg_v2)
@lit_1947_291 DC AD(rd_kafka_msgset_writer_write_msg_v0_1)
@lit_1947_294 DC AD(rd_buf_write_pos)
@lit_1947_296 DC AD(rd_kafka_msg_wire_size)
@lit_1947_299 DC AD(__assert)
@lit_1947_298 DC AD(@strings@)
@lit_1947_297 DC AD(@DATA)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_msgset_writer_write_msg"
* (FUNCTION #1947)
*
@AUTO#rd_kafka_msgset_writer_write_msg DSECT
DS XL168
rd_kafka_msgset_writer_write_msg#pre_pos#0 DS 8XL1 ; pre_pos
ORG @AUTO#rd_kafka_msgset_writer_write_msg+168
rd_kafka_msgset_writer_write_msg#actual_written#0 DS 8XL1 ; actual_writ*
ten
ORG @AUTO#rd_kafka_msgset_writer_write_msg+168
rd_kafka_msgset_writer_write_msg#writer#0 DS 24XL1 ; writer
ORG @AUTO#rd_kafka_msgset_writer_write_msg+168
rd_kafka_msgset_writer_write_msg#outlen#0 DS 8XL1 ; outlen
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgset_writer_write_msgq
@LNAME1948 DS 0H
DC X'00000021'
DC C'rd_kafka_msgset_writer_write_msg'
DC C'q'
DC X'00'
rd_kafka_msgset_writer_write_msgq DCCPRLG CINDEX=1948,BASER=12,FRAME=54*
4,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1948
* ******* End of Prologue
* *
* *** rd_kafka_toppar_t *rktp = msetw->msetw_rktp;
LG 2,0(0,1) ; msetw
LG 8,8(0,1) ; rkmq
LMG 4,5,136(2) ; offset of msetw_rktp in rd_kafka_msgset_wr*
iter_s
* *** rd_kafka_broker_t *rkb = msetw->msetw_rkb;
* *** size_t len = rd_buf_len(&msetw->msetw_rkbuf->rkbuf_buf\
* );
LG 15,0(0,2) ; msetw
LA 15,40(0,15)
STG 15,424(0,13)
LA 1,424(0,13)
LG 15,@lit_1948_304 ; rd_buf_len
@@gen_label413 DS 0H
BALR 14,15
@@gen_label414 DS 0H
LGR 7,15 ; len
* *** size_t max_msg_size = (((size_t)msetw->msetw_rkb->rkb_\
* rk-> rk_conf.max_msg_size) < ((size_t)msetw->msetw_rkb->rkb_rk-> rk_\
* conf.batch_size) ? ((size_t)msetw->msetw_rkb->rkb_rk-> rk_conf.max_m\
* sg_size) : ((size_t)msetw->msetw_rkb->rkb_rk-> rk_conf.batch_size));
LG 15,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri*
ter_s
LG 15,4048(0,15) ; offset of rkb_rk in rd_kafka_broker_s
LGF 15,756(0,15)
LG 1,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri*
ter_s
LG 1,4048(0,1) ; offset of rkb_rk in rd_kafka_broker_s
LGF 1,2080(0,1)
CLGR 15,1
BNL @L751
LG 15,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri*
ter_s
LG 15,4048(0,15) ; offset of rkb_rk in rd_kafka_broker_s
LGF 10,756(0,15)
B @L752
DS 0D
@FRAMESIZE_1948 DC F'544'
@lit_1948_304 DC AD(rd_buf_len)
@lit_1948_307 DC AD(rd_clock)
@lit_1948_310 DC AD(rd_kafka_crash)
@lit_1948_309 DC AD(@DATA)
@lit_1948_308 DC AD(@strings@)
@lit_1948_311 DC AD(rd_kafka_msgbatch_set_first_msg)
@lit_1948_313 DC AD(mtx_lock)
@lit_1948_315 DC AD(rd_strlcpy)
@lit_1948_317 DC AD(mtx_unlock)
@lit_1948_320 DC AD(rd_kafka_log0)
@lit_1948_321 DC AD(rd_kafka_msg_wire_size)
@lit_1948_331 DC AD(rd_kafka_msgq_deq)
@lit_1948_332 DC AD(rd_kafka_msgq_enq)
@lit_1948_334 DC AD(rd_avg_add)
@lit_1948_335 DC AD(rd_kafka_msgset_writer_write_msg)
@lit_1948_336 DC AD(rd_kafka_msgq_last)
@lit_1948_339 DC AD(__assert)
@lit_1948_341 DC AD(rd_kafka_set_fatal_error0)
@L751 DS 0H
LG 15,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri*
ter_s
LG 15,4048(0,15) ; offset of rkb_rk in rd_kafka_broker_s
LGF 10,2080(0,15)
@L752 DS 0H
* ***
* ***
* ***
* *** rd_ts_t int_latency_base;
* *** rd_ts_t MaxTimestamp = 0;
LGHI 9,0 ; 0
* *** rd_kafka_msg_t *rkm;
* *** int msgcnt = 0;
LHI 6,0 ; 0
* *** const rd_ts_t now = rd_clock();
LG 15,@lit_1948_307 ; rd_clock
@@gen_label416 DS 0H
BALR 14,15
@@gen_label417 DS 0H
STG 15,536(0,13) ; spill
* ***
* ***
* ***
* *** int_latency_base = now +
* *** ((rd_ts_t) rktp->rktp_rkt->rkt_conf.message_ti\
* meout_ms * 1000);
LG 1,96(0,5) ; offset of rktp_rkt in rd_kafka_toppar_s
LGF 1,936(0,1)
MGHI 1,1000
AGR 15,1
LGR 11,15
* ***
* ***
* *** rkm = ((&rkmq->rkmq_msgs)->tqh_first);
LG 3,0(0,8) ; rkmq
* *** do { if (((!(rkm)))) rd_kafka_crash("C:\\asgkafka\\lib\
* rdkafka\\src\\rdkafka_msgset_writer.c",857, __FUNCTION__, (((void *)\
* 0)), "assert: " "rkm"); } while (0);
@L753 DS 0H
LTGR 15,3
BNZ @L756
LG 15,@lit_1948_308
LA 1,556(0,15)
STG 1,424(0,13)
MVGHI 432(13),857
LG 1,@lit_1948_309
LA 1,632(0,1)
STG 1,440(0,13)
XC 448(8,13),448(13)
LA 15,904(0,15)
STG 15,456(0,13)
LA 1,424(0,13)
LG 15,@lit_1948_310 ; rd_kafka_crash
@@gen_label419 DS 0H
BALR 14,15
@@gen_label420 DS 0H
@L756 DS 0H
* *** msetw->msetw_firstmsg.timestamp = rkm->rkm_timestamp;
LG 15,96(0,3) ; offset of rkm_timestamp in rd_kafka_msg_s
STG 15,112(0,2) ; offset of timestamp in 0000155
* ***
* *** rd_kafka_msgbatch_set_first_msg(msetw->msetw_batch, rk\
* m);
LG 15,96(0,2)
STG 15,424(0,13)
STG 3,432(0,13)
LA 1,424(0,13)
LG 15,@lit_1948_311 ; rd_kafka_msgbatch_set_first_msg
@@gen_label421 DS 0H
BALR 14,15
@@gen_label422 DS 0H
* ***
* ***
* ***
* ***
* ***
* *** do {
@L757 DS 0H
* *** if (((msetw->msetw_batch->last_msgid && msetw-\
* >msetw_batch->last_msgid < rkm->rkm_u.producer.msgid))) {
LG 15,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w*
riter_s
LTG 15,80(0,15) ; offset of last_msgid in rd_kafka_msgbatch_*
s
BZ @L760
LG 15,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w*
riter_s
LG 15,80(0,15) ; offset of last_msgid in rd_kafka_msgbatch_*
s
CLG 15,144(0,3)
BNL @L760
* ***
* ***
* *** do { if ((((rkb)->rkb_rk->rk_conf.debu\
* g & (0x40)))) { do { char _logname[256]; mtx_lock(&(rkb)->rkb_lognam\
* e_lock); rd_strlcpy(_logname, rkb->rkb_logname, sizeof(_logname)); m\
* tx_unlock(&(rkb)->rkb_logname_lock); rd_kafka_log0(&(rkb)->rkb_rk->r\
* k_conf, (rkb)->rkb_rk, _logname, 7, (0x40), "PRODUCE", "%.*s [%" "d"\
* "]: " "Reconstructed MessageSet " "(%d message(s), %" "zu" " bytes,\
* " "MsgIds %" "llu" "..%" "llu" ")", (int)((rktp->rktp_rkt->rkt_topi\
* c)->len == -1 ? 0 : (rktp->rktp_rkt->rkt_topic)->len), (rktp->rktp_r\
* kt->rkt_topic)->str, rktp->rktp_partition, msgcnt, len, msetw->msetw\
* _batch->first_msgid, msetw->msetw_batch->last_msgid); } while (0); }\
* } while (0);
@L761 DS 0H
LG 15,4048(0,4) ; offset of rkb_rk in rd_kafka_broker_s
TM 803(15),64
BZ @L758
@L765 DS 0H
LGHI 3,5688 ; 5688
LA 15,0(3,4)
STG 15,424(0,13)
LA 1,424(0,13)
LG 15,@lit_1948_313 ; mtx_lock
@@gen_label426 DS 0H
BALR 14,15
@@gen_label427 DS 0H
LA 15,168(0,13)
STG 15,424(0,13)
LGHI 15,5680 ; 5680
LG 15,0(15,4)
STG 15,432(0,13)
MVGHI 440(13),256
LA 1,424(0,13)
LG 15,@lit_1948_315 ; rd_strlcpy
@@gen_label428 DS 0H
BALR 14,15
@@gen_label429 DS 0H
LA 15,0(3,4)
STG 15,424(0,13)
LA 1,424(0,13)
LG 15,@lit_1948_317 ; mtx_unlock
@@gen_label430 DS 0H
BALR 14,15
@@gen_label431 DS 0H
LG 15,96(0,5) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s
CHSI 0(15),-1
BNE @L768
LHI 15,0 ; 0
B @L769
@L768 DS 0H
LG 15,96(0,5) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s
L 15,0(0,15)
@L769 DS 0H
LG 1,4048(0,4) ; offset of rkb_rk in rd_kafka_broker_s
LA 1,528(0,1)
STG 1,424(0,13)
LG 1,4048(0,4)
STG 1,432(0,13)
LA 1,168(0,13)
STG 1,440(0,13)
MVGHI 448(13),7
MVGHI 456(13),64
LG 1,@lit_1948_308
LA 3,450(0,1)
STG 3,464(0,13)
LA 1,916(0,1)
STG 1,472(0,13)
LGFR 15,15
STG 15,480(0,13)
LG 15,96(0,5) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s
LG 15,8(0,15)
STG 15,488(0,13)
LGF 15,104(0,5)
STG 15,496(0,13)
LGFR 15,6
STG 15,504(0,13)
STG 7,512(0,13)
LG 15,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w*
riter_s
LG 15,64(0,15)
STG 15,520(0,13)
LG 15,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w*
riter_s
LG 15,80(0,15)
STG 15,528(0,13)
LA 1,424(0,13)
LG 15,@lit_1948_320 ; rd_kafka_log0
@@gen_label433 DS 0H
BALR 14,15
@@gen_label434 DS 0H
@L764 DS 0H
* *** # 880 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c"
* *** break;
B @L758
* *** }
@L760 DS 0H
* ***
* ***
* *** # 891 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c"
* *** if (((msgcnt == msetw->msetw_msgcntmax || (msg\
* cnt > 0 && len + rd_kafka_msg_wire_size(rkm, msetw-> msetw_MsgVersio\
* n) > max_msg_size)))) {
C 6,24(0,2)
BE @L772
LTR 6,6
BNH @L770
STG 3,424(0,13)
LGF 15,12(0,2)
STG 15,432(0,13)
LA 1,424(0,13)
LG 15,@lit_1948_321 ; rd_kafka_msg_wire_size
@@gen_label437 DS 0H
BALR 14,15
@@gen_label438 DS 0H
LGR 1,7
ALGR 1,15
CLGR 1,10
BNH @L770
@L771 DS 0H
* ***
* ***
* ***
* ***
* *** do { if ((((rkb)->rkb_rk->rk_conf.debu\
* g & (0x40)))) { do { char _logname[256]; mtx_lock(&(rkb)->rkb_lognam\
* e_lock); rd_strlcpy(_logname, rkb->rkb_logname, sizeof(_logname)); m\
* tx_unlock(&(rkb)->rkb_logname_lock); rd_kafka_log0(&(rkb)->rkb_rk->r\
* k_conf, (rkb)->rkb_rk, _logname, 7, (0x40), "PRODUCE", "%.*s [%" "d"\
* "]: " "No more space in current MessageSet " "(%i message(s), %" "z\
* u" " bytes)", (int)((rktp->rktp_rkt->rkt_topic)->len == -1 ? 0 : (rk\
* tp->rktp_rkt->rkt_topic)->len), (rktp->rktp_rkt->rkt_topic)->str, rk\
* tp->rktp_partition, msgcnt, len); } while (0); } } while (0);
@L772 DS 0H
LG 15,4048(0,4) ; offset of rkb_rk in rd_kafka_broker_s
TM 803(15),64
BZ @L758
@L776 DS 0H
LGHI 3,5688 ; 5688
LA 15,0(3,4)
STG 15,424(0,13)
LA 1,424(0,13)
LG 15,@lit_1948_313 ; mtx_lock
@@gen_label441 DS 0H
BALR 14,15
@@gen_label442 DS 0H
LA 15,168(0,13)
STG 15,424(0,13)
LGHI 15,5680 ; 5680
LG 15,0(15,4)
STG 15,432(0,13)
MVGHI 440(13),256
LA 1,424(0,13)
LG 15,@lit_1948_315 ; rd_strlcpy
@@gen_label443 DS 0H
BALR 14,15
@@gen_label444 DS 0H
LA 15,0(3,4)
STG 15,424(0,13)
LA 1,424(0,13)
LG 15,@lit_1948_317 ; mtx_unlock
@@gen_label445 DS 0H
BALR 14,15
@@gen_label446 DS 0H
LG 15,96(0,5) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s
CHSI 0(15),-1
BNE @L779
LHI 15,0 ; 0
B @L780
@L779 DS 0H
LG 15,96(0,5) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s
L 15,0(0,15)
@L780 DS 0H
LG 1,4048(0,4) ; offset of rkb_rk in rd_kafka_broker_s
LA 1,528(0,1)
STG 1,424(0,13)
LG 1,4048(0,4)
STG 1,432(0,13)
LA 1,168(0,13)
STG 1,440(0,13)
MVGHI 448(13),7
MVGHI 456(13),64
LG 1,@lit_1948_308
LA 3,450(0,1)
STG 3,464(0,13)
LA 1,998(0,1)
STG 1,472(0,13)
LGFR 15,15
STG 15,480(0,13)
LG 15,96(0,5) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s
LG 15,8(0,15)
STG 15,488(0,13)
LGF 15,104(0,5)
STG 15,496(0,13)
LGFR 15,6
STG 15,504(0,13)
STG 7,512(0,13)
LA 1,424(0,13)
LG 15,@lit_1948_320 ; rd_kafka_log0
@@gen_label448 DS 0H
BALR 14,15
@@gen_label449 DS 0H
@L775 DS 0H
* *** # 903 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c"
* *** break;
B @L758
* *** }
@L770 DS 0H
* ***
* *** if (((rkm->rkm_u.producer.ts_backoff > now))) \
* {
LG 15,136(0,3) ; offset of ts_backoff in 0000042
LG 1,536(0,13) ; spill
CGR 15,1
BNH @L781
* ***
* ***
* *** break;
B @L758
* *** }
@L781 DS 0H
* ***
* ***
* *** rd_kafka_msgq_deq(rkmq, rkm, 1);
STG 8,424(0,13)
STG 3,432(0,13)
MVGHI 440(13),1
LA 1,424(0,13)
LG 15,@lit_1948_331 ; rd_kafka_msgq_deq
@@gen_label451 DS 0H
BALR 14,15
@@gen_label452 DS 0H
* *** rd_kafka_msgq_enq(&msetw->msetw_batch->msgq, r\
* km);
LG 15,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w*
riter_s
LA 15,8(0,15)
STG 15,424(0,13)
STG 3,432(0,13)
LA 1,424(0,13)
LG 15,@lit_1948_332 ; rd_kafka_msgq_enq
@@gen_label453 DS 0H
BALR 14,15
@@gen_label454 DS 0H
* ***
* *** msetw->msetw_messages_kvlen += rkm->rkm_rkmess\
* age.len + rkm->rkm_rkmessage.key_len;
LG 15,32(0,3) ; offset of len in rd_kafka_message_s
ALG 15,48(0,3)
ALG 15,40(0,2)
STG 15,40(0,2)
* ***
* ***
* *** rd_avg_add(&rkb->rkb_avg_int_latency,
* *** int_latency_base - rkm->rkm_u.produ\
* cer.ts_timeout);
LGHI 15,4408 ; 4408
LA 15,0(15,4)
STG 15,424(0,13)
LGR 15,11
SG 15,120(0,3)
STG 15,432(0,13)
LA 1,424(0,13)
LG 15,@lit_1948_334 ; rd_avg_add
@@gen_label455 DS 0H
BALR 14,15
@@gen_label456 DS 0H
* ***
* ***
* *** if (((MaxTimestamp < rkm->rkm_timestamp)))
CG 9,96(0,3)
BNL @L782
* *** MaxTimestamp = rkm->rkm_timestamp;
LG 9,96(0,3) ; offset of rkm_timestamp in rd_kafka_msg_s
@L782 DS 0H
* ***
* ***
* *** len += rd_kafka_msgset_writer_write_msg(msetw,\
* rkm, msgcnt, 0,
* *** ((void\
* *)0));
STMG 2,3,424(13)
LGFR 15,6
STG 15,440(0,13)
XC 448(16,13),448(13)
LA 1,424(0,13)
LG 15,@lit_1948_335 ; rd_kafka_msgset_writer_write_msg
@@gen_label458 DS 0H
BALR 14,15
@@gen_label459 DS 0H
ALGR 7,15
* ***
* *** msgcnt++;
AHI 6,1
* ***
* *** } while ((rkm = ((&rkmq->rkmq_msgs)->tqh_first)));
LG 3,0(0,8) ; rkmq
LTGR 15,3
BNZ @L757
@L758 DS 0H
* ***
* *** msetw->msetw_MaxTimestamp = MaxTimestamp;
STG 9,80(0,2) ; offset of msetw_MaxTimestamp in rd_kafka_m*
sgset_writer_s
* ***
* ***
* *** # 945 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c"
* *** if (msgcnt > 0 && msetw->msetw_batch->last_msgid) {
LTR 6,6
BNH @L783
LG 15,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w*
riter_s
LTG 15,80(0,15) ; offset of last_msgid in rd_kafka_msgbatch_*
s
BZ @L783
* *** rd_kafka_msg_t *lastmsg;
* ***
* *** lastmsg = rd_kafka_msgq_last(&msetw->msetw_bat\
* ch->msgq);
LG 15,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w*
riter_s
LA 15,8(0,15)
STG 15,424(0,13)
LA 1,424(0,13)
LG 15,@lit_1948_336 ; rd_kafka_msgq_last
@@gen_label463 DS 0H
BALR 14,15
@@gen_label464 DS 0H
LGR 3,15
* *** ((lastmsg) ? (void)0 : __assert(__func__, "C:\\
* \asgkafka\\librdkafka\\src\\rdkafka_msgset_writer.c", 949, "lastmsg"\
* ));
LTGR 15,3
BNZ @L785
@L784 DS 0H
LG 15,@lit_1948_309
LA 15,632(0,15)
STG 15,424(0,13)
LG 15,@lit_1948_308
LA 1,556(0,15)
STG 1,432(0,13)
MVGHI 440(13),949
LA 15,1072(0,15)
STG 15,448(0,13)
LA 1,424(0,13)
LG 15,@lit_1948_339 ; __assert
@@gen_label466 DS 0H
BALR 14,15
@@gen_label467 DS 0H
@L785 DS 0H
* ***
* *** if (((lastmsg->rkm_u.producer.msgid != msetw->\
* msetw_batch->last_msgid))) {
LG 15,144(0,3) ; offset of msgid in 0000042
LG 1,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w*
riter_s
CLG 15,80(0,1)
BE @L786
* ***
* *** rd_kafka_set_fatal_error0(rkb->rkb_rk,\
* RD_DO_LOCK, RD_KAFKA_RESP_ERR__INCONSISTENT, "Unable to reconstruct\
* MessageSet " "(currently with %d message(s)) " "with msgid range %"\
* "llu" "..%" "llu" ": " "last message added has msgid %" "llu" ": " \
* "unable to guarantee consistency", msgcnt, msetw->msetw_batch->first\
* _msgid, msetw->msetw_batch->last_msgid, lastmsg->rkm_u.producer.msgi\
* d);
LG 15,4048(0,4)
STG 15,424(0,13)
MVGHI 432(13),1
MVGHI 440(13),-149
LG 15,@lit_1948_308
LA 15,1080(0,15)
STG 15,448(0,13)
LGFR 15,6
STG 15,456(0,13)
LG 15,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w*
riter_s
LG 15,64(0,15)
STG 15,464(0,13)
LG 15,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w*
riter_s
LG 15,80(0,15)
STG 15,472(0,13)
LG 15,144(0,3)
STG 15,480(0,13)
LA 1,424(0,13)
LG 15,@lit_1948_341 ; rd_kafka_set_fatal_error0
@@gen_label469 DS 0H
BALR 14,15
@@gen_label470 DS 0H
* *** # 965 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c"
* *** return 0;
LGHI 15,0 ; 0
B @ret_lab_1948
* *** }
@L786 DS 0H
* *** }
@L783 DS 0H
* *** return 1;
LGHI 15,1 ; 1
* *** }
@ret_lab_1948 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_msgset_writer_write_msg
* q"
* (FUNCTION #1948)
*
@AUTO#rd_kafka_msgset_writer_write_msgq DSECT
DS XL168
rd_kafka_msgset_writer_write_msgq#_logname#10 DS 256XL1 ; _logname
ORG @AUTO#rd_kafka_msgset_writer_write_msgq+168
rd_kafka_msgset_writer_write_msgq#_logname#6 DS 256XL1 ; _logname
ORG @AUTO#rd_kafka_msgset_writer_write_msgq+168
rd_kafka_msgset_writer_write_msgq#now#0 DS 8XL1 ; now
ORG @AUTO#rd_kafka_msgset_writer_write_msgq+168
rd_kafka_msgset_writer_write_msgq#msgcnt#0 DS 1F ; msgcnt
ORG @AUTO#rd_kafka_msgset_writer_write_msgq+168
rd_kafka_msgset_writer_write_msgq#$Max$Timestamp#0 DS 8XL1 ; MaxTimesta*
mp
ORG @AUTO#rd_kafka_msgset_writer_write_msgq+168
rd_kafka_msgset_writer_write_msgq#int_latency_base#0 DS 8XL1 ; int_late*
ncy_base
ORG @AUTO#rd_kafka_msgset_writer_write_msgq+168
rd_kafka_msgset_writer_write_msgq#max_msg_size#0 DS 8XL1 ; max_msg_size
ORG @AUTO#rd_kafka_msgset_writer_write_msgq+168
rd_kafka_msgset_writer_write_msgq#len#0 DS 8XL1 ; len
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgset_writer_compress_snappy
@LNAME1949 DS 0H
DC X'00000026'
DC C'rd_kafka_msgset_writer_compress_'
DC C'snappy'
DC X'00'
rd_kafka_msgset_writer_compress_snappy DCCPRLG CINDEX=1949,BASER=12,FRA*
ME=552,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1949
* ******* End of Prologue
* *
* *** rd_kafka_broker_t *rkb = msetw->msetw_rkb;
LMG 2,3,8(1) ; slice
LG 15,0(0,1) ; msetw
LMG 4,5,136(15) ; offset of msetw_rkb in rd_kafka_msgset_wri*
ter_s
* *** rd_kafka_toppar_t *rktp = msetw->msetw_rktp;
* *** struct iovec *iov;
* *** size_t iov_max, iov_cnt;
* *** struct snappy_env senv;
* *** size_t len = ((slice)->end - rd_slice_abs_offset(slice\
* ));
LG 8,32(0,2) ; offset of end in rd_slice_s
STG 2,456(0,13)
LA 1,456(0,13)
LG 15,@lit_1949_345 ; rd_slice_abs_offset
@@gen_label471 DS 0H
BALR 14,15
@@gen_label472 DS 0H
SLGR 8,15
* *** int r;
* ***
* ***
* *** rd_kafka_snappy_init_env_sg(&senv, 1);
LA 15,176(0,13)
STG 15,456(0,13)
MVGHI 464(13),1
LA 1,456(0,13)
LG 15,@lit_1949_346 ; rd_kafka_snappy_init_env_sg
@@gen_label473 DS 0H
BALR 14,15
@@gen_label474 DS 0H
* ***
* ***
* ***
* *** ciov->iov_len = rd_kafka_snappy_max_compressed_length(\
* len);
STG 8,456(0,13)
LA 1,456(0,13)
LG 15,@lit_1949_347 ; rd_kafka_snappy_max_compressed_length
@@gen_label475 DS 0H
BALR 14,15
@@gen_label476 DS 0H
STG 15,8(0,3)
* *** ciov->iov_base = rd_malloc(ciov->iov_len);
STG 15,456(0,13)
LA 1,456(0,13)
LG 15,@lit_1949_348 ; rd_malloc
@@gen_label477 DS 0H
BALR 14,15
@@gen_label478 DS 0H
STG 15,0(0,3)
* ***
* *** iov_max = slice->buf->rbuf_segment_cnt;
LG 15,0(0,2) ; slice
LG 7,16(0,15) ; offset of rbuf_segment_cnt in rd_buf_s
* *** iov = __builtin_alloca(sizeof(*iov) * iov_max);
SLLG 15,7,4(0) ; *0x10
STG 15,456(0,13)
LA 1,456(0,13)
LG 15,@lit_1949_349 ; @@ALLOCA
@@gen_label479 DS 0H
BALR 14,15
@@gen_label480 DS 0H
LGR 6,15
* ***
* *** rd_slice_get_iov(slice, iov, &iov_cnt, iov_max, len);
STG 2,456(0,13)
STG 6,464(0,13)
LA 15,168(0,13)
STG 15,472(0,13)
STMG 7,8,480(13)
LA 1,456(0,13)
LG 15,@lit_1949_350 ; rd_slice_get_iov
@@gen_label481 DS 0H
BALR 14,15
@@gen_label482 DS 0H
* ***
* ***
* *** if ((r = rd_kafka_snappy_compress_iov(&senv, iov, iov_\
* cnt, len,
* *** ciov)) != 0) {
LA 15,176(0,13)
STG 15,456(0,13)
STG 6,464(0,13)
LG 15,168(0,13) ; iov_cnt
STG 15,472(0,13)
STG 8,480(0,13)
STG 3,488(0,13)
LA 1,456(0,13)
LG 15,@lit_1949_351 ; rd_kafka_snappy_compress_iov
@@gen_label483 DS 0H
BALR 14,15
@@gen_label484 DS 0H
LTR 2,15
BE @L787
* *** do { char _logname[256]; mtx_lock(&(rkb)->rkb_\
* logname_lock); rd_strlcpy(_logname, rkb->rkb_logname, sizeof(_lognam\
* e)); mtx_unlock(&(rkb)->rkb_logname_lock); rd_kafka_log0(&(rkb)->rkb\
* _rk->rk_conf, (rkb)->rkb_rk, _logname, 3, 0x0, "SNAPPY", "Failed to \
* snappy-compress " "%" "zu" " bytes for " "topic %.*s [%" "d" "]: %s:\
* " "sending uncompressed", len, (int)((rktp->rktp_rkt->rkt_topic)->l\
* en == -1 ? 0 : (rktp->rktp_rkt->rkt_topic)->len), (rktp->rktp_rkt->r\
* kt_topic)->str, rktp->rktp_partition, strerror(-r)); } while (0);
@L788 DS 0H
LGHI 6,5688 ; 5688
LA 15,0(6,4)
STG 15,456(0,13)
LA 1,456(0,13)
LG 15,@lit_1949_353 ; mtx_lock
@@gen_label486 DS 0H
BALR 14,15
@@gen_label487 DS 0H
LA 15,200(0,13)
STG 15,456(0,13)
LGHI 15,5680 ; 5680
LG 15,0(15,4)
STG 15,464(0,13)
MVGHI 472(13),256
LA 1,456(0,13)
LG 15,@lit_1949_355 ; rd_strlcpy
@@gen_label488 DS 0H
BALR 14,15
@@gen_label489 DS 0H
LA 15,0(6,4)
STG 15,456(0,13)
LA 1,456(0,13)
LG 15,@lit_1949_357 ; mtx_unlock
@@gen_label490 DS 0H
BALR 14,15
@@gen_label491 DS 0H
LG 15,96(0,5) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s
CHSI 0(15),-1
BNE @L791
LHI 6,0 ; 0
B @L792
DS 0D
@FRAMESIZE_1949 DC F'552'
@lit_1949_345 DC AD(rd_slice_abs_offset)
@lit_1949_346 DC AD(rd_kafka_snappy_init_env_sg)
@lit_1949_347 DC AD(rd_kafka_snappy_max_compressed_length)
@lit_1949_348 DC AD(rd_malloc)
@lit_1949_349 DC AD(@@ALLOCA)
@lit_1949_350 DC AD(rd_slice_get_iov)
@lit_1949_351 DC AD(rd_kafka_snappy_compress_iov)
@lit_1949_353 DC AD(mtx_lock)
@lit_1949_355 DC AD(rd_strlcpy)
@lit_1949_357 DC AD(mtx_unlock)
@lit_1949_359 DC AD(strerror)
@lit_1949_361 DC AD(rd_kafka_log0)
@lit_1949_360 DC AD(@strings@)
@lit_1949_362 DC AD(rd_free)
@lit_1949_364 DC AD(rd_kafka_snappy_free_env)
@L791 DS 0H
LG 15,96(0,5) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 15,128(0,15) ; offset of rkt_topic in rd_kafka_topic_s
L 6,0(0,15)
@L792 DS 0H
LCR 15,2
LGFR 15,15
STG 15,456(0,13)
LA 1,456(0,13)
LG 15,@lit_1949_359 ; strerror
@@gen_label493 DS 0H
BALR 14,15
@@gen_label494 DS 0H
LG 1,4048(0,4) ; offset of rkb_rk in rd_kafka_broker_s
LA 1,528(0,1)
STG 1,456(0,13)
LG 1,4048(0,4)
STG 1,464(0,13)
LA 1,200(0,13)
STG 1,472(0,13)
MVGHI 480(13),3
XC 488(8,13),488(13)
LG 1,@lit_1949_360
LA 2,1240(0,1)
STG 2,496(0,13)
LA 1,1248(0,1)
STG 1,504(0,13)
STG 8,512(0,13)
LGFR 1,6
STG 1,520(0,13)
LG 1,96(0,5) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 1,128(0,1) ; offset of rkt_topic in rd_kafka_topic_s
LG 1,8(0,1)
STG 1,528(0,13)
LGF 1,104(0,5)
STG 1,536(0,13)
STG 15,544(0,13)
LA 1,456(0,13)
LG 15,@lit_1949_361 ; rd_kafka_log0
@@gen_label495 DS 0H
BALR 14,15
@@gen_label496 DS 0H
* *** # 1109 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c"
* *** rd_free(ciov->iov_base);
LG 15,0(0,3)
STG 15,456(0,13)
LA 1,456(0,13)
LG 15,@lit_1949_362 ; rd_free
@@gen_label497 DS 0H
BALR 14,15
@@gen_label498 DS 0H
* *** return -1;
LGHI 15,-1 ; -1
B @ret_lab_1949
* *** }
@L787 DS 0H
* ***
* ***
* *** rd_kafka_snappy_free_env(&senv);
LA 15,176(0,13)
STG 15,456(0,13)
LA 1,456(0,13)
LG 15,@lit_1949_364 ; rd_kafka_snappy_free_env
@@gen_label499 DS 0H
BALR 14,15
@@gen_label500 DS 0H
* ***
* *** return 0;
LGHI 15,0 ; 0
* *** }
@ret_lab_1949 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_msgset_writer_compress_
* snappy"
* (FUNCTION #1949)
*
@AUTO#rd_kafka_msgset_writer_compress_snappy DSECT
DS XL168
rd_kafka_msgset_writer_compress_snappy#r#0 DS 1F ; r
ORG @AUTO#rd_kafka_msgset_writer_compress_snappy+168
rd_kafka_msgset_writer_compress_snappy#len#0 DS 8XL1 ; len
ORG @AUTO#rd_kafka_msgset_writer_compress_snappy+168
rd_kafka_msgset_writer_compress_snappy#iov_cnt#0 DS 8XL1 ; iov_cnt
ORG @AUTO#rd_kafka_msgset_writer_compress_snappy+168
rd_kafka_msgset_writer_compress_snappy#iov_max#0 DS 8XL1 ; iov_max
ORG @AUTO#rd_kafka_msgset_writer_compress_snappy+176
rd_kafka_msgset_writer_compress_snappy#senv#0 DS 24XL1 ; senv
ORG @AUTO#rd_kafka_msgset_writer_compress_snappy+200
rd_kafka_msgset_writer_compress_snappy#_logname#2 DS 256XL1 ; _logname
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgset_writer_compress_lz4
@LNAME1950 DS 0H
DC X'00000023'
DC C'rd_kafka_msgset_writer_compress_'
DC C'lz4'
DC X'00'
rd_kafka_msgset_writer_compress_lz4 DCCPRLG CINDEX=1950,BASER=12,FRAME=*
224,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1950
LGR 2,1 ; ptr to parm area
* ******* End of Prologue
* *
LG 15,0(0,2) ; msetw
* *** rd_kafka_resp_err_t err;
* *** int comp_level =
* *** msetw->msetw_rktp->rktp_rkt->rkt_conf.compress\
* ion_level;
LG 1,144(0,15) ; offset of msetw_rktp in rd_kafka_msgset_wr*
iter_s
LG 1,96(0,1) ; offset of rktp_rkt in rd_kafka_toppar_s
L 1,980(0,1) ; offset of compression_level in rd_kafka_to*
pic_conf_s
* *** err = rd_kafka_lz4_compress(msetw->msetw_rkb,
* ***
* *** msetw->msetw_MsgVersion >=\
* 1 ? 1 : 0,
* *** comp_level,
* *** slice, &ciov->iov_base, &c\
* iov->iov_len);
CHSI 12(15),1
BL @L793
LHI 3,1 ; 1
B @L794
DS 0D
@FRAMESIZE_1950 DC F'224'
@lit_1950_369 DC AD(rd_kafka_lz4_compress)
@L793 DS 0H
LHI 3,0 ; 0
@L794 DS 0H
LG 15,136(0,15)
STG 15,176(0,13)
LGFR 15,3
STG 15,184(0,13)
LGFR 15,1
STG 15,192(0,13)
LG 15,8(0,2) ; slice
STG 15,200(0,13)
LG 15,16(0,2) ; ciov
STG 15,208(0,13)
LG 15,16(0,2) ; ciov
LA 15,8(0,15)
STG 15,216(0,13)
LA 1,176(0,13)
LG 15,@lit_1950_369 ; rd_kafka_lz4_compress
@@gen_label502 DS 0H
BALR 14,15
@@gen_label503 DS 0H
* *** return (err ? -1 : 0);
LTR 15,15
BZ @L795
LHI 15,-1 ; -1
B @L796
@L795 DS 0H
LHI 15,0 ; 0
@L796 DS 0H
LGFR 15,15
* *** }
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_msgset_writer_compress_
* lz4"
* (FUNCTION #1950)
*
@AUTO#rd_kafka_msgset_writer_compress_lz4 DSECT
DS XL168
rd_kafka_msgset_writer_compress_lz4#comp_level#0 DS 1F ; comp_level
ORG @AUTO#rd_kafka_msgset_writer_compress_lz4+168
rd_kafka_msgset_writer_compress_lz4#err#0 DS 1F ; err
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgset_writer_compress
@LNAME1951 DS 0H
DC X'0000001F'
DC C'rd_kafka_msgset_writer_compress'
DC X'00'
rd_kafka_msgset_writer_compress DCCPRLG CINDEX=1951,BASER=12,FRAME=432,*
ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1951
LGR 6,1 ; ptr to parm area
* ******* End of Prologue
* *
* *** rd_buf_t *rbuf = &msetw->msetw_rkbuf->rkbuf_buf;
LG 3,0(0,6) ; msetw
LG 15,0(0,3) ; msetw
LA 4,40(0,15)
* *** rd_slice_t slice;
* *** size_t len = *outlenp;
LG 15,8(0,6) ; outlenp
LG 5,0(0,15) ; outlenp
* *** struct iovec ciov = {};
* setting 16 bytes to 0x00
XC 208(16,13),208(13)
* *** int r = -1;
* *** size_t outlen;
* ***
* *** ((rd_buf_len(rbuf) >= msetw->msetw_firstmsg.of + len) \
* ? (void)0 : __assert(__func__, "C:\\asgkafka\\librdkafka\\src\\rdkaf\
* ka_msgset_writer.c", 1172, "rd_buf_len(rbuf) >= msetw->msetw_firstms\
* g.of + len"));
STG 4,392(0,13)
LA 1,392(0,13)
LG 15,@lit_1951_374 ; rd_buf_len
@@gen_label505 DS 0H
BALR 14,15
@@gen_label506 DS 0H
LGR 1,5
ALG 1,104(0,3)
CLGR 15,1
BNL @L798
@L797 DS 0H
LG 15,@lit_1951_375
LA 15,666(0,15)
STG 15,392(0,13)
LG 15,@lit_1951_376
LA 1,556(0,15)
STG 1,400(0,13)
MVGHI 408(13),1172
LA 15,1330(0,15)
STG 15,416(0,13)
LA 1,392(0,13)
LG 15,@lit_1951_377 ; __assert
@@gen_label508 DS 0H
BALR 14,15
@@gen_label509 DS 0H
@L798 DS 0H
* ***
* ***
* *** r = rd_slice_init(&slice, rbuf, msetw->msetw_firstmsg.\
* of, len);
LA 15,168(0,13)
STG 15,392(0,13)
STG 4,400(0,13)
LG 15,104(0,3)
STG 15,408(0,13)
STG 5,416(0,13)
LA 1,392(0,13)
LG 15,@lit_1951_378 ; rd_slice_init
@@gen_label510 DS 0H
BALR 14,15
@@gen_label511 DS 0H
LTR 2,15 ; r
* *** ((r == 0 || !*"invalid firstmsg position") ? (void)0 :\
* __assert(__func__, "C:\\asgkafka\\librdkafka\\src\\rdkafka_msgset_w\
* riter.c", 1176, "r == 0 || !*\"invalid firstmsg position\""));
BE @L802
LG 15,@lit_1951_376
LA 1,1382(0,15)
CLI 0(1),0
BNE @L799
@L800 DS 0H
B @L802
DS 0D
@FRAMESIZE_1951 DC F'432'
@lit_1951_374 DC AD(rd_buf_len)
@lit_1951_377 DC AD(__assert)
@lit_1951_376 DC AD(@strings@)
@lit_1951_375 DC AD(@DATA)
@lit_1951_378 DC AD(rd_slice_init)
@lit_1951_382 DC AD(rd_kafka_msgset_writer_compress_snappy)
@lit_1951_383 DC AD(rd_kafka_msgset_writer_compress_lz4)
@lit_1951_386 DC AD(rd_kafka_crash)
@lit_1951_388 DC AD(rd_free)
@lit_1951_390 DC AD(rd_buf_write_seek)
@lit_1951_395 DC AD(rd_buf_push0)
@lit_1951_397 DC AD(rd_kafka_msgset_writer_write_msg)
@L799 DS 0H
LG 1,@lit_1951_375
LA 1,666(0,1)
STG 1,392(0,13)
LA 1,556(0,15)
STG 1,400(0,13)
MVGHI 408(13),1176
LA 15,1408(0,15)
STG 15,416(0,13)
LA 1,392(0,13)
LG 15,@lit_1951_377 ; __assert
@@gen_label514 DS 0H
BALR 14,15
@@gen_label515 DS 0H
@L801 DS 0H
* ***
* *** switch (msetw->msetw_compression)
B @L802
* *** {
* ***
* *** # 1187 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c"
* *** case RD_KAFKA_COMPRESSION_SNAPPY:
@L804 DS 0H
* *** r = rd_kafka_msgset_writer_compress_snappy(mse\
* tw, &slice,
* *** &ci\
* ov);
STG 3,392(0,13)
LA 15,168(0,13)
STG 15,400(0,13)
LA 15,208(0,13)
STG 15,408(0,13)
LA 1,392(0,13)
LG 15,@lit_1951_382 ; rd_kafka_msgset_writer_compress_snapp*
y
@@gen_label516 DS 0H
BALR 14,15
@@gen_label517 DS 0H
LR 2,15 ; r
* *** break;
B @L803
* ***
* ***
* *** case RD_KAFKA_COMPRESSION_LZ4:
@L805 DS 0H
* *** r = rd_kafka_msgset_writer_compress_lz4(msetw,\
* &slice, &ciov);
STG 3,392(0,13)
LA 15,168(0,13)
STG 15,400(0,13)
LA 15,208(0,13)
STG 15,408(0,13)
LA 1,392(0,13)
LG 15,@lit_1951_383 ; rd_kafka_msgset_writer_compress_lz4
@@gen_label518 DS 0H
BALR 14,15
@@gen_label519 DS 0H
LR 2,15 ; r
* *** break;
B @L803
* ***
* ***
* *** # 1203 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c"
* *** default:
* *** do { if (((!(!*"notreached: unsupported compre\
* ssion.codec")))) rd_kafka_crash("C:\\asgkafka\\librdkafka\\src\\rdka\
* fka_msgset_writer.c",1204, __FUNCTION__, (((void *)0)), "assert: " "\
* !*\"notreached: unsupported compression.codec\""); } while (0);
@L807 DS 0H
LG 15,@lit_1951_376
LA 1,1448(0,15)
CLI 0(1),0
BE @L803
LA 1,556(0,15)
STG 1,392(0,13)
MVGHI 400(13),1204
LG 1,@lit_1951_375
LA 1,666(0,1)
STG 1,408(0,13)
XC 416(8,13),416(13)
LA 15,1490(0,15)
STG 15,424(0,13)
LA 1,392(0,13)
LG 15,@lit_1951_386 ; rd_kafka_crash
@@gen_label521 DS 0H
BALR 14,15
@@gen_label522 DS 0H
@L810 DS 0H
* ***
* *** break;
B @L803
* *** }
@L802 DS 0H
L 15,20(0,3) ; offset of msetw_compression in rd_kafka_ms*
gset_writer_s
CHI 15,2
BL @L807
CHI 15,2
BE @L804
CHI 15,3
BE @L805
B @L807
@L803 DS 0H
* ***
* *** if (r == -1)
CHI 2,-1
BNE @L811
* *** return -1;
LGHI 15,-1 ; -1
B @ret_lab_1951
@L811 DS 0H
* ***
* ***
* *** if (((ciov.iov_len > len))) {
LG 15,216(0,13) ; offset of iov_len in iovec
CLGR 15,5
BNH @L812
* ***
* ***
* *** rd_free(ciov.iov_base);
LG 15,208(0,13)
STG 15,392(0,13)
LA 1,392(0,13)
LG 15,@lit_1951_388 ; rd_free
@@gen_label525 DS 0H
BALR 14,15
@@gen_label526 DS 0H
* *** return -1;
LGHI 15,-1 ; -1
B @ret_lab_1951
* *** }
@L812 DS 0H
* ***
* ***
* *** msetw->msetw_Attributes |= msetw->msetw_compression;
L 15,76(0,3)
O 15,20(0,3)
ST 15,76(0,3)
* ***
* ***
* ***
* ***
* *** rd_buf_write_seek(rbuf, msetw->msetw_firstmsg.of);
STG 4,392(0,13)
LG 15,104(0,3)
STG 15,400(0,13)
LA 1,392(0,13)
LG 15,@lit_1951_390 ; rd_buf_write_seek
@@gen_label527 DS 0H
BALR 14,15
@@gen_label528 DS 0H
* ***
* *** do { if (((!(ciov.iov_len < 0x7fffffff)))) rd_kafka_cr\
* ash("C:\\asgkafka\\librdkafka\\src\\rdkafka_msgset_writer.c",1228, _\
* _FUNCTION__, (msetw->msetw_rkb->rkb_rk), "assert: " "ciov.iov_len < \
* INT32_MAX"); } while (0);
@L813 DS 0H
LG 15,216(0,13)
CLGFI 15,X'7FFFFFFF'
BL @L816
LG 15,@lit_1951_376
LA 1,556(0,15)
STG 1,392(0,13)
MVGHI 400(13),1228
LG 1,@lit_1951_375
LA 1,666(0,1)
STG 1,408(0,13)
LG 1,136(0,3) ; offset of msetw_rkb in rd_kafka_msgset_wri*
ter_s
LG 1,4048(0,1)
STG 1,416(0,13)
LA 15,1544(0,15)
STG 15,424(0,13)
LA 1,392(0,13)
LG 15,@lit_1951_386 ; rd_kafka_crash
@@gen_label530 DS 0H
BALR 14,15
@@gen_label531 DS 0H
@L816 DS 0H
* ***
* *** if (msetw->msetw_MsgVersion == 2) {
CHSI 12(3),2
BNE @L817
* ***
* ***
* ***
* ***
* *** rd_buf_push0(rbuf,ciov.iov_base,ciov.iov_len,r\
* d_free,0 );
STG 4,392(0,13)
LG 15,208(0,13)
STG 15,400(0,13)
LG 15,216(0,13)
STG 15,408(0,13)
LG 15,@lit_1951_388 ; rd_free
STG 15,416(0,13)
XC 424(8,13),424(13)
LA 1,392(0,13)
LG 15,@lit_1951_395 ; rd_buf_push0
@@gen_label533 DS 0H
BALR 14,15
@@gen_label534 DS 0H
* *** outlen = ciov.iov_len;
LG 15,216(0,13) ; offset of iov_len in iovec
* ***
* *** } else {
B @L818
@L817 DS 0H
* ***
* ***
* *** rd_kafka_msg_t rkm = {
* *** . rkm_rkmessage.len = ciov.iov_l\
* en,
LG 15,216(0,13) ; offset of iov_len in iovec
STG 15,256(0,13)
* *** . rkm_rkmessage.payload = ciov.iov_b\
* ase,
LG 15,208(0,13)
STG 15,248(0,13)
* *** .rkm_timestamp = msetw->msetw_firstmsg\
* .timestamp
* *** };
LG 15,112(0,3) ; offset of timestamp in 0000155
STG 15,320(0,13)
* setting 24 bytes to 0x00
XC 224(24,13),224(13)
* setting 56 bytes to 0x00
XC 264(56,13),264(13)
* setting 64 bytes to 0x00
XC 328(64,13),328(13)
* *** outlen = rd_kafka_msgset_writer_write_msg(
* *** msetw, &rkm, 0,
* *** msetw->msetw_compression,
* *** rd_free);
STG 3,392(0,13)
LA 15,224(0,13)
STG 15,400(0,13)
XC 408(8,13),408(13)
L 15,20(0,3) ; offset of msetw_compression in rd_kafka_ms*
gset_writer_s
SLLG 15,15,56(0)
SRAG 15,15,56(0)
STG 15,416(0,13)
LG 15,@lit_1951_388 ; rd_free
STG 15,424(0,13)
LA 1,392(0,13)
LG 15,@lit_1951_397 ; rd_kafka_msgset_writer_write_msg
@@gen_label535 DS 0H
BALR 14,15
@@gen_label536 DS 0H
* *** }
@L818 DS 0H
* ***
* *** *outlenp = outlen;
LG 1,8(0,6) ; outlenp
STG 15,0(0,1) ; outlenp
* ***
* *** return 0;
LGHI 15,0 ; 0
* *** }
@ret_lab_1951 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_msgset_writer_compress"
* (FUNCTION #1951)
*
@AUTO#rd_kafka_msgset_writer_compress DSECT
DS XL168
rd_kafka_msgset_writer_compress#outlen#0 DS 8XL1 ; outlen
ORG @AUTO#rd_kafka_msgset_writer_compress+168
rd_kafka_msgset_writer_compress#r#0 DS 1F ; r
ORG @AUTO#rd_kafka_msgset_writer_compress+168
rd_kafka_msgset_writer_compress#len#0 DS 8XL1 ; len
ORG @AUTO#rd_kafka_msgset_writer_compress+168
rd_kafka_msgset_writer_compress#slice#0 DS 40XL1 ; slice
ORG @AUTO#rd_kafka_msgset_writer_compress+208
rd_kafka_msgset_writer_compress#ciov#0 DS 16XL1 ; ciov
ORG @AUTO#rd_kafka_msgset_writer_compress+224
rd_kafka_msgset_writer_compress#rkm#6 DS 168XL1 ; rkm
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgset_writer_calc_crc_v2
@LNAME1952 DS 0H
DC X'00000022'
DC C'rd_kafka_msgset_writer_calc_crc_'
DC C'v2'
DC X'00'
rd_kafka_msgset_writer_calc_crc_v2 DCCPRLG CINDEX=1952,BASER=12,FRAME=2*
40,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1952
* ******* End of Prologue
* *
LG 2,0(0,1) ; msetw
* *** int32_t crc;
* *** rd_slice_t slice;
* *** int r;
* ***
* *** r = rd_slice_init(&slice, &msetw->msetw_rkbuf->rkbuf_b\
* uf,
* *** msetw->msetw_of_CRC+4,
* *** rd_buf_write_pos(&msetw->msetw_rkbuf\
* ->rkbuf_buf) -
LG 15,0(0,2) ; msetw
LA 15,40(0,15)
STG 15,208(0,13)
LA 1,208(0,13)
LG 15,@lit_1952_400 ; rd_buf_write_pos
@@gen_label537 DS 0H
BALR 14,15
@@gen_label538 DS 0H
* *** msetw->msetw_of_CRC-4);
SLG 15,88(0,2)
AGHI 15,-4
LA 1,168(0,13)
STG 1,208(0,13)
LG 1,0(0,2) ; msetw
LA 1,40(0,1)
STG 1,216(0,13)
LG 1,88(0,2) ; offset of msetw_of_CRC in rd_kafka_msgset_*
writer_s
AGHI 1,4
STG 1,224(0,13)
STG 15,232(0,13)
LA 1,208(0,13)
LG 15,@lit_1952_401 ; rd_slice_init
@@gen_label539 DS 0H
BALR 14,15
@@gen_label540 DS 0H
* *** ((!r && *"slice_init failed") ? (void)0 : __assert(__fu\
* nc__, "C:\\asgkafka\\librdkafka\\src\\rdkafka_msgset_writer.c", 1273\
* , "!r && *\"slice_init failed\""));
LTR 15,15
BNZ @L819
LG 15,@lit_1952_402
LA 15,1578(0,15)
CLI 0(15),0
BNE @L820
@L819 DS 0H
LG 15,@lit_1952_403
LA 15,698(0,15)
STG 15,208(0,13)
LG 15,@lit_1952_402
LA 1,556(0,15)
STG 1,216(0,13)
MVGHI 224(13),1273
LA 15,1596(0,15)
STG 15,232(0,13)
LA 1,208(0,13)
LG 15,@lit_1952_405 ; __assert
@@gen_label543 DS 0H
BALR 14,15
@@gen_label544 DS 0H
@L820 DS 0H
* ***
* ***
* *** crc = rd_slice_crc32c(&slice);
LA 15,168(0,13)
STG 15,208(0,13)
LA 1,208(0,13)
LG 15,@lit_1952_406 ; rd_slice_crc32c
@@gen_label545 DS 0H
BALR 14,15
@@gen_label546 DS 0H
* ***
* ***
* *** rd_kafka_buf_update_i32(msetw->msetw_rkbuf, msetw->mse\
* tw_of_CRC, crc);
LG 1,0(0,2)
STG 1,208(0,13)
LG 1,88(0,2)
STG 1,216(0,13)
LGFR 15,15
STG 15,224(0,13)
LA 1,208(0,13)
LG 15,@lit_1952_407 ; rd_kafka_buf_update_i32
@@gen_label547 DS 0H
BALR 14,15
@@gen_label548 DS 0H
* *** }
@ret_lab_1952 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1952 DC F'240'
@lit_1952_400 DC AD(rd_buf_write_pos)
@lit_1952_401 DC AD(rd_slice_init)
@lit_1952_402 DC AD(@strings@)
@lit_1952_405 DC AD(__assert)
@lit_1952_403 DC AD(@DATA)
@lit_1952_406 DC AD(rd_slice_crc32c)
@lit_1952_407 DC AD(rd_kafka_buf_update_i32)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_msgset_writer_calc_crc_
* v2"
* (FUNCTION #1952)
*
@AUTO#rd_kafka_msgset_writer_calc_crc_v2 DSECT
DS XL168
rd_kafka_msgset_writer_calc_crc_v2#r#0 DS 1F ; r
ORG @AUTO#rd_kafka_msgset_writer_calc_crc_v2+168
rd_kafka_msgset_writer_calc_crc_v2#slice#0 DS 40XL1 ; slice
ORG @AUTO#rd_kafka_msgset_writer_calc_crc_v2+168
rd_kafka_msgset_writer_calc_crc_v2#crc#0 DS 1F ; crc
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgset_writer_finalize_MessageSet_v2_heade\
* r
@LNAME1953 DS 0H
DC X'00000034'
DC C'rd_kafka_msgset_writer_finalize_'
DC C'MessageSet_v2_header'
DC X'00'
rd_kafka_msgset_writer_finalize_$Message$Set_v2_header DCCPRLG CINDEX=1*
953,BASER=12,FRAME=216,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LN*
AME1953
* ******* End of Prologue
* *
* *** rd_kafka_buf_t *rkbuf = msetw->msetw_rkbuf;
LG 2,0(0,1) ; msetw
LG 3,0(0,2) ; msetw
* *** int msgcnt = rd_kafka_msgq_len(&rkbuf->rkbuf_u.Produce\
* .batch .msgq);
LA 15,408(0,3)
STG 15,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1953_409 ; rd_kafka_msgq_len
@@gen_label549 DS 0H
BALR 14,15
@@gen_label550 DS 0H
LR 4,15
* ***
* *** do { if (((!(msgcnt > 0)))) rd_kafka_crash("C:\\asgkaf\
* ka\\librdkafka\\src\\rdkafka_msgset_writer.c",1291, __FUNCTION__, ((\
* (void *)0)), "assert: " "msgcnt > 0"); } while (0);
@L821 DS 0H
LTR 4,4
BH @L824
LG 15,@lit_1953_410
LA 1,556(0,15)
STG 1,176(0,13)
MVGHI 184(13),1291
LG 1,@lit_1953_411
LA 1,734(0,1)
STG 1,192(0,13)
XC 200(8,13),200(13)
LA 15,1624(0,15)
STG 15,208(0,13)
LA 1,176(0,13)
LG 15,@lit_1953_412 ; rd_kafka_crash
@@gen_label552 DS 0H
BALR 14,15
@@gen_label553 DS 0H
@L824 DS 0H
* *** do { if (((!(msetw->msetw_ApiVersion >= 3)))) rd_kafka\
* _crash("C:\\asgkafka\\librdkafka\\src\\rdkafka_msgset_writer.c",1292\
* , __FUNCTION__, (((void *)0)), "assert: " "msetw->msetw_ApiVersion >\
* = 3"); } while (0);
@L825 DS 0H
LH 15,8(0,2)
CHI 15,3
BNL @L828
LG 15,@lit_1953_410
LA 1,556(0,15)
STG 1,176(0,13)
MVGHI 184(13),1292
LG 1,@lit_1953_411
LA 1,734(0,1)
STG 1,192(0,13)
XC 200(8,13),200(13)
LA 15,738(0,15)
STG 15,208(0,13)
LA 1,176(0,13)
LG 15,@lit_1953_412 ; rd_kafka_crash
@@gen_label555 DS 0H
BALR 14,15
@@gen_label556 DS 0H
@L828 DS 0H
* ***
* *** msetw->msetw_MessageSetSize = (8+4+4+1+4+2+4+8+8+8+2+4\
* +4) +
* *** msetw->msetw_messages_len;
LG 15,32(0,2) ; offset of msetw_messages_len in rd_kafka_m*
sgset_writer_s
AGHI 15,61
STG 15,48(0,2) ; offset of msetw_MessageSetSize in rd_kafka*
_msgset_writer_s
* ***
* ***
* ***
* *** rd_kafka_buf_update_i32(rkbuf, msetw->msetw_of_start +
* *** (int32_t)msetw->msetw_MessageS\
* etSize - (8+4));
STG 3,176(0,13)
* *** (8),
LG 15,64(0,2) ; offset of msetw_of_start in rd_kafka_msgse*
t_writer_s
AGHI 15,8
STG 15,184(0,13)
LG 15,48(0,2) ; offset of msetw_MessageSetSize in rd_kafka*
_msgset_writer_s
AHI 15,-12
LGFR 15,15
STG 15,192(0,13)
LA 1,176(0,13)
LG 5,@lit_1953_416 ; rd_kafka_buf_update_i32
LGR 15,5
@@gen_label557 DS 0H
BALR 14,15
@@gen_label558 DS 0H
* ***
* *** msetw->msetw_Attributes |= (0 << 3);
L 15,76(0,2)
* ***
* *** if (((msetw->msetw_rkb->rkb_rk)->rk_conf.eos.transacti\
* onal_id != ((void *)0)))
LG 15,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri*
ter_s
LG 15,4048(0,15) ; offset of rkb_rk in rd_kafka_broker_s
LTG 15,2024(0,15) ; offset of transactional_id in 0000105
BE @L829
* *** msetw->msetw_Attributes |=
* *** (1 << 4);
L 15,76(0,2)
OILL 15,16
ST 15,76(0,2)
@L829 DS 0H
* ***
* *** rd_kafka_buf_update_i16(rkbuf, msetw->msetw_of_start +
* *** msetw->msetw_Attributes);
STG 3,176(0,13)
* *** (8+4+4+1+4),
LG 15,64(0,2) ; offset of msetw_of_start in rd_kafka_msgse*
t_writer_s
AGHI 15,21
STG 15,184(0,13)
L 15,76(0,2) ; offset of msetw_Attributes in rd_kafka_msg*
set_writer_s
LGHR 15,15
STG 15,192(0,13)
LA 1,176(0,13)
LG 15,@lit_1953_417 ; rd_kafka_buf_update_i16
@@gen_label560 DS 0H
BALR 14,15
@@gen_label561 DS 0H
* ***
* *** rd_kafka_buf_update_i32(rkbuf, msetw->msetw_of_start +
* *** msgcnt-1);
STG 3,176(0,13)
* *** (8+4+4+1+4+2),
LG 15,64(0,2) ; offset of msetw_of_start in rd_kafka_msgse*
t_writer_s
AGHI 15,23
STG 15,184(0,13)
LR 15,4
AHI 15,-1
LGFR 15,15
STG 15,192(0,13)
LA 1,176(0,13)
LGR 15,5
@@gen_label562 DS 0H
BALR 14,15
@@gen_label563 DS 0H
* ***
* *** rd_kafka_buf_update_i64(rkbuf, msetw->msetw_of_start +
* *** msetw->msetw_firstmsg.timestam\
* p);
STG 3,176(0,13)
* *** (8+4+4+1+4+2+4),
LG 15,64(0,2) ; offset of msetw_of_start in rd_kafka_msgse*
t_writer_s
AGHI 15,27
STG 15,184(0,13)
LG 15,112(0,2)
STG 15,192(0,13)
LA 1,176(0,13)
LG 6,@lit_1953_419 ; rd_kafka_buf_update_i64
LGR 15,6
@@gen_label564 DS 0H
BALR 14,15
@@gen_label565 DS 0H
* ***
* *** rd_kafka_buf_update_i64(rkbuf, msetw->msetw_of_start +
* *** msetw->msetw_MaxTimestamp);
STG 3,176(0,13)
* *** (8+4+4+1+4+2+4+8),
LG 15,64(0,2) ; offset of msetw_of_start in rd_kafka_msgse*
t_writer_s
AGHI 15,35
STG 15,184(0,13)
LG 15,80(0,2)
STG 15,192(0,13)
LA 1,176(0,13)
LGR 15,6
@@gen_label566 DS 0H
BALR 14,15
@@gen_label567 DS 0H
* ***
* *** rd_kafka_buf_update_i32(rkbuf, msetw->msetw_of_start +
* *** msetw->msetw_batch->first_seq)\
* ;
STG 3,176(0,13)
* *** (8+4+4+1+4+2+4+8+8+8+2),
LG 15,64(0,2) ; offset of msetw_of_start in rd_kafka_msgse*
t_writer_s
AGHI 15,53
STG 15,184(0,13)
LG 15,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w*
riter_s
LGF 15,56(0,15)
STG 15,192(0,13)
LA 1,176(0,13)
LGR 15,5
@@gen_label568 DS 0H
BALR 14,15
@@gen_label569 DS 0H
* ***
* *** rd_kafka_buf_update_i32(rkbuf, msetw->msetw_of_start +
STG 3,176(0,13)
* *** (8+4+4+1+4+2+4+8+8+8+2+4), msg\
* cnt);
LG 15,64(0,2) ; offset of msetw_of_start in rd_kafka_msgse*
t_writer_s
AGHI 15,57
STG 15,184(0,13)
LGFR 15,4
STG 15,192(0,13)
LA 1,176(0,13)
LGR 15,5
@@gen_label570 DS 0H
BALR 14,15
@@gen_label571 DS 0H
* ***
* *** rd_kafka_msgset_writer_calc_crc_v2(msetw);
STG 2,176(0,13)
LA 1,176(0,13)
LG 15,@lit_1953_423 ; rd_kafka_msgset_writer_calc_crc_v2
@@gen_label572 DS 0H
BALR 14,15
@@gen_label573 DS 0H
* *** }
@ret_lab_1953 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DS 0D
@FRAMESIZE_1953 DC F'216'
@lit_1953_409 DC AD(rd_kafka_msgq_len)
@lit_1953_412 DC AD(rd_kafka_crash)
@lit_1953_411 DC AD(@DATA)
@lit_1953_410 DC AD(@strings@)
@lit_1953_416 DC AD(rd_kafka_buf_update_i32)
@lit_1953_417 DC AD(rd_kafka_buf_update_i16)
@lit_1953_419 DC AD(rd_kafka_buf_update_i64)
@lit_1953_423 DC AD(rd_kafka_msgset_writer_calc_crc_v2)
DROP 12
*
* DSECT for automatic variables in "rd_kafka_msgset_writer_finalize_
* MessageSet_v2_header"
* (FUNCTION #1953)
*
@AUTO#F#1953 DSECT
DS XL168
rd_kafka_msgset_writer_finalize_$Message$Set_v2_header#msgcnt#0 DS 1F ;*
msgcnt
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgset_writer_finalize_MessageSet
@LNAME1954 DS 0H
DC X'0000002A'
DC C'rd_kafka_msgset_writer_finalize_'
DC C'MessageSet'
DC X'00'
rd_kafka_msgset_writer_finalize_$Message$Set DCCPRLG CINDEX=1954,BASER=*
12,FRAME=192,ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1954
* ******* End of Prologue
* *
* *** do {} while (0);
LG 2,0(0,1) ; msetw
@L830 DS 0H
* ***
* *** if (msetw->msetw_MsgVersion == 2)
CHSI 12(2),2
BNE @L833
* *** rd_kafka_msgset_writer_finalize_MessageSet_v2_\
* header(msetw);
STG 2,168(0,13)
LA 1,168(0,13)
LG 15,@lit_1954_425 ; rd_kafka_msgset_writer_finalize_Messa*
geSet_v2_header
@@gen_label575 DS 0H
BALR 14,15
@@gen_label576 DS 0H
B @L834
DS 0D
@FRAMESIZE_1954 DC F'192'
@lit_1954_425 DC AD(rd_kafka_msgset_writer_finalize_$Message$Set_v2_hea*
der)
@lit_1954_426 DC AD(rd_kafka_buf_update_i32)
* *** else
@L833 DS 0H
* *** msetw->msetw_MessageSetSize = 0 +
* *** msetw->msetw_messages_len;
LG 15,32(0,2) ; offset of msetw_messages_len in rd_kafka_m*
sgset_writer_s
STG 15,48(0,2) ; offset of msetw_MessageSetSize in rd_kafka*
_msgset_writer_s
@L834 DS 0H
* ***
* ***
* *** rd_kafka_buf_update_i32(msetw->msetw_rkbuf,
* *** msetw->msetw_of_MessageSetSize\
* ,
* *** (int32_t)msetw->msetw_MessageS\
* etSize);
LG 15,0(0,2)
STG 15,168(0,13)
LG 15,56(0,2)
STG 15,176(0,13)
LGF 15,52(0,2)
STG 15,184(0,13)
LA 1,168(0,13)
LG 15,@lit_1954_426 ; rd_kafka_buf_update_i32
@@gen_label577 DS 0H
BALR 14,15
@@gen_label578 DS 0H
* ***
* *** }
@ret_lab_1954 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_msgset_writer_finalize_
* MessageSet"
* (FUNCTION #1954)
*
@AUTO#rd_kafka_msgset_writer_finalize_$Message$Set DSECT
DS XL168
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgset_writer_finalize
@LNAME1955 DS 0H
DC X'0000001F'
DC C'rd_kafka_msgset_writer_finalize'
DC X'00'
rd_kafka_msgset_writer_finalize DCCPRLG CINDEX=1955,BASER=12,FRAME=568,*
ENTRY=NO,ARCH=ZARCH,LNAMEADDR=@LNAME1955
LGR 6,1 ; ptr to parm area
* ******* End of Prologue
* *
* *** rd_kafka_buf_t *rkbuf = msetw->msetw_rkbuf;
LG 2,0(0,6) ; msetw
LG 3,0(0,2) ; msetw
* *** rd_kafka_toppar_t *rktp = msetw->msetw_rktp;
LG 4,144(0,2) ; offset of msetw_rktp in rd_kafka_msgset_wr*
iter_s
* *** size_t len;
* *** int cnt;
* ***
* ***
* *** if ((((cnt = rd_kafka_msgq_len(&rkbuf->rkbuf_u.Produce\
* .batch .msgq)) == 0))) {
LA 15,408(0,3)
STG 15,432(0,13)
LA 1,432(0,13)
LG 15,@lit_1955_428 ; rd_kafka_msgq_len
@@gen_label579 DS 0H
BALR 14,15
@@gen_label580 DS 0H
LTR 5,15
BNE @L835
* ***
* *** do { if (rd_refcnt_sub0(&(rkbuf)->rkbuf_refcnt\
* ) > 0) break; rd_kafka_buf_destroy_final(rkbuf); } while (0);
@L836 DS 0H
LA 15,264(0,3)
STG 15,432(0,13)
LA 1,432(0,13)
LG 15,@lit_1955_429 ; rd_refcnt_sub0
@@gen_label582 DS 0H
BALR 14,15
@@gen_label583 DS 0H
LTR 15,15
BH @L837
@L839 DS 0H
STG 3,432(0,13)
LA 1,432(0,13)
LG 15,@lit_1955_430 ; rd_kafka_buf_destroy_final
@@gen_label585 DS 0H
BALR 14,15
@@gen_label586 DS 0H
@L837 DS 0H
* *** return ((void *)0);
LGHI 15,0 ; 0
B @ret_lab_1955
DS 0D
@FRAMESIZE_1955 DC F'568'
@lit_1955_428 DC AD(rd_kafka_msgq_len)
@lit_1955_429 DC AD(rd_refcnt_sub0)
@lit_1955_430 DC AD(rd_kafka_buf_destroy_final)
@lit_1955_432 DC AD(rd_buf_write_pos)
@lit_1955_435 DC AD(__assert)
@lit_1955_434 DC AD(@strings@)
@lit_1955_433 DC AD(@DATA)
@lit_1955_439 DC AD(rd_atomic64_add)
@lit_1955_441 DC AD(rd_kafka_msgset_writer_compress)
@lit_1955_442 DC AD(rd_kafka_msgset_writer_finalize_$Message$Set)
@lit_1955_444 DC AD(mtx_lock)
@lit_1955_446 DC AD(rd_strlcpy)
@lit_1955_448 DC AD(mtx_unlock)
@lit_1955_449 DC AD(rd_kafka_pid2str)
@lit_1955_450 DC AD(rd_kafka_compression2str)
@lit_1955_453 DC AD(rd_kafka_log0)
@lit_1955_454 DC AD(rd_kafka_msgbatch_ready_produce)
* *** }
@L835 DS 0H
* ***
* ***
* *** len = rd_buf_write_pos(&msetw->msetw_rkbuf->rkbuf_buf)\
* -
LG 15,0(0,2) ; msetw
LA 15,40(0,15)
STG 15,432(0,13)
LA 1,432(0,13)
LG 15,@lit_1955_432 ; rd_buf_write_pos
@@gen_label587 DS 0H
BALR 14,15
@@gen_label588 DS 0H
* *** msetw->msetw_firstmsg.of;
SLG 15,104(0,2)
STG 15,168(0,13) ; len
* *** ((len > 0) ? (void)0 : __assert(__func__, "C:\\asgkafk\
* a\\librdkafka\\src\\rdkafka_msgset_writer.c", 1391, "len > 0"));
CLGFI 15,X'00000000'
BH @L841
@L840 DS 0H
LG 15,@lit_1955_433
LA 15,788(0,15)
STG 15,432(0,13)
LG 15,@lit_1955_434
LA 1,556(0,15)
STG 1,440(0,13)
MVGHI 448(13),1391
LA 15,1644(0,15)
STG 15,456(0,13)
LA 1,432(0,13)
LG 15,@lit_1955_435 ; __assert
@@gen_label590 DS 0H
BALR 14,15
@@gen_label591 DS 0H
@L841 DS 0H
* *** ((len <= (size_t)rktp->rktp_rkt->rkt_rk->rk_conf.max_m\
* sg_size) ? (void)0 : __assert(__func__, "C:\\asgkafka\\librdkafka\\s\
* rc\\rdkafka_msgset_writer.c", 1392, "len <= (size_t)rktp->rktp_rkt->\
* rkt_rk->rk_conf.max_msg_size"));
LG 15,168(0,13) ; len
LG 1,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 1,328(0,1) ; offset of rkt_rk in rd_kafka_topic_s
LGF 1,756(0,1)
CLGR 15,1
BNH @L843
@L842 DS 0H
LG 15,@lit_1955_433
LA 15,788(0,15)
STG 15,432(0,13)
LG 15,@lit_1955_434
LA 1,556(0,15)
STG 1,440(0,13)
MVGHI 448(13),1392
LA 15,1652(0,15)
STG 15,456(0,13)
LA 1,432(0,13)
LG 15,@lit_1955_435 ; __assert
@@gen_label593 DS 0H
BALR 14,15
@@gen_label594 DS 0H
@L843 DS 0H
* ***
* *** rd_atomic64_add(&rktp->rktp_c.tx_msgs, cnt);
LA 15,1056(0,4)
STG 15,432(0,13)
LGFR 15,5
STG 15,440(0,13)
LA 1,432(0,13)
LG 7,@lit_1955_439 ; rd_atomic64_add
LGR 15,7
@@gen_label595 DS 0H
BALR 14,15
@@gen_label596 DS 0H
* *** rd_atomic64_add(&rktp->rktp_c.tx_msg_bytes, msetw->mse\
* tw_messages_kvlen);
LA 15,1104(0,4)
STG 15,432(0,13)
LG 15,40(0,2) ; offset of msetw_messages_kvlen in rd_kafka*
_msgset_writer_s
STG 15,440(0,13)
LA 1,432(0,13)
LGR 15,7
@@gen_label597 DS 0H
BALR 14,15
@@gen_label598 DS 0H
* ***
* ***
* ***
* ***
* ***
* *** msetw->msetw_rkbuf->rkbuf_u.Produce.batch.pid = msetw-\
* >msetw_pid;
LG 15,0(0,2) ; msetw
MVC 440(16,15),120(2)
* ***
* ***
* *** if (msetw->msetw_compression) {
LT 15,20(0,2) ; offset of msetw_compression in rd_kafka_ms*
gset_writer_s
BZ @L844
* *** if (rd_kafka_msgset_writer_compress(msetw, &le\
* n) == -1)
STG 2,432(0,13)
LA 15,168(0,13)
STG 15,440(0,13)
LA 1,432(0,13)
LG 15,@lit_1955_441 ; rd_kafka_msgset_writer_compress
@@gen_label600 DS 0H
BALR 14,15
@@gen_label601 DS 0H
CHI 15,-1
BNE @L844
* *** msetw->msetw_compression = 0;
MVHI 20(2),0 ; offset of msetw_compression in rd_kafka_ms*
gset_writer_s
@L845 DS 0H
* *** }
@L844 DS 0H
* ***
* *** msetw->msetw_messages_len = len;
LG 15,168(0,13) ; len
STG 15,32(0,2) ; offset of msetw_messages_len in rd_kafka_m*
sgset_writer_s
* ***
* ***
* *** rd_kafka_msgset_writer_finalize_MessageSet(msetw);
STG 2,432(0,13)
LA 1,432(0,13)
LG 15,@lit_1955_442 ; rd_kafka_msgset_writer_finalize_Messa*
geSet
@@gen_label603 DS 0H
BALR 14,15
@@gen_label604 DS 0H
* ***
* ***
* *** *MessageSetSizep = msetw->msetw_MessageSetSize;
LG 15,8(0,6) ; MessageSetSizep
LG 1,48(0,2) ; offset of msetw_MessageSetSize in rd_kafka*
_msgset_writer_s
STG 1,0(0,15) ; MessageSetSizep
* ***
* *** do { if ((((msetw->msetw_rkb)->rkb_rk->rk_conf.debug &\
* (0x40)))) { do { char _logname[256]; mtx_lock(&(msetw->msetw_rkb)->\
* rkb_logname_lock); rd_strlcpy(_logname, msetw->msetw_rkb->rkb_lognam\
* e, sizeof(_logname)); mtx_unlock(&(msetw->msetw_rkb)->rkb_logname_lo\
* ck); rd_kafka_log0(&(msetw->msetw_rkb)->rkb_rk->rk_conf, (msetw->mse\
* tw_rkb)->rkb_rk, _logname, 7, (0x40), "PRODUCE", "%s [%" "d" "]: " "\
* Produce MessageSet with %i message(s) (%" "zu" " bytes, " "ApiVersio\
* n %d, MsgVersion %d, MsgId %" "llu" ", " "BaseSeq %" "d" ", %s, %s)"\
* , rktp->rktp_rkt->rkt_topic->str, rktp->rktp_partition, cnt, msetw->\
* msetw_MessageSetSize, msetw->msetw_ApiVersion, msetw->msetw_MsgVersi\
* on, msetw->msetw_batch->first_msgid, msetw->msetw_batch->first_seq, \
* rd_kafka_pid2str(msetw->msetw_pid), msetw->msetw_compression ? rd_ka\
* fka_compression2str(msetw->msetw_compression) : "uncompressed"); } w\
* hile (0); } } while (0);
@L846 DS 0H
LG 15,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri*
ter_s
LG 15,4048(0,15) ; offset of rkb_rk in rd_kafka_broker_s
TM 803(15),64
BZ @L849
@L850 DS 0H
LG 15,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri*
ter_s
LGHI 6,5688 ; 5688
LA 15,0(6,15)
STG 15,432(0,13)
LA 1,432(0,13)
LG 15,@lit_1955_444 ; mtx_lock
@@gen_label606 DS 0H
BALR 14,15
@@gen_label607 DS 0H
LA 15,176(0,13)
STG 15,432(0,13)
LG 15,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri*
ter_s
LGHI 1,5680 ; 5680
LG 15,0(1,15)
STG 15,440(0,13)
MVGHI 448(13),256
LA 1,432(0,13)
LG 15,@lit_1955_446 ; rd_strlcpy
@@gen_label608 DS 0H
BALR 14,15
@@gen_label609 DS 0H
LG 15,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri*
ter_s
LA 15,0(6,15)
STG 15,432(0,13)
LA 1,432(0,13)
LG 15,@lit_1955_448 ; mtx_unlock
@@gen_label610 DS 0H
BALR 14,15
@@gen_label611 DS 0H
MVC 432(16,13),120(2)
LA 1,432(0,13)
LG 15,@lit_1955_449 ; rd_kafka_pid2str
@@gen_label612 DS 0H
BALR 14,15
@@gen_label613 DS 0H
LGR 6,15
LT 15,20(0,2) ; offset of msetw_compression in rd_kafka_ms*
gset_writer_s
BZ @L853
LGF 15,20(0,2)
STG 15,432(0,13)
LA 1,432(0,13)
LG 15,@lit_1955_450 ; rd_kafka_compression2str
@@gen_label615 DS 0H
BALR 14,15
@@gen_label616 DS 0H
B @L854
@L853 DS 0H
LG 15,@lit_1955_434
LA 15,1712(0,15)
@L854 DS 0H
LG 1,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri*
ter_s
LG 1,4048(0,1) ; offset of rkb_rk in rd_kafka_broker_s
LA 1,528(0,1)
STG 1,432(0,13)
LG 1,136(0,2) ; offset of msetw_rkb in rd_kafka_msgset_wri*
ter_s
LG 1,4048(0,1)
STG 1,440(0,13)
LA 1,176(0,13)
STG 1,448(0,13)
MVGHI 456(13),7
MVGHI 464(13),64
LG 1,@lit_1955_434
LA 7,450(0,1)
STG 7,472(0,13)
LA 1,1726(0,1)
STG 1,480(0,13)
LG 1,96(0,4) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 1,128(0,1) ; offset of rkt_topic in rd_kafka_topic_s
LG 1,8(0,1)
STG 1,488(0,13)
LGF 1,104(0,4)
STG 1,496(0,13)
LGFR 1,5
STG 1,504(0,13)
LG 1,48(0,2)
STG 1,512(0,13)
LH 1,8(0,2)
LGFR 1,1
STG 1,520(0,13)
LGF 1,12(0,2)
STG 1,528(0,13)
LG 1,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w*
riter_s
LG 1,64(0,1)
STG 1,536(0,13)
LG 1,96(0,2) ; offset of msetw_batch in rd_kafka_msgset_w*
riter_s
LGF 1,56(0,1)
STG 1,544(0,13)
STG 6,552(0,13)
STG 15,560(0,13)
LA 1,432(0,13)
LG 15,@lit_1955_453 ; rd_kafka_log0
@@gen_label617 DS 0H
BALR 14,15
@@gen_label618 DS 0H
@L849 DS 0H
* ***
* *** # 1432 "C:\asgkafka\librdkafka\src\rdkafka_msgset_writer.c"
* *** do { } while (0);
@L855 DS 0H
* ***
* ***
* *** rd_kafka_msgbatch_ready_produce(msetw->msetw_batch);
LG 15,96(0,2)
STG 15,432(0,13)
LA 1,432(0,13)
LG 15,@lit_1955_454 ; rd_kafka_msgbatch_ready_produce
@@gen_label619 DS 0H
BALR 14,15
@@gen_label620 DS 0H
* ***
* *** return rkbuf;
LGR 15,3
* *** }
@ret_lab_1955 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_msgset_writer_finalize"
* (FUNCTION #1955)
*
@AUTO#rd_kafka_msgset_writer_finalize DSECT
DS XL168
rd_kafka_msgset_writer_finalize#cnt#0 DS 1F ; cnt
ORG @AUTO#rd_kafka_msgset_writer_finalize+168
rd_kafka_msgset_writer_finalize#len#0 DS 8XL1 ; len
ORG @AUTO#rd_kafka_msgset_writer_finalize+176
rd_kafka_msgset_writer_finalize#_logname#6 DS 256XL1 ; _logname
*
@CODE CSECT
*
*
*
* ....... start of rd_kafka_msgset_create_ProduceRequest
rd_kafka_msgset_create_$Produce$Request ALIAS X'99846D92818692816D94A28*
7A285A36D83998581A3856DD7999684A48385D98598A485A2A3'
@LNAME1921 DS 0H
DC X'00000025'
DC C'rd_kafka_msgset_create_ProduceRe'
DC C'quest'
DC X'00'
rd_kafka_msgset_create_$Produce$Request DCCPRLG CINDEX=1921,BASER=12,FR*
AME=384,ENTRY=YES,ARCH=ZARCH,LNAMEADDR=@LNAME1921
LGR 2,1 ; ptr to parm area
* ******* End of Prologue
* *
* ***
* *** rd_kafka_msgset_writer_t msetw;
* ***
* *** if (rd_kafka_msgset_writer_init(&msetw, rkb, rktp, rkm\
* q,
* *** pid, epoch_base_msgid)\
* <= 0)
LA 15,168(0,13)
STG 15,328(0,13)
LG 15,0(0,2) ; rkb
STG 15,336(0,13)
LG 15,8(0,2) ; rktp
STG 15,344(0,13)
LG 15,16(0,2) ; rkmq
STG 15,352(0,13)
MVC 360(16,13),24(2)
LG 15,40(0,2) ; epoch_base_msgid
STG 15,376(0,13)
LA 1,328(0,13)
LG 15,@lit_1921_456 ; rd_kafka_msgset_writer_init
@@gen_label621 DS 0H
BALR 14,15
@@gen_label622 DS 0H
LTR 15,15
BH @L858
* *** return ((void *)0);
LGHI 15,0 ; 0
B @ret_lab_1921
DS 0D
@FRAMESIZE_1921 DC F'384'
@lit_1921_456 DC AD(rd_kafka_msgset_writer_init)
@lit_1921_458 DC AD(rd_kafka_msgset_writer_write_msgq)
@lit_1921_459 DC AD(rd_kafka_msgq_insert_msgq)
@lit_1921_460 DC AD(rd_kafka_msgset_writer_finalize)
@L858 DS 0H
* ***
* *** if (!rd_kafka_msgset_writer_write_msgq(&msetw, msetw.m\
* setw_msgq)) {
LA 15,168(0,13)
STG 15,328(0,13)
LG 15,320(0,13)
STG 15,336(0,13)
LA 1,328(0,13)
LG 15,@lit_1921_458 ; rd_kafka_msgset_writer_write_msgq
@@gen_label624 DS 0H
BALR 14,15
@@gen_label625 DS 0H
LTR 15,15
BNZ @L859
* ***
* ***
* *** rd_kafka_msgq_insert_msgq(
* *** rkmq, &msetw.msetw_batch->msgq,
* *** rktp->rktp_rkt->rkt_conf.msg_order_cmp\
* );
LG 15,16(0,2) ; rkmq
STG 15,328(0,13)
LG 15,264(0,13) ; offset of msetw_batch in rd_kafka_msgset_*
writer_s
LA 15,8(0,15)
STG 15,336(0,13)
LG 15,8(0,2) ; rktp
LG 15,96(0,15) ; offset of rktp_rkt in rd_kafka_toppar_s
LG 15,968(0,15)
STG 15,344(0,13)
LA 1,328(0,13)
LG 15,@lit_1921_459 ; rd_kafka_msgq_insert_msgq
@@gen_label627 DS 0H
BALR 14,15
@@gen_label628 DS 0H
* *** }
@L859 DS 0H
* ***
* *** return rd_kafka_msgset_writer_finalize(&msetw, Message\
* SetSizep);
LA 15,168(0,13)
STG 15,328(0,13)
LG 15,48(0,2) ; MessageSetSizep
STG 15,336(0,13)
LA 1,328(0,13)
LG 15,@lit_1921_460 ; rd_kafka_msgset_writer_finalize
@@gen_label629 DS 0H
BALR 14,15
@@gen_label630 DS 0H
* *** }
@ret_lab_1921 DS 0H
* * **** Start of Epilogue
DCCEPIL
* * **** End of Epilogue
DROP 12
*
* DSECT for automatic variables in "rd_kafka_msgset_create_ProduceRe
* quest"
* (FUNCTION #1921)
*
@AUTO#rd_kafka_msgset_create_$Produce$Request DSECT
DS XL168
rd_kafka_msgset_create_$Produce$Request#msetw#0 DS 160XL1 ; msetw
*
@CODE CSECT
@@STATIC ALIAS X'7C998492818692816D94A287A285A36DA69989A3859950'
@@STATIC DXD 219D
*
* Non-Re-Entrant Data Section
*
@DATA CSECT
@DATA RMODE ANY
@DATA AMODE ANY
@@T349 DC X'99846D838193939683' rd.calloc
DC 1X'00'
@@T34D DC X'99846D948193939683' rd.malloc
DC 1X'00'
@@T352 DC X'99846D99858193939683' rd.realloc
DC 2X'00'
@@T358 DC X'99846DA2A39984A497' rd.strdup
DC 1X'00'
@@T35D DC X'99846DA2A3999584A497' rd.strndup
DC 2X'00'
@@T365 DC X'99846D9985868395A36DA2A482F0' rd.refcnt.sub0
DC 4X'00'
@@T65A DC 4X'00'
DC X'0000001A000000000000002200000000' ................
DC X'00000024' ....
@@T67D DC X'99846D92818692816D94A287986D8485' rd.kafka.msgq.de
DC X'98' q
DC 1X'00'
@@T704 DC X'99846D92818692816D986D8485A2A399' rd.kafka.q.destr
DC X'96A8F0' oy0
DC 1X'00'
@@T785 DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc
DC X'856D8485A2A39996A8F0' e.destroy0
DC 2X'00'
@@T78D DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc
DC X'856D8485936DA296A4998385' e.del.source
DC 2X'00'
@@T794 DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc
DC X'856D8485936DA296A49983856D9985A3' e.del.source.ret
DC X'A49995' urn
DC 1X'00'
@@T79C DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc
DC X'856DA3998987878599' e.trigger
DC 1X'00'
@@T7A0 DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc
DC X'856D8485A2A39996A8' e.destroy
DC 1X'00'
@@T7A5 DC X'99846D92818692816D8595986D969583' rd.kafka.enq.onc
DC X'856D8489A281829385' e.disable
DC 1X'00'
@@T7C5 DC X'99846DA394978182A4866D8193939683' rd.tmpabuf.alloc
DC X'F0' 0
DC 1X'00'
@@T7F9 DC X'99846D92818692816D82A4866DA49784' rd.kafka.buf.upd
DC X'81A385' ate
DC 1X'00'
@@T81A DC X'99846D92818692816D82A4866D868995' rd.kafka.buf.fin
DC X'819389A9856D81999981A88395A3' alize.arraycnt
DC 2X'00'
@@T857 DC X'99846D92818692816D82A4866D839983' rd.kafka.buf.crc
DC X'6D899589A3' .init
DC 1X'00'
@@TA27 DC X'99846D92818692816D83A499996D94A2' rd.kafka.curr.ms
DC X'87A26DA2A482' gs.sub
DC 2X'00'
rd_kafka_$Produce$Request_max_version DC X'0007' ..
@@TA6F DC 24X'00'
DC X'00000080' ....
DC 20X'00'
@@TA77 DC X'99846D92818692816D94A287A285A36D' rd.kafka.msgset.
DC X'A69989A385996DA285938583A36DD4A2' writer.select.Ms
DC X'87E58599A2899695' gVersion
DC 2X'00'
@@TA7F DC X'99846D92818692816D94A287A285A36D' rd.kafka.msgset.
DC X'A69989A385996D81939396836D82A486' writer.alloc.buf
DC 2X'00'
@@TA87 DC X'99846D92818692816D94A287A285A36D' rd.kafka.msgset.
DC X'A69989A385996DA69989A3856DD485A2' writer.write.Mes
DC X'A2818785E285A36DA5F26D8885818485' sageSet.v2.heade
DC X'99' r
DC 1X'00'
@@TAD0 DC X'99846D92818692816D94A287A285A36D' rd.kafka.msgset.
DC X'A69989A385996DA69989A3856D94A287' writer.write.msg
DC 2X'00'
@@TADE DC X'99846D92818692816D94A287A285A36D' rd.kafka.msgset.
DC X'A69989A385996DA69989A3856D94A287' writer.write.msg
DC X'98' q
DC 1X'00'
@@TB03 DC X'99846D92818692816D94A287A285A36D' rd.kafka.msgset.
DC X'A69989A385996D839694979985A2A2' writer.compress
DC 1X'00'
@@TB0A DC X'99846D92818692816D94A287A285A36D' rd.kafka.msgset.
DC X'A69989A385996D838193836D8399836D' writer.calc.crc.
DC X'A5F2' v2
DC 2X'00'
@@TB0F DC X'99846D92818692816D94A287A285A36D' rd.kafka.msgset.
DC X'A69989A385996D868995819389A9856D' writer.finalize.
DC X'D485A2A2818785E285A36DA5F26D8885' MessageSet.v2.he
DC X'81848599' ader
DC 2X'00'
@@TB19 DC X'99846D92818692816D94A287A285A36D' rd.kafka.msgset.
DC X'A69989A385996D868995819389A985' writer.finalize
DC 1X'00'
@strings@ DS 0H
DC X'C37AE081A2879281869281E093898299' C..asgkafka.libr
DC X'849281869281E0A29983E099844B8800' dkafka.src.rd.h.
DC X'97009985868395A340A2A48260A98599' p.refcnt.sub.zer
DC X'96005A5C7F9985868395A340A2A48260' o....refcnt.sub.
DC X'A98599967F00D7C9C4C0C995A5819389' zero..PID.Invali
DC X'84D00000D7C9C4C0C9847A6C9393846B' d...PID.Id..lld.
DC X'C5979683887A6C8884D00000C37AE081' Epoch..hd...C..a
DC X'A2879281869281E09389829984928186' sgkafka.librdkaf
DC X'9281E0A29983E0998492818692816D94' ka.src.rdkafka.m
DC X'A2874B88000081A2A28599A37A409992' sg.h..assert..rk
DC X'9498606E999294986D94A2876D8395A3' mq..rkmq.msg.cnt
DC X'406E40F0000081A2A28599A37A409992' ...0..assert..rk
DC X'9498606E999294986D94A2876D82A8A3' mq..rkmq.msg.byt
DC X'85A2406E7E404D8995A3F6F46DA35D4D' es.....int64.t..
DC X'999294606E9992946D9385954E999294' rkm..rkm.len.rkm
DC X'606E9992946D9285A86D9385955D0000' ..rkm.key.len...
DC X'C37AE081A2879281869281E093898299' C..asgkafka.libr
DC X'849281869281E0A29983E09984928186' dkafka.src.rdkaf
DC X'92816D82A4864B88000081A2A28599A3' ka.buf.h..assert
DC X'7A405A4D999282A486606E999282A486' ....rkbuf..rkbuf
DC X'6D86938187A2405040D9C46DD2C1C6D2' .flags...RD.KAFK
DC X'C16DD6D76DC66DC3D9C35D0083968485' A.OP.F.CRC..code
DC X'83F0A76CA76F0000C3D6D4D7D9C5E2E2' c0x.x...COMPRESS
DC X'C9D6D5006C4B5CA240AD6C84BD7A40C2' ION....s...d...B
DC X'999692859940849685A2409596A340A2' roker.does.not.s
DC X'A497979699A340839694979985A2A289' upport.compressi
DC X'969540A3A89785406CA27A409596A340' on.type..s..not.
DC X'839694979985A2A2899587408281A383' compressing.batc
DC X'8800D7D9D6C4E4C3C5006C4B5CA240AD' h.PRODUCE....s..
DC X'6C84BD7A40D59640A5898182938540D7' .d...No.viable.P
DC X'999684A48385D98598A485A2A340C197' roduceRequest.Ap
DC X'89E58599A2899695A2404DA56C844B4B' iVersions..v.d..
DC X'6C845D40A2A497979699A385844082A8' .d..supported.by
DC X'408299969285997A40A4958182938540' .broker..unable.
DC X'A3964097999684A483850000C37AE081' to.produce..C..a
DC X'A2879281869281E09389829984928186' sgkafka.librdkaf
DC X'9281E0A29983E0998492818692816D94' ka.src.rdkafka.m
DC X'A287A285A36DA69989A385994B830000' sgset.writer.c..
DC X'9992940094A285A3A6606E94A285A3A6' rkm.msetw..msetw
DC X'6DC19789E58599A2899695406E7E4094' .ApiVersion....m
DC X'89956DC19789E58599A28996950081A2' in.ApiVersion.as
DC X'A28599A37A405A94A285A3A6606E94A2' sert...msetw..ms
DC X'85A3A66D999282A48600615C40D5D6E3' etw.rkbuf....NOT
DC X'D9C5C1C3C8C5C4405C6140A589969381' REACHED....viola
DC X'A38584005A5C7F615C40D5D6E3D9C5C1' ted.......NOTREA
DC X'C3C8C5C4405C6140A589969381A38584' CHED....violated
DC X'7F0081A2A28599A37A4094A285A3A660' ..assert..msetw.
DC X'6E94A285A3A66DC19789E58599A28996' .msetw.ApiVersio
DC X'95406E7E40F3000081A2A28599A37A40' n....3..assert..
DC X'94A285A3A6606E94A285A3A66DD4A287' msetw..msetw.Msg
DC X'E58599A2899695407E7E40F2000096A4' Version....2..ou
DC X'A3938595404C7E4099846D9281869281' tlen....rd.kafka
DC X'6D94A2876DA68999856DA289A9854D99' .msg.wire.size.r
DC X'92946B4094A285A3A6606E94A285A3A6' km..msetw..msetw
DC X'6DD4A287E58599A28996955D000096A4' .MsgVersion...ou
DC X'A3938595407E7E408183A3A481936DA6' tlen....actual.w
DC X'9989A3A38595000081A2A28599A37A40' ritten..assert..
DC X'999294006C4B5CA240AD6C84BD7A40D9' rkm....s...d...R
DC X'85839695A2A399A483A3858440D485A2' econstructed.Mes
DC X'A2818785E285A3404D6C84409485A2A2' sageSet...d.mess
DC X'8187854DA25D6B406CA9A44082A8A385' age.s....zu.byte
DC X'A26B40D4A287C984A2406C9393A44B4B' s..MsgIds..llu..
DC X'6C9393A45D006C4B5CA240AD6C84BD7A' .llu.....s...d..
DC X'40D596409496998540A2978183854089' .No.more.space.i
DC X'954083A499998595A340D485A2A28187' n.current.Messag
DC X'85E285A3404D6C89409485A2A2818785' eSet...i.message
DC X'4DA25D6B406CA9A44082A8A385A25D00' .s....zu.bytes..
DC X'9381A2A394A28700E4958182938540A3' lastmsg.Unable.t
DC X'96409985839695A2A399A483A340D485' o.reconstruct.Me
DC X'A2A2818785E285A3404D83A499998595' ssageSet..curren
DC X'A393A840A689A388406C84409485A2A2' tly.with..d.mess
DC X'8187854DA25D5D40A689A3884094A287' age.s...with.msg
DC X'8984409981958785406C9393A44B4B6C' id.range..llu...
DC X'9393A47A409381A2A3409485A2A28187' llu..last.messag
DC X'85408184848584408881A24094A28789' e.added.has.msgi
DC X'84406C9393A47A40A4958182938540A3' d..llu..unable.t
DC X'964087A481998195A3858540839695A2' o.guarantee.cons
DC X'89A2A3859583A800E2D5C1D7D7E80000' istency.SNAPPY..
DC X'C6818993858440A39640A295819797A8' Failed.to.snappy
DC X'60839694979985A2A2406CA9A44082A8' .compress..zu.by
DC X'A385A24086969940A396978983406C4B' tes.for.topic...
DC X'5CA240AD6C84BD7A406CA27A40A28595' .s...d....s..sen
DC X'8489958740A495839694979985A2A285' ding.uncompresse
DC X'840099846D82A4866D9385954D9982A4' d.rd.buf.len.rbu
DC X'865D406E7E4094A285A3A6606E94A285' f.....msetw..mse
DC X'A3A66D868999A2A394A2874B9686404E' tw.firstmsg.of..
DC X'4093859500008995A581938984408689' .len..invalid.fi
DC X'99A2A394A287409796A289A389969500' rstmsg.position.
DC X'99407E7E40F0404F4F405A5C7F8995A5' r....0.......inv
DC X'8193898440868999A2A394A287409796' alid.firstmsg.po
DC X'A289A38996957F009596A39985818388' sition..notreach
DC X'85847A40A495A2A497979699A3858440' ed..unsupported.
DC X'839694979985A2A28996954B83968485' compression.code
DC X'830081A2A28599A37A405A5C7F9596A3' c.assert.....not
DC X'998581838885847A40A495A2A4979796' reached..unsuppo
DC X'99A3858440839694979985A2A2899695' rted.compression
DC X'4B83968485837F0081A2A28599A37A40' .codec..assert..
DC X'838996A54B8996A56D938595404C40C9' ciov.iov.len...I
DC X'D5E3F3F26DD4C1E70000A2938983856D' NT32.MAX..slice.
DC X'899589A340868189938584005A994050' init.failed..r..
DC X'50405C7FA2938983856D899589A34086' ....slice.init.f
DC X'81899385847F000081A2A28599A37A40' ailed...assert..
DC X'94A2878395A3406E40F0000093859540' msgcnt...0..len.
DC X'6E40F000938595404C7E404DA289A985' ..0.len.....size
DC X'6DA35D9992A397606E9992A3976D9992' .t.rktp..rktp.rk
DC X'A3606E9992A36D9992606E99926D8396' t..rkt.rk..rk.co
DC X'95864B9481A76D94A2876DA289A98500' nf.max.msg.size.
DC X'A495839694979985A2A2858400006CA2' uncompressed...s
DC X'40AD6C84BD7A40D7999684A4838540D4' ...d...Produce.M
DC X'85A2A2818785E285A340A689A388406C' essageSet.with..
DC X'89409485A2A28187854DA25D404D6CA9' i.message.s....z
DC X'A44082A8A385A26B40C19789E58599A2' u.bytes..ApiVers
DC X'899695406C846B40D4A287E58599A289' ion..d..MsgVersi
DC X'9695406C846B40D4A287C984406C9393' on..d..MsgId..ll
DC X'A46B40C281A285E28598406C846B406C' u..BaseSeq..d...
DC X'A26B406CA25D0000D7999684A4838500' s...s...Produce.
DC X'C685A3838800D68686A285A30000D485' Fetch.Offset..Me
DC X'A3818481A3810000D38581848599C195' tadata..LeaderAn
DC X'84C9A2990000E2A39697D98597938983' dIsr..StopReplic
DC X'8100E4978481A385D485A3818481A381' a.UpdateMetadata
DC X'0000C39695A3999693938584E288A4A3' ..ControlledShut
DC X'8496A6950000D68686A285A3C3969494' down..OffsetComm
DC X'89A30000D68686A285A3C685A3838800' it..OffsetFetch.
DC X'C6899584C396969984899581A3969900' FindCoordinator.
DC X'D1968995C79996A49700C8858199A382' JoinGroup.Heartb
DC X'8581A300D38581A585C79996A4970000' eat.LeaveGroup..
DC X'E2A89583C79996A49700C485A2839989' SyncGroup.Descri
DC X'8285C79996A497A20000D389A2A3C799' beGroups..ListGr
DC X'96A497A20000E281A293C8819584A288' oups..SaslHandsh
DC X'81928500C19789E58599A28996950000' ake.ApiVersion..
DC X'C3998581A385E396978983A20000C485' CreateTopics..De
DC X'9385A385E396978983A20000C4859385' leteTopics..Dele
DC X'A385D98583969984A200C99589A3D799' teRecords.InitPr
DC X'9684A4838599C9840000D68686A285A3' oducerId..Offset
DC X'C69699D38581848599C5979683880000' ForLeaderEpoch..
DC X'C18484D78199A389A3899695A2E396E3' AddPartitionsToT
DC X'A7950000C18484D68686A285A3A2E396' xn..AddOffsetsTo
DC X'E3A79500C59584E3A7950000E69989A3' Txn.EndTxn..Writ
DC X'85E3A795D48199928599A200E3A795D6' eTxnMarkers.TxnO
DC X'8686A285A3C396949489A300C485A283' ffsetCommit.Desc
DC X'99898285C18393A20000C3998581A385' ribeAcls..Create
DC X'C18393A20000C4859385A385C18393A2' Acls..DeleteAcls
DC X'0000C485A28399898285C39695868987' ..DescribeConfig
DC X'A200C193A38599C39695868987A20000' s.AlterConfigs..
DC X'C193A38599D9859793898381D39687C4' AlterReplicaLogD
DC X'8999A200C485A28399898285D39687C4' irs.DescribeLogD
DC X'8999A200E281A293C1A4A3888595A389' irs.SaslAuthenti
DC X'8381A3850000C3998581A385D78199A3' cate..CreatePart
DC X'89A3899695A20000C3998581A385C485' itions..CreateDe
DC X'93858781A3899695E39692859500D985' legationToken.Re
DC X'9585A6C48593858781A3899695E39692' newDelegationTok
DC X'85950000C5A797899985C48593858781' en..ExpireDelega
DC X'A3899695E39692859500C485A2839989' tionToken.Descri
DC X'8285C48593858781A3899695E3969285' beDelegationToke
DC X'9500C4859385A385C79996A497A20000' n.DeleteGroups..
DC X'C5938583A3D38581848599A2D98598A4' ElectLeadersRequ
DC X'85A2A300C995839985948595A38193C1' est.IncrementalA
DC X'93A38599C39695868987A2D98598A485' lterConfigsReque
DC X'A2A30000C193A38599D78199A389A389' st..AlterPartiti
DC X'9695D98581A2A2898795948595A3A2D9' onReassignmentsR
DC X'8598A485A2A30000D389A2A3D78199A3' equest..ListPart
DC X'89A3899695D98581A2A2898795948595' itionReassignmen
DC X'A3A2D98598A485A2A300D68686A285A3' tsRequest.Offset
DC X'C4859385A385D98598A485A2A300C485' DeleteRequest.De
DC X'A28399898285C393898595A3D8A496A3' scribeClientQuot
DC X'81A2D98598A485A2A300C193A38599C3' asRequest.AlterC
DC X'93898595A3D8A496A381A2D98598A485' lientQuotasReque
DC X'A2A30000C485A28399898285E4A28599' st..DescribeUser
DC X'E283998194C39985848595A3898193A2' ScramCredentials
DC X'D98598A485A2A300C193A38599E4A285' Request.AlterUse
DC X'99E283998194C39985848595A3898193' rScramCredential
DC X'A2D98598A485A2A30000E596A385D985' sRequest..VoteRe
DC X'98A485A2A300C285878995D8A49699A4' quest.BeginQuoru
DC X'94C597968388D98598A485A2A300C595' mEpochRequest.En
DC X'84D8A49699A494C597968388D98598A4' dQuorumEpochRequ
DC X'85A2A300C485A28399898285D8A49699' est.DescribeQuor
DC X'A494D98598A485A2A300C193A38599C9' umRequest.AlterI
DC X'A299D98598A485A2A300E4978481A385' srRequest.Update
DC X'C68581A3A49985A2D98598A485A2A300' FeaturesRequest.
DC X'C595A58593969785D98598A485A2A300' EnvelopeRequest.
DC X'95969585000087A989970000A2958197' none..gzip..snap
DC X'97A8000093A9F400A9A2A38400008995' py..lz4.zstd..in
DC X'88859989A300839695868987A4998584' herit.configured
DC X'000093858199958584008995A3859995' ..learned.intern
DC X'819300009396878983819300C99589A3' al..logical.Init
DC X'0000E3859994899581A38500C681A381' ..Terminate.Fata
DC X'93C5999996990000D98598A485A2A3D7' lError..RequestP
DC X'C9C40000E68189A3E3998195A2979699' ID..WaitTranspor
DC X'A300E68189A3D7C9C400C1A2A2898795' t.WaitPID.Assign
DC X'85840000C499818995D985A285A30000' ed..DrainReset..
DC X'C499818995C2A4949700D9858184A8D5' DrainBump.ReadyN
DC X'96A3C18392858400D9858184A800C995' otAcked.Ready.In
DC X'E3998195A28183A389969500C2858789' Transaction.Begi
DC X'95C396949489A300C396949489A3A389' nCommit.Committi
DC X'9587E3998195A28183A389969500C396' ngTransaction.Co
DC X'949489A3D596A3C1839285840000C182' mmitNotAcked..Ab
DC X'9699A3899587E3998195A28183A38996' ortingTransactio
DC X'9500C1829699A38584D596A3C1839285' n.AbortedNotAcke
DC X'8400C1829699A381829385C599999699' d.AbortableError
DC X'0000' ..
@Ecrc_table ALIAS X'8399836DA381829385'
EXTRN @Ecrc_table
*
*
* Re-entrant Data Initialization Section
*
@@INIT@ ALIAS C'rdkafka_msgset_writer:'
@@INIT@ CSECT
@@INIT@ AMODE ANY
@@INIT@ RMODE ANY
DC XL1'5'
DC AL3(0)
DC AL4(288)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000001'
DC X'00000000'
DC X'000000FF'
DC X'0102039C09867F978D8E0B0C0D0E0F10' .....f.p........
DC X'1112139D8508871819928F1C1D1E1F80' ....e.g..k......
DC X'818283840A171B88898A8B8C05060790' abcd...hi.......
DC X'9116939495960498999A9B14159E1A20' j.lmno.qr.......
DC X'A0E2E4E0E1E3E5E7F1A22E3C282B7C26' .SU..TVX1s......
DC X'E9EAEBE8EDEEEFECDF21242A293B5E2D' Z..Y............
DC X'2FC2C4C0C1C3C5C7D1A62C255F3E3FF8' .BD.ACEGJw.....8
DC X'C9CACBC8CDCECFCC603A2340273D22D8' I..H...........Q
DC X'616263646566676869ABBBF0FDFEB1B0' ...........0....
DC X'6A6B6C6D6E6F707172AABAE6B8C6A4B5' ...........W.Fu.
DC X'7E737475767778797AA1BFD05BDEAEAC' ................
DC X'A3A5B7A9A7B6BCBDBEDDA8AF5DB4D77B' tv.zx.....y...P.
DC X'414243444546474849ADF4F6F2F3F57D' ..........46235.
DC X'4A4B4C4D4E4F505152B9FBFCF9FAFF5C' ............9...
DC X'F7535455565758595AB2D4D6D2D3D530' 7.........MOKLN.
DC X'313233343536373839B3DBDCD9DA9F40' ............R...
*
DC XL1'5'
DC AL3(0)
DC AL4(480)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000101'
DC X'00000000'
DC X'000000A0'
DC X'010203372D2E2F1605150B0C0D0E0F10' ................
DC X'1112133C3D322618193F271C1D1E1F40' ................
DC X'5A7F7B5B6C507D4D5D5C4E6B604B61F0' ...............0
DC X'F1F2F3F4F5F6F7F8F97A5E4C7E6E6F7C' 123456789.......
DC X'C1C2C3C4C5C6C7C8C9D1D2D3D4D5D6D7' ABCDEFGHIJKLMNOP
DC X'D8D9E2E3E4E5E6E7E8E9ADE0BD5F6D79' QRSTUVWXYZ......
DC X'81828384858687888991929394959697' abcdefghijklmnop
DC X'9899A2A3A4A5A6A7A8A9C04FD0A10720' qrstuvwxyz......
DC X'2122232425061728292A2B2C090A1B30' ................
DC X'311A333435360838393A3B04143EFF80' ................
*
DC XL1'5'
DC AL3(0)
DC AL4(520)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000001C0'
DC X'00000000'
DC X'00000001'
DC X'8A40404040404040' ........
*
DC XL1'5'
DC AL3(0)
DC AL4(560)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000001E0'
DC X'00000000'
DC X'00000001'
DC X'8B40404040404040' ........
*
DC XL1'D'
DC AL3(0)
DC AL4(600)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000220'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000A6C'
*
DC XL1'D'
DC AL3(0)
DC AL4(640)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000228'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000A74'
*
DC XL1'D'
DC AL3(0)
DC AL4(680)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000230'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000A7A'
*
DC XL1'D'
DC AL3(0)
DC AL4(720)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000238'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000A82'
*
DC XL1'D'
DC AL3(0)
DC AL4(760)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000240'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000A8C'
*
DC XL1'D'
DC AL3(0)
DC AL4(800)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000248'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000A9A'
*
DC XL1'D'
DC AL3(0)
DC AL4(840)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000250'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000AA6'
*
DC XL1'D'
DC AL3(0)
DC AL4(880)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000258'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000AB6'
*
DC XL1'D'
DC AL3(0)
DC AL4(920)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000260'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000ACA'
*
DC XL1'D'
DC AL3(0)
DC AL4(960)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000268'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000AD8'
*
DC XL1'D'
DC AL3(0)
DC AL4(1000)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000270'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000AE4'
*
DC XL1'D'
DC AL3(0)
DC AL4(1040)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000278'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000AF4'
*
DC XL1'D'
DC AL3(0)
DC AL4(1080)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000280'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000AFE'
*
DC XL1'D'
DC AL3(0)
DC AL4(1120)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000288'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000B08'
*
DC XL1'D'
DC AL3(0)
DC AL4(1160)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000290'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000B14'
*
DC XL1'D'
DC AL3(0)
DC AL4(1200)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000298'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000B1E'
*
DC XL1'D'
DC AL3(0)
DC AL4(1240)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002A0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000B2E'
*
DC XL1'D'
DC AL3(0)
DC AL4(1280)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002A8'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000B3A'
*
DC XL1'D'
DC AL3(0)
DC AL4(1320)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002B0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000B48'
*
DC XL1'D'
DC AL3(0)
DC AL4(1360)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002B8'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000B54'
*
DC XL1'D'
DC AL3(0)
DC AL4(1400)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002C0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000B62'
*
DC XL1'D'
DC AL3(0)
DC AL4(1440)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002C8'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000B70'
*
DC XL1'D'
DC AL3(0)
DC AL4(1480)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002D0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000B7E'
*
DC XL1'D'
DC AL3(0)
DC AL4(1520)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002D8'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000B8E'
*
DC XL1'D'
DC AL3(0)
DC AL4(1560)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002E0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000BA4'
*
DC XL1'D'
DC AL3(0)
DC AL4(1600)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002E8'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000BB8'
*
DC XL1'D'
DC AL3(0)
DC AL4(1640)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002F0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000BC8'
*
DC XL1'D'
DC AL3(0)
DC AL4(1680)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000002F8'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000BD0'
*
DC XL1'D'
DC AL3(0)
DC AL4(1720)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000300'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000BE0'
*
DC XL1'D'
DC AL3(0)
DC AL4(1760)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000308'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000BF0'
*
DC XL1'D'
DC AL3(0)
DC AL4(1800)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000310'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000BFE'
*
DC XL1'D'
DC AL3(0)
DC AL4(1840)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000318'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000C0A'
*
DC XL1'D'
DC AL3(0)
DC AL4(1880)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000320'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000C16'
*
DC XL1'D'
DC AL3(0)
DC AL4(1920)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000328'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000C26'
*
DC XL1'D'
DC AL3(0)
DC AL4(1960)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000330'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000C34'
*
DC XL1'D'
DC AL3(0)
DC AL4(2000)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000338'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000C48'
*
DC XL1'D'
DC AL3(0)
DC AL4(2040)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000340'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000C58'
*
DC XL1'D'
DC AL3(0)
DC AL4(2080)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000348'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000C6A'
*
DC XL1'D'
DC AL3(0)
DC AL4(2120)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000350'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000C7C'
*
DC XL1'D'
DC AL3(0)
DC AL4(2160)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000358'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000C92'
*
DC XL1'D'
DC AL3(0)
DC AL4(2200)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000360'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000CA8'
*
DC XL1'D'
DC AL3(0)
DC AL4(2240)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000368'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000CBE'
*
DC XL1'D'
DC AL3(0)
DC AL4(2280)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000370'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000CD6'
*
DC XL1'D'
DC AL3(0)
DC AL4(2320)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000378'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000CE4'
*
DC XL1'D'
DC AL3(0)
DC AL4(2360)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000380'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000CF8'
*
DC XL1'D'
DC AL3(0)
DC AL4(2400)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000388'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000D18'
*
DC XL1'D'
DC AL3(0)
DC AL4(2440)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000390'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000D3C'
*
DC XL1'D'
DC AL3(0)
DC AL4(2480)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000398'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000D5E'
*
DC XL1'D'
DC AL3(0)
DC AL4(2520)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000003A0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000D72'
*
DC XL1'D'
DC AL3(0)
DC AL4(2560)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000003A8'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000D8E'
*
DC XL1'D'
DC AL3(0)
DC AL4(2600)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000003B0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000DA8'
*
DC XL1'D'
DC AL3(0)
DC AL4(2640)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000003B8'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000DCC'
*
DC XL1'D'
DC AL3(0)
DC AL4(2680)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000003C0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000DEE'
*
DC XL1'D'
DC AL3(0)
DC AL4(2720)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000003C8'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000DFA'
*
DC XL1'D'
DC AL3(0)
DC AL4(2760)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000003D0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000E12'
*
DC XL1'D'
DC AL3(0)
DC AL4(2800)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000003D8'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000E28'
*
DC XL1'D'
DC AL3(0)
DC AL4(2840)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000003E0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000E3E'
*
DC XL1'D'
DC AL3(0)
DC AL4(2880)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000003E8'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000E4E'
*
DC XL1'D'
DC AL3(0)
DC AL4(2920)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000003F0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000E64'
*
DC XL1'D'
DC AL3(0)
DC AL4(2960)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000004C0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000E74'
*
DC XL1'D'
DC AL3(0)
DC AL4(3000)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000004C8'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000E7A'
*
DC XL1'D'
DC AL3(0)
DC AL4(3040)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000004D0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000E80'
*
DC XL1'D'
DC AL3(0)
DC AL4(3080)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000004D8'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000E88'
*
DC XL1'D'
DC AL3(0)
DC AL4(3120)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000004E0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000E8C'
*
DC XL1'D'
DC AL3(0)
DC AL4(3160)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000004E8'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000E92'
*
DC XL1'D'
DC AL3(0)
DC AL4(3200)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000510'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000E9A'
*
DC XL1'D'
DC AL3(0)
DC AL4(3240)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000518'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000EA6'
*
DC XL1'D'
DC AL3(0)
DC AL4(3280)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000520'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000EAE'
*
DC XL1'D'
DC AL3(0)
DC AL4(3320)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000528'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000EB8'
*
DC XL1'D'
DC AL3(0)
DC AL4(3360)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000630'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000EC0'
*
DC XL1'D'
DC AL3(0)
DC AL4(3400)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000638'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000EC6'
*
DC XL1'D'
DC AL3(0)
DC AL4(3440)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000640'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000ED0'
*
DC XL1'D'
DC AL3(0)
DC AL4(3480)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000648'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000EDC'
*
DC XL1'D'
DC AL3(0)
DC AL4(3520)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000650'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000EE8'
*
DC XL1'D'
DC AL3(0)
DC AL4(3560)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000658'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000EF6'
*
DC XL1'D'
DC AL3(0)
DC AL4(3600)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000660'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000EFE'
*
DC XL1'D'
DC AL3(0)
DC AL4(3640)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000668'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000F08'
*
DC XL1'D'
DC AL3(0)
DC AL4(3680)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000670'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000F14'
*
DC XL1'D'
DC AL3(0)
DC AL4(3720)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000678'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000EC0'
*
DC XL1'D'
DC AL3(0)
DC AL4(3760)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000680'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000EF6'
*
DC XL1'D'
DC AL3(0)
DC AL4(3800)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000688'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000F1E'
*
DC XL1'D'
DC AL3(0)
DC AL4(3840)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000690'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000F2C'
*
DC XL1'D'
DC AL3(0)
DC AL4(3880)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'00000698'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000F32'
*
DC XL1'D'
DC AL3(0)
DC AL4(3920)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000006A0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000F40'
*
DC XL1'D'
DC AL3(0)
DC AL4(3960)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000006A8'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000F4C'
*
DC XL1'D'
DC AL3(0)
DC AL4(4000)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000006B0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000F62'
*
DC XL1'D'
DC AL3(0)
DC AL4(4040)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000006B8'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000F72'
*
DC XL1'D'
DC AL3(0)
DC AL4(4080)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000006C0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000F86'
*
DC XL1'D'
DC AL3(0)
DC AL4(4120)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000006C8'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000F96'
*
DC XL1'D'
DC AL3(0)
DC AL4(0)
DC 4X'00'
DC Q(@@STATIC)
DC X'00000000'
DC X'000006D0'
DC ADL8(@DATA)
DC X'00000000'
DC X'00000ED0'
*
EXTRN @@ALLOCA
END
| 30.774113 | 72 | 0.503487 |
2a371343fce643fc33830047732c228ac3eb93a7 | 2,563 | asm | Assembly | cs150/hw6/morse.asm | jonjon33/college | f9cecdcdc1c05038a36d0cb0481ffb6e7001ff7c | [
"MIT"
] | null | null | null | cs150/hw6/morse.asm | jonjon33/college | f9cecdcdc1c05038a36d0cb0481ffb6e7001ff7c | [
"MIT"
] | null | null | null | cs150/hw6/morse.asm | jonjon33/college | f9cecdcdc1c05038a36d0cb0481ffb6e7001ff7c | [
"MIT"
] | null | null | null | ;
; cs150hw6.asm
;
; Created: 11/1/2015 9:06:46 PM
; Author : Jonathan
;
init:
ldi r16, 0x00 ; Zero Reg
ldi r17, 0x20 ; LED Port Mask
ldi r18, 0x00 ; Timer Flag Reg Holder
ldi r19, 0x02 ; Timer Flag Reset Mask
ldi r20, 0x3d ; Hi time comp val (for 1s) 1s->0x3d test~>0x25
ldi r21, 0x09 ; Lo time comp val (for 1s) 1s->0x09 test~>0x00
ldi r22, 0x05 ; tccr1b val (prescaler to 1024)
ldi r30, 0x00 ; GP Counter
sts 0x0024, r17 ; store port mask at ddr
sts 0x0089, r20 ; store hi time comp val
sts 0x0088, r21 ; store lo time comp val
sts 0x0080, r16 ; tccr1a
sts 0x0081, r22 ; tccr1b set prescalar
sts 0x0082, r16 ; tccr1c
sts 0x0025, r16 ; PORTB all off (turns off LED)
call wait1
main:
call outH
call outA
call outN
call outS
call out3
call out7
call endPhrase
rjmp main
outH:
call dit
call dit
call dit
call dit
call endChar
ret
outA:
call dit
call doo
call endChar
ret
outN:
call doo
call dit
call endChar
ret
outS:
call dit
call dit
call dit
call endChar
ret
out3:
call dit
call dit
call dit
call doo
call doo
call endChar
ret
out7:
call doo
call doo
call dit
call dit
call dit
call endChar
ret
endPhrase: ; Wait 4 more units (endDit/Doo+endchar+4=7)
eor r30, r30
lendPhrase:
call wait1
inc r30
cpi r30, 0x04
brbc 1, lendPhrase
ret
endChar: ; wait two more units (for letter gap)
eor r30, r30
lendChar:
call wait1
inc r30
cpi r30, 0x02
brbc 1, lendChar
ret
dit: ; on one unit, off one unit
sts 0x0025, r17 ; PORTB bit 5 ON
call wait1
sts 0x0025, r16 ; PORTB all OFF
call wait1
ret
doo: ; on three units, off one unit
sts 0x0025, r17 ; PORTB bit 5 ON
eor r30, r30 ; zero the counter
ldoo:
call wait1 ; wait 1s
inc r30 ; count that second
cpi r30, 0x03 ; see if we've counted 3 seconds
brbc 1, ldoo ; loop if SREG Z is 0 (compare did not return 0)
sts 0x0025, r10 ; PORTB bit 5 OFF
call wait1
ret
wait1:
sts 0x0036, r19 ; Reset Timer Flag
sts 0x0085, r16 ; Timer16H Zero
sts 0x0084, r16 ; Timer16L Zero
lwait1:
lds r18, 0x0036 ; Load Timer Flag to r18
andi r18, 0x02 ; Mask r18 to just Timer16's flag bit
cpi r18, 0x02 ; Compare with Timer16's flag bit
brbc 1, lwait1 ; Loop if cpi didn't match
ret
| 19.564885 | 69 | 0.600858 |
82c38ad5c2e79049423d86debd45b3dd65ce69e5 | 542 | asm | Assembly | programs/oeis/195/A195170.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/195/A195170.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/195/A195170.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A195170: a(n) = 4*n - floor(n*r), where r=(1+sqrt(5))/2 (the golden ratio).
; 0,3,5,8,10,12,15,17,20,22,24,27,29,31,34,36,39,41,43,46,48,51,53,55,58,60,62,65,67,70,72,74,77,79,81,84,86,89,91,93,96,98,101,103,105,108,110,112,115,117,120,122,124,127,129,132,134,136,139,141,143,146,148,151,153,155,158,160,162,165,167,170,172,174,177,179,182,184,186,189,191,193,196,198,201,203,205,208,210,212,215,217,220,222,224,227,229,232,234,236
mov $1,$0
seq $1,195121 ; a(n) = 2*n - floor(n/r), where r = (1 + sqrt(5))/2 (the golden ratio).
add $0,$1
| 77.428571 | 355 | 0.658672 |
16fb205839f4facd0220a0fb827b78ce6fc5710b | 2,782 | asm | Assembly | source/unary/caseconv.asm | paulscottrobson/Basic65816 | 167c25b1bbc2680f55acdf4bff771750acfe907c | [
"MIT"
] | null | null | null | source/unary/caseconv.asm | paulscottrobson/Basic65816 | 167c25b1bbc2680f55acdf4bff771750acfe907c | [
"MIT"
] | 4 | 2019-06-18T14:45:35.000Z | 2019-06-22T17:18:22.000Z | source/unary/caseconv.asm | paulscottrobson/Basic65816 | 167c25b1bbc2680f55acdf4bff771750acfe907c | [
"MIT"
] | 1 | 2021-03-18T04:31:44.000Z | 2021-03-18T04:31:44.000Z | ; *******************************************************************************************
; *******************************************************************************************
;
; Name : caseconv.asm
; Purpose : Case Conversion
; Date : 14th July 2019
; Author : paul@robsons.org.uk
;
; *******************************************************************************************
; *******************************************************************************************
; *******************************************************************************************
;
; Upper$(<string>)
;
; *******************************************************************************************
Function_UPPER: ;; upper$(
jsr ResetTypeString ; returns a string.
jsr EvaluateNextString ; evaluate a string.
pha
jsr ExpectRightBracket ; close call.
jsr StringTempAllocate ; allocate memory for it
pla
jsr StringCreateCopy ; create a copy of it.
;
lda DStartTempString ; A = start of temporary string.
sta EXSValueL+0,x
tay ; address in Y
stz EXSValueH+0,x
;
phx ; save X
lda (DStartTempString) ; get string length
and #$00FF
beq _FUPExit
tax ; put in X
_FUPLoop:
iny ; increment and load character
lda $0000,y
and #$00FF
cmp #"a" ; check range
bcc _FUPNoChange
cmp #"z"+1
bcs _FUPNoChange
sec ; shift case
sbc #32
sep #$20 ; write back
sta $0000,y
rep #$20
_FUPNoChange:
dex ; do X times
bne _FUPLoop
_FUPExit:
plx ; restore X
rts
; *******************************************************************************************
;
; Lower$(<string>)
;
; *******************************************************************************************
Function_LOWER: ;; lower$(
jsr ResetTypeString ; returns a string.
jsr EvaluateNextString ; evaluate a string.
pha
jsr ExpectRightBracket ; close call.
jsr StringTempAllocate ; allocate memory for it
pla
;
jsr StringCreateCopy ; create a copy of it.
lda DStartTempString ; A = start of temporary string.
sta EXSValueL+0,x
tay ; address in Y
stz EXSValueH+0,x
;
phx ; save X
lda (DStartTempString) ; get string length
and #$00FF
beq _FLOExit
tax ; put in X
_FLOLoop:
iny ; increment and load character
lda $0000,y
and #$00FF
cmp #"A" ; check range
bcc _FLONoChange
cmp #"Z"+1
bcs _FLONoChange
clc ; shift case
adc #32
sep #$20 ; write back
sta $0000,y
rep #$20
_FLONoChange:
dex ; do X times
bne _FLOLoop
_FLOExit:
plx ; restore X
rts
| 27.544554 | 93 | 0.429188 |
210aeb1862326b243408543fa57e251e6abb504e | 4,791 | asm | Assembly | src/opcodes/arithmetic.asm | moitias/sointu | 7e3dc19c83b8518f01cd384fef213ade7116d2e3 | [
"MIT"
] | null | null | null | src/opcodes/arithmetic.asm | moitias/sointu | 7e3dc19c83b8518f01cd384fef213ade7116d2e3 | [
"MIT"
] | null | null | null | src/opcodes/arithmetic.asm | moitias/sointu | 7e3dc19c83b8518f01cd384fef213ade7116d2e3 | [
"MIT"
] | null | null | null | SECT_TEXT(suarithm)
;-------------------------------------------------------------------------------
; POP opcode: remove (discard) the topmost signal from the stack
;-------------------------------------------------------------------------------
; Mono: a -> (empty)
; Stereo: a b -> (empty)
;-------------------------------------------------------------------------------
%if POP_ID > -1
EXPORT MANGLE_FUNC(su_op_pop,0)
%ifdef INCLUDE_STEREO_POP
jnc su_op_pop_mono
fstp st0
su_op_pop_mono:
%endif
fstp st0
ret
%endif
;-------------------------------------------------------------------------------
; ADD opcode: add the two top most signals on the stack
;-------------------------------------------------------------------------------
; Mono: a b -> a+b b
; Stereo: a b c d -> a+c b+d c d
;-------------------------------------------------------------------------------
%if ADD_ID > -1
EXPORT MANGLE_FUNC(su_op_add,0)
%ifdef INCLUDE_STEREO_ADD
jnc su_op_add_mono
fadd st0, st2
fxch
fadd st0, st3
fxch
ret
su_op_add_mono:
%endif
fadd st1
ret
%endif
;-------------------------------------------------------------------------------
; ADDP opcode: add the two top most signals on the stack and pop
;-------------------------------------------------------------------------------
; Mono: a b -> a+b
; Stereo: a b c d -> a+c b+d
;-------------------------------------------------------------------------------
%if ADDP_ID > -1
EXPORT MANGLE_FUNC(su_op_addp,0)
%ifdef INCLUDE_STEREO_ADDP
jnc su_op_addp_mono
faddp st2, st0
faddp st2, st0
ret
su_op_addp_mono:
%endif
faddp st1, st0
ret
%endif
;-------------------------------------------------------------------------------
; LOADNOTE opcode: load the current note, scaled to [-1,1]
;-------------------------------------------------------------------------------
; Mono: (empty) -> n, where n is the note
; Stereo: (empty) -> n n
;-------------------------------------------------------------------------------
%if LOADNOTE_ID > -1
EXPORT MANGLE_FUNC(su_op_loadnote,0)
%ifdef INCLUDE_STEREO_LOADNOTE
jnc su_op_loadnote_mono
call su_op_loadnote_mono
su_op_loadnote_mono:
%endif
fild dword [INP-su_voice.inputs+su_voice.note]
do fmul dword [,c_i128,]
do fsub dword [,c_0_5,] ; s-.5
fadd st0, st0 ; 2*s-1
ret
%endif
;-------------------------------------------------------------------------------
; MUL opcode: multiply the two top most signals on the stack
;-------------------------------------------------------------------------------
; Mono: a b -> a*b a
; Stereo: a b c d -> a*c b*d c d
;-------------------------------------------------------------------------------
%if MUL_ID > -1
EXPORT MANGLE_FUNC(su_op_mul,0)
%ifdef INCLUDE_STEREO_MUL
jnc su_op_mul_mono
fmul st0, st2
fxch
fadd st0, st3
fxch
ret
su_op_mul_mono:
%endif
fmul st1
ret
%endif
;-------------------------------------------------------------------------------
; MULP opcode: multiply the two top most signals on the stack and pop
;-------------------------------------------------------------------------------
; Mono: a b -> a*b
; Stereo: a b c d -> a*c b*d
;-------------------------------------------------------------------------------
%if MULP_ID > -1
EXPORT MANGLE_FUNC(su_op_mulp,0)
%ifdef INCLUDE_STEREO_MULP
jnc su_op_mulp_mono
fmulp st2, st0
fmulp st2, st0
ret
su_op_mulp_mono:
%endif
fmulp st1
ret
%endif
;-------------------------------------------------------------------------------
; PUSH opcode: push the topmost signal on the stack
;-------------------------------------------------------------------------------
; Mono: a -> a a
; Stereo: a b -> a b a b
;-------------------------------------------------------------------------------
%if PUSH_ID > -1
EXPORT MANGLE_FUNC(su_op_push,0)
%ifdef INCLUDE_STEREO_PUSH
jnc su_op_push_mono
fld st1
fld st1
ret
su_op_push_mono:
%endif
fld st0
ret
%endif
;-------------------------------------------------------------------------------
; XCH opcode: exchange the signals on the stack
;-------------------------------------------------------------------------------
; Mono: a b -> b a
; stereo: a b c d -> c d a b
;-------------------------------------------------------------------------------
%if XCH_ID > -1
EXPORT MANGLE_FUNC(su_op_xch,0)
%ifdef INCLUDE_STEREO_XCH
jnc su_op_xch_mono
fxch st0, st2 ; c b a d
fxch st0, st1 ; b c a d
fxch st0, st3 ; d c a b
su_op_xch_mono:
%endif
fxch st0, st1
ret
%endif
| 27.534483 | 80 | 0.371321 |
9c319b91f48e3f3aa2aee33b17822fe9997ed941 | 1,037 | asm | Assembly | programs/oeis/051/A051002.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/051/A051002.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/051/A051002.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A051002: Sum of 5th powers of odd divisors of n.
; 1,1,244,1,3126,244,16808,1,59293,3126,161052,244,371294,16808,762744,1,1419858,59293,2476100,3126,4101152,161052,6436344,244,9768751,371294,14408200,16808,20511150,762744,28629152,1,39296688,1419858,52541808,59293,69343958,2476100,90595736,3126,115856202,4101152,147008444,161052,185349918,6436344,229345008,244,282492057,9768751,346445352,371294,418195494,14408200,503448552,16808,604168400,20511150,714924300,762744,844596302,28629152,996596744,1,1160665044,39296688,1350125108,1419858,1570467936,52541808,1804229352,59293,2073071594,69343958,2383575244,2476100,2706962016,90595736,3077056400,3126,3501192601,115856202,3939040644,4101152,4438476108,147008444,5004720600,161052,5584059450,185349918,6240709552,6436344,6985513088,229345008,7740288600,244,8587340258,282492057,9549256236,9768751
add $0,1
mov $2,$0
lpb $0
dif $2,2
mov $3,$2
mov $4,$0
cmp $4,0
add $0,$4
dif $3,$0
cmp $3,$2
cmp $3,0
mul $3,$0
sub $0,1
pow $3,5
add $1,$3
lpe
add $1,1
mov $0,$1
| 47.136364 | 796 | 0.789778 |
2d9391acfe593ac7bde7fa590fc96ba6cba79b17 | 6,455 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1800.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1800.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xa0.log_21829_1800.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 %r8
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x5dc3, %rsi
lea addresses_D_ht+0x6bbf, %rdi
nop
xor $49684, %r8
mov $118, %rcx
rep movsb
nop
nop
nop
xor $32078, %rax
lea addresses_WC_ht+0x1cac3, %r14
clflush (%r14)
nop
nop
and $18024, %r13
mov (%r14), %r8
nop
nop
nop
nop
nop
add %rax, %rax
lea addresses_WT_ht+0x1bdc3, %rax
clflush (%rax)
nop
nop
nop
nop
and %r14, %r14
mov (%rax), %cx
xor $18397, %r13
lea addresses_D_ht+0x7523, %rsi
lea addresses_WC_ht+0x87c3, %rdi
nop
nop
nop
nop
nop
xor $42106, %r13
mov $53, %rcx
rep movsl
nop
nop
nop
nop
sub %r13, %r13
lea addresses_normal_ht+0x63c3, %r8
nop
xor %r14, %r14
mov (%r8), %edi
nop
nop
and %rdi, %rdi
lea addresses_normal_ht+0x1efc3, %rax
nop
nop
nop
nop
nop
xor %r13, %r13
mov $0x6162636465666768, %rdi
movq %rdi, %xmm5
movups %xmm5, (%rax)
nop
nop
nop
nop
cmp $3615, %r8
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r14
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r15
push %r8
push %rax
push %rbp
push %rbx
// Store
lea addresses_RW+0x14e43, %r12
nop
nop
nop
xor %rbx, %rbx
movb $0x51, (%r12)
nop
nop
nop
nop
xor %rbx, %rbx
// Load
lea addresses_A+0x17207, %rbx
nop
nop
nop
nop
nop
cmp $38905, %rbp
movb (%rbx), %r13b
sub $26862, %r8
// Store
lea addresses_D+0x1b643, %rbp
nop
xor $64845, %r13
mov $0x5152535455565758, %r12
movq %r12, %xmm4
movups %xmm4, (%rbp)
nop
nop
nop
nop
nop
and %r13, %r13
// Store
lea addresses_US+0x1543, %rax
nop
nop
nop
nop
nop
dec %r8
movl $0x51525354, (%rax)
nop
add $34401, %rbx
// Faulty Load
lea addresses_RW+0x1cfc3, %rbp
nop
nop
nop
nop
nop
sub $12922, %r13
mov (%rbp), %r15d
lea oracles, %rbx
and $0xff, %r15
shlq $12, %r15
mov (%rbx,%r15,1), %r15
pop %rbx
pop %rbp
pop %rax
pop %r8
pop %r15
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_RW', 'AVXalign': False, 'size': 1}}
{'src': {'NT': False, 'same': False, 'congruent': 2, 'type': 'addresses_A', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_D', 'AVXalign': False, 'size': 16}}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_US', 'AVXalign': False, 'size': 4}}
[Faulty Load]
{'src': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_RW', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_D_ht'}}
{'src': {'NT': False, 'same': False, 'congruent': 7, 'type': 'addresses_WC_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'}
{'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 2}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 5, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}}
{'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 16}}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
| 34.153439 | 2,999 | 0.655771 |
f5122f9618d3ba99795dd140c452431679d58474 | 35,275 | asm | Assembly | LCDDemo.asm | igormiktor/ASM_Playground | 696df50a3c1708e11540945fae05fc4b8939dd07 | [
"MIT"
] | null | null | null | LCDDemo.asm | igormiktor/ASM_Playground | 696df50a3c1708e11540945fae05fc4b8939dd07 | [
"MIT"
] | null | null | null | LCDDemo.asm | igormiktor/ASM_Playground | 696df50a3c1708e11540945fae05fc4b8939dd07 | [
"MIT"
] | null | null | null | ; ***********************************************************************************
;
; Operate an LCD
; Display a greeting message on an LCD and maintain a 1-second counter display.
;
; The MIT License (MIT)
;
; Copyright (c) 2020 Igor Mikolic-Torreira
;
; 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.
;
; ***********************************************************************************
.device "ATmega328p"
; ***************************************
; P I N - O U T
; ***************************************
;
; Package = 28-pin-PDIP
; 1: Reset
; 2: PD0 PCINT16 RXD0
; 3: PD1 TXD0 PCINT17
; 4: PD2 INT0 PCINT18
; 5: PD3 INT1 OC2B PCINT19
; 6: PD4 T0 XCK0 PCINT20
; 7: Vcc
; 8: Gnd
; 9: PB6 TOSC1 XTAL1 PCINT6
; 10: PB7 TOSC2 XTAL2 PCINT7
; 11: PD5 T1 OC0B PCINT21
; 12: PD6 AIN0 OC0A PCINT22
; 13: PD7 AIN1 PCINT23
; 14: PB0 ICP1 CLKO PCINT0
; 15: PB1 OC1A PCINT1
; 16: PB2 /SS OC1B PCINT2
; 17: PB3 MOSI OC2A PCINT3
; 18: PB4 MISO PCINT4
; 19: PB5 USCK PCINT5
; 20: AVCC
; 21: AREF
; 22: Gnd
; 23: PC0 ADC0 PCINT8
; 24: PC1 ADC1 PCINT9
; 25: PC2 ADC2 PCINT10
; 26: PC3 ADC3 PCINT11
; 27: PC4 ADC4 SDA PCINT12
; 28: PC5 ADC5 SCL PCINT13;
; **********************************
; P O R T S A N D P I N S
; **********************************
; Green LED pin
.equ pGreenLedDirD = DDRB
.equ pGreenLedDirDBit = DDB1
.equ pGreenLedPort = PORTB
.equ pGreenLedPortBit = PORTB1
.equ pGreenLedPin = PINB
.equ pGreenLedPinBit = PINB1
; Red LED pin
.equ pRedLedDirD = DDRB
.equ pRedLedDirDBit = DDB0
.equ pRedLedPort = PORTB
.equ pRedLedPortBit = PORTB0
.equ pRedLedPin = PINB
.equ pRedLedPinBit = PINB0
; LCD enable pin
.equ pLcdEnableDirD = DDRD
.equ pLcdEnableDirDBit = DDD2
.equ pLcdEnablePort = PORTD
.equ pLcdEnablePortBit = PORTD2
; LCD data (register) select pin
.equ pLcdDataSelectDirD = DDRD
.equ pLcdDataSelectDirDBit = DDD3
.equ pLcdDataSelectPort = PORTD
.equ pLcdDataSelectPortBit = PORTD3
; LCD data 7 pin
.equ pLcdD7DirD = DDRC
.equ pLcdD7DirDBit = DDC3
.equ pLcdD7Port = PORTC
.equ pLcdD7PortBit = PORTC3
; LCD data 6 pin
.equ pLcdD6DirD = DDRC
.equ pLcdD6DirDBit = DDC2
.equ pLcdD6Port = PORTC
.equ pLcdD6PortBit = PORTC2
; LCD data 5 pin
.equ pLcdD5DirD = DDRC
.equ pLcdD5DirDBit = DDC1
.equ pLcdD5Port = PORTC
.equ pLcdD5PortBit = PORTC1
; LCD data 4 pin
.equ pLcdD4DirD = DDRC
.equ pLcdD4DirDBit = DDC0
.equ pLcdD4Port = PORTC
.equ pLcdD4PortBit = PORTC0
; **********************************
; C O N S T A N T S
; **********************************
; Message and display related lengths
.equ kDisplayMsgLen = 16
.equ kDecimalDigitsLen = 5
.equ kHexPrefixLen = 2
.equ kHexDigitsLen = 4
.equ kHexStrLen = kHexPrefixLen + kHexDigitsLen
; LCD commands
.equ kLcdClearDisplay = 0x01
.equ kLcdReturnHome = 0x02
.equ kLcdEntryModeSet = 0x04
.equ kLcdDisplayControl = 0x08
.equ kLcdCursorShift = 0x10
.equ kLcdFunctionSet = 0x20
.equ kLcdSetCgramAddr = 0x40
.equ kLcdSetDdramAddr = 0x80
; LCD flags for display entry mode
.equ kLcdEntryRight = 0x00
.equ kLcdEntryLeft = 0x02
.equ kLcdEntryShiftIncrement = 0x01
.equ kLcdEntryShiftDecrement = 0x00
; LCD flags for display on/off control
.equ kLcdDisplayOn = 0x04
.equ kLcdDisplayOff = 0x00
.equ kLcdCursorOn = 0x02
.equ kLcdCursorOff = 0x00
.equ kLcdBlinkOn = 0x01
.equ kLcdBlinkOff = 0x00
; LCD flags for display/cursor shift
.equ kLcdDisplayMove = 0x08
.equ kLcdCursorMove = 0x00
.equ kLcdMoveRight = 0x04
.equ kLcdMoveLeft = 0x00
; LCD flags for function set
.equ kLcd8BitMode = 0x10
.equ kLcd4BitMode = 0x00
.equ kLcd2Line = 0x08
.equ kLcd1Line = 0x00
.equ kLcd5x10Dots = 0x04
.equ kLcd5x8Dots = 0x00
; Second row addressing offset
.equ kLcdSecondRowOffset = 0x40
; ***************************************
; R E G I S T E R P O L I C Y
; ***************************************
.def rScratch1 = r2 ; Scratch (low) register
.def rScratch2 = r3 ; Scratch (low) register
.def rBinWordL = r4 ; Argument for ASCII conversion
.def rBinWordH = r5 ; Argument for ASCII conversion
.def rLoop1 = r14 ; Loop counter
.def rSREG = r15 ; Save/Restore status port
.def rTmp1 = r16 ; Multipurpose registers
.def rTmp2 = r17
.def rArgByte0 = r24 ; For now using C register conventions for function calls
.def rArgByte1 = r25 ; Second byte arg, or high byte of word arg
.def rCounterLSB = r26 ; LSB of word (16-bit) counter (XL)
.def rCounterMSB = r27 ; MSB of word (16-bit) counter (XH)
; **********************************
; M A C R O
; **********************************
; Arguments: @0 = tmp reg to use (upper half)
.macro initializeStack
.ifdef SPH
ldi @0, High( RAMEND )
out SPH, @0 ; Upper byte of stack pointer (always load high-byte first)
.endif
ldi @0, Low( RAMEND )
out SPL, @0 ; Lower byte of stack pointer
.endm
; **********************************
; M A C R O
; **********************************
; Arguments: @0 = register base name, @1 = 16-bit constant
.macro ldiw
ldi @0H, High( @1 )
ldi @0L, Low( @1 )
.endm
; **********************************
; M A C R O
; **********************************
; Arguments: none
.macro clearLcd
ldi rArgByte0, kLcdClearDisplay
rcall sendCmdToLcd
.endm
; **********************************
; D A T A S E G M E N T
; ( S R A M )
; **********************************
.dseg
.org SRAM_START
sStaticDataBegin:
sGreetingStr:
.byte kDisplayMsgLen ; Reserve for greeting to display at start up
sWashStartStr:
.byte kDisplayMsgLen ; Reserve for greeting to display at start up
sWashEndStr:
.byte kDisplayMsgLen ; Reserve for greeting to display at start up
sHexNbrStr:
.byte kHexPrefixLen ; Reserve for leading '0x'
sStaticDataEnd:
sHexOutputStr:
.byte kHexDigitsLen ; Reserve for outpout of convertBinWordToHexStr'
sDecNbrStr:
.byte kDecimalDigitsLen ; Reserve for the output of convertBinWordToAscStr
; **********************************
; C O D E S E G M E N T
; **********************************
.cseg
.org 0
; ************************************
; I N T E R R U P T V E C T O R S
; ************************************
.org 0x00
rjmp main ; Reset vector
.org 0x02
reti ; INT0
.org 0x04
reti ; INT1
.org 0x06
reti ; PCI0
.org 0x08
reti ; PCI1
.org 0x0A
reti ; PCI2
.org 0x0C
reti ; WDT
.org 0x0E
reti ; OC2A
.org 0x10
reti ; OC2B
.org 0x12
reti ; OVF2
.org 0x14
reti ; ICP1
.org 0x16
rjmp hdlrTIM1_COMPA ; OC1A
.org 0x18
reti ; OC1B
.org 0x1A
reti ; OVF1
.org 0x1C
reti ; OC0A
.org 0x1E
reti ; OC0B
.org 0x20
reti ; OVF0
.org 0x22
reti ; SPI
.org 0x24
reti ; URXC
.org 0x26
reti ; UDRE
.org 0x28
reti ; UTXC
.org 0x2A
reti ; ADCC
.org 0x2C
reti ; ERDY
.org 0x2E
reti ; ACI
.org 0x30
reti ; TWI
.org 0x32
reti ; SPMR
.org 0x34
; ***************************************
; D A T A I N C O D E S E G
; ***************************************
; Rem: data in codeseg stored and addressed by words (not bytes)
dStaticDataBegin:
; Greeting msg
.db 'H', 'e', 'l', 'l', 'o', ' ', 'W', 'o' ; 8 bytes
.db 'r', 'l', 'd', '!', ' ', ' ', ' ', ' ' ; 8 bytes
; Wash hands msg
.db 'W', 'a', 's', 'h', ' ', 'y', 'o', 'u' ; 8 bytes
.db 'r', ' ', 'h', 'a', 'n', 'd', 's', ' ' ; 8 bytes
; Wash hands done msg
.db 'W', 'a', 's', 'h', 'i', 'n', 'g', ' ' ; 8 bytes
.db 'd', 'o', 'n', 'e', '!', ' ', ' ', ' ' ; 8 bytes
; Prefix for hex numbers
.db '0', 'x' ; 2 bytes
dStaticDataEnd:
.equ kdStaticDataLen = 2 * ( dStaticDataEnd - dStaticDataBegin )
; ***************************************
; I N T E R R U P T H A N D L E R
; ***************************************
; Timer1 Compare A (OCR1A) interrupt handler
hdlrTIM1_COMPA:
in rSREG, SREG
adiw rCounterMSB:rCounterLSB, 1 ; Increment 16-bit counter
out SREG, rSREG
set ; Set T flag
reti
; **********************************
; M A I N P R O G R A M
; **********************************
main:
.equ kPauseTime = 20 ; Seconds
.equ kCompATop = 62449 ; "Top" counter value for 1Hz output with prescalar of 256 using Timer1
.equ kCompBTop = 62449 ; "Top" counter value for 1Hz output with prescalar of 256 using Timer1
initializeStack rTmp1 ; Set up the stack
rcall initStaticData ; Move static data from PROGMEM to SRAM
clr rCounterMSB ; Clear rCounters
clr rCounterLSB
sbi pGreenLedDirD, pGreenLedDirDBit ; Set pin connected to Green LED to output mode
sbi pRedLedDirD, pRedLedDirDBit ; Set pin connected to Red LED to output mode
; Configure the LCD pins for output
sbi pLcdD4DirD, pLcdD4DirDBit
sbi pLcdD5DirD, pLcdD5DirDBit
sbi pLcdD6DirD, pLcdD6DirDBit
sbi pLcdD7DirD, pLcdD7DirDBit
sbi pLcdEnableDirD, pLcdEnableDirDBit
sbi pLcdDataSelectDirD, pLcdDataSelectDirDBit
; Set LCD pins LOW
cbi pLcdD4Port, pLcdD4PortBit
cbi pLcdD5Port, pLcdD5PortBit
cbi pLcdD6Port, pLcdD6PortBit
cbi pLcdD7Port, pLcdD7PortBit
cbi pLcdEnablePort, pLcdEnablePortBit
cbi pLcdDataSelectPort, pLcdDataSelectPortBit
; Start the LCD display
rcall initializeLcd
sbi pGreenLedPort, pGreenLedPortBit ; Green LED on
sbi pRedLedPort, pRedLedPortBit ; Red LED on
; Display the greeting on the screen
ldiw Z, sGreetingStr ; Display greeting string
rcall displayMsgOnLcd
; Pause (see both LEDs working)
ldi rArgByte0, kPauseTime
rcall delayTenthsOfSeconds
cbi pGreenLedPort, pGreenLedPortBit ; Green LED off
cbi pRedLedPort, pRedLedPortBit ; Red LED off
ldi rArgByte0, kPauseTime
rcall delayTenthsOfSeconds ; Pause before we start blinking them
sbi pRedLedPort, pRedLedPortBit ; Red (PB0) LED on
ldiw Z, sWashStartStr ; Display wash hands string
rcall displayMsgOnLcd
clr rBinWordH
clr rBinWordL
rcall displayCountOnLcd ; Zero counter display on LCD
; Load the CompA/CompB "top" counter values, 16-bit value must be loaded high-byte first
ldi rTmp1, High( kCompATop ) ; Always load high byte first
sts OCR1AH, rTmp1;
ldi rTmp1, Low( kCompATop ) ; And load low byte second
sts OCR1AL, rTmp1;
; Set up Timer1 (CTC mode, prescalar=256, CompA = Top)
ldi rTmp1, ( 1 << WGM12 ) | ( 1 << CS12 ) ; Select CTC mode with prescalar = 256
sts TCCR1B, rTmp1
; Enable the CompA interrupt for Timer1 to generate a 1 sec heart beat
ldi rTmp1, ( 1 << OCIE1A ) ; Enable CompA interrupt
sts TIMSK1, rTmp1;
; Ready to run...
clt ; Clear T flag
sei ; Enable interrupts
mainLoop:
brtc mainLoop
; Get here only if T flag set
sbi pGreenLedPin, pGreenLedPinBit ; Toggle green LED
sbi pRedLedPin, pRedLedPinBit ; Toggle red LED
cli ; Pause interrupts
clt ; Clear T flag
; Read the counter value to display on the LCD...
mov rBinWordH, rCounterMSB
mov rBinWordL, rCounterLSB
sei ; Restore interrupts
rcall displayCountOnLcd ; Update counter display on LCD
tst rBinWordH ; If counter == 20, change the message
brne mainLoop
ldi rTmp1, 20
cp rBinWordL, rTmp1
brne mainLoop
ldiw Z, sWashEndStr
rcall displayMsgOnLcd
rjmp mainLoop ; Go back to top of main loop
; **********************************
; S U B R O U T I N E
; **********************************
initStaticData:
; Copy the static strings into SRAM
; Z = pointer to program memory
; X = pointer to SRAM
; rTmp1 = counter
; rScratch1 = transfer register
; Copy greeting string
; Set up pointers to read from PROGMEM to SRAM
ldi rTmp1, kdStaticDataLen
ldiw Z, dStaticDataBegin << 1
ldiw X, sStaticDataBegin
initStaticData_Loop: ; Actual transfer loop from PROGMEM to SRAM
lpm rScratch1, Z+
st X+, rScratch1
dec rTmp1
brne initStaticData_Loop
ret
; **********************************
; S U B R O U T I N E
; **********************************
initializeLcd:
; Wait 50 milliseconds to ensure full voltage rise
clr rArgByte1
ldi rArgByte0, 50
rcall delayMilliSeconds
cbi pLcdDataSelectPort, pLcdDataSelectPortBit ; Pull DS pin Low (sending commands)
cbi pLcdEnablePort, pLcdEnablePortBit ; Pull E pin Low
; Need to send 0x03 three times
; First time
ldi rArgByte0, 0x03
rcall write4BitsToLcd
; Wait > 4.1 ms
ldi rArgByte1, High( 4500 )
ldi rArgByte0, Low( 4500 )
call delayMicroSeconds
; Second time
ldi rArgByte0, 0x03
rcall write4BitsToLcd
; Wait > 4.1 ms
ldi rArgByte1, High( 4500 )
ldi rArgByte0, Low( 4500 )
call delayMicroSeconds
; Third try and go...
ldi rArgByte0, 0x03
rcall write4BitsToLcd
; Wait >150 us
ldi rArgByte1, High( 200 )
ldi rArgByte0, Low( 200 )
call delayMicroSeconds
; This actually sets the 4-bit interface
ldi rArgByte0, 0x02
rcall write4BitsToLcd
; Set nbr of lines and font
ldi rArgByte0, ( kLcdFunctionSet | kLcd2Line | kLcd5x8Dots )
rcall sendCmdToLcd
; Turn on display, with cursor off and blinking off
ldi rArgByte0, kLcdDisplayControl | kLcdDisplayOn | kLcdCursorOff | kLcdBlinkOff
rcall sendCmdToLcd
; Set text entry more (L to R)
ldi rArgByte0, kLcdEntryModeSet | kLcdEntryLeft
rcall sendCmdToLcd
; Clear display
ldi rArgByte0, kLcdClearDisplay
rcall sendCmdToLcd
ldi rArgByte1, High( 2000 )
ldi rArgByte0, Low( 2000 )
call delayMicroSeconds ; Clear cmd takes a long time...
ret
; **********************************
; S U B R O U T I N E
; **********************************
write4BitsToLcd:
; Register rArgByte0 is passed as parameter (the 4-bits to write)
; rArgByte0 = the 4-bits to write to the LCD in lower nibble (modified)
; rTmp1 used as a temporary register
; First write the pins with the 4-bit value;
; The 4 pins are on the lower nibble of a single PORT
andi rArgByte0, 0x0F ; Mask out just the lower nibble
in rTmp1, pLcdD4Port
andi rTmp1, 0xF0 ; Save just the upper nibble of PORTC in @1
or rArgByte0, rTmp1 ; Combine upper nibble of PORTC with lower nibble value
out pLcdD4Port, rArgByte0
; Now pulse the enable pin to have the LCD read the value
cbi pLcdEnablePort, pLcdEnablePortBit ; Enable pin LOW
clr rArgByte1
ldi rArgByte0, 2
call delayMicroSeconds
sbi pLcdEnablePort, pLcdEnablePortBit ; Enable pin HIGH (actual enable pulse)
ldi rArgByte0, 2
call delayMicroSeconds ; Enable pulse must be > 450ns
cbi pLcdEnablePort, pLcdEnablePortBit ; Enable pin LOW
ldi rArgByte1, High( 100 )
ldi rArgByte0, Low( 100 ) ; Seems like a lot but didn't work with 70us
call delayMicroSeconds ; Command needs > 37us to settle
ret
; **********************************
; S U B R O U T I N E
; **********************************
sendDataToLcd:
; Register rArgByte0 is passed as parameter (the 4-bits to write)
; rArgByte0 = the 4-bits to write to the LCD in lower nibble (modified)
; rScratch1 used as a temporary register
; (rTmp1 used as a temporary by write4BitsToLcd)
sbi pLcdDataSelectPort, pLcdDataSelectPortBit ; Pin on to send data
rjmp send8BitsToLcd
sendCmdToLcd:
cbi pLcdDataSelectPort, pLcdDataSelectPortBit ; Pin off to send command
; Intentional fall through
send8BitsToLcd:
mov rScratch1, rArgByte0 ; Save the value
swap rArgByte0
rcall write4BitsToLcd ; Send the upper nibble
mov rArgByte0, rScratch1 ; Restore the value
rcall write4BitsToLcd ; Send the lower nibble
ret
; **********************************
; S U B R O U T I N E
; **********************************
setLcdRowCol:
; rArgByte0 and rArgByte1 passed as parameters (row, col)
; rArgByte0 = LCD row (0-1)
; rArgByte1 = LCD col (0-15)
cpi rArgByte0, 0 ; Compare row to 0
breq NoOffsetRequired ; If row == 0, skip offset
subi rArgByte1, -kLcdSecondRowOffset ; Add the offset for second row to column
NoOffsetRequired:
ori rArgByte1, kLcdSetDdramAddr ; Incorporate the command itself
mov rArgByte0, rArgByte1 ; Move the cmd to rArgByte0
rcall sendCmdToLcd
ret
; **********************************
; S U B R O U T I N E
; **********************************
displayMsgOnLcd:
; Z passed as parameter (pointer to message, modified)
; Z = pointer to SRAM to 16 character (byte) message to display
; rTmp1 = temporary
; rLoop1 = loop counter
; rArgByte0 = Used
; rArgByte1 = Used
; Position display
clr rArgByte0
clr rArgByte1
rcall setLcdRowCol
; Set up loop and display
ldi rTmp1, kDisplayMsgLen
mov rLoop1, rTmp1
displayMsgLoop:
ld rArgByte0, Z+
rcall sendDataToLcd
dec rLoop1
brne displayMsgLoop
ret
; **********************************
; S U B R O U T I N E
; **********************************
displayCountOnLcd:
; rBinWordH:rBinWordL passed as parameters (16-bit count value)
; rBinWordL = count value LSB
; rBinWordH = count value MSB
; Z = pointer to SRAM strings
; Used registers: rTmp1, rArgByte0, rArgByte1, rScratch1, rScratch2
; Convert the value to an ASCII string and display
ldiw Z, sDecNbrStr
rcall convertBinWordToAscStr ; Dec ASCII version in SRAM
ldi rArgByte0, 1
ldi rArgByte1, 1
rcall setLcdRowCol
ldi rTmp1, kDecimalDigitsLen
mov rLoop1, rTmp1
displayDecNbrLoop:
ld rArgByte0, Z+ ; Read the value out of SRAM
rcall sendDataToLcd
dec rLoop1
brne displayDecNbrLoop
; Convert the value to a hex string and display
ldiw Z, sHexOutputStr
rcall convertBinWordToHexStr ; Hex ASCII version in SRAM
ldi rArgByte0, 1
ldi rArgByte1, 0x09
rcall setLcdRowCol
ldiw Z, sHexNbrStr ; Display the string with prefix
ldi rTmp1, kHexStrLen
mov rLoop1, rTmp1
displayHexNbrLoop:
ld rArgByte0, Z+ ; Read the value out of SRAM
rcall sendDataToLcd
dec rLoop1
brne displayHexNbrLoop
ret
; **********************************
; S U B R O U T I N E
; **********************************
delayMicroSeconds:
; Register r25:24 is passed as parameter (the number of microseconds to delay)
; r24 = LSB microseconds to delay
; r25 = MSB microseconds to delay
.def rDelayUsL = r24
.def rDelayUsH = r25
; 1 microsecond = 16 cycles.
; Call/return overhead takes 7-8 cycles (depending on rcall or call).
; So burn up 8 more cycles (not counting the ret) to make a whole microsecond, including
; a check to see if we are done (i.e., the request was a 1us delay).
; Then do a loop that burns 16 cycles each time
nop ; 1 cycle
nop ; 1 cycle
nop ; 1 cycle
nop ; 1 cycle
sbiw rDelayUsH:rDelayUsL, 1 ; 2 cycles
breq delayMicroseconds_Ret ; 1 cycle if false/continue, 2 cycles (8 total) if true/branch
nop ; 1 cycle (8 total)
delayMicroseconds_Loop:
nop ; 1 cycle
nop ; 1 cycle
nop ; 1 cycle
nop ; 1 cycle
nop ; 1 cycle
nop ; 1 cycle
nop ; 1 cycle
nop ; 1 cycle
nop ; 1 cycle
nop ; 1 cycle
nop ; 1 cycle
nop ; 1 cycle
sbiw rDelayUsH:rDelayUsL, 1 ; 2 cycles
brne delayMicroseconds_Loop ; 2 cycles (16 total) on true/loop, 1 cycle on false/exit_loop
nop ; 1 cycle (so total 16 on exit from last loop)
delayMicroseconds_Ret:
ret
; **********************************
; S U B R O U T I N E
; **********************************
delayMilliSeconds:
; Register r25:r24 (milliSecCounter) is passed as parameter
; r24 = number of milliseconds to count (comes in as argument)
; = number of times to execute the outer+inner loops combined
; r25 = outer loop counter byte
; r26 = low byte of inner loop counter word
; r27 = high byte of inner loop counter word
.def rMillisL = r24
.def rMillisH = r25
.def rDWMSOuter = r16 ; ( = rTmp1 )
.def rDWMSInnerL = r26
.def rDWMSInnerH = r27
; Executing the following combination of inner and outer loop cycles takes almost precisely 1 millisecond at 16 MHz
.equ kDWMSOuterCount = 2
.equ kDWMSInnerCount = 1997
; Top of loop for number of milliseconds
DWMS_Loop1:
; Initialize outer loop (uses a byte counter and counts down)
ldi rDWMSOuter, kDWMSOuterCount
; Top of outer loop
DWMS_Loop2:
; Initialze inner loop (uses a word counter and counts down)
ldiw rDWMSInner, kDWMSInnerCount
; Top of inner loop
DWMS_Loop3:
; Decrement and test inner loop
sbiw rDWMSInnerL:rDWMSInnerL, 1
brne DWMS_Loop3
; Done with inner loop
; Decrement and test outer loop
dec rDWMSOuter
brne DWMS_Loop2
; Done with outer loop
; Decrement and test millisecond loop
sbiw rMillisH:rMillisL, 1
brne DWMS_Loop1
; Done with the requested number of milliseconds
ret
; **********************************
; S U B R O U T I N E
; **********************************
delayTenthsOfSeconds:
; Register r24 (tenthOfSecCounter) is passed as parameter
; r24 = number of tenths-of-seconds to count (comes in as argument)
; = number of times to execute the outer+inner loops combined
; r25 = outer loop counter byte
; r26 = low byte of inner loop counter word
; r27 = high byte of inner loop counter word
.def r10ths = r24 ; r24 = number of tenths-of-seconds to count (comes in as argument)
; = number of times to execute the outer+inner loops combined
.def rDTSOuter = r25 ; r25 = outer loop counter byte
.def rDTSInnerL = r26 ; r26 = low byte of inner loop counter word
.def rDTSInnerH = r27 ; r27 = high byte of inner loop counter word
; Executing the following combination of inner and outer loop cycles takes almost precisely 0.1 seconds at 16 Mhz
.equ kDTSOuterCount = 7
.equ kDTSInnerCount = 57142
; Top of loop for number of tenths-of-seconds
DTS_Loop1:
; Initialize outer loop (uses a byte counter and counts down)
ldi rDTSOuter, kDTSOuterCount
; Top of outer loop
DTS_Loop2:
; Initialze inner loop (uses a word counter and counts down)
ldiw rDTSInner, kDTSInnerCount
; Top of inner loop
DTS_Loop3:
; Decrement and test inner loop
sbiw rDTSInnerH:rDTSInnerL, 1
brne DTS_Loop3
; Done with inner loop
; Decrement and test outer loop
dec rDTSOuter
brne DTS_Loop2
; Done with outer loop
; Decrement and test tenth-of-second loop
dec r10ths
brne DTS_Loop1
; Done with the requested number of tenths-of-seconds
ret
; **********************************
; S U B R O U T I N E
; **********************************
convertBinWordToAscStr:
; Convert a 16-bit-binary to a 5 char decimal ASCII string
; Registers rBinWordH:rBinWordL and Z passed in as arguments
; Result returned in 5-bytes starting where Z points
; rBinWordH:rBinWordL = 16-bit quantity to convert (not changed)
; Z = pointer to first (highest) digit of ASCII result
; (1 digit per byte, 5 bytes total, with leading spaces)
; rScratch2:rScratch1 = scratch registers sometimes used as a 16-bit quantity (changed)
rcall convertBinWordToBcdArray ; convert binary to BCD
ldi rTmp1, 4 ; Counter is 4 leading digits
mov rScratch1, rTmp1
convertBinWordToAscStr1:
ld rTmp1, Z ; read a BCD digit
tst rTmp1 ; check if leading zero
brne convertBinWordToAscStr2 ; No, found digit >0
ldi rTmp1, ' ' ; overwrite with blank
st Z+, rTmp1 ; store and set to next position
dec rScratch1 ; decrement counter
brne convertBinWordToAscStr1 ; further leading blanks
ld rTmp1, Z ; Read the last BCD
convertBinWordToAscStr2:
inc rScratch1 ; one more char
convertBinWordToAscStr3:
subi rTmp1, -'0' ; Add '0'
st Z+, rTmp1 ; store and inc pointer
ld rTmp1, Z ; read next char
dec rScratch1 ; more chars?
brne convertBinWordToAscStr3 ; yes, go on
sbiw ZH:ZL, 5 ; Pointer to beginning of the BCD
ret
; **********************************
; S U B R O U T I N E
; **********************************
convertBinWordToBcdArray:
; Convert 16-bit-binary to a 5-digit-BCD array
; Registers rBinWordH:rBinWordL and Z passed in as arguments
; Result returned in 5-bytes starting where Z points
; rBinWordH:rBinWordL = 16-bit quantity to convert (not changed)
; Z = pointer to first (highest) digit of BCD result
; (1 digit per byte, 5 bytes total, with leading zeros)
; rScratch2:rScratch1 = scratch registers sometimes used as a 16-bit quantity (changed)
push rBinWordH ; Save number
push rBinWordL
ldi rTmp1, High( 10000 ) ; Start with ten thousands
mov rScratch2, rTmp1
ldi rTmp1, Low( 10000 )
mov rScratch1, rTmp1
rcall getOneBinWordDecDigit ; Calculate digit
ldi rTmp1, High( 1000 ) ; Next with thousands
mov rScratch2, rTmp1
ldi rTmp1, Low( 1000 )
mov rScratch1, rTmp1
rcall getOneBinWordDecDigit ; Calculate digit
ldi rTmp1, High( 100 ) ; Next with hundreds
mov rScratch2, rTmp1
ldi rTmp1, Low( 100 )
mov rScratch1, rTmp1
rcall getOneBinWordDecDigit ; Calculate digit
ldi rTmp1, High( 10 ) ; Next with tens
mov rScratch2, rTmp1
ldi rTmp1, Low( 10 )
mov rScratch1, rTmp1
rcall getOneBinWordDecDigit ; Calculate digit
st Z,rBinWordL ; Remainder are ones
sbiw ZH:ZL, 4 ; Set pointer to first BCD
pop rBinWordL ; Restore original binary
pop rBinWordH
ret
; **********************************
; S U B R O U T I N E
; **********************************
getOneBinWordDecDigit:
; Determine one decimal digit by continued subtraction of a binary decimal value
; Registers rBinWordH:rBinWordL, rScratch2:rScratch1, and Z passed in as arguments
; Result returned where Z points; Z incremented, rBinWordH:rBinWordL contains remainder
; rBinWordH:rBinWordL = 16-bit quantity to be decimated (changed)
; Z = pointer to store resulting BCD digit (changed)
; rScratch2:rScratch1 = 16-bit binary decimal value (unchanged)
clr rTmp1 ; digit count is zero
getOneBinWordDecDigit_1:
cp rBinWordH, rScratch2 ; Number bigger than decimal?
brcs getOneBinWordDecDigit_3 ; MSB smaller than decimal -> done (digit = 0)
brne getOneBinWordDecDigit_2 ; MSB bigger than decimal
cp rBinWordL, rScratch1 ; LSB bigger or equal decimal
brcs getOneBinWordDecDigit_3 ; LSB smaller than decimal -> done (digit = 0)
getOneBinWordDecDigit_2:
sub rBinWordL, rScratch1 ; Subtract LSB decimal
sbc rBinWordH, rScratch2 ; Subtract MSB decimal
inc rTmp1 ; Increment digit count
rjmp getOneBinWordDecDigit_1 ; Next loop -> try to subtract again
getOneBinWordDecDigit_3:
st Z+, rTmp1 ; Save digit and increment
ret
; **********************************
; S U B R O U T I N E
; **********************************
convertBinWordToHexStr:
; Convert a 16-bit-binary to a 4 char hex ASCII string
; Registers rBinWordH:rBinWordL and Z passed in as arguments
; Result returned in 4 bytes starting where Z points
; rBinWordH:rBinWordL = 16-bit quantity to convert (not changed)
; Z = pointer to first (highest) digit of ASCII result
; (1 digit per byte, 4 bytes total, with leading zeros)
; rTmp1 = temp (upper) register (changed)
mov rTmp1, rBinWordH ; Load MSB
rcall ByteToHex ; Convert byte
mov rTmp1, rBinWordL ; Repeat on LSB
rcall ByteToHex ; Convert other byte
sbiw ZH:ZL, 4 ; Reset Z to start
ret
; **********************************
; S U B R O U T I N E
; **********************************
ByteToHex:
; Convert an 8-bit-binary to 2-char uppercase hex string
; Registers rTmp1 and Z used to pass in arguments
; Result returned in 2 bytes starting where Z points
; rTmp1 = 8-bit quantity to convert (changed)
; Z = pointer to SRAM to first digit of ASCII result (2 char) (changed)
push rTmp1 ; Save original value
swap rTmp1 ; Move upper to lower nibble
rcall ByteToHex_1 ; Call into the code below
pop rTmp1 ; Restore original value and fall into code below
ByteToHex_1:
andi rTmp1, 0x0F ; Mask upper nibble
subi rTmp1, -'0' ; Add 0 ASCII to convert values 0..9 to ASCII
cpi rTmp1, '9' + 1 ; Is the hex value A..F?
brcs ByteToHex_2
subi rTmp1, -7 ; Add 7 to the ASCII value to generate A..F
ByteToHex_2:
st Z+, rTmp1 ; Store a hex digit, advance Z
ret
| 30.942982 | 119 | 0.533154 |
272d6d6272336054c3c6940ef72bb2210fce9f1e | 21,306 | asm | Assembly | ioq3/build/release-js-js/baseq3/ui/ui_loadconfig.asm | RawTechnique/quake-port | 2e7c02095f0207831a6026ec23b1c1d75c24f98d | [
"MIT"
] | 1 | 2021-12-31T10:26:58.000Z | 2021-12-31T10:26:58.000Z | ioq3/build/release-js-js/baseq3/ui/ui_loadconfig.asm | unfriendly/quake-port | 2e7c02095f0207831a6026ec23b1c1d75c24f98d | [
"MIT"
] | 28 | 2019-03-05T20:45:07.000Z | 2019-03-05T20:45:57.000Z | ioq3/build/release-js-js/baseq3/ui/ui_loadconfig.asm | unfriendly/quake-port | 2e7c02095f0207831a6026ec23b1c1d75c24f98d | [
"MIT"
] | null | null | null | code
proc LoadConfig_MenuEvent 12 8
ADDRFP4 4
INDIRI4
CNSTI4 3
EQI4 $70
ADDRGP4 $69
JUMPV
LABELV $70
ADDRLP4 0
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 10
LTI4 $72
ADDRLP4 0
INDIRI4
CNSTI4 14
GTI4 $72
ADDRLP4 0
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 $86-40
ADDP4
INDIRP4
JUMPV
lit
align 4
LABELV $86
address $81
address $75
address $72
address $82
address $84
code
LABELV $75
ADDRGP4 $76
ARGP4
ADDRGP4 s_configs+536+64
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 s_configs+536+76
INDIRP4
ADDP4
INDIRP4
ARGP4
ADDRLP4 8
ADDRGP4 va
CALLP4
ASGNP4
CNSTI4 2
ARGI4
ADDRLP4 8
INDIRP4
ARGP4
ADDRGP4 trap_Cmd_ExecuteText
CALLV
pop
ADDRGP4 UI_PopMenu
CALLV
pop
ADDRGP4 $73
JUMPV
LABELV $81
ADDRGP4 UI_PopMenu
CALLV
pop
ADDRGP4 $73
JUMPV
LABELV $82
ADDRGP4 s_configs+536
ARGP4
CNSTI4 134
ARGI4
ADDRGP4 ScrollList_Key
CALLI4
pop
ADDRGP4 $73
JUMPV
LABELV $84
ADDRGP4 s_configs+536
ARGP4
CNSTI4 135
ARGI4
ADDRGP4 ScrollList_Key
CALLI4
pop
LABELV $72
LABELV $73
LABELV $69
endproc LoadConfig_MenuEvent 12 8
proc LoadConfig_MenuInit 24 16
ADDRGP4 UI_LoadConfig_Cache
CALLV
pop
ADDRGP4 s_configs
ARGP4
CNSTI4 0
ARGI4
CNSTU4 3632
ARGU4
ADDRGP4 qk_memset
CALLP4
pop
ADDRGP4 s_configs+276
CNSTI4 1
ASGNI4
ADDRGP4 s_configs+280
CNSTI4 1
ASGNI4
ADDRGP4 s_configs+288
CNSTI4 10
ASGNI4
ADDRGP4 s_configs+288+12
CNSTI4 320
ASGNI4
ADDRGP4 s_configs+288+16
CNSTI4 16
ASGNI4
ADDRGP4 s_configs+288+60
ADDRGP4 $98
ASGNP4
ADDRGP4 s_configs+288+68
ADDRGP4 color_white
ASGNP4
ADDRGP4 s_configs+288+64
CNSTI4 1
ASGNI4
ADDRGP4 s_configs+360
CNSTI4 6
ASGNI4
ADDRGP4 s_configs+360+4
ADDRGP4 $106
ASGNP4
ADDRGP4 s_configs+360+44
CNSTU4 16384
ASGNU4
ADDRGP4 s_configs+360+12
CNSTI4 0
ASGNI4
ADDRGP4 s_configs+360+16
CNSTI4 78
ASGNI4
ADDRGP4 s_configs+360+76
CNSTI4 256
ASGNI4
ADDRGP4 s_configs+360+80
CNSTI4 329
ASGNI4
ADDRGP4 s_configs+448
CNSTI4 6
ASGNI4
ADDRGP4 s_configs+448+4
ADDRGP4 $120
ASGNP4
ADDRGP4 s_configs+448+44
CNSTU4 16384
ASGNU4
ADDRGP4 s_configs+448+12
CNSTI4 376
ASGNI4
ADDRGP4 s_configs+448+16
CNSTI4 76
ASGNI4
ADDRGP4 s_configs+448+76
CNSTI4 256
ASGNI4
ADDRGP4 s_configs+448+80
CNSTI4 334
ASGNI4
ADDRGP4 s_configs+632
CNSTI4 6
ASGNI4
ADDRGP4 s_configs+632+4
ADDRGP4 $134
ASGNP4
ADDRGP4 s_configs+632+44
CNSTU4 16384
ASGNU4
ADDRGP4 s_configs+632+12
CNSTI4 256
ASGNI4
ADDRGP4 s_configs+632+16
CNSTI4 400
ASGNI4
ADDRGP4 s_configs+632+76
CNSTI4 128
ASGNI4
ADDRGP4 s_configs+632+80
CNSTI4 48
ASGNI4
ADDRGP4 s_configs+720
CNSTI4 6
ASGNI4
ADDRGP4 s_configs+720+44
CNSTU4 2308
ASGNU4
ADDRGP4 s_configs+720+12
CNSTI4 256
ASGNI4
ADDRGP4 s_configs+720+16
CNSTI4 400
ASGNI4
ADDRGP4 s_configs+720+8
CNSTI4 13
ASGNI4
ADDRGP4 s_configs+720+48
ADDRGP4 LoadConfig_MenuEvent
ASGNP4
ADDRGP4 s_configs+720+76
CNSTI4 64
ASGNI4
ADDRGP4 s_configs+720+80
CNSTI4 48
ASGNI4
ADDRGP4 s_configs+720+60
ADDRGP4 $162
ASGNP4
ADDRGP4 s_configs+808
CNSTI4 6
ASGNI4
ADDRGP4 s_configs+808+44
CNSTU4 2308
ASGNU4
ADDRGP4 s_configs+808+12
CNSTI4 320
ASGNI4
ADDRGP4 s_configs+808+16
CNSTI4 400
ASGNI4
ADDRGP4 s_configs+808+8
CNSTI4 14
ASGNI4
ADDRGP4 s_configs+808+48
ADDRGP4 LoadConfig_MenuEvent
ASGNP4
ADDRGP4 s_configs+808+76
CNSTI4 64
ASGNI4
ADDRGP4 s_configs+808+80
CNSTI4 48
ASGNI4
ADDRGP4 s_configs+808+60
ADDRGP4 $180
ASGNP4
ADDRGP4 s_configs+896
CNSTI4 6
ASGNI4
ADDRGP4 s_configs+896+4
ADDRGP4 $184
ASGNP4
ADDRGP4 s_configs+896+44
CNSTU4 260
ASGNU4
ADDRGP4 s_configs+896+8
CNSTI4 10
ASGNI4
ADDRGP4 s_configs+896+48
ADDRGP4 LoadConfig_MenuEvent
ASGNP4
ADDRGP4 s_configs+896+12
CNSTI4 0
ASGNI4
ADDRGP4 s_configs+896+16
CNSTI4 416
ASGNI4
ADDRGP4 s_configs+896+76
CNSTI4 128
ASGNI4
ADDRGP4 s_configs+896+80
CNSTI4 64
ASGNI4
ADDRGP4 s_configs+896+60
ADDRGP4 $201
ASGNP4
ADDRGP4 s_configs+984
CNSTI4 6
ASGNI4
ADDRGP4 s_configs+984+4
ADDRGP4 $205
ASGNP4
ADDRGP4 s_configs+984+44
CNSTU4 272
ASGNU4
ADDRGP4 s_configs+984+8
CNSTI4 11
ASGNI4
ADDRGP4 s_configs+984+48
ADDRGP4 LoadConfig_MenuEvent
ASGNP4
ADDRGP4 s_configs+984+12
CNSTI4 640
ASGNI4
ADDRGP4 s_configs+984+16
CNSTI4 416
ASGNI4
ADDRGP4 s_configs+984+76
CNSTI4 128
ASGNI4
ADDRGP4 s_configs+984+80
CNSTI4 64
ASGNI4
ADDRGP4 s_configs+984+60
ADDRGP4 $222
ASGNP4
ADDRGP4 s_configs+536
CNSTI4 8
ASGNI4
ADDRGP4 s_configs+536+44
CNSTU4 256
ASGNU4
ADDRGP4 s_configs+536+48
ADDRGP4 LoadConfig_MenuEvent
ASGNP4
ADDRGP4 s_configs+536+8
CNSTI4 12
ASGNI4
ADDRGP4 s_configs+536+12
CNSTI4 118
ASGNI4
ADDRGP4 s_configs+536+16
CNSTI4 130
ASGNI4
ADDRGP4 s_configs+536+80
CNSTI4 16
ASGNI4
ADDRGP4 s_configs+536+84
CNSTI4 14
ASGNI4
ADDRGP4 $240
ARGP4
ADDRGP4 $241
ARGP4
ADDRGP4 s_configs+1072
ARGP4
CNSTI4 2048
ARGI4
ADDRLP4 12
ADDRGP4 trap_FS_GetFileList
CALLI4
ASGNI4
ADDRGP4 s_configs+536+68
ADDRLP4 12
INDIRI4
ASGNI4
ADDRGP4 s_configs+536+76
ADDRGP4 s_configs+3120
ASGNP4
ADDRGP4 s_configs+536+88
CNSTI4 3
ASGNI4
ADDRGP4 s_configs+536+68
INDIRI4
CNSTI4 0
NEI4 $248
ADDRGP4 s_configs+1072
ARGP4
ADDRGP4 $253
ARGP4
ADDRGP4 qk_strcpy
CALLP4
pop
ADDRGP4 s_configs+536+68
CNSTI4 1
ASGNI4
ADDRLP4 16
ADDRGP4 s_configs+984+44
ASGNP4
ADDRLP4 16
INDIRP4
ADDRLP4 16
INDIRP4
INDIRU4
CNSTU4 20480
BORU4
ASGNU4
ADDRGP4 $249
JUMPV
LABELV $248
ADDRGP4 s_configs+536+68
INDIRI4
CNSTI4 128
LEI4 $258
ADDRGP4 s_configs+536+68
CNSTI4 128
ASGNI4
LABELV $258
LABELV $249
ADDRLP4 0
ADDRGP4 s_configs+1072
ASGNP4
ADDRLP4 8
CNSTI4 0
ASGNI4
ADDRGP4 $268
JUMPV
LABELV $265
ADDRLP4 8
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 s_configs+536+76
INDIRP4
ADDP4
ADDRLP4 0
INDIRP4
ASGNP4
ADDRLP4 0
INDIRP4
ARGP4
ADDRLP4 16
ADDRGP4 qk_strlen
CALLU4
ASGNU4
ADDRLP4 4
ADDRLP4 16
INDIRU4
CVUI4 4
ASGNI4
ADDRLP4 4
INDIRI4
ADDRLP4 0
INDIRP4
ADDP4
CNSTI4 -4
ADDP4
ARGP4
ADDRGP4 $275
ARGP4
ADDRLP4 20
ADDRGP4 Q_stricmp
CALLI4
ASGNI4
ADDRLP4 20
INDIRI4
CNSTI4 0
NEI4 $273
ADDRLP4 4
INDIRI4
CNSTI4 4
SUBI4
ADDRLP4 0
INDIRP4
ADDP4
CNSTI1 0
ASGNI1
LABELV $273
ADDRLP4 0
INDIRP4
ARGP4
ADDRGP4 Q_strupr
CALLP4
pop
ADDRLP4 0
ADDRLP4 4
INDIRI4
CNSTI4 1
ADDI4
ADDRLP4 0
INDIRP4
ADDP4
ASGNP4
LABELV $266
ADDRLP4 8
ADDRLP4 8
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $268
ADDRLP4 8
INDIRI4
ADDRGP4 s_configs+536+68
INDIRI4
LTI4 $265
ADDRGP4 s_configs
ARGP4
ADDRGP4 s_configs+288
ARGP4
ADDRGP4 Menu_AddItem
CALLV
pop
ADDRGP4 s_configs
ARGP4
ADDRGP4 s_configs+360
ARGP4
ADDRGP4 Menu_AddItem
CALLV
pop
ADDRGP4 s_configs
ARGP4
ADDRGP4 s_configs+448
ARGP4
ADDRGP4 Menu_AddItem
CALLV
pop
ADDRGP4 s_configs
ARGP4
ADDRGP4 s_configs+536
ARGP4
ADDRGP4 Menu_AddItem
CALLV
pop
ADDRGP4 s_configs
ARGP4
ADDRGP4 s_configs+632
ARGP4
ADDRGP4 Menu_AddItem
CALLV
pop
ADDRGP4 s_configs
ARGP4
ADDRGP4 s_configs+720
ARGP4
ADDRGP4 Menu_AddItem
CALLV
pop
ADDRGP4 s_configs
ARGP4
ADDRGP4 s_configs+808
ARGP4
ADDRGP4 Menu_AddItem
CALLV
pop
ADDRGP4 s_configs
ARGP4
ADDRGP4 s_configs+896
ARGP4
ADDRGP4 Menu_AddItem
CALLV
pop
ADDRGP4 s_configs
ARGP4
ADDRGP4 s_configs+984
ARGP4
ADDRGP4 Menu_AddItem
CALLV
pop
LABELV $88
endproc LoadConfig_MenuInit 24 16
export UI_LoadConfig_Cache
proc UI_LoadConfig_Cache 0 4
ADDRGP4 $184
ARGP4
ADDRGP4 trap_R_RegisterShaderNoMip
CALLI4
pop
ADDRGP4 $201
ARGP4
ADDRGP4 trap_R_RegisterShaderNoMip
CALLI4
pop
ADDRGP4 $205
ARGP4
ADDRGP4 trap_R_RegisterShaderNoMip
CALLI4
pop
ADDRGP4 $222
ARGP4
ADDRGP4 trap_R_RegisterShaderNoMip
CALLI4
pop
ADDRGP4 $106
ARGP4
ADDRGP4 trap_R_RegisterShaderNoMip
CALLI4
pop
ADDRGP4 $120
ARGP4
ADDRGP4 trap_R_RegisterShaderNoMip
CALLI4
pop
ADDRGP4 $134
ARGP4
ADDRGP4 trap_R_RegisterShaderNoMip
CALLI4
pop
ADDRGP4 $162
ARGP4
ADDRGP4 trap_R_RegisterShaderNoMip
CALLI4
pop
ADDRGP4 $180
ARGP4
ADDRGP4 trap_R_RegisterShaderNoMip
CALLI4
pop
LABELV $285
endproc UI_LoadConfig_Cache 0 4
export UI_LoadConfigMenu
proc UI_LoadConfigMenu 0 4
ADDRGP4 LoadConfig_MenuInit
CALLV
pop
ADDRGP4 s_configs
ARGP4
ADDRGP4 UI_PushMenu
CALLV
pop
LABELV $286
endproc UI_LoadConfigMenu 0 4
bss
align 4
LABELV s_configs
skip 3632
import UI_RankStatusMenu
import RankStatus_Cache
import UI_SignupMenu
import Signup_Cache
import UI_LoginMenu
import Login_Cache
import UI_RankingsMenu
import Rankings_Cache
import Rankings_DrawPassword
import Rankings_DrawName
import Rankings_DrawText
import UI_InitGameinfo
import UI_SPUnlockMedals_f
import UI_SPUnlock_f
import UI_GetAwardLevel
import UI_LogAwardData
import UI_NewGame
import UI_GetCurrentGame
import UI_CanShowTierVideo
import UI_ShowTierVideo
import UI_TierCompleted
import UI_SetBestScore
import UI_GetBestScore
import UI_GetNumBots
import UI_GetBotInfoByName
import UI_GetBotInfoByNumber
import UI_GetNumSPTiers
import UI_GetNumSPArenas
import UI_GetNumArenas
import UI_GetSpecialArenaInfo
import UI_GetArenaInfoByMap
import UI_GetArenaInfoByNumber
import UI_NetworkOptionsMenu
import UI_NetworkOptionsMenu_Cache
import UI_SoundOptionsMenu
import UI_SoundOptionsMenu_Cache
import UI_DisplayOptionsMenu
import UI_DisplayOptionsMenu_Cache
import UI_SaveConfigMenu
import UI_SaveConfigMenu_Cache
import UI_TeamOrdersMenu_Cache
import UI_TeamOrdersMenu_f
import UI_TeamOrdersMenu
import UI_RemoveBotsMenu
import UI_RemoveBots_Cache
import UI_AddBotsMenu
import UI_AddBots_Cache
import trap_SetPbClStatus
import trap_VerifyCDKey
import trap_SetCDKey
import trap_GetCDKey
import trap_MemoryRemaining
import trap_LAN_GetPingInfo
import trap_LAN_GetPing
import trap_LAN_ClearPing
import trap_LAN_ServerStatus
import trap_LAN_GetPingQueueCount
import trap_LAN_GetServerInfo
import trap_LAN_GetServerAddressString
import trap_LAN_GetServerCount
import trap_GetConfigString
import trap_GetGlconfig
import trap_GetClientState
import trap_GetClipboardData
import trap_Key_SetCatcher
import trap_Key_GetCatcher
import trap_Key_ClearStates
import trap_Key_SetOverstrikeMode
import trap_Key_GetOverstrikeMode
import trap_Key_IsDown
import trap_Key_SetBinding
import trap_Key_GetBindingBuf
import trap_Key_KeynumToStringBuf
import trap_S_RegisterSound
import trap_S_StartLocalSound
import trap_CM_LerpTag
import trap_UpdateScreen
import trap_R_DrawStretchPic
import trap_R_SetColor
import trap_R_RenderScene
import trap_R_AddLightToScene
import trap_R_AddPolyToScene
import trap_R_AddRefEntityToScene
import trap_R_ClearScene
import trap_R_RegisterShaderNoMip
import trap_R_RegisterSkin
import trap_R_RegisterModel
import trap_FS_Seek
import trap_FS_GetFileList
import trap_FS_FCloseFile
import trap_FS_Write
import trap_FS_Read
import trap_FS_FOpenFile
import trap_Cmd_ExecuteText
import trap_Argv
import trap_Argc
import trap_Cvar_InfoStringBuffer
import trap_Cvar_Create
import trap_Cvar_Reset
import trap_Cvar_SetValue
import trap_Cvar_VariableStringBuffer
import trap_Cvar_VariableValue
import trap_Cvar_Set
import trap_Cvar_Update
import trap_Cvar_Register
import trap_Milliseconds
import trap_Error
import trap_Print
import UI_SPSkillMenu_Cache
import UI_SPSkillMenu
import UI_SPPostgameMenu_f
import UI_SPPostgameMenu_Cache
import UI_SPArena_Start
import UI_SPLevelMenu_ReInit
import UI_SPLevelMenu_f
import UI_SPLevelMenu
import UI_SPLevelMenu_Cache
import uis
import m_entersound
import UI_StartDemoLoop
import UI_Cvar_VariableString
import UI_Argv
import UI_ForceMenuOff
import UI_PopMenu
import UI_PushMenu
import UI_SetActiveMenu
import UI_IsFullscreen
import UI_DrawTextBox
import UI_AdjustFrom640
import UI_CursorInRect
import UI_DrawChar
import UI_DrawString
import UI_ProportionalStringWidth
import UI_DrawProportionalString_AutoWrapped
import UI_DrawProportionalString
import UI_ProportionalSizeScale
import UI_DrawBannerString
import UI_LerpColor
import UI_SetColor
import UI_UpdateScreen
import UI_DrawRect
import UI_FillRect
import UI_DrawHandlePic
import UI_DrawNamedPic
import UI_ClampCvar
import UI_ConsoleCommand
import UI_Refresh
import UI_MouseEvent
import UI_KeyEvent
import UI_Shutdown
import UI_Init
import UI_RegisterClientModelname
import UI_PlayerInfo_SetInfo
import UI_PlayerInfo_SetModel
import UI_DrawPlayer
import DriverInfo_Cache
import GraphicsOptions_Cache
import UI_GraphicsOptionsMenu
import ServerInfo_Cache
import UI_ServerInfoMenu
import UI_BotSelectMenu_Cache
import UI_BotSelectMenu
import ServerOptions_Cache
import StartServer_Cache
import UI_StartServerMenu
import ArenaServers_Cache
import UI_ArenaServersMenu
import SpecifyServer_Cache
import UI_SpecifyServerMenu
import SpecifyLeague_Cache
import UI_SpecifyLeagueMenu
import Preferences_Cache
import UI_PreferencesMenu
import PlayerSettings_Cache
import UI_PlayerSettingsMenu
import PlayerModel_Cache
import UI_PlayerModelMenu
import UI_CDKeyMenu_f
import UI_CDKeyMenu_Cache
import UI_CDKeyMenu
import UI_ModsMenu_Cache
import UI_ModsMenu
import UI_CinematicsMenu_Cache
import UI_CinematicsMenu_f
import UI_CinematicsMenu
import Demos_Cache
import UI_DemosMenu
import Controls_Cache
import UI_ControlsMenu
import UI_DrawConnectScreen
import TeamMain_Cache
import UI_TeamMainMenu
import UI_SetupMenu
import UI_SetupMenu_Cache
import UI_Message
import UI_ConfirmMenu_Style
import UI_ConfirmMenu
import ConfirmMenu_Cache
import UI_InGameMenu
import InGame_Cache
import UI_CreditMenu
import UI_UpdateCvars
import UI_RegisterCvars
import UI_MainMenu
import MainMenu_Cache
import MenuField_Key
import MenuField_Draw
import MenuField_Init
import MField_Draw
import MField_CharEvent
import MField_KeyDownEvent
import MField_Clear
import ui_medalSounds
import ui_medalPicNames
import ui_medalNames
import text_color_highlight
import text_color_normal
import text_color_disabled
import listbar_color
import list_color
import name_color
import color_dim
import color_red
import color_orange
import color_blue
import color_yellow
import color_white
import color_black
import menu_dim_color
import menu_black_color
import menu_red_color
import menu_highlight_color
import menu_dark_color
import menu_grayed_color
import menu_text_color
import weaponChangeSound
import menu_null_sound
import menu_buzz_sound
import menu_out_sound
import menu_move_sound
import menu_in_sound
import ScrollList_Key
import ScrollList_Draw
import Bitmap_Draw
import Bitmap_Init
import Menu_DefaultKey
import Menu_SetCursorToItem
import Menu_SetCursor
import Menu_ActivateItem
import Menu_ItemAtCursor
import Menu_Draw
import Menu_AdjustCursor
import Menu_AddItem
import Menu_Focus
import Menu_Cache
import ui_ioq3
import ui_cdkeychecked
import ui_cdkey
import ui_server16
import ui_server15
import ui_server14
import ui_server13
import ui_server12
import ui_server11
import ui_server10
import ui_server9
import ui_server8
import ui_server7
import ui_server6
import ui_server5
import ui_server4
import ui_server3
import ui_server2
import ui_server1
import ui_marks
import ui_drawCrosshairNames
import ui_drawCrosshair
import ui_brassTime
import ui_browserShowEmpty
import ui_browserShowFull
import ui_browserSortKey
import ui_browserGameType
import ui_browserMaster
import ui_spSelection
import ui_spSkill
import ui_spVideos
import ui_spAwards
import ui_spScores5
import ui_spScores4
import ui_spScores3
import ui_spScores2
import ui_spScores1
import ui_botsFile
import ui_arenasFile
import ui_ctf_friendly
import ui_ctf_timelimit
import ui_ctf_capturelimit
import ui_team_friendly
import ui_team_timelimit
import ui_team_fraglimit
import ui_tourney_timelimit
import ui_tourney_fraglimit
import ui_ffa_timelimit
import ui_ffa_fraglimit
import BG_PlayerTouchesItem
import BG_PlayerStateToEntityStateExtraPolate
import BG_PlayerStateToEntityState
import BG_TouchJumpPad
import BG_AddPredictableEventToPlayerstate
import BG_EvaluateTrajectoryDelta
import BG_EvaluateTrajectory
import BG_CanItemBeGrabbed
import BG_FindItemForHoldable
import BG_FindItemForPowerup
import BG_FindItemForWeapon
import BG_FindItem
import bg_numItems
import bg_itemlist
import Pmove
import PM_UpdateViewAngles
import Com_Printf
import Com_Error
import Info_NextPair
import Info_Validate
import Info_SetValueForKey_Big
import Info_SetValueForKey
import Info_RemoveKey_Big
import Info_RemoveKey
import Info_ValueForKey
import Com_TruncateLongString
import va
import Q_CountChar
import Q_CleanStr
import Q_PrintStrlen
import Q_strcat
import Q_strncpyz
import Q_stristr
import Q_strupr
import Q_strlwr
import Q_stricmpn
import Q_strncmp
import Q_stricmp
import Q_isintegral
import Q_isanumber
import Q_isalpha
import Q_isupper
import Q_islower
import Q_isprint
import Com_RandomBytes
import Com_SkipCharset
import Com_SkipTokens
import Com_sprintf
import Com_HexStrToInt
import Parse3DMatrix
import Parse2DMatrix
import Parse1DMatrix
import SkipRestOfLine
import SkipBracedSection
import COM_MatchToken
import COM_ParseWarning
import COM_ParseError
import COM_Compress
import COM_ParseExt
import COM_Parse
import COM_GetCurrentParseLine
import COM_BeginParseSession
import COM_DefaultExtension
import COM_CompareExtension
import COM_StripExtension
import COM_GetExtension
import COM_SkipPath
import Com_Clamp
import PerpendicularVector
import AngleVectors
import MatrixMultiply
import MakeNormalVectors
import RotateAroundDirection
import RotatePointAroundVector
import ProjectPointOnPlane
import PlaneFromPoints
import AngleDelta
import AngleNormalize180
import AngleNormalize360
import AnglesSubtract
import AngleSubtract
import LerpAngle
import AngleMod
import BoundsIntersectPoint
import BoundsIntersectSphere
import BoundsIntersect
import BoxOnPlaneSide
import SetPlaneSignbits
import AxisCopy
import AxisClear
import AnglesToAxis
import vectoangles
import Q_crandom
import Q_random
import Q_rand
import Q_acos
import Q_log2
import VectorRotate
import Vector4Scale
import VectorNormalize2
import VectorNormalize
import CrossProduct
import VectorInverse
import VectorNormalizeFast
import DistanceSquared
import Distance
import VectorLengthSquared
import VectorLength
import VectorCompare
import AddPointToBounds
import ClearBounds
import RadiusFromBounds
import NormalizeColor
import ColorBytes4
import ColorBytes3
import _VectorMA
import _VectorScale
import _VectorCopy
import _VectorAdd
import _VectorSubtract
import _DotProduct
import ByteToDir
import DirToByte
import ClampShort
import ClampChar
import Q_rsqrt
import Q_fabs
import Q_isnan
import axisDefault
import vec3_origin
import g_color_table
import colorDkGrey
import colorMdGrey
import colorLtGrey
import colorWhite
import colorCyan
import colorMagenta
import colorYellow
import colorBlue
import colorGreen
import colorRed
import colorBlack
import bytedirs
import Hunk_AllocDebug
import FloatSwap
import LongSwap
import ShortSwap
import CopyLongSwap
import CopyShortSwap
import qk_acos
import qk_fabs
import qk_abs
import qk_tan
import qk_atan2
import qk_cos
import qk_sin
import qk_sqrt
import qk_floor
import qk_ceil
import qk_memcpy
import qk_memset
import qk_memmove
import qk_sscanf
import qk_vsnprintf
import qk_strtol
import qk_atoi
import qk_strtod
import qk_atof
import qk_toupper
import qk_tolower
import qk_strncpy
import qk_strstr
import qk_strrchr
import qk_strchr
import qk_strcmp
import qk_strcpy
import qk_strcat
import qk_strlen
import qk_rand
import qk_srand
import qk_qsort
lit
align 1
LABELV $275
byte 1 46
byte 1 99
byte 1 102
byte 1 103
byte 1 0
align 1
LABELV $253
byte 1 78
byte 1 111
byte 1 32
byte 1 70
byte 1 105
byte 1 108
byte 1 101
byte 1 115
byte 1 32
byte 1 70
byte 1 111
byte 1 117
byte 1 110
byte 1 100
byte 1 46
byte 1 0
align 1
LABELV $241
byte 1 99
byte 1 102
byte 1 103
byte 1 0
align 1
LABELV $240
byte 1 0
align 1
LABELV $222
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 97
byte 1 114
byte 1 116
byte 1 47
byte 1 108
byte 1 111
byte 1 97
byte 1 100
byte 1 95
byte 1 49
byte 1 0
align 1
LABELV $205
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 97
byte 1 114
byte 1 116
byte 1 47
byte 1 108
byte 1 111
byte 1 97
byte 1 100
byte 1 95
byte 1 48
byte 1 0
align 1
LABELV $201
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 97
byte 1 114
byte 1 116
byte 1 47
byte 1 98
byte 1 97
byte 1 99
byte 1 107
byte 1 95
byte 1 49
byte 1 0
align 1
LABELV $184
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 97
byte 1 114
byte 1 116
byte 1 47
byte 1 98
byte 1 97
byte 1 99
byte 1 107
byte 1 95
byte 1 48
byte 1 0
align 1
LABELV $180
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 97
byte 1 114
byte 1 116
byte 1 47
byte 1 97
byte 1 114
byte 1 114
byte 1 111
byte 1 119
byte 1 115
byte 1 95
byte 1 104
byte 1 111
byte 1 114
byte 1 122
byte 1 95
byte 1 114
byte 1 105
byte 1 103
byte 1 104
byte 1 116
byte 1 0
align 1
LABELV $162
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 97
byte 1 114
byte 1 116
byte 1 47
byte 1 97
byte 1 114
byte 1 114
byte 1 111
byte 1 119
byte 1 115
byte 1 95
byte 1 104
byte 1 111
byte 1 114
byte 1 122
byte 1 95
byte 1 108
byte 1 101
byte 1 102
byte 1 116
byte 1 0
align 1
LABELV $134
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 97
byte 1 114
byte 1 116
byte 1 47
byte 1 97
byte 1 114
byte 1 114
byte 1 111
byte 1 119
byte 1 115
byte 1 95
byte 1 104
byte 1 111
byte 1 114
byte 1 122
byte 1 95
byte 1 48
byte 1 0
align 1
LABELV $120
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 97
byte 1 114
byte 1 116
byte 1 47
byte 1 102
byte 1 114
byte 1 97
byte 1 109
byte 1 101
byte 1 49
byte 1 95
byte 1 114
byte 1 0
align 1
LABELV $106
byte 1 109
byte 1 101
byte 1 110
byte 1 117
byte 1 47
byte 1 97
byte 1 114
byte 1 116
byte 1 47
byte 1 102
byte 1 114
byte 1 97
byte 1 109
byte 1 101
byte 1 50
byte 1 95
byte 1 108
byte 1 0
align 1
LABELV $98
byte 1 76
byte 1 79
byte 1 65
byte 1 68
byte 1 32
byte 1 67
byte 1 79
byte 1 78
byte 1 70
byte 1 73
byte 1 71
byte 1 0
align 1
LABELV $76
byte 1 101
byte 1 120
byte 1 101
byte 1 99
byte 1 32
byte 1 37
byte 1 115
byte 1 10
byte 1 0
| 15.758876 | 45 | 0.862339 |
5b86d6e56fbe7137297e72852270cced6b638893 | 503 | asm | Assembly | programs/oeis/047/A047536.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/047/A047536.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/047/A047536.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A047536: Numbers that are congruent to {0, 4, 7} mod 8.
; 0,4,7,8,12,15,16,20,23,24,28,31,32,36,39,40,44,47,48,52,55,56,60,63,64,68,71,72,76,79,80,84,87,88,92,95,96,100,103,104,108,111,112,116,119,120,124,127,128,132,135,136,140,143,144,148,151,152,156,159,160,164,167,168,172,175,176,180,183,184,188,191,192,196,199,200,204,207,208,212,215,216,220,223,224,228,231,232,236,239,240,244,247,248,252,255,256,260,263,264
add $0,1
mov $1,$0
mul $0,2
div $0,3
mul $0,5
add $0,1
div $0,2
add $0,$1
sub $0,1
| 38.692308 | 360 | 0.681909 |
464aebe30aecf12427fff79d385328834c5701bc | 404 | asm | Assembly | programs/oeis/089/A089026.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/089/A089026.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/089/A089026.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A089026: a(n) = n if n is a prime, otherwise a(n) = 1.
; 1,2,3,1,5,1,7,1,1,1,11,1,13,1,1,1,17,1,19,1,1,1,23,1,1,1,1,1,29,1,31,1,1,1,1,1,37,1,1,1,41,1,43,1,1,1,47,1,1,1,1,1,53,1,1,1,1,1,59,1,61,1,1,1,1,1,67,1,1,1,71,1,73,1,1,1,1,1,79,1,1,1,83,1,1,1,1,1,89,1,1,1,1,1,1,1,97,1,1,1
mov $1,$0
seq $1,80339 ; Characteristic function of {1} union {primes}: 1 if n is 1 or a prime, else 0.
mul $0,$1
add $0,1
| 50.5 | 222 | 0.579208 |
c3948f5f7918a48ee66b6b749c11f79389b2df83 | 9,508 | asm | Assembly | audio/music/surf.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 28 | 2019-11-08T07:19:00.000Z | 2021-12-20T10:17:54.000Z | audio/music/surf.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 13 | 2020-01-11T17:00:40.000Z | 2021-09-14T01:27:38.000Z | audio/music/surf.asm | Dev727/ancientplatinum | 8b212a1728cc32a95743e1538b9eaa0827d013a7 | [
"blessing"
] | 22 | 2020-05-28T17:31:38.000Z | 2022-03-07T20:49:35.000Z | Music_Surf:
musicheader 3, 1, Music_Surf_Ch1
musicheader 1, 2, Music_Surf_Ch2
musicheader 1, 3, Music_Surf_Ch3
db $3
Music_Surf_Ch1:
tempo 108
volume $77
notetype $c, $a7
stereopanning $f
Music_Surf_branch_f519e:
dutycycle $2
vibrato $10, $24
intensity $73
octave 3
note F_, 1
note __, 1
note D#, 1
note __, 1
intensity $73
note F_, 1
note __, 1
note D#, 1
note __, 1
note G#, 1
note __, 1
note D#, 1
note __, 1
intensity $73
note F_, 1
note __, 1
note D#, 1
note __, 1
note F_, 1
note __, 1
note D#, 1
intensity $93
note __, 1
note G#, 1
note __, 1
note D#, 1
note __, 1
intensity $a7
note F_, 1
note __, 1
note D#, 1
note __, 1
note F_, 1
note __, 1
note D#, 1
intensity $b7
note __, 1
note A#, 2
note G#, 2
note F_, 2
note D_, 2
notetype $8, $c7
octave 2
note A#, 2
octave 3
note D_, 2
note F_, 2
intensity $f7
note G#, 2
note A#, 2
octave 4
note D_, 2
dutycycle $0
callchannel Music_Surf_branch_f5233
dutycycle $1
notetype $8, $a7
callchannel Music_Surf_branch_f5233
callchannel Music_Surf_branch_f5293
octave 4
note C_, 2
octave 3
note G_, 2
note D#, 2
note C_, 2
note D#, 2
note G_, 2
octave 4
note C_, 2
note D#, 2
note G_, 2
dutycycle $1
notetype $6, $97
callchannel Music_Surf_branch_f5293
intensity $a8
note G#, 6
note A_, 6
note A#, 3
octave 4
note D_, 3
intensity $a8
dutycycle $1
callchannel Music_Surf_branch_f52d9
octave 3
note D#, 8
note G#, 8
note D#, 8
dutycycle $3
notetype $8, $98
callchannel Music_Surf_branch_f52d9
notetype $c, $a7
octave 3
note D#, 12
octave 2
note F_, 4
note D#, 4
note F_, 4
note G#, 4
note D#, 2
note G#, 2
note B_, 2
octave 3
note D#, 2
loopchannel 0, Music_Surf_branch_f519e
Music_Surf_branch_f5233:
notetype $c, $a7
octave 3
note D#, 4
note A#, 1
note __, 1
octave 4
note D#, 1
note __, 1
octave 3
note A#, 1
note __, 1
octave 4
note D#, 1
note __, 1
octave 3
note D#, 4
note A#, 1
note __, 1
octave 4
note D#, 1
note __, 1
octave 3
note A#, 1
note __, 1
octave 4
note D#, 1
note __, 1
octave 3
note C#, 4
note A#, 1
note __, 1
octave 4
note C#, 1
note __, 1
octave 3
note A#, 1
note __, 1
octave 4
note C#, 1
note __, 1
octave 3
note C#, 4
note A#, 1
note __, 1
octave 4
note C#, 1
note __, 1
octave 3
note A#, 1
note __, 1
octave 4
note C#, 1
note __, 1
octave 3
note C_, 4
note G#, 1
note __, 1
octave 4
note C_, 1
note __, 1
octave 3
note G#, 1
note __, 1
octave 4
note C_, 1
note __, 1
octave 3
note C_, 4
note G#, 1
note __, 1
octave 4
note C_, 1
note __, 1
octave 3
note G#, 1
note __, 1
octave 4
note C_, 1
note __, 1
notetype $6, $a7
octave 3
note A#, 1
note B_, 15
octave 4
note D#, 4
octave 3
note B_, 4
note G#, 8
note F_, 8
note C#, 4
note D_, 4
endchannel
Music_Surf_branch_f5293:
octave 4
note G#, 16
note D#, 4
note C_, 4
octave 3
note G#, 4
octave 4
note C_, 4
note D_, 4
note D#, 4
note G_, 4
note G#, 4
notetype $8, $92
note A#, 2
note F_, 2
note D_, 2
note F_, 2
note D_, 2
octave 3
note A#, 2
octave 4
note D_, 2
octave 3
note A#, 2
note F_, 2
note A#, 2
note F_, 2
note D_, 2
octave 2
note A#, 2
octave 3
note D_, 2
note F_, 2
note G#, 2
note A#, 2
octave 4
note D_, 2
notetype $6, $97
note C#, 1
note D_, 15
note G_, 4
note D_, 4
octave 3
note A#, 4
octave 4
note D_, 4
note F_, 4
note G_, 4
note A_, 4
note A#, 4
notetype $8, $92
octave 5
note C_, 2
octave 4
note G_, 2
note D#, 2
note G_, 2
note D#, 2
note C_, 2
note D#, 2
note C_, 2
octave 3
note G_, 2
endchannel
Music_Surf_branch_f52d9:
octave 3
note A#, 3
note G_, 3
note A#, 3
octave 4
note D#, 9
notetype $6, $58
note D_, 1
note C#, 1
note C_, 1
octave 3
note B_, 1
note A#, 1
note A_, 1
note G#, 1
note G_, 1
intensity $a8
note D#, 4
note D_, 4
note D#, 4
note G_, 4
note A_, 4
note G#, 4
note G_, 4
note F#, 4
note F_, 4
note E_, 4
note G_, 8
note C#, 8
note A#, 8
note A_, 1
note A#, 3
note G#, 4
octave 4
note C_, 4
note F_, 12
intensity $58
note D#, 1
note D_, 1
note C#, 1
note C_, 1
octave 3
note B_, 1
note A#, 1
note A_, 1
note G_, 1
intensity $a8
note G#, 8
octave 4
note D#, 4
octave 3
note B_, 4
note G#, 8
note D#, 8
octave 2
note B_, 8
endchannel
Music_Surf_Ch2:
Music_Surf_branch_f5317:
notetype $c, $c2
stereopanning $f0
dutycycle $2
vibrato $14, $23
Music_Surf_branch_f5321:
octave 1
note A#, 4
octave 2
note A#, 1
note __, 3
note A#, 1
note __, 3
loopchannel 3, Music_Surf_branch_f5321
octave 1
note A#, 4
octave 2
note F_, 1
note __, 3
note A#, 1
note __, 3
Music_Surf_branch_f5333:
note D#, 4
note G_, 2
note G#, 2
note A#, 4
note D#, 4
note G_, 2
note G#, 2
note A#, 4
note C#, 4
note G_, 2
note G#, 2
note A#, 4
note C#, 4
note G_, 2
note G#, 2
note A#, 4
note C_, 4
note F_, 2
note G_, 2
note G#, 4
note C_, 4
note F_, 2
note G_, 2
note G#, 4
octave 1
note B_, 4
octave 2
note F_, 2
note G_, 2
note G#, 2
note A#, 2
note B_, 4
note A#, 4
note G#, 4
loopchannel 2, Music_Surf_branch_f5333
intensity $c7
callchannel Music_Surf_branch_f53b2
note D#, 4
note D_, 4
note C#, 4
callchannel Music_Surf_branch_f53b2
note D_, 4
note D#, 4
octave 1
note A#, 4
notetype $6, $b8
callchannel Music_Surf_branch_f53d6
dutycycle $1
intensity $b8
callchannel Music_Surf_branch_f53e8
dutycycle $2
callchannel Music_Surf_branch_f53f3
dutycycle $1
intensity $b8
callchannel Music_Surf_branch_f5404
octave 3
note B_, 16
octave 4
note C#, 8
pitchoffset 0, CC
dutycycle $3
callchannel Music_Surf_branch_f53d6
intensity $b8
dutycycle $1
callchannel Music_Surf_branch_f53e8
dutycycle $3
callchannel Music_Surf_branch_f53f3
intensity $b8
dutycycle $1
callchannel Music_Surf_branch_f5404
pitchoffset 0, C_
notetype $c, $b8
octave 4
note B_, 12
dutycycle $2
note A#, 4
note G#, 4
note D#, 4
note G#, 4
note A#, 4
note B_, 4
loopchannel 0, Music_Surf_branch_f5317
Music_Surf_branch_f53b2:
octave 1
note G#, 4
octave 3
note F_, 4
note D#, 4
octave 1
note G#, 4
octave 3
note D#, 4
note D_, 4
octave 1
note A#, 4
octave 3
note C_, 4
octave 2
note A#, 4
octave 1
note A#, 4
octave 2
note G#, 4
note A#, 4
octave 1
note G_, 4
octave 3
note D_, 4
note C_, 4
octave 1
note G_, 4
octave 2
note A#, 4
note G_, 4
note C_, 4
octave 3
note F_, 4
note G_, 4
endchannel
Music_Surf_branch_f53d6:
octave 4
note F_, 4
note D#, 4
note F_, 4
note G_, 12
intensity $58
note F#, 1
note F_, 1
note E_, 1
note D#, 1
note D_, 1
note C#, 1
note C_, 1
octave 3
note B_, 1
note A_, 1
endchannel
Music_Surf_branch_f53e8:
note A#, 7
octave 4
note C_, 8
note C#, 16
note C_, 4
octave 3
note B_, 4
octave 4
note C_, 16
note G_, 8
endchannel
Music_Surf_branch_f53f3:
note F#, 1
note G_, 3
note F_, 4
note G_, 4
note G#, 12
intensity $58
note G_, 1
note F#, 1
note F_, 1
note E_, 1
note D#, 1
note D_, 1
note C#, 1
octave 3
note B_, 1
endchannel
Music_Surf_branch_f5404:
octave 4
note C_, 8
note G_, 4
note G#, 4
note A#, 8
note G#, 8
note D#, 8
endchannel
Music_Surf_Ch3:
Music_Surf_branch_f540c:
stereopanning $ff
notetype $c, $15
vibrato $16, $23
octave 4
note A#, 12
octave 5
note C_, 12
note D_, 8
note D#, 4
note F_, 4
note G_, 4
note G#, 4
intensity $12
note A#, 12
note __, 4
note G#, 4
note G_, 4
notetype $6, $12
note F#, 1
note G_, 15
note G#, 4
note G_, 4
note F_, 16
octave 4
note A#, 8
notetype $c, $12
octave 5
note G#, 16
note G_, 4
note F_, 4
notetype $6, $12
note E_, 1
note F_, 15
note G_, 4
note F_, 4
note D#, 16
note F_, 8
notetype $c, $14
note A#, 12
note __, 4
note G#, 4
note G_, 4
notetype $6, $14
note F#, 1
note G_, 15
note G#, 4
note G_, 4
note F_, 16
octave 4
note A#, 8
notetype $c, $14
octave 5
note G#, 16
note G_, 4
note F_, 4
notetype $6, $14
note E_, 1
note F_, 15
note G_, 4
note F_, 4
note D#, 16
octave 6
note D#, 8
notetype $c, $13
note C_, 16
note D_, 4
note D#, 4
notetype $6, $13
note D_, 1
note D#, 15
note D_, 4
note C_, 4
octave 5
note D_, 16
octave 6
note D_, 8
notetype $c, $13
octave 5
note A#, 12
notetype $6, $13
note A_, 1
note A#, 7
octave 6
note C_, 8
note D_, 8
note F_, 16
note D#, 4
note D_, 4
note D#, 16
note D_, 8
notetype $c, $14
note C_, 12
note C_, 4
note D_, 4
note D#, 4
notetype $6, $14
note D_, 1
note D#, 15
note D_, 4
note C_, 4
octave 5
note D_, 16
octave 6
note D_, 8
notetype $c, $14
octave 5
note A#, 12
notetype $6, $14
note A_, 1
note A#, 7
octave 6
note C_, 8
note D_, 8
notetype $c, $14
note F_, 12
note G_, 8
octave 5
note A#, 4
intensity $15
callchannel Music_Surf_branch_f54c8
octave 2
note B_, 4
octave 3
note D#, 4
note F_, 4
note G#, 4
note A#, 4
note B_, 4
callchannel Music_Surf_branch_f54c8
octave 2
note B_, 4
octave 3
note D#, 4
note G#, 4
note B_, 12
octave 2
note B_, 12
octave 3
note D#, 8
octave 2
note B_, 4
loopchannel 0, Music_Surf_branch_f540c
Music_Surf_branch_f54c8:
octave 3
note D#, 4
note G_, 1
note __, 3
note A#, 1
note __, 3
note D#, 4
note G_, 1
note __, 3
note A#, 1
note __, 3
note C#, 4
note G_, 1
note __, 3
note A#, 1
note __, 3
note C#, 4
note G_, 1
note __, 3
note A#, 1
note __, 3
note C_, 4
note F_, 1
note __, 3
note G#, 1
note __, 3
note C_, 4
note F_, 1
note __, 3
note G#, 1
note __, 3
endchannel
| 13.150761 | 39 | 0.638094 |
0ef7ebab3cffdc52973eb5a29922019150a55bf6 | 76 | asm | Assembly | mastersystem/zxb-sms-2012-02-23/zxb-sms/wip/zxb/library-asm/abs32.asm | gb-archive/really-old-stuff | ffb39a518cad47e23353b3420b88e2f3521fd3d7 | [
"Apache-2.0"
] | 10 | 2016-10-27T20:46:02.000Z | 2021-11-01T15:49:13.000Z | mastersystem/zxb-sms-2012-02-23/zxb-sms/wip/zxb/library-asm/abs32.asm | gb-archive/really-old-stuff | ffb39a518cad47e23353b3420b88e2f3521fd3d7 | [
"Apache-2.0"
] | null | null | null | mastersystem/zxb-sms-2012-02-23/zxb-sms/wip/zxb/library-asm/abs32.asm | gb-archive/really-old-stuff | ffb39a518cad47e23353b3420b88e2f3521fd3d7 | [
"Apache-2.0"
] | 2 | 2015-03-11T14:28:08.000Z | 2017-11-02T10:57:57.000Z | ; 16 bit signed integer abs value
; HL = value
#include once <neg32.asm>
| 12.666667 | 34 | 0.684211 |
f2b7e7021a2fd82632e68cb8f42cae3ec84740f6 | 8,343 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2124.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2124.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48.log_21829_2124.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 %r9
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x16070, %r9
nop
nop
nop
nop
add $39034, %rax
movb $0x61, (%r9)
nop
nop
nop
xor $17331, %r9
lea addresses_WC_ht+0x1220c, %rbx
nop
nop
nop
and $26560, %r13
mov $0x6162636465666768, %rbp
movq %rbp, %xmm7
movups %xmm7, (%rbx)
xor %r9, %r9
lea addresses_D_ht+0x3c0c, %rbx
nop
cmp %r15, %r15
and $0xffffffffffffffc0, %rbx
movaps (%rbx), %xmm2
vpextrq $0, %xmm2, %rbp
xor %rax, %rax
lea addresses_normal_ht+0x162b6, %rbp
nop
dec %r12
movups (%rbp), %xmm0
vpextrq $0, %xmm0, %r15
nop
nop
nop
nop
add %r12, %r12
lea addresses_D_ht+0xde0c, %r15
nop
nop
nop
nop
inc %rbp
movb (%r15), %r12b
nop
nop
nop
xor %rax, %rax
lea addresses_A_ht+0x362c, %rax
add %r15, %r15
movl $0x61626364, (%rax)
nop
nop
nop
and %r15, %r15
lea addresses_WT_ht+0x1720c, %rbx
nop
nop
nop
nop
xor %r12, %r12
movups (%rbx), %xmm3
vpextrq $0, %xmm3, %r13
nop
nop
add %rbp, %rbp
lea addresses_D_ht+0x68c6, %rsi
lea addresses_normal_ht+0x1660c, %rdi
sub %rbp, %rbp
mov $40, %rcx
rep movsw
nop
nop
nop
xor $34284, %rbp
lea addresses_WC_ht+0x1ba0c, %rbx
nop
nop
nop
and $65207, %r15
mov $0x6162636465666768, %r12
movq %r12, %xmm3
vmovups %ymm3, (%rbx)
nop
nop
nop
nop
nop
inc %rbx
lea addresses_A_ht+0x5e0c, %rbp
clflush (%rbp)
nop
nop
nop
sub %r9, %r9
mov (%rbp), %r13
nop
nop
nop
nop
and %rcx, %rcx
lea addresses_UC_ht+0x1df98, %rbx
nop
nop
nop
and $31672, %r12
mov (%rbx), %r13
dec %r9
lea addresses_D_ht+0xef0c, %r13
nop
nop
xor $22511, %rcx
mov (%r13), %r12
nop
nop
nop
xor $55806, %r15
lea addresses_A_ht+0x19a0c, %rsi
nop
nop
nop
xor %r12, %r12
movb $0x61, (%rsi)
nop
nop
nop
nop
dec %r12
lea addresses_D_ht+0xb666, %rsi
lea addresses_normal_ht+0xdb10, %rdi
nop
nop
add %rbp, %rbp
mov $61, %rcx
rep movsq
nop
nop
cmp %r15, %r15
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r9
pop %r15
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r15
push %r8
push %r9
push %rdi
// Load
lea addresses_WC+0x1c5ac, %r10
nop
nop
nop
nop
nop
xor %r11, %r11
mov (%r10), %r15
// Exception!!!
nop
nop
nop
mov (0), %r15
nop
nop
nop
nop
nop
and $9482, %r11
// Load
lea addresses_US+0x1becc, %r12
clflush (%r12)
nop
xor $3209, %r9
vmovups (%r12), %ymm6
vextracti128 $0, %ymm6, %xmm6
vpextrq $1, %xmm6, %r15
nop
xor %r15, %r15
// Store
mov $0x7ed692000000058c, %r8
nop
nop
add $32903, %r11
mov $0x5152535455565758, %r12
movq %r12, %xmm2
vmovups %ymm2, (%r8)
nop
nop
nop
nop
add $19807, %r10
// Faulty Load
lea addresses_normal+0x5e0c, %r15
nop
nop
nop
nop
cmp %r8, %r8
movups (%r15), %xmm2
vpextrq $0, %xmm2, %r10
lea oracles, %r12
and $0xff, %r10
shlq $12, %r10
mov (%r12,%r10,1), %r10
pop %rdi
pop %r9
pop %r8
pop %r15
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': True, 'congruent': 4, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 5, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 7, 'size': 32, 'same': False, 'NT': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 10, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': True, 'congruent': 9, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 5, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 8, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 10, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 10, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 11, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': True, 'congruent': 6, 'size': 8, 'same': False, 'NT': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 10, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 0, 'same': False}}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 31.01487 | 2,999 | 0.653362 |
ce860870c89b4247ef88ab6c771fcba82d047d4b | 195 | asm | Assembly | app/src/modules/Folder/switchinterruption.asm | whxru/Mini-C | aa9a7dade19bdf74377f7948da1d02f183e13849 | [
"MIT"
] | null | null | null | app/src/modules/Folder/switchinterruption.asm | whxru/Mini-C | aa9a7dade19bdf74377f7948da1d02f183e13849 | [
"MIT"
] | null | null | null | app/src/modules/Folder/switchinterruption.asm | whxru/Mini-C | aa9a7dade19bdf74377f7948da1d02f183e13849 | [
"MIT"
] | null | null | null | .DATA
.TEXT 0x1190
start: mfc0 $t5,$12,0
andi $t5,$t5,0xfffe
mtc0 $t5,$12,0
lw $t4,0xfc70($0)
sw $t4,0xfc60($0)
addi $gp,$0,0
mfc0 $t5,$12,0
ori $t5,$t5,1
mtc0 $t5,$12,0
eret
| 15 | 21 | 0.569231 |
8e22387b8bad12558c0459dfb88a8944d6af0e29 | 29,932 | asm | Assembly | target/cos_117/disasm/iop_overlay1/XFMGET.asm | jrrk2/cray-sim | 52c9639808d6890517092637b188282c00cce4f7 | [
"BSL-1.0"
] | 49 | 2020-10-09T12:29:16.000Z | 2022-03-12T02:33:35.000Z | target/cos_117/disasm/iop_overlay1/XFMGET.asm | jrrk2/cray-sim | 52c9639808d6890517092637b188282c00cce4f7 | [
"BSL-1.0"
] | 1 | 2021-12-29T15:59:25.000Z | 2021-12-29T15:59:25.000Z | target/cos_117/disasm/iop_overlay1/XFMGET.asm | jrrk2/cray-sim | 52c9639808d6890517092637b188282c00cce4f7 | [
"BSL-1.0"
] | 6 | 2021-04-12T06:10:32.000Z | 2022-02-08T23:11:19.000Z | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@ OR[280] - device desc. address
@@ OR[281] - first sector - if valid: add sector back to the free-list, if 0xffff, allocate sectors from free-list
@@ OR[282] - sector count
@@ OR[283] - output parameter index OR[268+idx]: first sector of the newly allocated chain
@@
@@ OR[284] - return value
@@ OR[285] - 2k buffer
0x0000 (0x000000) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0001 (0x000002) 0x291C- f:00024 d: 284 | OR[284] = A
0x0002 (0x000004) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0003 (0x000006) 0x291D- f:00024 d: 285 | OR[285] = A
@ Allocate 2k buffer in OR[285]
0x0004 (0x000008) 0x101A- f:00010 d: 26 | A = 26 (0x001A)
0x0005 (0x00000A) 0x2929- f:00024 d: 297 | OR[297] = A
0x0006 (0x00000C) 0x111D- f:00010 d: 285 | A = 285 (0x011D)
0x0007 (0x00000E) 0x292A- f:00024 d: 298 | OR[298] = A
0x0008 (0x000010) 0x1129- f:00010 d: 297 | A = 297 (0x0129)
0x0009 (0x000012) 0x5800- f:00054 d: 0 | B = A
0x000A (0x000014) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x000B (0x000016) 0x7C09- f:00076 d: 9 | R = OR[9]
0x000C (0x000018) 0x8602- f:00103 d: 2 | P = P + 2 (0x000E), A # 0
0x000D (0x00001A) 0x700B- f:00070 d: 11 | P = P + 11 (0x0018)
0x000E (0x00001C) 0x1007- f:00010 d: 7 | A = 7 (0x0007)
0x000F (0x00001E) 0x2929- f:00024 d: 297 | OR[297] = A
0x0010 (0x000020) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x0011 (0x000022) 0x292A- f:00024 d: 298 | OR[298] = A
0x0012 (0x000024) 0x1129- f:00010 d: 297 | A = 297 (0x0129)
0x0013 (0x000026) 0x5800- f:00054 d: 0 | B = A
0x0014 (0x000028) 0x1800-0x2318 f:00014 d: 0 | A = 8984 (0x2318)
0x0016 (0x00002C) 0x7C09- f:00076 d: 9 | R = OR[9]
0x0017 (0x00002E) 0x7213- f:00071 d: 19 | P = P - 19 (0x0004)
@ Read sector 4 into the buffer
0x0018 (0x000030) 0x1004- f:00010 d: 4 | A = 4 (0x0004)
0x0019 (0x000032) 0x291E- f:00024 d: 286 | OR[286] = A
0x001A (0x000034) 0x74CE- f:00072 d: 206 | R = P + 206 (0x00E8) @ Call XDISK to read or write sector 4 - OR[286]: command code 3 - write 4 - read
@ Is second parameter sepcified, or default?
0x001B (0x000036) 0x2119- f:00020 d: 281 | A = OR[281]
0x001C (0x000038) 0x1E00-0xFFFF f:00017 d: 0 | A = A - 65535 (0xFFFF)
0x001E (0x00003C) 0x8402- f:00102 d: 2 | P = P + 2 (0x0020), A = 0
0x001F (0x00003E) 0x702F- f:00070 d: 47 | P = P + 47 (0x004E)
@ Second parameter is default
0x0020 (0x000040) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x0021 (0x000042) 0x291F- f:00024 d: 287 | OR[287] = A
0x0022 (0x000044) 0x211D- f:00020 d: 285 | A = OR[285] @ Read entry 7 into OR[296]
0x0023 (0x000046) 0x1407- f:00012 d: 7 | A = A + 7 (0x0007)
0x0024 (0x000048) 0x2908- f:00024 d: 264 | OR[264] = A
0x0025 (0x00004A) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0026 (0x00004C) 0x2928- f:00024 d: 296 | OR[296] = A
@ This is the loop head
0x0027 (0x00004E) 0x2128- f:00020 d: 296 | A = OR[296]
0x0028 (0x000050) 0x8425- f:00102 d: 37 | P = P + 37 (0x004D), A = 0 @ Return error-code 1089 if exhausted list
0x0029 (0x000052) 0x211D- f:00020 d: 285 | A = OR[285] @ Read current entry fields into OR[290] and OR[291]
0x002A (0x000054) 0x251F- f:00022 d: 287 | A = A + OR[287]
0x002B (0x000056) 0x2920- f:00024 d: 288 | OR[288] = A
0x002C (0x000058) 0x2120- f:00020 d: 288 | A = OR[288]
0x002D (0x00005A) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x002E (0x00005C) 0x2921- f:00024 d: 289 | OR[289] = A
0x002F (0x00005E) 0x3120- f:00030 d: 288 | A = (OR[288])
0x0030 (0x000060) 0x2922- f:00024 d: 290 | OR[290] = A
0x0031 (0x000062) 0x3121- f:00030 d: 289 | A = (OR[289])
0x0032 (0x000064) 0x2923- f:00024 d: 291 | OR[291] = A
0x0033 (0x000066) 0x211A- f:00020 d: 282 | A = OR[282]
0x0034 (0x000068) 0x2723- f:00023 d: 291 | A = A - OR[291]
0x0035 (0x00006A) 0x8402- f:00102 d: 2 | P = P + 2 (0x0037), A = 0
0x0036 (0x00006C) 0x7006- f:00070 d: 6 | P = P + 6 (0x003C)
@ If requested chain size matches the current one, remove it from free array and return
0x0037 (0x00006E) 0x74F5- f:00072 d: 245 | R = P + 245 (0x012C) @ Remove specified entry from array - OR[287]: Sector 4 array index (each entry is two words long), starts at index 8
0x0038 (0x000070) 0x2122- f:00020 d: 290 | A = OR[290]
0x0039 (0x000072) 0x2919- f:00024 d: 281 | OR[281] = A
0x003A (0x000074) 0x7081- f:00070 d: 129 | P = P + 129 (0x00BB) @ Some final checks, write back sector 4 and return
0x003B (0x000076) 0x700E- f:00070 d: 14 | P = P + 14 (0x0049)
@ If requested chain size is less than the current one, cut the chain into two, and return part of it
0x003C (0x000078) 0x211A- f:00020 d: 282 | A = OR[282]
0x003D (0x00007A) 0x2723- f:00023 d: 291 | A = A - OR[291]
0x003E (0x00007C) 0x8002- f:00100 d: 2 | P = P + 2 (0x0040), C = 0
0x003F (0x00007E) 0x700A- f:00070 d: 10 | P = P + 10 (0x0049)
0x0040 (0x000080) 0x2122- f:00020 d: 290 | A = OR[290]
0x0041 (0x000082) 0x251A- f:00022 d: 282 | A = A + OR[282]
0x0042 (0x000084) 0x3920- f:00034 d: 288 | (OR[288]) = A
0x0043 (0x000086) 0x2123- f:00020 d: 291 | A = OR[291]
0x0044 (0x000088) 0x271A- f:00023 d: 282 | A = A - OR[282]
0x0045 (0x00008A) 0x3921- f:00034 d: 289 | (OR[289]) = A
0x0046 (0x00008C) 0x2122- f:00020 d: 290 | A = OR[290]
0x0047 (0x00008E) 0x2919- f:00024 d: 281 | OR[281] = A
0x0048 (0x000090) 0x7073- f:00070 d: 115 | P = P + 115 (0x00BB) @ Some final checks, write back sector 4 and return
@ Move on to the next entry
0x0049 (0x000092) 0x2F28- f:00027 d: 296 | OR[296] = OR[296] - 1
0x004A (0x000094) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x004B (0x000096) 0x2B1F- f:00025 d: 287 | OR[287] = A + OR[287]
0x004C (0x000098) 0x7225- f:00071 d: 37 | P = P - 37 (0x0027)
0x004D (0x00009A) 0x706A- f:00070 d: 106 | P = P + 106 (0x00B7) @ Return error-code 1089
@ Second parameter is specified
0x004E (0x00009C) 0x2119- f:00020 d: 281 | A = OR[281]
0x004F (0x00009E) 0x251A- f:00022 d: 282 | A = A + OR[282]
0x0050 (0x0000A0) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x0051 (0x0000A2) 0x2924- f:00024 d: 292 | OR[292] = A
0x0052 (0x0000A4) 0x1008- f:00010 d: 8 | A = 8 (0x0008)
0x0053 (0x0000A6) 0x291F- f:00024 d: 287 | OR[287] = A
0x0054 (0x0000A8) 0x211D- f:00020 d: 285 | A = OR[285]
0x0055 (0x0000AA) 0x1407- f:00012 d: 7 | A = A + 7 (0x0007)
0x0056 (0x0000AC) 0x2908- f:00024 d: 264 | OR[264] = A
0x0057 (0x0000AE) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0058 (0x0000B0) 0x2928- f:00024 d: 296 | OR[296] = A
0x0059 (0x0000B2) 0x2128- f:00020 d: 296 | A = OR[296]
0x005A (0x0000B4) 0x845D- f:00102 d: 93 | P = P + 93 (0x00B7), A = 0 @ Return error-code 1089
0x005B (0x0000B6) 0x211D- f:00020 d: 285 | A = OR[285]
0x005C (0x0000B8) 0x251F- f:00022 d: 287 | A = A + OR[287]
0x005D (0x0000BA) 0x2920- f:00024 d: 288 | OR[288] = A
0x005E (0x0000BC) 0x2120- f:00020 d: 288 | A = OR[288]
0x005F (0x0000BE) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0060 (0x0000C0) 0x2921- f:00024 d: 289 | OR[289] = A
0x0061 (0x0000C2) 0x3120- f:00030 d: 288 | A = (OR[288])
0x0062 (0x0000C4) 0x2922- f:00024 d: 290 | OR[290] = A
0x0063 (0x0000C6) 0x3121- f:00030 d: 289 | A = (OR[289])
0x0064 (0x0000C8) 0x2923- f:00024 d: 291 | OR[291] = A
0x0065 (0x0000CA) 0x2122- f:00020 d: 290 | A = OR[290]
0x0066 (0x0000CC) 0x2523- f:00022 d: 291 | A = A + OR[291]
0x0067 (0x0000CE) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x0068 (0x0000D0) 0x2925- f:00024 d: 293 | OR[293] = A
0x0069 (0x0000D2) 0x2119- f:00020 d: 281 | A = OR[281]
0x006A (0x0000D4) 0x2722- f:00023 d: 290 | A = A - OR[290]
0x006B (0x0000D6) 0x8003- f:00100 d: 3 | P = P + 3 (0x006E), C = 0
0x006C (0x0000D8) 0x8402- f:00102 d: 2 | P = P + 2 (0x006E), A = 0
0x006D (0x0000DA) 0x7002- f:00070 d: 2 | P = P + 2 (0x006F)
0x006E (0x0000DC) 0x7015- f:00070 d: 21 | P = P + 21 (0x0083)
0x006F (0x0000DE) 0x2124- f:00020 d: 292 | A = OR[292]
0x0070 (0x0000E0) 0x2725- f:00023 d: 293 | A = A - OR[293]
0x0071 (0x0000E2) 0x8002- f:00100 d: 2 | P = P + 2 (0x0073), C = 0
0x0072 (0x0000E4) 0x7011- f:00070 d: 17 | P = P + 17 (0x0083)
0x0073 (0x0000E6) 0x748F- f:00072 d: 143 | R = P + 143 (0x0102) @ Add space in free chain array at given offset - OR[287]: Free chain array offset
0x0074 (0x0000E8) 0x2119- f:00020 d: 281 | A = OR[281]
0x0075 (0x0000EA) 0x2722- f:00023 d: 290 | A = A - OR[290]
0x0076 (0x0000EC) 0x3921- f:00034 d: 289 | (OR[289]) = A
0x0077 (0x0000EE) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x0078 (0x0000F0) 0x2B20- f:00025 d: 288 | OR[288] = A + OR[288]
0x0079 (0x0000F2) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x007A (0x0000F4) 0x2B21- f:00025 d: 289 | OR[289] = A + OR[289]
0x007B (0x0000F6) 0x2124- f:00020 d: 292 | A = OR[292]
0x007C (0x0000F8) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x007D (0x0000FA) 0x3920- f:00034 d: 288 | (OR[288]) = A
0x007E (0x0000FC) 0x2125- f:00020 d: 293 | A = OR[293]
0x007F (0x0000FE) 0x2724- f:00023 d: 292 | A = A - OR[292]
0x0080 (0x000100) 0x3921- f:00034 d: 289 | (OR[289]) = A
0x0081 (0x000102) 0x703A- f:00070 d: 58 | P = P + 58 (0x00BB)
0x0082 (0x000104) 0x7031- f:00070 d: 49 | P = P + 49 (0x00B3)
0x0083 (0x000106) 0x2119- f:00020 d: 281 | A = OR[281]
0x0084 (0x000108) 0x2722- f:00023 d: 290 | A = A - OR[290]
0x0085 (0x00010A) 0x8003- f:00100 d: 3 | P = P + 3 (0x0088), C = 0
0x0086 (0x00010C) 0x8402- f:00102 d: 2 | P = P + 2 (0x0088), A = 0
0x0087 (0x00010E) 0x7002- f:00070 d: 2 | P = P + 2 (0x0089)
0x0088 (0x000110) 0x700A- f:00070 d: 10 | P = P + 10 (0x0092)
0x0089 (0x000112) 0x2124- f:00020 d: 292 | A = OR[292]
0x008A (0x000114) 0x2725- f:00023 d: 293 | A = A - OR[293]
0x008B (0x000116) 0x8402- f:00102 d: 2 | P = P + 2 (0x008D), A = 0
0x008C (0x000118) 0x7006- f:00070 d: 6 | P = P + 6 (0x0092)
0x008D (0x00011A) 0x2123- f:00020 d: 291 | A = OR[291]
0x008E (0x00011C) 0x271A- f:00023 d: 282 | A = A - OR[282]
0x008F (0x00011E) 0x3921- f:00034 d: 289 | (OR[289]) = A
0x0090 (0x000120) 0x702B- f:00070 d: 43 | P = P + 43 (0x00BB)
0x0091 (0x000122) 0x7022- f:00070 d: 34 | P = P + 34 (0x00B3)
0x0092 (0x000124) 0x2119- f:00020 d: 281 | A = OR[281]
0x0093 (0x000126) 0x2722- f:00023 d: 290 | A = A - OR[290]
0x0094 (0x000128) 0x8402- f:00102 d: 2 | P = P + 2 (0x0096), A = 0
0x0095 (0x00012A) 0x700D- f:00070 d: 13 | P = P + 13 (0x00A2)
0x0096 (0x00012C) 0x2124- f:00020 d: 292 | A = OR[292]
0x0097 (0x00012E) 0x2725- f:00023 d: 293 | A = A - OR[293]
0x0098 (0x000130) 0x8002- f:00100 d: 2 | P = P + 2 (0x009A), C = 0
0x0099 (0x000132) 0x7009- f:00070 d: 9 | P = P + 9 (0x00A2)
0x009A (0x000134) 0x2122- f:00020 d: 290 | A = OR[290]
0x009B (0x000136) 0x251A- f:00022 d: 282 | A = A + OR[282]
0x009C (0x000138) 0x3920- f:00034 d: 288 | (OR[288]) = A
0x009D (0x00013A) 0x2123- f:00020 d: 291 | A = OR[291]
0x009E (0x00013C) 0x271A- f:00023 d: 282 | A = A - OR[282]
0x009F (0x00013E) 0x3921- f:00034 d: 289 | (OR[289]) = A
0x00A0 (0x000140) 0x701B- f:00070 d: 27 | P = P + 27 (0x00BB)
0x00A1 (0x000142) 0x7012- f:00070 d: 18 | P = P + 18 (0x00B3)
0x00A2 (0x000144) 0x2119- f:00020 d: 281 | A = OR[281]
0x00A3 (0x000146) 0x2722- f:00023 d: 290 | A = A - OR[290]
0x00A4 (0x000148) 0x8402- f:00102 d: 2 | P = P + 2 (0x00A6), A = 0
0x00A5 (0x00014A) 0x7008- f:00070 d: 8 | P = P + 8 (0x00AD)
0x00A6 (0x00014C) 0x2124- f:00020 d: 292 | A = OR[292]
0x00A7 (0x00014E) 0x2725- f:00023 d: 293 | A = A - OR[293]
0x00A8 (0x000150) 0x8402- f:00102 d: 2 | P = P + 2 (0x00AA), A = 0
0x00A9 (0x000152) 0x7004- f:00070 d: 4 | P = P + 4 (0x00AD)
0x00AA (0x000154) 0x7482- f:00072 d: 130 | R = P + 130 (0x012C)
0x00AB (0x000156) 0x7010- f:00070 d: 16 | P = P + 16 (0x00BB)
0x00AC (0x000158) 0x7007- f:00070 d: 7 | P = P + 7 (0x00B3)
0x00AD (0x00015A) 0x2119- f:00020 d: 281 | A = OR[281]
0x00AE (0x00015C) 0x2722- f:00023 d: 290 | A = A - OR[290]
0x00AF (0x00015E) 0x8002- f:00100 d: 2 | P = P + 2 (0x00B1), C = 0
0x00B0 (0x000160) 0x7003- f:00070 d: 3 | P = P + 3 (0x00B3)
0x00B1 (0x000162) 0x1001- f:00010 d: 1 | A = 1 (0x0001)
0x00B2 (0x000164) 0x2928- f:00024 d: 296 | OR[296] = A
0x00B3 (0x000166) 0x2F28- f:00027 d: 296 | OR[296] = OR[296] - 1
0x00B4 (0x000168) 0x1002- f:00010 d: 2 | A = 2 (0x0002)
0x00B5 (0x00016A) 0x2B1F- f:00025 d: 287 | OR[287] = A + OR[287]
0x00B6 (0x00016C) 0x725D- f:00071 d: 93 | P = P - 93 (0x0059)
@ Return error-code 1089
0x00B7 (0x00016E) 0x1800-0x0441 f:00014 d: 0 | A = 1089 (0x0441)
0x00B9 (0x000172) 0x291C- f:00024 d: 284 | OR[284] = A
0x00BA (0x000174) 0x7013- f:00070 d: 19 | P = P + 19 (0x00CD)
@ Protect sectors below or equal to 6 - if that's what was specified --> FATAL
0x00BB (0x000176) 0x1006- f:00010 d: 6 | A = 6 (0x0006)
0x00BC (0x000178) 0x2719- f:00023 d: 281 | A = A - OR[281]
0x00BD (0x00017A) 0x8003- f:00100 d: 3 | P = P + 3 (0x00C0), C = 0
0x00BE (0x00017C) 0x8402- f:00102 d: 2 | P = P + 2 (0x00C0), A = 0
0x00BF (0x00017E) 0x7C34- f:00076 d: 52 | R = OR[52]
0x00C0 (0x000180) 0x0000- f:00000 d: 0 | PASS
@ Sector number is greater than 6, make sure chain doesn't fall off of the end of the disk. If it does --> FATAL
0x00C1 (0x000182) 0x2119- f:00020 d: 281 | A = OR[281]
0x00C2 (0x000184) 0x251A- f:00022 d: 282 | A = A + OR[282]
0x00C3 (0x000186) 0x1601- f:00013 d: 1 | A = A - 1 (0x0001)
0x00C4 (0x000188) 0x2908- f:00024 d: 264 | OR[264] = A
0x00C5 (0x00018A) 0x1800-0x404B f:00014 d: 0 | A = 16459 (0x404B)
0x00C7 (0x00018E) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x00C8 (0x000190) 0xB034- f:00130 d: 52 | R = OR[52], C = 0
0x00C9 (0x000192) 0x0000- f:00000 d: 0 | PASS
@ Write back sector 4
0x00CA (0x000194) 0x1003- f:00010 d: 3 | A = 3 (0x0003)
0x00CB (0x000196) 0x291E- f:00024 d: 286 | OR[286] = A
0x00CC (0x000198) 0x741C- f:00072 d: 28 | R = P + 28 (0x00E8) @ Call XDISK to read or write sector 4 - OR[286]: command code 3 - write 4 - read
@ Free up buffer, if allocated
0x00CD (0x00019A) 0x211D- f:00020 d: 285 | A = OR[285]
0x00CE (0x00019C) 0x8602- f:00103 d: 2 | P = P + 2 (0x00D0), A # 0
0x00CF (0x00019E) 0x7009- f:00070 d: 9 | P = P + 9 (0x00D8)
0x00D0 (0x0001A0) 0x101B- f:00010 d: 27 | A = 27 (0x001B)
0x00D1 (0x0001A2) 0x2929- f:00024 d: 297 | OR[297] = A
0x00D2 (0x0001A4) 0x211D- f:00020 d: 285 | A = OR[285]
0x00D3 (0x0001A6) 0x292A- f:00024 d: 298 | OR[298] = A
0x00D4 (0x0001A8) 0x1129- f:00010 d: 297 | A = 297 (0x0129)
0x00D5 (0x0001AA) 0x5800- f:00054 d: 0 | B = A
0x00D6 (0x0001AC) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00D7 (0x0001AE) 0x7C09- f:00076 d: 9 | R = OR[9]
@ Set output parameter from OR[281]
0x00D8 (0x0001B0) 0x2005- f:00020 d: 5 | A = OR[5]
0x00D9 (0x0001B2) 0x251B- f:00022 d: 283 | A = A + OR[283]
0x00DA (0x0001B4) 0x290D- f:00024 d: 269 | OR[269] = A
0x00DB (0x0001B6) 0x2119- f:00020 d: 281 | A = OR[281]
0x00DC (0x0001B8) 0x390D- f:00034 d: 269 | (OR[269]) = A
@ Set return value from OR[284] and return from overlay
0x00DD (0x0001BA) 0x2005- f:00020 d: 5 | A = OR[5]
0x00DE (0x0001BC) 0x1406- f:00012 d: 6 | A = A + 6 (0x0006)
0x00DF (0x0001BE) 0x2908- f:00024 d: 264 | OR[264] = A
0x00E0 (0x0001C0) 0x211C- f:00020 d: 284 | A = OR[284]
0x00E1 (0x0001C2) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x00E2 (0x0001C4) 0x102A- f:00010 d: 42 | A = 42 (0x002A)
0x00E3 (0x0001C6) 0x2929- f:00024 d: 297 | OR[297] = A
0x00E4 (0x0001C8) 0x1129- f:00010 d: 297 | A = 297 (0x0129)
0x00E5 (0x0001CA) 0x5800- f:00054 d: 0 | B = A
0x00E6 (0x0001CC) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x00E7 (0x0001CE) 0x7C09- f:00076 d: 9 | R = OR[9]
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@ Call XDISK to access sector 4
@@ Input:
@@ OR[286]: command code 3 - write 4 - read
0x00E8 (0x0001D0) 0x1028- f:00010 d: 40 | A = 40 (0x0028)
0x00E9 (0x0001D2) 0x2929- f:00024 d: 297 | OR[297] = A
0x00EA (0x0001D4) 0x1800-0x00A6 f:00014 d: 0 | A = 166 (0x00A6)
0x00EC (0x0001D8) 0x292A- f:00024 d: 298 | OR[298] = A
0x00ED (0x0001DA) 0x2118- f:00020 d: 280 | A = OR[280] @ Device desc.
0x00EE (0x0001DC) 0x292B- f:00024 d: 299 | OR[299] = A
0x00EF (0x0001DE) 0x211E- f:00020 d: 286 | A = OR[286] @ Command code
0x00F0 (0x0001E0) 0x292C- f:00024 d: 300 | OR[300] = A
0x00F1 (0x0001E2) 0x211D- f:00020 d: 285 | A = OR[285] @ Buffer
0x00F2 (0x0001E4) 0x292D- f:00024 d: 301 | OR[301] = A
0x00F3 (0x0001E6) 0x1000- f:00010 d: 0 | A = 0 (0x0000) @ Not used
0x00F4 (0x0001E8) 0x292E- f:00024 d: 302 | OR[302] = A
0x00F5 (0x0001EA) 0x1004- f:00010 d: 4 | A = 4 (0x0004) @ Sector number
0x00F6 (0x0001EC) 0x292F- f:00024 d: 303 | OR[303] = A
0x00F7 (0x0001EE) 0x1129- f:00010 d: 297 | A = 297 (0x0129)
0x00F8 (0x0001F0) 0x5800- f:00054 d: 0 | B = A
0x00F9 (0x0001F2) 0x1800-0x2318 f:00014 d: 0 | A = 8984 (0x2318)
0x00FB (0x0001F6) 0x7C09- f:00076 d: 9 | R = OR[9]
0x00FC (0x0001F8) 0x291C- f:00024 d: 284 | OR[284] = A
0x00FD (0x0001FA) 0x211C- f:00020 d: 284 | A = OR[284]
0x00FE (0x0001FC) 0x8602- f:00103 d: 2 | P = P + 2 (0x0100), A # 0
0x00FF (0x0001FE) 0x7002- f:00070 d: 2 | P = P + 2 (0x0101)
0x0100 (0x000200) 0x7233- f:00071 d: 51 | P = P - 51 (0x00CD)
0x0101 (0x000202) 0x0200- f:00001 d: 0 | EXIT
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@ Add space in free chain array at given offset
@@
@@ Input:
@@ OR[287]: Free chain array offset
@@ OR[285]: buffer address
@ check if offset 2046 in buffer is 0
0x0102 (0x000204) 0x1800-0x0800 f:00014 d: 0 | A = 2048 (0x0800)
0x0104 (0x000208) 0x1602- f:00013 d: 2 | A = A - 2 (0x0002)
0x0105 (0x00020A) 0x2926- f:00024 d: 294 | OR[294] = A
0x0106 (0x00020C) 0x211D- f:00020 d: 285 | A = OR[285]
0x0107 (0x00020E) 0x2526- f:00022 d: 294 | A = A + OR[294]
0x0108 (0x000210) 0x2913- f:00024 d: 275 | OR[275] = A
0x0109 (0x000212) 0x3113- f:00030 d: 275 | A = (OR[275])
0x010A (0x000214) 0x8602- f:00103 d: 2 | P = P + 2 (0x010C), A # 0
@ Offset 2046 is non-0: return from overlay with exit-code 1095
0x010B (0x000216) 0x7005- f:00070 d: 5 | P = P + 5 (0x0110)
0x010C (0x000218) 0x1800-0x0447 f:00014 d: 0 | A = 1095 (0x0447)
0x010E (0x00021C) 0x291C- f:00024 d: 284 | OR[284] = A
0x010F (0x00021E) 0x7242- f:00071 d: 66 | P = P - 66 (0x00CD)
0x0110 (0x000220) 0x2126- f:00020 d: 294 | A = OR[294]
0x0111 (0x000222) 0x271F- f:00023 d: 287 | A = A - OR[287]
0x0112 (0x000224) 0x8415- f:00102 d: 21 | P = P + 21 (0x0127), A = 0
0x0113 (0x000226) 0x2126- f:00020 d: 294 | A = OR[294]
0x0114 (0x000228) 0x1602- f:00013 d: 2 | A = A - 2 (0x0002)
0x0115 (0x00022A) 0x2926- f:00024 d: 294 | OR[294] = A
0x0116 (0x00022C) 0x211D- f:00020 d: 285 | A = OR[285]
0x0117 (0x00022E) 0x2526- f:00022 d: 294 | A = A + OR[294]
0x0118 (0x000230) 0x2920- f:00024 d: 288 | OR[288] = A
0x0119 (0x000232) 0x2120- f:00020 d: 288 | A = OR[288]
0x011A (0x000234) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x011B (0x000236) 0x2921- f:00024 d: 289 | OR[289] = A
0x011C (0x000238) 0x2120- f:00020 d: 288 | A = OR[288]
0x011D (0x00023A) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x011E (0x00023C) 0x2908- f:00024 d: 264 | OR[264] = A
0x011F (0x00023E) 0x3120- f:00030 d: 288 | A = (OR[288])
0x0120 (0x000240) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0121 (0x000242) 0x2121- f:00020 d: 289 | A = OR[289]
0x0122 (0x000244) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x0123 (0x000246) 0x2908- f:00024 d: 264 | OR[264] = A
0x0124 (0x000248) 0x3121- f:00030 d: 289 | A = (OR[289])
0x0125 (0x00024A) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x0126 (0x00024C) 0x7216- f:00071 d: 22 | P = P - 22 (0x0110)
0x0127 (0x00024E) 0x211D- f:00020 d: 285 | A = OR[285]
0x0128 (0x000250) 0x1407- f:00012 d: 7 | A = A + 7 (0x0007)
0x0129 (0x000252) 0x2908- f:00024 d: 264 | OR[264] = A
0x012A (0x000254) 0x3D08- f:00036 d: 264 | (OR[264]) = (OR[264]) + 1
0x012B (0x000256) 0x0200- f:00001 d: 0 | EXIT
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@ Remove specified entry from free chain array
@@
@@ Input:
@@ OR[287]: Free chain array offset
@@ OR[285]: buffer address
0x012C (0x000258) 0x1800-0x0800 f:00014 d: 0 | A = 2048 (0x0800)
0x012E (0x00025C) 0x1602- f:00013 d: 2 | A = A - 2 (0x0002)
0x012F (0x00025E) 0x2908- f:00024 d: 264 | OR[264] = A
0x0130 (0x000260) 0x211F- f:00020 d: 287 | A = OR[287]
0x0131 (0x000262) 0x2708- f:00023 d: 264 | A = A - OR[264]
0x0132 (0x000264) 0x8414- f:00102 d: 20 | P = P + 20 (0x0146), A = 0 @ Terminate loop if we've finished updating the array
0x0133 (0x000266) 0x211D- f:00020 d: 285 | A = OR[285]
0x0134 (0x000268) 0x251F- f:00022 d: 287 | A = A + OR[287]
0x0135 (0x00026A) 0x2920- f:00024 d: 288 | OR[288] = A @ OR[288] points to the array element in memory
0x0136 (0x00026C) 0x2120- f:00020 d: 288 | A = OR[288]
0x0137 (0x00026E) 0x1401- f:00012 d: 1 | A = A + 1 (0x0001)
0x0138 (0x000270) 0x2921- f:00024 d: 289 | OR[289] = A @ OR[289] points to the second field of the array element in memory
0x0139 (0x000272) 0x2120- f:00020 d: 288 | A = OR[288]
0x013A (0x000274) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x013B (0x000276) 0x2908- f:00024 d: 264 | OR[264] = A @ OR[264] points to the next array element in memory
0x013C (0x000278) 0x3108- f:00030 d: 264 | A = (OR[264])
0x013D (0x00027A) 0x3920- f:00034 d: 288 | (OR[288]) = A @ Copy the first field of the next entry into first field of the current one
0x013E (0x00027C) 0x2121- f:00020 d: 289 | A = OR[289]
0x013F (0x00027E) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x0140 (0x000280) 0x2908- f:00024 d: 264 | OR[264] = A @ OR[264] points to the seconf field of the next array element in memory
0x0141 (0x000282) 0x3108- f:00030 d: 264 | A = (OR[264])
0x0142 (0x000284) 0x3921- f:00034 d: 289 | (OR[289]) = A @ Copy the second field of the next entry into the second field of the current one
0x0143 (0x000286) 0x1002- f:00010 d: 2 | A = 2 (0x0002) @ Increment entry index and loop
0x0144 (0x000288) 0x2B1F- f:00025 d: 287 | OR[287] = A + OR[287]
0x0145 (0x00028A) 0x7219- f:00071 d: 25 | P = P - 25 (0x012C)
@ Finished updating the array - null-terminate the array
0x0146 (0x00028C) 0x2120- f:00020 d: 288 | A = OR[288]
0x0147 (0x00028E) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x0148 (0x000290) 0x2908- f:00024 d: 264 | OR[264] = A
0x0149 (0x000292) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x014A (0x000294) 0x3908- f:00034 d: 264 | (OR[264]) = A
0x014B (0x000296) 0x2121- f:00020 d: 289 | A = OR[289]
0x014C (0x000298) 0x1402- f:00012 d: 2 | A = A + 2 (0x0002)
0x014D (0x00029A) 0x2908- f:00024 d: 264 | OR[264] = A
0x014E (0x00029C) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x014F (0x00029E) 0x3908- f:00034 d: 264 | (OR[264]) = A
@ Decrement the number of fields in the array, stored at offset 7
0x0150 (0x0002A0) 0x211D- f:00020 d: 285 | A = OR[285]
0x0151 (0x0002A2) 0x1407- f:00012 d: 7 | A = A + 7 (0x0007)
0x0152 (0x0002A4) 0x2908- f:00024 d: 264 | OR[264] = A
0x0153 (0x0002A6) 0x3F08- f:00037 d: 264 | (OR[264]) = (OR[264]) - 1
0x0154 (0x0002A8) 0x0200- f:00001 d: 0 | EXIT
0x0155 (0x0002AA) 0x0000- f:00000 d: 0 | PASS
0x0156 (0x0002AC) 0x0000- f:00000 d: 0 | PASS
0x0157 (0x0002AE) 0x0000- f:00000 d: 0 | PASS
| 77.14433 | 196 | 0.48373 |
6c08c0812b282469ee6944b614606c07fe60690c | 2,048 | asm | Assembly | programs/oeis/017/A017810.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/017/A017810.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/017/A017810.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A017810: Binomial coefficients C(94,n).
; 1,94,4371,134044,3049501,54891018,814216767,10235867928,111315063717,1063677275518,9041256841903,69042324974532,477542747740513,3012192716517082,17427686431277403,92947660966812816,458929076023638279,2105674584108457986,9007607943130625829,36030431772522503316,135114119146959387435,476116419851190222390,1579840847688040283385,4945588740588647843640,14630700024241416537435,40965960067875966304818,108717355564747756732017,273806673274179535473228,655180253906072459882367,1491099888200026977663318,3230716424433391784937189,6669866166572163685031616,13131299015438947254905994,24670925422945900903156716,44262542670579410443898814,75878644578136132189540824,124356667503056438866191906,194937478788574958222679204,292406218182862437334018806,419865338929238371556539824,577314841027702760890242258,760365888182828026538367852,959509335087854414441273718,1160336870338800687231307752,1344935917892700796563561258,1494373242103000885070623620,1591832366587979203662186030,1625701140345170250548615520,1591832366587979203662186030,1494373242103000885070623620,1344935917892700796563561258,1160336870338800687231307752,959509335087854414441273718,760365888182828026538367852,577314841027702760890242258,419865338929238371556539824,292406218182862437334018806,194937478788574958222679204,124356667503056438866191906,75878644578136132189540824,44262542670579410443898814,24670925422945900903156716,13131299015438947254905994,6669866166572163685031616,3230716424433391784937189,1491099888200026977663318,655180253906072459882367,273806673274179535473228,108717355564747756732017,40965960067875966304818,14630700024241416537435,4945588740588647843640,1579840847688040283385,476116419851190222390,135114119146959387435,36030431772522503316,9007607943130625829,2105674584108457986,458929076023638279,92947660966812816,17427686431277403,3012192716517082,477542747740513,69042324974532,9041256841903,1063677275518,111315063717,10235867928,814216767,54891018,3049501,134044,4371,94,1
mov $1,94
bin $1,$0
mov $0,$1
| 292.571429 | 1,974 | 0.939941 |
c88e2a770660fcf1ad4a2510dd072ba0851048e8 | 1,265 | asm | Assembly | code/Forec/t13.asm | KongoHuster/assembly-exercise | 1c4a44c60c0e93a1350ed4f887aeaf1414702a51 | [
"0BSD"
] | 1 | 2021-08-20T03:57:29.000Z | 2021-08-20T03:57:29.000Z | code/Forec/t13.asm | KongoHuster/assembly-exercise | 1c4a44c60c0e93a1350ed4f887aeaf1414702a51 | [
"0BSD"
] | null | null | null | code/Forec/t13.asm | KongoHuster/assembly-exercise | 1c4a44c60c0e93a1350ed4f887aeaf1414702a51 | [
"0BSD"
] | null | null | null | ;; last edit date: 2016/10/24
;; author: Forec
;; LICENSE
;; Copyright (c) 2015-2017, Forec <forec@bupt.edu.cn>
;; Permission to use, copy, modify, and/or distribute this code for any
;; purpose with or without fee is hereby granted, provided that the above
;; copyright notice and this permission notice appear in all copies.
;; THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
;; WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
;; MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
;; ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
;; WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
;; ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
;; OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
title forec_t13
.model small
.data
inputinfo db 'Input: $'
outputinfo db 0dh, 0ah, 'Output: $'
.code
start:
mov ax, @data
mov ds, ax
mov dx, offset inputinfo
mov ah, 9h
int 21h
mov ah, 01h
int 21h
mov cl, al
sub cl, 030h
mov dx, offset outputinfo
mov ah, 9h
int 21h
mov ah, 02h
mov dl, 'a' ;; 07h 用 a 代替 beep 观察输出
beep:
cmp cl, 00h
jz quit
dec cl
int 21h
jmp beep
quit:
mov ah, 4ch
int 21h
end start | 25.816327 | 75 | 0.727273 |
ec113021d445eea97d3a04ba70bbec37eafa07f4 | 784 | asm | Assembly | oeis/335/A335310.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/335/A335310.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/335/A335310.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A335310: a(n) = Sum_{k=0..n} binomial(n,k) * binomial(n+k,k) * (-n)^(n-k).
; Submitted by Christian Krause
; 1,1,-2,11,-74,477,-804,-84425,3315334,-102211207,3005297956,-88338323709,2627003399164,-78764141488043,2341929797646648,-66394419743289105,1609460569459689286,-18001777147777896975,-1625299659961386724524,196005371138608184827003,-15656103214825989224075180,1112642530405235131883231181,-75618125649743392587182510072,5052798330549553607425358134311,-336102449968145803310919980808804,22377503508846539174557883557718377,-1493371166150224285878653323820720024,99730960711959103894625429082115701875
mov $1,1
mov $3,$0
sub $0,1
mov $4,1
lpb $3
mul $1,$3
mul $1,-1
mul $1,$3
add $5,$4
div $1,$5
mul $1,$0
add $2,$1
sub $3,1
add $4,2
lpe
mov $0,$2
add $0,1
| 35.636364 | 500 | 0.771684 |
d9f8ed051f14b144eb702eb9f90810d8651a056e | 791 | asm | Assembly | read.asm | kgonzalez712/CE4301-PI | 9e4ab2bebd21d323ad5643fd9266dcc94e8956f4 | [
"MIT"
] | null | null | null | read.asm | kgonzalez712/CE4301-PI | 9e4ab2bebd21d323ad5643fd9266dcc94e8956f4 | [
"MIT"
] | null | null | null | read.asm | kgonzalez712/CE4301-PI | 9e4ab2bebd21d323ad5643fd9266dcc94e8956f4 | [
"MIT"
] | null | null | null | section .text
_read: ;tell linker entry point
mov ecx, 0 ; Open file
mov ebx, file_name
mov eax, 5
int 80h
mov edx,700 ; number of bytes to read - one for each letter of the file contents
mov ecx, info ; move the memory address of our file contents variable into ecx
mov ebx, eax ; move the opened file descriptor into EBX
mov eax, 3 ; invoke SYS_READ (kernel opcode 3)
int 80h ; call the kernel
;close the file
mov eax, 6
mov ebx, [fd_in]
int 80h
mov r14, info
mov r8b, byte[info + ebp]
ret
section .data
file_name db 'readme.txt'
section .bss
fd_out resb 1
fd_in resb 1
info resb 700 | 24.71875 | 98 | 0.552465 |
7dfeba128e4bb6288b459f7d52c72160f00ac4b1 | 7,460 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i3-7100_9_0x84_notsx.log_21829_1081.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i3-7100_9_0x84_notsx.log_21829_1081.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_ht_zr_un_/i3-7100_9_0x84_notsx.log_21829_1081.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 %r8
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_D_ht+0x1b642, %rsi
lea addresses_A_ht+0xca42, %rdi
clflush (%rsi)
nop
sub %r15, %r15
mov $118, %rcx
rep movsl
nop
nop
nop
xor %rdi, %rdi
lea addresses_WC_ht+0x14942, %rcx
nop
nop
nop
nop
nop
sub %r9, %r9
movw $0x6162, (%rcx)
nop
nop
nop
nop
cmp $56304, %rsi
lea addresses_D_ht+0x15382, %rdx
add %r8, %r8
mov $0x6162636465666768, %r9
movq %r9, %xmm4
movups %xmm4, (%rdx)
inc %r8
lea addresses_UC_ht+0xa922, %rcx
nop
sub %rsi, %rsi
movl $0x61626364, (%rcx)
nop
nop
nop
nop
and $18522, %rcx
lea addresses_UC_ht+0x16862, %rdi
nop
nop
nop
nop
cmp %rcx, %rcx
mov (%rdi), %r15w
nop
nop
nop
sub %rsi, %rsi
lea addresses_D_ht+0x7442, %rcx
nop
nop
nop
cmp $27267, %r8
mov $0x6162636465666768, %rsi
movq %rsi, (%rcx)
nop
nop
add $56084, %rcx
lea addresses_UC_ht+0xe42, %r15
nop
nop
nop
nop
nop
sub $46226, %r9
movb (%r15), %cl
nop
cmp %rcx, %rcx
lea addresses_normal_ht+0x13b88, %r8
nop
nop
nop
nop
xor %rdx, %rdx
mov (%r8), %rcx
nop
nop
nop
nop
xor %r9, %r9
lea addresses_UC_ht+0xa342, %rsi
lea addresses_UC_ht+0x18a46, %rdi
nop
nop
nop
dec %r15
mov $93, %rcx
rep movsq
nop
nop
and $597, %r15
lea addresses_UC_ht+0x17342, %r8
sub %rdi, %rdi
movw $0x6162, (%r8)
nop
nop
nop
and %rcx, %rcx
lea addresses_UC_ht+0xd742, %rsi
lea addresses_D_ht+0x1d562, %rdi
nop
nop
cmp $50195, %r14
mov $81, %rcx
rep movsb
nop
xor $28681, %r9
lea addresses_A_ht+0xa8a6, %r15
nop
nop
nop
nop
nop
sub %r14, %r14
mov $0x6162636465666768, %rcx
movq %rcx, (%r15)
nop
nop
cmp %r9, %r9
lea addresses_UC_ht+0x18ae2, %r8
sub $30032, %r9
vmovups (%r8), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $1, %xmm5, %rcx
nop
xor $49558, %r9
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r15
pop %r14
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r12
push %r13
push %r9
push %rbp
push %rbx
push %rcx
// Store
lea addresses_normal+0xa1e2, %rcx
nop
add %r12, %r12
movl $0x51525354, (%rcx)
xor $32165, %r12
// Faulty Load
lea addresses_A+0x11642, %r10
inc %rbp
vmovntdqa (%r10), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $1, %xmm1, %r12
lea oracles, %r9
and $0xff, %r12
shlq $12, %r12
mov (%r9,%r12,1), %r12
pop %rcx
pop %rbx
pop %rbp
pop %r9
pop %r13
pop %r12
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_A', 'same': False, 'size': 16, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_normal', 'same': False, 'size': 4, 'congruent': 3, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_A', 'same': True, 'size': 32, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 9, 'same': True}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 2, 'congruent': 7, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 16, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 4, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'same': True, 'size': 2, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 1, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': True}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 2, 'congruent': 8, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'46': 8928, '00': 12873, '47': 27, '08': 1}
00 00 00 46 46 00 00 00 00 00 46 46 46 46 46 00 00 00 00 46 46 00 46 00 46 00 00 46 00 46 46 46 46 00 00 46 00 46 46 46 46 00 00 00 46 46 00 46 46 00 46 46 00 46 00 46 46 00 00 00 00 46 00 46 46 00 00 00 46 00 46 46 00 00 00 00 00 00 46 00 46 46 00 00 46 46 00 00 00 00 46 00 46 46 00 00 46 46 46 00 46 00 00 00 00 00 00 00 46 46 00 00 00 46 00 46 00 46 00 46 46 00 46 46 46 00 00 00 00 00 46 00 00 00 00 46 46 46 00 00 00 00 00 46 00 46 00 00 00 00 46 00 46 00 00 46 46 00 00 46 00 00 00 00 46 00 46 00 00 00 46 00 46 00 00 00 00 00 46 46 46 00 46 46 00 00 00 46 00 00 46 00 00 00 46 00 00 46 46 46 00 00 00 46 00 46 46 46 00 00 00 46 00 00 46 46 00 00 00 00 00 46 00 00 00 00 00 46 00 46 00 00 00 00 46 00 46 46 00 00 00 00 00 00 00 00 46 00 00 00 00 46 00 00 00 46 46 00 00 46 00 46 46 00 00 00 46 46 00 00 46 00 00 00 00 00 46 00 46 00 00 00 46 00 00 46 46 00 00 00 00 00 00 46 00 00 46 46 46 00 00 46 00 00 00 00 46 46 46 00 46 00 00 00 00 46 00 46 00 46 00 00 46 00 46 00 00 46 00 00 00 00 00 46 46 00 46 00 00 46 00 00 00 00 00 00 00 00 00 46 00 46 00 00 00 00 46 00 46 46 00 00 00 00 46 46 46 46 00 00 00 46 00 46 00 46 00 00 46 46 00 46 46 00 00 46 00 46 00 46 00 00 00 46 46 00 00 46 00 00 00 00 46 46 46 00 00 00 00 46 00 00 46 00 46 00 00 00 00 46 00 00 00 46 46 00 46 46 00 00 00 00 46 00 00 46 00 00 46 46 00 46 00 46 46 00 00 00 00 46 46 00 46 00 00 00 00 46 00 46 00 00 46 46 46 46 46 00 00 00 00 00 46 00 46 00 00 00 46 46 46 00 00 00 00 00 46 46 46 46 00 00 00 00 00 46 46 00 46 00 00 00 00 46 00 46 00 00 00 00 46 46 46 46 00 00 46 00 46 46 00 00 46 00 00 00 00 46 46 46 00 00 00 46 46 46 00 46 46 46 00 00 46 00 46 46 46 00 00 00 46 46 46 00 46 46 00 00 00 00 46 46 46 46 46 00 00 00 00 00 00 46 00 00 00 00 00 00 46 00 00 46 46 00 00 00 46 00 46 46 46 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 46 46 00 00 46 00 00 00 46 00 00 00 00 00 00 00 46 00 46 46 00 00 00 00 46 46 00 46 46 00 00 00 46 00 46 46 00 46 00 46 46 46 00 00 00 46 46 00 00 46 46 00 46 00 46 00 00 00 00 46 00 00 46 00 00 00 00 00 46 46 00 00 46 00 00 00 46 00 00 00 00 46 46 00 46 00 46 00 00 00 46 46 00 46 46 00 00 00 46 00 00 00 46 00 00 00 46 00 46 00 46 00 00 00 46 46 46 00 46 00 00 46 46 00 00 46 00 00 00 00 46 46 00 00 46 00 46 00 46 00 00 00 00 00 46 46 46 00 00 00 00 00 46 00 00 00 00 46 46 00 00 00 46 00 00 00 00 00 46 46 00 00 00 46 46 46 00 46 00 00 00 46 46 00 00 46 00 46 46 00 46 46 00 46 00 00 46 46 00 46 46 00 00 00 46 00 00 46 46 00 00 46 46 46 00 46 46 00 00 00 00 46 46 00 46 00 00 46 00 46 46 00 00 00 00 00 00 00 46 00 00 00 46 00 00 00 00 00 00 46 46 46 46 46 00 00 00 00 46 46 46 00 00 00 00 00 46 46 46 00 00 00 00 00 46 46 00 46 46 00 46 46 46 46 00 46 00 00 00 00 46 00 00 46 00 00 00 46 46 00 46 00 00 00 00 46 46 00 46 46 00 46 46 00 00 46 46 00 00 00 00 00 46 00 46 00 00 46 00 00 00 46 00 00 46 00 46 46 46 46 00 00 00 00 00 00 46 00 00 00 00 46 00 00 00 46 00 00 00 46 00 46 00 46 00 00 00 00 46 46 00 46 00 00 00 46 00 00 46 00 00 00 00 46 46 00 00 46 00 00 00 46 46
*/
| 35.69378 | 2,999 | 0.653485 |
9659216b07e693c185991f1e1f5b3b92d673fe58 | 6,578 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_277_1409.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_277_1409.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0xca_notsx.log_277_1409.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x7e8f, %rax
nop
nop
nop
nop
sub %rbp, %rbp
movb $0x61, (%rax)
nop
and $10278, %r14
lea addresses_normal_ht+0x10b0b, %rbx
nop
nop
cmp $35682, %r14
mov (%rbx), %r11d
nop
dec %rbp
lea addresses_WT_ht+0x158f7, %rsi
lea addresses_A_ht+0x12cff, %rdi
nop
xor %rbx, %rbx
mov $42, %rcx
rep movsl
nop
sub $21560, %r11
lea addresses_WC_ht+0xd0af, %rbp
nop
nop
nop
nop
inc %rcx
mov (%rbp), %r12w
nop
nop
add %rsi, %rsi
lea addresses_D_ht+0x18f4f, %rbp
nop
and $62891, %rdi
movw $0x6162, (%rbp)
nop
nop
nop
nop
sub %r14, %r14
lea addresses_D_ht+0x1a2f, %rsi
nop
nop
add $42286, %r12
movb $0x61, (%rsi)
xor %rbp, %rbp
lea addresses_normal_ht+0x1928f, %r14
nop
nop
nop
cmp $19314, %rbp
mov (%r14), %bx
nop
nop
and %r11, %r11
lea addresses_A_ht+0x16e8f, %rdi
nop
nop
nop
nop
xor %rsi, %rsi
mov (%rdi), %ecx
nop
nop
nop
nop
and %rbp, %rbp
lea addresses_WT_ht+0x1205b, %rdi
nop
nop
nop
inc %rbp
movb (%rdi), %cl
add %rax, %rax
lea addresses_WC_ht+0x6d39, %rax
clflush (%rax)
nop
nop
nop
nop
and %r14, %r14
mov $0x6162636465666768, %r11
movq %r11, %xmm0
movups %xmm0, (%rax)
nop
nop
nop
add $42475, %r14
lea addresses_WC_ht+0x570f, %r11
clflush (%r11)
nop
xor %r14, %r14
mov (%r11), %r12d
nop
nop
nop
nop
xor %r12, %r12
lea addresses_D_ht+0x1d20f, %rsi
lea addresses_WT_ht+0x1578f, %rdi
and $8299, %r12
mov $18, %rcx
rep movsw
sub $50122, %r11
lea addresses_D_ht+0x1d08f, %r11
nop
nop
nop
nop
nop
xor $4705, %rbx
mov $0x6162636465666768, %rcx
movq %rcx, %xmm6
movups %xmm6, (%r11)
nop
nop
nop
nop
nop
add $5777, %r11
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r14
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r14
push %r15
push %rcx
push %rdi
push %rsi
// Store
mov $0xa8f, %r14
nop
and %rsi, %rsi
movb $0x51, (%r14)
nop
nop
nop
nop
nop
sub %r11, %r11
// Store
mov $0x18f, %r15
nop
nop
nop
nop
nop
xor %rdi, %rdi
mov $0x5152535455565758, %rsi
movq %rsi, (%r15)
nop
nop
nop
dec %rsi
// Store
lea addresses_A+0x195af, %r14
nop
nop
nop
nop
sub %r12, %r12
movw $0x5152, (%r14)
nop
nop
dec %r12
// Store
mov $0x4bf, %r12
nop
nop
inc %r14
movw $0x5152, (%r12)
nop
nop
nop
nop
nop
and $43199, %r15
// Store
lea addresses_UC+0x15487, %rsi
nop
cmp $29859, %r12
movb $0x51, (%rsi)
nop
nop
nop
nop
and %r12, %r12
// Store
lea addresses_UC+0x18b7a, %rsi
nop
nop
nop
nop
sub $63101, %rcx
mov $0x5152535455565758, %r14
movq %r14, %xmm7
vmovups %ymm7, (%rsi)
nop
add %r14, %r14
// Load
lea addresses_normal+0x1b88f, %rsi
nop
nop
and %r12, %r12
mov (%rsi), %r11w
xor %rsi, %rsi
// Faulty Load
lea addresses_PSE+0x2e8f, %rsi
nop
nop
cmp %r12, %r12
movb (%rsi), %r15b
lea oracles, %rcx
and $0xff, %r15
shlq $12, %r15
mov (%rcx,%r15,1), %r15
pop %rsi
pop %rdi
pop %rcx
pop %r15
pop %r14
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_PSE', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_P', 'size': 1, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 6, 'NT': False, 'type': 'addresses_P', 'size': 8, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_A', 'size': 2, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_P', 'size': 2, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_UC', 'size': 1, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_UC', 'size': 32, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_normal', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_PSE', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 2, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 3, 'same': False}}
{'src': {'same': False, 'congruent': 5, 'NT': False, 'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': True, 'type': 'addresses_D_ht', 'size': 2, 'AVXalign': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False}}
{'src': {'same': True, 'congruent': 10, 'NT': False, 'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 8, 'NT': False, 'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 7, 'NT': True, 'type': 'addresses_WC_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_D_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 8, 'same': False}}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 9, 'NT': False, 'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False}}
{'33': 277}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
| 22.761246 | 830 | 0.641836 |
a822a878ec856c639745b1b76131d24fa466e477 | 449 | asm | Assembly | oeis/159/A159066.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | null | null | null | oeis/159/A159066.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | null | null | null | oeis/159/A159066.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | null | null | null | ; A159066: A102370(n) modulo 7 .
; Submitted by Jamie Morken(w4)
; 0,3,6,5,4,1,3,2,1,4,0,6,0,2,4,3,2,5,1,0,6,3,5,4,3,6,2,5,2,4,6,5,4,0,3,2,1,5,0,6,5,1,4,3,4,6,1,0,6,2,5,4,3,0,2,1,0,3,0,2,6,1,3,2,1,4,0,6,5,2,4,3,2,5,1,0,1,3,5,4,3,6,2,1,0,4,6,5,4,0,3,6,3,5,0,6,5,1,4,3
add $0,1
mov $1,$0
mov $2,$0
mov $4,1
lpb $2
mul $4,2
mov $3,$4
mov $5,$0
add $0,1
mod $5,$4
cmp $5,0
mul $3,$5
add $1,$3
div $2,2
lpe
mov $0,$1
sub $0,1
mod $0,7
| 19.521739 | 201 | 0.518931 |
a9e784c25a397787c04ffb7a5b256422b1d406cc | 328 | asm | Assembly | programs/oeis/059/A059158.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/059/A059158.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/059/A059158.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A059158: A hierarchical sequence (S(W'3{2,2}cc) - see A059126).
; 24,432,7008,112320,1797504,28760832,460174848,7362800640,117804816384,1884877074432,30158033215488,482528531496960,7720456504049664,123527304064991232,1976436865040252928
add $0,1
mov $1,16
pow $1,$0
mov $2,2
pow $2,$0
sub $1,$2
div $1,14
mul $1,24
mov $0,$1
| 25.230769 | 172 | 0.759146 |
d806cb7459078796565fe4768b51842923e31f32 | 1,255 | asm | Assembly | src/util/icon/asm_compress.asm | olifink/qspread | d6403d210bdad9966af5d2a0358d4eed3f1e1c02 | [
"MIT"
] | null | null | null | src/util/icon/asm_compress.asm | olifink/qspread | d6403d210bdad9966af5d2a0358d4eed3f1e1c02 | [
"MIT"
] | null | null | null | src/util/icon/asm_compress.asm | olifink/qspread | d6403d210bdad9966af5d2a0358d4eed3f1e1c02 | [
"MIT"
] | null | null | null | * Sprite compress
*
* Mode 4
* +---|----------------+
* - wwwwwwwwww -
* | wwwwwwwwwwwwwwww |
* |rrrrrrrrr wwwwwwww |
* |r r r rrrww |
* |r ww r r rwwr |
* |r rr wwrrr |
* |r w ww r rrrww |
* |r r rwwr |
* |r www w r wwrrr |
* |r r rrrww |
* |r ww ww r rww |
* |rrrrrrrrr wwwwwwww |
* | wwwwwwwwwwwwwwww |
* | wwwwwwwwwwrwwr |
* | wwrrr |
* | rrrww |
* +---|----------------+
*
section sprite
xdef mes_compress
xref mes_zero
mes_compress
dc.w $0100,$0000
dc.w 20,16,0,0
dc.l mcs_compress-*
dc.l mes_zero-*
dc.l sp_compress-*
mcs_compress
dc.w $1F1F,$F8F8
dc.w $0000,$0000
dc.w $1F1F,$FFFF
dc.w $E0E0,$0000
dc.w $00FF,$1F9F
dc.w $E0E0,$0000
dc.w $0084,$0087
dc.w $C0C0,$0000
dc.w $30B2,$0387
dc.w $0080,$0000
dc.w $0081,$0C8F
dc.w $0080,$0000
dc.w $2CAC,$0087
dc.w $C0C0,$0000
dc.w $0080,$0387
dc.w $0080,$0000
dc.w $3ABA,$0C8F
dc.w $0080,$0000
dc.w $0080,$0087
dc.w $C0C0,$0000
dc.w $36B6,$0387
dc.w $0000,$0000
dc.w $00FF,$1F9F
dc.w $E0E0,$0000
dc.w $1F1F,$FFFF
dc.w $E0E0,$0000
dc.w $1F1F,$FBFF
dc.w $0080,$0000
dc.w $0000,$0C0F
dc.w $0080,$0000
dc.w $0000,$0007
dc.w $C0C0,$0000
*
sp_compress
incbin 'win1_util_icon_compress_spr'
end
| 17.928571 | 37 | 0.566534 |
b8b3ac750655f2532c6e972a0108f648a482d7ee | 707 | asm | Assembly | oeis/057/A057090.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/057/A057090.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/057/A057090.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A057090: Scaled Chebyshev U-polynomials evaluated at i*sqrt(7)/2. Generalized Fibonacci sequence.
; Submitted by Jon Maiga
; 1,7,56,441,3479,27440,216433,1707111,13464808,106203433,837677687,6607167840,52113918689,411047605703,3242130670744,25572247935129,201700650241111,1590910287233680,12548276562323537,98974307946900519,780658091564568392,6157426796580282377,48566594217013955383,383068147095159664320,3021443189185215337921,23831579353962625015687,187971157802034882475256,1482619160091982552436601,11694132225258122044382999,92237259697450732177737200,727519743458961979554841393,5738299022094888982128050151
mov $3,1
lpb $0
sub $0,1
mov $2,$3
add $3,$1
mov $1,$2
mul $3,7
lpe
mov $0,$3
| 50.5 | 492 | 0.848656 |
5f1c17c3f25294a6b326f87e4231c337afc92801 | 151 | asm | Assembly | lab4/assignment_2.asm | 0000Blaze/Microprocess | 8d2bf8f7f55e50800c2b82f4b8d3b2d113fc3330 | [
"MIT"
] | null | null | null | lab4/assignment_2.asm | 0000Blaze/Microprocess | 8d2bf8f7f55e50800c2b82f4b8d3b2d113fc3330 | [
"MIT"
] | null | null | null | lab4/assignment_2.asm | 0000Blaze/Microprocess | 8d2bf8f7f55e50800c2b82f4b8d3b2d113fc3330 | [
"MIT"
] | null | null | null | # ORG 8000
MVI A,14
ADI 10
LXI SP,80FF
PUSH PSW
POP B
MOV A,C
ANI FB
ORI 10
MOV C,A
PUSH B
POP PSW
HLT
| 10.785714 | 15 | 0.476821 |
7c459a69b751995d983f96680910d57a5118bec5 | 668 | asm | Assembly | programs/oeis/086/A086849.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/086/A086849.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/086/A086849.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A086849: Sum of first n nonsquares.
; 2,5,10,16,23,31,41,52,64,77,91,106,123,141,160,180,201,223,246,270,296,323,351,380,410,441,473,506,540,575,612,650,689,729,770,812,855,899,944,990,1037,1085,1135,1186,1238,1291,1345,1400,1456,1513,1571,1630,1690,1751,1813,1876,1941,2007,2074,2142,2211,2281,2352,2424,2497,2571,2646,2722,2799,2877,2956,3036,3118,3201,3285,3370,3456,3543,3631,3720,3810,3901,3993,4086,4180,4275,4371,4468,4566,4665,4766,4868,4971,5075,5180,5286,5393,5501,5610,5720
mov $1,1
add $1,$0
mul $1,2
mov $2,3
mov $3,$0
add $3,1
mov $4,$3
lpb $0
add $1,$5
add $1,$0
add $4,1
trn $4,$2
trn $5,$0
sub $0,1
add $2,2
add $5,$4
lpe
mov $0,$1
| 30.363636 | 448 | 0.691617 |
8332b2ea29df20e8c714710c48a5b5432cd1c900 | 228 | asm | Assembly | libsrc/target/nc100/readbuf.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 640 | 2017-01-14T23:33:45.000Z | 2022-03-30T11:28:42.000Z | libsrc/target/nc100/readbuf.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 1,600 | 2017-01-15T16:12:02.000Z | 2022-03-31T12:11:12.000Z | libsrc/target/nc100/readbuf.asm | jpoikela/z88dk | 7108b2d7e3a98a77de99b30c9a7c9199da9c75cb | [
"ClArtistic"
] | 215 | 2017-01-17T10:43:03.000Z | 2022-03-23T17:25:02.000Z |
SECTION code_clib
PUBLIC readbuf
PUBLIC _readbuf
.readbuf
._readbuf
pop de
pop hl
pop bc
push bc
push hl
push de
ld b, c
ld c, a
ld (hl), 0
call 0xB812
ld hl, 0
ret c
dec hl
ret
| 10.363636 | 33 | 0.574561 |
bc397cc3229917359a7955e46544d3c402837675 | 135 | asm | Assembly | src/third_party/nasm/test/imacro.asm | Mr-Sheep/naiveproxy | 9f6e9768295f6d1d41517a15a621d4756bd7d6be | [
"BSD-3-Clause"
] | 2,219 | 2018-03-26T02:57:34.000Z | 2022-03-31T00:27:59.000Z | src/third_party/nasm/test/imacro.asm | Mr-Sheep/naiveproxy | 9f6e9768295f6d1d41517a15a621d4756bd7d6be | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | src/third_party/nasm/test/imacro.asm | Mr-Sheep/naiveproxy | 9f6e9768295f6d1d41517a15a621d4756bd7d6be | [
"BSD-3-Clause"
] | 473 | 2019-03-24T16:34:23.000Z | 2022-03-31T02:01:05.000Z | ;Testname=test; Arguments=-fbin -oimacro.bin; Files=stdout stderr imacro.bin
%imacro Zero 1
xor %1,%1
%endmacro
Zero eax
zero eax
| 15 | 76 | 0.733333 |
4c4bce6046d523f6c9ae7ac0eb4e1b334ace564d | 347 | asm | Assembly | test/antidbg/windows/x64/antidbg.asm | jeppeter/py-obcode | c2cdcb198b3cbc19f87dafd2a63e05901c11fcd9 | [
"BSD-Source-Code"
] | null | null | null | test/antidbg/windows/x64/antidbg.asm | jeppeter/py-obcode | c2cdcb198b3cbc19f87dafd2a63e05901c11fcd9 | [
"BSD-Source-Code"
] | null | null | null | test/antidbg/windows/x64/antidbg.asm | jeppeter/py-obcode | c2cdcb198b3cbc19f87dafd2a63e05901c11fcd9 | [
"BSD-Source-Code"
] | null | null | null |
.code
get_peb_ptr PROC
mov rax , qword ptr gs:[060h]
ret
get_peb_ptr ENDP
set_single_step PROC
pushfq
or byte ptr[esp+1],1
popfq
ret
set_single_step ENDP
set_int3 PROC
int 3
ret
set_int3 ENDP
prefix_hop_int3 PROC
db 0f3h,064h,0cch
ret
prefix_hop_int3 ENDP
kernel_break PROC
int 02dh
ret
kernel_break ENDP
END ; end of the file | 10.84375 | 30 | 0.766571 |
f603b39de314e84625d30a8fdf3eb7819f1bb4ab | 7,040 | asm | Assembly | src/cert.asm | mokafiht/u2f_key_SDCC | 2febfaf075eb4f414a937c7369149d68cbffbf2e | [
"BSD-2-Clause"
] | 1 | 2018-02-02T16:24:03.000Z | 2018-02-02T16:24:03.000Z | src/cert.asm | mokafiht/u2f_key_SDCC | 2febfaf075eb4f414a937c7369149d68cbffbf2e | [
"BSD-2-Clause"
] | null | null | null | src/cert.asm | mokafiht/u2f_key_SDCC | 2febfaf075eb4f414a937c7369149d68cbffbf2e | [
"BSD-2-Clause"
] | null | null | null | ;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.6.0 #9615 (MINGW32)
;--------------------------------------------------------
.module cert
.optsdcc -mmcs51 --model-large
;--------------------------------------------------------
; Public variables in this module
;--------------------------------------------------------
.globl _RMASK
.globl _WMASK
.globl ___attest_size
.globl ___attest
;--------------------------------------------------------
; special function registers
;--------------------------------------------------------
.area RSEG (ABS,DATA)
.org 0x0000
;--------------------------------------------------------
; special function bits
;--------------------------------------------------------
.area RSEG (ABS,DATA)
.org 0x0000
;--------------------------------------------------------
; overlayable register banks
;--------------------------------------------------------
.area REG_BANK_0 (REL,OVR,DATA)
.ds 8
;--------------------------------------------------------
; internal ram data
;--------------------------------------------------------
.area DSEG (DATA)
;--------------------------------------------------------
; overlayable items in internal ram
;--------------------------------------------------------
;--------------------------------------------------------
; indirectly addressable internal ram data
;--------------------------------------------------------
.area ISEG (DATA)
;--------------------------------------------------------
; absolute internal ram data
;--------------------------------------------------------
.area IABS (ABS,DATA)
.area IABS (ABS,DATA)
;--------------------------------------------------------
; bit data
;--------------------------------------------------------
.area BSEG (BIT)
;--------------------------------------------------------
; paged external ram data
;--------------------------------------------------------
.area PSEG (PAG,XDATA)
;--------------------------------------------------------
; external ram data
;--------------------------------------------------------
.area XSEG (XDATA)
;--------------------------------------------------------
; absolute external ram data
;--------------------------------------------------------
.area XABS (ABS,XDATA)
;--------------------------------------------------------
; external initialized ram data
;--------------------------------------------------------
.area XISEG (XDATA)
.area HOME (CODE)
.area GSINIT0 (CODE)
.area GSINIT1 (CODE)
.area GSINIT2 (CODE)
.area GSINIT3 (CODE)
.area GSINIT4 (CODE)
.area GSINIT5 (CODE)
.area GSINIT (CODE)
.area GSFINAL (CODE)
.area CSEG (CODE)
;--------------------------------------------------------
; global & static initialisations
;--------------------------------------------------------
.area HOME (CODE)
.area GSINIT (CODE)
.area GSFINAL (CODE)
.area GSINIT (CODE)
;--------------------------------------------------------
; Home
;--------------------------------------------------------
.area HOME (CODE)
.area HOME (CODE)
;--------------------------------------------------------
; code
;--------------------------------------------------------
.area CSEG (CODE)
.area CSEG (CODE)
.area CONST (CODE)
G$__attest$0$0 == .
___attest:
.ascii "0"
.db 0x82
.db 0x01
.ascii "z0"
.db 0x82
.db 0x01
.ascii " "
.db 0x02
.db 0x09
.db 0x00
.db 0x91
.ascii "P"
.db 0x9a
.db 0xea
.ascii "("
.db 0x11
.db 0xef
.ascii "|0"
.db 0x0a
.db 0x06
.db 0x08
.ascii "*"
.db 0x86
.ascii "H"
.db 0xce
.ascii "="
.db 0x04
.db 0x03
.db 0x02
.ascii "0E1"
.db 0x0b
.ascii "0"
.db 0x09
.db 0x06
.db 0x03
.ascii "U"
.db 0x04
.db 0x06
.db 0x13
.db 0x02
.ascii "AU1"
.db 0x13
.ascii "0"
.db 0x11
.db 0x06
.db 0x03
.ascii "U"
.db 0x04
.db 0x08
.db 0x0c
.db 0x0a
.ascii "Som"
.ascii "e-State1!0"
.db 0x1f
.db 0x06
.db 0x03
.ascii "U"
.db 0x04
.db 0x0a
.db 0x0c
.db 0x18
.ascii "Internet Widgits Pty Ltd0"
.db 0x1e
.db 0x17
.db 0x0d
.ascii "170128061749Z"
.db 0x17
.db 0x0d
.ascii "170227061749Z0E1"
.db 0x0b
.ascii "0"
.db 0x09
.db 0x06
.db 0x03
.ascii "U"
.db 0x04
.db 0x06
.db 0x13
.db 0x02
.ascii "AU1"
.db 0x13
.ascii "0"
.db 0x11
.db 0x06
.db 0x03
.ascii "U"
.db 0x04
.db 0x08
.db 0x0c
.db 0x0a
.ascii "Some-State1!0"
.db 0x1f
.db 0x06
.db 0x03
.ascii "U"
.db 0x04
.db 0x0a
.db 0x0c
.db 0x18
.ascii "Internet Widgits Pty Ltd0Y0"
.db 0x13
.db 0x06
.db 0x07
.ascii "*"
.db 0x86
.ascii "H"
.db 0xce
.ascii "="
.db 0x02
.db 0x01
.db 0x06
.db 0x08
.ascii "*"
.db 0x86
.ascii "H"
.db 0xce
.ascii "="
.db 0x03
.db 0x01
.db 0x07
.db 0x03
.ascii "B"
.db 0x00
.db 0x04
.db 0x87
.db 0x8f
.ascii "T(Z"
.db 0xd5
.db 0x19
.db 0xb4
.db 0xc0
.db 0x95
.db 0x13
.db 0xad
.db 0x22
.ascii "f"
.db 0xec
.ascii "j"
.db 0x81
.ascii "R"
.db 0xe6
.db 0x11
.db 0xa9
.ascii "3"
.db 0xbb
.ascii "="
.db 0xdc
.db 0xde
.db 0x92
.db 0xc2
.ascii "@S"
.db 0x9d
.ascii "9"
.db 0x91
.db 0xea
.db 0xf2
.db 0x0a
.db 0x96
.ascii "a0/"
.db 0xec
.ascii "eL"
.db 0x80
.db 0xaa
.db 0xba
.db 0x15
.db 0xeb
.db 0x9a
.ascii "pL"
.db 0x80
.ascii "Y"
.db 0x93
.ascii "zQ"
.db 0xbe
.db 0x07
.db 0xc3
.ascii "&"
.db 0x85
.db 0xab
.db 0xb0
.ascii "+0"
.db 0x0a
.db 0x06
.db 0x08
.ascii "*"
.db 0x86
.ascii "H"
.db 0xce
.ascii "="
.db 0x04
.db 0x03
.db 0x02
.db 0x03
.ascii "H"
.db 0x00
.ascii "0E"
.db 0x02
.ascii "!"
.db 0x00
.db 0xed
.ascii "q"
.db 0xd4
.db 0x19
.db 0x01
.db 0xa2
.db 0xfe
.db 0xa5
.db 0xa8
.ascii "n"
.db 0xa9
.db 0xa4
.db 0x8c
.db 0xf4
.db 0xcb
.db 0xc6
.db 0x7f
.db 0xc7
.db 0x92
.ascii "(V"
.db 0xfa
.db 0x05
.db 0x01
.db 0xa9
.db 0xc9
.db 0xbf
.db 0xfb
.ascii "."
.db 0x83
.ascii "$3"
.db 0x02
.ascii " <V"
.db 0x15
.ascii "|"
.db 0x11
.db 0x8b
.ascii "F"
.db 0xd2
.ascii "S"
.db 0xf9
.db 0xac
.db 0x96
.db 0xf6
.db 0xd0
.db 0xab
.ascii "M"
.db 0x0f
.db 0xf7
.ascii "J"
.db 0xf0
.db 0xb0
.db 0xaf
.db 0xfb
.db 0x8c
.db 0xd0
.db 0x18
.db 0xee
.db 0xf0
.db 0xc3
.ascii "shg"
.db 0x00
G$__attest_size$0$0 == .
___attest_size:
.byte #0x7e,#0x01 ; 382
G$WMASK$0$0 == .
_WMASK:
.db 0x9b
.ascii "t"
.db 0xbe
.db 0xd4
.db 0x00
.db 0xea
.ascii "R"
.db 0x88
.ascii "j"
.db 0x9e
.db 0xb9
.db 0x5c
.ascii "i*"
.db 0x9c
.ascii "p"
.db 0x0a
.ascii "O "
.db 0xb5
.ascii "f#"
.db 0xa9
.ascii "W"
.db 0xaf
.ascii "qY"
.db 0xd8
.db 0xe8
.db 0xa6
.ascii "nu/)Nb"
.db 0x00
G$RMASK$0$0 == .
_RMASK:
.ascii "HI"
.db 0x97
.db 0x13
.ascii "G"
.db 0xdb
.db 0xa0
.db 0x1d
.ascii "$"
.db 0xfd
.db 0x5c
.ascii "2"
.db 0x15
.ascii "f"
.db 0xc6
.db 0x9d
.db 0x98
.db 0x22
.db 0x99
.db 0xe9
.db 0xa0
.db 0x22
.ascii "("
.db 0x99
.ascii "y"
.db 0x0b
.db 0xdd
.db 0x0f
.ascii "y"
.db 0xa5
.ascii ","
.db 0xe2
.db 0x00
.area XINIT (CODE)
.area CABS (ABS,CODE)
| 16.603774 | 57 | 0.434801 |
98e9c236855de12723443886b97557b8fee928d3 | 165 | asm | Assembly | data/mapObjects/RedsHouse2F.asm | AmateurPanda92/pokemon-rby-dx | f7ba1cc50b22d93ed176571e074a52d73360da93 | [
"MIT"
] | 9 | 2020-07-12T19:44:21.000Z | 2022-03-03T23:32:40.000Z | data/mapObjects/RedsHouse2F.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 7 | 2020-07-16T10:48:52.000Z | 2021-01-28T18:32:02.000Z | data/mapObjects/RedsHouse2F.asm | JStar-debug2020/pokemon-rby-dx | c2fdd8145d96683addbd8d9075f946a68d1527a1 | [
"MIT"
] | 2 | 2021-03-28T18:33:43.000Z | 2021-05-06T13:12:09.000Z | RedsHouse2F_Object:
db $a ; border block
db 1 ; warps
warp 7, 1, 2, REDS_HOUSE_1F
db 0 ; signs
db 0 ; objects
; warp-to
warp_to 7, 1, REDS_HOUSE_2F_WIDTH
| 12.692308 | 34 | 0.678788 |
8b52b9c01f398ce29477a4e2a6f3a173ee866345 | 4,512 | asm | Assembly | Transynther/x86/_processed/NC/_st_4k_/i9-9900K_12_0xca.log_15_976.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NC/_st_4k_/i9-9900K_12_0xca.log_15_976.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NC/_st_4k_/i9-9900K_12_0xca.log_15_976.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 %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x19b9f, %r8
nop
nop
nop
and $18530, %rbx
mov (%r8), %rdi
nop
nop
nop
nop
nop
add $54720, %rbp
lea addresses_D_ht+0x1a79f, %r10
and $53233, %r13
mov (%r10), %r8
nop
nop
nop
nop
xor $8597, %r10
lea addresses_WC_ht+0x1cf9f, %rbx
cmp %rax, %rax
mov (%rbx), %r10d
nop
cmp $54036, %rbx
lea addresses_normal_ht+0x7a9d, %rsi
lea addresses_WT_ht+0xae9f, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
cmp $48027, %rbp
mov $22, %rcx
rep movsl
cmp $40896, %r8
lea addresses_UC_ht+0x16a8f, %rdi
nop
xor $57374, %rbx
movw $0x6162, (%rdi)
nop
nop
nop
nop
nop
inc %rax
lea addresses_WT_ht+0xbe9f, %r8
nop
nop
nop
nop
nop
cmp %r10, %r10
movl $0x61626364, (%r8)
nop
nop
nop
nop
cmp $21517, %rcx
lea addresses_WT_ht+0x1997f, %rsi
lea addresses_normal_ht+0xcdf, %rdi
and %r10, %r10
mov $79, %rcx
rep movsb
sub %rsi, %rsi
lea addresses_D_ht+0x1ae3f, %rax
nop
nop
add %rbx, %rbx
mov $0x6162636465666768, %r10
movq %r10, %xmm1
movups %xmm1, (%rax)
xor $48142, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r8
pop %r13
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r15
push %r8
push %rax
push %rbx
push %rcx
// Load
mov $0x2ebed5000000099f, %rcx
nop
cmp %r15, %r15
mov (%rcx), %r14w
nop
nop
and %rax, %rax
// Store
lea addresses_normal+0x1fd9f, %r8
nop
nop
nop
cmp %r10, %r10
movb $0x51, (%r8)
nop
nop
nop
nop
nop
xor $22988, %rbx
// Store
lea addresses_A+0x1e8c5, %r15
inc %rbx
mov $0x5152535455565758, %r10
movq %r10, %xmm2
movups %xmm2, (%r15)
nop
nop
nop
nop
xor %r8, %r8
// Store
lea addresses_PSE+0x1f99f, %r15
nop
nop
nop
xor $7842, %r14
movl $0x51525354, (%r15)
and $42773, %r15
// Store
lea addresses_normal+0x8ae8, %rbx
clflush (%rbx)
nop
nop
sub %r14, %r14
mov $0x5152535455565758, %rcx
movq %rcx, (%rbx)
nop
nop
nop
nop
cmp %r8, %r8
// Store
lea addresses_UC+0x86d7, %rax
nop
nop
cmp $12419, %r8
mov $0x5152535455565758, %r14
movq %r14, %xmm0
vmovups %ymm0, (%rax)
nop
dec %rax
// Faulty Load
mov $0x2ebed5000000099f, %rcx
nop
sub %r10, %r10
vmovups (%rcx), %ymm6
vextracti128 $0, %ymm6, %xmm6
vpextrq $0, %xmm6, %r15
lea oracles, %rcx
and $0xff, %r15
shlq $12, %r15
mov (%rcx,%r15,1), %r15
pop %rcx
pop %rbx
pop %rax
pop %r8
pop %r15
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_NC', 'same': True, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 11}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_normal', 'same': False, 'AVXalign': False, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 2}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_NC', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 9}}
{'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_WC_ht', 'same': True, 'AVXalign': False, 'congruent': 9}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 1}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 8}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_UC_ht', 'same': True, 'AVXalign': False, 'congruent': 4}}
{'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 5}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_D_ht', 'same': True, 'AVXalign': False, 'congruent': 4}}
{'54': 15}
54 54 54 54 54 54 54 54 54 54 54 54 54 54 54
*/
| 20.509091 | 152 | 0.644725 |
618a2cdec304118648afbf3fc0d4c9ba0b6934a5 | 6,451 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48.log_21829_1085.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48.log_21829_1085.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i7-7700_9_0x48.log_21829_1085.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 %r8
push %rax
push %rbx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x1a48e, %r8
nop
nop
add %rsi, %rsi
mov $0x6162636465666768, %r11
movq %r11, %xmm7
and $0xffffffffffffffc0, %r8
movaps %xmm7, (%r8)
nop
xor $62012, %rax
lea addresses_WT_ht+0x20e, %rbx
nop
nop
nop
cmp $6648, %rdi
movb (%rbx), %dl
nop
nop
nop
nop
cmp %rsi, %rsi
lea addresses_D_ht+0x5780, %r8
nop
nop
nop
add %rax, %rax
movups (%r8), %xmm3
vpextrq $1, %xmm3, %rbx
nop
nop
nop
nop
nop
and $23237, %rbx
lea addresses_A_ht+0x17f0e, %rsi
nop
dec %r8
movl $0x61626364, (%rsi)
nop
nop
nop
nop
sub $56553, %rax
lea addresses_A_ht+0xff0e, %rax
nop
nop
nop
xor %r11, %r11
vmovups (%rax), %ymm7
vextracti128 $0, %ymm7, %xmm7
vpextrq $1, %xmm7, %rsi
sub %r11, %r11
lea addresses_WT_ht+0x1590e, %rdx
nop
nop
nop
nop
nop
xor $60223, %rbx
mov $0x6162636465666768, %rax
movq %rax, %xmm7
vmovups %ymm7, (%rdx)
nop
nop
nop
nop
add $65513, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rbx
pop %rax
pop %r8
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r15
push %r8
push %r9
push %rax
push %rbx
push %rdx
push %rsi
// Load
lea addresses_normal+0x1a70e, %rdx
nop
nop
nop
nop
nop
sub $17169, %r9
vmovups (%rdx), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $0, %xmm0, %rax
nop
nop
cmp %rax, %rax
// Store
lea addresses_PSE+0x6d0e, %rsi
sub %rbx, %rbx
movb $0x51, (%rsi)
nop
nop
nop
dec %rdx
// Store
mov $0x72029500000000ce, %rax
nop
nop
nop
xor %r8, %r8
movl $0x51525354, (%rax)
dec %rax
// Load
lea addresses_UC+0x1e7d6, %r15
nop
nop
nop
and $39922, %rax
movb (%r15), %bl
nop
nop
nop
nop
sub $18587, %rbx
// Faulty Load
lea addresses_normal+0x1a70e, %rdx
nop
nop
nop
nop
nop
cmp %rbx, %rbx
movb (%rdx), %al
lea oracles, %rsi
and $0xff, %rax
shlq $12, %rax
mov (%rsi,%rax,1), %rax
pop %rsi
pop %rdx
pop %rbx
pop %rax
pop %r9
pop %r8
pop %r15
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 0, 'size': 32, 'same': True, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': False, 'congruent': 8, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'AVXalign': True, 'congruent': 5, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_UC', 'AVXalign': False, 'congruent': 3, 'size': 1, 'same': False, 'NT': True}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': True, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': True, 'congruent': 7, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 4, 'size': 1, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 10, 'size': 4, 'same': False, 'NT': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 11, 'size': 32, 'same': False, 'NT': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 9, 'size': 32, 'same': False, 'NT': False}}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
| 35.059783 | 2,999 | 0.655247 |
44e46b0e3b653f89aab3c9bd38a9fc3a02ed1e59 | 1,002 | asm | Assembly | src/lib/keyscan.asm | laamella-gad/moon-train | 97a131417e2488c147bd9155ec9f8a4ab84e9948 | [
"Apache-2.0"
] | 1 | 2018-07-10T20:37:03.000Z | 2018-07-10T20:37:03.000Z | src/lib/keyscan.asm | laamella-gad/moon-train | 97a131417e2488c147bd9155ec9f8a4ab84e9948 | [
"Apache-2.0"
] | null | null | null | src/lib/keyscan.asm | laamella-gad/moon-train | 97a131417e2488c147bd9155ec9f8a4ab84e9948 | [
"Apache-2.0"
] | null | null | null | ; scan the keyboard
; result:
; carry clear = no key hit
; carry set = key in A
minikey:
.block
lda #%00000000
sta $dc03 ; port b ddr (input)
lda #%11111111
sta $dc02 ; port a ddr (output)
lda #%00000000
sta $dc00 ; port a
lda $dc01 ; port b
cmp #%11111111
beq _nokey
; got column, put it in Y
tay
lda #%01111111
sta _nokey2+1
ldx #8
_nokey2:
lda #0
sta $dc00 ; port a
sec
ror _nokey2+1
dex
bmi _nokey
lda $dc01 ; port b
cmp #%11111111
beq _nokey2
; got row in X
txa
ora _columntab,y
sec
rts
_nokey:
clc
rts
_columntab:
.for count=0, count<256, count+=1
.if count = ($ff-$80)
.byte $70
.elsif count = ($ff-$40)
.byte $60
.elsif count = ($ff-$20)
.byte $50
.elsif count = ($ff-$10)
.byte $40
.elsif count = ($ff-$08)
.byte $30
.elsif count = ($ff-$04)
.byte $20
.elsif count = ($ff-$02)
.byte $10
.elsif count = ($ff-$01)
.byte $00
.else
.byte $ff
.endif
.next
.bend | 14.314286 | 37 | 0.566866 |
349a31cf82b2578990159a32c390459d64916539 | 534 | asm | Assembly | data/text/unused_names.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | 1 | 2022-02-15T00:19:44.000Z | 2022-02-15T00:19:44.000Z | data/text/unused_names.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | data/text/unused_names.asm | opiter09/ASM-Machina | 75d8e457b3e82cc7a99b8e70ada643ab02863ada | [
"CC0-1.0"
] | null | null | null | UnusedBadgeNames::
db "かみなりバッヂ@" ; THUNDER BADGE
db "かいがらバッヂ@" ; SHELL BADGE
db "おじぞうバッヂ@" ; JIZOU BADGE
db "はやぶさバッヂ@" ; FALCON BADGE
db "ひんやりバッヂ@" ; CHILL BADGE
db "なかよしバッヂ@" ; FRIENDSHIP BADGE
db "バラバッヂ@" ; ROSE BADGE
db "ひのたまバッヂ@" ; FIREBALL BADGE
db "ゴールドバッヂ@" ; GOLD BADGE
UnusedRankingNames:
db "たまご@" ; EGG
db "ひよこ@" ; CHICK
db "ブロンズ@" ; BRONZE
db "シルバー@" ; SILVER
db "ゴールド@" ; GOLD
db "プチキャプテン@" ; PETIT CAPTAIN
db "キャプテン@" ; CAPTAIN
db "プチマスター@" ; PETIT MASTER
db "マスター@" ; MASTER
db "エクセレント" ; EXCELLENT
| 23.217391 | 33 | 0.649813 |
dd91d97addf9b4d8ebedac0e997b99a578ecb867 | 853 | asm | Assembly | sys/gold/sgcp3.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | sys/gold/sgcp3.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | sys/gold/sgcp3.asm | olifink/smsqe | c546d882b26566a46d71820d1539bed9ea8af108 | [
"BSD-2-Clause"
] | null | null | null | ; (Super)GoldCard patches. Deciphered by Marcel Kilgus
section sgc
xdef gl_f1f2
xdef gl_bvchnt
include 'dev8_sys_gold_keys'
include 'dev8_keys_qdos_io'
include 'dev8_keys_sbasic'
include 'dev8_keys_sys'
; F1/F2 auto boot
gl_f1f2
moveq #-1,d3
moveq #$ffffffe8,d1 ; F1
cmpi.w #sgo.autoh,sgo_f1f2+sgx_work ; reserved for HIRES setting
beq.s gl_f1f2_end
cmpi.w #sgo.auto1,sgo_f1f2+sgx_work
beq.s gl_f1f2_end
moveq #$ffffffec,d1 ; F2
cmpi.w #sgo.auto2,sgo_f1f2+sgx_work
beq.s gl_f1f2_end
moveq #iob.fbyt,d0 ; No auto F1/F2, read key
trap #$3
gl_f1f2_end
moveq #$0,d0
rts
; Some name table fix (reserve additional space)
gl_bvchnt
movem.l d1/d2/d3,-(sp)
jsr $12345678 ; will be patched to bv_chnt
movem.l (sp)+,d1/d2/d3
move.l sb_nmtbp(a6),a3 ; code that was overwritten by patch
move.b #nt.var,nt_nvalp(a6,a3.l)
rts
end
| 21.325 | 65 | 0.735053 |
c099a49bc64d5c3cfe8692b6d5b46850547c8b1d | 389 | asm | Assembly | oeis/132/A132792.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/132/A132792.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/132/A132792.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A132792: The infinitesimal Lah matrix: generator of unsigned A111596.
; Submitted by Christian Krause
; 0,0,0,0,2,0,0,0,6,0,0,0,0,12,0,0,0,0,0,20,0,0,0,0,0,0,30,0,0,0,0,0,0,0,42,0,0,0,0,0,0,0,0,56,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,90,0,0,0,0,0,0,0,0,0,0,0,110,0
mov $2,$0
lpb $0
mov $0,$2
add $1,1
add $3,3
trn $0,$3
sub $2,$1
lpe
bin $1,$2
bin $1,2
mov $0,$1
mul $0,2
| 22.882353 | 166 | 0.586118 |
bc161d8915b4e8a7955629c1f26e065a55ceef08 | 3,750 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_836_1424.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_836_1424.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_836_1424.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r15
push %r8
push %rcx
push %rdi
push %rsi
// Store
lea addresses_UC+0x148cb, %r8
nop
nop
nop
nop
nop
cmp %r15, %r15
mov $0x5152535455565758, %rdi
movq %rdi, (%r8)
nop
nop
dec %r15
// Store
lea addresses_WT+0xe7c3, %r15
nop
nop
nop
nop
nop
cmp $36900, %rsi
mov $0x5152535455565758, %r12
movq %r12, (%r15)
nop
nop
add $40725, %rcx
// Faulty Load
lea addresses_D+0x1d643, %r15
nop
nop
nop
nop
add $61336, %r12
mov (%r15), %r8
lea oracles, %r15
and $0xff, %r8
shlq $12, %r8
mov (%r15,%r8,1), %r8
pop %rsi
pop %rdi
pop %rcx
pop %r8
pop %r15
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_UC', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 7, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_D', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'36': 836}
36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36
*/
| 49.342105 | 2,507 | 0.659467 |
40e230c64efa43e97b8d9fbac3dfcf9f32686959 | 2,295 | asm | Assembly | src/third_party/openh264/src/codec/decoder/core/x86/dct.asm | ilya-fedin/tg_owt | d5c3d43b959c7e9e7d8004b9b7fdadd12ce7d589 | [
"BSD-3-Clause"
] | 3,565 | 2015-01-03T21:02:47.000Z | 2022-03-30T13:37:29.000Z | src/third_party/openh264/src/codec/decoder/core/x86/dct.asm | ilya-fedin/tg_owt | d5c3d43b959c7e9e7d8004b9b7fdadd12ce7d589 | [
"BSD-3-Clause"
] | 2,103 | 2015-01-02T21:32:34.000Z | 2022-03-31T23:30:13.000Z | src/third_party/openh264/src/codec/decoder/core/x86/dct.asm | ilya-fedin/tg_owt | d5c3d43b959c7e9e7d8004b9b7fdadd12ce7d589 | [
"BSD-3-Clause"
] | 1,319 | 2015-01-01T10:02:18.000Z | 2022-03-28T15:31:20.000Z | ;*!
;* \copy
;* Copyright (c) 2009-2013, Cisco Systems
;* All rights reserved.
;*
;* Redistribution and use in source and binary forms, with or without
;* modification, are permitted provided that the following conditions
;* are met:
;*
;* ?Redistributions of source code must retain the above copyright
;* notice, this list of conditions and the following disclaimer.
;*
;* ?Redistributions in binary form must reproduce the above copyright
;* notice, this list of conditions and the following disclaimer in
;* the documentation and/or other materials provided with the
;* distribution.
;*
;* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
;* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
;* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
;* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
;* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
;* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
;* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
;* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
;* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
;* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
;* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
;* POSSIBILITY OF SUCH DAMAGE.
;*
;*
;* dct.asm
;*
;* Abstract
;* WelsDctFourT4_sse2
;*
;* History
;* 8/4/2009 Created
;*
;*
;*************************************************************************/
%include "asm_inc.asm"
SECTION .text
;void WelsBlockZero16x16_sse2(int16_t * block, int32_t stride);
WELS_EXTERN WelsBlockZero16x16_sse2
%assign push_num 0
LOAD_2_PARA
SIGN_EXTENSION r1, r1d
shl r1, 1
pxor xmm0, xmm0
%rep 16
movdqa [r0], xmm0
movdqa [r0+16], xmm0
add r0, r1
%endrep
ret
;void WelsBlockZero8x8_sse2(int16_t * block, int32_t stride);
WELS_EXTERN WelsBlockZero8x8_sse2
%assign push_num 0
LOAD_2_PARA
SIGN_EXTENSION r1, r1d
shl r1, 1
pxor xmm0, xmm0
%rep 8
movdqa [r0], xmm0
add r0, r1
%endrep
ret
| 31.438356 | 76 | 0.659695 |
5337eea9d238158f7c2eb22cfb315537f6d2548d | 326 | asm | Assembly | _anim/Yadrin.asm | kodishmediacenter/msu-md-sonic | 3aa7c5e8add9660df2cd0eceaa214e7d59f2415c | [
"CC0-1.0"
] | 9 | 2021-01-15T13:47:53.000Z | 2022-01-17T15:33:55.000Z | _anim/Yadrin.asm | kodishmediacenter/msu-md-sonic | 3aa7c5e8add9660df2cd0eceaa214e7d59f2415c | [
"CC0-1.0"
] | 7 | 2021-01-14T02:18:48.000Z | 2021-03-24T15:44:30.000Z | _anim/Yadrin.asm | kodishmediacenter/msu-md-sonic | 3aa7c5e8add9660df2cd0eceaa214e7d59f2415c | [
"CC0-1.0"
] | 2 | 2021-01-14T13:14:26.000Z | 2021-01-29T17:46:04.000Z | ; ---------------------------------------------------------------------------
; Animation script - Yadrin enemy
; ---------------------------------------------------------------------------
Ani_Yad: dc.w @stand-Ani_Yad
dc.w @walk-Ani_Yad
@stand: dc.b 7, 0, afEnd
even
@walk: dc.b 7, 0, 3, 1, 4, 0, 3, 2, 5, afEnd
even | 32.6 | 77 | 0.325153 |
dc3950e804e48e3750412ee23ec90533a092018e | 775 | asm | Assembly | Mid-Term/Solution/1.asm | AhnafNSU/CSE331L-Section-1-Fall20-NSU | 870d9527411f8a74336d8c90d3a09e5750d88af7 | [
"MIT"
] | null | null | null | Mid-Term/Solution/1.asm | AhnafNSU/CSE331L-Section-1-Fall20-NSU | 870d9527411f8a74336d8c90d3a09e5750d88af7 | [
"MIT"
] | null | null | null | Mid-Term/Solution/1.asm | AhnafNSU/CSE331L-Section-1-Fall20-NSU | 870d9527411f8a74336d8c90d3a09e5750d88af7 | [
"MIT"
] | null | null | null |
.MODEL SMALL
.STACK 100H
.DATA
NUM1 DB ?
NUM2 DB ?
RES1 DB ?
PROMPT_1 DB "Enter Integer 1: $"
PROMPT_2 DB 0DH, 0AH, "Enter Integer 2: $"
PROMPT_3 DB 0DH, 0AH, "MUL of 2 Integers: $"
.CODE
MAIN PROC
MOV AX,DATA
MOV DS,AX
LEA DX,PROMPT_1
MOV AH,9
INT 21H
MOV AH,1
INT 21H
SUB AL,30H
MOV NUM1,AL
LEA DX,PROMPT_2
MOV AH,9
INT 21H
MOV AH,1
INT 21H
SUB AL,30H
MOV NUM2,AL
MUL NUM1
MOV RES1,AL
AAM
ADD AH,30H
ADD AL,30H
MOV BX,AX
LEA DX,PROMPT_3
MOV AH,9
INT 21H
MOV AH,2
MOV DL,BH
INT 21H
MOV AH,2
MOV DL,BL
INT 21H
MOV AH,4CH
INT 21H
MAIN ENDP
END MAIN
ret
| 12.704918 | 48 | 0.510968 |
0be5e4428dd30d9cbfc6966a4254dd986d2d6580 | 5,215 | asm | Assembly | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_368.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_368.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_368.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_UC_ht+0x1442b, %rsi
lea addresses_UC_ht+0x2357, %rdi
nop
add $45757, %rdx
mov $125, %rcx
rep movsw
nop
nop
nop
nop
nop
dec %r15
lea addresses_A_ht+0x19d3b, %rsi
lea addresses_WC_ht+0x227, %rdi
nop
nop
nop
sub $47805, %r11
mov $94, %rcx
rep movsq
nop
nop
nop
xor %r11, %r11
lea addresses_UC_ht+0x1edbb, %rsi
nop
cmp %rbx, %rbx
movb (%rsi), %dl
nop
nop
nop
nop
sub $9728, %r11
lea addresses_WT_ht+0x838d, %rcx
nop
nop
xor %r15, %r15
mov $0x6162636465666768, %rdx
movq %rdx, %xmm6
movups %xmm6, (%rcx)
nop
nop
nop
nop
nop
and %rbx, %rbx
lea addresses_D_ht+0xdda7, %rdi
nop
nop
nop
nop
nop
sub $52140, %r11
movups (%rdi), %xmm0
vpextrq $0, %xmm0, %rsi
nop
nop
nop
and $32013, %rdx
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r15
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r14
push %rdi
push %rsi
// Faulty Load
lea addresses_UC+0x151e7, %r11
nop
nop
nop
cmp %rsi, %rsi
vmovups (%r11), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $1, %xmm6, %rdi
lea oracles, %r11
and $0xff, %rdi
shlq $12, %rdi
mov (%r11,%rdi,1), %rdi
pop %rsi
pop %rdi
pop %r14
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_UC', 'congruent': 0}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_UC', 'congruent': 0}}
<gen_prepare_buffer>
{'dst': {'same': False, 'congruent': 3, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_UC_ht'}}
{'dst': {'same': False, 'congruent': 5, 'type': 'addresses_WC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_A_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_UC_ht', 'congruent': 2}}
{'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WT_ht', 'congruent': 1}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_D_ht', 'congruent': 6}}
{'37': 21829}
37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37
*/
| 43.823529 | 2,999 | 0.661745 |
f850225d881b1dbe0a99ff77ce016e67c11476c6 | 941 | asm | Assembly | led.asm | Silvantica/Etch-A-Sketch | b8302b41a154b1ae66092950632c0280761a3ed5 | [
"MIT"
] | null | null | null | led.asm | Silvantica/Etch-A-Sketch | b8302b41a154b1ae66092950632c0280761a3ed5 | [
"MIT"
] | null | null | null | led.asm | Silvantica/Etch-A-Sketch | b8302b41a154b1ae66092950632c0280761a3ed5 | [
"MIT"
] | null | null | null | ; This file assumes "base.asm" and "delay.asm" are imported somewhere
; Enables GPIO output on GPIO27
; This doesn't conflict with enable_buttons because we're using GPFSEL instead of
; GPHEN
enable_led:
push {r0-r1,lr}
mov r0, BASE
orr r0, GPIO_OFFSET ;r0 now equals 0x3F200000
; Set bit 21 of GPFSEL2 to enable output on GPIO27 (see broadcom datasheet)
mov r1,#1
lsl r1,#21
str r1,[r0,GPFSEL2_OFFSET]
pop {r0-r1,pc}
; Blinks the LED enabled on GPIO27
blink_led:
push {r0-r1,lr}
mov r0, BASE
orr r0, GPIO_OFFSET ;r0 now equals 0x3F200000
; Turn the light on
mov r1,#1
lsl r1,#27
str r1,[r0,GPSET0_OFFSET]
; Wait for a few milliseconds so we can see the blink
push {r0}
mov r0,#500
bl delay
pop {r0}
; Turn the light off
mov r1,#1
lsl r1,#27
str r1,[r0,GPCLR0_OFFSET]
; Wait for a few milliseconds so we can see that it's off
push {r0}
mov r0,#500
bl delay
pop {r0}
pop {r0-r1,pc}
| 20.456522 | 81 | 0.690755 |
5f2f1660dc0bf0bef806d7fe324ac81b14a5d1df | 4,635 | asm | Assembly | Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_21829_883.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 9 | 2020-08-13T19:41:58.000Z | 2022-03-30T12:22:51.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_21829_883.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 1 | 2021-04-29T06:29:35.000Z | 2021-05-13T21:02:30.000Z | Transynther/x86/_processed/AVXALIGN/_st_/i3-7100_9_0xca_notsx.log_21829_883.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 %r15
push %rax
push %rcx
push %rdi
push %rsi
lea addresses_A_ht+0x46fd, %rsi
lea addresses_A_ht+0x15b4d, %rdi
clflush (%rsi)
clflush (%rdi)
nop
nop
nop
mfence
mov $98, %rcx
rep movsw
nop
cmp $29405, %r10
lea addresses_WT_ht+0x8d9d, %rsi
lea addresses_A_ht+0xd3cd, %rdi
clflush (%rsi)
nop
nop
nop
nop
nop
cmp %r15, %r15
mov $83, %rcx
rep movsl
nop
sub $2829, %r10
lea addresses_WT_ht+0x455, %rsi
add %rax, %rax
mov (%rsi), %r15w
nop
and %r10, %r10
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r15
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r14
push %r8
push %rax
push %rdi
// Faulty Load
lea addresses_WT+0xd34d, %r8
nop
nop
nop
nop
nop
sub %rax, %rax
mov (%r8), %edi
lea oracles, %r12
and $0xff, %rdi
shlq $12, %rdi
mov (%r12,%rdi,1), %rdi
pop %rdi
pop %rax
pop %r8
pop %r14
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_WT', 'size': 4, 'AVXalign': True}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_A_ht', 'congruent': 2, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 10, 'same': False}}
{'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}}
{'src': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_WT_ht', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'39': 21829}
39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39 39
*/
| 51.5 | 2,999 | 0.66192 |
2b208b61d0b0ea370415d09e2dd501365112c8bf | 4,843 | asm | Assembly | texmap/temp.asm | osgcc/descent-pc | 819ed672e9fde6eddea634154306c5154230b84d | [
"Unlicense"
] | 3 | 2016-03-22T12:32:01.000Z | 2017-11-07T12:14:28.000Z | texmap/temp.asm | osgcc/descent-pc | 819ed672e9fde6eddea634154306c5154230b84d | [
"Unlicense"
] | null | null | null | texmap/temp.asm | osgcc/descent-pc | 819ed672e9fde6eddea634154306c5154230b84d | [
"Unlicense"
] | 1 | 2021-03-30T07:34:36.000Z | 2021-03-30T07:34:36.000Z | ;THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
;SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
;END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
;ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
;IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
;SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
;FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
;CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
;AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
;COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
public tmap_loop_fast_nolight
tmap_loop_fast_nolight:
align 4
NotDwordAligned1_nolight:
test edi, 11b
jz DwordAligned1_nolight
xchg ebx, esi
; compute v coordinate
mov eax,ebp ; get v
cdq
idiv ecx ; eax = (v/z)
and eax,3fh ; mask with height-1
mov ebx,eax
; compute u coordinate
mov eax,esi ; get u
cdq
idiv ecx ; eax = (u/z)
shl eax,26
shld ebx,eax,6 ; esi = v*64+u
; read 1 pixel
mov al,es:[ebx] ; get pixel from source bitmap
; write 1 pixel
mov [edi],al
inc edi
; update deltas
add ebp,_fx_dv_dx
add esi,_fx_du_dx
add ecx,_fx_dz_dx
xchg esi, ebx
dec _loop_count
jns NotDwordAligned1_nolight
jmp _none_to_do
DwordAligned1_nolight:
mov eax, _loop_count
inc eax
mov num_left_over, eax
shr eax, NBITS
cmp eax, 0
je tmap_loop
mov _loop_count, eax ; _loop_count = pixels / NPIXS
;OPshl eax, NBITS
lea eax, [eax*8]
sub num_left_over, eax ; num_left_over = obvious
; compute initial v coordinate
mov eax,ebp ; get v
PDIV
mov V0, eax
; compute initial u coordinate
mov eax,ebx ; get u
PDIV
mov U0, eax
; Set deltas to NPIXS pixel increments
mov eax, _fx_du_dx
;OPshl eax, NBITS
lea eax, [eax*8]
mov DU1, eax
mov eax, _fx_dv_dx
;OPshl eax, NBITS
lea eax, [eax*8]
mov DV1, eax
mov eax, _fx_dz_dx
;OPshl eax, NBITS
lea eax, [eax*8]
mov DZ1, eax
align 4
TopOfLoop4_nolight:
add ebx, DU1
add ebp, DV1
add ecx, DZ1
; Done with ebx, ebp, ecx until next iteration
push ebx
push ecx
push ebp
push edi
; Find fixed U1
mov eax, ebx
PDIV
mov ebx, eax ; ebx = U1 until pop's
; Find fixed V1
mov eax, ebp
PDIV
mov ebp, eax ; ebp = V1 until pop's
mov ecx, U0 ; ecx = U0 until pop's
mov edi, V0 ; edi = V0 until pop's
; Make ESI = V0:U0 in 6:10,6:10 format
mov eax, ecx
shr eax, 6
mov esi, edi
shl esi, 10
mov si, ax
; Make EDX = DV:DU in 6:10,6:10 format
mov eax, ebx
sub eax, ecx
sar eax, NBITS+6
mov edx, ebp
sub edx, edi
shl edx, 10-NBITS ; EDX = V1-V0/ 4 in 6:10 int:frac
mov dx, ax ; put delta u in low word
; Save the U1 and V1 so we don't have to divide on the
; next iteration
mov U0, ebx
mov V0, ebp
pop edi ; Restore EDI before using it
REPT (1 SHL (NBITS-2))
REPT 4
; Do 1 pixel
mov eax, esi ; get u,v
shr eax, 26 ; shift out all but int(v)
shld ax,si,6 ; shift in u, shifting up v
mov cl, es:[eax] ; load into buffer register
add esi, edx ; inc u,v
ror ecx, 8 ; move to next dest pixel
ENDM
mov [edi],ecx ; Draw 4 pixels to display
add edi,4
ENDM
pop ebp
pop ecx
pop ebx
dec _loop_count
jnz TopOfLoop4_nolight
EndOfLoop4_nolight:
cmp num_left_over, 0
je _none_to_do
DoEndPixels_nolight:
add ebx, DU1
add ebp, DV1
add ecx, DZ1
push edi ; use edi as a temporary variable
; Find fixed U1
mov eax, ebx
PDIV
mov ebx, eax ; ebx = U1 until pop's
; Find fixed V1
mov eax, ebp
PDIV
mov ebp, eax ; ebp = V1 until pop's
mov ecx, U0 ; ecx = U0 until pop's
mov edi, V0 ; edi = V0 until pop's
; Make ESI = V0:U0 in 6:10,6:10 format
mov eax, ecx
shr eax, 6
mov esi, edi
shl esi, 10
mov si, ax
; Make EDX = DV:DU in 6:10,6:10 format
mov eax, ebx
sub eax, ecx
sar eax, NBITS+6
mov edx, ebp
sub edx, edi
shl edx, 10-NBITS ; EDX = V1-V0/ 4 in 6:10 int:frac
mov dx, ax ; put delta u in low word
pop edi ; Restore EDI before using it
mov ecx, num_left_over
ITERATION = 0
REPT (1 SHL NBITS)
; Do 1 pixel
mov eax, esi ; get u,v
shr eax, 26 ; shift out all but int(v)
shld ax,si,6 ; shift in u, shifting up v
mov al, es:[eax] ; load into buffer register
add esi, edx ; inc u,v
mov [edi+ITERATION], al ; write pixel
dec ecx
jz _none_to_do
ITERATION = ITERATION + 1
ENDM
; Should never get here!!!!!
int 3
jmp _none_to_do
| 21.524444 | 77 | 0.636382 |
6bfdbd94f8bbd538efde8c3ed50f99348da8553b | 479 | asm | Assembly | oeis/218/A218993.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/218/A218993.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/218/A218993.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A218993: Numerator of the least reduced fraction b/c > 1 using divisors b and c of n.
; Submitted by Jamie Morken(w4)
; 2,3,2,5,3,7,2,3,2,11,4,13,2,5,2,17,3,19,5,7,2,23,4,5,2,3,7,29,6,31,2,3,2,7,4,37,2,3,5,41,7,43,2,5,2,47,4,7,2,3,2,53,3,11,8,3,2,59,6,61,2,9,2,13,3,67,2,3,7,71,9,73,2,5,2,11,3,79,5,3,2,83,7,17,2,3,11,89,10,13,2,3,2,19,4,97,2,11,5,101
mov $1,$0
add $0,2
seq $1,63718 ; a(n) is the smallest divisor of n^2 that is greater than n.
gcd $0,$1
div $1,$0
mov $0,$1
| 43.545455 | 233 | 0.624217 |
06b6219a7d0c1eb6fb64e3b9c4930afe2bfe78d1 | 186 | asm | Assembly | examples/z88dk/hello2.asm | ashitani/g850dev | 83d75a45e6b3c0f43413c982be3ccbc0b5e5d482 | [
"MIT"
] | 2 | 2020-06-07T23:44:46.000Z | 2021-05-03T09:41:42.000Z | examples/z88dk/hello2.asm | ashitani/g850dev | 83d75a45e6b3c0f43413c982be3ccbc0b5e5d482 | [
"MIT"
] | null | null | null | examples/z88dk/hello2.asm | ashitani/g850dev | 83d75a45e6b3c0f43413c982be3ccbc0b5e5d482 | [
"MIT"
] | 2 | 2019-12-03T21:06:50.000Z | 2021-03-23T11:41:53.000Z | ORG 0x100
ld hl,hello_text ; 文字
ld b,12 ; 文字数
ld d,3 ; yカーソル座標
ld e,0 ; xカーソル座標
call 0xbff1 ; 文字列表示
ret
hello_text:
defb "Hello, World" | 16.909091 | 29 | 0.516129 |
7d03d245d65f8d58ea433b07753fe142dd4aec8d | 41,478 | asm | Assembly | Appl/Preferences/Setup/setupPrinter.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 504 | 2018-11-18T03:35:53.000Z | 2022-03-29T01:02:51.000Z | Appl/Preferences/Setup/setupPrinter.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 96 | 2018-11-19T21:06:50.000Z | 2022-03-06T10:26:48.000Z | Appl/Preferences/Setup/setupPrinter.asm | steakknife/pcgeos | 95edd7fad36df400aba9bab1d56e154fc126044a | [
"Apache-2.0"
] | 73 | 2018-11-19T20:46:53.000Z | 2022-03-29T00:59:26.000Z | COMMENT @--------------------------------------------------------------------
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: GEOS
MODULE: Graphical Setup -- Printer selection
FILE: setupPrinter.asm
AUTHOR: Cheng, 1/90
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
Cheng 2/90 Initial revision
DESCRIPTION:
DATA STRUCTURES:
$Id: setupPrinter.asm,v 1.1 97/04/04 16:28:11 newdeal Exp $
----------------------------------------------------------------------------@
idata segment
; Buffer into which the printer category name is built.
;
SBCS <printerCategoryString char GEODE_MAX_DEVICE_NAME_LENGTH dup(0)>
DBCS <printerCategoryString wchar GEODE_MAX_DEVICE_NAME_LENGTH dup(0)>
idata ends
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetupPrinterSelected
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Acknowledge the selection of a printer by the user.
CALLED BY: MSG_SETUP_PRINTER_SELECTED
PASS: ds = es = dgroup
RETURN: nothing
DESTROYED: ax, bx, cx, dx, si, di, es, ds
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 10/11/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
serialPortToMap word (mask SDM_COM1), \
(mask SDM_COM2), \
(mask SDM_COM3), \
(mask SDM_COM4), \
(mask SDM_COM5), \
(mask SDM_COM6), \
(mask SDM_COM7), \
(mask SDM_COM8)
SetupPrinterSelected method SetupClass, MSG_SETUP_PRINTER_SELECTED
.enter
;
; Find the printer the user selected.
;
mov bx, handle PrinterSelectList
mov si, offset PrinterSelectList
call UtilGetSelection
cmp cx, -1 ; => errant ENTER pressed
je nothingSelected
mov ds:[printerDevice], cx
mov ds:[ptestState], 0
;
; Fetch the extra word of info for the device so we know what ports
; to enable/disable.
;
mov ax, MSG_PREF_TOC_LIST_GET_SELECTED_ITEM_INFO
mov di, mask MF_CALL
call ObjMessage
mov ds:[printerInfo], al ; 1 byte only...
test ax, mask PC_RS232C or mask PC_CENTRONICS
jz noPrinter
;
; Now enable/disable the serial port selections. No ports should
; be available if it's not a serial port, else all ports except
; for the one occupied by the mose should be available
;
mov dx, 0xffff ; assume no serial conenction
test ax, mask PC_RS232C
jz doSerial
clr dx ; assume all serial ports avail
test ds:[mouseInfo], mask MEI_SERIAL
jz doSerial ; not a serial mouse - good!
mov bx, ds:[mousePort] ; else mask out this port
mov dx, cs:[serialPortToMap][bx]
doSerial:
call SetupEnableDisableSerial
;
; Now enable/disable the parallel port selections, depending on
; whether or not a parallel connection is found
;
mov dx, 0xffff ; assume no parallel connection
test ax, mask PC_CENTRONICS ; is a conenction there ??
jz doParallel
clr dx ; else enable all ports
doParallel:
call SetupEnableDisableParallel
mov bx, handle PrinterPortScreen
mov si, offset PrinterPortScreen
mov dl, VUM_NOW
mov ax, MSG_VIS_VUP_UPDATE_WIN_GROUP
clr di
call ObjMessage
;
; Finally, choose a default printer port, and show the screen
;
call ChooseDefaultPort
mov bx, handle PrinterPortScreen
mov si, offset PrinterPortScreen
mov ax, MSG_GEN_INTERACTION_INITIATE
sendMessage:
clr di
call ObjMessage
done:
.leave
ret
noPrinter:
;
; If user selected "None" conclude this test of the emergency
; printing network...
;
mov ax, MSG_SETUP_PRINTER_TEST_COMPLETE
mov bx, handle 0
jmp sendMessage
nothingSelected:
;
; User hit enter without first selecting a printer.
; Nice try, but it won't work. Tell them to try again.
;
mov si, offset NoPrinterSelectedError
mov bp,
CustomDialogBoxFlags<1,CDT_ERROR,GIT_NOTIFICATION,0>
call SetupPrinterDoDialog ; ax <- InteractionCommand
jmp done
SetupPrinterSelected endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ChooseDefaultPort
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Choose the default printer port, with preference towards
the first parallel port available
CALLED BY: SetupPrinterSelected
PASS: ds - dgroup
RETURN: Nothing
DESTROYED: AX, BX, CX, DX, DI, SI, BP
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 7/2/91 Initial version
dloft 5/14/92 GenList->GenItemGroup changes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
portList nptr Lpt1Item, Lpt2Item, Lpt3Item, \
Com1Item, Com2Item, Com3Item, Com4Item;
ChooseDefaultPort proc near
.enter
EC < call CheckDSDgroup >
;
; Loop through the table, looking for an enabled port (GenListEntry)
;
mov bx, handle Interface
clr bp
portLoop:
mov si, cs:[portList][bp] ; OD of GenListEntry => BX:SI
mov di, mask MF_CALL or mask MF_FIXUP_DS
mov ax, MSG_GEN_GET_ENABLED
call ObjMessage ; is it ENABLE'd ??
jc found ; yes, so we are home free
add bp, size nptr
cmp bp, (length portList) * (size nptr)
jl portLoop
;
; Make the enabled port the exclusive
;
found:
;
; Get the identifier of the thang and save it in printerPort
;
mov ax, MSG_GEN_ITEM_GET_IDENTIFIER
mov di, mask MF_CALL or mask MF_FIXUP_DS
call ObjMessage ; ax <- identifier, and offset
mov ds:[printerPort], ax ; to a PrefPrinterPortInfo
; structure
mov cx, ax
clr dx
mov si, offset PrinterPortList
mov ax, MSG_GEN_ITEM_GROUP_SET_SINGLE_SELECTION
clr di
call ObjMessage
.leave
ret
ChooseDefaultPort endp
COMMENT @--------------------------------------------------------------------
FUNCTION: UpdateInitFileForPrinter
DESCRIPTION: Update the ini file to contain all the parameters for the
selected printer/port.
CALLED BY: INTERNAL (SetupPrinterTestComplete, SetupInitiatePrinterTest)
PASS: ds,es - dgroup
RETURN: nothing
DESTROYED: bx, cx, dx, si, di
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Cheng 2/90 Initial version
Adam 10/90 Changed to use new PrefDevice common code.
---------------------------------------------------------------------------@
UpdateInitFileForPrinter proc near uses bp
.enter
EC< call CheckDSDgroup >
EC< call CheckESDgroup >
; If printerInfo contains neither serial nor parallel support,
; user must not want to install any printer.
test ds:[printerInfo], mask PC_RS232C or mask PC_CENTRONICS
jz noPrinter
; If a printer has already been added, delete it before continuing.
mov di, offset printerCategoryString
tst {byte}ds:[di]
jz firstPrinter
call SetupNoPrinter ; delete the old printer
firstPrinter:
mov bp, size printerCategoryString
call CreatePrinterName ; create name for printer (& category)
; Now write out the driver, device, & port information
call InitPrinterCategory ; initialize the category
; Now add the printer to the installed list
mov di, offset printerCategoryString
mov cl, PDT_PRINTER ; we're installing a printer
call SpoolCreatePrinter ; ax <- new printer number
; update the serial options if needed
mov bp, ds:[printerPort]
test ds:[bp].PPPI_type, mask PC_RS232C
jz done
mov si, offset printerCategoryString
mov cx, ds
mov dx, offset baudRateKeyString
mov bp, 9600
call InitFileWriteInteger
mov dx, offset wordLengthKeyString
mov bp, 8
call InitFileWriteInteger
mov dx, offset stopBitsKeyString
mov bp, 1
call InitFileWriteInteger
mov dx, offset parityKeyString
mov di, offset defaultParityString
call InitFileWriteString
mov dx, offset handshakeKeyString
mov di, offset defaultHandshakeString
call InitFileWriteString
done:
ornf ds:[ptestState], mask PTS_INSTALLED;flag printer as installed
.leave
ret
noPrinter:
call SetupNoPrinter
jmp done
UpdateInitFileForPrinter endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CreatePrinterName
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Create the name for the printer
CALLED BY: UpdateInitFileForPrinter
PASS: DS = DGroup
ES:DI = Buffer in which to place string
BP = Buffer size
RETURN: ES:DI = Filled buffer, NULL-terminated
DESTROYED: AX, BX, CX, DX, SI, BP
PSEUDO CODE/STRATEGY:
Get the device name
Append the " on " string, unless we're printing to a file
Append the port string, which is a localized string
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 5/23/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CreatePrinterName proc near
uses di
.enter
; Get the selected name
;
EC< call CheckDSDgroup ; verfiy DGroup >
mov cx, es
mov dx, di ; buffer => CX:DX
mov ax, MSG_PREF_ITEM_GROUP_GET_SELECTED_ITEM_TEXT
mov si, offset Interface:PrinterSelectList
call ObjMessage_interface_call
mov di, dx ; name buffer => ES:DI
add di, bp ; ES:DI => end of string
; Add the " on " string, if it is needed
;
mov si, ds:[printerPort] ; PrefPrinterPortInfo => DS:SI
test ds:[si].PPPI_type, mask PC_FILE
jnz portName
mov bx, handle printerOnString
mov si, offset printerOnString
call PrinterLockAndCopy ; lock & copy string
LocalPrevChar esdi ; position ES:DI over NULL
; tack on port name
portName:
mov si, ds:[printerPort] ; PrefPrinterPortInfo => DS:SI
mov bx, handle lpt1String
mov si, ds:[si].PPPI_string
call PrinterLockAndCopy ; lock & copy string
.leave
ret
CreatePrinterName endp
PrinterLockAndCopy proc near
uses ds
.enter
call SetupLockString ; string => DS:SI
ChunkSizePtr ds, si, cx ; length => CX
rep movsb ; copy the string (w/ NULL)
call MemUnlock ; unlock Strings block
.leave
ret
PrinterLockAndCopy endp
ObjMessage_interface_call proc near
mov di, mask MF_CALL
GOTO ObjMessage_interface_common
ObjMessage_interface_call endp
ObjMessage_interface_send proc near
clr di
FALL_THRU ObjMessage_interface_common
ObjMessage_interface_send endp
ObjMessage_interface_common proc near
mov bx, handle Interface
call ObjMessage
ret
ObjMessage_interface_common endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
InitPrinterCategory
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Initialize the installed printer category information.
CALLED BY: UpdateInitFileForPrinter
PASS: DS, ES = DGroup
printerCategoryString filled
RETURN: Nothing
DESTROYED: AX, BX, CX, DX, DI, SI, BP
PSEUDO CODE/STRATEGY:
Write out the:
driver name
device name
port string
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 5/23/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
InitPrinterCategory proc near
.enter
EC< call CheckDSDgroup >
EC< call CheckESDgroup >
; Set the initfile category for UI objects
;
mov cx, ds
mov dx, offset printerCategoryString
mov ax, MSG_PREF_SET_INIT_FILE_CATEGORY
mov si, offset Interface:PrinterSelectList
call ObjMessage_interface_send
mov ax, MSG_PREF_SET_INIT_FILE_CATEGORY
mov si, offset Interface:PrinterPortList
call ObjMessage_interface_send
; Write out the driver & device name
;
mov ax, MSG_META_SAVE_OPTIONS
mov si, offset PrinterSelectList
call ObjMessage_interface_send
; Write out the port to use.
;
mov ax, MSG_META_SAVE_OPTIONS
mov si, offset PrinterPortList
call ObjMessage_interface_send
.leave
ret
InitPrinterCategory endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetupSetPrinterPort
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Record the port chosen by the user.
CALLED BY: MSG_SETUP_SET_PRINTER_PORT
PASS: ds = dgroup
cx = offset of SetupPrinterPort structure of chosen port
RETURN: nothing
DESTROYED: ax, bx, cx, dx, si, di, es, ds, bp
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 10/11/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SetupSetPrinterPort method SetupClass, MSG_SETUP_SET_PRINTER_PORT
.enter
;
; First record the selected port.
;
mov ds:[printerPort], cx
;
; Set the ptestState flags to 0 to make sure we verify the chosen
; port.
;
mov ds:[ptestState], 0
.leave
ret
SetupSetPrinterPort endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetupPrinterPortSelected
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Acknowledge the selection of a port for the printer by the
user.
CALLED BY: MSG_SETUP_PRINTER_PORT_SELECTED
PASS: ds = es = dgroup
RETURN: nothing
DESTROYED: ax, bx, cx, dx, si, di, es, ds, bp
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 10/11/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SetupPrinterPortSelected method SetupClass, MSG_SETUP_PRINTER_PORT_SELECTED
.enter
mov si, ds:[printerPort]
test ds:[si].PPPI_type, mask PC_RS232C
jnz doSerialStuff
mov si, offset PrinterTestScreen
mov bx, handle PrinterTestScreen
mov ax, MSG_GEN_INTERACTION_INITIATE
clr di
call ObjMessage
done:
.leave
ret
doSerialStuff:
mov ax, ds:[si].PPPI_portNum
mov si, offset PrinterSerialScreen
mov bx, handle PrinterSerialScreen
mov dx, offset PrinterSerialIntScreen
mov cx, handle PrinterSerialIntScreen
call SetupNextSerialScreen
jmp done
SetupPrinterPortSelected endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetupPrinterIntSelected
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Acknowledge the setting of the interrupt for the serial
port into which the printer's been plugged.
CALLED BY: MSG_SETUP_PRINTER_INT_SELECTED
PASS: ds = es = dgroup
RETURN: nothing
DESTROYED: ax, bx, cx, dx, si, di, bp, ds, es
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 10/15/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SetupPrinterIntSelected method SetupClass, MSG_SETUP_PRINTER_INT_SELECTED
.enter
mov bx, handle PrinterSerialIntRange
mov si, offset PrinterSerialIntRange
call GetRange
mov si, ds:[printerPort]
mov ax, ds:[si].PPPI_portNum
call SetupDefineSerialPort
jc backToPortSelect
; Make sure that the given port/interrupt combination is tested.
mov ds:[ptestState], 0
mov bx, handle PrinterSerialScreen
mov si, offset PrinterSerialScreen
mov ax, MSG_GEN_INTERACTION_INITIATE
sendMethod:
clr di
call ObjMessage
.leave
ret
backToPortSelect:
mov bx, handle PrinterSerialIntScreen
mov si, offset PrinterSerialIntScreen
mov ax, MSG_SETUP_SCREEN_DISMISS
jmp sendMethod
SetupPrinterIntSelected endp
COMMENT @--------------------------------------------------------------------
FUNCTION: SetupTestPrinter
DESCRIPTION: Generate the test page for the spooler to print.
CALLED BY: MSG_SETUP_TEST_PRINTER
PASS: cx:dx - OD to which to send MSG_PRINTING_COMPLETE
bp - handle of gstate to use when printing
RETURN: Nothing
DESTROYED: ax, bx, cx, dx, si, di, es, ds
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Cheng 5/90 Initial version
Adam 10/90 Changed to use gstring in lmem resource
Don 2/91 Changed to use common code & separate strings
----------------------------------------------------------------------------@
SetupTestPrinter method SetupClass, MSG_SETUP_TEST_PRINTER
; We must print the test page. Set-up the defaults
;
push cx, dx ; save the SPC OD
call PrintTestDrawCornerMarks ; setup page; draw corner marks
; Print string #1
;
mov si, offset printString1
call SetupLockString ; string => DS:SI
mov dx, ds
mov bp, si ; string => DX:BP
mov ax, 150 ; vertical offset => AX
call PrintTestDrawCenteredString ; draw the damm string
mov bx, handle Strings
call MemUnlock ; unlock resource handle in BX
; Print string #2
;
mov si, offset printString2
call SetupLockString ; string => DS:SI
mov dx, ds
mov bp, si ; string => DX:BP
mov ax, 200 ; vertical offset => AX
call PrintTestDrawCenteredString ; draw the damm string
mov bx, handle Strings
call MemUnlock ; unlock resource handle in BX
; Print name of printer (#3)
;
push cx ; save paper width
mov cx, FID_DTC_URW_ROMAN
mov dx, 18 ; font size => DX:AH
clr ah
call GrSetFont ; use smaller point size
mov dx, dgroup ; printer name => DX:BP
mov bp, offset printerCategoryString
pop cx ; paper Width => CX
mov ax, 250 ; vertical offset => AX
call PrintTestDrawCenteredString ; draw the damm string
;
; Tell the spooler we've sent all we're going to send
;
mov ax, MSG_PRINT_CONTROL_PRINTING_COMPLETED
pop bx, si
clr di
call ObjMessage
ret
SetupTestPrinter endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetupVerifyPortSelection
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Verify that the port is OK
CALLED BY: SetupInitiatePrinterTest, SetupPrinterTestComplete
PASS: ds = dgroup
RETURN: ax - PVR_OK if port is ok
- PVR_BAD_IGNORE if port is not ok, but user doesn't
care. PTS_INSTALL_ANYWAY in ptestState tells whether
to install the printer anyway.
- PVR_BAD if port is not ok and user wants to make
another choice.
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
Verify the printer port (using the handy
SpoolVerifyPrinterPort function)
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Jim 08/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
parallelParams equ <portParams.PPI_params.PP_parallel>
serialParams equ <portParams.PPI_params.PP_serial>
SetupVerifyPortSelection proc near
uses bx,cx,dx,si,di
portParams local PrintPortInfo
.enter
mov si, ds:[printerPort]
test ds:[si].PPPI_type, mask PC_RS232C
LONG jnz handleSerialPort
; it's a parallel port. just need to set up the port number
mov ss:[portParams].PPI_type, PPT_PARALLEL; save port type
mov ax, ds:[si].PPPI_portNum
mov ss:[parallelParams].PPP_portNum, ax
verifyPort:
; verify it using the spooler function.
push ds
segmov ds, ss, si
lea si, ss:[portParams]
call SpoolVerifyPrinterPort
pop ds
CheckHack <SPOOL_OPERATION_SUCCESSFUL eq PVR_OK>
tst ax
jz portVerified
; something is wrong. Let the user know.
ornf ds:[ptestState], mask PTS_VERIFY_FAILED
push bp,ds ; save frame pointer
mov si, offset VerifyErrorString
mov bp, CustomDialogBoxFlags<1,CDT_QUESTION,GIT_AFFIRMATION,0>
call SetupPrinterDoDialog ; ax <- InteractionCommand
mov bp, PVR_BAD ; assume user wants to not
cmp ax, IC_NO ; advance.
je unlockResource
mov bp, PVR_BAD_IGNORE ; flag caller should install
; anyway
EC < call CheckESDgroup >
ornf es:[ptestState], mask PTS_INSTALL_ANYWAY
unlockResource:
xchg ax, bp ; ax <- return value
pop bp, ds ; restore frame pointer
portVerified:
.leave
ret
; for serial ports, we need to fetch a whole lot more data.
handleSerialPort:
mov portParams.PPI_type, PPT_SERIAL ; save the port type
mov ax, ds:[si].PPPI_portNum
mov ss:[serialParams].SPP_portNum, ax
; fill in the other parts to the structure. they are fixed.
mov ss:[serialParams].SPP_baud, SB_9600 ; save baud rate
mov ss:[serialParams].SPP_format,
SerialFormat <0,0,SP_NONE,0,SL_8BITS>
mov ss:[serialParams].SPP_mode, SM_RAW ; assume raw
mov ss:[serialParams].SPP_flow, mask SFC_SOFTWARE
mov ss:[serialParams].SPP_stopRem, 0
mov ss:[serialParams].SPP_stopLoc, 0
jmp verifyPort
SetupVerifyPortSelection endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetupInitiatePrinterTest
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Initiate the testing of a printer
CALLED BY: MSG_SETUP_START_PRINTER_TEST
PASS: ds = es = dgroup
RETURN: nothing
DESTROYED: nothing
PSEUDO CODE/STRATEGY:
check to see if the printer port is ok
if so
send the test document
KNOWN BUGS/SIDE EFFECTS/IDEAS:
none
REVISION HISTORY:
Name Date Description
---- ---- -----------
Jim 08/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SetupInitiatePrinterTest method SetupClass, MSG_SETUP_START_PRINTER_TEST
.enter
; Before doing anything else, make sure that a printer test has
; not already been initiated. If any printer info is changed
; while a test is underway, bad things can happen. ptestState
; is cleared when a printer or port is selected.
test ds:[ptestState], mask PTS_TESTED
jnz exit
; Now verify that the port is ok.
call SetupVerifyPortSelection
cmp ax, PVR_BAD ; did the port check out ?
je exit ; no, don't test it
; if port's ok, or user wants to install anyway, store the
; printer in the ini file so the spooler can find it.
ornf ds:[ptestState], mask PTS_TESTED ; printer is tested
call UpdateInitFileForPrinter
; if the port's ok, send the message to start the test
test ds:[ptestState], mask PTS_VERIFY_FAILED
jnz exit
push bp ; save frame pointer
mov dl, VUM_NOW
mov ax, MSG_GEN_SET_ENABLED
mov bx, handle PrinterTest
mov si, offset PrinterTest
mov di, mask MF_FIXUP_DS
call ObjMessage ; let the PrintControl know
mov ax, MSG_PRINT_CONTROL_INITIATE_PRINT
mov di, mask MF_FIXUP_DS
call ObjMessage ; let the PrintControl know
pop bp ; restore frame pointer
exit:
.leave
ret
SetupInitiatePrinterTest endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetupGetDocName
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Return a document name for the test page to the spooler
CALLED BY: MSG_PRINT_GET_DOC_NAME
PASS: ds = dgroup
cx:dx = PrintControl
bp = message to send in return
RETURN: nothing
DESTROYED: anything
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This procedure commented out due to changes in the
PrintControl object DL 2/9/92
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 10/11/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SetupGetDocName method SetupClass, MSG_PRINT_GET_DOC_NAME
.enter
;
; Lock down the name of our document thingy.
;
mov si, offset PTestDocumentName
call SetupLockString
;
; Return the string to whoever requested it. We have to use MF_CALL
; so we can safely unlock the string after the call returns...
;
mov bx, cx
xchg si, dx
mov cx, ds
mov di, mask MF_CALL
mov ax, MSG_PRINT_CONTROL_SET_DOC_NAME
call ObjMessage
;
; Let the strings resource done...
;
mov bx, handle Strings
call MemUnlock
.leave
ret
SetupGetDocName endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetupPrinterStartPrinting
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
vSYNOPSIS: Print a test file
CALLED BY: GLOBAL (MSG_PRINT_START_PRINTING)
PASS: DS, ES = DGroup
CX:DX = PrintControl OD
BP = GState
RETURN: Nothing
DESTROYED: AX, BX, CX, DX, DI, SI, BP
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 5/19/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SetupPrinterStartPrinting method dynamic SetupClass,
MSG_PRINT_START_PRINTING
.enter
; Check to see if a job is already spooled. If so, notify the
; user and cancel the spool job
;
push cx, dx ; save the PrintControl chunk
call CheckSpoolEmpty ; already printing ??
jnc doTest ; no, so print document
mov si, offset spoolBusyString
mov bp, CustomDialogBoxFlags<1,CDT_ERROR,GIT_NOTIFICATION,0>
call SetupPrinterDoDialog
mov ax, MSG_PRINT_CONTROL_PRINTING_CANCELLED
jmp done ; we're outta here
; We must print the test page. Set-up the defaults
doTest:
call PrintTestDrawCornerMarks ; setup page; draw corner marks
; Print string #1
;
mov bx, handle printString1
mov si, offset printString1
call StringLock ; string => DX:BP
mov ax, 150 ; vertical offset => AX
call PrintTestDrawCenteredString ; draw the damm string
call MemUnlock ; unlock resource handle in BX
; Print string #2
;
mov bx, handle printString2
mov si, offset printString2
call StringLock ; string => DX:BP
mov ax, 200 ; vertical offset => AX
call PrintTestDrawCenteredString ; draw the damm string
call MemUnlock ; unlock resource handle in BX
; Print name of printer (#3)
;
push cx ; save paper width
mov cx, FID_DTC_URW_ROMAN
mov dx, 18 ; font size => DX:AH
clr ah
call GrSetFont ; use smaller point size
mov dx, dgroup
mov bp, offset printerCategoryString ; printer name buffer => dx:bp
pop cx ; paper width => CX
mov ax, 250 ; vertical offset => AX
call PrintTestDrawCenteredString ; draw the damm string
mov al, PEC_FORM_FEED ; put out the form feed
call GrNewPage
; Now clean up and leave (expect method in AX at "done" label)
;
mov ax, MSG_PRINT_CONTROL_PRINTING_COMPLETED
done:
pop bx, si
clr di
call ObjMessage ; send the notification
.leave
ret
SetupPrinterStartPrinting endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetupPrinterTestComplete
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: User wants to proceed from the PrinterTestScreen. Do so
after cleaning up.
CALLED BY: MSG_SETUP_PRINTER_TEST_COMPLETE
PASS: ds = es = dgroup
RETURN: nothing
DESTROYED: anything
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 10/12/90 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SetupPrinterTestComplete method SetupClass, MSG_SETUP_PRINTER_TEST_COMPLETE
;
; If printer's been tested, it's been installed and we're fine.
; If printer's been installed but not tested, the port was not
; verified, but the user decided to install anyways.
;
test ds:[ptestState], mask PTS_INSTALLED or mask PTS_TESTED
jnz nextScreen
;
; If printerInfo contains neither serial nor parallel support,
; user must not want to install any printer. We still must call
; UpdateInitFileForPrinter so the numberOfPrinters gets set to 0...
;
test ds:[printerInfo], mask PC_RS232C or mask PC_CENTRONICS
jz update
;
; Else, user has chosen a printer, but hasn't tried to test it. Verify
; the port, at least. If the verify fails, proceed to the next screen,
; as the user has bailed on the current printer.
;
call SetupVerifyPortSelection
cmp ax, PVR_BAD ; bad printer/port combination?
je done ; yes, don't install it.
update:
;
; Verify succeeded, or user decided to install the printer anyway,
; or user did not select any printers.
;
call UpdateInitFileForPrinter
nextScreen:
;
; In case this is an upgrade from 1.X:
; See if there are any 1.X documents or backgrounds which
; were copied to this installation by the install program.
;
call SetupFindOldDocuments
jc noUpgrade ; directory not found?
tst dx ; any 1.X files?
jz noUpgrade ; no, skip the upgrade
mov bx, handle DocumentUpgradeScreen
mov si, offset DocumentUpgradeScreen
jmp initiate
noUpgrade:
mov si, offset InstallDoneText ; assume don't ask
call SetupAskForSerialNumber?
jnc setupComplete ; don't ask, done
mov bx, handle SerialNumberScreen ; else ask for serial#
mov si, offset SerialNumberScreen
initiate:
mov ax, MSG_GEN_INTERACTION_INITIATE
clr di
call ObjMessage
;
; if we are going to the serial number screen, we're done
;
cmp si, offset SerialNumberScreen
je done
;
; Else there are documents that need upgrading. Do it now.
;
call SetupUpgradeAllDocuments
;
; Initiate the 'upgrade complete' screen, dismiss the upgrade screen.
;
mov ax, MSG_GEN_INTERACTION_INITIATE
mov bx, handle DocumentUpgradeCompleteScreen
mov si, offset DocumentUpgradeCompleteScreen
clr di
call ObjMessage
mov ax, MSG_GEN_GUP_INTERACTION_COMMAND
mov cx, IC_DISMISS
mov bx, handle DocumentUpgradeScreen
mov si, offset DocumentUpgradeScreen
clr di
call ObjMessage
jmp done
setupComplete:
;
; Advance to the...DoneScreen! Da daaaaa!
;
mov si, offset InstallDoneText
call SetupComplete
done:
ret
SetupPrinterTestComplete endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetupFindOldDocuments
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Look for 1.X files in document directory, or sub-dirs??
CALLED BY: SetupPrinterTestComplete
PASS: nothing
RETURN: dx - 0 if no old VM files
- non-zero if old VM files
carry set if error changing or reading directories
DESTROYED: ax,bx,cx,dx,ds,si,es,di,bp
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 4/16/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SBCS <noDir char 0 >
SBCS <backgrndDir char 'BACKGRND', 0 >
DBCS <noDir wchar 0 >
DBCS <backgrndDir wchar 'BACKGRND', 0 >
oldVM word GFT_OLD_VM
SetupFindOldDocuments proc near
.enter
mov ax, MSG_GEN_APPLICATION_MARK_APP_COMPLETELY_BUSY
call callApp
;
; Push to the document directory.
;
call FilePushDir
mov bx, SP_DOCUMENT
segmov ds, cs, di
mov dx, offset noDir
call FileSetCurrentPath
jc done
;
; Allocate the matchAttrs array with 2 real entries and
; 1 dummy entry to mark the end of the array.
;
sub sp, (size FileExtAttrDesc * 2)
segmov es, ss, di
mov di, sp
push di
;
; The first two matchAttrs entries say to look for files that are
; old VM files or directories.
;
mov es:[di].FEAD_attr, FEA_FILE_TYPE
mov es:[di].FEAD_value.segment, cs
mov es:[di].FEAD_value.offset, offset oldVM
mov es:[di].FEAD_size, size word
add di, size FileExtAttrDesc
mov es:[di].FEAD_attr, FEA_END_OF_LIST
pop di ; es:di <- matchAttrs
call SetupFindOldDocumentsLow
mov dx, ax
jc popDir
tst dx ; were old VM files found?
jnz popDir ; yes, exit now
;
; Now documents were found, check if there are any old background
; files. Push to the backgrnd directory.
;
mov bx, SP_USER_DATA
segmov ds, cs, ax
mov dx, offset backgrndDir
call FileSetCurrentPath
jc popDir
mov dx, offset noDir ; no dir change on first pass
call SetupFindOldDocumentsLow
mov dx, ax
popDir:
lahf
add sp, (size FileExtAttrDesc * 2)
call FilePopDir
sahf
done:
mov ax, MSG_GEN_APPLICATION_MARK_APP_NOT_COMPLETELY_BUSY
call callApp
.leave
ret
callApp:
pushf
clr bx
call GeodeGetAppObject
clr di
call ObjMessage
popf
retn
SetupFindOldDocuments endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetupFindOldDocumentsLow
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Enumerate a directory looking for old VM files
CALLED BY: SetupFindOldDocuments
PASS: es:di - matchAttrs
ds:dx - directory to change to
RETURN: ax - 0 if no old VM files in this directory
- non-zero if there are old VM files
carry set if error setting path or reading directory
DESTROYED: dx,bp
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 4/20/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SetupFindOldDocumentsLow proc near
uses bx,cx,si,ds
.enter
;
; move to the next sub directory
;
clr bx ; path is relative
call FileSetCurrentPath
jc done
;
; construct the FileEnumParams to pass to FileEnum
;
sub sp, size FileEnumParams
mov bp, sp
;
; return longnames of sub-dirs and GEOS non-exec files which
; match the attrs in matchAttrs.
;
mov ss:[bp].FEP_searchFlags, mask FESF_GEOS_NON_EXECS or \
mask FESF_DIRS
clr ss:[bp].FEP_skipCount ; don't skip any files
movdw ss:[bp].FEP_matchAttrs, esdi
clr ss:[bp].FEP_returnAttrs.segment
mov ss:[bp].FEP_returnAttrs.offset, FESRT_NAME_AND_ATTR
mov ss:[bp].FEP_returnSize, size FENameAndAttr
mov ss:[bp].FEP_bufSize, FE_BUFSIZE_UNLIMITED
call FileEnum ; cx <- count of names returned
; ^hbx <- buffer
jc done ; carry set if error
clr ax ; no VM files found yet
tst bx ; anything returned?
clc
jz done ; no, we're done
call MemLock ; lock the returned buffer
mov ds, ax
;
; Were any of the file names returned for real files, not
; subdirectories?
;
clr si ; ds:si <- first FENameAndAttr
mov dx, cx ; save count in dx
clr ax ; no files found yet
fileLoop:
test ds:[si].FENAA_attr, mask FA_SUBDIR; is it a subdir?
jz doneDir ; no, it's a VM file!
add si, size FENameAndAttr ; point to next entry
loop fileLoop
;
; No old VM files were found in this directory.
; If there are subdirectories, look for old VM files there.
;
clr si ; ds:si <- first FENameAndAttr
mov cx, dx ; cx <- # FENameAndAttr in buf
dirLoop:
test ds:[si].FENAA_attr, mask FA_SUBDIR ; is it a subdir?
jz continue ; no, continue
lea dx, ds:[si].FENAA_name ; ds:dx <- dir name
call FilePushDir ; save current dir
call SetupFindOldDocumentsLow ; recurse...
call FilePopDir ; restore curent dir
jc error ; abort if error
tst ax ; any VM files found?
jnz doneDir ; yes, found one!
continue:
add si, size FENameAndAttr ; ds:si <- next entry
loop dirLoop
mov ax, -1 ; none found
doneDir:
inc ax ; ax = 0 if none found
call MemFree ; free FileEnum buffer
clc ; signal no errors
done:
.leave
ret
error:
call MemFree ; free FileEnum buffer
stc ; signal error
jmp done
SetupFindOldDocumentsLow endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetupPrinterDoDialog
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: An error has occurred, put up a dialog box to inform
the user.
CALLED BY: INTERNAL ()
PASS: si - chunk handle of string in Strings resource
cx - chunk handle of 1st string argmunet, if any
dx - chunk handle of 2nd string argument, if any
bp - CustomDialogBoxFlags
RETURN: nothing
DESTROYED: ax,bx,si,di,ds
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 4/14/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SetupPrinterDoDialog proc near
; push on stack: StandardDialogParams structure
;
clr ax
pushdw axax ; SDP_helpContext
pushdw axax ; SDP_customTriggers
; Lock the error message strings (all should be in Strings resource)
;
mov bx, handle Strings ; ^lbx:si <- error string
call SetupLockString ; ds:si <- error string
mov di, dx
mov di, ds:[di]
pushdw dsdi ; SDP_stringArg2
mov di, cx
mov di, ds:[di]
pushdw dsdi ; SDP_stringArg1
pushdw dssi ; SDP_customString
push bp ; SDP_customFlags
call UserStandardDialog
call MemUnlock ; unlock Strings
ret
SetupPrinterDoDialog endp
COMMENT @----------------------------------------------------------------------
FUNCTION: StringLock
DESCRIPTION:
CALLED BY: INTERNAL ()
PASS: bx - resource handle
si - chunk handle
RETURN: dx:bp - string
DESTROYED:
REGISTER/STACK USAGE:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Cheng 11/90 Initial version
------------------------------------------------------------------------------@
StringLock proc near
uses ax, ds
.enter
call MemLock ;ax,bx <- seg addr of resource
mov ds, ax
xchg dx, ax ;dx = segment of string
mov bp, ds:[si] ;deref string chunk
.leave
ret
StringLock endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CheckSpoolEmpty
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Determine if the spooler has any job waiting on the queue
for the appropriate port
CALLED BY: INTERNAL (SetupPrinterStartPrinting)
PASS: DS = DGroup
RETURN: Carry = Clear if queue is empty
= Set if not
DESTROYED: AX, BX, SI
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 5/19/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
CheckSpoolEmpty proc near
uses cx, dx, bp
.enter
; Allocate a PrintPortInfo struct, and initialize it
;
sub sp, size PrintPortInfo ; allocate structure on stack
mov si, sp
mov bx, ds:[printerPort]
;EC < xchg si, bx >
;EC < call ECCheckPrinterPort >
;EC < xchg si, bx >
mov ax, PPT_SERIAL
test ds:[bx].PPPI_type, mask PC_RS232C
jnz setPortType
mov ax, PPT_PARALLEL
test ds:[bx].PPPI_type, mask PC_CENTRONICS
jnz setPortType
mov ax, PPT_FILE
setPortType:
mov ss:[si].PPI_type, ax ; store the port type
mov ax, ds:[bx].PPPI_portNum ; get and store the port number
mov ss:[si].PPI_params.PP_serial.SPP_portNum, ax
; Now call the spooler
;
mov cx, SIT_QUEUE_INFO
mov dx, ss ; PrintPortInfo => DX:SI
call SpoolInfo ; data handle => BX (maybe)
cmp ax, SPOOL_QUEUE_EMPTY
je done
cmp ax, SPOOL_QUEUE_NOT_FOUND
je done
stc ; indicate port is busy
done:
lahf ; save the carry
add sp, size PrintPortInfo ; free structure from stack
sahf ; restore the carry
.leave
ret
CheckSpoolEmpty endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SetupNoPrinter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Remove the printer previously installed, if there was
one. (this will be called if user selects "None", or
if changing the printer selections.)
CALLED BY: INTERNAL (UpdateInitFileForPrinter)
PASS: ds - dgroup
RETURN: nothing
DESTROYED: ax
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
cassie 4/21/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
SetupNoPrinter proc near
EC< call CheckDSDgroup >
; Delete the printer, remove its ini file category string
clr ax
call SpoolDeletePrinter
; Reinitialize the printerCategoryString
clr {byte}ds:[printerCategoryString]
ret
SetupNoPrinter endp
| 25.291463 | 80 | 0.619509 |
3ca318e95eb8eaccb8b21aaff9ed8b77415026d7 | 2,917 | asm | Assembly | tb/tprog/asm/main.asm | mshaklunov/mips_onemore | b52b01f4d3bf458285b610aafd700d23e8c7f676 | [
"MIT"
] | null | null | null | tb/tprog/asm/main.asm | mshaklunov/mips_onemore | b52b01f4d3bf458285b610aafd700d23e8c7f676 | [
"MIT"
] | null | null | null | tb/tprog/asm/main.asm | mshaklunov/mips_onemore | b52b01f4d3bf458285b610aafd700d23e8c7f676 | [
"MIT"
] | null | null | null |
.eqv GREG_CNT $30
.eqv GREG_INT $29
.eqv PRINTPORT_HIGH 0x1001
.eqv PRINTPORT_LOW 0x0000
.eqv INTPORT_HIGH 0x1002
.eqv INTPORT_LOW 0x0000
.include "macro_print.asm"
#-------------------------------------------------------------------------------
.text
#INIT TEST COUNTER
lui GREG_CNT 0x0000
ori GREG_CNT 0x0000
.include "test.sll.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 1
macro_print
.include "test.srl.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 2
macro_print
.include "test.sra.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 3
macro_print
.include "test.sllv.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 4
macro_print
.include "test.srlv.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 5
macro_print
.include "test.srav.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 6
macro_print
.include "test.mult.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 7
macro_print
.include "test.multu.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 8
macro_print
.include "test.div.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 9
macro_print
.include "test.divu.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 10
macro_print
.include "test.mfhi.mthi.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 11
macro_print
.include "test.mflo.mtlo.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 12
macro_print
.include "test.add.addu.addi.addiu.asm"
addi GREG_CNT GREG_CNT 1 #TEST COUNTER 13
macro_print
.include "test.sub.subu.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 14
macro_print
.include "test.and.or.xor.nor.andi.ori.xori.lui.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 15
macro_print
.include "test.slt.sltu.slti.sltiu.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 16
macro_print
.include "test.bltz.blez.bgtz.bgez.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 17
macro_print
.include "test.beq.bne.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 18
macro_print
.include "test.sb.sh.sw.lb.lbu.lh.lhu.lw.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 19
macro_print
.include "test.pl.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 20
macro_print
.include "test.cp0.ov_addr.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 21
macro_print
.include "test.cp0.pl_mem.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 22
macro_print
#NEXT TESTS IS NOT SIMULATED IN MARS
.include "test.cp0.int.nomars.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 23
macro_print
.include "test.cp0.branch.nomars.asm"
addiu GREG_CNT GREG_CNT 1 #TEST COUNTER 24
macro_print
success:
lui GREG_CNT 0xFFFF #TEST SUCCESS END LOOP
ori GREG_CNT 0xFFFF
macro_print
j success
sll $0 $0 0
fail:
lui GREG_CNT 0x0000 #TEST FAIL END LOOP
ori GREG_CNT 0x0000
macro_print
j fail
sll $0 $0 0
#-------------------------------------------------------------------------------
.ktext 0x80000180
.include "exc_handler.asm"
| 20.985612 | 80 | 0.701063 |
eaf90b2263be77757c5d5d684fe3e4ae1a72e3aa | 191 | asm | Assembly | Working Disassembly/Levels/LRZ/Misc Object Data/Map - Solid Rock.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/LRZ/Misc Object Data/Map - Solid Rock.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 7e8a2c5df02271615ff4cae529521e6b1560d6b1 | [
"Apache-2.0"
] | null | null | null | Working Disassembly/Levels/LRZ/Misc Object Data/Map - Solid Rock.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 7e8a2c5df02271615ff4cae529521e6b1560d6b1 | [
"Apache-2.0"
] | null | null | null | dc.w word_44288-Map_LRZSolidRock
word_44288: dc.w 3 ; DATA XREF: ROM:00044286o
dc.b $F0, $D, 0, $30, $FF, $E8
dc.b 0, $D, 0, $20, $FF, $E8
dc.b $F0, 7, 0, $38, 0, 8
| 31.833333 | 48 | 0.518325 |
2b77fe64f8234977bf670f1ab3dc770345683c50 | 665 | asm | Assembly | src/8088/pc_high.asm | vossi1/cbm2-pc-emulator-v9958 | 31a1083207234c7720647083082def0ce9654b01 | [
"Apache-2.0"
] | null | null | null | src/8088/pc_high.asm | vossi1/cbm2-pc-emulator-v9958 | 31a1083207234c7720647083082def0ce9654b01 | [
"Apache-2.0"
] | null | null | null | src/8088/pc_high.asm | vossi1/cbm2-pc-emulator-v9958 | 31a1083207234c7720647083082def0ce9654b01 | [
"Apache-2.0"
] | null | null | null |
%undef ROM
%undef STANDALONE
[BITS 16]
[CPU 8086]
[ORG 0x0100]
[SECTION .text]
; Starting offest of the resident code.
Install_Start equ ($-$$)
; Number of bytes to leave from the top of memory.
; to make room for MS-DOS 1.25 COMMAND.COM portion.
Install_Leave equ 1800h
call Install_High
int 20h
%include 'src/8088/include/debug.asm'
%include 'src/8088/include/ipc.asm'
%include 'src/8088/include/int.asm'
%include 'src/8088/include/init.asm'
%include 'src/8088/include/data.asm'
Init_Far:
call Init_INT
retf
; Installable code ends here.
Install_End:
%include 'src/8088/include/install.asm'
%include 'src/8088/include/version.asm'
| 17.972973 | 51 | 0.723308 |
0281e18354f6156dadc2424542c809acfb366550 | 3,938 | asm | Assembly | Transynther/x86/_processed/NC/_zr_/i3-7100_9_0x84_notsx.log_21829_381.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_0x84_notsx.log_21829_381.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_0x84_notsx.log_21829_381.asm | ljhsiun2/medusa | 67d769b8a2fb42c538f10287abaf0e6dbb463f0c | [
"MIT"
] | 3 | 2020-07-14T17:07:07.000Z | 2022-03-21T01:12:22.000Z | .global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r14
push %r15
push %r8
push %r9
push %rax
push %rbx
push %rsi
// Load
lea addresses_WC+0xa6a, %r15
and %r9, %r9
movb (%r15), %bl
nop
nop
nop
sub $52949, %rax
// Faulty Load
mov $0x1581550000000b9a, %rsi
nop
nop
nop
nop
nop
add %r14, %r14
mov (%rsi), %r15d
lea oracles, %rbx
and $0xff, %r15
shlq $12, %r15
mov (%rbx,%r15,1), %r15
pop %rsi
pop %rbx
pop %rax
pop %r9
pop %r8
pop %r15
pop %r14
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_NC', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC', 'same': False, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_NC', 'same': True, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'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
*/
| 69.087719 | 2,999 | 0.660234 |
f30c2432dd92f3d657186b5c090c816b59288326 | 100 | asm | Assembly | Sub Immediate/immsub.asm | adi-075/8085-microproccesor-programs | 39e5f604fc4bab441c59df3ab116e5b3e16dd43a | [
"MIT"
] | 2 | 2021-03-20T07:36:57.000Z | 2021-04-03T11:55:40.000Z | Sub Immediate/immsub.asm | adi-075/8085-microproccesor-programs | 39e5f604fc4bab441c59df3ab116e5b3e16dd43a | [
"MIT"
] | null | null | null | Sub Immediate/immsub.asm | adi-075/8085-microproccesor-programs | 39e5f604fc4bab441c59df3ab116e5b3e16dd43a | [
"MIT"
] | null | null | null |
;WAP to subtract 02H and 03H
jmp start
;data
;code
start: nop
MVI A, 03H
MVI B, 02H
SUB B
hlt | 6.25 | 28 | 0.67 |
7f5d475fa807d8ae0eca1ac87811d862e2bc12bb | 11,771 | asm | Assembly | prc4.asm | lestersantos/Assembly2019 | b8a23e8a4a88142182b3fbd3e15b82d720bda10a | [
"BSD-2-Clause"
] | null | null | null | prc4.asm | lestersantos/Assembly2019 | b8a23e8a4a88142182b3fbd3e15b82d720bda10a | [
"BSD-2-Clause"
] | null | null | null | prc4.asm | lestersantos/Assembly2019 | b8a23e8a4a88142182b3fbd3e15b82d720bda10a | [
"BSD-2-Clause"
] | null | null | null | ;UNIVERSIDAD DE SAN CARLOS DE GUATEMALA
;FACULTAD DE INGENIERIA
;ARQUITECTURA DE COMPUTADORAS Y ENSAMBLADORES 1
;PRACTICA 4
;LESTER EFRAIN AJUCUM SANTOS
;201504510
;My first program in assembly!!!
;====================================== MY MACROS =================================
%macro print 1 ;this macro will print to screen
mov dx, %1 ;refers to the first parameter to the macro call
mov ah, 09h ;09h function write string
int 21h ;call the interruption
%endmacro
%macro printChar 1 ;this macro will print to screen
mov dl, %1 ;refers to the first parameter to the macro call
mov ah, 06h ;09h function write string
int 21h ;call the interruption
%endmacro
%macro readInputChar 0
mov ah, 01h ;Return AL with the ASCII of the read char
int 21h ;call the interruption
%endmacro
%macro readString 0
mov si, 0 ;initialize counter in 0
%%while:
mov ah, 01h
int 21h
cmp al, 0dh ; al = CR(carriage return)
je %%skip
cmp al, 45h ; al = letter E
je %%letterE
cmp al, 53h ; al = letter S
je %%letterS ;jump to state S either for SAVE or SHOW
jmp %%endReading ;end macro readString
%%letterE:
mov [option + si],al ;save letter E in option[0]
inc si ;increase counter to 1
mov ah, 01h
int 21h
cmp al, 58H ;al = letter X
je %%letterX
jmp %%endReading
%%letterX:
mov [option + si],al ;save letter X in option[1]
inc si ;increase counter to 2
mov ah, 01h
int 21h
cmp al, 49h ;al = letter I
je %%letterI
jmp %%endReading
%%letterI:
mov [option + si],al ;save letter I in option[2]
inc si ;increase counter to 3
mov ah, 01h
int 21h
cmp al, 54h ;al = letter T
je %%letterT
jmp %%endReading
%%letterT: ;last state for option EXIT
mov [option + si],al ;save letter T in option[3]
print newline
print optionMsg
print option
mov ah,'0' ;the option to run is optionRun = (EXIT,0)
mov [optionRun],ah
jmp %%endReading ;end macro readingString
%%letterS:
mov [option + si],al ;save letter S in option[0]
inc si ;increase counter to 1
mov ah, 01h ;request reading character
int 21h ;call interruption
cmp al, 41H ;if al = letter A
je %%letterA ;jump to state letter A
cmp al, 48h ;if al = letter H
je %%letterH ;then jump to state H for SHOW
jmp %%endReading ;Error no input match end macro
%%letterA:
mov [option + si],al ;save letter A in option[1]
inc si ;increase counter to 2
mov ah, 01h
int 21h
cmp al, 56h ;if al = letter V
je %%letterV
jmp %%endReading
%%letterV:
mov [option + si],al ;save letter V in option[2]
inc si ;increase counter to 3
mov ah, 01h
int 21h
cmp al, 45h ;if al = letter E
je %%letterE2
jmp %%endReading
%%letterE2: ;las state for option SAVE
mov [option + si],al ;save letter E in option[3]
print newline
print optionMsg
print option
mov ah , '1' ;the option to run is optionRun = (SAVE,1)
mov [optionRun],ah
jmp %%endReading ;end macro readingString
%%letterH:
mov [option + si],al ;save letter H in option[1]
inc si ;increase counter to 2
mov ah, 01h
int 21h
cmp al, 4fh ;if al = letter O
je %%letterO
jmp %%endReading
%%letterO:
mov [option + si],al ;save letter O in option[2]
inc si ;increase counter to 3
mov ah, 01h
int 21h
cmp al, 57h ;if al = letter W
je %%letterW
jmp %%endReading
%%letterW: ;last state for option SHOW
mov [option + si],al ;save letter W in option[3]
print newline
print optionMsg
print option
mov ah,'2' ;the option to run is optionRun = (SHOW,2)
mov [optionRun],ah
jmp %%endReading ;end macro readingString
%%skip:
cmp si,3
jne %%while
%%endReading:
%endmacro;----------END MACRO READING STRING
%macro PrintBoard 0
mov si,0
mov di,0
xor cl,cl
xor ch,ch
;SCROLL SCREEN UP
mov ah, 06h ;request scroll up
mov al, 00h ;number of lines to scroll up
mov bh, 07h ;black background
mov cx,0000h ;starting row:column
mov dx, 194Fh;ending row:column
int 10h
;SET CURSOR POSITION
mov ah,02h ;request set cursor position
mov bh,00h ;number of page
mov dh,02h ;row/y = 0
mov dl,0h ;column/x = 0
int 10h ;call interruption
print boardUpperLine
mov al,[columnLabel] ;copy the data from columnLabel to AL register
mov al,'8' ;decrease in 1 the column labels-> columnLabel = columnLabel - 1
mov [columnLabel],al ;copy the data from AL register to columnLabel
%%for1:
printChar [columnLabel] ;print the rows labels columnLabel = 8
;print newline ;print a new line for each row label
mov al,[columnLabel] ;copy the data from columnLabel to AL register
dec al ;decrease in 1 the column labels-> columnLabel = columnLabel - 1
mov [columnLabel],al ;copy the data from AL register to columnLabel
mov ax, si
mov bl, 2
div bl
;add ax,'0'
;add ah,'0'
mov [remainder],ah
mov [quotient],al
inc si
;inc cl
push ax
print remainder
pop ax
mov cl,0
test ah, 1h
je %%forEven
mov ch,0
jmp %%forOdd
;test ah,1h
;je %%forOdd
;print quotient
;print evenSplitLine
%%escape:
cmp si,8
jne %%for1
jmp %%end
%%forEven:
print emptyBox
print boxSpliteLine
print whitePawn ;this way of paint is just for demostration
inc cl ;here we need to do an if statement for check
cmp cl,4 ;which pawn or queen is in the current box then paint it
jne %%forEven
print boxSpliteLine
print newline
print evenSplitLine
jmp %%escape
%%forOdd:
print oddSplitLine
jmp %%escape
%%end:
print newline
print boardUpperLine
%endmacro
%macro GameStart 0
;call clean
;SCROLL SCREEN UP
mov ah, 06h
mov al, 01h
mov bh, 07h
mov cx,0000h
mov dx, 194Fh
int 10h
;SCROLL SCREEN DOWN
;mov ah,07h
;mov al,08h
;mov bh, 07h
;mov cx,0000h
;mov dx,194fh
;int 10h
;SET CURSOR POSITION
;mov ah,02h
;mov bh,00h
;mov dh,00h
;mov dl,0h
;int 10h
print gameStart
xor cl,cl
mov cl,0h
print blankSpace
print blankSpace
print boardUpperLine
print newline
print boardImage
print blankSpace
print blankSpace
xor cl,cl
mov cl,0h
print boardUpperLine
print newline
%endmacro
; ·························
;8 | |FB| |FB| |FB| |FB|
; -- == -- ━━ -- ━━ -- ━━
;7 |FB| |FB| |FB| |FB| |
; ━━ -- ━━ -- ━━ -- ━━ --
;6 | |FB| |FB| |FB| |FB|
; -- ━━ -- ━━ -- ━━ -- ━━
;5 | | | | | | | | |
; ━━ -- ━━ -- ━━ -- ━━ --
;4 | | | | | | | | |
; -- ━━ -- ━━ -- ━━ -- ━━
;3 |FN| |FN| |FN| |FN| |
; ━━ -- ━━ -- ━━ -- ━━ --
;2 | |FN| |FN| |FN| |FN|
; -- ━━ -- ━━ -- ━━ -- ━━
;1 |FN| |FN| |FN| |FN| |
; ━━ -- ━━ -- ━━ -- ━━ --
; A B C D E F G H
; ·························
;************************************** END MY MACROS *****************************
global Main
;========================== SECTION .DATA ====================
segment .data
opcion db 10,0ah,0dh,'$'
helloWorld db 0ah,0dh,'Hola mundo','$'
esUno db 0ah,0dh,'es uno',10,'$'
esDos db 0ah,0dh,'es dos',10,'$'
esTres db 0ah,0dh,'es tres',10,'$'
gameStart db 10,13,'Juego Iniciado',10,13,'$'
quotient db '0','$'
option db 'endd','$' ;an array to save the string SHOW,SAVE,SHOW
optionRun db '0','$' ;option to run SHOW,0. SAVE,1. SHOW,2
remainder db '0','$'
headerString db 13,13,10
db 'UNIVERSIDAD DE SAN CARLOS DE GUATEMALA',13,10
db 'FACULTAD DE INGENIERIA ',13,10
db 'CIENCIAS Y SISTEMAS',13,10
db 'ARQUITECTURA DE COMPUTADORAS Y ENSAMBLADORES 1',13,10
db 'NOMBRE: LESTER EFRAIN AJUCUM SANTOS',13,10
db 'CARNET: 201504510',13,10
db 'SECCION: A',13,10,'$'
mainMenu db '', 13, 10
db ' _________________________', 13, 10
db '|_________ MENU __________|', 13, 10
db '| 1. Iniciar Juego |', 13, 10
db '| 2. Cargar Juego |', 13, 10
db '| 3. Salir. |', 13, 10
db '|_________________________|',13,10,'$' ;Menu para interactuar con el programa
boardUpperLine db 32,32,250,250,250,250,250,250,250,250,250,250,250,250,250,250,250,
db 250,250,250,250,250,250,250,250,250,250,13,10,'$' ;symbol interpunct or space dot
boardImage db '8 | |FB| |FB| |FB| |FB| ',10
db ' -- == -- == -- == -- == ',10
db '7 |FB| |FB| |FB| |FB| | ',10
db ' == -- == -- == -- == -- ',10
db '6 | |FB| |FB| |FB| |FB| ',10
db ' -- == -- == -- == -- == ',10
db '5 | | | | | | | | | ',10
db ' == -- == -- == -- == -- ',10
db '4 | | | | | | | | | ',10
db ' -- == -- == -- == -- == ',10
db '3 |FN| |FN| |FN| |FN| | ',10
db ' == -- == -- == -- == -- ',10
db '2 | |FN| |FN| |FN| |FN| ',10
db ' -- == -- == -- == -- == ',10
db '1 |FN| |FN| |FN| |FN| | ',10
db ' == -- == -- == -- == -- ',10
db ' A B C D E F G H ',10,'$'
optionMsg db 'The Option Is: ','$'
<<<<<<< HEAD
columnLabel db '8','$'
emptyBox db '| ','$'
whitePawn db 'FB','$'
blackPawn db 'FN','$'
boxSpliteLine db '|','$'
evenSplitLine db ' -- == -- == -- == -- == ',10,'$'
oddSplitLine db ' == -- == -- == -- == -- ',10,'$'
boardBtLabel db ' A B C D E F G H ',10,'$'
=======
>>>>>>> 9fbe3e3f9bb71f90efab2e3caf96bbcc297f8384
newline db 13,10,'$'
blankSpace db 20h,'$'
var db 3,'$'
tVar db 'var: ','$'
var2 db 4,'$'
tVar2 db 'var2: ','$'
var3 db 0,'$'
tVar3 db 'var3: ','$'
justvar db 13,10,'A SYMBOL: ',0,1,2,3,4,5,6,7,8,9,11,12,14,15,16,13,10,'$'
;empty space 0
;white pawn 1
;black pawn 2
;white queen 3
;black queen 4
;0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31
board db 1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2 ;an array of 32 positions
;************************** END SECTION DATA***********************************
;========================== SECTION .BSS =================================================|
;uninitialized-data sections |
segment .bss
;************************** END SECTION BSS **********************************************
;========================== SECTION .TEXT ======================================================|
;MY CODE GOES HERE. If I left a blank line
;between this line and "segment .text" gives error |
segment .text
ORG 100h
Main: ;non local label
;call clean
print headerString
print mainMenu
Menu:
readInputChar
cmp al, 49
je Opcion1
cmp al, 50
je Opcion2
cmp al, 51
je Opcion3
Opcion1:
print esUno
;print gameStart
;GameStart
print newline
;readString
;print newline
;print option
;print blankSpace
;print optionRun
PrintBoard
readInputChar
Opcion2:
print esDos
jmp Main
Opcion3:
print esTres
jmp exit
prueba:
print boardImage
jmp Main
Reset:
mov ah, 02h ;Colocar el cursor (02h salida de caracter)
mov dx, 0000h ;Colocar en dx las coordenadas
int 10h ;interrupcion 10h
mov ax, 0600h ;limpiar pantalla ;ah 06(es un recorrido), al 00(pantalla completa)
mov bh, 07h ;atributos fondo negro y fuente blanco
mov cx, 0000h ;movemos a cx las nuevas coordenadas columna 0 y fila 0 ;es la esquina superior izquierda reglon: columna
mov dx, 194fh ;movemos a dx las coordenadas finales fila 24 y columna 79
int 10h ;interrupcion 10h
jmp Main ;Volvemos a iniciar el programa
clean:
mov ax,0600h
mov bh, 07h
mov cx,0000h
mov dx,194Fh
int 10h
mov ah,02h
mov bh,00h
mov dx,00h
int 10h
ret
exit:
mov ah, 4ch
int 21h
;************************* END SECTION TEXT ******************************************************** | 26.451685 | 129 | 0.564353 |
fddd9f7555a0629dd1c426679d4467ee0e032858 | 1,088 | asm | Assembly | lists/bubblesort.asm | ihasdapie/AssemblyLearning | 2a7b51ce2b825d6380e4bfd940bfa1dff9a5439c | [
"MIT"
] | 1 | 2021-06-07T21:12:59.000Z | 2021-06-07T21:12:59.000Z | lists/bubblesort.asm | ihasdapie/AssemblyLearning | 2a7b51ce2b825d6380e4bfd940bfa1dff9a5439c | [
"MIT"
] | null | null | null | lists/bubblesort.asm | ihasdapie/AssemblyLearning | 2a7b51ce2b825d6380e4bfd940bfa1dff9a5439c | [
"MIT"
] | null | null | null | section .data
; standard constants
LF equ 10
NULL equ 0
TRUE equ 1
FALSE equ 0
EXIT_SUCCESS equ 0
STDIN equ 0
STDOUT equ 1
STDERR equ 2
SYS_read equ 0
SYS_write equ 1
SYS_open equ 2
SYS_close equ 3
SYS_fork equ 57
SYS_exit equ 60
SYS_create equ 85
SYS_time equ 201
; my variables
myList dd 1,4,2,3
myListLen dd 4
;~ for x in range(n):
;~ for y in range(n):
;~ if l[x] > l[y]
;~ swap x, y
section .text
global _start
_start:
mov r11, -1 ;outside loop
mov r12, -1 ;inside loop
mov eax, 0 ; for comparisons (outside loop)
bubbleOutLoop:
inc r11
cmp r11, [myListLen]
jge outDone
bubbleInLoop:
inc r12
cmp r12, [myListLen]
jge inDone
mov eax, [myList+(r11*4)]
mov ebx, [myList+(r12*4)]
cmp eax, ebx
jle swap
jmp bubbleInLoop
swap: ;swap myList[r11], myList[r12]
mov [myList+(r11*4)], ebx
mov [myList+(r12*4)], eax
jmp bubbleInLoop
inDone:
mov r12, 0
jmp bubbleOutLoop
jmp bubbleOutLoop
outDone:
jmp done
done:
mov rax, SYS_exit
mov rdi, EXIT_SUCCESS
syscall
| 13.108434 | 44 | 0.644301 |
b8bda17920bb6da8684a5dd3f5f4eff657c23ff4 | 5,092 | asm | Assembly | base/mvdm/wow16/win87em/emdecode.asm | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | base/mvdm/wow16/win87em/emdecode.asm | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | base/mvdm/wow16/win87em/emdecode.asm | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | page ,132
subttl emdecode.asm - Instruction decoding
;***
;emdecode.asm - Instruction decoding
;
; Copyright (c) 1987-89, Microsoft Corporation
;
;Purpose:
; Instruction decoding.
; Further decoding of instructions done here.
;
; This Module contains Proprietary Information of Microsoft
; Corporation and should be treated as Confidential.
;
;Revision History:
; See emulator.hst
;
;*******************************************************************************
ProfBegin DECODE
even
pub eFLDsdri
MOV BX,CX ; Dispatch on MF
AND ebx,6H
ifdef i386
JMP FLDsdriTab[2*ebx]
else
JMP FLDsdriTab[ebx]
endif
pub eFSTsdri
MOV BX,CX ; Dispatch on MF
AND ebx,6H
ifdef i386
JMP FSTsdriTab[2*ebx]
else
JMP FSTsdriTab[ebx]
endif
even
pub eFSTPsdri
mov bx, cx ; Dispatch on MF
and ebx, 6h
ifdef i386
call FSTsdriTab[2*ebx]
else
call FSTsdriTab[ebx]
endif
mov esi, [CURstk]
cmp esi, [BASstk] ; Do we have an empty stack?
jbe short FSTPSTUnder ; Yes, Underflow.
FSTPSTOk:
sub esi, Reg87Len ; decrement SI to previous register
mov [CURstk], esi ; set current top of stack
ret
FSTPSTUnder:
call UnderStk ; stack underflow error
jmp FSTPSTOk
pub eFLDtempORcw
MOV BX,CX ; Dispatch on MF
AND ebx,6H
ifdef i386
JMP FLDtempORcwTab[2*ebx]
else
JMP FLDtempORcwTab[ebx]
endif
pub eFSTtempORcw
MOV BX,CX ; Dispatch on MF
AND ebx,6H
ifdef i386
JMP FSTtempORcwTab[2*ebx]
else
JMP FSTtempORcwTab[ebx]
endif
pub eFLDregOrFFREE ; We only emulate FLD ST (Duplicate TOS)
;CX = |Op|r/m|MOD|esc|MF|Arith|
test cx,06h ; test MF. MF=01 is FFREE, MF=00 is FLD ST(i)
jnz short jmpeFFREE ; go emulate FFREE
jmp eFLDreg ; emulate FLD ST(i)
jmpeFFREE:
jmp eFFREE ; emulate FFREE ST(i)
pub eMISCELANEOUS ; We only emulate FCHS, FABS, FTST, & FXAM
; FCLEX is emulated in non-IBM version
TEST CX,0806H ; We already have match on Op,MOD,&Arith
jz short MFzero ; MF = 0, must be FCHS, FABS, FTST or FXAM
; check for FCLEX (cx = 8B03)
xor cx,00203h ; toggle low bit of MF and middle bit of r/m
test cx,00603h ; test for zero in MF and r/m fields
jnz short jnzUNUSED ; MF <> 01 and/or r/m <> 010 => unemulated
cmp cx,8104h ; check for FSTSW AX
je short eFSTSWAX ; yes
mov [StatusWord],0 ; FCLEX: clear status word
ret
pub eFSTSWAX
ifdef XENIX
xor eax,eax ; UNDONE - set to non-zero - cleanup code
else
push sp ; test for 286 !!!
pop ax
cmp ax,sp
endif
pub jnzUNUSED
jnz UNUSED ; UNUSED if not 286
mov ax,[StatusWord] ; FSTSW AX: save status word in AX
mov [ebp].regAX,ax ; overwrite AX stack entry
ret
MFzero:
TEST CX,1000H
JZ short FABSorFCHS
TEST CX,0400H ; r/m = 101 for FXAM
JNZ short JMPeFXAM ; r/m = 100 for FTST
JMP eFTST
pub JMPeFXAM
JMP eFXAM
pub FABSorFCHS
TEST CX,0400H ; r/m = 001 for FABS
JNZ short JMPeFABS ; r/m = 000 for FCHS
JMP eFCHS
pub JMPeFABS
JMP eFABS
pub eFLDconstants
MOV BL,CH ; Mov r/m field to BX for jump
SHR BL,1
AND ebx,0EH
ifdef i386
JMP FLDconstantsTab[2*ebx]
else
JMP FLDconstantsTab[ebx]
endif
pub eTranscendental
MOV BL,CH ; Mov r/m field to BX for jump
SHR BL,1
AND ebx,0EH
ifdef i386
JMP TranscendentalTab[2*ebx]
else
JMP TranscendentalTab[ebx]
endif
pub eVARIOUS
MOV BL,CH ; Mov r/m field to BX for jump
SHR BL,1
AND ebx,0EH
ifdef i386
JMP VariousTab[2*ebx]
else
JMP VariousTab[ebx]
endif
pub eFXCHGreg ; only valid FXCHG is with r/m = 001, MF = 00
TEST CX,06h ; only valid FXCHG is with MF = 0
JNZ short UNUSED ; unemulated
JMP eFXCHG ; emulate FXCH ST(i)
pub eFSTPreg
xor cl,04h ; test for MF = 10, valid encoding of FSTP ST(x)
test cx,06h
jne short UNUSED ; MF <> 10, no such instruction
mov ax,1 ; indicate stack should be popped after xfer
jmp eFST_Preg ; emulate FSTP ST(x)
;*** eFSTreg - decode FST ST(i),FNOP
;
; ARGUMENTS
; CX = |Op|r/m|MOD|esc|MF|Arith|
;
; DESCRIPTION
; All parts of the instruction except MF and r/m have already
; been decoded. If MF=0, the instruction is FNOP, which is
; unemulated. Otherwise, clear AX to indicate FST ST(i), then
; jump to eFST_Preg, the common emulator routine for
; FST ST(i) and FSTP ST(i).
;
eFSTreg:
test cl,06h ;test for MF = 0
jz short UNUSED ;MF=0 ==> FNOP, which is unemulated
;otherwise this is FST ST(i)
xor ax,ax ;clear ax to indicate FST ST(i), not FSTP ST(i)
jmp eFST_Preg ; emulate FSTP ST(x)
; This sets the error flag indicating Unemulated functions
eFXTRACT:
eFDECSTP:
eFINCSTP:
ifdef frontend ; unused instructions for frontend version
eFLDL2T:
eFLDL2E:
eFLDPI:
eFLDLG2:
eFLDLN2:
eFPREM:
eF2XM1:
eFYL2X:
eFPTAN:
eFPATAN:
eFYL2XP1:
eFSQRT:
endif ;frontend
ifdef SMALL_EMULATOR
eFLDL2T:
eFLDL2E:
eFLDPI:
eFLDLG2:
eFLDLN2:
eFPREM:
eF2XM1:
eFYL2X:
eFPTAN:
eFPATAN:
eFYL2XP1:
eFSQRT:
endif ;SMALL_EMULATOR
pub UNUSED
OR [CURerr],Unemulated
RET
ProfEnd DECODE
| 19.81323 | 81 | 0.667518 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.