8051 SFR或特殊位元的16進位表示法

看板ASM (組合語言)作者 (.....)時間18年前 (2007/02/02 18:30), 編輯推噓0(004)
留言4則, 3人參與, 最新討論串1/1
sfr P0 = 0x80; sfr P1 = 0x90; sfr P2 = 0xA0; sfr P3 = 0xB0; sfr PSW = 0xD0;只能由暫存器改變 sfr ACC = 0xE0; sfr B = 0xF0; sfr SP = 0x81; sfr DPL = 0x82; sfr DPH = 0x83; sfr PCON = 0x87; sfr TCON = 0x88; sfr TMOD = 0x89; sfr TL0 = 0x8A; sfr TL1 = 0x8B; sfr TH0 = 0x8C; sfr TH1 = 0x8D; sfr IE = 0xA8; sfr IP = 0xB8; sfr SCON = 0x98; sfr SBUF = 0x99; /* PSW */ sbit CY = 0xD7;只能由setb跟clr直接控制或同psw sbit AC = 0xD6; sbit F0 = 0xD5; sbit RS1 = 0xD4; sbit RS0 = 0xD3; sbit OV = 0xD2; sbit P = 0xD0; /* TCON */ sbit TF1 = 0x8F;只能由setb跟clr直接控制 sbit TR1 = 0x8E; sbit TF0 = 0x8D; sbit TR0 = 0x8C; sbit IE1 = 0x8B; sbit IT1 = 0x8A; sbit IE0 = 0x89; sbit IT0 = 0x88; /* IE */ sbit EA = 0xAF;只能由setb跟clr直接控制 sbit ES = 0xAC; sbit ET1 = 0xAB; sbit EX1 = 0xAA; sbit ET0 = 0xA9; sbit EX0 = 0xA8; /* IP */ sbit PT2 = 0xbd;定義Timer2之優先權層次(8052) sbit PS = 0xBC;只能由setb跟clr直接控制 sbit PT1 = 0xBB; sbit PX1 = 0xBA; sbit PT0 = 0xB9; sbit PX0 = 0xB8; /* P3 */ sbit RD = 0xB7;只能由setb跟clr直接控制 sbit WR = 0xB6; sbit T1 = 0xB5; sbit T0 = 0xB4; sbit INT1 = 0xB3; sbit INT0 = 0xB2; sbit TXD = 0xB1; sbit RXD = 0xB0; /* SCON */ sbit SM0 = 0x9F;只能由setb跟clr直接控制 sbit SM1 = 0x9E; sbit SM2 = 0x9D; sbit REN = 0x9C; sbit TB8 = 0x9B; sbit RB8 = 0x9A; sbit TI = 0x99; sbit RI = 0x98; /* P0 */ sbit P07 = 0x87; sbit P06 = 0x86; sbit P05 = 0x85; sbit P04 = 0x84; sbit P03 = 0x83; sbit P02 = 0x82; sbit P01 = 0x81; sbit P00 = 0x80; /* P1 */ sbit P17 = 0x97; sbit P16 = 0x96; sbit P15 = 0x95; sbit P14 = 0x94; sbit P13 = 0x93; sbit P12 = 0x92; sbit P11 = 0x91; sbit P10 = 0x90; /* P2 */ sbit P27 = 0xA7; sbit P26 = 0xA6; sbit P25 = 0xA5; sbit P24 = 0xA4; sbit P23 = 0xA3; sbit P22 = 0xA2; sbit P21 = 0xA1; sbit P20 = 0xA0; -- 薔薇水晶の鼠径部のホールを強引に押し開き、貫通した。 そして、銀ちゃんの子宮奥のローザミスティカを執拗に突き上げられて 雪華綺晶のドレスも引き裂きたいです 蒼の子の口はすごいぃぃぃぃ~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.225.1.115

02/03 00:41, , 1F
那個sbit的用法是那個組譯器的用法?沒看過哩
02/03 00:41, 1F

02/03 00:41, , 2F
不過8051好久沒碰了,有錯請勿見怪
02/03 00:41, 2F

02/03 00:47, , 3F
只是強調後面是特殊位元而已,平常只要打後面的就好
02/03 00:47, 3F

02/08 15:17, , 4F
sbit我好像在keilC裡面的標頭檔看到
02/08 15:17, 4F
文章代碼(AID): #15mnBVMn (ASM)
文章代碼(AID): #15mnBVMn (ASM)