Chapter 2
34
••••
Architecture
eSL/eSLS Series (+ eSLZ000) User’s Manual
2.5.4.3 Data Transfer Programming Examples
Syntax
Description
Rd = Rs
Rs Register
Rd Register
Rd = P[Rs++]
ROM address [Rs]
Rd Register; then Rs=Rs+1
[Rd] = Rs
Rs Register
RAM address [Rd]
Rn.l = #0x5a
Load #imm8
Rd.l; 0
Rd.h
Rn.h = #0xa5
Load#imm8
Rd.h; Rd.l un-change
Rd = IO[18]
Read IO port 18 to Rd Register
IO[0xA] = Rs
Write Rs Register to IO port 10 (0xA)
PUSH IO[7]
Save the content of IO port 7 on the stack
POP IO[8]
Read stack to IO port 8
PUSH Rs
Write Rs register to stack
POP Rd
Restore Rd from stack
2.5.5 Bit Operation Instruction
These Operations instruction uses a mask value to test or change the value of
individual bits in I/O, RAM or registers.
Space Definitions
Space
Register
RAM
Direct (0x0000 ~ 0x0007)
I/O [0x00 ~ 0x0F]
Bit Operating Definitions
Mnemonic
Description
Operation
BS
Bit b set as 1
Mask OR (b=1; others=0)
BC
Bit b clear as 0
Mask AND (b=0; others=1)
BTEST
Bit b test as 1
Mask AND (b=1; others=0)
BTG
Bit b toggle
Mask XOR (b=1; others=0)
Summary of Contents for eSL Series
Page 8: ...Contents viii Contents eSL eSLS Series eSLZ000 User s Manual...
Page 11: ...Contents eSL eSLS Series eSLZ000 User s Manual Contents xi...
Page 12: ......
Page 28: ......
Page 110: ...Chapter 3 98 Peripheral Control eSL eSLS Series eSLZ000 User s Manual BC IO INTF1 ADIF RETI...
Page 115: ...Chapter 3 eSL eSLS Series eSLZ000 User s Manual Peripheral Control 103...
Page 148: ......
Page 154: ...Chapter 4 142 Electrical Characteristics eSL eSLS Series eSLZ000 User s Manual...