Skip to content

Instantly share code, notes, and snippets.

@febnug
Created May 20, 2022 01:14
Show Gist options
  • Save febnug/d0dd2f80a9519bd1629333f7807d6b9e to your computer and use it in GitHub Desktop.
Save febnug/d0dd2f80a9519bd1629333f7807d6b9e to your computer and use it in GitHub Desktop.
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
inc cx
jmp x
ret
tabel: db "A","B","C"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment