Adressage indirect SETP 7 siemens
Fermé
jerome stas
Messages postés
1
Date d'inscription
dimanche 19 octobre 2008
Statut
Membre
Dernière intervention
19 octobre 2008
-
19 oct. 2008 à 17:29
luc88_ch - 23 oct. 2008 à 16:06
luc88_ch - 23 oct. 2008 à 16:06
A voir également:
- P#db step 7
- Clé windows 7 - Guide
- Passer de windows 7 à windows 10 - Guide
- Movie maker windows 7 - Télécharger - Montage & Édition
- Telecharger photofiltre 7 gratuit - Télécharger - Retouche d'image
- Télécharger 7-zip - Télécharger - Compression & Décompression
1 réponse
Un petit programme qui ecrit 255 bytes dans le DB10 (1 byte = 0, 2eme byte = 1, ...)
AUF DB10
L P#DBX 0.0 // AR1 points on DB10.DBX0.0
LAR1 // Store pointer
L 0
T #InitValue
L 255
lp00: T #LoopIndex
L #InitValue // initializes data to write
T B [AR1,P#0.0]
L 8 // Increment AR1: 8 bits = 1 byte
+AR1 // add 8 to AR1 --> points on next byte in DB10
L #InitValue // Increment InitValue
L 1
+D
T #InitValue
L #LoopIndex
LOOP lp00
AUF DB10
L P#DBX 0.0 // AR1 points on DB10.DBX0.0
LAR1 // Store pointer
L 0
T #InitValue
L 255
lp00: T #LoopIndex
L #InitValue // initializes data to write
T B [AR1,P#0.0]
L 8 // Increment AR1: 8 bits = 1 byte
+AR1 // add 8 to AR1 --> points on next byte in DB10
L #InitValue // Increment InitValue
L 1
+D
T #InitValue
L #LoopIndex
LOOP lp00