ASM help please

labrat31

New Member
I am new to programming I have only assembled and tested about 5 codes this is my biggest second biggest was computer serial to 8051 to p2.
trying to get this i2c program I found to assemble so I can simulate it and go throu it step by step to see how it works but I cant assemble, the 2 problems are:

; Data storage locations
BitCnt DATA 8h ;Bit counter for I2C routines.. . . . . . . error illegal opcode
NoAck BIT Flags.0 ;I2C no acknowledge flag.. . . . . . . . . error illegal Value
For more of an explanation see .asm

thank you
 

Attachments

Cookies are required to use this site. You must accept them to continue using the site. Learn more…