??? 02/07/05 09:10 Read: times Msg Score: 0 -1 Message Not Useful +1 Good Answer/Helpful |
#86729 - direct vs. immediate addressing Responding to: ???'s previous message |
C:0x0000 850189 MOV TMOD(0x89),0x01 HERE: C:0x0003 85F28A MOV TL0(0x8A),0xF2 C:0x0006 85FF8C MOV TH0(0x8C),0xFF You are using direct addressing mode, but you intended to use immediate addressing. You need to write it as follows: MOV TMOD,#0x01 HERE: MOV TL0,#0xF2 etc. Jan Waclawek PS. Enclose code examples within <pre> and </pre> tags for readibility! |