Section courante

A propos

Section administrative du site

 Langage  Elément  Aide 
ABAP/4
Ada
Assembleur
Assembly & bytecode
ASP (Active Server Pages)
Basic
C
C++
C# (C Sharp)
Cobol
ColdFusion
Fortran
HTML
Java
JavaScript
LISP
Logo
LotusScript
Oberon
Pascal
Perl
PHP
PL/1
Prolog
Python
Rebol
REXX
Ruby
SAS
NoSQL
SQL
Swift
X++ (Axapta)
GNAT
SMALLAda
VHDL
Assembleur 370
Assembleur 1802
Assembleur 4004
Assembleur 6502
Assembleur 6800
Assembleur 68000
Assembleur 8080 et 8085
Assembleur 8089
Assembleur 80x86
Assembleur AGC4
Assembleur ARM
Assembleur DPS 8000
Assembleur i860
Assembleur Itanium
Assembleur MIPS
Assembleur PDP-11
Assembleur PowerPC
Assembleur RISC-V
Assembleur SPARC
Assembleur SuperH
Assembleur UNIVAC I
Assembleur VAX
Assembleur Z80
Assembleur Z8000
Assembleur z/Architecture
ASSEMBLER/MONITOR 64
Micol Assembler
GFA Assembler
A86
MASM (Macro Assembler)
TASM (Turbo Assembler)
CIL
Jasmin
LLVM
MSIL
Parrot
P-Code (PCode)
SWEET16
G-Pascal
ASP 1.0
ASP 2.0
ASP 3.0
ASP.NET
ASP.NET Core
ABasiC (Amiga)
Adam SmartBASIC
Altair BASIC
AmigaBASIC (Amiga)
AMOS Basic (Amiga)
Atari Basic (Atari 400, 600 XL, 800, 800XL)
Basic Apple II (Integer BASIC/APPLESOFT)
Basic Commodore 64 (CBM-BASIC)
Basic Commodore 128 (BASIC 7.0)
Basic Commodore VIC-20 (CBM-BASIC 2.0)
Basic Coco 1 (Color Basic)
Basic Coco 2 (Extended Color Basic)
Basic Coco 3 (Extended Color Basic 2.0)
BASICA (PC DOS)
Basic Pro
BBC BASIC
Blitz BASIC (Amiga)
DarkBASIC
Dartmouth BASIC
GFA-Basic (Atari ST/Amiga)
GWBASIC (MS-DOS)
Liberty BASIC
Locomotive BASIC (Amstrad CPC)
MSX-Basic
Omikron Basic (Atari ST)
Oric Extended Basic
Power Basic
Quick Basic/QBasic (MS-DOS)
Sinclair BASIC (ZX80, ZX81, ZX Spectrum)
ST BASIC (Atari ST)
Turbo Basic
Vintage BASIC
VBScript
Visual Basic (VB)
Visual Basic .NET (VB .NET)
Visual Basic pour DOS
Yabasic
BeckerBASIC
SIMONS' BASIC
Basic09 d'OS-9
Disk Extended Color Basic
Basic09 d'OS-9
Disk Extended Color Basic
Access
Excel
Visual Basic pour Windows
Visual Basic .NET pour Windows
C Shell Unix (csh)
C pour Amiga
C pour Atari ST
C pour DOS
C pour Falcon030
C pour GEMDOS (Atari ST)
C pour Linux
C pour PowerTV OS
C pour OS/2
C pour Unix
C pour Windows
Aztec C
CoCo-C
GNU C
HiSoft C
IBM C/2
Introl-C
Lattice C
Microsoft C
MinGW C
MSX-C
Open Watcom C
OS-9 C Compiler
Pure C
Quick C
Turbo C
HiSoft C for Atari ST
HiSoft C for CP/M (Amstrad CPC)
C++ pour OS/2
C++ pour Windows
Borland C++
C++Builder
IBM VisualAge C++
Intel C++
MinGW C++
Open Watcom C++
Symantec C++
Turbo C++
Visual C++
Visual C++ .NET
Watcom C++
Zortech C++
C# (C Sharp) pour Windows
Apple III Cobol
Microsoft Cobol
BlueDragon
Lucee
OpenBD
Railo
Smith Project
Microsoft Fortran
WATFOR-77
CSS
FBML
Open Graph
SVG
XML
XSL/XSLT
LESS
SASS
GCJ (GNU)
JSP
Jython
Visual J++
Node.js
TypeScript
AutoLISP
ACSLogo
LotusScript pour Windows
Amiga Oberon
Oberon .NET
Apple Pascal
Delphi/Kylix/Lazarus
Free Pascal
GNU Pascal
HighSpeed Pascal
IBM Personal Computer Pascal
Lisa Pascal
Maxon Pascal
MPW Pascal
OS-9 Pascal
OSS Personal Pascal
Pascal-86
Pascal du Cray Research
Pascal/VS
Pascal-XT
PURE Pascal
QuickPascal
RemObjets Chrome
Sun Pascal
THINK Pascal
Tiny Pascal (TRS-80)
Turbo Pascal
UCSD Pascal
VAX Pascal
Virtual Pascal
Turbo Pascal for CP/M-80
Turbo Pascal for DOS
Turbo Pascal for Macintosh
Turbo Pascal for Windows
CodeIgniter (Cadre d'application)
Drupal (Projet)
Joomla! (Projet)
Phalanger (PHP .NET)
phpBB (Projet)
Smarty (balise)
Twig (balise)
Symfony (Cadre d'application)
WordPress (Projet)
Zend (Cadre d'application)
PL360
PL/M-80
PL/M-86
Turbo Prolog
CPython
IronPython
Jython
PyPy
AREXX
Regina REXX
JMP
Btrieve
Cassandra
Clipper
CouchDB
dBASE
Hbase
Hypertable
MongoDB
Redis
Access
BigQuery
DB2
H2
Interbase
MySQL
Oracle
PostgreSQL
SAP HANA
SQL Server
Sybase
U-SQL
Référence
Préface
Notes légal
Dictionnaire
Recherche
Assembleur SuperH

LDS

SuperH Load to System Register

Syntaxe

LDS Rm,MACH
LDS Rm,MACL
LDS Rm,PR
LDS Rm,DSR
LDS Rm,A0
LDS Rm,X0
LDS Rm,X1
LDS Rm,Y0
LDS Rm,Y1
LDS.L @Rm+,MACH
LDS.L @Rm+,MACL
LDS.L @Rm+,PR
LDS.L @Rm+,DSR
LDS.L @Rm+,A0
LDS.L @Rm+,X0
LDS.L @Rm+,X1
LDS.L @Rm+,Y0
LDS.L @Rm+,Y1

Description

Cette instruction permet d'entreposer l'opérande source dans le registre système MACH, MACL ou PR ou le registre DSP, DSR, A0, X0, X1, Y0 ou Y1.

Algorithme

MODULE LDSMACH(m) * LDS Rm,MACH
   MACH ← R[m]
   SI MACH ∩ 00000200h = 0 ALORS
      MACH ← MACH ∩ 000003FFh
   SINON
      MACH ← MACH U FFFFFC00h
   FIN SI
   PC ← PC + 2

MODULE LDSMACL(m) * LDS Rm,MACL
   MACL ← R[m]
   PC ← PC + 2

MODULE LDSPR(m) * LDS Rm,PR
   PR ← R[m]
   PC ← PC + 2

MODULE LDSDSR(m) * LDS Rm,DSR
   DSR ← R[m] ∩ 0000000Fh
   PC ← PC + 2

MODULE LDSA0(m) * LDS Rm,A0
   A0 ← R[m]
   SI A0 ∩ 80000000h = 0 ALORS
      A0G ← 00h
   SINON
      A0G ← FFh
   FIN SI
   PC ← PC + 2

MODULE LDSX0(m) * LDS Rm, X0
   X0 ← R[m]
   PC ← PC + 2

MODULE LDSX1(m) * LDS Rm, X1
   X1 ← R[m]
   PC ← PC + 2

MODULE LDSY0(m) * LDS Rm, Y0
   Y0 ← R[m]
   PC ← PC + 2

MODULE LDSY1(m) * LDS Rm, Y1
   Y1 ← R[m]
   PC ← PC + 2

MODULE LDSMMACH(m) * LDS.L @Rm+,MACH
   MACH ← Read_Long(R[m])
   SI MACH ∩ 00000200h = 0 ALORS
      MACH ← MACH ∩ 000003FFh
   SINON
      MACH ← MACH U FFFFFC00h
   FIN SI
   R[m] ← R[m] + 4
   PC ← PC + 2

MODULE LDSMMACL(m) * LDS.L @Rm+,MACL
   MACL ← Read_Long(R[m])
   R[m] ← R[m] + 4
   PC ← PC + 2

MODULE LDSMPR(m) * LDS.L @Rm+,PR
   PR ← Read_Long(R[m])
   R[m] ← R[m] + 4
   PC ← PC + 2

MODULE LDSMDSR(m) * LDS.L @Rm+,DSR
   DSR ← Read_Long(R[m]) ∩ 0000000Fh
   R[m] ← R[m] + 4
   PC ← PC + 2

MODULE LDSMA0(m) * LDS.L @Rm+,A0
   A0 ← Read_Long(R[m])
   SI A0 ∩ 80000000h = 0 ALORS
      A0G ← 00h
   SINON
      A0G ← FFh
   FIN SI
   R[m] ← R[m] + 4
   PC ← PC + 2

MODULE LDSMX0(m) * LDS.L @Rm+,X0
   X0 ← Read_Long(R[m])
   R[m] ← R[m] + 4
   PC ← PC + 2

MODULE LDSMX1(m) * LDS.L @Rm+,X1
   X1 ← Read_Long(R[m])
   R[m] ← R[m] + 4
   PC ← PC + 2

MODULE LDSMY0(m) * LDS.L @Rm+,Y0
   Y0 ← Read_Long(R[m])
   R[m] ← R[m] + 4
   PC ← PC + 2

MODULE LDSMY1(m) * LDS.L @Rm+,Y1
   Y1 ← Read_Long(R[m])
   R[m] ← R[m] + 4
   PC ← PC + 2

Mnémonique

Instruction Abstrait Opcode Cycle
LDS Rm,MACH MACH ← Rm 0100mmmm00001010 1
LDS Rm,MACL MACL ← Rm 0100mmmm00011010 1
LDS Rm,PR PR ← Rm 0100mmmm00101010 1
LDS Rm,DSR DSR ← Rm 0100mmmm01101010 1
LDS Rm,A0 A0 ← Rm 0100mmmm01111010 1
LDS Rm,X0 X0 ← Rm 0100mmmm10001010 1
LDS Rm,X1 X1 ← Rm 0100mmmm10011010 1
LDS Rm,Y0 Y0 ← Rm 0100mmmm10101010 1
LDS Rm,Y1 Y1 ← Rm 0100mmmm10111010 1
LDS.L @Rm+,MACH MACH ← (Rm), Rm ← Rm + 4 0100mmmm00000110 1
LDS.L @Rm+,MACL MACL ← (Rm), Rm ← Rm + 4 0100mmmm00010110 1
LDS.L @Rm+,PR PR ← (Rm), Rm ← Rm + 4 0100mmmm00100110 1
LDS.L @Rm+,DSR DSR ← (Rm), Rm ← Rm + 4 0100mmmm01100110 1
LDS.L @Rm+,A0 A0 ← (Rm), Rm ← Rm + 4 0100mmmm01110110 1
LDS.L @Rm+, X0 X0 ← (Rm), Rm ← Rm + 4 0100nnnn10000110 1
LDS.L @Rm+,X1 X1 ← (Rm), Rm ← Rm+4 0100nnnn10010110 1
LDS.L @Rm+,Y0 Y0 ← (Rm), Rm ← Rm+4 0100nnnn10100110 1
LDS.L @Rm+, Y1 Y1 ← (Rm), Rm ← Rm+4 0100nnnn10110110 1


PARTAGER CETTE PAGE SUR
Dernière mise à jour : Mardi, le 28 juillet 2015