This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; generate random numbers | |
in al,40h | |
rdtsc | |
xadd ax,bp | |
imul ax, -7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
X: les dx,[bx+si] | |
xchg ax,cx | |
stosw | |
jmp X-8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aad -1 ; add al,-1*ah |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xor dx,dx ; zf = 0 | |
div sp ; or any other reg that <> 0 | |
jnz .AMD ; on any div/idiv operation ZF flag will not be changed on Intel but will be set on AMD | |
.Intel: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adc ax,[bx+si] ; dw 0x13 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xchg bx,ax | |
mov es,[si] | |
lodsb | |
int 0x10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org 0x100 | |
xchg bp,ax | |
imul dx,[bp+si+101],58*457 ; maybe playing with that value | |
inc di | |
outsb | |
add sp,[si] | |
mov dx,si | |
int 33 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org 100h | |
xchg bp,ax | |
imul ax,[bp+si+400],50*10 | |
sub ax,14 | |
int 29h | |
ret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org 100h | |
mov al,0x13 | |
int 0x10 | |
les bp,[bx] | |
mov al,11 | |
mov ch,50 | |
rep stosb | |
mov al,13 | |
mov ch,50 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org 100h | |
mov al,12h | |
int 10h | |
;mov ax,0001h | |
xchg si,ax | |
xchg ah,al | |
int 33h |