相关代码 |
|
;5-8-1.ASM ;DEMO THE USE OF 'DB' AND 'DW' RESET EQU 0000H RANGE EQU 2680H ; $MOD51 ORG RESET ;RESET FROM 0000H MOV A,#12H ;A=12H ADD A,#00110100B ;A=A+34H MOV P1,A ;P1=A ; TABLE: DB '0' DB '1' DB '2' DB '3456789' SCALE: DW 1234 DW 0FFDBH DW RANGE/2 ; END
相关资源 |
|