nitlanguage
/
nit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge: doc: fixed some typos and other misc. corrections
[nit.git]
/
contrib
/
pep8analysis
/
tests
/
privat
/
05-simul_n.pep
1
; Semaine 5
2
; Simulation de l'adressage indirect avec l'adressage indexé
3
; Jean Privat (C) 2010
4
;
5
; Version originale
6
CHARO b,n ; A <- mem[mem[b]] = mem[c] = '!'
7
; Version simulée
8
LDX b,d ; X <- mem[b] = c
9
CHARO 0,x ; A <- mem[0+X] = mem[c] = '!'
10
STOP
11
b: .ADDRSS c ; mem[b] contient l'adresse de c (sur 2 octets)
12
c: .BYTE '!'
13
.END