0% found this document useful (0 votes)
644 views3 pages

Contoh Listing Program Running Text Dot Matrix

The document contains assembly code that displays text strings on four loops (ulang_1, ulang_2, ulang_3, ulang_4). It defines subroutines to display text from memory locations (tampil, tampil_2, tampil_3, tampil_4) and to transmit the character (terima). It also includes delay subroutines (tunda). The code continuously loops through displaying and transmitting each string before jumping back to the start.

Uploaded by

Widodo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
644 views3 pages

Contoh Listing Program Running Text Dot Matrix

The document contains assembly code that displays text strings on four loops (ulang_1, ulang_2, ulang_3, ulang_4). It defines subroutines to display text from memory locations (tampil, tampil_2, tampil_3, tampil_4) and to transmit the character (terima). It also includes delay subroutines (tunda). The code continuously loops through displaying and transmitting each string before jumping back to the start.

Uploaded by

Widodo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

; ------------- READS51 generated header -------------; module : C:\Users\user\Documents\Elektronika\Project with AVR\Running Text\Mi

kro_Running Text.asm
; created : 00:19:15, Tuesday, November 19, 2013
; -----------------------------------------------------

#include <sfr51.inc>
cek1:
cek2:
cek3:
cek4:

org
acall
acall
acall
acall
acall
acall
acall
acall
sjmp

00h
ulang_1
tunda
ulang_2
tunda
ulang_3
tunda
ulang_4
tunda
cek1

;***************************************
ulang_1:
tampil:

mov
acall
clr
movc
cjne
acall

dptr,#teks_1
tampil
a
a,@a+dptr
a,#0h,kirim
cek2

kirim:

acall
acall

terima
tunda

inc
sjmp

dptr
tampil

mov
acall
clr
movc
cjne
acall

dptr,#teks_2
tampil_2
a
a,@a+dptr
a,#0h,kirim_2
cek3

acall
acall
acall

terima
tunda
tunda

inc
sjmp

dptr
tampil_2

mov
acall
clr
movc
cjne
acall

dptr,#teks_3
tampil_3
a
a,@a+dptr
a,#0h,kirim_3
cek4

acall
acall
acall

terima
tunda
tunda

ulang_2:
tampil_2:

kirim_2:

ulang_3:
tampil_3:

kirim_3:

;--------

;--------

;------

ulang_4:
tampil_4:

kirim_4:

inc
sjmp

dptr
tampil_3

mov
acall
clr
movc
cjne
sjmp

dptr,#teks_4
tampil_4
a
a,@a+dptr
a,#0h,kirim_4
cek1

acall
acall
acall

terima
tunda
tunda

inc
sjmp

dptr
tampil_4

;------

;-------------------------------------------terima:

tunda:
tnd:

mov
jnb
clr
ret
mov
mov
djnz
djnz
ret

sbuf,a
ti,$
ti

db
db
db
db
db
db
db
db
db
db
db
db
db
db
db
ret
db
db
db
db
db
db
db
db
ret
db
db
db
db
db

80h,26h,67h,49h,49h,73h,32h,80h
80h,7fh,7fh,49h,49h,49h,80h
80h,7fh,7fh,60h,60h,60h,80h
80h,7ch,7eh,19h,19h,7eh,7ch,80h
80h,7fh,7fh,0eh,1ch,0eh,7fh,7fh,80h
80h,7ch,7eh,19h,19h,7eh,7ch,80h
80h,03h,03h,7fh,7fh,03h,03h,80h
80h,80h,80h
80h,7fh,7fh,41h,41h,7fh,3eh,80h
80h,7ch,7eh,19h,19h,7eh,7ch,80h
80h,03h,03h,7fh,7fh,03h,03h,80h
80h,7ch,7eh,19h,19h,7eh,7ch,80h
80h,7fh,7fh,0eh,1ch,7fh,7fh,80h
80h,3eh,7fh,61h,69h,7bh,3ah,80h
80h,80h,80h,00h

;
;
;
;
;
;
;
;
;
;
;
;
;
;

80h,7fh,7fh,41h,41h,7fh,3eh,80h
80h,7fh,7fh,80h
80h,80h,80h
80h,7fh,7fh,0ch,1eh,33h,61h,80h
80h,3eh,7fh,63h,63h,7fh,3eh,80h
80h,03h,03h,7fh,7fh,03h,03h,80h
80h,7ch,7eh,19h,19h,7eh,7ch,80h
80h,80h,80h,00h

; Huruf
; Huruf
; spasi
; Huruf
; Huruf
; Huruf
; Huruf
;spasi

D
I

80h,7fh,7fh,1bh,1bh,1fh,0eh,80h
80h,7fh,7fh,49h,49h,49h,80h
80h,7fh,7fh,0ch,1eh,33h,61h,80h
80h,7ch,7eh,19h,19h,7eh,7ch,80h
80h,7fh,7fh,0eh,1ch,7fh,7fh,80h

;
;
;
;
;

P
E
K
A
N

r7,#90h
r6,#90h
r6,$
r7,tnd

teks_1:

teks_2:

teks_3:

Huruf S
Huruf E
Huruf L
Huruf A
Huruf M
Huruf A
Huruf T
spasi
Huruf D
Huruf A
Huruf T
Huruf A
Huruf N
Huruf G
;spasi

Huruf
Huruf
Huruf
Huruf
Huruf

K
O
T
A

db
db
db
db
db
db
db
db
db
db
db
db
db
db
ret

80h,7fh,7fh,6bh,6bh,7fh,36h,80h
; Huruf B
80h,7ch,7eh,19h,19h,7eh,7ch,80h
; Huruf A
80h,7fh,7fh,1bh,1bh,3fh,6eh,80h
; Huruf R
80h,3fh,7fh,60h,60h,7fh,3fh,80h
; Huruf U
50h,70h,30h,80h
80h,80h,80h
; spasi
80h,7fh,7fh,1bh,1bh,3fh,6eh,80h
; Huruf R
80h,7fh,7fh,80h
; Huruf I
80h,7ch,7eh,19h,19h,7eh,7ch,80h
; Huruf A
80h,3fh,7fh,60h,60h,7fh,3fh,80h
; Huruf U
80h,80h,80h,80h,80h,80h,80h,80h,80h,80h,80h
80h,80h,80h,80h,80h,80h,80h,80h,80h,80h,80h
80h,80h,80h,80h,80h,80h,80h,80h,80h,80h,80h,00h
80h,80h,80h,80h,80h,80h,80h,80h,80h,80h,80h,00h

;spasi

db
db
db
db
db
db
db
db
db
db
db
db
db
db
db
db
db
db
db
db
db
db
db
db
ret
end

80h,07h,07h,80h,07h,07h,80h
; "
80h,26h,67h,49h,49h,73h,32h,80h
; Huruf S
80h,7fh,7fh,49h,49h,49h,80h
; Huruf E
80h,7fh,7fh,60h,60h,60h,80h
; Huruf L
80h,7ch,7eh,19h,19h,7eh,7ch,80h
; Huruf A
80h,7fh,7fh,0eh,1ch,0eh,7fh,7fh,80h ; Huruf M
80h,7ch,7eh,19h,19h,7eh,7ch,80h
; Huruf A
80h,03h,03h,7fh,7fh,03h,03h,80h
; Huruf T
80h,80h,80h
; spasi
80h,03h,03h,7fh,7fh,03h,03h,80h
; Huruf T
80h,7ch,7eh,19h,19h,7eh,7ch,80h
; Huruf A
80h,7fh,7fh,18h,18h,7fh,7fh,80h
; Huruf H
80h,3fh,7fh,60h,60h,7fh,3fh,80h
; Huruf U
80h,7fh,7fh,0eh,1ch,7fh,7fh,80h
; Huruf N
80h,80h,80h
; spasi
80h,7fh,7fh,6bh,6bh,7fh,36h,80h
; Huruf B
80h,7ch,7eh,19h,19h,7eh,7ch,80h
; Huruf A
80h,7fh,7fh,1bh,1bh,3fh,6eh,80h
; Huruf R
80h,3fh,7fh,60h,60h,7fh,3fh,80h
; Huruf U
80h,07h,07h,80h,07h,07h,80h
; "
80h,80h,80h,80h,80h,80h,80h,80h,80h,80h,80h
80h,80h,80h,80h,80h,80h,80h,80h,80h,80h,80h
80h,80h,80h,80h,80h,80h,80h,80h,80h,80h,80h,00h
80h,80h,80h,80h,80h,80h,80h,80h,80h,80h,80h,00h

;spasi
;spasi

teks_4:

You might also like