sikorama / rasm-doc

Latex Documentation for RASM Z80 Assembler
GNU General Public License v3.0
4 stars 1 forks source link

directive de chiffrement CIPHERMEM #28

Open EdouardBERGE opened 2 years ago

EdouardBERGE commented 2 years ago

usage: ciphermem start,end [,method [,keystring]]

(enfin pas END vu que END est une directive ^_^)

start_pseudo defb 'roudoudou' : end_pseudo ciphermem start_pseudo,end_pseudo ; use method 1, running xor initialised with first value. that means that the first value is always visible

output => 72 1d 68 0c 63 16 72 1d 68 => first char is the same r.h.c.r.h

start_pseudo defb 'roudoudou' : end_pseudo ciphermem start_pseudo,end_pseudo,2 ; use method 2, running xor initialised with LSB of current adress

note: with LSB at #00 the output is the same as method 1

start_pseudo defb 'roudoudou' : end_pseudo ciphermem start_pseudo,end_pseudo,3 ; use method 3, xor value is LSB of each char address

output with cipher_start=0 => 72 6e 77 67 6b 70 62 68 7d => rnwgkpbh}

start_pseudo defb 'roudoudou' : end_pseudo ciphermem start_pseudo,end_pseudo,4,'glop' ; use method 4, the string is applied as xor value. As the output will be 9 bytes long, the string applied will be 'glopglopg'

output => 15 03 1a 14 08 19 0b 1f 12

EdouardBERGE commented 2 years ago

petite précision: rapport aux directives SUMMEM ou XORMEM qui produisent une valeur à partir de données, la directive CIPHERMEM chiffre les données, il y a pas de valeur produite à l'endroit de la directive