??? 11/11/08 16:04 Read: times |
#159952 - wrong, nonstandard and why Responding to: ???'s previous message |
ORL iram addr,#data
by using the ORL istruction you can SET any bit in any iram byte address 0x00 - 0xFF range. the #data should be an ace '1' to the desired position. eg: Save This Code ORL 34h, #0b01000000 1) the above code is wrong for addresses 80-ff which is not stated 2) IRAM is the standard name for for addresses 80-ff for which the code example does not work 3) why even do these explanations, it is far better documented in "the bible" chapter 2 Erik here are the links to "the bible" Chapter 1 - 80C51 Family Architecture: http://www.nxp.com/acrobat_d...ARCH_1.pdf Chapter 2 - 80C51 Family Programmer’s Guide and Instruction Set: http://www.nxp.com/acrobat_d...UIDE_1.pdf Chapter 3 - 80C51 Family Hardware Description: http://www.nxp.com/acrobat_d...WARE_1.pdf |