【发布时间】:2015-02-11 19:00:46
【问题描述】:
我正在学习汇编语言以在画板上显示七个段。 我需要让七段显示 00 到 FF 和 00-99(十进制) 我被困在桌子上阅读。 如何让表格在达到 F 或 9 时自动再次读取。 这是我的代码:
Loop
TBLRD*+ ; Read byte from table, increment pointer
MOVF TABLAT, w
movwf PORTE ; Move W to PORTE
call Delay_333ms ; Call delay subroutine
goto Loop ; Repeat loop
PatTbl
dw h'6'
dw h'5b'
dw h'159'
dw h'66'
dw h'6d'
dw h'7d'
dw h'7'
dw h'7f'
dw h'6f'
dw h'77'
dw h'7c'
dw h'39'
dw h'3f'
dw h'79'
dw h'71'
dw h'3f'
【问题讨论】: