Skip to content

Instantly share code, notes, and snippets.

View febnug's full-sized avatar
🥴
Drunk

Febriyanto Nugroho febnug

🥴
Drunk
View GitHub Profile
org 100h
;inc cx
mov cx,1
mov bx,tabel
x:
xlatb ; xlatb, ga bisa increment langsung di register al buat ambil nilai di tabel ke index selanjutnya
; jadi, increment dulu di register lain, contoh cx, nanti pindahin lagi ke register al
mov ax,cx
org 100h
mov al,0x13
int 0x10
les bp,[bx]
mov al,11
mov ch,50
x:
jcxz a
;rep stosb
.section .text
.global bubblesort
bubblesort:
# a0 = long *list
# a1 = size
# t0 = swapped
# t1 = i
1: # do loop
li t0, 0 # swapped = false
li t1, 1 # i = 1
@febnug
febnug / reverse-proxy-apache2
Created February 16, 2024 23:11
reverse proxy apache2
<VirtualHost *:80>
ProxyRequests Off
ProxyPreserveHost On
ServerName site.name.tls
<Proxy *>
Require all granted
</Proxy>