sh bit p2.0
st bit p2.2
da_ta bit p2.1
org 0000h
ljmp main
org 30H
main:
clr sh
clr st
MOV R1,0 ;
MOV R2,#256 ; nó báo sai chổ này, nhưng mình kiểm tra thì đâu có vượt quá 256 byte đâu
MOV R3,#4 ;
mov dptr,#mydata
LOOP1: mov r4,#8 ;
mov a,R1
movc a,@a+dptr
loop2:
clr c
rlc a
mov da_ta,c
setb sh
clr sh
djnz r4,loop2 ;
inc R1
djnz r3,LOOP1 ;
setb st
clr st
lcall delay
INC DPTR
INC DPTR
INC DPTR
INC DPTR ;
djnz r2,LOOP1
ljmp main
;=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
delay:
mov r7,#100
d0: mov r6,#100
here: NOP
nop
djnz r6,here
djnz r7,d0
ret
;=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
org 300h
mydata:
db 00000000b,00000001b,10000000b,00000000b
db 00000000b,00000010b,01000000b,00000000b
db 00000000b,00000100b,00100000b,00000000b
db 00000000b,00001000b,00010000b,00000000b
db 00000000b,00010000b,00001000b,00000000b
db 00000000b,00100000b,00000100b,00000000b
db 00000000b,01000000b,00000010b,00000000b
db 00000000b,10000000b,00000001b,00000000b
db 00000001b,00000000b,00000000b,10000000b
db 00000010b,00000000b,00000000b,01000000b
db 00000100b,00000000b,00000000b,00100000b
db 00001000b,00000000b,00000000b,00010000b
db 00010000b,00000000b,00000000b,00001000b
db 00100000b,00000000b,00000000b,00000100b
db 01000000b,00000000b,00000000b,00000010b
db 10000000b,00000000b,00000000b,00000001b
db 10000000b,00000000b,00000000b,00000001b
db 01000000b,00000000b,00000000b,00000010b
db 00100000b,00000000b,00000000b,00000100b
db 00010000b,00000000b,00000000b,00001000b
db 00001000b,00000000b,00000000b,00010000b
db 00000100b,00000000b,00000000b,00100000b
db 00000010b,00000000b,00000000b,01000000b
db 00000001b,00000000b,00000000b,10000000b
db 00000000b,10000000b,00000001b,00000000b
db 00000000b,01000000b,00000010b,00000000b
db 00000000b,00100000b,00000100b,00000000b
db 00000000b,00010000b,00001000b,00000000b
db 00000000b,00001000b,00010000b,00000000b
db 00000000b,00000100b,00100000b,00000000b
db 00000000b,00000010b,01000000b,00000000b
db 00000000b,00000001b,10000000b,00000000b ;1
db 00000000b,00000001b,10000000b,00000000b
db 00000000b,00000011b,11000000b,00000000b
db 00000000b,00000111b,11100000b,00000000b
db 00000000b,00001111b,11110000b,00000000b
db 00000000b,00011111b,11111000b,00000000b
db 00000000b,00111111b,11111100b,00000000b
db 00000000b,01111111b,11111110b,00000000b
db 00000000b,11111111b,11111111b,00000000b
db 00000001b,11111111b,11111111b,10000000b
db 00000011b,11111111b,11111111b,11000000b
db 00000111b,11111111b,11111111b,11100000b
db 00001111b,11111111b,11111111b,11110000b
db 00011111b,11111111b,11111111b,11111000b
db 00111111b,11111111b,11111111b,11111100b
db 01111111b,11111111b,11111111b,11111110b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 01111111b,11111111b,11111111b,11111110b
db 00111111b,11111111b,11111111b,11111100b
db 00011111b,11111111b,11111111b,11111000b
db 00001111b,11111111b,11111111b,11110000b
db 00000111b,11111111b,11111111b,11100000b
db 00000011b,11111111b,11111111b,11000000b
db 00000001b,11111111b,11111111b,10000000b
db 00000000b,11111111b,11111111b,00000000b
db 00000000b,01111111b,11111110b,00000000b
db 00000000b,00111111b,11111100b,00000000b
db 00000000b,00011111b,11111000b,00000000b
db 00000000b,00001111b,11110000b,00000000b
db 00000000b,00000111b,11100000b,00000000b
db 00000000b,00000011b,11000000b,00000000b
db 00000000b,00000001b,10000000b,00000000b ;2
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111110b,01111111b,11111111b
db 11111111b,11111100b,00111111b,11111111b
db 11111111b,11111000b,00011111b,11111111b
db 11111111b,11110000b,00001111b,11111111b
db 11111111b,11100000b,00000111b,11111111b
db 11111111b,11000000b,00000011b,11111111b
db 11111111b,10000000b,00000001b,11111111b
db 11111111b,00000000b,00000000b,11111111b
db 11111110b,00000000b,00000000b,01111111b
db 11111100b,00000000b,00000000b,00111111b
db 11111000b,00000000b,00000000b,00011111b
db 11110000b,00000000b,00000000b,00001111b
db 11100000b,00000000b,00000000b,00000111b
db 11000000b,00000000b,00000000b,00000011b
db 10000000b,00000000b,00000000b,00000001b
db 10000000b,00000000b,00000000b,00000001b
db 11000000b,00000000b,00000000b,00000011b
db 11100000b,00000000b,00000000b,00000111b
db 11110000b,00000000b,00000000b,00001111b
db 11111000b,00000000b,00000000b,00011111b
db 11111100b,00000000b,00000000b,00111111b
db 11111110b,00000000b,00000000b,01111111b
db 11111111b,00000000b,00000000b,11111111b
db 11111111b,10000000b,00000001b,11111111b
db 11111111b,01000000b,00000011b,11111111b
db 11111111b,11100000b,00000111b,11111111b
db 11111111b,11110000b,00001111b,11111111b
db 11111111b,11111000b,00011111b,11111111b
db 11111111b,11111100b,00111111b,11111111b
db 11111111b,11111110b,01111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b ;3
db 01111111b,11111111b,11111111b,11111110b
db 00111111b,11111111b,11111111b,11111100b
db 00011111b,11111111b,11111111b,11111000b
db 00001111b,11111111b,11111111b,11110000b
db 00000111b,11111111b,11111111b,11100000b
db 00000011b,11111111b,11111111b,11000000b
db 00000001b,11111111b,11111111b,10000000b
db 00000000b,11111111b,11111111b,00000000b
db 00000000b,01111111b,11111110b,00000000b
db 00000000b,00111111b,11111100b,00000000b
db 00000000b,00011111b,11111000b,00000000b
db 00000000b,00001111b,11110000b,00000000b
db 00000000b,00000111b,11100000b,00000000b
db 00000000b,00000011b,11000000b,00000000b
db 00000000b,00000001b,10000000b,00000000b
db 00000000b,00000001b,10000000b,00000000b
db 00000000b,00000011b,11000000b,00000000b
db 00000000b,00000111b,11100000b,00000000b
db 00000000b,00001111b,11110000b,00000000b
db 00000000b,00011111b,11111000b,00000000b
db 00000000b,00111111b,11111100b,00000000b
db 00000000b,01111111b,11111110b,00000000b
db 00000000b,11111111b,11111111b,00000000b
db 00000001b,11111111b,11111111b,10000000b
db 00000011b,11111111b,11111111b,11000000b
db 00000111b,11111111b,11111111b,11100000b
db 00001111b,11111111b,11111111b,11110000b
db 00011111b,11111111b,11111111b,11111000b
db 00111111b,11111111b,11111111b,11111100b
db 01111111b,11111111b,11111111b,11111110b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b ;4
db 10000000b,00000000b,00000000b,00000001b
db 11000000b,00000000b,00000000b,00000011b
db 11100000b,00000000b,00000000b,00000111b
db 11110000b,00000000b,00000000b,00001111b
db 11111000b,00000000b,00000000b,00011111b
db 11111100b,00000000b,00000000b,00111111b
db 11111110b,00000000b,00000000b,01111111b
db 11111111b,00000000b,00000000b,11111111b
db 11111111b,10000000b,00000001b,11111111b
db 11111111b,11000000b,00000011b,11111111b
db 11111111b,11100000b,00000111b,11111111b
db 11111111b,11110000b,00001111b,11111111b
db 11111111b,11111000b,00011111b,11111111b
db 11111111b,11111100b,00111111b,11111111b
db 11111111b,11111110b,01111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111110b,01111111b,11111111b
db 11111111b,11111100b,00111111b,11111111b
db 11111111b,11111000b,00011111b,11111111b
db 11111111b,11110000b,00001111b,11111111b
db 11111111b,11100000b,00000111b,11111111b
db 11111111b,11000000b,00000011b,11111111b
db 11111111b,10000000b,00000001b,11111111b
db 11111111b,00000000b,00000000b,11111111b
db 11111110b,00000000b,00000000b,01111111b
db 11111100b,00000000b,00000000b,00111111b
db 11111000b,00000000b,00000000b,00011111b
db 11110000b,00000000b,00000000b,00001111b
db 11100000b,00000000b,00000000b,00000111b
db 11000000b,00000000b,00000000b,00000011b
db 10000000b,00000000b,00000000b,00000001b ;5
db 10000000b,00000000b,00000000b,00000000b
db 01000000b,00000000b,00000000b,00000000b
db 00100000b,00000000b,00000000b,00000000b
db 00010000b,00000000b,00000000b,00000000b
db 00001000b,00000000b,00000000b,00000000b
db 00000100b,00000000b,00000000b,00000000b
db 00000010b,00000000b,00000000b,00000000b
db 00000001b,00000000b,00000000b,00000000b
db 00000000b,10000000b,00000000b,00000000b
db 00000000b,01000000b,00000000b,00000000b
db 00000000b,00100000b,00000000b,00000000b
db 00000000b,00010000b,00000000b,00000000b
db 00000000b,00001000b,00000000b,00000000b
db 00000000b,00000100b,00000000b,00000000b
db 00000000b,00000010b,00000000b,00000000b
db 00000000b,00000001b,00000000b,00000000b
db 00000000b,00000000b,10000000b,00000000b
db 00000000b,00000000b,01000000b,00000000b
db 00000000b,00000000b,00100000b,00000000b
db 00000000b,00000000b,00010000b,00000000b
db 00000000b,00000000b,00001000b,00000000b
db 00000000b,00000000b,00000100b,00000000b
db 00000000b,00000000b,00000010b,00000000b
db 00000000b,00000000b,00000001b,00000000b
db 00000000b,00000000b,00000000b,10000000b
db 00000000b,00000000b,00000000b,01000000b
db 00000000b,00000000b,00000000b,00100000b
db 00000000b,00000000b,00000000b,00010000b
db 00000000b,00000000b,00000000b,00001000b
db 00000000b,00000000b,00000000b,00000100b
db 00000000b,00000000b,00000000b,00000010b
db 00000000b,00000000b,00000000b,00000001b ;6
db 00000000b,00000000b,00000000b,00000001b
db 00000000b,00000000b,00000000b,00000010b
db 00000000b,00000000b,00000000b,00000100b
db 00000000b,00000000b,00000000b,00001000b
db 00000000b,00000000b,00000000b,00010000b
db 00000000b,00000000b,00000000b,00100000b
db 00000000b,00000000b,00000000b,01000000b
db 00000000b,00000000b,00000000b,10000000b
db 00000000b,00000000b,00000001b,00000000b
db 00000000b,00000000b,00000010b,00000000b
db 00000000b,00000000b,00000100b,00000000b
db 00000000b,00000000b,00001000b,00000000b
db 00000000b,00000000b,00010000b,00000000b
db 00000000b,00000000b,00100000b,00000000b
db 00000000b,00000000b,01000000b,00000000b
db 00000000b,00000000b,10000000b,00000000b
db 00000000b,00000001b,00000000b,00000000b
db 00000000b,00000010b,00000000b,00000000b
db 00000000b,00000100b,00000000b,00000000b
db 00000000b,00001000b,00000000b,00000000b
db 00000000b,00010000b,00000000b,00000000b
db 00000000b,00100000b,00000000b,00000000b
db 00000000b,01000000b,00000000b,00000000b
db 00000000b,10000000b,00000000b,00000000b
db 00000001b,00000000b,00000000b,00000000b
db 00000010b,00000000b,00000000b,00000000b
db 00000100b,00000000b,00000000b,00000000b
db 00001000b,00000000b,00000000b,00000000b
db 00010000b,00000000b,00000000b,00000000b
db 00100000b,00000000b,00000000b,00000000b
db 01000000b,00000000b,00000000b,00000000b
db 10000000b,00000000b,00000000b,00000000b ;7
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b ;8
;=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
end
mình dùng MCS-51 IDE mô phỏng thì nó báo lỗi expression out of range ???. Nhưng nó vẫn xuất files hex ra và vẫn chạy bình thường như mình muốn, không hiểu sao. Bạn nào rành giải thích giùm mình với, mới tập tành ASM nên còn gà
st bit p2.2
da_ta bit p2.1
org 0000h
ljmp main
org 30H
main:
clr sh
clr st
MOV R1,0 ;
MOV R2,#256 ; nó báo sai chổ này, nhưng mình kiểm tra thì đâu có vượt quá 256 byte đâu
MOV R3,#4 ;
mov dptr,#mydata
LOOP1: mov r4,#8 ;
mov a,R1
movc a,@a+dptr
loop2:
clr c
rlc a
mov da_ta,c
setb sh
clr sh
djnz r4,loop2 ;
inc R1
djnz r3,LOOP1 ;
setb st
clr st
lcall delay
INC DPTR
INC DPTR
INC DPTR
INC DPTR ;
djnz r2,LOOP1
ljmp main
;=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
delay:
mov r7,#100
d0: mov r6,#100
here: NOP
nop
djnz r6,here
djnz r7,d0
ret
;=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
org 300h
mydata:
db 00000000b,00000001b,10000000b,00000000b
db 00000000b,00000010b,01000000b,00000000b
db 00000000b,00000100b,00100000b,00000000b
db 00000000b,00001000b,00010000b,00000000b
db 00000000b,00010000b,00001000b,00000000b
db 00000000b,00100000b,00000100b,00000000b
db 00000000b,01000000b,00000010b,00000000b
db 00000000b,10000000b,00000001b,00000000b
db 00000001b,00000000b,00000000b,10000000b
db 00000010b,00000000b,00000000b,01000000b
db 00000100b,00000000b,00000000b,00100000b
db 00001000b,00000000b,00000000b,00010000b
db 00010000b,00000000b,00000000b,00001000b
db 00100000b,00000000b,00000000b,00000100b
db 01000000b,00000000b,00000000b,00000010b
db 10000000b,00000000b,00000000b,00000001b
db 10000000b,00000000b,00000000b,00000001b
db 01000000b,00000000b,00000000b,00000010b
db 00100000b,00000000b,00000000b,00000100b
db 00010000b,00000000b,00000000b,00001000b
db 00001000b,00000000b,00000000b,00010000b
db 00000100b,00000000b,00000000b,00100000b
db 00000010b,00000000b,00000000b,01000000b
db 00000001b,00000000b,00000000b,10000000b
db 00000000b,10000000b,00000001b,00000000b
db 00000000b,01000000b,00000010b,00000000b
db 00000000b,00100000b,00000100b,00000000b
db 00000000b,00010000b,00001000b,00000000b
db 00000000b,00001000b,00010000b,00000000b
db 00000000b,00000100b,00100000b,00000000b
db 00000000b,00000010b,01000000b,00000000b
db 00000000b,00000001b,10000000b,00000000b ;1
db 00000000b,00000001b,10000000b,00000000b
db 00000000b,00000011b,11000000b,00000000b
db 00000000b,00000111b,11100000b,00000000b
db 00000000b,00001111b,11110000b,00000000b
db 00000000b,00011111b,11111000b,00000000b
db 00000000b,00111111b,11111100b,00000000b
db 00000000b,01111111b,11111110b,00000000b
db 00000000b,11111111b,11111111b,00000000b
db 00000001b,11111111b,11111111b,10000000b
db 00000011b,11111111b,11111111b,11000000b
db 00000111b,11111111b,11111111b,11100000b
db 00001111b,11111111b,11111111b,11110000b
db 00011111b,11111111b,11111111b,11111000b
db 00111111b,11111111b,11111111b,11111100b
db 01111111b,11111111b,11111111b,11111110b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 01111111b,11111111b,11111111b,11111110b
db 00111111b,11111111b,11111111b,11111100b
db 00011111b,11111111b,11111111b,11111000b
db 00001111b,11111111b,11111111b,11110000b
db 00000111b,11111111b,11111111b,11100000b
db 00000011b,11111111b,11111111b,11000000b
db 00000001b,11111111b,11111111b,10000000b
db 00000000b,11111111b,11111111b,00000000b
db 00000000b,01111111b,11111110b,00000000b
db 00000000b,00111111b,11111100b,00000000b
db 00000000b,00011111b,11111000b,00000000b
db 00000000b,00001111b,11110000b,00000000b
db 00000000b,00000111b,11100000b,00000000b
db 00000000b,00000011b,11000000b,00000000b
db 00000000b,00000001b,10000000b,00000000b ;2
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111110b,01111111b,11111111b
db 11111111b,11111100b,00111111b,11111111b
db 11111111b,11111000b,00011111b,11111111b
db 11111111b,11110000b,00001111b,11111111b
db 11111111b,11100000b,00000111b,11111111b
db 11111111b,11000000b,00000011b,11111111b
db 11111111b,10000000b,00000001b,11111111b
db 11111111b,00000000b,00000000b,11111111b
db 11111110b,00000000b,00000000b,01111111b
db 11111100b,00000000b,00000000b,00111111b
db 11111000b,00000000b,00000000b,00011111b
db 11110000b,00000000b,00000000b,00001111b
db 11100000b,00000000b,00000000b,00000111b
db 11000000b,00000000b,00000000b,00000011b
db 10000000b,00000000b,00000000b,00000001b
db 10000000b,00000000b,00000000b,00000001b
db 11000000b,00000000b,00000000b,00000011b
db 11100000b,00000000b,00000000b,00000111b
db 11110000b,00000000b,00000000b,00001111b
db 11111000b,00000000b,00000000b,00011111b
db 11111100b,00000000b,00000000b,00111111b
db 11111110b,00000000b,00000000b,01111111b
db 11111111b,00000000b,00000000b,11111111b
db 11111111b,10000000b,00000001b,11111111b
db 11111111b,01000000b,00000011b,11111111b
db 11111111b,11100000b,00000111b,11111111b
db 11111111b,11110000b,00001111b,11111111b
db 11111111b,11111000b,00011111b,11111111b
db 11111111b,11111100b,00111111b,11111111b
db 11111111b,11111110b,01111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b ;3
db 01111111b,11111111b,11111111b,11111110b
db 00111111b,11111111b,11111111b,11111100b
db 00011111b,11111111b,11111111b,11111000b
db 00001111b,11111111b,11111111b,11110000b
db 00000111b,11111111b,11111111b,11100000b
db 00000011b,11111111b,11111111b,11000000b
db 00000001b,11111111b,11111111b,10000000b
db 00000000b,11111111b,11111111b,00000000b
db 00000000b,01111111b,11111110b,00000000b
db 00000000b,00111111b,11111100b,00000000b
db 00000000b,00011111b,11111000b,00000000b
db 00000000b,00001111b,11110000b,00000000b
db 00000000b,00000111b,11100000b,00000000b
db 00000000b,00000011b,11000000b,00000000b
db 00000000b,00000001b,10000000b,00000000b
db 00000000b,00000001b,10000000b,00000000b
db 00000000b,00000011b,11000000b,00000000b
db 00000000b,00000111b,11100000b,00000000b
db 00000000b,00001111b,11110000b,00000000b
db 00000000b,00011111b,11111000b,00000000b
db 00000000b,00111111b,11111100b,00000000b
db 00000000b,01111111b,11111110b,00000000b
db 00000000b,11111111b,11111111b,00000000b
db 00000001b,11111111b,11111111b,10000000b
db 00000011b,11111111b,11111111b,11000000b
db 00000111b,11111111b,11111111b,11100000b
db 00001111b,11111111b,11111111b,11110000b
db 00011111b,11111111b,11111111b,11111000b
db 00111111b,11111111b,11111111b,11111100b
db 01111111b,11111111b,11111111b,11111110b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b ;4
db 10000000b,00000000b,00000000b,00000001b
db 11000000b,00000000b,00000000b,00000011b
db 11100000b,00000000b,00000000b,00000111b
db 11110000b,00000000b,00000000b,00001111b
db 11111000b,00000000b,00000000b,00011111b
db 11111100b,00000000b,00000000b,00111111b
db 11111110b,00000000b,00000000b,01111111b
db 11111111b,00000000b,00000000b,11111111b
db 11111111b,10000000b,00000001b,11111111b
db 11111111b,11000000b,00000011b,11111111b
db 11111111b,11100000b,00000111b,11111111b
db 11111111b,11110000b,00001111b,11111111b
db 11111111b,11111000b,00011111b,11111111b
db 11111111b,11111100b,00111111b,11111111b
db 11111111b,11111110b,01111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111110b,01111111b,11111111b
db 11111111b,11111100b,00111111b,11111111b
db 11111111b,11111000b,00011111b,11111111b
db 11111111b,11110000b,00001111b,11111111b
db 11111111b,11100000b,00000111b,11111111b
db 11111111b,11000000b,00000011b,11111111b
db 11111111b,10000000b,00000001b,11111111b
db 11111111b,00000000b,00000000b,11111111b
db 11111110b,00000000b,00000000b,01111111b
db 11111100b,00000000b,00000000b,00111111b
db 11111000b,00000000b,00000000b,00011111b
db 11110000b,00000000b,00000000b,00001111b
db 11100000b,00000000b,00000000b,00000111b
db 11000000b,00000000b,00000000b,00000011b
db 10000000b,00000000b,00000000b,00000001b ;5
db 10000000b,00000000b,00000000b,00000000b
db 01000000b,00000000b,00000000b,00000000b
db 00100000b,00000000b,00000000b,00000000b
db 00010000b,00000000b,00000000b,00000000b
db 00001000b,00000000b,00000000b,00000000b
db 00000100b,00000000b,00000000b,00000000b
db 00000010b,00000000b,00000000b,00000000b
db 00000001b,00000000b,00000000b,00000000b
db 00000000b,10000000b,00000000b,00000000b
db 00000000b,01000000b,00000000b,00000000b
db 00000000b,00100000b,00000000b,00000000b
db 00000000b,00010000b,00000000b,00000000b
db 00000000b,00001000b,00000000b,00000000b
db 00000000b,00000100b,00000000b,00000000b
db 00000000b,00000010b,00000000b,00000000b
db 00000000b,00000001b,00000000b,00000000b
db 00000000b,00000000b,10000000b,00000000b
db 00000000b,00000000b,01000000b,00000000b
db 00000000b,00000000b,00100000b,00000000b
db 00000000b,00000000b,00010000b,00000000b
db 00000000b,00000000b,00001000b,00000000b
db 00000000b,00000000b,00000100b,00000000b
db 00000000b,00000000b,00000010b,00000000b
db 00000000b,00000000b,00000001b,00000000b
db 00000000b,00000000b,00000000b,10000000b
db 00000000b,00000000b,00000000b,01000000b
db 00000000b,00000000b,00000000b,00100000b
db 00000000b,00000000b,00000000b,00010000b
db 00000000b,00000000b,00000000b,00001000b
db 00000000b,00000000b,00000000b,00000100b
db 00000000b,00000000b,00000000b,00000010b
db 00000000b,00000000b,00000000b,00000001b ;6
db 00000000b,00000000b,00000000b,00000001b
db 00000000b,00000000b,00000000b,00000010b
db 00000000b,00000000b,00000000b,00000100b
db 00000000b,00000000b,00000000b,00001000b
db 00000000b,00000000b,00000000b,00010000b
db 00000000b,00000000b,00000000b,00100000b
db 00000000b,00000000b,00000000b,01000000b
db 00000000b,00000000b,00000000b,10000000b
db 00000000b,00000000b,00000001b,00000000b
db 00000000b,00000000b,00000010b,00000000b
db 00000000b,00000000b,00000100b,00000000b
db 00000000b,00000000b,00001000b,00000000b
db 00000000b,00000000b,00010000b,00000000b
db 00000000b,00000000b,00100000b,00000000b
db 00000000b,00000000b,01000000b,00000000b
db 00000000b,00000000b,10000000b,00000000b
db 00000000b,00000001b,00000000b,00000000b
db 00000000b,00000010b,00000000b,00000000b
db 00000000b,00000100b,00000000b,00000000b
db 00000000b,00001000b,00000000b,00000000b
db 00000000b,00010000b,00000000b,00000000b
db 00000000b,00100000b,00000000b,00000000b
db 00000000b,01000000b,00000000b,00000000b
db 00000000b,10000000b,00000000b,00000000b
db 00000001b,00000000b,00000000b,00000000b
db 00000010b,00000000b,00000000b,00000000b
db 00000100b,00000000b,00000000b,00000000b
db 00001000b,00000000b,00000000b,00000000b
db 00010000b,00000000b,00000000b,00000000b
db 00100000b,00000000b,00000000b,00000000b
db 01000000b,00000000b,00000000b,00000000b
db 10000000b,00000000b,00000000b,00000000b ;7
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 00000000b,00000000b,00000000b,00000000b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b
db 11111111b,11111111b,11111111b,11111111b ;8
;=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
end
mình dùng MCS-51 IDE mô phỏng thì nó báo lỗi expression out of range ???. Nhưng nó vẫn xuất files hex ra và vẫn chạy bình thường như mình muốn, không hiểu sao. Bạn nào rành giải thích giùm mình với, mới tập tành ASM nên còn gà
Comment