English
Language : 

SN8F2280 Datasheet, PDF (38/163 Pages) SONiX Technology Company – 8-Bit Micro-Controller
SN8F2280 Series
USB 2.0 Full-Speed 8-Bit Micro-Controller
2.2 ADDRESSING MODE
2.2.1 IMMEDIATE ADDRESSING MODE
The immediate addressing mode uses an immediate data to set up the location in ACC or specific RAM.
¾ Example: Move the immediate data 12H to ACC.
MOV
A, #12H
; To set an immediate data 12H into ACC.
¾ Example: Move the immediate data 12H to R register.
B0MOV R, #12H
; To set an immediate data 12H into R register.
’ Note: In immediate addressing mode application, the specific RAM must be 0x80~0x87 working register.
2.2.2 DIRECTLY ADDRESSING MODE
The directly addressing mode moves the content of RAM location in or out of ACC.
¾ Example: Move 0x12 RAM location data into ACC.
B0MOV A, 12H
; To get a content of RAM location 0x12 of bank 0 and save in
ACC.
¾ Example: Move ACC data into 0x12 RAM location.
B0MOV 12H, A
; To get a content of ACC and save in RAM location 12H of
bank 0.
2.2.3 INDIRECTLY ADDRESSING MODE
The indirectly addressing mode is to access the memory by the data pointer registers (Y/Z).
¾ Example: Indirectly addressing mode with @YZ register.
B0MOV
B0MOV
B0MOV
Y, #0
Z, #12H
A, @YZ
; To clear Y register to access RAM bank 0.
; To set an immediate data 12H into Z register.
; Use data pointer @YZ reads a data from RAM location
; 012H into ACC.
SONiX TECHNOLOGY CO., LTD
Page 38
Version 1.1