Created
May 20, 2022 01:14
-
-
Save febnug/d0dd2f80a9519bd1629333f7807d6b9e to your computer and use it in GitHub Desktop.
This file contains 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 | |
;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