12.07.2015 Views

MC80F7708 - abov.co.kr

MC80F7708 - abov.co.kr

MC80F7708 - abov.co.kr

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>MC80F7708</strong>The operation within data memory (RAM)ASL, BIT, DEC, INC, LSR, ROL, RORExample; Addressing accesses the address 0135 H regardlessof G-flag and RPR.981501 INC !0115 H ;A ←ROM[115 H ]X indexed direct page, auto increment→ {X}+In this mode, a address is specified within direct page bythe X register and the <strong>co</strong>ntent of X is increased by 1.LDA, STAExample; G=0, X=35 HDB LDA {X}+data115 H980F101 H 150F102 H 010F100 H~ ~23data+1 → data1address: 011535 H datadata → A~ ~DB1236H → X(5) Indexed AddressingX indexed direct page (no offset) → {X}In this mode, a address is specified by the X register.ADC, AND, CMP, EOR, LDA, OR, SBC, STA, XMAExample; X=15 H , G=1, RPR=01 HD4 LDA {X} ;ACC←RAM[X].X indexed direct page (8 bit offset) → dp+XThis address value is the se<strong>co</strong>nd byte (Operand) of <strong>co</strong>mmandplus the data of X-register. And it assigns the memoryin Direct page.ADC, AND, CMP, EOR, LDA, LDY, OR, SBC, STASTY, XMA, ASL, DEC, INC, LSR, ROL, RORExample; G=0, X=0F5 HC645 LDA 45 H +X115 Hdata20E550 H~ ~D41data → A3A H data0E550 H~ ~ 21C60E551 H 4545 H +0F5 H =13A H3data → A32 December 3, 2012 Ver 1.21

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!